var hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function sl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uu={exports:{}},rt=uu.exports={},qt,Xt;function Po(){throw new Error("setTimeout has not been defined")}function Lo(){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=Lo}catch{Xt=Lo}})();function cu(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 al(t){if(Xt===clearTimeout)return clearTimeout(t);if((Xt===Lo||!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 ie=[],Ke=!1,Ne,ir=-1;function ul(){!Ke||!Ne||(Ke=!1,Ne.length?ie=Ne.concat(ie):ir=-1,ie.length&&lu())}function lu(){if(!Ke){var t=cu(ul);Ke=!0;for(var e=ie.length;e;){for(Ne=ie,ie=[];++ir1)for(var n=1;nconsole.error("SEMVER",...e):()=>{},Kr}var Zr,bs;function hu(){if(bs)return Zr;bs=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,o=e-6;return Zr={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},Zr}var Jr={exports:{}},_s;function ll(){return _s||(_s=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=hu(),i=pu();e=t.exports={};const s=e.re=[],u=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],a=e.t={};let p=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,r]],d=v=>{for(const[O,m]of h)v=v.split(`${O}*`).join(`${O}{0,${m}}`).split(`${O}+`).join(`${O}{1,${m}}`);return v},g=(v,O,m)=>{const b=d(O),E=p++;i(v,E,O),a[v]=E,c[E]=O,l[E]=b,s[E]=new RegExp(O,m?"g":void 0),u[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",`(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[a.NUMERICIDENTIFIER]}|${c[a.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[a.NUMERICIDENTIFIERLOOSE]}|${c[a.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${c[a.PRERELEASEIDENTIFIER]}(?:\\.${c[a.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[a.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${f}+`),g("BUILD",`(?:\\+(${c[a.BUILDIDENTIFIER]}(?:\\.${c[a.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[a.MAINVERSION]}${c[a.PRERELEASE]}?${c[a.BUILD]}?`),g("FULL",`^${c[a.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[a.MAINVERSIONLOOSE]}${c[a.PRERELEASELOOSE]}?${c[a.BUILD]}?`),g("LOOSE",`^${c[a.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[a.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:${c[a.PRERELEASE]})?${c[a.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:${c[a.PRERELEASELOOSE]})?${c[a.BUILD]}?)?)?`),g("XRANGE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${c[a.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[a.COERCEPLAIN]+`(?:${c[a.PRERELEASE]})?(?:${c[a.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[a.COERCE],!0),g("COERCERTLFULL",c[a.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${c[a.LONECARET]}${c[a.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[a.LONECARET]}${c[a.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[a.GTLT]}\\s*(${c[a.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]}|${c[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[a.XRANGEPLAIN]})\\s+-\\s+(${c[a.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[a.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Jr,Jr.exports)),Jr.exports}var Qr,ws;function fl(){if(ws)return Qr;ws=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return Qr=n=>n?typeof n!="object"?t:n:e,Qr}var to,Es;function pl(){if(Es)return to;Es=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:ne(r,n)},to}var eo,xs;function du(){if(xs)return eo;xs=1;const t=pu(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=hu(),{safeRe:r,safeSrc:o,t:i}=ll(),s=fl(),{compareIdentifiers:u}=pl();class c{constructor(a,p){if(p=s(p),a instanceof c){if(a.loose===!!p.loose&&a.includePrerelease===!!p.includePrerelease)return a;a=a.version}else if(typeof a!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",a,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const f=a.trim().match(p.loose?r[i.LOOSE]:r[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,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=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]),u(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${a}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return eo=c,eo}var no,Os;function hl(){if(Os)return no;Os=1;const t=du();return no=(e,n,r=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(o){if(!r)return null;throw o}},no}var ro,Ts;function dl(){if(Ts)return ro;Ts=1;const t=hl();return ro=(e,n)=>{const r=t(e,n);return r?r.version:null},ro}var gl=dl();const ml=pi(gl);var oo,Ns;function vl(){if(Ns)return oo;Ns=1;const t=du();return oo=(e,n)=>new t(e,n).major,oo}var yl=vl();const As=pi(yl);class bl{bus;constructor(e){typeof e.getVersion!="function"||!ml(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):As(e.getVersion())!==As(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 _l{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 un=null;function hi(){return un!==null?un: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"?un=new bl(window._nc_event_bus):un=window._nc_event_bus=new _l,un)}function wl(t,e){hi().subscribe(t,e)}function dm(t,e){hi().unsubscribe(t,e)}function gm(t,...e){hi().emit(t,...e)}class gr{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(e,n,r){this.scope=`${r?gr.GLOBAL_SCOPE_PERSISTENT:gr.GLOBAL_SCOPE_VOLATILE}_${btoa(e)}_`,this.wrapped=n}scopeKey(e){return`${this.scope}${e}`}setItem(e,n){this.wrapped.setItem(this.scopeKey(e),n)}getItem(e){return this.wrapped.getItem(this.scopeKey(e))}removeItem(e){this.wrapped.removeItem(this.scopeKey(e))}clear(){Object.keys(this.wrapped).filter(e=>e.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class El{appId;persisted=!1;clearedOnLogout=!1;constructor(e){this.appId=e}persist(e=!0){return this.persisted=e,this}clearOnLogout(e=!0){return this.clearedOnLogout=e,this}build(){return new gr(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function xl(t){return new El(t)}let En;const gu=[];function Ol(){return En===void 0&&(En=document.head.dataset.requesttoken??null),En}function Tl(t){gu.push(t)}wl("csrf-token-update",t=>{En=t.token,gu.forEach(e=>{try{e(En)}catch(n){console.error("Error updating CSRF token observer",n)}})});xl("public").persist().build();let Ge;function Ss(t,e){return t?t.getAttribute(e):null}function Rr(){if(Ge!==void 0)return Ge;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=Ss(t,"data-user");return e===null?(Ge=null,Ge):(Ge={uid:e,displayName:Ss(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},Ge)}function mu(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 di(){return mu("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function Nl(){return mu("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}const Al=t=>"/remote.php/"+t,Sl=(t,e)=>{var n;return((n=void 0)!=null?n:vu())+Al(t)},mm=(t,e,n)=>{var r;const o=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return((r=void 0)!=null?r:vu())+"/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(u,c){const l=s[c];return r.escape?encodeURIComponent(typeof l=="string"||typeof l=="number"?l.toString():u):typeof l=="string"||typeof l=="number"?l.toString():u})};return t.charAt(0)!=="/"&&(t="/"+t),o(t,e||{})},vm=(t,e,n)=>{var r,o,i;const s=Object.assign({noRewrite:!1},n||{}),u=(r=n?.baseURL)!=null?r:gi();return((i=(o=window?.OC)==null?void 0:o.config)==null?void 0:i.modRewriteWorking)===!0&&!s.noRewrite?u+Ro(t,e,n):u+"/index.php"+Ro(t,e,n)},ym=(t,e)=>e.includes(".")?Cs(t,"img",e):Cs(t,"img","".concat(e,".svg")),Cs=(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,u=n.slice(-3)==="php";let c=gi();return u&&!s?(c+="/index.php/apps/".concat(t),c+="/".concat(encodeURI(e)),n!=="index.php"&&(c+="/".concat(n))):!u&&!s?(c=Cl(t),c+="/".concat(e,"/"),c.at(-1)!=="/"&&(c+="/"),c+=n):(c+="/".concat(t),c+="/".concat(e),c+="/".concat(n)),c},vu=()=>window.location.protocol+"//"+window.location.host+gi();function gi(){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 Cl(t){var e,n;return(n=((e=window._oc_appswebroots)!=null?e:{})[t])!=null?n:""}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $s(t,e,n){$l(t,e),e.set(t,n)}function $l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gt(t,e){var n=yu(t,e,"get");return Il(t,n)}function Il(t,e){return e.get?e.get.call(t):e.value}function Is(t,e,n){var r=yu(t,e,"set");return Pl(t,r,n),n}function yu(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Pl(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 Ll=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",mt=new WeakMap,cn=new WeakMap;class kr{constructor(e){var{executor:n=()=>{},internals:r=vi(),promise:o=new Promise((i,s)=>n(i,s,u=>{r.onCancelList.push(u)}))}=e;$s(this,mt,{writable:!0,value:void 0}),$s(this,cn,{writable:!0,value:void 0}),pe(this,Ll,"CancelablePromise"),this.cancel=this.cancel.bind(this),Is(this,mt,r),Is(this,cn,o||new Promise((i,s)=>n(i,s,u=>{r.onCancelList.push(u)})))}then(e,n){return sr(gt(this,cn).then(Hn(e,gt(this,mt)),Hn(n,gt(this,mt))),gt(this,mt))}catch(e){return sr(gt(this,cn).catch(Hn(e,gt(this,mt))),gt(this,mt))}finally(e,n){return n&>(this,mt).onCancelList.push(e),sr(gt(this,cn).finally(Hn(()=>{if(e)return n&&(gt(this,mt).onCancelList=gt(this,mt).onCancelList.filter(r=>r!==e)),e()},gt(this,mt))),gt(this,mt))}cancel(){gt(this,mt).isCanceled=!0;var e=gt(this,mt).onCancelList;gt(this,mt).onCancelList=[];for(var n of e)if(typeof n=="function")try{n()}catch(r){console.error(r)}}isCanceled(){return gt(this,mt).isCanceled===!0}}class re extends kr{constructor(e){super({executor:e})}}pe(re,"all",function(t){return qn(t,Promise.all(t))}),pe(re,"allSettled",function(t){return qn(t,Promise.allSettled(t))}),pe(re,"any",function(t){return qn(t,Promise.any(t))}),pe(re,"race",function(t){return qn(t,Promise.race(t))}),pe(re,"resolve",function(t){return Ps(Promise.resolve(t))}),pe(re,"reject",function(t){return Ps(Promise.reject(t))}),pe(re,"isCancelable",mi);function Ps(t){return sr(t,vi())}function mi(t){return t instanceof re||t instanceof kr}function Hn(t,e){if(t)return n=>{if(!e.isCanceled){var r=t(n);return mi(r)&&e.onCancelList.push(r.cancel),r}return n}}function sr(t,e){return new kr({internals:e,promise:t})}function qn(t,e){var n=vi();return n.onCancelList.push(()=>{for(var r of t)mi(r)&&r.cancel()}),new kr({internals:n,promise:e})}function vi(){return{isCanceled:!1,onCancelList:[]}}const Ve=globalThis||void 0||self;var io={},Rl={2:t=>{function e(o,i,s){o instanceof RegExp&&(o=n(o,s)),i instanceof RegExp&&(i=n(i,s));var u=r(o,i,s);return u&&{start:u[0],end:u[1],pre:s.slice(0,u[0]),body:s.slice(u[0]+o.length,u[1]),post:s.slice(u[1]+i.length)}}function n(o,i){var s=i.match(o);return s?s[0]:null}function r(o,i,s){var u,c,l,a,p,f=s.indexOf(o),h=s.indexOf(i,f+1),d=f;if(f>=0&&h>0){for(u=[],l=s.length;d>=0&&!p;)d==f?(u.push(d),f=s.indexOf(o,d+1)):u.length==1?p=[u.pop(),h]:((c=u.pop())=0?f:h;u.length&&(p=[l,a])}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 Ve=="object"&&Ve);i.global!==i&&i.window;var s=function(p){this.message=p};(s.prototype=new Error).name="InvalidCharacterError";var u=function(p){throw new s(p)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,a={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var f,h,d,g,v=p.length%3,O="",m=-1,b=p.length-v;++m>18&63)+c.charAt(g>>12&63)+c.charAt(g>>6&63)+c.charAt(63&g);return v==2?(f=p.charCodeAt(m)<<8,h=p.charCodeAt(++m),O+=c.charAt((g=f+h)>>10)+c.charAt(g>>4&63)+c.charAt(g<<2&63)+"="):v==1&&(g=p.charCodeAt(m),O+=c.charAt(g>>2)+c.charAt(g<<4&63)+"=="),O},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))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var h,d,g=0,v="",O=-1;++O>(-2*g&6)));return v},version:"1.0.0"};(r=function(){return a}.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{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{var e,n;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(r,o){return 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;o0;r--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(r){for(var o=[],i=0,s=0;i>>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>>4).toString(16)),o.push((15&r[i]).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],i=0;i>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,s=0;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,u){if(s){const c=Object.keys(s),l=c.length;for(let a=0;a{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(;b5&&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 u(m,b){if(m.length>b+5&&m[b+1]==="-"&&m[b+2]==="-"){for(b+=3;b"){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"&&(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"){b+=2;break}}return b}e.validate=function(m,b){b=Object.assign({},o,b);const E=[];let N=!1,x=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(let T=0;T"&&m[T]!==" "&&m[T]!==" "&&m[T]!==` `&&m[T]!=="\r";T++)P+=m[T];if(P=P.trim(),P[P.length-1]==="/"&&(P=P.substring(0,P.length-1),T--),C=P,!r.isName(C)){let A;return A=P.trim().length===0?"Invalid space after '<'.":"Tag '"+P+"' is an invalid name.",d("InvalidTag",A,v(m,T))}const w=a(m,T);if(w===!1)return d("InvalidAttr","Attributes for '"+P+"' have open quote.",v(m,T));let y=w.value;if(T=w.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(L){if(!w.tagClosed)return d("InvalidTag","Closing tag '"+P+"' doesn't have proper closing.",v(m,T));if(y.trim().length>0)return d("InvalidTag","Closing tag '"+P+"' can't have attributes or invalid starting.",v(m,I));if(E.length===0)return d("InvalidTag","Closing tag '"+P+"' has not been opened.",v(m,I));{const A=E.pop();if(P!==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 '"+P+"'.",v(m,I))}E.length==0&&(x=!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(x===!0)return d("InvalidXml","Multiple possible root nodes found.",v(m,T));b.unpairedTags.indexOf(P)!==-1||E.push({tagName:P,tagStartPos:I}),N=!0}for(T++;T0)||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 c='"',l="'";function a(m,b){let E="",N="",x=!1;for(;b"&&N===""){x=!0;break}E+=m[b]}return N===""&&{value:E,index:b,tagClosed:x}}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 x=0;x{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(a,p){return p},attributeValueProcessor:function(a,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(a){this.options=Object.assign({},i,a),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=u,this.options.format?(this.indentate=c,this.tagEndChar=`> `,this.newLine=` `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(a,p,f,h){const d=this.j2x(a,f+1,h.concat(p));return a[this.options.textNodeName]!==void 0&&Object.keys(a).length===1?this.buildTextValNode(a[this.options.textNodeName],p,d.attrStr,f):this.buildObjectNode(d.val,p,d.attrStr,f)}function c(a){return this.options.indentBy.repeat(a)}function l(a){return!(!a.startsWith(this.options.attributeNamePrefix)||a===this.options.textNodeName)&&a.substr(this.attrPrefixLen)}s.prototype.build=function(a){return this.options.preserveOrder?r(a,this.options):(Array.isArray(a)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(a={[this.options.arrayNodeName]:a}),this.j2x(a,0,[]).val)},s.prototype.j2x=function(a,p,f){let h="",d="";const g=f.join(".");for(let v in a)if(Object.prototype.hasOwnProperty.call(a,v))if(a[v]===void 0)this.isAttribute(v)&&(d+="");else if(a[v]===null)this.isAttribute(v)?d+="":v[0]==="?"?d+=this.indentate(p)+"<"+v+"?"+this.tagEndChar:d+=this.indentate(p)+"<"+v+"/"+this.tagEndChar;else if(a[v]instanceof Date)d+=this.buildTextValNode(a[v],v,"",p);else if(typeof a[v]!="object"){const O=this.isAttribute(v);if(O&&!this.ignoreAttributesFn(O,g))h+=this.buildAttrPairStr(O,""+a[v]);else if(!O)if(v===this.options.textNodeName){let m=this.options.tagValueProcessor(v,""+a[v]);d+=this.replaceEntitiesValue(m)}else d+=this.buildTextValNode(a[v],v,"",p)}else if(Array.isArray(a[v])){const O=a[v].length;let m="",b="";for(let E=0;E`+this.newLine:this.indentate(h)+"<"+p+f+g+this.tagEndChar+a+this.indentate(h)+d:this.indentate(h)+"<"+p+f+g+">"+a+d}},s.prototype.closeTag=function(a){let p="";return this.options.unpairedTags.indexOf(a)!==-1?this.options.suppressUnpairedNode||(p="/"):p=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(this.options.commentPropName!==!1&&p===this.options.commentPropName)return this.indentate(h)+``+this.newLine;if(p[0]==="?")return this.indentate(h)+"<"+p+f+"?"+this.tagEndChar;{let d=this.options.tagValueProcessor(p,a);return d=this.replaceEntitiesValue(d),d===""?this.indentate(h)+"<"+p+f+this.closeTag(p)+this.tagEndChar:this.indentate(h)+"<"+p+f+">"+d+"0&&this.options.processEntities)for(let p=0;p{function e(s,u,c,l){let a="",p=!1;for(let f=0;f`,p=!1;continue}if(d===u.commentPropName){a+=l+``,p=!0;continue}if(d[0]==="?"){const b=r(h[":@"],u),E=d==="?xml"?"":l;let N=h[d][0][u.textNodeName];N=N.length!==0?" "+N:"",a+=E+`<${d}${N}${b}?>`,p=!0;continue}let v=l;v!==""&&(v+=u.indentBy);const O=l+`<${d}${r(h[":@"],u)}`,m=e(h[d],u,g,v);u.unpairedTags.indexOf(d)!==-1?u.suppressUnpairedNode?a+=O+">":a+=O+"/>":m&&m.length!==0||!u.suppressEmptyNode?m&&m.endsWith(">")?a+=O+`>${m}${l}`:(a+=O+">",m&&l!==""&&(m.includes("/>")||m.includes("`):a+=O+"/>",p=!0}return a}function n(s){const u=Object.keys(s);for(let c=0;c0&&u.processEntities)for(let c=0;c0&&(c=` `),e(s,u,"",c)}},193:(t,e,n)=>{const r=n(705);function o(p,f){let h="";for(;f"){if(v?p[f-1]==="-"&&p[f-2]==="-"&&(v=!1,d--):d--,d===0)break}else p[f]==="["?g=!0:O+=p[f];else{if(g&&s(p,f)){let m,b;f+=7,[m,b,f]=o(p,f+1),b.indexOf("&")===-1&&(h[a(m)]={regx:RegExp(`&${m};`,"g"),val:b})}else if(g&&u(p,f))f+=8;else if(g&&c(p,f))f+=8;else if(g&&l(p,f))f+=9;else{if(!i)throw new Error("Invalid DOCTYPE");v=!0}d++,O=""}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),u=n(118);function c(x){const C=Object.keys(x);for(let T=0;T0)){w||(x=this.replaceEntitiesValue(x));const y=this.options.tagValueProcessor(C,x,T,L,P);return y==null?x:typeof y!=typeof x||y!==x?y:this.options.trimValues||x.trim()===x?N(x,this.options.parseTagValue,this.options.numberParseOptions):x}}function a(x){if(this.options.removeNSPrefix){const C=x.split(":"),T=x.charAt(0)==="/"?"/":"";if(C[0]==="xmlns")return"";C.length===2&&(x=T+C[1])}return x}const p=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f(x,C,T){if(this.options.ignoreAttributes!==!0&&typeof x=="string"){const I=r.getAllMatches(x,p),L=I.length,P={};for(let w=0;w",P,"Closing Tag is not closed.");let y=x.substring(P+2,w).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&&(I=this.saveTextToParentTag(I,T,L));const A=L.substring(L.lastIndexOf(".")+1);if(y&&this.options.unpairedTags.indexOf(y)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let $=0;A&&this.options.unpairedTags.indexOf(A)!==-1?($=L.lastIndexOf(".",L.lastIndexOf(".")-1),this.tagsNodeStack.pop()):$=L.lastIndexOf("."),L=L.substring(0,$),T=this.tagsNodeStack.pop(),I="",P=w}else if(x[P+1]==="?"){let w=b(x,P,!1,"?>");if(!w)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,T,L),!(this.options.ignoreDeclaration&&w.tagName==="?xml"||this.options.ignorePiTags)){const y=new o(w.tagName);y.add(this.options.textNodeName,""),w.tagName!==w.tagExp&&w.attrExpPresent&&(y[":@"]=this.buildAttributesMap(w.tagExp,L,w.tagName)),this.addChild(T,y,L)}P=w.closeIndex+1}else if(x.substr(P+1,3)==="!--"){const w=m(x,"-->",P+4,"Comment is not closed.");if(this.options.commentPropName){const y=x.substring(P+4,w-2);I=this.saveTextToParentTag(I,T,L),T.add(this.options.commentPropName,[{[this.options.textNodeName]:y}])}P=w}else if(x.substr(P+1,2)==="!D"){const w=i(x,P);this.docTypeEntities=w.entities,P=w.i}else if(x.substr(P+1,2)==="!["){const w=m(x,"]]>",P,"CDATA is not closed.")-2,y=x.substring(P+9,w);I=this.saveTextToParentTag(I,T,L);let A=this.parseTextData(y,T.tagname,L,!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),P=w+2}else{let w=b(x,P,this.options.removeNSPrefix),y=w.tagName;const A=w.rawTagName;let $=w.tagExp,k=w.attrExpPresent,U=w.closeIndex;this.options.transformTagName&&(y=this.options.transformTagName(y)),T&&I&&T.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,T,L,!1));const F=T;if(F&&this.options.unpairedTags.indexOf(F.tagname)!==-1&&(T=this.tagsNodeStack.pop(),L=L.substring(0,L.lastIndexOf("."))),y!==C.tagname&&(L+=L?"."+y:y),this.isItStopNode(this.options.stopNodes,L,y)){let M="";if($.length>0&&$.lastIndexOf("/")===$.length-1)y[y.length-1]==="/"?(y=y.substr(0,y.length-1),L=L.substr(0,L.length-1),$=y):$=$.substr(0,$.length-1),P=w.closeIndex;else if(this.options.unpairedTags.indexOf(y)!==-1)P=w.closeIndex;else{const j=this.readStopNodeData(x,A,U+1);if(!j)throw new Error(`Unexpected end of ${A}`);P=j.i,M=j.tagContent}const z=new o(y);y!==$&&k&&(z[":@"]=this.buildAttributesMap($,L,y)),M&&(M=this.parseTextData(M,y,L,!0,k,!0,!0)),L=L.substr(0,L.lastIndexOf(".")),z.add(this.options.textNodeName,M),this.addChild(T,z,L)}else{if($.length>0&&$.lastIndexOf("/")===$.length-1){y[y.length-1]==="/"?(y=y.substr(0,y.length-1),L=L.substr(0,L.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($,L,y)),this.addChild(T,M,L),L=L.substr(0,L.lastIndexOf("."))}else{const M=new o(y);this.tagsNodeStack.push(T),y!==$&&k&&(M[":@"]=this.buildAttributesMap($,L,y)),this.addChild(T,M,L),T=M}I="",P=U}}else I+=x[P];return C.child};function d(x,C,T){const I=this.options.updateTag(C.tagname,T,C[":@"]);I===!1||(typeof I=="string"&&(C.tagname=I),x.addChild(C))}const g=function(x){if(this.options.processEntities){for(let C in this.docTypeEntities){const T=this.docTypeEntities[C];x=x.replace(T.regx,T.val)}for(let C in this.lastEntities){const T=this.lastEntities[C];x=x.replace(T.regex,T.val)}if(this.options.htmlEntities)for(let C in this.htmlEntities){const T=this.htmlEntities[C];x=x.replace(T.regex,T.val)}x=x.replace(this.ampEntity.regex,this.ampEntity.val)}return x};function v(x,C,T,I){return x&&(I===void 0&&(I=Object.keys(C.child).length===0),(x=this.parseTextData(x,C.tagname,T,!1,!!C[":@"]&&Object.keys(C[":@"]).length!==0,I))!==void 0&&x!==""&&C.add(this.options.textNodeName,x),x=""),x}function O(x,C,T){const I="*."+T;for(const L in x){const P=x[L];if(I===P||C===P)return!0}return!1}function m(x,C,T,I){const L=x.indexOf(C,T);if(L===-1)throw new Error(I);return L+C.length-1}function b(x,C,T){const I=function(k,U){let F,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",z="";for(let j=U;j3&&arguments[3]!==void 0?arguments[3]:">");if(!I)return;let L=I.data;const P=I.index,w=L.search(/\s/);let y=L,A=!0;w!==-1&&(y=L.substring(0,w),L=L.substring(w+1).trimStart());const $=y;if(T){const k=y.indexOf(":");k!==-1&&(y=y.substr(k+1),A=y!==I.data.substr(k+1))}return{tagName:y,tagExp:L,closeIndex:P,attrExpPresent:A,rawTagName:$}}function E(x,C,T){const I=T;let L=1;for(;T",T,`${C} is not closed`);if(x.substring(T+2,P).trim()===C&&(L--,L===0))return{tagContent:x.substring(I,T),i:P};T=P}else if(x[T+1]==="?")T=m(x,"?>",T+1,"StopNode is not closed.");else if(x.substr(T+1,3)==="!--")T=m(x,"-->",T+3,"StopNode is not closed.");else if(x.substr(T+1,2)==="![")T=m(x,"]]>",T,"StopNode is not closed.")-2;else{const P=b(x,T,">");P&&((P&&P.tagName)===C&&P.tagExp[P.tagExp.length-1]!=="/"&&L++,T=P.closeIndex)}}function N(x,C,T){if(C&&typeof x=="string"){const I=x.trim();return I==="true"||I!=="false"&&s(x,T)}return r.isExist(x)?x:""}t.exports=class{constructor(x){this.options=x,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=c,this.parseXml=h,this.parseTextData=l,this.resolveNameSpace=a,this.buildAttributesMap=f,this.isItStopNode=O,this.replaceEntitiesValue=g,this.readStopNodeData=E,this.saveTextToParentTag=v,this.addChild=d,this.ignoreAttributesFn=u(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(u){this.externalEntities={},this.options=r(u)}parse(u,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const p=s.validate(u,c);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 a=l.parseXml(u);return this.options.preserveOrder||a===void 0?a:i(a,this.options)}addEntity(u,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(t,e)=>{function n(s,u,c){let l;const a={};for(let p=0;p0&&(a[u.textNodeName]=l):l!==void 0&&(a[u.textNodeName]=l),a}function r(s){const u=Object.keys(s);for(let c=0;c{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,u=function(c,l){c.constructor==String?c=l&&l.encoding==="binary"?s.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var a=r.bytesToWords(c),p=8*c.length,f=1732584193,h=-271733879,d=-1732584194,g=271733878,v=0;v>>24)|4278255360&(a[v]<<24|a[v]>>>8);a[p>>>5]|=128<>>9<<4)]=p;var O=u._ff,m=u._gg,b=u._hh,E=u._ii;for(v=0;v>>0,h=h+x>>>0,d=d+C>>>0,g=g+T>>>0}return r.endian([f,h,d,g])};u._ff=function(c,l,a,p,f,h,d){var g=c+(l&a|~l&p)+(f>>>0)+d;return(g<>>32-h)+l},u._gg=function(c,l,a,p,f,h,d){var g=c+(l&p|a&~p)+(f>>>0)+d;return(g<>>32-h)+l},u._hh=function(c,l,a,p,f,h,d){var g=c+(l^a^p)+(f>>>0)+d;return(g<>>32-h)+l},u._ii=function(c,l,a,p,f,h,d){var g=c+(a^(l|~p))+(f>>>0)+d;return(g<>>32-h)+l},u._blocksize=16,u._digestsize=16,t.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var a=r.wordsToBytes(u(c,l));return l&&l.asBytes?a:l&&l.asString?s.bytesToString(a):r.bytesToHex(a)}})()},285:(t,e,n)=>{var r=n(2);t.exports=function(O){return O?(O.substr(0,2)==="{}"&&(O="\\{\\}"+O.substr(2)),v(function(m){return m.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(s).split("\\,").join(u).split("\\.").join(c)}(O),!0).map(a)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(O){return parseInt(O,10)==O?parseInt(O,10):O.charCodeAt(0)}function a(O){return O.split(o).join("\\").split(i).join("{").split(s).join("}").split(u).join(",").split(c).join(".")}function p(O){if(!O)return[""];var m=[],b=r("{","}",O);if(!b)return O.split(",");var E=b.pre,N=b.body,x=b.post,C=E.split(",");C[C.length-1]+="{"+N+"}";var T=p(x);return x.length&&(C[C.length-1]+=T.shift(),C.push.apply(C,T)),m.push.apply(m,C),m}function f(O){return"{"+O+"}"}function h(O){return/^-?0\d/.test(O)}function d(O,m){return O<=m}function g(O,m){return O>=m}function v(O,m){var b=[],E=r("{","}",O);if(!E)return[O];var N=E.pre,x=E.post.length?v(E.post,!1):[""];if(/\$$/.test(E.pre))for(var C=0;C=0;if(!y&&!A)return E.post.match(/,.*\}/)?v(O=E.pre+"{"+E.body+s+E.post):[O];if(y)I=E.body.split(/\.\./);else if((I=p(E.body)).length===1&&(I=v(I[0],!1).map(f)).length===1)return x.map(function(Et){return E.pre+I[0]+Et});if(y){var $=l(I[0]),k=l(I[1]),U=Math.max(I[0].length,I[1].length),F=I.length==3?Math.abs(l(I[2])):1,M=d;k<$&&(F*=-1,M=g);var z=I.some(h);L=[];for(var j=$;M(j,k);j+=F){var B;if(w)(B=String.fromCharCode(j))==="\\"&&(B="");else if(B=String(j),z){var V=U-B.length;if(V>0){var ft=new Array(V+1).join("0");B=j<0?"-"+ft+B.slice(1):ft+B}}L.push(B)}}else{L=[];for(var q=0;q{function e(l){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(l)}function n(l){var a=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(a!==void 0){if(a.has(p))return a.get(p);a.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,a,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,a){return o=Object.setPrototypeOf||function(p,f){return p.__proto__=f,p},o(l,a)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},i(l)}var s=function(l){function a(p){var f;return function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,a),(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(a).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)}(a,l),a}(n(Error));function u(l,a){for(var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=a.split("."),h=f.length,d=function(O){var m=f[O];if(!l)return{v:void 0};if(m==="+"){if(Array.isArray(l))return{v:l.map(function(E,N){var x=f.slice(O+1);return x.length>0?u(E,x.join("."),p):p(l,N,f,O)})};var b=f.slice(0,O).join(".");throw new Error("Object at wildcard (".concat(b,") is not an array"))}l=p(l,m,f,O)},g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(e(l)!="object"||l===null||a===void 0)return!1;if(typeof a=="number")return a in l;try{var f=!1;return u(l,a,function(h,d,g,v){if(!c(g,v))return h&&h[d];f=p.own?h.hasOwnProperty(d):d in h}),f}catch{return!1}},hasOwn:function(l,a,p){return this.has(l,a,p||{own:!0})},isIn:function(l,a,p){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(l)!="object"||l===null||a===void 0)return!1;try{var h=!1,d=!1;return u(l,a,function(g,v,O,m){return h=h||g===p||!!g&&g[v]===p,d=c(O,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,a){for(var p=[],f=0;f=-1&&!a;p--){var f=p>=0?arguments[p]:Ze.cwd();if(!o(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(l=f+"/"+l,a=f.charAt(0)==="/")}return(a?"/":"")+(l=i(l.split("/"),!a).join("/"))||"."},u.normalize=function(l){var a=u.isAbsolute(l),p=l.substr(-1)==="/";return(l=i(l.split("/"),!a).join("/"))||a||(l="."),l&&p&&(l+="/"),(a?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",a=0;a=0&&m[E]==="";E--);return b>E?[]:m.slice(b,E+1)}l=u.resolve(l).substr(1),a=u.resolve(a).substr(1);for(var f=p(l.split("/")),h=p(a.split("/")),d=Math.min(f.length,h.length),g=d,v=0;v{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 u,c,l=[];for(c in typeof s!="string"&&(s="?"),i)if(n.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?s+l.join("&"):""},e.parse=function(i){for(var s,u=/([^=?#&]+)=?([^&]*)/g,c={};s=u.exec(i);){var l=r(s[1]),a=r(s[2]);l===null||a===null||l in c||(c[l]=a)}return c}},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 c=n.exec(s);if(c){const l=c[1],a=c[2];let p=((u=c[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const f=c[4]||c[6];if(!i.leadingZeros&&a.length>0&&l&&s[2]!=="."||!i.leadingZeros&&a.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:a?p===d||l+p===d?h:o:s===d||s===l+d?h:o}}return o}var u}},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,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[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 Ve<"u"?Ve:typeof self<"u"?self:{}).location||{},N={},x=typeof(m=m||E);if(m.protocol==="blob:")N=new O(unescape(m.pathname),{});else if(x==="string")for(b in N=new O(m,{}),h)delete N[b];else if(x==="object"){for(b in m)b in h||(N[b]=m[b]);N.slashes===void 0&&(N.slashes=u.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),x=N[1]?N[1].toLowerCase():"",C=!!N[2],T=!!N[3],I=0;return C?T?(E=N[2]+N[3]+N[4],I=N[2].length+N[3].length):(E=N[2]+N[4],I=N[2].length):T?(E=N[3]+N[4],I=N[3].length):E=N[4],x==="file:"?I>=2&&(E=E.slice(2)):g(x)?E=N[4]:x?C&&(E=E.slice(2)):I>=2&&g(b.protocol)&&(E=N[4]),{protocol:x,slashes:C||g(x),slashesCount:I,rest:E}}function O(m,b,E){if(m=(m=p(m)).replace(s,""),!(this instanceof O))return new O(m,b,E);var N,x,C,T,I,L,P=f.slice(),w=typeof b,y=this,A=0;for(w!=="object"&&w!=="string"&&(E=b,b=null),E&&typeof E!="function"&&(E=o.parse),N=!(x=v(m||"",b=d(b))).protocol&&!x.slashes,y.slashes=x.slashes||N&&b.slashes,y.protocol=x.protocol||b.protocol||"",m=x.rest,(x.protocol==="file:"&&(x.slashesCount!==2||a.test(m))||!x.slashes&&(x.protocol||x.slashesCount<2||!g(y.protocol)))&&(P[3]=[/(.*)/,"pathname"]);A{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Ls={};function K(t){var e=Ls[t];if(e!==void 0)return e.exports;var n=Ls[t]={id:t,loaded:!1,exports:{}};return Rl[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:()=>Tt,O4:()=>ue,Kd:()=>Bl,YK:()=>Vl,UU:()=>Zf,Gu:()=>Eu,ky:()=>Iu,h4:()=>Pn,ch:()=>jr,hq:()=>Le,i5:()=>Pu});var kl=K(737),jl=K.n(kl);function so(t){if(!ko(t))throw new Error("Parameter was not an error")}function ko(t){return!!t&&typeof t=="object"&&(e=t,Object.prototype.toString.call(e)==="[object Error]")||t instanceof Error;var e}class At extends Error{constructor(e,n){const r=[...arguments],{options:o,shortMessage:i}=function(u){let c,l="";if(u.length===0)c={};else if(ko(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,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 u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(e){return so(e),e._cause&&ko(e._cause)?e._cause:null}static fullStack(e){so(e);const n=At.cause(e);return n?`${e.stack} caused by: ${At.fullStack(n)}`:e.stack??""}static info(e){so(e);const n={},r=At.cause(e);return r&&Object.assign(n,At.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 Dl=K(47),mr=K.n(Dl);const Rs="__PATH_SEPARATOR_POSIX__",ks="__PATH_SEPARATOR_WINDOWS__";function et(t){try{const e=t.replace(/\//g,Rs).replace(/\\\\/g,ks);return encodeURIComponent(e).split(ks).join("\\\\").split(Rs).join("/")}catch(e){throw new At(e,"Failed encoding path")}}function js(t){return t.startsWith("/")?t:"/"+t}function Tn(t){let e=t;return e[0]!=="/"&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function Ml(t){let e=new(jl())(t).pathname;return e.length<=0&&(e="/"),Tn(e)}function nt(){for(var t=arguments.length,e=new Array(t),n=0;n1){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;s0&&(u=u.replace(/^[\/]+/,"")),u=s0?"?":"")+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 Fl=K(542),ln=K.n(Fl);const Ul="abcdef0123456789";function Ds(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),u=function(f,h,d,g,v,O,m){const b=m||ln()(`${h}:${d}:${g}`);return f&&f.toLowerCase()==="md5-sess"?ln()(`${b}:${v}:${O}`):b}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),c=ln()(`${o}:${r}`),l=i?ln()(`${u}:${e.nonce}:${s}:${e.cnonce}:${i}:${c}`):ln()(`${u}:${e.nonce}:${c}`),a={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 a)a[f]&&(f==="qop"||f==="nc"||f==="algorithm"?p.push(`${f}=${a[f]}`):p.push(`${f}="${a[f]}"`));return`Digest ${p.join(", ")}`}function bu(t){return(t.headers&&t.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var zl=K(101),_u=K.n(zl);function Ms(t){return _u().decode(t)}function Fs(t,e){var n;return`Basic ${n=`${t}:${e}`,_u().encode(n)}`}const vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Gl=vr.fetch.bind(vr),Bl=vr.Request,Vl=vr.Response;let Tt=function(t){return t.Auto="auto",t.Digest="digest",t.None="none",t.Password="password",t.Token="token",t}({}),ue=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 wu(t,e,n,r,o){switch(t.authType){case Tt.Auto:e&&n&&(t.headers.Authorization=Fs(e,n));break;case Tt.Digest:t.digest=function(s,u,c){return{username:s,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,n,o);break;case Tt.None:break;case Tt.Password:t.headers.Authorization=Fs(e,n);break;case Tt.Token:t.headers.Authorization=`${(i=r).token_type} ${i.access_token}`;break;default:throw new At({info:{code:ue.InvalidAuthType}},`Invalid auth type: ${t.authType}`)}var i}K(345),K(800);const Us="@@HOTPATCHER",Wl=()=>{};function ao(t){return{original:t,methods:[t],final:!1}}class Hl{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Us}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__!==Us)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)||Wl;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i0;)l=[o.shift().apply(a,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]=ao(n);else if(this.isPatched(e)){const{original:i}=this.configuration.registry[e];this.configuration.registry[e]=Object.assign(ao(n),{original:i})}else this.configuration.registry[e]=ao(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;i1?n-1:0),o=1;o{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 Eu(){return uo||(uo=new Hl),uo}function yr(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 zs(){for(var t=arguments.length,e=new Array(t),n=0;n0;){const i=o.shift();r=r?xu(r,i):yr(i)}return r}function xu(t,e){const n=yr(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]?xu(n[r],e[r]):yr(e[r]):n[r]=e[r]:n[r]=e[r]}),n}function ql(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}function jo(){for(var t=arguments.length,e=new Array(t),n=0;n(Object.keys(i).forEach(s=>{const u=s.toLowerCase();r.hasOwnProperty(u)?o[r[u]]=i[s]:(r[u]=s,o[s]=i[s])}),o),{})}K(805);const Xl=typeof ArrayBuffer=="function",{toString:Yl}=Object.prototype;function Ou(t){return Xl&&(t instanceof ArrayBuffer||Yl.call(t)==="[object ArrayBuffer]")}function Tu(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function yi(t){return function(){for(var e=[],n=0;ne.patchInline("fetch",Gl,n.url,function(r){let o={};const i={method:r.method};if(r.headers&&(o=jo(o,r.headers)),r.data!==void 0){const[s,u]=function(c){if(typeof c=="string")return[c,{}];if(Tu(c))return[c,{}];if(Ou(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)}(r.data);i.body=s,o=jo(o,u)}return r.signal&&(i.signal=r.signal),r.withCredentials&&(i.credentials="include"),i.headers=o,i}(n)),t)}var Zl=K(285);const _r=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},Jl={"[: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]},fn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Gs=t=>t.join(""),Ql=(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,u=!1,c=!1,l=!1,a=n,p="";t:for(;ip?r.push(fn(p)+"-"+fn(g)):g===p&&r.push(fn(g)),p="",i++):t.startsWith("-]",i+1)?(r.push(fn(g+"-")),i+=2):t.startsWith("-",i+1)?(p=g,i+=2):(r.push(fn(g)),i++)}else c=!0,i++}else l=!0,i++}if(a1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},tf=new Set(["!","?","+","*","@"]),Bs=t=>tf.has(t),co="(?!\\.)",ef=new Set(["[","."]),nf=new Set(["..","."]),rf=new Set("().*{}+?[]^$\\!"),bi="[^/]",Vs=bi+"*?",Ws=bi+"+?";class Ot{type;#n;#r;#i=!1;#t=[];#e;#s;#u;#a=!1;#o;#c;#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.#u=this.#n===this?[]:this.#n.#u,e!=="!"||this.#n.#a||this.#u.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.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#c=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.#u.pop();){if(e.type!=="!")continue;let n=e,r=n.#e;for(;r;){for(let o=n.#s+1;!r.type&&otypeof 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;n1&&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 c=this.isStart()&&this.isEnd(),l=this.#t.map(f=>{const[h,d,g,v]=typeof f=="string"?Ot.#d(f,this.#r,c):f.toRegExpSource(e);return this.#r=this.#r||g,this.#i=this.#i||v,h}).join("");let a="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!nf.has(this.#t[0]))){const f=ef,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));a=h?"(?!(?:^|/)\\.\\.?(?:$|/))":d?co:""}let p="";return this.isEnd()&&this.#n.#a&&this.#e?.type==="!"&&(p="(?:$|\\/)"),[a+l+p,_n(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 c=this.toString();return this.#t=[c],this.type=null,this.#r=void 0,[c,_n(this.toString()),!1,!1]}let s=!r||e||n?"":this.#p(!0);s===i&&(s=""),s&&(i=`(?:${i})(?:${s})*?`);let u="";return u=this.type==="!"&&this.#f?(this.isStart()&&!n?co:"")+Ws:o+i+(this.type==="!"?"))"+(!this.isStart()||n||e?"":co)+Vs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`),[u,_n(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 u=0;u2&&arguments[2]!==void 0?arguments[2]:{};return _r(e),!(!n.nocomment&&e.charAt(0)==="#")&&new wr(e,n).match(t)},of=/^\*+([^+@!?\*\[\(]*)$/,sf=t=>e=>!e.startsWith(".")&&e.endsWith(t),af=t=>e=>e.endsWith(t),uf=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),cf=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),lf=/^\*+\.\*+$/,ff=t=>!t.startsWith(".")&&t.includes("."),pf=t=>t!=="."&&t!==".."&&t.includes("."),hf=/^\.\*+$/,df=t=>t!=="."&&t!==".."&&t.startsWith("."),gf=/^\*+$/,mf=t=>t.length!==0&&!t.startsWith("."),vf=t=>t.length!==0&&t!=="."&&t!=="..",yf=/^\?+([^+@!?\*\[\(]*)?$/,bf=t=>{let[e,n=""]=t;const r=Au([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},_f=t=>{let[e,n=""]=t;const r=Su([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},wf=t=>{let[e,n=""]=t;const r=Su([e]);return n?o=>r(o)&&o.endsWith(n):r},Ef=t=>{let[e,n=""]=t;const r=Au([e]);return n?o=>r(o)&&o.endsWith(n):r},Au=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&!r.startsWith(".")},Su=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&r!=="."&&r!==".."},Cu=typeof Ze=="object"&&Ze?typeof io=="object"&&io&&io.__MINIMATCH_TESTING_PLATFORM__||Ze.platform:"posix";bt.sep=Cu==="win32"?"\\":"/";const jt=Symbol("globstar **");bt.GLOBSTAR=jt,bt.filter=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>bt(n,t,e)};const kt=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},t,e)};bt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return bt;const e=bt;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 $u=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _r(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Zl(t)};bt.braceExpand=$u,bt.makeRe=function(t){return new wr(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},bt.match=function(t,e){const n=new wr(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 Hs=/[?*]|[+@!]\(.*?\)|\[|\]/;class wr{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]:{};_r(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||Cu,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,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&Hs.test(i[2])||Hs.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)return[...i.slice(0,4),...i.slice(4).map(a=>this.parse(a))];if(l)return[i[0],...i.slice(1).map(a=>this.parse(a))]}return i.map(c=>this.parse(c))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i=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;oo&&r.splice(o+1,s-o);let u=r[o+1];const c=r[o+2],l=r[o+3];if(u!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;n=!0,r.splice(o,1);const a=r.slice(0);a[o]="**",e.push(a),o--}if(!this.preserveMultipleSlashes){for(let s=1;sn.length)}partsMatch(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,s=[],u="";for(;o2&&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]),O=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=v?3:g?0:void 0,b=!O&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:O?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,u=0,c=e.length,l=n.length;s>> no match, partial?`,e,f,n,h),f!==c))}let g;if(typeof a=="string"?(g=p===a,this.debug("string match",a,p,g)):(g=a.test(p),this.debug("pattern match",a,p,g)),!g)return!1}if(s===c&&u===l)return!0;if(s===c)return r;if(u===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return $u(this.pattern,this.options)}parse(e){_r(e);const n=this.options;if(e==="**")return jt;if(e==="")return"";let r,o=null;(r=e.match(gf))?o=n.dot?vf:mf:(r=e.match(of))?o=(n.nocase?n.dot?cf:uf:n.dot?af:sf)(r[1]):(r=e.match(yf))?o=(n.nocase?n.dot?_f:bf:n.dot?wf:Ef)(r):(r=e.match(lf))?o=n.dot?pf:ff:(r=e.match(hf))&&(o=df);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(c=>{const l=c.map(a=>{if(a instanceof RegExp)for(const p of a.flags.split(""))o.add(p);return typeof a=="string"?a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a===jt?jt:a._src});return l.forEach((a,p)=>{const f=l[p+1],h=l[p-1];a===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(a=>a!==jt).join("/")}).join("|");const[s,u]=e.length>1?["(?:",")"]:["",""];i="^"+s+i+u+"$",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 u=o.length-2;!s&&u>=0;u--)s=o[u];for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${t.status} ${t.statusText}`);return e.status=t.status,e.response=t,e}function lt(t,e){const{status:n}=e;if(n===401&&t.digest)return e;if(n>=400)throw _i(e);return e}function Le(t,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:t.headers?ql(t.headers):{},status:t.status,statusText:t.statusText}:e}bt.AST=Ot,bt.Minimatch=wr,bt.escape=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},bt.unescape=_n;const xf=(qs=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:nt(t.remoteURL,et(e)),method:"COPY",headers:{Destination:nt(t.remoteURL,et(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},t,r);return s=function(u){lt(t,u)},(i=ut(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s},function(){for(var t=[],e=0;e2&&arguments[2]!==void 0?arguments[2]:We.Original;const r=oe().get(t,e);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function Pn(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 oe().set(o,"multistatus.response",Xn(o,"multistatus.response",We.Array)),oe().set(o,"multistatus.response",oe().get(o,"multistatus.response").map(i=>function(s){const u=Object.assign({},s);return u.status?oe().set(u,"status",Xn(u,"status",We.Object)):(oe().set(u,"propstat",Xn(u,"propstat",We.Object)),oe().set(u,"propstat.prop",Xn(u,"propstat.prop",We.Object))),u}(i))),o}(new wi.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 jr(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:u=null}=t,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:e,basename:mr().basename(e),lastmod:r,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="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 Iu(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,u,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const a=new Error(`Invalid response: ${l} ${c}`);throw a.status=l,a}return jr(o,Tn(e),n)}function Pu(t){switch(String(t)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(t),10)}}function lo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Ei=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:nt(t.remoteURL,et(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,n);return lo(ut(o,t),function(i){return lt(t,i),lo(i.text(),function(s){return lo(Pn(s),function(u){const c=Iu(u,e,r);return Le(i,c,r)})})})});function Lu(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Tf=Ru(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 u=[];do u.push(s),s=mr().dirname(s);while(s&&s!=="/");return u}(Tn(e));r.sort((i,s)=>i.length>s.length?1:s.length>i.length?-1:0);let o=!1;return function(i,s,u){if(typeof i[Ys]=="function"){let g=function(v){try{for(;!(c=p.next()).done;)if((v=s(c.value))&&v.then){if(!Ks(v))return void v.then(g,a||(a=Nt.bind(null,l=new He,2)));v=v.v}l?Nt(l,1,v):l=v}catch(O){Nt(l||(l=new He),2,O)}};var c,l,a,p=i[Ys]();if(g(),p.return){var f=function(v){try{c.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;d2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return Tf(t,e,n);const r=ct({url:nt(t.remoteURL,(o=et(e),o.endsWith("/")?o:o+"/")),method:"MKCOL"},t,n);var o;return Lu(ut(r,t),function(i){lt(t,i)})});var Af=K(388),Zs=K.n(Af);const Sf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let u=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(u=`${u}${n.range.end}`),r.Range=u}const o=ct({url:nt(t.remoteURL,et(e)),method:"GET",headers:r},t,n);return s=function(u){if(lt(t,u),r.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return n.callback&&setTimeout(()=>{n.callback(u)},0),u.body},(i=ut(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s}),Cf=()=>{},$f=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:nt(t.remoteURL,et(e)),method:"DELETE"},t,n);return i=function(s){lt(t,s)},(o=ut(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),Pf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return function(r,o){try{var i=(s=Ei(t,e,n),u=function(){return!0},c?u?u(s):s:(s&&s.then||(s=Promise.resolve(s)),u?s.then(u):s))}catch(l){return o(l)}var s,u,c;return i&&i.then?i.then(void 0,o):i}(0,function(r){if(r.status===404)return!1;throw r})});function fo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Lf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:nt(t.remoteURL,et(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},t,n);return fo(ut(r,t),function(o){return lt(t,o),fo(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return fo(Pn(i),function(s){const u=js(e);let c=function(l,a,p){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const d=mr().join(a,"/"),{multistatus:{response:g}}=l,v=g.map(O=>{const m=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(N){throw new At(N,"Failed normalising HREF")}}(O.href),{propstat:{prop:b}}=O;return jr(b,d==="/"?decodeURIComponent(Tn(m)):Tn(mr().relative(decodeURIComponent(d),decodeURIComponent(m))),f)});return h?v:v.filter(O=>O.basename&&(O.type==="file"||O.filename!==p.replace(/\/$/,"")))}(s,js(t.remoteBasePath||t.remotePath),u,n.details,n.includeSelf);return n.glob&&(c=function(l,a){return l.filter(p=>bt(p.filename,a,{matchBase:!0}))}(c,n.glob)),Le(o,c,n.details)})})})});function xi(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:nt(t.remoteURL,et(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Df]},t,n);return Er(ut(r,t),function(o){return lt(t,o),Er(o.text(),function(i){return Le(o,i,n.details)})})});function Er(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const kf=xi(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:nt(t.remoteURL,et(e)),method:"GET"},t,n);return Er(ut(r,t),function(o){let i;return lt(t,o),function(s,u){var c=s();return c&&c.then?c.then(u):u()}(function(){return Er(o.arrayBuffer(),function(s){i=s})},function(){return Le(o,i,n.details)})})}),jf=xi(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 At({info:{code:ue.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?Rf(t,e,n):kf(t,e,n)}),Df=t=>t;function Mf(t){return new wi.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(ku({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:t}}},"d"))}function ku(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}`]=ku(n[r],e),delete n[r]):/^@_/.test(r)===!1&&(n[`${e}:${r}`]=n[r],delete n[r]));return n}function Fo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function ju(t){return function(){for(var e=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:nt(t.remoteURL,et(e)),method:"UNLOCK",headers:{"Lock-Token":n}},t,r);return Fo(ut(o,t),function(i){if(lt(t,i),i.status!==204&&i.status!==200)throw _i(i)})}),Uf=ju(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:o=zf}=n,i={Accept:"text/plain,application/xml",Timeout:o};r&&(i.If=r);const s=ct({url:nt(t.remoteURL,et(e)),method:"LOCK",headers:i,data:Mf(t.contactHref)},t,n);return Fo(ut(s,t),function(u){return lt(t,u),Fo(u.text(),function(c){const l=(f=c,new wi.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),a=oe().get(l,"prop.lockdiscovery.activelock.locktoken.href"),p=oe().get(l,"prop.lockdiscovery.activelock.timeout");var f;if(!a)throw _i(u,"No lock token received: ");return{token:a,serverTimeout:p}})})}),zf="Infinite, Second-4100000000";function po(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Gf=function(t){return function(){for(var e=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const n=e.path||"/",r=ct({url:nt(t.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,e);return po(ut(r,t),function(o){return lt(t,o),po(o.text(),function(i){return po(Pn(i),function(s){const u=function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":a,"quota-available-bytes":p}}}=l;return a!==void 0&&p!==void 0?{used:parseInt(String(a),10),available:Pu(p)}:null}catch{}return null}(s);return Le(o,u,e.details)})})})});function ho(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Bf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:nt(t.remoteURL,et(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":t.headers["Content-Type"]||"application/xml; charset=utf-8"}},t,n);return ho(ut(o,t),function(i){return lt(t,i),ho(i.text(),function(s){return ho(Pn(s),function(u){const c=function(l,a,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(et(a).replace(/\/$/,""))),l.multistatus.response.forEach(h=>{if(h.propstat===void 0)return;const d=h.href.split("/").map(decodeURIComponent).join("/");f.results.push(jr(h.propstat.prop,d,p))}),f}(u,e,r);return Le(i,c,r)})})})}),Vf=function(t){return function(){for(var e=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:nt(t.remoteURL,et(e)),method:"MOVE",headers:{Destination:nt(t.remoteURL,et(n)),Overwrite:r.overwrite===!1?"F":"T"}},t,r);return s=function(u){lt(t,u)},(i=ut(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s});var Wf=K(172);const Hf=function(t){return function(){for(var e=[],n=0;n3&&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(a){if(Ou(a))return a.byteLength;if(Tu(a))return a.length;if(typeof a=="string")return(0,Wf.d)(a);throw new At({info:{code:ue.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(n)}`),i||(s["If-None-Match"]="*");const u=ct({url:nt(t.remoteURL,et(e)),method:"PUT",headers:s,data:n},t,r);return l=function(a){try{lt(t,a)}catch(p){const f=p;if(f.status!==412||i)throw f;return!1}return!0},(c=ut(u,t))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l}),Du=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:nt(t.remoteURL,et(e)),method:"OPTIONS"},t,n);return i=function(s){try{lt(t,s)}catch(u){throw u}return{compliance:(s.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:s.headers.get("Server")??""}},(o=ut(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function xn(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const qf=Oi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new At({info:{code:ue.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}/*`},u=ct({url:nt(t.remoteURL,et(e)),method:"PUT",headers:s,data:o},t,i);return xn(ut(u,t),function(c){lt(t,c)})});function Js(t,e){var n=t();return n&&n.then?n.then(e):e(n)}const Xf=Oi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new At({info:{code:ue.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}`},u=ct({url:nt(t.remoteURL,et(e)),method:"PATCH",headers:s,data:o},t,i);return xn(ut(u,t),function(c){lt(t,c)})});function Oi(t){return function(){for(var e=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return xn(Du(t,e,i),function(s){let u=!1;return Js(function(){if(s.compliance.includes("sabredav-partialupdate"))return xn(Xf(t,e,n,r,o,i),function(c){return u=!0,c})},function(c){let l=!1;return u?c:Js(function(){if(s.server.includes("Apache")&&s.compliance.includes(""))return xn(qf(t,e,n,r,o,i),function(a){return l=!0,a})},function(a){if(l)return a;throw new At({info:{code:ue.NotSupported}},"Not supported")})})})}),Kf="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Zf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:o=Kf,ha1:i,headers:s={},httpAgent:u,httpsAgent:c,password:l,token:a,username:p,withCredentials:f}=e;let h=n;h||(h=p||l?Tt.Password:Tt.None);const d={authType:h,remoteBasePath:r,contactHref:o,ha1:i,headers:Object.assign({},s),httpAgent:u,httpsAgent:c,password:l,remotePath:Ml(t),remoteURL:t,token:a,username:p,withCredentials:f};return wu(d,p,l,a,i),{copyFile:(g,v,O)=>xf(d,g,v,O),createDirectory:(g,v)=>Mo(d,g,v),createReadStream:(g,v)=>function(O,m){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const E=new(Zs()).PassThrough;return Sf(O,m,b).then(N=>{N.pipe(E)}).catch(N=>{E.emit("error",N)}),E}(d,g,v),createWriteStream:(g,v,O)=>function(m,b){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Cf;const x=new(Zs()).PassThrough,C={};E.overwrite===!1&&(C["If-None-Match"]="*");const T=ct({url:nt(m.remoteURL,et(b)),method:"PUT",headers:C,data:x,maxRedirects:0},m,E);return ut(T,m).then(I=>lt(m,I)).then(I=>{setTimeout(()=>{N(I)},0)}).catch(I=>{x.emit("error",I)}),x}(d,g,v,O),customRequest:(g,v)=>$f(d,g,v),deleteFile:(g,v)=>If(d,g,v),exists:(g,v)=>Pf(d,g,v),getDirectoryContents:(g,v)=>Lf(d,g,v),getFileContents:(g,v)=>jf(d,g,v),getFileDownloadLink:g=>function(v,O){let m=nt(v.remoteURL,et(O));const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case Tt.None:break;case Tt.Password:{const E=Ms(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new At({info:{code:ue.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getFileUploadLink:g=>function(v,O){let m=`${nt(v.remoteURL,et(O))}?Content-Type=application/octet-stream`;const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case Tt.None:break;case Tt.Password:{const E=Ms(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new At({info:{code:ue.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getHeaders:()=>Object.assign({},d.headers),getQuota:g=>Gf(d,g),lock:(g,v)=>Uf(d,g,v),moveFile:(g,v,O)=>Vf(d,g,v,O),putFileContents:(g,v,O)=>Hf(d,g,v,O),partialUpdateFileContents:(g,v,O,m,b)=>Yf(d,g,v,O,m,b),getDAVCompliance:g=>Du(d,g),search:(g,v)=>Bf(d,g,v),setHeaders:g=>{d.headers=Object.assign({},g)},stat:(g,v)=>Ei(d,g,v),unlock:(g,v,O)=>Ff(d,g,v,O)}}Dt.hT,Dt.O4,Dt.Kd,Dt.YK;var Jf=Dt.UU,Qf=Dt.Gu;Dt.ky,Dt.h4,Dt.ch,Dt.hq,Dt.i5;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||{}),tp=Object.defineProperty,ep=(t,e,n)=>e in t?tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,np=(t,e,n)=>(ep(t,e+"",n),n);class rp{constructor(e){np(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 op(t){return new rp(t)}var ip=Object.defineProperty,sp=(t,e,n)=>e in t?ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qs=(t,e,n)=>(sp(t,typeof e!="symbol"?e+"":e,n),n);class ap{constructor(e){Qs(this,"context"),Qs(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=Rr();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 up(){return new ap(op)}var go,ta;function cp(){if(ta)return go;ta=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="",u=0,c=-1,l=0,a,p=0;p<=o.length;++p){if(p2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",u=0):(s=s.slice(0,f),u=s.length-1-s.lastIndexOf("/")),c=p,l=0;continue}}else if(s.length===2||s.length===1){s="",u=0,c=p,l=0;continue}}i&&(s.length>0?s+="/..":s="..",u=2)}else s.length>0?s+="/"+o.slice(c+1,p):s=o.slice(c+1,p),u=p-c-1;c=p,l=0}else a===46&&l!==-1?++l:l=-1}return s}function n(o,i){var s=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return s?s===i.root?s+u:s+o+u:u}var r={resolve:function(){for(var o="",i=!1,s,u=arguments.length-1;u>=-1&&!i;u--){var c;u>=0?c=arguments[u]:(s===void 0&&(s=Ze.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,i=c.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;i0&&(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;sf){if(i.charCodeAt(l+d)===47)return i.slice(l+d+1);if(d===0)return i.slice(l+d)}else c>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 O="";for(d=s+h+1;d<=u;++d)(d===u||o.charCodeAt(d)===47)&&(O.length===0?O+="..":O+="/..");return O.length>0?O+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,u=-1,c=!0,l=o.length-1;l>=1;--l)if(i=o.charCodeAt(l),i===47){if(!c){u=l;break}}else c=!1;return u===-1?s?"/":".":s&&u===1?"//":o.slice(0,u)},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,u=-1,c=!0,l;if(i!==void 0&&i.length>0&&i.length<=o.length){if(i.length===o.length&&i===o)return"";var a=i.length-1,p=-1;for(l=o.length-1;l>=0;--l){var f=o.charCodeAt(l);if(f===47){if(!c){s=l+1;break}}else p===-1&&(c=!1,p=l+1),a>=0&&(f===i.charCodeAt(a)?--a===-1&&(u=l):(a=-1,u=p))}return s===u?u=p:u===-1&&(u=o.length),o.slice(s,u)}else{for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!c){s=l+1;break}}else u===-1&&(c=!1,u=l+1);return u===-1?"":o.slice(s,u)}},extname:function(o){t(o);for(var i=-1,s=0,u=-1,c=!0,l=0,a=o.length-1;a>=0;--a){var p=o.charCodeAt(a);if(p===47){if(!c){s=a+1;break}continue}u===-1&&(c=!1,u=a+1),p===46?i===-1?i=a:l!==1&&(l=1):i!==-1&&(l=-1)}return i===-1||u===-1||l===0||l===1&&i===u-1&&i===s+1?"":o.slice(i,u)},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),u=s===47,c;u?(i.root="/",c=1):c=0;for(var l=-1,a=0,p=-1,f=!0,h=o.length-1,d=0;h>=c;--h){if(s=o.charCodeAt(h),s===47){if(!f){a=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===a+1?p!==-1&&(a===0&&u?i.base=i.name=o.slice(1,p):i.base=i.name=o.slice(a,p)):(a===0&&u?(i.name=o.slice(1,l),i.base=o.slice(1,p)):(i.name=o.slice(a,l),i.base=o.slice(a,p)),i.ext=o.slice(l,p)),a>0?i.dir=o.slice(0,a-1):u&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,go=r,go}var Te=cp();function lp(t){return t&&t.split("/").map(encodeURIComponent).join("/")}function bm(t){return t.replace(/\\/g,"/").replace(/.*\//,"")}function _m(...t){if(arguments.length<1)return"";const e=t.filter(c=>c.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((c,l)=>c.concat(l.split("/")),[]);let s=!r;const u=i.reduce((c,l)=>l===""?c:s?(s=!1,c+l):c+"/"+l,"");return o?u+"/":u}const ar=up().setApp("@nextcloud/files").detectUser().build();var Ti=(t=>(t.Folder="folder",t.File="file",t))(Ti||{}),Vt=(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))(Vt||{});const Mu=function(t,e){return t.match(e)!==null},fe=(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>=Vt.NONE&&t.permissions<=Vt.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&&Mu(t.source,e)){const n=t.source.match(e)[0];if(!t.source.includes(Te.join(n,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(Ni).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var Ni=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(Ni||{});class Dr{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(Dr.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)?(ar.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){e.mime||(e.mime="application/octet-stream"),fe(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+lp(this.source.slice(e.length))}get basename(){return Te.basename(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(e){fe({...this._data,displayname:e},this._knownDavService),this._data.displayname=e}get extension(){return Te.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 Te.dirname(n.slice(r+o.length)||"/")}const e=new URL(this.source);return Te.dirname(e.pathname)}get mime(){return this._data.mime||"application/octet-stream"}set mime(e){e??="application/octet-stream",fe({...this._data,mime:e},this._knownDavService),this._data.mime=e}get mtime(){return this._data.mtime}set mtime(e){fe({...this._data,mtime:e},this._knownDavService),this._data.mtime=e}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(e){fe({...this._data,size:e},this._knownDavService),this.updateMtime(),this._data.size=e}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavResource?Vt.READ:this._data.permissions!==void 0?this._data.permissions:Vt.NONE}set permissions(e){fe({...this._data,permissions:e},this._knownDavService),this.updateMtime(),this._data.permissions=e}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return Mu(this.source,this._knownDavService)}get isDavRessource(){return this.isDavResource}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavResource&&Te.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){fe({...this._data,status:e},this._knownDavService),this._data.status=e}get data(){return structuredClone(this._data)}move(e){fe({...this._data,source:e},this._knownDavService);const n=this.basename;this._data.source=e,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename)}rename(e){if(e.includes("/"))throw new Error("Invalid basename");this.move(Te.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 Ai extends Dr{get type(){return Ti.File}clone(){return new Ai(this.data)}}class Si extends Dr{constructor(e){super({...e,mime:"httpd/unix-directory"})}get type(){return Ti.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}clone(){return new Si(this.data)}}const fp=function(t=""){let e=Vt.NONE;return t&&((t.includes("C")||t.includes("K"))&&(e|=Vt.CREATE),t.includes("G")&&(e|=Vt.READ),(t.includes("W")||t.includes("N")||t.includes("V"))&&(e|=Vt.UPDATE),t.includes("D")&&(e|=Vt.DELETE),t.includes("R")&&(e|=Vt.SHARE)),e},Fu=["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"],Uu={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},wm=function(t,e={nc:"http://nextcloud.org/ns"}){typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...Fu],window._nc_dav_namespaces={...Uu});const n={...window._nc_dav_namespaces,...e};if(window._nc_dav_properties.find(o=>o===t))return ar.warn(`${t} already registered`,{prop:t}),!1;if(t.startsWith("<")||t.split(":").length!==2)return ar.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):(ar.error(`${t} namespace unknown`,{prop:t,namespaces:n}),!1)},Ci=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...Fu]),window._nc_dav_properties.map(t=>`<${t} />`).join(" ")},$i=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...Uu}),Object.keys(window._nc_dav_namespaces).map(t=>`xmlns:${t}="${window._nc_dav_namespaces?.[t]}"`).join(" ")},Em=function(){return` ${Ci()} `},pp=function(){return` ${Ci()} 1 `},xm=function(t){return` ${Ci()} /files/${Rr()?.uid}/ infinity httpd/unix-directory 0 ${t} 100 0 `};function hp(){return di()?`/files/${Nl()}`:`/files/${Rr()?.uid}`}const zu=hp();function dp(){const t=Sl("dav");return di()?t.replace("remote.php","public.php"):t}const Gu=dp(),Om=function(t=Gu,e={}){const n=Jf(t,{headers:e});function r(o){n.setHeaders({...e,"X-Requested-With":"XMLHttpRequest",requesttoken:o??""})}return Tl(r),r(Ol()),Qf().patch("fetch",(o,i)=>{const s=i.headers;return s?.method&&(i.method=s.method,delete s.method),fetch(o,i)}),n},Tm=(t,e="/",n=zu)=>{const r=new AbortController;return new re(async(o,i,s)=>{s(()=>r.abort());try{const u=(await t.getDirectoryContents(`${n}${e}`,{signal:r.signal,details:!0,data:pp(),headers:{method:"REPORT"},includeSelf:!0})).data.filter(c=>c.filename!==e).map(c=>gp(c,n));o(u)}catch(u){i(u)}})},gp=function(t,e=zu,n=Gu){let r=Rr()?.uid;if(di())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=t.props,i=fp(o?.permissions),s=String(o?.["owner-id"]||r),u=o.fileid||0,c=new Date(Date.parse(t.lastmod)),l=new Date(Date.parse(o.creationdate)),a={id:u,source:`${n}${t.filename}`,mtime:!isNaN(c.getTime())&&c.getTime()!==0?c: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:u<0?Ni.FAILED:void 0,permissions:i,owner:s,root:e,attributes:{...t,...o,hasPreview:o?.["has-preview"]}};return delete a.attributes?.props,t.type==="file"?new Ai(a):new Si(a)},{entries:Bu,setPrototypeOf:ea,isFrozen:mp,getPrototypeOf:vp,getOwnPropertyDescriptor:yp}=Object;let{freeze:Ct,seal:Ft,create:Uo}=Object,{apply:zo,construct:Go}=typeof Reflect<"u"&&Reflect;Ct||(Ct=function(t){return t}),Ft||(Ft=function(t){return t}),zo||(zo=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?e-1:0),r=1;r1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:ur;ea&&ea(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(mp(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Op(t){for(let e=0;e/gm),Cp=Ft(/\$\{[\w\W]*/gm),$p=Ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ip=Ft(/^aria-[\-\w]+$/),Vu=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pp=Ft(/^(?:\w+script|data):/i),Lp=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wu=Ft(/^html$/i),Rp=Ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var aa=Object.freeze({__proto__:null,ARIA_ATTR:Ip,ATTR_WHITESPACE:Lp,CUSTOM_ELEMENT:Rp,DATA_ATTR:$p,DOCTYPE_NAME:Wu,ERB_EXPR:Sp,IS_ALLOWED_URI:Vu,IS_SCRIPT_OR_DATA:Pp,MUSTACHE_EXPR:Ap,TMPLIT_EXPR:Cp});const mn={element:1,text:3,progressingInstruction:7,comment:8,document:9},kp=function(){return typeof window>"u"?null:window},jp=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}},ua=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kp();const e=_=>Hu(_);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==mn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:u,Element:c,NodeFilter:l,NamedNodeMap:a=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,d=c.prototype,g=gn(d,"cloneNode"),v=gn(d,"remove"),O=gn(d,"nextSibling"),m=gn(d,"childNodes"),b=gn(d,"parentNode");if(typeof s=="function"){const _=n.createElement("template");_.content&&_.content.ownerDocument&&(n=_.content.ownerDocument)}let E,N="";const{implementation:x,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:I}=n,{importNode:L}=r;let P=ua();e.isSupported=typeof Bu=="function"&&typeof b=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:w,ERB_EXPR:y,TMPLIT_EXPR:A,DATA_ATTR:$,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:M}=aa;let{IS_ALLOWED_URI:z}=aa,j=null;const B=H({},[...ra,...yo,...bo,..._o,...oa]);let V=null;const ft=H({},[...ia,...wo,...sa,...Kn]);let q=Object.seal(Uo(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}})),Et=null,Rt=null;const Zt=Object.seal(Uo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,Ur=!0,Qi=!1,ts=!0,je=!1,Fn=!0,we=!1,zr=!1,Gr=!1,De=!1,Un=!1,zn=!1,es=!0,ns=!1;const Zc="user-content-";let Br=!0,sn=!1,Me={},Fe=null;const rs=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 os=null;const is=H({},["audio","video","img","source","image","track"]);let Vr=null;const ss=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",Bn="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Ue=Jt,Wr=!1,Hr=null;const Jc=H({},[Gn,Bn,Jt],mo);let Vn=H({},["mi","mo","mn","ms","mtext"]),Wn=H({},["annotation-xml"]);const Qc=H({},["title","style","font","a","script"]);let an=null;const tl=["application/xhtml+xml","text/html"],el="text/html";let pt=null,ze=null;const nl=n.createElement("form"),as=function(_){return _ instanceof RegExp||_ instanceof Function},qr=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ze&&ze===_)){if((!_||typeof _!="object")&&(_={}),_=ne(_),an=tl.indexOf(_.PARSER_MEDIA_TYPE)===-1?el:_.PARSER_MEDIA_TYPE,pt=an==="application/xhtml+xml"?mo:ur,j=Bt(_,"ALLOWED_TAGS")?H({},_.ALLOWED_TAGS,pt):B,V=Bt(_,"ALLOWED_ATTR")?H({},_.ALLOWED_ATTR,pt):ft,Hr=Bt(_,"ALLOWED_NAMESPACES")?H({},_.ALLOWED_NAMESPACES,mo):Jc,Vr=Bt(_,"ADD_URI_SAFE_ATTR")?H(ne(ss),_.ADD_URI_SAFE_ATTR,pt):ss,os=Bt(_,"ADD_DATA_URI_TAGS")?H(ne(is),_.ADD_DATA_URI_TAGS,pt):is,Fe=Bt(_,"FORBID_CONTENTS")?H({},_.FORBID_CONTENTS,pt):rs,Et=Bt(_,"FORBID_TAGS")?H({},_.FORBID_TAGS,pt):ne({}),Rt=Bt(_,"FORBID_ATTR")?H({},_.FORBID_ATTR,pt):ne({}),Me=Bt(_,"USE_PROFILES")?_.USE_PROFILES:!1,ke=_.ALLOW_ARIA_ATTR!==!1,Ur=_.ALLOW_DATA_ATTR!==!1,Qi=_.ALLOW_UNKNOWN_PROTOCOLS||!1,ts=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=_.SAFE_FOR_TEMPLATES||!1,Fn=_.SAFE_FOR_XML!==!1,we=_.WHOLE_DOCUMENT||!1,De=_.RETURN_DOM||!1,Un=_.RETURN_DOM_FRAGMENT||!1,zn=_.RETURN_TRUSTED_TYPE||!1,Gr=_.FORCE_BODY||!1,es=_.SANITIZE_DOM!==!1,ns=_.SANITIZE_NAMED_PROPS||!1,Br=_.KEEP_CONTENT!==!1,sn=_.IN_PLACE||!1,z=_.ALLOWED_URI_REGEXP||Vu,Ue=_.NAMESPACE||Jt,Vn=_.MATHML_TEXT_INTEGRATION_POINTS||Vn,Wn=_.HTML_INTEGRATION_POINTS||Wn,q=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&as(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&as(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(Ur=!1),Un&&(De=!0),Me&&(j=H({},oa),V=[],Me.html===!0&&(H(j,ra),H(V,ia)),Me.svg===!0&&(H(j,yo),H(V,wo),H(V,Kn)),Me.svgFilters===!0&&(H(j,bo),H(V,wo),H(V,Kn)),Me.mathMl===!0&&(H(j,_o),H(V,sa),H(V,Kn))),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?Zt.tagCheck=_.ADD_TAGS:(j===B&&(j=ne(j)),H(j,_.ADD_TAGS,pt))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?Zt.attributeCheck=_.ADD_ATTR:(V===ft&&(V=ne(V)),H(V,_.ADD_ATTR,pt))),_.ADD_URI_SAFE_ATTR&&H(Vr,_.ADD_URI_SAFE_ATTR,pt),_.FORBID_CONTENTS&&(Fe===rs&&(Fe=ne(Fe)),H(Fe,_.FORBID_CONTENTS,pt)),Br&&(j["#text"]=!0),we&&H(j,["html","head","body"]),j.table&&(H(j,["tbody"]),delete Et.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw dn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=_.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=jp(h,o)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));Ct&&Ct(_),ze=_}},us=H({},[...yo,...bo,...Tp]),cs=H({},[..._o,...Np]),rl=function(_){let D=b(_);(!D||!D.tagName)&&(D={namespaceURI:Ue,tagName:"template"});const R=ur(_.tagName),X=ur(D.tagName);return Hr[_.namespaceURI]?_.namespaceURI===Bn?D.namespaceURI===Jt?R==="svg":D.namespaceURI===Gn?R==="svg"&&(X==="annotation-xml"||Vn[X]):!!us[R]:_.namespaceURI===Gn?D.namespaceURI===Jt?R==="math":D.namespaceURI===Bn?R==="math"&&Wn[X]:!!cs[R]:_.namespaceURI===Jt?D.namespaceURI===Bn&&!Wn[X]||D.namespaceURI===Gn&&!Vn[X]?!1:!cs[R]&&(Qc[R]||!us[R]):!!(an==="application/xhtml+xml"&&Hr[_.namespaceURI]):!1},Ee=function(_){pn(e.removed,{element:_});try{b(_).removeChild(_)}catch{v(_)}},xe=function(_,D){try{pn(e.removed,{attribute:D.getAttributeNode(_),from:D})}catch{pn(e.removed,{attribute:null,from:D})}if(D.removeAttribute(_),_==="is")if(De||Un)try{Ee(D)}catch{}else try{D.setAttribute(_,"")}catch{}},ls=function(_){let D=null,R=null;if(Gr)_=""+_;else{const Q=vo(_,/^[\r\n\t ]+/);R=Q&&Q[0]}an==="application/xhtml+xml"&&Ue===Jt&&(_=''+_+"");const X=E?E.createHTML(_):_;if(Ue===Jt)try{D=new f().parseFromString(X,an)}catch{}if(!D||!D.documentElement){D=x.createDocument(Ue,"template",null);try{D.documentElement.innerHTML=Wr?N:X}catch{}}const ht=D.body||D.documentElement;return _&&R&&ht.insertBefore(n.createTextNode(R),ht.childNodes[0]||null),Ue===Jt?I.call(D,we?"html":"body")[0]:we?D.documentElement:ht},fs=function(_){return C.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Xr=function(_){return _ instanceof p&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof a)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},ps=function(_){return typeof u=="function"&&_ instanceof u};function Qt(_,D,R){Yn(_,X=>{X.call(e,D,R,ze)})}const hs=function(_){let D=null;if(Qt(P.beforeSanitizeElements,_,null),Xr(_))return Ee(_),!0;const R=pt(_.nodeName);if(Qt(P.uponSanitizeElement,_,{tagName:R,allowedTags:j}),Fn&&_.hasChildNodes()&&!ps(_.firstElementChild)&&xt(/<[/\w!]/g,_.innerHTML)&&xt(/<[/\w!]/g,_.textContent)||_.nodeType===mn.progressingInstruction||Fn&&_.nodeType===mn.comment&&xt(/<[/\w]/g,_.data))return Ee(_),!0;if(!(Zt.tagCheck instanceof Function&&Zt.tagCheck(R))&&(!j[R]||Et[R])){if(!Et[R]&&gs(R)&&(q.tagNameCheck instanceof RegExp&&xt(q.tagNameCheck,R)||q.tagNameCheck instanceof Function&&q.tagNameCheck(R)))return!1;if(Br&&!Fe[R]){const X=b(_)||_.parentNode,ht=m(_)||_.childNodes;if(ht&&X){const Q=ht.length;for(let te=Q-1;te>=0;--te){const zt=g(ht[te],!0);zt.__removalCount=(_.__removalCount||0)+1,X.insertBefore(zt,O(_))}}}return Ee(_),!0}return _ instanceof c&&!rl(_)||(R==="noscript"||R==="noembed"||R==="noframes")&&xt(/<\/no(script|embed|frames)/i,_.innerHTML)?(Ee(_),!0):(je&&_.nodeType===mn.text&&(D=_.textContent,Yn([w,y,A],X=>{D=hn(D,X," ")}),_.textContent!==D&&(pn(e.removed,{element:_.cloneNode()}),_.textContent=D)),Qt(P.afterSanitizeElements,_,null),!1)},ds=function(_,D,R){if(es&&(D==="id"||D==="name")&&(R in n||R in nl))return!1;if(!(Ur&&!Rt[D]&&xt($,D))&&!(ke&&xt(k,D))&&!(Zt.attributeCheck instanceof Function&&Zt.attributeCheck(D,_))){if(!V[D]||Rt[D]){if(!(gs(_)&&(q.tagNameCheck instanceof RegExp&&xt(q.tagNameCheck,_)||q.tagNameCheck instanceof Function&&q.tagNameCheck(_))&&(q.attributeNameCheck instanceof RegExp&&xt(q.attributeNameCheck,D)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(D,_))||D==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&xt(q.tagNameCheck,R)||q.tagNameCheck instanceof Function&&q.tagNameCheck(R))))return!1}else if(!Vr[D]&&!xt(z,hn(R,F,""))&&!((D==="src"||D==="xlink:href"||D==="href")&&_!=="script"&&wp(R,"data:")===0&&os[_])&&!(Qi&&!xt(U,hn(R,F,"")))&&R)return!1}return!0},gs=function(_){return _!=="annotation-xml"&&vo(_,M)},ms=function(_){Qt(P.beforeSanitizeAttributes,_,null);const{attributes:D}=_;if(!D||Xr(_))return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let X=D.length;for(;X--;){const ht=D[X],{name:Q,namespaceURI:te,value:zt}=ht,Gt=pt(Q),Yr=zt;let dt=Q==="value"?Yr:Ep(Yr);if(R.attrName=Gt,R.attrValue=dt,R.keepAttr=!0,R.forceKeepAttr=void 0,Qt(P.uponSanitizeAttribute,_,R),dt=R.attrValue,ns&&(Gt==="id"||Gt==="name")&&(xe(Q,_),dt=Zc+dt),Fn&&xt(/((--!?|])>)|<\/(style|title|textarea)/i,dt)){xe(Q,_);continue}if(Gt==="attributename"&&vo(dt,"href")){xe(Q,_);continue}if(R.forceKeepAttr)continue;if(!R.keepAttr){xe(Q,_);continue}if(!ts&&xt(/\/>/i,dt)){xe(Q,_);continue}je&&Yn([w,y,A],il=>{dt=hn(dt,il," ")});const vs=pt(_.nodeName);if(!ds(vs,Gt,dt)){xe(Q,_);continue}if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!te)switch(h.getAttributeType(vs,Gt)){case"TrustedHTML":{dt=E.createHTML(dt);break}case"TrustedScriptURL":{dt=E.createScriptURL(dt);break}}if(dt!==Yr)try{te?_.setAttributeNS(te,Q,dt):_.setAttribute(Q,dt),Xr(_)?Ee(_):na(e.removed)}catch{xe(Q,_)}}Qt(P.afterSanitizeAttributes,_,null)},ol=function _(D){let R=null;const X=fs(D);for(Qt(P.beforeSanitizeShadowDOM,D,null);R=X.nextNode();)Qt(P.uponSanitizeShadowNode,R,null),hs(R),ms(R),R.content instanceof i&&_(R.content);Qt(P.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(_){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=null,X=null,ht=null,Q=null;if(Wr=!_,Wr&&(_=""),typeof _!="string"&&!ps(_))if(typeof _.toString=="function"){if(_=_.toString(),typeof _!="string")throw dn("dirty is not a string, aborting")}else throw dn("toString is not a function");if(!e.isSupported)return _;if(zr||qr(D),e.removed=[],typeof _=="string"&&(sn=!1),sn){if(_.nodeName){const Gt=pt(_.nodeName);if(!j[Gt]||Et[Gt])throw dn("root node is forbidden and cannot be sanitized in-place")}}else if(_ instanceof u)R=ls(""),X=R.ownerDocument.importNode(_,!0),X.nodeType===mn.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?R=X:R.appendChild(X);else{if(!De&&!je&&!we&&_.indexOf("<")===-1)return E&&zn?E.createHTML(_):_;if(R=ls(_),!R)return De?null:zn?N:""}R&&Gr&&Ee(R.firstChild);const te=fs(sn?_:R);for(;ht=te.nextNode();)hs(ht),ms(ht),ht.content instanceof i&&ol(ht.content);if(sn)return _;if(De){if(Un)for(Q=T.call(R.ownerDocument);R.firstChild;)Q.appendChild(R.firstChild);else Q=R;return(V.shadowroot||V.shadowrootmode)&&(Q=L.call(r,Q,!0)),Q}let zt=we?R.outerHTML:R.innerHTML;return we&&j["!doctype"]&&R.ownerDocument&&R.ownerDocument.doctype&&R.ownerDocument.doctype.name&&xt(Wu,R.ownerDocument.doctype.name)&&(zt=" `+zt),je&&Yn([w,y,A],Gt=>{zt=hn(zt,Gt," ")}),E&&zn?E.createHTML(zt):zt},e.setConfig=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(_),zr=!0},e.clearConfig=function(){ze=null,zr=!1},e.isValidAttribute=function(_,D,R){ze||qr({});const X=pt(_),ht=pt(D);return ds(X,ht,R)},e.addHook=function(_,D){typeof D=="function"&&pn(P[_],D)},e.removeHook=function(_,D){if(D!==void 0){const R=bp(P[_],D);return R===-1?void 0:_p(P[_],R,1)[0]}return na(P[_])},e.removeHooks=function(_){P[_]=[]},e.removeAllHooks=function(){P=ua()},e}var Dp=Hu(),Eo,ca;function Mp(){if(ca)return Eo;ca=1;var t=/["'&<>]/;Eo=e;function e(n){var r=""+n,o=t.exec(r);if(!o)return r;var i,s="",u=0,c=0;for(u=o.index;ue)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function xo(t,e,n,r,o){const i=typeof n=="object"?n:void 0,s=typeof r=="number"?r:typeof n=="number"?n:void 0,u={escape:!0,sanitize:!0,...typeof o=="object"?o:typeof r=="object"?r:{}},c=d=>d,l=(u.sanitize?Dp.sanitize:c)||c,a=u.escape?la:c,p=d=>typeof d=="string"||typeof d=="number",f=(d,g,v)=>d.replace(/%n/g,""+v).replace(/{([^{}]*)}/g,(O,m)=>{if(g===void 0||!(m in g))return a(O);const b=g[m];return p(b)?a(`${b}`):typeof b=="object"&&p(b.value)?(b.escape!==!1?la:c)(`${b.value}`):a(O)});let h=(o?.bundle??Xu(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 Sm(t,e,n,r,o,i){const s="_"+e+"_::_"+n+"_",u=i?.bundle??Xu(t),c=u.translations[s];if(typeof c<"u"){const l=c;if(Array.isArray(l)){const a=u.pluralFunction(r);return xo(t,l[a],o,r,i)}}return r===1?xo(t,e,o,r,i):xo(t,n,o,r,i)}function Cm(t,e=qu()){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 zp={},yt=Object.freeze({}),W=Array.isArray;function G(t){return t==null}function S(t){return t!=null}function tt(t){return t===!0}function Gp(t){return t===!1}function Ln(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function Y(t){return typeof t=="function"}function wt(t){return t!==null&&typeof t=="object"}var Ii=Object.prototype.toString;function It(t){return Ii.call(t)==="[object Object]"}function Bp(t){return Ii.call(t)==="[object RegExp]"}function Yu(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function Bo(t){return S(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function Vp(t){return t==null?"":Array.isArray(t)||It(t)&&t.toString===Ii?JSON.stringify(t,Wp,2):String(t)}function Wp(t,e){return e&&e.__v_isRef?e.value:e}function Nn(t){var e=parseFloat(t);return isNaN(e)?t:e}function Ht(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(r,1)}}var qp=Object.prototype.hasOwnProperty;function St(t,e){return qp.call(t,e)}function Re(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var Xp=/-(\w)/g,Ce=Re(function(t){return t.replace(Xp,function(e,n){return n?n.toUpperCase():""})}),Yp=Re(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Kp=/\B([A-Z])/g,Rn=Re(function(t){return t.replace(Kp,"-$1").toLowerCase()});function Zp(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 Jp(t,e){return t.bind(e)}var Ku=Function.prototype.bind?Jp:Zp;function Vo(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 Zu(t){for(var e={},n=0;n0,nc=Ut&&Ut.indexOf("edge/")>0;Ut&&Ut.indexOf("android")>0;var rh=Ut&&/iphone|ipad|ipod|ios/.test(Ut),pa=Ut&&Ut.match(/firefox\/(\d+)/),Ho={}.watch,rc=!1;if(Pt)try{var ha={};Object.defineProperty(ha,"passive",{get:function(){rc=!0}}),window.addEventListener("test-passive",null,ha)}catch{}var Jn,_e=function(){return Jn===void 0&&(!Pt&&typeof Ve<"u"?Jn=Ve.process&&zp.VUE_ENV==="server":Jn=!1),Jn},Or=Pt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Je(t){return typeof t=="function"&&/native code/.test(t.toString())}var kn=typeof Symbol<"u"&&Je(Symbol)&&typeof Reflect<"u"&&Je(Reflect.ownKeys),An;typeof Set<"u"&&Je(Set)?An=Set:An=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 at=null;function $m(){return at&&{proxy:at}}function me(t){t===void 0&&(t=null),t||at&&at._scope.off(),at=t,t&&t._scope.on()}var Lt=function(){function t(e,n,r,o,i,s,u,c){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=u,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=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),Qe=function(t){t===void 0&&(t="");var e=new Lt;return e.text=t,e.isComment=!0,e};function qe(t){return new Lt(void 0,void 0,void 0,String(t))}function qo(t){var e=new Lt(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 oh=0,cr=[],ih=function(){for(var t=0;t1)return n&&Y(e)?e.call(r):e}}var ba=Re(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 Ko(t,e){function n(){var r=n.fns;if(W(r))for(var o=r.slice(),i=0;i0&&(o=dc(o,"".concat(e||"","_").concat(r)),vn(o[0])&&vn(s)&&(n[i]=qe(s.text+o[0].text),o.shift()),n.push.apply(n,o)):Ln(o)?vn(s)?n[i]=qe(s.text+o):o!==""&&n.push(qe(o)):vn(o)&&vn(s)?n[i]=qe(s.text+o.text):(tt(t._isVList)&&S(o.tag)&&G(o.key)&&S(e)&&(o.key="__vlist".concat(e,"_").concat(r,"__")),n.push(o)));return n}function _h(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;r0,s=e?!!e.$stable:!i,u=e&&e.$key;if(!e)o={};else{if(e._normalized)return e._normalized;if(s&&r&&r!==yt&&u===r.$key&&!i&&!r.$hasNormal)return r;o={};for(var c in e)e[c]&&c[0]!=="$"&&(o[c]=Ih(t,n,c,e[c]))}for(var l in n)l in o||(o[l]=Ph(n,l));return e&&Object.isExtensible(e)&&(e._normalized=o),ot(o,"$stable",s),ot(o,"$key",u),ot(o,"$hasNormal",i),o}function Ih(t,e,n,r){var o=function(){var i=at;me(t);var s=arguments.length?r.apply(null,arguments):r({});s=s&&typeof s=="object"&&!W(s)?[s]:ki(s);var u=s&&s[0];return me(i),s&&(!u||s.length===1&&u.isComment&&!Sn(u))?void 0:s};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function Ph(t,e){return function(){return t[e]}}function Lh(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=yc(t);me(t),rn();var o=le(n,null,[t._props||uc({}),r],t,"setup");if(on(),me(),Y(o))e.render=o;else if(wt(o))if(t._setupState=o,o.__sfc){var i=t._setupProxy={};for(var s in o)s!=="__sfc"&&Yo(i,o,s)}else for(var s in o)ec(s)||Yo(t,o,s)}}function yc(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};ot(e,"_v_attr_proxy",!0),Nr(e,t.$attrs,yt,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Nr(e,t.$listeners,yt,t,"$listeners")}return t._listenersProxy},get slots(){return kh(t)},emit:Ku(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return Yo(t,e,n)})}}}function Nr(t,e,n,r,o){var i=!1;for(var s in e)s in t?e[s]!==n[s]&&(i=!0):(i=!0,Rh(t,s,r,o));for(var s in t)s in e||(i=!0,delete t[s]);return i}function Rh(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function kh(t){return t._slotsProxy||bc(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function bc(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function Wm(){return jh().slots}function jh(){var t=at;return t._setupContext||(t._setupContext=yc(t))}function Dh(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=ji(e._renderChildren,r),t.$scopedSlots=n?On(t.$parent,n.data.scopedSlots,t.$slots):yt,t._c=function(i,s,u,c){return Ar(t,i,s,u,c,!1)},t.$createElement=function(i,s,u,c){return Ar(t,i,s,u,c,!0)};var o=n&&n.data;ye(t,"$attrs",o&&o.attrs||yt,null,!0),ye(t,"$listeners",e._parentListeners||yt,null,!0)}var pr=null;function Mh(t){vc(t.prototype),t.prototype.$nextTick=function(e){return Di(e,this)},t.prototype._render=function(){var e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=On(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&bc(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;var i=at,s=pr,u;try{me(e),pr=e,u=r.call(e._renderProxy,e.$createElement)}catch(c){Ie(c,e,"render"),u=e._vnode}finally{pr=s,me(i)}return W(u)&&u.length===1&&(u=u[0]),u instanceof Lt||(u=Qe()),u.parent=o,u}}function Oo(t,e){return(t.__esModule||kn&&t[Symbol.toStringTag]==="Module")&&(t=t.default),wt(t)?e.extend(t):t}function Fh(t,e,n,r,o){var i=Qe();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function Uh(t,e){if(tt(t.error)&&S(t.errorComp))return t.errorComp;if(S(t.resolved))return t.resolved;var n=pr;if(n&&S(t.owners)&&t.owners.indexOf(n)===-1&&t.owners.push(n),tt(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 be(r,n)});var u=function(p){for(var f=0,h=r.length;f1?Vo(o):o;for(var i=Vo(arguments,1),s='event handler for "'.concat(n,'"'),u=0,c=o.length;udocument.createEvent("Event").timeStamp&&(ei=function(){return To.now()})}var id=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function sd(){Ac=ei(),zi=!0;var t,e;for(se.sort(id),Xe=0;XeXe&&se[n].id>t.id;)n--;se.splice(n+1,0,t)}ti||(ti=!0,Di(sd))}}function ld(t){var e=t.$options.provide;if(e){var n=Y(e)?e.call(t):e;if(!wt(n))return;for(var r=pc(t),o=kn?Reflect.ownKeys(n):Object.keys(n),i=0;i-1){if(i&&!St(o,"default"))s=!1;else if(s===""||s===Rn(t)){var c=La(String,o.type);(c<0||u-1)return this;var r=Vo(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 Ud(t){t.mixin=function(e){return this.options=Pe(this.options,e),this}}function zd(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=Cr(n)||Cr(r.options),u=function(c){this._init(c)};return u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.cid=e++,u.options=Pe(r.options,n),u.super=r,u.options.props&&Gd(u),u.options.computed&&Bd(u),u.extend=r.extend,u.mixin=r.mixin,u.use=r.use,Mr.forEach(function(c){u[c]=r[c]}),s&&(u.options.components[s]=u),u.superOptions=r.options,u.extendOptions=n,u.sealedOptions=Z({},u.options),i[o]=u,u}}function Gd(t){var e=t.options.props;for(var n in e)Wi(t.prototype,"_props",n)}function Bd(t){var e=t.options.computed;for(var n in e)$c(t.prototype,n,e[n])}function Vd(t){Mr.forEach(function(e){t[e]=function(n,r){return r?(e==="component"&&It(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 ja(t){return t&&(Cr(t.Ctor.options)||t.tag)}function er(t,e){return W(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:Bp(t)?t.test(e):!1}function Da(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var s in n){var u=n[s];if(u){var c=u.name;c&&!e(c)&&ii(n,s,r,o)}}i.componentOptions.children=void 0}function ii(t,e,n,r){var o=t[e];o&&(!r||o.tag!==r.tag)&&o.componentInstance.$destroy(),t[e]=null,be(n,e)}var Ma=[String,RegExp,Array],Wd={name:"keep-alive",abstract:!0,props:{include:Ma,exclude:Ma,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,u=r.componentOptions;e[o]={name:ja(u),tag:i,componentInstance:s},n.push(o),this.max&&n.length>parseInt(this.max)&&ii(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)ii(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Da(t,function(n){return er(e,n)})}),this.$watch("exclude",function(e){Da(t,function(n){return!er(e,n)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=_c(t),n=e&&e.componentOptions;if(n){var r=ja(n),o=this,i=o.include,s=o.exclude;if(i&&(!r||!er(i,r))||s&&r&&er(s,r))return e;var u=this,c=u.cache,l=u.keys,a=e.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;c[a]?(e.componentInstance=c[a].componentInstance,be(l,a),l.push(a)):(this.vnodeToCache=e,this.keyToCache=a),e.data.keepAlive=!0}return e||t&&t[0]}},Hd={KeepAlive:Wd};function qd(t){var e={};e.get=function(){return Mt},Object.defineProperty(t,"config",e),t.util={warn:vd,extend:Z,mergeOptions:Pe,defineReactive:ye},t.set=Li,t.delete=sc,t.nextTick=Di,t.observable=function(n){return ce(n),n},t.options=Object.create(null),Mr.forEach(function(n){t.options[n+"s"]=Object.create(null)}),t.options._base=t,Z(t.options.components,Hd),Fd(t),Ud(t),zd(t),Vd(t)}qd(st),Object.defineProperty(st.prototype,"$isServer",{get:_e}),Object.defineProperty(st.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(st,"FunctionalRenderContext",{value:Gi}),st.version=qh;var Xd=Ht("style,class"),Yd=Ht("input,textarea,option,select,progress"),Kd=function(t,e,n){return n==="value"&&Yd(t)&&e!=="button"||n==="selected"&&t==="option"||n==="checked"&&t==="input"||n==="muted"&&t==="video"},Ic=Ht("contenteditable,draggable,spellcheck"),Zd=Ht("events,caret,typing,plaintext-only"),Jd=function(t,e){return Ir(e)||e==="false"?"false":t==="contenteditable"&&Zd(e)?e:"true"},Qd=Ht("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"),si="http://www.w3.org/1999/xlink",qi=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},Pc=function(t){return qi(t)?t.slice(6,t.length):""},Ir=function(t){return t==null||t===!1};function tg(t){for(var e=t.data,n=t,r=t;S(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=Fa(r.data,e));for(;S(n=n.parent);)n&&n.data&&(e=Fa(e,n.data));return eg(e.staticClass,e.class)}function Fa(t,e){return{staticClass:Xi(t.staticClass,e.staticClass),class:S(t.class)?[t.class,e.class]:e.class}}function eg(t,e){return S(t)||S(e)?Xi(t,Yi(e)):""}function Xi(t,e){return t?e?t+" "+e:t:e||""}function Yi(t){return Array.isArray(t)?ng(t):wt(t)?rg(t):typeof t=="string"?t:""}function ng(t){for(var e="",n,r=0,o=t.length;r-1?nr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:nr[t]=/HTMLUnknownElement/.test(e.toString())}var ai=Ht("text,number,password,search,email,tel,url");function ug(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function cg(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 lg(t,e){return document.createElementNS(og[t],e)}function fg(t){return document.createTextNode(t)}function pg(t){return document.createComment(t)}function hg(t,e,n){t.insertBefore(e,n)}function dg(t,e){t.removeChild(e)}function gg(t,e){t.appendChild(e)}function mg(t){return t.parentNode}function vg(t){return t.nextSibling}function yg(t){return t.tagName}function bg(t,e){t.textContent=e}function _g(t,e){t.setAttribute(e,"")}var wg=Object.freeze({__proto__:null,createElement:cg,createElementNS:lg,createTextNode:fg,createComment:pg,insertBefore:hg,removeChild:dg,appendChild:gg,parentNode:mg,nextSibling:vg,tagName:yg,setTextContent:bg,setStyleScope:_g}),Eg={create:function(t,e){Ye(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ye(t,!0),Ye(e))},destroy:function(t){Ye(t,!0)}};function Ye(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)){le(n,r,[i],r,"template ref function");return}var u=t.data.refInFor,c=typeof n=="string"||typeof n=="number",l=_t(n),a=r.$refs;if(c||l){if(u){var p=c?a[n]:n.value;e?W(p)&&be(p,o):W(p)?p.includes(o)||p.push(o):c?(a[n]=[o],Ua(r,n,a[n])):n.value=[o]}else if(c){if(e&&a[n]!==o)return;a[n]=s,Ua(r,n,i)}else if(l){if(e&&n.value!==o)return;n.value=i}}}}function Ua(t,e,n){var r=t._setupState;r&&St(r,e)&&(_t(r[e])?r[e].value=n:r[e]=n)}var ge=new Lt("",{},[]),yn=["create","activate","update","remove","destroy"];function Oe(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)&&xg(t,e)||tt(t.isAsyncPlaceholder)&&G(e.asyncFactory.error))}function xg(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||ai(r)&&ai(o)}function Og(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 Tg(t){var e,n,r={},o=t.modules,i=t.nodeOps;for(e=0;eM?(Zt=G(A[B+1])?null:A[B+1].elm,m(w,Zt,A,F,B,$)):F>B&&E(y,U,M)}function C(w,y,A,$){for(var k=A;k<$;k++){var U=y[k];if(S(U)&&Oe(w,U))return k}}function T(w,y,A,$,k,U){if(w!==y){S(y.elm)&&S($)&&(y=$[k]=qo(y));var F=y.elm=w.elm;if(tt(w.isAsyncPlaceholder)){S(y.asyncFactory.resolved)?P(w.elm,y,A):y.isAsyncPlaceholder=!0;return}if(tt(y.isStatic)&&tt(w.isStatic)&&y.key===w.key&&(tt(y.isCloned)||tt(y.isOnce))){y.componentInstance=w.componentInstance;return}var M,z=y.data;S(z)&&S(M=z.hook)&&S(M=M.prepatch)&&M(w,y);var j=w.children,B=y.children;if(S(z)&&g(y)){for(M=0;M-1?Va(t,e,n):Qd(e)?Ir(n)?t.removeAttribute(e):(n=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,n)):Ic(e)?t.setAttribute(e,Jd(e,n)):qi(e)?Ir(n)?t.removeAttributeNS(si,Pc(e)):t.setAttributeNS(si,e,n):Va(t,e,n)}function Va(t,e,n){if(Ir(n))t.removeAttribute(e);else{if(en&&!nn&&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 Ig={create:Ga,update:Ga};function Wa(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=tg(e),s=n._transitionClasses;S(s)&&(i=Xi(i,Yi(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}var Pg={create:Wa,update:Wa},Ao="__r",So="__c";function Lg(t){if(S(t[Ao])){var e=en?"change":"input";t[e]=[].concat(t[Ao],t[e]||[]),delete t[Ao]}S(t[So])&&(t.change=[].concat(t[So],t.change||[]),delete t[So])}var In;function Rg(t,e,n){var r=In;return function o(){var i=e.apply(null,arguments);i!==null&&Rc(t,o,n,r)}}var kg=Zo&&!(pa&&Number(pa[1])<=53);function jg(t,e,n,r){if(kg){var o=Ac,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)}}In.addEventListener(t,e,rc?{capture:n,passive:r}:n)}function Rc(t,e,n,r){(r||In).removeEventListener(t,e._wrapper||e,n)}function Co(t,e){if(!(G(t.data.on)&&G(e.data.on))){var n=e.data.on||{},r=t.data.on||{};In=e.elm||t.elm,Lg(n),hc(n,r,jg,Rc,Rg,e.context),In=void 0}}var Dg={create:Co,update:Co,destroy:function(t){return Co(t,ge)}},rr;function Ha(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__)||tt(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 u=G(r)?"":String(r);Mg(o,u)&&(o.value=u)}else if(n==="innerHTML"&&Ki(o.tagName)&&G(o.innerHTML)){rr=rr||document.createElement("div"),rr.innerHTML="".concat(r,"");for(var c=rr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(r!==i[n])try{o[n]=r}catch{}}}}function Mg(t,e){return!t.composing&&(t.tagName==="OPTION"||Fg(t,e)||Ug(t,e))}function Fg(t,e){var n=!0;try{n=document.activeElement!==t}catch{}return n&&t.value!==e}function Ug(t,e){var n=t.value,r=t._vModifiers;if(S(r)){if(r.number)return Nn(n)!==Nn(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var zg={create:Ha,update:Ha},Gg=Re(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 $o(t){var e=kc(t.style);return t.staticStyle?Z(t.staticStyle,e):e}function kc(t){return Array.isArray(t)?Zu(t):typeof t=="string"?Gg(t):t}function Bg(t,e){for(var n={},r,o=t;o.componentInstance;)o=o.componentInstance._vnode,o&&o.data&&(r=$o(o.data))&&Z(n,r);(r=$o(t.data))&&Z(n,r);for(var i=t;i=i.parent;)i.data&&(r=$o(i.data))&&Z(n,r);return n}var Vg=/^--/,qa=/\s*!important$/,Xa=function(t,e,n){if(Vg.test(e))t.style.setProperty(e,n);else if(qa.test(n))t.style.setProperty(Rn(e),n.replace(qa,""),"important");else{var r=Wg(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(jc).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 Mc(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(jc).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 Fc(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&Z(e,Za(t.name||"v")),Z(e,t),e}else if(typeof t=="string")return Za(t)}}var Za=Re(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")}}),Uc=Pt&&!nn,Be="transition",Io="animation",dr="transition",Pr="transitionend",ui="animation",zc="animationend";Uc&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(dr="WebkitTransition",Pr="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(ui="WebkitAnimation",zc="webkitAnimationEnd"));var Ja=Pt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Gc(t){Ja(function(){Ja(t)})}function Se(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Dc(t,e))}function ae(t,e){t._transitionClasses&&be(t._transitionClasses,e),Mc(t,e)}function Bc(t,e,n){var r=Vc(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var u=o===Be?Pr:zc,c=0,l=function(){t.removeEventListener(u,a),n()},a=function(p){p.target===t&&++c>=s&&l()};setTimeout(function(){c0&&(l=Be,a=i,p=o.length):e===Io?c>0&&(l=Io,a=c,p=u.length):(a=Math.max(i,c),l=a>0?i>c?Be:Io:null,p=l?l===Be?o.length:u.length:0);var f=l===Be&&qg.test(n[dr+"Property"]);return{type:l,timeout:a,propCount:p,hasTransform:f}}function Qa(t,e){for(;t.length1}function eu(t,e){e.data.show!==!0&&ci(e)}var Xg=Pt?{create:eu,activate:eu,remove:function(t,e){t.data.show!==!0?Wc(t,e):e()}}:{},Yg=[Ig,Pg,Dg,zg,Hg,Xg],Kg=Yg.concat($g),Zg=Tg({nodeOps:wg,modules:Kg});nn&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Ji(t,"input")});var qc={inserted:function(t,e,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?de(n,"postpatch",function(){qc.componentUpdated(t,e,n)}):nu(t,e,n.context),t._vOptions=[].map.call(t.options,Lr)):(n.tag==="textarea"||ai(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Jg),t.addEventListener("compositionend",iu),t.addEventListener("change",iu),nn&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if(n.tag==="select"){nu(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Lr);if(o.some(function(s,u){return!$e(s,r[u])})){var i=t.multiple?e.value.some(function(s){return ou(s,o)}):e.value!==e.oldValue&&ou(e.value,o);i&&Ji(t,"change")}}}};function nu(t,e,n){ru(t,e),(en||nc)&&setTimeout(function(){ru(t,e)},0)}function ru(t,e,n){var r=e.value,o=t.multiple;if(!(o&&!Array.isArray(r))){for(var i,s,u=0,c=t.options.length;u-1,s.selected!==i&&(s.selected=i);else if($e(Lr(s),r)){t.selectedIndex!==u&&(t.selectedIndex=u);return}o||(t.selectedIndex=-1)}}function ou(t,e){return e.every(function(n){return!$e(n,t)})}function Lr(t){return"_value"in t?t._value:t.value}function Jg(t){t.target.composing=!0}function iu(t){t.target.composing&&(t.target.composing=!1,Ji(t.target,"input"))}function Ji(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function li(t){return t.componentInstance&&(!t.data||!t.data.transition)?li(t.componentInstance._vnode):t}var Qg={bind:function(t,e,n){var r=e.value;n=li(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;r&&o?(n.data.show=!0,ci(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=li(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?ci(n,function(){t.style.display=t.__vOriginalDisplay}):Wc(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)}},tm={model:qc,show:Qg},Xc={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 fi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?fi(_c(e.children)):t}function Yc(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[Ce(r)]=o[r];return e}function su(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function em(t){for(;t=t.parent;)if(t.data.transition)return!0}function nm(t,e){return e.key===t.key&&e.tag===t.tag}var rm=function(t){return t.tag||Sn(t)},om=function(t){return t.name==="show"},im={name:"transition",props:Xc,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(rm),!!n.length)){var r=this.mode,o=n[0];if(em(this.$vnode))return o;var i=fi(o);if(!i)return o;if(this._leaving)return su(t,o);var s="__transition-".concat(this._uid,"-");i.key=i.key==null?i.isComment?s+"comment":s+i.tag:Ln(i.key)?String(i.key).indexOf(s)===0?i.key:s+i.key:i.key;var u=(i.data||(i.data={})).transition=Yc(this),c=this._vnode,l=fi(c);if(i.data.directives&&i.data.directives.some(om)&&(i.data.show=!0),l&&l.data&&!nm(i,l)&&!Sn(l)&&!(l.componentInstance&&l.componentInstance._vnode.isComment)){var a=l.data.transition=Z({},u);if(r==="out-in")return this._leaving=!0,de(a,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),su(t,o);if(r==="in-out"){if(Sn(i))return c;var p,f=function(){p()};de(u,"afterEnter",f),de(u,"enterCancelled",f),de(a,"delayLeave",function(h){p=h})}}return o}}},Kc=Z({tag:String,moveClass:String},Xc);delete Kc.mode;var sm={props:Kc,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Oc(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=Yc(this),u=0;u0){let i=function(l){return Promise.all(l.map(a=>Promise.resolve(a).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");r=i(e.map(l=>{if(l=pm(l,n),l in au)return;au[l]=!0;const a=l.endsWith(".css"),p=a?'[rel="stylesheet"]':"";if(n)for(let h=s.length-1;h>=0;h--){const d=s[h];if(d.href===l&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${p}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":fm,a||(f.as="script"),f.crossOrigin="",f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),a)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};export{Dm as $,Ve as A,mu as B,mm as C,hm as D,di as E,Ti as F,Si as G,Gu as H,up as I,Om as J,Te as K,lp as L,bm as M,vu as N,Nl as O,Vt as P,km as Q,Rm as R,gm as S,Tm as T,Sl as U,st as V,Di as W,re as X,xm as Y,Em as Z,Qm as _,zu as a,Li as a0,Im as a1,Pm as a2,zm as a3,_t as a4,fr as a5,uh as a6,vh as a7,Gm as a8,Cm as a9,Up as aa,Ze as ab,ar as ac,fp as ad,Bm as ae,Km as af,Wm as ag,Hm as ah,xl as ai,Am as aj,jm as ak,gi as al,Dp as am,Ol as an,Tl as ao,dp as ap,hp as aq,Ci as ar,ym as as,Xm as b,Mm as c,Jm as d,ch as e,Sm as f,$m as g,wm as h,Lm as i,_m as j,vm as k,Nm as l,qu as m,Fm as n,Zm as o,fh as p,Rr as q,gp as r,wl as s,xo as t,dm as u,pi as v,Um as w,Vm as x,Ym as y,qm as z}; //# sourceMappingURL=preload-helper-DadE4qT2.chunk.mjs.map