zeed 0.8.50 → 0.8.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ var kt=Object.defineProperty;var r=(e,t)=>kt(e,"name",{value:t,configurable:!0});function It(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}r(It,"_global");function Y(){let e=It();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}r(Y,"getGlobalContext");function F(e){return e!=null&&typeof e=="object"}r(F,"isObject");function me(e){return Object(e)!==e}r(me,"isPrimitive");function k(e){return Array.isArray(e)}r(k,"isArray");function ne(e){return F(e)&&!k(e)}r(ne,"isRecord");function er(e){return typeof e=="string"}r(er,"isString");function tr(e){return typeof e=="number"}r(tr,"isNumber");function nr(e){return typeof e=="number"&&Number.isInteger(e)}r(nr,"isInteger");function rr(e){return typeof e=="number"&&Number.isSafeInteger(e)}r(rr,"isSafeInteger");function _e(e){return typeof e=="boolean"}r(_e,"isBoolean");function or(e){return e==null}r(or,"isNullOrUndefined");function ir(e){return F(e)&&e.constructor.name==="Uint8Array"}r(ir,"isUint8Array");function re(e,t,n=new WeakSet){if(e===t)return!0;if(n.has(t)||(me(t)||n.add(t),!(e instanceof Object)||!(t instanceof Object))||e.constructor!==t.constructor||e.length!==t.length)return!1;for(let o in e){if(!e.hasOwnProperty(o))continue;if(!t.hasOwnProperty(o))return!1;let i=e[o],s=t[o];if(!re(i,s,n))return!1}for(let o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}r(re,"deepEqual");function Ct(e,t=new WeakSet){if(t.has(e))return"[Circular ~]";if(me(e)||t.add(e),ne(e)){for(let n in e)if(!!e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}Ct(e[n],t)}}else if(k(e))for(let n=e.length-1;n>=0;n--)e[n]===void 0&&e.splice(n,1);return e}r(Ct,"deepStripUndefinedInPlace");function oe(e,...t){for(let n of t)F(e)||(e={}),!(n==null||!F(n))&&Object.keys(n).forEach(o=>{let i=e[o],s=n[o];Array.isArray(i)&&Array.isArray(s)?e[o]=i.concat(s):F(i)&&F(s)?e[o]=oe(Object.assign({},i),s):e[o]=s});return e}r(oe,"deepMerge");function se(e={}){let{level:t=void 0,filter:n=void 0}=e,o=G(n),i=ie(t);return s=>{if(!i(s.level)||!o(s.name))return;let u=s.name?`[${s.name}]`:"";switch(s.level){case 1:console.info(`I|* ${u}`,...s.messages);break;case 2:console.warn(`W|** ${u}`,...s.messages);break;case 3:console.error(`E|*** ${u}`,...s.messages);break;default:console.debug(`D| ${u}`,...s.messages);break}}}r(se,"LoggerConsoleHandler");var Q=(a=>(a[a.all=-1]="all",a[a.debug=0]="debug",a[a.info=1]="info",a[a.warn=2]="warn",a[a.error=3]="error",a[a.fatal=4]="fatal",a[a.off=1/0]="off",a))(Q||{}),ze={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:1/0,"-":1/0};function Ne(e=""){let t=[se()],n=2,o=r(c=>!0,"logCheckNamespace"),i=!1,s=a,u=!1;function a(c="",p){let g=ye(p??-1);function h(f,d){return g<=f?d:()=>{}}r(h,"defineForLogLevel");let y=h(0,(...f)=>{x({name:c,messages:f,level:0})});y.label=c,y.extend=function(f){return s(c?`${c}:${f}`:f)};let x=r(f=>{if(o(c))for(let d of t)d&&d(f)},"emit");return y.debug=h(0,(...f)=>{x({name:c,messages:f,level:0})}),y.info=h(1,(...f)=>{x({name:c,messages:f,level:1})}),y.warn=h(2,(...f)=>{x({name:c,messages:f,level:2})}),y.error=h(3,(...f)=>{x({name:c,messages:f,level:3})}),y.assert=h(4,(f,...d)=>{f||(typeof console!==void 0&&(console.assert?console.assert(f,...d):console.error(`Assert did fail with: ${f}`,...d)),x({name:c,messages:d||[`Assert did fail with: ${f}`],level:n}))}),y.assertEqual=h(4,(f,d,...m)=>{let w=re(f,d);w||y.assert(w,`Assert did fail. Expected ${d} got ${f}`,d,f,...m)}),y.assertNotEqual=h(4,(f,d,...m)=>{let w=re(f,d);w&&y.assert(w,`Assert did fail. Expected ${d} not to be equal with ${f}`,d,f,...m)}),y}r(a,"LoggerBaseFactory");function l(c="",p){let g=s(c,p);return u&&g.debug(`+++ init of logger "${c}" on level "${Q[g.level]}".`),g}return r(l,"Logger"),l.registerHandler=function(c){t.push(c)},l.setFilter=function(c){o=G(c)},l.setLock=(c=!0)=>i=c,l.setDebug=(c=!0)=>u=c,l.setHandlers=function(c=[]){s!==a&&(s=a),!i&&(t=[...c].filter(p=>typeof p=="function"))},l.level=-1,l.setLogLevel=function(c=-1){i||(l.level=c)},l.setFactory=function(c){i||(s=c)},l}r(Ne,"LoggerContext");function Ot(e){return e===!0||e==="true"||e==="1"||typeof e=="number"&&e!==0?e="*":e===!1||e==="false"||e===0||e==="0"||e==null||e==="null"||e==="undefined"?e="":e=String(e),e}r(Ot,"getNamespaceFilterString");var $t=Ot(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*");function G(e=$t){let t,n=[],o=[];if(!e)t=r(function(i){return!1},"fn");else if(e==="*")t=r(function(i){return!0},"fn");else{let i,s=e.split(/[\s,]+/),u=s.length;for(i=0;i<u;i++){if(!s[i])continue;let a=s[i].replace(/\*/g,".*?");a[0]==="-"?n.push(new RegExp(`^${a.substr(1)}$`)):o.push(new RegExp(`^${a}$`))}t=r(function(a){if(n.length===0&&o.length===0)return!0;let l,c;for(l=0,c=n.length;l<c;l++)if(n[l].test(a))return!1;for(l=0,c=o.length;l<c;l++)if(o[l].test(a))return!0;return!1},"fn")}return t.accept=o,t.reject=n,t.filter=e,t}r(G,"useNamespaceFilter");var Bt=typeof process<"u"?process.env.ZEED_LEVEL??process.env.LEVEL??process.env.DEBUG_LEVEL:typeof localStorage<"u"?localStorage.zeed_level??localStorage.level??localStorage.debug_level:void 0;function ye(e){if(e===!1)return 1/0;if(typeof e=="number")return e;if(typeof e=="string"){let t=ze[e.toLocaleLowerCase().trim()];if(t!=null)return t}return-1}r(ye,"parseLogLevel");function ie(e=Bt){let t=ye(e);return n=>n>=t}r(ie,"useLevelFilter");var B;function he(){let e=Ne();return e.setHandlers([se()]),e}r(he,"getLoggerContext");function Ht(){if(B==null)try{let e=Y();e!=null?e?.logger==null?(B=he(),e.logger=B):B=e.logger:B=he()}catch{B=he()}return B}r(Ht,"getGlobalLogger");var A=Ht();var qe=r((e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t,"_sortedReplacer");function Mr(e,t=void 0){return JSON.stringify(e,qe,t)}r(Mr,"jsonStringifySorted");function jt(e,t){let n=[],o=[];return t==null&&(t=r(function(i,s){return n[0]===s?"[Circular ~]":`[Circular ~.${o.slice(0,n.indexOf(s)).join(".")}]`},"cycleReplacer")),function(i,s){if(n.length>0){let u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?o.splice(u,1/0,i):o.push(i),~n.indexOf(s)&&(s=t?.call(this,i,s))}else n.push(s);s=qe(i,s);try{return e==null?s:e.call(this,i,s)}catch{}return String(s)}}r(jt,"serializer");function S(e,t,n,o){return JSON.stringify(e,jt(t,o),n)}r(S,"jsonStringifySafe");var Rr=S;var Ge=A("zeed:bin","error");function _t(e){let t=unescape(encodeURIComponent(e)),n=t.length,o=new Uint8Array(n);for(let i=0;i<n;i++)o[i]=t.codePointAt(i)||0;return o}r(_t,"_encodeUtf8Polyfill");function zt(e){let t=e.length,n="",o=0;for(;t>0;){let i=t<1e4?t:1e4,s=e.subarray(o,o+i);o+=i,n+=String.fromCodePoint.apply(null,s),t-=i}return decodeURIComponent(escape(n))}r(zt,"_decodeUtf8Polyfill");var ae;function Ve(e){if(ae==null&&(ae=_t,typeof TextEncoder<"u")){let t=new TextEncoder;ae=r(n=>t.encode(n),"_textEncoder")}return ae(e.normalize("NFC"))}r(Ve,"stringToUInt8Array");var ue;function Je(e){if(ue==null&&(ue=zt,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});ue=r(n=>t.decode(n),"_textDecoder")}return ue(e).normalize("NFC")}r(Je,"Uint8ArrayToString");function P(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?Ve(e):e.length?new Uint8Array(e):e}r(P,"toUint8Array");function Ir(...e){let t=0,n=e.flat(1).map(s=>{let u=P(s);return t+=u.length,u}),o=new Uint8Array(t),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}r(Ir,"joinToUint8Array");function Ze(e){if(typeof Buffer<"u")return Buffer.from(P(e)).toString("hex");let t="0123456789abcdef",n="";for(let o of[...P(e)])n+=t[o>>4]+t[o&15];return n}r(Ze,"toHex");function We(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}r(We,"fromHex");function Ke(e){let t=P(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n)}r(Ke,"toBase64");function Cr(e){let t=P(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64url");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n).replaceAll("+","-").replaceAll("/","_")}r(Cr,"toBase64Url");function Nt(e){if(e=e.replaceAll("-","+").replaceAll("_","/"),typeof Buffer<"u"){let o=Buffer.from(e,"base64");return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}r(Nt,"fromBase64");function Or(e){return Je(Nt(e))}r(Or,"fromBase64String");function Ye(e,t){if(e.byteLength!==t.byteLength)return!1;let n=P(e),o=P(t);for(let i=0;i<n.length;i++)if(n[i]!==o[i])return!1;return!0}r(Ye,"equalBinary");function xe(e){try{return Ve(S(e))}catch(t){throw Ge.warn("jsonToUint8Array",e),t}}r(xe,"jsonToUint8Array");function be(e){try{return JSON.parse(Je(e))}catch(t){throw Ge.warn("Uint8ArrayToJson",e),t}}r(be,"Uint8ArrayToJson");function Qe(e,t){if(typeof e!="string")if(e instanceof ArrayBuffer&&e.byteLength!==void 0)e=String.fromCharCode.apply(String,[].slice.call(new Uint8Array(e)));else if(Array.isArray(e))e=String.fromCharCode.apply(String,e);else if(e.constructor===Uint8Array)e=String.fromCharCode.apply(String,[].slice.call(e));else return!1;t=t||16;let n=[],o="0123456789ABCDEF";for(let i=0;i<e.length;i+=t){let s=e.slice(i,Math.min(i+t,e.length)),u=`0000${i.toString(16)}`.slice(-4),a=s.split("").map(c=>{let p=c.charCodeAt(0);return` ${o[(240&p)>>4]}${o[15&p]}`}).join("");a+=" ".repeat(t-s.length);let l=s.replace(/[\x00-\x1F\x20]/g,".");l+=" ".repeat(t-s.length),n.push(`${u} ${a} ${l}`)}return n.join(`
2
+ `)}r(Qe,"Uint8ArrayToHexDump");function V(e=16){let t=new Uint8Array(e);if(typeof crypto<"u"&&crypto.getRandomValues)crypto.getRandomValues(t);else for(let n=0;n<e;n++)t[n]=Math.floor(Math.random()*256);return t}r(V,"randomUint8Array");var et="SHA-256",we="AES-GCM",Xe="PBKDF2",qt=1e5;async function jr(e,t=et){return P(await crypto.subtle.digest(t,P(e)))}r(jr,"digest");async function _r(e,t={}){let n=P(e),o=await crypto.subtle.importKey("raw",n,Xe,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:Xe,salt:t.salt?P(t.salt):new Uint8Array(0),iterations:t.iterations??qt,hash:et},o,{name:we,length:256},!0,["encrypt","decrypt"])}r(_r,"deriveKeyPbkdf2");var ce=new Uint8Array([1,1]);async function tt(e,t){let n=V(12),o=await crypto.subtle.encrypt({name:we,iv:n},t,e),i=new Uint8Array(o),s=ce.length+n.length+i.length,u=new Uint8Array(s),a=0;return u.set(ce,a),a+=ce.length,u.set(n,a),a+=n.length,u.set(i,a),u}r(tt,"encrypt");async function nt(e,t){let n=e.subarray(0,2);if(!Ye(n,ce))return Promise.reject(new Error(`Unknown magic ${n}`));let o=e.subarray(2,2+12),i=e.subarray(2+12,e.length),s=await crypto.subtle.decrypt({name:we,iv:o},t,i);return new Uint8Array(s)}r(nt,"decrypt");function Gt(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}r(Gt,"getSecureRandom");function D(){return typeof crypto<"u"?Gt():Math.random()}r(D,"getSecureRandomIfPossible");function qr(e=.25){return D()<e}r(qr,"randomBoolean");function Gr(e=100,t=0){return t+Math.floor(D()*(e-t))}r(Gr,"randomInt");function Vr(e=100,t=0){return t+D()*(e-t)}r(Vr,"randomFloat");function Jr(e,t,n){return Math.max(e,Math.min(n,t))}r(Jr,"between");function Vt(e){return e.reduce((t,n)=>t+n,0)}r(Vt,"sum");function Zr(e){return Vt(e)/e.length}r(Zr,"avg");function Wr(e){return!/^1?$|^(11+?)\1+$/.test("1".repeat(e))}r(Wr,"isPrimeRX");function Kr(e){for(let t=2;t<e;t++)if(e%t===0)return!1;return e>1}r(Kr,"isPrime");var Te=6;function Yr(e=0,t=1,n){Te=((n??Te)*9301+49297)%233280;let o=Te/233280;return t+o*(e-t)}r(Yr,"seededRandom");function Jt(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}r(Jt,"parseOrderby");function eo(e,t=!0){return`${e} ${t?"asc":"desc"}`}r(eo,"composeOrderby");function Le(e,t,n=!0){let o=e||0,i=t||0;return o>i?n?1:-1:o<i?n?-1:1:0}r(Le,"cmp");function to(e,...t){if(t.length>0){let n=t.map(Jt),o=Array.from(e);return o.sort((i,s)=>{for(let{field:u,asc:a}of n){let l=Le(i[u],s[u],a);if(l!==0)return l}return 0}),o}return e}r(to,"sortedOrderby");function Ae(e){return e.filter((t,n)=>e.indexOf(t)===n)}r(Ae,"arrayUnique");function Zt(e,t){return Ae(e.filter(n=>!t.includes(n)))}r(Zt,"arrayMinus");function Wt(...e){return Ae(e.reduce((t=[],n)=>t.concat(n),[]))}r(Wt,"arrayUnion");function J(...e){return e.flat(1/0)}r(J,"arrayFlatten");function Kt(e,t){return Ae(e).filter(n=>t.includes(n))}r(Kt,"arrayIntersection");function so(e,t){return Zt(Wt(e,t),Kt(e,t))}r(so,"arraySymmetricDifference");function ao(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return[]}r(ao,"arrayRemoveElement");function uo(e,t){return e.includes(t)||e.push(t),e}r(uo,"arraySetElement");function ve(e,t){return e.splice(0,e.length,...e.filter(t)),e}r(ve,"arrayFilterInPlace");function co(e,t){let n=e.findIndex(o=>o===t);return n>=0?e.splice(n,1):e.push(t),e}r(co,"arrayToggleInPlace");function lo(e){return e.splice(0,e.length),e}r(lo,"arrayEmptyInPlace");function Yt(e,t=Le){return Array.from(e).sort(t)}r(Yt,"arraySorted");function fo(e){return Yt(e,(t,n)=>t-n)}r(fo,"arraySortedNumbers");function Qt(e,t){return e.length===t.length&&e.every((n,o)=>n===t[o])}r(Qt,"arrayIsEqual");function rt(e){return e.sort(()=>D()>.5?1:-1),e}r(rt,"arrayShuffleInPlace");function po(e){return rt(Array.from(e))}r(po,"arrayShuffle");function go(e){for(;e.length>1;){let t=Array.from(e);if(rt(t),!Qt(e,t))return t}return e}r(go,"arrayShuffleForce");function mo(e){return e[Math.floor(D()*e.length)]}r(mo,"arrayRandomElement");function yo(...e){return J(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}r(yo,"arrayMax");function ho(...e){return J(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}r(ho,"arrayMin");function xo(...e){return J(e).reduce((t,n)=>t+n,0)}r(xo,"arraySum");function bo(...e){let t=J(e);return t.reduce((n,o)=>n+o,0)/t.length}r(bo,"arrayAvg");function wo(e,t){let n=[],o=0,i=e.length;for(;o<i;)n.push(e.slice(o,o+=t));return n}r(wo,"arrayBatches");function To(e=0,t){if(e<=0)return[];let n=new Array(e);for(let o=0;o<e;o++)n[o]=t instanceof Function?t(o):t;return n}r(To,"createArray");var Xt=A("zeed:basex","error"),en={2:"01",8:"01234567",11:"0123456789a",16:"0123456789abcdef",32:"0123456789abcdefghjkmnpqrtuvwxyz","32-crockford":"0123456789ABCDEFGHJKMNPQRSTVWXYZ","32-geohash":"0123456789bcdefghjkmnpqrstuvwxyz","32-agnoster":"0123456789abcdefghjkmnpqrtuvwxyz","32-rfc":"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567","32-hex":"0123456789ABCDEFGHIJKLMNOPQRSTUV","32-zbase":"ybndrfg8ejkmcpqxot1uwisza345h769",36:"0123456789abcdefghijklmnopqrstuvwxyz",58:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",62:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","64-url":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",66:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.!~",85:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"};function H(e){let t=en[String(e)];if(!t)if(typeof e=="string")t=e;else throw new Error(`Unknown base ${e}`);if(t.length>=255)throw new TypeError("Alphabet too long");let n=new Uint8Array(256);for(let c=0;c<n.length;c++)n[c]=255;for(let c=0;c<t.length;c++){let p=t.charAt(c),g=p.charCodeAt(0);if(n[g]!==255)throw new TypeError(`${p} is ambiguous`);n[g]=c}let o=t.length,i=t.charAt(0),s=Math.log(o)/Math.log(256),u=Math.log(256)/Math.log(o);function a(c,p=-1){let g=P(c);if(g.byteLength===0)return"";let h=0,y=0,x=g.byteLength;for(;y!==x&&g[y]===0;)y++;let f=(x-y)*u+1>>>0,d=new Uint8Array(f);for(;y!==x;){let b=g[y],T=0;for(let v=f-1;(b!==0||T<h)&&v!==-1;v--,T++)b+=256*d[v]>>>0,d[v]=b%o>>>0,b=b/o>>>0;if(b!==0)throw Xt.warn("Non-zero carry",g,p,T,f),new Error("Non-zero carry");h=T,y++}let m=f-h;for(;m!==f&&d[m]===0;)m++;let w="";for(;m<f;++m)w+=t.charAt(d[m]);return p>0?w.padStart(p,i):w}r(a,"encode");function l(c,p=-1){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;c=c.replace(/\s+/gi,"");let g=0,h=0;for(;c[g]===i;)g++;let y=(c.length-g)*s+1>>>0,x=new Uint8Array(y);for(;c[g];){let d=n[c.charCodeAt(g)];if(d===255)throw new Error(`Unsupported character "${c[g]}"`);let m=0;for(let w=y-1;(d!==0||m<h)&&w!==-1;w--,m++)d+=o*x[w]>>>0,x[w]=d%256>>>0,d=d/256>>>0;if(d!==0)throw new Error("Non-zero carry");h=m,g++}let f=y-h;for(;f!==y&&x[f]===0;)f++;return p>0?new Uint8Array([...new Uint8Array(p-x.length+f),...x.slice(f)]):x.slice(f)}return r(l,"decode"),{encode:a,decode:l}}r(H,"useBase");var{encode:Po,decode:tn}=H(32);function Eo(e){return tn(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"))}r(Eo,"decodeBase32");var{encode:Mo,decode:Ro}=H(16),{encode:So,decode:Uo}=H(58),{encode:Fo,decode:ko}=H(62);function Io(e,t){return Math.ceil(e*(Math.log(256)/Math.log(t)))}r(Io,"estimateSizeForBase");var $o=r(e=>(e.length>0&&(/^[A-Z0-9_\-\ ]*$/g.test(e)&&(e=e.toLowerCase()),e=e.replace(/^[-_\ ]+/gi,"").replace(/[-_\ ]+$/gi,"").replace(/[-_\ ]+([a-z0-9])/gi,(t,n)=>n.toUpperCase()),e=e[0].toLowerCase()+e.substring(1)),e),"toCamelCase");function nn(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}r(nn,"toCapitalize");function Bo(e){return e.replace(/\w\S*/g,nn)}r(Bo,"toCapitalizeWords");function Ho(e,t="-"){return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,`$1${t}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${t}$2`).toLowerCase()}r(Ho,"fromCamelCase");var ot=["1","true","yes","y","on"];function No(e,t=!1){return e==null||typeof e!="string"?t:ot.includes(String(e).trim().toLowerCase())}r(No,"stringToBoolean");function qo(e,t=0){return e==null||typeof e!="string"?t:parseInt(e.trim(),10)??t}r(qo,"stringToInteger");function Go(e,t=0){return e==null||typeof e!="string"?t:parseFloat(e.trim())??t}r(Go,"stringToFloat");function rn(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:ot.includes(String(e).trim().toLowerCase())}r(rn,"valueToBoolean");function on(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseInt(String(e).trim(),10)??t}r(on,"valueToInteger");function sn(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseFloat(String(e).trim())??t}r(sn,"valueToFloat");function De(e,t=""){return e==null?t:String(e)??t}r(De,"valueToString");var Vo=sn,Jo=on,Zo=De,Wo=rn;function an(e,t={}){let{trace:n=!0,pretty:o=!0}=t;return e.map(i=>{if(i&&typeof i=="object"){if(o&&(i instanceof Uint8Array||i instanceof ArrayBuffer))return`
3
+ ${Qe(i)}
4
+ `;if(i instanceof Error)return n?`${i.name||"Error"}: ${i.message}
5
+ ${i.stack}`:`${i.name||"Error"}: ${i.message}`;try{return o?JSON.stringify(i,null,2):JSON.stringify(i)}catch{}}return String(i)})}r(an,"formatMessages");function Ko(e,t={}){return an(e,t).join(" ")}r(Ko,"renderMessages");function Yo(e){try{return decodeURIComponent(escape(e))}catch{}return e}r(Yo,"fixBrokenUth8String");var Ee=864e5;function Me(e){return Math.floor(e/1e4)}r(Me,"dayYear");function it(e){return Math.floor(e/100%100)}r(it,"dayMonth");function un(e){return Math.floor(e%100)}r(un,"dayDay");function ei(e){return[Me(e),it(e),un(e)]}r(ei,"dayToParts");function st(e,t=!1){return t?new Date(`${ln(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}r(st,"dayToDate");function ti(){return le(new Date)}r(ti,"dayFromToday");function ni(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return at(e);if(Array.isArray(e)&&e.length===3){let[n,o,i]=e;return Re(n,o,i)}else if(e instanceof Date)return le(e,t)}r(ni,"dayFromAny");function ri(e){return st(e,!0)}r(ri,"dayToDateGMT");function le(e,t=!1){return t?at(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}r(le,"dayFromDate");function oi(e){return le(e,!0)}r(oi,"dayFromDateGMT");function Pe(e,t=!0){return st(e,t).getTime()}r(Pe,"dayToTimestamp");function cn(e,t=!0){return le(new Date(e),t)}r(cn,"dayFromTimestamp");function ln(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}r(ln,"dayToString");function Re(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}r(Re,"dayFromParts");function at(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return+t}r(at,"dayFromString");function ii(e,t=0){let n=Me(e),o=it(e);return t!==0&&(o+=t,n+=Math.floor((o-1)/12),o=Math.floor((o-1)%12)+1,o===0&&(o=12)),Re(n,o,1)}r(ii,"dayMonthStart");function si(e,t=0){let n=Me(e);return Re(n+t,1,1)}r(si,"dayYearStart");function ai(e,t){return cn(Pe(e)+t*864e5)}r(ai,"dayOffset");function ui(e,t){return Math.round((Pe(t)-Pe(e))/864e5)}r(ui,"dayDiff");var{warn:ut}=A("zeed:promise","error");function ct(){let e,t;return[new Promise((o,i)=>{e=o,t=i}),e,t]}r(ct,"createPromise");async function di(e){return new Promise(t=>setTimeout(t,e))}r(di,"sleep");async function pi(){return new Promise(e=>setTimeout(e,0))}r(pi,"immediate");var lt=Symbol("timeout");async function gi(e,t,n=lt){return new Promise(async(o,i)=>{let s=!1,u=setTimeout(()=>{s=!0,o(n)},t);try{let a=await e;clearTimeout(u),s||o(a)}catch(a){clearTimeout(u),s||i(a)}})}r(gi,"timeout");var ft=new Error("Timeout reached");function mi(e){return e===lt||e===ft}r(mi,"isTimeout");async function dt(e,t){return t<=0?await e:new Promise(async(n,o)=>{let i=!1,s=setTimeout(()=>{i=!0,o(ft)},t);try{let u=await e;clearTimeout(s),i||n(u)}catch(u){clearTimeout(s),i||o(u)}})}r(dt,"tryTimeout");function yi(e,t,n=1e3){return new Promise((o,i)=>{let s=r(l=>{a&&(clearTimeout(a),u(),o(l))},"fn"),u=r(()=>{a=null,e.off?e.off(t,s):e.removeEventListener?e.removeEventListener(t,s):ut("No remove listener method found for",e,t)},"done"),a=setTimeout(()=>{u(),i(new Error("Did not response in time"))},n);e.on?e.on(t,s):e.addEventListener?e.addEventListener(t,s):ut("No listener method found for",e)})}r(yi,"waitOn");function E(e){return Boolean(e&&(e instanceof Promise||typeof e.then=="function"))}r(E,"isPromise");function I(e){return Promise.resolve(e)}r(I,"promisify");var L=class{get value(){return this.days}constructor(t){if(typeof t=="number"){this.days=t;return}if(t!=null&&(t=L.from(t)?.days),t==null){let n=new Date;this.days=n.getFullYear()*1e4+(n.getMonth()+1)*100+n.getDate()}else this.days=t}static fromNumber(t){return new L(t)}static fromString(t){return L.from(+t.replace(/[^0-9]/g,"").slice(0,8))}static fromDate(t,n=!1){return n?L.fromString(t.toISOString().substr(0,10)):L.from(t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate())}static fromDateGMT(t){return L.fromDate(t,!0)}static from(t,n=!1){if(typeof t=="number")return t<100?void 0:new L(t);if(typeof t=="string")return L.fromString(t);if(Array.isArray(t)&&t.length===3){let[o,i=1,s=1]=t;return i<1||i>12||s<1||s>31?void 0:new L(o*1e4+i*100+s)}else{if(t instanceof Date)return L.fromDate(t,n);if(t instanceof L)return t}}toNumber(){return this.days}toJson(){return this.days}toString(t="-"){let n=String(this.days);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}toDate(t=!1){return t?new Date(`${this.toString()}T00:00:00.000Z`):new Date(this.days/1e4,this.days/100%100-1,this.days%100)}toDateGMT(){return this.toDate(!0)}get year(){return Math.floor(this.days/1e4)}get month(){return Math.floor(this.days/100%100)}get day(){return Math.floor(this.days%100)}dayOffset(t){return L.fromDateGMT(new Date(this.toDateGMT().getTime()+t*864e5))}monthStart(){return L.from([this.year,this.month,1])}yearStart(){return L.from([this.year,1,1])}monthOffset(t){let n=this.month+t,o=Math.floor((n-1)%12)+1;o===0&&(o=12);let i=Math.floor((n-1)/12);return L.from([this.year+i,o,this.day])}daysUntil(t){return Math.round((new L(t)?.toDateGMT().getTime()-this.toDateGMT().getTime())/864e5)}yesterday(){return this.dayOffset(-1)}tomorrow(){return this.dayOffset(1)}};r(L,"Day");async function Ti(e,t,n){let o=L.from(e),i=L.from(t);for(;o&&i&&o?.days<=i?.days;){let s=n(o);E(s)&&await s,o=o.dayOffset(1)}}r(Ti,"forEachDay");function Li(){return new L}r(Li,"today");function Ai(e){return new L(e)}r(Ai,"day");function vi(e){return L.fromDate(new Date(e)).days}r(vi,"dateStringToDays");function fn(e,t=2){return+(+e).toFixed(t)}r(fn,"decimal");function Ei(e,t=2){return+(+e/10**t).toFixed(t)}r(Ei,"decimalFromCents");function Mi(e,t=2){return Math.round(+e*10**t)}r(Mi,"decimalToCents");function Ri(e,t=2){return t*(fn(e,t)%1)}r(Ri,"decimalCentsPart");var pt=r(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;"),"escapeHTML"),Fi=r(e=>e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&"),"unescapeHTML");function Oi(e,t){return F(e)?Object.fromEntries(Object.entries(e).map(([n,o])=>{let i=t(n,o);return k(i)&&i.length===2?i:[n,i]}).filter(n=>n!=null)):{}}r(Oi,"objectMap");function $i(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}r($i,"objectMergeDisposable");function Bi(e){return Object.keys(e).length<=0}r(Bi,"objectIsEmpty");var gt=/[\u0000-\u001F\u0080-\u009F]/g,dn=/^\.+/,pn=/\.+$/;function mt(){return/[<>:"/\\|?*\u0000-\u001F]/g}r(mt,"filenameReservedRegex");function gn(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}r(gn,"windowsReservedNameRegex");function _i(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(mt().test(t)&&gt.test(t))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(mt(),t).replace(gt,t).replace(dn,t).replace(pn,""),e=gn().test(e)?e+t:e,e.slice(0,100)}r(_i,"toValidFilename");var mn=/[\\\-\[\]\/{}()*+?.^$|]/g;function yt(e){return e?e instanceof RegExp?e.source:e.replace(mn,"\\$&"):""}r(yt,"escapeRegExp");var X=r(e=>Math.abs(e)%1===.5,"isHalf"),ht=r(e=>e%2===0,"isEven"),Vi=r(e=>Math.ceil(e),"roundUp"),Ji=r(e=>Math.floor(e),"roundDown"),Zi=r(e=>Math.round(e),"roundHalfUp"),Wi=r(e=>{let t=Math.round(e);return X(e)&&ht(t)?t-1:t},"roundHalfOdd"),Ki=r(e=>X(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),"roundHalfAwayFromZero"),Yi=r(e=>X(e)?Math.floor(e):Math.round(e),"roundHalfDown"),Qi=r(e=>{let t=Math.round(e);return X(e)?ht(t)?t:t-1:t},"roundHalfEven"),Xi=r(e=>X(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e),"roundHalfTowardsZero");function xt(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-D()}r(xt,"startSortWeight");function bt(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+D()}r(bt,"endSortWeight");function rs(e,t,n){let o=n.length,i=e<t;if(o<=0||e>=o-1)return bt(n);if(e<=0)return xt(n);n=yn([...n]);let s=i?-1:0,u=n[e+s].sort_weight||0,l=(n[e+s+1].sort_weight||0)-u;if(l===0)return i?xt(n):bt(n);let c=u+l/2,p=l*.01*(D()-.5);return c+p}r(rs,"moveSortWeight");function yn(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}r(yn,"sortedItems");function as(e={}){let{getter:t=r(a=>a.sort,"getter")}=e;function n(a){return a.sort((l,c)=>(t(l)||0)-(t(c)||0)),a}r(n,"items");function o(a){return a.reduce((l,c)=>Math.min(l,t(c)||0),0)-1-D()}r(o,"start");function i(a){return a.reduce((l,c)=>Math.max(l,t(c)||0),0)+1+D()}r(i,"end");function s(a,l){a==null&&(a=(l??0)-1),l==null&&(l=(a??0)+1);let c=l-a,p=a+c/2,g=c*.01*(D()-.5);return p+g}r(s,"between");function u(a,l,c){let p=c.length,g=a<l;if(p<=0||a>=p-1)return i(c);if(a<=0)return o(c);c=n([...c]);let h=g?-1:0,y=t(c[a+h])||0,f=(t(c[a+h+1])||0)-y;if(f===0)return g?o(c):i(c);let d=y+f/2,m=f*.01*(D()-.5);return d+m}return r(u,"move"),{start:o,end:i,between:s,move:u,items:n}}r(as,"useSorted");var hn=/((?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00A1-\uFFFF][a-z0-9\u00A1-\uFFFF_-]{0,62})?[a-z0-9\u00A1-\uFFFF]\.)+(?:[a-z\u00A1-\uFFFF]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?)/gim;function fs(e){return e.split(hn).map((t,n)=>{let o=pt(t);return n%2?`<a target="_blank" href="${o}">${xn(o)}</a>`:o}).join("")}r(fs,"linkifyPlainText");function xn(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}r(xn,"toHumanReadableUrl");function wt(e){let t=[];for(let[n,o]of Object.entries(e))if(o!=null){Array.isArray(o)||(o=[o]);for(let i of o)i!=null&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`)}return t.join("&")}r(wt,"encodeQuery");function ds(e){let t={},n=(e[0]==="?"?e.substr(1):e).split("&");for(let o=0;o<n.length;o++){let i=n[o].split("="),s=decodeURIComponent(i[0]),u=decodeURIComponent(i[1]||"");t[s]!=null?(Array.isArray(t[s])||(t[s]=[t[s]]),t[s].push(u)):t[s]=u}return t}r(ds,"parseQuery");function ys(e,t,n){let o=e[t];return o===void 0&&(o=n(t,e),e[t]=o),o}r(ys,"ensureKey");async function hs(e,t,n){let o=e[t];return o===void 0&&(o=await n(t,e),e[t]=o),o}r(hs,"ensureKeyAsync");function xs(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}r(xs,"size");function bs(e){return e!=null&&e.length>0?e[e.length-1]:void 0}r(bs,"last");function ws(e){try{if(e!=null)return Array.isArray(e)||typeof e=="string"?e.length<=0:e?.size!=null?e.size<=0:Object.keys(e).length<=0}catch(t){console.warn("Failed to check if empty for",e,t)}return!0}r(ws,"empty");function Se(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Se,"cloneObject");function Ts(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Ts,"cloneJsonObject");function Ls(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let o=e(n);return t.set(n,o),o}}r(Ls,"memoize");function As(e){let t=new Map;return async(...n)=>{let o=S(n);if(t.has(o))return t.get(o);let i=await e(...n);return t.set(o,i),i}}r(As,"memoizeAsync");function vs(e,t){let n=[];for(let o=0;o<e;o++)n.push(t(o,e));return n}r(vs,"forTimes");var bn=/\\\s|\s+|#[^\n]*\n?/gm,wn=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,Tt=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm,Tn=A("zeed:xrx","error");function Ln(e){return typeof e=="string"?e:e.source||""}r(Ln,"regExpString");function Ms(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r(Ms,"regExpEscape");var Ue=class{constructor(t,n){this.namedGroups={};this.names=[];let o=n??"",i;if(t instanceof RegExp?(n==null&&(o=t.flags),i=t.source):i=t,o&&o.includes("x")&&(o=o.replace("x",""),i=i.replace(bn,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;i=i.replace(wn,(l,c)=>(a+=1,c?(c!=="index"&&c!=="length"&&!this.namedGroups[c]?this.namedGroups[c]=a:Tn.error(`Unallowed or duplicate group name: ${c}`),"("):l)),this.names=Object.keys(this.namedGroups)}i=Ln(i),Tt.lastIndex=0;let u=Tt.exec(i);u&&(this.lookBehind={rx:new RegExp(`${u[3]}$(?!\\s)`),expect:u?u[2]==="=":!u},i=i.substr(u[0].length)),this.rx=new RegExp(i,o)}get lastIndex(){return this.rx.lastIndex}set lastIndex(t){this.rx.lastIndex=t}_handleMatch(t){if(this.lookBehind){let n=t.input.slice(0,t.index);if(this.lookBehind.expect!==this.lookBehind.rx.test(n))return null}for(let n of this.names)t[n]=t[this.namedGroups[n]];return t}exec(t){let n;for(;n=this.rx.exec(t);)if(this.rx.lastIndex===n.index&&this.rx.lastIndex++,n=this._handleMatch(n),n!=null)return n}execAll(t){let n=[],o;for(this.rx.lastIndex=0;o=this.exec(t);)n.push(o);return this.rx.lastIndex=0,n}replace(t,n){let o=typeof n=="function"?n:()=>n;return t.replace(this.rx,i=>o(i))}};r(Ue,"XRX");var An=",";function na(e,t={}){let{separator:n=An}=t,o="";for(let i=0;i<e.length;i++)o+=`${e[i].map(s=>{if(s==null||s==="")return"";if(_e(s))return s?1:0;let u=String(s);return(ne(s)||k(s))&&(u=S(s)),u.includes('"')||u.includes(`
6
+ `)||u.includes(n)?`"${u.replace(/"/g,'""')}"`:u}).join(n)}
7
+ `;return o}r(na,"csvStringify");function ra(e,t={}){let n=/("((?:(?:[^"]*?)(?:"")?)*)"|([^,;\t\n]*))([,;\t]|\n|\r\n)/g;t.separator&&(n=new RegExp(n.source.replaceAll(",;\\t",yt(t.separator)),n.flags));let o=[],i=[],s,u=`${e.replaceAll(`\r
8
+ `,`
9
+ `).trim()}
10
+ `;for(;s=n.exec(u);){let a=s[2]??s[3]??"";a=a.replaceAll('""','"'),i.push(a),s[4]===`
11
+ `&&(o.push(i),i=[])}return o}r(ra,"csvParse");var vn=A("zeed:dispose","error");async function Dn(e){typeof e=="function"?await I(e()):E(e)?await e:typeof e.dispose=="function"?await I(e.dispose()):E(e.dispose)?await e.dispose:typeof e.cleanup=="function"?await I(e.cleanup()):E(e.cleanup)&&await e.cleanup}r(Dn,"callDisposer");function Fe(e){let{name:t}=typeof e=="string"?{name:e}:e??{},n=[],o=r(async u=>{u!=null&&n.includes(u)&&(ve(n,a=>a!==u),await Dn(u))},"untrack"),i=r(async()=>{for(t&&vn.debug(`dispose ${t}: ${n.length} entries`);n.length>0;)await o(n[0])},"dispose"),s=r(u=>{if(u!=null)return n.unshift(u),()=>o(u)},"track");return Object.assign(i,{track:s,add:s,untrack:o,dispose:i,exec:i,getSize(){return n.length}})}r(Fe,"useDispose");var ca=Fe;function la(e={}){let{mode:t="fifo"}=e,n=[],o=r(async(s=!1)=>{for(;n.length>0;){let u=n[0];if(ve(n,a=>a!==u),typeof u=="function"){let a=u();if(E(a)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await a}}else if(E(u)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await u}else throw new Error(`Unhandled disposable: ${u}`)}},"exec");return Object.assign(o,{add:r(s=>{t==="lifo"?n.unshift(s):n.push(s)},"add"),exec:o,getSize(){return n.length}})}r(la,"useDefer");function fa(e,t=0){let n=setTimeout(e,t);return()=>{n&&(clearTimeout(n),n=void 0)}}r(fa,"useTimeout");function da(e,t){let n=setInterval(e,t);return()=>{n&&(clearInterval(n),n=void 0)}}r(da,"useInterval");function pa(e,t,n,...o){return e==null?()=>{}:(e.on?e.on(t,n,...o):e.addEventListener&&e.addEventListener(t,n,...o),()=>{e.off?e.off(t,n,...o):e.removeEventListener&&e.removeEventListener(t,n,...o)})}r(pa,"useEventListener");function ha(){let e=!0;return(t,n)=>{let o=!1;if(e){e=!1;try{t(),o=!0}finally{e=!0}}else n!==void 0&&n();return o}}r(ha,"useMutex");function xa(){let e=!0;return async(t,n)=>{let o=!1;if(e){e=!1;try{let i=t();E(i)&&await i,o=!0}finally{e=!0}}else if(n!==void 0){let i=n();E(i)&&await i}return o}}r(xa,"useAsyncMutex");var Z=A("zeed:emitter","error"),M=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this.dispose=Fe();this.call=new Proxy({},{get:(t,n)=>async(...o)=>await this.emit(n,...o)})}async emit(t,...n){let o=!1;this.dispose.add(()=>{this.subscribers={},this.subscribersOnAny=[]});try{let i=this.subscribers[t]||[];if(this.subscribersOnAny.forEach(s=>s(t,...n)),i.length>0){let s=i.map(u=>{try{return I(u(...n))}catch(a){Z.warn("emit warning:",a)}return null}).filter(u=>u!=null);o=!0,await Promise.all(s)}}catch(i){Z.error("emit exception",i)}return o}onAny(t){this.subscribersOnAny.push(t)}on(t,n){let o=this.subscribers[t]||[];return o.push(n),this.subscribers[t]=o,()=>{this.off(t,n)}}onCall(t){for(let[n,o]of Object.entries(t))this.on(n,o)}once(t,n){let o=r(async(...i)=>(this.off(t,o),await I(n(...i))),"onceListener");return this.on(t,o),()=>{this.off(t,n)}}off(t,n){return this.subscribers[t]=(this.subscribers[t]||[]).filter(o=>n&&o!==n),this}removeAllListeners(){return this.subscribers={},this}};r(M,"Emitter");function Pa(){let e=Y().emitter;return e||(e=new M,Y().emitter=e),e}r(Pa,"getGlobalEmitter");var Ea=new M;function Ma(e,t){let n=Math.round(D()*100),o=[],i,s=r((a,l)=>{let c={key:a,obj:l};o.push(c),i&&i()},"incoming");return t?e.on?e.on(t,a=>{s(t,a)}):e.addEventListener?e.addEventListener(t,a=>{s(t,a)}):Z.error(n,"Cannot listen to key"):e.onAny?e.onAny((a,l)=>{s(a,l)}):Z.error(n,"cannot listen to all for",e),r((a,l=!0)=>new Promise((c,p)=>{a||(a=t,a||o.length&&(a=o[0].key)),i=r(()=>{for(;o.length>0;){let g=o.shift();if(g.key===a)i=void 0,c(g.obj);else{if(l){Z.warn(n,`Unhandled event ${a} with value: ${g.obj}`);continue}p(new Error(`Expected ${a}, but found ${g.key} with value=${g.obj}`)),Z.error(n,`Unhandled event ${a} with value: ${g.obj}`)}break}},"lazyResolve"),i()}),"on")}r(Ma,"lazyListener");var Lt=r(()=>Date.now(),"getTimestamp");function Ua(e){return e>999?`${(e/1e3).toFixed(1)}s`:`${e.toFixed(2)}ms`}r(Ua,"formatMilliseconds");function Fa(...e){for(let t of e){if(t instanceof Date)return t;if(typeof t=="string"){let n=null;if(t.includes(":"))try{n=new Date(t)}catch{}if(!(n instanceof Date)){let o=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(t);o&&(n=new Date(+o[1],+o[2]-1,+o[3],12,0))}if(n instanceof Date)return n}}}r(Fa,"parseDate");var{encode:At,decode:Pn}=H(62),{encode:vt,decode:En}=H(32),fe=16;function Ie(){return V(fe)}r(Ie,"uuidBytes");function Mn(e=Ie()){return At(e,22)}r(Mn,"uuidB62");function Rn(e){return At(e,22)}r(Rn,"uuidEncodeB62");function Sn(e){return Pn(e,fe)}r(Sn,"uuidDecodeB62");function Un(e=Ie()){return vt(e,26)}r(Un,"uuidB32");function Fn(e){return vt(e,26)}r(Fn,"uuidEncodeB32");function kn(e){return En(e,fe)}r(kn,"uuidDecodeB32");var In="10000000-1000-4000-8000-100000000000",Cn=typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID.bind(crypto):()=>In.replace(/[018]/g,e=>(e^V(1)[0]&15>>e/4).toString(16));function On(e){let t=Ze(e);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}r(On,"uuidEncodeV4");function $n(e){return We(e.replaceAll("-",""))}r($n,"uuidDecodeV4");var Dt=16e11;function Bn(e){let t=new Uint8Array([0,0,0,0,0,0]),n=t.length-1;for(let o=0;o<t.length;o++){let i=e&255;t[n-o]=i,e=(e-i)/256}return t}r(Bn,"longToByteArray");function Pt(){let e=Lt()-Dt;return new Uint8Array([...Bn(e),...V(10)])}r(Pt,"suidBytes");function Ha(){return jn(Pt())}r(Ha,"suid");function ja(e){return Hn(Mt(e))}r(ja,"suidDate");function Hn(e){return new Date(Dt+e.slice(0,6).reduce((t,n)=>t*256+n,0))}r(Hn,"suidBytesDate");var _a=r(()=>new Uint32Array(V(4))[0],"uuid32bit"),Ce={base62:{uuid:Mn,uuidDecode:Sn,uuidEncode:Rn},base32:{uuid:Un,uuidDecode:kn,uuidEncode:Fn},uuidv4:{uuid:Cn,uuidDecode:$n,uuidEncode:On}},de="base62",Et=!1;function za(e,t=!1){de=e,Et=t}r(za,"setUuidDefaultEncoding");function j(){return Ce[de].uuid(Et?Pt():Ie())}r(j,"uuid");function Mt(e){return Ce[de].uuidDecode(e)}r(Mt,"uuidDecode");function jn(e){return Ce[de].uuidEncode(e)}r(jn,"uuidEncode");function Na(e){try{return Mt(e).length===fe}catch{}return!1}r(Na,"uuidIsValid");var ke={};function _(e="id"){return ke[e]==null&&(ke[e]=0),`${e}-${ke[e]++}`}r(_,"uname");var _n=0;function qa(){return`id-${_n++}`}r(qa,"qid");var zn=(o=>(o[o.waiting=0]="waiting",o[o.running=1]="running",o[o.finished=2]="finished",o))(zn||{}),Nn=(o=>(o[o.replace=0]="replace",o[o.memoize=1]="memoize",o[o.error=2]="error",o))(Nn||{});function Ka(e={}){let{maxParallel:t=3}=e,n=new M,o=0,i=0,s=0,u=0,a={};async function l(){if(o>0){let[f,d]=ct();return n.once("didFinish",d),f}}r(l,"waitFinishAll");function c(){n.emit("didFinish"),o=0,i=0}r(c,"didFinish");function p(){let f=0,d=0;for(let{max:m,resolved:w,state:b}of Object.values(a))f+=m,d+=b===2?m:Math.min(m,w);n.emit("didUpdate",o,i,f,d)}r(p,"didUpdate");function g(){if(p(),o>0&&o===i&&c(),s>=t)return;let f=Object.values(a).filter(d=>d.state===0);if(f.length>0){let d;for(let m of f)m.group!=null&&Object.values(a).some(w=>w.state===1&&w.id!==m.id&&w.group===m.group)||(d==null||m.priority<d.priority)&&(d=m);if(d!=null){let m=d.id,w=d.done;d.state=1,++s,n.emit("didStart",m);let b=r(T=>{d&&(d.result=T,d.state=2,d.resolved=d.max),--s,++i,g()},"taskFinished");d.task(d).then(T=>{w(T),n.emit("didResolve",m,T),b(T)}).catch(T=>{w(),n.emit("didReject",m,T),b()})}}}r(g,"performNext");function h(f){let d=a[f];d&&d.state===0&&(a[f].state=2,++i,n.emit("didCancel",f),p())}r(h,"cancel");function y(){Object.keys(a).forEach(h)}r(y,"cancelAll");function x(f,d={}){let m,w=new Promise(T=>m=T),b=d.id??j();if(a[b]!=null){let T=d.idConflictResolution??1;if(T===0)h(b);else if(T===1){let v=a[b];return{id:b,promise:(async()=>{if(v.state===2)return a[b].result})(),dispose:()=>h(b),cancel:()=>h(b)}}else throw new Error(`Pool task with id=${b} already exists!`)}return a[b]={id:b,task:f,priority:++u,group:d.group,state:0,max:d.max??1,resolved:d.resolved??0,done:m,payload:d.payload,setMax(T){a[b].max=T,p()},setResolved(T){a[b].resolved=T,p()},incResolved(T=1){a[b].resolved+=T,p()}},++o,g(),{id:b,promise:w,dispose:()=>h(b),cancel:()=>h(b)}}return r(x,"enqueue"),{events:n,cancel:h,cancelAll:y,enqueue:x,dispose:y,waitFinishAll:l}}r(Ka,"usePool");var Oe=class extends M{constructor(n={}){super();this.queue=[];this.waitToFinish=[];this.countMax=0;this.countResolved=0;this.paused=!1;let{name:o=_("queue"),logLevel:i}=n;this.name=o,this.log=A(`zeed:queue:${o}`,i??1/0)}async performNext(){if(this.log("performNext, queue.length =",this.queue.length),this.currentTask!=null){this.log("performNext => skip while another task is running");return}if(this.paused){this.log("performNext => skip while is paused");return}for(;this.currentTask==null&&!this.paused;){let n=this.queue.shift();if(this.log(`performNext => ${n?.name}`),n==null)break;this.countResolved===0&&this.emit("didStart",this.countMax);let{name:o,task:i,resolve:s}=n;this.currentTask=i();let u;try{this.log.info(`start task ${o}`),u=await this.currentTask,this.log(`finished task ${o} with result =`,u)}catch(a){this.log.warn("Error performing task",a)}s(u),this.currentTask=void 0,this.countResolved+=1,this.emit("didUpdate",this.countMax,this.countResolved)}for(this.queue.length===0&&(this.emit("didFinish"),this.countMax=0,this.countResolved=0);this.waitToFinish.length>0;)this.waitToFinish.shift()()}async enqueue(n,o={}){let{immediate:i=!1,name:s=_(this.name)}=o;return i?(this.log.info(`immediate execution ${s}`),await n()):(this.log(`enqueue ${s}`),new Promise(u=>{this.queue.push({name:s,task:n,resolve:u}),this.countMax+=1,this.emit("didUpdate",this.countMax,this.countResolved),this.performNext()}))}async enqueueReentrant(n,o={}){return this.enqueue(n,{immediate:this.currentTask!=null,name:o.name})}async cancelAll(n=!0){this.log("cancelAll"),this.emit("didCancel");let o=this.queue.map(i=>i.resolve);this.queue=[],o.forEach(i=>i(void 0)),await this.wait()}async pause(){this.log("pause"),this.paused=!0,await this.wait()}resume(){this.log("resume"),this.paused=!1,this.performNext()}async wait(){if(this.log("wait"),!(this.currentTask==null&&(this.queue.length===0||this.paused)))return new Promise(n=>{this.waitToFinish.push(n)})}get isPaused(){return this.paused}get hasTasks(){return this.queue.length!==0}};r(Oe,"SerialQueue");var W=!1,U=W?A("zeed:throttle","error"):()=>{};function au(e,t={}){let{delay:n=100,trailing:o=!0,leading:i=!0}=t,s=0,u=0,a=0,l,c=Date.now();function p(){return s?(clearTimeout(s),s=void 0,!0):!1}r(p,"clearExistingTimeout");function g(...h){let y=Date.now(),x=y-u;function f(){let m=Date.now();return`total ${(m-c).toFixed(1)}ms - elapsed ${(m-u).toFixed(1)}ms - visited ${a}x`}r(f,"debugElapsed");let d=r(()=>{a=0,u=Date.now(),e.apply(this,h)},"exec");if(l=d,x>n||!s){W&&U("elapsed",f()),i&&(x>n?(W&&U("\u{1F680} leading",f()),d()):++a);let m=x>n?n:n-x;U(`\u23F1 start timeout with ${m.toFixed(1)}ms`,f()),p(),u=y,s=setTimeout(()=>{W&&U("\u23F1 reached timeout",f()),s=0,o&&(!i||a>0)&&(W&&U("\u{1F680} trailing",f()),l?.())},m)}else++a,W&&U("visited",f())}return r(g,"wrapper"),g.cancel=p,g.stop=()=>{p()&&l&&l()},g.immediate=r(async function(...y){p(),u=Date.now(),e.apply(this,y)},"immediate"),g.dispose=()=>g.stop(),g}r(au,"throttle");function uu(e,t={}){let{delay:n=100}=t,o=0,i=!1,s;function u(){o&&(U("clear"),clearTimeout(o),o=0)}r(u,"clearExistingTimeout");async function a(){try{if(u(),s!=null){U("exec");let p=[...s];s=void 0,i=!0,await I(e(...p)),i=!1,U("exec done"),s!=null&&(u(),U("exec trigger next"),o=setTimeout(a,n))}}catch{}}r(a,"exec");function l(...p){s=[...p],u(),U("trigger"),i===!1&&(o=setTimeout(a,n))}r(l,"wrapper");async function c(...p){u(),s=[...p],await a()}return r(c,"immediate"),l.cancel=u,l.dispose=u,l.immediate=c,l}r(uu,"debounce");function fu(e=globalThis?.location?.hostname??""){return["::ffff:127.0.0.1","localhost","127.0.0.1","","::1","::"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")}r(fu,"isLocalHost");function mu(e){let{level:t=void 0,filter:n=void 0,messages:o=[]}=e,i=G(n),s=ie(t);return u=>{!s(u.level)||!i(u.name)||o.push(u)}}r(mu,"LoggerMemoryHandler");var pe=class extends M{constructor(){super(...arguments);this.id=j()}close(){this.dispose()}};r(pe,"Channel");var ee=class extends pe{constructor(){super(...arguments);this.isConnected=!0}postMessage(n){this.other?.emit("message",{data:n,origin:"local",lastEventId:j()})}};r(ee,"LocalChannel");function wu(){let e=new ee,t=new ee;return e.other=t,t.other=e,[e,t]}r(wu,"createLocalChannelPair");var $e=class{async encode(t){return t}async decode(t){return t}};r($e,"NoopEncoder");var z=class{async encode(t){return xe(t)}async decode(t){return be(t)}};r(z,"JsonEncoder");var Be=class{constructor(t){this.key=t}async encode(t){let n=xe(t);return await tt(n,this.key)}async decode(t){let n=await nt(t,this.key);return be(n)}};r(Be,"CryptoEncoder");var Rt=r((e,t,n={})=>new Proxy(n,{get:(o,i)=>i in o?o[i]:(...s)=>e(i,s,t)}),"createPromiseProxy");function Fu(e={}){let{name:t=_("hub"),encoder:n=new z,retryAfter:o=1e3,ignoreUnhandled:i=!0,logLevel:s=!1}=e,u=A(t,s),a={},l,c=[],p,g={},h=r(()=>{clearTimeout(p)},"dispose"),y=r(async()=>{if(clearTimeout(p),l){if(l.isConnected)for(;c.length;){let m=c[0];try{l.postMessage(await n.encode(m)),c.shift()}catch(w){u.warn("postMessage",w);break}}c.length>0&&o>0&&(p=setTimeout(y,o))}},"postNext"),x=r(async m=>{u("enqueue postMessage",m),c.push(m),await y()},"postMessage"),f=r(async m=>{l=m,l.on("connect",y),l.on("message",async w=>{u("onmessage",typeof w);let{name:b,args:T,id:v,result:q,error:O}=await n.decode(w.data);if(b){u(`name ${b} id ${v}`);try{if(a[b]==null)throw new Error(`handler for ${b} was not found`);let R=a[b](...T);E(R)&&(R=await R),u(`result ${R}`),v&&x({id:v,result:R})}catch(R){let $=R instanceof Error?R:new Error(De(R));u.warn("execution error",$.name),x({id:v,error:{message:$.message,stack:$.stack,name:$.name}})}}else if(v)if(u(`response for id=${v}: result=${q}, error=${O}`),g[v]==null)q===void 0?u(`skip response for ${v}`):u.warn(`no response hook for ${v}`);else{let[R,$]=g[v];if(R&&$)if(delete g[v],O){let te=new Error(O.message);te.stack=O.stack,te.name=O.name,u.warn("reject",te.name),$(te)}else u("resolve",q),R(q)}else i||u.warn("Unhandled message",w)}),y()},"connect"),d=r(async(m,w,b={})=>{let{timeout:T=5e3}=b,v=j();return x({name:m,args:w,id:v}),dt(new Promise((q,O)=>g[v]=[q,O]),T)},"fetchMessage");return e.channel&&f(e.channel),{dispose:h,connect:f,listen(m){Object.assign(a,m)},send(){return Rt(d,{},{options(m){return Rt(d,{...m})}})}}}r(Fu,"useMessageHub");var ge=class extends M{constructor(n){super();this.publish=this.emit;this.subscribe=this.on;let{name:o,encoder:i=new z,channel:s,debug:u=!1}=n;this.channel=s,this.encoder=i,this.debug=u,this.name=o??this.channel.id??_("pubsub"),this.log=A(`${this.shortId}`),this.debug&&(this.channel.on("connect",()=>{this.log("channel connected")}),this.channel.on("disconnect",()=>{this.log("channel disconnected")})),this.channel.on("message",async({data:a})=>{let l=await this.encoder.decode(a);if(this.debug?this.log(`channel message, event=${l?.event}, info=`,l):this.log(`channel message, event=${l?.event}`),l){let{event:c,args:p}=l;await this.emitSuper(c,...p)}})}get shortId(){return this.name.substr(0,6)}async emitSuper(n,...o){return await super.emit(n,...o)}async emit(n,...o){try{if(this.debug?this.log(`emit(${String(n)})`,n):this.log(`emit(${String(n)})`,o.length),!this.channel.isConnected)return this.log.warn("channel not connected"),!1;let i=await this.encoder.encode({event:n,args:o});return this.channel.postMessage(i),!0}catch(i){this.log.warn(`emit(${String(n)})`,i)}return!1}};r(ge,"PubSub");function Hu(e){return new ge(e)}r(Hu,"usePubSub");var qn=1;var St=r(e=>e,"defaultSerialize"),Gn=St;function zu(e,t){let{post:n,on:o,eventNames:i=[],serialize:s=St,deserialize:u=Gn}=t,a=new Map;return o(async l=>{let c=u(l),[p,g,h,y]=c;if(p===1||p===2){let x,f;if(y!=null)try{x=await e[y](...g)}catch(d){f=String(d)}else f="Method implementation missing";p===1&&h&&n(s(f?[4,f,h]:[3,x,h]))}else if(h){let x=a.get(h);x!=null&&(p===4?x.reject(g):x.resolve(g)),a.delete(h)}}),new Proxy({},{get(l,c){let p=r((...h)=>{n(s([2,h,null,c]))},"sendEvent");if(t.onlyEvents||i.includes(c))return p.asEvent=p,p;let g=r((...h)=>new Promise((y,x)=>{let f=qn++;a.set(f,{resolve:y,reject:x}),n(s([1,h,f,c]))}),"sendCall");return g.asEvent=p,g}})}r(zu,"useRPC");var K=A("zeed:network","error"),He={cache:"no-cache",redirect:"follow",headers:{}};function Vn(e){let t=/:\/\/([^@]*)@/gi.exec(e);if(t&&t[1]){let[n,o]=t[1].split(":",2);return{url:e.replace(`${t[1]}@`,""),username:n,password:o}}}r(Vn,"parseBasicAuth");async function Ut(e,t={},n=fetch){try{k(t)&&(t=oe({},...J(t)));let o=Vn(String(e));o&&(e=o.url,t=oe({},t,Jn(o.username,o.password))),t.headers!=null&&!(t.headers instanceof Headers)&&(t.headers=new Headers(t.headers));let i=await n(String(e),t);if(i.status<400)return i;try{K.warn(`Fetch of ${e} with ${t} returned status=${i.status}`),K.warn(`Response: ${await i.text()}`)}catch(s){K.error("Exception:",s)}}catch(o){K.error("fetchBasic",o)}}r(Ut,"fetchBasic");async function Zu(e,t={},n=fetch){try{let o=await Ut(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(o)return await o.json()}catch(o){K.error("fetchJSON error:",o)}}r(Zu,"fetchJson");async function Wu(e,t={},n=fetch){try{let o=await Ut(e,[He,{method:"GET"},t],n);if(o)return await o.text()}catch(o){K.error("fetchHTML error:",o)}}r(Wu,"fetchText");function Ku(e,t="POST"){return{method:t,...He,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:wt(e)}}r(Ku,"fetchOptionsFormURLEncoded");function Yu(e,t="POST"){return{method:t,...He,headers:{"Content-Type":"application/json; charset=utf-8"},body:S(e)}}r(Yu,"fetchOptionsJson");function Jn(e,t){return{headers:{Authorization:`Basic ${Ke(`${e}:${t}`)}`}}}r(Jn,"fetchOptionsBasicAuth");function Ft(){if(typeof window<"u")return window}r(Ft,"getWindow");function Zn(){if(typeof navigator<"u")return navigator}r(Zn,"getNavigator");function ec(){return Ft()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}r(ec,"getGlobal");var C=Zn(),N=Ft();function Wn(e={ios:!1,macos:!1,windows:!1,beaker:!1,electron:!1,wkwebview:!1,pwa:!1,pwaInstalled:!1,browser:!1,node:!1,worker:!1,test:!1,jest:!1,macosNative:!1,iosNative:!1,appleNative:!1,touch:!1}){return e.ios=C?.platform?.match(/(iPhone|iPod|iPad)/i)!=null,e.macos=!!C?.platform?.startsWith("Mac"),e.windows=!!C?.platform?.startsWith("Win"),e.beaker=N?.beaker!=null,e.electron=(C?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=N?.webkit?.messageHandlers!=null,e.pwa=C?.serviceWorker!=null,e.pwaInstalled=C?.standalone||N?.matchMedia?.("(display-mode: standalone)")?.matches,e.node=typeof process<"u"&&process?.release?.name==="node",e.browser=!e.electron&&!e.wkwebview&&!e.node,e.worker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,e.jest=typeof jest<"u"||typeof vitest<"u",e.test=e.jest,e.macosNative=e.wkwebview&&e.macos,e.iosNative=e.wkwebview&&e.ios,e.appleNative=e.wkwebview,e.touch=N&&"ontouchstart"in N||(C?.maxTouchPoints||0)>1||C?.msPointerEnabled&&N?.MSGesture||N?.DocumentTouch&&document instanceof DocumentTouch,e}r(Wn,"detect");var Kn=r(()=>typeof window<"u"&&globalThis===window,"isBrowser"),tc=Wn();function nc(e){Kn()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e)}r(nc,"useExitHandler");var je=class{constructor(t={}){this.store={}}setItem(t,n){this.store[t]=Se(n)}getItem(t){return Se(this.store[t])}removeItem(t){delete this.store[t]}clear(){this.store={}}allKeys(){return Object.keys(this.store)}};r(je,"MemStorage");export{r as a,Y as b,F as c,me as d,k as e,ne as f,er as g,tr as h,nr as i,rr as j,_e as k,or as l,ir as m,re as n,Ct as o,oe as p,Ot as q,G as r,ye as s,ie as t,se as u,Q as v,ze as w,Ne as x,Ht as y,A as z,Mr as A,S as B,Rr as C,_t as D,zt as E,Ve as F,Je as G,P as H,Ir as I,Ze as J,We as K,Ke as L,Cr as M,Nt as N,Or as O,Ye as P,xe as Q,be as R,Qe as S,V as T,et as U,we as V,Xe as W,qt as X,jr as Y,_r as Z,tt as _,nt as $,Gt as aa,D as ba,qr as ca,Gr as da,Vr as ea,Jr as fa,Vt as ga,Zr as ha,Wr as ia,Kr as ja,Yr as ka,Jt as la,eo as ma,Le as na,to as oa,Ae as pa,Zt as qa,Wt as ra,J as sa,Kt as ta,so as ua,ao as va,uo as wa,ve as xa,co as ya,lo as za,Yt as Aa,fo as Ba,Qt as Ca,rt as Da,po as Ea,go as Fa,mo as Ga,yo as Ha,ho as Ia,xo as Ja,bo as Ka,wo as La,To as Ma,H as Na,Po as Oa,Eo as Pa,Mo as Qa,Ro as Ra,So as Sa,Uo as Ta,Fo as Ua,ko as Va,Io as Wa,$o as Xa,nn as Ya,Bo as Za,Ho as _a,No as $a,qo as ab,Go as bb,rn as cb,on as db,sn as eb,De as fb,Vo as gb,Jo as hb,Zo as ib,Wo as jb,an as kb,Ko as lb,Yo as mb,Ee as nb,Me as ob,it as pb,un as qb,ei as rb,st as sb,ti as tb,ni as ub,ri as vb,le as wb,oi as xb,Pe as yb,cn as zb,ln as Ab,Re as Bb,at as Cb,ii as Db,si as Eb,ai as Fb,ui as Gb,ct as Hb,di as Ib,pi as Jb,lt as Kb,gi as Lb,ft as Mb,mi as Nb,dt as Ob,yi as Pb,E as Qb,I as Rb,L as Sb,Ti as Tb,Li as Ub,Ai as Vb,vi as Wb,fn as Xb,Ei as Yb,Mi as Zb,Ri as _b,pt as $b,Fi as ac,Oi as bc,$i as cc,Bi as dc,_i as ec,yt as fc,X as gc,ht as hc,Vi as ic,Ji as jc,Zi as kc,Wi as lc,Ki as mc,Yi as nc,Qi as oc,Xi as pc,xt as qc,bt as rc,rs as sc,yn as tc,as as uc,fs as vc,xn as wc,wt as xc,ds as yc,ys as zc,hs as Ac,xs as Bc,bs as Cc,ws as Dc,Se as Ec,Ts as Fc,Ls as Gc,As as Hc,vs as Ic,Ln as Jc,Ms as Kc,Ue as Lc,na as Mc,ra as Nc,Fe as Oc,ca as Pc,la as Qc,fa as Rc,da as Sc,pa as Tc,ha as Uc,xa as Vc,M as Wc,Pa as Xc,Ea as Yc,Ma as Zc,Lt as _c,Ua as $c,Fa as ad,Ie as bd,Mn as cd,Rn as dd,Sn as ed,Un as fd,Fn as gd,kn as hd,Cn as id,On as jd,$n as kd,Pt as ld,Ha as md,ja as nd,Hn as od,_a as pd,za as qd,j as rd,Mt as sd,jn as td,Na as ud,_ as vd,qa as wd,zn as xd,Nn as yd,Ka as zd,Oe as Ad,au as Bd,uu as Cd,fu as Dd,mu as Ed,pe as Fd,ee as Gd,wu as Hd,$e as Id,z as Jd,Be as Kd,Rt as Ld,Fu as Md,ge as Nd,Hu as Od,zu as Pd,Vn as Qd,Ut as Rd,Zu as Sd,Wu as Td,Ku as Ud,Yu as Vd,Jn as Wd,Ft as Xd,Zn as Yd,ec as Zd,Wn as _d,Kn as $d,tc as ae,nc as be,je as ce};
12
+ //# sourceMappingURL=chunk-UXOFZVZZ.js.map