f7cloud_client/apps/groupfolders/js/groupfolders-init.js
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

3 lines
233 KiB
JavaScript
Raw Permalink Blame History

/*! For license information please see groupfolders-init.js.LICENSE.txt */
(()=>{var t={5950:(t,e,r)=>{"use strict";const n=r(2322),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(6692),{safeRe:s,t:a}=r(5208),u=r(9901),{compareIdentifiers:c}=r(3229);class l{constructor(t,e){if(e=u(e),t instanceof l){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<o)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof l||(t=new l(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e,r){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=l},8064:(t,e,r)=>{"use strict";const n=r(5950);t.exports=(t,e)=>new n(t,e).major},8690:(t,e,r)=>{"use strict";const n=r(5950);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},8711:(t,e,r)=>{"use strict";const n=r(8690);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},6692:t=>{"use strict";const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2322:(t,e,r)=>{"use strict";var n=r(5606);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=i},3229:t=>{"use strict";const e=/^[0-9]+$/,r=(t,r)=>{if("number"==typeof t&&"number"==typeof r)return t===r?0:t<r?-1:1;const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},9901:t=>{"use strict";const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},5208:(t,e,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(6692),s=r(2322),a=(e=t.exports={}).re=[],u=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],h=e.t={};let f=0;const p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[p,i]],g=(t,e,r)=>{const n=(t=>{for(const[e,r]of d)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=f++;s(t,i,e),h[t]=i,c[i]=e,l[i]=n,a[i]=new RegExp(e,r?"g":void 0),u[i]=new RegExp(n,r?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[h.NONNUMERICIDENTIFIER]}|${c[h.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NONNUMERICIDENTIFIER]}|${c[h.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),g("FULL",`^${c[h.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),g("LOOSE",`^${c[h.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),g("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${c[h.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[h.COERCEPLAIN]+`(?:${c[h.PRERELEASE]})?`+`(?:${c[h.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[h.COERCE],!0),g("COERCERTLFULL",c[h.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],u=o[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),l=0,h=u>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287:(t,e,r)=>{"use strict";var n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50;var s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|g(t,e),n=a(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(B(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(B(t,SharedArrayBuffer)||t&&B(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||G(t.length)?a(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|d(t))}function f(t){for(var e=t.length<0?0:0|d(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function d(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(t).length;default:if(i)return n?-1:j(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return L(this,e,r);case"base64":return I(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function E(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(G(a))return s;t[r+s]=a}return s}function b(t,e,r,n){return F(j(e,t.length-r),t,r,n)}function T(t,e,r,n){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function N(t,e,r,n){return F(M(e),t,r,n)}function A(t,e,r,n){return F(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function I(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_));return r}(n)}e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(B(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(B(o,Uint8Array))i+o.length>n.length?u.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?O(this,0,t):m.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),h=0;h<a;++h)if(c[h]!==l[h]){o=c[h],s=l[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return E(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return E(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return N(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function x(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function L(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=V[t[o]];return i}function R(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(t,e,r,n,o){return e=+e,r>>>=0,o||D(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,o){return e=+e,r>>>=0,o||D(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||C(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return $(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return $(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:u.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var k=/[^+/0-9A-Za-z-_]/g;function j(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function M(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function G(t){return t!=t}var V=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},6117:function(t,e){var r,n,i;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[e],r=function(t){"use strict";function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function n(t){var e=a();return function(){var r,n=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}function i(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e,r){y(t,e),e.set(t,r)}function y(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(t,e){return v(t,b(t,e,"get"))}function v(t,e){return e.get?e.get.call(t):e.value}function w(t,e,r){return T(t,b(t,e,"set"),r),r}function b(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function T(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}Object.defineProperty(t,"__esModule",{value:!0}),t.CancelablePromise=void 0,t.cancelable=L,t.default=void 0,t.isCancelablePromise=S;var N="undefined"!=typeof Symbol?Symbol.toStringTag:"@@toStringTag",A=new WeakMap,I=new WeakMap,O=function(){function t(e){var r=e.executor,n=void 0===r?function(){}:r,i=e.internals,o=void 0===i?D():i,s=e.promise,a=void 0===s?new Promise((function(t,e){return n(t,e,(function(t){o.onCancelList.push(t)}))})):s;f(this,t),m(this,A,{writable:!0,value:void 0}),m(this,I,{writable:!0,value:void 0}),g(this,N,"CancelablePromise"),this.cancel=this.cancel.bind(this),w(this,A,o),w(this,I,a||new Promise((function(t,e){return n(t,e,(function(t){o.onCancelList.push(t)}))})))}return d(t,[{key:"then",value:function(t,e){return C(E(this,I).then(R(t,E(this,A)),R(e,E(this,A))),E(this,A))}},{key:"catch",value:function(t){return C(E(this,I).catch(R(t,E(this,A))),E(this,A))}},{key:"finally",value:function(t,e){var r=this;return e&&E(this,A).onCancelList.push(t),C(E(this,I).finally(R((function(){if(t)return e&&(E(r,A).onCancelList=E(r,A).onCancelList.filter((function(e){return e!==t}))),t()}),E(this,A))),E(this,A))}},{key:"cancel",value:function(){E(this,A).isCanceled=!0;var t=E(this,A).onCancelList;E(this,A).onCancelList=[];var e,r=c(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;if("function"==typeof n)try{n()}catch(t){console.error(t)}}}catch(t){r.e(t)}finally{r.f()}}},{key:"isCanceled",value:function(){return!0===E(this,A).isCanceled}}]),t}(),_=function(t){e(i,t);var r=n(i);function i(t){return f(this,i),r.call(this,{executor:t})}return d(i)}(O);t.CancelablePromise=_,g(_,"all",(function(t){return P(t,Promise.all(t))})),g(_,"allSettled",(function(t){return P(t,Promise.allSettled(t))})),g(_,"any",(function(t){return P(t,Promise.any(t))})),g(_,"race",(function(t){return P(t,Promise.race(t))})),g(_,"resolve",(function(t){return L(Promise.resolve(t))})),g(_,"reject",(function(t){return L(Promise.reject(t))})),g(_,"isCancelable",S);var x=_;function L(t){return C(t,D())}function S(t){return t instanceof _||t instanceof O}function R(t,e){if(t)return function(r){if(!e.isCanceled){var n=t(r);return S(n)&&e.onCancelList.push(n.cancel),n}return r}}function C(t,e){return new O({internals:e,promise:t})}function P(t,e){var r=D();return r.onCancelList.push((function(){var e,r=c(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;S(n)&&n.cancel()}}catch(t){r.e(t)}finally{r.f()}})),new O({internals:r,promise:e})}function D(){return{isCanceled:!1,onCancelList:[]}}t.default=x},void 0===(i="function"==typeof r?r.apply(e,n):r)||(t.exports=i)},580:t=>{"use strict";var e=/["'&<>]/;t.exports=function(t){var r,n=""+t,i=e.exec(n);if(!i)return n;var o="",s=0,a=0;for(s=i.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==s&&(o+=n.substring(a,s)),a=s+1,o+=r}return a!==s?o+n.substring(a,s):o}},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*g}},5606:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,u=[],c=!1,l=-1;function h(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&f())}function f(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},2861:(t,e,r)=>{var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3141:(t,e,r)=>{"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=s(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=s(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}(()=>{"use strict";const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:s,seal:a,create:u}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;s||(s=function(t){return t}),a||(a=function(t){return t}),c||(c=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(e,n)}),l||(l=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});const h=O(Array.prototype.forEach),f=O(Array.prototype.lastIndexOf),p=O(Array.prototype.pop),d=O(Array.prototype.push),g=O(Array.prototype.splice),m=O(String.prototype.toLowerCase),y=O(String.prototype.toString),E=O(String.prototype.match),v=O(String.prototype.replace),w=O(String.prototype.indexOf),b=O(String.prototype.trim),T=O(Object.prototype.hasOwnProperty),N=O(RegExp.prototype.test),A=(I=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return l(I,e)});var I;function O(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return c(t,e,n)}}function _(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;e&&e(t,null);let o=r.length;for(;o--;){let e=r[o];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[o]=t),e=t)}t[e]=!0}return t}function x(t){for(let e=0;e<t.length;e++){T(t,e)||(t[e]=null)}return t}function L(e){const r=u(null);for(const[n,i]of t(e)){T(e,n)&&(Array.isArray(i)?r[n]=x(i):i&&"object"==typeof i&&i.constructor===Object?r[n]=L(i):r[n]=i)}return r}function S(t,e){for(;null!==t;){const r=o(t,e);if(r){if(r.get)return O(r.get);if("function"==typeof r.value)return O(r.value)}t=i(t)}return function(){return null}}const R=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k=s(["#text"]),j=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),M=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=a(/<%[\w\W]*|[\w\W]*%>/gm),z=a(/\$\{[\w\W]*/gm),X=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),H=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=a(/^html$/i),K=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:H,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:K,DATA_ATTR:X,DOCTYPE_NAME:Z,ERB_EXPR:V,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:G,TMPLIT_EXPR:z});const J=1,tt=3,et=7,rt=8,nt=9,it=function(){return"undefined"==typeof window?null:window};var ot=function e(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!r||!r.document||r.document.nodeType!==nt||!r.Element)return n.isSupported=!1,n;let{document:i}=r;const o=i,a=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:I,Element:O,NodeFilter:x,NamedNodeMap:G=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:V,DOMParser:z,trustedTypes:X}=r,H=O.prototype,q=S(H,"cloneNode"),Y=S(H,"remove"),K=S(H,"nextSibling"),ot=S(H,"childNodes"),st=S(H,"parentNode");if("function"==typeof l){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let at,ut="";const{implementation:ct,createNodeIterator:lt,createDocumentFragment:ht,getElementsByTagName:ft}=i,{importNode:pt}=o;let dt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof t&&"function"==typeof st&&ct&&void 0!==ct.createHTMLDocument;const{MUSTACHE_EXPR:gt,ERB_EXPR:mt,TMPLIT_EXPR:yt,DATA_ATTR:Et,ARIA_ATTR:vt,IS_SCRIPT_OR_DATA:wt,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:Tt}=Q;let{IS_ALLOWED_URI:Nt}=Q,At=null;const It=_({},[...R,...C,...P,...$,...k]);let Ot=null;const _t=_({},[...j,...M,...F,...B]);let xt=Object.seal(u(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}})),Lt=null,St=null;const Rt=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ct=!0,Pt=!0,Dt=!1,$t=!0,Ut=!1,kt=!0,jt=!1,Mt=!1,Ft=!1,Bt=!1,Gt=!1,Vt=!1,zt=!0,Xt=!1,Ht=!0,Wt=!1,qt={},Yt=null;const Zt=_({},["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 Kt=null;const Qt=_({},["audio","video","img","source","image","track"]);let Jt=null;const te=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml";let ie=ne,oe=!1,se=null;const ae=_({},[ee,re,ne],y);let ue=_({},["mi","mo","mn","ms","mtext"]),ce=_({},["annotation-xml"]);const le=_({},["title","style","font","a","script"]);let he=null;const fe=["application/xhtml+xml","text/html"];let pe=null,de=null;const ge=i.createElement("form"),me=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!de||de!==t){if(t&&"object"==typeof t||(t={}),t=L(t),he=-1===fe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,pe="application/xhtml+xml"===he?y:m,At=T(t,"ALLOWED_TAGS")?_({},t.ALLOWED_TAGS,pe):It,Ot=T(t,"ALLOWED_ATTR")?_({},t.ALLOWED_ATTR,pe):_t,se=T(t,"ALLOWED_NAMESPACES")?_({},t.ALLOWED_NAMESPACES,y):ae,Jt=T(t,"ADD_URI_SAFE_ATTR")?_(L(te),t.ADD_URI_SAFE_ATTR,pe):te,Kt=T(t,"ADD_DATA_URI_TAGS")?_(L(Qt),t.ADD_DATA_URI_TAGS,pe):Qt,Yt=T(t,"FORBID_CONTENTS")?_({},t.FORBID_CONTENTS,pe):Zt,Lt=T(t,"FORBID_TAGS")?_({},t.FORBID_TAGS,pe):L({}),St=T(t,"FORBID_ATTR")?_({},t.FORBID_ATTR,pe):L({}),qt=!!T(t,"USE_PROFILES")&&t.USE_PROFILES,Ct=!1!==t.ALLOW_ARIA_ATTR,Pt=!1!==t.ALLOW_DATA_ATTR,Dt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,$t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ut=t.SAFE_FOR_TEMPLATES||!1,kt=!1!==t.SAFE_FOR_XML,jt=t.WHOLE_DOCUMENT||!1,Bt=t.RETURN_DOM||!1,Gt=t.RETURN_DOM_FRAGMENT||!1,Vt=t.RETURN_TRUSTED_TYPE||!1,Ft=t.FORCE_BODY||!1,zt=!1!==t.SANITIZE_DOM,Xt=t.SANITIZE_NAMED_PROPS||!1,Ht=!1!==t.KEEP_CONTENT,Wt=t.IN_PLACE||!1,Nt=t.ALLOWED_URI_REGEXP||W,ie=t.NAMESPACE||ne,ue=t.MATHML_TEXT_INTEGRATION_POINTS||ue,ce=t.HTML_INTEGRATION_POINTS||ce,xt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ut&&(Pt=!1),Gt&&(Bt=!0),qt&&(At=_({},k),Ot=[],!0===qt.html&&(_(At,R),_(Ot,j)),!0===qt.svg&&(_(At,C),_(Ot,M),_(Ot,B)),!0===qt.svgFilters&&(_(At,P),_(Ot,M),_(Ot,B)),!0===qt.mathMl&&(_(At,$),_(Ot,F),_(Ot,B))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Rt.tagCheck=t.ADD_TAGS:(At===It&&(At=L(At)),_(At,t.ADD_TAGS,pe))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Rt.attributeCheck=t.ADD_ATTR:(Ot===_t&&(Ot=L(Ot)),_(Ot,t.ADD_ATTR,pe))),t.ADD_URI_SAFE_ATTR&&_(Jt,t.ADD_URI_SAFE_ATTR,pe),t.FORBID_CONTENTS&&(Yt===Zt&&(Yt=L(Yt)),_(Yt,t.FORBID_CONTENTS,pe)),t.ADD_FORBID_CONTENTS&&(Yt===Zt&&(Yt=L(Yt)),_(Yt,t.ADD_FORBID_CONTENTS,pe)),Ht&&(At["#text"]=!0),jt&&_(At,["html","head","body"]),At.table&&(_(At,["tbody"]),delete Lt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');at=t.TRUSTED_TYPES_POLICY,ut=at.createHTML("")}else void 0===at&&(at=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(X,a)),null!==at&&"string"==typeof ut&&(ut=at.createHTML(""));s&&s(t),de=t}},Ee=_({},[...C,...P,...D]),ve=_({},[...$,...U]),we=function(t){d(n.removed,{element:t});try{st(t).removeChild(t)}catch(e){Y(t)}},be=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Bt||Gt)try{we(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){let e=null,r=null;if(Ft)t="<remove></remove>"+t;else{const e=E(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===he&&ie===ne&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const n=at?at.createHTML(t):t;if(ie===ne)try{e=(new z).parseFromString(n,he)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(ie,"template",null);try{e.documentElement.innerHTML=oe?ut:n}catch(t){}}const o=e.body||e.documentElement;return t&&r&&o.insertBefore(i.createTextNode(r),o.childNodes[0]||null),ie===ne?ft.call(e,jt?"html":"body")[0]:jt?e.documentElement:o},Ne=function(t){return lt.call(t.ownerDocument||t,t,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT|x.SHOW_PROCESSING_INSTRUCTION|x.SHOW_CDATA_SECTION,null)},Ae=function(t){return t instanceof V&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof G)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ie=function(t){return"function"==typeof I&&t instanceof I};function Oe(t,e,r){h(t,(t=>{t.call(n,e,r,de)}))}const _e=function(t){let e=null;if(Oe(dt.beforeSanitizeElements,t,null),Ae(t))return we(t),!0;const r=pe(t.nodeName);if(Oe(dt.uponSanitizeElement,t,{tagName:r,allowedTags:At}),kt&&t.hasChildNodes()&&!Ie(t.firstElementChild)&&N(/<[/\w!]/g,t.innerHTML)&&N(/<[/\w!]/g,t.textContent))return we(t),!0;if(t.nodeType===et)return we(t),!0;if(kt&&t.nodeType===rt&&N(/<[/\w]/g,t.data))return we(t),!0;if(!(Rt.tagCheck instanceof Function&&Rt.tagCheck(r))&&(!At[r]||Lt[r])){if(!Lt[r]&&Le(r)){if(xt.tagNameCheck instanceof RegExp&&N(xt.tagNameCheck,r))return!1;if(xt.tagNameCheck instanceof Function&&xt.tagNameCheck(r))return!1}if(Ht&&!Yt[r]){const e=st(t)||t.parentNode,r=ot(t)||t.childNodes;if(r&&e){for(let n=r.length-1;n>=0;--n){const i=q(r[n],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,K(t))}}}return we(t),!0}return t instanceof O&&!function(t){let e=st(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});const r=m(t.tagName),n=m(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===re?e.namespaceURI===ne?"svg"===r:e.namespaceURI===ee?"svg"===r&&("annotation-xml"===n||ue[n]):Boolean(Ee[r]):t.namespaceURI===ee?e.namespaceURI===ne?"math"===r:e.namespaceURI===re?"math"===r&&ce[n]:Boolean(ve[r]):t.namespaceURI===ne?!(e.namespaceURI===re&&!ce[n])&&!(e.namespaceURI===ee&&!ue[n])&&!ve[r]&&(le[r]||!Ee[r]):!("application/xhtml+xml"!==he||!se[t.namespaceURI]))}(t)?(we(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!N(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ut&&t.nodeType===tt&&(e=t.textContent,h([gt,mt,yt],(t=>{e=v(e,t," ")})),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),Oe(dt.afterSanitizeElements,t,null),!1):(we(t),!0)},xe=function(t,e,r){if(zt&&("id"===e||"name"===e)&&(r in i||r in ge))return!1;if(Pt&&!St[e]&&N(Et,e));else if(Ct&&N(vt,e));else if(Rt.attributeCheck instanceof Function&&Rt.attributeCheck(e,t));else if(!Ot[e]||St[e]){if(!(Le(t)&&(xt.tagNameCheck instanceof RegExp&&N(xt.tagNameCheck,t)||xt.tagNameCheck instanceof Function&&xt.tagNameCheck(t))&&(xt.attributeNameCheck instanceof RegExp&&N(xt.attributeNameCheck,e)||xt.attributeNameCheck instanceof Function&&xt.attributeNameCheck(e,t))||"is"===e&&xt.allowCustomizedBuiltInElements&&(xt.tagNameCheck instanceof RegExp&&N(xt.tagNameCheck,r)||xt.tagNameCheck instanceof Function&&xt.tagNameCheck(r))))return!1}else if(Jt[e]);else if(N(Nt,v(r,bt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==w(r,"data:")||!Kt[t]){if(Dt&&!N(wt,v(r,bt,"")));else if(r)return!1}else;return!0},Le=function(t){return"annotation-xml"!==t&&E(t,Tt)},Se=function(t){Oe(dt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ae(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ot,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:s,namespaceURI:a,value:u}=o,c=pe(s),l=u;let f="value"===s?l:b(l);if(r.attrName=c,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Oe(dt.uponSanitizeAttribute,t,r),f=r.attrValue,!Xt||"id"!==c&&"name"!==c||(be(s,t),f="user-content-"+f),kt&&N(/((--!?|])>)|<\/(style|title|textarea)/i,f)){be(s,t);continue}if("attributename"===c&&E(f,"href")){be(s,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){be(s,t);continue}if(!$t&&N(/\/>/i,f)){be(s,t);continue}Ut&&h([gt,mt,yt],(t=>{f=v(f,t," ")}));const d=pe(t.nodeName);if(xe(d,c,f)){if(at&&"object"==typeof X&&"function"==typeof X.getAttributeType)if(a);else switch(X.getAttributeType(d,c)){case"TrustedHTML":f=at.createHTML(f);break;case"TrustedScriptURL":f=at.createScriptURL(f)}if(f!==l)try{a?t.setAttributeNS(a,s,f):t.setAttribute(s,f),Ae(t)?we(t):p(n.removed)}catch(e){be(s,t)}}else be(s,t)}Oe(dt.afterSanitizeAttributes,t,null)},Re=function t(e){let r=null;const n=Ne(e);for(Oe(dt.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)Oe(dt.uponSanitizeShadowNode,r,null),_e(r),Se(r),r.content instanceof c&&t(r.content);Oe(dt.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,a=null;if(oe=!t,oe&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ie(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Mt||ye(e),n.removed=[],"string"==typeof t&&(Wt=!1),Wt){if(t.nodeName){const e=pe(t.nodeName);if(!At[e]||Lt[e])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof I)r=Te("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),i.nodeType===J&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Bt&&!Ut&&!jt&&-1===t.indexOf("<"))return at&&Vt?at.createHTML(t):t;if(r=Te(t),!r)return Bt?null:Vt?ut:""}r&&Ft&&we(r.firstChild);const u=Ne(Wt?t:r);for(;s=u.nextNode();)_e(s),Se(s),s.content instanceof c&&Re(s.content);if(Wt)return t;if(Bt){if(Gt)for(a=ht.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(Ot.shadowroot||Ot.shadowrootmode)&&(a=pt.call(o,a,!0)),a}let l=jt?r.outerHTML:r.innerHTML;return jt&&At["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&N(Z,r.ownerDocument.doctype.name)&&(l="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+l),Ut&&h([gt,mt,yt],(t=>{l=v(l,t," ")})),at&&Vt?at.createHTML(l):l},n.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mt=!0},n.clearConfig=function(){de=null,Mt=!1},n.isValidAttribute=function(t,e,r){de||ye({});const n=pe(t),i=pe(e);return xe(n,i,r)},n.addHook=function(t,e){"function"==typeof e&&d(dt[t],e)},n.removeHook=function(t,e){if(void 0!==e){const r=f(dt[t],e);return-1===r?void 0:g(dt[t],r,1)[0]}return p(dt[t])},n.removeHooks=function(t){dt[t]=[]},n.removeAllHooks=function(){dt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),st=r(580);function at(t){return{translations:globalThis._oc_l10n_registry_translations[t]??{},pluralFunction:globalThis._oc_l10n_registry_plural_functions[t]??(t=>t)}}function ut(t,e,r,n,i){const o="object"==typeof r?r:void 0,s="number"==typeof n?n:"number"==typeof r?r:void 0,a={escape:!0,sanitize:!0,..."object"==typeof i?i:"object"==typeof n?n:{}},u=t=>t,c=(a.sanitize?ot.sanitize:u)||u,l=a.escape?st:u,h=t=>"string"==typeof t||"number"==typeof t;let f=(i?.bundle??at(t)).translations[e]||e;return f=Array.isArray(f)?f[0]:f,c("object"==typeof o||void 0!==s?(p=o,d=s,f.replace(/%n/g,""+d).replace(/{([^{}]*)}/g,((t,e)=>{if(void 0===p||!(e in p))return l(t);const r=p[e];return h(r)?l(`${r}`):"object"==typeof r&&h(r.value)?(!1!==r.escape?st:u)(`${r.value}`):l(t)}))):f);var p,d}globalThis._nc_l10n_locale??="undefined"!=typeof document&&document.documentElement.dataset.locale||Intl.DateTimeFormat().resolvedOptions().locale.replaceAll(/-/g,"_"),globalThis._nc_l10n_language??="undefined"!=typeof document&&document.documentElement.lang||(globalThis.navigator?.language??"en"),globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};var ct=r(8064),lt=r(8711);class ht{bus;constructor(t){"function"==typeof t.getVersion&&lt(t.getVersion())?ct(t.getVersion())!==ct(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,e){this.bus.subscribe(t,e)}unsubscribe(t,e){this.bus.unsubscribe(t,e)}emit(t,...e){this.bus.emit(t,...e)}}class ft{handlers=new Map;getVersion(){return"3.3.3"}subscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))}unsubscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((t=>t!==e)))}emit(t,...e){(this.handlers.get(t)||[]).forEach((t=>{try{t(e[0])}catch(t){console.error("could not invoke event listener",t)}}))}}let pt,dt=null;function gt(){return null!==dt?dt:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),dt=void 0!==window?._nc_event_bus?new ht(window._nc_event_bus):window._nc_event_bus=new ft,dt)}class mt{static GLOBAL_SCOPE_VOLATILE="f7cloud_vol";static GLOBAL_SCOPE_PERSISTENT="f7cloud_per";scope;wrapped;constructor(t,e,r){this.scope=`${r?mt.GLOBAL_SCOPE_PERSISTENT:mt.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=e}scopeKey(t){return`${this.scope}${t}`}setItem(t,e){this.wrapped.setItem(this.scopeKey(t),e)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter((t=>t.startsWith(this.scope))).map(this.wrapped.removeItem.bind(this.wrapped))}}class yt{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new mt(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}const Et=[];function vt(){return void 0===pt&&(pt=document.head.dataset.requesttoken??null),pt}var wt,bt;wt="csrf-token-update",bt=t=>{pt=t.token,Et.forEach((t=>{try{t(pt)}catch(t){console.error("Error updating CSRF token observer",t)}}))},gt().subscribe(wt,bt);(Tt="public",new yt(Tt)).persist().build();var Tt;let Nt;function At(t,e){return t?t.getAttribute(e):null}function It(){if(void 0!==Nt)return Nt;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=At(t,"data-user");return null===e?(Nt=null,Nt):(Nt={uid:e,displayName:At(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},Nt)}function Ot(t,e,r){const n=`#initial-state-${t}-${e}`;if(window._nc_initial_state?.has(n))return window._nc_initial_state.get(n);window._nc_initial_state||(window._nc_initial_state=new Map);const i=document.querySelector(n);if(null===i){if(void 0!==r)return r;throw new Error(`Could not find initial state ${e} of ${t}`)}try{const t=JSON.parse(atob(i.value));return window._nc_initial_state.set(n,t),t}catch(n){if(console.error("[@f7cloud/initial-state] Could not parse initial state",{key:e,app:t,error:n}),void 0!==r)return r;throw new Error(`Could not parse initial state ${e} of ${t}`,{cause:n})}}function _t(){return Ot("files_sharing","isPublic",null)??null!==document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')}const xt=(t,e)=>(e?.baseURL??Rt())+(t=>"/remote.php/"+t)(t),Lt=(t,e,r)=>{const n=Object.assign({escape:!0},r||{});return"/"!==t.charAt(0)&&(t="/"+t),i=(i=e||{})||{},t.replace(/{([^{}]*)}/g,(function(t,e){const r=i[e];return n.escape?"string"==typeof r||"number"==typeof r?encodeURIComponent(r.toString()):encodeURIComponent(t):"string"==typeof r||"number"==typeof r?r.toString():t}));var i},St=(t,e,r)=>{const n=Object.assign({noRewrite:!1},r||{}),i=r?.baseURL??Ct();return!0!==window?.OC?.config?.modRewriteWorking||n.noRewrite?i+"/index.php"+Lt(t,e,r):i+Lt(t,e,r)},Rt=()=>window.location.protocol+"//"+window.location.host+Ct();function Ct(){let t=window._oc_webroot;if(void 0===t){t=location.pathname;const e=t.indexOf("/index.php/");if(-1!==e)t=t.slice(0,e);else{const e=t.indexOf("/",1);t=t.slice(0,e>0?e:void 0)}}return t}r(6117);var Pt=r(5606),Dt={2:t=>{function e(t,e,i){t instanceof RegExp&&(t=r(t,i)),e instanceof RegExp&&(e=r(e,i));var o=n(t,e,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+e.length)}}function r(t,e){var r=e.match(t);return r?r[0]:null}function n(t,e,r){var n,i,o,s,a,u=r.indexOf(t),c=r.indexOf(e,u+1),l=u;if(u>=0&&c>0){for(n=[],o=r.length;l>=0&&!a;)l==u?(n.push(l),u=r.indexOf(t,l+1)):1==n.length?a=[n.pop(),c]:((i=n.pop())<o&&(o=i,s=c),c=r.indexOf(e,l+1)),l=u<c&&u>=0?u:c;n.length&&(a=[o,s])}return a}t.exports=e,e.range=n},101:function(t,e,r){var n;t=r.nmd(t),function(i){var o=(t&&t.exports,"object"==typeof global&&global);o.global!==o&&o.window;var s=function(t){this.message=t};(s.prototype=new Error).name="InvalidCharacterError";var a=function(t){throw new s(t)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,l={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var e,r,n,i,o=t.length%3,s="",c=-1,l=t.length-o;++c<l;)e=t.charCodeAt(c)<<16,r=t.charCodeAt(++c)<<8,n=t.charCodeAt(++c),s+=u.charAt((i=e+r+n)>>18&63)+u.charAt(i>>12&63)+u.charAt(i>>6&63)+u.charAt(63&i);return 2==o?(e=t.charCodeAt(c)<<8,r=t.charCodeAt(++c),s+=u.charAt((i=e+r)>>10)+u.charAt(i>>4&63)+u.charAt(i<<2&63)+"="):1==o&&(i=t.charCodeAt(c),s+=u.charAt(i>>2)+u.charAt(i<<4&63)+"=="),s},decode:function(t){var e=(t=String(t).replace(c,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var r,n,i=0,o="",s=-1;++s<e;)n=u.indexOf(t.charAt(s)),r=i%4?64*r+n:n,i++%4&&(o+=String.fromCharCode(255&r>>(-2*i&6)));return o},version:"1.0.0"};void 0===(n=function(){return l}.call(e,r,e,t))||(t.exports=n)}()},172:(t,e)=>{e.d=function(t){if(!t)return 0;for(var e=(t=t.toString()).length,r=t.length;r--;){var n=t.charCodeAt(r);56320<=n&&n<=57343&&r--,127<n&&n<=2047?e++:2047<n&&n<=65535&&(e+=2)}return e}},526:t=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},298:t=>{var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?r.push(e.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<t.length;i=++n%4)0!=i&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|e.indexOf(t.charAt(n))>>>6-2*i);return r}},t.exports=r},635:(t,e,r)=>{const n=r(31),i=r(338),o=r(221);t.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},118:t=>{t.exports=function(t){return"function"==typeof t?t:Array.isArray(t)?e=>{for(const r of t){if("string"==typeof r&&e===r)return!0;if(r instanceof RegExp&&r.test(e))return!0}}:()=>!1}},705:(t,e)=>{const r=":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",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+n+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,r){if(e){const n=Object.keys(e),i=n.length;for(let o=0;o<i;o++)t[n[o]]="strict"===r?[e[n[o]]]:e[n[o]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){return!(null==i.exec(t))},e.getAllMatches=function(t,e){const r=[];let n=e.exec(t);for(;n;){const i=[];i.startIndex=e.lastIndex-n[0].length;const o=n.length;for(let t=0;t<o;t++)i.push(n[t]);r.push(i),n=e.exec(t)}return r},e.nameRegexp=n},31:(t,e,r)=>{const n=r(705),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function s(t,e){const r=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const n=t.substr(r,e-r);if(e>5&&"xml"===n)return d("InvalidXml","XML declaration allowed only at the start of the document.",m(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function a(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let r=1;for(e+=8;e<t.length;e++)if("<"===t[e])r++;else if(">"===t[e]&&(r--,0===r))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},i,e);const r=[];let u=!1,c=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let i=0;i<t.length;i++)if("<"===t[i]&&"?"===t[i+1]){if(i+=2,i=s(t,i),i.err)return i}else{if("<"!==t[i]){if(o(t[i]))continue;return d("InvalidChar","char '"+t[i]+"' is not expected.",m(t,i))}{let g=i;if(i++,"!"===t[i]){i=a(t,i);continue}{let y=!1;"/"===t[i]&&(y=!0,i++);let E="";for(;i<t.length&&">"!==t[i]&&" "!==t[i]&&"\t"!==t[i]&&"\n"!==t[i]&&"\r"!==t[i];i++)E+=t[i];if(E=E.trim(),"/"===E[E.length-1]&&(E=E.substring(0,E.length-1),i--),h=E,!n.isName(h)){let e;return e=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",d("InvalidTag",e,m(t,i))}const v=l(t,i);if(!1===v)return d("InvalidAttr","Attributes for '"+E+"' have open quote.",m(t,i));let w=v.value;if(i=v.index,"/"===w[w.length-1]){const r=i-w.length;w=w.substring(0,w.length-1);const n=f(w,e);if(!0!==n)return d(n.err.code,n.err.msg,m(t,r+n.err.line));u=!0}else if(y){if(!v.tagClosed)return d("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",m(t,i));if(w.trim().length>0)return d("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",m(t,g));if(0===r.length)return d("InvalidTag","Closing tag '"+E+"' has not been opened.",m(t,g));{const e=r.pop();if(E!==e.tagName){let r=m(t,e.tagStartPos);return d("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+E+"'.",m(t,g))}0==r.length&&(c=!0)}}else{const n=f(w,e);if(!0!==n)return d(n.err.code,n.err.msg,m(t,i-w.length+n.err.line));if(!0===c)return d("InvalidXml","Multiple possible root nodes found.",m(t,i));-1!==e.unpairedTags.indexOf(E)||r.push({tagName:E,tagStartPos:g}),u=!0}for(i++;i<t.length;i++)if("<"===t[i]){if("!"===t[i+1]){i++,i=a(t,i);continue}if("?"!==t[i+1])break;if(i=s(t,++i),i.err)return i}else if("&"===t[i]){const e=p(t,i);if(-1==e)return d("InvalidChar","char '&' is not expected.",m(t,i));i=e}else if(!0===c&&!o(t[i]))return d("InvalidXml","Extra text at the end",m(t,i));"<"===t[i]&&i--}}}var h;return u?1==r.length?d("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",m(t,r[0].tagStartPos)):!(r.length>0)||d("InvalidXml","Invalid '"+JSON.stringify(r.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const u='"',c="'";function l(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===u||t[e]===c)""===n?n=t[e]:n!==t[e]||(n="");else if(">"===t[e]&&""===n){i=!0;break}r+=t[e]}return""===n&&{value:r,index:e,tagClosed:i}}const h=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function f(t,e){const r=n.getAllMatches(t,h),i={};for(let t=0;t<r.length;t++){if(0===r[t][1].length)return d("InvalidAttr","Attribute '"+r[t][2]+"' has no space in starting.",y(r[t]));if(void 0!==r[t][3]&&void 0===r[t][4])return d("InvalidAttr","Attribute '"+r[t][2]+"' is without value.",y(r[t]));if(void 0===r[t][3]&&!e.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+r[t][2]+"' is not allowed.",y(r[t]));const n=r[t][2];if(!g(n))return d("InvalidAttr","Attribute '"+n+"' is an invalid name.",y(r[t]));if(i.hasOwnProperty(n))return d("InvalidAttr","Attribute '"+n+"' is repeated.",y(r[t]));i[n]=1}return!0}function p(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let r=/\d/;for("x"===t[e]&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(r))break}return-1}(t,++e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return-1}return e}function d(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function g(t){return n.isName(t)}function m(t,e){const r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function y(t){return t.startIndex+t[1].length}},221:(t,e,r)=>{const n=r(87),i=r(118),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(t){this.options=Object.assign({},o,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(t,e,r,n){const i=this.j2x(t,r+1,n.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,r):this.buildObjectNode(i.val,e,i.attrStr,r)}function u(t){return this.options.indentBy.repeat(t)}function c(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}s.prototype.build=function(t){return this.options.preserveOrder?n(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)},s.prototype.j2x=function(t,e,r){let n="",i="";const o=r.join(".");for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(void 0===t[s])this.isAttribute(s)&&(i+="");else if(null===t[s])this.isAttribute(s)?i+="":"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if("object"!=typeof t[s]){const r=this.isAttribute(s);if(r&&!this.ignoreAttributesFn(r,o))n+=this.buildAttrPairStr(r,""+t[s]);else if(!r)if(s===this.options.textNodeName){let e=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){const n=t[s].length;let o="",a="";for(let u=0;u<n;u++){const n=t[s][u];if(void 0===n);else if(null===n)"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof n)if(this.options.oneListGroup){const t=this.j2x(n,e+1,r.concat(s));o+=t.val,this.options.attributesGroupName&&n.hasOwnProperty(this.options.attributesGroupName)&&(a+=t.attrStr)}else o+=this.processTextOrObjNode(n,s,e,r);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(s,n);t=this.replaceEntitiesValue(t),o+=t}else o+=this.buildTextValNode(n,s,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,a,e)),i+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const e=Object.keys(t[s]),r=e.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(e[i],""+t[s][e[i]])}else i+=this.processTextOrObjNode(t[s],s,e,r);return{attrStr:n,val:i}},s.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},s.prototype.buildObjectNode=function(t,e,r,n){if(""===t)return"?"===e[0]?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),!r&&""!==r||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(n)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+i:this.indentate(n)+"<"+e+r+o+">"+t+i}},s.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},s.prototype.buildTextValNode=function(t,e,r,n){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(n)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return i=this.replaceEntitiesValue(i),""===i?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t},t.exports=s},87:t=>{function e(t,s,a,u){let c="",l=!1;for(let h=0;h<t.length;h++){const f=t[h],p=r(f);if(void 0===p)continue;let d="";if(d=0===a.length?p:`${a}.${p}`,p===s.textNodeName){let t=f[p];i(d,s)||(t=s.tagValueProcessor(p,t),t=o(t,s)),l&&(c+=u),c+=t,l=!1;continue}if(p===s.cdataPropName){l&&(c+=u),c+=`<![CDATA[${f[p][0][s.textNodeName]}]]>`,l=!1;continue}if(p===s.commentPropName){c+=u+`\x3c!--${f[p][0][s.textNodeName]}--\x3e`,l=!0;continue}if("?"===p[0]){const t=n(f[":@"],s),e="?xml"===p?"":u;let r=f[p][0][s.textNodeName];r=0!==r.length?" "+r:"",c+=e+`<${p}${r}${t}?>`,l=!0;continue}let g=u;""!==g&&(g+=s.indentBy);const m=u+`<${p}${n(f[":@"],s)}`,y=e(f[p],s,d,g);-1!==s.unpairedTags.indexOf(p)?s.suppressUnpairedNode?c+=m+">":c+=m+"/>":y&&0!==y.length||!s.suppressEmptyNode?y&&y.endsWith(">")?c+=m+`>${y}${u}</${p}>`:(c+=m+">",y&&""!==u&&(y.includes("/>")||y.includes("</"))?c+=u+s.indentBy+y+u:c+=y,c+=`</${p}>`):c+=m+"/>",l=!0}return c}function r(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(t.hasOwnProperty(n)&&":@"!==n)return n}}function n(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,t[n]);i=o(i,e),!0===i&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return r}function i(t,e){let r=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function o(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){const n=e.entities[r];t=t.replace(n.regex,n.val)}return t}t.exports=function(t,r){let n="";return r.format&&r.indentBy.length>0&&(n="\n"),e(t,r,"",n)}},193:(t,e,r)=>{const n=r(705);function i(t,e){let r="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)r+=t[e];if(r=r.trim(),-1!==r.indexOf(" "))throw new Error("External entites are not supported");const n=t[e++];let i="";for(;e<t.length&&t[e]!==n;e++)i+=t[e];return[r,i,e]}function o(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function s(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function u(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function c(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function l(t){if(n.isName(t))return t;throw new Error(`Invalid entity name ${t}`)}t.exports=function(t,e){const r={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let n=1,h=!1,f=!1,p="";for(;e<t.length;e++)if("<"!==t[e]||f)if(">"===t[e]){if(f?"-"===t[e-1]&&"-"===t[e-2]&&(f=!1,n--):n--,0===n)break}else"["===t[e]?h=!0:p+=t[e];else{if(h&&s(t,e)){let n,o;e+=7,[n,o,e]=i(t,e+1),-1===o.indexOf("&")&&(r[l(n)]={regx:RegExp(`&${n};`,"g"),val:o})}else if(h&&a(t,e))e+=8;else if(h&&u(t,e))e+=8;else if(h&&c(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");f=!0}n++,p=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:e}}},63:(t,e)=>{const r={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(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}};e.buildOptions=function(t){return Object.assign({},r,t)},e.defaultOptions=r},299:(t,e,r)=>{const n=r(705),i=r(365),o=r(193),s=r(494),a=r(118);function u(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:t[n]}}}function c(t,e,r,n,i,o,s){if(void 0!==t&&(this.options.trimValues&&!n&&(t=t.trim()),t.length>0)){s||(t=this.replaceEntitiesValue(t));const n=this.options.tagValueProcessor(e,t,r,i,o);return null==n?t:typeof n!=typeof t||n!==t?n:this.options.trimValues||t.trim()===t?b(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function l(t){if(this.options.removeNSPrefix){const e=t.split(":"),r="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=r+e[1])}return t}const h=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(t,e,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof t){const r=n.getAllMatches(t,h),i=r.length,o={};for(let t=0;t<i;t++){const n=this.resolveNameSpace(r[t][1]);if(this.ignoreAttributesFn(n,e))continue;let i=r[t][4],s=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const t=this.options.attributeValueProcessor(n,i,e);o[s]=null==t?i:typeof t!=typeof i||t!==i?t:b(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[s]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=o,t}return o}}const p=function(t){t=t.replace(/\r\n?/g,"\n");const e=new i("!xml");let r=e,n="",s="";for(let a=0;a<t.length;a++)if("<"===t[a])if("/"===t[a+1]){const e=E(t,">",a,"Closing Tag is not closed.");let i=t.substring(a+2,e).trim();if(this.options.removeNSPrefix){const t=i.indexOf(":");-1!==t&&(i=i.substr(t+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),r&&(n=this.saveTextToParentTag(n,r,s));const o=s.substring(s.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);let u=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",a=e}else if("?"===t[a+1]){let e=v(t,a,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new i(e.tagName);t.add(this.options.textNodeName,""),e.tagName!==e.tagExp&&e.attrExpPresent&&(t[":@"]=this.buildAttributesMap(e.tagExp,s,e.tagName)),this.addChild(r,t,s)}a=e.closeIndex+1}else if("!--"===t.substr(a+1,3)){const e=E(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=t.substring(a+4,e-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=e}else if("!D"===t.substr(a+1,2)){const e=o(t,a);this.docTypeEntities=e.entities,a=e.i}else if("!["===t.substr(a+1,2)){const e=E(t,"]]>",a,"CDATA is not closed.")-2,i=t.substring(a+9,e);n=this.saveTextToParentTag(n,r,s);let o=this.parseTextData(i,r.tagname,s,!0,!1,!0,!0);null==o&&(o=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):r.add(this.options.textNodeName,o),a=e+2}else{let o=v(t,a,this.options.removeNSPrefix),u=o.tagName;const c=o.rawTagName;let l=o.tagExp,h=o.attrExpPresent,f=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,s,!1));const p=r;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==e.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let e="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)"/"===u[u.length-1]?(u=u.substr(0,u.length-1),s=s.substr(0,s.length-1),l=u):l=l.substr(0,l.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))a=o.closeIndex;else{const r=this.readStopNodeData(t,c,f+1);if(!r)throw new Error(`Unexpected end of ${c}`);a=r.i,e=r.tagContent}const n=new i(u);u!==l&&h&&(n[":@"]=this.buildAttributesMap(l,s,u)),e&&(e=this.parseTextData(e,u,s,!0,h,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),n.add(this.options.textNodeName,e),this.addChild(r,n,s)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===u[u.length-1]?(u=u.substr(0,u.length-1),s=s.substr(0,s.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));const t=new i(u);u!==l&&h&&(t[":@"]=this.buildAttributesMap(l,s,u)),this.addChild(r,t,s),s=s.substr(0,s.lastIndexOf("."))}else{const t=new i(u);this.tagsNodeStack.push(r),u!==l&&h&&(t[":@"]=this.buildAttributesMap(l,s,u)),this.addChild(r,t,s),r=t}n="",a=f}}else n+=t[a];return e.child};function d(t,e,r){const n=this.options.updateTag(e.tagname,r,e[":@"]);!1===n||("string"==typeof n?(e.tagname=n,t.addChild(e)):t.addChild(e))}const g=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){const r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function m(t,e,r,n){return t&&(void 0===n&&(n=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,r,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function y(t,e,r){const n="*."+r;for(const r in t){const i=t[r];if(n===i||e===i)return!0}return!1}function E(t,e,r,n){const i=t.indexOf(e,r);if(-1===i)throw new Error(n);return i+e.length-1}function v(t,e,r){const n=function(t,e){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",i="";for(let o=e;o<t.length;o++){let e=t[o];if(r)e===r&&(r="");else if('"'===e||"'"===e)r=e;else if(e===n[0]){if(!n[1])return{data:i,index:o};if(t[o+1]===n[1])return{data:i,index:o}}else"\t"===e&&(e=" ");i+=e}}(t,e+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(!n)return;let i=n.data;const o=n.index,s=i.search(/\s/);let a=i,u=!0;-1!==s&&(a=i.substring(0,s),i=i.substring(s+1).trimStart());const c=a;if(r){const t=a.indexOf(":");-1!==t&&(a=a.substr(t+1),u=a!==n.data.substr(t+1))}return{tagName:a,tagExp:i,closeIndex:o,attrExpPresent:u,rawTagName:c}}function w(t,e,r){const n=r;let i=1;for(;r<t.length;r++)if("<"===t[r])if("/"===t[r+1]){const o=E(t,">",r,`${e} is not closed`);if(t.substring(r+2,o).trim()===e&&(i--,0===i))return{tagContent:t.substring(n,r),i:o};r=o}else if("?"===t[r+1])r=E(t,"?>",r+1,"StopNode is not closed.");else if("!--"===t.substr(r+1,3))r=E(t,"--\x3e",r+3,"StopNode is not closed.");else if("!["===t.substr(r+1,2))r=E(t,"]]>",r,"StopNode is not closed.")-2;else{const n=v(t,r,">");n&&((n&&n.tagName)===e&&"/"!==n.tagExp[n.tagExp.length-1]&&i++,r=n.closeIndex)}}function b(t,e,r){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&s(t,r)}return n.isExist(t)?t:""}t.exports=class{constructor(t){this.options=t,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:(t,e)=>String.fromCharCode(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=g,this.readStopNodeData=w,this.saveTextToParentTag=m,this.addChild=d,this.ignoreAttributesFn=a(this.options.ignoreAttributes)}}},338:(t,e,r)=>{const{buildOptions:n}=r(63),i=r(299),{prettify:o}=r(728),s=r(31);t.exports=class{constructor(t){this.externalEntities={},this.options=n(t)}parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});const r=s.validate(t,e);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new i(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(t);return this.options.preserveOrder||void 0===n?n:o(n,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}},728:(t,e)=>{function r(t,e,s){let a;const u={};for(let c=0;c<t.length;c++){const l=t[c],h=n(l);let f="";if(f=void 0===s?h:s+"."+h,h===e.textNodeName)void 0===a?a=l[h]:a+=""+l[h];else{if(void 0===h)continue;if(l[h]){let t=r(l[h],e,f);const n=o(t,e);l[":@"]?i(t,l[":@"],f,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==u[h]&&u.hasOwnProperty(h)?(Array.isArray(u[h])||(u[h]=[u[h]]),u[h].push(t)):e.isArray(h,f,n)?u[h]=[t]:u[h]=t}}}return"string"==typeof a?a.length>0&&(u[e.textNodeName]=a):void 0!==a&&(u[e.textNodeName]=a),u}function n(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const r=e[t];if(":@"!==r)return r}}function i(t,e,r,n){if(e){const i=Object.keys(e),o=i.length;for(let s=0;s<o;s++){const o=i[s];n.isArray(o,r+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}function o(t,e){const{textNodeName:r}=e,n=Object.keys(t).length;return 0===n||!(1!==n||!t[r]&&"boolean"!=typeof t[r]&&0!==t[r])}e.prettify=function(t,e){return r(t,e)}},365:t=>{t.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:t=>{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},542:(t,e,r)=>{!function(){var e=r(298),n=r(526).utf8,i=r(135),o=r(526).bin,s=function(t,r){t.constructor==String?t=r&&"binary"===r.encoding?o.stringToBytes(t):n.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var a=e.bytesToWords(t),u=8*t.length,c=1732584193,l=-271733879,h=-1732584194,f=271733878,p=0;p<a.length;p++)a[p]=16711935&(a[p]<<8|a[p]>>>24)|4278255360&(a[p]<<24|a[p]>>>8);a[u>>>5]|=128<<u%32,a[14+(u+64>>>9<<4)]=u;var d=s._ff,g=s._gg,m=s._hh,y=s._ii;for(p=0;p<a.length;p+=16){var E=c,v=l,w=h,b=f;c=d(c,l,h,f,a[p+0],7,-680876936),f=d(f,c,l,h,a[p+1],12,-389564586),h=d(h,f,c,l,a[p+2],17,606105819),l=d(l,h,f,c,a[p+3],22,-1044525330),c=d(c,l,h,f,a[p+4],7,-176418897),f=d(f,c,l,h,a[p+5],12,1200080426),h=d(h,f,c,l,a[p+6],17,-1473231341),l=d(l,h,f,c,a[p+7],22,-45705983),c=d(c,l,h,f,a[p+8],7,1770035416),f=d(f,c,l,h,a[p+9],12,-1958414417),h=d(h,f,c,l,a[p+10],17,-42063),l=d(l,h,f,c,a[p+11],22,-1990404162),c=d(c,l,h,f,a[p+12],7,1804603682),f=d(f,c,l,h,a[p+13],12,-40341101),h=d(h,f,c,l,a[p+14],17,-1502002290),c=g(c,l=d(l,h,f,c,a[p+15],22,1236535329),h,f,a[p+1],5,-165796510),f=g(f,c,l,h,a[p+6],9,-1069501632),h=g(h,f,c,l,a[p+11],14,643717713),l=g(l,h,f,c,a[p+0],20,-373897302),c=g(c,l,h,f,a[p+5],5,-701558691),f=g(f,c,l,h,a[p+10],9,38016083),h=g(h,f,c,l,a[p+15],14,-660478335),l=g(l,h,f,c,a[p+4],20,-405537848),c=g(c,l,h,f,a[p+9],5,568446438),f=g(f,c,l,h,a[p+14],9,-1019803690),h=g(h,f,c,l,a[p+3],14,-187363961),l=g(l,h,f,c,a[p+8],20,1163531501),c=g(c,l,h,f,a[p+13],5,-1444681467),f=g(f,c,l,h,a[p+2],9,-51403784),h=g(h,f,c,l,a[p+7],14,1735328473),c=m(c,l=g(l,h,f,c,a[p+12],20,-1926607734),h,f,a[p+5],4,-378558),f=m(f,c,l,h,a[p+8],11,-2022574463),h=m(h,f,c,l,a[p+11],16,1839030562),l=m(l,h,f,c,a[p+14],23,-35309556),c=m(c,l,h,f,a[p+1],4,-1530992060),f=m(f,c,l,h,a[p+4],11,1272893353),h=m(h,f,c,l,a[p+7],16,-155497632),l=m(l,h,f,c,a[p+10],23,-1094730640),c=m(c,l,h,f,a[p+13],4,681279174),f=m(f,c,l,h,a[p+0],11,-358537222),h=m(h,f,c,l,a[p+3],16,-722521979),l=m(l,h,f,c,a[p+6],23,76029189),c=m(c,l,h,f,a[p+9],4,-640364487),f=m(f,c,l,h,a[p+12],11,-421815835),h=m(h,f,c,l,a[p+15],16,530742520),c=y(c,l=m(l,h,f,c,a[p+2],23,-995338651),h,f,a[p+0],6,-198630844),f=y(f,c,l,h,a[p+7],10,1126891415),h=y(h,f,c,l,a[p+14],15,-1416354905),l=y(l,h,f,c,a[p+5],21,-57434055),c=y(c,l,h,f,a[p+12],6,1700485571),f=y(f,c,l,h,a[p+3],10,-1894986606),h=y(h,f,c,l,a[p+10],15,-1051523),l=y(l,h,f,c,a[p+1],21,-2054922799),c=y(c,l,h,f,a[p+8],6,1873313359),f=y(f,c,l,h,a[p+15],10,-30611744),h=y(h,f,c,l,a[p+6],15,-1560198380),l=y(l,h,f,c,a[p+13],21,1309151649),c=y(c,l,h,f,a[p+4],6,-145523070),f=y(f,c,l,h,a[p+11],10,-1120210379),h=y(h,f,c,l,a[p+2],15,718787259),l=y(l,h,f,c,a[p+9],21,-343485551),c=c+E>>>0,l=l+v>>>0,h=h+w>>>0,f=f+b>>>0}return e.endian([c,l,h,f])};s._ff=function(t,e,r,n,i,o,s){var a=t+(e&r|~e&n)+(i>>>0)+s;return(a<<o|a>>>32-o)+e},s._gg=function(t,e,r,n,i,o,s){var a=t+(e&n|r&~n)+(i>>>0)+s;return(a<<o|a>>>32-o)+e},s._hh=function(t,e,r,n,i,o,s){var a=t+(e^r^n)+(i>>>0)+s;return(a<<o|a>>>32-o)+e},s._ii=function(t,e,r,n,i,o,s){var a=t+(r^(e|~n))+(i>>>0)+s;return(a<<o|a>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,r){if(null==t)throw new Error("Illegal argument "+t);var n=e.wordsToBytes(s(t,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):e.bytesToHex(n)}}()},285:(t,e,r)=>{var n=r(2);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(s).split("\\,").join(a).split("\\.").join(u)}(t),!0).map(l)):[]};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function l(t){return t.split(i).join("\\").split(o).join("{").split(s).join("}").split(a).join(",").split(u).join(".")}function h(t){if(!t)return[""];var e=[],r=n("{","}",t);if(!r)return t.split(",");var i=r.pre,o=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var u=h(s);return s.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),e.push.apply(e,a),e}function f(t){return"{"+t+"}"}function p(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var r=[],i=n("{","}",t);if(!i)return[t];var o=i.pre,a=i.post.length?m(i.post,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<a.length;u++){var l=o+"{"+i.body+"}"+a[u];r.push(l)}else{var y,E,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),b=v||w,T=i.body.indexOf(",")>=0;if(!b&&!T)return i.post.match(/,.*\}/)?m(t=i.pre+"{"+i.body+s+i.post):[t];if(b)y=i.body.split(/\.\./);else if(1===(y=h(i.body)).length&&1===(y=m(y[0],!1).map(f)).length)return a.map((function(t){return i.pre+y[0]+t}));if(b){var N=c(y[0]),A=c(y[1]),I=Math.max(y[0].length,y[1].length),O=3==y.length?Math.abs(c(y[2])):1,_=d;A<N&&(O*=-1,_=g);var x=y.some(p);E=[];for(var L=N;_(L,A);L+=O){var S;if(w)"\\"===(S=String.fromCharCode(L))&&(S="");else if(S=String(L),x){var R=I-S.length;if(R>0){var C=new Array(R+1).join("0");S=L<0?"-"+C+S.slice(1):C+S}}E.push(S)}}else{E=[];for(var P=0;P<y.length;P++)E.push.apply(E,m(y[P],!1))}for(P=0;P<E.length;P++)for(u=0;u<a.length;u++)l=o+E[P]+a[u],(!e||b||l)&&r.push(l)}return r}},829:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var e="function"==typeof Map?new Map:void 0;return r=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,s)}function s(){return n(t,arguments,o(this).constructor)}return s.prototype=Object.create(t.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i(s,t)},r(t)}function n(t,e,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&i(o,r.prototype),o},n.apply(null,arguments)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}var s=function(t){function r(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}(this,o(r).call(this,t))).name="ObjectPrototypeMutationError",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(r,t),r}(r(Error));function a(t,r){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=r.split("."),o=i.length,s=function(e){var r=i[e];if(!t)return{v:void 0};if("+"===r){if(Array.isArray(t))return{v:t.map((function(r,o){var s=i.slice(e+1);return s.length>0?a(r,s.join("."),n):n(t,o,i,e)}))};var o=i.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(o,") is not an array"))}t=n(t,r,i,e)},u=0;u<o;u++){var c=s(u);if("object"===e(c))return c.v}return t}function u(t,e){return t.length===e+1}t.exports={set:function(t,r,n){if("object"!=e(t)||null===t)return t;if(void 0===r)return t;if("number"==typeof r)return t[r]=n,t[r];try{return a(t,r,(function(t,e,r,i){if(t===Reflect.getPrototypeOf({}))throw new s("Attempting to mutate Object.prototype");if(!t[e]){var o=Number.isInteger(Number(r[i+1])),a="+"===r[i+1];t[e]=o||a?[]:{}}return u(r,i)&&(t[e]=n),t[e]}))}catch(e){if(e instanceof s)throw e;return t}},get:function(t,r){if("object"!=e(t)||null===t)return t;if(void 0===r)return t;if("number"==typeof r)return t[r];try{return a(t,r,(function(t,e){return t[e]}))}catch(e){return t}},has:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=e(t)||null===t)return!1;if(void 0===r)return!1;if("number"==typeof r)return r in t;try{var i=!1;return a(t,r,(function(t,e,r,o){if(!u(r,o))return t&&t[e];i=n.own?t.hasOwnProperty(e):e in t})),i}catch(t){return!1}},hasOwn:function(t,e,r){return this.has(t,e,r||{own:!0})},isIn:function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=e(t)||null===t)return!1;if(void 0===r)return!1;try{var o=!1,s=!1;return a(t,r,(function(t,r,i,a){return o=o||t===n||!!t&&t[r]===n,s=u(i,a)&&"object"===e(t)&&r in t,t&&t[r]})),i.validPath?o&&s:o}catch(t){return!1}},ObjectPrototypeMutationError:s}},47:(t,e,r)=>{var n=r(410),i=function(t){return"string"==typeof t};function o(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():e&&r.push(".."):r.push(i))}return r}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a={};function u(t){return s.exec(t).slice(1)}a.resolve=function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:Pt.cwd();if(!i(n))throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e="/"===n.charAt(0))}return(e?"/":"")+(t=o(t.split("/"),!e).join("/"))||"."},a.normalize=function(t){var e=a.isAbsolute(t),r="/"===t.substr(-1);return(t=o(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},a.isAbsolute=function(t){return"/"===t.charAt(0)},a.join=function(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];if(!i(r))throw new TypeError("Arguments to path.join must be strings");r&&(t+=t?"/"+r:r)}return a.normalize(t)},a.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r+1)}t=a.resolve(t).substr(1),e=a.resolve(e).substr(1);for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),s=o,u=0;u<o;u++)if(n[u]!==i[u]){s=u;break}var c=[];for(u=s;u<n.length;u++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},a._makeLong=function(t){return t},a.dirname=function(t){var e=u(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},a.basename=function(t,e){var r=u(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},a.extname=function(t){return u(t)[3]},a.format=function(t){if(!n.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!i(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+a.sep:"")+(t.base||"")},a.parse=function(t){if(!i(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=u(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,e[1].length-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},a.sep="/",a.delimiter=":",t.exports=a},647:(t,e)=>{var r=Object.prototype.hasOwnProperty;function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function i(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var n,o,s=[];for(o in"string"!=typeof e&&(e="?"),t)if(r.call(t,o)){if((n=t[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,i={};e=r.exec(t);){var o=n(e[1]),s=n(e[2]);null===o||null===s||o in i||(i[o]=s)}return i}},670:t=>{t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},494:t=>{const e=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(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 n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i=Object.assign({},n,i),!t||"string"!=typeof t)return t;let o=t.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return t;if(i.hex&&e.test(o))return Number.parseInt(o,16);{const e=r.exec(o);if(e){const r=e[1],n=e[2];let a=(s=e[3])&&-1!==s.indexOf(".")?("."===(s=s.replace(/0+$/,""))?s="0":"."===s[0]?s="0"+s:"."===s[s.length-1]&&(s=s.substr(0,s.length-1)),s):s;const u=e[4]||e[6];if(!i.leadingZeros&&n.length>0&&r&&"."!==o[2])return t;if(!i.leadingZeros&&n.length>0&&!r&&"."!==o[1])return t;{const e=Number(o),s=""+e;return-1!==s.search(/[eE]/)||u?i.eNotation?e:t:-1!==o.indexOf(".")?"0"===s&&""===a||s===a||r&&s==="-"+a?e:t:n?a===s||r+a===s?e:t:o===s||o===r+s?e:t}}return t}var s}},737:(t,e,r)=>{var n=r(670),i=r(647),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function h(t){return(t||"").toString().replace(o,"")}var f=[["#","hash"],["?","query"],function(t,e){return g(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function d(t){var e,r=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},n={},i=typeof(t=t||r);if("blob:"===t.protocol)n=new y(unescape(t.pathname),{});else if("string"===i)for(e in n=new y(t,{}),p)delete n[e];else if("object"===i){for(e in t)e in p||(n[e]=t[e]);void 0===n.slashes&&(n.slashes=a.test(t.href))}return n}function g(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function m(t,e){t=(t=h(t)).replace(s,""),e=e||{};var r,n=c.exec(t),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],u=0;return o?a?(r=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(r=n[2]+n[4],u=n[2].length):a?(r=n[3]+n[4],u=n[3].length):r=n[4],"file:"===i?u>=2&&(r=r.slice(2)):g(i)?r=n[4]:i?o&&(r=r.slice(2)):u>=2&&g(e.protocol)&&(r=n[4]),{protocol:i,slashes:o||g(i),slashesCount:u,rest:r}}function y(t,e,r){if(t=(t=h(t)).replace(s,""),!(this instanceof y))return new y(t,e,r);var o,a,u,c,p,E,v=f.slice(),w=typeof e,b=this,T=0;for("object"!==w&&"string"!==w&&(r=e,e=null),r&&"function"!=typeof r&&(r=i.parse),o=!(a=m(t||"",e=d(e))).protocol&&!a.slashes,b.slashes=a.slashes||o&&e.slashes,b.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||l.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!g(b.protocol)))&&(v[3]=[/(.*)/,"pathname"]);T<v.length;T++)"function"!=typeof(c=v[T])?(u=c[0],E=c[1],u!=u?b[E]=t:"string"==typeof u?~(p="@"===u?t.lastIndexOf(u):t.indexOf(u))&&("number"==typeof c[2]?(b[E]=t.slice(0,p),t=t.slice(p+c[2])):(b[E]=t.slice(p),t=t.slice(0,p))):(p=u.exec(t))&&(b[E]=p[1],t=t.slice(0,p.index)),b[E]=b[E]||o&&c[3]&&e[E]||"",c[4]&&(b[E]=b[E].toLowerCase())):t=c(t,b);r&&(b.query=r(b.query)),o&&e.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==e.pathname)&&(b.pathname=function(t,e){if(""===t)return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,i=r[n-1],o=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(o=!0),r.splice(n,1),s--);return o&&r.unshift(""),"."!==i&&".."!==i||r.push(""),r.join("/")}(b.pathname,e.pathname)),"/"!==b.pathname.charAt(0)&&g(b.protocol)&&(b.pathname="/"+b.pathname),n(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(~(p=b.auth.indexOf(":"))?(b.username=b.auth.slice(0,p),b.username=encodeURIComponent(decodeURIComponent(b.username)),b.password=b.auth.slice(p+1),b.password=encodeURIComponent(decodeURIComponent(b.password))):b.username=encodeURIComponent(decodeURIComponent(b.auth)),b.auth=b.password?b.username+":"+b.password:b.username),b.origin="file:"!==b.protocol&&g(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}y.prototype={set:function(t,e,r){var o=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(r||i.parse)(e)),o[t]=e;break;case"port":o[t]=e,n(e,o.protocol)?e&&(o.host=o.hostname+":"+e):(o.host=o.hostname,o[t]="");break;case"hostname":o[t]=e,o.port&&(e+=":"+o.port),o.host=e;break;case"host":o[t]=e,u.test(e)?(e=e.split(":"),o.port=e.pop(),o.hostname=e.join(":")):(o.hostname=e,o.port="");break;case"protocol":o.protocol=e.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";o[t]=e.charAt(0)!==s?s+e:e}else o[t]=e;break;case"username":case"password":o[t]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(o.username=e.slice(0,a),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=e.slice(a+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(e))}for(var c=0;c<f.length;c++){var l=f[c];l[4]&&(o[l[1]]=o[l[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&g(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(t){t&&"function"==typeof t||(t=i.stringify);var e,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(r.protocol&&r.slashes||g(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&g(r.protocol)&&!n&&"/"!==r.pathname&&(s+="@"),(":"===n[n.length-1]||u.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,(e="object"==typeof r.query?t(r.query):r.query)&&(s+="?"!==e.charAt(0)?"?"+e:e),r.hash&&(s+=r.hash),s}},y.extractProtocol=m,y.location=d,y.trimLeft=h,y.qs=i,t.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},$t={};function Ut(t){var e=$t[t];if(void 0!==e)return e.exports;var r=$t[t]={id:t,loaded:!1,exports:{}};return Dt[t].call(r.exports,r,r.exports,Ut),r.loaded=!0,r.exports}Ut.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Ut.d(e,{a:e}),e},Ut.d=(t,e)=>{for(var r in e)Ut.o(e,r)&&!Ut.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Ut.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Ut.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var kt={};Ut.d(kt,{hT:()=>le,O4:()=>he,Kd:()=>ue,YK:()=>ce,UU:()=>$n,Gu:()=>Ee,ky:()=>kr,h4:()=>$r,ch:()=>Ur,hq:()=>_r,i5:()=>jr});var jt=Ut(737),Mt=Ut.n(jt);function Ft(t){if(!Bt(t))throw new Error("Parameter was not an error")}function Bt(t){return!!t&&"object"==typeof t&&"[object Error]"===(e=t,Object.prototype.toString.call(e))||t instanceof Error;var e}class Gt extends Error{constructor(t,e){const r=[...arguments],{options:n,shortMessage:i}=function(t){let e,r="";if(0===t.length)e={};else if(Bt(t[0]))e={cause:t[0]},r=t.slice(1).join(" ")||"";else if(t[0]&&"object"==typeof t[0])e=Object.assign({},t[0]),r=t.slice(1).join(" ")||"";else{if("string"!=typeof t[0])throw new Error("Invalid arguments passed to Layerr");e={},r=r=t.join(" ")||""}return{options:e,shortMessage:r}}(r);let o=i;if(n.cause&&(o=`${o}: ${n.cause.message}`),super(o),this.message=o,n.name&&"string"==typeof n.name?this.name=n.name:this.name="Layerr",n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&"object"==typeof n.info&&Object.assign(this._info,n.info),Error.captureStackTrace){const t=n.constructorOpt||this.constructor;Error.captureStackTrace(this,t)}}static cause(t){return Ft(t),t._cause&&Bt(t._cause)?t._cause:null}static fullStack(t){Ft(t);const e=Gt.cause(t);return e?`${t.stack}\ncaused by: ${Gt.fullStack(e)}`:t.stack??""}static info(t){Ft(t);const e={},r=Gt.cause(t);return r&&Object.assign(e,Gt.info(r)),t._info&&Object.assign(e,t._info),e}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var Vt=Ut(47),zt=Ut.n(Vt);const Xt="__PATH_SEPARATOR_POSIX__",Ht="__PATH_SEPARATOR_WINDOWS__";function Wt(t){try{const e=t.replace(/\//g,Xt).replace(/\\\\/g,Ht);return encodeURIComponent(e).split(Ht).join("\\\\").split(Xt).join("/")}catch(t){throw new Gt(t,"Failed encoding path")}}function qt(t){return t.startsWith("/")?t:"/"+t}function Yt(t){let e=t;return"/"!==e[0]&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function Zt(t){let e=new(Mt())(t).pathname;return e.length<=0&&(e="/"),Yt(e)}function Kt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(){return function(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var r=t.shift();t[0]=r+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<t.length;n++){var i=t[n];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=n<t.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),e.push(i))}var o=e.join("/"),s=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}(e.reduce(((t,e,r)=>((0===r||"/"!==e||"/"===e&&"/"!==t[t.length-1])&&t.push(e),t)),[]))}var Qt=Ut(542),Jt=Ut.n(Qt);function te(t,e){const r=t.url.replace("//",""),n=-1==r.indexOf("/")?"/":r.slice(r.indexOf("/")),i=t.method?t.method.toUpperCase():"GET",o=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",s=`00000000${e.nc}`.slice(-8),a=function(t,e,r,n,i,o,s){const a=s||Jt()(`${e}:${r}:${n}`);return t&&"md5-sess"===t.toLowerCase()?Jt()(`${a}:${i}:${o}`):a}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),u=Jt()(`${i}:${n}`),c=o?Jt()(`${a}:${e.nonce}:${s}:${e.cnonce}:${o}:${u}`):Jt()(`${a}:${e.nonce}:${u}`),l={username:e.username,realm:e.realm,nonce:e.nonce,uri:n,qop:o,response:c,nc:s,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},h=[];for(const t in l)l[t]&&("qop"===t||"nc"===t||"algorithm"===t?h.push(`${t}=${l[t]}`):h.push(`${t}="${l[t]}"`));return`Digest ${h.join(", ")}`}function ee(t){return"digest"===(t.headers&&t.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()}var re=Ut(101),ne=Ut.n(re);function ie(t){return ne().decode(t)}function oe(t,e){var r;return`Basic ${r=`${t}:${e}`,ne().encode(r)}`}const se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:"undefined"!=typeof window?window:globalThis,ae=se.fetch.bind(se),ue=(se.Headers,se.Request),ce=se.Response;let le=function(t){return t.Auto="auto",t.Digest="digest",t.None="none",t.Password="password",t.Token="token",t}({}),he=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 fe(t,e,r,n,i){switch(t.authType){case le.Auto:e&&r&&(t.headers.Authorization=oe(e,r));break;case le.Digest:t.digest=function(t,e,r){return{username:t,password:e,ha1:r,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,r,i);break;case le.None:break;case le.Password:t.headers.Authorization=oe(e,r);break;case le.Token:t.headers.Authorization=`${(o=n).token_type} ${o.access_token}`;break;default:throw new Gt({info:{code:he.InvalidAuthType}},`Invalid auth type: ${t.authType}`)}var o}Ut(345),Ut(800);const pe="@@HOTPATCHER",de=()=>{};function ge(t){return{original:t,methods:[t],final:!1}}class me{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=pe}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||t.__type__!==pe)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((r=>{this.configuration.registry.hasOwnProperty(r)?e&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])})),t._configuration=this.configuration,this}execute(t){const e=this.get(t)||de;for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e(...n)}get(t){const e=this.configuration.registry[t];if(!e)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("Failed creating sequence: No functions provided");return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let i=r;const o=this;for(;e.length>0;)i=[e.shift().apply(o,i)];return i[0]}}(...e.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{chain:n=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if("function"!=typeof e)throw new Error(`Failed patching '${t}': Provided method is not a function`);if(n)this.configuration.registry[t]?this.configuration.registry[t].methods.push(e):this.configuration.registry[t]=ge(e);else if(this.isPatched(t)){const{original:r}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ge(e),{original:r})}else this.configuration.registry[t]=ge(e);return this}patchInline(t,e){this.isPatched(t)||this.patch(t,e);for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return this.execute(t,...n)}plugin(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.forEach((e=>{this.patch(t,e,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if("function"!=typeof this.configuration.registry[t].original)throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let ye=null;function Ee(){return ye||(ye=new me),ye}function ve(t){return function(t){if("object"!=typeof t||null===t||"[object Object]"!=Object.prototype.toString.call(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t)?Object.assign({},t):Object.setPrototypeOf(Object.assign({},t),Object.getPrototypeOf(t))}function we(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];let n=null,i=[...e];for(;i.length>0;){const t=i.shift();n=n?be(n,t):ve(t)}return n}function be(t,e){const r=ve(t);return Object.keys(e).forEach((t=>{r.hasOwnProperty(t)?Array.isArray(e[t])?r[t]=Array.isArray(r[t])?[...r[t],...e[t]]:[...e[t]]:"object"==typeof e[t]&&e[t]?r[t]="object"==typeof r[t]&&r[t]?be(r[t],e[t]):ve(e[t]):r[t]=e[t]:r[t]=e[t]})),r}function Te(t){const e={};for(const r of t.keys())e[r]=t.get(r);return e}function Ne(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return{};const n={};return e.reduce(((t,e)=>(Object.keys(e).forEach((r=>{const i=r.toLowerCase();n.hasOwnProperty(i)?t[n[i]]=e[r]:(n[i]=r,t[r]=e[r])})),t)),{})}Ut(805);const Ae="function"==typeof ArrayBuffer,{toString:Ie}=Object.prototype;function Oe(t){return Ae&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Ie.call(t))}function _e(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function xe(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function Le(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Se=xe((function(t){const e=t._digest;return delete t._digest,e.hasDigestAuth&&(t=we(t,{headers:{Authorization:te(t,e)}})),Le(De(t),(function(r){let n=!1;return i=function(t){return n?t:r},(o=function(){if(401==r.status)return e.hasDigestAuth=function(t,e){if(!ee(t))return!1;const r=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const n=t.headers&&t.headers.get("www-authenticate")||"",i=r.exec(n);if(!i)break;e[i[1]]=i[2]||i[3]}return e.nc+=1,e.cnonce=function(){let t="";for(let e=0;e<32;++e)t=`${t}${"abcdef0123456789"[Math.floor(16*Math.random())]}`;return t}(),!0}(r,e),function(){if(e.hasDigestAuth)return Le(De(t=we(t,{headers:{Authorization:te(t,e)}})),(function(t){return 401==t.status?e.hasDigestAuth=!1:e.nc++,n=!0,t}))}();e.nc++}())&&o.then?o.then(i):i(o);var i,o}))})),Re=xe((function(t,e){return Le(De(t),(function(r){return r.ok?(e.authType=le.Password,r):401==r.status&&ee(r)?(e.authType=le.Digest,fe(e,e.username,e.password,void 0,void 0),t._digest=e.digest,Se(t)):r}))})),Ce=xe((function(t,e){return e.authType===le.Auto?Re(t,e):t._digest?Se(t):De(t)}));function Pe(t,e,r){const n=ve(t);return n.headers=Ne(e.headers,n.headers||{},r.headers||{}),void 0!==r.data&&(n.data=r.data),r.signal&&(n.signal=r.signal),e.httpAgent&&(n.httpAgent=e.httpAgent),e.httpsAgent&&(n.httpsAgent=e.httpsAgent),e.digest&&(n._digest=e.digest),"boolean"==typeof e.withCredentials&&(n.withCredentials=e.withCredentials),n}function De(t){const e=Ee();return e.patchInline("request",(t=>e.patchInline("fetch",ae,t.url,function(t){let e={};const r={method:t.method};if(t.headers&&(e=Ne(e,t.headers)),void 0!==t.data){const[n,i]=function(t){if("string"==typeof t)return[t,{}];if(_e(t))return[t,{}];if(Oe(t))return[t,{}];if(t&&"object"==typeof t)return[JSON.stringify(t),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof t)}(t.data);r.body=n,e=Ne(e,i)}return t.signal&&(r.signal=t.signal),t.withCredentials&&(r.credentials="include"),r.headers=e,r}(t))),t)}var $e=Ut(285);const Ue=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ke={"[: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]},je=t=>t.replace(/[[\]\\-]/g,"\\$&"),Me=t=>t.join(""),Fe=(t,e)=>{const r=e;if("["!==t.charAt(r))throw new Error("not in a brace expression");const n=[],i=[];let o=r+1,s=!1,a=!1,u=!1,c=!1,l=r,h="";t:for(;o<t.length;){const e=t.charAt(o);if("!"!==e&&"^"!==e||o!==r+1){if("]"===e&&s&&!u){l=o+1;break}if(s=!0,"\\"!==e||u){if("["===e&&!u)for(const[e,[s,u,c]]of Object.entries(ke))if(t.startsWith(e,o)){if(h)return["$.",!1,t.length-r,!0];o+=e.length,c?i.push(s):n.push(s),a=a||u;continue t}u=!1,h?(e>h?n.push(je(h)+"-"+je(e)):e===h&&n.push(je(e)),h="",o++):t.startsWith("-]",o+1)?(n.push(je(e+"-")),o+=2):t.startsWith("-",o+1)?(h=e,o+=2):(n.push(je(e)),o++)}else u=!0,o++}else c=!0,o++}if(l<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(0===i.length&&1===n.length&&/^\\?.$/.test(n[0])&&!c)return[(f=2===n[0].length?n[0].slice(-1):n[0],f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,l-r,!1];var f;const p="["+(c?"^":"")+Me(n)+"]",d="["+(c?"":"^")+Me(i)+"]";return[n.length&&i.length?"("+p+"|"+d+")":n.length?p:d,a,l-r,!0]},Be=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},Ge=new Set(["!","?","+","*","@"]),Ve=t=>Ge.has(t),ze="(?!\\.)",Xe=new Set(["[","."]),He=new Set(["..","."]),We=new Set("().*{}+?[]^$\\!"),qe="[^/]",Ye=qe+"*?",Ze=qe+"+?";class Ke{type;#t;#e;#r=!1;#n=[];#i;#o;#s;#a=!1;#u;#c;#l=!1;constructor(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.type=t,t&&(this.#e=!0),this.#i=e,this.#t=this.#i?this.#i.#t:this,this.#u=this.#t===this?r:this.#t.#u,this.#s=this.#t===this?[]:this.#t.#s,"!"!==t||this.#t.#a||this.#s.push(this),this.#o=this.#i?this.#i.#n.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#n)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#n.map((t=>String(t))).join("|")+")":this.#c=this.#n.map((t=>String(t))).join("")}#h(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#s.pop();){if("!"!==t.type)continue;let e=t,r=e.#i;for(;r;){for(let n=e.#o+1;!r.type&&n<r.#n.length;n++)for(const e of t.#n){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(r.#n[n])}e=r,r=e.#i}}return this}push(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(const t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof Ke&&t.#i===this))throw new Error("invalid part: "+t);this.#n.push(t)}}toJSON(){const t=null===this.type?this.#n.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#n.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#i?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#i?.isStart())return!1;if(0===this.#o)return!0;const t=this.#i;for(let e=0;e<this.#o;e++){const r=t.#n[e];if(!(r instanceof Ke&&"!"===r.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#i?.type)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();const t=this.#i?this.#i.#n.length:0;return this.#o===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new Ke(this.type,t);for(const t of this.#n)e.copyIn(t);return e}static#f(t,e,r,n){let i=!1,o=!1,s=-1,a=!1;if(null===e.type){let u=r,c="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,c+=r;else if(o)u===s+1?"^"!==r&&"!"!==r||(a=!0):"]"!==r||u===s+2&&a||(o=!1),c+=r;else if("["!==r)if(n.noext||!Ve(r)||"("!==t.charAt(u))c+=r;else{e.push(c),c="";const i=new Ke(r,e);u=Ke.#f(t,i,u,n),e.push(i)}else o=!0,s=u,a=!1,c+=r}return e.push(c),u}let u=r+1,c=new Ke(null,e);const l=[];let h="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,h+=r;else if(o)u===s+1?"^"!==r&&"!"!==r||(a=!0):"]"!==r||u===s+2&&a||(o=!1),h+=r;else if("["!==r)if(Ve(r)&&"("===t.charAt(u)){c.push(h),h="";const e=new Ke(r,c);c.push(e),u=Ke.#f(t,e,u,n)}else if("|"!==r){if(")"===r)return""===h&&0===e.#n.length&&(e.#l=!0),c.push(h),h="",e.push(...l,c),u;h+=r}else c.push(h),h="",l.push(c),c=new Ke(null,e);else o=!0,s=u,a=!1,h+=r}return e.type=null,e.#e=void 0,e.#n=[t.substring(r-1)],u}static fromGlob(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new Ke(null,void 0,e);return Ke.#f(t,r,0,e),r}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,r,n,i]=this.toRegExpSource();if(!(n||this.#e||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const o=(this.#u.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${e}$`,o),{_src:e,_glob:t})}get options(){return this.#u}toRegExpSource(t){const e=t??!!this.#u.dot;if(this.#t===this&&this.#h(),!this.type){const r=this.isStart()&&this.isEnd(),n=this.#n.map((e=>{const[n,i,o,s]="string"==typeof e?Ke.#p(e,this.#e,r):e.toRegExpSource(t);return this.#e=this.#e||o,this.#r=this.#r||s,n})).join("");let i="";if(this.isStart()&&"string"==typeof this.#n[0]&&(1!==this.#n.length||!He.has(this.#n[0]))){const r=Xe,o=e&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),s=!e&&!t&&r.has(n.charAt(0));i=o?"(?!(?:^|/)\\.\\.?(?:$|/))":s?ze:""}let o="";return this.isEnd()&&this.#t.#a&&"!"===this.#i?.type&&(o="(?:$|\\/)"),[i+n+o,Be(n),this.#e=!!this.#e,this.#r]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let i=this.#d(e);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){const t=this.toString();return this.#n=[t],this.type=null,this.#e=void 0,[t,Be(this.toString()),!1,!1]}let o=!r||t||e?"":this.#d(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let s="";return s="!"===this.type&&this.#l?(this.isStart()&&!e?ze:"")+Ze:n+i+("!"===this.type?"))"+(!this.isStart()||e||t?"":ze)+Ye+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`),[s,Be(i),this.#e=!!this.#e,this.#r]}#d(t){return this.#n.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[r,n,i,o]=e.toRegExpSource(t);return this.#r=this.#r||o,r})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#p(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,i="",o=!1;for(let s=0;s<t.length;s++){const a=t.charAt(s);if(n)n=!1,i+=(We.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[r,n,a,u]=Fe(t,s);if(a){i+=r,o=o||n,s+=a-1,e=e||u;continue}}"*"!==a?"?"!==a?i+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=qe,e=!0):(i+=r&&"*"===t?Ze:Ye,e=!0)}else s===t.length-1?i+="\\\\":n=!0}return[i,Be(t),!!e,o]}}const Qe=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ue(e),!(!r.nocomment&&"#"===e.charAt(0))&&new Ar(e,r).match(t)},Je=/^\*+([^+@!?\*\[\(]*)$/,tr=t=>e=>!e.startsWith(".")&&e.endsWith(t),er=t=>e=>e.endsWith(t),rr=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),nr=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),ir=/^\*+\.\*+$/,or=t=>!t.startsWith(".")&&t.includes("."),sr=t=>"."!==t&&".."!==t&&t.includes("."),ar=/^\.\*+$/,ur=t=>"."!==t&&".."!==t&&t.startsWith("."),cr=/^\*+$/,lr=t=>0!==t.length&&!t.startsWith("."),hr=t=>0!==t.length&&"."!==t&&".."!==t,fr=/^\?+([^+@!?\*\[\(]*)?$/,pr=t=>{let[e,r=""]=t;const n=yr([e]);return r?(r=r.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(r)):n},dr=t=>{let[e,r=""]=t;const n=Er([e]);return r?(r=r.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(r)):n},gr=t=>{let[e,r=""]=t;const n=Er([e]);return r?t=>n(t)&&t.endsWith(r):n},mr=t=>{let[e,r=""]=t;const n=yr([e]);return r?t=>n(t)&&t.endsWith(r):n},yr=t=>{let[e]=t;const r=e.length;return t=>t.length===r&&!t.startsWith(".")},Er=t=>{let[e]=t;const r=e.length;return t=>t.length===r&&"."!==t&&".."!==t},vr="object"==typeof Pt&&Pt?"object"==typeof Pt.env&&Pt.env&&Pt.env.__MINIMATCH_TESTING_PLATFORM__||Pt.platform:"posix";Qe.sep="win32"===vr?"\\":"/";const wr=Symbol("globstar **");Qe.GLOBSTAR=wr,Qe.filter=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>Qe(r,t,e)};const br=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({},t,e)};Qe.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Qe;const e=Qe;return Object.assign((function(r,n){return e(r,n,br(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}))}),{Minimatch:class extends e.Minimatch{constructor(e){super(e,br(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}static defaults(r){return e.defaults(br(t,r)).Minimatch}},AST:class extends e.AST{constructor(e,r){super(e,r,br(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.AST.fromGlob(r,br(t,n))}},unescape:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.unescape(r,br(t,n))},escape:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.escape(r,br(t,n))},filter:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.filter(r,br(t,n))},defaults:r=>e.defaults(br(t,r)),makeRe:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.makeRe(r,br(t,n))},braceExpand:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.braceExpand(r,br(t,n))},match:function(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.match(r,n,br(t,i))},sep:e.sep,GLOBSTAR:wr})};const Tr=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ue(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:$e(t)};Qe.braceExpand=Tr,Qe.makeRe=function(t){return new Ar(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).makeRe()},Qe.match=function(t,e){const r=new Ar(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return t=t.filter((t=>r.match(t))),r.options.nonull&&!t.length&&t.push(e),t};const Nr=/[?*]|[+@!]\(.*?\)|\[|\]/;class Ar{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ue(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||vr,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.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 t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Nr.test(t[2])||Nr.test(t[3])),r=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(r)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let r=0;r<t[e].length;r++)"**"===t[e][r]&&(t[e][r]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let r=e;for(;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const r=t[t.length-1];return"**"===e&&"**"===r?t:".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let r=1;r<t.length-1;r++){const n=t[r];1===r&&""===n&&""===t[0]||"."!==n&&""!==n||(e=!0,t.splice(r,1),r--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let r=0;for(;-1!==(r=t.indexOf("..",r+1));){const n=t[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(r-1,2),r-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let r of t){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let o=r[n+1];const s=r[n+2],a=r[n+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;e=!0,r.splice(n,1);const u=r.slice(0);u[n]="**",t.push(u),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<r.length-1;t++){const n=r[t];1===t&&""===n&&""===r[0]||"."!==n&&""!==n||(e=!0,r.splice(t,1),t--)}"."!==r[0]||2!==r.length||"."!==r[1]&&""!==r[1]||(e=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){const t=r[i-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...t),0===r.length&&r.push(""),i-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let r=e+1;r<t.length;r++){const n=this.partsMatch(t[e],t[r],!this.preserveMultipleSlashes);if(n){t[e]=[],t[r]=n;break}}return t.filter((t=>t.length))}partsMatch(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0,i=0,o=[],s="";for(;n<t.length&&i<e.length;)if(t[n]===e[i])o.push("b"===s?e[i]:t[n]),n++,i++;else if(r&&"**"===t[n]&&e[i]===t[n+1])o.push(t[n]),n++;else if(r&&"**"===e[i]&&t[n]===e[i+1])o.push(e[i]),i++;else if("*"!==t[n]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===s)return!1;s="b",o.push(e[i]),n++,i++}else{if("b"===s)return!1;s="a",o.push(t[n]),n++,i++}return t.length===e.length&&o}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.options;if(this.isWindows){const r="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!r&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),o=n?3:r?0:void 0,s=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof o&&"number"==typeof s){const[r,n]=[t[o],e[s]];r.toLowerCase()===n.toLowerCase()&&(e[s]=r,s>o?e=e.slice(s):o>s&&(t=t.slice(o)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,u=e.length;o<a&&s<u;o++,s++){this.debug("matchOne loop");var c=e[s],l=t[o];if(this.debug(e,c,l),!1===c)return!1;if(c===wr){this.debug("GLOBSTAR",[e,c,l]);var h=o,f=s+1;if(f===u){for(this.debug("** at the end");o<a;o++)if("."===t[o]||".."===t[o]||!n.dot&&"."===t[o].charAt(0))return!1;return!0}for(;h<a;){var p=t[h];if(this.debug("\nglobstar while",t,h,e,f,p),this.matchOne(t.slice(h),e.slice(f),r))return this.debug("globstar found match!",h,a,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,h,e,f);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!r||(this.debug("\n>>> no match, partial?",t,h,e,f),h!==a))}let i;if("string"==typeof c?(i=l===c,this.debug("string match",c,l,i)):(i=c.test(l),this.debug("pattern match",c,l,i)),!i)return!1}if(o===a&&s===u)return!0;if(o===a)return r;if(s===u)return o===a-1&&""===t[o];throw new Error("wtf?")}braceExpand(){return Tr(this.pattern,this.options)}parse(t){Ue(t);const e=this.options;if("**"===t)return wr;if(""===t)return"";let r,n=null;(r=t.match(cr))?n=e.dot?hr:lr:(r=t.match(Je))?n=(e.nocase?e.dot?nr:rr:e.dot?er:tr)(r[1]):(r=t.match(fr))?n=(e.nocase?e.dot?dr:pr:e.dot?gr:mr)(r):(r=t.match(ir))?n=e.dot?sr:or:(r=t.match(ar))&&(n=ur);const i=Ke.fromGlob(t,this.options).toMMPattern();return n&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:n}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,r=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===wr?wr:t._src}));return e.forEach(((t,n)=>{const i=e[n+1],o=e[n-1];t===wr&&o!==wr&&(void 0===o?void 0!==i&&i!==wr?e[n+1]="(?:\\/|"+r+"\\/)?"+i:e[n]=r:void 0===i?e[n-1]=o+"(?:\\/|"+r+")?":i!==wr&&(e[n-1]=o+"(?:\\/|\\/"+r+"\\/)"+i,e[n+1]=wr))})),e.filter((t=>t!==wr)).join("/")})).join("|");const[o,s]=t.length>1?["(?:",")"]:["",""];i="^"+o+i+s+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let t=n.length-2;!o&&t>=0;t--)o=n[t];for(let t=0;t<i.length;t++){const s=i[t];let a=n;if(r.matchBase&&1===s.length&&(a=[o]),this.matchOne(a,s,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return Qe.defaults(t).Minimatch}}function Ir(t){const e=new Error(`${arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}Invalid response: ${t.status} ${t.statusText}`);return e.status=t.status,e.response=t,e}function Or(t,e){const{status:r}=e;if(401===r&&t.digest)return e;if(r>=400)throw Ir(e);return e}function _r(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?{data:e,headers:t.headers?Te(t.headers):{},status:t.status,statusText:t.statusText}:e}Qe.AST=Ke,Qe.Minimatch=Ar,Qe.escape=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},Qe.unescape=Be;const xr=(Lr=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"COPY",headers:{Destination:Kt(t.remoteURL,Wt(r)),Overwrite:!1===n.overwrite?"F":"T",Depth:n.shallow?"0":"infinity"}},t,n);return s=function(e){Or(t,e)},(o=Ce(i,t))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(Lr.apply(this,t))}catch(t){return Promise.reject(t)}});var Lr,Sr=Ut(635),Rr=Ut(829),Cr=Ut.n(Rr),Pr=function(t){return t.Array="array",t.Object="object",t.Original="original",t}(Pr||{});function Dr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pr.Original;const n=Cr().get(t,e);return"array"===r&&!1===Array.isArray(n)?[n]:"object"===r&&Array.isArray(n)?n[0]:n}function $r(t){return new Promise((e=>{e(function(t){const{multistatus:e}=t;if(""===e)return{multistatus:{response:[]}};if(!e)throw new Error("Invalid response: No root multistatus found");const r={multistatus:Array.isArray(e)?e[0]:e};return Cr().set(r,"multistatus.response",Dr(r,"multistatus.response",Pr.Array)),Cr().set(r,"multistatus.response",Cr().get(r,"multistatus.response").map((t=>function(t){const e=Object.assign({},t);return e.status?Cr().set(e,"status",Dr(e,"status",Pr.Object)):(Cr().set(e,"propstat",Dr(e,"propstat",Pr.Object)),Cr().set(e,"propstat.prop",Dr(e,"propstat.prop",Pr.Object))),e}(t)))),r}(new Sr.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(t,e,r)=>"true"===e||"false"===e?"true"===e:e,tagValueProcessor(t,e,r){if(!r.endsWith("propstat.prop.displayname"))return e}}).parse(t)))}))}function Ur(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{getlastmodified:n=null,getcontentlength:i="0",resourcetype:o=null,getcontenttype:s=null,getetag:a=null}=t,u=o&&"object"==typeof o&&void 0!==o.collection?"directory":"file",c={filename:e,basename:zt().basename(e),lastmod:n,size:parseInt(i,10),type:u,etag:"string"==typeof a?a.replace(/"/g,""):null};return"file"===u&&(c.mime=s&&"string"==typeof s?s.split(";")[0]:""),r&&(void 0!==t.displayname&&(t.displayname=String(t.displayname)),c.props=t),c}function kr(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=null;try{t.multistatus.response[0].propstat&&(n=t.multistatus.response[0])}catch(t){}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:i,status:o}}=n,[s,a,u]=o.split(" ",3),c=parseInt(a,10);if(c>=400){const t=new Error(`Invalid response: ${c} ${u}`);throw t.status=c,t}return Ur(i,Yt(e),r)}function jr(t){switch(String(t)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(t),10)}}function Mr(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Fr=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{details:n=!1}=r,i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,r);return Mr(Ce(i,t),(function(r){return Or(t,r),Mr(r.text(),(function(t){return Mr($r(t),(function(t){const i=kr(t,e,n);return _r(r,i,n)}))}))}))}));function Br(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Gr=Vr((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=function(t){if(!t||"/"===t)return[];let e=t;const r=[];do{r.push(e),e=zt().dirname(e)}while(e&&"/"!==e);return r}(Yt(e));n.sort(((t,e)=>t.length>e.length?1:e.length>t.length?-1:0));let i=!1;return function(t,e,r){if("function"==typeof t[Hr]){var n,i,o,s=t[Hr]();function l(t){try{for(;!(n=s.next()).done;)if((t=e(n.value))&&t.then){if(!Yr(t))return void t.then(l,o||(o=Wr.bind(null,i=new qr,2)));t=t.v}i?Wr(i,1,t):i=t}catch(t){Wr(i||(i=new qr),2,t)}}if(l(),s.return){var a=function(t){try{n.done||s.return()}catch(t){}return t};if(i&&i.then)return i.then(a,(function(t){throw a(t)}));a()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c<t.length;c++)u.push(t[c]);return function(t,e,r){var n,i,o=-1;return function s(a){try{for(;++o<t.length&&(!r||!r());)if((a=e(o))&&a.then){if(!Yr(a))return void a.then(s,i||(i=Wr.bind(null,n=new qr,2)));a=a.v}n?Wr(n,1,a):n=a}catch(t){Wr(n||(n=new qr),2,t)}}(),n}(u,(function(t){return e(u[t])}),(function(){return!1}))}(n,(function(n){return o=function(){return function(r,i){try{var o=Br(Fr(t,n),(function(t){if("directory"!==t.type)throw new Error(`Path includes a file: ${e}`)}))}catch(t){return i(t)}return o&&o.then?o.then(void 0,i):o}(0,(function(e){const o=e;return function(){if(404===o.status)return i=!0,Xr(Zr(t,n,{...r,recursive:!1}));throw e}()}))},(s=function(){if(i)return Xr(Zr(t,n,{...r,recursive:!1}))}())&&s.then?s.then(o):o();var o,s}))}));function Vr(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function zr(){}function Xr(t,e){if(!e)return t&&t.then?t.then(zr):Promise.resolve()}const Hr="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Wr(t,e,r){if(!t.s){if(r instanceof qr){if(!r.s)return void(r.o=Wr.bind(null,t,e));1&e&&(e=r.s),r=r.v}if(r&&r.then)return void r.then(Wr.bind(null,t,e),Wr.bind(null,t,2));t.s=e,t.v=r;const n=t.o;n&&n(t)}}const qr=function(){function t(){}return t.prototype.then=function(e,r){const n=new t,i=this.s;if(i){const t=1&i?e:r;if(t){try{Wr(n,1,t(this.v))}catch(t){Wr(n,2,t)}return n}return this}return this.o=function(t){try{const i=t.v;1&t.s?Wr(n,1,e?e(i):i):r?Wr(n,1,r(i)):Wr(n,2,i)}catch(t){Wr(n,2,t)}},n},t}();function Yr(t){return t instanceof qr&&1&t.s}const Zr=Vr((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!0===r.recursive)return Gr(t,e,r);const n=Pe({url:Kt(t.remoteURL,(i=Wt(e),i.endsWith("/")?i:i+"/")),method:"MKCOL"},t,r);var i;return Br(Ce(n,t),(function(e){Or(t,e)}))}));var Kr=Ut(388),Qr=Ut.n(Kr);const Jr=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={};if("object"==typeof r.range&&"number"==typeof r.range.start){let t=`bytes=${r.range.start}-`;"number"==typeof r.range.end&&(t=`${t}${r.range.end}`),n.Range=t}const i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"GET",headers:n},t,r);return s=function(e){if(Or(t,e),n.Range&&206!==e.status){const t=new Error(`Invalid response code for partial request: ${e.status}`);throw t.status=e.status,t}return r.callback&&setTimeout((()=>{r.callback(e)}),0),e.body},(o=Ce(i,t))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s})),tn=()=>{},en=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e,r){r.url||(r.url=Kt(t.remoteURL,Wt(e)));const n=Pe(r,t,{});return o=function(e){return Or(t,e),e},(i=Ce(n,t))&&i.then||(i=Promise.resolve(i)),o?i.then(o):i;var i,o})),rn=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Pe({url:Kt(t.remoteURL,Wt(e)),method:"DELETE"},t,r);return o=function(e){Or(t,e)},(i=Ce(n,t))&&i.then||(i=Promise.resolve(i)),o?i.then(o):i;var i,o})),nn=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n,i){try{var o=(s=Fr(t,e,r),a=function(){return!0},s&&s.then||(s=Promise.resolve(s)),a?s.then(a):s)}catch(t){return i(t)}var s,a;return o&&o.then?o.then(void 0,i):o}(0,(function(t){if(404===t.status)return!1;throw t}))}));function on(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const sn=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Pe({url:Kt(t.remoteURL,Wt(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},t,r);return on(Ce(n,t),(function(n){return Or(t,n),on(n.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return on($r(i),(function(i){const o=qt(e);let s=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=zt().join(e,"/"),{multistatus:{response:s}}=t,a=s.map((t=>{const e=function(t){try{return t.replace(/^https?:\/\/[^\/]+/,"")}catch(t){throw new Gt(t,"Failed normalising HREF")}}(t.href),{propstat:{prop:r}}=t;return Ur(r,"/"===o?decodeURIComponent(Yt(e)):Yt(zt().relative(decodeURIComponent(o),decodeURIComponent(e))),n)}));return i?a:a.filter((t=>t.basename&&("file"===t.type||t.filename!==r.replace(/\/$/,""))))}(i,qt(t.remoteBasePath||t.remotePath),o,r.details,r.includeSelf);return r.glob&&(s=function(t,e){return t.filter((t=>Qe(t.filename,e,{matchBase:!0})))}(s,r.glob)),_r(n,s,r.details)}))}))}))}));function an(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}const un=an((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Pe({url:Kt(t.remoteURL,Wt(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[fn]},t,r);return cn(Ce(n,t),(function(e){return Or(t,e),cn(e.text(),(function(t){return _r(e,t,r.details)}))}))}));function cn(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const ln=an((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Pe({url:Kt(t.remoteURL,Wt(e)),method:"GET"},t,r);return cn(Ce(n,t),(function(e){let n;return Or(t,e),function(t,e){var r=t();return r&&r.then?r.then(e):e()}((function(){return cn(e.arrayBuffer(),(function(t){n=t}))}),(function(){return _r(e,n,r.details)}))}))})),hn=an((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{format:n="binary"}=r;if("binary"!==n&&"text"!==n)throw new Gt({info:{code:he.InvalidOutputFormat}},`Invalid output format: ${n}`);return"text"===n?un(t,e,r):ln(t,e,r)})),fn=t=>t;function pn(t){return new Sr.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(dn({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:t}}},"d"))}function dn(t,e){const r={...t};for(const t in r)r.hasOwnProperty(t)&&(r[t]&&"object"==typeof r[t]&&-1===t.indexOf(":")?(r[`${e}:${t}`]=dn(r[t],e),delete r[t]):!1===/^@_/.test(t)&&(r[`${e}:${t}`]=r[t],delete r[t]));return r}function gn(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function mn(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}const yn=mn((function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"UNLOCK",headers:{"Lock-Token":r}},t,n);return gn(Ce(i,t),(function(e){if(Or(t,e),204!==e.status&&200!==e.status)throw Ir(e)}))})),En=mn((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{refreshToken:n,timeout:i=vn}=r,o={Accept:"text/plain,application/xml",Timeout:i};n&&(o.If=n);const s=Pe({url:Kt(t.remoteURL,Wt(e)),method:"LOCK",headers:o,data:pn(t.contactHref)},t,r);return gn(Ce(s,t),(function(e){return Or(t,e),gn(e.text(),(function(t){const r=(o=t,new Sr.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(o)),n=Cr().get(r,"prop.lockdiscovery.activelock.locktoken.href"),i=Cr().get(r,"prop.lockdiscovery.activelock.timeout");var o;if(!n)throw Ir(e,"No lock token received: ");return{token:n,serverTimeout:i}}))}))})),vn="Infinite, Second-4100000000";function wn(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const bn=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.path||"/",n=Pe({url:Kt(t.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,e);return wn(Ce(n,t),(function(r){return Or(t,r),wn(r.text(),(function(t){return wn($r(t),(function(t){const n=function(t){try{const[e]=t.multistatus.response,{propstat:{prop:{"quota-used-bytes":r,"quota-available-bytes":n}}}=e;return void 0!==r&&void 0!==n?{used:parseInt(String(r),10),available:jr(n)}:null}catch(t){}return null}(t);return _r(r,n,e.details)}))}))}))}));function Tn(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Nn=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{details:n=!1}=r,i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":t.headers["Content-Type"]||"application/xml; charset=utf-8"}},t,r);return Tn(Ce(i,t),(function(r){return Or(t,r),Tn(r.text(),(function(t){return Tn($r(t),(function(t){const i=function(t,e,r){const n={truncated:!1,results:[]};return n.truncated=t.multistatus.response.some((t=>"507"===(t.status||t.propstat?.status).split(" ",3)?.[1]&&t.href.replace(/\/$/,"").endsWith(Wt(e).replace(/\/$/,"")))),t.multistatus.response.forEach((t=>{if(void 0===t.propstat)return;const e=t.href.split("/").map(decodeURIComponent).join("/");n.results.push(Ur(t.propstat.prop,e,r))})),n}(t,e,n);return _r(r,i,n)}))}))}))})),An=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Pe({url:Kt(t.remoteURL,Wt(e)),method:"MOVE",headers:{Destination:Kt(t.remoteURL,Wt(r)),Overwrite:!1===n.overwrite?"F":"T"}},t,n);return s=function(e){Or(t,e)},(o=Ce(i,t))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s}));var In=Ut(172);const On=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{contentLength:i=!0,overwrite:o=!0}=n,s={"Content-Type":"application/octet-stream"};!1===i||(s["Content-Length"]="number"==typeof i?`${i}`:`${function(t){if(Oe(t))return t.byteLength;if(_e(t))return t.length;if("string"==typeof t)return(0,In.d)(t);throw new Gt({info:{code:he.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),o||(s["If-None-Match"]="*");const a=Pe({url:Kt(t.remoteURL,Wt(e)),method:"PUT",headers:s,data:r},t,n);return c=function(e){try{Or(t,e)}catch(t){const e=t;if(412!==e.status||o)throw e;return!1}return!0},(u=Ce(a,t))&&u.then||(u=Promise.resolve(u)),c?u.then(c):u;var u,c})),_n=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}((function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Pe({url:Kt(t.remoteURL,Wt(e)),method:"OPTIONS"},t,r);return o=function(e){try{Or(t,e)}catch(t){throw t}return{compliance:(e.headers.get("DAV")??"").split(",").map((t=>t.trim())),server:e.headers.get("Server")??""}},(i=Ce(n,t))&&i.then||(i=Promise.resolve(i)),o?i.then(o):i;var i,o}));function xn(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Ln=Cn((function(t,e,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(r>n||r<0)throw new Gt({info:{code:he.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const s={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},a=Pe({url:Kt(t.remoteURL,Wt(e)),method:"PUT",headers:s,data:i},t,o);return xn(Ce(a,t),(function(e){Or(t,e)}))}));function Sn(t,e){var r=t();return r&&r.then?r.then(e):e(r)}const Rn=Cn((function(t,e,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(r>n||r<0)throw new Gt({info:{code:he.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const s={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},a=Pe({url:Kt(t.remoteURL,Wt(e)),method:"PATCH",headers:s,data:i},t,o);return xn(Ce(a,t),(function(e){Or(t,e)}))}));function Cn(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}const Pn=Cn((function(t,e,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return xn(_n(t,e,o),(function(s){let a=!1;return Sn((function(){if(s.compliance.includes("sabredav-partialupdate"))return xn(Rn(t,e,r,n,i,o),(function(t){return a=!0,t}))}),(function(u){let c=!1;return a?u:Sn((function(){if(s.server.includes("Apache")&&s.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return xn(Ln(t,e,r,n,i,o),(function(t){return c=!0,t}))}),(function(t){if(c)return t;throw new Gt({info:{code:he.NotSupported}},"Not supported")}))}))}))})),Dn="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function $n(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:i=Dn,ha1:o,headers:s={},httpAgent:a,httpsAgent:u,password:c,token:l,username:h,withCredentials:f}=e;let p=r;p||(p=h||c?le.Password:le.None);const d={authType:p,remoteBasePath:n,contactHref:i,ha1:o,headers:Object.assign({},s),httpAgent:a,httpsAgent:u,password:c,remotePath:Zt(t),remoteURL:t,token:l,username:h,withCredentials:f};return fe(d,h,c,l,o),{copyFile:(t,e,r)=>xr(d,t,e,r),createDirectory:(t,e)=>Zr(d,t,e),createReadStream:(t,e)=>function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=new(0,Qr().PassThrough);return Jr(t,e,r).then((t=>{t.pipe(n)})).catch((t=>{n.emit("error",t)})),n}(d,t,e),createWriteStream:(t,e,r)=>function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tn;const i=new(0,Qr().PassThrough),o={};!1===r.overwrite&&(o["If-None-Match"]="*");const s=Pe({url:Kt(t.remoteURL,Wt(e)),method:"PUT",headers:o,data:i,maxRedirects:0},t,r);return Ce(s,t).then((e=>Or(t,e))).then((t=>{setTimeout((()=>{n(t)}),0)})).catch((t=>{i.emit("error",t)})),i}(d,t,e,r),customRequest:(t,e)=>en(d,t,e),deleteFile:(t,e)=>rn(d,t,e),exists:(t,e)=>nn(d,t,e),getDirectoryContents:(t,e)=>sn(d,t,e),getFileContents:(t,e)=>hn(d,t,e),getFileDownloadLink:t=>function(t,e){let r=Kt(t.remoteURL,Wt(e));const n=/^https:/i.test(r)?"https":"http";switch(t.authType){case le.None:break;case le.Password:{const e=ie(t.headers.Authorization.replace(/^Basic /i,"").trim());r=r.replace(/^https?:\/\//,`${n}://${e}@`);break}default:throw new Gt({info:{code:he.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${t.authType}`)}return r}(d,t),getFileUploadLink:t=>function(t,e){let r=`${Kt(t.remoteURL,Wt(e))}?Content-Type=application/octet-stream`;const n=/^https:/i.test(r)?"https":"http";switch(t.authType){case le.None:break;case le.Password:{const e=ie(t.headers.Authorization.replace(/^Basic /i,"").trim());r=r.replace(/^https?:\/\//,`${n}://${e}@`);break}default:throw new Gt({info:{code:he.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${t.authType}`)}return r}(d,t),getHeaders:()=>Object.assign({},d.headers),getQuota:t=>bn(d,t),lock:(t,e)=>En(d,t,e),moveFile:(t,e,r)=>An(d,t,e,r),putFileContents:(t,e,r)=>On(d,t,e,r),partialUpdateFileContents:(t,e,r,n,i)=>Pn(d,t,e,r,n,i),getDAVCompliance:t=>_n(d,t),search:(t,e)=>Nn(d,t,e),setHeaders:t=>{d.headers=Object.assign({},t)},stat:(t,e)=>Fr(d,t,e),unlock:(t,e,r)=>yn(d,t,e,r)}}var Un=kt.UU,kn=(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))(kn||{});class jn{context;constructor(t){this.context=t||{}}formatMessage(t,e,r){let n="["+kn[e].toUpperCase()+"] ";return r&&r.app&&(n+=r.app+": "),"string"==typeof t?n+t:(n+=`Unexpected ${t.name}`,t.message&&(n+=` "${t.message}"`),e===kn.Debug&&t.stack&&(n+=`\n\nStack trace:\n${t.stack}`),n)}log(t,e,r){if(!("number"==typeof this.context?.level&&t<this.context?.level))switch("object"==typeof e&&void 0===r?.error&&(r.error=e),t){case kn.Debug:console.debug(this.formatMessage(e,kn.Debug,r),r);break;case kn.Info:console.info(this.formatMessage(e,kn.Info,r),r);break;case kn.Warn:console.warn(this.formatMessage(e,kn.Warn,r),r);break;case kn.Error:console.error(this.formatMessage(e,kn.Error,r),r);break;case kn.Fatal:default:console.error(this.formatMessage(e,kn.Fatal,r),r)}}debug(t,e){this.log(kn.Debug,t,Object.assign({},this.context,e))}info(t,e){this.log(kn.Info,t,Object.assign({},this.context,e))}warn(t,e){this.log(kn.Warn,t,Object.assign({},this.context,e))}error(t,e){this.log(kn.Error,t,Object.assign({},this.context,e))}fatal(t,e){this.log(kn.Fatal,t,Object.assign({},this.context,e))}}function Mn(t){return new jn(t)}class Fn{context;factory;constructor(t){this.context={},this.factory=t}setApp(t){return this.context.app=t,this}setLogLevel(t){return this.context.level=t,this}setUid(t){return this.context.uid=t,this}detectUser(){const t=It();return null!==t&&(this.context.uid=t.uid),this}detectLogLevel(){const t=this,e=()=>{"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=window._oc_config?.loglevel??kn.Warn,window._oc_debug&&(t.context.level=kn.Debug),document.removeEventListener("readystatechange",e)):document.addEventListener("readystatechange",e)};return e(),this}build(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}function Bn(){return new Fn(Mn)}function Gn(t,e){return t=t.replace(/\\/g,"/").replace(/\/+$/g,"").replace(/.*\//,""),e&&e!==t&&t.endsWith(e)?t.substring(0,t.length-e.length):t}function Vn(t){const e=(t=t.replaceAll(/\\/g,"/")).split("/");return e.length<=1?".":(e.pop(),1===e.length&&""===e[0]?"/":e.join("/"))}function zn(...t){if(arguments.length<1)return"";const e=t.filter((t=>t.length>0));if(e.length<1)return"";const r=e[e.length-1],n="/"===e[0].charAt(0),i="/"===r.charAt(r.length-1),o=e.reduce(((t,e)=>t.concat(e.split("/"))),[]);let s=!n;const a=o.reduce(((t,e)=>""===e?t:s?(s=!1,t+e):t+"/"+e),"");return i?a+"/":a}const Xn=Bn().setApp("@f7cloud/files").detectUser().build();var Hn=(t=>(t.Folder="folder",t.File="file",t))(Hn||{}),Wn=(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))(Wn||{});const qn=function(t,e){return null!==t.match(e)},Yn=(t,e)=>{if(t.id&&"number"!=typeof t.id)throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch(t){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&&"string"!=typeof t.displayname)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||"string"!=typeof t.mime||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&"number"!=typeof t.size&&void 0!==t.size)throw new Error("Invalid size type");if("permissions"in t&&void 0!==t.permissions&&!("number"==typeof t.permissions&&t.permissions>=Wn.NONE&&t.permissions<=Wn.ALL))throw new Error("Invalid permissions");if(t.owner&&null!==t.owner&&"string"!=typeof t.owner)throw new Error("Invalid owner type");if(t.attributes&&"object"!=typeof t.attributes)throw new Error("Invalid attributes type");if(t.root&&"string"!=typeof t.root)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&&qn(t.source,e)){const r=t.source.match(e)[0];if(!t.source.includes(zn(r,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(Zn).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var Zn=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(Zn||{});class Kn{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(Kn.prototype)).filter((t=>"function"==typeof t[1].get&&"__proto__"!==t[0])).map((t=>t[0]));handler={set:(t,e,r)=>!this.readonlyAttributes.includes(e)&&Reflect.set(t,e,r),deleteProperty:(t,e)=>!this.readonlyAttributes.includes(e)&&Reflect.deleteProperty(t,e),get:(t,e,r)=>this.readonlyAttributes.includes(e)?(Xn.warn(`Accessing "Node.attributes.${e}" is deprecated, access it directly on the Node instance.`),Reflect.get(this,e)):Reflect.get(t,e,r)};constructor(t,e){t.mime||(t.mime="application/octet-stream"),Yn(t,e||this._knownDavService),this._data={displayname:t.attributes?.displayname,...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(t.attributes??{}),e&&(this._knownDavService=e)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+((e=this.source.slice(t.length))?e.split("/").map(encodeURIComponent).join("/"):e);var e}get basename(){return Gn(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){Yn({...this._data,displayname:t},this._knownDavService),this._data.displayname=t}get extension(){return function(t){const e=Gn(t),r=e.lastIndexOf(".");return r>0?e.substring(r):""}(this.source)}get dirname(){if(this.root){let t=this.source;this.isDavResource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),r=this.root.replace(/\/$/,"");return Vn(t.slice(e+r.length)||"/")}return Vn(new URL(this.source).pathname)}get mime(){return this._data.mime||"application/octet-stream"}set mime(t){t??="application/octet-stream",Yn({...this._data,mime:t},this._knownDavService),this._data.mime=t}get mtime(){return this._data.mtime}set mtime(t){Yn({...this._data,mtime:t},this._knownDavService),this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){Yn({...this._data,size:t},this._knownDavService),this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return null!==this.owner||this.isDavResource?void 0!==this._data.permissions?this._data.permissions:Wn.NONE:Wn.READ}set permissions(t){Yn({...this._data,permissions:t},this._knownDavService),this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return qn(this.source,this._knownDavService)}get isDavRessource(){return this.isDavResource}get root(){if(this._data.root)return this._data.root.replace(/^(.+)\/$/,"$1");if(this.isDavResource){return Vn(this.source).split(this._knownDavService).pop()||null}return null}get path(){if(this.root){let t=this.source;this.isDavResource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),r=this.root.replace(/\/$/,"");return t.slice(e+r.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id}get status(){return this._data?.status}set status(t){Yn({...this._data,status:t},this._knownDavService),this._data.status=t}get data(){return structuredClone(this._data)}move(t){Yn({...this._data,source:t},this._knownDavService);const e=this.basename;this._data.source=t,this.displayname===e&&this.basename!==e&&(this.displayname=this.basename)}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move(Vn(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[e,r]of Object.entries(t))try{void 0===r?delete this.attributes[e]:this.attributes[e]=r}catch(t){if(t instanceof TypeError)continue;throw t}}}class Qn extends Kn{get type(){return Hn.File}clone(){return new Qn(this.data)}}class Jn extends Kn{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return Hn.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}clone(){return new Jn(this.data)}}_t()?Ot("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]'):It();!function(){const t=xt("dav");_t()&&t.replace("remote.php","public.php")}();var ti=class extends EventTarget{dispatchTypedEvent(t,e){return super.dispatchEvent(e)}},ei=r(3141),ri=r(5606),ni=(t=>(t.DEFAULT="default",t.HIDDEN="hidden",t))(ni||{});function ii(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oi,si,ai,ui;function ci(){if(si)return oi;si=1;const t="object"==typeof ri&&ri.env&&ri.env.NODE_DEBUG&&/\bsemver\b/i.test(ri.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};return oi=t}function li(){if(ui)return ai;ui=1;const t=Number.MAX_SAFE_INTEGER||9007199254740991;return ai={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}var hi,fi,pi,di,gi,mi,yi,Ei,vi,wi={exports:{}};function bi(){return hi||(hi=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=li(),o=ci(),s=(e=t.exports={}).re=[],a=e.safeRe=[],u=e.src=[],c=e.safeSrc=[],l=e.t={};let h=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,n]],d=(t,e,r)=>{const n=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=h++;o(t,i,e),l[t]=i,u[i]=e,c[i]=n,s[i]=new RegExp(e,r?"g":void 0),a[i]=new RegExp(n,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${f}+`),d("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),d("FULL",`^${u[l.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),d("LOOSE",`^${u[l.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),d("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),d("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",u[l.COERCE],!0),d("COERCERTLFULL",u[l.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(wi,wi.exports)),wi.exports}function Ti(){if(yi)return mi;yi=1;const t=ci(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=li(),{safeRe:n,t:i}=bi(),o=function(){if(pi)return fi;pi=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return fi=r=>r?"object"!=typeof r?t:r:e}(),{compareIdentifiers:s}=function(){if(gi)return di;gi=1;const t=/^[0-9]+$/,e=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};return di={compareIdentifiers:e,rcompareIdentifiers:(t,r)=>e(r,t)}}();class a{constructor(s,u){if(u=o(u),s instanceof a){if(s.loose===!!u.loose&&s.includePrerelease===!!u.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",s,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const c=s.trim().match(u.loose?n[i.LOOSE]:n[i.FULL]);if(!c)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<r)return e}return t})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(t("SemVer.compare",this.version,this.options,e),!(e instanceof a)){if("string"==typeof e&&e===this.version)return 0;e=new a(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(t){return t instanceof a||(t=new a(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(e){if(e instanceof a||(e=new a(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=e.prerelease[r];if(t("prerelease compare",r,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return s(n,i)}while(++r)}compareBuild(e){e instanceof a||(e=new a(e,this.options));let r=0;do{const n=this.build[r],i=e.build[r];if(t("build compare",r,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return s(n,i)}while(++r)}inc(t,e,r){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?n[i.PRERELEASELOOSE]:n[i.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===s(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return mi=a}!function(){if(vi)return Ei;vi=1;const t=Ti();Ei=(e,r)=>new t(e,r).major}();var Ni,Ai,Ii,Oi;!function(){if(Oi)return Ii;Oi=1;const t=function(){if(Ai)return Ni;Ai=1;const t=Ti();return Ni=(e,r,n=!1)=>{if(e instanceof t)return e;try{return new t(e,r)}catch(t){if(!n)return null;throw t}}}();Ii=(e,r)=>{const n=t(e,r);return n?n.version:null}}();class _i extends ti{_views=[];_currentView=null;register(t){if(this._views.find((e=>e.id===t.id)))throw new Error(`View id ${t.id} is already registered`);this._views.push(t),this.dispatchTypedEvent("update",new CustomEvent("update"))}remove(t){const e=this._views.findIndex((e=>e.id===t));-1!==e&&(this._views.splice(e,1),this.dispatchTypedEvent("update",new CustomEvent("update")))}setActive(t){this._currentView=t;const e=new CustomEvent("updateActive",{detail:t});this.dispatchTypedEvent("updateActive",e)}get active(){return this._currentView}get views(){return this._views}}class xi{_column;constructor(t){Li(t),this._column=t}get id(){return this._column.id}get title(){return this._column.title}get render(){return this._column.render}get sort(){return this._column.sort}get summary(){return this._column.summary}}const Li=function(t){if(!t.id||"string"!=typeof t.id)throw new Error("A column id is required");if(!t.title||"string"!=typeof t.title)throw new Error("A column title is required");if(!t.render||"function"!=typeof t.render)throw new Error("A render function is required");if(t.sort&&"function"!=typeof t.sort)throw new Error("Column sortFunction must be a function");if(t.summary&&"function"!=typeof t.summary)throw new Error("Column summary must be a function");return!0};var Si,Ri={};var Ci=(Si||(Si=1,function(t){t.parser=function(t,e){return new n(t,e)},t.SAXParser=n,t.SAXStream=o,t.createStream=function(t,e){return new o(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(e,i){if(!(this instanceof n))return new n(e,i);var o=this;!function(t){for(var e=0,n=r.length;e<n;e++)t[r[e]]=""}(o),o.q=o.c="",o.bufferCheckPosition=t.MAX_BUFFER_LENGTH,o.opt=i||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?"toLowerCase":"toUpperCase",o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!e,o.noscript=!(!e&&!o.opt.noscript),o.state=N.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(l)),void 0===o.opt.unquotedAttributeValues&&(o.opt.unquotedAttributeValues=!e),o.trackPosition=!1!==o.opt.position,o.trackPosition&&(o.position=o.line=o.column=0),I(o,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),n.prototype={end:function(){S(this)},write:function(e){var n=this;if(this.error)throw this.error;if(n.closed)return L(n,"Cannot write after close. Assign an onready handler.");if(null===e)return S(n);"object"==typeof e&&(e=e.toString());for(var i=0,o="";o=M(e,i++),n.c=o,o;)switch(n.trackPosition&&(n.position++,"\n"===o?(n.line++,n.column=0):n.column++),n.state){case N.BEGIN:if(n.state=N.BEGIN_WHITESPACE,"\ufeff"===o)continue;j(n,o);continue;case N.BEGIN_WHITESPACE:j(n,o);continue;case N.TEXT:if(n.sawRoot&&!n.closedRoot){for(var u=i-1;o&&"<"!==o&&"&"!==o;)(o=M(e,i++))&&n.trackPosition&&(n.position++,"\n"===o?(n.line++,n.column=0):n.column++);n.textNode+=e.substring(u,i-1)}"<"!==o||n.sawRoot&&n.closedRoot&&!n.strict?(g(o)||n.sawRoot&&!n.closedRoot||R(n,"Text data outside of root node."),"&"===o?n.state=N.TEXT_ENTITY:n.textNode+=o):(n.state=N.OPEN_WAKA,n.startTagPosition=n.position);continue;case N.SCRIPT:"<"===o?n.state=N.SCRIPT_ENDING:n.script+=o;continue;case N.SCRIPT_ENDING:"/"===o?n.state=N.CLOSE_TAG:(n.script+="<"+o,n.state=N.SCRIPT);continue;case N.OPEN_WAKA:if("!"===o)n.state=N.SGML_DECL,n.sgmlDecl="";else if(g(o));else if(E(h,o))n.state=N.OPEN_TAG,n.tagName=o;else if("/"===o)n.state=N.CLOSE_TAG,n.tagName="";else if("?"===o)n.state=N.PROC_INST,n.procInstName=n.procInstBody="";else{if(R(n,"Unencoded <"),n.startTagPosition+1<n.position){var c=n.position-n.startTagPosition;o=new Array(c).join(" ")+o}n.textNode+="<"+o,n.state=N.TEXT}continue;case N.SGML_DECL:if(n.sgmlDecl+o==="--"){n.state=N.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&!0!==n.doctype&&n.sgmlDecl?(n.state=N.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+o,n.sgmlDecl=""):(n.sgmlDecl+o).toUpperCase()===s?(O(n,"onopencdata"),n.state=N.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+o).toUpperCase()===a?(n.state=N.DOCTYPE,(n.doctype||n.sawRoot)&&R(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):">"===o?(O(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=N.TEXT):m(o)?(n.state=N.SGML_DECL_QUOTED,n.sgmlDecl+=o):n.sgmlDecl+=o;continue;case N.SGML_DECL_QUOTED:o===n.q&&(n.state=N.SGML_DECL,n.q=""),n.sgmlDecl+=o;continue;case N.DOCTYPE:">"===o?(n.state=N.TEXT,O(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=o,"["===o?n.state=N.DOCTYPE_DTD:m(o)&&(n.state=N.DOCTYPE_QUOTED,n.q=o));continue;case N.DOCTYPE_QUOTED:n.doctype+=o,o===n.q&&(n.q="",n.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:"]"===o?(n.doctype+=o,n.state=N.DOCTYPE):"<"===o?(n.state=N.OPEN_WAKA,n.startTagPosition=n.position):m(o)?(n.doctype+=o,n.state=N.DOCTYPE_DTD_QUOTED,n.q=o):n.doctype+=o;continue;case N.DOCTYPE_DTD_QUOTED:n.doctype+=o,o===n.q&&(n.state=N.DOCTYPE_DTD,n.q="");continue;case N.COMMENT:"-"===o?n.state=N.COMMENT_ENDING:n.comment+=o;continue;case N.COMMENT_ENDING:"-"===o?(n.state=N.COMMENT_ENDED,n.comment=x(n.opt,n.comment),n.comment&&O(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+o,n.state=N.COMMENT);continue;case N.COMMENT_ENDED:">"!==o?(R(n,"Malformed comment"),n.comment+="--"+o,n.state=N.COMMENT):n.doctype&&!0!==n.doctype?n.state=N.DOCTYPE_DTD:n.state=N.TEXT;continue;case N.CDATA:"]"===o?n.state=N.CDATA_ENDING:n.cdata+=o;continue;case N.CDATA_ENDING:"]"===o?n.state=N.CDATA_ENDING_2:(n.cdata+="]"+o,n.state=N.CDATA);continue;case N.CDATA_ENDING_2:">"===o?(n.cdata&&O(n,"oncdata",n.cdata),O(n,"onclosecdata"),n.cdata="",n.state=N.TEXT):"]"===o?n.cdata+="]":(n.cdata+="]]"+o,n.state=N.CDATA);continue;case N.PROC_INST:"?"===o?n.state=N.PROC_INST_ENDING:g(o)?n.state=N.PROC_INST_BODY:n.procInstName+=o;continue;case N.PROC_INST_BODY:if(!n.procInstBody&&g(o))continue;"?"===o?n.state=N.PROC_INST_ENDING:n.procInstBody+=o;continue;case N.PROC_INST_ENDING:">"===o?(O(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=N.TEXT):(n.procInstBody+="?"+o,n.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:E(f,o)?n.tagName+=o:(C(n),">"===o?$(n):"/"===o?n.state=N.OPEN_TAG_SLASH:(g(o)||R(n,"Invalid character in tag name"),n.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:">"===o?($(n,!0),U(n)):(R(n,"Forward-slash in opening tag not followed by >"),n.state=N.ATTRIB);continue;case N.ATTRIB:if(g(o))continue;">"===o?$(n):"/"===o?n.state=N.OPEN_TAG_SLASH:E(h,o)?(n.attribName=o,n.attribValue="",n.state=N.ATTRIB_NAME):R(n,"Invalid attribute name");continue;case N.ATTRIB_NAME:"="===o?n.state=N.ATTRIB_VALUE:">"===o?(R(n,"Attribute without value"),n.attribValue=n.attribName,D(n),$(n)):g(o)?n.state=N.ATTRIB_NAME_SAW_WHITE:E(f,o)?n.attribName+=o:R(n,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if("="===o)n.state=N.ATTRIB_VALUE;else{if(g(o))continue;R(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",O(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===o?$(n):E(h,o)?(n.attribName=o,n.state=N.ATTRIB_NAME):(R(n,"Invalid attribute name"),n.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(g(o))continue;m(o)?(n.q=o,n.state=N.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||L(n,"Unquoted attribute value"),n.state=N.ATTRIB_VALUE_UNQUOTED,n.attribValue=o);continue;case N.ATTRIB_VALUE_QUOTED:if(o!==n.q){"&"===o?n.state=N.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=o;continue}D(n),n.q="",n.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:g(o)?n.state=N.ATTRIB:">"===o?$(n):"/"===o?n.state=N.OPEN_TAG_SLASH:E(h,o)?(R(n,"No whitespace between attributes"),n.attribName=o,n.attribValue="",n.state=N.ATTRIB_NAME):R(n,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!y(o)){"&"===o?n.state=N.ATTRIB_VALUE_ENTITY_U:n.attribValue+=o;continue}D(n),">"===o?$(n):n.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(n.tagName)">"===o?U(n):E(f,o)?n.tagName+=o:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=N.SCRIPT):(g(o)||R(n,"Invalid tagname in closing tag"),n.state=N.CLOSE_TAG_SAW_WHITE);else{if(g(o))continue;v(h,o)?n.script?(n.script+="</"+o,n.state=N.SCRIPT):R(n,"Invalid tagname in closing tag."):n.tagName=o}continue;case N.CLOSE_TAG_SAW_WHITE:if(g(o))continue;">"===o?U(n):R(n,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var l,w;switch(n.state){case N.TEXT_ENTITY:l=N.TEXT,w="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:l=N.ATTRIB_VALUE_QUOTED,w="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:l=N.ATTRIB_VALUE_UNQUOTED,w="attribValue"}if(";"===o){var b=k(n);n.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(b)?(n.entity="",n.state=l,n.write(b)):(n[w]+=b,n.entity="",n.state=l)}else E(n.entity.length?d:p,o)?n.entity+=o:(R(n,"Invalid character in entity name"),n[w]+="&"+n.entity+o,n.entity="",n.state=l);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,s=r.length;o<s;o++){var a=e[r[o]].length;if(a>n)switch(r[o]){case"textNode":_(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:L(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,a)}var u=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=u+e.position}(n),n},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;_(t=this),""!==t.cdata&&(O(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(O(t,"onscript",t.script),t.script="")}};try{e=require("stream").Stream}catch(t){e=function(){}}e||(e=function(){});var i=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function o(t,r){if(!(this instanceof o))return new o(t,r);e.apply(this),this._parser=new n(t,r),this.writable=!0,this.readable=!0;var s=this;this._parser.onend=function(){s.emit("end")},this._parser.onerror=function(t){s.emit("error",t),s._parser.error=null},this._decoder=null,i.forEach((function(t){Object.defineProperty(s,"on"+t,{get:function(){return s._parser["on"+t]},set:function(e){if(!e)return s.removeAllListeners(t),s._parser["on"+t]=e,e;s.on(t,e)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(e.prototype,{constructor:{value:o}}),o.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=ei.I;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(t,r){var n=this;return n._parser["on"+t]||-1===i.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,r)};var s="[CDATA[",a="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",l={xml:u,xmlns:c},h=/[:_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]/,f=/[:_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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_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]/,d=/[#:_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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function m(t){return'"'===t||"'"===t}function y(t){return">"===t||g(t)}function E(t,e){return t.test(e)}function v(t,e){return!E(t,e)}var w,b,T,N=0;for(var A in t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[A]]=A;function I(t,e,r){t[e]&&t[e](r)}function O(t,e,r){t.textNode&&_(t),I(t,e,r)}function _(t){t.textNode=x(t.opt,t.textNode),t.textNode&&I(t,"ontext",t.textNode),t.textNode=""}function x(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function L(t,e){return _(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,I(t,"onerror",e),t}function S(t){return t.sawRoot&&!t.closedRoot&&R(t,"Unclosed root tag"),t.state!==N.BEGIN&&t.state!==N.BEGIN_WHITESPACE&&t.state!==N.TEXT&&L(t,"Unexpected end"),_(t),t.c="",t.closed=!0,I(t,"onend"),n.call(t,t.strict,t.opt),t}function R(t,e){if("object"!=typeof t||!(t instanceof n))throw new Error("bad call to strictFail");t.strict&&L(t,e)}function C(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",r)}function P(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function D(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=P(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==u)R(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==c)R(t,"xmlns: prefix must be bound to "+c+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function $(t,e){if(t.opt.xmlns){var r=t.tag,n=P(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(R(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(e){O(t,"onopennamespace",{prefix:e,uri:r.ns[e]})}));for(var o=0,s=t.attribList.length;o<s;o++){var a=t.attribList[o],u=a[0],c=a[1],l=P(u,!0),h=l.prefix,f=l.local,p=""===h?"":r.ns[h]||"",d={name:u,value:c,prefix:h,local:f,uri:p};h&&"xmlns"!==h&&!p&&(R(t,"Unbound namespace prefix: "+JSON.stringify(h)),d.uri=h),t.tag.attributes[u]=d,O(t,"onattribute",d)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),O(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=N.TEXT:t.state=N.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function U(t){if(!t.tagName)return R(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=N.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=N.SCRIPT);O(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--&&t.tags[e].name!==n;)R(t,"Unexpected close tag");if(e<0)return R(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=N.TEXT);t.tagName=r;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach((function(e){var r=o.ns[e];O(t,"onclosenamespace",{prefix:e,uri:r})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=N.TEXT}function k(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r?(R(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function j(t,e){"<"===e?(t.state=N.OPEN_WAKA,t.startTagPosition=t.position):g(e)||(R(t,"Non-whitespace before first tag."),t.textNode=e,t.state=N.TEXT)}function M(t,e){var r="";return e<t.length&&(r=t.charAt(e)),r}N=t.STATE,String.fromCodePoint||(w=String.fromCharCode,b=Math.floor,T=function(){var t,e,r=[],n=-1,i=arguments.length;if(!i)return"";for(var o="";++n<i;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||b(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,r.push(t,e)),(n+1===i||r.length>16384)&&(o+=w.apply(null,r),r.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:T,configurable:!0,writable:!0}):String.fromCodePoint=T)}(Ri)),Ri);const Pi=ii(Ci),Di={"http://www.w3.org/2000/svg":{ext:"svg",mime:"image/svg+xml"},"http://www.w3.org/1999/xhtml":{ext:"xhtml",mime:"application/xhtml+xml"},"http://www.opengis.net/kml/2.2":{ext:"kml",mime:"application/vnd.google-earth.kml+xml"},"http://www.opengis.net/gml":{ext:"gml",mime:"application/gml+xml"}},$i={rss:{ext:"rss",mime:"application/rss+xml"},"score-partwise":{ext:"musicxml",mime:"application/vnd.recordare.musicxml+xml"},svg:{ext:"svg",mime:"image/svg+xml"}};class Ui{constructor(t){this.options=t??{},this.firstTag=!0,this.onEnd=!1,this.parser=Pi.parser(!0,{xmlns:!0}),this.nesting=0,this.parser.onerror=t=>{t.message.startsWith("Invalid character entity")||(this.fileType=void 0,this.onEnd=!0)},this.parser.onopentag=t=>{++this.nesting,this.firstTag&&!this.onEnd&&(this.firstTag=!1,t.uri?this.fileType=Di[t.uri]:t.name&&(this.fileType=$i[t.name.toLowerCase()]),this.fileType&&!this.options.fullScan&&(this.onEnd=!0))},this.parser.onclosetag=()=>{--this.nesting}}write(t){this.parser.write(t)}close(){this.parser.close(),this.onEnd=!0}isValid(){return 0===this.nesting}}const ki=function(t){if(!t.id||"string"!=typeof t.id)throw new Error("View id is required and must be a string");if(!t.name||"string"!=typeof t.name)throw new Error("View name is required and must be a string");if("caption"in t&&"string"!=typeof t.caption)throw new Error("View caption must be a string");if(!t.getContents||"function"!=typeof t.getContents)throw new Error("View getContents is required and must be a function");if("hidden"in t&&"boolean"!=typeof t.hidden)throw new Error("View hidden must be a boolean");if(!t.icon||"string"!=typeof t.icon||!function(t,{validate:e=!0}={}){if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);if(0===(t=t.trim()).length)return!1;const r=new Ui({fullScan:e});if(e){if(r.write(t),!r.isValid())return!1}else{const e=128;let n=0;for(;t.length>n&&!r.onEnd;)r.write(t.slice(n,Math.min(n+e,t.length))),n+=e}return"svg"===r.fileType?.ext}(t.icon))throw new Error("View icon is required and must be a valid svg string");if("order"in t&&"number"!=typeof t.order)throw new Error("View order must be a number");if(t.columns&&t.columns.forEach((t=>{if(!(t instanceof xi))throw new Error("View columns must be an array of Column. Invalid column found")})),t.emptyView&&"function"!=typeof t.emptyView)throw new Error("View emptyView must be a function");if(t.parent&&"string"!=typeof t.parent)throw new Error("View parent must be a string");if("sticky"in t&&"boolean"!=typeof t.sticky)throw new Error("View sticky must be a boolean");if("expanded"in t&&"boolean"!=typeof t.expanded)throw new Error("View expanded must be a boolean");if(t.defaultSortKey&&"string"!=typeof t.defaultSortKey)throw new Error("View defaultSortKey must be a string");if(t.loadChildViews&&"function"!=typeof t.loadChildViews)throw new Error("View loadChildViews must be a function");return!0};Error;function ji(t){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(t)}function Mi(){Mi=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),a=new S(n||[]);return i(s,"_invoke",{value:O(t,r,a)}),s}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",g="completed",m={};function y(){}function E(){}function v(){}var w={};c(w,s,(function(){return this}));var b=Object.getPrototypeOf,T=b&&b(b(R([])));T&&T!==r&&n.call(T,s)&&(w=T);var N=v.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(i,o,s,a){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==ji(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(l).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,a)}))}a(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var i=f;return function(o,s){if(i===d)throw Error("Generator is already running");if(i===g){if("throw"===o)throw s;return{value:t,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?g:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=g,n.method="throw",n.arg=c.arg)}}}function _(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(ji(e)+" is not iterable")}return E.prototype=v,i(N,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:E,configurable:!0}),E.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},A(I.prototype),c(I.prototype,a,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var s=new I(l(t,r,n,i),o);return e.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},A(N),c(N,u,"Generator"),c(N,s,(function(){return this})),c(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Fi,Bi=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},Gi=new class{_action;constructor(t){this.validateAction(t),this._action=t}get id(){return this._action.id}get displayName(){return this._action.displayName}get title(){return this._action.title}get iconSvgInline(){return this._action.iconSvgInline}get enabled(){return this._action.enabled}get exec(){return this._action.exec}get execBatch(){return this._action.execBatch}get hotkey(){return this._action.hotkey}get order(){return this._action.order}get parent(){return this._action.parent}get default(){return this._action.default}get destructive(){return this._action.destructive}get inline(){return this._action.inline}get renderInline(){return this._action.renderInline}validateAction(t){if(!t.id||"string"!=typeof t.id)throw new Error("Invalid id");if(!t.displayName||"function"!=typeof t.displayName)throw new Error("Invalid displayName function");if("title"in t&&"function"!=typeof t.title)throw new Error("Invalid title function");if(!t.iconSvgInline||"function"!=typeof t.iconSvgInline)throw new Error("Invalid iconSvgInline function");if(!t.exec||"function"!=typeof t.exec)throw new Error("Invalid exec function");if("enabled"in t&&"function"!=typeof t.enabled)throw new Error("Invalid enabled function");if("execBatch"in t&&"function"!=typeof t.execBatch)throw new Error("Invalid execBatch function");if("order"in t&&"number"!=typeof t.order)throw new Error("Invalid order");if(void 0!==t.destructive&&"boolean"!=typeof t.destructive)throw new Error("Invalid destructive flag");if("parent"in t&&"string"!=typeof t.parent)throw new Error("Invalid parent");if(t.default&&!Object.values(ni).includes(t.default))throw new Error("Invalid default");if("inline"in t&&"function"!=typeof t.inline)throw new Error("Invalid inline function");if("renderInline"in t&&"function"!=typeof t.renderInline)throw new Error("Invalid renderInline function");if("hotkey"in t&&void 0!==t.hotkey){if("object"!=typeof t.hotkey)throw new Error("Invalid hotkey configuration");if("string"!=typeof t.hotkey.key||!t.hotkey.key)throw new Error("Missing or invalid hotkey key");if("string"!=typeof t.hotkey.description||!t.hotkey.description)throw new Error("Missing or invalid hotkey description")}}}({id:"open-group-folders",displayName:function(){return ut("files","Open Team folder")},iconSvgInline:function(){return""},enabled:function(t,e){return"groupfolders"===e.id},exec:function(t){return Bi(this,void 0,void 0,Mi().mark((function e(){var r;return Mi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.attributes.mountPoint,window.OCP.Files.Router.goToRoute(null,{view:"files"},{dir:r}),e.abrupt("return",null);case 3:case"end":return e.stop()}}),e)})))},default:ni.DEFAULT,order:-1e3}),Vi="/groupfolders/".concat(null===(Fi=It())||void 0===Fi?void 0:Fi.uid);const zi=Un(xt("dav"+Vi),{headers:{requesttoken:vt()||""}});function Xi(t){return Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(t)}function Hi(){Hi=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),a=new S(n||[]);return i(s,"_invoke",{value:O(t,r,a)}),s}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",g="completed",m={};function y(){}function E(){}function v(){}var w={};c(w,s,(function(){return this}));var b=Object.getPrototypeOf,T=b&&b(b(R([])));T&&T!==r&&n.call(T,s)&&(w=T);var N=v.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(i,o,s,a){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Xi(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(l).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,a)}))}a(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var i=f;return function(o,s){if(i===d)throw Error("Generator is already running");if(i===g){if("throw"===o)throw s;return{value:t,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?g:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=g,n.method="throw",n.arg=c.arg)}}}function _(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(Xi(e)+" is not iterable")}return E.prototype=v,i(N,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:E,configurable:!0}),E.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},A(I.prototype),c(I.prototype,a,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var s=new I(l(t,r,n,i),o);return e.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},A(N),c(N,u,"Generator"),c(N,s,(function(){return this})),c(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Wi=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},qi=function(t){var e,r,n=t.props,i=Wn.NONE,o=null===(e=It())||void 0===e?void 0:e.uid,s=St("/core/preview?fileId={fileid}&x=32&y=32&forceIcon=0",t.props),a=((null==n?void 0:n["mount-point"])||"").replace("/files/".concat(null===(r=It())||void 0===r?void 0:r.uid),""),u=(null==n?void 0:n["group-folder-id"])||0,c={id:(null==n?void 0:n.fileid)||0,source:xt("dav"+Vi+"/"+u),mtime:new Date(t.lastmod),mime:t.mime,size:(null==n?void 0:n.size)||0,permissions:i,owner:o,root:Vi,attributes:Object.assign(Object.assign(Object.assign({},t),t.props),{"mount-type":"group",mountPoint:a,previewUrl:s,displayname:t.filename.replace(/^\/+/,"")})};return delete c.attributes.props,"file"===t.type?new Qn(c):new Jn(c)};!function(t){void 0===window._nc_fileactions&&(window._nc_fileactions=[],Xn.debug("FileActions initialized")),window._nc_fileactions.find((e=>e.id===t.id))?Xn.error(`FileAction ${t.id} already registered`,{action:t}):window._nc_fileactions.push(t)}(Gi),(void 0===window._nc_navigation&&(window._nc_navigation=new _i,Xn.debug("Navigation service initialized")),window._nc_navigation).register(new class{_view;constructor(t){ki(t),this._view=t}get id(){return this._view.id}get name(){return this._view.name}get caption(){return this._view.caption}get emptyTitle(){return this._view.emptyTitle}get emptyCaption(){return this._view.emptyCaption}get getContents(){return this._view.getContents}get hidden(){return this._view.hidden}get icon(){return this._view.icon}set icon(t){this._view.icon=t}get order(){return this._view.order}set order(t){this._view.order=t}get params(){return this._view.params}set params(t){this._view.params=t}get columns(){return this._view.columns}get emptyView(){return this._view.emptyView}get parent(){return this._view.parent}get sticky(){return this._view.sticky}get expanded(){return this._view.expanded}set expanded(t){this._view.expanded=t}get defaultSortKey(){return this._view.defaultSortKey}get loadChildViews(){return this._view.loadChildViews}}({id:"groupfolders",name:ut("groupfolders","Team folders"),caption:ut("groupfolders","List of Team folders."),emptyTitle:ut("groupfolders","No Team folders yet"),emptyCaption:ut("groupfolders","Team folders will show up here"),icon:'<svg viewBox="0 0 24 24" height="24" width="24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M20 18H4V8h16m0-2h-8l-2-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8c0-1.11-.9-2-2-2Z"/><path d="M12 9.4a1.75 1.75 0 0 1 1.75 1.75A1.75 1.75 0 0 1 12 12.9a1.75 1.75 0 0 1-1.75-1.75A1.75 1.75 0 0 1 12 9.4m-3.5 1.25c.28 0 .54.075.765.21-.075.715.135 1.425.565 1.98-.25.48-.75.81-1.33.81a1.5 1.5 0 0 1-1.5-1.5 1.5 1.5 0 0 1 1.5-1.5m7 0a1.5 1.5 0 0 1 1.5 1.5 1.5 1.5 0 0 1-1.5 1.5c-.58 0-1.08-.33-1.33-.81.43-.555.64-1.265.565-1.98.225-.135.485-.21.765-.21m-6.75 5.125c0-1.035 1.455-1.875 3.25-1.875s3.25.84 3.25 1.875v.875h-6.5v-.875M6 16.65v-.75c0-.695.945-1.28 2.225-1.45-.295.34-.475.81-.475 1.325v.875H6m12 0h-1.75v-.875c0-.515-.18-.985-.475-1.325 1.28.17 2.225.755 2.225 1.45Z"/></svg>',order:20,columns:[],getContents:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Wi(void 0,[].concat(e),void 0,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return Hi().mark((function e(){var r,n,i,o;return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zi.getDirectoryContents(t,{details:!0,data:'<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:"\n\txmlns:oc="http://owncloud.org/ns"\n\txmlns:nc="http://f7cloud.org/ns">\n\t<d:prop>\n\t\t<d:getcontentlength />\n\t\t<d:getcontenttype />\n\t\t<d:getetag />\n\t\t<d:getlastmodified />\n\t\t<d:resourcetype />\n\t\t<oc:fileid />\n\t\t<oc:owner-id />\n\t\t<oc:permissions />\n\t\t<oc:size />\n\t\t<nc:has-preview />\n\t\t<nc:mount-point />\n\t\t<nc:group-folder-id />\n\t</d:prop>\n</d:propfind>',includeSelf:!0});case 2:if(r=e.sent,n=r.data.find((function(e){return e.filename===t}))){e.next=6;break}throw new Error("Could not find root in response");case 6:return i=r.data.filter((function(t){return t!==n})).map(qi),o=i.filter((function(t,e,r){var n=t.source;return r.findIndex((function(t){return t.source===n}))===e})),e.abrupt("return",{folder:qi(n),contents:o});case 9:case"end":return e.stop()}}),e)}))()}))}}))})()})();
//# sourceMappingURL=groupfolders-init.js.map?v=80b36afa891c6a2b12bd