83 lines
236 KiB
JavaScript
83 lines
236 KiB
JavaScript
var vm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function li(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ul(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uc={exports:{}},rt=uc.exports={},qt,Xt;function Po(){throw new Error("setTimeout has not been defined")}function Io(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?qt=setTimeout:qt=Po}catch{qt=Po}try{typeof clearTimeout=="function"?Xt=clearTimeout:Xt=Io}catch{Xt=Io}})();function lc(t){if(qt===setTimeout)return setTimeout(t,0);if((qt===Po||!qt)&&setTimeout)return qt=setTimeout,setTimeout(t,0);try{return qt(t,0)}catch{try{return qt.call(null,t,0)}catch{return qt.call(this,t,0)}}}function ll(t){if(Xt===clearTimeout)return clearTimeout(t);if((Xt===Io||!Xt)&&clearTimeout)return Xt=clearTimeout,clearTimeout(t);try{return Xt(t)}catch{try{return Xt.call(null,t)}catch{return Xt.call(this,t)}}}var oe=[],Ye=!1,xe,ar=-1;function fl(){!Ye||!xe||(Ye=!1,xe.length?oe=xe.concat(oe):ar=-1,oe.length&&fc())}function fc(){if(!Ye){var t=lc(fl);Ye=!0;for(var e=oe.length;e;){for(xe=oe,oe=[];++ar<e;)xe&&xe[ar].run();ar=-1,e=oe.length}xe=null,Ye=!1,ll(t)}}rt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];oe.push(new pc(t,e)),oe.length===1&&!Ye&&lc(fc)};function pc(t,e){this.fun=t,this.array=e}pc.prototype.run=function(){this.fun.apply(null,this.array)},rt.title="browser",rt.browser=!0,rt.env={},rt.argv=[],rt.version="",rt.versions={};function te(){}rt.on=te,rt.addListener=te,rt.once=te,rt.off=te,rt.removeListener=te,rt.removeAllListeners=te,rt.emit=te,rt.prependListener=te,rt.prependOnceListener=te,rt.listeners=function(t){return[]},rt.binding=function(t){throw new Error("process.binding is not supported")},rt.cwd=function(){return"/"},rt.chdir=function(t){throw new Error("process.chdir is not supported")},rt.umask=function(){return 0};var pl=uc.exports;const Ke=ul(pl);var Kr,gs;function hl(){if(gs)return Kr;gs=1;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function e(o,i){for(var s="",a=0,u=-1,l=0,c,p=0;p<=o.length;++p){if(p<o.length)c=o.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(u===p-1||l===1))if(u!==p-1&&l===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",a=0):(s=s.slice(0,f),a=s.length-1-s.lastIndexOf("/")),u=p,l=0;continue}}else if(s.length===2||s.length===1){s="",a=0,u=p,l=0;continue}}i&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+o.slice(u+1,p):s=o.slice(u+1,p),a=p-u-1;u=p,l=0}else c===46&&l!==-1?++l:l=-1}return s}function n(o,i){var s=i.dir||i.root,a=i.base||(i.name||"")+(i.ext||"");return s?s===i.root?s+a:s+o+a:a}var r={resolve:function(){for(var o="",i=!1,s,a=arguments.length-1;a>=-1&&!i;a--){var u;a>=0?u=arguments[a]:(s===void 0&&(s=Ke.cwd()),u=s),t(u),u.length!==0&&(o=u+"/"+o,i=u.charCodeAt(0)===47)}return o=e(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var i=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=e(o,!i),o.length===0&&!i&&(o="."),o.length>0&&s&&(o+="/"),i?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,i=0;i<arguments.length;++i){var s=arguments[i];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":r.normalize(o)},relative:function(o,i){if(t(o),t(i),o===i||(o=r.resolve(o),i=r.resolve(i),o===i))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var a=o.length,u=a-s,l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var c=i.length,p=c-l,f=u<p?u:p,h=-1,d=0;d<=f;++d){if(d===f){if(p>f){if(i.charCodeAt(l+d)===47)return i.slice(l+d+1);if(d===0)return i.slice(l+d)}else u>f&&(o.charCodeAt(s+d)===47?h=d:d===0&&(h=0));break}var g=o.charCodeAt(s+d),v=i.charCodeAt(l+d);if(g!==v)break;g===47&&(h=d)}var x="";for(d=s+h+1;d<=a;++d)(d===a||o.charCodeAt(d)===47)&&(x.length===0?x+="..":x+="/..");return x.length>0?x+i.slice(l+h):(l+=h,i.charCodeAt(l)===47&&++l,i.slice(l))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var i=o.charCodeAt(0),s=i===47,a=-1,u=!0,l=o.length-1;l>=1;--l)if(i=o.charCodeAt(l),i===47){if(!u){a=l;break}}else u=!1;return a===-1?s?"/":".":s&&a===1?"//":o.slice(0,a)},basename:function(o,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,a=-1,u=!0,l;if(i!==void 0&&i.length>0&&i.length<=o.length){if(i.length===o.length&&i===o)return"";var c=i.length-1,p=-1;for(l=o.length-1;l>=0;--l){var f=o.charCodeAt(l);if(f===47){if(!u){s=l+1;break}}else p===-1&&(u=!1,p=l+1),c>=0&&(f===i.charCodeAt(c)?--c===-1&&(a=l):(c=-1,a=p))}return s===a?a=p:a===-1&&(a=o.length),o.slice(s,a)}else{for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!u){s=l+1;break}}else a===-1&&(u=!1,a=l+1);return a===-1?"":o.slice(s,a)}},extname:function(o){t(o);for(var i=-1,s=0,a=-1,u=!0,l=0,c=o.length-1;c>=0;--c){var p=o.charCodeAt(c);if(p===47){if(!u){s=c+1;break}continue}a===-1&&(u=!1,a=c+1),p===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}return i===-1||a===-1||l===0||l===1&&i===a-1&&i===s+1?"":o.slice(i,a)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return n("/",o)},parse:function(o){t(o);var i={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return i;var s=o.charCodeAt(0),a=s===47,u;a?(i.root="/",u=1):u=0;for(var l=-1,c=0,p=-1,f=!0,h=o.length-1,d=0;h>=u;--h){if(s=o.charCodeAt(h),s===47){if(!f){c=h+1;break}continue}p===-1&&(f=!1,p=h+1),s===46?l===-1?l=h:d!==1&&(d=1):l!==-1&&(d=-1)}return l===-1||p===-1||d===0||d===1&&l===p-1&&l===c+1?p!==-1&&(c===0&&a?i.base=i.name=o.slice(1,p):i.base=i.name=o.slice(c,p)):(c===0&&a?(i.name=o.slice(1,l),i.base=o.slice(1,p)):(i.name=o.slice(c,l),i.base=o.slice(c,p)),i.ext=o.slice(l,p)),c>0?i.dir=o.slice(0,c-1):a&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Kr=r,Kr}var Oe=hl();function dl(t){return t&&t.split("/").map(encodeURIComponent).join("/")}function ym(t){return t.replace(/\\/g,"/").replace(/.*\//,"")}function bm(...t){if(arguments.length<1)return"";const e=t.filter(u=>u.length>0);if(e.length<1)return"";const n=e[e.length-1],r=e[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",i=e.reduce((u,l)=>u.concat(l.split("/")),[]);let s=!r;const a=i.reduce((u,l)=>l===""?u:s?(s=!1,u+l):u+"/"+l,"");return o?a+"/":a}var Zr,ms;function hc(){if(ms)return Zr;ms=1;var t={};return Zr=typeof Ke=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Zr}var Jr,vs;function dc(){if(vs)return Jr;vs=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,o=e-6;return Jr={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Jr}var Qr={exports:{}},ys;function gl(){return ys||(ys=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=dc(),i=hc();e=t.exports={};const s=e.re=[],a=e.safeRe=[],u=e.src=[],l=e.safeSrc=[],c=e.t={};let p=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,r]],d=v=>{for(const[x,m]of h)v=v.split(`${x}*`).join(`${x}{0,${m}}`).split(`${x}+`).join(`${x}{1,${m}}`);return v},g=(v,x,m)=>{const b=d(x),E=p++;i(v,E,x),c[v]=E,u[E]=x,l[E]=b,s[E]=new RegExp(x,m?"g":void 0),a[E]=new RegExp(b,m?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),g("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${f}+`),g("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),g("FULL",`^${u[c.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),g("LOOSE",`^${u[c.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),g("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?(?:${u[c.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",u[c.COERCE],!0),g("COERCERTLFULL",u[c.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Qr,Qr.exports)),Qr.exports}var to,bs;function ml(){if(bs)return to;bs=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return to=n=>n?typeof n!="object"?t:n:e,to}var eo,_s;function vl(){if(_s)return eo;_s=1;const t=/^[0-9]+$/,e=(n,r)=>{const o=t.test(n),i=t.test(r);return o&&i&&(n=+n,r=+r),n===r?0:o&&!i?-1:i&&!o?1:n<r?-1:1};return eo={compareIdentifiers:e,rcompareIdentifiers:(n,r)=>e(r,n)},eo}var no,ws;function gc(){if(ws)return no;ws=1;const t=hc(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=dc(),{safeRe:r,safeSrc:o,t:i}=gl(),s=ml(),{compareIdentifiers:a}=vl();class u{constructor(c,p){if(p=s(p),c instanceof u){if(c.loose===!!p.loose&&c.includePrerelease===!!p.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const f=c.trim().match(p.loose?r[i.LOOSE]:r[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const d=+h;if(d>=0&&d<n)return d}return h}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(t("SemVer.compare",this.version,this.options,c),!(c instanceof u)){if(typeof c=="string"&&c===this.version)return 0;c=new u(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof u||(c=new u(c,this.options)),a(this.major,c.major)||a(this.minor,c.minor)||a(this.patch,c.patch)}comparePre(c){if(c instanceof u||(c=new u(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let p=0;do{const f=this.prerelease[p],h=c.prerelease[p];if(t("prerelease compare",p,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f!==h)return a(f,h)}while(++p)}compareBuild(c){c instanceof u||(c=new u(c,this.options));let p=0;do{const f=this.build[p],h=c.build[p];if(t("build compare",p,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f!==h)return a(f,h)}while(++p)}inc(c,p,f){if(c.startsWith("pre")){if(!p&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(p){const h=new RegExp(`^${this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE]}$`),d=`-${p}`.match(h);if(!d||d[1]!==p)throw new Error(`invalid identifier: ${p}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,f),this.inc("pre",p,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,f),this.inc("pre",p,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let d=this.prerelease.length;for(;--d>=0;)typeof this.prerelease[d]=="number"&&(this.prerelease[d]++,d=-2);if(d===-1){if(p===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(p){let d=[p,h];f===!1&&(d=[p]),a(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return no=u,no}var ro,Es;function yl(){if(Es)return ro;Es=1;const t=gc();return ro=(e,n,r=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(o){if(!r)return null;throw o}},ro}var oo,Os;function bl(){if(Os)return oo;Os=1;const t=yl();return oo=(e,n)=>{const r=t(e,n);return r?r.version:null},oo}var _l=bl();const wl=li(_l);var io,xs;function El(){if(xs)return io;xs=1;const t=gc();return io=(e,n)=>new t(e,n).major,io}var Ol=El();const Ts=li(Ol);class xl{bus;constructor(e){typeof e.getVersion!="function"||!wl(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Ts(e.getVersion())!==Ts(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()),this.bus=e}getVersion(){return"3.3.2"}subscribe(e,n){this.bus.subscribe(e,n)}unsubscribe(e,n){this.bus.unsubscribe(e,n)}emit(e,...n){this.bus.emit(e,...n)}}class Tl{handlers=new Map;getVersion(){return"3.3.2"}subscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).concat(n))}unsubscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).filter(r=>r!==n))}emit(e,...n){(this.handlers.get(e)||[]).forEach(r=>{try{r(n[0])}catch(o){console.error("could not invoke event listener",o)}})}}let cn=null;function fi(){return cn!==null?cn:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?cn=new xl(window._nc_event_bus):cn=window._nc_event_bus=new Tl,cn)}function Nl(t,e){fi().subscribe(t,e)}function _m(t,e){fi().unsubscribe(t,e)}function wm(t,...e){fi().emit(t,...e)}var Ue={},un={},ln={},Ns;function mc(){if(Ns)return ln;Ns=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;function t(o,i,s){return i=e(i),i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function e(o){var i=n(o,"string");return typeof i=="symbol"?i:i+""}function n(o,i){if(typeof o!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var a=s.call(o,i);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}class r{constructor(i,s,a){t(this,"scope",void 0),t(this,"wrapped",void 0),this.scope="".concat(a?r.GLOBAL_SCOPE_PERSISTENT:r.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(i),"_"),this.wrapped=s}scopeKey(i){return"".concat(this.scope).concat(i)}setItem(i,s){this.wrapped.setItem(this.scopeKey(i),s)}getItem(i){return this.wrapped.getItem(this.scopeKey(i))}removeItem(i){this.wrapped.removeItem(this.scopeKey(i))}clear(){Object.keys(this.wrapped).filter(i=>i.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}return ln.default=r,t(r,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),t(r,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),ln}var As;function Al(){if(As)return un;As=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var t=e(mc());function e(s){return s&&s.__esModule?s:{default:s}}function n(s,a,u){return a=r(a),a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}function r(s){var a=o(s,"string");return typeof a=="symbol"?a:a+""}function o(s,a){if(typeof s!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var l=u.call(s,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}class i{constructor(a){n(this,"appId",void 0),n(this,"persisted",!1),n(this,"clearedOnLogout",!1),this.appId=a}persist(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=a,this}clearOnLogout(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=a,this}build(){return new t.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}return un.default=i,un}var Ss;function Sl(){if(Ss)return Ue;Ss=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.clearAll=i,Ue.clearNonPersistent=s,Ue.getBuilder=r;var t=n(Al()),e=n(mc());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){return new t.default(a)}function o(a,u){Object.keys(a).filter(l=>u?u(l):!0).map(a.removeItem.bind(a))}function i(){[window.sessionStorage,window.localStorage].map(a=>o(a))}function s(){[window.sessionStorage,window.localStorage].map(a=>o(a,u=>!u.startsWith(e.default.GLOBAL_SCOPE_PERSISTENT)))}return Ue}var Cl=Sl();let xn;const vc=[];function $l(){return xn===void 0&&(xn=document.head.dataset.requesttoken??null),xn}function Pl(t){vc.push(t)}Nl("csrf-token-update",t=>{xn=t.token,vc.forEach(e=>{try{e(xn)}catch(n){console.error("Error updating CSRF token observer",n)}})}),Cl.getBuilder("public").persist().build();let ze;const Cs=(t,e)=>t?t.getAttribute(e):null;function kr(){if(ze!==void 0)return ze;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=Cs(t,"data-user");return e===null?(ze=null,ze):(ze={uid:e,displayName:Cs(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},ze)}var it=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(it||{}),Il=Object.defineProperty,Rl=(t,e,n)=>e in t?Il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ll=(t,e,n)=>(Rl(t,e+"",n),n);class kl{constructor(e){Ll(this,"context"),this.context=e||{}}formatMessage(e,n,r){let o="["+it[n].toUpperCase()+"] ";return r&&r.app&&(o+=r.app+": "),typeof e=="string"?o+e:(o+="Unexpected ".concat(e.name),e.message&&(o+=' "'.concat(e.message,'"')),n===it.Debug&&e.stack&&(o+=`
|
|
|
|
Stack trace:
|
|
`.concat(e.stack)),o)}log(e,n,r){var o,i;if(!(typeof((o=this.context)==null?void 0:o.level)=="number"&&e<((i=this.context)==null?void 0:i.level)))switch(typeof n=="object"&&r?.error===void 0&&(r.error=n),e){case it.Debug:console.debug(this.formatMessage(n,it.Debug,r),r);break;case it.Info:console.info(this.formatMessage(n,it.Info,r),r);break;case it.Warn:console.warn(this.formatMessage(n,it.Warn,r),r);break;case it.Error:console.error(this.formatMessage(n,it.Error,r),r);break;case it.Fatal:default:console.error(this.formatMessage(n,it.Fatal,r),r);break}}debug(e,n){this.log(it.Debug,e,Object.assign({},this.context,n))}info(e,n){this.log(it.Info,e,Object.assign({},this.context,n))}warn(e,n){this.log(it.Warn,e,Object.assign({},this.context,n))}error(e,n){this.log(it.Error,e,Object.assign({},this.context,n))}fatal(e,n){this.log(it.Fatal,e,Object.assign({},this.context,n))}}function jl(t){return new kl(t)}var Dl=Object.defineProperty,Ml=(t,e,n)=>e in t?Dl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$s=(t,e,n)=>(Ml(t,typeof e!="symbol"?e+"":e,n),n);class Fl{constructor(e){$s(this,"context"),$s(this,"factory"),this.context={},this.factory=e}setApp(e){return this.context.app=e,this}setLogLevel(e){return this.context.level=e,this}setUid(e){return this.context.uid=e,this}detectUser(){const e=kr();return e!==null&&(this.context.uid=e.uid),this}detectLogLevel(){const e=this,n=()=>{var r,o;document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=(o=(r=window._oc_config)==null?void 0:r.loglevel)!=null?o:it.Warn,window._oc_debug&&(e.context.level=it.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function Ul(){return new Fl(jl)}const zl=t=>"/remote.php/"+t,Gl=(t,e)=>{var n;return((n=void 0)!=null?n:yc())+zl(t)},Em=(t,e,n)=>{var r;const o=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return((r=void 0)!=null?r:yc())+"/ocs/v"+o+".php"+Ro(t,e,n)},Ro=(t,e,n)=>{const r=Object.assign({escape:!0},n||{}),o=function(i,s){return s=s||{},i.replace(/{([^{}]*)}/g,function(a,u){const l=s[u];return r.escape?encodeURIComponent(typeof l=="string"||typeof l=="number"?l.toString():a):typeof l=="string"||typeof l=="number"?l.toString():a})};return t.charAt(0)!=="/"&&(t="/"+t),o(t,e||{})},Om=(t,e,n)=>{var r,o,i;const s=Object.assign({noRewrite:!1},n||{}),a=(r=n?.baseURL)!=null?r:pi();return((i=(o=window?.OC)==null?void 0:o.config)==null?void 0:i.modRewriteWorking)===!0&&!s.noRewrite?a+Ro(t,e,n):a+"/index.php"+Ro(t,e,n)},xm=(t,e)=>e.includes(".")?Ps(t,"img",e):Ps(t,"img","".concat(e,".svg")),Ps=(t,e,n)=>{var r,o,i;const s=(i=(o=(r=window?.OC)==null?void 0:r.coreApps)==null?void 0:o.includes(t))!=null?i:!1,a=n.slice(-3)==="php";let u=pi();return a&&!s?(u+="/index.php/apps/".concat(t),u+="/".concat(encodeURI(e)),n!=="index.php"&&(u+="/".concat(n))):!a&&!s?(u=Bl(t),u+="/".concat(e,"/"),u.at(-1)!=="/"&&(u+="/"),u+=n):(u+="/".concat(t),u+="/".concat(e),u+="/".concat(n)),u},yc=()=>window.location.protocol+"//"+window.location.host+pi();function pi(){let t=window._oc_webroot;if(typeof t>"u"){t=location.pathname;const e=t.indexOf("/index.php/");if(e!==-1)t=t.slice(0,e);else{const n=t.indexOf("/",1);t=t.slice(0,n>0?n:void 0)}}return t}function Bl(t){var e,n;return(n=((e=window._oc_appswebroots)!=null?e:{})[t])!=null?n:""}function le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Is(t,e,n){Vl(t,e),e.set(t,n)}function Vl(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ht(t,e){var n=bc(t,e,"get");return Wl(t,n)}function Wl(t,e){return e.get?e.get.call(t):e.value}function Rs(t,e,n){var r=bc(t,e,"set");return Hl(t,r,n),n}function bc(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Hl(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var ql=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",gt=new WeakMap,fn=new WeakMap;class jr{constructor(e){var{executor:n=()=>{},internals:r=di(),promise:o=new Promise((i,s)=>n(i,s,a=>{r.onCancelList.push(a)}))}=e;Is(this,gt,{writable:!0,value:void 0}),Is(this,fn,{writable:!0,value:void 0}),le(this,ql,"CancelablePromise"),this.cancel=this.cancel.bind(this),Rs(this,gt,r),Rs(this,fn,o||new Promise((i,s)=>n(i,s,a=>{r.onCancelList.push(a)})))}then(e,n){return cr(ht(this,fn).then(Xn(e,ht(this,gt)),Xn(n,ht(this,gt))),ht(this,gt))}catch(e){return cr(ht(this,fn).catch(Xn(e,ht(this,gt))),ht(this,gt))}finally(e,n){return n&&ht(this,gt).onCancelList.push(e),cr(ht(this,fn).finally(Xn(()=>{if(e)return n&&(ht(this,gt).onCancelList=ht(this,gt).onCancelList.filter(r=>r!==e)),e()},ht(this,gt))),ht(this,gt))}cancel(){ht(this,gt).isCanceled=!0;var e=ht(this,gt).onCancelList;ht(this,gt).onCancelList=[];for(var n of e)if(typeof n=="function")try{n()}catch(r){console.error(r)}}isCanceled(){return ht(this,gt).isCanceled===!0}}class ne extends jr{constructor(e){super({executor:e})}}le(ne,"all",function(t){return Yn(t,Promise.all(t))}),le(ne,"allSettled",function(t){return Yn(t,Promise.allSettled(t))}),le(ne,"any",function(t){return Yn(t,Promise.any(t))}),le(ne,"race",function(t){return Yn(t,Promise.race(t))}),le(ne,"resolve",function(t){return Ls(Promise.resolve(t))}),le(ne,"reject",function(t){return Ls(Promise.reject(t))}),le(ne,"isCancelable",hi);function Ls(t){return cr(t,di())}function hi(t){return t instanceof ne||t instanceof jr}function Xn(t,e){if(t)return n=>{if(!e.isCanceled){var r=t(n);return hi(r)&&e.onCancelList.push(r.cancel),r}return n}}function cr(t,e){return new jr({internals:e,promise:t})}function Yn(t,e){var n=di();return n.onCancelList.push(()=>{for(var r of t)hi(r)&&r.cancel()}),new jr({internals:n,promise:e})}function di(){return{isCanceled:!1,onCancelList:[]}}const Be=globalThis||void 0||self;var so={},Xl={2:t=>{function e(o,i,s){o instanceof RegExp&&(o=n(o,s)),i instanceof RegExp&&(i=n(i,s));var a=r(o,i,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+o.length,a[1]),post:s.slice(a[1]+i.length)}}function n(o,i){var s=i.match(o);return s?s[0]:null}function r(o,i,s){var a,u,l,c,p,f=s.indexOf(o),h=s.indexOf(i,f+1),d=f;if(f>=0&&h>0){for(a=[],l=s.length;d>=0&&!p;)d==f?(a.push(d),f=s.indexOf(o,d+1)):a.length==1?p=[a.pop(),h]:((u=a.pop())<l&&(l=u,c=h),h=s.indexOf(i,d+1)),d=f<h&&f>=0?f:h;a.length&&(p=[l,c])}return p}t.exports=e,e.range=r},101:function(t,e,n){var r;t=n.nmd(t),function(o){var i=(t&&t.exports,typeof Be=="object"&&Be);i.global!==i&&i.window;var s=function(p){this.message=p};(s.prototype=new Error).name="InvalidCharacterError";var a=function(p){throw new s(p)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var f,h,d,g,v=p.length%3,x="",m=-1,b=p.length-v;++m<b;)f=p.charCodeAt(m)<<16,h=p.charCodeAt(++m)<<8,d=p.charCodeAt(++m),x+=u.charAt((g=f+h+d)>>18&63)+u.charAt(g>>12&63)+u.charAt(g>>6&63)+u.charAt(63&g);return v==2?(f=p.charCodeAt(m)<<8,h=p.charCodeAt(++m),x+=u.charAt((g=f+h)>>10)+u.charAt(g>>4&63)+u.charAt(g<<2&63)+"="):v==1&&(g=p.charCodeAt(m),x+=u.charAt(g>>2)+u.charAt(g<<4&63)+"=="),x},decode:function(p){var f=(p=String(p).replace(l,"")).length;f%4==0&&(f=(p=p.replace(/==?$/,"")).length),(f%4==1||/[^+a-zA-Z0-9/]/.test(p))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var h,d,g=0,v="",x=-1;++x<f;)d=u.indexOf(p.charAt(x)),h=g%4?64*h+d:d,g++%4&&(v+=String.fromCharCode(255&h>>(-2*g&6)));return v},version:"1.0.0"};(r=function(){return c}.call(e,n,e,t))===void 0||(t.exports=r)}()},172:(t,e)=>{e.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,o=n.length;o--;){var i=n.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?r++:2047<i&&i<=65535&&(r+=2)}return r}},526:t=>{var e={utf8:{stringToBytes:function(n){return e.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(e.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],o=0;o<n.length;o++)r.push(255&n.charCodeAt(o));return r},bytesToString:function(n){for(var r=[],o=0;o<n.length;o++)r.push(String.fromCharCode(n[o]));return r.join("")}}};t.exports=e},298:t=>{var e,n;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(r,o){return r<<o|r>>>32-o},rotr:function(r,o){return r<<32-o|r>>>o},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var o=0;o<r.length;o++)r[o]=n.endian(r[o]);return r},randomBytes:function(r){for(var o=[];r>0;r--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(r){for(var o=[],i=0,s=0;i<r.length;i++,s+=8)o[s>>>5]|=r[i]<<24-s%32;return o},wordsToBytes:function(r){for(var o=[],i=0;i<32*r.length;i+=8)o.push(r[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(r){for(var o=[],i=0;i<r.length;i++)o.push((r[i]>>>4).toString(16)),o.push((15&r[i]).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],i=0;i<r.length;i+=2)o.push(parseInt(r.substr(i,2),16));return o},bytesToBase64:function(r){for(var o=[],i=0;i<r.length;i+=3)for(var s=r[i]<<16|r[i+1]<<8|r[i+2],a=0;a<4;a++)8*i+6*a<=8*r.length?o.push(e.charAt(s>>>6*(3-a)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,s=0;i<r.length;s=++i%4)s!=0&&o.push((e.indexOf(r.charAt(i-1))&Math.pow(2,-2*s+8)-1)<<2*s|e.indexOf(r.charAt(i))>>>6-2*s);return o}},t.exports=n},635:(t,e,n)=>{const r=n(31),o=n(338),i=n(221);t.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},118:t=>{t.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const r of e)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}},705:(t,e)=>{const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");e.isExist=function(i){return i!==void 0},e.isEmptyObject=function(i){return Object.keys(i).length===0},e.merge=function(i,s,a){if(s){const u=Object.keys(s),l=u.length;for(let c=0;c<l;c++)i[u[c]]=a==="strict"?[s[u[c]]]:s[u[c]]}},e.getValue=function(i){return e.isExist(i)?i:""},e.isName=function(i){return o.exec(i)!=null},e.getAllMatches=function(i,s){const a=[];let u=s.exec(i);for(;u;){const l=[];l.startIndex=s.lastIndex-u[0].length;const c=u.length;for(let p=0;p<c;p++)l.push(u[p]);a.push(l),u=s.exec(i)}return a},e.nameRegexp=r},31:(t,e,n)=>{const r=n(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(m){return m===" "||m===" "||m===`
|
|
`||m==="\r"}function s(m,b){const E=b;for(;b<m.length;b++)if(!(m[b]!="?"&&m[b]!=" ")){const N=m.substr(E,b-E);if(b>5&&N==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",v(m,b));if(m[b]=="?"&&m[b+1]==">"){b++;break}}return b}function a(m,b){if(m.length>b+5&&m[b+1]==="-"&&m[b+2]==="-"){for(b+=3;b<m.length;b++)if(m[b]==="-"&&m[b+1]==="-"&&m[b+2]===">"){b+=2;break}}else if(m.length>b+8&&m[b+1]==="D"&&m[b+2]==="O"&&m[b+3]==="C"&&m[b+4]==="T"&&m[b+5]==="Y"&&m[b+6]==="P"&&m[b+7]==="E"){let E=1;for(b+=8;b<m.length;b++)if(m[b]==="<")E++;else if(m[b]===">"&&(E--,E===0))break}else if(m.length>b+9&&m[b+1]==="["&&m[b+2]==="C"&&m[b+3]==="D"&&m[b+4]==="A"&&m[b+5]==="T"&&m[b+6]==="A"&&m[b+7]==="["){for(b+=8;b<m.length;b++)if(m[b]==="]"&&m[b+1]==="]"&&m[b+2]===">"){b+=2;break}}return b}e.validate=function(m,b){b=Object.assign({},o,b);const E=[];let N=!1,O=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(let T=0;T<m.length;T++)if(m[T]==="<"&&m[T+1]==="?"){if(T+=2,T=s(m,T),T.err)return T}else{if(m[T]!=="<"){if(i(m[T]))continue;return d("InvalidChar","char '"+m[T]+"' is not expected.",v(m,T))}{let P=T;if(T++,m[T]==="!"){T=a(m,T);continue}{let R=!1;m[T]==="/"&&(R=!0,T++);let I="";for(;T<m.length&&m[T]!==">"&&m[T]!==" "&&m[T]!==" "&&m[T]!==`
|
|
`&&m[T]!=="\r";T++)I+=m[T];if(I=I.trim(),I[I.length-1]==="/"&&(I=I.substring(0,I.length-1),T--),C=I,!r.isName(C)){let A;return A=I.trim().length===0?"Invalid space after '<'.":"Tag '"+I+"' is an invalid name.",d("InvalidTag",A,v(m,T))}const _=c(m,T);if(_===!1)return d("InvalidAttr","Attributes for '"+I+"' have open quote.",v(m,T));let y=_.value;if(T=_.index,y[y.length-1]==="/"){const A=T-y.length;y=y.substring(0,y.length-1);const $=f(y,b);if($!==!0)return d($.err.code,$.err.msg,v(m,A+$.err.line));N=!0}else if(R){if(!_.tagClosed)return d("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",v(m,T));if(y.trim().length>0)return d("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",v(m,P));if(E.length===0)return d("InvalidTag","Closing tag '"+I+"' has not been opened.",v(m,P));{const A=E.pop();if(I!==A.tagName){let $=v(m,A.tagStartPos);return d("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+I+"'.",v(m,P))}E.length==0&&(O=!0)}}else{const A=f(y,b);if(A!==!0)return d(A.err.code,A.err.msg,v(m,T-y.length+A.err.line));if(O===!0)return d("InvalidXml","Multiple possible root nodes found.",v(m,T));b.unpairedTags.indexOf(I)!==-1||E.push({tagName:I,tagStartPos:P}),N=!0}for(T++;T<m.length;T++)if(m[T]==="<"){if(m[T+1]==="!"){T++,T=a(m,T);continue}if(m[T+1]!=="?")break;if(T=s(m,++T),T.err)return T}else if(m[T]==="&"){const A=h(m,T);if(A==-1)return d("InvalidChar","char '&' is not expected.",v(m,T));T=A}else if(O===!0&&!i(m[T]))return d("InvalidXml","Extra text at the end",v(m,T));m[T]==="<"&&T--}}}var C;return N?E.length==1?d("InvalidTag","Unclosed tag '"+E[0].tagName+"'.",v(m,E[0].tagStartPos)):!(E.length>0)||d("InvalidXml","Invalid '"+JSON.stringify(E.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const u='"',l="'";function c(m,b){let E="",N="",O=!1;for(;b<m.length;b++){if(m[b]===u||m[b]===l)N===""?N=m[b]:N!==m[b]||(N="");else if(m[b]===">"&&N===""){O=!0;break}E+=m[b]}return N===""&&{value:E,index:b,tagClosed:O}}const p=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f(m,b){const E=r.getAllMatches(m,p),N={};for(let O=0;O<E.length;O++){if(E[O][1].length===0)return d("InvalidAttr","Attribute '"+E[O][2]+"' has no space in starting.",x(E[O]));if(E[O][3]!==void 0&&E[O][4]===void 0)return d("InvalidAttr","Attribute '"+E[O][2]+"' is without value.",x(E[O]));if(E[O][3]===void 0&&!b.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+E[O][2]+"' is not allowed.",x(E[O]));const C=E[O][2];if(!g(C))return d("InvalidAttr","Attribute '"+C+"' is an invalid name.",x(E[O]));if(N.hasOwnProperty(C))return d("InvalidAttr","Attribute '"+C+"' is repeated.",x(E[O]));N[C]=1}return!0}function h(m,b){if(m[++b]===";")return-1;if(m[b]==="#")return function(N,O){let C=/\d/;for(N[O]==="x"&&(O++,C=/[\da-fA-F]/);O<N.length;O++){if(N[O]===";")return O;if(!N[O].match(C))break}return-1}(m,++b);let E=0;for(;b<m.length;b++,E++)if(!(m[b].match(/\w/)&&E<20)){if(m[b]===";")break;return-1}return b}function d(m,b,E){return{err:{code:m,msg:b,line:E.line||E,col:E.col}}}function g(m){return r.isName(m)}function v(m,b){const E=m.substring(0,b).split(/\r?\n/);return{line:E.length,col:E[E.length-1].length+1}}function x(m){return m.startIndex+m[1].length}},221:(t,e,n)=>{const r=n(87),o=n(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,p){return p},attributeValueProcessor:function(c,p){return p},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(c){this.options=Object.assign({},i,c),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=`>
|
|
`,this.newLine=`
|
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(c,p,f,h){const d=this.j2x(c,f+1,h.concat(p));return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],p,d.attrStr,f):this.buildObjectNode(d.val,p,d.attrStr,f)}function u(c){return this.options.indentBy.repeat(c)}function l(c){return!(!c.startsWith(this.options.attributeNamePrefix)||c===this.options.textNodeName)&&c.substr(this.attrPrefixLen)}s.prototype.build=function(c){return this.options.preserveOrder?r(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0,[]).val)},s.prototype.j2x=function(c,p,f){let h="",d="";const g=f.join(".");for(let v in c)if(Object.prototype.hasOwnProperty.call(c,v))if(c[v]===void 0)this.isAttribute(v)&&(d+="");else if(c[v]===null)this.isAttribute(v)?d+="":v[0]==="?"?d+=this.indentate(p)+"<"+v+"?"+this.tagEndChar:d+=this.indentate(p)+"<"+v+"/"+this.tagEndChar;else if(c[v]instanceof Date)d+=this.buildTextValNode(c[v],v,"",p);else if(typeof c[v]!="object"){const x=this.isAttribute(v);if(x&&!this.ignoreAttributesFn(x,g))h+=this.buildAttrPairStr(x,""+c[v]);else if(!x)if(v===this.options.textNodeName){let m=this.options.tagValueProcessor(v,""+c[v]);d+=this.replaceEntitiesValue(m)}else d+=this.buildTextValNode(c[v],v,"",p)}else if(Array.isArray(c[v])){const x=c[v].length;let m="",b="";for(let E=0;E<x;E++){const N=c[v][E];if(N!==void 0)if(N===null)v[0]==="?"?d+=this.indentate(p)+"<"+v+"?"+this.tagEndChar:d+=this.indentate(p)+"<"+v+"/"+this.tagEndChar;else if(typeof N=="object")if(this.options.oneListGroup){const O=this.j2x(N,p+1,f.concat(v));m+=O.val,this.options.attributesGroupName&&N.hasOwnProperty(this.options.attributesGroupName)&&(b+=O.attrStr)}else m+=this.processTextOrObjNode(N,v,p,f);else if(this.options.oneListGroup){let O=this.options.tagValueProcessor(v,N);O=this.replaceEntitiesValue(O),m+=O}else m+=this.buildTextValNode(N,v,"",p)}this.options.oneListGroup&&(m=this.buildObjectNode(m,v,b,p)),d+=m}else if(this.options.attributesGroupName&&v===this.options.attributesGroupName){const x=Object.keys(c[v]),m=x.length;for(let b=0;b<m;b++)h+=this.buildAttrPairStr(x[b],""+c[v][x[b]])}else d+=this.processTextOrObjNode(c[v],v,p,f);return{attrStr:h,val:d}},s.prototype.buildAttrPairStr=function(c,p){return p=this.options.attributeValueProcessor(c,""+p),p=this.replaceEntitiesValue(p),this.options.suppressBooleanAttributes&&p==="true"?" "+c:" "+c+'="'+p+'"'},s.prototype.buildObjectNode=function(c,p,f,h){if(c==="")return p[0]==="?"?this.indentate(h)+"<"+p+f+"?"+this.tagEndChar:this.indentate(h)+"<"+p+f+this.closeTag(p)+this.tagEndChar;{let d="</"+p+this.tagEndChar,g="";return p[0]==="?"&&(g="?",d=""),!f&&f!==""||c.indexOf("<")!==-1?this.options.commentPropName!==!1&&p===this.options.commentPropName&&g.length===0?this.indentate(h)+`<!--${c}-->`+this.newLine:this.indentate(h)+"<"+p+f+g+this.tagEndChar+c+this.indentate(h)+d:this.indentate(h)+"<"+p+f+g+">"+c+d}},s.prototype.closeTag=function(c){let p="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(p="/"):p=this.options.suppressEmptyNode?"/":`></${c}`,p},s.prototype.buildTextValNode=function(c,p,f,h){if(this.options.cdataPropName!==!1&&p===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&p===this.options.commentPropName)return this.indentate(h)+`<!--${c}-->`+this.newLine;if(p[0]==="?")return this.indentate(h)+"<"+p+f+"?"+this.tagEndChar;{let d=this.options.tagValueProcessor(p,c);return d=this.replaceEntitiesValue(d),d===""?this.indentate(h)+"<"+p+f+this.closeTag(p)+this.tagEndChar:this.indentate(h)+"<"+p+f+">"+d+"</"+p+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let p=0;p<this.options.entities.length;p++){const f=this.options.entities[p];c=c.replace(f.regex,f.val)}return c},t.exports=s},87:t=>{function e(s,a,u,l){let c="",p=!1;for(let f=0;f<s.length;f++){const h=s[f],d=n(h);if(d===void 0)continue;let g="";if(g=u.length===0?d:`${u}.${d}`,d===a.textNodeName){let b=h[d];o(g,a)||(b=a.tagValueProcessor(d,b),b=i(b,a)),p&&(c+=l),c+=b,p=!1;continue}if(d===a.cdataPropName){p&&(c+=l),c+=`<![CDATA[${h[d][0][a.textNodeName]}]]>`,p=!1;continue}if(d===a.commentPropName){c+=l+`<!--${h[d][0][a.textNodeName]}-->`,p=!0;continue}if(d[0]==="?"){const b=r(h[":@"],a),E=d==="?xml"?"":l;let N=h[d][0][a.textNodeName];N=N.length!==0?" "+N:"",c+=E+`<${d}${N}${b}?>`,p=!0;continue}let v=l;v!==""&&(v+=a.indentBy);const x=l+`<${d}${r(h[":@"],a)}`,m=e(h[d],a,g,v);a.unpairedTags.indexOf(d)!==-1?a.suppressUnpairedNode?c+=x+">":c+=x+"/>":m&&m.length!==0||!a.suppressEmptyNode?m&&m.endsWith(">")?c+=x+`>${m}${l}</${d}>`:(c+=x+">",m&&l!==""&&(m.includes("/>")||m.includes("</"))?c+=l+a.indentBy+m+l:c+=m,c+=`</${d}>`):c+=x+"/>",p=!0}return c}function n(s){const a=Object.keys(s);for(let u=0;u<a.length;u++){const l=a[u];if(s.hasOwnProperty(l)&&l!==":@")return l}}function r(s,a){let u="";if(s&&!a.ignoreAttributes)for(let l in s){if(!s.hasOwnProperty(l))continue;let c=a.attributeValueProcessor(l,s[l]);c=i(c,a),c===!0&&a.suppressBooleanAttributes?u+=` ${l.substr(a.attributeNamePrefix.length)}`:u+=` ${l.substr(a.attributeNamePrefix.length)}="${c}"`}return u}function o(s,a){let u=(s=s.substr(0,s.length-a.textNodeName.length-1)).substr(s.lastIndexOf(".")+1);for(let l in a.stopNodes)if(a.stopNodes[l]===s||a.stopNodes[l]==="*."+u)return!0;return!1}function i(s,a){if(s&&s.length>0&&a.processEntities)for(let u=0;u<a.entities.length;u++){const l=a.entities[u];s=s.replace(l.regex,l.val)}return s}t.exports=function(s,a){let u="";return a.format&&a.indentBy.length>0&&(u=`
|
|
`),e(s,a,"",u)}},193:(t,e,n)=>{const r=n(705);function o(p,f){let h="";for(;f<p.length&&p[f]!=="'"&&p[f]!=='"';f++)h+=p[f];if(h=h.trim(),h.indexOf(" ")!==-1)throw new Error("External entites are not supported");const d=p[f++];let g="";for(;f<p.length&&p[f]!==d;f++)g+=p[f];return[h,g,f]}function i(p,f){return p[f+1]==="!"&&p[f+2]==="-"&&p[f+3]==="-"}function s(p,f){return p[f+1]==="!"&&p[f+2]==="E"&&p[f+3]==="N"&&p[f+4]==="T"&&p[f+5]==="I"&&p[f+6]==="T"&&p[f+7]==="Y"}function a(p,f){return p[f+1]==="!"&&p[f+2]==="E"&&p[f+3]==="L"&&p[f+4]==="E"&&p[f+5]==="M"&&p[f+6]==="E"&&p[f+7]==="N"&&p[f+8]==="T"}function u(p,f){return p[f+1]==="!"&&p[f+2]==="A"&&p[f+3]==="T"&&p[f+4]==="T"&&p[f+5]==="L"&&p[f+6]==="I"&&p[f+7]==="S"&&p[f+8]==="T"}function l(p,f){return p[f+1]==="!"&&p[f+2]==="N"&&p[f+3]==="O"&&p[f+4]==="T"&&p[f+5]==="A"&&p[f+6]==="T"&&p[f+7]==="I"&&p[f+8]==="O"&&p[f+9]==="N"}function c(p){if(r.isName(p))return p;throw new Error(`Invalid entity name ${p}`)}t.exports=function(p,f){const h={};if(p[f+3]!=="O"||p[f+4]!=="C"||p[f+5]!=="T"||p[f+6]!=="Y"||p[f+7]!=="P"||p[f+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{f+=9;let d=1,g=!1,v=!1,x="";for(;f<p.length;f++)if(p[f]!=="<"||v)if(p[f]===">"){if(v?p[f-1]==="-"&&p[f-2]==="-"&&(v=!1,d--):d--,d===0)break}else p[f]==="["?g=!0:x+=p[f];else{if(g&&s(p,f)){let m,b;f+=7,[m,b,f]=o(p,f+1),b.indexOf("&")===-1&&(h[c(m)]={regx:RegExp(`&${m};`,"g"),val:b})}else if(g&&a(p,f))f+=8;else if(g&&u(p,f))f+=8;else if(g&&l(p,f))f+=9;else{if(!i)throw new Error("Invalid DOCTYPE");v=!0}d++,x=""}if(d!==0)throw new Error("Unclosed DOCTYPE")}return{entities:h,i:f}}},63:(t,e)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,o){return o},attributeValueProcessor:function(r,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,o,i){return r}};e.buildOptions=function(r){return Object.assign({},n,r)},e.defaultOptions=n},299:(t,e,n)=>{const r=n(705),o=n(365),i=n(193),s=n(494),a=n(118);function u(O){const C=Object.keys(O);for(let T=0;T<C.length;T++){const P=C[T];this.lastEntities[P]={regex:new RegExp("&"+P+";","g"),val:O[P]}}}function l(O,C,T,P,R,I,_){if(O!==void 0&&(this.options.trimValues&&!P&&(O=O.trim()),O.length>0)){_||(O=this.replaceEntitiesValue(O));const y=this.options.tagValueProcessor(C,O,T,R,I);return y==null?O:typeof y!=typeof O||y!==O?y:this.options.trimValues||O.trim()===O?N(O,this.options.parseTagValue,this.options.numberParseOptions):O}}function c(O){if(this.options.removeNSPrefix){const C=O.split(":"),T=O.charAt(0)==="/"?"/":"";if(C[0]==="xmlns")return"";C.length===2&&(O=T+C[1])}return O}const p=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f(O,C,T){if(this.options.ignoreAttributes!==!0&&typeof O=="string"){const P=r.getAllMatches(O,p),R=P.length,I={};for(let _=0;_<R;_++){const y=this.resolveNameSpace(P[_][1]);if(this.ignoreAttributesFn(y,C))continue;let A=P[_][4],$=this.options.attributeNamePrefix+y;if(y.length)if(this.options.transformAttributeName&&($=this.options.transformAttributeName($)),$==="__proto__"&&($="#__proto__"),A!==void 0){this.options.trimValues&&(A=A.trim()),A=this.replaceEntitiesValue(A);const k=this.options.attributeValueProcessor(y,A,C);I[$]=k==null?A:typeof k!=typeof A||k!==A?k:N(A,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(I[$]=!0)}if(!Object.keys(I).length)return;if(this.options.attributesGroupName){const _={};return _[this.options.attributesGroupName]=I,_}return I}}const h=function(O){O=O.replace(/\r\n?/g,`
|
|
`);const C=new o("!xml");let T=C,P="",R="";for(let I=0;I<O.length;I++)if(O[I]==="<")if(O[I+1]==="/"){const _=m(O,">",I,"Closing Tag is not closed.");let y=O.substring(I+2,_).trim();if(this.options.removeNSPrefix){const k=y.indexOf(":");k!==-1&&(y=y.substr(k+1))}this.options.transformTagName&&(y=this.options.transformTagName(y)),T&&(P=this.saveTextToParentTag(P,T,R));const A=R.substring(R.lastIndexOf(".")+1);if(y&&this.options.unpairedTags.indexOf(y)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${y}>`);let $=0;A&&this.options.unpairedTags.indexOf(A)!==-1?($=R.lastIndexOf(".",R.lastIndexOf(".")-1),this.tagsNodeStack.pop()):$=R.lastIndexOf("."),R=R.substring(0,$),T=this.tagsNodeStack.pop(),P="",I=_}else if(O[I+1]==="?"){let _=b(O,I,!1,"?>");if(!_)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,T,R),!(this.options.ignoreDeclaration&&_.tagName==="?xml"||this.options.ignorePiTags)){const y=new o(_.tagName);y.add(this.options.textNodeName,""),_.tagName!==_.tagExp&&_.attrExpPresent&&(y[":@"]=this.buildAttributesMap(_.tagExp,R,_.tagName)),this.addChild(T,y,R)}I=_.closeIndex+1}else if(O.substr(I+1,3)==="!--"){const _=m(O,"-->",I+4,"Comment is not closed.");if(this.options.commentPropName){const y=O.substring(I+4,_-2);P=this.saveTextToParentTag(P,T,R),T.add(this.options.commentPropName,[{[this.options.textNodeName]:y}])}I=_}else if(O.substr(I+1,2)==="!D"){const _=i(O,I);this.docTypeEntities=_.entities,I=_.i}else if(O.substr(I+1,2)==="!["){const _=m(O,"]]>",I,"CDATA is not closed.")-2,y=O.substring(I+9,_);P=this.saveTextToParentTag(P,T,R);let A=this.parseTextData(y,T.tagname,R,!0,!1,!0,!0);A==null&&(A=""),this.options.cdataPropName?T.add(this.options.cdataPropName,[{[this.options.textNodeName]:y}]):T.add(this.options.textNodeName,A),I=_+2}else{let _=b(O,I,this.options.removeNSPrefix),y=_.tagName;const A=_.rawTagName;let $=_.tagExp,k=_.attrExpPresent,U=_.closeIndex;this.options.transformTagName&&(y=this.options.transformTagName(y)),T&&P&&T.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,T,R,!1));const F=T;if(F&&this.options.unpairedTags.indexOf(F.tagname)!==-1&&(T=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),y!==C.tagname&&(R+=R?"."+y:y),this.isItStopNode(this.options.stopNodes,R,y)){let M="";if($.length>0&&$.lastIndexOf("/")===$.length-1)y[y.length-1]==="/"?(y=y.substr(0,y.length-1),R=R.substr(0,R.length-1),$=y):$=$.substr(0,$.length-1),I=_.closeIndex;else if(this.options.unpairedTags.indexOf(y)!==-1)I=_.closeIndex;else{const j=this.readStopNodeData(O,A,U+1);if(!j)throw new Error(`Unexpected end of ${A}`);I=j.i,M=j.tagContent}const z=new o(y);y!==$&&k&&(z[":@"]=this.buildAttributesMap($,R,y)),M&&(M=this.parseTextData(M,y,R,!0,k,!0,!0)),R=R.substr(0,R.lastIndexOf(".")),z.add(this.options.textNodeName,M),this.addChild(T,z,R)}else{if($.length>0&&$.lastIndexOf("/")===$.length-1){y[y.length-1]==="/"?(y=y.substr(0,y.length-1),R=R.substr(0,R.length-1),$=y):$=$.substr(0,$.length-1),this.options.transformTagName&&(y=this.options.transformTagName(y));const M=new o(y);y!==$&&k&&(M[":@"]=this.buildAttributesMap($,R,y)),this.addChild(T,M,R),R=R.substr(0,R.lastIndexOf("."))}else{const M=new o(y);this.tagsNodeStack.push(T),y!==$&&k&&(M[":@"]=this.buildAttributesMap($,R,y)),this.addChild(T,M,R),T=M}P="",I=U}}else P+=O[I];return C.child};function d(O,C,T){const P=this.options.updateTag(C.tagname,T,C[":@"]);P===!1||(typeof P=="string"&&(C.tagname=P),O.addChild(C))}const g=function(O){if(this.options.processEntities){for(let C in this.docTypeEntities){const T=this.docTypeEntities[C];O=O.replace(T.regx,T.val)}for(let C in this.lastEntities){const T=this.lastEntities[C];O=O.replace(T.regex,T.val)}if(this.options.htmlEntities)for(let C in this.htmlEntities){const T=this.htmlEntities[C];O=O.replace(T.regex,T.val)}O=O.replace(this.ampEntity.regex,this.ampEntity.val)}return O};function v(O,C,T,P){return O&&(P===void 0&&(P=Object.keys(C.child).length===0),(O=this.parseTextData(O,C.tagname,T,!1,!!C[":@"]&&Object.keys(C[":@"]).length!==0,P))!==void 0&&O!==""&&C.add(this.options.textNodeName,O),O=""),O}function x(O,C,T){const P="*."+T;for(const R in O){const I=O[R];if(P===I||C===I)return!0}return!1}function m(O,C,T,P){const R=O.indexOf(C,T);if(R===-1)throw new Error(P);return R+C.length-1}function b(O,C,T){const P=function(k,U){let F,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",z="";for(let j=U;j<k.length;j++){let B=k[j];if(F)B===F&&(F="");else if(B==='"'||B==="'")F=B;else if(B===M[0]){if(!M[1])return{data:z,index:j};if(k[j+1]===M[1])return{data:z,index:j}}else B===" "&&(B=" ");z+=B}}(O,C+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!P)return;let R=P.data;const I=P.index,_=R.search(/\s/);let y=R,A=!0;_!==-1&&(y=R.substring(0,_),R=R.substring(_+1).trimStart());const $=y;if(T){const k=y.indexOf(":");k!==-1&&(y=y.substr(k+1),A=y!==P.data.substr(k+1))}return{tagName:y,tagExp:R,closeIndex:I,attrExpPresent:A,rawTagName:$}}function E(O,C,T){const P=T;let R=1;for(;T<O.length;T++)if(O[T]==="<")if(O[T+1]==="/"){const I=m(O,">",T,`${C} is not closed`);if(O.substring(T+2,I).trim()===C&&(R--,R===0))return{tagContent:O.substring(P,T),i:I};T=I}else if(O[T+1]==="?")T=m(O,"?>",T+1,"StopNode is not closed.");else if(O.substr(T+1,3)==="!--")T=m(O,"-->",T+3,"StopNode is not closed.");else if(O.substr(T+1,2)==="![")T=m(O,"]]>",T,"StopNode is not closed.")-2;else{const I=b(O,T,">");I&&((I&&I.tagName)===C&&I.tagExp[I.tagExp.length-1]!=="/"&&R++,T=I.closeIndex)}}function N(O,C,T){if(C&&typeof O=="string"){const P=O.trim();return P==="true"||P!=="false"&&s(O,T)}return r.isExist(O)?O:""}t.exports=class{constructor(O){this.options=O,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(C,T)=>String.fromCharCode(Number.parseInt(T,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(C,T)=>String.fromCharCode(Number.parseInt(T,16))}},this.addExternalEntities=u,this.parseXml=h,this.parseTextData=l,this.resolveNameSpace=c,this.buildAttributesMap=f,this.isItStopNode=x,this.replaceEntitiesValue=g,this.readStopNodeData=E,this.saveTextToParentTag=v,this.addChild=d,this.ignoreAttributesFn=a(this.options.ignoreAttributes)}}},338:(t,e,n)=>{const{buildOptions:r}=n(63),o=n(299),{prettify:i}=n(728),s=n(31);t.exports=class{constructor(a){this.externalEntities={},this.options=r(a)}parse(a,u){if(typeof a!="string"){if(!a.toString)throw new Error("XML data is accepted in String or Bytes[] form.");a=a.toString()}if(u){u===!0&&(u={});const p=s.validate(a,u);if(p!==!0)throw Error(`${p.err.msg}:${p.err.line}:${p.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const c=l.parseXml(a);return this.options.preserveOrder||c===void 0?c:i(c,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}},728:(t,e)=>{function n(s,a,u){let l;const c={};for(let p=0;p<s.length;p++){const f=s[p],h=r(f);let d="";if(d=u===void 0?h:u+"."+h,h===a.textNodeName)l===void 0?l=f[h]:l+=""+f[h];else{if(h===void 0)continue;if(f[h]){let g=n(f[h],a,d);const v=i(g,a);f[":@"]?o(g,f[":@"],d,a):Object.keys(g).length!==1||g[a.textNodeName]===void 0||a.alwaysCreateTextNode?Object.keys(g).length===0&&(a.alwaysCreateTextNode?g[a.textNodeName]="":g=""):g=g[a.textNodeName],c[h]!==void 0&&c.hasOwnProperty(h)?(Array.isArray(c[h])||(c[h]=[c[h]]),c[h].push(g)):a.isArray(h,d,v)?c[h]=[g]:c[h]=g}}}return typeof l=="string"?l.length>0&&(c[a.textNodeName]=l):l!==void 0&&(c[a.textNodeName]=l),c}function r(s){const a=Object.keys(s);for(let u=0;u<a.length;u++){const l=a[u];if(l!==":@")return l}}function o(s,a,u,l){if(a){const c=Object.keys(a),p=c.length;for(let f=0;f<p;f++){const h=c[f];l.isArray(h,u+"."+h,!0,!0)?s[h]=[a[h]]:s[h]=a[h]}}}function i(s,a){const{textNodeName:u}=a,l=Object.keys(s).length;return l===0||!(l!==1||!s[u]&&typeof s[u]!="boolean"&&s[u]!==0)}e.prettify=function(s,a){return n(s,a)}},365:t=>{t.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,n){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:n})}addChild(e){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},135:t=>{function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}t.exports=function(n){return n!=null&&(e(n)||function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}(n)||!!n._isBuffer)}},542:(t,e,n)=>{(function(){var r=n(298),o=n(526).utf8,i=n(135),s=n(526).bin,a=function(u,l){u.constructor==String?u=l&&l.encoding==="binary"?s.stringToBytes(u):o.stringToBytes(u):i(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var c=r.bytesToWords(u),p=8*u.length,f=1732584193,h=-271733879,d=-1732584194,g=271733878,v=0;v<c.length;v++)c[v]=16711935&(c[v]<<8|c[v]>>>24)|4278255360&(c[v]<<24|c[v]>>>8);c[p>>>5]|=128<<p%32,c[14+(p+64>>>9<<4)]=p;var x=a._ff,m=a._gg,b=a._hh,E=a._ii;for(v=0;v<c.length;v+=16){var N=f,O=h,C=d,T=g;f=x(f,h,d,g,c[v+0],7,-680876936),g=x(g,f,h,d,c[v+1],12,-389564586),d=x(d,g,f,h,c[v+2],17,606105819),h=x(h,d,g,f,c[v+3],22,-1044525330),f=x(f,h,d,g,c[v+4],7,-176418897),g=x(g,f,h,d,c[v+5],12,1200080426),d=x(d,g,f,h,c[v+6],17,-1473231341),h=x(h,d,g,f,c[v+7],22,-45705983),f=x(f,h,d,g,c[v+8],7,1770035416),g=x(g,f,h,d,c[v+9],12,-1958414417),d=x(d,g,f,h,c[v+10],17,-42063),h=x(h,d,g,f,c[v+11],22,-1990404162),f=x(f,h,d,g,c[v+12],7,1804603682),g=x(g,f,h,d,c[v+13],12,-40341101),d=x(d,g,f,h,c[v+14],17,-1502002290),f=m(f,h=x(h,d,g,f,c[v+15],22,1236535329),d,g,c[v+1],5,-165796510),g=m(g,f,h,d,c[v+6],9,-1069501632),d=m(d,g,f,h,c[v+11],14,643717713),h=m(h,d,g,f,c[v+0],20,-373897302),f=m(f,h,d,g,c[v+5],5,-701558691),g=m(g,f,h,d,c[v+10],9,38016083),d=m(d,g,f,h,c[v+15],14,-660478335),h=m(h,d,g,f,c[v+4],20,-405537848),f=m(f,h,d,g,c[v+9],5,568446438),g=m(g,f,h,d,c[v+14],9,-1019803690),d=m(d,g,f,h,c[v+3],14,-187363961),h=m(h,d,g,f,c[v+8],20,1163531501),f=m(f,h,d,g,c[v+13],5,-1444681467),g=m(g,f,h,d,c[v+2],9,-51403784),d=m(d,g,f,h,c[v+7],14,1735328473),f=b(f,h=m(h,d,g,f,c[v+12],20,-1926607734),d,g,c[v+5],4,-378558),g=b(g,f,h,d,c[v+8],11,-2022574463),d=b(d,g,f,h,c[v+11],16,1839030562),h=b(h,d,g,f,c[v+14],23,-35309556),f=b(f,h,d,g,c[v+1],4,-1530992060),g=b(g,f,h,d,c[v+4],11,1272893353),d=b(d,g,f,h,c[v+7],16,-155497632),h=b(h,d,g,f,c[v+10],23,-1094730640),f=b(f,h,d,g,c[v+13],4,681279174),g=b(g,f,h,d,c[v+0],11,-358537222),d=b(d,g,f,h,c[v+3],16,-722521979),h=b(h,d,g,f,c[v+6],23,76029189),f=b(f,h,d,g,c[v+9],4,-640364487),g=b(g,f,h,d,c[v+12],11,-421815835),d=b(d,g,f,h,c[v+15],16,530742520),f=E(f,h=b(h,d,g,f,c[v+2],23,-995338651),d,g,c[v+0],6,-198630844),g=E(g,f,h,d,c[v+7],10,1126891415),d=E(d,g,f,h,c[v+14],15,-1416354905),h=E(h,d,g,f,c[v+5],21,-57434055),f=E(f,h,d,g,c[v+12],6,1700485571),g=E(g,f,h,d,c[v+3],10,-1894986606),d=E(d,g,f,h,c[v+10],15,-1051523),h=E(h,d,g,f,c[v+1],21,-2054922799),f=E(f,h,d,g,c[v+8],6,1873313359),g=E(g,f,h,d,c[v+15],10,-30611744),d=E(d,g,f,h,c[v+6],15,-1560198380),h=E(h,d,g,f,c[v+13],21,1309151649),f=E(f,h,d,g,c[v+4],6,-145523070),g=E(g,f,h,d,c[v+11],10,-1120210379),d=E(d,g,f,h,c[v+2],15,718787259),h=E(h,d,g,f,c[v+9],21,-343485551),f=f+N>>>0,h=h+O>>>0,d=d+C>>>0,g=g+T>>>0}return r.endian([f,h,d,g])};a._ff=function(u,l,c,p,f,h,d){var g=u+(l&c|~l&p)+(f>>>0)+d;return(g<<h|g>>>32-h)+l},a._gg=function(u,l,c,p,f,h,d){var g=u+(l&p|c&~p)+(f>>>0)+d;return(g<<h|g>>>32-h)+l},a._hh=function(u,l,c,p,f,h,d){var g=u+(l^c^p)+(f>>>0)+d;return(g<<h|g>>>32-h)+l},a._ii=function(u,l,c,p,f,h,d){var g=u+(c^(l|~p))+(f>>>0)+d;return(g<<h|g>>>32-h)+l},a._blocksize=16,a._digestsize=16,t.exports=function(u,l){if(u==null)throw new Error("Illegal argument "+u);var c=r.wordsToBytes(a(u,l));return l&&l.asBytes?c:l&&l.asString?s.bytesToString(c):r.bytesToHex(c)}})()},285:(t,e,n)=>{var r=n(2);t.exports=function(x){return x?(x.substr(0,2)==="{}"&&(x="\\{\\}"+x.substr(2)),v(function(m){return m.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(s).split("\\,").join(a).split("\\.").join(u)}(x),!0).map(c)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(x){return parseInt(x,10)==x?parseInt(x,10):x.charCodeAt(0)}function c(x){return x.split(o).join("\\").split(i).join("{").split(s).join("}").split(a).join(",").split(u).join(".")}function p(x){if(!x)return[""];var m=[],b=r("{","}",x);if(!b)return x.split(",");var E=b.pre,N=b.body,O=b.post,C=E.split(",");C[C.length-1]+="{"+N+"}";var T=p(O);return O.length&&(C[C.length-1]+=T.shift(),C.push.apply(C,T)),m.push.apply(m,C),m}function f(x){return"{"+x+"}"}function h(x){return/^-?0\d/.test(x)}function d(x,m){return x<=m}function g(x,m){return x>=m}function v(x,m){var b=[],E=r("{","}",x);if(!E)return[x];var N=E.pre,O=E.post.length?v(E.post,!1):[""];if(/\$$/.test(E.pre))for(var C=0;C<O.length;C++){var T=N+"{"+E.body+"}"+O[C];b.push(T)}else{var P,R,I=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(E.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(E.body),y=I||_,A=E.body.indexOf(",")>=0;if(!y&&!A)return E.post.match(/,.*\}/)?v(x=E.pre+"{"+E.body+s+E.post):[x];if(y)P=E.body.split(/\.\./);else if((P=p(E.body)).length===1&&(P=v(P[0],!1).map(f)).length===1)return O.map(function(wt){return E.pre+P[0]+wt});if(y){var $=l(P[0]),k=l(P[1]),U=Math.max(P[0].length,P[1].length),F=P.length==3?Math.abs(l(P[2])):1,M=d;k<$&&(F*=-1,M=g);var z=P.some(h);R=[];for(var j=$;M(j,k);j+=F){var B;if(_)(B=String.fromCharCode(j))==="\\"&&(B="");else if(B=String(j),z){var V=U-B.length;if(V>0){var lt=new Array(V+1).join("0");B=j<0?"-"+lt+B.slice(1):lt+B}}R.push(B)}}else{R=[];for(var q=0;q<P.length;q++)R.push.apply(R,v(P[q],!1))}for(q=0;q<R.length;q++)for(C=0;C<O.length;C++)T=N+R[q]+O[C],(!m||y||T)&&b.push(T)}return b}},829:t=>{function e(l){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(l)}function n(l){var c=typeof Map=="function"?new Map:void 0;return n=function(p){if(p===null||(f=p,Function.toString.call(f).indexOf("[native code]")===-1))return p;var f;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(p))return c.get(p);c.set(p,h)}function h(){return r(p,arguments,i(this).constructor)}return h.prototype=Object.create(p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),o(h,p)},n(l)}function r(l,c,p){return r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(f,h,d){var g=[null];g.push.apply(g,h);var v=new(Function.bind.apply(f,g));return d&&o(v,d.prototype),v},r.apply(null,arguments)}function o(l,c){return o=Object.setPrototypeOf||function(p,f){return p.__proto__=f,p},o(l,c)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},i(l)}var s=function(l){function c(p){var f;return function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(f=function(h,d){return!d||e(d)!=="object"&&typeof d!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(h):d}(this,i(c).call(this,p))).name="ObjectPrototypeMutationError",f}return function(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),f&&o(p,f)}(c,l),c}(n(Error));function a(l,c){for(var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=c.split("."),h=f.length,d=function(x){var m=f[x];if(!l)return{v:void 0};if(m==="+"){if(Array.isArray(l))return{v:l.map(function(E,N){var O=f.slice(x+1);return O.length>0?a(E,O.join("."),p):p(l,N,f,x)})};var b=f.slice(0,x).join(".");throw new Error("Object at wildcard (".concat(b,") is not an array"))}l=p(l,m,f,x)},g=0;g<h;g++){var v=d(g);if(e(v)==="object")return v.v}return l}function u(l,c){return l.length===c+1}t.exports={set:function(l,c,p){if(e(l)!="object"||l===null||c===void 0)return l;if(typeof c=="number")return l[c]=p,l[c];try{return a(l,c,function(f,h,d,g){if(f===Reflect.getPrototypeOf({}))throw new s("Attempting to mutate Object.prototype");if(!f[h]){var v=Number.isInteger(Number(d[g+1])),x=d[g+1]==="+";f[h]=v||x?[]:{}}return u(d,g)&&(f[h]=p),f[h]})}catch(f){if(f instanceof s)throw f;return l}},get:function(l,c){if(e(l)!="object"||l===null||c===void 0)return l;if(typeof c=="number")return l[c];try{return a(l,c,function(p,f){return p[f]})}catch{return l}},has:function(l,c){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e(l)!="object"||l===null||c===void 0)return!1;if(typeof c=="number")return c in l;try{var f=!1;return a(l,c,function(h,d,g,v){if(!u(g,v))return h&&h[d];f=p.own?h.hasOwnProperty(d):d in h}),f}catch{return!1}},hasOwn:function(l,c,p){return this.has(l,c,p||{own:!0})},isIn:function(l,c,p){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(l)!="object"||l===null||c===void 0)return!1;try{var h=!1,d=!1;return a(l,c,function(g,v,x,m){return h=h||g===p||!!g&&g[v]===p,d=u(x,m)&&e(g)==="object"&&v in g,g&&g[v]}),f.validPath?h&&d:h}catch{return!1}},ObjectPrototypeMutationError:s}},47:(t,e,n)=>{var r=n(410),o=function(l){return typeof l=="string"};function i(l,c){for(var p=[],f=0;f<l.length;f++){var h=l[f];h&&h!=="."&&(h===".."?p.length&&p[p.length-1]!==".."?p.pop():c&&p.push(".."):p.push(h))}return p}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a={};function u(l){return s.exec(l).slice(1)}a.resolve=function(){for(var l="",c=!1,p=arguments.length-1;p>=-1&&!c;p--){var f=p>=0?arguments[p]:Ke.cwd();if(!o(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(l=f+"/"+l,c=f.charAt(0)==="/")}return(c?"/":"")+(l=i(l.split("/"),!c).join("/"))||"."},a.normalize=function(l){var c=a.isAbsolute(l),p=l.substr(-1)==="/";return(l=i(l.split("/"),!c).join("/"))||c||(l="."),l&&p&&(l+="/"),(c?"/":"")+l},a.isAbsolute=function(l){return l.charAt(0)==="/"},a.join=function(){for(var l="",c=0;c<arguments.length;c++){var p=arguments[c];if(!o(p))throw new TypeError("Arguments to path.join must be strings");p&&(l+=l?"/"+p:p)}return a.normalize(l)},a.relative=function(l,c){function p(m){for(var b=0;b<m.length&&m[b]==="";b++);for(var E=m.length-1;E>=0&&m[E]==="";E--);return b>E?[]:m.slice(b,E+1)}l=a.resolve(l).substr(1),c=a.resolve(c).substr(1);for(var f=p(l.split("/")),h=p(c.split("/")),d=Math.min(f.length,h.length),g=d,v=0;v<d;v++)if(f[v]!==h[v]){g=v;break}var x=[];for(v=g;v<f.length;v++)x.push("..");return(x=x.concat(h.slice(g))).join("/")},a._makeLong=function(l){return l},a.dirname=function(l){var c=u(l),p=c[0],f=c[1];return p||f?(f&&(f=f.substr(0,f.length-1)),p+f):"."},a.basename=function(l,c){var p=u(l)[2];return c&&p.substr(-1*c.length)===c&&(p=p.substr(0,p.length-c.length)),p},a.extname=function(l){return u(l)[3]},a.format=function(l){if(!r.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var c=l.root||"";if(!o(c))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+a.sep:"")+(l.base||"")},a.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var c=u(l);if(!c||c.length!==4)throw new TypeError("Invalid path '"+l+"'");return c[1]=c[1]||"",c[2]=c[2]||"",c[3]=c[3]||"",{root:c[0],dir:c[0]+c[1].slice(0,c[1].length-1),base:c[2],ext:c[3],name:c[2].slice(0,c[2].length-c[3].length)}},a.sep="/",a.delimiter=":",t.exports=a},647:(t,e)=>{var n=Object.prototype.hasOwnProperty;function r(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}e.stringify=function(i,s){s=s||"";var a,u,l=[];for(u in typeof s!="string"&&(s="?"),i)if(n.call(i,u)){if((a=i[u])||a!=null&&!isNaN(a)||(a=""),u=o(u),a=o(a),u===null||a===null)continue;l.push(u+"="+a)}return l.length?s+l.join("&"):""},e.parse=function(i){for(var s,a=/([^=?#&]+)=?([^&]*)/g,u={};s=a.exec(i);){var l=r(s[1]),c=r(s[2]);l===null||c===null||l in u||(u[l]=c)}return u}},670:t=>{t.exports=function(e,n){if(n=n.split(":")[0],!(e=+e))return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}},494:t=>{const e=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},r,i),!o||typeof o!="string")return o;let s=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(s))return o;if(i.hex&&e.test(s))return Number.parseInt(s,16);{const u=n.exec(s);if(u){const l=u[1],c=u[2];let p=((a=u[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a);const f=u[4]||u[6];if(!i.leadingZeros&&c.length>0&&l&&s[2]!=="."||!i.leadingZeros&&c.length>0&&!l&&s[1]!==".")return o;{const h=Number(s),d=""+h;return d.search(/[eE]/)!==-1||f?i.eNotation?h:o:s.indexOf(".")!==-1?d==="0"&&p===""||d===p||l&&d==="-"+p?h:o:c?p===d||l+p===d?h:o:s===d||s===l+d?h:o}}return o}var a}},737:(t,e,n)=>{var r=n(670),o=n(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function p(m){return(m||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(m,b){return g(b.protocol)?m.replace(/\\/g,"/"):m},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(m){var b,E=(typeof window<"u"?window:typeof Be<"u"?Be:typeof self<"u"?self:{}).location||{},N={},O=typeof(m=m||E);if(m.protocol==="blob:")N=new x(unescape(m.pathname),{});else if(O==="string")for(b in N=new x(m,{}),h)delete N[b];else if(O==="object"){for(b in m)b in h||(N[b]=m[b]);N.slashes===void 0&&(N.slashes=a.test(m.href))}return N}function g(m){return m==="file:"||m==="ftp:"||m==="http:"||m==="https:"||m==="ws:"||m==="wss:"}function v(m,b){m=(m=p(m)).replace(s,""),b=b||{};var E,N=l.exec(m),O=N[1]?N[1].toLowerCase():"",C=!!N[2],T=!!N[3],P=0;return C?T?(E=N[2]+N[3]+N[4],P=N[2].length+N[3].length):(E=N[2]+N[4],P=N[2].length):T?(E=N[3]+N[4],P=N[3].length):E=N[4],O==="file:"?P>=2&&(E=E.slice(2)):g(O)?E=N[4]:O?C&&(E=E.slice(2)):P>=2&&g(b.protocol)&&(E=N[4]),{protocol:O,slashes:C||g(O),slashesCount:P,rest:E}}function x(m,b,E){if(m=(m=p(m)).replace(s,""),!(this instanceof x))return new x(m,b,E);var N,O,C,T,P,R,I=f.slice(),_=typeof b,y=this,A=0;for(_!=="object"&&_!=="string"&&(E=b,b=null),E&&typeof E!="function"&&(E=o.parse),N=!(O=v(m||"",b=d(b))).protocol&&!O.slashes,y.slashes=O.slashes||N&&b.slashes,y.protocol=O.protocol||b.protocol||"",m=O.rest,(O.protocol==="file:"&&(O.slashesCount!==2||c.test(m))||!O.slashes&&(O.protocol||O.slashesCount<2||!g(y.protocol)))&&(I[3]=[/(.*)/,"pathname"]);A<I.length;A++)typeof(T=I[A])!="function"?(C=T[0],R=T[1],C!=C?y[R]=m:typeof C=="string"?~(P=C==="@"?m.lastIndexOf(C):m.indexOf(C))&&(typeof T[2]=="number"?(y[R]=m.slice(0,P),m=m.slice(P+T[2])):(y[R]=m.slice(P),m=m.slice(0,P))):(P=C.exec(m))&&(y[R]=P[1],m=m.slice(0,P.index)),y[R]=y[R]||N&&T[3]&&b[R]||"",T[4]&&(y[R]=y[R].toLowerCase())):m=T(m,y);E&&(y.query=E(y.query)),N&&b.slashes&&y.pathname.charAt(0)!=="/"&&(y.pathname!==""||b.pathname!=="")&&(y.pathname=function($,k){if($==="")return k;for(var U=(k||"/").split("/").slice(0,-1).concat($.split("/")),F=U.length,M=U[F-1],z=!1,j=0;F--;)U[F]==="."?U.splice(F,1):U[F]===".."?(U.splice(F,1),j++):j&&(F===0&&(z=!0),U.splice(F,1),j--);return z&&U.unshift(""),M!=="."&&M!==".."||U.push(""),U.join("/")}(y.pathname,b.pathname)),y.pathname.charAt(0)!=="/"&&g(y.protocol)&&(y.pathname="/"+y.pathname),r(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(~(P=y.auth.indexOf(":"))?(y.username=y.auth.slice(0,P),y.username=encodeURIComponent(decodeURIComponent(y.username)),y.password=y.auth.slice(P+1),y.password=encodeURIComponent(decodeURIComponent(y.password))):y.username=encodeURIComponent(decodeURIComponent(y.auth)),y.auth=y.password?y.username+":"+y.password:y.username),y.origin=y.protocol!=="file:"&&g(y.protocol)&&y.host?y.protocol+"//"+y.host:"null",y.href=y.toString()}x.prototype={set:function(m,b,E){var N=this;switch(m){case"query":typeof b=="string"&&b.length&&(b=(E||o.parse)(b)),N[m]=b;break;case"port":N[m]=b,r(b,N.protocol)?b&&(N.host=N.hostname+":"+b):(N.host=N.hostname,N[m]="");break;case"hostname":N[m]=b,N.port&&(b+=":"+N.port),N.host=b;break;case"host":N[m]=b,u.test(b)?(b=b.split(":"),N.port=b.pop(),N.hostname=b.join(":")):(N.hostname=b,N.port="");break;case"protocol":N.protocol=b.toLowerCase(),N.slashes=!E;break;case"pathname":case"hash":if(b){var O=m==="pathname"?"/":"#";N[m]=b.charAt(0)!==O?O+b:b}else N[m]=b;break;case"username":case"password":N[m]=encodeURIComponent(b);break;case"auth":var C=b.indexOf(":");~C?(N.username=b.slice(0,C),N.username=encodeURIComponent(decodeURIComponent(N.username)),N.password=b.slice(C+1),N.password=encodeURIComponent(decodeURIComponent(N.password))):N.username=encodeURIComponent(decodeURIComponent(b))}for(var T=0;T<f.length;T++){var P=f[T];P[4]&&(N[P[1]]=N[P[1]].toLowerCase())}return N.auth=N.password?N.username+":"+N.password:N.username,N.origin=N.protocol!=="file:"&&g(N.protocol)&&N.host?N.protocol+"//"+N.host:"null",N.href=N.toString(),N},toString:function(m){m&&typeof m=="function"||(m=o.stringify);var b,E=this,N=E.host,O=E.protocol;O&&O.charAt(O.length-1)!==":"&&(O+=":");var C=O+(E.protocol&&E.slashes||g(E.protocol)?"//":"");return E.username?(C+=E.username,E.password&&(C+=":"+E.password),C+="@"):E.password?(C+=":"+E.password,C+="@"):E.protocol!=="file:"&&g(E.protocol)&&!N&&E.pathname!=="/"&&(C+="@"),(N[N.length-1]===":"||u.test(E.hostname)&&!E.port)&&(N+=":"),C+=N+E.pathname,(b=typeof E.query=="object"?m(E.query):E.query)&&(C+=b.charAt(0)!=="?"?"?"+b:b),E.hash&&(C+=E.hash),C}},x.extractProtocol=v,x.location=d,x.trimLeft=p,x.qs=o,t.exports=x},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},ks={};function K(t){var e=ks[t];if(e!==void 0)return e.exports;var n=ks[t]={id:t,loaded:!1,exports:{}};return Xl[t].call(n.exports,n,n.exports,K),n.loaded=!0,n.exports}K.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return K.d(e,{a:e}),e},K.d=(t,e)=>{for(var n in e)K.o(e,n)&&!K.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},K.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),K.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var Dt={};K.d(Dt,{hT:()=>xt,O4:()=>ae,Kd:()=>rf,YK:()=>of,UU:()=>fp,Gu:()=>Oc,ky:()=>Ic,h4:()=>Ln,ch:()=>Dr,hq:()=>Pe,i5:()=>Rc});var Yl=K(737),Kl=K.n(Yl);function ao(t){if(!Lo(t))throw new Error("Parameter was not an error")}function Lo(t){return!!t&&typeof t=="object"&&(e=t,Object.prototype.toString.call(e)==="[object Error]")||t instanceof Error;var e}class Nt extends Error{constructor(e,n){const r=[...arguments],{options:o,shortMessage:i}=function(a){let u,l="";if(a.length===0)u={};else if(Lo(a[0]))u={cause:a[0]},l=a.slice(1).join(" ")||"";else if(a[0]&&typeof a[0]=="object")u=Object.assign({},a[0]),l=a.slice(1).join(" ")||"";else{if(typeof a[0]!="string")throw new Error("Invalid arguments passed to Layerr");u={},l=l=a.join(" ")||""}return{options:u,shortMessage:l}}(r);let s=i;if(o.cause&&(s=`${s}: ${o.cause.message}`),super(s),this.message=s,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const a=o.constructorOpt||this.constructor;Error.captureStackTrace(this,a)}}static cause(e){return ao(e),e._cause&&Lo(e._cause)?e._cause:null}static fullStack(e){ao(e);const n=Nt.cause(e);return n?`${e.stack}
|
|
caused by: ${Nt.fullStack(n)}`:e.stack??""}static info(e){ao(e);const n={},r=Nt.cause(e);return r&&Object.assign(n,Nt.info(r)),e._info&&Object.assign(n,e._info),n}toString(){let e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e=`${e}: ${this.message}`),e}}var Zl=K(47),vr=K.n(Zl);const js="__PATH_SEPARATOR_POSIX__",Ds="__PATH_SEPARATOR_WINDOWS__";function tt(t){try{const e=t.replace(/\//g,js).replace(/\\\\/g,Ds);return encodeURIComponent(e).split(Ds).join("\\\\").split(js).join("/")}catch(e){throw new Nt(e,"Failed encoding path")}}function Ms(t){return t.startsWith("/")?t:"/"+t}function An(t){let e=t;return e[0]!=="/"&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function Jl(t){let e=new(Kl())(t).pathname;return e.length<=0&&(e="/"),An(e)}function et(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){return function(r){var o=[];if(r.length===0)return"";if(typeof r[0]!="string")throw new TypeError("Url must be a string. Received "+r[0]);if(r[0].match(/^[^/:]+:\/*$/)&&r.length>1){var i=r.shift();r[0]=i+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var s=0;s<r.length;s++){var a=r[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),a=s<r.length-1?a.replace(/[\/]+$/,""):a.replace(/[\/]+$/,"/"),o.push(a))}var u=o.join("/"),l=(u=u.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(e.reduce((r,o,i)=>((i===0||o!=="/"||o==="/"&&r[r.length-1]!=="/")&&r.push(o),r),[]))}var Ql=K(542),pn=K.n(Ql);const tf="abcdef0123456789";function Fs(t,e){const n=t.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),o=t.method?t.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",s=`00000000${e.nc}`.slice(-8),a=function(f,h,d,g,v,x,m){const b=m||pn()(`${h}:${d}:${g}`);return f&&f.toLowerCase()==="md5-sess"?pn()(`${b}:${v}:${x}`):b}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),u=pn()(`${o}:${r}`),l=i?pn()(`${a}:${e.nonce}:${s}:${e.cnonce}:${i}:${u}`):pn()(`${a}:${e.nonce}:${u}`),c={username:e.username,realm:e.realm,nonce:e.nonce,uri:r,qop:i,response:l,nc:s,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},p=[];for(const f in c)c[f]&&(f==="qop"||f==="nc"||f==="algorithm"?p.push(`${f}=${c[f]}`):p.push(`${f}="${c[f]}"`));return`Digest ${p.join(", ")}`}function _c(t){return(t.headers&&t.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var ef=K(101),wc=K.n(ef);function Us(t){return wc().decode(t)}function zs(t,e){var n;return`Basic ${n=`${t}:${e}`,wc().encode(n)}`}const yr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,nf=yr.fetch.bind(yr),rf=yr.Request,of=yr.Response;let xt=function(t){return t.Auto="auto",t.Digest="digest",t.None="none",t.Password="password",t.Token="token",t}({}),ae=function(t){return t.DataTypeNoLength="data-type-no-length",t.InvalidAuthType="invalid-auth-type",t.InvalidOutputFormat="invalid-output-format",t.LinkUnsupportedAuthType="link-unsupported-auth",t.InvalidUpdateRange="invalid-update-range",t.NotSupported="not-supported",t}({});function Ec(t,e,n,r,o){switch(t.authType){case xt.Auto:e&&n&&(t.headers.Authorization=zs(e,n));break;case xt.Digest:t.digest=function(s,a,u){return{username:s,password:a,ha1:u,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,n,o);break;case xt.None:break;case xt.Password:t.headers.Authorization=zs(e,n);break;case xt.Token:t.headers.Authorization=`${(i=r).token_type} ${i.access_token}`;break;default:throw new Nt({info:{code:ae.InvalidAuthType}},`Invalid auth type: ${t.authType}`)}var i}K(345),K(800);const Gs="@@HOTPATCHER",sf=()=>{};function co(t){return{original:t,methods:[t],final:!1}}class af{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Gs}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(e){this.configuration.getEmptyAction=e}control(e){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!e||e.__type__!==Gs)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach(r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},e.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},e.configuration.registry[r])}),e._configuration=this.configuration,this}execute(e){const n=this.get(e)||sf;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n(...o)}get(e){const n=this.configuration.registry[e];if(!n)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${e}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];let l=a;const c=this;for(;o.length>0;)l=[o.shift().apply(c,l)];return l[0]}}(...n.methods)}isPatched(e){return!!this.configuration.registry[e]}patch(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=r;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error(`Failed patching '${e}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${e}': Provided method is not a function`);if(o)this.configuration.registry[e]?this.configuration.registry[e].methods.push(n):this.configuration.registry[e]=co(n);else if(this.isPatched(e)){const{original:i}=this.configuration.registry[e];this.configuration.registry[e]=Object.assign(co(n),{original:i})}else this.configuration.registry[e]=co(n);return this}patchInline(e,n){this.isPatched(e)||this.patch(e,n);for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return this.execute(e,...o)}plugin(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(i=>{this.patch(e,i,{chain:!0})}),this}restore(e){if(!this.isPatched(e))throw new Error(`Failed restoring method: No method present for key: ${e}`);if(typeof this.configuration.registry[e].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${e}`);return this.configuration.registry[e].methods=[this.configuration.registry[e].original],this}setFinal(e){if(!this.configuration.registry.hasOwnProperty(e))throw new Error(`Failed marking '${e}' as final: No method found for key`);return this.configuration.registry[e].final=!0,this}}let uo=null;function Oc(){return uo||(uo=new af),uo}function br(t){return function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(t)?Object.assign({},t):Object.setPrototypeOf(Object.assign({},t),Object.getPrototypeOf(t))}function Bs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=null,o=[...e];for(;o.length>0;){const i=o.shift();r=r?xc(r,i):br(i)}return r}function xc(t,e){const n=br(t);return Object.keys(e).forEach(r=>{n.hasOwnProperty(r)?Array.isArray(e[r])?n[r]=Array.isArray(n[r])?[...n[r],...e[r]]:[...e[r]]:typeof e[r]=="object"&&e[r]?n[r]=typeof n[r]=="object"&&n[r]?xc(n[r],e[r]):br(e[r]):n[r]=e[r]:n[r]=e[r]}),n}function cf(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}function ko(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length===0)return{};const r={};return e.reduce((o,i)=>(Object.keys(i).forEach(s=>{const a=s.toLowerCase();r.hasOwnProperty(a)?o[r[a]]=i[s]:(r[a]=s,o[s]=i[s])}),o),{})}K(805);const uf=typeof ArrayBuffer=="function",{toString:lf}=Object.prototype;function Tc(t){return uf&&(t instanceof ArrayBuffer||lf.call(t)==="[object ArrayBuffer]")}function Nc(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function gi(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}function jo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Ac=gi(function(t){const e=t._digest;return delete t._digest,e.hasDigestAuth&&(t=Bs(t,{headers:{Authorization:Fs(t,e)}})),jo(_r(t),function(n){let r=!1;return o=function(s){return r?s:n},(i=function(){if(n.status==401)return e.hasDigestAuth=function(s,a){if(!_c(s))return!1;const u=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=s.headers&&s.headers.get("www-authenticate")||"",c=u.exec(l);if(!c)break;a[c[1]]=c[2]||c[3]}return a.nc+=1,a.cnonce=function(){let l="";for(let c=0;c<32;++c)l=`${l}${tf[Math.floor(16*Math.random())]}`;return l}(),!0}(n,e),function(){if(e.hasDigestAuth)return jo(_r(t=Bs(t,{headers:{Authorization:Fs(t,e)}})),function(s){return s.status==401?e.hasDigestAuth=!1:e.nc++,r=!0,s})}();e.nc++}())&&i.then?i.then(o):o(i);var o,i})}),ff=gi(function(t,e){return jo(_r(t),function(n){return n.ok?(e.authType=xt.Password,n):n.status==401&&_c(n)?(e.authType=xt.Digest,Ec(e,e.username,e.password,void 0,void 0),t._digest=e.digest,Ac(t)):n})}),at=gi(function(t,e){return e.authType===xt.Auto?ff(t,e):t._digest?Ac(t):_r(t)});function ct(t,e,n){const r=br(t);return r.headers=ko(e.headers,r.headers||{},n.headers||{}),n.data!==void 0&&(r.data=n.data),n.signal&&(r.signal=n.signal),e.httpAgent&&(r.httpAgent=e.httpAgent),e.httpsAgent&&(r.httpsAgent=e.httpsAgent),e.digest&&(r._digest=e.digest),typeof e.withCredentials=="boolean"&&(r.withCredentials=e.withCredentials),r}function _r(t){const e=Oc();return e.patchInline("request",n=>e.patchInline("fetch",nf,n.url,function(r){let o={};const i={method:r.method};if(r.headers&&(o=ko(o,r.headers)),r.data!==void 0){const[s,a]=function(u){if(typeof u=="string")return[u,{}];if(Nc(u))return[u,{}];if(Tc(u))return[u,{}];if(u&&typeof u=="object")return[JSON.stringify(u),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof u)}(r.data);i.body=s,o=ko(o,a)}return r.signal&&(i.signal=r.signal),r.withCredentials&&(i.credentials="include"),i.headers=o,i}(n)),t)}var pf=K(285);const wr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},hf={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Vs=t=>t.join(""),df=(t,e)=>{const n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],o=[];let i=n+1,s=!1,a=!1,u=!1,l=!1,c=n,p="";t:for(;i<t.length;){const g=t.charAt(i);if(g!=="!"&&g!=="^"||i!==n+1){if(g==="]"&&s&&!u){c=i+1;break}if(s=!0,g!=="\\"||u){if(g==="["&&!u){for(const[v,[x,m,b]]of Object.entries(hf))if(t.startsWith(v,i)){if(p)return["$.",!1,t.length-n,!0];i+=v.length,b?o.push(x):r.push(x),a=a||m;continue t}}u=!1,p?(g>p?r.push(hn(p)+"-"+hn(g)):g===p&&r.push(hn(g)),p="",i++):t.startsWith("-]",i+1)?(r.push(hn(g+"-")),i+=2):t.startsWith("-",i+1)?(p=g,i+=2):(r.push(hn(g)),i++)}else u=!0,i++}else l=!0,i++}if(c<i)return["",!1,0,!1];if(!r.length&&!o.length)return["$.",!1,t.length-n,!0];if(o.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[(f=r[0].length===2?r[0].slice(-1):r[0],f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,c-n,!1];var f;const h="["+(l?"^":"")+Vs(r)+"]",d="["+(l?"":"^")+Vs(o)+"]";return[r.length&&o.length?"("+h+"|"+d+")":r.length?h:d,a,c-n,!0]},En=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},gf=new Set(["!","?","+","*","@"]),Ws=t=>gf.has(t),lo="(?!\\.)",mf=new Set(["[","."]),vf=new Set(["..","."]),yf=new Set("().*{}+?[]^$\\!"),mi="[^/]",Hs=mi+"*?",qs=mi+"+?";class Ot{type;#n;#r;#i=!1;#t=[];#e;#s;#c;#a=!1;#o;#u;#f=!1;constructor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=e,e&&(this.#r=!0),this.#e=n,this.#n=this.#e?this.#e.#n:this,this.#o=this.#n===this?r:this.#n.#o,this.#c=this.#n===this?[]:this.#n.#c,e!=="!"||this.#n.#a||this.#c.push(this),this.#s=this.#e?this.#e.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#u=this.#t.map(e=>String(e)).join("")}#h(){if(this!==this.#n)throw new Error("should only call on root");if(this.#a)return this;let e;for(this.toString(),this.#a=!0;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,r=n.#e;for(;r;){for(let o=n.#s+1;!r.type&&o<r.#t.length;o++)for(const i of e.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(r.#t[o])}n=r,r=n.#e}}return this}push(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(const o of n)if(o!==""){if(typeof o!="string"&&!(o instanceof Ot&&o.#e===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const e=this.type===null?this.#t.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#t.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#a&&this.#e?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#e?.isStart())return!1;if(this.#s===0)return!0;const e=this.#e;for(let n=0;n<this.#s;n++){const r=e.#t[n];if(!(r instanceof Ot&&r.type==="!"))return!1}return!0}isEnd(){if(this.#n===this||this.#e?.type==="!")return!0;if(!this.#e?.isEnd())return!1;if(!this.type)return this.#e?.isEnd();const e=this.#e?this.#e.#t.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){const n=new Ot(this.type,e);for(const r of this.#t)n.copyIn(r);return n}static#l(e,n,r,o){let i=!1,s=!1,a=-1,u=!1;if(n.type===null){let h=r,d="";for(;h<e.length;){const g=e.charAt(h++);if(i||g==="\\")i=!i,d+=g;else if(s)h===a+1?g!=="^"&&g!=="!"||(u=!0):g!=="]"||h===a+2&&u||(s=!1),d+=g;else if(g!=="[")if(o.noext||!Ws(g)||e.charAt(h)!=="(")d+=g;else{n.push(d),d="";const v=new Ot(g,n);h=Ot.#l(e,v,h,o),n.push(v)}else s=!0,a=h,u=!1,d+=g}return n.push(d),h}let l=r+1,c=new Ot(null,n);const p=[];let f="";for(;l<e.length;){const h=e.charAt(l++);if(i||h==="\\")i=!i,f+=h;else if(s)l===a+1?h!=="^"&&h!=="!"||(u=!0):h!=="]"||l===a+2&&u||(s=!1),f+=h;else if(h!=="[")if(Ws(h)&&e.charAt(l)==="("){c.push(f),f="";const d=new Ot(h,c);c.push(d),l=Ot.#l(e,d,l,o)}else if(h!=="|"){if(h===")")return f===""&&n.#t.length===0&&(n.#f=!0),c.push(f),f="",n.push(...p,c),l;f+=h}else c.push(f),f="",p.push(c),c=new Ot(null,n);else s=!0,a=l,u=!1,f+=h}return n.type=null,n.#r=void 0,n.#t=[e.substring(r-1)],l}static fromGlob(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=new Ot(null,void 0,n);return Ot.#l(e,r,0,n),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();const e=this.toString(),[n,r,o,i]=this.toRegExpSource();if(!(o||this.#r||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;const s=(this.#o.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${n}$`,s),{_src:n,_glob:e})}get options(){return this.#o}toRegExpSource(e){const n=e??!!this.#o.dot;if(this.#n===this&&this.#h(),!this.type){const u=this.isStart()&&this.isEnd(),l=this.#t.map(f=>{const[h,d,g,v]=typeof f=="string"?Ot.#d(f,this.#r,u):f.toRegExpSource(e);return this.#r=this.#r||g,this.#i=this.#i||v,h}).join("");let c="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!vf.has(this.#t[0]))){const f=mf,h=n&&f.has(l.charAt(0))||l.startsWith("\\.")&&f.has(l.charAt(2))||l.startsWith("\\.\\.")&&f.has(l.charAt(4)),d=!n&&!e&&f.has(l.charAt(0));c=h?"(?!(?:^|/)\\.\\.?(?:$|/))":d?lo:""}let p="";return this.isEnd()&&this.#n.#a&&this.#e?.type==="!"&&(p="(?:$|\\/)"),[c+l+p,En(l),this.#r=!!this.#r,this.#i]}const r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#p(n);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const u=this.toString();return this.#t=[u],this.type=null,this.#r=void 0,[u,En(this.toString()),!1,!1]}let s=!r||e||n?"":this.#p(!0);s===i&&(s=""),s&&(i=`(?:${i})(?:${s})*?`);let a="";return a=this.type==="!"&&this.#f?(this.isStart()&&!n?lo:"")+qs:o+i+(this.type==="!"?"))"+(!this.isStart()||n||e?"":lo)+Hs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`),[a,En(i),this.#r=!!this.#r,this.#i]}#p(e){return this.#t.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,o,i,s]=n.toRegExpSource(e);return this.#i=this.#i||s,r}).filter(n=>!(this.isStart()&&this.isEnd()&&!n)).join("|")}static#d(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",s=!1;for(let a=0;a<e.length;a++){const u=e.charAt(a);if(o)o=!1,i+=(yf.has(u)?"\\":"")+u;else if(u!=="\\"){if(u==="["){const[l,c,p,f]=df(e,a);if(p){i+=l,s=s||c,a+=p-1,n=n||f;continue}}u!=="*"?u!=="?"?i+=u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=mi,n=!0):(i+=r&&e==="*"?qs:Hs,n=!0)}else a===e.length-1?i+="\\\\":o=!0}return[i,En(e),!!n,s]}}const vt=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wr(e),!(!n.nocomment&&e.charAt(0)==="#")&&new Er(e,n).match(t)},bf=/^\*+([^+@!?\*\[\(]*)$/,_f=t=>e=>!e.startsWith(".")&&e.endsWith(t),wf=t=>e=>e.endsWith(t),Ef=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Of=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),xf=/^\*+\.\*+$/,Tf=t=>!t.startsWith(".")&&t.includes("."),Nf=t=>t!=="."&&t!==".."&&t.includes("."),Af=/^\.\*+$/,Sf=t=>t!=="."&&t!==".."&&t.startsWith("."),Cf=/^\*+$/,$f=t=>t.length!==0&&!t.startsWith("."),Pf=t=>t.length!==0&&t!=="."&&t!=="..",If=/^\?+([^+@!?\*\[\(]*)?$/,Rf=t=>{let[e,n=""]=t;const r=Sc([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},Lf=t=>{let[e,n=""]=t;const r=Cc([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},kf=t=>{let[e,n=""]=t;const r=Cc([e]);return n?o=>r(o)&&o.endsWith(n):r},jf=t=>{let[e,n=""]=t;const r=Sc([e]);return n?o=>r(o)&&o.endsWith(n):r},Sc=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&!r.startsWith(".")},Cc=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&r!=="."&&r!==".."},$c=typeof Ke=="object"&&Ke?typeof so=="object"&&so&&so.__MINIMATCH_TESTING_PLATFORM__||Ke.platform:"posix";vt.sep=$c==="win32"?"\\":"/";const jt=Symbol("globstar **");vt.GLOBSTAR=jt,vt.filter=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>vt(n,t,e)};const kt=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},t,e)};vt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return vt;const e=vt;return Object.assign(function(n,r){return e(n,r,kt(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends e.Minimatch{constructor(n){super(n,kt(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return e.defaults(kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,r){super(n,r,kt(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.AST.fromGlob(n,kt(t,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.unescape(n,kt(t,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.escape(n,kt(t,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.filter(n,kt(t,r))},defaults:n=>e.defaults(kt(t,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.makeRe(n,kt(t,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.braceExpand(n,kt(t,r))},match:function(n,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.match(n,r,kt(t,o))},sep:e.sep,GLOBSTAR:jt})};const Pc=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return wr(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:pf(t)};vt.braceExpand=Pc,vt.makeRe=function(t){return new Er(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},vt.match=function(t,e){const n=new Er(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return t=t.filter(r=>n.match(r)),n.options.nonull&&!t.length&&t.push(e),t};const Xs=/[?*]|[+@!]\(.*?\)|\[|\]/;class Er{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wr(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||$c,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const n of e)if(typeof n!="string")return!0;return!1}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#")return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map((i,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&Xs.test(i[2])||Xs.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(c=>this.parse(c))];if(l)return[i[0],...i.slice(1).map(c=>this.parse(c))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const s=this.set[i];s[0]===""&&s[1]===""&&this.globParts[i][2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3])&&(s[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let o=0;o<e[r].length;o++)e[r][o]==="**"&&(e[r][o]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=n>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,o)=>{const i=r[r.length-1];return o==="**"&&i==="**"?r:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(r.pop(),r):(r.push(o),r)},[])).length===0?[""]:n)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){const i=e[o];o===1&&i===""&&e[0]===""||i!=="."&&i!==""||(n=!0,e.splice(o,1),o--)}e[0]!=="."||e.length!==2||e[1]!=="."&&e[1]!==""||(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){const o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let s=o;for(;r[s+1]==="**";)s++;s>o&&r.splice(o+1,s-o);let a=r[o+1];const u=r[o+2],l=r[o+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,r.splice(o,1);const c=r.slice(0);c[o]="**",e.push(c),o--}if(!this.preserveMultipleSlashes){for(let s=1;s<r.length-1;s++){const a=r[s];s===1&&a===""&&r[0]===""||a!=="."&&a!==""||(n=!0,r.splice(s,1),s--)}r[0]!=="."||r.length!==2||r[1]!=="."&&r[1]!==""||(n=!0,r.pop())}let i=0;for(;(i=r.indexOf("..",i+1))!==-1;){const s=r[i-1];if(s&&s!=="."&&s!==".."&&s!=="**"){n=!0;const a=i===1&&r[i+1]==="**"?["."]:[];r.splice(i-1,2,...a),r.length===0&&r.push(""),i-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){const o=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(o){e[n]=[],e[r]=o;break}}return e.filter(n=>n.length)}partsMatch(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,s=[],a="";for(;o<e.length&&i<n.length;)if(e[o]===n[i])s.push(a==="b"?n[i]:e[o]),o++,i++;else if(r&&e[o]==="**"&&n[i]===e[o+1])s.push(e[o]),o++;else if(r&&n[i]==="**"&&e[o]===n[i+1])s.push(n[i]),i++;else if(e[o]!=="*"||!n[i]||!this.options.dot&&n[i].startsWith(".")||n[i]==="**"){if(n[i]!=="*"||!e[o]||!this.options.dot&&e[o].startsWith(".")||e[o]==="**"||a==="a")return!1;a="b",s.push(n[i]),o++,i++}else{if(a==="b")return!1;a="a",s.push(e[o]),o++,i++}return e.length===n.length&&s}parseNegate(){if(this.nonegate)return;const e=this.pattern;let n=!1,r=0;for(let o=0;o<e.length&&e.charAt(o)==="!";o++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),v=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),x=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=v?3:g?0:void 0,b=!x&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:x?0:void 0;if(typeof m=="number"&&typeof b=="number"){const[E,N]=[e[m],n[b]];E.toLowerCase()===N.toLowerCase()&&(n[b]=E,b>m?n=n.slice(b):m>b&&(e=e.slice(m)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,a=0,u=e.length,l=n.length;s<u&&a<l;s++,a++){this.debug("matchOne loop");var c=n[a],p=e[s];if(this.debug(n,c,p),c===!1)return!1;if(c===jt){this.debug("GLOBSTAR",[n,c,p]);var f=s,h=a+1;if(h===l){for(this.debug("** at the end");s<u;s++)if(e[s]==="."||e[s]===".."||!o.dot&&e[s].charAt(0)===".")return!1;return!0}for(;f<u;){var d=e[f];if(this.debug(`
|
|
globstar while`,e,f,n,h,d),this.matchOne(e.slice(f),n.slice(h),r))return this.debug("globstar found match!",f,u,d),!0;if(d==="."||d===".."||!o.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,n,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!r||(this.debug(`
|
|
>>> no match, partial?`,e,f,n,h),f!==u))}let g;if(typeof c=="string"?(g=p===c,this.debug("string match",c,p,g)):(g=c.test(p),this.debug("pattern match",c,p,g)),!g)return!1}if(s===u&&a===l)return!0;if(s===u)return r;if(a===l)return s===u-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return Pc(this.pattern,this.options)}parse(e){wr(e);const n=this.options;if(e==="**")return jt;if(e==="")return"";let r,o=null;(r=e.match(Cf))?o=n.dot?Pf:$f:(r=e.match(bf))?o=(n.nocase?n.dot?Of:Ef:n.dot?wf:_f)(r[1]):(r=e.match(If))?o=(n.nocase?n.dot?Lf:Rf:n.dot?kf:jf)(r):(r=e.match(xf))?o=n.dot?Nf:Tf:(r=e.match(Af))&&(o=Sf);const i=Ot.fromGlob(e,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(n.nocase?["i"]:[]);let i=e.map(u=>{const l=u.map(c=>{if(c instanceof RegExp)for(const p of c.flags.split(""))o.add(p);return typeof c=="string"?c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):c===jt?jt:c._src});return l.forEach((c,p)=>{const f=l[p+1],h=l[p-1];c===jt&&h!==jt&&(h===void 0?f!==void 0&&f!==jt?l[p+1]="(?:\\/|"+r+"\\/)?"+f:l[p]=r:f===void 0?l[p-1]=h+"(?:\\/|"+r+")?":f!==jt&&(l[p-1]=h+"(?:\\/|\\/"+r+"\\/)"+f,l[p+1]=jt))}),l.filter(c=>c!==jt).join("/")}).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];i="^"+s+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const o=this.slashSplit(e);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let s=o[o.length-1];if(!s)for(let a=o.length-2;!s&&a>=0;a--)s=o[a];for(let a=0;a<i.length;a++){const u=i[a];let l=o;if(r.matchBase&&u.length===1&&(l=[s]),this.matchOne(l,u,n))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return vt.defaults(e).Minimatch}}function vi(t){const e=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${t.status} ${t.statusText}`);return e.status=t.status,e.response=t,e}function ut(t,e){const{status:n}=e;if(n===401&&t.digest)return e;if(n>=400)throw vi(e);return e}function Pe(t,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:t.headers?cf(t.headers):{},status:t.status,statusText:t.statusText}:e}vt.AST=Ot,vt.Minimatch=Er,vt.escape=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},vt.unescape=En;const Df=(Ys=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"COPY",headers:{Destination:et(t.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},t,r);return s=function(a){ut(t,a)},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(Ys.apply(this,t))}catch(n){return Promise.reject(n)}});var Ys,yi=K(635),Mf=K(829),re=K.n(Mf),Ve=function(t){return t.Array="array",t.Object="object",t.Original="original",t}(Ve||{});function Kn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.Original;const r=re().get(t,e);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function Ln(t){return new Promise(e=>{e(function(n){const{multistatus:r}=n;if(r==="")return{multistatus:{response:[]}};if(!r)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(r)?r[0]:r};return re().set(o,"multistatus.response",Kn(o,"multistatus.response",Ve.Array)),re().set(o,"multistatus.response",re().get(o,"multistatus.response").map(i=>function(s){const a=Object.assign({},s);return a.status?re().set(a,"status",Kn(a,"status",Ve.Object)):(re().set(a,"propstat",Kn(a,"propstat",Ve.Object)),re().set(a,"propstat.prop",Kn(a,"propstat.prop",Ve.Object))),a}(i))),o}(new yi.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(n,r,o)=>r==="true"||r==="false"?r==="true":r,tagValueProcessor(n,r,o){if(!o.endsWith("propstat.prop.displayname"))return r}}).parse(t)))})}function Dr(t,e){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:r=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:s=null,getetag:a=null}=t,u=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:e,basename:vr().basename(e),lastmod:r,size:parseInt(o,10),type:u,etag:typeof a=="string"?a.replace(/"/g,""):null};return u==="file"&&(l.mime=s&&typeof s=="string"?s.split(";")[0]:""),n&&(t.displayname!==void 0&&(t.displayname=String(t.displayname)),l.props=t),l}function Ic(t,e){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{t.multistatus.response[0].propstat&&(r=t.multistatus.response[0])}catch{}if(!r)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=r,[s,a,u]=i.split(" ",3),l=parseInt(a,10);if(l>=400){const c=new Error(`Invalid response: ${l} ${u}`);throw c.status=l,c}return Dr(o,An(e),n)}function Rc(t){switch(String(t)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(t),10)}}function fo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const bi=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:et(t.remoteURL,tt(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,n);return fo(at(o,t),function(i){return ut(t,i),fo(i.text(),function(s){return fo(Ln(s),function(a){const u=Ic(a,e,r);return Pe(i,u,r)})})})});function Lc(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Ff=kc(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=function(i){if(!i||i==="/")return[];let s=i;const a=[];do a.push(s),s=vr().dirname(s);while(s&&s!=="/");return a}(An(e));r.sort((i,s)=>i.length>s.length?1:s.length>i.length?-1:0);let o=!1;return function(i,s,a){if(typeof i[Zs]=="function"){let g=function(v){try{for(;!(u=p.next()).done;)if((v=s(u.value))&&v.then){if(!Js(v))return void v.then(g,c||(c=Tt.bind(null,l=new We,2)));v=v.v}l?Tt(l,1,v):l=v}catch(x){Tt(l||(l=new We),2,x)}};var u,l,c,p=i[Zs]();if(g(),p.return){var f=function(v){try{u.done||p.return()}catch{}return v};if(l&&l.then)return l.then(f,function(v){throw f(v)});f()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var h=[],d=0;d<i.length;d++)h.push(i[d]);return function(g,v,x){var m,b,E=-1;return function N(O){try{for(;++E<g.length&&(!x||!x());)if((O=v(E))&&O.then){if(!Js(O))return void O.then(N,b||(b=Tt.bind(null,m=new We,2)));O=O.v}m?Tt(m,1,O):m=O}catch(C){Tt(m||(m=new We),2,C)}}(),m}(h,function(g){return s(h[g])},a)}(r,function(i){return s=function(){return function(u,l){try{var c=Lc(bi(t,i),function(p){if(p.type!=="directory")throw new Error(`Path includes a file: ${e}`)})}catch(p){return l(p)}return c&&c.then?c.then(void 0,l):c}(0,function(u){const l=u;return function(){if(l.status===404)return o=!0,Ks(Do(t,i,{...n,recursive:!1}));throw u}()})},(a=function(){if(o)return Ks(Do(t,i,{...n,recursive:!1}))}())&&a.then?a.then(s):s();var s,a},function(){return!1})});function kc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}function Uf(){}function Ks(t,e){return t&&t.then?t.then(Uf):Promise.resolve()}const Zs=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Tt(t,e,n){if(!t.s){if(n instanceof We){if(!n.s)return void(n.o=Tt.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(Tt.bind(null,t,e),Tt.bind(null,t,2));t.s=e,t.v=n;const r=t.o;r&&r(t)}}const We=function(){function t(){}return t.prototype.then=function(e,n){const r=new t,o=this.s;if(o){const i=1&o?e:n;if(i){try{Tt(r,1,i(this.v))}catch(s){Tt(r,2,s)}return r}return this}return this.o=function(i){try{const s=i.v;1&i.s?Tt(r,1,e?e(s):s):n?Tt(r,1,n(s)):Tt(r,2,s)}catch(s){Tt(r,2,s)}},r},t}();function Js(t){return t instanceof We&&1&t.s}const Do=kc(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return Ff(t,e,n);const r=ct({url:et(t.remoteURL,(o=tt(e),o.endsWith("/")?o:o+"/")),method:"MKCOL"},t,n);var o;return Lc(at(r,t),function(i){ut(t,i)})});var zf=K(388),Qs=K.n(zf);const Gf=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let a=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(a=`${a}${n.range.end}`),r.Range=a}const o=ct({url:et(t.remoteURL,tt(e)),method:"GET",headers:r},t,n);return s=function(a){if(ut(t,a),r.Range&&a.status!==206){const u=new Error(`Invalid response code for partial request: ${a.status}`);throw u.status=a.status,u}return n.callback&&setTimeout(()=>{n.callback(a)},0),a.body},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s}),Bf=()=>{},Vf=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e,n){n.url||(n.url=et(t.remoteURL,tt(e)));const r=ct(n,t,{});return i=function(s){return ut(t,s),s},(o=at(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),Wf=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"DELETE"},t,n);return i=function(s){ut(t,s)},(o=at(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),Hf=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(r,o){try{var i=(s=bi(t,e,n),a=function(){return!0},u?a?a(s):s:(s&&s.then||(s=Promise.resolve(s)),a?s.then(a):s))}catch(l){return o(l)}var s,a,u;return i&&i.then?i.then(void 0,o):i}(0,function(r){if(r.status===404)return!1;throw r})});function po(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const qf=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},t,n);return po(at(r,t),function(o){return ut(t,o),po(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return po(Ln(i),function(s){const a=Ms(e);let u=function(l,c,p){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const d=vr().join(c,"/"),{multistatus:{response:g}}=l,v=g.map(x=>{const m=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(N){throw new Nt(N,"Failed normalising HREF")}}(x.href),{propstat:{prop:b}}=x;return Dr(b,d==="/"?decodeURIComponent(An(m)):An(vr().relative(decodeURIComponent(d),decodeURIComponent(m))),f)});return h?v:v.filter(x=>x.basename&&(x.type==="file"||x.filename!==p.replace(/\/$/,"")))}(s,Ms(t.remoteBasePath||t.remotePath),a,n.details,n.includeSelf);return n.glob&&(u=function(l,c){return l.filter(p=>vt(p.filename,c,{matchBase:!0}))}(u,n.glob)),Pe(o,u,n.details)})})})});function _i(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}const Xf=_i(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Zf]},t,n);return Or(at(r,t),function(o){return ut(t,o),Or(o.text(),function(i){return Pe(o,i,n.details)})})});function Or(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Yf=_i(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"GET"},t,n);return Or(at(r,t),function(o){let i;return ut(t,o),function(s,a){var u=s();return u&&u.then?u.then(a):a()}(function(){return Or(o.arrayBuffer(),function(s){i=s})},function(){return Pe(o,i,n.details)})})}),Kf=_i(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new Nt({info:{code:ae.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?Xf(t,e,n):Yf(t,e,n)}),Zf=t=>t;function Jf(t){return new yi.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(jc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:t}}},"d"))}function jc(t,e){const n={...t};for(const r in n)n.hasOwnProperty(r)&&(n[r]&&typeof n[r]=="object"&&r.indexOf(":")===-1?(n[`${e}:${r}`]=jc(n[r],e),delete n[r]):/^@_/.test(r)===!1&&(n[`${e}:${r}`]=n[r],delete n[r]));return n}function Mo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function Dc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}const Qf=Dc(function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"UNLOCK",headers:{"Lock-Token":n}},t,r);return Mo(at(o,t),function(i){if(ut(t,i),i.status!==204&&i.status!==200)throw vi(i)})}),tp=Dc(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:o=ep}=n,i={Accept:"text/plain,application/xml",Timeout:o};r&&(i.If=r);const s=ct({url:et(t.remoteURL,tt(e)),method:"LOCK",headers:i,data:Jf(t.contactHref)},t,n);return Mo(at(s,t),function(a){return ut(t,a),Mo(a.text(),function(u){const l=(f=u,new yi.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),c=re().get(l,"prop.lockdiscovery.activelock.locktoken.href"),p=re().get(l,"prop.lockdiscovery.activelock.timeout");var f;if(!c)throw vi(a,"No lock token received: ");return{token:c,serverTimeout:p}})})}),ep="Infinite, Second-4100000000";function ho(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const np=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=e.path||"/",r=ct({url:et(t.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,e);return ho(at(r,t),function(o){return ut(t,o),ho(o.text(),function(i){return ho(Ln(i),function(s){const a=function(u){try{const[l]=u.multistatus.response,{propstat:{prop:{"quota-used-bytes":c,"quota-available-bytes":p}}}=l;return c!==void 0&&p!==void 0?{used:parseInt(String(c),10),available:Rc(p)}:null}catch{}return null}(s);return Pe(o,a,e.details)})})})});function go(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const rp=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:et(t.remoteURL,tt(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":t.headers["Content-Type"]||"application/xml; charset=utf-8"}},t,n);return go(at(o,t),function(i){return ut(t,i),go(i.text(),function(s){return go(Ln(s),function(a){const u=function(l,c,p){const f={truncated:!1,results:[]};return f.truncated=l.multistatus.response.some(h=>(h.status||h.propstat?.status).split(" ",3)?.[1]==="507"&&h.href.replace(/\/$/,"").endsWith(tt(c).replace(/\/$/,""))),l.multistatus.response.forEach(h=>{if(h.propstat===void 0)return;const d=h.href.split("/").map(decodeURIComponent).join("/");f.results.push(Dr(h.propstat.prop,d,p))}),f}(a,e,r);return Pe(i,u,r)})})})}),op=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"MOVE",headers:{Destination:et(t.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T"}},t,r);return s=function(a){ut(t,a)},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s});var ip=K(172);const sp=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=r,s={"Content-Type":"application/octet-stream"};o===!1||(s["Content-Length"]=typeof o=="number"?`${o}`:`${function(c){if(Tc(c))return c.byteLength;if(Nc(c))return c.length;if(typeof c=="string")return(0,ip.d)(c);throw new Nt({info:{code:ae.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(n)}`),i||(s["If-None-Match"]="*");const a=ct({url:et(t.remoteURL,tt(e)),method:"PUT",headers:s,data:n},t,r);return l=function(c){try{ut(t,c)}catch(p){const f=p;if(f.status!==412||i)throw f;return!1}return!0},(u=at(a,t))&&u.then||(u=Promise.resolve(u)),l?u.then(l):u;var u,l}),Mc=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"OPTIONS"},t,n);return i=function(s){try{ut(t,s)}catch(a){throw a}return{compliance:(s.headers.get("DAV")??"").split(",").map(a=>a.trim()),server:s.headers.get("Server")??""}},(o=at(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Tn(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const ap=wi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Nt({info:{code:ae.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const s={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},a=ct({url:et(t.remoteURL,tt(e)),method:"PUT",headers:s,data:o},t,i);return Tn(at(a,t),function(u){ut(t,u)})});function ta(t,e){var n=t();return n&&n.then?n.then(e):e(n)}const cp=wi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Nt({info:{code:ae.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const s={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},a=ct({url:et(t.remoteURL,tt(e)),method:"PATCH",headers:s,data:o},t,i);return Tn(at(a,t),function(u){ut(t,u)})});function wi(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}const up=wi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Tn(Mc(t,e,i),function(s){let a=!1;return ta(function(){if(s.compliance.includes("sabredav-partialupdate"))return Tn(cp(t,e,n,r,o,i),function(u){return a=!0,u})},function(u){let l=!1;return a?u:ta(function(){if(s.server.includes("Apache")&&s.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Tn(ap(t,e,n,r,o,i),function(c){return l=!0,c})},function(c){if(l)return c;throw new Nt({info:{code:ae.NotSupported}},"Not supported")})})})}),lp="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function fp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:o=lp,ha1:i,headers:s={},httpAgent:a,httpsAgent:u,password:l,token:c,username:p,withCredentials:f}=e;let h=n;h||(h=p||l?xt.Password:xt.None);const d={authType:h,remoteBasePath:r,contactHref:o,ha1:i,headers:Object.assign({},s),httpAgent:a,httpsAgent:u,password:l,remotePath:Jl(t),remoteURL:t,token:c,username:p,withCredentials:f};return Ec(d,p,l,c,i),{copyFile:(g,v,x)=>Df(d,g,v,x),createDirectory:(g,v)=>Do(d,g,v),createReadStream:(g,v)=>function(x,m){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const E=new(Qs()).PassThrough;return Gf(x,m,b).then(N=>{N.pipe(E)}).catch(N=>{E.emit("error",N)}),E}(d,g,v),createWriteStream:(g,v,x)=>function(m,b){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bf;const O=new(Qs()).PassThrough,C={};E.overwrite===!1&&(C["If-None-Match"]="*");const T=ct({url:et(m.remoteURL,tt(b)),method:"PUT",headers:C,data:O,maxRedirects:0},m,E);return at(T,m).then(P=>ut(m,P)).then(P=>{setTimeout(()=>{N(P)},0)}).catch(P=>{O.emit("error",P)}),O}(d,g,v,x),customRequest:(g,v)=>Vf(d,g,v),deleteFile:(g,v)=>Wf(d,g,v),exists:(g,v)=>Hf(d,g,v),getDirectoryContents:(g,v)=>qf(d,g,v),getFileContents:(g,v)=>Kf(d,g,v),getFileDownloadLink:g=>function(v,x){let m=et(v.remoteURL,tt(x));const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case xt.None:break;case xt.Password:{const E=Us(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new Nt({info:{code:ae.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getFileUploadLink:g=>function(v,x){let m=`${et(v.remoteURL,tt(x))}?Content-Type=application/octet-stream`;const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case xt.None:break;case xt.Password:{const E=Us(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new Nt({info:{code:ae.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getHeaders:()=>Object.assign({},d.headers),getQuota:g=>np(d,g),lock:(g,v)=>tp(d,g,v),moveFile:(g,v,x)=>op(d,g,v,x),putFileContents:(g,v,x)=>sp(d,g,v,x),partialUpdateFileContents:(g,v,x,m,b)=>up(d,g,v,x,m,b),getDAVCompliance:g=>Mc(d,g),search:(g,v)=>rp(d,g,v),setHeaders:g=>{d.headers=Object.assign({},g)},stat:(g,v)=>bi(d,g,v),unlock:(g,v,x)=>Qf(d,g,v,x)}}Dt.hT,Dt.O4,Dt.Kd,Dt.YK;var pp=Dt.UU,hp=Dt.Gu;Dt.ky,Dt.h4,Dt.ch,Dt.hq,Dt.i5;function Fc(t,e,n){const r=document.querySelector(`#initial-state-${t}-${e}`);if(r===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${e} of ${t}`)}try{return JSON.parse(atob(r.value))}catch{throw new Error(`Could not parse initial state ${e} of ${t}`)}}function Ei(){return Fc("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function dp(){return Fc("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}const ur=Ul().setApp("@f7cloud/files").detectUser().build();var Bt=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(Bt||{}),Oi=(t=>(t.Folder="folder",t.File="file",t))(Oi||{});const Uc=function(t,e){return t.match(e)!==null},ea=(t,e)=>{if(t.id&&typeof t.id!="number")throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(t.displayname&&typeof t.displayname!="string")throw new Error("Invalid displayname type");if(t.mtime&&!(t.mtime instanceof Date))throw new Error("Invalid mtime type");if(t.crtime&&!(t.crtime instanceof Date))throw new Error("Invalid crtime type");if(!t.mime||typeof t.mime!="string"||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&typeof t.size!="number"&&t.size!==void 0)throw new Error("Invalid size type");if("permissions"in t&&t.permissions!==void 0&&!(typeof t.permissions=="number"&&t.permissions>=Bt.NONE&&t.permissions<=Bt.ALL))throw new Error("Invalid permissions");if(t.owner&&t.owner!==null&&typeof t.owner!="string")throw new Error("Invalid owner type");if(t.attributes&&typeof t.attributes!="object")throw new Error("Invalid attributes type");if(t.root&&typeof t.root!="string")throw new Error("Invalid root type");if(t.root&&!t.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))throw new Error("Root must be part of the source");if(t.root&&Uc(t.source,e)){const n=t.source.match(e)[0];if(!t.source.includes(Oe.join(n,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(xi).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var xi=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(xi||{});class Mr{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(Mr.prototype)).filter(e=>typeof e[1].get=="function"&&e[0]!=="__proto__").map(e=>e[0]);handler={set:(e,n,r)=>this.readonlyAttributes.includes(n)?!1:Reflect.set(e,n,r),deleteProperty:(e,n)=>this.readonlyAttributes.includes(n)?!1:Reflect.deleteProperty(e,n),get:(e,n,r)=>this.readonlyAttributes.includes(n)?(ur.warn(`Accessing "Node.attributes.${n}" is deprecated, access it directly on the Node instance.`),Reflect.get(this,n)):Reflect.get(e,n,r)};constructor(e,n){ea(e,n||this._knownDavService),this._data={displayname:e.attributes?.displayname,...e,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(e.attributes??{}),n&&(this._knownDavService=n)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:e}=new URL(this.source);return e+dl(this.source.slice(e.length))}get basename(){return Oe.basename(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(e){this._data.displayname=e}get extension(){return Oe.extname(this.source)}get dirname(){if(this.root){let n=this.source;this.isDavResource&&(n=n.split(this._knownDavService).pop());const r=n.indexOf(this.root),o=this.root.replace(/\/$/,"");return Oe.dirname(n.slice(r+o.length)||"/")}const e=new URL(this.source);return Oe.dirname(e.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}set mtime(e){this._data.mtime=e}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(e){this.updateMtime(),this._data.size=e}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavResource?Bt.READ:this._data.permissions!==void 0?this._data.permissions:Bt.NONE}set permissions(e){this.updateMtime(),this._data.permissions=e}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return Uc(this.source,this._knownDavService)}get isDavRessource(){return this.isDavResource}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavResource&&Oe.dirname(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let e=this.source;this.isDavResource&&(e=e.split(this._knownDavService).pop());const n=e.indexOf(this.root),r=this.root.replace(/\/$/,"");return e.slice(n+r.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id}get status(){return this._data?.status}set status(e){this._data.status=e}get data(){return structuredClone(this._data)}move(e){ea({...this._data,source:e},this._knownDavService);const n=this.basename;this._data.source=e,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename),this.updateMtime()}rename(e){if(e.includes("/"))throw new Error("Invalid basename");this.move(Oe.dirname(this.source)+"/"+e)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(e){for(const[n,r]of Object.entries(e))try{r===void 0?delete this.attributes[n]:this.attributes[n]=r}catch(o){if(o instanceof TypeError)continue;throw o}}}class Ti extends Mr{get type(){return Oi.File}clone(){return new Ti(this.data)}}class Ni extends Mr{constructor(e){super({...e,mime:"httpd/unix-directory"})}get type(){return Oi.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}clone(){return new Ni(this.data)}}const gp=function(t=""){let e=Bt.NONE;return t&&((t.includes("C")||t.includes("K"))&&(e|=Bt.CREATE),t.includes("G")&&(e|=Bt.READ),(t.includes("W")||t.includes("N")||t.includes("V"))&&(e|=Bt.UPDATE),t.includes("D")&&(e|=Bt.DELETE),t.includes("R")&&(e|=Bt.SHARE)),e},zc=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],Gc={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},Tm=function(t,e={nc:"http://nextcloud.org/ns"}){typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...zc],window._nc_dav_namespaces={...Gc});const n={...window._nc_dav_namespaces,...e};if(window._nc_dav_properties.find(o=>o===t))return ur.warn(`${t} already registered`,{prop:t}),!1;if(t.startsWith("<")||t.split(":").length!==2)return ur.error(`${t} is not valid. See example: 'oc:fileid'`,{prop:t}),!1;const r=t.split(":")[0];return n[r]?(window._nc_dav_properties.push(t),window._nc_dav_namespaces=n,!0):(ur.error(`${t} namespace unknown`,{prop:t,namespaces:n}),!1)},Ai=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...zc]),window._nc_dav_properties.map(t=>`<${t} />`).join(" ")},Si=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...Gc}),Object.keys(window._nc_dav_namespaces).map(t=>`xmlns:${t}="${window._nc_dav_namespaces?.[t]}"`).join(" ")},Nm=function(){return`<?xml version="1.0"?>
|
|
<d:propfind ${Si()}>
|
|
<d:prop>
|
|
${Ai()}
|
|
</d:prop>
|
|
</d:propfind>`},mp=function(){return`<?xml version="1.0"?>
|
|
<oc:filter-files ${Si()}>
|
|
<d:prop>
|
|
${Ai()}
|
|
</d:prop>
|
|
<oc:filter-rules>
|
|
<oc:favorite>1</oc:favorite>
|
|
</oc:filter-rules>
|
|
</oc:filter-files>`},Am=function(t){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
<d:searchrequest ${Si()}
|
|
xmlns:ns="https://github.com/icewind1991/SearchDAV/ns">
|
|
<d:basicsearch>
|
|
<d:select>
|
|
<d:prop>
|
|
${Ai()}
|
|
</d:prop>
|
|
</d:select>
|
|
<d:from>
|
|
<d:scope>
|
|
<d:href>/files/${kr()?.uid}/</d:href>
|
|
<d:depth>infinity</d:depth>
|
|
</d:scope>
|
|
</d:from>
|
|
<d:where>
|
|
<d:and>
|
|
<d:or>
|
|
<d:not>
|
|
<d:eq>
|
|
<d:prop>
|
|
<d:getcontenttype/>
|
|
</d:prop>
|
|
<d:literal>httpd/unix-directory</d:literal>
|
|
</d:eq>
|
|
</d:not>
|
|
<d:eq>
|
|
<d:prop>
|
|
<oc:size/>
|
|
</d:prop>
|
|
<d:literal>0</d:literal>
|
|
</d:eq>
|
|
</d:or>
|
|
<d:gt>
|
|
<d:prop>
|
|
<d:getlastmodified/>
|
|
</d:prop>
|
|
<d:literal>${t}</d:literal>
|
|
</d:gt>
|
|
</d:and>
|
|
</d:where>
|
|
<d:orderby>
|
|
<d:order>
|
|
<d:prop>
|
|
<d:getlastmodified/>
|
|
</d:prop>
|
|
<d:descending/>
|
|
</d:order>
|
|
</d:orderby>
|
|
<d:limit>
|
|
<d:nresults>100</d:nresults>
|
|
<ns:firstresult>0</ns:firstresult>
|
|
</d:limit>
|
|
</d:basicsearch>
|
|
</d:searchrequest>`};function vp(){return Ei()?`/files/${dp()}`:`/files/${kr()?.uid}`}const Bc=vp();function yp(){const t=Gl("dav");return Ei()?t.replace("remote.php","public.php"):t}const Vc=yp(),Sm=function(t=Vc,e={}){const n=pp(t,{headers:e});function r(o){n.setHeaders({...e,"X-Requested-With":"XMLHttpRequest",requesttoken:o??""})}return Pl(r),r($l()),hp().patch("fetch",(o,i)=>{const s=i.headers;return s?.method&&(i.method=s.method,delete s.method),fetch(o,i)}),n},Cm=(t,e="/",n=Bc)=>{const r=new AbortController;return new ne(async(o,i,s)=>{s(()=>r.abort());try{const a=(await t.getDirectoryContents(`${n}${e}`,{signal:r.signal,details:!0,data:mp(),headers:{method:"REPORT"},includeSelf:!0})).data.filter(u=>u.filename!==e).map(u=>bp(u,n));o(a)}catch(a){i(a)}})},bp=function(t,e=Bc,n=Vc){let r=kr()?.uid;if(Ei())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=t.props,i=gp(o?.permissions),s=String(o?.["owner-id"]||r),a=o.fileid||0,u=new Date(Date.parse(t.lastmod)),l=new Date(Date.parse(o.creationdate)),c={id:a,source:`${n}${t.filename}`,mtime:!isNaN(u.getTime())&&u.getTime()!==0?u:void 0,crtime:!isNaN(l.getTime())&&l.getTime()!==0?l:void 0,mime:t.mime||"application/octet-stream",displayname:o.displayname!==void 0?String(o.displayname):void 0,size:o?.size||Number.parseInt(o.getcontentlength||"0"),status:a<0?xi.FAILED:void 0,permissions:i,owner:s,root:e,attributes:{...t,...o,hasPreview:o?.["has-preview"]}};return delete c.attributes?.props,t.type==="file"?new Ti(c):new Ni(c)},{entries:Wc,setPrototypeOf:na,isFrozen:_p,getPrototypeOf:wp,getOwnPropertyDescriptor:Ep}=Object;let{freeze:St,seal:Ft,create:Hc}=Object,{apply:Fo,construct:Uo}=typeof Reflect<"u"&&Reflect;St||(St=function(t){return t}),Ft||(Ft=function(t){return t}),Fo||(Fo=function(t,e,n){return t.apply(e,n)}),Uo||(Uo=function(t,e){return new t(...e)});const Zn=Ct(Array.prototype.forEach),Op=Ct(Array.prototype.lastIndexOf),ra=Ct(Array.prototype.pop),dn=Ct(Array.prototype.push),xp=Ct(Array.prototype.splice),lr=Ct(String.prototype.toLowerCase),mo=Ct(String.prototype.toString),oa=Ct(String.prototype.match),gn=Ct(String.prototype.replace),Tp=Ct(String.prototype.indexOf),Np=Ct(String.prototype.trim),Gt=Ct(Object.prototype.hasOwnProperty),Et=Ct(RegExp.prototype.test),mn=Ap(TypeError);function Ct(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Fo(t,e,r)}}function Ap(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Uo(t,n)}}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lr;na&&na(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(_p(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Sp(t){for(let e=0;e<t.length;e++)Gt(t,e)||(t[e]=null);return t}function ee(t){const e=Hc(null);for(const[n,r]of Wc(t))Gt(t,n)&&(Array.isArray(r)?e[n]=Sp(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ee(r):e[n]=r);return e}function vn(t,e){for(;t!==null;){const r=Ep(t,e);if(r){if(r.get)return Ct(r.get);if(typeof r.value=="function")return Ct(r.value)}t=wp(t)}function n(){return null}return n}const ia=St(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vo=St(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yo=St(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cp=St(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),bo=St(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$p=St(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sa=St(["#text"]),aa=St(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_o=St(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ca=St(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Jn=St(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pp=Ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ip=Ft(/<%[\w\W]*|[\w\W]*%>/gm),Rp=Ft(/\$\{[\w\W]*/gm),Lp=Ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),kp=Ft(/^aria-[\-\w]+$/),qc=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jp=Ft(/^(?:\w+script|data):/i),Dp=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xc=Ft(/^html$/i),Mp=Ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var ua=Object.freeze({__proto__:null,ARIA_ATTR:kp,ATTR_WHITESPACE:Dp,CUSTOM_ELEMENT:Mp,DATA_ATTR:Lp,DOCTYPE_NAME:Xc,ERB_EXPR:Ip,IS_ALLOWED_URI:qc,IS_SCRIPT_OR_DATA:jp,MUSTACHE_EXPR:Pp,TMPLIT_EXPR:Rp});const yn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Fp=function(){return typeof window>"u"?null:window},Up=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},la=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yc(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fp();const e=w=>Yc(w);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==yn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:u,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,d=u.prototype,g=vn(d,"cloneNode"),v=vn(d,"remove"),x=vn(d,"nextSibling"),m=vn(d,"childNodes"),b=vn(d,"parentNode");if(typeof s=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let E,N="";const{implementation:O,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:P}=n,{importNode:R}=r;let I=la();e.isSupported=typeof Wc=="function"&&typeof b=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:y,TMPLIT_EXPR:A,DATA_ATTR:$,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:M}=ua;let{IS_ALLOWED_URI:z}=ua,j=null;const B=H({},[...ia,...vo,...yo,...bo,...sa]);let V=null;const lt=H({},[...aa,..._o,...ca,...Jn]);let q=Object.seal(Hc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,Lt=null,on=!0,be=!0,Ki=!1,Zi=!0,Re=!1,zn=!0,_e=!1,zr=!1,Gr=!1,Le=!1,Gn=!1,Bn=!1,Ji=!0,Qi=!1;const tl="user-content-";let Br=!0,sn=!1,ke={},je=null;const ts=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let es=null;const ns=H({},["audio","video","img","source","image","track"]);let Vr=null;const rs=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vn="http://www.w3.org/1998/Math/MathML",Wn="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let De=Zt,Wr=!1,Hr=null;const el=H({},[Vn,Wn,Zt],mo);let Hn=H({},["mi","mo","mn","ms","mtext"]),qn=H({},["annotation-xml"]);const nl=H({},["title","style","font","a","script"]);let an=null;const rl=["application/xhtml+xml","text/html"],ol="text/html";let ft=null,Me=null;const il=n.createElement("form"),os=function(w){return w instanceof RegExp||w instanceof Function},qr=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Me&&Me===w)){if((!w||typeof w!="object")&&(w={}),w=ee(w),an=rl.indexOf(w.PARSER_MEDIA_TYPE)===-1?ol:w.PARSER_MEDIA_TYPE,ft=an==="application/xhtml+xml"?mo:lr,j=Gt(w,"ALLOWED_TAGS")?H({},w.ALLOWED_TAGS,ft):B,V=Gt(w,"ALLOWED_ATTR")?H({},w.ALLOWED_ATTR,ft):lt,Hr=Gt(w,"ALLOWED_NAMESPACES")?H({},w.ALLOWED_NAMESPACES,mo):el,Vr=Gt(w,"ADD_URI_SAFE_ATTR")?H(ee(rs),w.ADD_URI_SAFE_ATTR,ft):rs,es=Gt(w,"ADD_DATA_URI_TAGS")?H(ee(ns),w.ADD_DATA_URI_TAGS,ft):ns,je=Gt(w,"FORBID_CONTENTS")?H({},w.FORBID_CONTENTS,ft):ts,wt=Gt(w,"FORBID_TAGS")?H({},w.FORBID_TAGS,ft):ee({}),Lt=Gt(w,"FORBID_ATTR")?H({},w.FORBID_ATTR,ft):ee({}),ke=Gt(w,"USE_PROFILES")?w.USE_PROFILES:!1,on=w.ALLOW_ARIA_ATTR!==!1,be=w.ALLOW_DATA_ATTR!==!1,Ki=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Zi=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=w.SAFE_FOR_TEMPLATES||!1,zn=w.SAFE_FOR_XML!==!1,_e=w.WHOLE_DOCUMENT||!1,Le=w.RETURN_DOM||!1,Gn=w.RETURN_DOM_FRAGMENT||!1,Bn=w.RETURN_TRUSTED_TYPE||!1,Gr=w.FORCE_BODY||!1,Ji=w.SANITIZE_DOM!==!1,Qi=w.SANITIZE_NAMED_PROPS||!1,Br=w.KEEP_CONTENT!==!1,sn=w.IN_PLACE||!1,z=w.ALLOWED_URI_REGEXP||qc,De=w.NAMESPACE||Zt,Hn=w.MATHML_TEXT_INTEGRATION_POINTS||Hn,qn=w.HTML_INTEGRATION_POINTS||qn,q=w.CUSTOM_ELEMENT_HANDLING||{},w.CUSTOM_ELEMENT_HANDLING&&os(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=w.CUSTOM_ELEMENT_HANDLING.tagNameCheck),w.CUSTOM_ELEMENT_HANDLING&&os(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(be=!1),Gn&&(Le=!0),ke&&(j=H({},sa),V=[],ke.html===!0&&(H(j,ia),H(V,aa)),ke.svg===!0&&(H(j,vo),H(V,_o),H(V,Jn)),ke.svgFilters===!0&&(H(j,yo),H(V,_o),H(V,Jn)),ke.mathMl===!0&&(H(j,bo),H(V,ca),H(V,Jn))),w.ADD_TAGS&&(j===B&&(j=ee(j)),H(j,w.ADD_TAGS,ft)),w.ADD_ATTR&&(V===lt&&(V=ee(V)),H(V,w.ADD_ATTR,ft)),w.ADD_URI_SAFE_ATTR&&H(Vr,w.ADD_URI_SAFE_ATTR,ft),w.FORBID_CONTENTS&&(je===ts&&(je=ee(je)),H(je,w.FORBID_CONTENTS,ft)),Br&&(j["#text"]=!0),_e&&H(j,["html","head","body"]),j.table&&(H(j,["tbody"]),delete wt.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw mn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw mn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=w.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=Up(h,o)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));St&&St(w),Me=w}},is=H({},[...vo,...yo,...Cp]),ss=H({},[...bo,...$p]),sl=function(w){let D=b(w);(!D||!D.tagName)&&(D={namespaceURI:De,tagName:"template"});const L=lr(w.tagName),X=lr(D.tagName);return Hr[w.namespaceURI]?w.namespaceURI===Wn?D.namespaceURI===Zt?L==="svg":D.namespaceURI===Vn?L==="svg"&&(X==="annotation-xml"||Hn[X]):!!is[L]:w.namespaceURI===Vn?D.namespaceURI===Zt?L==="math":D.namespaceURI===Wn?L==="math"&&qn[X]:!!ss[L]:w.namespaceURI===Zt?D.namespaceURI===Wn&&!qn[X]||D.namespaceURI===Vn&&!Hn[X]?!1:!ss[L]&&(nl[L]||!is[L]):!!(an==="application/xhtml+xml"&&Hr[w.namespaceURI]):!1},we=function(w){dn(e.removed,{element:w});try{b(w).removeChild(w)}catch{v(w)}},Fe=function(w,D){try{dn(e.removed,{attribute:D.getAttributeNode(w),from:D})}catch{dn(e.removed,{attribute:null,from:D})}if(D.removeAttribute(w),w==="is")if(Le||Gn)try{we(D)}catch{}else try{D.setAttribute(w,"")}catch{}},as=function(w){let D=null,L=null;if(Gr)w="<remove></remove>"+w;else{const nt=oa(w,/^[\r\n\t ]+/);L=nt&&nt[0]}an==="application/xhtml+xml"&&De===Zt&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const X=E?E.createHTML(w):w;if(De===Zt)try{D=new f().parseFromString(X,an)}catch{}if(!D||!D.documentElement){D=O.createDocument(De,"template",null);try{D.documentElement.innerHTML=Wr?N:X}catch{}}const pt=D.body||D.documentElement;return w&&L&&pt.insertBefore(n.createTextNode(L),pt.childNodes[0]||null),De===Zt?P.call(D,_e?"html":"body")[0]:_e?D.documentElement:pt},cs=function(w){return C.call(w.ownerDocument||w,w,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Xr=function(w){return w instanceof p&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof c)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},us=function(w){return typeof a=="function"&&w instanceof a};function Jt(w,D,L){Zn(w,X=>{X.call(e,D,L,Me)})}const ls=function(w){let D=null;if(Jt(I.beforeSanitizeElements,w,null),Xr(w))return we(w),!0;const L=ft(w.nodeName);if(Jt(I.uponSanitizeElement,w,{tagName:L,allowedTags:j}),zn&&w.hasChildNodes()&&!us(w.firstElementChild)&&Et(/<[/\w!]/g,w.innerHTML)&&Et(/<[/\w!]/g,w.textContent)||w.nodeType===yn.progressingInstruction||zn&&w.nodeType===yn.comment&&Et(/<[/\w]/g,w.data))return we(w),!0;if(!j[L]||wt[L]){if(!wt[L]&&ps(L)&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,L)||q.tagNameCheck instanceof Function&&q.tagNameCheck(L)))return!1;if(Br&&!je[L]){const X=b(w)||w.parentNode,pt=m(w)||w.childNodes;if(pt&&X){const nt=pt.length;for(let Qt=nt-1;Qt>=0;--Qt){const zt=g(pt[Qt],!0);zt.__removalCount=(w.__removalCount||0)+1,X.insertBefore(zt,x(w))}}}return we(w),!0}return w instanceof u&&!sl(w)||(L==="noscript"||L==="noembed"||L==="noframes")&&Et(/<\/no(script|embed|frames)/i,w.innerHTML)?(we(w),!0):(Re&&w.nodeType===yn.text&&(D=w.textContent,Zn([_,y,A],X=>{D=gn(D,X," ")}),w.textContent!==D&&(dn(e.removed,{element:w.cloneNode()}),w.textContent=D)),Jt(I.afterSanitizeElements,w,null),!1)},fs=function(w,D,L){if(Ji&&(D==="id"||D==="name")&&(L in n||L in il))return!1;if(!(be&&!Lt[D]&&Et($,D))&&!(on&&Et(k,D))){if(!V[D]||Lt[D]){if(!(ps(w)&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,w)||q.tagNameCheck instanceof Function&&q.tagNameCheck(w))&&(q.attributeNameCheck instanceof RegExp&&Et(q.attributeNameCheck,D)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(D))||D==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,L)||q.tagNameCheck instanceof Function&&q.tagNameCheck(L))))return!1}else if(!Vr[D]&&!Et(z,gn(L,F,""))&&!((D==="src"||D==="xlink:href"||D==="href")&&w!=="script"&&Tp(L,"data:")===0&&es[w])&&!(Ki&&!Et(U,gn(L,F,"")))&&L)return!1}return!0},ps=function(w){return w!=="annotation-xml"&&oa(w,M)},hs=function(w){Jt(I.beforeSanitizeAttributes,w,null);const{attributes:D}=w;if(!D||Xr(w))return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let X=D.length;for(;X--;){const pt=D[X],{name:nt,namespaceURI:Qt,value:zt}=pt,Ht=ft(nt),Yr=zt;let dt=nt==="value"?Yr:Np(Yr);if(L.attrName=Ht,L.attrValue=dt,L.keepAttr=!0,L.forceKeepAttr=void 0,Jt(I.uponSanitizeAttribute,w,L),dt=L.attrValue,Qi&&(Ht==="id"||Ht==="name")&&(Fe(nt,w),dt=tl+dt),zn&&Et(/((--!?|])>)|<\/(style|title)/i,dt)){Fe(nt,w);continue}if(L.forceKeepAttr)continue;if(!L.keepAttr){Fe(nt,w);continue}if(!Zi&&Et(/\/>/i,dt)){Fe(nt,w);continue}Re&&Zn([_,y,A],cl=>{dt=gn(dt,cl," ")});const ds=ft(w.nodeName);if(!fs(ds,Ht,dt)){Fe(nt,w);continue}if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Qt)switch(h.getAttributeType(ds,Ht)){case"TrustedHTML":{dt=E.createHTML(dt);break}case"TrustedScriptURL":{dt=E.createScriptURL(dt);break}}if(dt!==Yr)try{Qt?w.setAttributeNS(Qt,nt,dt):w.setAttribute(nt,dt),Xr(w)?we(w):ra(e.removed)}catch{Fe(nt,w)}}Jt(I.afterSanitizeAttributes,w,null)},al=function w(D){let L=null;const X=cs(D);for(Jt(I.beforeSanitizeShadowDOM,D,null);L=X.nextNode();)Jt(I.uponSanitizeShadowNode,L,null),ls(L),hs(L),L.content instanceof i&&w(L.content);Jt(I.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(w){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,X=null,pt=null,nt=null;if(Wr=!w,Wr&&(w="<!-->"),typeof w!="string"&&!us(w))if(typeof w.toString=="function"){if(w=w.toString(),typeof w!="string")throw mn("dirty is not a string, aborting")}else throw mn("toString is not a function");if(!e.isSupported)return w;if(zr||qr(D),e.removed=[],typeof w=="string"&&(sn=!1),sn){if(w.nodeName){const Ht=ft(w.nodeName);if(!j[Ht]||wt[Ht])throw mn("root node is forbidden and cannot be sanitized in-place")}}else if(w instanceof a)L=as("<!---->"),X=L.ownerDocument.importNode(w,!0),X.nodeType===yn.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?L=X:L.appendChild(X);else{if(!Le&&!Re&&!_e&&w.indexOf("<")===-1)return E&&Bn?E.createHTML(w):w;if(L=as(w),!L)return Le?null:Bn?N:""}L&&Gr&&we(L.firstChild);const Qt=cs(sn?w:L);for(;pt=Qt.nextNode();)ls(pt),hs(pt),pt.content instanceof i&&al(pt.content);if(sn)return w;if(Le){if(Gn)for(nt=T.call(L.ownerDocument);L.firstChild;)nt.appendChild(L.firstChild);else nt=L;return(V.shadowroot||V.shadowrootmode)&&(nt=R.call(r,nt,!0)),nt}let zt=_e?L.outerHTML:L.innerHTML;return _e&&j["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Et(Xc,L.ownerDocument.doctype.name)&&(zt="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
|
|
`+zt),Re&&Zn([_,y,A],Ht=>{zt=gn(zt,Ht," ")}),E&&Bn?E.createHTML(zt):zt},e.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(w),zr=!0},e.clearConfig=function(){Me=null,zr=!1},e.isValidAttribute=function(w,D,L){Me||qr({});const X=ft(w),pt=ft(D);return fs(X,pt,L)},e.addHook=function(w,D){typeof D=="function"&&dn(I[w],D)},e.removeHook=function(w,D){if(D!==void 0){const L=Op(I[w],D);return L===-1?void 0:xp(I[w],L,1)[0]}return ra(I[w])},e.removeHooks=function(w){I[w]=[]},e.removeAllHooks=function(){I=la()},e}var zp=Yc(),wo,fa;function Gp(){if(fa)return wo;fa=1;var t=/["'&<>]/;wo=e;function e(n){var r=""+n,o=t.exec(r);if(!o)return r;var i,s="",a=0,u=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}u!==a&&(s+=r.substring(u,a)),u=a+1,s+=i}return u!==a?s+r.substring(u,a):s}return wo}var Bp=Gp();const pa=li(Bp),Vp=Intl.DateTimeFormat().resolvedOptions().locale;function Wp(){return document.documentElement.dataset.locale||Vp.replaceAll(/-/g,"_")}function $m(){return Wp().replaceAll(/_/g,"-")}function Kc(){return document.documentElement.lang||navigator.language}function Pm(t){const e=Kc();return["ae","ar","arc","arz","bcc","bqi","ckb","dv","fa","glk","ha","he","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","ur-PK","uz-AF","yi"].includes(e)}function Zc(t){return{translations:window._oc_l10n_registry_translations?.[t]??{},pluralFunction:window._oc_l10n_registry_plural_functions?.[t]??(e=>e)}}function Eo(t,e,n,r,o){const i=typeof n=="object"?n:void 0,s=typeof r=="number"?r:typeof n=="number"?n:void 0,a={escape:!0,sanitize:!0,...typeof o=="object"?o:typeof r=="object"?r:{}},u=d=>d,l=a.sanitize?zp.sanitize:u,c=a.escape?pa:u,p=d=>typeof d=="string"||typeof d=="number",f=(d,g,v)=>d.replace(/%n/g,""+v).replace(/{([^{}]*)}/g,(x,m)=>{if(g===void 0||!(m in g))return c(x);const b=g[m];return p(b)?c(`${b}`):typeof b=="object"&&p(b.value)?(b.escape!==!1?pa:u)(`${b.value}`):c(x)});let h=(o?.bundle??Zc(t)).translations[e]||e;return h=Array.isArray(h)?h[0]:h,l(typeof i=="object"||s!==void 0?f(h,i,s):h)}function Im(t,e,n,r,o,i){const s="_"+e+"_::_"+n+"_",a=i?.bundle??Zc(t),u=a.translations[s];if(typeof u<"u"){const l=u;if(Array.isArray(l)){const c=a.pluralFunction(r);return Eo(t,l[c],o,r,i)}}return r===1?Eo(t,e,o,r,i):Eo(t,n,o,r,i)}function Rm(t,e=Kc()){switch(e==="pt-BR"&&(e="xbr"),e.length>3&&(e=e.substring(0,e.lastIndexOf("-"))),e){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return t===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return t===0||t===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"ga":return t===1?0:t===2?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mk":return t%10===1?0:1;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return t===0?0:t%10===1&&t%100!==11?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return t===1?0:t===2?1:t===8||t===11?2:3;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}var Hp={},Pt=Object.freeze({}),W=Array.isArray;function G(t){return t==null}function S(t){return t!=null}function Q(t){return t===!0}function qp(t){return t===!1}function kn(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function Y(t){return typeof t=="function"}function _t(t){return t!==null&&typeof t=="object"}var Ci=Object.prototype.toString;function $t(t){return Ci.call(t)==="[object Object]"}function Xp(t){return Ci.call(t)==="[object RegExp]"}function Jc(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function zo(t){return S(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function Yp(t){return t==null?"":Array.isArray(t)||$t(t)&&t.toString===Ci?JSON.stringify(t,Kp,2):String(t)}function Kp(t,e){return e&&e.__v_isRef?e.value:e}function Sn(t){var e=parseFloat(t);return isNaN(e)?t:e}function Wt(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(i){return n[i.toLowerCase()]}:function(i){return n[i]}}Wt("slot,component",!0);var Zp=Wt("key,ref,slot,slot-scope,is");function ve(t,e){var n=t.length;if(n){if(e===t[n-1]){t.length=n-1;return}var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var Jp=Object.prototype.hasOwnProperty;function At(t,e){return Jp.call(t,e)}function Ie(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var Qp=/-(\w)/g,Ae=Ie(function(t){return t.replace(Qp,function(e,n){return n?n.toUpperCase():""})}),th=Ie(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),eh=/\B([A-Z])/g,jn=Ie(function(t){return t.replace(eh,"-$1").toLowerCase()});function nh(t,e){function n(r){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return n._length=t.length,n}function rh(t,e){return t.bind(e)}var Qc=Function.prototype.bind?rh:nh;function Go(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function Z(t,e){for(var n in e)t[n]=e[n];return t}function tu(t){for(var e={},n=0;n<t.length;n++)t[n]&&Z(e,t[n]);return e}function J(t,e,n){}var Qn=function(t,e,n){return!1},eu=function(t){return t};function Se(t,e){if(t===e)return!0;var n=_t(t),r=_t(e);if(n&&r)try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every(function(u,l){return Se(u,e[l])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!o&&!i){var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every(function(u){return Se(t[u],e[u])})}else return!1}catch{return!1}else return!n&&!r?String(t)===String(e):!1}function nu(t,e){for(var n=0;n<t.length;n++)if(Se(t[n],e))return n;return-1}function xr(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function Bo(t,e){return t===e?t===0&&1/t!==1/e:t===t||e===e}var ha="data-server-rendered",Fr=["component","directive","filter"],ru=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],Mt={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Qn,isReservedAttr:Qn,isUnknownElement:Qn,getTagNamespace:J,parsePlatformTagName:eu,mustUseProp:Qn,async:!0,_lifecycleHooks:ru},oh=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ou(t){var e=(t+"").charCodeAt(0);return e===36||e===95}function ot(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var ih=new RegExp("[^".concat(oh.source,".$_\\d]"));function sh(t){if(!ih.test(t)){var e=t.split(".");return function(n){for(var r=0;r<e.length;r++){if(!n)return;n=n[e[r]]}return n}}}var ah="__proto__"in{},It=typeof window<"u",Ut=It&&window.navigator.userAgent.toLowerCase(),tn=Ut&&/msie|trident/.test(Ut),en=Ut&&Ut.indexOf("msie 9.0")>0,iu=Ut&&Ut.indexOf("edge/")>0;Ut&&Ut.indexOf("android")>0;var ch=Ut&&/iphone|ipad|ipod|ios/.test(Ut),da=Ut&&Ut.match(/firefox\/(\d+)/),Vo={}.watch,su=!1;if(It)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){su=!0}}),window.addEventListener("test-passive",null,ga)}catch{}var tr,ye=function(){return tr===void 0&&(!It&&typeof Be<"u"?tr=Be.process&&Hp.VUE_ENV==="server":tr=!1),tr},Tr=It&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ze(t){return typeof t=="function"&&/native code/.test(t.toString())}var Dn=typeof Symbol<"u"&&Ze(Symbol)&&typeof Reflect<"u"&&Ze(Reflect.ownKeys),Cn;typeof Set<"u"&&Ze(Set)?Cn=Set:Cn=function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(e){return this.set[e]===!0},t.prototype.add=function(e){this.set[e]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var yt=null;function Lm(){return yt&&{proxy:yt}}function de(t){t===void 0&&(t=null),t||yt&&yt._scope.off(),yt=t,t&&t._scope.on()}var Rt=function(){function t(e,n,r,o,i,s,a,u){this.tag=e,this.data=n,this.children=r,this.text=o,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=u,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),Je=function(t){t===void 0&&(t="");var e=new Rt;return e.text=t,e.isComment=!0,e};function He(t){return new Rt(void 0,void 0,void 0,String(t))}function Wo(t){var e=new Rt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var uh=0,fr=[],lh=function(){for(var t=0;t<fr.length;t++){var e=fr[t];e.subs=e.subs.filter(function(n){return n}),e._pending=!1}fr.length=0},Kt=function(){function t(){this._pending=!1,this.id=uh++,this.subs=[]}return t.prototype.addSub=function(e){this.subs.push(e)},t.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,fr.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(e){for(var n=this.subs.filter(function(s){return s}),r=0,o=n.length;r<o;r++){var i=n[r];i.update()}},t}();Kt.target=null;var pr=[];function nn(t){pr.push(t),Kt.target=t}function rn(){pr.pop(),Kt.target=pr[pr.length-1]}var au=Array.prototype,Nr=Object.create(au),fh=["push","pop","shift","unshift","splice","sort","reverse"];fh.forEach(function(t){var e=au[t];ot(Nr,t,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n),i=this.__ob__,s;switch(t){case"push":case"unshift":s=n;break;case"splice":s=n.slice(2);break}return s&&i.observeArray(s),i.dep.notify(),o})});var ma=Object.getOwnPropertyNames(Nr),cu={},$i=!0;function ge(t){$i=t}var ph={notify:J,depend:J,addSub:J,removeSub:J},va=function(){function t(e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),this.value=e,this.shallow=n,this.mock=r,this.dep=r?ph:new Kt,this.vmCount=0,ot(e,"__ob__",this),W(e)){if(!r)if(ah)e.__proto__=Nr;else for(var o=0,i=ma.length;o<i;o++){var s=ma[o];ot(e,s,Nr[s])}n||this.observeArray(e)}else for(var a=Object.keys(e),o=0;o<a.length;o++){var s=a[o];me(e,s,cu,void 0,n,r)}}return t.prototype.observeArray=function(e){for(var n=0,r=e.length;n<r;n++)ce(e[n],!1,this.mock)},t}();function ce(t,e,n){if(t&&At(t,"__ob__")&&t.__ob__ instanceof va)return t.__ob__;if($i&&(n||!ye())&&(W(t)||$t(t))&&Object.isExtensible(t)&&!t.__v_skip&&!bt(t)&&!(t instanceof Rt))return new va(t,e,n)}function me(t,e,n,r,o,i,s){s===void 0&&(s=!1);var a=new Kt,u=Object.getOwnPropertyDescriptor(t,e);if(!(u&&u.configurable===!1)){var l=u&&u.get,c=u&&u.set;(!l||c)&&(n===cu||arguments.length===2)&&(n=t[e]);var p=o?n&&n.__ob__:ce(n,!1,i);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var f=l?l.call(t):n;return Kt.target&&(a.depend(),p&&(p.dep.depend(),W(f)&&lu(f))),bt(f)&&!o?f.value:f},set:function(f){var h=l?l.call(t):n;if(Bo(h,f)){if(c)c.call(t,f);else{if(l)return;if(!o&&bt(h)&&!bt(f)){h.value=f;return}else n=f}p=o?f&&f.__ob__:ce(f,!1,i),a.notify()}}}),a}}function Pi(t,e,n){if(!Mn(t)){var r=t.__ob__;return W(t)&&Jc(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&ce(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(me(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function uu(t,e){if(W(t)&&Jc(e)){t.splice(e,1);return}var n=t.__ob__;t._isVue||n&&n.vmCount||Mn(t)||At(t,e)&&(delete t[e],n&&n.dep.notify())}function lu(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),W(e)&&lu(e)}function km(t){return pu(t,!1),t}function fu(t){return pu(t,!0),ot(t,"__v_isShallow",!0),t}function pu(t,e){Mn(t)||ce(t,e,ye())}function hr(t){return Mn(t)?hr(t.__v_raw):!!(t&&t.__ob__)}function Ho(t){return!!(t&&t.__v_isShallow)}function Mn(t){return!!(t&&t.__v_isReadonly)}function hh(t){var e=t&&t.__v_raw;return e?hh(e):t}function jm(t){return Object.isExtensible(t)&&ot(t,"__v_skip",!0),t}var Fn="__v_isRef";function bt(t){return!!(t&&t.__v_isRef===!0)}function Dm(t){return hu(t,!1)}function Mm(t){return hu(t,!0)}function hu(t,e){if(bt(t))return t;var n={};return ot(n,Fn,!0),ot(n,"__v_isShallow",e),ot(n,"dep",me(n,"value",t,null,e,ye())),n}function Fm(t){return bt(t)?t.value:t}function qo(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var r=e[n];if(bt(r))return r.value;var o=r&&r.__ob__;return o&&o.dep.depend(),r},set:function(r){var o=e[n];bt(o)&&!bt(r)?o.value=r:e[n]=r}})}function Um(t){var e=new Kt,n=t(function(){e.depend()},function(){e.notify()}),r=n.get,o=n.set,i={get value(){return r()},set value(s){o(s)}};return ot(i,Fn,!0),i}function zm(t){var e=W(t)?new Array(t.length):{};for(var n in t)e[n]=dh(t,n);return e}function dh(t,e,n){var r=t[e];if(bt(r))return r;var o={get value(){var i=t[e];return i===void 0?n:i},set value(i){t[e]=i}};return ot(o,Fn,!0),o}var gh="__v_rawToReadonly";function mh(t){return vh(t)}function vh(t,e){if(!$t(t)||Mn(t))return t;var n=gh,r=t[n];if(r)return r;var o=Object.create(Object.getPrototypeOf(t));ot(t,n,o),ot(o,"__v_isReadonly",!0),ot(o,"__v_raw",t),bt(t)&&ot(o,Fn,!0),Ho(t)&&ot(o,"__v_isShallow",!0);for(var i=Object.keys(t),s=0;s<i.length;s++)yh(o,t,i[s]);return o}function yh(t,e,n,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var o=e[n];return $t(o)?mh(o):o},set:function(){}})}function Gm(t,e){var n,r,o=Y(t);o?(n=t,r=J):(n=t.get,r=t.set);var i=ye()?null:new Un(yt,n,J,{lazy:!0}),s={effect:i,get value(){return i?(i.dirty&&i.evaluate(),Kt.target&&i.depend(),i.value):n()},set value(a){r(a)}};return ot(s,Fn,!0),ot(s,"__v_isReadonly",o),s}var Ur="watcher",ya="".concat(Ur," callback"),ba="".concat(Ur," getter"),bh="".concat(Ur," cleanup");function Bm(t,e){return Ii(t,null,e)}function _h(t,e){return Ii(t,null,{flush:"post"})}var _a={};function Vm(t,e,n){return Ii(t,e,n)}function Ii(t,e,n){var r=n===void 0?Pt:n,o=r.immediate,i=r.deep,s=r.flush,a=s===void 0?"pre":s;r.onTrack,r.onTrigger;var u=yt,l=function(m,b,E){E===void 0&&(E=null);var N=ue(m,null,E,u,b);return i&&N&&N.__ob__&&N.__ob__.dep.depend(),N},c,p=!1,f=!1;if(bt(t)?(c=function(){return t.value},p=Ho(t)):hr(t)?(c=function(){return t.__ob__.dep.depend(),t},i=!0):W(t)?(f=!0,p=t.some(function(m){return hr(m)||Ho(m)}),c=function(){return t.map(function(m){if(bt(m))return m.value;if(hr(m))return m.__ob__.dep.depend(),Qe(m);if(Y(m))return l(m,ba)})}):Y(t)?e?c=function(){return l(t,ba)}:c=function(){if(!(u&&u._isDestroyed))return d&&d(),l(t,Ur,[g])}:c=J,e&&i){var h=c;c=function(){return Qe(h())}}var d,g=function(m){d=v.onStop=function(){l(m,bh)}};if(ye())return g=J,e?o&&l(e,ya,[c(),f?[]:void 0,g]):c(),J;var v=new Un(yt,c,J,{lazy:!0});v.noRecurse=!e;var x=f?[]:_a;return v.run=function(){if(v.active)if(e){var m=v.get();(i||p||(f?m.some(function(b,E){return Bo(b,x[E])}):Bo(m,x)))&&(d&&d(),l(e,ya,[m,x===_a?void 0:x,g]),x=m)}else v.get()},a==="sync"?v.update=v.run:a==="post"?(v.post=!0,v.update=function(){return ti(v)}):v.update=function(){if(u&&u===yt&&!u._isMounted){var m=u._preWatchers||(u._preWatchers=[]);m.indexOf(v)<0&&m.push(v)}else ti(v)},e?o?v.run():x=v.get():a==="post"&&u?u.$once("hook:mounted",function(){return v.get()}):v.get(),function(){v.teardown()}}var mt,du=function(){function t(e){e===void 0&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=mt,!e&&mt&&(this.index=(mt.scopes||(mt.scopes=[])).push(this)-1)}return t.prototype.run=function(e){if(this.active){var n=mt;try{return mt=this,e()}finally{mt=n}}},t.prototype.on=function(){mt=this},t.prototype.off=function(){mt=this.parent},t.prototype.stop=function(e){if(this.active){var n=void 0,r=void 0;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].teardown();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){var o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this.active=!1}},t}();function Wm(t){return new du(t)}function wh(t,e){e===void 0&&(e=mt),e&&e.active&&e.effects.push(t)}function Eh(){return mt}function Hm(t){mt&&mt.cleanups.push(t)}function Oh(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function qm(t,e,n){n===void 0&&(n=!1);var r=yt;if(r){var o=r.$parent&&r.$parent._provided;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Y(e)?e.call(r):e}}var wa=Ie(function(t){var e=t.charAt(0)==="&";t=e?t.slice(1):t;var n=t.charAt(0)==="~";t=n?t.slice(1):t;var r=t.charAt(0)==="!";return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}});function Xo(t,e){function n(){var r=n.fns;if(W(r))for(var o=r.slice(),i=0;i<o.length;i++)ue(o[i],null,arguments,e,"v-on handler");else return ue(r,null,arguments,e,"v-on handler")}return n.fns=t,n}function gu(t,e,n,r,o,i){var s,a,u,l;for(s in t)a=t[s],u=e[s],l=wa(s),G(a)||(G(u)?(G(a.fns)&&(a=t[s]=Xo(a,i)),Q(l.once)&&(a=t[s]=o(l.name,a,l.capture)),n(l.name,a,l.capture,l.passive,l.params)):a!==u&&(u.fns=a,t[s]=u));for(s in e)G(t[s])&&(l=wa(s),r(l.name,e[s],l.capture))}function pe(t,e,n){t instanceof Rt&&(t=t.data.hook||(t.data.hook={}));var r,o=t[e];function i(){n.apply(this,arguments),ve(r.fns,i)}G(o)?r=Xo([i]):S(o.fns)&&Q(o.merged)?(r=o,r.fns.push(i)):r=Xo([o,i]),r.merged=!0,t[e]=r}function xh(t,e,n){var r=e.options.props;if(!G(r)){var o={},i=t.attrs,s=t.props;if(S(i)||S(s))for(var a in r){var u=jn(a);Ea(o,s,a,u,!0)||Ea(o,i,a,u,!1)}return o}}function Ea(t,e,n,r,o){if(S(e)){if(At(e,n))return t[n]=e[n],o||delete e[n],!0;if(At(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Th(t){for(var e=0;e<t.length;e++)if(W(t[e]))return Array.prototype.concat.apply([],t);return t}function Ri(t){return kn(t)?[He(t)]:W(t)?mu(t):void 0}function bn(t){return S(t)&&S(t.text)&&qp(t.isComment)}function mu(t,e){var n=[],r,o,i,s;for(r=0;r<t.length;r++)o=t[r],!(G(o)||typeof o=="boolean")&&(i=n.length-1,s=n[i],W(o)?o.length>0&&(o=mu(o,"".concat(e||"","_").concat(r)),bn(o[0])&&bn(s)&&(n[i]=He(s.text+o[0].text),o.shift()),n.push.apply(n,o)):kn(o)?bn(s)?n[i]=He(s.text+o):o!==""&&n.push(He(o)):bn(o)&&bn(s)?n[i]=He(s.text+o.text):(Q(t._isVList)&&S(o.tag)&&G(o.key)&&S(e)&&(o.key="__vlist".concat(e,"_").concat(r,"__")),n.push(o)));return n}function Nh(t,e){var n=null,r,o,i,s;if(W(t)||typeof t=="string")for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if(typeof t=="number")for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(_t(t))if(Dn&&t[Symbol.iterator]){n=[];for(var a=t[Symbol.iterator](),u=a.next();!u.done;)n.push(e(u.value,n.length)),u=a.next()}else for(i=Object.keys(t),n=new Array(i.length),r=0,o=i.length;r<o;r++)s=i[r],n[r]=e(t[s],s,r);return S(n)||(n=[]),n._isVList=!0,n}function Ah(t,e,n,r){var o=this.$scopedSlots[t],i;o?(n=n||{},r&&(n=Z(Z({},r),n)),i=o(n)||(Y(e)?e():e)):i=this.$slots[t]||(Y(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Sh(t){return Pr(this.$options,"filters",t)||eu}function Oa(t,e){return W(t)?t.indexOf(e)===-1:t!==e}function Ch(t,e,n,r,o){var i=Mt.keyCodes[e]||n;return o&&r&&!Mt.keyCodes[e]?Oa(o,r):i?Oa(i,t):r?jn(r)!==e:t===void 0}function $h(t,e,n,r,o){if(n&&_t(n)){W(n)&&(n=tu(n));var i=void 0,s=function(u){if(u==="class"||u==="style"||Zp(u))i=t;else{var l=t.attrs&&t.attrs.type;i=r||Mt.mustUseProp(e,l,u)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=Ae(u),p=jn(u);if(!(c in i)&&!(p in i)&&(i[u]=n[u],o)){var f=t.on||(t.on={});f["update:".concat(u)]=function(h){n[u]=h}}};for(var a in n)s(a)}return t}function Ph(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),vu(r,"__static__".concat(t),!1)),r}function Ih(t,e,n){return vu(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function vu(t,e,n){if(W(t))for(var r=0;r<t.length;r++)t[r]&&typeof t[r]!="string"&&xa(t[r],"".concat(e,"_").concat(r),n);else xa(t,e,n)}function xa(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Rh(t,e){if(e&&$t(e)){var n=t.on=t.on?Z({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}return t}function yu(t,e,n,r){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var i=t[o];W(i)?yu(i,e,n):i&&(i.proxy&&(i.fn.proxy=!0),e[i.key]=i.fn)}return r&&(e.$key=r),e}function Lh(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];typeof r=="string"&&r&&(t[e[n]]=e[n+1])}return t}function kh(t,e){return typeof t=="string"?e+t:t}function bu(t){t._o=Ih,t._n=Sn,t._s=Yp,t._l=Nh,t._t=Ah,t._q=Se,t._i=nu,t._m=Ph,t._f=Sh,t._k=Ch,t._b=$h,t._v=He,t._e=Je,t._u=yu,t._g=Rh,t._d=Lh,t._p=kh}function Li(t,e){if(!t||!t.length)return{};for(var n={},r=0,o=t.length;r<o;r++){var i=t[r],s=i.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,(i.context===e||i.fnContext===e)&&s&&s.slot!=null){var a=s.slot,u=n[a]||(n[a]=[]);i.tag==="template"?u.push.apply(u,i.children||[]):u.push(i)}else(n.default||(n.default=[])).push(i)}for(var l in n)n[l].every(jh)&&delete n[l];return n}function jh(t){return t.isComment&&!t.asyncFactory||t.text===" "}function $n(t){return t.isComment&&t.asyncFactory}function Nn(t,e,n,r){var o,i=Object.keys(n).length>0,s=e?!!e.$stable:!i,a=e&&e.$key;if(!e)o={};else{if(e._normalized)return e._normalized;if(s&&r&&r!==Pt&&a===r.$key&&!i&&!r.$hasNormal)return r;o={};for(var u in e)e[u]&&u[0]!=="$"&&(o[u]=Dh(t,n,u,e[u]))}for(var l in n)l in o||(o[l]=Mh(n,l));return e&&Object.isExtensible(e)&&(e._normalized=o),ot(o,"$stable",s),ot(o,"$key",a),ot(o,"$hasNormal",i),o}function Dh(t,e,n,r){var o=function(){var i=yt;de(t);var s=arguments.length?r.apply(null,arguments):r({});s=s&&typeof s=="object"&&!W(s)?[s]:Ri(s);var a=s&&s[0];return de(i),s&&(!a||s.length===1&&a.isComment&&!$n(a))?void 0:s};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function Mh(t,e){return function(){return t[e]}}function Fh(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=_u(t);de(t),nn();var o=ue(n,null,[t._props||fu({}),r],t,"setup");if(rn(),de(),Y(o))e.render=o;else if(_t(o))if(t._setupState=o,o.__sfc){var i=t._setupProxy={};for(var s in o)s!=="__sfc"&&qo(i,o,s)}else for(var s in o)ou(s)||qo(t,o,s)}}function _u(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};ot(e,"_v_attr_proxy",!0),Ar(e,t.$attrs,Pt,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Ar(e,t.$listeners,Pt,t,"$listeners")}return t._listenersProxy},get slots(){return zh(t)},emit:Qc(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return qo(t,e,n)})}}}function Ar(t,e,n,r,o){var i=!1;for(var s in e)s in t?e[s]!==n[s]&&(i=!0):(i=!0,Uh(t,s,r,o));for(var s in t)s in e||(i=!0,delete t[s]);return i}function Uh(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function zh(t){return t._slotsProxy||wu(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function wu(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function Xm(){return Gh().slots}function Gh(){var t=yt;return t._setupContext||(t._setupContext=_u(t))}function Bh(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Li(e._renderChildren,r),t.$scopedSlots=n?Nn(t.$parent,n.data.scopedSlots,t.$slots):Pt,t._c=function(i,s,a,u){return Sr(t,i,s,a,u,!1)},t.$createElement=function(i,s,a,u){return Sr(t,i,s,a,u,!0)};var o=n&&n.data;me(t,"$attrs",o&&o.attrs||Pt,null,!0),me(t,"$listeners",e._parentListeners||Pt,null,!0)}var dr=null;function Vh(t){bu(t.prototype),t.prototype.$nextTick=function(e){return ki(e,this)},t.prototype._render=function(){var e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=Nn(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&wu(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;var i=yt,s=dr,a;try{de(e),dr=e,a=r.call(e._renderProxy,e.$createElement)}catch(u){Ce(u,e,"render"),a=e._vnode}finally{dr=s,de(i)}return W(a)&&a.length===1&&(a=a[0]),a instanceof Rt||(a=Je()),a.parent=o,a}}function Oo(t,e){return(t.__esModule||Dn&&t[Symbol.toStringTag]==="Module")&&(t=t.default),_t(t)?e.extend(t):t}function Wh(t,e,n,r,o){var i=Je();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function Hh(t,e){if(Q(t.error)&&S(t.errorComp))return t.errorComp;if(S(t.resolved))return t.resolved;var n=dr;if(n&&S(t.owners)&&t.owners.indexOf(n)===-1&&t.owners.push(n),Q(t.loading)&&S(t.loadingComp))return t.loadingComp;if(n&&!S(t.owners)){var r=t.owners=[n],o=!0,i=null,s=null;n.$on("hook:destroyed",function(){return ve(r,n)});var a=function(p){for(var f=0,h=r.length;f<h;f++)r[f].$forceUpdate();p&&(r.length=0,i!==null&&(clearTimeout(i),i=null),s!==null&&(clearTimeout(s),s=null))},u=xr(function(p){t.resolved=Oo(p,e),o?r.length=0:a(!0)}),l=xr(function(p){S(t.errorComp)&&(t.error=!0,a(!0))}),c=t(u,l);return _t(c)&&(zo(c)?G(t.resolved)&&c.then(u,l):zo(c.component)&&(c.component.then(u,l),S(c.error)&&(t.errorComp=Oo(c.error,e)),S(c.loading)&&(t.loadingComp=Oo(c.loading,e),c.delay===0?t.loading=!0:i=setTimeout(function(){i=null,G(t.resolved)&&G(t.error)&&(t.loading=!0,a(!1))},c.delay||200)),S(c.timeout)&&(s=setTimeout(function(){s=null,G(t.resolved)&&l(null)},c.timeout)))),o=!1,t.loading?t.loadingComp:t.resolved}}function Eu(t){if(W(t))for(var e=0;e<t.length;e++){var n=t[e];if(S(n)&&(S(n.componentOptions)||$n(n)))return n}}var qh=1,Ou=2;function Sr(t,e,n,r,o,i){return(W(n)||kn(n))&&(o=r,r=n,n=void 0),Q(i)&&(o=Ou),Xh(t,e,n,r,o)}function Xh(t,e,n,r,o){if(S(n)&&S(n.__ob__)||(S(n)&&S(n.is)&&(e=n.is),!e))return Je();W(r)&&Y(r[0])&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===Ou?r=Ri(r):o===qh&&(r=Th(r));var i,s;if(typeof e=="string"){var a=void 0;s=t.$vnode&&t.$vnode.ns||Mt.getTagNamespace(e),Mt.isReservedTag(e)?i=new Rt(Mt.parsePlatformTagName(e),n,r,void 0,void 0,t):(!n||!n.pre)&&S(a=Pr(t.$options,"components",e))?i=Ia(a,n,t,r,e):i=new Rt(e,n,r,void 0,void 0,t)}else i=Ia(e,n,t,r);return W(i)?i:S(i)?(S(s)&&xu(i,s),S(n)&&Yh(n),i):Je()}function xu(t,e,n){if(t.ns=e,t.tag==="foreignObject"&&(e=void 0,n=!0),S(t.children))for(var r=0,o=t.children.length;r<o;r++){var i=t.children[r];S(i.tag)&&(G(i.ns)||Q(n)&&i.tag!=="svg")&&xu(i,e,n)}}function Yh(t){_t(t.style)&&Qe(t.style),_t(t.class)&&Qe(t.class)}function Ce(t,e,n){nn();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var s=o[i].call(r,t,e,n)===!1;if(s)return}catch(a){Ta(a,r,"errorCaptured hook")}}Ta(t,e,n)}finally{rn()}}function ue(t,e,n,r,o){var i;try{i=n?t.apply(e,n):t.call(e),i&&!i._isVue&&zo(i)&&!i._handled&&(i.catch(function(s){return Ce(s,r,o+" (Promise/async)")}),i._handled=!0)}catch(s){Ce(s,r,o)}return i}function Ta(t,e,n){if(Mt.errorHandler)try{return Mt.errorHandler.call(null,t,e,n)}catch(r){r!==t&&Na(r)}Na(t)}function Na(t,e,n){if(It&&typeof console<"u")console.error(t);else throw t}var Yo=!1,Ko=[],Zo=!1;function er(){Zo=!1;var t=Ko.slice(0);Ko.length=0;for(var e=0;e<t.length;e++)t[e]()}var On;if(typeof Promise<"u"&&Ze(Promise)){var Kh=Promise.resolve();On=function(){Kh.then(er),ch&&setTimeout(J)},Yo=!0}else if(!tn&&typeof MutationObserver<"u"&&(Ze(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var nr=1,Zh=new MutationObserver(er),Aa=document.createTextNode(String(nr));Zh.observe(Aa,{characterData:!0}),On=function(){nr=(nr+1)%2,Aa.data=String(nr)},Yo=!0}else typeof setImmediate<"u"&&Ze(setImmediate)?On=function(){setImmediate(er)}:On=function(){setTimeout(er,0)};function ki(t,e){var n;if(Ko.push(function(){if(t)try{t.call(e)}catch(r){Ce(r,e,"nextTick")}else n&&n(e)}),Zo||(Zo=!0,On()),!t&&typeof Promise<"u")return new Promise(function(r){n=r})}function Ym(t){if(It){var e=yt;e&&_h(function(){var n=e.$el,r=t(e,e._setupProxy);if(n&&n.nodeType===1){var o=n.style;for(var i in r)o.setProperty("--".concat(i),r[i])}})}}function Km(t){Y(t)&&(t={loader:t});var e=t.loader,n=t.loadingComponent,r=t.errorComponent,o=t.delay,i=o===void 0?200:o,s=t.timeout;t.suspensible;var a=t.onError,u=null,l=0,c=function(){return l++,u=null,p()},p=function(){var f;return u||(f=u=e().catch(function(h){if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise(function(d,g){var v=function(){return d(c())},x=function(){return g(h)};a(h,v,x,l+1)});throw h}).then(function(h){return f!==u&&u?u:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),h)}))};return function(){var f=p();return{component:f,delay:i,timeout:s,error:r,loading:n}}}function Tu(t){return function(e,n){if(n===void 0&&(n=yt),!!n)return Jh(n,t,e)}}function Jh(t,e,n){var r=t.$options;r[e]=Iu(r[e],n)}var Zm=Tu("mounted"),Jm=Tu("destroyed"),Qh="2.7.16";function Qm(t){return t}var Sa=new Cn;function Qe(t){return gr(t,Sa),Sa.clear(),t}function gr(t,e){var n,r,o=W(t);if(!(!o&&!_t(t)||t.__v_skip||Object.isFrozen(t)||t instanceof Rt)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)gr(t[n],e);else if(bt(t))gr(t.value,e);else for(r=Object.keys(t),n=r.length;n--;)gr(t[r[n]],e)}}var td=0,Un=function(){function t(e,n,r,o,i){wh(this,mt&&!mt._vm?mt:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++td,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Cn,this.newDepIds=new Cn,this.expression="",Y(n)?this.getter=n:(this.getter=sh(n),this.getter||(this.getter=J)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){nn(this);var e,n=this.vm;try{e=this.getter.call(n,n)}catch(r){if(this.user)Ce(r,n,'getter for watcher "'.concat(this.expression,'"'));else throw r}finally{this.deep&&Qe(e),rn(),this.cleanupDeps()}return e},t.prototype.addDep=function(e){var n=e.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(e),this.depIds.has(n)||e.addSub(this))},t.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var n=this.deps[e];this.newDepIds.has(n.id)||n.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},t.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||_t(e)||this.deep){var n=this.value;if(this.value=e,this.user){var r='callback for watcher "'.concat(this.expression,'"');ue(this.cb,this.vm,[e,n],this.vm,r)}else this.cb.call(this.vm,e,n)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&ve(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function ed(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Nu(t,e)}var Pn;function nd(t,e){Pn.$on(t,e)}function rd(t,e){Pn.$off(t,e)}function od(t,e){var n=Pn;return function r(){var o=e.apply(null,arguments);o!==null&&n.$off(t,r)}}function Nu(t,e,n){Pn=t,gu(e,n||{},nd,rd,od,t),Pn=void 0}function id(t){var e=/^hook:/;t.prototype.$on=function(n,r){var o=this;if(W(n))for(var i=0,s=n.length;i<s;i++)o.$on(n[i],r);else(o._events[n]||(o._events[n]=[])).push(r),e.test(n)&&(o._hasHookEvent=!0);return o},t.prototype.$once=function(n,r){var o=this;function i(){o.$off(n,i),r.apply(o,arguments)}return i.fn=r,o.$on(n,i),o},t.prototype.$off=function(n,r){var o=this;if(!arguments.length)return o._events=Object.create(null),o;if(W(n)){for(var i=0,s=n.length;i<s;i++)o.$off(n[i],r);return o}var a=o._events[n];if(!a)return o;if(!r)return o._events[n]=null,o;for(var u,l=a.length;l--;)if(u=a[l],u===r||u.fn===r){a.splice(l,1);break}return o},t.prototype.$emit=function(n){var r=this,o=r._events[n];if(o){o=o.length>1?Go(o):o;for(var i=Go(arguments,1),s='event handler for "'.concat(n,'"'),a=0,u=o.length;a<u;a++)ue(o[a],r,i,r,s)}return r}}var Te=null;function Au(t){var e=Te;return Te=t,function(){Te=e}}function sd(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function ad(t){t.prototype._update=function(e,n){var r=this,o=r.$el,i=r._vnode,s=Au(r);r._vnode=e,i?r.$el=r.__patch__(i,e):r.$el=r.__patch__(r.$el,e,n,!1),s(),o&&(o.__vue__=null),r.$el&&(r.$el.__vue__=r);for(var a=r;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},t.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Vt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var n=e.$parent;n&&!n._isBeingDestroyed&&!e.$options.abstract&&ve(n.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Vt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function cd(t,e,n){t.$el=e,t.$options.render||(t.$options.render=Je),Vt(t,"beforeMount");var r;r=function(){t._update(t._render(),n)};var o={before:function(){t._isMounted&&!t._isDestroyed&&Vt(t,"beforeUpdate")}};new Un(t,r,J,o,!0),n=!1;var i=t._preWatchers;if(i)for(var s=0;s<i.length;s++)i[s].run();return t.$vnode==null&&(t._isMounted=!0,Vt(t,"mounted")),t}function ud(t,e,n,r,o){var i=r.data.scopedSlots,s=t.$scopedSlots,a=!!(i&&!i.$stable||s!==Pt&&!s.$stable||i&&t.$scopedSlots.$key!==i.$key||!i&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||a),l=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var c=r.data.attrs||Pt;t._attrsProxy&&Ar(t._attrsProxy,c,l.data&&l.data.attrs||Pt,t,"$attrs")&&(u=!0),t.$attrs=c,n=n||Pt;var p=t.$options._parentListeners;if(t._listenersProxy&&Ar(t._listenersProxy,n,p||Pt,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,Nu(t,n,p),e&&t.$options.props){ge(!1);for(var f=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var g=h[d],v=t.$options.props;f[g]=zi(g,v,e,t)}ge(!0),t.$options.propsData=e}u&&(t.$slots=Li(o,r.context),t.$forceUpdate())}function Su(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function ji(t,e){if(e){if(t._directInactive=!1,Su(t))return}else if(t._directInactive)return;if(t._inactive||t._inactive===null){t._inactive=!1;for(var n=0;n<t.$children.length;n++)ji(t.$children[n]);Vt(t,"activated")}}function Cu(t,e){if(!(e&&(t._directInactive=!0,Su(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Cu(t.$children[n]);Vt(t,"deactivated")}}function Vt(t,e,n,r){r===void 0&&(r=!0),nn();var o=yt,i=Eh();r&&de(t);var s=t.$options[e],a="".concat(e," hook");if(s)for(var u=0,l=s.length;u<l;u++)ue(s[u],t,null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&(de(o),i&&i.on()),rn()}var ie=[],Di=[],Cr={},Jo=!1,Mi=!1,qe=0;function ld(){qe=ie.length=Di.length=0,Cr={},Jo=Mi=!1}var $u=0,Qo=Date.now;if(It&&!tn){var xo=window.performance;xo&&typeof xo.now=="function"&&Qo()>document.createEvent("Event").timeStamp&&(Qo=function(){return xo.now()})}var fd=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function pd(){$u=Qo(),Mi=!0;var t,e;for(ie.sort(fd),qe=0;qe<ie.length;qe++)t=ie[qe],t.before&&t.before(),e=t.id,Cr[e]=null,t.run();var n=Di.slice(),r=ie.slice();ld(),gd(n),hd(r),lh(),Tr&&Mt.devtools&&Tr.emit("flush")}function hd(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Vt(r,"updated")}}function dd(t){t._inactive=!1,Di.push(t)}function gd(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,ji(t[e],!0)}function ti(t){var e=t.id;if(Cr[e]==null&&!(t===Kt.target&&t.noRecurse)){if(Cr[e]=!0,!Mi)ie.push(t);else{for(var n=ie.length-1;n>qe&&ie[n].id>t.id;)n--;ie.splice(n+1,0,t)}Jo||(Jo=!0,ki(pd))}}function md(t){var e=t.$options.provide;if(e){var n=Y(e)?e.call(t):e;if(!_t(n))return;for(var r=Oh(t),o=Dn?Reflect.ownKeys(n):Object.keys(n),i=0;i<o.length;i++){var s=o[i];Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(n,s))}}}function vd(t){var e=Pu(t.$options.inject,t);e&&(ge(!1),Object.keys(e).forEach(function(n){me(t,n,e[n])}),ge(!0))}function Pu(t,e){if(t){for(var n=Object.create(null),r=Dn?Reflect.ownKeys(t):Object.keys(t),o=0;o<r.length;o++){var i=r[o];if(i!=="__ob__"){var s=t[i].from;if(s in e._provided)n[i]=e._provided[s];else if("default"in t[i]){var a=t[i].default;n[i]=Y(a)?a.call(e):a}}}return n}}function Fi(t,e,n,r,o){var i=this,s=o.options,a;At(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var u=Q(s._compiled),l=!u;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||Pt,this.injections=Pu(s.inject,r),this.slots=function(){return i.$slots||Nn(r,t.scopedSlots,i.$slots=Li(n,r)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Nn(r,t.scopedSlots,this.slots())}}),u&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=Nn(r,t.scopedSlots,this.$slots)),s._scopeId?this._c=function(c,p,f,h){var d=Sr(a,c,p,f,h,l);return d&&!W(d)&&(d.fnScopeId=s._scopeId,d.fnContext=r),d}:this._c=function(c,p,f,h){return Sr(a,c,p,f,h,l)}}bu(Fi.prototype);function yd(t,e,n,r,o){var i=t.options,s={},a=i.props;if(S(a))for(var u in a)s[u]=zi(u,a,e||Pt);else S(n.attrs)&&$a(s,n.attrs),S(n.props)&&$a(s,n.props);var l=new Fi(n,s,o,r,t),c=i.render.call(null,l._c,l);if(c instanceof Rt)return Ca(c,n,l.parent,i);if(W(c)){for(var p=Ri(c)||[],f=new Array(p.length),h=0;h<p.length;h++)f[h]=Ca(p[h],n,l.parent,i);return f}}function Ca(t,e,n,r,o){var i=Wo(t);return i.fnContext=n,i.fnOptions=r,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function $a(t,e){for(var n in e)t[Ae(n)]=e[n]}function $r(t){return t.name||t.__name||t._componentTag}var Ui={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ui.prepatch(n,n)}else{var r=t.componentInstance=bd(t,Te);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;ud(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Vt(n,"mounted")),t.data.keepAlive&&(e._isMounted?dd(n):ji(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Cu(e,!0):e.$destroy())}},Pa=Object.keys(Ui);function Ia(t,e,n,r,o){if(!G(t)){var i=n.$options._base;if(_t(t)&&(t=i.extend(t)),typeof t=="function"){var s;if(G(t.cid)&&(s=t,t=Hh(s,i),t===void 0))return Wh(s,e,n,r,o);e=e||{},Bi(t),S(e.model)&&Ed(t.options,e);var a=xh(e,t);if(Q(t.options.functional))return yd(t,a,e,n,r);var u=e.on;if(e.on=e.nativeOn,Q(t.options.abstract)){var l=e.slot;e={},l&&(e.slot=l)}_d(e);var c=$r(t.options)||o,p=new Rt("vue-component-".concat(t.cid).concat(c?"-".concat(c):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:a,listeners:u,tag:o,children:r},s);return p}}}function bd(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return S(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function _d(t){for(var e=t.hook||(t.hook={}),n=0;n<Pa.length;n++){var r=Pa[n],o=e[r],i=Ui[r];o!==i&&!(o&&o._merged)&&(e[r]=o?wd(i,o):i)}}function wd(t,e){var n=function(r,o){t(r,o),e(r,o)};return n._merged=!0,n}function Ed(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),i=o[r],s=e.model.callback;S(i)?(W(i)?i.indexOf(s)===-1:i!==s)&&(o[r]=[s].concat(i)):o[r]=s}var Od=J,Yt=Mt.optionMergeStrategies;function In(t,e,n){if(n===void 0&&(n=!0),!e)return t;for(var r,o,i,s=Dn?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)r=s[a],r!=="__ob__"&&(o=t[r],i=e[r],!n||!At(t,r)?Pi(t,r,i):o!==i&&$t(o)&&$t(i)&&In(o,i));return t}function Ra(t,e,n){return n?function(){var r=Y(e)?e.call(n,n):e,o=Y(t)?t.call(n,n):t;return r?In(r,o):o}:e?t?function(){return In(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:e:t}Yt.data=function(t,e,n){return n?Ra(t,e,n):e&&typeof e!="function"?t:Ra(t,e)};function Iu(t,e){var n=e?t?t.concat(e):W(e)?e:[e]:t;return n&&xd(n)}function xd(t){for(var e=[],n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e}ru.forEach(function(t){Yt[t]=Iu});function Td(t,e,n,r){var o=Object.create(t||null);return e?Z(o,e):o}Fr.forEach(function(t){Yt[t+"s"]=Td}),Yt.watch=function(t,e,n,r){if(t===Vo&&(t=void 0),e===Vo&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};Z(o,t);for(var i in e){var s=o[i],a=e[i];s&&!W(s)&&(s=[s]),o[i]=s?s.concat(a):W(a)?a:[a]}return o},Yt.props=Yt.methods=Yt.inject=Yt.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return Z(o,t),e&&Z(o,e),o},Yt.provide=function(t,e){return t?function(){var n=Object.create(null);return In(n,Y(t)?t.call(this):t),e&&In(n,Y(e)?e.call(this):e,!1),n}:e};var Nd=function(t,e){return e===void 0?t:e};function Ad(t,e){var n=t.props;if(n){var r={},o,i,s;if(W(n))for(o=n.length;o--;)i=n[o],typeof i=="string"&&(s=Ae(i),r[s]={type:null});else if($t(n))for(var a in n)i=n[a],s=Ae(a),r[s]=$t(i)?i:{type:i};t.props=r}}function Sd(t,e){var n=t.inject;if(n){var r=t.inject={};if(W(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if($t(n))for(var i in n){var s=n[i];r[i]=$t(s)?Z({from:i},s):{from:s}}}}function Cd(t){var e=t.directives;if(e)for(var n in e){var r=e[n];Y(r)&&(e[n]={bind:r,update:r})}}function $e(t,e,n){if(Y(e)&&(e=e.options),Ad(e),Sd(e),Cd(e),!e._base&&(e.extends&&(t=$e(t,e.extends,n)),e.mixins))for(var r=0,o=e.mixins.length;r<o;r++)t=$e(t,e.mixins[r],n);var i={},s;for(s in t)a(s);for(s in e)At(t,s)||a(s);function a(u){var l=Yt[u]||Nd;i[u]=l(t[u],e[u],n,u)}return i}function Pr(t,e,n,r){if(typeof n=="string"){var o=t[e];if(At(o,n))return o[n];var i=Ae(n);if(At(o,i))return o[i];var s=th(i);if(At(o,s))return o[s];var a=o[n]||o[i]||o[s];return a}}function zi(t,e,n,r){var o=e[t],i=!At(n,t),s=n[t],a=ka(Boolean,o.type);if(a>-1){if(i&&!At(o,"default"))s=!1;else if(s===""||s===jn(t)){var u=ka(String,o.type);(u<0||a<u)&&(s=!0)}}if(s===void 0){s=$d(r,o,t);var l=$i;ge(!0),ce(s),ge(l)}return s}function $d(t,e,n){if(At(e,"default")){var r=e.default;return t&&t.$options.propsData&&t.$options.propsData[n]===void 0&&t._props[n]!==void 0?t._props[n]:Y(r)&&ei(e.type)!=="Function"?r.call(t):r}}var Pd=/^\s*function (\w+)/;function ei(t){var e=t&&t.toString().match(Pd);return e?e[1]:""}function La(t,e){return ei(t)===ei(e)}function ka(t,e){if(!W(e))return La(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(La(e[n],t))return n;return-1}var fe={enumerable:!0,configurable:!0,get:J,set:J};function Gi(t,e,n){fe.get=function(){return this[e][n]},fe.set=function(r){this[e][n]=r},Object.defineProperty(t,n,fe)}function Id(t){var e=t.$options;if(e.props&&Rd(t,e.props),Fh(t),e.methods&&Md(t,e.methods),e.data)Ld(t);else{var n=ce(t._data={});n&&n.vmCount++}e.computed&&Dd(t,e.computed),e.watch&&e.watch!==Vo&&Fd(t,e.watch)}function Rd(t,e){var n=t.$options.propsData||{},r=t._props=fu({}),o=t.$options._propKeys=[],i=!t.$parent;i||ge(!1);var s=function(u){o.push(u);var l=zi(u,e,n,t);me(r,u,l,void 0,!0),u in t||Gi(t,"_props",u)};for(var a in e)s(a);ge(!0)}function Ld(t){var e=t.$options.data;e=t._data=Y(e)?kd(e,t):e||{},$t(e)||(e={});var n=Object.keys(e),r=t.$options.props;t.$options.methods;for(var o=n.length;o--;){var i=n[o];r&&At(r,i)||ou(i)||Gi(t,"_data",i)}var s=ce(e);s&&s.vmCount++}function kd(t,e){nn();try{return t.call(e,e)}catch(n){return Ce(n,e,"data()"),{}}finally{rn()}}var jd={lazy:!0};function Dd(t,e){var n=t._computedWatchers=Object.create(null),r=ye();for(var o in e){var i=e[o],s=Y(i)?i:i.get;r||(n[o]=new Un(t,s||J,J,jd)),o in t||Ru(t,o,i)}}function Ru(t,e,n){var r=!ye();Y(n)?(fe.get=r?ja(e):Da(n),fe.set=J):(fe.get=n.get?r&&n.cache!==!1?ja(e):Da(n.get):J,fe.set=n.set||J),Object.defineProperty(t,e,fe)}function ja(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Kt.target&&e.depend(),e.value}}function Da(t){return function(){return t.call(this,this)}}function Md(t,e){t.$options.props;for(var n in e)t[n]=typeof e[n]!="function"?J:Qc(e[n],t)}function Fd(t,e){for(var n in e){var r=e[n];if(W(r))for(var o=0;o<r.length;o++)ni(t,n,r[o]);else ni(t,n,r)}}function ni(t,e,n,r){return $t(n)&&(r=n,n=n.handler),typeof n=="string"&&(n=t[n]),t.$watch(e,n,r)}function Ud(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Pi,t.prototype.$delete=uu,t.prototype.$watch=function(r,o,i){var s=this;if($t(o))return ni(s,r,o,i);i=i||{},i.user=!0;var a=new Un(s,r,o,i);if(i.immediate){var u='callback for immediate watcher "'.concat(a.expression,'"');nn(),ue(o,s,[a.value],s,u),rn()}return function(){a.teardown()}}}var zd=0;function Gd(t){t.prototype._init=function(e){var n=this;n._uid=zd++,n._isVue=!0,n.__v_skip=!0,n._scope=new du(!0),n._scope.parent=void 0,n._scope._vm=!0,e&&e._isComponent?Bd(n,e):n.$options=$e(Bi(n.constructor),e||{},n),n._renderProxy=n,n._self=n,sd(n),ed(n),Bh(n),Vt(n,"beforeCreate",void 0,!1),vd(n),Id(n),md(n),Vt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}function Bd(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function Bi(t){var e=t.options;if(t.super){var n=Bi(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var o=Vd(t);o&&Z(t.extendOptions,o),e=t.options=$e(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Vd(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}function st(t){this._init(t)}Gd(st),Ud(st),id(st),ad(st),Vh(st);function Wd(t){t.use=function(e){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(e)>-1)return this;var r=Go(arguments,1);return r.unshift(this),Y(e.install)?e.install.apply(e,r):Y(e)&&e.apply(null,r),n.push(e),this}}function Hd(t){t.mixin=function(e){return this.options=$e(this.options,e),this}}function qd(t){t.cid=0;var e=1;t.extend=function(n){n=n||{};var r=this,o=r.cid,i=n._Ctor||(n._Ctor={});if(i[o])return i[o];var s=$r(n)||$r(r.options),a=function(u){this._init(u)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=e++,a.options=$e(r.options,n),a.super=r,a.options.props&&Xd(a),a.options.computed&&Yd(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,Fr.forEach(function(u){a[u]=r[u]}),s&&(a.options.components[s]=a),a.superOptions=r.options,a.extendOptions=n,a.sealedOptions=Z({},a.options),i[o]=a,a}}function Xd(t){var e=t.options.props;for(var n in e)Gi(t.prototype,"_props",n)}function Yd(t){var e=t.options.computed;for(var n in e)Ru(t.prototype,n,e[n])}function Kd(t){Fr.forEach(function(e){t[e]=function(n,r){return r?(e==="component"&&$t(r)&&(r.name=r.name||n,r=this.options._base.extend(r)),e==="directive"&&Y(r)&&(r={bind:r,update:r}),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Ma(t){return t&&($r(t.Ctor.options)||t.tag)}function rr(t,e){return W(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:Xp(t)?t.test(e):!1}function Fa(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var s in n){var a=n[s];if(a){var u=a.name;u&&!e(u)&&ri(n,s,r,o)}}i.componentOptions.children=void 0}function ri(t,e,n,r){var o=t[e];o&&(!r||o.tag!==r.tag)&&o.componentInstance.$destroy(),t[e]=null,ve(n,e)}var Ua=[String,RegExp,Array],Zd={name:"keep-alive",abstract:!0,props:{include:Ua,exclude:Ua,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,o=t.keyToCache;if(r){var i=r.tag,s=r.componentInstance,a=r.componentOptions;e[o]={name:Ma(a),tag:i,componentInstance:s},n.push(o),this.max&&n.length>parseInt(this.max)&&ri(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ri(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Fa(t,function(n){return rr(e,n)})}),this.$watch("exclude",function(e){Fa(t,function(n){return!rr(e,n)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Eu(t),n=e&&e.componentOptions;if(n){var r=Ma(n),o=this,i=o.include,s=o.exclude;if(i&&(!r||!rr(i,r))||s&&r&&rr(s,r))return e;var a=this,u=a.cache,l=a.keys,c=e.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;u[c]?(e.componentInstance=u[c].componentInstance,ve(l,c),l.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Jd={KeepAlive:Zd};function Qd(t){var e={};e.get=function(){return Mt},Object.defineProperty(t,"config",e),t.util={warn:Od,extend:Z,mergeOptions:$e,defineReactive:me},t.set=Pi,t.delete=uu,t.nextTick=ki,t.observable=function(n){return ce(n),n},t.options=Object.create(null),Fr.forEach(function(n){t.options[n+"s"]=Object.create(null)}),t.options._base=t,Z(t.options.components,Jd),Wd(t),Hd(t),qd(t),Kd(t)}Qd(st),Object.defineProperty(st.prototype,"$isServer",{get:ye}),Object.defineProperty(st.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(st,"FunctionalRenderContext",{value:Fi}),st.version=Qh;var tg=Wt("style,class"),eg=Wt("input,textarea,option,select,progress"),ng=function(t,e,n){return n==="value"&&eg(t)&&e!=="button"||n==="selected"&&t==="option"||n==="checked"&&t==="input"||n==="muted"&&t==="video"},Lu=Wt("contenteditable,draggable,spellcheck"),rg=Wt("events,caret,typing,plaintext-only"),og=function(t,e){return Ir(e)||e==="false"?"false":t==="contenteditable"&&rg(e)?e:"true"},ig=Wt("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),oi="http://www.w3.org/1999/xlink",Vi=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},ku=function(t){return Vi(t)?t.slice(6,t.length):""},Ir=function(t){return t==null||t===!1};function sg(t){for(var e=t.data,n=t,r=t;S(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=za(r.data,e));for(;S(n=n.parent);)n&&n.data&&(e=za(e,n.data));return ag(e.staticClass,e.class)}function za(t,e){return{staticClass:Wi(t.staticClass,e.staticClass),class:S(t.class)?[t.class,e.class]:e.class}}function ag(t,e){return S(t)||S(e)?Wi(t,Hi(e)):""}function Wi(t,e){return t?e?t+" "+e:t:e||""}function Hi(t){return Array.isArray(t)?cg(t):_t(t)?ug(t):typeof t=="string"?t:""}function cg(t){for(var e="",n,r=0,o=t.length;r<o;r++)S(n=Hi(t[r]))&&n!==""&&(e&&(e+=" "),e+=n);return e}function ug(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var lg={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},fg=Wt("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),qi=Wt("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ju=function(t){return fg(t)||qi(t)};function pg(t){if(qi(t))return"svg";if(t==="math")return"math"}var or=Object.create(null);function hg(t){if(!It)return!0;if(ju(t))return!1;if(t=t.toLowerCase(),or[t]!=null)return or[t];var e=document.createElement(t);return t.indexOf("-")>-1?or[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:or[t]=/HTMLUnknownElement/.test(e.toString())}var ii=Wt("text,number,password,search,email,tel,url");function dg(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function gg(t,e){var n=document.createElement(t);return t!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function mg(t,e){return document.createElementNS(lg[t],e)}function vg(t){return document.createTextNode(t)}function yg(t){return document.createComment(t)}function bg(t,e,n){t.insertBefore(e,n)}function _g(t,e){t.removeChild(e)}function wg(t,e){t.appendChild(e)}function Eg(t){return t.parentNode}function Og(t){return t.nextSibling}function xg(t){return t.tagName}function Tg(t,e){t.textContent=e}function Ng(t,e){t.setAttribute(e,"")}var Ag=Object.freeze({__proto__:null,createElement:gg,createElementNS:mg,createTextNode:vg,createComment:yg,insertBefore:bg,removeChild:_g,appendChild:wg,parentNode:Eg,nextSibling:Og,tagName:xg,setTextContent:Tg,setStyleScope:Ng}),Sg={create:function(t,e){Xe(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Xe(t,!0),Xe(e))},destroy:function(t){Xe(t,!0)}};function Xe(t,e){var n=t.data.ref;if(S(n)){var r=t.context,o=t.componentInstance||t.elm,i=e?null:o,s=e?void 0:o;if(Y(n)){ue(n,r,[i],r,"template ref function");return}var a=t.data.refInFor,u=typeof n=="string"||typeof n=="number",l=bt(n),c=r.$refs;if(u||l){if(a){var p=u?c[n]:n.value;e?W(p)&&ve(p,o):W(p)?p.includes(o)||p.push(o):u?(c[n]=[o],Ga(r,n,c[n])):n.value=[o]}else if(u){if(e&&c[n]!==o)return;c[n]=s,Ga(r,n,i)}else if(l){if(e&&n.value!==o)return;n.value=i}}}}function Ga(t,e,n){var r=t._setupState;r&&At(r,e)&&(bt(r[e])?r[e].value=n:r[e]=n)}var he=new Rt("",{},[]),_n=["create","activate","update","remove","destroy"];function Ee(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&S(t.data)===S(e.data)&&Cg(t,e)||Q(t.isAsyncPlaceholder)&&G(e.asyncFactory.error))}function Cg(t,e){if(t.tag!=="input")return!0;var n,r=S(n=t.data)&&S(n=n.attrs)&&n.type,o=S(n=e.data)&&S(n=n.attrs)&&n.type;return r===o||ii(r)&&ii(o)}function $g(t,e,n){var r,o,i={};for(r=e;r<=n;++r)o=t[r].key,S(o)&&(i[o]=r);return i}function Pg(t){var e,n,r={},o=t.modules,i=t.nodeOps;for(e=0;e<_n.length;++e)for(r[_n[e]]=[],n=0;n<o.length;++n)S(o[n][_n[e]])&&r[_n[e]].push(o[n][_n[e]]);function s(_){return new Rt(i.tagName(_).toLowerCase(),{},[],void 0,_)}function a(_,y){function A(){--A.listeners===0&&u(_)}return A.listeners=y,A}function u(_){var y=i.parentNode(_);S(y)&&i.removeChild(y,_)}function l(_,y,A,$,k,U,F){if(S(_.elm)&&S(U)&&(_=U[F]=Wo(_)),_.isRootInsert=!k,!c(_,y,A,$)){var M=_.data,z=_.children,j=_.tag;S(j)?(_.elm=_.ns?i.createElementNS(_.ns,j):i.createElement(j,_),x(_),d(_,z,y),S(M)&&v(_,y),h(A,_.elm,$)):Q(_.isComment)?(_.elm=i.createComment(_.text),h(A,_.elm,$)):(_.elm=i.createTextNode(_.text),h(A,_.elm,$))}}function c(_,y,A,$){var k=_.data;if(S(k)){var U=S(_.componentInstance)&&k.keepAlive;if(S(k=k.hook)&&S(k=k.init)&&k(_,!1),S(_.componentInstance))return p(_,y),h(A,_.elm,$),Q(U)&&f(_,y,A,$),!0}}function p(_,y){S(_.data.pendingInsert)&&(y.push.apply(y,_.data.pendingInsert),_.data.pendingInsert=null),_.elm=_.componentInstance.$el,g(_)?(v(_,y),x(_)):(Xe(_),y.push(_))}function f(_,y,A,$){for(var k,U=_;U.componentInstance;)if(U=U.componentInstance._vnode,S(k=U.data)&&S(k=k.transition)){for(k=0;k<r.activate.length;++k)r.activate[k](he,U);y.push(U);break}h(A,_.elm,$)}function h(_,y,A){S(_)&&(S(A)?i.parentNode(A)===_&&i.insertBefore(_,y,A):i.appendChild(_,y))}function d(_,y,A){if(W(y))for(var $=0;$<y.length;++$)l(y[$],A,_.elm,null,!0,y,$);else kn(_.text)&&i.appendChild(_.elm,i.createTextNode(String(_.text)))}function g(_){for(;_.componentInstance;)_=_.componentInstance._vnode;return S(_.tag)}function v(_,y){for(var A=0;A<r.create.length;++A)r.create[A](he,_);e=_.data.hook,S(e)&&(S(e.create)&&e.create(he,_),S(e.insert)&&y.push(_))}function x(_){var y;if(S(y=_.fnScopeId))i.setStyleScope(_.elm,y);else for(var A=_;A;)S(y=A.context)&&S(y=y.$options._scopeId)&&i.setStyleScope(_.elm,y),A=A.parent;S(y=Te)&&y!==_.context&&y!==_.fnContext&&S(y=y.$options._scopeId)&&i.setStyleScope(_.elm,y)}function m(_,y,A,$,k,U){for(;$<=k;++$)l(A[$],U,_,y,!1,A,$)}function b(_){var y,A,$=_.data;if(S($))for(S(y=$.hook)&&S(y=y.destroy)&&y(_),y=0;y<r.destroy.length;++y)r.destroy[y](_);if(S(y=_.children))for(A=0;A<_.children.length;++A)b(_.children[A])}function E(_,y,A){for(;y<=A;++y){var $=_[y];S($)&&(S($.tag)?(N($),b($)):u($.elm))}}function N(_,y){if(S(y)||S(_.data)){var A,$=r.remove.length+1;for(S(y)?y.listeners+=$:y=a(_.elm,$),S(A=_.componentInstance)&&S(A=A._vnode)&&S(A.data)&&N(A,y),A=0;A<r.remove.length;++A)r.remove[A](_,y);S(A=_.data.hook)&&S(A=A.remove)?A(_,y):y()}else u(_.elm)}function O(_,y,A,$,k){for(var U=0,F=0,M=y.length-1,z=y[0],j=y[M],B=A.length-1,V=A[0],lt=A[B],q,wt,Lt,on,be=!k;U<=M&&F<=B;)G(z)?z=y[++U]:G(j)?j=y[--M]:Ee(z,V)?(T(z,V,$,A,F),z=y[++U],V=A[++F]):Ee(j,lt)?(T(j,lt,$,A,B),j=y[--M],lt=A[--B]):Ee(z,lt)?(T(z,lt,$,A,B),be&&i.insertBefore(_,z.elm,i.nextSibling(j.elm)),z=y[++U],lt=A[--B]):Ee(j,V)?(T(j,V,$,A,F),be&&i.insertBefore(_,j.elm,z.elm),j=y[--M],V=A[++F]):(G(q)&&(q=$g(y,U,M)),wt=S(V.key)?q[V.key]:C(V,y,U,M),G(wt)?l(V,$,_,z.elm,!1,A,F):(Lt=y[wt],Ee(Lt,V)?(T(Lt,V,$,A,F),y[wt]=void 0,be&&i.insertBefore(_,Lt.elm,z.elm)):l(V,$,_,z.elm,!1,A,F)),V=A[++F]);U>M?(on=G(A[B+1])?null:A[B+1].elm,m(_,on,A,F,B,$)):F>B&&E(y,U,M)}function C(_,y,A,$){for(var k=A;k<$;k++){var U=y[k];if(S(U)&&Ee(_,U))return k}}function T(_,y,A,$,k,U){if(_!==y){S(y.elm)&&S($)&&(y=$[k]=Wo(y));var F=y.elm=_.elm;if(Q(_.isAsyncPlaceholder)){S(y.asyncFactory.resolved)?I(_.elm,y,A):y.isAsyncPlaceholder=!0;return}if(Q(y.isStatic)&&Q(_.isStatic)&&y.key===_.key&&(Q(y.isCloned)||Q(y.isOnce))){y.componentInstance=_.componentInstance;return}var M,z=y.data;S(z)&&S(M=z.hook)&&S(M=M.prepatch)&&M(_,y);var j=_.children,B=y.children;if(S(z)&&g(y)){for(M=0;M<r.update.length;++M)r.update[M](_,y);S(M=z.hook)&&S(M=M.update)&&M(_,y)}G(y.text)?S(j)&&S(B)?j!==B&&O(F,j,B,A,U):S(B)?(S(_.text)&&i.setTextContent(F,""),m(F,null,B,0,B.length-1,A)):S(j)?E(j,0,j.length-1):S(_.text)&&i.setTextContent(F,""):_.text!==y.text&&i.setTextContent(F,y.text),S(z)&&S(M=z.hook)&&S(M=M.postpatch)&&M(_,y)}}function P(_,y,A){if(Q(A)&&S(_.parent))_.parent.data.pendingInsert=y;else for(var $=0;$<y.length;++$)y[$].data.hook.insert(y[$])}var R=Wt("attrs,class,staticClass,staticStyle,key");function I(_,y,A,$){var k,U=y.tag,F=y.data,M=y.children;if($=$||F&&F.pre,y.elm=_,Q(y.isComment)&&S(y.asyncFactory))return y.isAsyncPlaceholder=!0,!0;if(S(F)&&(S(k=F.hook)&&S(k=k.init)&&k(y,!0),S(k=y.componentInstance)))return p(y,A),!0;if(S(U)){if(S(M))if(!_.hasChildNodes())d(y,M,A);else if(S(k=F)&&S(k=k.domProps)&&S(k=k.innerHTML)){if(k!==_.innerHTML)return!1}else{for(var z=!0,j=_.firstChild,B=0;B<M.length;B++){if(!j||!I(j,M[B],A,$)){z=!1;break}j=j.nextSibling}if(!z||j)return!1}if(S(F)){var V=!1;for(var lt in F)if(!R(lt)){V=!0,v(y,A);break}!V&&F.class&&Qe(F.class)}}else _.data!==y.text&&(_.data=y.text);return!0}return function(_,y,A,$){if(G(y)){S(_)&&b(_);return}var k=!1,U=[];if(G(_))k=!0,l(y,U);else{var F=S(_.nodeType);if(!F&&Ee(_,y))T(_,y,U,null,null,$);else{if(F){if(_.nodeType===1&&_.hasAttribute(ha)&&(_.removeAttribute(ha),A=!0),Q(A)&&I(_,y,U))return P(y,U,!0),_;_=s(_)}var M=_.elm,z=i.parentNode(M);if(l(y,U,M._leaveCb?null:z,i.nextSibling(M)),S(y.parent))for(var j=y.parent,B=g(y);j;){for(var V=0;V<r.destroy.length;++V)r.destroy[V](j);if(j.elm=y.elm,B){for(var lt=0;lt<r.create.length;++lt)r.create[lt](he,j);var q=j.data.hook.insert;if(q.merged)for(var wt=q.fns.slice(1),Lt=0;Lt<wt.length;Lt++)wt[Lt]()}else Xe(j);j=j.parent}S(z)?E([_],0,0):S(_.tag)&&b(_)}}return P(y,U,k),y.elm}}var Ig={create:To,update:To,destroy:function(t){To(t,he)}};function To(t,e){(t.data.directives||e.data.directives)&&Rg(t,e)}function Rg(t,e){var n=t===he,r=e===he,o=Ba(t.data.directives,t.context),i=Ba(e.data.directives,e.context),s=[],a=[],u,l,c;for(u in i)l=o[u],c=i[u],l?(c.oldValue=l.value,c.oldArg=l.arg,wn(c,"update",e,t),c.def&&c.def.componentUpdated&&a.push(c)):(wn(c,"bind",e,t),c.def&&c.def.inserted&&s.push(c));if(s.length){var p=function(){for(var f=0;f<s.length;f++)wn(s[f],"inserted",e,t)};n?pe(e,"insert",p):p()}if(a.length&&pe(e,"postpatch",function(){for(var f=0;f<a.length;f++)wn(a[f],"componentUpdated",e,t)}),!n)for(u in o)i[u]||wn(o[u],"unbind",t,t,r)}var Lg=Object.create(null);function Ba(t,e){var n=Object.create(null);if(!t)return n;var r,o;for(r=0;r<t.length;r++){if(o=t[r],o.modifiers||(o.modifiers=Lg),n[kg(o)]=o,e._setupState&&e._setupState.__sfc){var i=o.def||Pr(e,"_setupState","v-"+o.name);typeof i=="function"?o.def={bind:i,update:i}:o.def=i}o.def=o.def||Pr(e.$options,"directives",o.name)}return n}function kg(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function wn(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(s){Ce(s,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var jg=[Sg,Ig];function Va(t,e){var n=e.componentOptions;if(!(S(n)&&n.Ctor.options.inheritAttrs===!1)&&!(G(t.data.attrs)&&G(e.data.attrs))){var r,o,i,s=e.elm,a=t.data.attrs||{},u=e.data.attrs||{};(S(u.__ob__)||Q(u._v_attr_proxy))&&(u=e.data.attrs=Z({},u));for(r in u)o=u[r],i=a[r],i!==o&&Wa(s,r,o,e.data.pre);(tn||iu)&&u.value!==a.value&&Wa(s,"value",u.value);for(r in a)G(u[r])&&(Vi(r)?s.removeAttributeNS(oi,ku(r)):Lu(r)||s.removeAttribute(r))}}function Wa(t,e,n,r){r||t.tagName.indexOf("-")>-1?Ha(t,e,n):ig(e)?Ir(n)?t.removeAttribute(e):(n=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,n)):Lu(e)?t.setAttribute(e,og(e,n)):Vi(e)?Ir(n)?t.removeAttributeNS(oi,ku(e)):t.setAttributeNS(oi,e,n):Ha(t,e,n)}function Ha(t,e,n){if(Ir(n))t.removeAttribute(e);else{if(tn&&!en&&t.tagName==="TEXTAREA"&&e==="placeholder"&&n!==""&&!t.__ieph){var r=function(o){o.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Dg={create:Va,update:Va};function qa(t,e){var n=e.elm,r=e.data,o=t.data;if(!(G(r.staticClass)&&G(r.class)&&(G(o)||G(o.staticClass)&&G(o.class)))){var i=sg(e),s=n._transitionClasses;S(s)&&(i=Wi(i,Hi(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}var Mg={create:qa,update:qa},No="__r",Ao="__c";function Fg(t){if(S(t[No])){var e=tn?"change":"input";t[e]=[].concat(t[No],t[e]||[]),delete t[No]}S(t[Ao])&&(t.change=[].concat(t[Ao],t.change||[]),delete t[Ao])}var Rn;function Ug(t,e,n){var r=Rn;return function o(){var i=e.apply(null,arguments);i!==null&&Du(t,o,n,r)}}var zg=Yo&&!(da&&Number(da[1])<=53);function Gg(t,e,n,r){if(zg){var o=$u,i=e;e=i._wrapper=function(s){if(s.target===s.currentTarget||s.timeStamp>=o||s.timeStamp<=0||s.target.ownerDocument!==document)return i.apply(this,arguments)}}Rn.addEventListener(t,e,su?{capture:n,passive:r}:n)}function Du(t,e,n,r){(r||Rn).removeEventListener(t,e._wrapper||e,n)}function So(t,e){if(!(G(t.data.on)&&G(e.data.on))){var n=e.data.on||{},r=t.data.on||{};Rn=e.elm||t.elm,Fg(n),gu(n,r,Gg,Du,Ug,e.context),Rn=void 0}}var Bg={create:So,update:So,destroy:function(t){return So(t,he)}},ir;function Xa(t,e){if(!(G(t.data.domProps)&&G(e.data.domProps))){var n,r,o=e.elm,i=t.data.domProps||{},s=e.data.domProps||{};(S(s.__ob__)||Q(s._v_attr_proxy))&&(s=e.data.domProps=Z({},s));for(n in i)n in s||(o[n]="");for(n in s){if(r=s[n],n==="textContent"||n==="innerHTML"){if(e.children&&(e.children.length=0),r===i[n])continue;o.childNodes.length===1&&o.removeChild(o.childNodes[0])}if(n==="value"&&o.tagName!=="PROGRESS"){o._value=r;var a=G(r)?"":String(r);Vg(o,a)&&(o.value=a)}else if(n==="innerHTML"&&qi(o.tagName)&&G(o.innerHTML)){ir=ir||document.createElement("div"),ir.innerHTML="<svg>".concat(r,"</svg>");for(var u=ir.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==i[n])try{o[n]=r}catch{}}}}function Vg(t,e){return!t.composing&&(t.tagName==="OPTION"||Wg(t,e)||Hg(t,e))}function Wg(t,e){var n=!0;try{n=document.activeElement!==t}catch{}return n&&t.value!==e}function Hg(t,e){var n=t.value,r=t._vModifiers;if(S(r)){if(r.number)return Sn(n)!==Sn(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var qg={create:Xa,update:Xa},Xg=Ie(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(o){if(o){var i=o.split(r);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function Co(t){var e=Mu(t.style);return t.staticStyle?Z(t.staticStyle,e):e}function Mu(t){return Array.isArray(t)?tu(t):typeof t=="string"?Xg(t):t}function Yg(t,e){for(var n={},r,o=t;o.componentInstance;)o=o.componentInstance._vnode,o&&o.data&&(r=Co(o.data))&&Z(n,r);(r=Co(t.data))&&Z(n,r);for(var i=t;i=i.parent;)i.data&&(r=Co(i.data))&&Z(n,r);return n}var Kg=/^--/,Ya=/\s*!important$/,Ka=function(t,e,n){if(Kg.test(e))t.style.setProperty(e,n);else if(Ya.test(n))t.style.setProperty(jn(e),n.replace(Ya,""),"important");else{var r=Zg(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},Za=["Webkit","Moz","ms"],sr,Zg=Ie(function(t){if(sr=sr||document.createElement("div").style,t=Ae(t),t!=="filter"&&t in sr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Za.length;n++){var r=Za[n]+e;if(r in sr)return r}});function Ja(t,e){var n=e.data,r=t.data;if(!(G(n.staticStyle)&&G(n.style)&&G(r.staticStyle)&&G(r.style))){var o,i,s=e.elm,a=r.staticStyle,u=r.normalizedStyle||r.style||{},l=a||u,c=Mu(e.data.style)||{};e.data.normalizedStyle=S(c.__ob__)?Z({},c):c;var p=Yg(e);for(i in l)G(p[i])&&Ka(s,i,"");for(i in p)o=p[i],Ka(s,i,o??"")}}var Jg={create:Ja,update:Ja},Fu=/\s+/;function Uu(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(Fu).forEach(function(r){return t.classList.add(r)}):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zu(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(Fu).forEach(function(o){return t.classList.remove(o)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Gu(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&Z(e,Qa(t.name||"v")),Z(e,t),e}else if(typeof t=="string")return Qa(t)}}var Qa=Ie(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),Bu=It&&!en,Ge="transition",$o="animation",mr="transition",Rr="transitionend",si="animation",Vu="animationend";Bu&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(mr="WebkitTransition",Rr="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(si="WebkitAnimation",Vu="webkitAnimationEnd"));var tc=It?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Wu(t){tc(function(){tc(t)})}function Ne(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Uu(t,e))}function se(t,e){t._transitionClasses&&ve(t._transitionClasses,e),zu(t,e)}function Hu(t,e,n){var r=qu(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var a=o===Ge?Rr:Vu,u=0,l=function(){t.removeEventListener(a,c),n()},c=function(p){p.target===t&&++u>=s&&l()};setTimeout(function(){u<s&&l()},i+1),t.addEventListener(a,c)}var Qg=/\b(transform|all)(,|$)/;function qu(t,e){var n=window.getComputedStyle(t),r=(n[mr+"Delay"]||"").split(", "),o=(n[mr+"Duration"]||"").split(", "),i=ec(r,o),s=(n[si+"Delay"]||"").split(", "),a=(n[si+"Duration"]||"").split(", "),u=ec(s,a),l,c=0,p=0;e===Ge?i>0&&(l=Ge,c=i,p=o.length):e===$o?u>0&&(l=$o,c=u,p=a.length):(c=Math.max(i,u),l=c>0?i>u?Ge:$o:null,p=l?l===Ge?o.length:a.length:0);var f=l===Ge&&Qg.test(n[mr+"Property"]);return{type:l,timeout:c,propCount:p,hasTransform:f}}function ec(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(n,r){return nc(n)+nc(t[r])}))}function nc(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ai(t,e){var n=t.elm;S(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Gu(t.data.transition);if(!G(r)&&!(S(n._enterCb)||n.nodeType!==1)){for(var o=r.css,i=r.type,s=r.enterClass,a=r.enterToClass,u=r.enterActiveClass,l=r.appearClass,c=r.appearToClass,p=r.appearActiveClass,f=r.beforeEnter,h=r.enter,d=r.afterEnter,g=r.enterCancelled,v=r.beforeAppear,x=r.appear,m=r.afterAppear,b=r.appearCancelled,E=r.duration,N=Te,O=Te.$vnode;O&&O.parent;)N=O.context,O=O.parent;var C=!N._isMounted||!t.isRootInsert;if(!(C&&!x&&x!=="")){var T=C&&l?l:s,P=C&&p?p:u,R=C&&c?c:a,I=C&&v||f,_=C&&Y(x)?x:h,y=C&&m||d,A=C&&b||g,$=Sn(_t(E)?E.enter:E),k=o!==!1&&!en,U=Xi(_),F=n._enterCb=xr(function(){k&&(se(n,R),se(n,P)),F.cancelled?(k&&se(n,T),A&&A(n)):y&&y(n),n._enterCb=null});t.data.show||pe(t,"insert",function(){var M=n.parentNode,z=M&&M._pending&&M._pending[t.key];z&&z.tag===t.tag&&z.elm._leaveCb&&z.elm._leaveCb(),_&&_(n,F)}),I&&I(n),k&&(Ne(n,T),Ne(n,P),Wu(function(){se(n,T),F.cancelled||(Ne(n,R),U||(Yu($)?setTimeout(F,$):Hu(n,i,F)))})),t.data.show&&(e&&e(),_&&_(n,F)),!k&&!U&&F()}}}function Xu(t,e){var n=t.elm;S(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Gu(t.data.transition);if(G(r)||n.nodeType!==1)return e();if(S(n._leaveCb))return;var o=r.css,i=r.type,s=r.leaveClass,a=r.leaveToClass,u=r.leaveActiveClass,l=r.beforeLeave,c=r.leave,p=r.afterLeave,f=r.leaveCancelled,h=r.delayLeave,d=r.duration,g=o!==!1&&!en,v=Xi(c),x=Sn(_t(d)?d.leave:d),m=n._leaveCb=xr(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),g&&(se(n,a),se(n,u)),m.cancelled?(g&&se(n,s),f&&f(n)):(e(),p&&p(n)),n._leaveCb=null});h?h(b):b();function b(){m.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),l&&l(n),g&&(Ne(n,s),Ne(n,u),Wu(function(){se(n,s),m.cancelled||(Ne(n,a),v||(Yu(x)?setTimeout(m,x):Hu(n,i,m)))})),c&&c(n,m),!g&&!v&&m())}}function Yu(t){return typeof t=="number"&&!isNaN(t)}function Xi(t){if(G(t))return!1;var e=t.fns;return S(e)?Xi(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function rc(t,e){e.data.show!==!0&&ai(e)}var tm=It?{create:rc,activate:rc,remove:function(t,e){t.data.show!==!0?Xu(t,e):e()}}:{},em=[Dg,Mg,Bg,qg,Jg,tm],nm=em.concat(jg),rm=Pg({nodeOps:Ag,modules:nm});en&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Yi(t,"input")});var Ku={inserted:function(t,e,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?pe(n,"postpatch",function(){Ku.componentUpdated(t,e,n)}):oc(t,e,n.context),t._vOptions=[].map.call(t.options,Lr)):(n.tag==="textarea"||ii(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",om),t.addEventListener("compositionend",ac),t.addEventListener("change",ac),en&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if(n.tag==="select"){oc(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Lr);if(o.some(function(s,a){return!Se(s,r[a])})){var i=t.multiple?e.value.some(function(s){return sc(s,o)}):e.value!==e.oldValue&&sc(e.value,o);i&&Yi(t,"change")}}}};function oc(t,e,n){ic(t,e),(tn||iu)&&setTimeout(function(){ic(t,e)},0)}function ic(t,e,n){var r=e.value,o=t.multiple;if(!(o&&!Array.isArray(r))){for(var i,s,a=0,u=t.options.length;a<u;a++)if(s=t.options[a],o)i=nu(r,Lr(s))>-1,s.selected!==i&&(s.selected=i);else if(Se(Lr(s),r)){t.selectedIndex!==a&&(t.selectedIndex=a);return}o||(t.selectedIndex=-1)}}function sc(t,e){return e.every(function(n){return!Se(n,t)})}function Lr(t){return"_value"in t?t._value:t.value}function om(t){t.target.composing=!0}function ac(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ci(t){return t.componentInstance&&(!t.data||!t.data.transition)?ci(t.componentInstance._vnode):t}var im={bind:function(t,e,n){var r=e.value;n=ci(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;r&&o?(n.data.show=!0,ai(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value,o=e.oldValue;if(!r!=!o){n=ci(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?ai(n,function(){t.style.display=t.__vOriginalDisplay}):Xu(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},sm={model:Ku,show:im},Zu={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ui(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ui(Eu(e.children)):t}function Ju(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[Ae(r)]=o[r];return e}function cc(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function am(t){for(;t=t.parent;)if(t.data.transition)return!0}function cm(t,e){return e.key===t.key&&e.tag===t.tag}var um=function(t){return t.tag||$n(t)},lm=function(t){return t.name==="show"},fm={name:"transition",props:Zu,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(um),!!n.length)){var r=this.mode,o=n[0];if(am(this.$vnode))return o;var i=ui(o);if(!i)return o;if(this._leaving)return cc(t,o);var s="__transition-".concat(this._uid,"-");i.key=i.key==null?i.isComment?s+"comment":s+i.tag:kn(i.key)?String(i.key).indexOf(s)===0?i.key:s+i.key:i.key;var a=(i.data||(i.data={})).transition=Ju(this),u=this._vnode,l=ui(u);if(i.data.directives&&i.data.directives.some(lm)&&(i.data.show=!0),l&&l.data&&!cm(i,l)&&!$n(l)&&!(l.componentInstance&&l.componentInstance._vnode.isComment)){var c=l.data.transition=Z({},a);if(r==="out-in")return this._leaving=!0,pe(c,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),cc(t,o);if(r==="in-out"){if($n(i))return u;var p,f=function(){p()};pe(a,"afterEnter",f),pe(a,"enterCancelled",f),pe(c,"delayLeave",function(h){p=h})}}return o}}},Qu=Z({tag:String,moveClass:String},Zu);delete Qu.mode;var pm={props:Qu,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Au(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Ju(this),a=0;a<o.length;a++){var u=o[a];u.tag&&u.key!=null&&String(u.key).indexOf("__vlist")!==0&&(i.push(u),n[u.key]=u,(u.data||(u.data={})).transition=s)}if(r){for(var l=[],c=[],a=0;a<r.length;a++){var u=r[a];u.data.transition=s,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?l.push(u):c.push(u)}this.kept=t(e,null,l),this.removed=c}return t(e,null,i)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";!t.length||!this.hasMove(t[0].elm,e)||(t.forEach(hm),t.forEach(dm),t.forEach(gm),this._reflow=document.body.offsetHeight,t.forEach(function(n){if(n.data.moved){var r=n.elm,o=r.style;Ne(r,e),o.transform=o.WebkitTransform=o.transitionDuration="",r.addEventListener(Rr,r._moveCb=function i(s){s&&s.target!==r||(!s||/transform$/.test(s.propertyName))&&(r.removeEventListener(Rr,i),r._moveCb=null,se(r,e))})}}))},methods:{hasMove:function(t,e){if(!Bu)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(o){zu(n,o)}),Uu(n,e),n.style.display="none",this.$el.appendChild(n);var r=qu(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function hm(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function dm(t){t.data.newPos=t.elm.getBoundingClientRect()}function gm(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}var mm={Transition:fm,TransitionGroup:pm};st.config.mustUseProp=ng,st.config.isReservedTag=ju,st.config.isReservedAttr=tg,st.config.getTagNamespace=pg,st.config.isUnknownElement=hg,Z(st.options.directives,sm),Z(st.options.components,mm),st.prototype.__patch__=It?rm:J,st.prototype.$mount=function(t,e){return t=t&&It?dg(t):void 0,cd(this,t,e)},It&&setTimeout(function(){Mt.devtools&&Tr&&Tr.emit("init",st)},0);export{yc as $,dh as A,zp as B,Ym as C,Ke as D,$l as E,Pl as F,Sm as G,Ul as H,li as I,Bc as J,yp as K,vp as L,Oi as M,bp as N,Ai as O,Bt as P,bm as Q,Nm as R,Vc as S,Ni as T,gp as U,st as V,Ei as W,Oe as X,dl as Y,ym as Z,Om as _,Im as a,dp as a0,Gl as a1,Km as a2,Xm as a3,vm as a4,xm as a5,zm as a6,Pi as a7,jm as a8,Wm as a9,bt as aa,hr as ab,hh as ac,qm as ad,Em as ae,$m as af,Rm as ag,Wp as ah,ur as ai,Mm as aj,Cm as ak,ne as al,Am as am,pi as an,Um as ao,Dm as b,mh as c,Qm as d,wm as e,Cl as f,kr as g,Be as h,Pm as i,Lm as j,Fm as k,Fc as l,Eh as m,ki as n,Zm as o,Hm as p,Gm as q,Tm as r,Nl as s,Eo as t,_m as u,Bm as v,Vm as w,km as x,Kc as y,Jm as z};
|
|
//# sourceMappingURL=vue.runtime.esm-Ct3_M7aQ.chunk.mjs.map
|