Files
2026-02-13 22:24:27 +08:00

48 lines
458 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";var gu=Object.defineProperty;var bu=(t,e,n)=>e in t?gu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Me=(t,e,n)=>bu(t,typeof e!="symbol"?e+"":e,n);const mr=require("siyuan");var Mi=typeof document<"u"?document.currentScript:null;function De(){}const Ql=t=>t;function Ee(t,e){for(const n in e)t[n]=e[n];return t}function $l(t){return t()}function Xo(){return Object.create(null)}function Ot(t){t.forEach($l)}function Dr(t){return typeof t=="function"}function Ue(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function vu(t){return Object.keys(t).length===0}function Ge(t,e,n,r){if(t){const i=ec(t,e,n,r);return t[0](i)}}function ec(t,e,n,r){return t[1]&&r?Ee(n.ctx.slice(),t[1](r(e))):n.ctx}function Je(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(e.dirty.length,i.length);for(let f=0;f<o;f+=1)s[f]=e.dirty[f]|i[f];return s}return e.dirty|i}return e.dirty}function Qe(t,e,n,r,i,s){if(i){const o=ec(e,n,r,s);t.p(o,i)}}function $e(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function hn(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function rt(t,e){const n={};e=new Set(e);for(const r in t)!e.has(r)&&r[0]!=="$"&&(n[r]=t[r]);return n}function Br(t){const e={};for(const n in t)e[n]=!0;return e}function Zs(t){return t&&Dr(t.destroy)?t.destroy:De}const _u=["",!0,1,"true","contenteditable"],tc=typeof window<"u";let nc=tc?()=>window.performance.now():()=>Date.now(),_o=tc?t=>requestAnimationFrame(t):De;const Hn=new Set;function rc(t){Hn.forEach(e=>{e.c(t)||(Hn.delete(e),e.f())}),Hn.size!==0&&_o(rc)}function ic(t){let e;return Hn.size===0&&_o(rc),{promise:new Promise(n=>{Hn.add(e={c:t,f:n})}),abort(){Hn.delete(e)}}}function le(t,e){t.appendChild(e)}function sc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function yu(t){const e=ce("style");return e.textContent="/* empty */",wu(sc(t),e),e.sheet}function wu(t,e){return le(t.head||t,e),e.sheet}function se(t,e,n){t.insertBefore(e,n||null)}function ie(t){t.parentNode&&t.parentNode.removeChild(t)}function ku(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ce(t){return document.createElement(t)}function ft(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pt(t){return document.createTextNode(t)}function Ae(){return Pt(" ")}function Et(){return Pt("")}function ze(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Eu=["width","height"];function je(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Eu.indexOf(r)===-1?t[r]=e[r]:W(t,r,e[r])}function Cu(t,e){Object.keys(e).forEach(n=>{Au(t,n,e[n])})}function Au(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:W(t,e,n)}function Gn(t){return/-/.test(t)?Cu:je}function Su(t){return Array.from(t.childNodes)}function Jt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Du(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Bu(t,e,n){~_u.indexOf(n)?Du(t,e):Jt(t,e)}function ae(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Jn(t,e,n){t.classList.toggle(e,!0)}function oc(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}const ci=new Map;let fi=0;function Fu(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Tu(t,e){const n={stylesheet:yu(e),rules:{}};return ci.set(t,n),n}function ac(t,e,n,r,i,s,o,f=0){const l=16.666/r;let a=`{
`;for(let p=0;p<=1;p+=l){const g=e+(n-e)*s(p);a+=p*100+`%{${o(g,1-g)}}
`}const c=a+`100% {${o(n,1-n)}}
}`,u=`__svelte_${Fu(c)}_${f}`,h=sc(t),{stylesheet:d,rules:b}=ci.get(h)||Tu(h,t);b[u]||(b[u]=!0,d.insertRule(`@keyframes ${u} ${c}`,d.cssRules.length));const x=t.style.animation||"";return t.style.animation=`${x?`${x}, `:""}${u} ${r}ms linear ${i}ms 1 both`,fi+=1,u}function Xs(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(t.style.animation=r.join(", "),fi-=i,fi||Ru())}function Ru(){_o(()=>{fi||(ci.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&ie(e)}),ci.clear())})}let vr;function gr(t){vr=t}function tr(){if(!vr)throw new Error("Function called outside component initialization");return vr}function Fr(t){tr().$$.on_mount.push(t)}function Ou(t){tr().$$.after_update.push(t)}function yo(t){tr().$$.on_destroy.push(t)}function pn(){const t=tr();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=oc(e,n,{cancelable:r});return i.slice().forEach(o=>{o.call(t,s)}),!s.defaultPrevented}return!0}}function Pu(t,e){return tr().$$.context.set(t,e),e}function Yn(t){return tr().$$.context.get(t)}const Mn=[],dt=[];let Kn=[];const Gs=[],lc=Promise.resolve();let Js=!1;function cc(){Js||(Js=!0,lc.then(fc))}function _n(){return cc(),lc}function Qn(t){Kn.push(t)}function Iu(t){Gs.push(t)}const ji=new Set;let Pn=0;function fc(){if(Pn!==0)return;const t=vr;do{try{for(;Pn<Mn.length;){const e=Mn[Pn];Pn++,gr(e),Lu(e.$$)}}catch(e){throw Mn.length=0,Pn=0,e}for(gr(null),Mn.length=0,Pn=0;dt.length;)dt.pop()();for(let e=0;e<Kn.length;e+=1){const n=Kn[e];ji.has(n)||(ji.add(n),n())}Kn.length=0}while(Mn.length);for(;Gs.length;)Gs.pop()();Js=!1,ji.clear(),gr(t)}function Lu(t){if(t.fragment!==null){t.update(),Ot(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Qn)}}function qu(t){const e=[],n=[];Kn.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Kn=e}let lr;function uc(){return lr||(lr=Promise.resolve(),lr.then(()=>{lr=null})),lr}function ui(t,e,n){t.dispatchEvent(oc(`${e?"intro":"outro"}${n}`))}const ei=new Set;let cn;function Ne(){cn={r:0,c:[],p:cn}}function We(){cn.r||Ot(cn.c),cn=cn.p}function K(t,e){t&&t.i&&(ei.delete(t),t.i(e))}function X(t,e,n,r){if(t&&t.o){if(ei.has(t))return;ei.add(t),cn.c.push(()=>{ei.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const dc={duration:0};function Nu(t,e,n){const r={direction:"in"};let i=e(t,n,r),s=!1,o,f,l=0;function a(){o&&Xs(t,o)}function c(){const{delay:h=0,duration:d=300,easing:b=Ql,tick:x=De,css:p}=i||dc;p&&(o=ac(t,0,1,d,h,b,p,l++)),x(0,1);const g=nc()+h,m=g+d;f&&f.abort(),s=!0,Qn(()=>ui(t,!0,"start")),f=ic(v=>{if(s){if(v>=m)return x(1,0),ui(t,!0,"end"),a(),s=!1;if(v>=g){const _=b((v-g)/d);x(_,1-_)}}return s})}let u=!1;return{start(){u||(u=!0,Xs(t),Dr(i)?(i=i(r),uc().then(c)):c())},invalidate(){u=!1},end(){s&&(a(),s=!1)}}}function Wu(t,e,n){const r={direction:"out"};let i=e(t,n,r),s=!0,o;const f=cn;f.r+=1;let l;function a(){const{delay:c=0,duration:u=300,easing:h=Ql,tick:d=De,css:b}=i||dc;b&&(o=ac(t,1,0,u,c,h,b));const x=nc()+c,p=x+u;Qn(()=>ui(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),ic(g=>{if(s){if(g>=p)return d(0,1),ui(t,!1,"end"),--f.r||Ot(f.c),!1;if(g>=x){const m=h((g-x)/u);d(1-m,m)}}return s})}return Dr(i)?uc().then(()=>{i=i(r),a()}):a(),{end(c){c&&"inert"in t&&(t.inert=l),c&&i.tick&&i.tick(1,0),s&&(o&&Xs(t,o),s=!1)}}}function di(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Mu(t,e){X(t,1,1,()=>{e.delete(t.key)})}function ju(t,e,n,r,i,s,o,f,l,a,c,u){let h=t.length,d=s.length,b=h;const x={};for(;b--;)x[t[b].key]=b;const p=[],g=new Map,m=new Map,v=[];for(b=d;b--;){const w=u(i,s,b),k=n(w);let S=o.get(k);S?v.push(()=>S.p(w,e)):(S=a(k,w),S.c()),g.set(k,p[b]=S),k in x&&m.set(k,Math.abs(b-x[k]))}const _=new Set,C=new Set;function y(w){K(w,1),w.m(f,c),o.set(w.key,w),c=w.first,d--}for(;h&&d;){const w=p[d-1],k=t[h-1],S=w.key,E=k.key;w===k?(c=w.first,h--,d--):g.has(E)?!o.has(S)||_.has(S)?y(w):C.has(E)?h--:m.get(S)>m.get(E)?(C.add(S),y(w)):(_.add(E),h--):(l(k,o),h--)}for(;h--;){const w=t[h];g.has(w.key)||l(w,o)}for(;d;)y(p[d-1]);return Ot(v),p}function Ct(t,e){const n={},r={},i={$$scope:1};let s=t.length;for(;s--;){const o=t[s],f=e[s];if(f){for(const l in o)l in f||(r[l]=1);for(const l in f)i[l]||(n[l]=f[l],i[l]=1);t[s]=f}else for(const l in o)i[l]=1}for(const o in r)o in n||(n[o]=void 0);return n}function zu(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function we(t){t&&t.c()}function _e(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Qn(()=>{const s=t.$$.on_mount.map($l).filter(Dr);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ot(s),t.$$.on_mount=[]}),i.forEach(Qn)}function ye(t,e){const n=t.$$;n.fragment!==null&&(qu(n.after_update),Ot(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Uu(t,e){t.$$.dirty[0]===-1&&(Mn.push(t),cc(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function it(t,e,n,r,i,s,o=null,f=[-1]){const l=vr;gr(t);const a=t.$$={fragment:null,ctx:[],props:s,update:De,not_equal:i,bound:Xo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Xo(),dirty:f,skip_bound:!1,root:e.target||l.$$.root};o&&o(a.root);let c=!1;if(a.ctx=n?n(t,e.props||{},(u,h,...d)=>{const b=d.length?d[0]:h;return a.ctx&&i(a.ctx[u],a.ctx[u]=b)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](b),c&&Uu(t,u)),h}):[],a.update(),c=!0,Ot(a.before_update),a.fragment=r?r(a.ctx):!1,e.target){if(e.hydrate){const u=Su(e.target);a.fragment&&a.fragment.l(u),u.forEach(ie)}else a.fragment&&a.fragment.c();e.intro&&K(t.$$.fragment),_e(t,e.target,e.anchor),fc()}gr(l)}class st{constructor(){Me(this,"$$");Me(this,"$$set")}$destroy(){ye(this,1),this.$destroy=De}$on(e,n){if(!Dr(n))return De;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!vu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Hu="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hu);var At=t=>`k-${t}`,xt=t=>(t=t.replace(/[-|_]+/g,"_").replace(/[A-Z]/g,e=>`_${e}`).replace(/_+([a-z])/g,(e,n)=>`_${n}`).replace(/^_+|_+$/g,""),Symbol(`K_${t.toUpperCase()}_KEY`));xt("breadcrumb");var Yu=xt("buttonGroup");xt("collapseWrapper");xt("checkboxGroup");xt("radioGroup");var hc=xt("row");xt("contextmenu");var pc=xt("form"),Ku=xt("formItem"),Vu=xt("dropDown");xt("tabs");xt("descriptions");xt("segmented");xt("menu");function xc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=xc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Oe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=xc(t))&&(r&&(r+=" "),r+=e);return r}function zi(t){let e,n;const r=t[10].default,i=Ge(r,t,t[9],null);let s=[{class:t[2]},t[4],t[0]],o={};for(let f=0;f<s.length;f+=1)o=Ee(o,s[f]);return{c(){e=ce(t[1]),i&&i.c(),Gn(t[1])(e,o),ae(e,"margin-right",t[3]),ae(e,"margin-left",t[3])},m(f,l){se(f,e,l),i&&i.m(e,null),n=!0},p(f,l){i&&i.p&&(!n||l&512)&&Qe(i,r,f,f[9],n?Je(r,f[9],l,null):$e(f[9]),null),Gn(f[1])(e,o=Ct(s,[(!n||l&4)&&{class:f[2]},l&16&&f[4],l&1&&f[0]])),ae(e,"margin-right",f[3]),ae(e,"margin-left",f[3])},i(f){n||(K(i,f),n=!0)},o(f){X(i,f),n=!1},d(f){f&&ie(e),i&&i.d(f)}}}function Zu(t){let e=t[1],n,r,i=t[1]&&zi(t);return{c(){i&&i.c(),n=Et()},m(s,o){i&&i.m(s,o),se(s,n,o),r=!0},p(s,[o]){s[1]?e?Ue(e,s[1])?(i.d(1),i=zi(s),e=s[1],i.c(),i.m(n.parentNode,n)):i.p(s,o):(i=zi(s),e=s[1],i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=s[1])},i(s){r||(K(i,s),r=!0)},o(s){X(i,s),r=!1},d(s){s&&ie(n),i&&i.d(s)}}}function Xu(t,e,n){let r,i;const s=["cls","attrs","gutter","justify","align","tag"];let o=rt(e,s),{$$slots:f={},$$scope:l}=e,{cls:a=void 0}=e,{attrs:c={}}=e,{gutter:u=0}=e,{justify:h="start"}=e,{align:d=void 0}=e,{tag:b="div"}=e;Pu(hc,{gutter:u});const x=At("row");return t.$$set=p=>{e=Ee(Ee({},e),hn(p)),n(4,o=rt(e,s)),"cls"in p&&n(5,a=p.cls),"attrs"in p&&n(0,c=p.attrs),"gutter"in p&&n(6,u=p.gutter),"justify"in p&&n(7,h=p.justify),"align"in p&&n(8,d=p.align),"tag"in p&&n(1,b=p.tag),"$$scope"in p&&n(9,l=p.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&u&&n(3,r=`-${u/2}px`),t.$$.dirty&416&&n(2,i=Oe(x,{[`${x}--base`]:!0,[`${x}__justify__${h}`]:!0,[`${x}__align__${d}`]:d},a))},n(3,r=""),[c,b,i,r,o,a,u,h,d,l,f]}class _r extends st{constructor(e){super(),it(this,e,Xu,Zu,Ue,{cls:5,attrs:0,gutter:6,justify:7,align:8,tag:1})}}var Gu=Object.create,mc=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyNames,Qu=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,bc=(t,e)=>function(){return e||(0,t[gc(t)[0]])((e={exports:{}}).exports,e),e.exports},e1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of gc(e))!$u.call(t,i)&&i!==n&&mc(t,i,{get:()=>e[i],enumerable:!(r=Ju(e,i))||r.enumerable});return t},t1=(t,e,n)=>(n=t!=null?Gu(Qu(t)):{},e1(mc(n,"default",{value:t,enumerable:!0}),t)),n1=bc({"../node_modules/.pnpm/ansi-colors@4.1.3/node_modules/ansi-colors/symbols.js"(t,e){var n=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",r=typeof process<"u"&&process.platform==="win32",i=typeof process<"u"&&process.platform==="linux",s={ballotDisabled:"☒",ballotOff:"☐",ballotOn:"☑",bullet:"•",bulletWhite:"◦",fullBlock:"█",heart:"❤",identicalTo:"≡",line:"─",mark:"※",middot:"·",minus:"",multiplication:"×",obelus:"÷",pencilDownRight:"✎",pencilRight:"✏",pencilUpRight:"✐",percent:"%",pilcrow2:"❡",pilcrow:"¶",plusMinus:"±",question:"?",section:"§",starsOff:"☆",starsOn:"★",upDownArrow:"↕"},o=Object.assign({},s,{check:"√",cross:"×",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"»",radioOff:"( )",radioOn:"(*)",warning:"‼"}),f=Object.assign({},s,{ballotCross:"✘",check:"✔",cross:"✖",ellipsisLarge:"⋯",ellipsis:"…",info:"",questionFull:"",questionSmall:"﹖",pointer:i?"▸":"",pointerSmall:i?"‣":"",radioOff:"◯",radioOn:"◉",warning:"⚠"});e.exports=r&&!n?o:f,Reflect.defineProperty(e.exports,"common",{enumerable:!1,value:s}),Reflect.defineProperty(e.exports,"windows",{enumerable:!1,value:o}),Reflect.defineProperty(e.exports,"other",{enumerable:!1,value:f})}}),r1=bc({"../node_modules/.pnpm/ansi-colors@4.1.3/node_modules/ansi-colors/index.js"(t,e){var n=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),r=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,i=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,s=()=>{const o={enabled:i(),visible:!0,styles:{},keys:{}},f=u=>{let h=u.open=`\x1B[${u.codes[0]}m`,d=u.close=`\x1B[${u.codes[1]}m`,b=u.regex=new RegExp(`\\u001b\\[${u.codes[1]}m`,"g");return u.wrap=(x,p)=>{x.includes(d)&&(x=x.replace(b,d+h));let g=h+x+d;return p?g.replace(/\r*\n/g,`${d}$&${h}`):g},u},l=(u,h,d)=>typeof u=="function"?u(h):u.wrap(h,d),a=(u,h)=>{if(u===""||u==null)return"";if(o.enabled===!1)return u;if(o.visible===!1)return"";let d=""+u,b=d.includes(`
`),x=h.length;for(x>0&&h.includes("unstyle")&&(h=[...new Set(["unstyle",...h])].reverse());x-- >0;)d=l(o.styles[h[x]],d,b);return d},c=(u,h,d)=>{o.styles[u]=f({name:u,codes:h}),(o.keys[d]||(o.keys[d]=[])).push(u),Reflect.defineProperty(o,u,{configurable:!0,enumerable:!0,set(x){o.alias(u,x)},get(){let x=p=>a(p,x.stack);return Reflect.setPrototypeOf(x,o),x.stack=this.stack?this.stack.concat(u):[u],x}})};return c("reset",[0,0],"modifier"),c("bold",[1,22],"modifier"),c("dim",[2,22],"modifier"),c("italic",[3,23],"modifier"),c("underline",[4,24],"modifier"),c("inverse",[7,27],"modifier"),c("hidden",[8,28],"modifier"),c("strikethrough",[9,29],"modifier"),c("black",[30,39],"color"),c("red",[31,39],"color"),c("green",[32,39],"color"),c("yellow",[33,39],"color"),c("blue",[34,39],"color"),c("magenta",[35,39],"color"),c("cyan",[36,39],"color"),c("white",[37,39],"color"),c("gray",[90,39],"color"),c("grey",[90,39],"color"),c("bgBlack",[40,49],"bg"),c("bgRed",[41,49],"bg"),c("bgGreen",[42,49],"bg"),c("bgYellow",[43,49],"bg"),c("bgBlue",[44,49],"bg"),c("bgMagenta",[45,49],"bg"),c("bgCyan",[46,49],"bg"),c("bgWhite",[47,49],"bg"),c("blackBright",[90,39],"bright"),c("redBright",[91,39],"bright"),c("greenBright",[92,39],"bright"),c("yellowBright",[93,39],"bright"),c("blueBright",[94,39],"bright"),c("magentaBright",[95,39],"bright"),c("cyanBright",[96,39],"bright"),c("whiteBright",[97,39],"bright"),c("bgBlackBright",[100,49],"bgBright"),c("bgRedBright",[101,49],"bgBright"),c("bgGreenBright",[102,49],"bgBright"),c("bgYellowBright",[103,49],"bgBright"),c("bgBlueBright",[104,49],"bgBright"),c("bgMagentaBright",[105,49],"bgBright"),c("bgCyanBright",[106,49],"bgBright"),c("bgWhiteBright",[107,49],"bgBright"),o.ansiRegex=r,o.hasColor=o.hasAnsi=u=>(o.ansiRegex.lastIndex=0,typeof u=="string"&&u!==""&&o.ansiRegex.test(u)),o.alias=(u,h)=>{let d=typeof h=="string"?o[h]:h;if(typeof d!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");d.stack||(Reflect.defineProperty(d,"name",{value:u}),o.styles[u]=d,d.stack=[u]),Reflect.defineProperty(o,u,{configurable:!0,enumerable:!0,set(b){o.alias(u,b)},get(){let b=x=>a(x,b.stack);return Reflect.setPrototypeOf(b,o),b.stack=this.stack?this.stack.concat(d.stack):d.stack,b}})},o.theme=u=>{if(!n(u))throw new TypeError("Expected theme to be an object");for(let h of Object.keys(u))o.alias(h,u[h]);return o},o.alias("unstyle",u=>typeof u=="string"&&u!==""?(o.ansiRegex.lastIndex=0,u.replace(o.ansiRegex,"")):""),o.alias("noop",u=>u),o.none=o.clear=o.noop,o.stripColor=o.unstyle,o.symbols=n1(),o.define=c,o};e.exports=s(),e.exports.create=s}});t1(r1());var i1=(t,e)=>Object.assign({},t,e),s1=t=>typeof t=="string"&&t.constructor===String,Qs=t=>typeof t=="number",o1=t=>Object.prototype.toString.call(t)==="[object Function]"||Object.prototype.toString.call(t)==="[object AsyncFunction]";function $s(t){return t==null?!1:toString.call(t)==="[object Object]"}var a1=Object.create,vc=Object.defineProperty,l1=Object.getOwnPropertyDescriptor,_c=Object.getOwnPropertyNames,c1=Object.getPrototypeOf,f1=Object.prototype.hasOwnProperty,u1=(t,e)=>function(){return e||(0,t[_c(t)[0]])((e={exports:{}}).exports,e),e.exports},d1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _c(e))!f1.call(t,i)&&i!==n&&vc(t,i,{get:()=>e[i],enumerable:!(r=l1(e,i))||r.enumerable});return t},h1=(t,e,n)=>(n=t!=null?a1(c1(t)):{},d1(vc(n,"default",{value:t,enumerable:!0}),t)),p1=u1({"../node_modules/.pnpm/hash-sum@2.0.0/node_modules/hash-sum/hash-sum.js"(t,e){function n(l,a){for(;l.length<a;)l="0"+l;return l}function r(l,a){var c,u,h;if(a.length===0)return l;for(c=0,h=a.length;c<h;c++)u=a.charCodeAt(c),l=(l<<5)-l+u,l|=0;return l<0?l*-2:l}function i(l,a,c){return Object.keys(a).sort().reduce(u,l);function u(h,d){return s(h,a[d],d,c)}}function s(l,a,c,u){var h=r(r(r(l,c),o(a)),typeof a);if(a===null)return r(h,"null");if(a===void 0)return r(h,"undefined");if(typeof a=="object"||typeof a=="function"){if(u.indexOf(a)!==-1)return r(h,"[Circular]"+c);u.push(a);var d=i(h,a,u);if(!("valueOf"in a)||typeof a.valueOf!="function")return d;try{return r(d,String(a.valueOf()))}catch(b){return r(d,"[valueOf exception]"+(b.stack||b.message))}}return r(h,a.toString())}function o(l){return Object.prototype.toString.call(l)}function f(l){return n(s(0,l,"",[]).toString(16),8)}e.exports=f}});h1(p1());function x1(t,e){let n;return function(...i){n!==void 0&&clearTimeout(n),n=window.setTimeout(()=>{t(...i),n=void 0},e)}}var m1=Object.create,yc=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,wc=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,v1=Object.prototype.hasOwnProperty,wo=(t,e)=>function(){return e||(0,t[wc(t)[0]])((e={exports:{}}).exports,e),e.exports},_1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wc(e))!v1.call(t,i)&&i!==n&&yc(t,i,{get:()=>e[i],enumerable:!(r=g1(e,i))||r.enumerable});return t},ko=(t,e,n)=>(n=t!=null?m1(b1(t)):{},_1(yc(n,"default",{value:t,enumerable:!0}),t)),y1=wo({"../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(t,e){(function(n,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(t,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",f="minute",l="hour",a="day",c="week",u="month",h="quarter",d="year",b="date",x="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var R=["th","st","nd","rd"],T=F%100;return"["+F+(R[(T-20)%10]||R[T]||R[0])+"]"}},v=function(F,R,T){var N=String(F);return!N||N.length>=R?F:""+Array(R+1-N.length).join(T)+F},_={s:v,z:function(F){var R=-F.utcOffset(),T=Math.abs(R),N=Math.floor(T/60),P=T%60;return(R<=0?"+":"-")+v(N,2,"0")+":"+v(P,2,"0")},m:function F(R,T){if(R.date()<T.date())return-F(T,R);var N=12*(T.year()-R.year())+(T.month()-R.month()),P=R.clone().add(N,u),Y=T-P<0,z=R.clone().add(N+(Y?-1:1),u);return+(-(N+(T-P)/(Y?P-z:z-P))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:u,y:d,w:c,d:a,D:b,h:l,m:f,s:o,ms:s,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},C="en",y={};y[C]=m;var w="$isDayjsObject",k=function(F){return F instanceof B||!(!F||!F[w])},S=function F(R,T,N){var P;if(!R)return C;if(typeof R=="string"){var Y=R.toLowerCase();y[Y]&&(P=Y),T&&(y[Y]=T,P=Y);var z=R.split("-");if(!P&&z.length>1)return F(z[0])}else{var I=R.name;y[I]=R,P=I}return!N&&P&&(C=P),P||!N&&C},E=function(F,R){if(k(F))return F.clone();var T=typeof R=="object"?R:{};return T.date=F,T.args=arguments,new B(T)},A=_;A.l=S,A.i=k,A.w=function(F,R){return E(F,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var B=function(){function F(T){this.$L=S(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[w]=!0}var R=F.prototype;return R.parse=function(T){this.$d=function(N){var P=N.date,Y=N.utc;if(P===null)return new Date(NaN);if(A.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var z=P.match(p);if(z){var I=z[2]-1||0,O=(z[7]||"0").substring(0,3);return Y?new Date(Date.UTC(z[1],I,z[3]||1,z[4]||0,z[5]||0,z[6]||0,O)):new Date(z[1],I,z[3]||1,z[4]||0,z[5]||0,z[6]||0,O)}}return new Date(P)}(T),this.init()},R.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},R.$utils=function(){return A},R.isValid=function(){return this.$d.toString()!==x},R.isSame=function(T,N){var P=E(T);return this.startOf(N)<=P&&P<=this.endOf(N)},R.isAfter=function(T,N){return E(T)<this.startOf(N)},R.isBefore=function(T,N){return this.endOf(N)<E(T)},R.$g=function(T,N,P){return A.u(T)?this[N]:this.set(P,T)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(T,N){var P=this,Y=!!A.u(N)||N,z=A.p(T),I=function($,me){var Te=A.w(P.$u?Date.UTC(P.$y,me,$):new Date(P.$y,me,$),P);return Y?Te:Te.endOf(a)},O=function($,me){return A.w(P.toDate()[$].apply(P.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(me)),P)},q=this.$W,j=this.$M,te=this.$D,ne="set"+(this.$u?"UTC":"");switch(z){case d:return Y?I(1,0):I(31,11);case u:return Y?I(1,j):I(0,j+1);case c:var he=this.$locale().weekStart||0,re=(q<he?q+7:q)-he;return I(Y?te-re:te+(6-re),j);case a:case b:return O(ne+"Hours",0);case l:return O(ne+"Minutes",1);case f:return O(ne+"Seconds",2);case o:return O(ne+"Milliseconds",3);default:return this.clone()}},R.endOf=function(T){return this.startOf(T,!1)},R.$set=function(T,N){var P,Y=A.p(T),z="set"+(this.$u?"UTC":""),I=(P={},P[a]=z+"Date",P[b]=z+"Date",P[u]=z+"Month",P[d]=z+"FullYear",P[l]=z+"Hours",P[f]=z+"Minutes",P[o]=z+"Seconds",P[s]=z+"Milliseconds",P)[Y],O=Y===a?this.$D+(N-this.$W):N;if(Y===u||Y===d){var q=this.clone().set(b,1);q.$d[I](O),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](O);return this.init(),this},R.set=function(T,N){return this.clone().$set(T,N)},R.get=function(T){return this[A.p(T)]()},R.add=function(T,N){var P,Y=this;T=Number(T);var z=A.p(N),I=function(j){var te=E(Y);return A.w(te.date(te.date()+Math.round(j*T)),Y)};if(z===u)return this.set(u,this.$M+T);if(z===d)return this.set(d,this.$y+T);if(z===a)return I(1);if(z===c)return I(7);var O=(P={},P[f]=r,P[l]=i,P[o]=n,P)[z]||1,q=this.$d.getTime()+T*O;return A.w(q,this)},R.subtract=function(T,N){return this.add(-1*T,N)},R.format=function(T){var N=this,P=this.$locale();if(!this.isValid())return P.invalidDate||x;var Y=T||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),I=this.$H,O=this.$m,q=this.$M,j=P.weekdays,te=P.months,ne=P.meridiem,he=function(me,Te,ke,be){return me&&(me[Te]||me(N,Y))||ke[Te].slice(0,be)},re=function(me){return A.s(I%12||12,me,"0")},$=ne||function(me,Te,ke){var be=me<12?"AM":"PM";return ke?be.toLowerCase():be};return Y.replace(g,function(me,Te){return Te||function(ke){switch(ke){case"YY":return String(N.$y).slice(-2);case"YYYY":return A.s(N.$y,4,"0");case"M":return q+1;case"MM":return A.s(q+1,2,"0");case"MMM":return he(P.monthsShort,q,te,3);case"MMMM":return he(te,q);case"D":return N.$D;case"DD":return A.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return he(P.weekdaysMin,N.$W,j,2);case"ddd":return he(P.weekdaysShort,N.$W,j,3);case"dddd":return j[N.$W];case"H":return String(I);case"HH":return A.s(I,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return $(I,O,!0);case"A":return $(I,O,!1);case"m":return String(O);case"mm":return A.s(O,2,"0");case"s":return String(N.$s);case"ss":return A.s(N.$s,2,"0");case"SSS":return A.s(N.$ms,3,"0");case"Z":return z}return null}(me)||z.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(T,N,P){var Y,z=this,I=A.p(N),O=E(T),q=(O.utcOffset()-this.utcOffset())*r,j=this-O,te=function(){return A.m(z,O)};switch(I){case d:Y=te()/12;break;case u:Y=te();break;case h:Y=te()/3;break;case c:Y=(j-q)/6048e5;break;case a:Y=(j-q)/864e5;break;case l:Y=j/i;break;case f:Y=j/r;break;case o:Y=j/n;break;default:Y=j}return P?Y:A.a(Y)},R.daysInMonth=function(){return this.endOf(u).$D},R.$locale=function(){return y[this.$L]},R.locale=function(T,N){if(!T)return this.$L;var P=this.clone(),Y=S(T,N,!0);return Y&&(P.$L=Y),P},R.clone=function(){return A.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},F}(),D=B.prototype;return E.prototype=D,[["$ms",s],["$s",o],["$m",f],["$H",l],["$W",a],["$M",u],["$y",d],["$D",b]].forEach(function(F){D[F[1]]=function(R){return this.$g(R,F[0],F[1])}}),E.extend=function(F,R){return F.$i||(F(R,B,E),F.$i=!0),E},E.locale=S,E.isDayjs=k,E.unix=function(F){return E(1e3*F)},E.en=y[C],E.Ls=y,E.p={},E})}}),w1=wo({"../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.js"(t,e){(function(n,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(t,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,o,f){var l=o.prototype;f.utc=function(x){var p={date:x,utc:!0,args:arguments};return new o(p)},l.utc=function(x){var p=f(this.toDate(),{locale:this.$L,utc:!0});return x?p.add(this.utcOffset(),n):p},l.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var a=l.parse;l.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),a.call(this,x)};var c=l.init;l.init=function(){if(this.$u){var x=this.$d;this.$y=x.getUTCFullYear(),this.$M=x.getUTCMonth(),this.$D=x.getUTCDate(),this.$W=x.getUTCDay(),this.$H=x.getUTCHours(),this.$m=x.getUTCMinutes(),this.$s=x.getUTCSeconds(),this.$ms=x.getUTCMilliseconds()}else c.call(this)};var u=l.utcOffset;l.utcOffset=function(x,p){var g=this.$utils().u;if(g(x))return this.$u?0:g(this.$offset)?u.call(this):this.$offset;if(typeof x=="string"&&(x=function(C){C===void 0&&(C="");var y=C.match(r);if(!y)return null;var w=(""+y[0]).match(i)||["-",0,0],k=w[0],S=60*+w[1]+ +w[2];return S===0?0:k==="+"?S:-S}(x),x===null))return this;var m=Math.abs(x)<=16?60*x:x,v=this;if(p)return v.$offset=m,v.$u=x===0,v;if(x!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(m+_,n)).$offset=m,v.$x.$localOffset=_}else v=this.utc();return v};var h=l.format;l.format=function(x){var p=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,p)},l.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var d=l.toDate;l.toDate=function(x){return x==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var b=l.diff;l.diff=function(x,p,g){if(x&&this.$u===x.$u)return b.call(this,x,p,g);var m=this.local(),v=f(x).local();return b.call(m,v,p,g)}}})}}),k1=wo({"../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/duration.js"(t,e){(function(n,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_duration=r()})(t,function(){var n,r,i=1e3,s=6e4,o=36e5,f=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:a,months:c,days:f,hours:o,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},d=function(y){return y instanceof _},b=function(y,w,k){return new _(y,k,w.$l)},x=function(y){return r.p(y)+"s"},p=function(y){return y<0},g=function(y){return p(y)?Math.ceil(y):Math.floor(y)},m=function(y){return Math.abs(y)},v=function(y,w){return y?p(y)?{negative:!0,format:""+m(y)+w}:{negative:!1,format:""+y+w}:{negative:!1,format:""}},_=function(){function y(k,S,E){var A=this;if(this.$d={},this.$l=E,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),S)return b(k*h[x(S)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(F){A.$d[x(F)]=k[F]}),this.calMilliseconds(),this;if(typeof k=="string"){var B=k.match(u);if(B){var D=B.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=D[0],this.$d.months=D[1],this.$d.weeks=D[2],this.$d.days=D[3],this.$d.hours=D[4],this.$d.minutes=D[5],this.$d.seconds=D[6],this.calMilliseconds(),this}}return this}var w=y.prototype;return w.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(S,E){return S+(k.$d[E]||0)*h[E]},0)},w.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=g(k/a),k%=a,this.$d.months=g(k/c),k%=c,this.$d.days=g(k/f),k%=f,this.$d.hours=g(k/o),k%=o,this.$d.minutes=g(k/s),k%=s,this.$d.seconds=g(k/i),k%=i,this.$d.milliseconds=k},w.toISOString=function(){var k=v(this.$d.years,"Y"),S=v(this.$d.months,"M"),E=+this.$d.days||0;this.$d.weeks&&(E+=7*this.$d.weeks);var A=v(E,"D"),B=v(this.$d.hours,"H"),D=v(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1e3,F=Math.round(1e3*F)/1e3);var R=v(F,"S"),T=k.negative||S.negative||A.negative||B.negative||D.negative||R.negative,N=B.format||D.format||R.format?"T":"",P=(T?"-":"")+"P"+k.format+S.format+A.format+N+B.format+D.format+R.format;return P==="P"||P==="-P"?"P0D":P},w.toJSON=function(){return this.toISOString()},w.format=function(k){var S=k||"YYYY-MM-DDTHH:mm:ss",E={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return S.replace(l,function(A,B){return B||String(E[A])})},w.as=function(k){return this.$ms/h[x(k)]},w.get=function(k){var S=this.$ms,E=x(k);return E==="milliseconds"?S%=1e3:S=E==="weeks"?g(S/h[E]):this.$d[E],S||0},w.add=function(k,S,E){var A;return A=S?k*h[x(S)]:d(k)?k.$ms:b(k,this).$ms,b(this.$ms+A*(E?-1:1),this)},w.subtract=function(k,S){return this.add(k,S,!0)},w.locale=function(k){var S=this.clone();return S.$l=k,S},w.clone=function(){return b(this.$ms,this)},w.humanize=function(k){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},y}(),C=function(y,w,k){return y.add(w.years()*k,"y").add(w.months()*k,"M").add(w.days()*k,"d").add(w.hours()*k,"h").add(w.minutes()*k,"m").add(w.seconds()*k,"s").add(w.milliseconds()*k,"ms")};return function(y,w,k){n=k,r=k().$utils(),k.duration=function(A,B){var D=k.locale();return b(A,{$l:D},B)},k.isDuration=d;var S=w.prototype.add,E=w.prototype.subtract;w.prototype.add=function(A,B){return d(A)?C(this,A,1):S.bind(this)(A,B)},w.prototype.subtract=function(A,B){return d(A)?C(this,A,-1):E.bind(this)(A,B)}}})}});ko(y1());ko(w1());ko(k1());function Ui(t){let e,n;const r=t[17].default,i=Ge(r,t,t[16],null);let s=[{class:t[2]},t[4],t[0]],o={};for(let f=0;f<s.length;f+=1)o=Ee(o,s[f]);return{c(){e=ce(t[1]),i&&i.c(),Gn(t[1])(e,o),ae(e,"padding-right",t[3]),ae(e,"padding-left",t[3])},m(f,l){se(f,e,l),i&&i.m(e,null),n=!0},p(f,l){i&&i.p&&(!n||l&65536)&&Qe(i,r,f,f[16],n?Je(r,f[16],l,null):$e(f[16]),null),Gn(f[1])(e,o=Ct(s,[(!n||l&4)&&{class:f[2]},l&16&&f[4],l&1&&f[0]])),ae(e,"padding-right",f[3]),ae(e,"padding-left",f[3])},i(f){n||(K(i,f),n=!0)},o(f){X(i,f),n=!1},d(f){f&&ie(e),i&&i.d(f)}}}function E1(t){let e=t[1],n,r,i=t[1]&&Ui(t);return{c(){i&&i.c(),n=Et()},m(s,o){i&&i.m(s,o),se(s,n,o),r=!0},p(s,[o]){s[1]?e?Ue(e,s[1])?(i.d(1),i=Ui(s),e=s[1],i.c(),i.m(n.parentNode,n)):i.p(s,o):(i=Ui(s),e=s[1],i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=s[1])},i(s){r||(K(i,s),r=!0)},o(s){X(i,s),r=!1},d(s){s&&ie(n),i&&i.d(s)}}}function C1(t,e,n){let r,i,s,o,f;const l=["cls","attrs","tag","span","offset","push","pull","xs","sm","md","lg","xl"];let a=rt(e,l),{$$slots:c={},$$scope:u}=e,{cls:h=void 0}=e,{attrs:d={}}=e,{tag:b="div"}=e,{span:x=24}=e,{offset:p=0}=e,{push:g=0}=e,{pull:m=0}=e,{xs:v=void 0}=e,{sm:_=void 0}=e,{md:C=void 0}=e,{lg:y=void 0}=e,{xl:w=void 0}=e;const k=At("col"),S=()=>{const E=[];return["span","offset","push","pull"].forEach(D=>{const F=s[D];Qs(F)&&(D==="span"?E.push(`${k}-${F}`):F>0&&E.push(`${k}-${D}-${F}`))}),["xs","sm","md","lg","xl"].forEach(D=>{const F=D==="xs"?`ikun-${D}`:`ikun-${D}`;Qs(o[D])?E.push(`${F}:${k}-${D}-${o[D]}`):$s(o[D])&&Object.entries(o[D]).forEach(([R,T])=>{E.push(R!=="span"?`${F}:${k}-${D}-${R}-${T}`:`${F}:${k}-${D}-${T}`)})}),E};return t.$$set=E=>{e=Ee(Ee({},e),hn(E)),n(4,a=rt(e,l)),"cls"in E&&n(5,h=E.cls),"attrs"in E&&n(0,d=E.attrs),"tag"in E&&n(1,b=E.tag),"span"in E&&n(6,x=E.span),"offset"in E&&n(7,p=E.offset),"push"in E&&n(8,g=E.push),"pull"in E&&n(9,m=E.pull),"xs"in E&&n(10,v=E.xs),"sm"in E&&n(11,_=E.sm),"md"in E&&n(12,C=E.md),"lg"in E&&n(13,y=E.lg),"xl"in E&&n(14,w=E.xl),"$$scope"in E&&n(16,u=E.$$scope)},t.$$.update=()=>{t.$$.dirty&32768&&(r?n(3,i=`${r/2}px`):n(3,i=void 0)),t.$$.dirty&960&&(s={span:x,offset:p,push:g,pull:m}),t.$$.dirty&31744&&(o={xs:v,sm:_,md:C,lg:y,xl:w}),t.$$.dirty&32864&&n(2,f=Oe(k,{[`${k}--base`]:!0,[`${k}__guttered`]:r&&x,[`${k}__guttered__none`]:r&&!x},...S(),h))},n(15,r=Yn(hc).gutter||0),n(3,i=""),[d,b,f,i,a,h,x,p,g,m,v,_,C,y,w,r,u,c]}class hi extends st{constructor(e){super(),it(this,e,C1,E1,Ue,{cls:5,attrs:0,tag:1,span:6,offset:7,push:8,pull:9,xs:10,sm:11,md:12,lg:13,xl:14})}}function A1(t){let e,n,r,i=[{class:t[3]},{role:t[4]},t[8],t[0]],s={};for(let o=0;o<i.length;o+=1)s=Ee(s,i[o]);return{c(){e=ce("span"),je(e,s),ae(e,"width",t[2]),ae(e,"height",t[1])},m(o,f){se(o,e,f),n||(r=[ze(e,"mouseenter",t[6]),ze(e,"mouseleave",t[7]),ze(e,"click",t[5])],n=!0)},p(o,[f]){je(e,s=Ct(i,[f&8&&{class:o[3]},f&16&&{role:o[4]},f&256&&o[8],f&1&&o[0]])),ae(e,"width",o[2]),ae(e,"height",o[1])},i:De,o:De,d(o){o&&ie(e),n=!1,Ot(r)}}}function S1(t,e,n){let r,i,s,o;const f=["icon","btn","width","height","color","cls","attrs","theme"];let l=rt(e,f),{icon:a=""}=e,{btn:c=!1}=e,{width:u="24px"}=e,{height:h="24px"}=e,{color:d=""}=e,{cls:b=""}=e,{attrs:x={}}=e,{theme:p=void 0}=e;const g=pn(),m=y=>{g("click",y)},v=y=>{g("mouseenter",y)},_=y=>{g("mouseleave",y)},C=At("icon");return t.$$set=y=>{e=Ee(Ee({},e),hn(y)),n(8,l=rt(e,f)),"icon"in y&&n(9,a=y.icon),"btn"in y&&n(10,c=y.btn),"width"in y&&n(11,u=y.width),"height"in y&&n(12,h=y.height),"color"in y&&n(13,d=y.color),"cls"in y&&n(14,b=y.cls),"attrs"in y&&n(0,x=y.attrs),"theme"in y&&n(15,p=y.theme)},t.$$.update=()=>{t.$$.dirty&1024&&n(4,r=c?"button":""),t.$$.dirty&58880&&n(3,i=Oe(`${C}--base`,{[`${C}--base__dark`]:!d&&(p&&p==="dark"||p===void 0),[`${C}--role-button`]:!!c},`${C}-transition`,a,d,b)),t.$$.dirty&2048&&n(2,s=u?u==="auto"?void 0:u:"24px"),t.$$.dirty&4096&&n(1,o=h?h==="auto"?void 0:h:"24px")},[x,o,s,i,r,m,v,_,l,a,c,u,h,d,b,p]}let nr=class extends st{constructor(e){super(),it(this,e,S1,A1,Ue,{icon:9,btn:10,width:11,height:12,color:13,cls:14,attrs:0,theme:15})}};const In={FRONT:"FRONT",BEHIND:"BEHIND"},en={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},Go=2;class D1{constructor(e,n){this.param=null,this.callUpdate=null,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=en.INIT,this.offset=0,this.direction="",this.sizes=new Map,this.range=null,this.init(e,n)}init(e,n){this.param=e,this.callUpdate=n,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.fixedSizeValue=0,this.calcType=en.INIT,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}destroy(){this.init(null,null)}getRange(){const e=Object.create(null);return this.range&&(e.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind),e}isBehind(){return this.direction===In.BEHIND}isFront(){return this.direction===In.FRONT}getOffset(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}updateParam(e,n){this.param&&e in this.param&&(e==="uniqueIds"&&this.sizes.forEach((r,i)=>{n.includes(i)||this.sizes.delete(i)}),this.param[e]=n)}saveSize(e,n){this.sizes.set(e,n),this.calcType===en.INIT?(this.fixedSizeValue=n,this.calcType=en.FIXED):this.calcType===en.FIXED&&this.fixedSizeValue!==n&&(this.calcType=en.DYNAMIC,delete this.fixedSizeValue),this.calcType!==en.FIXED&&this.firstRangeTotalSize!==void 0&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=[...this.sizes.values()].reduce((r,i)=>r+i,0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}handleDataSourcesChange(){if(this.range){let e=this.range.start;this.isFront()?e=e-Go:this.isBehind()&&(e=e+Go),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}}handleSlotSizeChange(){this.handleDataSourcesChange()}handleScroll(e){this.direction=e<this.offset?In.FRONT:In.BEHIND,this.offset=e,this.param&&(this.direction===In.FRONT?this.handleFront():this.direction===In.BEHIND&&this.handleBehind())}handleFront(){if(this.range){const e=this.getScrollOvers();if(e>this.range.start)return;const n=Math.max(e-this.param.buffer,0);this.checkRange(n,this.getEndByStart(n))}}handleBehind(){if(this.range){const e=this.getScrollOvers();if(e<this.range.start+this.param.buffer)return;this.checkRange(e,this.getEndByStart(e))}}getScrollOvers(){const e=this.offset-this.param.slotHeaderSize;if(e<=0)return 0;if(this.isFixedType()&&this.fixedSizeValue!==void 0)return Math.floor(e/this.fixedSizeValue);let n=0,r=0,i=0,s=this.param.uniqueIds.length;for(;n<=s;){if(r=n+Math.floor((s-n)/2),i=this.getIndexOffset(r),i===e)return r;i<e?n=r+1:i>e&&(s=r-1)}return n>0?--n:0}getIndexOffset(e){if(!e)return 0;let n=0,r=0;for(let i=0;i<e;i++)r=this.sizes.get(this.param.uniqueIds[i]),n=n+(r!==void 0?r:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,e-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),n}isFixedType(){return this.calcType===en.FIXED}getLastIndex(){return this.param.uniqueIds.length-1}checkRange(e,n){const r=this.param.keeps;this.param.uniqueIds.length<=r?(e=0,n=this.getLastIndex()):n-e<r-1&&(e=n-r+1),this.range&&this.range.start!==e&&this.updateRange(e,n)}updateRange(e,n){this.range&&(this.range.start=e,this.range.end=n,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate&&this.callUpdate(this.getRange()))}getEndByStart(e){const n=e+this.param.keeps-1;return Math.min(n,this.getLastIndex())}getPadFront(){return this.range?this.isFixedType()&&this.fixedSizeValue!==void 0?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start):0}getPadBehind(){const e=this.range?this.range.end:0,n=this.getLastIndex();return this.isFixedType()&&this.fixedSizeValue!==void 0?(n-e)*this.fixedSizeValue:this.lastCalcIndex===n?this.getIndexOffset(n)-this.getIndexOffset(e):(n-e)*this.getEstimateSize()}getEstimateSize(){return this.isFixedType()&&this.fixedSizeValue!==void 0?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}function Jo(){return typeof document<"u"}function B1(t){let e,n;const r=t[6].default,i=Ge(r,t,t[5],null);return{c(){e=ce("div"),i&&i.c(),W(e,"class",t[2]),W(e,"data-kv-key",t[0])},m(s,o){se(s,e,o),i&&i.m(e,null),t[7](e),n=!0},p(s,[o]){i&&i.p&&(!n||o&32)&&Qe(i,r,s,s[5],n?Je(r,s[5],o,null):$e(s[5]),null),(!n||o&1)&&W(e,"data-kv-key",s[0])},i(s){n||(K(i,s),n=!0)},o(s){X(i,s),n=!1},d(s){s&&ie(e),i&&i.d(s),t[7](null)}}}function F1(t,e,n){let{$$slots:r={},$$scope:i}=e,{horizontal:s=!1}=e,{uniqueKey:o=""}=e,{type:f="item"}=e,l=null,a=null,c;const u=pn(),h=s?"offsetWidth":"offsetHeight";Fr(()=>{typeof ResizeObserver<"u"&&a&&(l=new ResizeObserver(d),l.observe(a))}),Ou(d),yo(()=>{l&&(l.disconnect(),l=null)});function d(){const p=a?a[h]:0;p!==c&&(c=p,u("resize",{id:o,size:p,type:f}))}const b=At("virtual-list--item");function x(p){dt[p?"unshift":"push"](()=>{a=p,n(1,a)})}return t.$$set=p=>{"horizontal"in p&&n(3,s=p.horizontal),"uniqueKey"in p&&n(0,o=p.uniqueKey),"type"in p&&n(4,f=p.type),"$$scope"in p&&n(5,i=p.$$scope)},[o,a,b,s,f,i,r,x]}class Eo extends st{constructor(e){super(),it(this,e,F1,B1,Ue,{horizontal:3,uniqueKey:0,type:4})}}const T1={css:"",trackBackground:"transparent",trackRadius:"20px",width:"6px",height:"6px",thumbBackground:"var(--ikun-light-800)",thumbRadius:"20px"},R1=t=>{const e={"--k-scrollbar--track":t.trackBackground,"--k-scrollbar--track__radius":t.trackRadius,"--k-scrollbar__w":t.width,"--k-scrollbar__h":t.height,"--k-scrollbar--thumb":t.thumbBackground,"--k-scrollbar--thumb__radius":t.thumbRadius};let n=t.css;return Object.keys(e).forEach(r=>{const i=e[r];i&&(n=`${r}: ${i};${n}`)}),n},O1=t=>({}),Qo=t=>({});function $o(t,e,n){const r=t.slice();return r[46]=e[n],r[48]=n,r}const P1=t=>({data:t[0]&8,index:t[0]&8}),e0=t=>({data:t[46],index:t[48]}),I1=t=>({}),t0=t=>({});function n0(t){let e,n;return e=new Eo({props:{type:"slot",uniqueKey:"header",$$slots:{default:[L1]},$$scope:{ctx:t}}}),e.$on("resize",t[9]),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i[1]&16&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function L1(t){let e;const n=t[32].header,r=Ge(n,t,t[35],t0);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s[1]&16)&&Qe(r,n,i,i[35],e?Je(n,i[35],s,I1):$e(i[35]),t0)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function q1(t){let e,n;const r=t[32].default,i=Ge(r,t,t[35],e0);return{c(){i&&i.c(),e=Ae()},m(s,o){i&&i.m(s,o),se(s,e,o),n=!0},p(s,o){i&&i.p&&(!n||o[0]&8|o[1]&16)&&Qe(i,r,s,s[35],n?Je(r,s[35],o,P1):$e(s[35]),e0)},i(s){n||(K(i,s),n=!0)},o(s){X(i,s),n=!1},d(s){s&&ie(e),i&&i.d(s)}}}function r0(t,e){let n,r,i;return r=new Eo({props:{uniqueKey:e[46][e[1]],horizontal:e[2],type:"item",$$slots:{default:[q1]},$$scope:{ctx:e}}}),r.$on("resize",e[9]),{key:t,first:null,c(){n=Et(),we(r.$$.fragment),this.first=n},m(s,o){se(s,n,o),_e(r,s,o),i=!0},p(s,o){e=s;const f={};o[0]&10&&(f.uniqueKey=e[46][e[1]]),o[0]&4&&(f.horizontal=e[2]),o[0]&8|o[1]&16&&(f.$$scope={dirty:o,ctx:e}),r.$set(f)},i(s){i||(K(r.$$.fragment,s),i=!0)},o(s){X(r.$$.fragment,s),i=!1},d(s){s&&ie(n),ye(r,s)}}}function i0(t){let e,n;return e=new Eo({props:{type:"slot",uniqueKey:"footer",$$slots:{default:[N1]},$$scope:{ctx:t}}}),e.$on("resize",t[9]),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i[1]&16&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function N1(t){let e;const n=t[32].footer,r=Ge(n,t,t[35],Qo);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s[1]&16)&&Qe(r,n,i,i[35],e?Je(n,i[35],s,O1):$e(i[35]),Qo)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function W1(t){let e,n,r,i=[],s=new Map,o,f,l,a,c,u,h=t[13].header&&n0(t),d=di(t[3]);const b=m=>m[46][m[1]];for(let m=0;m<d.length;m+=1){let v=$o(t,d,m),_=b(v);s.set(_,i[m]=r0(_,v))}let x=t[13].footer&&i0(t),p=[{class:t[8]},t[12],t[0],{style:t[11]}],g={};for(let m=0;m<p.length;m+=1)g=Ee(g,p[m]);return{c(){e=ce("div"),h&&h.c(),n=Ae(),r=ce("div");for(let m=0;m<i.length;m+=1)i[m].c();o=Ae(),x&&x.c(),f=Ae(),l=ce("div"),W(r,"class",t[7]),ae(r,"padding",t[4]),W(l,"class","shepherd"),ae(l,"width",t[2]?"0px":"100%"),ae(l,"height",t[2]?"100%":"0px"),je(e,g)},m(m,v){se(m,e,v),h&&h.m(e,null),le(e,n),le(e,r);for(let _=0;_<i.length;_+=1)i[_]&&i[_].m(r,null);le(e,o),x&&x.m(e,null),le(e,f),le(e,l),t[33](l),t[34](e),a=!0,c||(u=ze(e,"scroll",t[10]),c=!0)},p(m,v){m[13].header?h?(h.p(m,v),v[0]&8192&&K(h,1)):(h=n0(m),h.c(),K(h,1),h.m(e,n)):h&&(Ne(),X(h,1,1,()=>{h=null}),We()),v[0]&526|v[1]&16&&(d=di(m[3]),Ne(),i=ju(i,v,b,1,m,d,s,r,Mu,r0,null,$o),We()),(!a||v[0]&128)&&W(r,"class",m[7]),v[0]&16&&ae(r,"padding",m[4]),m[13].footer?x?(x.p(m,v),v[0]&8192&&K(x,1)):(x=i0(m),x.c(),K(x,1),x.m(e,f)):x&&(Ne(),X(x,1,1,()=>{x=null}),We()),v[0]&4&&ae(l,"width",m[2]?"0px":"100%"),v[0]&4&&ae(l,"height",m[2]?"100%":"0px"),je(e,g=Ct(p,[(!a||v[0]&256)&&{class:m[8]},v[0]&4096&&m[12],v[0]&1&&m[0],{style:m[11]}]))},i(m){if(!a){K(h);for(let v=0;v<d.length;v+=1)K(i[v]);K(x),a=!0}},o(m){X(h);for(let v=0;v<i.length;v+=1)X(i[v]);X(x),a=!1},d(m){m&&ie(e),h&&h.d();for(let v=0;v<i.length;v+=1)i[v].d();x&&x.d(),t[33](null),t[34](null),c=!1,u()}}}function M1(t,e,n){let r,i;const s=["cls","attrs","key","data","keeps","estimateSize","isHorizontal","start","offset","topThreshold","bottomThreshold","getSize","getSizes","getOffset","getClientSize","getScrollSize","updatePageModeFront","scrollToOffset","scrollToIndex","scrollToBottom"];let o=rt(e,s),{$$slots:f={},$$scope:l}=e;const a=Br(f);let{cls:c=void 0}=e,{attrs:u={}}=e,{key:h="id"}=e,{data:d}=e,{keeps:b=30}=e,{estimateSize:x=10}=e,{isHorizontal:p=!1}=e,{start:g=0}=e,{offset:m=0}=e,{topThreshold:v=0}=e,{bottomThreshold:_=0}=e,C=[],y,w=p?"scrollLeft":"scrollTop",k=null,S=new D1({slotHeaderSize:0,slotFooterSize:0,keeps:b,estimateSize:x,buffer:Math.round(b/3),uniqueIds:O()},j),E=null,A=null;const B=pn();function D(Q){return S.sizes.get(Q)}function F(){return S.sizes.size}function R(){return E?Math.ceil(E[w]):0}function T(){return E?Math.ceil(E[p?"clientWidth":"clientHeight"]):0}function N(){return E?Math.ceil(E[p?"scrollWidth":"scrollHeight"]):0}function P(){if(E&&Jo()){const Q=E.getBoundingClientRect(),{defaultView:fe}=E.ownerDocument;if(fe){const pe=p?Q.left+fe.pageXOffset:Q.top+fe.pageYOffset;S.updateParam("slotHeaderSize",pe)}}}function Y(Q){Jo()&&E&&n(5,E[w]=Q,E)}function z(Q){if(Q>=d.length-1)I();else{const fe=S.getOffset(Q);Y(fe)}}function I(){if(A){const Q=A[p?"offsetLeft":"offsetTop"];Y(Q),setTimeout(()=>{R()+T()+1<N()&&I()},3)}}Fr(async()=>{await _n(),g?z(g):m&&Y(m)}),yo(()=>{S.destroy()});function O(){return d.map(Q=>Q[h])}function q(Q){const{id:fe,size:pe,type:J}=Q.detail;J==="item"?S.saveSize(fe,pe):J==="slot"&&(fe==="header"?S.updateParam("slotHeaderSize",pe):fe==="footer"&&S.updateParam("slotFooterSize",pe))}function j(Q){k=Q,n(4,y=n(4,y=p?`0px ${k.padBehind}px 0px ${k.padFront}px`:`${k.padFront}px 0px ${k.padBehind}px`)),n(3,C=d.slice(k.start,k.end+1))}function te(Q){const fe=R(),pe=T(),J=N();fe<0||fe+pe>J||!J||(S.handleScroll(fe),ne(fe,pe,J,Q))}function ne(Q,fe,pe,J){B("scroll",{event:J,range:S.getRange()}),S.isFront()&&d.length&&Q-v<=0?B("top"):S.isBehind()&&Q+fe+_>=pe&&B("bottom")}function he(Q){S.updateParam("keeps",Q),S.handleSlotSizeChange()}let re=d;async function $(){S.updateParam("uniqueIds",O()),S.handleDataSourcesChange()}const me=At("virtual-list"),Te=`overflow-y: auto; height: inherit; ${R1(T1)}`;function ke(Q){dt[Q?"unshift":"push"](()=>{A=Q,n(6,A)})}function be(Q){dt[Q?"unshift":"push"](()=>{E=Q,n(5,E)})}return t.$$set=Q=>{e=Ee(Ee({},e),hn(Q)),n(12,o=rt(e,s)),"cls"in Q&&n(14,c=Q.cls),"attrs"in Q&&n(0,u=Q.attrs),"key"in Q&&n(1,h=Q.key),"data"in Q&&n(15,d=Q.data),"keeps"in Q&&n(16,b=Q.keeps),"estimateSize"in Q&&n(17,x=Q.estimateSize),"isHorizontal"in Q&&n(2,p=Q.isHorizontal),"start"in Q&&n(18,g=Q.start),"offset"in Q&&n(19,m=Q.offset),"topThreshold"in Q&&n(20,v=Q.topThreshold),"bottomThreshold"in Q&&n(21,_=Q.bottomThreshold),"$$scope"in Q&&n(35,l=Q.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&524288&&Y(m),t.$$.dirty[0]&262144&&z(g),t.$$.dirty[0]&65536&&he(b),t.$$.dirty[0]&32768|t.$$.dirty[1]&1&&re!==d&&($(),n(31,re=d)),t.$$.dirty[0]&16388&&n(8,r=Oe(me,{[`${me}--base`]:p},"k-scrollbar",c)),t.$$.dirty[0]&4&&n(7,i=Oe({[`${me}--wrapper`]:p}))},$(),[u,h,p,C,y,E,A,i,r,q,te,Te,o,a,c,d,b,x,g,m,v,_,D,F,R,T,N,P,Y,z,I,re,f,ke,be,l]}let j1=class extends st{constructor(e){super(),it(this,e,M1,W1,Ue,{cls:14,attrs:0,key:1,data:15,keeps:16,estimateSize:17,isHorizontal:2,start:18,offset:19,topThreshold:20,bottomThreshold:21,getSize:22,getSizes:23,getOffset:24,getClientSize:25,getScrollSize:26,updatePageModeFront:27,scrollToOffset:28,scrollToIndex:29,scrollToBottom:30},null,[-1,-1])}get getSize(){return this.$$.ctx[22]}get getSizes(){return this.$$.ctx[23]}get getOffset(){return this.$$.ctx[24]}get getClientSize(){return this.$$.ctx[25]}get getScrollSize(){return this.$$.ctx[26]}get updatePageModeFront(){return this.$$.ctx[27]}get scrollToOffset(){return this.$$.ctx[28]}get scrollToIndex(){return this.$$.ctx[29]}get scrollToBottom(){return this.$$.ctx[30]}};function z1(t){const e=t-1;return e*e*e+1}function s0(t,{delay:e=0,duration:n=400,easing:r=z1,start:i=0,opacity:s=0}={}){const o=getComputedStyle(t),f=+o.opacity,l=o.transform==="none"?"":o.transform,a=1-i,c=f*(1-s);return{delay:e,duration:n,easing:r,css:(u,h)=>`
transform: ${l} scale(${1-a*h});
opacity: ${f-c*h}
`}}const $n=Math.min,kn=Math.max,pi=Math.round,Mr=Math.floor,Ut=t=>({x:t,y:t}),U1={left:"right",right:"left",bottom:"top",top:"bottom"},H1={start:"end",end:"start"};function eo(t,e,n){return kn(t,$n(e,n))}function Tr(t,e){return typeof t=="function"?t(e):t}function Sn(t){return t.split("-")[0]}function Rr(t){return t.split("-")[1]}function kc(t){return t==="x"?"y":"x"}function Co(t){return t==="y"?"height":"width"}function fn(t){return["top","bottom"].includes(Sn(t))?"y":"x"}function Ao(t){return kc(fn(t))}function Y1(t,e,n){n===void 0&&(n=!1);const r=Rr(t),i=Ao(t),s=Co(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=xi(o)),[o,xi(o)]}function K1(t){const e=xi(t);return[to(t),e,to(e)]}function to(t){return t.replace(/start|end/g,e=>H1[e])}function V1(t,e,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?s:o;default:return[]}}function Z1(t,e,n,r){const i=Rr(t);let s=V1(Sn(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(to)))),s}function xi(t){return t.replace(/left|right|bottom|top/g,e=>U1[e])}function X1(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ec(t){return typeof t!="number"?X1(t):{top:t,right:t,bottom:t,left:t}}function mi(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function o0(t,e,n){let{reference:r,floating:i}=t;const s=fn(e),o=Ao(e),f=Co(o),l=Sn(e),a=s==="y",c=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[f]/2-i[f]/2;let d;switch(l){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(Rr(e)){case"start":d[o]-=h*(n&&a?-1:1);break;case"end":d[o]+=h*(n&&a?-1:1);break}return d}const G1=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,f=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:u}=o0(a,r,l),h=r,d={},b=0;for(let x=0;x<f.length;x++){const{name:p,fn:g}=f[x],{x:m,y:v,data:_,reset:C}=await g({x:c,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:a,platform:o,elements:{reference:t,floating:e}});c=m??c,u=v??u,d={...d,[p]:{...d[p],..._}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(a=C.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:c,y:u}=o0(a,h,l)),x=-1)}return{x:c,y:u,placement:h,strategy:i,middlewareData:d}};async function Cc(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:f,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=Tr(e,t),b=Ec(d),p=f[h?u==="floating"?"reference":"floating":u],g=mi(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(p)))==null||n?p:p.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:a,rootBoundary:c,strategy:l})),m=u==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),_=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},C=mi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:m,offsetParent:v,strategy:l}):m);return{top:(g.top-C.top+b.top)/_.y,bottom:(C.bottom-g.bottom+b.bottom)/_.y,left:(g.left-C.left+b.left)/_.x,right:(C.right-g.right+b.right)/_.x}}const J1=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:f,middlewareData:l}=e,{element:a,padding:c=0}=Tr(t,e)||{};if(a==null)return{};const u=Ec(c),h={x:n,y:r},d=Ao(i),b=Co(d),x=await o.getDimensions(a),p=d==="y",g=p?"top":"left",m=p?"bottom":"right",v=p?"clientHeight":"clientWidth",_=s.reference[b]+s.reference[d]-h[d]-s.floating[b],C=h[d]-s.reference[d],y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let w=y?y[v]:0;(!w||!await(o.isElement==null?void 0:o.isElement(y)))&&(w=f.floating[v]||s.floating[b]);const k=_/2-C/2,S=w/2-x[b]/2-1,E=$n(u[g],S),A=$n(u[m],S),B=E,D=w-x[b]-A,F=w/2-x[b]/2+k,R=eo(B,F,D),T=!l.arrow&&Rr(i)!=null&&F!==R&&s.reference[b]/2-(F<B?E:A)-x[b]/2<0,N=T?F<B?F-B:F-D:0;return{[d]:h[d]+N,data:{[d]:R,centerOffset:F-R-N,...T&&{alignmentOffset:N}},reset:T}}}),Q1=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:f,platform:l,elements:a}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...p}=Tr(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Sn(i),m=fn(f),v=Sn(f)===f,_=await(l.isRTL==null?void 0:l.isRTL(a.floating)),C=h||(v||!x?[xi(f)]:K1(f)),y=b!=="none";!h&&y&&C.push(...Z1(f,x,b,_));const w=[f,...C],k=await Cc(e,p),S=[];let E=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&S.push(k[g]),u){const F=Y1(i,o,_);S.push(k[F[0]],k[F[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every(F=>F<=0)){var A,B;const F=(((A=s.flip)==null?void 0:A.index)||0)+1,R=w[F];if(R&&(!(u==="alignment"?m!==fn(R):!1)||E.every(P=>P.overflows[0]>0&&fn(P.placement)===m)))return{data:{index:F,overflows:E},reset:{placement:R}};let T=(B=E.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:B.placement;if(!T)switch(d){case"bestFit":{var D;const N=(D=E.filter(P=>{if(y){const Y=fn(P.placement);return Y===m||Y==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(Y=>Y>0).reduce((Y,z)=>Y+z,0)]).sort((P,Y)=>P[1]-Y[1])[0])==null?void 0:D[0];N&&(T=N);break}case"initialPlacement":T=f;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function $1(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sn(n),f=Rr(n),l=fn(n)==="y",a=["left","top"].includes(o)?-1:1,c=s&&l?-1:1,u=Tr(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:b}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return f&&typeof b=="number"&&(d=f==="end"?b*-1:b),l?{x:d*c,y:h*a}:{x:h*a,y:d*c}}const ed=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:f}=e,l=await $1(e,t);return o===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},td=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:f={fn:p=>{let{x:g,y:m}=p;return{x:g,y:m}}},...l}=Tr(t,e),a={x:n,y:r},c=await Cc(e,l),u=fn(Sn(i)),h=kc(u);let d=a[h],b=a[u];if(s){const p=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=d+c[p],v=d-c[g];d=eo(m,d,v)}if(o){const p=u==="y"?"top":"left",g=u==="y"?"bottom":"right",m=b+c[p],v=b-c[g];b=eo(m,b,v)}const x=f.fn({...e,[h]:d,[u]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:s,[u]:o}}}}}};function Ci(){return typeof window<"u"}function rr(t){return Ac(t)?(t.nodeName||"").toLowerCase():"#document"}function _t(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Vt(t){var e;return(e=(Ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ac(t){return Ci()?t instanceof Node||t instanceof _t(t).Node:!1}function Tt(t){return Ci()?t instanceof Element||t instanceof _t(t).Element:!1}function Kt(t){return Ci()?t instanceof HTMLElement||t instanceof _t(t).HTMLElement:!1}function a0(t){return!Ci()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _t(t).ShadowRoot}function Or(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function nd(t){return["table","td","th"].includes(rr(t))}function Ai(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function So(t){const e=Do(),n=Tt(t)?Rt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function rd(t){let e=un(t);for(;Kt(e)&&!er(e);){if(So(e))return e;if(Ai(e))return null;e=un(e)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(t){return["html","body","#document"].includes(rr(t))}function Rt(t){return _t(t).getComputedStyle(t)}function Si(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function un(t){if(rr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||a0(t)&&t.host||Vt(t);return a0(e)?e.host:e}function Sc(t){const e=un(t);return er(e)?t.ownerDocument?t.ownerDocument.body:t.body:Kt(e)&&Or(e)?e:Sc(e)}function yr(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Sc(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=_t(i);if(s){const f=no(o);return e.concat(o,o.visualViewport||[],Or(i)?i:[],f&&n?yr(f):[])}return e.concat(i,yr(i,[],n))}function no(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dc(t){const e=Rt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Kt(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,f=pi(n)!==s||pi(r)!==o;return f&&(n=s,r=o),{width:n,height:r,$:f}}function Bo(t){return Tt(t)?t:t.contextElement}function Vn(t){const e=Bo(t);if(!Kt(e))return Ut(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Dc(e);let o=(s?pi(n.width):n.width)/r,f=(s?pi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!f||!Number.isFinite(f))&&(f=1),{x:o,y:f}}const id=Ut(0);function Bc(t){const e=_t(t);return!Do()||!e.visualViewport?id:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sd(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==_t(t)?!1:e}function Dn(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Bo(t);let o=Ut(1);e&&(r?Tt(r)&&(o=Vn(r)):o=Vn(t));const f=sd(s,n,r)?Bc(s):Ut(0);let l=(i.left+f.x)/o.x,a=(i.top+f.y)/o.y,c=i.width/o.x,u=i.height/o.y;if(s){const h=_t(s),d=r&&Tt(r)?_t(r):r;let b=h,x=no(b);for(;x&&r&&d!==b;){const p=Vn(x),g=x.getBoundingClientRect(),m=Rt(x),v=g.left+(x.clientLeft+parseFloat(m.paddingLeft))*p.x,_=g.top+(x.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,a*=p.y,c*=p.x,u*=p.y,l+=v,a+=_,b=_t(x),x=no(b)}}return mi({width:c,height:u,x:l,y:a})}function Fo(t,e){const n=Si(t).scrollLeft;return e?e.left+n:Dn(Vt(t)).left+n}function Fc(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:Fo(t,r)),s=r.top+e.scrollTop;return{x:i,y:s}}function od(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=Vt(r),f=e?Ai(e.floating):!1;if(r===o||f&&s)return n;let l={scrollLeft:0,scrollTop:0},a=Ut(1);const c=Ut(0),u=Kt(r);if((u||!u&&!s)&&((rr(r)!=="body"||Or(o))&&(l=Si(r)),Kt(r))){const d=Dn(r);a=Vn(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const h=o&&!u&&!s?Fc(o,l,!0):Ut(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+c.x+h.x,y:n.y*a.y-l.scrollTop*a.y+c.y+h.y}}function ad(t){return Array.from(t.getClientRects())}function ld(t){const e=Vt(t),n=Si(t),r=t.ownerDocument.body,i=kn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=kn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Fo(t);const f=-n.scrollTop;return Rt(r).direction==="rtl"&&(o+=kn(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:f}}function cd(t,e){const n=_t(t),r=Vt(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,f=0,l=0;if(i){s=i.width,o=i.height;const a=Do();(!a||a&&e==="fixed")&&(f=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:f,y:l}}function fd(t,e){const n=Dn(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=Kt(t)?Vn(t):Ut(1),o=t.clientWidth*s.x,f=t.clientHeight*s.y,l=i*s.x,a=r*s.y;return{width:o,height:f,x:l,y:a}}function l0(t,e,n){let r;if(e==="viewport")r=cd(t,n);else if(e==="document")r=ld(Vt(t));else if(Tt(e))r=fd(e,n);else{const i=Bc(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return mi(r)}function Tc(t,e){const n=un(t);return n===e||!Tt(n)||er(n)?!1:Rt(n).position==="fixed"||Tc(n,e)}function ud(t,e){const n=e.get(t);if(n)return n;let r=yr(t,[],!1).filter(f=>Tt(f)&&rr(f)!=="body"),i=null;const s=Rt(t).position==="fixed";let o=s?un(t):t;for(;Tt(o)&&!er(o);){const f=Rt(o),l=So(o);!l&&f.position==="fixed"&&(i=null),(s?!l&&!i:!l&&f.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Or(o)&&!l&&Tc(t,o))?r=r.filter(c=>c!==o):i=f,o=un(o)}return e.set(t,r),r}function dd(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?Ai(e)?[]:ud(e,this._c):[].concat(n),r],f=o[0],l=o.reduce((a,c)=>{const u=l0(e,c,i);return a.top=kn(u.top,a.top),a.right=$n(u.right,a.right),a.bottom=$n(u.bottom,a.bottom),a.left=kn(u.left,a.left),a},l0(e,f,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hd(t){const{width:e,height:n}=Dc(t);return{width:e,height:n}}function pd(t,e,n){const r=Kt(e),i=Vt(e),s=n==="fixed",o=Dn(t,!0,s,e);let f={scrollLeft:0,scrollTop:0};const l=Ut(0);function a(){l.x=Fo(i)}if(r||!r&&!s)if((rr(e)!=="body"||Or(i))&&(f=Si(e)),r){const d=Dn(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&a();s&&!r&&i&&a();const c=i&&!r&&!s?Fc(i,f):Ut(0),u=o.left+f.scrollLeft-l.x-c.x,h=o.top+f.scrollTop-l.y-c.y;return{x:u,y:h,width:o.width,height:o.height}}function Hi(t){return Rt(t).position==="static"}function c0(t,e){if(!Kt(t)||Rt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Vt(t)===n&&(n=n.ownerDocument.body),n}function Rc(t,e){const n=_t(t);if(Ai(t))return n;if(!Kt(t)){let i=un(t);for(;i&&!er(i);){if(Tt(i)&&!Hi(i))return i;i=un(i)}return n}let r=c0(t,e);for(;r&&nd(r)&&Hi(r);)r=c0(r,e);return r&&er(r)&&Hi(r)&&!So(r)?n:r||rd(t)||n}const xd=async function(t){const e=this.getOffsetParent||Rc,n=this.getDimensions,r=await n(t.floating);return{reference:pd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function md(t){return Rt(t).direction==="rtl"}const gd={convertOffsetParentRelativeRectToViewportRelativeRect:od,getDocumentElement:Vt,getClippingRect:dd,getOffsetParent:Rc,getElementRects:xd,getClientRects:ad,getDimensions:hd,getScale:Vn,isElement:Tt,isRTL:md};function Oc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function bd(t,e){let n=null,r;const i=Vt(t);function s(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function o(f,l){f===void 0&&(f=!1),l===void 0&&(l=1),s();const a=t.getBoundingClientRect(),{left:c,top:u,width:h,height:d}=a;if(f||e(),!h||!d)return;const b=Mr(u),x=Mr(i.clientWidth-(c+h)),p=Mr(i.clientHeight-(u+d)),g=Mr(c),v={rootMargin:-b+"px "+-x+"px "+-p+"px "+-g+"px",threshold:kn(0,$n(1,l))||1};let _=!0;function C(y){const w=y[0].intersectionRatio;if(w!==l){if(!_)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},1e3)}w===1&&!Oc(a,t.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(t)}return o(!0),s}function vd(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,a=Bo(t),c=i||s?[...a?yr(a):[],...yr(e)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const u=a&&f?bd(a,n):null;let h=-1,d=null;o&&(d=new ResizeObserver(g=>{let[m]=g;m&&m.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let b,x=l?Dn(t):null;l&&p();function p(){const g=Dn(t);x&&!Oc(x,g)&&n(),x=g,b=requestAnimationFrame(p)}return n(),()=>{var g;c.forEach(m=>{i&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(b)}}const f0=ed,u0=td,d0=Q1,h0=J1,_d=(t,e,n)=>{const r=new Map,i={platform:gd,...n},s={...i.platform,_c:r};return G1(t,e,{...i,platform:s})},yd=t=>{let e,n;const r={autoUpdate:!0};let i=t??{};const s=c=>({...r,...t||{},...c||{}}),o=c=>{e&&n&&(i=s(c),_d(e,n,i).then(u=>{Object.assign(n.style,{position:u.strategy,left:`${u.x}px`,top:`${u.y}px`}),i!=null&&i.onComputed&&i.onComputed(u)}))},f=c=>{if("subscribe"in c)return a(c),{};e=c,o()},l=(c,u)=>{let h;n=c,i=s(u),setTimeout(()=>o(u),0),o(u);const d=()=>{h&&(h(),h=void 0)},b=(x=i)=>new Promise(p=>{const{autoUpdate:g}=x||{};d(),g!==!1&&_n().then(()=>{p(vd(e,n,()=>o(x),g===!0?{}:g))})});return b().then(x=>h=x),{update(x){o(x),b().then(p=>h=p)},destroy(){d()}}},a=c=>{const u=c.subscribe(h=>{e===void 0?(e=h,o()):(Object.assign(e,h),o())});yo(u)};return[f,l,o]},wd=t=>({}),p0=t=>({}),kd=t=>({}),x0=t=>({});function m0(t){let e,n,r,i,s,o,f;const l=t[41].contentEl,a=Ge(l,t,t[40],p0);let c=t[1]&&g0(t),u=[{role:"tooltip"},{class:t[11]},{"data-popper-placement":""},t[0]],h={};for(let d=0;d<u.length;d+=1)h=Ee(h,u[d]);return{c(){e=ce("div"),a&&a.c(),n=Ae(),c&&c.c(),je(e,h),Jn(e,"svelte-13arsd0")},m(d,b){se(d,e,b),a&&a.m(e,null),le(e,n),c&&c.m(e,null),t[44](e),s=!0,o||(f=[ze(e,"animationend",t[18]),ze(e,"animationstart",t[19]),ze(e,"mouseenter",t[15]),ze(e,"mouseleave",t[16]),Zs(t[17].call(null,e)),Zs(t[13].call(null,e))],o=!0)},p(d,b){t=d,a&&a.p&&(!s||b[1]&512)&&Qe(a,l,t,t[40],s?Je(l,t[40],b,wd):$e(t[40]),p0),t[1]?c?c.p(t,b):(c=g0(t),c.c(),c.m(e,null)):c&&(c.d(1),c=null),je(e,h=Ct(u,[{role:"tooltip"},(!s||b[0]&2048)&&{class:t[11]},{"data-popper-placement":""},b[0]&1&&t[0]])),Jn(e,"svelte-13arsd0")},i(d){s||(K(a,d),d&&Qn(()=>{s&&(i&&i.end(1),r=Nu(e,s0,{duration:300,start:.3,opacity:0,easing:t[20]}),r.start())}),s=!0)},o(d){X(a,d),r&&r.invalidate(),d&&(i=Wu(e,s0,{duration:300,start:.3,opacity:0,easing:t[20]})),s=!1},d(d){d&&ie(e),a&&a.d(d),c&&c.d(),t[44](null),d&&i&&i.end(),o=!1,Ot(f)}}}function g0(t){let e,n=[{"k-popover-arrow":!0},{"data-popper-arrow-bottom":""},{"data-popper-arrow-top":""},{"data-popper-arrow-right":""},{"data-popper-arrow-left":""}],r={};for(let i=0;i<n.length;i+=1)r=Ee(r,n[i]);return{c(){e=ce("div"),je(e,r),Jn(e,"svelte-13arsd0")},m(i,s){se(i,e,s),t[43](e)},p(i,s){Jn(e,"svelte-13arsd0")},d(i){i&&ie(e),t[43](null)}}}function Ed(t){let e,n,r,i,s,o;const f=t[41].triggerEl,l=Ge(f,t,t[40],x0);let a=[t[2],{class:t[10]},{role:"button"},{tabindex:"-1"},{"data-popover-trigger":""}],c={};for(let h=0;h<a.length;h+=1)c=Ee(c,a[h]);let u=t[7]&&m0(t);return{c(){e=ce("div"),l&&l.c(),n=Ae(),u&&u.c(),r=Et(),je(e,c),ae(e,"width",t[3]),ae(e,"order",t[4]),ae(e,"opacity",t[5]),Jn(e,"svelte-13arsd0")},m(h,d){se(h,e,d),l&&l.m(e,null),t[42](e),se(h,n,d),u&&u.m(h,d),se(h,r,d),i=!0,s||(o=[Zs(t[12].call(null,e)),ze(e,"click",t[14]),ze(e,"mouseenter",t[15]),ze(e,"mouseleave",t[16])],s=!0)},p(h,d){l&&l.p&&(!i||d[1]&512)&&Qe(l,f,h,h[40],i?Je(f,h[40],d,kd):$e(h[40]),x0),je(e,c=Ct(a,[d[0]&4&&h[2],(!i||d[0]&1024)&&{class:h[10]},{role:"button"},{tabindex:"-1"},{"data-popover-trigger":""}])),ae(e,"width",h[3]),ae(e,"order",h[4]),ae(e,"opacity",h[5]),Jn(e,"svelte-13arsd0"),h[7]?u?(u.p(h,d),d[0]&128&&K(u,1)):(u=m0(h),u.c(),K(u,1),u.m(r.parentNode,r)):u&&(Ne(),X(u,1,1,()=>{u=null}),We())},i(h){i||(K(l,h),K(u),i=!0)},o(h){X(l,h),X(u),i=!1},d(h){h&&(ie(e),ie(n),ie(r)),l&&l.d(h),t[42](null),u&&u.d(h),s=!1,Ot(o)}}}function Cd(t,e,n){let r,i,s,o,f,{$$slots:l={},$$scope:a}=e,{placement:c="top"}=e,{trigger:u="hover"}=e,{attrs:h={}}=e,{disabled:d=!1}=e,{arrow:b=!0}=e,{mouseEnterDelay:x=100}=e,{mouseLeaveDelay:p=100}=e,{cls:g=void 0}=e,{clsTrigger:m=void 0}=e,{defaultOpen:v=void 0}=e,{attrsTrigger:_={}}=e,{width:C="fit-content"}=e,{order:y=void 0}=e,{offset:w={mainAxis:8,crossAxis:0}}=e,{offsetComputed:k=void 0}=e,{opacity:S=""}=e,{theme:E=void 0}=e,{fallbackPlacements:A=["top","right","bottom","left"]}=e,B=null;const D=pn(),[F,R,T]=yd({strategy:"absolute",placement:c,middleware:[f0(w),d0({fallbackPlacements:A}),u0(),h0({element:B})],onComputed({placement:J}){J!==r&&(r=J,q())}});let N=!1;Fr(()=>{v!==void 0&&O(!!v)});const P=()=>{u==="manual"&&O(!N),u==="click"&&O(!0)};let Y=!1;const z=()=>{u==="hover"&&(Y=!0,O(!0))},I=()=>{u==="hover"&&(Y=!1,O(!1))};function O(J){if(d)return;setTimeout(async()=>{if(Y){if(N)return;n(7,N=!0),D("change",N);return}J!==N&&(n(7,N=J),D("change",N))},J?x:p)}function q(){B&&B.removeAttribute("data-popper-arrow-top"),B&&B.removeAttribute("data-popper-arrow-bottom"),B&&B.removeAttribute("data-popper-arrow-left"),B&&B.removeAttribute("data-popper-arrow-right"),B&&B.setAttribute(`data-popper-arrow-${r}`,"")}let j=null;function te(J){function et(Lt){const Ve=Lt.target,Ce=J;if(Ve&&Ce&&!Ce.contains(Ve))if(j){const Ie=j.querySelector('[slot="triggerEl"]');(!Ie||!Ie.contains(Ve))&&O(!1)}else O(!1)}return u==="click"&&window.addEventListener("click",et),{destroy:()=>{u==="click"&&window.removeEventListener("click",et)}}}function ne(J){u==="hover"&&(Y=!1),O(J)}function he(){D("animateEnd")}let re=null;function $(){q(),D("animateStart")}function me(){return j}function Te(){T()}function ke(){q()}function be(J){if(k&&N){const et=k({popper:j,reference:re,placement:c});T({middleware:[f0(et),d0({fallbackPlacements:A}),u0(),h0({element:B})]})}return J<.5?4*J*J*J:.5*Math.pow(2*J-2,3)+1}function Q(J){dt[J?"unshift":"push"](()=>{j=J,n(8,j)})}function fe(J){dt[J?"unshift":"push"](()=>{B=J,n(6,B)})}function pe(J){dt[J?"unshift":"push"](()=>{re=J,n(9,re)})}return t.$$set=J=>{"placement"in J&&n(21,c=J.placement),"trigger"in J&&n(22,u=J.trigger),"attrs"in J&&n(0,h=J.attrs),"disabled"in J&&n(23,d=J.disabled),"arrow"in J&&n(1,b=J.arrow),"mouseEnterDelay"in J&&n(24,x=J.mouseEnterDelay),"mouseLeaveDelay"in J&&n(25,p=J.mouseLeaveDelay),"cls"in J&&n(26,g=J.cls),"clsTrigger"in J&&n(27,m=J.clsTrigger),"defaultOpen"in J&&n(28,v=J.defaultOpen),"attrsTrigger"in J&&n(2,_=J.attrsTrigger),"width"in J&&n(3,C=J.width),"order"in J&&n(4,y=J.order),"offset"in J&&n(29,w=J.offset),"offsetComputed"in J&&n(30,k=J.offsetComputed),"opacity"in J&&n(5,S=J.opacity),"theme"in J&&n(31,E=J.theme),"fallbackPlacements"in J&&n(32,A=J.fallbackPlacements),"$$scope"in J&&n(40,a=J.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&2097152&&(r=c),t.$$.dirty[1]&1&&n(39,i=E&&E==="dark"||E===void 0),t.$$.dirty[0]&69206016|t.$$.dirty[1]&384&&n(11,o=Oe(`${s}--base`,`${s}--base__${c}`,{[`${s}--base__${c}__dark`]:i,[`${s}--base__dark`]:i},g)),t.$$.dirty[0]&134217728|t.$$.dirty[1]&128&&n(10,f=Oe(`${s}--trigger`,m))},n(38,s=At("popover")),[h,b,_,C,y,S,B,N,j,re,f,o,F,R,P,z,I,te,he,$,be,c,u,d,x,p,g,m,v,w,k,E,A,O,ne,me,Te,ke,s,i,a,l,Q,fe,pe]}let Ad=class extends st{constructor(e){super(),it(this,e,Cd,Ed,Ue,{placement:21,trigger:22,attrs:0,disabled:23,arrow:1,mouseEnterDelay:24,mouseLeaveDelay:25,cls:26,clsTrigger:27,defaultOpen:28,attrsTrigger:2,width:3,order:4,offset:29,offsetComputed:30,opacity:5,theme:31,fallbackPlacements:32,doUpdateShow:33,updateShow:34,getPopoverContainerRef:35,forceUpdated:36,updatedArrow:37},null,[-1,-1])}get doUpdateShow(){return this.$$.ctx[33]}get updateShow(){return this.$$.ctx[34]}get getPopoverContainerRef(){return this.$$.ctx[35]}get forceUpdated(){return this.$$.ctx[36]}get updatedArrow(){return this.$$.ctx[37]}};function Sd(t){let e,n,r,i,s,o,f=[{class:r=`${t[3]} ${t[2]}`},t[5],t[1],{__value:i=`
`+t[0]+`
`}],l={};for(let a=0;a<f.length;a+=1)l=Ee(l,f[a]);return{c(){e=ce("option"),n=Pt(t[0]),je(e,l)},m(a,c){se(a,e,c),le(e,n),s||(o=ze(e,"click",t[4]),s=!0)},p(a,c){c&1&&Bu(n,a[0],l.contenteditable),je(e,l=Ct(f,[c&12&&r!==(r=`${a[3]} ${a[2]}`)&&{class:r},c&32&&a[5],c&2&&a[1],c&1&&i!==(i=`
`+a[0]+`
`)&&{__value:i}]))},d(a){a&&ie(e),s=!1,o()}}}function Dd(t){let e;const n=t[11].default,r=Ge(n,t,t[10],null),i=r||Sd(t);return{c(){i&&i.c()},m(s,o){i&&i.m(s,o),e=!0},p(s,[o]){r?r.p&&(!e||o&1024)&&Qe(r,n,s,s[10],e?Je(n,s[10],o,null):$e(s[10]),null):i&&i.p&&(!e||o&47)&&i.p(s,e?o:-1)},i(s){e||(K(i,s),e=!0)},o(s){X(i,s),e=!1},d(s){i&&i.d(s)}}}function Bd(t,e,n){let r,i;const s=["label","cls","disabled","isActive","attrs","fitInputWidth"];let o=rt(e,s),{$$slots:f={},$$scope:l}=e,{label:a=""}=e,{cls:c=void 0}=e,{disabled:u=!1}=e,{isActive:h=!1}=e,{attrs:d={}}=e,{fitInputWidth:b=!1}=e;const x=pn(),p=()=>{u||x("click")},g=At("select--option");return t.$$set=m=>{e=Ee(Ee({},e),hn(m)),n(5,o=rt(e,s)),"label"in m&&n(0,a=m.label),"cls"in m&&n(6,c=m.cls),"disabled"in m&&n(7,u=m.disabled),"isActive"in m&&n(8,h=m.isActive),"attrs"in m&&n(1,d=m.attrs),"fitInputWidth"in m&&n(9,b=m.fitInputWidth),"$$scope"in m&&n(10,l=m.$$scope)},t.$$.update=()=>{t.$$.dirty&704&&n(3,r=Oe(`${g}`,`${g}__dark`,`${g}__hover`,{[`${g}--base__disabled__dark`]:u,[`${g}__fit`]:b},c)),t.$$.dirty&256&&n(2,i=h?`${g}__active`:"")},[a,d,i,r,p,o,c,u,h,b,l,f]}class Fd extends st{constructor(e){super(),it(this,e,Bd,Dd,Ue,{label:0,cls:6,disabled:7,isActive:8,attrs:1,fitInputWidth:9})}}const Td=t=>({}),b0=t=>({}),Rd=t=>({}),v0=t=>({}),Od=t=>({data:t[2]&2048,label:t[2]&2048,isActive:t[2]&2048}),_0=t=>({data:t[73],onSelect:t[26],label:t[28](t[73]),isActive:t[29](t[73])});function y0(t){let e,n,r;return n=new nr({props:{icon:t[1],cls:t[35],width:"auto",height:"auto"}}),{c(){e=ce("i"),we(n.$$.fragment)},m(i,s){se(i,e,s),_e(n,e,null),r=!0},p(i,s){const o={};s[0]&2&&(o.icon=i[1]),n.$set(o)},i(i){r||(K(n.$$.fragment,i),r=!0)},o(i){X(n.$$.fragment,i),r=!1},d(i){i&&ie(e),ye(n)}}}function Pd(t){let e,n,r=t[1]&&y0(t);return{c(){r&&r.c(),e=Et()},m(i,s){r&&r.m(i,s),se(i,e,s),n=!0},p(i,s){i[1]?r?(r.p(i,s),s[0]&2&&K(r,1)):(r=y0(i),r.c(),K(r,1),r.m(e.parentNode,e)):r&&(Ne(),X(r,1,1,()=>{r=null}),We())},i(i){n||(K(r),n=!0)},o(i){X(r),n=!1},d(i){i&&ie(e),r&&r.d(i)}}}function w0(t){let e,n,r;return n=new nr({props:{icon:t[2],cls:t[36],width:"auto",height:"auto"}}),{c(){e=ce("i"),we(n.$$.fragment)},m(i,s){se(i,e,s),_e(n,e,null),r=!0},p(i,s){const o={};s[0]&4&&(o.icon=i[2]),n.$set(o)},i(i){r||(K(n.$$.fragment,i),r=!0)},o(i){X(n.$$.fragment,i),r=!1},d(i){i&&ie(e),ye(n)}}}function Id(t){let e,n,r=t[2]&&w0(t);return{c(){r&&r.c(),e=Et()},m(i,s){r&&r.m(i,s),se(i,e,s),n=!0},p(i,s){i[2]?r?(r.p(i,s),s[0]&4&&K(r,1)):(r=w0(i),r.c(),K(r,1),r.m(e.parentNode,e)):r&&(Ne(),X(r,1,1,()=>{r=null}),We())},i(i){n||(K(r),n=!0)},o(i){X(r),n=!1},d(i){i&&ie(e),r&&r.d(i)}}}function Ld(t){let e,n,r;return n=new nr({props:{icon:t[19],cls:t[37],width:"auto",height:"auto"}}),{c(){e=ce("i"),we(n.$$.fragment)},m(i,s){se(i,e,s),_e(n,e,null),r=!0},p(i,s){const o={};s[0]&524288&&(o.icon=i[19]),n.$set(o)},i(i){r||(K(n.$$.fragment,i),r=!0)},o(i){X(n.$$.fragment,i),r=!1},d(i){i&&ie(e),ye(n)}}}function qd(t){let e,n,r,i,s;return n=new nr({props:{icon:"i-carbon-close-outline",cls:t[37],width:"auto",height:"auto"}}),{c(){e=ce("button"),we(n.$$.fragment),W(e,"data-k-select-clear",""),W(e,"class",t[34])},m(o,f){se(o,e,f),_e(n,e,null),r=!0,i||(s=ze(e,"click",t[31]),i=!0)},p:De,i(o){r||(K(n.$$.fragment,o),r=!0)},o(o){X(n.$$.fragment,o),r=!1},d(o){o&&ie(e),ye(n),i=!1,s()}}}function Nd(t){let e,n,r,i,s,o,f,l,a,c,u,h;const d=t[51].prefix,b=Ge(d,t,t[59],v0),x=b||Pd(t),p=t[51].suffix,g=Ge(p,t,t[59],b0),m=g||Id(t),v=[qd,Ld],_=[];function C(k,S){return k[9]&&k[17]?0:1}l=C(t),a=_[l]=v[l](t);let y=[t[5],{class:t[25]},{slot:"triggerEl"},{role:"button"},{tabindex:"-1"}],w={};for(let k=0;k<y.length;k+=1)w=Ee(w,y[k]);return{c(){e=ce("div"),x&&x.c(),n=Ae(),r=ce("input"),o=Ae(),m&&m.c(),f=Ae(),a.c(),W(r,"class",t[24]),r.readOnly=i=!t[10],r.value=s=t[28](t[0]),r.disabled=t[11],W(r,"placeholder",t[4]),je(e,w)},m(k,S){se(k,e,S),x&&x.m(e,null),le(e,n),le(e,r),le(e,o),m&&m.m(e,null),le(e,f),_[l].m(e,null),t[57](e),c=!0,u||(h=[ze(r,"input",t[33]),ze(e,"mouseenter",t[55]),ze(e,"mouseleave",t[56])],u=!0)},p(k,S){b?b.p&&(!c||S[1]&268435456)&&Qe(b,d,k,k[59],c?Je(d,k[59],S,Rd):$e(k[59]),v0):x&&x.p&&(!c||S[0]&2)&&x.p(k,c?S:[-1,-1,-1]),(!c||S[0]&16777216)&&W(r,"class",k[24]),(!c||S[0]&1024&&i!==(i=!k[10]))&&(r.readOnly=i),(!c||S[0]&1&&s!==(s=k[28](k[0]))&&r.value!==s)&&(r.value=s),(!c||S[0]&2048)&&(r.disabled=k[11]),(!c||S[0]&16)&&W(r,"placeholder",k[4]),g?g.p&&(!c||S[1]&268435456)&&Qe(g,p,k,k[59],c?Je(p,k[59],S,Td):$e(k[59]),b0):m&&m.p&&(!c||S[0]&4)&&m.p(k,c?S:[-1,-1,-1]);let E=l;l=C(k),l===E?_[l].p(k,S):(Ne(),X(_[E],1,1,()=>{_[E]=null}),We(),a=_[l],a?a.p(k,S):(a=_[l]=v[l](k),a.c()),K(a,1),a.m(e,null)),je(e,w=Ct(y,[S[0]&32&&k[5],(!c||S[0]&33554432)&&{class:k[25]},{slot:"triggerEl"},{role:"button"},{tabindex:"-1"}]))},i(k){c||(K(x,k),K(m,k),K(a),c=!0)},o(k){X(x,k),X(m,k),X(a),c=!1},d(k){k&&ie(e),x&&x.d(k),m&&m.d(k),_[l].d(),t[57](null),u=!1,Ot(h)}}}function Wd(t){let e,n;return{c(){e=ce("p"),n=Pt(t[23]),W(e,"class",t[38])},m(r,i){se(r,e,i),le(e,n)},p(r,i){i[0]&8388608&&Jt(n,r[23])},i:De,o:De,d(r){r&&ie(e)}}}function Md(t){let e,n,r={data:t[12],key:t[6],estimateSize:t[12].length,$$slots:{default:[Ud,({data:i})=>({73:i}),({data:i})=>[0,0,i?2048:0]]},$$scope:{ctx:t}};return e=new j1({props:r}),t[53](e),{c(){we(e.$$.fragment)},m(i,s){_e(e,i,s),n=!0},p(i,s){const o={};s[0]&4096&&(o.data=i[12]),s[0]&64&&(o.key=i[6]),s[0]&4096&&(o.estimateSize=i[12].length),s[0]&128|s[1]&268435712|s[2]&2048&&(o.$$scope={dirty:s,ctx:i}),e.$set(o)},i(i){n||(K(e.$$.fragment,i),n=!0)},o(i){X(e.$$.fragment,i),n=!1},d(i){t[53](null),ye(e,i)}}}function jd(t){let e;const n=t[51].default,r=Ge(n,t,t[59],_0);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s[1]&268435456|s[2]&2048)&&Qe(r,n,i,i[59],e?Je(n,i[59],s,Od):$e(i[59]),_0)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function zd(t){let e,n;function r(){return t[52](t[73])}return e=new Fd({props:{fitInputWidth:t[7],label:t[28](t[73]),isActive:t[29](t[73])}}),e.$on("click",r),{c(){we(e.$$.fragment)},m(i,s){_e(e,i,s),n=!0},p(i,s){t=i;const o={};s[0]&128&&(o.fitInputWidth=t[7]),s[2]&2048&&(o.label=t[28](t[73])),s[2]&2048&&(o.isActive=t[29](t[73])),e.$set(o)},i(i){n||(K(e.$$.fragment,i),n=!0)},o(i){X(e.$$.fragment,i),n=!1},d(i){ye(e,i)}}}function Ud(t){let e,n,r,i;const s=[zd,jd],o=[];function f(l,a){return l[39].default?1:0}return e=f(t),n=o[e]=s[e](t),{c(){n.c(),r=Et()},m(l,a){o[e].m(l,a),se(l,r,a),i=!0},p(l,a){let c=e;e=f(l),e===c?o[e].p(l,a):(Ne(),X(o[c],1,1,()=>{o[c]=null}),We(),n=o[e],n?n.p(l,a):(n=o[e]=s[e](l),n.c()),K(n,1),n.m(r.parentNode,r))},i(l){i||(K(n),i=!0)},o(l){X(n),i=!1},d(l){l&&ie(r),o[e].d(l)}}}function Hd(t){let e,n,r,i;const s=[Md,Wd],o=[];function f(l,a){return l[12].length>0?0:1}return n=f(t),r=o[n]=s[n](t),{c(){e=ce("div"),r.c(),W(e,"slot","contentEl"),ae(e,"overflow-y","auto"),ae(e,"width",t[15]),ae(e,"min-width",t[16]),ae(e,"height",t[22]),ae(e,"max-height",`${t[8]}px`)},m(l,a){se(l,e,a),o[n].m(e,null),t[54](e),i=!0},p(l,a){let c=n;n=f(l),n===c?o[n].p(l,a):(Ne(),X(o[c],1,1,()=>{o[c]=null}),We(),r=o[n],r?r.p(l,a):(r=o[n]=s[n](l),r.c()),K(r,1),r.m(e,null)),a[0]&32768&&ae(e,"width",l[15]),a[0]&65536&&ae(e,"min-width",l[16]),a[0]&4194304&&ae(e,"height",l[22]),a[0]&256&&ae(e,"max-height",`${l[8]}px`)},i(l){i||(K(r),i=!0)},o(l){X(r),i=!1},d(l){l&&ie(e),o[n].d(),t[54](null)}}}function Yd(t){let e,n,r,i,s={trigger:"click",disabled:t[18],clsTrigger:t[3],cls:"px-0",arrow:!1,width:t[16],placement:"bottom",$$slots:{contentEl:[Hd],triggerEl:[Nd]},$$scope:{ctx:t}};return e=new Ad({props:s}),t[58](e),e.$on("change",t[32]),{c(){we(e.$$.fragment)},m(o,f){_e(e,o,f),n=!0,r||(i=ze(window,"resize",t[27]),r=!0)},p(o,f){const l={};f[0]&262144&&(l.disabled=o[18]),f[0]&8&&(l.clsTrigger=o[3]),f[0]&65536&&(l.width=o[16]),f[0]&66838519|f[1]&268435712&&(l.$$scope={dirty:f,ctx:o}),e.$set(l)},i(o){n||(K(e.$$.fragment,o),n=!0)},o(o){X(e.$$.fragment,o),n=!1},d(o){t[58](null),ye(e,o),r=!1,i()}}}function Kd(t,e,n){let r,i,s,o,f,{$$slots:l={},$$scope:a}=e;const c=Br(l);let{iconPrefix:u=""}=e,{iconSuffix:h=""}=e,{value:d=""}=e,{cls:b=void 0}=e,{clsSelect:x=void 0}=e,{placeholder:p="Please select value"}=e,{disabled:g=!1}=e,{attrs:m={}}=e,{labelKey:v="label"}=e,{valueKey:_="value"}=e,{key:C="id"}=e,{fitInputWidth:y=!0}=e,{dataList:w=[]}=e,{maxHeight:k=250}=e,{clearable:S=!1}=e,{remote:E=void 0}=e,{size:A="md"}=e,B=!1,D="",F=!1;const R=Yn(Ku),T=Yn(pc);let N="";function P(M=!1){N=R.split("&").pop(),n(0,d=T.getValueByPath(N,M?T.__default_value:T.__value)||"")}function Y(M){n(46,B=M.disabled),n(47,D=M.size)}function z(M){n(48,F=M)}R&&T&&(P(!0),Y(T.__dynamicProps),T.__itemCompMap[N]={update:P,type:"select"},T.__errorCompEvtMap[N]=z,T.__propHandleEvtMap.push(Y));let I="o";const O=M=>s1(M)?(I="s",{[v]:M,[_]:M,[C]:M}):Qs(M)?(I="n",{[v]:M,[_]:M,[C]:M}):M;let q=w.map(O);const j=pn();let te=null;const ne=async M=>{if(!r){if(M&&(I==="n"||I==="s")){const Se=M[_];j("updateValue",Se),T&&(T==null||T.updateField(N,Se,!T.__manual_validate)),T&&n(0,d=Se),await _n()}else(!M&&(I==="n"||I==="s")||I==="o"&&$s(M))&&(j("updateValue",M),T&&(T==null||T.updateField(N,M,!T.__manual_validate)),await _n(),T&&n(0,d=M));te.updateShow(!1)}};let he=null,re,$="initial";const me=()=>{if(he){const{width:M}=he.getBoundingClientRect();n(16,$=`${M}px`),n(15,re=y?`${M}px`:void 0)}};Fr(()=>{me()});const Te=M=>$s(M)?(M[v]||"").toString():M,ke=M=>I==="o"?M[_]===d[_]:M[_]===d;let be=!1;const Q=M=>{r||(M?Te(d)&&n(17,be=M):n(17,be=M))},fe=M=>{M.stopPropagation(),ne(I==="o"?{}:I==="s"?"":null)};let pe=r||!!E;async function J(M){await _n(),Lt(M),M.detail&&q.length>0?setTimeout(lt,200):!M.detail&&E&&n(18,pe=!0)}let et="i-carbon-chevron-down ";function Lt(M){n(19,et=M.detail?"i-carbon-chevron-down rotate-180":"i-carbon-chevron-down")}let Ve=null,Ce=null,Ie="initial";async function lt(){if(Ve){const M=Ve.childNodes[0];if(M&&M.children[0]){const{height:tt}=M.children[0].getBoundingClientRect();tt>k&&(n(22,Ie=`${k}px`),await _n(),Ce&&Qt())}}}async function Qt(){for(let M=0;M<q.length;M++)if(ke(q[M])){Ce&&Ce.scrollToIndex(M-3);break}}let qt="no data";const Nt=x1(async M=>{n(12,q=[]),n(18,pe=!1),n(22,Ie="initial"),await _n(),te.updateShow(!0),n(23,qt="loading");try{E&&E(M.target.value,Se=>{n(12,q=Se.map(O)),n(23,qt="no data"),q.length>0&&lt()})}catch{n(23,qt="no data")}},300),xe=At("select"),mn=Oe(`${xe}--clear`),On=Oe(`${xe}--prefix`,`${xe}--icon__${i||A}`),gn=Oe(`${xe}--suffix`,`${xe}--icon__${i||A}`),Wt=Oe(`${xe}--icon`,`${xe}--icon__${i||A}`),Zt=Oe(`${xe}--tx__empty`),or=M=>ne(M);function H(M){dt[M?"unshift":"push"](()=>{Ce=M,n(21,Ce)})}function Z(M){dt[M?"unshift":"push"](()=>{Ve=M,n(20,Ve)})}const V=()=>Q(!0),G=()=>Q(!1);function ee(M){dt[M?"unshift":"push"](()=>{he=M,n(14,he)})}function oe(M){dt[M?"unshift":"push"](()=>{te=M,n(13,te)})}return t.$$set=M=>{"iconPrefix"in M&&n(1,u=M.iconPrefix),"iconSuffix"in M&&n(2,h=M.iconSuffix),"value"in M&&n(0,d=M.value),"cls"in M&&n(3,b=M.cls),"clsSelect"in M&&n(40,x=M.clsSelect),"placeholder"in M&&n(4,p=M.placeholder),"disabled"in M&&n(41,g=M.disabled),"attrs"in M&&n(5,m=M.attrs),"labelKey"in M&&n(42,v=M.labelKey),"valueKey"in M&&n(43,_=M.valueKey),"key"in M&&n(6,C=M.key),"fitInputWidth"in M&&n(7,y=M.fitInputWidth),"dataList"in M&&n(44,w=M.dataList),"maxHeight"in M&&n(8,k=M.maxHeight),"clearable"in M&&n(9,S=M.clearable),"remote"in M&&n(10,E=M.remote),"size"in M&&n(45,A=M.size),"$$scope"in M&&n(59,a=M.$$scope)},t.$$.update=()=>{t.$$.dirty[1]&33792&&n(11,r=B||g),t.$$.dirty[1]&81920&&n(49,i=D||A),t.$$.dirty[1]&131072&&n(50,s=F),t.$$.dirty[1]&8192&&n(12,q=w.map(O)),t.$$.dirty[0]&3072&&n(18,pe=r||!!E),t.$$.dirty[0]&2048|t.$$.dirty[1]&803328&&n(25,o=Oe(`${xe}--base`,`${xe}__${i||A}`,{[`${xe}--base__disabled`]:r,[`${xe}--base__dark`]:!r,[`${xe}--base__disabled__dark`]:r},{[`${xe}__error`]:s,[`${xe}__hover`]:!s,[`${xe}__focus`]:!s},x)),t.$$.dirty[0]&2048|t.$$.dirty[1]&278528&&n(24,f=Oe(`${xe}--inner`,`${xe}--inner__${i||A}`,{[`${xe}--inner__dark`]:!r,[`${xe}--base__disabled`]:r,[`${xe}--base__disabled__dark`]:r,[`${xe}--inner__disabled__dark`]:r}))},[d,u,h,b,p,m,C,y,k,S,E,r,q,te,he,re,$,be,pe,et,Ve,Ce,Ie,qt,f,o,ne,me,Te,ke,Q,fe,J,Nt,mn,On,gn,Wt,Zt,c,x,g,v,_,w,A,B,D,F,i,s,l,or,H,Z,V,G,ee,oe,a]}let Vd=class extends st{constructor(e){super(),it(this,e,Kd,Yd,Ue,{iconPrefix:1,iconSuffix:2,value:0,cls:3,clsSelect:40,placeholder:4,disabled:41,attrs:5,labelKey:42,valueKey:43,key:6,fitInputWidth:7,dataList:44,maxHeight:8,clearable:9,remote:10,size:45},null,[-1,-1,-1])}};function k0(t){let e,n;const r=t[11].default,i=Ge(r,t,t[10],null);return{c(){e=ce("span"),i&&i.c(),W(e,"class",t[2])},m(s,o){se(s,e,o),i&&i.m(e,null),n=!0},p(s,o){i&&i.p&&(!n||o&1024)&&Qe(i,r,s,s[10],n?Je(r,s[10],o,null):$e(s[10]),null),(!n||o&4)&&W(e,"class",s[2])},i(s){n||(K(i,s),n=!0)},o(s){X(i,s),n=!1},d(s){s&&ie(e),i&&i.d(s)}}}function Zd(t){let e,n,r=t[0]==="horizontal"&&t[5].default&&k0(t),i=[{class:t[3]},t[4],t[1],{"data-divider":"k-divider"}],s={};for(let o=0;o<i.length;o+=1)s=Ee(s,i[o]);return{c(){e=ce("div"),r&&r.c(),je(e,s)},m(o,f){se(o,e,f),r&&r.m(e,null),n=!0},p(o,[f]){o[0]==="horizontal"&&o[5].default?r?(r.p(o,f),f&33&&K(r,1)):(r=k0(o),r.c(),K(r,1),r.m(e,null)):r&&(Ne(),X(r,1,1,()=>{r=null}),We()),je(e,s=Ct(i,[(!n||f&8)&&{class:o[3]},f&16&&o[4],f&2&&o[1],{"data-divider":"k-divider"}]))},i(o){n||(K(r),n=!0)},o(o){X(r),n=!1},d(o){o&&ie(e),r&&r.d()}}}function Xd(t,e,n){let r,i;const s=["direction","borderColor","borderStyle","contentPosition","cls","attrs"];let o=rt(e,s),{$$slots:f={},$$scope:l}=e;const a=Br(f);let{direction:c="horizontal"}=e,{borderColor:u="b-ikun-bd-base"}=e,{borderStyle:h="solid"}=e,{contentPosition:d="center"}=e,{cls:b=void 0}=e,{attrs:x={}}=e;const p=At("divider");return t.$$set=g=>{e=Ee(Ee({},e),hn(g)),n(4,o=rt(e,s)),"direction"in g&&n(0,c=g.direction),"borderColor"in g&&n(6,u=g.borderColor),"borderStyle"in g&&n(7,h=g.borderStyle),"contentPosition"in g&&n(8,d=g.contentPosition),"cls"in g&&n(9,b=g.cls),"attrs"in g&&n(1,x=g.attrs),"$$scope"in g&&n(10,l=g.$$scope)},t.$$.update=()=>{t.$$.dirty&961&&n(3,r=Oe(p,`${p}--${c}`,`${p}--${c}__${h}`,`${p}--content-${d}`,u,b))},n(2,i=Oe(`${p}--content`)),[c,x,i,r,o,a,u,h,d,b,l,f]}let To=class extends st{constructor(e){super(),it(this,e,Xd,Zd,Ue,{direction:0,borderColor:6,borderStyle:7,contentPosition:8,cls:9,attrs:1})}};function Gd(t){let e,n,r,i,s,o,f,l,a;return{c(){e=ft("circle"),s=Ae(),o=ft("circle"),W(e,"cx",n=t[0]/2),W(e,"cy",r=t[0]/2),W(e,"r",t[4]),W(e,"stroke-width",t[1]),W(e,"stroke-linecap","round"),W(e,"stroke-dasharray",i=t[9]+" "+t[3]),W(e,"stroke-dashoffset",t[10]),W(e,"fill","none"),W(e,"transform",t[7]),W(e,"class",t[5]),W(o,"cx",f=t[0]/2),W(o,"cy",l=t[0]/2),W(o,"r",t[4]),W(o,"stroke",t[2]),W(o,"stroke-width",t[1]),W(o,"stroke-linecap","round"),W(o,"stroke-dasharray",a=t[8]+" "+t[3]),W(o,"stroke-dashoffset",t[10]),W(o,"fill","none"),W(o,"transform",t[7]),W(o,"class",t[6])},m(c,u){se(c,e,u),se(c,s,u),se(c,o,u)},p(c,[u]){u&1&&n!==(n=c[0]/2)&&W(e,"cx",n),u&1&&r!==(r=c[0]/2)&&W(e,"cy",r),u&16&&W(e,"r",c[4]),u&2&&W(e,"stroke-width",c[1]),u&520&&i!==(i=c[9]+" "+c[3])&&W(e,"stroke-dasharray",i),u&1024&&W(e,"stroke-dashoffset",c[10]),u&128&&W(e,"transform",c[7]),u&32&&W(e,"class",c[5]),u&1&&f!==(f=c[0]/2)&&W(o,"cx",f),u&1&&l!==(l=c[0]/2)&&W(o,"cy",l),u&16&&W(o,"r",c[4]),u&4&&W(o,"stroke",c[2]),u&2&&W(o,"stroke-width",c[1]),u&264&&a!==(a=c[8]+" "+c[3])&&W(o,"stroke-dasharray",a),u&1024&&W(o,"stroke-dashoffset",c[10]),u&128&&W(o,"transform",c[7]),u&64&&W(o,"class",c[6])},i:De,o:De,d(c){c&&(ie(e),ie(s),ie(o))}}}function Jd(t,e,n){let r,i,s,o,f,l,a,c,{size:u=126}=e,{strokeWidth:h=6}=e,{type:d="line"}=e,{status:b="primary"}=e,{percentage:x=0}=e,{color:p=""}=e,g=d==="dashboard"?.75:1;const m=At("progress");return t.$$set=v=>{"size"in v&&n(0,u=v.size),"strokeWidth"in v&&n(1,h=v.strokeWidth),"type"in v&&n(11,d=v.type),"status"in v&&n(12,b=v.status),"percentage"in v&&n(13,x=v.percentage),"color"in v&&n(2,p=v.color)},t.$$.update=()=>{t.$$.dirty&3&&n(4,r=(u-h*2)/2),t.$$.dirty&16&&n(3,i=2*Math.PI*r),t.$$.dirty&8&&n(10,s=-1*i*(1-g)/2),t.$$.dirty&8&&n(9,o=i*g),t.$$.dirty&8200&&n(8,f=i*g*(x/100)),t.$$.dirty&2049&&n(7,l=`rotate(${d==="dashboard"?90:-90}, ${u/2}, ${u/2})`),t.$$.dirty&4100&&n(6,a=Oe(`${m}--bar__cd`,{[`${m}--stroke--${b}`]:!p}))},n(5,c=Oe(`${m}--stroke--runway`,`${m}--stroke--runway__dark`)),[u,h,p,i,r,c,a,l,f,o,s,d,b,x]}class Qd extends st{constructor(e){super(),it(this,e,Jd,Gd,Ue,{size:0,strokeWidth:1,type:11,status:12,percentage:13,color:2})}}function $d(t){let e,n,r,i,s,o,f=`${t[4]}px`,l=`${t[4]}px`,a;r=new Qd({props:{size:t[4],strokeWidth:t[3],percentage:t[0],type:t[2],color:t[5],status:t[1]}});let c=t[8]&&E0(t),u=[{class:t[11]},t[19],t[9]],h={};for(let d=0;d<u.length;d+=1)h=Ee(h,u[d]);return{c(){e=ce("div"),n=ft("svg"),we(r.$$.fragment),s=Ae(),o=ce("div"),c&&c.c(),W(n,"width",t[4]),W(n,"height",t[4]),W(n,"viewBox",i="0 0 "+t[4]+" "+t[4]),W(o,"class",t[10]),je(e,h),ae(e,"width",f),ae(e,"height",l)},m(d,b){se(d,e,b),le(e,n),_e(r,n,null),le(e,s),le(e,o),c&&c.m(o,null),a=!0},p(d,b){const x={};b&16&&(x.size=d[4]),b&8&&(x.strokeWidth=d[3]),b&1&&(x.percentage=d[0]),b&4&&(x.type=d[2]),b&32&&(x.color=d[5]),b&2&&(x.status=d[1]),r.$set(x),(!a||b&16)&&W(n,"width",d[4]),(!a||b&16)&&W(n,"height",d[4]),(!a||b&16&&i!==(i="0 0 "+d[4]+" "+d[4]))&&W(n,"viewBox",i),d[8]?c?(c.p(d,b),b&256&&K(c,1)):(c=E0(d),c.c(),K(c,1),c.m(o,null)):c&&(Ne(),X(c,1,1,()=>{c=null}),We()),(!a||b&1024)&&W(o,"class",d[10]),je(e,h=Ct(u,[(!a||b&2048)&&{class:d[11]},b&524288&&d[19],b&512&&d[9]])),b&16&&(f=`${d[4]}px`),ae(e,"width",f),b&16&&(l=`${d[4]}px`),ae(e,"height",l)},i(d){a||(K(r.$$.fragment,d),K(c),a=!0)},o(d){X(r.$$.fragment,d),X(c),a=!1},d(d){d&&ie(e),ye(r),c&&c.d()}}}function eh(t){let e,n,r,i,s,o=`${t[0]}%`,f=`${t[3]}px`,l=`${t[7]}s`,a=`${t[3]}px`,c=`${t[3]}px`,u,h,d,b=t[8]&&t[6]&&C0(t),x=t[8]&&!t[6]&&A0(t),p=[{class:t[17]},t[19],t[9]],g={};for(let m=0;m<p.length;m+=1)g=Ee(g,p[m]);return{c(){e=ce("div"),n=ce("div"),r=ce("div"),i=ce("div"),s=ce("div"),b&&b.c(),u=Ae(),h=ce("div"),x&&x.c(),W(s,"class",t[13]),W(i,"class",t[14]),ae(i,"width",o),ae(i,"background-color",t[5]),ae(i,"border-radius",f),ae(i,"transition-duration",l),ae(i,"left","0%"),W(r,"class",t[15]),W(n,"class",t[16]),ae(n,"width",t[8]?"90%":""),ae(n,"height",a),ae(n,"border-radius",c),W(h,"class",t[12]),je(e,g)},m(m,v){se(m,e,v),le(e,n),le(n,r),le(r,i),le(i,s),b&&b.m(s,null),le(e,u),le(e,h),x&&x.m(h,null),d=!0},p(m,v){m[8]&&m[6]?b?(b.p(m,v),v&320&&K(b,1)):(b=C0(m),b.c(),K(b,1),b.m(s,null)):b&&(Ne(),X(b,1,1,()=>{b=null}),We()),(!d||v&8192)&&W(s,"class",m[13]),(!d||v&16384)&&W(i,"class",m[14]),v&1&&o!==(o=`${m[0]}%`)&&ae(i,"width",o),v&32&&ae(i,"background-color",m[5]),v&8&&f!==(f=`${m[3]}px`)&&ae(i,"border-radius",f),v&128&&l!==(l=`${m[7]}s`)&&ae(i,"transition-duration",l),(!d||v&32768)&&W(r,"class",m[15]),(!d||v&65536)&&W(n,"class",m[16]),v&256&&ae(n,"width",m[8]?"90%":""),v&8&&a!==(a=`${m[3]}px`)&&ae(n,"height",a),v&8&&c!==(c=`${m[3]}px`)&&ae(n,"border-radius",c),m[8]&&!m[6]?x?(x.p(m,v),v&320&&K(x,1)):(x=A0(m),x.c(),K(x,1),x.m(h,null)):x&&(Ne(),X(x,1,1,()=>{x=null}),We()),(!d||v&4096)&&W(h,"class",m[12]),je(e,g=Ct(p,[(!d||v&131072)&&{class:m[17]},v&524288&&m[19],v&512&&m[9]]))},i(m){d||(K(b),K(x),d=!0)},o(m){X(b),X(x),d=!1},d(m){m&&ie(e),b&&b.d(),x&&x.d()}}}function E0(t){let e,n,r,i;const s=[nh,th],o=[];function f(l,a){return l[20].default?0:1}return e=f(t),n=o[e]=s[e](t),{c(){n.c(),r=Et()},m(l,a){o[e].m(l,a),se(l,r,a),i=!0},p(l,a){let c=e;e=f(l),e===c?o[e].p(l,a):(Ne(),X(o[c],1,1,()=>{o[c]=null}),We(),n=o[e],n?n.p(l,a):(n=o[e]=s[e](l),n.c()),K(n,1),n.m(r.parentNode,r))},i(l){i||(K(n),i=!0)},o(l){X(n),i=!1},d(l){l&&ie(r),o[e].d(l)}}}function th(t){let e,n;return{c(){e=ce("span"),n=Pt(t[18])},m(r,i){se(r,e,i),le(e,n)},p(r,i){i&262144&&Jt(n,r[18])},i:De,o:De,d(r){r&&ie(e)}}}function nh(t){let e;const n=t[24].default,r=Ge(n,t,t[23],null);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&8388608)&&Qe(r,n,i,i[23],e?Je(n,i[23],s,null):$e(i[23]),null)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function C0(t){let e,n,r,i;const s=[ih,rh],o=[];function f(l,a){return l[20].default?0:1}return e=f(t),n=o[e]=s[e](t),{c(){n.c(),r=Et()},m(l,a){o[e].m(l,a),se(l,r,a),i=!0},p(l,a){let c=e;e=f(l),e===c?o[e].p(l,a):(Ne(),X(o[c],1,1,()=>{o[c]=null}),We(),n=o[e],n?n.p(l,a):(n=o[e]=s[e](l),n.c()),K(n,1),n.m(r.parentNode,r))},i(l){i||(K(n),i=!0)},o(l){X(n),i=!1},d(l){l&&ie(r),o[e].d(l)}}}function rh(t){let e,n;return{c(){e=ce("span"),n=Pt(t[18])},m(r,i){se(r,e,i),le(e,n)},p(r,i){i&262144&&Jt(n,r[18])},i:De,o:De,d(r){r&&ie(e)}}}function ih(t){let e;const n=t[24].default,r=Ge(n,t,t[23],null);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&8388608)&&Qe(r,n,i,i[23],e?Je(n,i[23],s,null):$e(i[23]),null)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function A0(t){let e,n,r,i;const s=[oh,sh],o=[];function f(l,a){return l[20].default?0:1}return e=f(t),n=o[e]=s[e](t),{c(){n.c(),r=Et()},m(l,a){o[e].m(l,a),se(l,r,a),i=!0},p(l,a){let c=e;e=f(l),e===c?o[e].p(l,a):(Ne(),X(o[c],1,1,()=>{o[c]=null}),We(),n=o[e],n?n.p(l,a):(n=o[e]=s[e](l),n.c()),K(n,1),n.m(r.parentNode,r))},i(l){i||(K(n),i=!0)},o(l){X(n),i=!1},d(l){l&&ie(r),o[e].d(l)}}}function sh(t){let e,n;return{c(){e=ce("span"),n=Pt(t[18])},m(r,i){se(r,e,i),le(e,n)},p(r,i){i&262144&&Jt(n,r[18])},i:De,o:De,d(r){r&&ie(e)}}}function oh(t){let e;const n=t[24].default,r=Ge(n,t,t[23],null);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&8388608)&&Qe(r,n,i,i[23],e?Je(n,i[23],s,null):$e(i[23]),null)},i(i){e||(K(r,i),e=!0)},o(i){X(r,i),e=!1},d(i){r&&r.d(i)}}}function ah(t){let e,n,r,i,s;const o=[eh,$d],f=[];function l(a,c){return c&4&&(e=null),a[2]==="line"?0:(e==null&&(e=!!["circle","dashboard"].includes(a[2])),e?1:-1)}return~(n=l(t,-1))&&(r=f[n]=o[n](t)),{c(){r&&r.c(),i=Et()},m(a,c){~n&&f[n].m(a,c),se(a,i,c),s=!0},p(a,[c]){let u=n;n=l(a,c),n===u?~n&&f[n].p(a,c):(r&&(Ne(),X(f[u],1,1,()=>{f[u]=null}),We()),~n?(r=f[n],r?r.p(a,c):(r=f[n]=o[n](a),r.c()),K(r,1),r.m(i.parentNode,i)):r=null)},i(a){s||(K(r),s=!0)},o(a){X(r),s=!1},d(a){a&&ie(i),~n&&f[n].d(a)}}}function lh(t,e,n){let r,i,s,o,f,l,a,c,u;const h=["percentage","status","type","strokeWidth","width","color","textInside","format","duration","showText","cls","attrs"];let d=rt(e,h),{$$slots:b={},$$scope:x}=e;const p=Br(b);let{percentage:g=0}=e,{status:m="primary"}=e,{type:v="line"}=e,{strokeWidth:_=6}=e,{width:C=126}=e,{color:y=""}=e,{textInside:w=!1}=e,{format:k=null}=e,{duration:S=.28}=e,{showText:E=!0}=e,{cls:A=void 0}=e,{attrs:B={}}=e;const D=At("progress");return t.$$set=F=>{e=Ee(Ee({},e),hn(F)),n(19,d=rt(e,h)),"percentage"in F&&n(0,g=F.percentage),"status"in F&&n(1,m=F.status),"type"in F&&n(2,v=F.type),"strokeWidth"in F&&n(3,_=F.strokeWidth),"width"in F&&n(4,C=F.width),"color"in F&&n(5,y=F.color),"textInside"in F&&n(6,w=F.textInside),"format"in F&&n(21,k=F.format),"duration"in F&&n(7,S=F.duration),"showText"in F&&n(8,E=F.showText),"cls"in F&&n(22,A=F.cls),"attrs"in F&&n(9,B=F.attrs),"$$scope"in F&&n(23,x=F.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&(g>=100?n(0,g=100):g<=0&&n(0,g=0)),t.$$.dirty&2097153&&n(18,r=k&&o1(k)?k(g):`${g}%`),t.$$.dirty&4194304&&n(17,i=Oe(`${D}`,A)),t.$$.dirty&2&&n(14,f=Oe(`${D}--bar`,`${D}--${m}`))},n(16,s=Oe(`${D}--base`,`${D}--base__dark`)),n(15,o=`${D}--runway`),n(13,l=`${D}--content__textInside`),n(12,a=`${D}--content__textOutside`),n(11,c=`${D}__cd`),n(10,u=`${D}--text__cd`),[g,m,v,_,C,y,w,S,E,B,u,c,a,l,f,o,s,i,r,d,p,k,A,x,b]}let ch=class extends st{constructor(e){super(),it(this,e,lh,ah,Ue,{percentage:0,status:1,type:2,strokeWidth:3,width:4,color:5,textInside:6,format:21,duration:7,showText:8,cls:22,attrs:9})}};var fh=Object.defineProperty,uh=(t,e,n)=>e in t?fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vt=(t,e,n)=>uh(t,typeof e!="symbol"?e+"":e,n);function Pc(t,e){return function(){return t.apply(e,arguments)}}const{toString:dh}=Object.prototype,{getPrototypeOf:Ro}=Object,Di=(t=>e=>{const n=dh.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),It=t=>(t=t.toLowerCase(),e=>Di(e)===t),Bi=t=>e=>typeof e===t,{isArray:ir}=Array,wr=Bi("undefined");function hh(t){return t!==null&&!wr(t)&&t.constructor!==null&&!wr(t.constructor)&&yt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ic=It("ArrayBuffer");function ph(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ic(t.buffer),e}const xh=Bi("string"),yt=Bi("function"),Lc=Bi("number"),Fi=t=>t!==null&&typeof t=="object",mh=t=>t===!0||t===!1,ti=t=>{if(Di(t)!=="object")return!1;const e=Ro(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},gh=It("Date"),bh=It("File"),vh=It("Blob"),_h=It("FileList"),yh=t=>Fi(t)&&yt(t.pipe),wh=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||yt(t.append)&&((e=Di(t))==="formdata"||e==="object"&&yt(t.toString)&&t.toString()==="[object FormData]"))},kh=It("URLSearchParams"),[Eh,Ch,Ah,Sh]=["ReadableStream","Request","Response","Headers"].map(It),Dh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),ir(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let f;for(r=0;r<o;r++)f=s[r],e.call(null,t[f],f,t)}}function qc(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nc=t=>!wr(t)&&t!==wn;function ro(){const{caseless:t}=Nc(this)&&this||{},e={},n=(r,i)=>{const s=t&&qc(e,i)||i;ti(e[s])&&ti(r)?e[s]=ro(e[s],r):ti(r)?e[s]=ro({},r):ir(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Pr(arguments[r],n);return e}const Bh=(t,e,n,{allOwnKeys:r}={})=>(Pr(e,(i,s)=>{n&&yt(i)?t[s]=Pc(i,n):t[s]=i},{allOwnKeys:r}),t),Fh=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Th=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Rh=(t,e,n,r)=>{let i,s,o;const f={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!f[o]&&(e[o]=t[o],f[o]=!0);t=n!==!1&&Ro(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Oh=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ph=t=>{if(!t)return null;if(ir(t))return t;let e=t.length;if(!Lc(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Ih=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ro(Uint8Array)),Lh=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},qh=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Nh=It("HTMLFormElement"),Wh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),S0=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Mh=It("RegExp"),Wc=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Pr(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},jh=t=>{Wc(t,(e,n)=>{if(yt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(yt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zh=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return ir(t)?r(t):r(String(t).split(e)),n},Uh=()=>{},Hh=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Yi="abcdefghijklmnopqrstuvwxyz",D0="0123456789",Mc={DIGIT:D0,ALPHA:Yi,ALPHA_DIGIT:Yi+Yi.toUpperCase()+D0},Yh=(t=16,e=Mc.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Kh(t){return!!(t&&yt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Vh=t=>{const e=new Array(10),n=(r,i)=>{if(Fi(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=ir(r)?[]:{};return Pr(r,(o,f)=>{const l=n(o,i+1);!wr(l)&&(s[f]=l)}),e[i]=void 0,s}}return r};return n(t,0)},Zh=It("AsyncFunction"),Xh=t=>t&&(Fi(t)||yt(t))&&yt(t.then)&&yt(t.catch),jc=((t,e)=>t?setImmediate:e?((n,r)=>(wn.addEventListener("message",({source:i,data:s})=>{i===wn&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",yt(wn.postMessage)),Gh=typeof queueMicrotask<"u"?queueMicrotask.bind(wn):typeof process<"u"&&process.nextTick||jc,U={isArray:ir,isArrayBuffer:Ic,isBuffer:hh,isFormData:wh,isArrayBufferView:ph,isString:xh,isNumber:Lc,isBoolean:mh,isObject:Fi,isPlainObject:ti,isReadableStream:Eh,isRequest:Ch,isResponse:Ah,isHeaders:Sh,isUndefined:wr,isDate:gh,isFile:bh,isBlob:vh,isRegExp:Mh,isFunction:yt,isStream:yh,isURLSearchParams:kh,isTypedArray:Ih,isFileList:_h,forEach:Pr,merge:ro,extend:Bh,trim:Dh,stripBOM:Fh,inherits:Th,toFlatObject:Rh,kindOf:Di,kindOfTest:It,endsWith:Oh,toArray:Ph,forEachEntry:Lh,matchAll:qh,isHTMLForm:Nh,hasOwnProperty:S0,hasOwnProp:S0,reduceDescriptors:Wc,freezeMethods:jh,toObjectSet:zh,toCamelCase:Wh,noop:Uh,toFiniteNumber:Hh,findKey:qc,global:wn,isContextDefined:Nc,ALPHABET:Mc,generateString:Yh,isSpecCompliantForm:Kh,toJSONObject:Vh,isAsyncFn:Zh,isThenable:Xh,setImmediate:jc,asap:Gh};function ue(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}U.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.status}}});const zc=ue.prototype,Uc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Uc[t]={value:t}});Object.defineProperties(ue,Uc);Object.defineProperty(zc,"isAxiosError",{value:!0});ue.from=(t,e,n,r,i,s)=>{const o=Object.create(zc);return U.toFlatObject(t,o,function(f){return f!==Error.prototype},f=>f!=="isAxiosError"),ue.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const Jh=null;function io(t){return U.isPlainObject(t)||U.isArray(t)}function Hc(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function B0(t,e,n){return t?t.concat(e).map(function(r,i){return r=Hc(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function Qh(t){return U.isArray(t)&&!t.some(io)}const $h=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function Ti(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,b){return!U.isUndefined(b[d])});const r=n.metaTokens,i=n.visitor||a,s=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(U.isDate(d))return d.toISOString();if(!f&&U.isBlob(d))throw new ue("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(d)||U.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function a(d,b,x){let p=d;if(d&&!x&&typeof d=="object"){if(U.endsWith(b,"{}"))b=r?b:b.slice(0,-2),d=JSON.stringify(d);else if(U.isArray(d)&&Qh(d)||(U.isFileList(d)||U.endsWith(b,"[]"))&&(p=U.toArray(d)))return b=Hc(b),p.forEach(function(g,m){!(U.isUndefined(g)||g===null)&&e.append(o===!0?B0([b],m,s):o===null?b:b+"[]",l(g))}),!1}return io(d)?!0:(e.append(B0(x,b,s),l(d)),!1)}const c=[],u=Object.assign($h,{defaultVisitor:a,convertValue:l,isVisitable:io});function h(d,b){if(!U.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+b.join("."));c.push(d),U.forEach(d,function(x,p){(!(U.isUndefined(x)||x===null)&&i.call(e,x,U.isString(p)?p.trim():p,b,u))===!0&&h(x,b?b.concat(p):[p])}),c.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return h(t),e}function F0(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Oo(t,e){this._pairs=[],t&&Ti(t,this,e)}const Yc=Oo.prototype;Yc.append=function(t,e){this._pairs.push([t,e])};Yc.toString=function(t){const e=t?function(n){return t.call(this,n,F0)}:F0;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function ep(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kc(t,e,n){if(!e)return t;const r=n&&n.encode||ep,i=n&&n.serialize;let s;if(i?s=i(e,n):s=U.isURLSearchParams(e)?e.toString():new Oo(e,n).toString(r),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class T0{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){U.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tp=typeof URLSearchParams<"u"?URLSearchParams:Oo,np=typeof FormData<"u"?FormData:null,rp=typeof Blob<"u"?Blob:null,ip={isBrowser:!0,classes:{URLSearchParams:tp,FormData:np,Blob:rp},protocols:["http","https","file","blob","url","data"]},Po=typeof window<"u"&&typeof document<"u",so=typeof navigator=="object"&&navigator||void 0,sp=Po&&(!so||["ReactNative","NativeScript","NS"].indexOf(so.product)<0),op=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ap=Po&&window.location.href||"http://localhost",lp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Po,hasStandardBrowserEnv:sp,hasStandardBrowserWebWorkerEnv:op,navigator:so,origin:ap},Symbol.toStringTag,{value:"Module"})),ht={...lp,...ip};function cp(t,e){return Ti(t,new ht.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return ht.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function fp(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function up(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Zc(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const f=Number.isFinite(+o),l=s>=n.length;return o=!o&&U.isArray(i)?i.length:o,l?(U.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!f):((!i[o]||!U.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&U.isArray(i[o])&&(i[o]=up(i[o])),!f)}if(U.isFormData(t)&&U.isFunction(t.entries)){const n={};return U.forEachEntry(t,(r,i)=>{e(fp(r),i,n,0)}),n}return null}function dp(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Ir={transitional:Vc,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=U.isObject(t);if(i&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return r?JSON.stringify(Zc(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return cp(t,this.formSerializer).toString();if((s=U.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Ti(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),dp(t)):t}],transformResponse:[function(t){const e=this.transitional||Ir.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(n&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?ue.from(s,ue.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],t=>{Ir.headers[t]={}});const hp=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pp=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&hp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},R0=Symbol("internals");function cr(t){return t&&String(t).trim().toLowerCase()}function ni(t){return t===!1||t==null?t:U.isArray(t)?t.map(ni):String(t)}function xp(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const mp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ki(t,e,n,r,i){if(U.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!U.isString(e)){if(U.isString(r))return e.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(e)}}function gp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function bp(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}let pt=class{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(o,f,l){const a=cr(f);if(!a)throw new Error("header name must be a non-empty string");const c=U.findKey(r,a);(!c||r[c]===void 0||l===!0||l===void 0&&r[c]!==!1)&&(r[c||f]=ni(o))}const s=(o,f)=>U.forEach(o,(l,a)=>i(l,a,f));if(U.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(U.isString(t)&&(t=t.trim())&&!mp(t))s(pp(t),e);else if(U.isHeaders(t))for(const[o,f]of t.entries())i(f,o,n);else t!=null&&i(e,t,n);return this}get(t,e){if(t=cr(t),t){const n=U.findKey(this,t);if(n){const r=this[n];if(!e)return r;if(e===!0)return xp(r);if(U.isFunction(e))return e.call(this,r,n);if(U.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=cr(t),t){const n=U.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||Ki(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let r=!1;function i(s){if(s=cr(s),s){const o=U.findKey(n,s);o&&(!e||Ki(n,n[o],o,e))&&(delete n[o],r=!0)}}return U.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];(!t||Ki(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return U.forEach(this,(r,i)=>{const s=U.findKey(n,i);if(s){e[s]=ni(r),delete e[i];return}const o=t?gp(i):String(i).trim();o!==i&&delete e[i],e[o]=ni(r),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return U.forEach(this,(n,r)=>{n!=null&&n!==!1&&(e[r]=t&&U.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(r=>n.set(r)),n}static accessor(t){const e=(this[R0]=this[R0]={accessors:{}}).accessors,n=this.prototype;function r(i){const s=cr(i);e[s]||(bp(n,i),e[s]=!0)}return U.isArray(t)?t.forEach(r):r(t),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(pt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});U.freezeMethods(pt);function Vi(t,e){const n=this||Ir,r=e||n,i=pt.from(r.headers);let s=r.data;return U.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Xc(t){return!!(t&&t.__CANCEL__)}function sr(t,e,n){ue.call(this,t??"canceled",ue.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(sr,ue,{__CANCEL__:!0});function Gc(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ue("Request failed with status code "+n.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function _p(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(f){const l=Date.now(),a=r[s];o||(o=l),n[i]=f,r[i]=l;let c=s,u=0;for(;c!==i;)u+=n[c++],c=c%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(u*1e3/h):void 0}}function yp(t,e){let n=0,r=1e3/e,i,s;const o=(f,l=Date.now())=>{n=l,i=null,s&&(clearTimeout(s),s=null),t.apply(null,f)};return[(...f)=>{const l=Date.now(),a=l-n;a>=r?o(f,l):(i=f,s||(s=setTimeout(()=>{s=null,o(i)},r-a)))},()=>i&&o(i)]}const gi=(t,e,n=3)=>{let r=0;const i=_p(50,250);return yp(s=>{const o=s.loaded,f=s.lengthComputable?s.total:void 0,l=o-r,a=i(l),c=o<=f;r=o;const u={loaded:o,total:f,progress:f?o/f:void 0,bytes:l,rate:a||void 0,estimated:a&&f&&c?(f-o)/a:void 0,event:s,lengthComputable:f!=null,[e?"download":"upload"]:!0};t(u)},n)},O0=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},P0=t=>(...e)=>U.asap(()=>t(...e)),wp=ht.hasStandardBrowserEnv?function(){const t=ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent),e=document.createElement("a");let n;function r(i){let s=i;return t&&(e.setAttribute("href",s),s=e.href),e.setAttribute("href",s),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(i){const s=U.isString(i)?r(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),kp=ht.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const o=[t+"="+encodeURIComponent(e)];U.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),U.isString(r)&&o.push("path="+r),U.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ep(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Cp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Jc(t,e){return t&&!Ep(e)?Cp(t,e):e}const I0=t=>t instanceof pt?{...t}:t;function Bn(t,e){e=e||{};const n={};function r(a,c,u){return U.isPlainObject(a)&&U.isPlainObject(c)?U.merge.call({caseless:u},a,c):U.isPlainObject(c)?U.merge({},c):U.isArray(c)?c.slice():c}function i(a,c,u){if(U.isUndefined(c)){if(!U.isUndefined(a))return r(void 0,a,u)}else return r(a,c,u)}function s(a,c){if(!U.isUndefined(c))return r(void 0,c)}function o(a,c){if(U.isUndefined(c)){if(!U.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function f(a,c,u){if(u in e)return r(a,c);if(u in t)return r(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(a,c)=>i(I0(a),I0(c),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),function(a){const c=l[a]||i,u=c(t[a],e[a],a);U.isUndefined(u)&&c!==f||(n[a]=u)}),n}const Qc=t=>{const e=Bn({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:f}=e;e.headers=o=pt.from(o),e.url=Kc(Jc(e.baseURL,e.url),t.params,t.paramsSerializer),f&&o.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let l;if(U.isFormData(n)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(ht.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(e)),r||r!==!1&&wp(e.url))){const a=i&&s&&kp.read(s);a&&o.set(i,a)}return e},Ap=typeof XMLHttpRequest<"u",Sp=Ap&&function(t){return new Promise(function(e,n){const r=Qc(t);let i=r.data;const s=pt.from(r.headers).normalize();let{responseType:o,onUploadProgress:f,onDownloadProgress:l}=r,a,c,u,h,d;function b(){h&&h(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function p(){if(!x)return;const m=pt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:m,config:t,request:x};Gc(function(_){e(_),b()},function(_){n(_),b()},v),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new ue("Request aborted",ue.ECONNABORTED,t,x)),x=null)},x.onerror=function(){n(new ue("Network Error",ue.ERR_NETWORK,t,x)),x=null},x.ontimeout=function(){let m=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||Vc;r.timeoutErrorMessage&&(m=r.timeoutErrorMessage),n(new ue(m,v.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,t,x)),x=null},i===void 0&&s.setContentType(null),"setRequestHeader"in x&&U.forEach(s.toJSON(),function(m,v){x.setRequestHeader(v,m)}),U.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),o&&o!=="json"&&(x.responseType=r.responseType),l&&([u,d]=gi(l,!0),x.addEventListener("progress",u)),f&&x.upload&&([c,h]=gi(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(a=m=>{x&&(n(!m||m.type?new sr(null,t,x):m),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=vp(r.url);if(g&&ht.protocols.indexOf(g)===-1){n(new ue("Unsupported protocol "+g+":",ue.ERR_BAD_REQUEST,t));return}x.send(i||null)})},Dp=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(a){if(!i){i=!0,f();const c=a instanceof Error?a:this.reason;r.abort(c instanceof ue?c:new sr(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new ue(`timeout ${e} of ms exceeded`,ue.ETIMEDOUT))},e);const f=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>U.asap(f),l}},Bp=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Fp=async function*(t,e){for await(const n of Tp(t))yield*Bp(n,e)},Tp=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},L0=(t,e,n,r)=>{const i=Fp(t,e);let s=0,o,f=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:a,value:c}=await i.next();if(a){f(),l.close();return}let u=c.byteLength;if(n){let h=s+=u;n(h)}l.enqueue(new Uint8Array(c))}catch(a){throw f(a),a}},cancel(l){return f(l),i.return()}},{highWaterMark:2})},Ri=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$c=Ri&&typeof ReadableStream=="function",Rp=Ri&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ef=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Op=$c&&ef(()=>{let t=!1;const e=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),q0=64*1024,oo=$c&&ef(()=>U.isReadableStream(new Response("").body)),bi={stream:oo&&(t=>t.body)};Ri&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!bi[e]&&(bi[e]=U.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new ue(`Response type '${e}' is not supported`,ue.ERR_NOT_SUPPORT,r)})})})(new Response);const Pp=async t=>{if(t==null)return 0;if(U.isBlob(t))return t.size;if(U.isSpecCompliantForm(t))return(await new Request(ht.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(U.isArrayBufferView(t)||U.isArrayBuffer(t))return t.byteLength;if(U.isURLSearchParams(t)&&(t=t+""),U.isString(t))return(await Rp(t)).byteLength},Ip=async(t,e)=>U.toFiniteNumber(t.getContentLength())??Pp(e),Lp=Ri&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:f,onUploadProgress:l,responseType:a,headers:c,withCredentials:u="same-origin",fetchOptions:h}=Qc(t);a=a?(a+"").toLowerCase():"text";let d=Dp([i,s&&s.toAbortSignal()],o),b;const x=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let p;try{if(l&&Op&&n!=="get"&&n!=="head"&&(p=await Ip(c,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),y;if(U.isFormData(r)&&(y=C.headers.get("content-type"))&&c.setContentType(y),C.body){const[w,k]=O0(p,gi(P0(l)));r=L0(C.body,q0,w,k)}}U.isString(u)||(u=u?"include":"omit");const g="credentials"in Request.prototype;b=new Request(e,{...h,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:g?u:void 0});let m=await fetch(b);const v=oo&&(a==="stream"||a==="response");if(oo&&(f||v&&x)){const C={};["status","statusText","headers"].forEach(S=>{C[S]=m[S]});const y=U.toFiniteNumber(m.headers.get("content-length")),[w,k]=f&&O0(y,gi(P0(f),!0))||[];m=new Response(L0(m.body,q0,w,()=>{k&&k(),x&&x()}),C)}a=a||"text";let _=await bi[U.findKey(bi,a)||"text"](m,t);return!v&&x&&x(),await new Promise((C,y)=>{Gc(C,y,{data:_,headers:pt.from(m.headers),status:m.status,statusText:m.statusText,config:t,request:b})})}catch(g){throw x&&x(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,t,b),{cause:g.cause||g}):ue.from(g,g&&g.code,t,b)}}),ao={http:Jh,xhr:Sp,fetch:Lp};U.forEach(ao,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const N0=t=>`- ${t}`,qp=t=>U.isFunction(t)||t===null||t===!1,tf={getAdapter:t=>{t=U.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let o;if(r=n,!qp(n)&&(r=ao[(o=String(n)).toLowerCase()],r===void 0))throw new ue(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
`+s.map(N0).join(`
`):" "+N0(s[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ao};function Zi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new sr(null,t)}function W0(t){return Zi(t),t.headers=pt.from(t.headers),t.data=Vi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tf.getAdapter(t.adapter||Ir.adapter)(t).then(function(e){return Zi(t),e.data=Vi.call(t,t.transformResponse,e),e.headers=pt.from(e.headers),e},function(e){return Xc(e)||(Zi(t),e&&e.response&&(e.response.data=Vi.call(t,t.transformResponse,e.response),e.response.headers=pt.from(e.response.headers))),Promise.reject(e)})}const nf="1.7.7",Io={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Io[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const M0={};Io.transitional=function(t,e,n){function r(i,s){return"[Axios v"+nf+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(t===!1)throw new ue(r(s," has been removed"+(e?" in "+e:"")),ue.ERR_DEPRECATED);return e&&!M0[s]&&(M0[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,s,o):!0}};function Np(t,e,n){if(typeof t!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const f=t[s],l=f===void 0||o(f,s,t);if(l!==!0)throw new ue("option "+s+" must be "+l,ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ue("Unknown option "+s,ue.ERR_BAD_OPTION)}}const lo={assertOptions:Np,validators:Io},tn=lo.validators;let En=class{constructor(t){this.defaults=t,this.interceptors={request:new T0,response:new T0}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Bn(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;n!==void 0&&lo.assertOptions(n,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1),r!=null&&(U.isFunction(r)?e.paramsSerializer={serialize:r}:lo.assertOptions(r,{encode:tn.function,serialize:tn.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=i&&U.merge(i.common,i[e.method]);i&&U.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),e.headers=pt.concat(s,i);const o=[];let f=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(f=f&&d.synchronous,o.unshift(d.fulfilled,d.rejected))});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let a,c=0,u;if(!f){const d=[W0.bind(this),void 0];for(d.unshift.apply(d,o),d.push.apply(d,l),u=d.length,a=Promise.resolve(e);c<u;)a=a.then(d[c++],d[c++]);return a}u=o.length;let h=e;for(c=0;c<u;){const d=o[c++],b=o[c++];try{h=d(h)}catch(x){b.call(this,x);break}}try{a=W0.call(this,h)}catch(d){return Promise.reject(d)}for(c=0,u=l.length;c<u;)a=a.then(l[c++],l[c++]);return a}getUri(t){t=Bn(this.defaults,t);const e=Jc(t.baseURL,t.url);return Kc(e,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){En.prototype[t]=function(e,n){return this.request(Bn(n||{},{method:t,url:e,data:(n||{}).data}))}});U.forEach(["post","put","patch"],function(t){function e(n){return function(r,i,s){return this.request(Bn(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}En.prototype[t]=e(),En.prototype[t+"Form"]=e(!0)});let Wp=class rf{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(f=>{r.subscribe(f),s=f}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(i,s,o){r.reason||(r.reason=new sr(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new rf(function(n){e=n}),cancel:e}}};function Mp(t){return function(e){return t.apply(null,e)}}function jp(t){return U.isObject(t)&&t.isAxiosError===!0}const co={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(co).forEach(([t,e])=>{co[e]=t});function sf(t){const e=new En(t),n=Pc(En.prototype.request,e);return U.extend(n,En.prototype,e,{allOwnKeys:!0}),U.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return sf(Bn(t,r))},n}const Le=sf(Ir);Le.Axios=En;Le.CanceledError=sr;Le.CancelToken=Wp;Le.isCancel=Xc;Le.VERSION=nf;Le.toFormData=Ti;Le.AxiosError=ue;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=Mp;Le.isAxiosError=jp;Le.mergeConfig=Bn;Le.AxiosHeaders=pt;Le.formToJSON=t=>Zc(U.isHTMLForm(t)?new FormData(t):t);Le.getAdapter=tf.getAdapter;Le.HttpStatusCode=co;Le.default=Le;const{Axios:R3,AxiosError:O3,CanceledError:P3,isCancel:I3,CancelToken:L3,VERSION:q3,all:N3,Cancel:W3,isAxiosError:M3,spread:j3,toFormData:z3,AxiosHeaders:zp,HttpStatusCode:jr,formToJSON:U3,getAdapter:H3,mergeConfig:Y3}=Le;var jn=null;typeof WebSocket<"u"?jn=WebSocket:typeof MozWebSocket<"u"?jn=MozWebSocket:typeof global<"u"?jn=global.WebSocket||global.MozWebSocket:typeof window<"u"?jn=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(jn=self.WebSocket||self.MozWebSocket);const Up=jn,Oi=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;typeof TextEncoder=="function"&&new TextEncoder;const Hp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xr=Array.prototype.slice.call(Hp),zr=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(xr),Yp=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ri=String.fromCharCode.bind(String),j0=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Kp=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),of=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Vp=t=>{let e,n,r,i,s="";const o=t.length%3;for(let f=0;f<t.length;){if((n=t.charCodeAt(f++))>255||(r=t.charCodeAt(f++))>255||(i=t.charCodeAt(f++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,s+=xr[e>>18&63]+xr[e>>12&63]+xr[e>>6&63]+xr[e&63]}return o?s.slice(0,o-3)+"===".substring(o):s},Zp=typeof btoa=="function"?t=>btoa(t):Oi?t=>Buffer.from(t,"binary").toString("base64"):Vp,z0=Oi?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let n=0,r=t.length;n<r;n+=4096)e.push(ri.apply(null,t.subarray(n,n+4096)));return Zp(e.join(""))},Xp=(t,e=!1)=>e?Kp(z0(t)):z0(t),Gp=t=>{if(t=t.replace(/\s+/g,""),!Yp.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let s=0;s<t.length;)e=zr[t.charAt(s++)]<<18|zr[t.charAt(s++)]<<12|(r=zr[t.charAt(s++)])<<6|(i=zr[t.charAt(s++)]),n+=r===64?ri(e>>16&255):i===64?ri(e>>16&255,e>>8&255):ri(e>>16&255,e>>8&255,e&255);return n},Jp=typeof atob=="function"?t=>atob(of(t)):Oi?t=>Buffer.from(t,"base64").toString("binary"):Gp,Qp=Oi?t=>j0(Buffer.from(t,"base64")):t=>j0(Jp(t).split("").map(e=>e.charCodeAt(0))),$p=t=>Qp(e2(t)),e2=t=>of(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),t2=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n2=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,r2=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function i2(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){s2(t);return}return e}function s2(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function o2(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!r2.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(t2.test(t)||n2.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,i2)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const a2=/#/g,l2=/&/g,c2=/\//g,f2=/=/g,Lo=/\+/g,u2=/%5e/gi,d2=/%60/gi,h2=/%7c/gi,p2=/%20/gi;function x2(t){return encodeURI(""+t).replace(h2,"|")}function fo(t){return x2(typeof t=="string"?t:JSON.stringify(t)).replace(Lo,"%2B").replace(p2,"+").replace(a2,"%23").replace(l2,"%26").replace(d2,"`").replace(u2,"^").replace(c2,"%2F")}function Xi(t){return fo(t).replace(f2,"%3D")}function af(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function m2(t){return af(t.replace(Lo," "))}function g2(t){return af(t.replace(Lo," "))}function b2(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=m2(r[1]);if(i==="__proto__"||i==="constructor")continue;const s=g2(r[2]||"");e[i]===void 0?e[i]=s:Array.isArray(e[i])?e[i].push(s):e[i]=[e[i],s]}return e}function v2(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Xi(t)}=${fo(n)}`).join("&"):`${Xi(t)}=${fo(e)}`:Xi(t)}function _2(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>v2(e,t[e])).filter(Boolean).join("&")}const y2=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,w2=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,k2=/^([/\\]\s*){2,}[^/\\]/,E2=/^\.?\//;function lf(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?y2.test(t):w2.test(t)||(e.acceptRelative?k2.test(t):!1)}function C2(t="",e){return t.endsWith("/")}function A2(t="",e){return(C2(t)?t.slice(0,-1):t)||"/"}function S2(t="",e){return t.endsWith("/")?t:t+"/"}function D2(t,e){if(F2(e)||lf(t))return t;const n=A2(e);return t.startsWith(n)?t:R2(n,t)}function B2(t,e){const n=O2(t),r={...b2(n.search),...e};return n.search=_2(r),P2(n)}function F2(t){return!t||t==="/"}function T2(t){return t&&t!=="/"}function R2(t,...e){let n=t||"";for(const r of e.filter(i=>T2(i)))if(n){const i=r.replace(E2,"");n=S2(n)+i}else n=r;return n}const cf=Symbol.for("ufo:protocolRelative");function O2(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,h=""]=n;return{protocol:u.toLowerCase(),pathname:h,href:u+h,auth:"",host:"",search:"",hash:""}}if(!lf(t,{acceptRelative:!0}))return U0(t);const[,r="",i,s=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",f=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(f=f.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:a,hash:c}=U0(f);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:a,hash:c,[cf]:!r}}function U0(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function P2(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",i=t.auth?t.auth+"@":"",s=t.host||"";return(t.protocol||t[cf]?(t.protocol||"")+"//":"")+i+s+e+n+r}class I2 extends Error{constructor(e,n){super(e,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function L2(t){var e,n,r,i,s;const o=((e=t.error)==null?void 0:e.message)||((n=t.error)==null?void 0:n.toString())||"",f=((r=t.request)==null?void 0:r.method)||((i=t.options)==null?void 0:i.method)||"GET",l=((s=t.request)==null?void 0:s.url)||String(t.request)||"/",a=`[${f}] ${JSON.stringify(l)}`,c=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",u=`${a}: ${c}${o?` ${o}`:""}`,h=new I2(u,t.error?{cause:t.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(h,d,{get(){return t[d]}});for(const[d,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(h,d,{get(){return t.response&&t.response[b]}});return h}const q2=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function H0(t="GET"){return q2.has(t.toUpperCase())}function N2(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const W2=new Set(["image/svg","application/xml","application/xhtml","application/html"]),M2=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function j2(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return M2.test(e)?"json":W2.has(e)||e.startsWith("text/")?"text":"blob"}function z2(t,e,n,r){const i=U2((e==null?void 0:e.headers)??(t==null?void 0:t.headers),n==null?void 0:n.headers,r);let s;return(n!=null&&n.query||n!=null&&n.params||e!=null&&e.params||e!=null&&e.query)&&(s={...n==null?void 0:n.params,...n==null?void 0:n.query,...e==null?void 0:e.params,...e==null?void 0:e.query}),{...n,...e,query:s,params:s,headers:i}}function U2(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[i,s]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(i,s);return r}async function Ur(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const H2=new Set([408,409,425,429,500,502,503,504]),Y2=new Set([101,204,205,304]);function ff(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function i(f){const l=f.error&&f.error.name==="AbortError"&&!f.options.timeout||!1;if(f.options.retry!==!1&&!l){let c;typeof f.options.retry=="number"?c=f.options.retry:c=H0(f.options.method)?0:1;const u=f.response&&f.response.status||500;if(c>0&&(Array.isArray(f.options.retryStatusCodes)?f.options.retryStatusCodes.includes(u):H2.has(u))){const h=typeof f.options.retryDelay=="function"?f.options.retryDelay(f):f.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),s(f.request,{...f.options,retry:c-1})}}const a=L2(f);throw Error.captureStackTrace&&Error.captureStackTrace(a,s),a}const s=async function(f,l={}){const a={request:f,options:z2(f,l,t.defaults,n),response:void 0,error:void 0};a.options.method&&(a.options.method=a.options.method.toUpperCase()),a.options.onRequest&&await Ur(a,a.options.onRequest),typeof a.request=="string"&&(a.options.baseURL&&(a.request=D2(a.request,a.options.baseURL)),a.options.query&&(a.request=B2(a.request,a.options.query),delete a.options.query),"query"in a.options&&delete a.options.query,"params"in a.options&&delete a.options.params),a.options.body&&H0(a.options.method)&&(N2(a.options.body)?(a.options.body=typeof a.options.body=="string"?a.options.body:JSON.stringify(a.options.body),a.options.headers=new n(a.options.headers||{}),a.options.headers.has("content-type")||a.options.headers.set("content-type","application/json"),a.options.headers.has("accept")||a.options.headers.set("accept","application/json")):("pipeTo"in a.options.body&&typeof a.options.body.pipeTo=="function"||typeof a.options.body.pipe=="function")&&("duplex"in a.options||(a.options.duplex="half")));let c;if(!a.options.signal&&a.options.timeout){const u=new r;c=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,u.abort(h)},a.options.timeout),a.options.signal=u.signal}try{a.response=await e(a.request,a.options)}catch(u){return a.error=u,a.options.onRequestError&&await Ur(a,a.options.onRequestError),await i(a)}finally{c&&clearTimeout(c)}if((a.response.body||a.response._bodyInit)&&!Y2.has(a.response.status)&&a.options.method!=="HEAD"){const u=(a.options.parseResponse?"json":a.options.responseType)||j2(a.response.headers.get("content-type")||"");switch(u){case"json":{const h=await a.response.text(),d=a.options.parseResponse||o2;a.response._data=d(h);break}case"stream":{a.response._data=a.response.body||a.response._bodyInit;break}default:a.response._data=await a.response[u]()}}return a.options.onResponse&&await Ur(a,a.options.onResponse),!a.options.ignoreResponseError&&a.response.status>=400&&a.response.status<600?(a.options.onResponseError&&await Ur(a,a.options.onResponseError),await i(a)):a.response},o=async function(f,l){return(await s(f,l))._data};return o.raw=s,o.native=(...f)=>e(...f),o.create=(f={},l={})=>ff({...t,...l,defaults:{...t.defaults,...l.defaults,...f}}),o}const vi=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),K2=vi.fetch?(...t)=>vi.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),V2=vi.Headers,Z2=vi.AbortController,Y0=ff({fetch:K2,Headers:V2,AbortController:Z2}),Gi={SIYUAN_DEFAULT_BASE_URL:"http://localhost:6806/",REQUEST_TIMEOUT:6e4};class X2 extends Error{constructor(e){super(e.statusText),vt(this,"status"),this.response=e,this.status=e.status}}class K0 extends Error{constructor(e,n){super(e.msg),vt(this,"code"),vt(this,"msg"),vt(this,"data"),this.body=e,this.response=n,this.code=e.code,this.msg=e.msg,this.data=e.data}}var V0,Z0,X0,G0,J0;const uo=class L{constructor(e={},n="xhr"){vt(this,"_type","xhr"),vt(this,"_baseURL",((Z0=(V0=globalThis.top)==null?void 0:V0.document)==null?void 0:Z0.baseURI)??((G0=(X0=globalThis.parent)==null?void 0:X0.document)==null?void 0:G0.baseURI)??((J0=globalThis.location)==null?void 0:J0.origin)??Gi.SIYUAN_DEFAULT_BASE_URL),vt(this,"_token",null),vt(this,"_ofetch_options",{baseURL:this._baseURL,headers:this._headers}),vt(this,"_axios_options",{baseURL:this._baseURL,timeout:Gi.REQUEST_TIMEOUT,headers:this._headers}),vt(this,"_fetch",Y0.create(this._ofetch_options)),vt(this,"_axios",Le.create(this._axios_options)),this._setClientType(n),this._updateOptions(e,n)}static headers2record(e){const n={};return e.forEach((r,i)=>{n[i]=r}),n}static headers2records(e){const n=[];return e.forEach((r,i)=>{n.push({[i]:r})}),n}static headers2entries(e){const n=[];return Object.entries(e).forEach(([r,i])=>{i.forEach(s=>n.push([r,s]))}),n}static entries2record(e){const n={};for(const[r,i]of e)n[r]=i;return n}get _authorization(){return`Token ${this._token}`}get _headers(){return this._token!==null?{Authorization:this._authorization}:{}}_setClientType(e){this._type=e}_updateOptions(e,n=this._type){switch(this._baseURL=e.baseURL??this._baseURL,e.token){case void 0:break;case null:default:this._token=e.token,delete e.token;break}switch(n){case"fetch":{const r=e;switch(!0){case Array.isArray(r.headers):{r.headers.find(([i])=>i.toLowerCase()==="Authorization".toLowerCase())||r.headers.push(["Authorization",this._authorization]);break}case r.headers instanceof Headers:{r.headers.has("Authorization")||r.headers.set("Authorization",this._authorization);break}case typeof r.headers=="object":{"Authorization"in r.headers||(r.headers.Authorization=this._authorization);break}default:{r.headers=this._headers;break}}this._ofetch_options=r,this._fetch=Y0.create(this._ofetch_options);break}case"xhr":default:{const r=e;if(r.headers)switch(!0){case r.headers instanceof zp:{r.headers.has("Authorization")||r.headers.set("Authorization",this._authorization);break}case typeof r.headers=="object":{switch(!0){case("common"in r.headers||"get"in r.headers||"post"in r.headers):{"common"in r.headers&&("Authorization"in r.headers.get||(r.headers.get.Authorization=this._authorization)),"get"in r.headers&&("Authorization"in r.headers.get||(r.headers.get.Authorization=this._authorization)),"post"in r.headers&&("Authorization"in r.headers.post||(r.headers.post.Authorization=this._authorization));break}default:{"Authorization"in r.headers||(r.headers.Authorization=this._authorization);break}}break}default:{r.headers=this._headers;break}}else r.headers=this._headers;this._axios_options=r,this._axios=Le.create(this._axios_options);break}}}async $fetch(e,n){const r=new Request(e,n),i=await this.forwardProxy({url:r.url,method:r.method,headers:L.headers2records(r.headers),payload:Xp(new Uint8Array(await r.arrayBuffer())),timeout:Gi.REQUEST_TIMEOUT,contentType:"application/json",payloadEncoding:"base64",responseEncoding:"base64"});return new Response($p(i.data.body),{status:i.data.status,statusText:i.msg,headers:new Headers(L.headers2entries(i.data.headers))})}broadcast(e,n,r){var i;const s=(r==null?void 0:r.baseURL)??this._baseURL,o=(r==null?void 0:r.token)??this._token,f=new URLSearchParams(e);o&&f.set("token",o);const l=new URL(s,(i=globalThis.location)==null?void 0:i.href);return l.protocol=l.protocol.replace(/^http/,"ws"),l.pathname=l.pathname.endsWith("/")?`${l.pathname}${L.ws.broadcast.pathname.substring(1)}`:`${l.pathname}${L.ws.broadcast.pathname}`,l.search=f.toString(),new Up(l,n)}async upload(e,n){const r=new FormData;return e.id!=null&&r.append("id",e.id),e.assetsDirPath!=null&&r.append("assetsDirPath",e.assetsDirPath),e.skipIfDuplicated!=null&&r.append("skipIfDuplicated",String(e.skipIfDuplicated)),e.files.forEach(i=>r.append("file[]",i)),await this._request(L.api.asset.upload.pathname,L.api.asset.upload.method,r,n)}async getBlockAttrs(e,n){return await this._request(L.api.attr.getBlockAttrs.pathname,L.api.attr.getBlockAttrs.method,e,n)}async getBookmarkLabels(e){return await this._request(L.api.attr.getBookmarkLabels.pathname,L.api.attr.getBookmarkLabels.method,void 0,e)}async setBlockAttrs(e,n){return await this._request(L.api.attr.setBlockAttrs.pathname,L.api.attr.setBlockAttrs.method,e,n)}async appendBlock(e,n){return await this._request(L.api.block.appendBlock.pathname,L.api.block.appendBlock.method,e,n)}async deleteBlock(e,n){return await this._request(L.api.block.deleteBlock.pathname,L.api.block.deleteBlock.method,e,n)}async foldBlock(e,n){return await this._request(L.api.block.foldBlock.pathname,L.api.block.foldBlock.method,e,n)}async getBlockBreadcrumb(e,n){return await this._request(L.api.block.getBlockBreadcrumb.pathname,L.api.block.getBlockBreadcrumb.method,e,n)}async getBlockDOM(e,n){return await this._request(L.api.block.getBlockDOM.pathname,L.api.block.getBlockDOM.method,e,n)}async getBlockInfo(e,n){return await this._request(L.api.block.getBlockInfo.pathname,L.api.block.getBlockInfo.method,e,n)}async getBlockKramdown(e,n){return await this._request(L.api.block.getBlockKramdown.pathname,L.api.block.getBlockKramdown.method,e,n)}async getChildBlocks(e,n){return await this._request(L.api.block.getChildBlocks.pathname,L.api.block.getChildBlocks.method,e,n)}async getDocInfo(e,n){return await this._request(L.api.block.getDocInfo.pathname,L.api.block.getDocInfo.method,e,n)}async insertBlock(e,n){return await this._request(L.api.block.insertBlock.pathname,L.api.block.insertBlock.method,e,n)}async moveBlock(e,n){return await this._request(L.api.block.moveBlock.pathname,L.api.block.moveBlock.method,e,n)}async prependBlock(e,n){return await this._request(L.api.block.prependBlock.pathname,L.api.block.prependBlock.method,e,n)}async transferBlockRef(e,n){return await this._request(L.api.block.transferBlockRef.pathname,L.api.block.transferBlockRef.method,e,n)}async unfoldBlock(e,n){return await this._request(L.api.block.unfoldBlock.pathname,L.api.block.unfoldBlock.method,e,n)}async updateBlock(e,n){return await this._request(L.api.block.updateBlock.pathname,L.api.block.updateBlock.method,e,n)}async getChannelInfo(e,n){return await this._request(L.api.broadcast.getChannelInfo.pathname,L.api.broadcast.getChannelInfo.method,e,n)}async getChannels(e){return await this._request(L.api.broadcast.getChannels.pathname,L.api.broadcast.getChannels.method,void 0,e)}async postMessage(e,n){return await this._request(L.api.broadcast.postMessage.pathname,L.api.broadcast.postMessage.method,e,n)}async pandoc(e,n){return await this._request(L.api.convert.pandoc.pathname,L.api.convert.pandoc.method,e,n)}async exportHTML(e,n){return await this._request(L.api.export.exportHTML.pathname,L.api.export.exportHTML.method,e,n)}async exportMdContent(e,n){return await this._request(L.api.export.exportMdContent.pathname,L.api.export.exportMdContent.method,e,n)}async exportResources(e,n){return await this._request(L.api.export.exportResources.pathname,L.api.export.exportResources.method,e,n)}async getFile(e,n="text",r){return await this._request(L.api.file.getFile.pathname,L.api.file.getFile.method,e,r,!1,n)}async putFile(e,n){e.file!==void 0&&!(e.file instanceof File)&&(e.file=new File([e.file],e.path.split("/").pop()));const r=new FormData;for(const[i,s]of Object.entries(e))s instanceof Blob?r.append(i,s):r.append(i,String(s));return await this._request(L.api.file.putFile.pathname,L.api.file.putFile.method,r,n)}async readDir(e,n){return await this._request(L.api.file.readDir.pathname,L.api.file.readDir.method,e,n)}async removeFile(e,n){return await this._request(L.api.file.removeFile.pathname,L.api.file.removeFile.method,e,n)}async renameFile(e,n){return await this._request(L.api.file.renameFile.pathname,L.api.file.renameFile.method,e,n)}async createDailyNote(e,n){return await this._request(L.api.filetree.createDailyNote.pathname,L.api.filetree.createDailyNote.method,e,n)}async createDocWithMd(e,n){return await this._request(L.api.filetree.createDocWithMd.pathname,L.api.filetree.createDocWithMd.method,e,n)}async getDoc(e,n){return await this._request(L.api.filetree.getDoc.pathname,L.api.filetree.getDoc.method,e,n)}async getHPathByID(e,n){return await this._request(L.api.filetree.getHPathByID.pathname,L.api.filetree.getHPathByID.method,e,n)}async getHPathByPath(e,n){return await this._request(L.api.filetree.getHPathByPath.pathname,L.api.filetree.getHPathByPath.method,e,n)}async getIDsByHPath(e,n){return await this._request(L.api.filetree.getIDsByHPath.pathname,L.api.filetree.getIDsByHPath.method,e,n)}async listDocsByPath(e,n){return await this._request(L.api.filetree.listDocsByPath.pathname,L.api.filetree.listDocsByPath.method,e,n)}async moveDocs(e,n){return await this._request(L.api.filetree.moveDocs.pathname,L.api.filetree.moveDocs.method,e,n)}async removeDoc(e,n){return await this._request(L.api.filetree.removeDoc.pathname,L.api.filetree.removeDoc.method,e,n)}async renameDoc(e,n){return await this._request(L.api.filetree.renameDoc.pathname,L.api.filetree.renameDoc.method,e,n)}async searchDocs(e,n){return await this._request(L.api.filetree.searchDocs.pathname,L.api.filetree.searchDocs.method,e,n)}async getDocHistoryContent(e,n){return await this._request(L.api.history.getDocHistoryContent.pathname,L.api.history.getDocHistoryContent.method,e,n)}async getHistoryItems(e,n){return await this._request(L.api.history.getHistoryItems.pathname,L.api.history.getHistoryItems.method,e,n)}async getShorthand(e,n){return await this._request(L.api.inbox.getShorthand.pathname,L.api.inbox.getShorthand.method,e,n)}async echo(e,n){if(e)switch(n??(n={type:this._type}),n==null?void 0:n.type){case"fetch":{const r={};e.headers&&(r.headers=e.headers),e.query&&(r.query=L.entries2record(e.query.entries())),n.options?Object.assign(r,n.options):n.options=r;break}case"xhr":{const r={};e.headers&&(r.headers=Array.isArray(e.headers)?L.entries2record(e.headers):e.headers instanceof Headers?L.headers2record(e.headers):e.headers),e.query&&(r.params=e.query),n.options?Object.assign(r,n.options):n.options=r;break}}return await this._request(L.api.network.echo.pathname,(e==null?void 0:e.method)??L.api.network.echo.method,e==null?void 0:e.body,n)}async forwardProxy(e,n){return await this._request(L.api.network.forwardProxy.pathname,L.api.network.forwardProxy.method,e,n)}async closeNotebook(e,n){return await this._request(L.api.notebook.closeNotebook.pathname,L.api.notebook.closeNotebook.method,e,n)}async createNotebook(e,n){return await this._request(L.api.notebook.createNotebook.pathname,L.api.notebook.createNotebook.method,e,n)}async getNotebookConf(e,n){return await this._request(L.api.notebook.getNotebookConf.pathname,L.api.notebook.getNotebookConf.method,e,n)}async lsNotebooks(e){return await this._request(L.api.notebook.lsNotebooks.pathname,L.api.notebook.lsNotebooks.method,void 0,e)}async openNotebook(e,n){return await this._request(L.api.notebook.openNotebook.pathname,L.api.notebook.openNotebook.method,e,n)}async removeNotebook(e,n){return await this._request(L.api.notebook.removeNotebook.pathname,L.api.notebook.removeNotebook.method,e,n)}async renameNotebook(e,n){return await this._request(L.api.notebook.renameNotebook.pathname,L.api.notebook.renameNotebook.method,e,n)}async setNotebookConf(e,n){return await this._request(L.api.notebook.setNotebookConf.pathname,L.api.notebook.setNotebookConf.method,e,n)}async pushErrMsg(e,n){return await this._request(L.api.notification.pushErrMsg.pathname,L.api.notification.pushErrMsg.method,e,n)}async pushMsg(e,n){return await this._request(L.api.notification.pushMsg.pathname,L.api.notification.pushMsg.method,e,n)}async getDocOutline(e,n){return await this._request(L.api.outline.getDocOutline.pathname,L.api.outline.getDocOutline.method,e,n)}async sql(e,n){return await this._request(L.api.query.sql.pathname,L.api.query.sql.method,e,n)}async openRepoSnapshotDoc(e,n){return await this._request(L.api.repo.openRepoSnapshotDoc.pathname,L.api.repo.openRepoSnapshotDoc.method,e,n)}async fullTextSearchBlock(e,n){return await this._request(L.api.search.fullTextSearchBlock.pathname,L.api.search.fullTextSearchBlock.method,e,n)}async getSnippet(e,n){return await this._request(L.api.snippet.getSnippet.pathname,L.api.snippet.getSnippet.method,e,n)}async setSnippet(e,n){return await this._request(L.api.snippet.setSnippet.pathname,L.api.snippet.setSnippet.method,e,n)}async flushTransaction(e){return await this._request(L.api.sqlite.flushTransaction.pathname,L.api.sqlite.flushTransaction.method,e)}async getLocalStorage(e){return await this._request(L.api.storage.getLocalStorage.pathname,L.api.storage.getLocalStorage.method,void 0,e)}async getRecentDocs(e){return await this._request(L.api.storage.getRecentDocs.pathname,L.api.storage.getRecentDocs.method,void 0,e)}async setLocalStorage(e,n){return await this._request(L.api.storage.setLocalStorage.pathname,L.api.storage.setLocalStorage.method,e,n)}async setLocalStorageVal(e,n){return await this._request(L.api.storage.setLocalStorageVal.pathname,L.api.storage.setLocalStorageVal.method,e,n)}async bootProgress(e){return await this._request(L.api.system.bootProgress.pathname,L.api.system.bootProgress.method,void 0,e)}async currentTime(e){return await this._request(L.api.system.currentTime.pathname,L.api.system.currentTime.method,void 0,e)}async exit(e,n){return await this._request(L.api.system.exit.pathname,L.api.system.exit.method,e,n)}async getConf(e){return await this._request(L.api.system.getConf.pathname,L.api.system.getConf.method,void 0,e)}async logoutAuth(e){return await this._request(L.api.system.logoutAuth.pathname,L.api.system.logoutAuth.method,void 0,e)}async version(e){return await this._request(L.api.system.version.pathname,L.api.system.version.method,void 0,e)}async render(e,n){return await this._request(L.api.template.render.pathname,L.api.template.render.method,e,n)}async renderSprig(e,n){return await this._request(L.api.template.renderSprig.pathname,L.api.template.renderSprig.method,e,n)}async _request(e,n,r,i,s=!0,o="json"){switch((i==null?void 0:i.type)??this._type){case"fetch":{const f=i==null?void 0:i.options;o=(()=>{switch(o){case"arraybuffer":return"arrayBuffer";case"document":return"text";default:return o}})();const l=await this._fetch(e,{method:n,body:r,responseType:o,onResponse:a=>{switch(a.response.status){case jr.Ok:switch(o){case"blob":a.response._data.contentType=a.response.headers.get("content-type");break}break;case jr.Accepted:e===L.api.file.getFile.pathname&&this._parseFetchResponse(a.response._data);break}},...f});return s&&o==="json"&&typeof l=="object"?this._parseFetchResponse(l):l}case"xhr":default:{const f=i==null?void 0:i.options;o=(()=>{switch(o){case"arrayBuffer":return"arraybuffer";default:return o}})();const l=await this._axios.request({url:e,method:n,data:r,responseType:o,...f});switch(l.status){case jr.Ok:if(s&&o==="json"&&typeof l.data=="object")return this._parseAxiosResponse(l);switch(o){case"blob":"content-type"in l.headers&&(l.data.contentType=l.headers["content-type"]);break}return l.data;case jr.Accepted:return e===L.api.file.getFile.pathname?this._parseAxiosResponse(l):l.data;default:throw new X2(l)}}}}_parseFetchResponse(e){if(e.code===0)return e;throw new K0(e)}_parseAxiosResponse(e){if(e.data.code===0)return e.data;throw new K0(e.data,e)}};vt(uo,"ws",{broadcast:{pathname:"/ws/broadcast"}}),vt(uo,"api",{asset:{upload:{pathname:"/api/asset/upload",method:"POST"}},attr:{getBlockAttrs:{pathname:"/api/attr/getBlockAttrs",method:"POST"},getBookmarkLabels:{pathname:"/api/attr/getBookmarkLabels",method:"POST"},setBlockAttrs:{pathname:"/api/attr/setBlockAttrs",method:"POST"}},block:{appendBlock:{pathname:"/api/block/appendBlock",method:"POST"},deleteBlock:{pathname:"/api/block/deleteBlock",method:"POST"},foldBlock:{pathname:"/api/block/foldBlock",method:"POST"},getBlockBreadcrumb:{pathname:"/api/block/getBlockBreadcrumb",method:"POST"},getBlockDOM:{pathname:"/api/block/getBlockDOM",method:"POST"},getBlockInfo:{pathname:"/api/block/getBlockInfo",method:"POST"},getBlockKramdown:{pathname:"/api/block/getBlockKramdown",method:"POST"},getChildBlocks:{pathname:"/api/block/getChildBlocks",method:"POST"},getDocInfo:{pathname:"/api/block/getDocInfo",method:"POST"},insertBlock:{pathname:"/api/block/insertBlock",method:"POST"},moveBlock:{pathname:"/api/block/moveBlock",method:"POST"},prependBlock:{pathname:"/api/block/prependBlock",method:"POST"},transferBlockRef:{pathname:"/api/block/transferBlockRef",method:"POST"},unfoldBlock:{pathname:"/api/block/unfoldBlock",method:"POST"},updateBlock:{pathname:"/api/block/updateBlock",method:"POST"}},broadcast:{getChannelInfo:{pathname:"/api/broadcast/getChannelInfo",method:"POST"},getChannels:{pathname:"/api/broadcast/getChannels",method:"POST"},postMessage:{pathname:"/api/broadcast/postMessage",method:"POST"}},convert:{pandoc:{pathname:"/api/convert/pandoc",method:"POST"}},export:{exportHTML:{pathname:"/api/export/exportHTML",method:"POST"},exportMdContent:{pathname:"/api/export/exportMdContent",method:"POST"},exportResources:{pathname:"/api/export/exportResources",method:"POST"}},file:{getFile:{pathname:"/api/file/getFile",method:"POST"},putFile:{pathname:"/api/file/putFile",method:"POST"},readDir:{pathname:"/api/file/readDir",method:"POST"},removeFile:{pathname:"/api/file/removeFile",method:"POST"},renameFile:{pathname:"/api/file/renameFile",method:"POST"}},filetree:{createDailyNote:{pathname:"/api/filetree/createDailyNote",method:"POST"},createDocWithMd:{pathname:"/api/filetree/createDocWithMd",method:"POST"},getDoc:{pathname:"/api/filetree/getDoc",method:"POST"},getHPathByID:{pathname:"/api/filetree/getHPathByID",method:"POST"},getHPathByPath:{pathname:"/api/filetree/getHPathByPath",method:"POST"},getIDsByHPath:{pathname:"/api/filetree/getIDsByHPath",method:"POST"},listDocsByPath:{pathname:"/api/filetree/listDocsByPath",method:"POST"},moveDocs:{pathname:"/api/filetree/moveDocs",method:"POST"},removeDoc:{pathname:"/api/filetree/removeDoc",method:"POST"},renameDoc:{pathname:"/api/filetree/renameDoc",method:"POST"},searchDocs:{pathname:"/api/filetree/searchDocs",method:"POST"}},history:{getDocHistoryContent:{pathname:"/api/history/getDocHistoryContent",method:"POST"},getHistoryItems:{pathname:"/api/history/getHistoryItems",method:"POST"}},inbox:{getShorthand:{pathname:"/api/inbox/getShorthand",method:"POST"}},network:{echo:{pathname:"/api/network/echo",method:"POST"},forwardProxy:{pathname:"/api/network/forwardProxy",method:"POST"}},notebook:{closeNotebook:{pathname:"/api/notebook/closeNotebook",method:"POST"},createNotebook:{pathname:"/api/notebook/createNotebook",method:"POST"},getNotebookConf:{pathname:"/api/notebook/getNotebookConf",method:"POST"},lsNotebooks:{pathname:"/api/notebook/lsNotebooks",method:"POST"},openNotebook:{pathname:"/api/notebook/openNotebook",method:"POST"},removeNotebook:{pathname:"/api/notebook/removeNotebook",method:"POST"},renameNotebook:{pathname:"/api/notebook/renameNotebook",method:"POST"},setNotebookConf:{pathname:"/api/notebook/setNotebookConf",method:"POST"}},notification:{pushErrMsg:{pathname:"/api/notification/pushErrMsg",method:"POST"},pushMsg:{pathname:"/api/notification/pushMsg",method:"POST"}},outline:{getDocOutline:{pathname:"/api/outline/getDocOutline",method:"POST"}},query:{sql:{pathname:"/api/query/sql",method:"POST"}},repo:{openRepoSnapshotDoc:{pathname:"/api/repo/openRepoSnapshotDoc",method:"POST"}},search:{fullTextSearchBlock:{pathname:"/api/search/fullTextSearchBlock",method:"POST"}},snippet:{getSnippet:{pathname:"/api/snippet/getSnippet",method:"POST"},setSnippet:{pathname:"/api/snippet/setSnippet",method:"POST"}},sqlite:{flushTransaction:{pathname:"/api/sqlite/flushTransaction",method:"POST"}},storage:{getLocalStorage:{pathname:"/api/storage/getLocalStorage",method:"POST"},getRecentDocs:{pathname:"/api/storage/getRecentDocs",method:"POST"},setLocalStorage:{pathname:"/api/storage/setLocalStorage",method:"POST"},setLocalStorageVal:{pathname:"/api/storage/setLocalStorageVal",method:"POST"}},system:{bootProgress:{pathname:"/api/system/bootProgress",method:"POST"},currentTime:{pathname:"/api/system/currentTime",method:"POST"},exit:{pathname:"/api/system/exit",method:"POST"},getConf:{pathname:"/api/system/getConf",method:"POST"},logoutAuth:{pathname:"/api/system/logoutAuth",method:"POST"},version:{pathname:"/api/system/version",method:"POST"}},template:{render:{pathname:"/api/template/render",method:"POST"},renderSprig:{pathname:"/api/template/renderSprig",method:"POST"}}});let uf=uo;function Mt(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Q0(t,e){for(var n="",r=0,i=-1,s=0,o,f=0;f<=t.length;++f){if(f<t.length)o=t.charCodeAt(f);else{if(o===47)break;o=47}if(o===47){if(!(i===f-1||s===1))if(i!==f-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=f,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=f,s=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,f):n=t.slice(i+1,f),r=f-i-1;i=f,s=0}else o===46&&s!==-1?++s:s=-1}return n}function G2(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var br={resolve:function(){for(var t="",e=!1,n,r=arguments.length-1;r>=-1&&!e;r--){var i;r>=0?i=arguments[r]:(n===void 0&&(n=process.cwd()),i=n),Mt(i),i.length!==0&&(t=i+"/"+t,e=i.charCodeAt(0)===47)}return t=Q0(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Mt(t),t.length===0)return".";var e=t.charCodeAt(0)===47,n=t.charCodeAt(t.length-1)===47;return t=Q0(t,!e),t.length===0&&!e&&(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return Mt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];Mt(n),n.length>0&&(t===void 0?t=n:t+="/"+n)}return t===void 0?".":br.normalize(t)},relative:function(t,e){if(Mt(t),Mt(e),t===e||(t=br.resolve(t),e=br.resolve(e),t===e))return"";for(var n=1;n<t.length&&t.charCodeAt(n)===47;++n);for(var r=t.length,i=r-n,s=1;s<e.length&&e.charCodeAt(s)===47;++s);for(var o=e.length,f=o-s,l=i<f?i:f,a=-1,c=0;c<=l;++c){if(c===l){if(f>l){if(e.charCodeAt(s+c)===47)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>l&&(t.charCodeAt(n+c)===47?a=c:c===0&&(a=0));break}var u=t.charCodeAt(n+c),h=e.charCodeAt(s+c);if(u!==h)break;u===47&&(a=c)}var d="";for(c=n+a+1;c<=r;++c)(c===r||t.charCodeAt(c)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+e.slice(s+a):(s+=a,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Mt(t),t.length===0)return".";for(var e=t.charCodeAt(0),n=e===47,r=-1,i=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!i){r=s;break}}else i=!1;return r===-1?n?"/":".":n&&r===1?"//":t.slice(0,r)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Mt(t);var n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var o=e.length-1,f=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!i){n=s+1;break}}else f===-1&&(i=!1,f=s+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=f))}return n===r?r=f:r===-1&&(r=t.length),t.slice(n,r)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)}},extname:function(t){Mt(t);for(var e=-1,n=0,r=-1,i=!0,s=0,o=t.length-1;o>=0;--o){var f=t.charCodeAt(o);if(f===47){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),f===46?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return G2("/",t)},parse:function(t){Mt(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var n=t.charCodeAt(0),r=n===47,i;r?(e.root="/",i=1):i=0;for(var s=-1,o=0,f=-1,l=!0,a=t.length-1,c=0;a>=i;--a){if(n=t.charCodeAt(a),n===47){if(!l){o=a+1;break}continue}f===-1&&(l=!1,f=a+1),n===46?s===-1?s=a:c!==1&&(c=1):s!==-1&&(c=-1)}return s===-1||f===-1||c===0||c===1&&s===f-1&&s===o+1?f!==-1&&(o===0&&r?e.base=e.name=t.slice(1,f):e.base=e.name=t.slice(o,f)):(o===0&&r?(e.name=t.slice(1,s),e.base=t.slice(1,f)):(e.name=t.slice(o,s),e.base=t.slice(o,f)),e.ext=t.slice(s,f)),o>0?e.dir=t.slice(0,o-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};br.posix=br;function $0(t){let e,n;return e=new nr({props:{icon:t[0],color:t[7],width:`${t[5]}px`,height:`${t[5]}px`}}),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i[0]&1&&(s.icon=r[0]),i[0]&128&&(s.color=r[7]),i[0]&32&&(s.width=`${r[5]}px`),i[0]&32&&(s.height=`${r[5]}px`),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function ea(t){let e;return{c(){e=ce("div"),W(e,"class","ml-1")},m(n,r){se(n,e,r)},d(n){n&&ie(e)}}}function ta(t){let e,n;return e=new nr({props:{icon:t[1],cls:"ml-1",color:t[7],width:`${t[5]}px`,height:`${t[5]}px`}}),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i[0]&2&&(s.icon=r[1]),i[0]&128&&(s.color=r[7]),i[0]&32&&(s.width=`${r[5]}px`),i[0]&32&&(s.height=`${r[5]}px`),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function Ji(t){let e,n,r,i,s,o,f,l,a=t[0]&&$0(t),c=t[12].default&&t[0]&&!t[4]&&ea();const u=t[32].default,h=Ge(u,t,t[31],null);let d=t[1]&&ta(t),b=[{style:s="border-radius: "+(t[3]?`${t[3]}`:"4")+"px; font-size: "+t[5]+"px"},{class:t[9]},t[8],t[11]],x={};for(let p=0;p<b.length;p+=1)x=Ee(x,b[p]);return{c(){e=ce(t[2]?"a":"button"),a&&a.c(),n=Ae(),c&&c.c(),r=Ae(),h&&h.c(),i=Ae(),d&&d.c(),Gn(t[2]?"a":"button")(e,x)},m(p,g){se(p,e,g),a&&a.m(e,null),le(e,n),c&&c.m(e,null),le(e,r),h&&h.m(e,null),le(e,i),d&&d.m(e,null),t[33](e),o=!0,f||(l=ze(e,"click",t[10]),f=!0)},p(p,g){p[0]?a?(a.p(p,g),g[0]&1&&K(a,1)):(a=$0(p),a.c(),K(a,1),a.m(e,n)):a&&(Ne(),X(a,1,1,()=>{a=null}),We()),p[12].default&&p[0]&&!p[4]?c||(c=ea(),c.c(),c.m(e,r)):c&&(c.d(1),c=null),h&&h.p&&(!o||g[1]&1)&&Qe(h,u,p,p[31],o?Je(u,p[31],g,null):$e(p[31]),null),p[1]?d?(d.p(p,g),g[0]&2&&K(d,1)):(d=ta(p),d.c(),K(d,1),d.m(e,null)):d&&(Ne(),X(d,1,1,()=>{d=null}),We()),Gn(p[2]?"a":"button")(e,x=Ct(b,[(!o||g[0]&40&&s!==(s="border-radius: "+(p[3]?`${p[3]}`:"4")+"px; font-size: "+p[5]+"px"))&&{style:s},(!o||g[0]&512)&&{class:p[9]},g[0]&256&&p[8],g[0]&2048&&p[11]]))},i(p){o||(K(a),K(h,p),K(d),o=!0)},o(p){X(a),X(h,p),X(d),o=!1},d(p){p&&ie(e),a&&a.d(),c&&c.d(),h&&h.d(p),d&&d.d(),t[33](null),f=!1,l()}}}function J2(t){let e=t[2]?"a":"button",n,r,i=(t[2]?"a":"button")&&Ji(t);return{c(){i&&i.c(),n=Et()},m(s,o){i&&i.m(s,o),se(s,n,o),r=!0},p(s,o){s[2],e?Ue(e,s[2]?"a":"button")?(i.d(1),i=Ji(s),e=s[2]?"a":"button",i.c(),i.m(n.parentNode,n)):i.p(s,o):(i=Ji(s),e=s[2]?"a":"button",i.c(),i.m(n.parentNode,n))},i(s){r||(K(i,s),r=!0)},o(s){X(i,s),r=!1},d(s){s&&ie(n),i&&i.d(s)}}}function Q2(t,e,n){let r,i,s,o,f,l,a,c,u,h;const d=["type","size","icon","suffixIcon","iconSize","to","round","circle","isBorder","plain","ghost","disabled","cls","attrs","hiddenSlot"];let b=rt(e,d),{$$slots:x={},$$scope:p}=e;const g=Br(x);let{type:m=""}=e,{size:v=""}=e,{icon:_=""}=e,{suffixIcon:C=""}=e,{iconSize:y=null}=e,{to:w=""}=e,{round:k=""}=e,{circle:S=!1}=e,{isBorder:E=!1}=e,{plain:A=!1}=e,{ghost:B=!1}=e,{disabled:D=!1}=e,{cls:F=void 0}=e,{attrs:R={}}=e,{hiddenSlot:T=!1}=e;var N=($=>($[$.lg=20]="lg",$[$.md=16]="md",$[$.sm=12]="sm",$))(N||{});const P=Yn(Yu)||{},Y=E||(P==null?void 0:P.isBorder)||B||!1;let z;const I=Yn(Vu);I&&I.disabledEvt.push($=>{n(28,s=$)});let O=null,q="";const j=()=>{O&&(n(23,q=`${o}--${r}__animate`),setTimeout(()=>{n(23,q="")},310))},te=pn(),ne=Yn(pc),he=$=>{(s||ne)&&$.preventDefault(),!w&&!s&&(te("click",$),j())};function re($){dt[$?"unshift":"push"](()=>{O=$,n(6,O)})}return t.$$set=$=>{e=Ee(Ee({},e),hn($)),n(11,b=rt(e,d)),"type"in $&&n(13,m=$.type),"size"in $&&n(14,v=$.size),"icon"in $&&n(0,_=$.icon),"suffixIcon"in $&&n(1,C=$.suffixIcon),"iconSize"in $&&n(15,y=$.iconSize),"to"in $&&n(2,w=$.to),"round"in $&&n(3,k=$.round),"circle"in $&&n(16,S=$.circle),"isBorder"in $&&n(17,E=$.isBorder),"plain"in $&&n(18,A=$.plain),"ghost"in $&&n(19,B=$.ghost),"disabled"in $&&n(20,D=$.disabled),"cls"in $&&n(21,F=$.cls),"attrs"in $&&n(22,R=$.attrs),"hiddenSlot"in $&&n(4,T=$.hiddenSlot),"$$scope"in $&&n(31,p=$.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&8192&&n(25,r=m||(P==null?void 0:P.type)||"primary"),t.$$.dirty[0]&16384&&n(27,i=(P==null?void 0:P.size)||v||"md"),t.$$.dirty[0]&1048576&&n(28,s=D||(P==null?void 0:P.disabled)||!1),t.$$.dirty[0]&134250496&&(y?n(5,z=y):P!=null&&P.iconSize?n(5,z=P.iconSize):n(5,z=N[i])),t.$$.dirty[0]&100663296&&n(29,f=`${o}--${r}`),t.$$.dirty[0]&536870912&&n(30,l=`${f}__hover`),t.$$.dirty[0]&2125266944&&n(9,a=Oe(o,`${o}--base`,{[`${f}__ghost`]:!A&&B,[`${f}__ghost--dark`]:!A&&B,[`${f}__fill`]:!A&&!B,[`${l}__fill`]:!A&&!B,[f]:A&&!B,[l]:A&&!B},{[`${f}__active ${f}__focus`]:!s,[`k-cur-disabled ${o}--disabled`]:s,[`${o}--circle`]:S,[`${o}--circle--sm`]:S&&i==="sm",[`${o}--circle--lg`]:S&&i==="lg"},{[`${o}--sm`]:i==="sm",[`${o}--lg`]:i==="lg"},{[`${o}--${r}__border`]:Y},q,F)),t.$$.dirty[0]&4194308&&n(8,c=i1(R,w?{href:w}:{})),t.$$.dirty[0]&100663296&&n(24,u=`${o}--${r}__icon`),t.$$.dirty[0]&17563648&&n(7,h=Oe({[u]:!0,[`${u}__fill`]:!A&&!B}))},n(26,o=At("button")),[_,C,w,k,T,z,O,h,c,a,he,b,g,m,v,y,S,E,A,B,D,F,R,q,u,r,o,i,s,f,l,p,x,re]}class $2 extends st{constructor(e){super(),it(this,e,Q2,J2,Ue,{type:13,size:14,icon:0,suffixIcon:1,iconSize:15,to:2,round:3,circle:16,isBorder:17,plain:18,ghost:19,disabled:20,cls:21,attrs:22,hiddenSlot:4},null,[-1,-1])}}const kr=15,ho=30,po=19,ex=29,_i=256,qo=_i+1+ex,na=2*qo+1,fr=256,tx=7,ra=16,ia=17,sa=18,Qi=8*2,yi=-1,nx=1,Hr=2,rx=0,zn=0,oa=1,ix=3,ct=4,Bt=0,df=1,Yr=2,Ft=-2,sx=-3,Ln=-5;function Pi(t){return Ii(t.map(([e,n])=>new Array(e).fill(n,0,e)))}function Ii(t){return t.reduce((e,n)=>e.concat(Array.isArray(n)?Ii(n):n),[])}const aa=[0,1,2,3].concat(...Pi([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Be(){const t=this;function e(i){const s=t.dyn_tree,o=t.stat_desc.static_tree,f=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,a=t.stat_desc.max_length;let c,u,h,d,b,x,p=0;for(d=0;d<=kr;d++)i.bl_count[d]=0;for(s[i.heap[i.heap_max]*2+1]=0,c=i.heap_max+1;c<na;c++)u=i.heap[c],d=s[s[u*2+1]*2+1]+1,d>a&&(d=a,p++),s[u*2+1]=d,!(u>t.max_code)&&(i.bl_count[d]++,b=0,u>=l&&(b=f[u-l]),x=s[u*2],i.opt_len+=x*(d+b),o&&(i.static_len+=x*(o[u*2+1]+b)));if(p!==0){do{for(d=a-1;i.bl_count[d]===0;)d--;i.bl_count[d]--,i.bl_count[d+1]+=2,i.bl_count[a]--,p-=2}while(p>0);for(d=a;d!==0;d--)for(u=i.bl_count[d];u!==0;)h=i.heap[--c],!(h>t.max_code)&&(s[h*2+1]!=d&&(i.opt_len+=(d-s[h*2+1])*s[h*2],s[h*2+1]=d),u--)}}function n(i,s){let o=0;do o|=i&1,i>>>=1,o<<=1;while(--s>0);return o>>>1}function r(i,s,o){const f=[];let l=0,a,c,u;for(a=1;a<=kr;a++)f[a]=l=l+o[a-1]<<1;for(c=0;c<=s;c++)u=i[c*2+1],u!==0&&(i[c*2]=n(f[u]++,u))}t.build_tree=function(i){const s=t.dyn_tree,o=t.stat_desc.static_tree,f=t.stat_desc.elems;let l,a,c=-1,u;for(i.heap_len=0,i.heap_max=na,l=0;l<f;l++)s[l*2]!==0?(i.heap[++i.heap_len]=c=l,i.depth[l]=0):s[l*2+1]=0;for(;i.heap_len<2;)u=i.heap[++i.heap_len]=c<2?++c:0,s[u*2]=1,i.depth[u]=0,i.opt_len--,o&&(i.static_len-=o[u*2+1]);for(t.max_code=c,l=Math.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(s,l);u=f;do l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(s,1),a=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=a,s[u*2]=s[l*2]+s[a*2],i.depth[u]=Math.max(i.depth[l],i.depth[a])+1,s[l*2+1]=s[a*2+1]=u,i.heap[1]=u++,i.pqdownheap(s,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],e(i),r(s,t.max_code,i.bl_count)}}Be._length_code=[0,1,2,3,4,5,6,7].concat(...Pi([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Be.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Be.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Be.d_code=function(t){return t<256?aa[t]:aa[256+(t>>>7)]};Be.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];Be.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];Be.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Be.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ze(t,e,n,r,i){const s=this;s.static_tree=t,s.extra_bits=e,s.extra_base=n,s.elems=r,s.max_length=i}const ox=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],ax=Pi([[144,8],[112,9],[24,7],[8,8]]);Ze.static_ltree=Ii(ox.map((t,e)=>[t,ax[e]]));const lx=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],cx=Pi([[30,5]]);Ze.static_dtree=Ii(lx.map((t,e)=>[t,cx[e]]));Ze.static_l_desc=new Ze(Ze.static_ltree,Be.extra_lbits,_i+1,qo,kr);Ze.static_d_desc=new Ze(Ze.static_dtree,Be.extra_dbits,0,ho,kr);Ze.static_bl_desc=new Ze(null,Be.extra_blbits,0,po,tx);const fx=9,ux=8;function jt(t,e,n,r,i){const s=this;s.good_length=t,s.max_lazy=e,s.nice_length=n,s.max_chain=r,s.func=i}const hf=0,ii=1,vn=2,St=[new jt(0,0,0,0,hf),new jt(4,4,8,4,ii),new jt(4,5,16,8,ii),new jt(4,6,32,32,ii),new jt(4,4,16,16,vn),new jt(8,16,32,32,vn),new jt(8,16,128,128,vn),new jt(8,32,128,256,vn),new jt(32,128,258,1024,vn),new jt(32,258,258,4096,vn)],Kr=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],wt=0,Vr=1,ur=2,Zr=3,dx=32,$i=42,Xr=113,dr=666,es=8,hx=0,ts=1,px=2,Re=3,si=258,gt=si+Re+1;function la(t,e,n,r){const i=t[e*2],s=t[n*2];return i<s||i==s&&r[e]<=r[n]}function xx(){const t=this;let e,n,r,i,s,o,f,l,a,c,u,h,d,b,x,p,g,m,v,_,C,y,w,k,S,E,A,B,D,F,R,T,N;const P=new Be,Y=new Be,z=new Be;t.depth=[];let I,O,q,j,te,ne;t.bl_count=[],t.heap=[],R=[],T=[],N=[];function he(){a=2*s,u[d-1]=0;for(let H=0;H<d-1;H++)u[H]=0;E=St[A].max_lazy,D=St[A].good_length,F=St[A].nice_length,S=St[A].max_chain,C=0,g=0,w=0,m=k=Re-1,_=0,h=0}function re(){let H;for(H=0;H<qo;H++)R[H*2]=0;for(H=0;H<ho;H++)T[H*2]=0;for(H=0;H<po;H++)N[H*2]=0;R[fr*2]=1,t.opt_len=t.static_len=0,O=q=0}function $(){P.dyn_tree=R,P.stat_desc=Ze.static_l_desc,Y.dyn_tree=T,Y.stat_desc=Ze.static_d_desc,z.dyn_tree=N,z.stat_desc=Ze.static_bl_desc,te=0,ne=0,j=8,re()}t.pqdownheap=function(H,Z){const V=t.heap,G=V[Z];let ee=Z<<1;for(;ee<=t.heap_len&&(ee<t.heap_len&&la(H,V[ee+1],V[ee],t.depth)&&ee++,!la(H,G,V[ee],t.depth));)V[Z]=V[ee],Z=ee,ee<<=1;V[Z]=G};function me(H,Z){let V=-1,G,ee=H[0*2+1],oe=0,M=7,Se=4;ee===0&&(M=138,Se=3),H[(Z+1)*2+1]=65535;for(let tt=0;tt<=Z;tt++)G=ee,ee=H[(tt+1)*2+1],!(++oe<M&&G==ee)&&(oe<Se?N[G*2]+=oe:G!==0?(G!=V&&N[G*2]++,N[ra*2]++):oe<=10?N[ia*2]++:N[sa*2]++,oe=0,V=G,ee===0?(M=138,Se=3):G==ee?(M=6,Se=3):(M=7,Se=4))}function Te(){let H;for(me(R,P.max_code),me(T,Y.max_code),z.build_tree(t),H=po-1;H>=3&&N[Be.bl_order[H]*2+1]===0;H--);return t.opt_len+=3*(H+1)+5+5+4,H}function ke(H){t.pending_buf[t.pending++]=H}function be(H){ke(H&255),ke(H>>>8&255)}function Q(H){ke(H>>8&255),ke(H&255&255)}function fe(H,Z){let V;const G=Z;ne>Qi-G?(V=H,te|=V<<ne&65535,be(te),te=V>>>Qi-ne,ne+=G-Qi):(te|=H<<ne&65535,ne+=G)}function pe(H,Z){const V=H*2;fe(Z[V]&65535,Z[V+1]&65535)}function J(H,Z){let V,G=-1,ee,oe=H[0*2+1],M=0,Se=7,tt=4;for(oe===0&&(Se=138,tt=3),V=0;V<=Z;V++)if(ee=oe,oe=H[(V+1)*2+1],!(++M<Se&&ee==oe)){if(M<tt)do pe(ee,N);while(--M!==0);else ee!==0?(ee!=G&&(pe(ee,N),M--),pe(ra,N),fe(M-3,2)):M<=10?(pe(ia,N),fe(M-3,3)):(pe(sa,N),fe(M-11,7));M=0,G=ee,oe===0?(Se=138,tt=3):ee==oe?(Se=6,tt=3):(Se=7,tt=4)}}function et(H,Z,V){let G;for(fe(H-257,5),fe(Z-1,5),fe(V-4,4),G=0;G<V;G++)fe(N[Be.bl_order[G]*2+1],3);J(R,H-1),J(T,Z-1)}function Lt(){ne==16?(be(te),te=0,ne=0):ne>=8&&(ke(te&255),te>>>=8,ne-=8)}function Ve(){fe(ts<<1,3),pe(fr,Ze.static_ltree),Lt(),1+j+10-ne<9&&(fe(ts<<1,3),pe(fr,Ze.static_ltree),Lt()),j=7}function Ce(H,Z){let V,G,ee;if(t.dist_buf[O]=H,t.lc_buf[O]=Z&255,O++,H===0?R[Z*2]++:(q++,H--,R[(Be._length_code[Z]+_i+1)*2]++,T[Be.d_code(H)*2]++),!(O&8191)&&A>2){for(V=O*8,G=C-g,ee=0;ee<ho;ee++)V+=T[ee*2]*(5+Be.extra_dbits[ee]);if(V>>>=3,q<Math.floor(O/2)&&V<Math.floor(G/2))return!0}return O==I-1}function Ie(H,Z){let V,G,ee=0,oe,M;if(O!==0)do V=t.dist_buf[ee],G=t.lc_buf[ee],ee++,V===0?pe(G,H):(oe=Be._length_code[G],pe(oe+_i+1,H),M=Be.extra_lbits[oe],M!==0&&(G-=Be.base_length[oe],fe(G,M)),V--,oe=Be.d_code(V),pe(oe,Z),M=Be.extra_dbits[oe],M!==0&&(V-=Be.base_dist[oe],fe(V,M)));while(ee<O);pe(fr,H),j=H[fr*2+1]}function lt(){ne>8?be(te):ne>0&&ke(te&255),te=0,ne=0}function Qt(H,Z,V){lt(),j=8,be(Z),be(~Z),t.pending_buf.set(l.subarray(H,H+Z),t.pending),t.pending+=Z}function qt(H,Z,V){fe((hx<<1)+(V?1:0),3),Qt(H,Z)}function Nt(H,Z,V){let G,ee,oe=0;A>0?(P.build_tree(t),Y.build_tree(t),oe=Te(),G=t.opt_len+3+7>>>3,ee=t.static_len+3+7>>>3,ee<=G&&(G=ee)):G=ee=Z+5,Z+4<=G&&H!=-1?qt(H,Z,V):ee==G?(fe((ts<<1)+(V?1:0),3),Ie(Ze.static_ltree,Ze.static_dtree)):(fe((px<<1)+(V?1:0),3),et(P.max_code+1,Y.max_code+1,oe+1),Ie(R,T)),re(),V&&lt()}function xe(H){Nt(g>=0?g:-1,C-g,H),g=C,e.flush_pending()}function mn(){let H,Z,V,G;do{if(G=a-w-C,G===0&&C===0&&w===0)G=s;else if(G==-1)G--;else if(C>=s+s-gt){l.set(l.subarray(s,s+s),0),y-=s,C-=s,g-=s,H=d,V=H;do Z=u[--V]&65535,u[V]=Z>=s?Z-s:0;while(--H!==0);H=s,V=H;do Z=c[--V]&65535,c[V]=Z>=s?Z-s:0;while(--H!==0);G+=s}if(e.avail_in===0)return;H=e.read_buf(l,C+w,G),w+=H,w>=Re&&(h=l[C]&255,h=(h<<p^l[C+1]&255)&x)}while(w<gt&&e.avail_in!==0)}function On(H){let Z=65535,V;for(Z>r-5&&(Z=r-5);;){if(w<=1){if(mn(),w===0&&H==zn)return wt;if(w===0)break}if(C+=w,w=0,V=g+Z,(C===0||C>=V)&&(w=C-V,C=V,xe(!1),e.avail_out===0)||C-g>=s-gt&&(xe(!1),e.avail_out===0))return wt}return xe(H==ct),e.avail_out===0?H==ct?ur:wt:H==ct?Zr:Vr}function gn(H){let Z=S,V=C,G,ee,oe=k;const M=C>s-gt?C-(s-gt):0;let Se=F;const tt=f,ar=C+si;let Nr=l[V+oe-1],Wr=l[V+oe];k>=D&&(Z>>=2),Se>w&&(Se=w);do if(G=H,!(l[G+oe]!=Wr||l[G+oe-1]!=Nr||l[G]!=l[V]||l[++G]!=l[V+1])){V+=2,G++;do;while(l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&l[++V]==l[++G]&&V<ar);if(ee=si-(ar-V),V=ar-si,ee>oe){if(y=H,oe=ee,ee>=Se)break;Nr=l[V+oe-1],Wr=l[V+oe]}}while((H=c[H&tt]&65535)>M&&--Z!==0);return oe<=w?oe:w}function Wt(H){let Z=0,V;for(;;){if(w<gt){if(mn(),w<gt&&H==zn)return wt;if(w===0)break}if(w>=Re&&(h=(h<<p^l[C+(Re-1)]&255)&x,Z=u[h]&65535,c[C&f]=u[h],u[h]=C),Z!==0&&(C-Z&65535)<=s-gt&&B!=Hr&&(m=gn(Z)),m>=Re)if(V=Ce(C-y,m-Re),w-=m,m<=E&&w>=Re){m--;do C++,h=(h<<p^l[C+(Re-1)]&255)&x,Z=u[h]&65535,c[C&f]=u[h],u[h]=C;while(--m!==0);C++}else C+=m,m=0,h=l[C]&255,h=(h<<p^l[C+1]&255)&x;else V=Ce(0,l[C]&255),w--,C++;if(V&&(xe(!1),e.avail_out===0))return wt}return xe(H==ct),e.avail_out===0?H==ct?ur:wt:H==ct?Zr:Vr}function Zt(H){let Z=0,V,G;for(;;){if(w<gt){if(mn(),w<gt&&H==zn)return wt;if(w===0)break}if(w>=Re&&(h=(h<<p^l[C+(Re-1)]&255)&x,Z=u[h]&65535,c[C&f]=u[h],u[h]=C),k=m,v=y,m=Re-1,Z!==0&&k<E&&(C-Z&65535)<=s-gt&&(B!=Hr&&(m=gn(Z)),m<=5&&(B==nx||m==Re&&C-y>4096)&&(m=Re-1)),k>=Re&&m<=k){G=C+w-Re,V=Ce(C-1-v,k-Re),w-=k-1,k-=2;do++C<=G&&(h=(h<<p^l[C+(Re-1)]&255)&x,Z=u[h]&65535,c[C&f]=u[h],u[h]=C);while(--k!==0);if(_=0,m=Re-1,C++,V&&(xe(!1),e.avail_out===0))return wt}else if(_!==0){if(V=Ce(0,l[C-1]&255),V&&xe(!1),C++,w--,e.avail_out===0)return wt}else _=1,C++,w--}return _!==0&&(V=Ce(0,l[C-1]&255),_=0),xe(H==ct),e.avail_out===0?H==ct?ur:wt:H==ct?Zr:Vr}function or(H){return H.total_in=H.total_out=0,H.msg=null,t.pending=0,t.pending_out=0,n=Xr,i=zn,$(),he(),Bt}t.deflateInit=function(H,Z,V,G,ee,oe){return G||(G=es),ee||(ee=ux),oe||(oe=rx),H.msg=null,Z==yi&&(Z=6),ee<1||ee>fx||G!=es||V<9||V>15||Z<0||Z>9||oe<0||oe>Hr?Ft:(H.dstate=t,o=V,s=1<<o,f=s-1,b=ee+7,d=1<<b,x=d-1,p=Math.floor((b+Re-1)/Re),l=new Uint8Array(s*2),c=[],u=[],I=1<<ee+6,t.pending_buf=new Uint8Array(I*4),r=I*4,t.dist_buf=new Uint16Array(I),t.lc_buf=new Uint8Array(I),A=Z,B=oe,or(H))},t.deflateEnd=function(){return n!=$i&&n!=Xr&&n!=dr?Ft:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,u=null,c=null,l=null,t.dstate=null,n==Xr?sx:Bt)},t.deflateParams=function(H,Z,V){let G=Bt;return Z==yi&&(Z=6),Z<0||Z>9||V<0||V>Hr?Ft:(St[A].func!=St[Z].func&&H.total_in!==0&&(G=H.deflate(oa)),A!=Z&&(A=Z,E=St[A].max_lazy,D=St[A].good_length,F=St[A].nice_length,S=St[A].max_chain),B=V,G)},t.deflateSetDictionary=function(H,Z,V){let G=V,ee,oe=0;if(!Z||n!=$i)return Ft;if(G<Re)return Bt;for(G>s-gt&&(G=s-gt,oe=V-G),l.set(Z.subarray(oe,oe+G),0),C=G,g=G,h=l[0]&255,h=(h<<p^l[1]&255)&x,ee=0;ee<=G-Re;ee++)h=(h<<p^l[ee+(Re-1)]&255)&x,c[ee&f]=u[h],u[h]=ee;return Bt},t.deflate=function(H,Z){let V,G,ee,oe,M;if(Z>ct||Z<0)return Ft;if(!H.next_out||!H.next_in&&H.avail_in!==0||n==dr&&Z!=ct)return H.msg=Kr[Yr-Ft],Ft;if(H.avail_out===0)return H.msg=Kr[Yr-Ln],Ln;if(e=H,oe=i,i=Z,n==$i&&(G=es+(o-8<<4)<<8,ee=(A-1&255)>>1,ee>3&&(ee=3),G|=ee<<6,C!==0&&(G|=dx),G+=31-G%31,n=Xr,Q(G)),t.pending!==0){if(e.flush_pending(),e.avail_out===0)return i=-1,Bt}else if(e.avail_in===0&&Z<=oe&&Z!=ct)return e.msg=Kr[Yr-Ln],Ln;if(n==dr&&e.avail_in!==0)return H.msg=Kr[Yr-Ln],Ln;if(e.avail_in!==0||w!==0||Z!=zn&&n!=dr){switch(M=-1,St[A].func){case hf:M=On(Z);break;case ii:M=Wt(Z);break;case vn:M=Zt(Z);break}if((M==ur||M==Zr)&&(n=dr),M==wt||M==ur)return e.avail_out===0&&(i=-1),Bt;if(M==Vr){if(Z==oa)Ve();else if(qt(0,0,!1),Z==ix)for(V=0;V<d;V++)u[V]=0;if(e.flush_pending(),e.avail_out===0)return i=-1,Bt}}return Z!=ct?Bt:df}}function pf(){const t=this;t.next_in_index=0,t.next_out_index=0,t.avail_in=0,t.total_in=0,t.avail_out=0,t.total_out=0}pf.prototype={deflateInit(t,e){const n=this;return n.dstate=new xx,e||(e=kr),n.dstate.deflateInit(n,t,e)},deflate(t){const e=this;return e.dstate?e.dstate.deflate(e,t):Ft},deflateEnd(){const t=this;if(!t.dstate)return Ft;const e=t.dstate.deflateEnd();return t.dstate=null,e},deflateParams(t,e){const n=this;return n.dstate?n.dstate.deflateParams(n,t,e):Ft},deflateSetDictionary(t,e){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,t,e):Ft},read_buf(t,e,n){const r=this;let i=r.avail_in;return i>n&&(i=n),i===0?0:(r.avail_in-=i,t.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),e),r.next_in_index+=i,r.total_in+=i,i)},flush_pending(){const t=this;let e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,t.dstate.pending===0&&(t.dstate.pending_out=0))}};function mx(t){const e=this,n=new pf,r=gx(t&&t.chunkSize?t.chunkSize:64*1024),i=zn,s=new Uint8Array(r);let o=t?t.level:yi;typeof o>"u"&&(o=yi),n.deflateInit(o),n.next_out=s,e.append=function(f,l){let a,c,u=0,h=0,d=0;const b=[];if(f.length){n.next_in_index=0,n.next_in=f,n.avail_in=f.length;do{if(n.next_out_index=0,n.avail_out=r,a=n.deflate(i),a!=Bt)throw new Error("deflating: "+n.msg);n.next_out_index&&(n.next_out_index==r?b.push(new Uint8Array(s)):b.push(s.subarray(0,n.next_out_index))),d+=n.next_out_index,l&&n.next_in_index>0&&n.next_in_index!=u&&(l(n.next_in_index),u=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return b.length>1?(c=new Uint8Array(d),b.forEach(function(x){c.set(x,h),h+=x.length})):c=b[0]?new Uint8Array(b[0]):new Uint8Array,c}},e.flush=function(){let f,l,a=0,c=0;const u=[];do{if(n.next_out_index=0,n.avail_out=r,f=n.deflate(ct),f!=df&&f!=Bt)throw new Error("deflating: "+n.msg);r-n.avail_out>0&&u.push(s.slice(0,n.next_out_index)),c+=n.next_out_index}while(n.avail_in>0||n.avail_out===0);return n.deflateEnd(),l=new Uint8Array(c),u.forEach(function(h){l.set(h,a),a+=h.length}),l}}function gx(t){return t+5*(Math.floor(t/16383)+1)}const bx=15,ve=0,Xt=1,vx=2,ut=-2,Fe=-3,ca=-4,Gt=-5,bt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],xf=1440,_x=0,yx=4,wx=9,kx=5,Ex=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Cx=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],Ax=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Sx=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],Dx=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Bx=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],nn=15;function xo(){const t=this;let e,n,r,i,s,o;function f(a,c,u,h,d,b,x,p,g,m,v){let _,C,y,w,k,S,E,A,B,D,F,R,T,N,P;D=0,k=u;do r[a[c+D]]++,D++,k--;while(k!==0);if(r[0]==u)return x[0]=-1,p[0]=0,ve;for(A=p[0],S=1;S<=nn&&r[S]===0;S++);for(E=S,A<S&&(A=S),k=nn;k!==0&&r[k]===0;k--);for(y=k,A>k&&(A=k),p[0]=A,N=1<<S;S<k;S++,N<<=1)if((N-=r[S])<0)return Fe;if((N-=r[k])<0)return Fe;for(r[k]+=N,o[1]=S=0,D=1,T=2;--k!==0;)o[T]=S+=r[D],T++,D++;k=0,D=0;do(S=a[c+D])!==0&&(v[o[S]++]=k),D++;while(++k<u);for(u=o[y],o[0]=k=0,D=0,w=-1,R=-A,s[0]=0,F=0,P=0;E<=y;E++)for(_=r[E];_--!==0;){for(;E>R+A;){if(w++,R+=A,P=y-R,P=P>A?A:P,(C=1<<(S=E-R))>_+1&&(C-=_+1,T=E,S<P))for(;++S<P&&!((C<<=1)<=r[++T]);)C-=r[T];if(P=1<<S,m[0]+P>xf)return Fe;s[w]=F=m[0],m[0]+=P,w!==0?(o[w]=k,i[0]=S,i[1]=A,S=k>>>R-A,i[2]=F-s[w-1]-S,g.set(i,(s[w-1]+S)*3)):x[0]=F}for(i[1]=E-R,D>=u?i[0]=192:v[D]<h?(i[0]=v[D]<256?0:96,i[2]=v[D++]):(i[0]=b[v[D]-h]+16+64,i[2]=d[v[D++]-h]),C=1<<E-R,S=k>>>R;S<P;S+=C)g.set(i,(F+S)*3);for(S=1<<E-1;k&S;S>>>=1)k^=S;for(k^=S,B=(1<<R)-1;(k&B)!=o[w];)w--,R-=A,B=(1<<R)-1}return N!==0&&y!=1?Gt:ve}function l(a){let c;for(e||(e=[],n=[],r=new Int32Array(nn+1),i=[],s=new Int32Array(nn),o=new Int32Array(nn+1)),n.length<a&&(n=[]),c=0;c<a;c++)n[c]=0;for(c=0;c<nn+1;c++)r[c]=0;for(c=0;c<3;c++)i[c]=0;s.set(r.subarray(0,nn),0),o.set(r.subarray(0,nn+1),0)}t.inflate_trees_bits=function(a,c,u,h,d){let b;return l(19),e[0]=0,b=f(a,0,19,19,null,null,u,c,h,e,n),b==Fe?d.msg="oversubscribed dynamic bit lengths tree":(b==Gt||c[0]===0)&&(d.msg="incomplete dynamic bit lengths tree",b=Fe),b},t.inflate_trees_dynamic=function(a,c,u,h,d,b,x,p,g){let m;return l(288),e[0]=0,m=f(u,0,a,257,Ax,Sx,b,h,p,e,n),m!=ve||h[0]===0?(m==Fe?g.msg="oversubscribed literal/length tree":m!=ca&&(g.msg="incomplete literal/length tree",m=Fe),m):(l(288),m=f(u,a,c,0,Dx,Bx,x,d,p,e,n),m!=ve||d[0]===0&&a>257?(m==Fe?g.msg="oversubscribed distance tree":m==Gt?(g.msg="incomplete distance tree",m=Fe):m!=ca&&(g.msg="empty distance tree with lengths",m=Fe),m):ve)}}xo.inflate_trees_fixed=function(t,e,n,r){return t[0]=wx,e[0]=kx,n[0]=Ex,r[0]=Cx,ve};const Gr=0,fa=1,ua=2,da=3,ha=4,pa=5,xa=6,ns=7,ma=8,Jr=9;function Fx(){const t=this;let e,n=0,r,i=0,s=0,o=0,f=0,l=0,a=0,c=0,u,h=0,d,b=0;function x(p,g,m,v,_,C,y,w){let k,S,E,A,B,D,F,R,T,N,P,Y,z,I,O,q;F=w.next_in_index,R=w.avail_in,B=y.bitb,D=y.bitk,T=y.write,N=T<y.read?y.read-T-1:y.end-T,P=bt[p],Y=bt[g];do{for(;D<20;)R--,B|=(w.read_byte(F++)&255)<<D,D+=8;if(k=B&P,S=m,E=v,q=(E+k)*3,(A=S[q])===0){B>>=S[q+1],D-=S[q+1],y.win[T++]=S[q+2],N--;continue}do{if(B>>=S[q+1],D-=S[q+1],A&16){for(A&=15,z=S[q+2]+(B&bt[A]),B>>=A,D-=A;D<15;)R--,B|=(w.read_byte(F++)&255)<<D,D+=8;k=B&Y,S=_,E=C,q=(E+k)*3,A=S[q];do if(B>>=S[q+1],D-=S[q+1],A&16){for(A&=15;D<A;)R--,B|=(w.read_byte(F++)&255)<<D,D+=8;if(I=S[q+2]+(B&bt[A]),B>>=A,D-=A,N-=z,T>=I)O=T-I,T-O>0&&2>T-O?(y.win[T++]=y.win[O++],y.win[T++]=y.win[O++],z-=2):(y.win.set(y.win.subarray(O,O+2),T),T+=2,O+=2,z-=2);else{O=T-I;do O+=y.end;while(O<0);if(A=y.end-O,z>A){if(z-=A,T-O>0&&A>T-O)do y.win[T++]=y.win[O++];while(--A!==0);else y.win.set(y.win.subarray(O,O+A),T),T+=A,O+=A,A=0;O=0}}if(T-O>0&&z>T-O)do y.win[T++]=y.win[O++];while(--z!==0);else y.win.set(y.win.subarray(O,O+z),T),T+=z,O+=z,z=0;break}else if(!(A&64))k+=S[q+2],k+=B&bt[A],q=(E+k)*3,A=S[q];else return w.msg="invalid distance code",z=w.avail_in-R,z=D>>3<z?D>>3:z,R+=z,F-=z,D-=z<<3,y.bitb=B,y.bitk=D,w.avail_in=R,w.total_in+=F-w.next_in_index,w.next_in_index=F,y.write=T,Fe;while(!0);break}if(A&64)return A&32?(z=w.avail_in-R,z=D>>3<z?D>>3:z,R+=z,F-=z,D-=z<<3,y.bitb=B,y.bitk=D,w.avail_in=R,w.total_in+=F-w.next_in_index,w.next_in_index=F,y.write=T,Xt):(w.msg="invalid literal/length code",z=w.avail_in-R,z=D>>3<z?D>>3:z,R+=z,F-=z,D-=z<<3,y.bitb=B,y.bitk=D,w.avail_in=R,w.total_in+=F-w.next_in_index,w.next_in_index=F,y.write=T,Fe);if(k+=S[q+2],k+=B&bt[A],q=(E+k)*3,(A=S[q])===0){B>>=S[q+1],D-=S[q+1],y.win[T++]=S[q+2],N--;break}}while(!0)}while(N>=258&&R>=10);return z=w.avail_in-R,z=D>>3<z?D>>3:z,R+=z,F-=z,D-=z<<3,y.bitb=B,y.bitk=D,w.avail_in=R,w.total_in+=F-w.next_in_index,w.next_in_index=F,y.write=T,ve}t.init=function(p,g,m,v,_,C){e=Gr,a=p,c=g,u=m,h=v,d=_,b=C,r=null},t.proc=function(p,g,m){let v,_,C,y=0,w=0,k=0,S,E,A,B;for(k=g.next_in_index,S=g.avail_in,y=p.bitb,w=p.bitk,E=p.write,A=E<p.read?p.read-E-1:p.end-E;;)switch(e){case Gr:if(A>=258&&S>=10&&(p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,m=x(a,c,u,h,d,b,p,g),k=g.next_in_index,S=g.avail_in,y=p.bitb,w=p.bitk,E=p.write,A=E<p.read?p.read-E-1:p.end-E,m!=ve)){e=m==Xt?ns:Jr;break}s=a,r=u,i=h,e=fa;case fa:for(v=s;w<v;){if(S!==0)m=ve;else return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);S--,y|=(g.read_byte(k++)&255)<<w,w+=8}if(_=(i+(y&bt[v]))*3,y>>>=r[_+1],w-=r[_+1],C=r[_],C===0){o=r[_+2],e=xa;break}if(C&16){f=C&15,n=r[_+2],e=ua;break}if(!(C&64)){s=C,i=_/3+r[_+2];break}if(C&32){e=ns;break}return e=Jr,g.msg="invalid literal/length code",m=Fe,p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);case ua:for(v=f;w<v;){if(S!==0)m=ve;else return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);S--,y|=(g.read_byte(k++)&255)<<w,w+=8}n+=y&bt[v],y>>=v,w-=v,s=c,r=d,i=b,e=da;case da:for(v=s;w<v;){if(S!==0)m=ve;else return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);S--,y|=(g.read_byte(k++)&255)<<w,w+=8}if(_=(i+(y&bt[v]))*3,y>>=r[_+1],w-=r[_+1],C=r[_],C&16){f=C&15,l=r[_+2],e=ha;break}if(!(C&64)){s=C,i=_/3+r[_+2];break}return e=Jr,g.msg="invalid distance code",m=Fe,p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);case ha:for(v=f;w<v;){if(S!==0)m=ve;else return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);S--,y|=(g.read_byte(k++)&255)<<w,w+=8}l+=y&bt[v],y>>=v,w-=v,e=pa;case pa:for(B=E-l;B<0;)B+=p.end;for(;n!==0;){if(A===0&&(E==p.end&&p.read!==0&&(E=0,A=E<p.read?p.read-E-1:p.end-E),A===0&&(p.write=E,m=p.inflate_flush(g,m),E=p.write,A=E<p.read?p.read-E-1:p.end-E,E==p.end&&p.read!==0&&(E=0,A=E<p.read?p.read-E-1:p.end-E),A===0)))return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);p.win[E++]=p.win[B++],A--,B==p.end&&(B=0),n--}e=Gr;break;case xa:if(A===0&&(E==p.end&&p.read!==0&&(E=0,A=E<p.read?p.read-E-1:p.end-E),A===0&&(p.write=E,m=p.inflate_flush(g,m),E=p.write,A=E<p.read?p.read-E-1:p.end-E,E==p.end&&p.read!==0&&(E=0,A=E<p.read?p.read-E-1:p.end-E),A===0)))return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);m=ve,p.win[E++]=o,A--,e=Gr;break;case ns:if(w>7&&(w-=8,S++,k--),p.write=E,m=p.inflate_flush(g,m),E=p.write,A=E<p.read?p.read-E-1:p.end-E,p.read!=p.write)return p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);e=ma;case ma:return m=Xt,p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);case Jr:return m=Fe,p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m);default:return m=ut,p.bitb=y,p.bitk=w,g.avail_in=S,g.total_in+=k-g.next_in_index,g.next_in_index=k,p.write=E,p.inflate_flush(g,m)}},t.free=function(){}}const ga=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qn=0,rs=1,ba=2,va=3,_a=4,ya=5,Qr=6,$r=7,wa=8,bn=9;function Tx(t,e){const n=this;let r=qn,i=0,s=0,o=0,f;const l=[0],a=[0],c=new Fx;let u=0,h=new Int32Array(xf*3);const d=0,b=new xo;n.bitk=0,n.bitb=0,n.win=new Uint8Array(e),n.end=e,n.read=0,n.write=0,n.reset=function(x,p){p&&(p[0]=d),r==Qr&&c.free(x),r=qn,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(t,null),n.inflate_flush=function(x,p){let g,m,v;return m=x.next_out_index,v=n.read,g=(v<=n.write?n.write:n.end)-v,g>x.avail_out&&(g=x.avail_out),g!==0&&p==Gt&&(p=ve),x.avail_out-=g,x.total_out+=g,x.next_out.set(n.win.subarray(v,v+g),m),m+=g,v+=g,v==n.end&&(v=0,n.write==n.end&&(n.write=0),g=n.write-v,g>x.avail_out&&(g=x.avail_out),g!==0&&p==Gt&&(p=ve),x.avail_out-=g,x.total_out+=g,x.next_out.set(n.win.subarray(v,v+g),m),m+=g,v+=g),x.next_out_index=m,n.read=v,p},n.proc=function(x,p){let g,m,v,_,C,y,w,k;for(_=x.next_in_index,C=x.avail_in,m=n.bitb,v=n.bitk,y=n.write,w=y<n.read?n.read-y-1:n.end-y;;){let S,E,A,B,D,F,R,T;switch(r){case qn:for(;v<3;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}switch(g=m&7,u=g&1,g>>>1){case 0:m>>>=3,v-=3,g=v&7,m>>>=g,v-=g,r=rs;break;case 1:S=[],E=[],A=[[]],B=[[]],xo.inflate_trees_fixed(S,E,A,B),c.init(S[0],E[0],A[0],0,B[0],0),m>>>=3,v-=3,r=Qr;break;case 2:m>>>=3,v-=3,r=va;break;case 3:return m>>>=3,v-=3,r=bn,x.msg="invalid block type",p=Fe,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p)}break;case rs:for(;v<32;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}if((~m>>>16&65535)!=(m&65535))return r=bn,x.msg="invalid stored block lengths",p=Fe,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);i=m&65535,m=v=0,r=i!==0?ba:u!==0?$r:qn;break;case ba:if(C===0||w===0&&(y==n.end&&n.read!==0&&(y=0,w=y<n.read?n.read-y-1:n.end-y),w===0&&(n.write=y,p=n.inflate_flush(x,p),y=n.write,w=y<n.read?n.read-y-1:n.end-y,y==n.end&&n.read!==0&&(y=0,w=y<n.read?n.read-y-1:n.end-y),w===0)))return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);if(p=ve,g=i,g>C&&(g=C),g>w&&(g=w),n.win.set(x.read_buf(_,g),y),_+=g,C-=g,y+=g,w-=g,(i-=g)!==0)break;r=u!==0?$r:qn;break;case va:for(;v<14;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}if(s=g=m&16383,(g&31)>29||(g>>5&31)>29)return r=bn,x.msg="too many length or distance symbols",p=Fe,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);if(g=258+(g&31)+(g>>5&31),!f||f.length<g)f=[];else for(k=0;k<g;k++)f[k]=0;m>>>=14,v-=14,o=0,r=_a;case _a:for(;o<4+(s>>>10);){for(;v<3;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}f[ga[o++]]=m&7,m>>>=3,v-=3}for(;o<19;)f[ga[o++]]=0;if(l[0]=7,g=b.inflate_trees_bits(f,l,a,h,x),g!=ve)return p=g,p==Fe&&(f=null,r=bn),n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);o=0,r=ya;case ya:for(;g=s,!(o>=258+(g&31)+(g>>5&31));){let N,P;for(g=l[0];v<g;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}if(g=h[(a[0]+(m&bt[g]))*3+1],P=h[(a[0]+(m&bt[g]))*3+2],P<16)m>>>=g,v-=g,f[o++]=P;else{for(k=P==18?7:P-14,N=P==18?11:3;v<g+k;){if(C!==0)p=ve;else return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);C--,m|=(x.read_byte(_++)&255)<<v,v+=8}if(m>>>=g,v-=g,N+=m&bt[k],m>>>=k,v-=k,k=o,g=s,k+N>258+(g&31)+(g>>5&31)||P==16&&k<1)return f=null,r=bn,x.msg="invalid bit length repeat",p=Fe,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);P=P==16?f[k-1]:0;do f[k++]=P;while(--N!==0);o=k}}if(a[0]=-1,D=[],F=[],R=[],T=[],D[0]=9,F[0]=6,g=s,g=b.inflate_trees_dynamic(257+(g&31),1+(g>>5&31),f,D,F,R,T,h,x),g!=ve)return g==Fe&&(f=null,r=bn),p=g,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);c.init(D[0],F[0],h,R[0],h,T[0]),r=Qr;case Qr:if(n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,(p=c.proc(n,x,p))!=Xt)return n.inflate_flush(x,p);if(p=ve,c.free(x),_=x.next_in_index,C=x.avail_in,m=n.bitb,v=n.bitk,y=n.write,w=y<n.read?n.read-y-1:n.end-y,u===0){r=qn;break}r=$r;case $r:if(n.write=y,p=n.inflate_flush(x,p),y=n.write,w=y<n.read?n.read-y-1:n.end-y,n.read!=n.write)return n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);r=wa;case wa:return p=Xt,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);case bn:return p=Fe,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p);default:return p=ut,n.bitb=m,n.bitk=v,x.avail_in=C,x.total_in+=_-x.next_in_index,x.next_in_index=_,n.write=y,n.inflate_flush(x,p)}}},n.free=function(x){n.reset(x,null),n.win=null,h=null},n.set_dictionary=function(x,p,g){n.win.set(x.subarray(p,p+g),0),n.read=n.write=g},n.sync_point=function(){return r==rs?1:0}}const Rx=32,Ox=8,Px=0,ka=1,Ea=2,Ca=3,Aa=4,Sa=5,is=6,hr=7,Da=12,rn=13,Ix=[0,0,255,255];function Lx(){const t=this;t.mode=0,t.method=0,t.was=[0],t.need=0,t.marker=0,t.wbits=0;function e(n){return!n||!n.istate?ut:(n.total_in=n.total_out=0,n.msg=null,n.istate.mode=hr,n.istate.blocks.reset(n,null),ve)}t.inflateEnd=function(n){return t.blocks&&t.blocks.free(n),t.blocks=null,ve},t.inflateInit=function(n,r){return n.msg=null,t.blocks=null,r<8||r>15?(t.inflateEnd(n),ut):(t.wbits=r,n.istate.blocks=new Tx(n,1<<r),e(n),ve)},t.inflate=function(n,r){let i,s;if(!n||!n.istate||!n.next_in)return ut;const o=n.istate;for(r=r==yx?Gt:ve,i=Gt;;)switch(o.mode){case Px:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,((o.method=n.read_byte(n.next_in_index++))&15)!=Ox){o.mode=rn,n.msg="unknown compression method",o.marker=5;break}if((o.method>>4)+8>o.wbits){o.mode=rn,n.msg="invalid win size",o.marker=5;break}o.mode=ka;case ka:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,s=n.read_byte(n.next_in_index++)&255,((o.method<<8)+s)%31!==0){o.mode=rn,n.msg="incorrect header check",o.marker=5;break}if(!(s&Rx)){o.mode=hr;break}o.mode=Ea;case Ea:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need=(n.read_byte(n.next_in_index++)&255)<<24&4278190080,o.mode=Ca;case Ca:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need+=(n.read_byte(n.next_in_index++)&255)<<16&16711680,o.mode=Aa;case Aa:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need+=(n.read_byte(n.next_in_index++)&255)<<8&65280,o.mode=Sa;case Sa:return n.avail_in===0?i:(i=r,n.avail_in--,n.total_in++,o.need+=n.read_byte(n.next_in_index++)&255,o.mode=is,vx);case is:return o.mode=rn,n.msg="need dictionary",o.marker=0,ut;case hr:if(i=o.blocks.proc(n,i),i==Fe){o.mode=rn,o.marker=0;break}if(i==ve&&(i=r),i!=Xt)return i;i=r,o.blocks.reset(n,o.was),o.mode=Da;case Da:return n.avail_in=0,Xt;case rn:return Fe;default:return ut}},t.inflateSetDictionary=function(n,r,i){let s=0,o=i;if(!n||!n.istate||n.istate.mode!=is)return ut;const f=n.istate;return o>=1<<f.wbits&&(o=(1<<f.wbits)-1,s=i-o),f.blocks.set_dictionary(r,s,o),f.mode=hr,ve},t.inflateSync=function(n){let r,i,s,o,f;if(!n||!n.istate)return ut;const l=n.istate;if(l.mode!=rn&&(l.mode=rn,l.marker=0),(r=n.avail_in)===0)return Gt;for(i=n.next_in_index,s=l.marker;r!==0&&s<4;)n.read_byte(i)==Ix[s]?s++:n.read_byte(i)!==0?s=0:s=4-s,i++,r--;return n.total_in+=i-n.next_in_index,n.next_in_index=i,n.avail_in=r,l.marker=s,s!=4?Fe:(o=n.total_in,f=n.total_out,e(n),n.total_in=o,n.total_out=f,l.mode=hr,ve)},t.inflateSyncPoint=function(n){return!n||!n.istate||!n.istate.blocks?ut:n.istate.blocks.sync_point()}}function mf(){}mf.prototype={inflateInit(t){const e=this;return e.istate=new Lx,t||(t=bx),e.istate.inflateInit(e,t)},inflate(t){const e=this;return e.istate?e.istate.inflate(e,t):ut},inflateEnd(){const t=this;if(!t.istate)return ut;const e=t.istate.inflateEnd(t);return t.istate=null,e},inflateSync(){const t=this;return t.istate?t.istate.inflateSync(t):ut},inflateSetDictionary(t,e){const n=this;return n.istate?n.istate.inflateSetDictionary(n,t,e):ut},read_byte(t){return this.next_in[t]},read_buf(t,e){return this.next_in.subarray(t,t+e)}};function qx(t){const e=this,n=new mf,r=t&&t.chunkSize?Math.floor(t.chunkSize*2):128*1024,i=_x,s=new Uint8Array(r);let o=!1;n.inflateInit(),n.next_out=s,e.append=function(f,l){const a=[];let c,u,h=0,d=0,b=0;if(f.length!==0){n.next_in_index=0,n.next_in=f,n.avail_in=f.length;do{if(n.next_out_index=0,n.avail_out=r,n.avail_in===0&&!o&&(n.next_in_index=0,o=!0),c=n.inflate(i),o&&c===Gt){if(n.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==Xt)throw new Error("inflating: "+n.msg);if((o||c===Xt)&&n.avail_in===f.length)throw new Error("inflating: bad input");n.next_out_index&&(n.next_out_index===r?a.push(new Uint8Array(s)):a.push(s.subarray(0,n.next_out_index))),b+=n.next_out_index,l&&n.next_in_index>0&&n.next_in_index!=h&&(l(n.next_in_index),h=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return a.length>1?(u=new Uint8Array(b),a.forEach(function(x){u.set(x,d),d+=x.length})):u=a[0]?new Uint8Array(a[0]):new Uint8Array,u}},e.flush=function(){n.inflateEnd()}}const Cn=4294967295,an=65535,Nx=8,Wx=0,Mx=99,jx=67324752,zx=134695760,Ba=33639248,Ux=101010256,Fa=101075792,Hx=117853008,Nn=22,ss=20,os=56,Yx=1,Kx=39169,Vx=10,Zx=1,Xx=21589,Gx=28789,Jx=25461,Qx=6534,Ta=1,$x=6,Ra=8,Oa=2048,Pa=16,em=61440,tm=16384,nm=73,Ia="/",Xe=void 0,dn="undefined",Lr="function";class La{constructor(e){return class extends TransformStream{constructor(n,r){const i=new e(r);super({transform(s,o){o.enqueue(i.append(s))},flush(s){const o=i.flush();o&&s.enqueue(o)}})}}}}const rm=64;let gf=2;try{typeof navigator!=dn&&navigator.hardwareConcurrency&&(gf=navigator.hardwareConcurrency)}catch{}const im={chunkSize:512*1024,maxWorkers:gf,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:Xe,CompressionStreamNative:typeof CompressionStream!=dn&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=dn&&DecompressionStream},ln=Object.assign({},im);function sm(){return ln}function om(t){return Math.max(t.chunkSize,rm)}function Li(t){const{baseURL:e,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:s,useWebWorkers:o,Deflate:f,Inflate:l,CompressionStream:a,DecompressionStream:c,workerScripts:u}=t;if(sn("baseURL",e),sn("chunkSize",n),sn("maxWorkers",r),sn("terminateWorkerTimeout",i),sn("useCompressionStream",s),sn("useWebWorkers",o),f&&(ln.CompressionStream=new La(f)),l&&(ln.DecompressionStream=new La(l)),sn("CompressionStream",a),sn("DecompressionStream",c),u!==Xe){const{deflate:h,inflate:d}=u;if((h||d)&&(ln.workerScripts||(ln.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");ln.workerScripts.deflate=h}if(d){if(!Array.isArray(d))throw new Error("workerScripts.inflate must be an array");ln.workerScripts.inflate=d}}}function sn(t,e){e!==Xe&&(ln[t]=e)}const as={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const t={};for(const e of Object.keys(as))for(const n of Object.keys(as[e])){const r=as[e][n];if(typeof r=="string")t[r]=e+"/"+n;else for(let i=0;i<r.length;i++)t[r[i]]=e+"/"+n}return t})();const bf=[];for(let t=0;t<256;t++){let e=t;for(let n=0;n<8;n++)e&1?e=e>>>1^3988292384:e=e>>>1;bf[t]=e}class wi{constructor(e){this.crc=e||-1}append(e){let n=this.crc|0;for(let r=0,i=e.length|0;r<i;r++)n=n>>>8^bf[(n^e[r])&255];this.crc=n}get(){return~this.crc}}class vf extends TransformStream{constructor(){let e;const n=new wi;super({transform(r,i){n.append(r),i.enqueue(r)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,n.get()),e.value=r}}),e=this}}function am(t){if(typeof TextEncoder==dn){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}else return new TextEncoder().encode(t)}const at={concat(t,e){if(t.length===0||e.length===0)return t.concat(e);const n=t[t.length-1],r=at.getPartial(n);return r===32?t.concat(e):at._shiftRight(e,r,n|0,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(e===0)return 0;const n=t[e-1];return(e-1)*32+at.getPartial(n)},clamp(t,e){if(t.length*32<e)return t;t=t.slice(0,Math.ceil(e/32));const n=t.length;return e=e&31,n>0&&e&&(t[n-1]=at.partial(e,t[n-1]&2147483648>>e-1,1)),t},partial(t,e,n){return t===32?e:(n?e|0:e<<32-t)+t*1099511627776},getPartial(t){return Math.round(t/1099511627776)||32},_shiftRight(t,e,n,r){for(r===void 0&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(e===0)return r.concat(t);for(let o=0;o<t.length;o++)r.push(n|t[o]>>>e),n=t[o]<<32-e;const i=t.length?t[t.length-1]:0,s=at.getPartial(i);return r.push(at.partial(e+s&31,e+s>32?n:r.pop(),1)),r}},ki={bytes:{fromBits(t){const n=at.bitLength(t)/8,r=new Uint8Array(n);let i;for(let s=0;s<n;s++)s&3||(i=t[s/4]),r[s]=i>>>24,i<<=8;return r},toBits(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],(n&3)===3&&(e.push(r),r=0);return n&3&&e.push(at.partial(8*(n&3),r)),e}}},_f={};_f.sha1=class{constructor(t){const e=this;e.blockSize=512,e._init=[1732584193,4023233417,2562383102,271733878,3285377520],e._key=[1518500249,1859775393,2400959708,3395469782],t?(e._h=t._h.slice(0),e._buffer=t._buffer.slice(0),e._length=t._length):e.reset()}reset(){const t=this;return t._h=t._init.slice(0),t._buffer=[],t._length=0,t}update(t){const e=this;typeof t=="string"&&(t=ki.utf8String.toBits(t));const n=e._buffer=at.concat(e._buffer,t),r=e._length,i=e._length=r+at.bitLength(t);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(n);let o=0;for(let f=e.blockSize+r-(e.blockSize+r&e.blockSize-1);f<=i;f+=e.blockSize)e._block(s.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),e}finalize(){const t=this;let e=t._buffer;const n=t._h;e=at.concat(e,[at.partial(1,1)]);for(let r=e.length+2;r&15;r++)e.push(0);for(e.push(Math.floor(t._length/4294967296)),e.push(t._length|0);e.length;)t._block(e.splice(0,16));return t.reset(),n}_f(t,e,n,r){if(t<=19)return e&n|~e&r;if(t<=39)return e^n^r;if(t<=59)return e&n|e&r|n&r;if(t<=79)return e^n^r}_S(t,e){return e<<t|e>>>32-t}_block(t){const e=this,n=e._h,r=Array(80);for(let a=0;a<16;a++)r[a]=t[a];let i=n[0],s=n[1],o=n[2],f=n[3],l=n[4];for(let a=0;a<=79;a++){a>=16&&(r[a]=e._S(1,r[a-3]^r[a-8]^r[a-14]^r[a-16]));const c=e._S(5,i)+e._f(a,s,o,f)+l+r[a]+e._key[Math.floor(a/20)]|0;l=f,f=o,o=e._S(30,s),s=i,i=c}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+f|0,n[4]=n[4]+l|0}};const yf={};yf.aes=class{constructor(t){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const n=e._tables[0][4],r=e._tables[1],i=t.length;let s,o,f,l=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(e._key=[o=t.slice(0),f=[]],s=i;s<4*i+28;s++){let a=o[s-1];(s%i===0||i===8&&s%i===4)&&(a=n[a>>>24]<<24^n[a>>16&255]<<16^n[a>>8&255]<<8^n[a&255],s%i===0&&(a=a<<8^a>>>24^l<<24,l=l<<1^(l>>7)*283)),o[s]=o[s-i]^a}for(let a=0;s;a++,s--){const c=o[a&3?s:s-4];s<=4||a<4?f[a]=c:f[a]=r[0][n[c>>>24]]^r[1][n[c>>16&255]]^r[2][n[c>>8&255]]^r[3][n[c&255]]}}encrypt(t){return this._crypt(t,0)}decrypt(t){return this._crypt(t,1)}_precompute(){const t=this._tables[0],e=this._tables[1],n=t[4],r=e[4],i=[],s=[];let o,f,l,a;for(let c=0;c<256;c++)s[(i[c]=c<<1^(c>>7)*283)^c]=c;for(let c=o=0;!n[c];c^=f||1,o=s[o]||1){let u=o^o<<1^o<<2^o<<3^o<<4;u=u>>8^u&255^99,n[c]=u,r[u]=c,a=i[l=i[f=i[c]]];let h=a*16843009^l*65537^f*257^c*16843008,d=i[u]*257^u*16843008;for(let b=0;b<4;b++)t[b][c]=d=d<<24^d>>>8,e[b][u]=h=h<<24^h>>>8}for(let c=0;c<5;c++)t[c]=t[c].slice(0),e[c]=e[c].slice(0)}_crypt(t,e){if(t.length!==4)throw new Error("invalid aes block size");const n=this._key[e],r=n.length/4-2,i=[0,0,0,0],s=this._tables[e],o=s[0],f=s[1],l=s[2],a=s[3],c=s[4];let u=t[0]^n[0],h=t[e?3:1]^n[1],d=t[2]^n[2],b=t[e?1:3]^n[3],x=4,p,g,m;for(let v=0;v<r;v++)p=o[u>>>24]^f[h>>16&255]^l[d>>8&255]^a[b&255]^n[x],g=o[h>>>24]^f[d>>16&255]^l[b>>8&255]^a[u&255]^n[x+1],m=o[d>>>24]^f[b>>16&255]^l[u>>8&255]^a[h&255]^n[x+2],b=o[b>>>24]^f[u>>16&255]^l[h>>8&255]^a[d&255]^n[x+3],x+=4,u=p,h=g,d=m;for(let v=0;v<4;v++)i[e?3&-v:v]=c[u>>>24]<<24^c[h>>16&255]<<16^c[d>>8&255]<<8^c[b&255]^n[x++],p=u,u=h,h=d,d=b,b=p;return i}};const lm={getRandomValues(t){const e=new Uint32Array(t.buffer),n=r=>{let i=987654321;const s=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&s,r=18e3*(r&65535)+(r>>16)&s,(((i<<16)+r&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r<t.length;r+=4){const s=n((i||Math.random())*4294967296);i=s()*987654071,e[r/4]=s()*4294967296|0}return t}},wf={};wf.ctrGladman=class{constructor(t,e){this._prf=t,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(t){return this.calculate(this._prf,t,this._iv)}incWord(t){if((t>>24&255)===255){let e=t>>16&255,n=t>>8&255,r=t&255;e===255?(e=0,n===255?(n=0,r===255?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}incCounter(t){(t[0]=this.incWord(t[0]))===0&&(t[1]=this.incWord(t[1]))}calculate(t,e,n){let r;if(!(r=e.length))return[];const i=at.bitLength(e);for(let s=0;s<r;s+=4){this.incCounter(n);const o=t.encrypt(n);e[s]^=o[0],e[s+1]^=o[1],e[s+2]^=o[2],e[s+3]^=o[3]}return at.clamp(e,i)}};const Fn={importKey(t){return new Fn.hmacSha1(ki.bytes.toBits(t))},pbkdf2(t,e,n,r){if(n=n||1e4,r<0||n<0)throw new Error("invalid params to pbkdf2");const i=(r>>5)+1<<2;let s,o,f,l,a;const c=new ArrayBuffer(i),u=new DataView(c);let h=0;const d=at;for(e=ki.bytes.toBits(e),a=1;h<(i||1);a++){for(s=o=t.encrypt(d.concat(e,[a])),f=1;f<n;f++)for(o=t.encrypt(o),l=0;l<o.length;l++)s[l]^=o[l];for(f=0;h<(i||1)&&f<s.length;f++)u.setInt32(h,s[f]),h+=4}return c.slice(0,r/8)}};Fn.hmacSha1=class{constructor(t){const e=this,n=e._hash=_f.sha1,r=[[],[]];e._baseHash=[new n,new n];const i=e._baseHash[0].blockSize/32;t.length>i&&(t=new n().update(t).finalize());for(let s=0;s<i;s++)r[0][s]=t[s]^909522486,r[1][s]=t[s]^1549556828;e._baseHash[0].update(r[0]),e._baseHash[1].update(r[1]),e._resultHash=new n(e._baseHash[0])}reset(){const t=this;t._resultHash=new t._hash(t._baseHash[0]),t._updated=!1}update(t){const e=this;e._updated=!0,e._resultHash.update(t)}digest(){const t=this,e=t._resultHash.finalize(),n=new t._hash(t._baseHash[1]).update(e).finalize();return t.reset(),n}encrypt(t){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}};const cm=typeof crypto!=dn&&typeof crypto.getRandomValues==Lr,kf="Invalid password",Ef="Invalid signature",No="zipjs-abort-check-password";function Cf(t){return cm?crypto.getRandomValues(t):lm.getRandomValues(t)}const Un=16,fm="raw",Af={name:"PBKDF2"},um={name:"HMAC"},dm="SHA-1",hm=Object.assign({hash:um},Af),mo=Object.assign({iterations:1e3,hash:{name:dm}},Af),pm=["deriveBits"],Er=[8,12,16],pr=[16,24,32],on=10,xm=[0,0,0,0],qi=typeof crypto!=dn,qr=qi&&crypto.subtle,Sf=qi&&typeof qr!=dn,Ht=ki.bytes,mm=yf.aes,gm=wf.ctrGladman,bm=Fn.hmacSha1;let qa=qi&&Sf&&typeof qr.importKey==Lr,Na=qi&&Sf&&typeof qr.deriveBits==Lr;class vm extends TransformStream{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:i,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(o=>this.resolveReady=o),password:Ff(e,n),signed:r,strength:i-1,pending:new Uint8Array})},async transform(o,f){const l=this,{password:a,strength:c,resolveReady:u,ready:h}=l;a?(await ym(l,c,a,kt(o,0,Er[c]+2)),o=kt(o,Er[c]+2),s?f.error(new Error(No)):u()):await h;const d=new Uint8Array(o.length-on-(o.length-on)%Un);f.enqueue(Df(l,o,d,0,on,!0))},async flush(o){const{signed:f,ctr:l,hmac:a,pending:c,ready:u}=this;if(a&&l){await u;const h=kt(c,0,c.length-on),d=kt(c,c.length-on);let b=new Uint8Array;if(h.length){const x=Ar(Ht,h);a.update(x);const p=l.update(x);b=Cr(Ht,p)}if(f){const x=kt(Cr(Ht,a.digest()),0,on);for(let p=0;p<on;p++)if(x[p]!=d[p])throw new Error(Ef)}o.enqueue(b)}}})}}class _m extends TransformStream{constructor({password:e,rawPassword:n,encryptionStrength:r}){let i;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Ff(e,n),strength:r-1,pending:new Uint8Array})},async transform(s,o){const f=this,{password:l,strength:a,resolveReady:c,ready:u}=f;let h=new Uint8Array;l?(h=await wm(f,a,l),c()):await u;const d=new Uint8Array(h.length+s.length-s.length%Un);d.set(h,0),o.enqueue(Df(f,s,d,h.length,0))},async flush(s){const{ctr:o,hmac:f,pending:l,ready:a}=this;if(f&&o){await a;let c=new Uint8Array;if(l.length){const u=o.update(Ar(Ht,l));f.update(u),c=Cr(Ht,u)}i.signature=Cr(Ht,f.digest()).slice(0,on),s.enqueue(Wo(c,i.signature))}}}),i=this}}function Df(t,e,n,r,i,s){const{ctr:o,hmac:f,pending:l}=t,a=e.length-i;l.length&&(e=Wo(l,e),n=Cm(n,a-a%Un));let c;for(c=0;c<=a-Un;c+=Un){const u=Ar(Ht,kt(e,c,c+Un));s&&f.update(u);const h=o.update(u);s||f.update(h),n.set(Cr(Ht,h),c+r)}return t.pending=kt(e,c),n}async function ym(t,e,n,r){const i=await Bf(t,e,n,kt(r,0,Er[e])),s=kt(r,Er[e]);if(i[0]!=s[0]||i[1]!=s[1])throw new Error(kf)}async function wm(t,e,n){const r=Cf(new Uint8Array(Er[e])),i=await Bf(t,e,n,r);return Wo(r,i)}async function Bf(t,e,n,r){t.password=null;const i=await km(fm,n,hm,!1,pm),s=await Em(Object.assign({salt:r},mo),i,8*(pr[e]*2+2)),o=new Uint8Array(s),f=Ar(Ht,kt(o,0,pr[e])),l=Ar(Ht,kt(o,pr[e],pr[e]*2)),a=kt(o,pr[e]*2);return Object.assign(t,{keys:{key:f,authentication:l,passwordVerification:a},ctr:new gm(new mm(f),Array.from(xm)),hmac:new bm(l)}),a}async function km(t,e,n,r,i){if(qa)try{return await qr.importKey(t,e,n,r,i)}catch{return qa=!1,Fn.importKey(e)}else return Fn.importKey(e)}async function Em(t,e,n){if(Na)try{return await qr.deriveBits(t,e,n)}catch{return Na=!1,Fn.pbkdf2(e,t.salt,mo.iterations,n)}else return Fn.pbkdf2(e,t.salt,mo.iterations,n)}function Ff(t,e){return e===Xe?am(t):e}function Wo(t,e){let n=t;return t.length+e.length&&(n=new Uint8Array(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function Cm(t,e){if(e&&e>t.length){const n=t;t=new Uint8Array(e),t.set(n,0)}return t}function kt(t,e,n){return t.subarray(e,n)}function Cr(t,e){return t.fromBits(e)}function Ar(t,e){return t.toBits(e)}const Zn=12;class Am extends TransformStream{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){Object.assign(this,{password:e,passwordVerification:n}),Tf(this,e)},transform(i,s){const o=this;if(o.password){const f=Wa(o,i.subarray(0,Zn));if(o.password=null,f[Zn-1]!=o.passwordVerification)throw new Error(kf);i=i.subarray(Zn)}r?s.error(new Error(No)):s.enqueue(Wa(o,i))}})}}class Sm extends TransformStream{constructor({password:e,passwordVerification:n}){super({start(){Object.assign(this,{password:e,passwordVerification:n}),Tf(this,e)},transform(r,i){const s=this;let o,f;if(s.password){s.password=null;const l=Cf(new Uint8Array(Zn));l[Zn-1]=s.passwordVerification,o=new Uint8Array(r.length+l.length),o.set(Ma(s,l),0),f=Zn}else o=new Uint8Array(r.length),f=0;o.set(Ma(s,r),f),i.enqueue(o)}})}}function Wa(t,e){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=Rf(t)^e[r],Mo(t,n[r]);return n}function Ma(t,e){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=Rf(t)^e[r],Mo(t,e[r]);return n}function Tf(t,e){const n=[305419896,591751049,878082192];Object.assign(t,{keys:n,crcKey0:new wi(n[0]),crcKey2:new wi(n[2])});for(let r=0;r<e.length;r++)Mo(t,e.charCodeAt(r))}function Mo(t,e){let[n,r,i]=t.keys;t.crcKey0.append([e]),n=~t.crcKey0.get(),r=ja(Math.imul(ja(r+Of(n)),134775813)+1),t.crcKey2.append([r>>>24]),i=~t.crcKey2.get(),t.keys=[n,r,i]}function Rf(t){const e=t.keys[2]|2;return Of(Math.imul(e,e^1)>>>8)}function Of(t){return t&255}function ja(t){return t&4294967295}const za="deflate-raw";class Dm extends TransformStream{constructor(e,{chunkSize:n,CompressionStream:r,CompressionStreamNative:i}){super({});const{compressed:s,encrypted:o,useCompressionStream:f,zipCrypto:l,signed:a,level:c}=e,u=this;let h,d,b=Pf(super.readable);(!o||l)&&a&&(h=new vf,b=Yt(b,h)),s&&(b=Lf(b,f,{level:c,chunkSize:n},i,r)),o&&(l?b=Yt(b,new Sm(e)):(d=new _m(e),b=Yt(b,d))),If(u,b,()=>{let x;o&&!l&&(x=d.signature),(!o||l)&&a&&(x=new DataView(h.value.buffer).getUint32(0)),u.signature=x})}}class Bm extends TransformStream{constructor(e,{chunkSize:n,DecompressionStream:r,DecompressionStreamNative:i}){super({});const{zipCrypto:s,encrypted:o,signed:f,signature:l,compressed:a,useCompressionStream:c}=e;let u,h,d=Pf(super.readable);o&&(s?d=Yt(d,new Am(e)):(h=new vm(e),d=Yt(d,h))),a&&(d=Lf(d,c,{chunkSize:n},i,r)),(!o||s)&&f&&(u=new vf,d=Yt(d,u)),If(this,d,()=>{if((!o||s)&&f){const b=new DataView(u.value.buffer);if(l!=b.getUint32(0,!1))throw new Error(Ef)}})}}function Pf(t){return Yt(t,new TransformStream({transform(e,n){e&&e.length&&n.enqueue(e)}}))}function If(t,e,n){e=Yt(e,new TransformStream({flush:n})),Object.defineProperty(t,"readable",{get(){return e}})}function Lf(t,e,n,r,i){try{const s=e&&r?r:i;t=Yt(t,new s(za,n))}catch{if(e)try{t=Yt(t,new i(za,n))}catch{return t}else return t}return t}function Yt(t,e){return t.pipeThrough(e)}const Fm="message",Tm="start",Rm="pull",Ua="data",Om="ack",Ha="close",Pm="deflate",qf="inflate";class Im extends TransformStream{constructor(e,n){super({});const r=this,{codecType:i}=e;let s;i.startsWith(Pm)?s=Dm:i.startsWith(qf)&&(s=Bm);let o=0,f=0;const l=new s(e,n),a=super.readable,c=new TransformStream({transform(h,d){h&&h.length&&(f+=h.length,d.enqueue(h))},flush(){Object.assign(r,{inputSize:f})}}),u=new TransformStream({transform(h,d){h&&h.length&&(o+=h.length,d.enqueue(h))},flush(){const{signature:h}=l;Object.assign(r,{signature:h,outputSize:o,inputSize:f})}});Object.defineProperty(r,"readable",{get(){return a.pipeThrough(c).pipeThrough(l).pipeThrough(u)}})}}class Lm extends TransformStream{constructor(e){let n;super({transform:r,flush(i){n&&n.length&&i.enqueue(n)}});function r(i,s){if(n){const o=new Uint8Array(n.length+i.length);o.set(n),o.set(i,n.length),i=o,n=null}i.length>e?(s.enqueue(i.slice(0,e)),r(i.slice(e),s)):n=i}}}let Nf=typeof Worker!=dn;class ls{constructor(e,{readable:n,writable:r},{options:i,config:s,streamOptions:o,useWebWorkers:f,transferStreams:l,scripts:a},c){const{signal:u}=o;return Object.assign(e,{busy:!0,readable:n.pipeThrough(new Lm(s.chunkSize)).pipeThrough(new qm(n,o),{signal:u}),writable:r,options:Object.assign({},i),scripts:a,transferStreams:l,terminate(){return new Promise(h=>{const{worker:d,busy:b}=e;d?(b?e.resolveTerminated=h:(d.terminate(),h()),e.interface=null):h()})},onTaskFinished(){const{resolveTerminated:h}=e;h&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),h()),e.busy=!1,c(e)}}),(f&&Nf?Nm:Wf)(e,s)}}class qm extends TransformStream{constructor(e,{onstart:n,onprogress:r,size:i,onend:s}){let o=0;super({async start(){n&&await cs(n,i)},async transform(f,l){o+=f.length,r&&await cs(r,o,i),l.enqueue(f)},async flush(){e.size=o,s&&await cs(s,o)}})}}async function cs(t,...e){try{await t(...e)}catch{}}function Wf(t,e){return{run:()=>Wm(t,e)}}function Nm(t,e){const{baseURL:n,chunkSize:r}=e;if(!t.interface){let i;try{i=zm(t.scripts[0],n,t)}catch{return Nf=!1,Wf(t,e)}Object.assign(t,{worker:i,interface:{run:()=>Mm(t,{chunkSize:r})}})}return t.interface}async function Wm({options:t,readable:e,writable:n,onTaskFinished:r},i){try{const s=new Im(t,i);await e.pipeThrough(s).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:o,inputSize:f,outputSize:l}=s;return{signature:o,inputSize:f,outputSize:l}}finally{r()}}async function Mm(t,e){let n,r;const i=new Promise((h,d)=>{n=h,r=d});Object.assign(t,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:s,options:o,scripts:f}=t,{writable:l,closed:a}=jm(t.writable),c=oi({type:Tm,scripts:f.slice(1),options:o,config:e,readable:s,writable:l},t);c||Object.assign(t,{reader:s.getReader(),writer:l.getWriter()});const u=await i;return c||await l.getWriter().close(),await a,u}function jm(t){let e;const n=new Promise(i=>e=i);return{writable:new WritableStream({async write(i){const s=t.getWriter();await s.ready,await s.write(i),s.releaseLock()},close(){e()},abort(i){return t.getWriter().abort(i)}}),closed:n}}let Ya=!0,Ka=!0;function zm(t,e,n){const r={type:"module"};let i,s;typeof t==Lr&&(t=t());try{i=new URL(t,e)}catch{i=t}if(Ya)try{s=new Worker(i)}catch{Ya=!1,s=new Worker(i,r)}else s=new Worker(i,r);return s.addEventListener(Fm,o=>Um(o,n)),s}function oi(t,{worker:e,writer:n,onTaskFinished:r,transferStreams:i}){try{const{value:s,readable:o,writable:f}=t,l=[];if(s&&(s.byteLength<s.buffer.byteLength?t.value=s.buffer.slice(0,s.byteLength):t.value=s.buffer,l.push(t.value)),i&&Ka?(o&&l.push(o),f&&l.push(f)):t.readable=t.writable=null,l.length)try{return e.postMessage(t,l),!0}catch{Ka=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(s){throw n&&n.releaseLock(),r(),s}}async function Um({data:t},e){const{type:n,value:r,messageId:i,result:s,error:o}=t,{reader:f,writer:l,resolveResult:a,rejectResult:c,onTaskFinished:u}=e;try{if(o){const{message:d,stack:b,code:x,name:p}=o,g=new Error(d);Object.assign(g,{stack:b,code:x,name:p}),h(g)}else{if(n==Rm){const{value:d,done:b}=await f.read();oi({type:Ua,value:d,done:b,messageId:i},e)}n==Ua&&(await l.ready,await l.write(new Uint8Array(r)),oi({type:Om,messageId:i},e)),n==Ha&&h(null,s)}}catch(d){oi({type:Ha,messageId:i},e),h(d)}function h(d,b){d?c(d):a(b),l&&l.releaseLock(),u()}}let yn=[];const fs=[];let Va=0;async function Hm(t,e){const{options:n,config:r}=e,{transferStreams:i,useWebWorkers:s,useCompressionStream:o,codecType:f,compressed:l,signed:a,encrypted:c}=n,{workerScripts:u,maxWorkers:h}=r;e.transferStreams=i||i===Xe;const d=!l&&!a&&!c&&!e.transferStreams;return e.useWebWorkers=!d&&(s||s===Xe&&r.useWebWorkers),e.scripts=e.useWebWorkers&&u?u[f]:[],n.useCompressionStream=o||o===Xe&&r.useCompressionStream,(await b()).run();async function b(){const p=yn.find(g=>!g.busy);if(p)return Za(p),new ls(p,t,e,x);if(yn.length<h){const g={indexWorker:Va};return Va++,yn.push(g),new ls(g,t,e,x)}else return new Promise(g=>fs.push({resolve:g,stream:t,workerOptions:e}))}function x(p){if(fs.length){const[{resolve:g,stream:m,workerOptions:v}]=fs.splice(0,1);g(new ls(p,m,v,x))}else p.worker?(Za(p),Ym(p,e)):yn=yn.filter(g=>g!=p)}}function Ym(t,e){const{config:n}=e,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(t.terminated?t.terminated=!1:t.terminateTimeout=setTimeout(async()=>{yn=yn.filter(i=>i!=t);try{await t.terminate()}catch{}},r))}function Za(t){const{terminateTimeout:e}=t;e&&(clearTimeout(e),t.terminateTimeout=null)}function Km(t,e={}){const n=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i===0||8===i&&o%i===4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i===0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!==--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!==--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!==--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!==--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!==--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!==--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!==--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!==p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;0!==(g&k);k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!==--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!==--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!==(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!==--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
`,r=()=>e.useDataURI?"data:text/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"}));t({workerScripts:{inflate:[r],deflate:[r]}})}const Vm="Writer iterator completed too soon",Zm="Content-Type",Xm=64*1024,Mf="writable";class jo{constructor(){this.size=0}init(){this.initialized=!0}}class jf extends jo{get readable(){const e=this,{chunkSize:n=Xm}=e,r=new ReadableStream({start(){this.chunkOffset=0},async pull(i){const{offset:s=0,size:o,diskNumberStart:f}=r,{chunkOffset:l}=this,a=o===Xe?n:Math.min(n,o-l),c=await nt(e,s+l,a,f);i.enqueue(c),l+n>o||o===Xe&&!c.length&&a?i.close():this.chunkOffset+=n}});return r}}class zo extends jf{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,n){const r=this,i=e+n;let o=await(e||i<r.size?r.blob.slice(e,i):r.blob).arrayBuffer();return o.byteLength>n&&(o=o.slice(e,i)),new Uint8Array(o)}}class zf extends jo{constructor(e){super();const n=this,r=new TransformStream,i=[];e&&i.push([Zm,e]),Object.defineProperty(n,Mf,{get(){return r.writable}}),n.blob=new Response(r.readable,{headers:i}).blob()}getData(){return this.blob}}class Gm extends zf{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||e.toLowerCase()=="utf-8"})}async getData(){const{encoding:e,utf8:n}=this,r=await super.getData();if(r.text&&n)return r.text();{const i=new FileReader;return new Promise((s,o)=>{Object.assign(i,{onload:({target:f})=>s(f.result),onerror:()=>o(i.error)}),i.readAsText(r,e)})}}}class Jm extends jf{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:n}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(n.map(async(r,i)=>{await r.init(),i!=n.length-1&&(e.lastDiskOffset+=r.size),e.size+=r.size})),super.init()}async readUint8Array(e,n,r=0){const i=this,{readers:s}=this;let o,f=r;f==-1&&(f=s.length-1);let l=e;for(;l>=s[f].size;)l-=s[f].size,f++;const a=s[f],c=a.size;if(l+n<=c)o=await nt(a,l,n);else{const u=c-l;o=new Uint8Array(n),o.set(await nt(a,l,u)),o.set(await i.readUint8Array(e+u,n-u,r),u)}return i.lastDiskNumber=Math.max(f,i.lastDiskNumber),o}}class Xa extends jo{constructor(e,n=4294967295){super();const r=this;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:n,availableSize:n});let i,s,o;const f=new WritableStream({async write(c){const{availableSize:u}=r;if(o)c.length>=u?(await l(c.slice(0,u)),await a(),r.diskOffset+=i.size,r.diskNumber++,o=null,await this.write(c.slice(u))):await l(c);else{const{value:h,done:d}=await e.next();if(d&&!h)throw new Error(Vm);i=h,i.size=0,i.maxSize&&(r.maxSize=i.maxSize),r.availableSize=r.maxSize,await Ei(i),s=h.writable,o=s.getWriter(),await this.write(c)}},async close(){await o.ready,await a()}});Object.defineProperty(r,Mf,{get(){return f}});async function l(c){const u=c.length;u&&(await o.ready,await o.write(c),i.size+=u,r.size+=u,r.availableSize-=u)}async function a(){s.size=i.size,await o.close()}}}async function Ei(t,e){if(t.init&&!t.initialized)await t.init(e);else return Promise.resolve()}function Qm(t){return Array.isArray(t)&&(t=new Jm(t)),t instanceof ReadableStream&&(t={readable:t}),t}function $m(t){t.writable===Xe&&typeof t.next==Lr&&(t=new Xa(t)),t instanceof WritableStream&&(t={writable:t});const{writable:e}=t;return e.size===Xe&&(e.size=0),t instanceof Xa||Object.assign(t,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),t}function nt(t,e,n,r){return t.readUint8Array(e,n,r)}const Uf="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥ƒáíóúñѪº¿¬½¼¡«»αßΓπΣσµτΦΘΩδφε±÷°·ⁿ² ".split(""),e8=Uf.length==256;function t8(t){if(e8){let e="";for(let n=0;n<t.length;n++)e+=Uf[t[n]];return e}else return new TextDecoder().decode(t)}function ai(t,e){return e&&e.trim().toLowerCase()=="cp437"?t8(t):new TextDecoder(e).decode(t)}const Hf="filename",Yf="rawFilename",Kf="comment",Vf="rawComment",Zf="uncompressedSize",Xf="compressedSize",Gf="offset",go="diskNumberStart",bo="lastModDate",vo="rawLastModDate",Jf="lastAccessDate",n8="rawLastAccessDate",Qf="creationDate",r8="rawCreationDate",i8="internalFileAttribute",s8="internalFileAttributes",o8="externalFileAttribute",a8="externalFileAttributes",l8="msDosCompatible",c8="zip64",f8="encrypted",u8="version",d8="versionMadeBy",h8="zipCrypto",p8="directory",x8="executable",m8=[Hf,Yf,Xf,Zf,bo,vo,Kf,Vf,Jf,Qf,Gf,go,go,i8,s8,o8,a8,l8,c8,f8,u8,d8,h8,p8,x8,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Ga{constructor(e){m8.forEach(n=>this[n]=e[n])}}const us="File format is not recognized",g8="End of central directory not found",b8="End of Zip64 central directory locator not found",v8="Central directory header not found",_8="Local file header not found",y8="Zip64 extra field not found",w8="File contains encrypted entry",k8="Encryption method not supported",Ja="Compression method not supported",Qa="Split zip file",$a="utf-8",el="cp437",E8=[[Zf,Cn],[Xf,Cn],[Gf,Cn],[go,an]],C8={[an]:{getValue:qe,bytes:4},[Cn]:{getValue:li,bytes:8}};class $f{constructor(e,n={}){Object.assign(this,{reader:Qm(e),options:n,config:sm()})}async*getEntriesGenerator(e={}){const n=this;let{reader:r}=n;const{config:i}=n;if(await Ei(r),(r.size===Xe||!r.readUint8Array)&&(r=new zo(await new Response(r.readable).blob()),await Ei(r)),r.size<Nn)throw new Error(us);r.chunkSize=om(i);const s=await T8(r,Ux,r.size,Nn,an*16);if(!s){const E=await nt(r,0,4),A=Ye(E);throw qe(A)==zx?new Error(Qa):new Error(g8)}const o=Ye(s);let f=qe(o,12),l=qe(o,16);const a=s.offset,c=He(o,20),u=a+Nn+c;let h=He(o,4);const d=r.lastDiskNumber||0;let b=He(o,6),x=He(o,8),p=0,g=0;if(l==Cn||f==Cn||x==an||b==an){const E=await nt(r,s.offset-ss,ss),A=Ye(E);if(qe(A,0)==Hx){l=li(A,8);let B=await nt(r,l,os,-1),D=Ye(B);const F=s.offset-ss-os;if(qe(D,0)!=Fa&&l!=F){const R=l;l=F,p=l-R,B=await nt(r,l,os,-1),D=Ye(B)}if(qe(D,0)!=Fa)throw new Error(b8);h==an&&(h=qe(D,16)),b==an&&(b=qe(D,20)),x==an&&(x=li(D,32)),f==Cn&&(f=li(D,40)),l-=f}}if(l>=r.size&&(p=r.size-l-f-Nn,l=r.size-f-Nn),d!=h)throw new Error(Qa);if(l<0)throw new Error(us);let m=0,v=await nt(r,l,f,b),_=Ye(v);if(f){const E=s.offset-f;if(qe(_,m)!=Ba&&l!=E){const A=l;l=E,p+=l-A,v=await nt(r,l,f,b),_=Ye(v)}}const C=s.offset-l-(r.lastDiskOffset||0);if(f!=C&&C>=0&&(f=C,v=await nt(r,l,f,b),_=Ye(v)),l<0||l>=r.size)throw new Error(us);const y=ot(n,e,"filenameEncoding"),w=ot(n,e,"commentEncoding");for(let E=0;E<x;E++){const A=new A8(r,i,n.options);if(qe(_,m)!=Ba)throw new Error(v8);eu(A,_,m+6);const B=!!A.bitFlag.languageEncodingFlag,D=m+46,F=D+A.filenameLength,R=F+A.extraFieldLength,T=He(_,m+4),N=T>>8==0,P=T>>8==3,Y=v.subarray(D,F),z=He(_,m+32),I=R+z,O=v.subarray(R,I),q=B,j=B,te=qe(_,m+38),ne=N&&(Xn(_,m+38)&Pa)==Pa||P&&(te>>16&em)==tm||Y.length&&Y[Y.length-1]==Ia.charCodeAt(0),he=P&&(te>>16&nm)!=0,re=qe(_,m+42)+p;Object.assign(A,{versionMadeBy:T,msDosCompatible:N,compressedSize:0,uncompressedSize:0,commentLength:z,directory:ne,offset:re,diskNumberStart:He(_,m+34),internalFileAttributes:He(_,m+36),externalFileAttributes:te,rawFilename:Y,filenameUTF8:q,commentUTF8:j,rawExtraField:v.subarray(F,R),executable:he}),A.internalFileAttribute=A.internalFileAttributes,A.externalFileAttribute=A.externalFileAttributes;const $=ot(n,e,"decodeText")||ai,me=q?$a:y||el,Te=j?$a:w||el;let ke=$(Y,me);ke===Xe&&(ke=ai(Y,me));let be=$(O,Te);be===Xe&&(be=ai(O,Te)),Object.assign(A,{rawComment:O,filename:ke,comment:be,directory:ne||ke.endsWith(Ia)}),g=Math.max(re,g),tu(A,A,_,m+6),A.zipCrypto=A.encrypted&&!A.extraFieldAES;const Q=new Ga(A);Q.getData=(pe,J)=>A.getData(pe,Q,J),m=I;const{onprogress:fe}=e;if(fe)try{await fe(E+1,x,new Ga(A))}catch{}yield Q}const k=ot(n,e,"extractPrependedData"),S=ot(n,e,"extractAppendedData");return k&&(n.prependedData=g>0?await nt(r,0,g):new Uint8Array),n.comment=c?await nt(r,a+Nn,c):new Uint8Array,S&&(n.appendedData=u<r.size?await nt(r,u,r.size-u):new Uint8Array),!0}async getEntries(e={}){const n=[];for await(const r of this.getEntriesGenerator(e))n.push(r);return n}async close(){}}class A8{constructor(e,n,r){Object.assign(this,{reader:e,config:n,options:r})}async getData(e,n,r={}){const i=this,{reader:s,offset:o,diskNumberStart:f,extraFieldAES:l,compressionMethod:a,config:c,bitFlag:u,signature:h,rawLastModDate:d,uncompressedSize:b,compressedSize:x}=i,p=n.localDirectory={},g=await nt(s,o,30,f),m=Ye(g);let v=ot(i,r,"password"),_=ot(i,r,"rawPassword");const C=ot(i,r,"passThrough");if(v=v&&v.length&&v,_=_&&_.length&&_,l&&l.originalCompressionMethod!=Mx)throw new Error(Ja);if(a!=Wx&&a!=Nx&&!C)throw new Error(Ja);if(qe(m,0)!=jx)throw new Error(_8);eu(p,m,4),p.rawExtraField=p.extraFieldLength?await nt(s,o+30+p.filenameLength,p.extraFieldLength,f):new Uint8Array,tu(i,p,m,4,!0),Object.assign(n,{lastAccessDate:p.lastAccessDate,creationDate:p.creationDate});const y=i.encrypted&&p.encrypted&&!C,w=y&&!l;if(C||(n.zipCrypto=w),y){if(!w&&l.strength===Xe)throw new Error(k8);if(!v&&!_)throw new Error(w8)}const k=o+30+p.filenameLength+p.extraFieldLength,S=x,E=s.readable;Object.assign(E,{diskNumberStart:f,offset:k,size:S});const A=ot(i,r,"signal"),B=ot(i,r,"checkPasswordOnly");B&&(e=new WritableStream),e=$m(e),await Ei(e,C?x:b);const{writable:D}=e,{onstart:F,onprogress:R,onend:T}=r,N={options:{codecType:qf,password:v,rawPassword:_,zipCrypto:w,encryptionStrength:l&&l.strength,signed:ot(i,r,"checkSignature")&&!C,passwordVerification:w&&(u.dataDescriptor?d>>>8&255:h>>>24&255),signature:h,compressed:a!=0&&!C,encrypted:i.encrypted&&!C,useWebWorkers:ot(i,r,"useWebWorkers"),useCompressionStream:ot(i,r,"useCompressionStream"),transferStreams:ot(i,r,"transferStreams"),checkPasswordOnly:B},config:c,streamOptions:{signal:A,size:S,onstart:F,onprogress:R,onend:T}};let P=0;try{({outputSize:P}=await Hm({readable:E,writable:D},N))}catch(Y){if(!B||Y.message!=No)throw Y}finally{const Y=ot(i,r,"preventClose");D.size+=P,!Y&&!D.locked&&await D.getWriter().close()}return B?Xe:e.getData?e.getData():D}}function eu(t,e,n){const r=t.rawBitFlag=He(e,n+2),i=(r&Ta)==Ta,s=qe(e,n+6);Object.assign(t,{encrypted:i,version:He(e,n),bitFlag:{level:(r&$x)>>1,dataDescriptor:(r&Ra)==Ra,languageEncodingFlag:(r&Oa)==Oa},rawLastModDate:s,lastModDate:R8(s),filenameLength:He(e,n+22),extraFieldLength:He(e,n+24)})}function tu(t,e,n,r,i){const{rawExtraField:s}=e,o=e.extraField=new Map,f=Ye(new Uint8Array(s));let l=0;try{for(;l<s.length;){const g=He(f,l),m=He(f,l+2);o.set(g,{type:g,data:s.slice(l+4,l+4+m)}),l+=4+m}}catch{}const a=He(n,r+4);Object.assign(e,{signature:qe(n,r+10),uncompressedSize:qe(n,r+18),compressedSize:qe(n,r+14)});const c=o.get(Yx);c&&(S8(c,e),e.extraFieldZip64=c);const u=o.get(Gx);u&&(tl(u,Hf,Yf,e,t),e.extraFieldUnicodePath=u);const h=o.get(Jx);h&&(tl(h,Kf,Vf,e,t),e.extraFieldUnicodeComment=h);const d=o.get(Kx);d?(D8(d,e,a),e.extraFieldAES=d):e.compressionMethod=a;const b=o.get(Vx);b&&(B8(b,e),e.extraFieldNTFS=b);const x=o.get(Xx);x&&(F8(x,e,i),e.extraFieldExtendedTimestamp=x);const p=o.get(Qx);p&&(e.extraFieldUSDZ=p)}function S8(t,e){e.zip64=!0;const n=Ye(t.data),r=E8.filter(([i,s])=>e[i]==s);for(let i=0,s=0;i<r.length;i++){const[o,f]=r[i];if(e[o]==f){const l=C8[f];e[o]=t[o]=l.getValue(n,s),s+=l.bytes}else if(t[o])throw new Error(y8)}}function tl(t,e,n,r,i){const s=Ye(t.data),o=new wi;o.append(i[n]);const f=Ye(new Uint8Array(4));f.setUint32(0,o.get(),!0);const l=qe(s,1);Object.assign(t,{version:Xn(s,0),[e]:ai(t.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&l==qe(f,0)}),t.valid&&(r[e]=t[e],r[e+"UTF8"]=!0)}function D8(t,e,n){const r=Ye(t.data),i=Xn(r,4);Object.assign(t,{vendorVersion:Xn(r,0),vendorId:Xn(r,2),strength:i,originalCompressionMethod:n,compressionMethod:He(r,5)}),e.compressionMethod=t.compressionMethod}function B8(t,e){const n=Ye(t.data);let r=4,i;try{for(;r<t.data.length&&!i;){const s=He(n,r),o=He(n,r+2);s==Zx&&(i=t.data.slice(r+4,r+4+o)),r+=4+o}}catch{}try{if(i&&i.length==24){const s=Ye(i),o=s.getBigUint64(0,!0),f=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:o,rawLastAccessDate:f,rawCreationDate:l});const a=ds(o),c=ds(f),u=ds(l),h={lastModDate:a,lastAccessDate:c,creationDate:u};Object.assign(t,h),Object.assign(e,h)}}catch{}}function F8(t,e,n){const r=Ye(t.data),i=Xn(r,0),s=[],o=[];n?((i&1)==1&&(s.push(bo),o.push(vo)),(i&2)==2&&(s.push(Jf),o.push(n8)),(i&4)==4&&(s.push(Qf),o.push(r8))):t.data.length>=5&&(s.push(bo),o.push(vo));let f=1;s.forEach((l,a)=>{if(t.data.length>=f+4){const c=qe(r,f);e[l]=t[l]=new Date(c*1e3);const u=o[a];t[u]=c}f+=4})}async function T8(t,e,n,r,i){const s=new Uint8Array(4),o=Ye(s);O8(o,0,e);const f=r+i;return await l(r)||await l(Math.min(f,n));async function l(a){const c=n-a,u=await nt(t,c,a);for(let h=u.length-r;h>=0;h--)if(u[h]==s[0]&&u[h+1]==s[1]&&u[h+2]==s[2]&&u[h+3]==s[3])return{offset:c+h,buffer:u.slice(h,h+r).buffer}}}function ot(t,e,n){return e[n]===Xe?t.options[n]:e[n]}function R8(t){const e=(t&4294901760)>>16,n=t&65535;try{return new Date(1980+((e&65024)>>9),((e&480)>>5)-1,e&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function ds(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Xn(t,e){return t.getUint8(e)}function He(t,e){return t.getUint16(e,!0)}function qe(t,e){return t.getUint32(e,!0)}function li(t,e){return Number(t.getBigUint64(e,!0))}function O8(t,e,n){t.setUint32(e,n,!0)}function Ye(t){return new DataView(t.buffer)}let nu;try{nu=typeof document>"u"?require("url").pathToFileURL(__filename).href:Mi&&Mi.tagName.toUpperCase()==="SCRIPT"&&Mi.src||new URL("index.js",document.baseURI).href}catch{}Li({baseURL:nu});Km(Li);Li({Deflate:mx,Inflate:qx});function P8(t){const e=()=>URL.createObjectURL(new Blob([`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self;class k{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const v=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;v[e]=t}class S{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^v[255&(t^e[n])];this.t=t}get(){return~this.t}}class z extends p{constructor(){let e;const t=new S;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const C={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=C.i(n);return 32===r?e.concat(t):C.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+C.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=C.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=C.i(s);return r.push(C.h(t+i&31,t+i>32?n:r.pop(),1)),r}},x={p:{m(e){const t=C.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)0==(3&s)&&(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},g(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(C.h(8*(3&n),r)),t}}},_=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=x.A.g(e));const n=t.C=C.concat(t.C,e),r=t._,i=t._=r+C.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.C;const n=e.S;t=C.concat(t,[C.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.I(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}P(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.P(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.P(5,o)+n.V(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.P(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},A={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},I={importKey:e=>new I.R(x.p.g(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=C;for(t=x.p.g(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=_,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.U=new n(t.K[0])}reset(){const e=this;e.U=new e.M(e.K[0]),e.N=!1}update(e){this.N=!0,this.U.update(e)}digest(){const e=this,t=e.U.D(),n=new e.M(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},D=void 0!==h&&"function"==typeof h.getRandomValues,V="Invalid password",P="Invalid signature",R="zipjs-abort-check-password";function B(e){return D?h.getRandomValues(e):A.getRandomValues(e)}const E=16,M={name:"PBKDF2"},K=t.assign({hash:{name:"HMAC"}},M),U=t.assign({iterations:1e3,hash:{name:"SHA-1"}},M),N=["deriveBits"],O=[8,12,16],T=[16,24,32],W=10,j=[0,0,0,0],H="undefined",L="function",F=typeof h!=H,q=F&&h.subtle,G=F&&typeof q!=H,J=x.p,Q=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},X=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=C.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return C.u(t,s)}},Y=I.R;let Z=F&&G&&typeof q.importKey==L,$=F&&G&&typeof q.deriveBits==L;class ee extends p{constructor({password:e,signed:n,encryptionStrength:r,checkPasswordOnly:o}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:e,signed:n,X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:c,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await re(e,t,n,ie(r,0,O[t])),o=ie(r,O[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(V)})(n,c,r,ie(e,0,O[c]+2)),e=ie(e,O[c]+2),o?t.error(new s(R)):f()):await a;const l=new i(e.length-W-(e.length-W)%E);t.enqueue(ne(n,e,l,0,W,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;await c;const f=ie(o,0,o.length-W),a=ie(o,o.length-W);let l=new i;if(f.length){const e=ce(J,f);r.update(e);const t=n.update(e);l=oe(J,t)}if(t){const e=ie(oe(J,r.digest()),0,W);for(let t=0;W>t;t++)if(e[t]!=a[t])throw new s(P)}e.enqueue(l)}})}}class te extends p{constructor({password:e,encryptionStrength:n}){let r;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:e,X:n-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=B(new i(O[t]));return se(r,await re(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%E);a.set(f,0),t.enqueue(ne(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:s,ready:o}=this;await o;let c=new i;if(s.length){const e=t.update(ce(J,s));n.update(e),c=oe(J,e)}r.signature=oe(J,n.digest()).slice(0,W),e.enqueue(se(c,r.signature))}}),r=this}}function ne(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=se(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%E)),u=0;l-E>=u;u+=E){const e=ce(J,ie(t,u,u+E));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(oe(J,s),u+r)}return e.pending=ie(t,u),n}async function re(n,r,s,o){n.password=null;const c=(e=>{if(void 0===w){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(s),f=await(async(e,t,n,r,s)=>{if(!Z)return I.importKey(t);try{return await q.importKey("raw",t,n,!1,s)}catch(e){return Z=!1,I.importKey(t)}})(0,c,K,0,N),a=await(async(e,t,n)=>{if(!$)return I.B(t,e.salt,U.iterations,n);try{return await q.deriveBits(e,t,n)}catch(r){return $=!1,I.B(t,e.salt,U.iterations,n)}})(t.assign({salt:o},U),f,8*(2*T[r]+2)),l=new i(a),u=ce(J,ie(l,0,T[r])),h=ce(J,ie(l,T[r],2*T[r])),d=ie(l,2*T[r]);return t.assign(n,{keys:{key:u,$:h,passwordVerification:d},Y:new X(new Q(u),e.from(j)),Z:new Y(h)}),d}function se(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ie(e,t,n){return e.subarray(t,n)}function oe(e,t){return e.m(t)}function ce(e,t){return e.g(t)}class fe extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),we(this,e)},transform(e,t){const n=this;if(n.password){const t=le(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(V);e=e.subarray(12)}r?t.error(new s(R)):t.enqueue(le(n,e))}})}}class ae extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),we(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=B(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(ue(n,t),0),s=12}else r=new i(e.length),s=0;r.set(ue(n,e),s),t.enqueue(r)}})}}function le(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=de(e)^t[r],he(e,n[r]);return n}function ue(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=de(e)^t[r],he(e,t[r]);return n}function we(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new S(r[0]),te:new S(r[2])});for(let t=0;t<n.length;t++)he(e,n.charCodeAt(t))}function he(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=ye(r.imul(ye(s+pe(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function de(e){const t=2|e.keys[2];return pe(r.imul(t,1^t)>>>8)}function pe(e){return 255&e}function ye(e){return 4294967295&e}const me="deflate-raw";class be extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=ke(super.readable);i&&!c||!f||(w=new z,d=ze(d,w)),s&&(d=Se(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=ze(d,new ae(e)):(h=new te(e),d=ze(d,h))),ve(u,d,(async()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ge extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=ke(super.readable);o&&(i?d=ze(d,new fe(e)):(h=new ee(e),d=ze(d,h))),a&&(d=Se(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new z,d=ze(d,w)),ve(this,d,(async()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(P)}}))}}function ke(e){return ze(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ve(e,n,r){n=ze(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Se(e,t,n,r,s){try{e=ze(e,new(t&&r?r:s)(me,n))}catch(r){if(!t)throw r;e=ze(e,new s(me,n))}return e}function ze(e,t){return e.pipeThrough(t)}const Ce="data";class xe extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=be:s.startsWith("inflate")&&(i=ge);let o=0;const c=new i(e,n),f=super.readable,a=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=c;t.assign(r,{signature:e,size:o})}});t.defineProperty(r,"readable",{get:()=>f.pipeThrough(c).pipeThrough(a)})}}const _e=new a,Ae=new a;let Ie=0;async function De(e){try{const{options:t,scripts:r,config:s}=e;r&&r.length&&importScripts.apply(void 0,r),self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new k(self.Deflate)),self.Inflate&&(s.DecompressionStream=new k(self.Inflate));const i={highWaterMark:1,size:()=>s.chunkSize},o=e.readable||new y({async pull(e){const t=new u((e=>_e.set(Ie,e)));Ve({type:"pull",messageId:Ie}),Ie=(Ie+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ae.set(Ie,t),Ve({type:Ce,value:e,messageId:Ie}),Ie=(Ie+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new xe(t,s);await o.pipeThrough(f).pipeTo(c,{preventClose:!0,preventAbort:!0});try{await c.getWriter().close()}catch(e){}const{signature:a,size:l}=f;Ve({type:"close",result:{signature:a,size:l}})}catch(e){Pe(e)}}function Ve(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Pe(e){const{message:t,stack:n,code:r,name:s}=e;d({error:{message:t,stack:n,code:r,name:s}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&De(e),t==Ce){const e=_e.get(n);_e.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ae.get(n);Ae.delete(n),e()}}catch(e){Pe(e)}}));const Re=-2;function Be(t){return Ee(t.map((([t,n])=>new e(t).fill(n,0,t))))}function Ee(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?Ee(n):n)),[])}const Me=[0,1,2,3].concat(...Be([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Ke(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Ue(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}Ke.ge=[0,1,2,3,4,5,6,7].concat(...Be([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Ke.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Ke.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Ke.Se=e=>256>e?Me[e]:Me[256+(e>>>7)],Ke.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ke.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ke.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ke._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ne=Be([[144,8],[112,9],[24,7],[8,8]]);Ue.Ae=Ee([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ne[t]])));const Oe=Be([[30,5]]);function Te(e,t,n,r,s){const i=this;i.Ie=e,i.De=t,i.Ve=n,i.Pe=r,i.Re=s}Ue.Be=Ee([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Oe[t]]))),Ue.Ee=new Ue(Ue.Ae,Ke.ze,257,286,15),Ue.Me=new Ue(Ue.Be,Ke.Ce,0,30,15),Ue.Ke=new Ue(null,Ke.xe,0,19,7);const We=[new Te(0,0,0,0,0),new Te(4,4,8,4,1),new Te(4,5,16,8,1),new Te(4,6,32,32,1),new Te(4,4,16,16,2),new Te(8,16,32,32,2),new Te(8,16,128,128,2),new Te(8,32,128,256,2),new Te(32,128,258,1024,2),new Te(32,258,258,4096,2)],je=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],He=113,Le=666,Fe=262;function qe(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function Ge(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,_,A,I,D,V,P,R,B,E,M,K;const U=new Ke,N=new Ke,O=new Ke;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)K[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?K[2*n]+=i:0!==n?(n!=r&&K[2*n]++,K[32]++):i>10?K[36]++:K[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ue[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,K)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,K),o--),Y(16,K),X(o-3,2)):o>10?(Y(18,K),X(o-11,7)):(Y(17,K),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Ke.ge[n]+256+1)]++,M[2*Ke.Se(t)]++),0==(8191&W)&&V>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Ke.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=Ke.ge[s],Y(i+256+1,t),o=Ke.ze[i],0!==o&&(s-=Ke.ke[i],X(s,o)),r--,i=Ke.Se(r),Y(i,n),o=Ke.Ce[i],0!==o&&(r-=Ke.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ue.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;V>0?(U.ne(e),N.ne(e),o=(()=>{let t;for(G(E,U.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===K[2*Ke._e[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Ue.Ae,Ue.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(K[2*Ke._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(U.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-_-C,0===s&&0===C&&0===_)s=f;else if(-1==s)s--;else if(C>=f+f-Fe){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+_,s),_+=e,3>_||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Fe>_&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=A;const o=C>f-Fe?C-(f-Fe):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>A||(r>>=2),c>_&&(c=_);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>_?_:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],K=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&qe(t,r[i+1],r[i],e.le)&&i++,!qe(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Re:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ue=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),V=S,P=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=He,c=0,U.re=E,U.ie=Ue.Ee,N.re=M,N.ie=Ue.Me,O.re=K,O.ie=Ue.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;D=We[V].De,R=We[V].Ie,B=We[V].Ve,I=We[V].Pe,C=0,k=0,_=0,v=A=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=He&&n!=Le?Re:(e.Oe=null,e.Ne=null,e.Ue=null,d=null,h=null,u=null,e.Fe=null,n==He?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Re:(We[V].Re!=We[t].Re&&0!==e.qe&&(r=e.Ye(1)),V!=t&&(V=t,D=We[V].De,R=We[V].Ie,B=We[V].Ve,I=We[V].Pe),P=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Re;if(3>i)return 0;for(i>f-Fe&&(i=f-Fe,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Re;if(!r.$e||!r.et&&0!==r.We||n==Le&&4!=i)return r.Le=je[4],Re;if(0===r.tt)return r.Le=je[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(V-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=He,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=je[7],-5;if(n==Le&&0!==t.We)return r.Le=je[7],-5;if(0!==t.We||0!==_||0!=i&&n!=Le){switch(R=-1,We[V].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=_){if(ie(),0===_&&0==e)return 0;if(0===_)break}if(C+=_,_=0,n=k+r,(0===C||C>=n)&&(_=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Fe&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Fe>_){if(ie(),Fe>_&&0==e)return 0;if(0===_)break}if(3>_||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Fe||2!=P&&(v=oe(r)),3>v)n=ee(0,255&u[C]),_--,C++;else if(n=ee(C-x,v-3),_-=v,v>D||3>_)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Fe>_){if(ie(),Fe>_&&0==e)return 0;if(0===_)break}if(3>_||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),A=v,S=x,v=2,0!==s&&D>A&&f-Fe>=(C-s&65535)&&(2!=P&&(v=oe(s)),5>=v&&(1==P||3==v&&C-x>4096)&&(v=2)),3>A||v>A)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,_--,0===t.tt)return 0}else z=1,C++,_--;else{r=C+_-3,n=ee(C-1-S,A-3),_-=A-1,A-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--A);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Le),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Ue.Ae),$(),9>1+H+10-F&&(X(2,3),Y(256,Ue.Ae),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function Je(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function Qe(e){const t=new Je,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}Je.prototype={He(e,t){const n=this;return n.Fe=new Ge,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Re},Qe(){const e=this;if(!e.Fe)return Re;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Re},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Re},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ue.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const Xe=-2,Ye=-3,Ze=-5,$e=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],et=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],tt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],nt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],rt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],st=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],it=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ot(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,_,A,I,D;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return Ye;if(0>(I-=n[g]))return Ye;for(n[g]+=I,i[1]=k=0,C=1,A=2;0!=--g;)i[A]=k+=n[C],A++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,_=-S,s[0]=0,x=0,D=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>_+S;){if(b++,_+=S,D=m-_,D=D>S?S:D,(y=1<<(k=v-_))>p+1&&(y-=p+1,A=v,D>k))for(;++k<D&&(y<<=1)>n[++A];)y-=n[A];if(D=1<<k,h[0]+D>1440)return Ye;s[b]=x=h[0],h[0]+=D,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>_-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-_,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-_,k=g>>>_;D>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;0!=(g&k);k>>>=1)g^=k;for(g^=k,z=(1<<_)-1;(g&z)!=i[b];)b--,_-=S,z=(1<<_)-1}return 0!==I&&1!=m?Ze:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==Ye?f.Le="oversubscribed dynamic bit lengths tree":a!=Ze&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=Ye),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,nt,rt,a,i,u,e,t),0!=h||0===i[0]?(h==Ye?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=Ye),h):(c(288),h=o(s,n,r,0,st,it,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==Ye?w.Le="oversubscribed distance tree":h==Ze?(w.Le="incomplete distance tree",h=Ye):-4!=h&&(w.Le="empty distance tree with lengths",h=Ye),h):0)}}function ct(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=$e[e],g=$e[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],0!=(16&u)){for(u&=15,k=a[z+2]+(w&$e[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],0!=(16&u)){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&$e[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(0!=(64&u))return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,Ye;f+=a[z+2],f+=w&$e[u],z=3*(l+f),u=a[z]}break}if(0!=(64&u))return 0!=(32&u)?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,Ye);if(f+=a[z+2],f+=w&$e[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,_=0,A=0;for(A=y.nt,v=y.We,x=e.ot,_=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,m=p(u,w,r,h,s,d,e,y),A=y.nt,v=y.We,x=e.ot,_=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}if(g=3*(o+(x&$e[b])),x>>>=n[g+1],_-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(0!=(16&k)){a=15&k,i=n[g+2],t=2;break}if(0==(64&k)){c=k,o=g/3+n[g+2];break}if(0!=(32&k)){t=7;break}return t=9,y.Le="invalid literal/length code",m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 2:for(b=a;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}i+=x&$e[b],x>>=b,_-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}if(g=3*(o+(x&$e[b])),x>>=n[g+1],_-=n[g+1],k=n[g],0!=(16&k)){a=15&k,l=n[g+2],t=4;break}if(0==(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 4:for(b=a;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}l+=x&$e[b],x>>=b,_-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(_>7&&(_-=8,v++,A--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 9:return m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);default:return m=Xe,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ot.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=et,r[0]=tt,0);const ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function at(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new ct;let h=0,d=new f(4320);const p=new ot;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==Ze&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==Ze&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,_,A,I,D;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ot.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[ft[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[ft[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==Ye&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&$e[i]))+1],w=d[3*(u[0]+(f&$e[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&$e[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,_=[],A=[],I=[],D=[],_[0]=9,A[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,_,A,I,D,d,e),0!=i)return i==Ye&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(_[0],A[0],d,I[0],d,D[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=Xe,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const lt=13,ut=[0,0,255,255];function wt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):Xe}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),Xe):(e.zt=r,n.gt.kt=new at(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return Xe;const s=e.gt;for(t=4==t?Ze:0,n=Ze;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=lt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=lt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=lt,e.Le="incorrect header check",s.marker=5;break}if(0==(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=lt,e.Le="need dictionary",s.marker=0,Xe;case 7:if(n=s.kt.ut(e,n),n==Ye){s.mode=lt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case lt:return Ye;default:return Xe}},e.At=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return Xe;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return Xe;const c=e.gt;if(c.mode!=lt&&(c.mode=lt,c.marker=0),0===(n=e.We))return Ze;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==ut[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?Ye:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Dt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():Xe}function ht(){}function dt(e){const t=new ht,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t._t(0),c&&a===Ze){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}ht.prototype={xt(e){const t=this;return t.gt=new wt,e||(e=15),t.gt.xt(t,e)},_t(e){const t=this;return t.gt?t.gt._t(t,e):Xe},Ct(){const e=this;if(!e.gt)return Xe;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):Xe},At(e,t){const n=this;return n.gt?n.gt.At(n,e,t):Xe},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=Qe,self.Inflate=dt};
`],{type:"text/javascript"}));t({workerScripts:{inflate:[e],deflate:[e]}})}P8(Li);class I8{constructor(e){Me(this,"type","file");Me(this,"file");Me(this,"fullpath");Me(this,"name");Me(this,"basename");Me(this,"extension");this.file=e;let n=this.name=e.name;this.fullpath=n;let{basename:r,extension:i}=Ni(n);this.basename=r,this.extension=i}readText(){let{file:e}=this;return e.text?e.text():new Promise((n,r)=>{let i=new FileReader;i.addEventListener("load",()=>n(i.result)),i.addEventListener("error",r),i.readAsText(this.file)})}async read(){let{file:e}=this;return e.arrayBuffer?e.arrayBuffer():new Promise((n,r)=>{let i=new FileReader;i.addEventListener("load",()=>n(i.result)),i.addEventListener("error",r),i.readAsArrayBuffer(this.file)})}async readZip(e){return e(new $f(new zo(this.file)))}toString(){return this.file.toString()}}function Ni(t){let e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\")),n=t,r="";e>=0&&(n=t.substring(e+1),r=t.substring(0,e));let[i,s]=L8(n);return{parent:r,name:n,basename:i,extension:s}}function L8(t){let e=t.lastIndexOf("."),n=t,r="";return e>0&&(n=t.substring(0,e),r=t.substring(e+1).toLowerCase()),[n,r]}class q8{constructor(e,n){Me(this,"idsToFileInfo",{});Me(this,"pathsToAttachmentInfo",{});Me(this,"attachmentPath");Me(this,"singleLineBreaks");this.attachmentPath=e,this.singleLineBreaks=n}getPathForFile(e){let{idsToFileInfo:n}=this;const r=e.path.split("/");return e.parentIds.map(i=>{var s,o;return((s=n[i])==null?void 0:s.title)??((o=r.find(f=>f.includes(i)))==null?void 0:o.replace(` ${i}`,""))}).filter(i=>i).map(i=>i.replace(/[\. ]+$/,"")).join("/")+"/"}}class N8{constructor(e,n){Me(this,"type","file");Me(this,"entry");Me(this,"fullpath");Me(this,"parent");Me(this,"name");Me(this,"basename");Me(this,"extension");this.entry=n,this.fullpath=e.fullpath+"/"+n.filename;let{parent:r,name:i,basename:s,extension:o}=Ni(n.filename);this.parent=r,this.name=i,this.basename=s,this.extension=o}async readText(){return this.entry.getData(new Gm)}async read(){return(await this.entry.getData(new zf)).arrayBuffer()}get filepath(){return this.entry.filename}get size(){return this.entry.uncompressedSize}get ctime(){return this.entry.creationDate}get mtime(){return this.entry.lastModDate}async readZip(e){return e(new $f(new zo(new Blob([await this.read()]))))}}async function W8(t,e){await t.readZip(async n=>{let i=(await n.getEntries()).filter(s=>!s.directory&&!!s.getData).map(s=>new N8(t,s));return e(n,i)})}const M8=t=>t.replace(/-/g,"").replace(/[ -]?[a-f0-9]{32}(\.|$)/,"$1"),An=t=>{var e;return(e=t.replace(/-/g,"").match(/([a-f0-9]{32})(\?|\.|$)/))==null?void 0:e[1]},nl=t=>{const{parent:e}=Ni(t);return e.split("/").map(n=>An(n)).filter(n=>n)};function j8(t){return t.replace(/^(\.\.\/)+/,"")}function z8(t){const e=/#[a-z0-9\-]+/gi;if(!e.test(t))return t;const n=t.split(`
`);for(let r=0;r<n.length;r++){const i=n[r].match(e);if(!i)continue;let s=n[r];for(let o of i)new RegExp(`\\[\\[[^\\]]*${o}[^\\]]*\\]\\]|\\[[^\\]]*${o}[^\\]]*\\]\\([^\\)]*\\)|\\[[^\\]]*\\]\\([^\\)]*${o}[^\\)]*\\)|\\\\${o}`).test(s)||(s=s.replace(o,"\\"+o));n[r]=s}return t=n.join(`
`),t}function ru(t){t.replaceWith(...Array.from(t.childNodes))}function U8(t){const e=new Date(t);return isNaN(e.getTime())?0:e.getTime()}function H8(t){const e=new Date(t);return e.getHours()===0&&e.getMinutes()===0&&e.getSeconds()===0&&e.getMilliseconds()===0}var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y8(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function K8(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var iu={exports:{}};function V8(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hs={exports:{}};const Z8={},X8=Object.freeze(Object.defineProperty({__proto__:null,default:Z8},Symbol.toStringTag,{value:"Module"})),G8=K8(X8);var rl;function ge(){return rl||(rl=1,function(t,e){(function(n,r){t.exports=r()})(de,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof de<"u"&&de.crypto&&(s=de.crypto),!s&&typeof V8=="function")try{s=G8}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function m(){}return function(v){var _;return m.prototype=v,_=new m,m.prototype=null,_}}(),l={},a=l.lib={},c=a.Base=function(){return{extend:function(m){var v=f(this);return m&&v.mixIn(m),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var v in m)m.hasOwnProperty(v)&&(this[v]=m[v]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=a.WordArray=c.extend({init:function(m,v){m=this.words=m||[],v!=i?this.sigBytes=v:this.sigBytes=m.length*4},toString:function(m){return(m||d).stringify(this)},concat:function(m){var v=this.words,_=m.words,C=this.sigBytes,y=m.sigBytes;if(this.clamp(),C%4)for(var w=0;w<y;w++){var k=_[w>>>2]>>>24-w%4*8&255;v[C+w>>>2]|=k<<24-(C+w)%4*8}else for(var S=0;S<y;S+=4)v[C+S>>>2]=_[S>>>2];return this.sigBytes+=y,this},clamp:function(){var m=this.words,v=this.sigBytes;m[v>>>2]&=4294967295<<32-v%4*8,m.length=r.ceil(v/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var v=[],_=0;_<m;_+=4)v.push(o());return new u.init(v,m)}}),h=l.enc={},d=h.Hex={stringify:function(m){for(var v=m.words,_=m.sigBytes,C=[],y=0;y<_;y++){var w=v[y>>>2]>>>24-y%4*8&255;C.push((w>>>4).toString(16)),C.push((w&15).toString(16))}return C.join("")},parse:function(m){for(var v=m.length,_=[],C=0;C<v;C+=2)_[C>>>3]|=parseInt(m.substr(C,2),16)<<24-C%8*4;return new u.init(_,v/2)}},b=h.Latin1={stringify:function(m){for(var v=m.words,_=m.sigBytes,C=[],y=0;y<_;y++){var w=v[y>>>2]>>>24-y%4*8&255;C.push(String.fromCharCode(w))}return C.join("")},parse:function(m){for(var v=m.length,_=[],C=0;C<v;C++)_[C>>>2]|=(m.charCodeAt(C)&255)<<24-C%4*8;return new u.init(_,v)}},x=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(b.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return b.parse(unescape(encodeURIComponent(m)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=x.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var v,_=this._data,C=_.words,y=_.sigBytes,w=this.blockSize,k=w*4,S=y/k;m?S=r.ceil(S):S=r.max((S|0)-this._minBufferSize,0);var E=S*w,A=r.min(E*4,y);if(E){for(var B=0;B<E;B+=w)this._doProcessBlock(C,B);v=C.splice(0,E),_.sigBytes-=A}return new u.init(v,A)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=p.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(m){return function(v,_){return new m.init(_).finalize(v)}},_createHmacHelper:function(m){return function(v,_){return new g.HMAC.init(m,_).finalize(v)}}});var g=l.algo={};return l}(Math);return n})}(hs)),hs.exports}var ps={exports:{}},il;function Wi(){return il||(il=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(r){var i=n,s=i.lib,o=s.Base,f=s.WordArray,l=i.x64={};l.Word=o.extend({init:function(a,c){this.high=a,this.low=c}}),l.WordArray=o.extend({init:function(a,c){a=this.words=a||[],c!=r?this.sigBytes=c:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,c=a.length,u=[],h=0;h<c;h++){var d=a[h];u.push(d.high),u.push(d.low)}return f.create(u,this.sigBytes)},clone:function(){for(var a=o.clone.call(this),c=a.words=this.words.slice(0),u=c.length,h=0;h<u;h++)c[h]=c[h].clone();return a}})}(),n})}(ps)),ps.exports}var xs={exports:{}},sl;function J8(){return sl||(sl=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,s=i.WordArray,o=s.init,f=s.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var a=l.byteLength,c=[],u=0;u<a;u++)c[u>>>2]|=l[u]<<24-u%4*8;o.call(this,c,a)}else o.apply(this,arguments)};f.prototype=s}}(),n.lib.WordArray})}(xs)),xs.exports}var ms={exports:{}},ol;function Q8(){return ol||(ol=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var a=l.words,c=l.sigBytes,u=[],h=0;h<c;h+=2){var d=a[h>>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(d))}return u.join("")},parse:function(l){for(var a=l.length,c=[],u=0;u<a;u++)c[u>>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(c,a*2)}},o.Utf16LE={stringify:function(l){for(var a=l.words,c=l.sigBytes,u=[],h=0;h<c;h+=2){var d=f(a[h>>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(d))}return u.join("")},parse:function(l){for(var a=l.length,c=[],u=0;u<a;u++)c[u>>>1]|=f(l.charCodeAt(u)<<16-u%2*16);return s.create(c,a*2)}};function f(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(ms)),ms.exports}var gs={exports:{}},al;function Tn(){return al||(al=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,u=this._map;l.clamp();for(var h=[],d=0;d<c;d+=3)for(var b=a[d>>>2]>>>24-d%4*8&255,x=a[d+1>>>2]>>>24-(d+1)%4*8&255,p=a[d+2>>>2]>>>24-(d+2)%4*8&255,g=b<<16|x<<8|p,m=0;m<4&&d+m*.75<c;m++)h.push(u.charAt(g>>>6*(3-m)&63));var v=u.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(l){var a=l.length,c=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<c.length;h++)u[c.charCodeAt(h)]=h}var d=c.charAt(64);if(d){var b=l.indexOf(d);b!==-1&&(a=b)}return f(l,a,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(l,a,c){for(var u=[],h=0,d=0;d<a;d++)if(d%4){var b=c[l.charCodeAt(d-1)]<<d%4*2,x=c[l.charCodeAt(d)]>>>6-d%4*2,p=b|x;u[h>>>2]|=p<<24-h%4*8,h++}return s.create(u,h)}}(),n.enc.Base64})}(gs)),gs.exports}var bs={exports:{}},ll;function $8(){return ll||(ll=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64url={stringify:function(l,a){a===void 0&&(a=!0);var c=l.words,u=l.sigBytes,h=a?this._safe_map:this._map;l.clamp();for(var d=[],b=0;b<u;b+=3)for(var x=c[b>>>2]>>>24-b%4*8&255,p=c[b+1>>>2]>>>24-(b+1)%4*8&255,g=c[b+2>>>2]>>>24-(b+2)%4*8&255,m=x<<16|p<<8|g,v=0;v<4&&b+v*.75<u;v++)d.push(h.charAt(m>>>6*(3-v)&63));var _=h.charAt(64);if(_)for(;d.length%4;)d.push(_);return d.join("")},parse:function(l,a){a===void 0&&(a=!0);var c=l.length,u=a?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var d=0;d<u.length;d++)h[u.charCodeAt(d)]=d}var b=u.charAt(64);if(b){var x=l.indexOf(b);x!==-1&&(c=x)}return f(l,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(l,a,c){for(var u=[],h=0,d=0;d<a;d++)if(d%4){var b=c[l.charCodeAt(d-1)]<<d%4*2,x=c[l.charCodeAt(d)]>>>6-d%4*2,p=b|x;u[h>>>2]|=p<<24-h%4*8,h++}return s.create(u,h)}}(),n.enc.Base64url})}(bs)),bs.exports}var vs={exports:{}},cl;function Rn(){return cl||(cl=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,f=s.Hasher,l=i.algo,a=[];(function(){for(var x=0;x<64;x++)a[x]=r.abs(r.sin(x+1))*4294967296|0})();var c=l.MD5=f.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,p){for(var g=0;g<16;g++){var m=p+g,v=x[m];x[m]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var _=this._hash.words,C=x[p+0],y=x[p+1],w=x[p+2],k=x[p+3],S=x[p+4],E=x[p+5],A=x[p+6],B=x[p+7],D=x[p+8],F=x[p+9],R=x[p+10],T=x[p+11],N=x[p+12],P=x[p+13],Y=x[p+14],z=x[p+15],I=_[0],O=_[1],q=_[2],j=_[3];I=u(I,O,q,j,C,7,a[0]),j=u(j,I,O,q,y,12,a[1]),q=u(q,j,I,O,w,17,a[2]),O=u(O,q,j,I,k,22,a[3]),I=u(I,O,q,j,S,7,a[4]),j=u(j,I,O,q,E,12,a[5]),q=u(q,j,I,O,A,17,a[6]),O=u(O,q,j,I,B,22,a[7]),I=u(I,O,q,j,D,7,a[8]),j=u(j,I,O,q,F,12,a[9]),q=u(q,j,I,O,R,17,a[10]),O=u(O,q,j,I,T,22,a[11]),I=u(I,O,q,j,N,7,a[12]),j=u(j,I,O,q,P,12,a[13]),q=u(q,j,I,O,Y,17,a[14]),O=u(O,q,j,I,z,22,a[15]),I=h(I,O,q,j,y,5,a[16]),j=h(j,I,O,q,A,9,a[17]),q=h(q,j,I,O,T,14,a[18]),O=h(O,q,j,I,C,20,a[19]),I=h(I,O,q,j,E,5,a[20]),j=h(j,I,O,q,R,9,a[21]),q=h(q,j,I,O,z,14,a[22]),O=h(O,q,j,I,S,20,a[23]),I=h(I,O,q,j,F,5,a[24]),j=h(j,I,O,q,Y,9,a[25]),q=h(q,j,I,O,k,14,a[26]),O=h(O,q,j,I,D,20,a[27]),I=h(I,O,q,j,P,5,a[28]),j=h(j,I,O,q,w,9,a[29]),q=h(q,j,I,O,B,14,a[30]),O=h(O,q,j,I,N,20,a[31]),I=d(I,O,q,j,E,4,a[32]),j=d(j,I,O,q,D,11,a[33]),q=d(q,j,I,O,T,16,a[34]),O=d(O,q,j,I,Y,23,a[35]),I=d(I,O,q,j,y,4,a[36]),j=d(j,I,O,q,S,11,a[37]),q=d(q,j,I,O,B,16,a[38]),O=d(O,q,j,I,R,23,a[39]),I=d(I,O,q,j,P,4,a[40]),j=d(j,I,O,q,C,11,a[41]),q=d(q,j,I,O,k,16,a[42]),O=d(O,q,j,I,A,23,a[43]),I=d(I,O,q,j,F,4,a[44]),j=d(j,I,O,q,N,11,a[45]),q=d(q,j,I,O,z,16,a[46]),O=d(O,q,j,I,w,23,a[47]),I=b(I,O,q,j,C,6,a[48]),j=b(j,I,O,q,B,10,a[49]),q=b(q,j,I,O,Y,15,a[50]),O=b(O,q,j,I,E,21,a[51]),I=b(I,O,q,j,N,6,a[52]),j=b(j,I,O,q,k,10,a[53]),q=b(q,j,I,O,R,15,a[54]),O=b(O,q,j,I,y,21,a[55]),I=b(I,O,q,j,D,6,a[56]),j=b(j,I,O,q,z,10,a[57]),q=b(q,j,I,O,A,15,a[58]),O=b(O,q,j,I,P,21,a[59]),I=b(I,O,q,j,S,6,a[60]),j=b(j,I,O,q,T,10,a[61]),q=b(q,j,I,O,w,15,a[62]),O=b(O,q,j,I,F,21,a[63]),_[0]=_[0]+I|0,_[1]=_[1]+O|0,_[2]=_[2]+q|0,_[3]=_[3]+j|0},_doFinalize:function(){var x=this._data,p=x.words,g=this._nDataBytes*8,m=x.sigBytes*8;p[m>>>5]|=128<<24-m%32;var v=r.floor(g/4294967296),_=g;p[(m+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,p[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,x.sigBytes=(p.length+1)*4,this._process();for(var C=this._hash,y=C.words,w=0;w<4;w++){var k=y[w];y[w]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return C},clone:function(){var x=f.clone.call(this);return x._hash=this._hash.clone(),x}});function u(x,p,g,m,v,_,C){var y=x+(p&g|~p&m)+v+C;return(y<<_|y>>>32-_)+p}function h(x,p,g,m,v,_,C){var y=x+(p&m|g&~m)+v+C;return(y<<_|y>>>32-_)+p}function d(x,p,g,m,v,_,C){var y=x+(p^g^m)+v+C;return(y<<_|y>>>32-_)+p}function b(x,p,g,m,v,_,C){var y=x+(g^(p|~m))+v+C;return(y<<_|y>>>32-_)+p}i.MD5=f._createHelper(c),i.HmacMD5=f._createHmacHelper(c)}(Math),n.MD5})}(vs)),vs.exports}var _s={exports:{}},fl;function su(){return fl||(fl=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.Hasher,f=r.algo,l=[],a=f.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var h=this._hash.words,d=h[0],b=h[1],x=h[2],p=h[3],g=h[4],m=0;m<80;m++){if(m<16)l[m]=c[u+m]|0;else{var v=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=v<<1|v>>>31}var _=(d<<5|d>>>27)+g+l[m];m<20?_+=(b&x|~b&p)+1518500249:m<40?_+=(b^x^p)+1859775393:m<60?_+=(b&x|b&p|x&p)-1894007588:_+=(b^x^p)-899497514,g=p,p=x,x=b<<30|b>>>2,b=d,d=_}h[0]=h[0]+d|0,h[1]=h[1]+b|0,h[2]=h[2]+x|0,h[3]=h[3]+p|0,h[4]=h[4]+g|0},_doFinalize:function(){var c=this._data,u=c.words,h=this._nDataBytes*8,d=c.sigBytes*8;return u[d>>>5]|=128<<24-d%32,u[(d+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(d+64>>>9<<4)+15]=h,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});r.SHA1=o._createHelper(a),r.HmacSHA1=o._createHmacHelper(a)}(),n.SHA1})}(_s)),_s.exports}var ys={exports:{}},ul;function Uo(){return ul||(ul=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,f=s.Hasher,l=i.algo,a=[],c=[];(function(){function d(g){for(var m=r.sqrt(g),v=2;v<=m;v++)if(!(g%v))return!1;return!0}function b(g){return(g-(g|0))*4294967296|0}for(var x=2,p=0;p<64;)d(x)&&(p<8&&(a[p]=b(r.pow(x,1/2))),c[p]=b(r.pow(x,1/3)),p++),x++})();var u=[],h=l.SHA256=f.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(d,b){for(var x=this._hash.words,p=x[0],g=x[1],m=x[2],v=x[3],_=x[4],C=x[5],y=x[6],w=x[7],k=0;k<64;k++){if(k<16)u[k]=d[b+k]|0;else{var S=u[k-15],E=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,A=u[k-2],B=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;u[k]=E+u[k-7]+B+u[k-16]}var D=_&C^~_&y,F=p&g^p&m^g&m,R=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),T=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),N=w+T+D+c[k]+u[k],P=R+F;w=y,y=C,C=_,_=v+N|0,v=m,m=g,g=p,p=N+P|0}x[0]=x[0]+p|0,x[1]=x[1]+g|0,x[2]=x[2]+m|0,x[3]=x[3]+v|0,x[4]=x[4]+_|0,x[5]=x[5]+C|0,x[6]=x[6]+y|0,x[7]=x[7]+w|0},_doFinalize:function(){var d=this._data,b=d.words,x=this._nDataBytes*8,p=d.sigBytes*8;return b[p>>>5]|=128<<24-p%32,b[(p+64>>>9<<4)+14]=r.floor(x/4294967296),b[(p+64>>>9<<4)+15]=x,d.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var d=f.clone.call(this);return d._hash=this._hash.clone(),d}});i.SHA256=f._createHelper(h),i.HmacSHA256=f._createHmacHelper(h)}(Math),n.SHA256})}(ys)),ys.exports}var ws={exports:{}},dl;function eg(){return dl||(dl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Uo())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.algo,f=o.SHA256,l=o.SHA224=f.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=4,a}});r.SHA224=f._createHelper(l),r.HmacSHA224=f._createHmacHelper(l)}(),n.SHA224})}(ws)),ws.exports}var ks={exports:{}},hl;function ou(){return hl||(hl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Wi())})(de,function(n){return function(){var r=n,i=r.lib,s=i.Hasher,o=r.x64,f=o.Word,l=o.WordArray,a=r.algo;function c(){return f.create.apply(f,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],h=[];(function(){for(var b=0;b<80;b++)h[b]=c()})();var d=a.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(b,x){for(var p=this._hash.words,g=p[0],m=p[1],v=p[2],_=p[3],C=p[4],y=p[5],w=p[6],k=p[7],S=g.high,E=g.low,A=m.high,B=m.low,D=v.high,F=v.low,R=_.high,T=_.low,N=C.high,P=C.low,Y=y.high,z=y.low,I=w.high,O=w.low,q=k.high,j=k.low,te=S,ne=E,he=A,re=B,$=D,me=F,Te=R,ke=T,be=N,Q=P,fe=Y,pe=z,J=I,et=O,Lt=q,Ve=j,Ce=0;Ce<80;Ce++){var Ie,lt,Qt=h[Ce];if(Ce<16)lt=Qt.high=b[x+Ce*2]|0,Ie=Qt.low=b[x+Ce*2+1]|0;else{var qt=h[Ce-15],Nt=qt.high,xe=qt.low,mn=(Nt>>>1|xe<<31)^(Nt>>>8|xe<<24)^Nt>>>7,On=(xe>>>1|Nt<<31)^(xe>>>8|Nt<<24)^(xe>>>7|Nt<<25),gn=h[Ce-2],Wt=gn.high,Zt=gn.low,or=(Wt>>>19|Zt<<13)^(Wt<<3|Zt>>>29)^Wt>>>6,H=(Zt>>>19|Wt<<13)^(Zt<<3|Wt>>>29)^(Zt>>>6|Wt<<26),Z=h[Ce-7],V=Z.high,G=Z.low,ee=h[Ce-16],oe=ee.high,M=ee.low;Ie=On+G,lt=mn+V+(Ie>>>0<On>>>0?1:0),Ie=Ie+H,lt=lt+or+(Ie>>>0<H>>>0?1:0),Ie=Ie+M,lt=lt+oe+(Ie>>>0<M>>>0?1:0),Qt.high=lt,Qt.low=Ie}var Se=be&fe^~be&J,tt=Q&pe^~Q&et,ar=te&he^te&$^he&$,Nr=ne&re^ne&me^re&me,Wr=(te>>>28|ne<<4)^(te<<30|ne>>>2)^(te<<25|ne>>>7),Yo=(ne>>>28|te<<4)^(ne<<30|te>>>2)^(ne<<25|te>>>7),hu=(be>>>14|Q<<18)^(be>>>18|Q<<14)^(be<<23|Q>>>9),pu=(Q>>>14|be<<18)^(Q>>>18|be<<14)^(Q<<23|be>>>9),Ko=u[Ce],xu=Ko.high,Vo=Ko.low,mt=Ve+pu,$t=Lt+hu+(mt>>>0<Ve>>>0?1:0),mt=mt+tt,$t=$t+Se+(mt>>>0<tt>>>0?1:0),mt=mt+Vo,$t=$t+xu+(mt>>>0<Vo>>>0?1:0),mt=mt+Ie,$t=$t+lt+(mt>>>0<Ie>>>0?1:0),Zo=Yo+Nr,mu=Wr+ar+(Zo>>>0<Yo>>>0?1:0);Lt=J,Ve=et,J=fe,et=pe,fe=be,pe=Q,Q=ke+mt|0,be=Te+$t+(Q>>>0<ke>>>0?1:0)|0,Te=$,ke=me,$=he,me=re,he=te,re=ne,ne=mt+Zo|0,te=$t+mu+(ne>>>0<mt>>>0?1:0)|0}E=g.low=E+ne,g.high=S+te+(E>>>0<ne>>>0?1:0),B=m.low=B+re,m.high=A+he+(B>>>0<re>>>0?1:0),F=v.low=F+me,v.high=D+$+(F>>>0<me>>>0?1:0),T=_.low=T+ke,_.high=R+Te+(T>>>0<ke>>>0?1:0),P=C.low=P+Q,C.high=N+be+(P>>>0<Q>>>0?1:0),z=y.low=z+pe,y.high=Y+fe+(z>>>0<pe>>>0?1:0),O=w.low=O+et,w.high=I+J+(O>>>0<et>>>0?1:0),j=k.low=j+Ve,k.high=q+Lt+(j>>>0<Ve>>>0?1:0)},_doFinalize:function(){var b=this._data,x=b.words,p=this._nDataBytes*8,g=b.sigBytes*8;x[g>>>5]|=128<<24-g%32,x[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),x[(g+128>>>10<<5)+31]=p,b.sigBytes=x.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var b=s.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:1024/32});r.SHA512=s._createHelper(d),r.HmacSHA512=s._createHmacHelper(d)}(),n.SHA512})}(ks)),ks.exports}var Es={exports:{}},pl;function tg(){return pl||(pl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Wi(),ou())})(de,function(n){return function(){var r=n,i=r.x64,s=i.Word,o=i.WordArray,f=r.algo,l=f.SHA512,a=f.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});r.SHA384=l._createHelper(a),r.HmacSHA384=l._createHmacHelper(a)}(),n.SHA384})}(Es)),Es.exports}var Cs={exports:{}},xl;function ng(){return xl||(xl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Wi())})(de,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,f=s.Hasher,l=i.x64,a=l.Word,c=i.algo,u=[],h=[],d=[];(function(){for(var p=1,g=0,m=0;m<24;m++){u[p+5*g]=(m+1)*(m+2)/2%64;var v=g%5,_=(2*p+3*g)%5;p=v,g=_}for(var p=0;p<5;p++)for(var g=0;g<5;g++)h[p+5*g]=g+(2*p+3*g)%5*5;for(var C=1,y=0;y<24;y++){for(var w=0,k=0,S=0;S<7;S++){if(C&1){var E=(1<<S)-1;E<32?k^=1<<E:w^=1<<E-32}C&128?C=C<<1^113:C<<=1}d[y]=a.create(w,k)}})();var b=[];(function(){for(var p=0;p<25;p++)b[p]=a.create()})();var x=c.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var m=this._state,v=this.blockSize/2,_=0;_<v;_++){var C=p[g+2*_],y=p[g+2*_+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;var w=m[_];w.high^=y,w.low^=C}for(var k=0;k<24;k++){for(var S=0;S<5;S++){for(var E=0,A=0,B=0;B<5;B++){var w=m[S+5*B];E^=w.high,A^=w.low}var D=b[S];D.high=E,D.low=A}for(var S=0;S<5;S++)for(var F=b[(S+4)%5],R=b[(S+1)%5],T=R.high,N=R.low,E=F.high^(T<<1|N>>>31),A=F.low^(N<<1|T>>>31),B=0;B<5;B++){var w=m[S+5*B];w.high^=E,w.low^=A}for(var P=1;P<25;P++){var E,A,w=m[P],Y=w.high,z=w.low,I=u[P];I<32?(E=Y<<I|z>>>32-I,A=z<<I|Y>>>32-I):(E=z<<I-32|Y>>>64-I,A=Y<<I-32|z>>>64-I);var O=b[h[P]];O.high=E,O.low=A}var q=b[0],j=m[0];q.high=j.high,q.low=j.low;for(var S=0;S<5;S++)for(var B=0;B<5;B++){var P=S+5*B,w=m[P],te=b[P],ne=b[(S+1)%5+5*B],he=b[(S+2)%5+5*B];w.high=te.high^~ne.high&he.high,w.low=te.low^~ne.low&he.low}var w=m[0],re=d[k];w.high^=re.high,w.low^=re.low}},_doFinalize:function(){var p=this._data,g=p.words;this._nDataBytes*8;var m=p.sigBytes*8,v=this.blockSize*32;g[m>>>5]|=1<<24-m%32,g[(r.ceil((m+1)/v)*v>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var _=this._state,C=this.cfg.outputLength/8,y=C/8,w=[],k=0;k<y;k++){var S=_[k],E=S.high,A=S.low;E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,w.push(A),w.push(E)}return new o.init(w,C)},clone:function(){for(var p=f.clone.call(this),g=p._state=this._state.slice(0),m=0;m<25;m++)g[m]=g[m].clone();return p}});i.SHA3=f._createHelper(x),i.HmacSHA3=f._createHmacHelper(x)}(Math),n.SHA3})}(Cs)),Cs.exports}var As={exports:{}},ml;function rg(){return ml||(ml=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(r){var i=n,s=i.lib,o=s.WordArray,f=s.Hasher,l=i.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=o.create([0,1518500249,1859775393,2400959708,2840853838]),b=o.create([1352829926,1548603684,1836072691,2053994217,0]),x=l.RIPEMD160=f.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,w){for(var k=0;k<16;k++){var S=w+k,E=y[S];y[S]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var A=this._hash.words,B=d.words,D=b.words,F=a.words,R=c.words,T=u.words,N=h.words,P,Y,z,I,O,q,j,te,ne,he;q=P=A[0],j=Y=A[1],te=z=A[2],ne=I=A[3],he=O=A[4];for(var re,k=0;k<80;k+=1)re=P+y[w+F[k]]|0,k<16?re+=p(Y,z,I)+B[0]:k<32?re+=g(Y,z,I)+B[1]:k<48?re+=m(Y,z,I)+B[2]:k<64?re+=v(Y,z,I)+B[3]:re+=_(Y,z,I)+B[4],re=re|0,re=C(re,T[k]),re=re+O|0,P=O,O=I,I=C(z,10),z=Y,Y=re,re=q+y[w+R[k]]|0,k<16?re+=_(j,te,ne)+D[0]:k<32?re+=v(j,te,ne)+D[1]:k<48?re+=m(j,te,ne)+D[2]:k<64?re+=g(j,te,ne)+D[3]:re+=p(j,te,ne)+D[4],re=re|0,re=C(re,N[k]),re=re+he|0,q=he,he=ne,ne=C(te,10),te=j,j=re;re=A[1]+z+ne|0,A[1]=A[2]+I+he|0,A[2]=A[3]+O+q|0,A[3]=A[4]+P+j|0,A[4]=A[0]+Y+te|0,A[0]=re},_doFinalize:function(){var y=this._data,w=y.words,k=this._nDataBytes*8,S=y.sigBytes*8;w[S>>>5]|=128<<24-S%32,w[(S+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,y.sigBytes=(w.length+1)*4,this._process();for(var E=this._hash,A=E.words,B=0;B<5;B++){var D=A[B];A[B]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return E},clone:function(){var y=f.clone.call(this);return y._hash=this._hash.clone(),y}});function p(y,w,k){return y^w^k}function g(y,w,k){return y&w|~y&k}function m(y,w,k){return(y|~w)^k}function v(y,w,k){return y&k|w&~k}function _(y,w,k){return y^(w|~k)}function C(y,w){return y<<w|y>>>32-w}i.RIPEMD160=f._createHelper(x),i.HmacRIPEMD160=f._createHmacHelper(x)}(),n.RIPEMD160})}(As)),As.exports}var Ss={exports:{}},gl;function Ho(){return gl||(gl=1,function(t,e){(function(n,r){t.exports=r(ge())})(de,function(n){(function(){var r=n,i=r.lib,s=i.Base,o=r.enc,f=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=f.parse(c));var u=a.blockSize,h=u*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var d=this._oKey=c.clone(),b=this._iKey=c.clone(),x=d.words,p=b.words,g=0;g<u;g++)x[g]^=1549556828,p[g]^=909522486;d.sigBytes=b.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,u=c.finalize(a);c.reset();var h=c.finalize(this._oKey.clone().concat(u));return h}})})()})}(Ss)),Ss.exports}var Ds={exports:{}},bl;function ig(){return bl||(bl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Uo(),Ho())})(de,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,f=r.algo,l=f.SHA256,a=f.HMAC,c=f.PBKDF2=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,h){for(var d=this.cfg,b=a.create(d.hasher,u),x=o.create(),p=o.create([1]),g=x.words,m=p.words,v=d.keySize,_=d.iterations;g.length<v;){var C=b.update(h).finalize(p);b.reset();for(var y=C.words,w=y.length,k=C,S=1;S<_;S++){k=b.finalize(k),b.reset();for(var E=k.words,A=0;A<w;A++)y[A]^=E[A]}x.concat(C),m[0]++}return x.sigBytes=v*4,x}});r.PBKDF2=function(u,h,d){return c.create(d).compute(u,h)}}(),n.PBKDF2})}(Ds)),Ds.exports}var Bs={exports:{}},vl;function xn(){return vl||(vl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),su(),Ho())})(de,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,f=r.algo,l=f.MD5,a=f.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var h,d=this.cfg,b=d.hasher.create(),x=o.create(),p=x.words,g=d.keySize,m=d.iterations;p.length<g;){h&&b.update(h),h=b.update(c).finalize(u),b.reset();for(var v=1;v<m;v++)h=b.finalize(h),b.reset();x.concat(h)}return x.sigBytes=g*4,x}});r.EvpKDF=function(c,u,h){return a.create(h).compute(c,u)}}(),n.EvpKDF})}(Bs)),Bs.exports}var Fs={exports:{}},_l;function Ke(){return _l||(_l=1,function(t,e){(function(n,r,i){t.exports=r(ge(),xn())})(de,function(n){n.lib.Cipher||function(r){var i=n,s=i.lib,o=s.Base,f=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,u=i.algo,h=u.EvpKDF,d=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(E,A){return this.create(this._ENC_XFORM_MODE,E,A)},createDecryptor:function(E,A){return this.create(this._DEC_XFORM_MODE,E,A)},init:function(E,A,B){this.cfg=this.cfg.extend(B),this._xformMode=E,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function E(A){return typeof A=="string"?S:y}return function(A){return{encrypt:function(B,D,F){return E(D).encrypt(A,B,D,F)},decrypt:function(B,D,F){return E(D).decrypt(A,B,D,F)}}}}()});s.StreamCipher=d.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var b=i.mode={},x=s.BlockCipherMode=o.extend({createEncryptor:function(E,A){return this.Encryptor.create(E,A)},createDecryptor:function(E,A){return this.Decryptor.create(E,A)},init:function(E,A){this._cipher=E,this._iv=A}}),p=b.CBC=function(){var E=x.extend();E.Encryptor=E.extend({processBlock:function(B,D){var F=this._cipher,R=F.blockSize;A.call(this,B,D,R),F.encryptBlock(B,D),this._prevBlock=B.slice(D,D+R)}}),E.Decryptor=E.extend({processBlock:function(B,D){var F=this._cipher,R=F.blockSize,T=B.slice(D,D+R);F.decryptBlock(B,D),A.call(this,B,D,R),this._prevBlock=T}});function A(B,D,F){var R,T=this._iv;T?(R=T,this._iv=r):R=this._prevBlock;for(var N=0;N<F;N++)B[D+N]^=R[N]}return E}(),g=i.pad={},m=g.Pkcs7={pad:function(E,A){for(var B=A*4,D=B-E.sigBytes%B,F=D<<24|D<<16|D<<8|D,R=[],T=0;T<D;T+=4)R.push(F);var N=f.create(R,D);E.concat(N)},unpad:function(E){var A=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=A}};s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:m}),reset:function(){var E;d.reset.call(this);var A=this.cfg,B=A.iv,D=A.mode;this._xformMode==this._ENC_XFORM_MODE?E=D.createEncryptor:(E=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,B&&B.words):(this._mode=E.call(D,this,B&&B.words),this._mode.__creator=E)},_doProcessBlock:function(E,A){this._mode.processBlock(E,A)},_doFinalize:function(){var E,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),A.unpad(E)),E},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),_=i.format={},C=_.OpenSSL={stringify:function(E){var A,B=E.ciphertext,D=E.salt;return D?A=f.create([1398893684,1701076831]).concat(D).concat(B):A=B,A.toString(c)},parse:function(E){var A,B=c.parse(E),D=B.words;return D[0]==1398893684&&D[1]==1701076831&&(A=f.create(D.slice(2,4)),D.splice(0,4),B.sigBytes-=16),v.create({ciphertext:B,salt:A})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(E,A,B,D){D=this.cfg.extend(D);var F=E.createEncryptor(B,D),R=F.finalize(A),T=F.cfg;return v.create({ciphertext:R,key:B,iv:T.iv,algorithm:E,mode:T.mode,padding:T.padding,blockSize:E.blockSize,formatter:D.format})},decrypt:function(E,A,B,D){D=this.cfg.extend(D),A=this._parse(A,D.format);var F=E.createDecryptor(B,D).finalize(A.ciphertext);return F},_parse:function(E,A){return typeof E=="string"?A.parse(E,this):E}}),w=i.kdf={},k=w.OpenSSL={execute:function(E,A,B,D,F){if(D||(D=f.random(64/8)),F)var R=h.create({keySize:A+B,hasher:F}).compute(E,D);else var R=h.create({keySize:A+B}).compute(E,D);var T=f.create(R.words.slice(A),B*4);return R.sigBytes=A*4,v.create({key:R,iv:T,salt:D})}},S=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:k}),encrypt:function(E,A,B,D){D=this.cfg.extend(D);var F=D.kdf.execute(B,E.keySize,E.ivSize,D.salt,D.hasher);D.iv=F.iv;var R=y.encrypt.call(this,E,A,F.key,D);return R.mixIn(F),R},decrypt:function(E,A,B,D){D=this.cfg.extend(D),A=this._parse(A,D.format);var F=D.kdf.execute(B,E.keySize,E.ivSize,A.salt,D.hasher);D.iv=F.iv;var R=y.decrypt.call(this,E,A,F.key,D);return R}})}()})}(Fs)),Fs.exports}var Ts={exports:{}},yl;function sg(){return yl||(yl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var f=this._cipher,l=f.blockSize;i.call(this,s,o,l,f),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var f=this._cipher,l=f.blockSize,a=s.slice(o,o+l);i.call(this,s,o,l,f),this._prevBlock=a}});function i(s,o,f,l){var a,c=this._iv;c?(a=c.slice(0),this._iv=void 0):a=this._prevBlock,l.encryptBlock(a,0);for(var u=0;u<f;u++)s[o+u]^=a[u]}return r}(),n.mode.CFB})}(Ts)),Ts.exports}var Rs={exports:{}},wl;function og(){return wl||(wl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var f=this._cipher,l=f.blockSize,a=this._iv,c=this._counter;a&&(c=this._counter=a.slice(0),this._iv=void 0);var u=c.slice(0);f.encryptBlock(u,0),c[l-1]=c[l-1]+1|0;for(var h=0;h<l;h++)s[o+h]^=u[h]}});return r.Decryptor=i,r}(),n.mode.CTR})}(Rs)),Rs.exports}var Os={exports:{}},kl;function ag(){return kl||(kl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(f){if((f>>24&255)===255){var l=f>>16&255,a=f>>8&255,c=f&255;l===255?(l=0,a===255?(a=0,c===255?c=0:++c):++a):++l,f=0,f+=l<<16,f+=a<<8,f+=c}else f+=1<<24;return f}function s(f){return(f[0]=i(f[0]))===0&&(f[1]=i(f[1])),f}var o=r.Encryptor=r.extend({processBlock:function(f,l){var a=this._cipher,c=a.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var d=h.slice(0);a.encryptBlock(d,0);for(var b=0;b<c;b++)f[l+b]^=d[b]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(Os)),Os.exports}var Ps={exports:{}},El;function lg(){return El||(El=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var f=this._cipher,l=f.blockSize,a=this._iv,c=this._keystream;a&&(c=this._keystream=a.slice(0),this._iv=void 0),f.encryptBlock(c,0);for(var u=0;u<l;u++)s[o+u]^=c[u]}});return r.Decryptor=i,r}(),n.mode.OFB})}(Ps)),Ps.exports}var Is={exports:{}},Cl;function cg(){return Cl||(Cl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,s){this._cipher.encryptBlock(i,s)}}),r.Decryptor=r.extend({processBlock:function(i,s){this._cipher.decryptBlock(i,s)}}),r}(),n.mode.ECB})}(Is)),Is.exports}var Ls={exports:{}},Al;function fg(){return Al||(Al=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.pad.AnsiX923={pad:function(r,i){var s=r.sigBytes,o=i*4,f=o-s%o,l=s+f-1;r.clamp(),r.words[l>>>2]|=f<<24-l%4*8,r.sigBytes+=f},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(Ls)),Ls.exports}var qs={exports:{}},Sl;function ug(){return Sl||(Sl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.pad.Iso10126={pad:function(r,i){var s=i*4,o=s-r.sigBytes%s;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(qs)),qs.exports}var Ns={exports:{}},Dl;function dg(){return Dl||(Dl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Ns)),Ns.exports}var Ws={exports:{}},Bl;function hg(){return Bl||(Bl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.pad.ZeroPadding={pad:function(r,i){var s=i*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var i=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(i[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},n.pad.ZeroPadding})}(Ws)),Ws.exports}var Ms={exports:{}},Fl;function pg(){return Fl||(Fl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Ms)),Ms.exports}var js={exports:{}},Tl;function xg(){return Tl||(Tl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Ke())})(de,function(n){return function(r){var i=n,s=i.lib,o=s.CipherParams,f=i.enc,l=f.Hex,a=i.format;a.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var u=l.parse(c);return o.create({ciphertext:u})}}}(),n.format.Hex})}(js)),js.exports}var zs={exports:{}},Rl;function mg(){return Rl||(Rl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo,f=[],l=[],a=[],c=[],u=[],h=[],d=[],b=[],x=[],p=[];(function(){for(var v=[],_=0;_<256;_++)_<128?v[_]=_<<1:v[_]=_<<1^283;for(var C=0,y=0,_=0;_<256;_++){var w=y^y<<1^y<<2^y<<3^y<<4;w=w>>>8^w&255^99,f[C]=w,l[w]=C;var k=v[C],S=v[k],E=v[S],A=v[w]*257^w*16843008;a[C]=A<<24|A>>>8,c[C]=A<<16|A>>>16,u[C]=A<<8|A>>>24,h[C]=A;var A=E*16843009^S*65537^k*257^C*16843008;d[w]=A<<24|A>>>8,b[w]=A<<16|A>>>16,x[w]=A<<8|A>>>24,p[w]=A,C?(C=k^v[v[v[E^k]]],y^=v[v[y]]):C=y=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,C=_.words,y=_.sigBytes/4,w=this._nRounds=y+6,k=(w+1)*4,S=this._keySchedule=[],E=0;E<k;E++)E<y?S[E]=C[E]:(v=S[E-1],E%y?y>6&&E%y==4&&(v=f[v>>>24]<<24|f[v>>>16&255]<<16|f[v>>>8&255]<<8|f[v&255]):(v=v<<8|v>>>24,v=f[v>>>24]<<24|f[v>>>16&255]<<16|f[v>>>8&255]<<8|f[v&255],v^=g[E/y|0]<<24),S[E]=S[E-y]^v);for(var A=this._invKeySchedule=[],B=0;B<k;B++){var E=k-B;if(B%4)var v=S[E];else var v=S[E-4];B<4||E<=4?A[B]=v:A[B]=d[f[v>>>24]]^b[f[v>>>16&255]]^x[f[v>>>8&255]]^p[f[v&255]]}}},encryptBlock:function(v,_){this._doCryptBlock(v,_,this._keySchedule,a,c,u,h,f)},decryptBlock:function(v,_){var C=v[_+1];v[_+1]=v[_+3],v[_+3]=C,this._doCryptBlock(v,_,this._invKeySchedule,d,b,x,p,l);var C=v[_+1];v[_+1]=v[_+3],v[_+3]=C},_doCryptBlock:function(v,_,C,y,w,k,S,E){for(var A=this._nRounds,B=v[_]^C[0],D=v[_+1]^C[1],F=v[_+2]^C[2],R=v[_+3]^C[3],T=4,N=1;N<A;N++){var P=y[B>>>24]^w[D>>>16&255]^k[F>>>8&255]^S[R&255]^C[T++],Y=y[D>>>24]^w[F>>>16&255]^k[R>>>8&255]^S[B&255]^C[T++],z=y[F>>>24]^w[R>>>16&255]^k[B>>>8&255]^S[D&255]^C[T++],I=y[R>>>24]^w[B>>>16&255]^k[D>>>8&255]^S[F&255]^C[T++];B=P,D=Y,F=z,R=I}var P=(E[B>>>24]<<24|E[D>>>16&255]<<16|E[F>>>8&255]<<8|E[R&255])^C[T++],Y=(E[D>>>24]<<24|E[F>>>16&255]<<16|E[R>>>8&255]<<8|E[B&255])^C[T++],z=(E[F>>>24]<<24|E[R>>>16&255]<<16|E[B>>>8&255]<<8|E[D&255])^C[T++],I=(E[R>>>24]<<24|E[B>>>16&255]<<16|E[D>>>8&255]<<8|E[F&255])^C[T++];v[_]=P,v[_+1]=Y,v[_+2]=z,v[_+3]=I},keySize:256/32});r.AES=s._createHelper(m)}(),n.AES})}(zs)),zs.exports}var Us={exports:{}},Ol;function gg(){return Ol||(Ol=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.BlockCipher,f=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=f.DES=o.extend({_doReset:function(){for(var g=this._key,m=g.words,v=[],_=0;_<56;_++){var C=l[_]-1;v[_]=m[C>>>5]>>>31-C%32&1}for(var y=this._subKeys=[],w=0;w<16;w++){for(var k=y[w]=[],S=c[w],_=0;_<24;_++)k[_/6|0]|=v[(a[_]-1+S)%28]<<31-_%6,k[4+(_/6|0)]|=v[28+(a[_+24]-1+S)%28]<<31-_%6;k[0]=k[0]<<1|k[0]>>>31;for(var _=1;_<7;_++)k[_]=k[_]>>>(_-1)*4+3;k[7]=k[7]<<5|k[7]>>>27}for(var E=this._invSubKeys=[],_=0;_<16;_++)E[_]=y[15-_]},encryptBlock:function(g,m){this._doCryptBlock(g,m,this._subKeys)},decryptBlock:function(g,m){this._doCryptBlock(g,m,this._invSubKeys)},_doCryptBlock:function(g,m,v){this._lBlock=g[m],this._rBlock=g[m+1],b.call(this,4,252645135),b.call(this,16,65535),x.call(this,2,858993459),x.call(this,8,16711935),b.call(this,1,1431655765);for(var _=0;_<16;_++){for(var C=v[_],y=this._lBlock,w=this._rBlock,k=0,S=0;S<8;S++)k|=u[S][((w^C[S])&h[S])>>>0];this._lBlock=w,this._rBlock=y^k}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,b.call(this,1,1431655765),x.call(this,8,16711935),x.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),g[m]=this._lBlock,g[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function b(g,m){var v=(this._lBlock>>>g^this._rBlock)&m;this._rBlock^=v,this._lBlock^=v<<g}function x(g,m){var v=(this._rBlock>>>g^this._lBlock)&m;this._lBlock^=v,this._rBlock^=v<<g}r.DES=o._createHelper(d);var p=f.TripleDES=o.extend({_doReset:function(){var g=this._key,m=g.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=m.slice(0,2),_=m.length<4?m.slice(0,2):m.slice(2,4),C=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=d.createEncryptor(s.create(v)),this._des2=d.createEncryptor(s.create(_)),this._des3=d.createEncryptor(s.create(C))},encryptBlock:function(g,m){this._des1.encryptBlock(g,m),this._des2.decryptBlock(g,m),this._des3.encryptBlock(g,m)},decryptBlock:function(g,m){this._des3.decryptBlock(g,m),this._des2.encryptBlock(g,m),this._des1.decryptBlock(g,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(p)}(),n.TripleDES})}(Us)),Us.exports}var Hs={exports:{}},Pl;function bg(){return Pl||(Pl=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,f=o.RC4=s.extend({_doReset:function(){for(var c=this._key,u=c.words,h=c.sigBytes,d=this._S=[],b=0;b<256;b++)d[b]=b;for(var b=0,x=0;b<256;b++){var p=b%h,g=u[p>>>2]>>>24-p%4*8&255;x=(x+d[b]+g)%256;var m=d[b];d[b]=d[x],d[x]=m}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,u=this._i,h=this._j,d=0,b=0;b<4;b++){u=(u+1)%256,h=(h+c[u])%256;var x=c[u];c[u]=c[h],c[h]=x,d|=c[(c[u]+c[h])%256]<<24-b*8}return this._i=u,this._j=h,d}r.RC4=s._createHelper(f);var a=o.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});r.RC4Drop=s._createHelper(a)}(),n.RC4})}(Hs)),Hs.exports}var Ys={exports:{}},Il;function vg(){return Il||(Il=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,f=[],l=[],a=[],c=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,d=this.cfg.iv,b=0;b<4;b++)h[b]=(h[b]<<8|h[b]>>>24)&16711935|(h[b]<<24|h[b]>>>8)&4278255360;var x=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var b=0;b<4;b++)u.call(this);for(var b=0;b<8;b++)p[b]^=x[b+4&7];if(d){var g=d.words,m=g[0],v=g[1],_=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,y=_>>>16|C&4294901760,w=C<<16|_&65535;p[0]^=_,p[1]^=y,p[2]^=C,p[3]^=w,p[4]^=_,p[5]^=y,p[6]^=C,p[7]^=w;for(var b=0;b<4;b++)u.call(this)}},_doProcessBlock:function(h,d){var b=this._X;u.call(this),f[0]=b[0]^b[5]>>>16^b[3]<<16,f[1]=b[2]^b[7]>>>16^b[5]<<16,f[2]=b[4]^b[1]>>>16^b[7]<<16,f[3]=b[6]^b[3]>>>16^b[1]<<16;for(var x=0;x<4;x++)f[x]=(f[x]<<8|f[x]>>>24)&16711935|(f[x]<<24|f[x]>>>8)&4278255360,h[d+x]^=f[x]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,d=this._C,b=0;b<8;b++)l[b]=d[b];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var b=0;b<8;b++){var x=h[b]+d[b],p=x&65535,g=x>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,v=((x&4294901760)*x|0)+((x&65535)*x|0);a[b]=m^v}h[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,h[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,h[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,h[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,h[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,h[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,h[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,h[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=s._createHelper(c)}(),n.Rabbit})}(Ys)),Ys.exports}var Ks={exports:{}},Ll;function _g(){return Ll||(Ll=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,f=[],l=[],a=[],c=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,d=this.cfg.iv,b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],x=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var p=0;p<4;p++)u.call(this);for(var p=0;p<8;p++)x[p]^=b[p+4&7];if(d){var g=d.words,m=g[0],v=g[1],_=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,y=_>>>16|C&4294901760,w=C<<16|_&65535;x[0]^=_,x[1]^=y,x[2]^=C,x[3]^=w,x[4]^=_,x[5]^=y,x[6]^=C,x[7]^=w;for(var p=0;p<4;p++)u.call(this)}},_doProcessBlock:function(h,d){var b=this._X;u.call(this),f[0]=b[0]^b[5]>>>16^b[3]<<16,f[1]=b[2]^b[7]>>>16^b[5]<<16,f[2]=b[4]^b[1]>>>16^b[7]<<16,f[3]=b[6]^b[3]>>>16^b[1]<<16;for(var x=0;x<4;x++)f[x]=(f[x]<<8|f[x]>>>24)&16711935|(f[x]<<24|f[x]>>>8)&4278255360,h[d+x]^=f[x]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,d=this._C,b=0;b<8;b++)l[b]=d[b];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var b=0;b<8;b++){var x=h[b]+d[b],p=x&65535,g=x>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,v=((x&4294901760)*x|0)+((x&65535)*x|0);a[b]=m^v}h[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,h[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,h[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,h[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,h[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,h[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,h[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,h[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=s._createHelper(c)}(),n.RabbitLegacy})}(Ks)),Ks.exports}var Vs={exports:{}},ql;function yg(){return ql||(ql=1,function(t,e){(function(n,r,i){t.exports=r(ge(),Tn(),Rn(),xn(),Ke())})(de,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo;const f=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function u(p,g){let m=g>>24&255,v=g>>16&255,_=g>>8&255,C=g&255,y=p.sbox[0][m]+p.sbox[1][v];return y=y^p.sbox[2][_],y=y+p.sbox[3][C],y}function h(p,g,m){let v=g,_=m,C;for(let y=0;y<f;++y)v=v^p.pbox[y],_=u(p,v)^_,C=v,v=_,_=C;return C=v,v=_,_=C,_=_^p.pbox[f],v=v^p.pbox[f+1],{left:v,right:_}}function d(p,g,m){let v=g,_=m,C;for(let y=f+1;y>1;--y)v=v^p.pbox[y],_=u(p,v)^_,C=v,v=_,_=C;return C=v,v=_,_=C,_=_^p.pbox[1],v=v^p.pbox[0],{left:v,right:_}}function b(p,g,m){for(let w=0;w<4;w++){p.sbox[w]=[];for(let k=0;k<256;k++)p.sbox[w][k]=a[w][k]}let v=0;for(let w=0;w<f+2;w++)p.pbox[w]=l[w]^g[v],v++,v>=m&&(v=0);let _=0,C=0,y=0;for(let w=0;w<f+2;w+=2)y=h(p,_,C),_=y.left,C=y.right,p.pbox[w]=_,p.pbox[w+1]=C;for(let w=0;w<4;w++)for(let k=0;k<256;k+=2)y=h(p,_,C),_=y.left,C=y.right,p.sbox[w][k]=_,p.sbox[w][k+1]=C;return!0}var x=o.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,m=p.sigBytes/4;b(c,g,m)}},encryptBlock:function(p,g){var m=h(c,p[g],p[g+1]);p[g]=m.left,p[g+1]=m.right},decryptBlock:function(p,g){var m=d(c,p[g],p[g+1]);p[g]=m.left,p[g+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=s._createHelper(x)}(),n.Blowfish})}(Vs)),Vs.exports}(function(t,e){(function(n,r,i){t.exports=r(ge(),Wi(),J8(),Q8(),Tn(),$8(),Rn(),su(),Uo(),eg(),ou(),tg(),ng(),rg(),Ho(),ig(),xn(),Ke(),sg(),og(),ag(),lg(),cg(),fg(),ug(),dg(),hg(),pg(),xg(),mg(),gg(),bg(),vg(),_g(),yg())})(de,function(n){return n})})(iu);var wg=iu.exports;const kg=Y8(wg);let Eg=/[\/\?<>\\:\*\|"]/g,Cg=/[\x00-\x1f\x80-\x9f]/g,Ag=/^\.+$/,Sg=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,Dg=/[\. ]+$/,Bg=/^\./,Fg=/[\[\]#|^]/g,Tg="assets";function Nl(t){return t.replace(Eg,"").replace(Cg,"").replace(Ag,"").replace(Sg,"").replace(Dg,"").replace(Bg,"").replace(Fg,"")}function au(t){return new DOMParser().parseFromString(t,"text/html").documentElement}function Pe(t,e){return Array.from(t.querySelectorAll(e))}function zt(t,e,n){const r=document.createElement(t);if(typeof e=="string")r.textContent=e;else if(typeof e=="object"&&e!==null){if(e.text!==void 0&&(typeof e.text=="string"?r.textContent=e.text:r.appendChild(e.text)),e.cls&&(Array.isArray(e.cls)?r.classList.add(...e.cls):r.className=e.cls),e.attr){for(const i in e.attr)if(e.attr.hasOwnProperty(i)){const s=e.attr[i];s===null?r.removeAttribute(i):r.setAttribute(i,String(s))}}e.title&&(r.title=e.title),e.value&&(r.value=e.value),e.type&&(r.type=e.type),e.placeholder&&(r.placeholder=e.placeholder),e.href&&(r.href=e.href),e.parent&&(e.prepend&&e.parent.firstChild?e.parent.insertBefore(r,e.parent.firstChild):e.parent.appendChild(r))}return r}function Sr(t,e){return zt("span",t)}function Rg(t){return kg.MD5(t).toString()}function Og(t){return[...Array(t)].map(()=>"abcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random()*36))).join("")}function Dt(){return new Date().toISOString().replace(/[-:.TZ]/g,"").slice(0,14)+"-"+Og(7)}async function Pg(t,e){var r,i;let{filepath:n}=e;if(e.extension==="html"){const s=await e.readText(),o=au(s),l=o.querySelector("body").children;let a;for(let b=0;b<l.length&&(a=An(l[b].getAttribute("id")??""),!a);b++);if(!a)throw new Error("no id found for: "+n);const c=Wl(o,"property-row-created_time"),u=Wl(o,"property-row-last_edited_time"),h=((r=o.querySelector("title"))==null?void 0:r.textContent)||"Untitled";let d=Ig(Nl(h.replace(/\n/g," ").replace(/[:\/]/g,"-").replace(/#/g,"").trim()));t.idsToFileInfo[a]={path:n,parentIds:nl(n),ctime:c,mtime:u,title:d,blockID:"",hasContent:!!((i=o.querySelector("div[class=page-body]"))!=null&&i.innerHTML.trim().length)}}else{let s=Rg(e.fullpath),o=decodeURI(Nl(e.name));const f=o.split(".");let l="";f.length>0&&(l=f.pop());let a=`${Tg}/notion/${s.substring(0,2)}/${s}.${l}`;t.pathsToAttachmentInfo[n]={path:n,parentIds:nl(n),nameWithExtension:o,targetParentFolder:"",pathInSiYuanMd:a,pathInSiYuanFs:`/data/${a}`}}}function Ig(t){if(t.length<200)return t;const e=t.split(" "),n=[];let r=0,i=0,s=!1;for(;r<200;){if(!e[i]){s=!0;break}n.push(e[i]),r+=e[i].length+1}let o=n.join(" ");return s||(o+="..."),o}function Lg(t){const e=t.startsWith("@")?t.substr(1).trim():t.trim(),n=new Date(e);return isNaN(n.getTime())?null:n}function Wl(t,e){const n=t.querySelector(`tr.${e}`);if(n){const r=n.querySelector("time");return r&&r.textContent?Lg(r.textContent):null}return null}let qg=window.Lute.New();function lu(t){return qg.HTML2Md(t)}async function Ng(t,e){var d;const n=await e.readText(),r=au(n),i=r.querySelector("div[class=page-body]");if(i===null)throw new Error("page body was not found");Qg(i),i.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(b=>{const x=document.createElement("div");x.innerHTML=b.outerHTML,b.replaceWith(x)});let o=$g(t,r);const f=jl(t,i);Vl(t,f);let l={};const a=r.querySelector("table[class=properties] > tbody");if(a){const b=jl(t,a);Vl(t,b),Jg(a);for(let x of Array.from(a.rows)){const p=Wg(x);p&&(p.title=p.title.trim().replace(/ /g,"-"),p.title=="Tags"&&(p.title="tags"),l[p.title]=p.content)}}zl(i,"strong"),zl(i,"em"),Hg(i),Ug(i),Vg(i),du(i),jg(i),Yl(i,"div.indented"),Yl(i,"details"),Zg(i),Xg(i),Kl(i,"ul"),Kl(i,"ol"),Gg(i),Kg(i),Yg(i),r.querySelectorAll("code[class^=language-]").forEach(b=>{b.className=b.className.toLowerCase()});let c=i.innerHTML;Ul(c,"strong"),Ul(c,"em");let u=lu(c);t.singleLineBreaks&&(u=u.replace(/\n\n(?!>)/g,`
`)),u=z8(u),u=Mg(u);const h=(d=r.querySelector("p[class*=page-description]"))==null?void 0:d.textContent;return h&&(u=h+`
`+u),u=u.replace(/\[:av:(.*?):\]/g,(b,x)=>`<div data-type="NodeAttributeView" data-av-id="${x}" data-av-type="table"></div>`),{content:u.trim(),attrs:l,attributeViews:o}}const Ml={checkbox:["checkbox"],date:["created_time","last_edited_time","date"],list:["file","multi_select","relation"],number:["number","auto_increment_id"],text:["email","person","phone_number","text","url","status","select","formula","rollup","last_edited_by","created_by"]};function Wg(t){var o,f,l;const e=(o=t.className.match(/property-row-(.*)/))==null?void 0:o[1];if(!e)throw new Error("property type not found for: "+t);const n=lu(t.cells[0].textContent??""),r=t.cells[1];let i=Object.keys(Ml).find(a=>Ml[a].includes(e));if(!i)throw new Error("type not found for: "+r);let s="";switch(i){case"checkbox":s=String(r.innerHTML.includes("checkbox-on"));break;case"number":const a=Number(r.textContent);if(isNaN(a))return;s=String(a);break;case"date":du(r),s=((f=r.querySelector("time"))==null?void 0:f.textContent)||"";break;case"list":const c=r.children,u=[];for(let h=0;h<c.length;h++){const d=(l=c.item(h))==null?void 0:l.textContent;d&&u.push(d)}if(s=u.join(`
`),s.length===0)return;break;case"text":if(s=r.textContent??"",s.length===0)return;break}return{title:n,content:s}}function cu(t){return/(\.png|\.jpg|\.webp|\.gif|\.bmp|\.jpeg)\!?\S*$/i.test(t)}function fu(t){return j8(decodeURI(t.getAttribute("href")??""))}function uu(t,e){for(const n of Object.keys(t.pathsToAttachmentInfo))if(n.includes(e))return t.pathsToAttachmentInfo[n]}function jl(t,e){const n=[];for(const r of Pe(e,"a")){const i=fu(r),s=An(i),o=uu(t,i);if(s&&i.endsWith(".html"))n.push({type:"relation",a:r,id:s});else if(o){let f="attachment";cu(i)&&(f="image"),n.push({type:f,a:r,path:o.path})}}return n}function Mg(t){const e=/\[\[[^\]]*(\\\\)\|[^\]]*\]\]/,n=t.match(new RegExp(e,"g"));return n==null||n.forEach(r=>{t=t.replace(r,r.replace(/\\\\\|/g,"\\|"))}),t}function jg(t){for(const n of Pe(t,".katex-html"))n.remove();const e=Pe(t,"math");for(const n of e){const r=n.querySelector("annotation");r&&(r.textContent=r.textContent.trim(),!/\\begin\{.*?\}[\s\S]+\\end\{.*?\}/gmi.test(r.textContent)&&(r.textContent=`\\begin{align}
${r.textContent}
\\end{align}`,n.replaceWith(r)))}}function zg(t){var n;return((n=t.match(/^[^\.\?\!\n]*[\.\?\!]?/))==null?void 0:n[0])??""}function Ug(t){for(let e of Pe(t,"figure.callout")){const n=zt("blockquote"),r=Sr();r.textContent="[!important]",n.replaceChildren(...e.childNodes),n.insertBefore(r,n.firstChild),e.replaceWith(n)}}function Hg(t){var e,n;for(let r of Pe(t,"a.bookmark.source")){const i=r.getAttribute("href"),s=(e=r.querySelector("div.bookmark-title"))==null?void 0:e.textContent,o=zg(((n=r.querySelector("div.bookmark-description"))==null?void 0:n.textContent)??"");let f=zt("blockquote");const l=["[!bookmark]🔖",s,o];let a=[];for(const h of l){const d=zt("div");d.textContent=h.replace(/\n/g,"<br />"),a.push(d)}const c=zt("div"),u=zt("a");u.setAttribute("href",i),u.textContent=i,c.appendChild(u),a.push(c);for(const h of a)f.appendChild(h);r.replaceWith(f)}}function Yg(t){var e;for(const n of Pe(t,"span[class=user]"))n.innerText=n.textContent??"";for(const n of Pe(t,"td div[class*=checkbox]")){const r=Sr();r.textContent=n.classList.contains("checkbox-on")?"X":"",n.replaceWith(r)}for(const n of Pe(t,"table span[class*=selected-value]"))((e=n.parentElement)==null?void 0:e.lastElementChild)!==n&&(n.textContent=n.textContent+", ");for(const n of Pe(t,"a[href]"))if(!/^(https?:\/\/|www\.)/.test(n.href)){const r=Sr();r.textContent=n.textContent??"",n.replaceWith(r)}}function zl(t,e){for(const n of Pe(t,e)){if(!n.parentElement||n.parentElement.tagName===e.toUpperCase())continue;let r=n.querySelector(e);for(;r;)ru(r),r=n.querySelector(e)}}function Ul(t,e){const n=t.match(new RegExp(`<${e}>(.|
)*</${e}>`));if(n)for(let r of n.filter(i=>i.includes("<br />")))t=t.replace(r,r.split("<br />").join(`</${r}><br /><${r}>`))}function Kg(t){var n;const e=Pe(t,"a[href*=\\#]");for(const r of e)(n=r.getAttribute("href"))!=null&&n.startsWith("#")&&r.setAttribute("href","#"+r.textContent)}function Vg(t){for(const e of Pe(t,"link"))e.innerText=e.textContent??""}function du(t){var e;for(const n of Pe(t,"time"))n.textContent=((e=n.textContent)==null?void 0:e.replace(/@/g,""))??""}const Hl={"1.875em":"h1","1.5em":"h2","1.25em":"h3"};function Zg(t){const e=Pe(t,"summary");for(const n of e){const r=n.getAttribute("style");if(r){for(const i of Object.keys(Hl))if(r.includes(i)){n.replaceWith(zt(Hl[i],{text:n.textContent??""}));break}}}}function Xg(t){const e=Pe(t,"summary");for(const n of e){if(n.getAttribute("style"))continue;const i=n.closest("li");i&&i.replaceWith(...i.childNodes),n.replaceWith(zt("li",{text:n.textContent??""}))}}function Yl(t,e){let n=Pe(t,e);for(const r of n)ru(r)}function Kl(t,e){for(const n of Pe(t,e)){const r=[],i=[];let s=n;for(;s.tagName===e.toUpperCase();){r.push(s);for(let f=0;f<s.children.length;f++)i.push(s.children[f]);if(!s.nextElementSibling||s.getAttribute("class")!==s.nextElementSibling.getAttribute("class"))break;s=s.nextElementSibling}const o=zt(e);for(const f of i)o.appendChild(f);r[0].replaceWith(o),r.slice(1).forEach(f=>f.remove())}}function Gg(t){for(let e of Pe(t,".checkbox.checkbox-on"))e.replaceWith("[x] ");for(let e of Pe(t,".checkbox.checkbox-off"))e.replaceWith("[ ] ")}function Jg(t){const e=Pe(t,"a");if(e.length===0)return t;for(const n of e){const r=Sr();r.textContent=n.getAttribute("href")??"",n.replaceWith(r)}}function Vl(t,e){for(let n of e){let r=Sr();switch(n.type){case"relation":const i=t.idsToFileInfo[n.id];if(i&&i.blockID!=="")r.textContent=`((${i.blockID} '${i.title}'))`;else{console.warn("missing relation data for id: "+n.id);const{basename:f}=Ni(decodeURI(n.a.getAttribute("href")??""));r.textContent=`[[${M8(f)}]]`}break;case"attachment":let s=t.pathsToAttachmentInfo[n.path];if(!s){console.warn("missing attachment data for: "+n.path);continue}r.textContent=`[${s.nameWithExtension}](${s.pathInSiYuanMd})`;break;case"image":r=zt("img");let o=t.pathsToAttachmentInfo[n.path];if(!o){console.warn("missing image file for: "+n.path);continue}r.setAttribute("src",o.pathInSiYuanMd),r.setAttribute("alt",o.nameWithExtension);break}n.a.replaceWith(r)}}function Qg(t){for(const e of Pe(t,"script[src]"))e.remove();for(const e of Pe(t,'link[rel="stylesheet"]'))e.remove();for(const e of Pe(t,"style"))e.remove()}function Wn(t,e,n){return{id:Dt(),name:t,type:e,icon:"",numberFormat:"",template:"",options:n}}function $g(t,e){var l;let n=[];if(!!!e.querySelector('table[class="collection-content"]'))return[];const i=!!e.querySelector('div[class="collection-content"]');i?n=Array.from(e.querySelectorAll('div[class="collection-content"]')).map(a=>{var c;return{title:((c=a.querySelector(".collection-title"))==null?void 0:c.innerText.trim())||"",tableNode:a.querySelector('table[class="collection-content"]')}}):n=[{title:((l=e.querySelector(".page-title"))==null?void 0:l.innerText.trim())||"",tableNode:e.querySelector('table[class="collection-content"]')}];let s=n.map(a=>{let c=a.tableNode,u=Array.from(c.querySelectorAll("thead > tr > th")).map(d=>({type:d.querySelector("span > svg").classList[0],name:d.innerText.trim(),selectValues:new Set,values:[]})),h=0;for(const d of u.keys())if(u[d].type==="typesTitle"){h=d;break}return Array.from(c.querySelectorAll("tbody > tr")).forEach(d=>{var g;const b=An(d.querySelectorAll("td")[h].querySelector("a").href),x=((g=t.idsToFileInfo[b])==null?void 0:g.blockID)||Dt(),p=!!(t.idsToFileInfo[b]&&t.idsToFileInfo[b].blockID!=="");Array.from(d.querySelectorAll("td")).forEach((m,v)=>{let _={rowid:x,hasRelBlock:p};if(u[v].type==="typesTitle")u[v].values.push({..._,value:m.querySelector("a").innerText.trim()});else if(u[v].type==="typesDate"){const C=m.innerText.trim().replace("@","").split("→").map(y=>y.trim()).filter(Boolean);u[v].values.push({..._,value:C})}else if(["typesSelect","typesMultipleSelect"].includes(u[v].type)){let C=Array.from(m.querySelectorAll("span.selected-value")).map(y=>{const w=y.innerText.trim();return u[v].selectValues.add(w),w});u[v].values.push({..._,value:C})}else u[v].type==="typesCheckbox"?u[v].values.push({..._,value:!!m.querySelector("div.checkbox-on")}):u[v].type==="typesFile"?u[v].values.push({..._,value:Array.from(m.querySelectorAll("a")).map(C=>fu(C))}):u[v].values.push({..._,value:m.innerText.trim()})})}),{title:a.title,cols:u}});console.log(s);let o=s.map(a=>{let c=[],u=[];for(const p of a.cols){let g="text";switch(p.type){case"typesTitle":g="block";break;case"typesDate":g="date";break;case"typesSelect":g="select";break;case"typesMultipleSelect":g="mSelect";break;case"typesCheckbox":g="checkbox";break;case"typesFile":g="mAsset";break}let m={key:{},values:[]};if(g==="date")m.key=Wn(`${p.name}`,g,[]),m.values=p.values.filter(v=>!!v.value.length).map(v=>{const _=v.value.map(U8),C={id:Dt(),keyID:m.key.id,blockID:v.rowid,type:g,createdAt:Date.now(),updatedAt:Date.now(),date:{content:_[0],isNotEmpty:!0,hasEndDate:!1,isNotTime:H8(_[0]),content2:0,isNotEmpty2:!1,formattedContent:""}};return _.length===2&&(C.date.hasEndDate=!0,C.date.content2=_[1],C.date.isNotEmpty2=!0),C});else if(["select","mSelect"].includes(g)){let v=new Map;for(const[_,C]of Array.from(p.selectValues).entries())v.set(C,`${_+1}`);m.key=Wn(`${p.name}`,g,Array.from(v,([_,C])=>({name:_,color:C}))),m.values=p.values.filter(_=>!!_.value.length).map(_=>({id:Dt(),keyID:m.key.id,blockID:_.rowid,type:g,createdAt:Date.now(),updatedAt:Date.now(),mSelect:_.value.map(C=>({content:C,color:v.get(C)}))}))}else g==="block"?(m.key=Wn(`${p.name}`,g,[]),m.values=p.values.map(v=>(u.push(v.rowid),{id:Dt(),keyID:m.key.id,blockID:v.rowid,type:g,isDetached:!v.hasRelBlock,createdAt:Date.now(),updatedAt:Date.now(),block:{id:v.rowid,content:v.value,created:Date.now(),updated:Date.now()}}))):g==="checkbox"?(m.key=Wn(`${p.name}`,g,[]),m.values=p.values.filter(v=>v.value).map(v=>({id:Dt(),keyID:m.key.id,blockID:v.rowid,type:g,createdAt:Date.now(),updatedAt:Date.now(),checkbox:{checked:v.value}}))):g==="mAsset"?(m.key=Wn(`${p.name}`,g,[]),m.values=p.values.filter(v=>!!v.value.length).map(v=>({id:Dt(),keyID:m.key.id,blockID:v.rowid,type:g,createdAt:Date.now(),updatedAt:Date.now(),mAsset:v.value.map(_=>{let C="file";cu(_)&&(C="image");let y=_;console.log(_),console.log(t.pathsToAttachmentInfo);const w=uu(t,_);return w&&(y=w.pathInSiYuanMd),{type:C,name:y,content:y}})}))):(m.key=Wn(`${p.name}`,"text",[]),m.values=p.values.filter(v=>!!v.value).map(v=>({id:Dt(),keyID:m.key.id,blockID:v.rowid,type:"text",createdAt:Date.now(),updatedAt:Date.now(),text:{content:v.value}})));c.push(m)}const h=Dt(),d=Dt(),b=Dt();return{spec:0,id:h,name:a.title,keyValues:c,keyIDs:null,viewID:d,views:[{id:d,icon:"",name:"表格",hideAttrViewName:!1,type:"table",table:{spec:0,id:b,columns:c.map(p=>({id:p.key.id,wrap:!1,hidden:!1,pin:!1,width:""})),rowIds:u,filters:[],sorts:[],pageSize:50}}]}});console.log(o);let f='table[class="collection-content"]';return i&&(f='div[class="collection-content"]'),e.querySelectorAll(f).forEach((a,c)=>{var u=document.createElement("div");u.textContent=`[:av:${o[c].id}:]`,a.parentNode.replaceChild(u,a)}),o}function Zl(t,e,n){const r=t.slice();return r[3]=e[n],r}function e3(t){let e;return{c(){e=ce("p"),e.textContent="未选择任何文件",W(e,"class","svelte-jf9c0v")},m(n,r){se(n,e,r)},p:De,d(n){n&&ie(e)}}}function t3(t){let e,n=di(t[0]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Xl(Zl(t,n,i));return{c(){e=ce("ul");for(let i=0;i<r.length;i+=1)r[i].c();W(e,"class","svelte-jf9c0v")},m(i,s){se(i,e,s);for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(e,null)},p(i,s){if(s&1){n=di(i[0]);let o;for(o=0;o<n.length;o+=1){const f=Zl(i,n,o);r[o]?r[o].p(f,s):(r[o]=Xl(f),r[o].c(),r[o].m(e,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(i){i&&ie(e),ku(r,i)}}}function Xl(t){let e,n=t[3].name+"",r;return{c(){e=ce("li"),r=Pt(n),W(e,"class","svelte-jf9c0v")},m(i,s){se(i,e,s),le(e,r)},p(i,s){s&1&&n!==(n=i[3].name+"")&&Jt(r,n)},d(i){i&&ie(e)}}}function n3(t){let e,n,r,i,s,o,f,l,a;function c(d,b){return d[0].length>0?t3:e3}let u=c(t),h=u(t);return{c(){e=ce("div"),n=ce("label"),n.textContent="选择你要导入的文件",r=Ae(),i=ce("input"),o=Ae(),f=ce("div"),h.c(),W(n,"for","file-upload"),W(i,"id","file-upload"),W(i,"type","file"),W(i,"accept",s=t[1].join(",")),W(i,"class","svelte-jf9c0v"),W(e,"class","file-input svelte-jf9c0v"),W(f,"class","file-list svelte-jf9c0v")},m(d,b){se(d,e,b),le(e,n),le(e,r),le(e,i),se(d,o,b),se(d,f,b),h.m(f,null),l||(a=ze(i,"change",t[2]),l=!0)},p(d,[b]){b&2&&s!==(s=d[1].join(","))&&W(i,"accept",s),u===(u=c(d))&&h?h.p(d,b):(h.d(1),h=u(d),h&&(h.c(),h.m(f,null)))},i:De,o:De,d(d){d&&(ie(e),ie(o),ie(f)),h.d(),l=!1,a()}}}function r3(t,e,n){let{files:r=[]}=e,{accept_ext:i=[]}=e;function s(o){n(0,r=Array.from(o.target.files))}return t.$$set=o=>{"files"in o&&n(0,r=o.files),"accept_ext"in o&&n(1,i=o.accept_ext)},[r,i,s]}class i3 extends st{constructor(e){super(),it(this,e,r3,n3,Ue,{files:0,accept_ext:1})}}function s3(t){let e,n,r,i,s,o,f,l,a,c,u;return{c(){e=ft("svg"),n=ft("g"),r=ft("circle"),i=ft("animateTransform"),s=ft("animate"),o=ft("polygon"),f=ft("path"),l=ft("polygon"),a=ft("circle"),c=ft("animateTransform"),u=ft("animate"),W(i,"attributeName","transform"),W(i,"type","translate"),W(i,"values","1180 0;1180 0;590 240;0 0"),W(i,"keyTimes","0;0.5;0.75;1"),W(i,"keySplines","0 0 1 1;0.5 0 1 1;0 0 0.5 1"),W(i,"calcMode","spline"),W(i,"begin","0s"),W(i,"dur","2s"),W(i,"repeatCount","indefinite"),W(i,"fill","freeze"),W(s,"attributeType","XML"),W(s,"attributeName","opacity"),W(s,"values","0;1;1;1"),W(s,"keyTimes","0;0.5;0.75;1"),W(s,"begin","0s"),W(s,"dur","2s"),W(s,"calcMode","discrete"),W(s,"repeatCount","indefinite"),W(s,"fill","freeze"),W(r,"id","ball2"),W(r,"fill","#FF7802"),W(r,"cx","161.5"),W(r,"cy","926.5"),W(r,"r","146.5"),W(o,"id","bodyBG"),W(o,"fill","#FFFFFF"),W(o,"points","750.192515 180.192515 1305.69251 736.599765 750.192515 1293.00702 194.692515 736.599766"),W(f,"d","M750.493037,181.006963 L1111.993,542.506963 L1111.993,932.492963 L750.493037,1293.99304 L399.993,943.492963 L399.993,531.506963 L750.493037,181.006963 Z M800.993037,1114 L705.993037,1114 L705.993037,1209 L800.993037,1209 L800.993037,1114 Z M800.993037,973 L705.993037,973 L705.993037,1068 L800.993037,1068 L800.993037,973 Z M800.993037,832 L705.993037,832 L705.993037,927 L800.993037,927 L800.993037,832 Z M367.993,563.506963 L367.993,911.492963 L194,737.5 L367.993,563.506963 Z M1143.993,574.506963 L1306.98607,737.5 L1143.993,900.492963 L1143.993,574.506963 Z M800.993037,691 L705.993037,691 L705.993037,786 L800.993037,786 L800.993037,691 Z M800.993037,550 L705.993037,550 L705.993037,645 L800.993037,645 L800.993037,550 Z"),W(f,"id","body"),W(f,"fill","#000000"),W(l,"id","hair"),W(l,"fill","#989898"),W(l,"points","567.140656 0.359343673 749.574206 182.792893 932.007755 0.359343673 1115.14841 183.5 749.574206 549.074206 384 183.5"),W(c,"attributeName","transform"),W(c,"type","translate"),W(c,"values","0 0;590 240;1180 0;1180 0"),W(c,"keyTimes","0;0.25;0.5;1"),W(c,"keySplines","0.5 0 1 1;0 0 0.5 1;0 0 1 1"),W(c,"calcMode","spline"),W(c,"begin","0s"),W(c,"dur","2s"),W(c,"repeatCount","indefinite"),W(c,"fill","freeze"),W(u,"attributeType","XML"),W(u,"attributeName","opacity"),W(u,"values","1;1;0;0"),W(u,"keyTimes","0;0.25;0.5;1"),W(u,"begin","0s"),W(u,"dur","2s"),W(u,"repeatCount","indefinite"),W(u,"calcMode","discrete"),W(u,"fill","freeze"),W(a,"id","ball1"),W(a,"fill","#FF7802"),W(a,"cx","161.5"),W(a,"cy","926.5"),W(a,"r","146.5"),W(n,"id","logo"),W(n,"stroke","none"),W(n,"stroke-width","1"),W(n,"fill","none"),W(n,"fill-rule","evenodd"),W(e,"width","1em"),W(e,"height","1em"),W(e,"viewBox","0 0 1500 1315"),W(e,"version","1.1"),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),W(e,"class","inline")},m(h,d){se(h,e,d),le(e,n),le(n,r),le(r,i),le(r,s),le(n,o),le(n,f),le(n,l),le(n,a),le(a,c),le(a,u)},p:De,i:De,o:De,d(h){h&&ie(e)}}}class o3 extends st{constructor(e){super(),it(this,e,null,s3,Ue,{})}}function a3(t){let e,n,r,i,s;function o(l){t[7](l)}let f={accept_ext:[".zip"]};return t[2]!==void 0&&(f.files=t[2]),r=new i3({props:f}),dt.push(()=>zu(r,"files",o)),{c(){e=ce("div"),n=Ae(),we(r.$$.fragment),W(e,"class","rounded")},m(l,a){se(l,e,a),se(l,n,a),_e(r,l,a),s=!0},p(l,a){const c={};!i&&a&4&&(i=!0,c.files=l[2],Iu(()=>i=!1)),r.$set(c)},i(l){s||(K(r.$$.fragment,l),s=!0)},o(l){X(r.$$.fragment,l),s=!1},d(l){l&&(ie(e),ie(n)),ye(r,l)}}}function l3(t){let e,n;return e=new hi({props:{span:24,$$slots:{default:[a3]},$$scope:{ctx:t}}}),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i&2052&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function Gl(t){let e,n;return e=new o3({}),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function c3(t){let e,n=t[0].i18n.import+"",r,i,s=t[1]&&Gl();return{c(){s&&s.c(),e=Ae(),r=Pt(n)},m(o,f){s&&s.m(o,f),se(o,e,f),se(o,r,f),i=!0},p(o,f){o[1]?s?f&2&&K(s,1):(s=Gl(),s.c(),K(s,1),s.m(e.parentNode,e)):s&&(Ne(),X(s,1,1,()=>{s=null}),We()),(!i||f&1)&&n!==(n=o[0].i18n.import+"")&&Jt(r,n)},i(o){i||(K(s),i=!0)},o(o){X(s),i=!1},d(o){o&&(ie(e),ie(r)),s&&s.d(o)}}}function f3(t){let e,n;return e=new $2({props:{type:"primary",cls:"mx-2 float-right",disabled:t[1],$$slots:{default:[c3]},$$scope:{ctx:t}}}),e.$on("click",t[3]),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i&2&&(s.disabled=r[1]),i&2051&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function u3(t){let e,n;return e=new hi({props:{span:24,$$slots:{default:[f3]},$$scope:{ctx:t}}}),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i&2051&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function d3(t){let e,n,r,i,s,o,f;return n=new _r({props:{$$slots:{default:[l3]},$$scope:{ctx:t}}}),i=new To({}),o=new _r({props:{$$slots:{default:[u3]},$$scope:{ctx:t}}}),{c(){e=ce("div"),we(n.$$.fragment),r=Ae(),we(i.$$.fragment),s=Ae(),we(o.$$.fragment)},m(l,a){se(l,e,a),_e(n,e,null),le(e,r),_e(i,e,null),le(e,s),_e(o,e,null),f=!0},p(l,[a]){const c={};a&2052&&(c.$$scope={dirty:a,ctx:l}),n.$set(c);const u={};a&2051&&(u.$$scope={dirty:a,ctx:l}),o.$set(u)},i(l){f||(K(n.$$.fragment,l),K(i.$$.fragment,l),K(o.$$.fragment,l),f=!0)},o(l){X(n.$$.fragment,l),X(i.$$.fragment,l),X(o.$$.fragment,l),f=!1},d(l){l&&ie(e),ye(n),ye(i),ye(o)}}}function h3(t,e,n){const r=pn();let i=0,s=100;const o=new uf;let{currentNotebook:f={name:""}}=e,{pluginInstance:l}=e,a=!1;async function c(b,x){for(let p of b)try{await W8(p,async(g,m)=>{for(let v of m){if(v.extension==="md"&&An(v.name))throw console.log("Notion Markdown export detected. Please export Notion data to HTML instead."),new Error("Notion importer uses only HTML exports. Please use the correct format.");if(!(v.extension==="csv"&&An(v.name))&&v.name!=="index.html")if(v.extension==="zip"&&v.parent==="")try{await c([v],x)}catch(_){console.log(v.fullpath,_)}else await x(v)}})}catch{console.log(p.fullpath)}}let u;async function h(b){n(1,a=!0);try{for(const x of u){console.log(`${x.name}: ${x.size} bytes`);const p=new q8("",!1);let g=[new I8(x)];console.log("Looking for files to import"),mr.showMessage(l.i18n.startCollectFilePreImport,1e3*30,"info"),n(6,s=0);let m=!0;await c(g,async y=>{n(6,s+=1),m&&(r("startImport"),console.log("Starting import"),m=!1);try{await Pg(p,y)}catch(w){console.log("文件搜集 Import skipped",y.fullpath,w)}}),n(6,s+=Object.keys(p.idsToFileInfo).length),mr.showMessage(l.i18n.startImport,1e3*15,"info"),console.log("Creating all document...");let v=new Map;for(const y of Object.values(p.idsToFileInfo))y.parentIds.forEach(w=>{v.set(w,(v.get(w)||0)+1)});let _=0,C=0;for(;;){for(const[y,w]of Object.entries(p.idsToFileInfo))if(w.path.split("/").length===_){n(5,i+=1),C+=1;const k=`${p.getPathForFile(w)}${w.title}`;if(!w.hasContent&&!v.get(y)){console.log(`"${k}"'s content is blank, create doc skipped`);continue}const S={markdown:"",notebook:f.id,path:k},E=await o.createDocWithMd(S);if(E.code!==0){console.error(E.msg);continue}p.idsToFileInfo[y].blockID=E.data}if(_+=1,C===Object.keys(p.idsToFileInfo).length)break}await c(g,async y=>{n(5,i++,i);try{if(y.extension==="html"){const w=An(y.name);if(!w)throw new Error("ids not found for "+y.filepath);const k=p.idsToFileInfo[w];if(!k)throw new Error("file info not found for "+y.filepath);const S=`${p.getPathForFile(k)}${k.title}`;if(k.blockID===""){console.log(`"${S}"'s blockID is blank, write doc skipped`);return}console.log(`Importing note ${k.title}`);const E=await Ng(p,y);for(const B of E.attributeViews){const D=JSON.stringify(B),F=new Blob([D],{type:"application/json"}),R=await o.putFile({file:new File([F],"data.json",{type:"application/json"}),path:`/data/storage/av/${B.id}.json`});R.code!==0&&console.log(`put attribute view failed: ${R.msg}`)}const A=await o.updateBlock({data:E.content,dataType:"markdown",id:k.blockID});if(A.code!==0){console.error(A.msg);return}for(const B of E.attributeViews)for(const D of B.keyValues)if(D.key.type==="block")for(const F of D.values){if(F!=null&&F.isDetached)continue;(await o.setBlockAttrs({attrs:{"custom-avs":B.id},id:F.block.id})).code!==0&&console.log(A.msg)}}else{const w=p.pathsToAttachmentInfo[y.filepath];if(!w)throw new Error("attachment info not found for "+y.filepath);console.log(`Importing attachment ${y.name}`);const k=await y.read(),S=await o.putFile({file:new File([k],y.name),path:w.pathInSiYuanFs});if(S.code!==0){console.error(S.msg);return}}console.log(`progress ${i}/${s}`)}catch(w){console.log(y.fullpath,w)}})}mr.showMessage(l.i18n.importFinish,-1,"info")}finally{n(1,a=!1)}}function d(b){u=b,n(2,u)}return t.$$set=b=>{"currentNotebook"in b&&n(4,f=b.currentNotebook),"pluginInstance"in b&&n(0,l=b.pluginInstance)},t.$$.update=()=>{t.$$.dirty&96&&r("progressChange",{current:i,total:s})},[l,a,u,h,f,i,s,d]}class p3 extends st{constructor(e){super(),it(this,e,h3,d3,Ue,{currentNotebook:4,pluginInstance:0})}}function x3(t){let e,n=t[0].i18n.notebook+"",r;return{c(){e=ce("span"),r=Pt(n)},m(i,s){se(i,e,s),le(e,r)},p(i,s){s&1&&n!==(n=i[0].i18n.notebook+"")&&Jt(r,n)},d(i){i&&ie(e)}}}function m3(t){let e,n=t[0].i18n.pleaseSelectNotebook+"",r;return{c(){e=ce("span"),r=Pt(n)},m(i,s){se(i,e,s),le(e,r)},p(i,s){s&1&&n!==(n=i[0].i18n.pleaseSelectNotebook+"")&&Jt(r,n)},d(i){i&&ie(e)}}}function g3(t){let e,n,r,i;return e=new _r({props:{$$slots:{default:[x3]},$$scope:{ctx:t}}}),r=new _r({props:{$$slots:{default:[m3]},$$scope:{ctx:t}}}),{c(){we(e.$$.fragment),n=Ae(),we(r.$$.fragment)},m(s,o){_e(e,s,o),se(s,n,o),_e(r,s,o),i=!0},p(s,o){const f={};o&2049&&(f.$$scope={dirty:o,ctx:s}),e.$set(f);const l={};o&2049&&(l.$$scope={dirty:o,ctx:s}),r.$set(l)},i(s){i||(K(e.$$.fragment,s),K(r.$$.fragment,s),i=!0)},o(s){X(e.$$.fragment,s),X(r.$$.fragment,s),i=!1},d(s){s&&ie(n),ye(e,s),ye(r,s)}}}function b3(t){let e,n;return e=new Vd({props:{value:t[2].name,dataList:t[1],labelKey:"label",valueKey:"value",key:"label",cls:"float-right"}}),e.$on("updateValue",t[6]),{c(){we(e.$$.fragment)},m(r,i){_e(e,r,i),n=!0},p(r,i){const s={};i&4&&(s.value=r[2].name),i&2&&(s.dataList=r[1]),e.$set(s)},i(r){n||(K(e.$$.fragment,r),n=!0)},o(r){X(e.$$.fragment,r),n=!1},d(r){ye(e,r)}}}function v3(t){let e,n,r,i;return e=new hi({props:{span:14,$$slots:{default:[g3]},$$scope:{ctx:t}}}),r=new hi({props:{span:10,$$slots:{default:[b3]},$$scope:{ctx:t}}}),{c(){we(e.$$.fragment),n=Ae(),we(r.$$.fragment)},m(s,o){_e(e,s,o),se(s,n,o),_e(r,s,o),i=!0},p(s,o){const f={};o&2049&&(f.$$scope={dirty:o,ctx:s}),e.$set(f);const l={};o&2054&&(l.$$scope={dirty:o,ctx:s}),r.$set(l)},i(s){i||(K(e.$$.fragment,s),K(r.$$.fragment,s),i=!0)},o(s){X(e.$$.fragment,s),X(r.$$.fragment,s),i=!1},d(s){s&&ie(n),ye(e,s),ye(r,s)}}}function Jl(t){let e,n,r,i;return e=new ch({props:{percentage:Number((t[3]/t[4]*100).toFixed(1))}}),r=new To({}),{c(){we(e.$$.fragment),n=Ae(),we(r.$$.fragment)},m(s,o){_e(e,s,o),se(s,n,o),_e(r,s,o),i=!0},p(s,o){const f={};o&24&&(f.percentage=Number((s[3]/s[4]*100).toFixed(1))),e.$set(f)},i(s){i||(K(e.$$.fragment,s),K(r.$$.fragment,s),i=!0)},o(s){X(e.$$.fragment,s),X(r.$$.fragment,s),i=!1},d(s){s&&ie(n),ye(e,s),ye(r,s)}}}function _3(t){let e,n,r,i,s,o,f,l;n=new _r({props:{$$slots:{default:[v3]},$$scope:{ctx:t}}}),i=new To({});let a=t[5]&&Jl(t);return f=new p3({props:{currentNotebook:t[2],pluginInstance:t[0]}}),f.$on("progressChange",t[7]),f.$on("startImport",t[8]),{c(){e=ce("div"),we(n.$$.fragment),r=Ae(),we(i.$$.fragment),s=Ae(),a&&a.c(),o=Ae(),we(f.$$.fragment)},m(c,u){se(c,e,u),_e(n,e,null),le(e,r),_e(i,e,null),le(e,s),a&&a.m(e,null),le(e,o),_e(f,e,null),l=!0},p(c,[u]){const h={};u&2055&&(h.$$scope={dirty:u,ctx:c}),n.$set(h),c[5]?a?(a.p(c,u),u&32&&K(a,1)):(a=Jl(c),a.c(),K(a,1),a.m(e,o)):a&&(Ne(),X(a,1,1,()=>{a=null}),We());const d={};u&4&&(d.currentNotebook=c[2]),u&1&&(d.pluginInstance=c[0]),f.$set(d)},i(c){l||(K(n.$$.fragment,c),K(i.$$.fragment,c),K(a),K(f.$$.fragment,c),l=!0)},o(c){X(n.$$.fragment,c),X(i.$$.fragment,c),X(a),X(f.$$.fragment,c),l=!1},d(c){c&&ie(e),ye(n),ye(i),a&&a.d(),ye(f)}}}function y3(t,e,n){const r=new uf;let i=[],s={name:""},o=0,f=100,l=!1;const a=new Set(["思源笔记用户指南","SiYuan User Guide"]);Fr(async()=>{const p=(await r.lsNotebooks()).data.notebooks??[];n(1,i=p.filter(g=>!g.closed&&!a.has(g.name)).map(g=>({label:g.name,value:g})))});const c=async function(b){n(2,s=b.detail.value)};function u(b){n(3,o=b.detail.current),n(4,f=b.detail.total)}function h(b){n(5,l=!0)}let{pluginInstance:d}=e;return t.$$set=b=>{"pluginInstance"in b&&n(0,d=b.pluginInstance)},[d,i,s,o,f,l,c,u,h]}class w3 extends st{constructor(e){super(),it(this,e,y3,_3,Ue,{pluginInstance:0})}}const k3=t=>{const e=new mr.Dialog({title:t.title,content:'<div class="b3-dialog__content"/>',width:t.width,height:t.height,destroyCallback:t.callback});return t.constructor(e.element.querySelector(".b3-dialog__content"))};class E3 extends mr.Plugin{async onload(){this.addIcons(`
<symbol id="iconCYImportLine" viewBox="0 0 36 36">
<path d="M28 4H14.87L8 10.86V15h2v-1.39h7.61V6H28v24H8a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm-12 8h-6v-.32L15.7 6h.3Z" class="clr-i-outline clr-i-outline-path-1"/>
<path d="M11.94 26.28a1 1 0 1 0 1.41 1.41L19 22l-5.68-5.68a1 1 0 0 0-1.41 1.41L15.2 21H3a1 1 0 1 0 0 2h12.23Z" class="clr-i-outline clr-i-outline-path-2"/>
<path fill="none" d="M0 0h36v36H0z"/>
</symbol>
`),this.addTopBar({icon:"iconCYImportLine",title:this.i18n.addTopBarIcon,position:"right",callback:()=>{this.showDialog()}}),console.log(this.i18n.helloPlugin)}async onunload(){console.log(this.i18n.byePlugin)}async updateCards(e){return e.cards.sort((n,r)=>n.blockID<r.blockID?-1:n.blockID>r.blockID?1:0),e}showDialog(){k3({title:this.i18n.dialogTitle,width:"720px",constructor:e=>new w3({target:e,props:{pluginInstance:this}})})}}module.exports=E3;