@cygnus-wealth/wallet-integration-system
Version:
Multi-chain wallet integration system for CygnusWealth
26 lines (24 loc) • 444 kB
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='color-scheme' content='dark light'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Playwright Test Report</title>
<script type="module">var s1=Object.defineProperty;var i1=(e,t,n)=>t in e?s1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dt=(e,t,n)=>i1(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf={exports:{}},Es={},af={exports:{}},q={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var eo=Symbol.for("react.element"),l1=Symbol.for("react.portal"),c1=Symbol.for("react.fragment"),a1=Symbol.for("react.strict_mode"),u1=Symbol.for("react.profiler"),f1=Symbol.for("react.provider"),d1=Symbol.for("react.context"),p1=Symbol.for("react.forward_ref"),h1=Symbol.for("react.suspense"),g1=Symbol.for("react.memo"),m1=Symbol.for("react.lazy"),Zc=Symbol.iterator;function v1(e){return e===null||typeof e!="object"?null:(e=Zc&&e[Zc]||e["@@iterator"],typeof e=="function"?e:null)}var uf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff=Object.assign,df={};function rr(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||uf}rr.prototype.isReactComponent={};rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pf(){}pf.prototype=rr.prototype;function jl(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||uf}var Pl=jl.prototype=new pf;Pl.constructor=jl;ff(Pl,rr.prototype);Pl.isPureReactComponent=!0;var Jc=Array.isArray,hf=Object.prototype.hasOwnProperty,Ml={current:null},gf={key:!0,ref:!0,__self:!0,__source:!0};function mf(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)hf.call(t,r)&&!gf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),a=0;a<l;a++)c[a]=arguments[a+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:eo,type:e,key:s,ref:i,props:o,_owner:Ml.current}}function y1(e,t){return{$$typeof:eo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===eo}function w1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _c=/\/+/g;function Vs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?w1(""+e.key):t.toString(36)}function Io(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case eo:case l1:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Vs(i,0):r,Jc(o)?(n="",e!=null&&(n=e.replace(_c,"$&/")+"/"),Io(o,t,n,"",function(a){return a})):o!=null&&(Hl(o)&&(o=y1(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(_c,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Jc(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+Vs(s,l);i+=Io(s,t,n,c,o)}else if(c=v1(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+Vs(s,l++),i+=Io(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function lo(e,t,n){if(e==null)return e;var r=[],o=0;return Io(e,r,"","",function(s){return t.call(n,s,o++)}),r}function A1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},No={transition:null},x1={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:No,ReactCurrentOwner:Ml};q.Children={map:lo,forEach:function(e,t,n){lo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lo(e,function(){t++}),t},toArray:function(e){return lo(e,function(t){return t})||[]},only:function(e){if(!Hl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=rr;q.Fragment=c1;q.Profiler=u1;q.PureComponent=jl;q.StrictMode=a1;q.Suspense=h1;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x1;q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ff({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Ml.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)hf.call(t,c)&&!gf.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var a=0;a<c;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:eo,type:e.type,key:o,ref:s,props:r,_owner:i}};q.createContext=function(e){return e={$$typeof:d1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:f1,_context:e},e.Consumer=e};q.createElement=mf;q.createFactory=function(e){var t=mf.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:p1,render:e}};q.isValidElement=Hl;q.lazy=function(e){return{$$typeof:m1,_payload:{_status:-1,_result:e},_init:A1}};q.memo=function(e,t){return{$$typeof:g1,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=No.transition;No.transition={};try{e()}finally{No.transition=t}};q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};q.useCallback=function(e,t){return Se.current.useCallback(e,t)};q.useContext=function(e){return Se.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};q.useEffect=function(e,t){return Se.current.useEffect(e,t)};q.useId=function(){return Se.current.useId()};q.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return Se.current.useMemo(e,t)};q.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};q.useRef=function(e){return Se.current.useRef(e)};q.useState=function(e){return Se.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return Se.current.useTransition()};q.version="18.2.0";af.exports=q;var U=af.exports;const xr=lf(U);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var E1=U,S1=Symbol.for("react.element"),C1=Symbol.for("react.fragment"),k1=Object.prototype.hasOwnProperty,D1=E1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b1={key:!0,ref:!0,__self:!0,__source:!0};function vf(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)k1.call(t,r)&&!b1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:S1,type:e,key:s,ref:i,props:o,_owner:D1.current}}Es.Fragment=C1;Es.jsx=vf;Es.jsxs=vf;cf.exports=Es;var g=cf.exports;const R1=15,Q=0,wt=1,T1=2,ke=-2,Z=-3,$c=-4,At=-5,Ne=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],yf=1440,I1=0,N1=4,L1=9,O1=5,j1=[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],P1=[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],M1=[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],H1=[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],B1=[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],F1=[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],Rt=15;function Di(){const e=this;let t,n,r,o,s,i;function l(a,p,y,h,x,E,m,v,u,f,d){let w,C,A,S,k,b,D,R,j,L,F,B,P,Y,T;L=0,k=y;do r[a[p+L]]++,L++,k--;while(k!==0);if(r[0]==y)return m[0]=-1,v[0]=0,Q;for(R=v[0],b=1;b<=Rt&&r[b]===0;b++);for(D=b,R<b&&(R=b),k=Rt;k!==0&&r[k]===0;k--);for(A=k,R>k&&(R=k),v[0]=R,Y=1<<b;b<k;b++,Y<<=1)if((Y-=r[b])<0)return Z;if((Y-=r[k])<0)return Z;for(r[k]+=Y,i[1]=b=0,L=1,P=2;--k!==0;)i[P]=b+=r[L],P++,L++;k=0,L=0;do(b=a[p+L])!==0&&(d[i[b]++]=k),L++;while(++k<y);for(y=i[A],i[0]=k=0,L=0,S=-1,B=-R,s[0]=0,F=0,T=0;D<=A;D++)for(w=r[D];w--!==0;){for(;D>B+R;){if(S++,B+=R,T=A-B,T=T>R?R:T,(C=1<<(b=D-B))>w+1&&(C-=w+1,P=D,b<T))for(;++b<T&&!((C<<=1)<=r[++P]);)C-=r[P];if(T=1<<b,f[0]+T>yf)return Z;s[S]=F=f[0],f[0]+=T,S!==0?(i[S]=k,o[0]=b,o[1]=R,b=k>>>B-R,o[2]=F-s[S-1]-b,u.set(o,(s[S-1]+b)*3)):m[0]=F}for(o[1]=D-B,L>=y?o[0]=192:d[L]<h?(o[0]=d[L]<256?0:96,o[2]=d[L++]):(o[0]=E[d[L]-h]+16+64,o[2]=x[d[L++]-h]),C=1<<D-B,b=k>>>B;b<T;b+=C)u.set(o,(F+b)*3);for(b=1<<D-1;k&b;b>>>=1)k^=b;for(k^=b,j=(1<<B)-1;(k&j)!=i[S];)S--,B-=R,j=(1<<B)-1}return Y!==0&&A!=1?At:Q}function c(a){let p;for(t||(t=[],n=[],r=new Int32Array(Rt+1),o=[],s=new Int32Array(Rt),i=new Int32Array(Rt+1)),n.length<a&&(n=[]),p=0;p<a;p++)n[p]=0;for(p=0;p<Rt+1;p++)r[p]=0;for(p=0;p<3;p++)o[p]=0;s.set(r.subarray(0,Rt),0),i.set(r.subarray(0,Rt+1),0)}e.inflate_trees_bits=function(a,p,y,h,x){let E;return c(19),t[0]=0,E=l(a,0,19,19,null,null,y,p,h,t,n),E==Z?x.msg="oversubscribed dynamic bit lengths tree":(E==At||p[0]===0)&&(x.msg="incomplete dynamic bit lengths tree",E=Z),E},e.inflate_trees_dynamic=function(a,p,y,h,x,E,m,v,u){let f;return c(288),t[0]=0,f=l(y,0,a,257,M1,H1,E,h,v,t,n),f!=Q||h[0]===0?(f==Z?u.msg="oversubscribed literal/length tree":f!=$c&&(u.msg="incomplete literal/length tree",f=Z),f):(c(288),f=l(y,a,p,0,B1,F1,m,x,v,t,n),f!=Q||x[0]===0&&a>257?(f==Z?u.msg="oversubscribed distance tree":f==At?(u.msg="incomplete distance tree",f=Z):f!=$c&&(u.msg="empty distance tree with lengths",f=Z),f):Q)}}Di.inflate_trees_fixed=function(e,t,n,r){return e[0]=L1,t[0]=O1,n[0]=j1,r[0]=P1,Q};const co=0,ea=1,ta=2,na=3,ra=4,oa=5,sa=6,Ws=7,ia=8,ao=9;function U1(){const e=this;let t,n=0,r,o=0,s=0,i=0,l=0,c=0,a=0,p=0,y,h=0,x,E=0;function m(v,u,f,d,w,C,A,S){let k,b,D,R,j,L,F,B,P,Y,T,M,N,G,H,W;F=S.next_in_index,B=S.avail_in,j=A.bitb,L=A.bitk,P=A.write,Y=P<A.read?A.read-P-1:A.end-P,T=Ne[v],M=Ne[u];do{for(;L<20;)B--,j|=(S.read_byte(F++)&255)<<L,L+=8;if(k=j&T,b=f,D=d,W=(D+k)*3,(R=b[W])===0){j>>=b[W+1],L-=b[W+1],A.win[P++]=b[W+2],Y--;continue}do{if(j>>=b[W+1],L-=b[W+1],R&16){for(R&=15,N=b[W+2]+(j&Ne[R]),j>>=R,L-=R;L<15;)B--,j|=(S.read_byte(F++)&255)<<L,L+=8;k=j&M,b=w,D=C,W=(D+k)*3,R=b[W];do if(j>>=b[W+1],L-=b[W+1],R&16){for(R&=15;L<R;)B--,j|=(S.read_byte(F++)&255)<<L,L+=8;if(G=b[W+2]+(j&Ne[R]),j>>=R,L-=R,Y-=N,P>=G)H=P-G,P-H>0&&2>P-H?(A.win[P++]=A.win[H++],A.win[P++]=A.win[H++],N-=2):(A.win.set(A.win.subarray(H,H+2),P),P+=2,H+=2,N-=2);else{H=P-G;do H+=A.end;while(H<0);if(R=A.end-H,N>R){if(N-=R,P-H>0&&R>P-H)do A.win[P++]=A.win[H++];while(--R!==0);else A.win.set(A.win.subarray(H,H+R),P),P+=R,H+=R,R=0;H=0}}if(P-H>0&&N>P-H)do A.win[P++]=A.win[H++];while(--N!==0);else A.win.set(A.win.subarray(H,H+N),P),P+=N,H+=N,N=0;break}else if(!(R&64))k+=b[W+2],k+=j&Ne[R],W=(D+k)*3,R=b[W];else return S.msg="invalid distance code",N=S.avail_in-B,N=L>>3<N?L>>3:N,B+=N,F-=N,L-=N<<3,A.bitb=j,A.bitk=L,S.avail_in=B,S.total_in+=F-S.next_in_index,S.next_in_index=F,A.write=P,Z;while(!0);break}if(R&64)return R&32?(N=S.avail_in-B,N=L>>3<N?L>>3:N,B+=N,F-=N,L-=N<<3,A.bitb=j,A.bitk=L,S.avail_in=B,S.total_in+=F-S.next_in_index,S.next_in_index=F,A.write=P,wt):(S.msg="invalid literal/length code",N=S.avail_in-B,N=L>>3<N?L>>3:N,B+=N,F-=N,L-=N<<3,A.bitb=j,A.bitk=L,S.avail_in=B,S.total_in+=F-S.next_in_index,S.next_in_index=F,A.write=P,Z);if(k+=b[W+2],k+=j&Ne[R],W=(D+k)*3,(R=b[W])===0){j>>=b[W+1],L-=b[W+1],A.win[P++]=b[W+2],Y--;break}}while(!0)}while(Y>=258&&B>=10);return N=S.avail_in-B,N=L>>3<N?L>>3:N,B+=N,F-=N,L-=N<<3,A.bitb=j,A.bitk=L,S.avail_in=B,S.total_in+=F-S.next_in_index,S.next_in_index=F,A.write=P,Q}e.init=function(v,u,f,d,w,C){t=co,a=v,p=u,y=f,h=d,x=w,E=C,r=null},e.proc=function(v,u,f){let d,w,C,A=0,S=0,k=0,b,D,R,j;for(k=u.next_in_index,b=u.avail_in,A=v.bitb,S=v.bitk,D=v.write,R=D<v.read?v.read-D-1:v.end-D;;)switch(t){case co:if(R>=258&&b>=10&&(v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,f=m(a,p,y,h,x,E,v,u),k=u.next_in_index,b=u.avail_in,A=v.bitb,S=v.bitk,D=v.write,R=D<v.read?v.read-D-1:v.end-D,f!=Q)){t=f==wt?Ws:ao;break}s=a,r=y,o=h,t=ea;case ea:for(d=s;S<d;){if(b!==0)f=Q;else return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);b--,A|=(u.read_byte(k++)&255)<<S,S+=8}if(w=(o+(A&Ne[d]))*3,A>>>=r[w+1],S-=r[w+1],C=r[w],C===0){i=r[w+2],t=sa;break}if(C&16){l=C&15,n=r[w+2],t=ta;break}if(!(C&64)){s=C,o=w/3+r[w+2];break}if(C&32){t=Ws;break}return t=ao,u.msg="invalid literal/length code",f=Z,v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);case ta:for(d=l;S<d;){if(b!==0)f=Q;else return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);b--,A|=(u.read_byte(k++)&255)<<S,S+=8}n+=A&Ne[d],A>>=d,S-=d,s=p,r=x,o=E,t=na;case na:for(d=s;S<d;){if(b!==0)f=Q;else return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);b--,A|=(u.read_byte(k++)&255)<<S,S+=8}if(w=(o+(A&Ne[d]))*3,A>>=r[w+1],S-=r[w+1],C=r[w],C&16){l=C&15,c=r[w+2],t=ra;break}if(!(C&64)){s=C,o=w/3+r[w+2];break}return t=ao,u.msg="invalid distance code",f=Z,v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);case ra:for(d=l;S<d;){if(b!==0)f=Q;else return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);b--,A|=(u.read_byte(k++)&255)<<S,S+=8}c+=A&Ne[d],A>>=d,S-=d,t=oa;case oa:for(j=D-c;j<0;)j+=v.end;for(;n!==0;){if(R===0&&(D==v.end&&v.read!==0&&(D=0,R=D<v.read?v.read-D-1:v.end-D),R===0&&(v.write=D,f=v.inflate_flush(u,f),D=v.write,R=D<v.read?v.read-D-1:v.end-D,D==v.end&&v.read!==0&&(D=0,R=D<v.read?v.read-D-1:v.end-D),R===0)))return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);v.win[D++]=v.win[j++],R--,j==v.end&&(j=0),n--}t=co;break;case sa:if(R===0&&(D==v.end&&v.read!==0&&(D=0,R=D<v.read?v.read-D-1:v.end-D),R===0&&(v.write=D,f=v.inflate_flush(u,f),D=v.write,R=D<v.read?v.read-D-1:v.end-D,D==v.end&&v.read!==0&&(D=0,R=D<v.read?v.read-D-1:v.end-D),R===0)))return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);f=Q,v.win[D++]=i,R--,t=co;break;case Ws:if(S>7&&(S-=8,b++,k--),v.write=D,f=v.inflate_flush(u,f),D=v.write,R=D<v.read?v.read-D-1:v.end-D,v.read!=v.write)return v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);t=ia;case ia:return f=wt,v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);case ao:return f=Z,v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f);default:return f=ke,v.bitb=A,v.bitk=S,u.avail_in=b,u.total_in+=k-u.next_in_index,u.next_in_index=k,v.write=D,v.inflate_flush(u,f)}},e.free=function(){}}const la=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cn=0,Ys=1,ca=2,aa=3,ua=4,fa=5,uo=6,fo=7,da=8,rn=9;function q1(e,t){const n=this;let r=Cn,o=0,s=0,i=0,l;const c=[0],a=[0],p=new U1;let y=0,h=new Int32Array(yf*3);const x=0,E=new Di;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=function(m,v){v&&(v[0]=x),r==uo&&p.free(m),r=Cn,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=function(m,v){let u,f,d;return f=m.next_out_index,d=n.read,u=(d<=n.write?n.write:n.end)-d,u>m.avail_out&&(u=m.avail_out),u!==0&&v==At&&(v=Q),m.avail_out-=u,m.total_out+=u,m.next_out.set(n.win.subarray(d,d+u),f),f+=u,d+=u,d==n.end&&(d=0,n.write==n.end&&(n.write=0),u=n.write-d,u>m.avail_out&&(u=m.avail_out),u!==0&&v==At&&(v=Q),m.avail_out-=u,m.total_out+=u,m.next_out.set(n.win.subarray(d,d+u),f),f+=u,d+=u),m.next_out_index=f,n.read=d,v},n.proc=function(m,v){let u,f,d,w,C,A,S,k;for(w=m.next_in_index,C=m.avail_in,f=n.bitb,d=n.bitk,A=n.write,S=A<n.read?n.read-A-1:n.end-A;;){let b,D,R,j,L,F,B,P;switch(r){case Cn:for(;d<3;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}switch(u=f&7,y=u&1,u>>>1){case 0:f>>>=3,d-=3,u=d&7,f>>>=u,d-=u,r=Ys;break;case 1:b=[],D=[],R=[[]],j=[[]],Di.inflate_trees_fixed(b,D,R,j),p.init(b[0],D[0],R[0],0,j[0],0),f>>>=3,d-=3,r=uo;break;case 2:f>>>=3,d-=3,r=aa;break;case 3:return f>>>=3,d-=3,r=rn,m.msg="invalid block type",v=Z,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v)}break;case Ys:for(;d<32;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}if((~f>>>16&65535)!=(f&65535))return r=rn,m.msg="invalid stored block lengths",v=Z,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);o=f&65535,f=d=0,r=o!==0?ca:y!==0?fo:Cn;break;case ca:if(C===0||S===0&&(A==n.end&&n.read!==0&&(A=0,S=A<n.read?n.read-A-1:n.end-A),S===0&&(n.write=A,v=n.inflate_flush(m,v),A=n.write,S=A<n.read?n.read-A-1:n.end-A,A==n.end&&n.read!==0&&(A=0,S=A<n.read?n.read-A-1:n.end-A),S===0)))return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);if(v=Q,u=o,u>C&&(u=C),u>S&&(u=S),n.win.set(m.read_buf(w,u),A),w+=u,C-=u,A+=u,S-=u,(o-=u)!==0)break;r=y!==0?fo:Cn;break;case aa:for(;d<14;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}if(s=u=f&16383,(u&31)>29||(u>>5&31)>29)return r=rn,m.msg="too many length or distance symbols",v=Z,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);if(u=258+(u&31)+(u>>5&31),!l||l.length<u)l=[];else for(k=0;k<u;k++)l[k]=0;f>>>=14,d-=14,i=0,r=ua;case ua:for(;i<4+(s>>>10);){for(;d<3;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}l[la[i++]]=f&7,f>>>=3,d-=3}for(;i<19;)l[la[i++]]=0;if(c[0]=7,u=E.inflate_trees_bits(l,c,a,h,m),u!=Q)return v=u,v==Z&&(l=null,r=rn),n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);i=0,r=fa;case fa:for(;u=s,!(i>=258+(u&31)+(u>>5&31));){let Y,T;for(u=c[0];d<u;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}if(u=h[(a[0]+(f&Ne[u]))*3+1],T=h[(a[0]+(f&Ne[u]))*3+2],T<16)f>>>=u,d-=u,l[i++]=T;else{for(k=T==18?7:T-14,Y=T==18?11:3;d<u+k;){if(C!==0)v=Q;else return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);C--,f|=(m.read_byte(w++)&255)<<d,d+=8}if(f>>>=u,d-=u,Y+=f&Ne[k],f>>>=k,d-=k,k=i,u=s,k+Y>258+(u&31)+(u>>5&31)||T==16&&k<1)return l=null,r=rn,m.msg="invalid bit length repeat",v=Z,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);T=T==16?l[k-1]:0;do l[k++]=T;while(--Y!==0);i=k}}if(a[0]=-1,L=[],F=[],B=[],P=[],L[0]=9,F[0]=6,u=s,u=E.inflate_trees_dynamic(257+(u&31),1+(u>>5&31),l,L,F,B,P,h,m),u!=Q)return u==Z&&(l=null,r=rn),v=u,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);p.init(L[0],F[0],h,B[0],h,P[0]),r=uo;case uo:if(n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,(v=p.proc(n,m,v))!=wt)return n.inflate_flush(m,v);if(v=Q,p.free(m),w=m.next_in_index,C=m.avail_in,f=n.bitb,d=n.bitk,A=n.write,S=A<n.read?n.read-A-1:n.end-A,y===0){r=Cn;break}r=fo;case fo:if(n.write=A,v=n.inflate_flush(m,v),A=n.write,S=A<n.read?n.read-A-1:n.end-A,n.read!=n.write)return n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);r=da;case da:return v=wt,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);case rn:return v=Z,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v);default:return v=ke,n.bitb=f,n.bitk=d,m.avail_in=C,m.total_in+=w-m.next_in_index,m.next_in_index=w,n.write=A,n.inflate_flush(m,v)}}},n.free=function(m){n.reset(m,null),n.win=null,h=null},n.set_dictionary=function(m,v,u){n.win.set(m.subarray(v,v+u),0),n.read=n.write=u},n.sync_point=function(){return r==Ys?1:0}}const Q1=32,V1=8,W1=0,pa=1,ha=2,ga=3,ma=4,va=5,Gs=6,ir=7,ya=12,Tt=13,Y1=[0,0,255,255];function G1(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(n){return!n||!n.istate?ke:(n.total_in=n.total_out=0,n.msg=null,n.istate.mode=ir,n.istate.blocks.reset(n,null),Q)}e.inflateEnd=function(n){return e.blocks&&e.blocks.free(n),e.blocks=null,Q},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),ke):(e.wbits=r,n.istate.blocks=new q1(n,1<<r),t(n),Q)},e.inflate=function(n,r){let o,s;if(!n||!n.istate||!n.next_in)return ke;const i=n.istate;for(r=r==N1?At:Q,o=At;;)switch(i.mode){case W1:if(n.avail_in===0)return o;if(o=r,n.avail_in--,n.total_in++,((i.method=n.read_byte(n.next_in_index++))&15)!=V1){i.mode=Tt,n.msg="unknown compression method",i.marker=5;break}if((i.method>>4)+8>i.wbits){i.mode=Tt,n.msg="invalid win size",i.marker=5;break}i.mode=pa;case pa:if(n.avail_in===0)return o;if(o=r,n.avail_in--,n.total_in++,s=n.read_byte(n.next_in_index++)&255,((i.method<<8)+s)%31!==0){i.mode=Tt,n.msg="incorrect header check",i.marker=5;break}if(!(s&Q1)){i.mode=ir;break}i.mode=ha;case ha:if(n.avail_in===0)return o;o=r,n.avail_in--,n.total_in++,i.need=(n.read_byte(n.next_in_index++)&255)<<24&4278190080,i.mode=ga;case ga:if(n.avail_in===0)return o;o=r,n.avail_in--,n.total_in++,i.need+=(n.read_byte(n.next_in_index++)&255)<<16&16711680,i.mode=ma;case ma:if(n.avail_in===0)return o;o=r,n.avail_in--,n.total_in++,i.need+=(n.read_byte(n.next_in_index++)&255)<<8&65280,i.mode=va;case va:return n.avail_in===0?o:(o=r,n.avail_in--,n.total_in++,i.need+=n.read_byte(n.next_in_index++)&255,i.mode=Gs,T1);case Gs:return i.mode=Tt,n.msg="need dictionary",i.marker=0,ke;case ir:if(o=i.blocks.proc(n,o),o==Z){i.mode=Tt,i.marker=0;break}if(o==Q&&(o=r),o!=wt)return o;o=r,i.blocks.reset(n,i.was),i.mode=ya;case ya:return n.avail_in=0,wt;case Tt:return Z;default:return ke}},e.inflateSetDictionary=function(n,r,o){let s=0,i=o;if(!n||!n.istate||n.istate.mode!=Gs)return ke;const l=n.istate;return i>=1<<l.wbits&&(i=(1<<l.wbits)-1,s=o-i),l.blocks.set_dictionary(r,s,i),l.mode=ir,Q},e.inflateSync=function(n){let r,o,s,i,l;if(!n||!n.istate)return ke;const c=n.istate;if(c.mode!=Tt&&(c.mode=Tt,c.marker=0),(r=n.avail_in)===0)return At;for(o=n.next_in_index,s=c.marker;r!==0&&s<4;)n.read_byte(o)==Y1[s]?s++:n.read_byte(o)!==0?s=0:s=4-s,o++,r--;return n.total_in+=o-n.next_in_index,n.next_in_index=o,n.avail_in=r,c.marker=s,s!=4?Z:(i=n.total_in,l=n.total_out,t(n),n.total_in=i,n.total_out=l,c.mode=ir,Q)},e.inflateSyncPoint=function(n){return!n||!n.istate||!n.istate.blocks?ke:n.istate.blocks.sync_point()}}function wf(){}wf.prototype={inflateInit(e){const t=this;return t.istate=new G1,e||(e=R1),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):ke},inflateEnd(){const e=this;if(!e.istate)return ke;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):ke},inflateSetDictionary(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):ke},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function z1(e){const t=this,n=new wf,r=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,o=I1,s=new Uint8Array(r);let i=!1;n.inflateInit(),n.next_out=s,t.append=function(l,c){const a=[];let p,y,h=0,x=0,E=0;if(l.length!==0){n.next_in_index=0,n.next_in=l,n.avail_in=l.length;do{if(n.next_out_index=0,n.avail_out=r,n.avail_in===0&&!i&&(n.next_in_index=0,i=!0),p=n.inflate(o),i&&p===At){if(n.avail_in!==0)throw new Error("inflating: bad input")}else if(p!==Q&&p!==wt)throw new Error("inflating: "+n.msg);if((i||p===wt)&&n.avail_in===l.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))),E+=n.next_out_index,c&&n.next_in_index>0&&n.next_in_index!=h&&(c(n.next_in_index),h=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return a.length>1?(y=new Uint8Array(E),a.forEach(function(m){y.set(m,x),x+=m.length})):y=a[0]?new Uint8Array(a[0]):new Uint8Array,y}},t.flush=function(){n.inflateEnd()}}const un=4294967295,jt=65535,X1=8,K1=0,Z1=99,J1=67324752,_1=134695760,wa=33639248,$1=101010256,Aa=101075792,eh=117853008,kn=22,zs=20,Xs=56,th=1,nh=39169,rh=10,oh=1,sh=21589,ih=28789,lh=25461,ch=6534,xa=1,ah=6,Ea=8,Sa=2048,Ca=16,uh="/",We=void 0,zo="undefined",Af="function";class ka{constructor(t){return class extends TransformStream{constructor(n,r){const o=new t(r);super({transform(s,i){i.enqueue(o.append(s))},flush(s){const i=o.flush();i&&s.enqueue(i)}})}}}}const fh=64;let xf=2;try{typeof navigator!=zo&&navigator.hardwareConcurrency&&(xf=navigator.hardwareConcurrency)}catch{}const dh={chunkSize:512*1024,maxWorkers:xf,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:We,CompressionStreamNative:typeof CompressionStream!=zo&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=zo&&DecompressionStream},Pt=Object.assign({},dh);function Ef(){return Pt}function ph(e){return Math.max(e.chunkSize,fh)}function Sf(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:o,useCompressionStream:s,useWebWorkers:i,Deflate:l,Inflate:c,CompressionStream:a,DecompressionStream:p,workerScripts:y}=e;if(It("baseURL",t),It("chunkSize",n),It("maxWorkers",r),It("terminateWorkerTimeout",o),It("useCompressionStream",s),It("useWebWorkers",i),l&&(Pt.CompressionStream=new ka(l)),c&&(Pt.DecompressionStream=new ka(c)),It("CompressionStream",a),It("DecompressionStream",p),y!==We){const{deflate:h,inflate:x}=y;if((h||x)&&(Pt.workerScripts||(Pt.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");Pt.workerScripts.deflate=h}if(x){if(!Array.isArray(x))throw new Error("workerScripts.inflate must be an array");Pt.workerScripts.inflate=x}}}function It(e,t){t!==We&&(Pt[e]=t)}function hh(){return"application/octet-stream"}const Cf=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=t>>>1^3988292384:t=t>>>1;Cf[e]=t}class Xo{constructor(t){this.crc=t||-1}append(t){let n=this.crc|0;for(let r=0,o=t.length|0;r<o;r++)n=n>>>8^Cf[(n^t[r])&255];this.crc=n}get(){return~this.crc}}class kf extends TransformStream{constructor(){let t;const n=new Xo;super({transform(r,o){n.append(r),o.enqueue(r)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,n.get()),t.value=r}}),t=this}}function gh(e){if(typeof TextEncoder>"u"){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}else return new TextEncoder().encode(e)}const xe={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const n=e[e.length-1],r=xe.getPartial(n);return r===32?e.concat(t):xe._shiftRight(t,r,n|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const n=e[t-1];return(t-1)*32+xe.getPartial(n)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const n=e.length;return t=t&31,n>0&&t&&(e[n-1]=xe.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const o=e.length?e[e.length-1]:0,s=xe.getPartial(o);return r.push(xe.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},Ko={bytes:{fromBits(e){const n=xe.bitLength(e)/8,r=new Uint8Array(n);let o;for(let s=0;s<n;s++)s&3||(o=e[s/4]),r[s]=o>>>24,o<<=8;return r},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],(n&3)===3&&(t.push(r),r=0);return n&3&&t.push(xe.partial(8*(n&3),r)),t}}},Df={};Df.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=Ko.utf8String.toBits(e));const n=t._buffer=xe.concat(t._buffer,e),r=t._length,o=t._length=r+xe.bitLength(e);if(o>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(n);let i=0;for(let l=t.blockSize+r-(t.blockSize+r&t.blockSize-1);l<=o;l+=t.blockSize)t._block(s.subarray(16*i,16*(i+1))),i+=1;return n.splice(0,16*i),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=xe.concat(t,[xe.partial(1,1)]);for(let r=t.length+2;r&15;r++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let a=0;a<16;a++)r[a]=e[a];let o=n[0],s=n[1],i=n[2],l=n[3],c=n[4];for(let a=0;a<=79;a++){a>=16&&(r[a]=t._S(1,r[a-3]^r[a-8]^r[a-14]^r[a-16]));const p=t._S(5,o)+t._f(a,s,i,l)+c+r[a]+t._key[Math.floor(a/20)]|0;c=l,l=i,i=t._S(30,s),s=o,o=p}n[0]=n[0]+o|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+l|0,n[4]=n[4]+c|0}};const bf={};bf.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],o=e.length;let s,i,l,c=1;if(o!==4&&o!==6&&o!==8)throw new Error("invalid aes key size");for(t._key=[i=e.slice(0),l=[]],s=o;s<4*o+28;s++){let a=i[s-1];(s%o===0||o===8&&s%o===4)&&(a=n[a>>>24]<<24^n[a>>16&255]<<16^n[a>>8&255]<<8^n[a&255],s%o===0&&(a=a<<8^a>>>24^c<<24,c=c<<1^(c>>7)*283)),i[s]=i[s-o]^a}for(let a=0;s;a++,s--){const p=i[a&3?s:s-4];s<=4||a<4?l[a]=p:l[a]=r[0][n[p>>>24]]^r[1][n[p>>16&255]]^r[2][n[p>>8&255]]^r[3][n[p&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],o=[],s=[];let i,l,c,a;for(let p=0;p<256;p++)s[(o[p]=p<<1^(p>>7)*283)^p]=p;for(let p=i=0;!n[p];p^=l||1,i=s[i]||1){let y=i^i<<1^i<<2^i<<3^i<<4;y=y>>8^y&255^99,n[p]=y,r[y]=p,a=o[c=o[l=o[p]]];let h=a*16843009^c*65537^l*257^p*16843008,x=o[y]*257^y*16843008;for(let E=0;E<4;E++)e[E][p]=x=x<<24^x>>>8,t[E][y]=h=h<<24^h>>>8}for(let p=0;p<5;p++)e[p]=e[p].slice(0),t[p]=t[p].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,o=[0,0,0,0],s=this._tables[t],i=s[0],l=s[1],c=s[2],a=s[3],p=s[4];let y=e[0]^n[0],h=e[t?3:1]^n[1],x=e[2]^n[2],E=e[t?1:3]^n[3],m=4,v,u,f;for(let d=0;d<r;d++)v=i[y>>>24]^l[h>>16&255]^c[x>>8&255]^a[E&255]^n[m],u=i[h>>>24]^l[x>>16&255]^c[E>>8&255]^a[y&255]^n[m+1],f=i[x>>>24]^l[E>>16&255]^c[y>>8&255]^a[h&255]^n[m+2],E=i[E>>>24]^l[y>>16&255]^c[h>>8&255]^a[x&255]^n[m+3],m+=4,y=v,h=u,x=f;for(let d=0;d<4;d++)o[t?3&-d:d]=p[y>>>24]<<24^p[h>>16&255]<<16^p[x>>8&255]<<8^p[E&255]^n[m++],v=y,y=h,h=x,x=E,E=v;return o}};const mh={getRandomValues(e){const t=new Uint32Array(e.buffer),n=r=>{let o=987654321;const s=4294967295;return function(){return o=36969*(o&65535)+(o>>16)&s,r=18e3*(r&65535)+(r>>16)&s,(((o<<16)+r&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,o;r<e.length;r+=4){const s=n((o||Math.random())*4294967296);o=s()*987654071,t[r/4]=s()*4294967296|0}return e}},Rf={};Rf.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const o=xe.bitLength(t);for(let s=0;s<r;s+=4){this.incCounter(n);const i=e.encrypt(n);t[s]^=i[0],t[s+1]^=i[1],t[s+2]^=i[2],t[s+3]^=i[3]}return xe.clamp(t,o)}};const pn={importKey(e){return new pn.hmacSha1(Ko.bytes.toBits(e))},pbkdf2(e,t,n,r){if(n=n||1e4,r<0||n<0)throw new Error("invalid params to pbkdf2");const o=(r>>5)+1<<2;let s,i,l,c,a;const p=new ArrayBuffer(o),y=new DataView(p);let h=0;const x=xe;for(t=Ko.bytes.toBits(t),a=1;h<(o||1);a++){for(s=i=e.encrypt(x.concat(t,[a])),l=1;l<n;l++)for(i=e.encrypt(i),c=0;c<i.length;c++)s[c]^=i[c];for(l=0;h<(o||1)&&l<s.length;l++)y.setInt32(h,s[l]),h+=4}return p.slice(0,r/8)}};pn.hmacSha1=class{constructor(e){const t=this,n=t._hash=Df.sha1,r=[[],[]];t._baseHash=[new n,new n];const o=t._baseHash[0].blockSize/32;e.length>o&&(e=new n().update(e).finalize());for(let s=0;s<o;s++)r[0][s]=e[s]^909522486,r[1][s]=e[s]^1549556828;t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const vh=typeof crypto<"u"&&typeof crypto.getRandomValues=="function",Bl="Invalid password",Fl="Invalid signature",Ul="zipjs-abort-check-password";function Tf(e){return vh?crypto.getRandomValues(e):mh.getRandomValues(e)}const Rn=16,yh="raw",If={name:"PBKDF2"},wh={name:"HMAC"},Ah="SHA-1",xh=Object.assign({hash:wh},If),bi=Object.assign({iterations:1e3,hash:{name:Ah}},If),Eh=["deriveBits"],Nr=[8,12,16],lr=[16,24,32],Lt=10,Sh=[0,0,0,0],Nf="undefined",Lf="function",Ss=typeof crypto!=Nf,to=Ss&&crypto.subtle,Of=Ss&&typeof to!=Nf,ct=Ko.bytes,Ch=bf.aes,kh=Rf.ctrGladman,Dh=pn.hmacSha1;let Da=Ss&&Of&&typeof to.importKey==Lf,ba=Ss&&Of&&typeof to.deriveBits==Lf;class bh extends TransformStream{constructor({password:t,signed:n,encryptionStrength:r,checkPasswordOnly:o}){super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:t,signed:n,strength:r-1,pending:new Uint8Array})},async transform(s,i){const l=this,{password:c,strength:a,resolveReady:p,ready:y}=l;c?(await Th(l,a,c,Qe(s,0,Nr[a]+2)),s=Qe(s,Nr[a]+2),o?i.error(new Error(Ul)):p()):await y;const h=new Uint8Array(s.length-Lt-(s.length-Lt)%Rn);i.enqueue(jf(l,s,h,0,Lt,!0))},async flush(s){const{signed:i,ctr:l,hmac:c,pending:a,ready:p}=this;if(c&&l){await p;const y=Qe(a,0,a.length-Lt),h=Qe(a,a.length-Lt);let x=new Uint8Array;if(y.length){const E=Or(ct,y);c.update(E);const m=l.update(E);x=Lr(ct,m)}if(i){const E=Qe(Lr(ct,c.digest()),0,Lt);for(let m=0;m<Lt;m++)if(E[m]!=h[m])throw new Error(Fl)}s.enqueue(x)}}})}}class Rh extends TransformStream{constructor({password:t,encryptionStrength:n}){let r;super({start(){Object.assign(this,{ready:new Promise(o=>this.resolveReady=o),password:t,strength:n-1,pending:new Uint8Array})},async transform(o,s){const i=this,{password:l,strength:c,resolveReady:a,ready:p}=i;let y=new Uint8Array;l?(y=await Ih(i,c,l),a()):await p;const h=new Uint8Array(y.length+o.length-o.length%Rn);h.set(y,0),s.enqueue(jf(i,o,h,y.length,0))},async flush(o){const{ctr:s,hmac:i,pending:l,ready:c}=this;if(i&&s){await c;let a=new Uint8Array;if(l.length){const p=s.update(Or(ct,l));i.update(p),a=Lr(ct,p)}r.signature=Lr(ct,i.digest()).slice(0,Lt),o.enqueue(ql(a,r.signature))}}}),r=this}}function jf(e,t,n,r,o,s){const{ctr:i,hmac:l,pending:c}=e,a=t.length-o;c.length&&(t=ql(c,t),n=Oh(n,a-a%Rn));let p;for(p=0;p<=a-Rn;p+=Rn){const y=Or(ct,Qe(t,p,p+Rn));s&&l.update(y);const h=i.update(y);s||l.update(h),n.set(Lr(ct,h),p+r)}return e.pending=Qe(t,p),n}async function Th(e,t,n,r){const o=await Pf(e,t,n,Qe(r,0,Nr[t])),s=Qe(r,Nr[t]);if(o[0]!=s[0]||o[1]!=s[1])throw new Error(Bl)}async function Ih(e,t,n){const r=Tf(new Uint8Array(Nr[t])),o=await Pf(e,t,n,r);return ql(r,o)}async function Pf(e,t,n,r){e.password=null;const o=gh(n),s=await Nh(yh,o,xh,!1,Eh),i=await Lh(Object.assign({salt:r},bi),s,8*(lr[t]*2+2)),l=new Uint8Array(i),c=Or(ct,Qe(l,0,lr[t])),a=Or(ct,Qe(l,lr[t],lr[t]*2)),p=Qe(l,lr[t]*2);return Object.assign(e,{keys:{key:c,authentication:a,passwordVerification:p},ctr:new kh(new Ch(c),Array.from(Sh)),hmac:new Dh(a)}),p}async function Nh(e,t,n,r,o){if(Da)try{return await to.importKey(e,t,n,r,o)}catch{return Da=!1,pn.importKey(t)}else return pn.importKey(t)}async function Lh(e,t,n){if(ba)try{return await to.deriveBits(e,t,n)}catch{return ba=!1,pn.pbkdf2(t,e.salt,bi.iterations,n)}else return pn.pbkdf2(t,e.salt,bi.iterations,n)}function ql(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Oh(e,t){if(t&&t>e.length){const n=e;e=new Uint8Array(t),e.set(n,0)}return e}function Qe(e,t,n){return e.subarray(t,n)}function Lr(e,t){return e.fromBits(t)}function Or(e,t){return e.toBits(t)}const qn=12;class jh extends TransformStream{constructor({password:t,passwordVerification:n,checkPasswordOnly:r}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),Mf(this,t)},transform(o,s){const i=this;if(i.password){const l=Ra(i,o.subarray(0,qn));if(i.password=null,l[qn-1]!=i.passwordVerification)throw new Error(Bl);o=o.subarray(qn)}r?s.error(new Error(Ul)):s.enqueue(Ra(i,o))}})}}class Ph extends TransformStream{constructor({password:t,passwordVerification:n}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),Mf(this,t)},transform(r,o){const s=this;let i,l;if(s.password){s.password=null;const c=Tf(new Uint8Array(qn));c[qn-1]=s.passwordVerification,i=new Uint8Array(r.length+c.length),i.set(Ta(s,c),0),l=qn}else i=new Uint8Array(r.length),l=0;i.set(Ta(s,r),l),o.enqueue(i)}})}}function Ra(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Hf(e)^t[r],Ql(e,n[r]);return n}function Ta(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Hf(e)^t[r],Ql(e,t[r]);return n}function Mf(e,t){const n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new Xo(n[0]),crcKey2:new Xo(n[2])});for(let r=0;r<t.length;r++)Ql(e,t.charCodeAt(r))}function Ql(e,t){let[n,r,o]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=Ia(Math.imul(Ia(r+Bf(n)),134775813)+1),e.crcKey2.append([r>>>24]),o=~e.crcKey2.get(),e.keys=[n,r,o]}function Hf(e){const t=e.keys[2]|2;return Bf(Math.imul(t,t^1)>>>8)}function Bf(e){return e&255}function Ia(e){return e&4294967295}const Na="deflate-raw";class Mh extends TransformStream{constructor(t,{chunkSize:n,CompressionStream:r,CompressionStreamNative:o}){super({});const{compressed:s,encrypted:i,useCompressionStream:l,zipCrypto:c,signed:a,level:p}=t,y=this;let h,x,E=Ff(super.readable);(!i||c)&&a&&(h=new kf,E=at(E,h)),s&&(E=qf(E,l,{level:p,chunkSize:n},o,r)),i&&(c?E=at(E,new Ph(t)):(x=new Rh(t),E=at(E,x))),Uf(y,E,()=>{let m;i&&!c&&(m=x.signature),(!i||c)&&a&&(m=new DataView(h.value.buffer).getUint32(0)),y.signature=m})}}class Hh extends TransformStream{constructor(t,{chunkSize:n,DecompressionStream:r,DecompressionStreamNative:o}){super({});const{zipCrypto:s,encrypted:i,signed:l,signature:c,compressed:a,useCompressionStream:p}=t;let y,h,x=Ff(super.readable);i&&(s?x=at(x,new jh(t)):(h=new bh(t),x=at(x,h))),a&&(x=qf(x,p,{chunkSize:n},o,r)),(!i||s)&&l&&(y=new kf,x=at(x,y)),Uf(this,x,()=>{if((!i||s)&&l){const E=new DataView(y.value.buffer);if(c!=E.getUint32(0,!1))throw new Error(Fl)}})}}function Ff(e){return at(e,new TransformStream({transform(t,n){t&&t.length&&n.enqueue(t)}}))}function Uf(e,t,n){t=at(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get(){return t}})}function qf(e,t,n,r,o){try{const s=t&&r?r:o;e=at(e,new s(Na,n))}catch(s){if(t)e=at(e,new o(Na,n));else throw s}return e}function at(e,t){return e.pipeThrough(t)}const Bh="message",Fh="start",Uh="pull",La="data",qh="ack",Qh="close",Vh="deflate",Qf="inflate";class Wh extends TransformStream{constructor(t,n){super({});const r=this,{codecType:o}=t;let s;o.startsWith(Vh)?s=Mh:o.startsWith(Qf)&&(s=Hh);let i=0;const l=new s(t,n),c=super.readable,a=new TransformStream({transform(p,y){p&&p.length&&(i+=p.length,y.enqueue(p))},flush(){const{signature:p}=l;Object.assign(r,{signature:p,size:i})}});Object.defineProperty(r,"readable",{get(){return c.pipeThrough(l).pipeThrough(a)}})}}const Yh=typeof Worker!=zo;class Ks{constructor(t,{readable:n,writable:r},{options:o,config:s,streamOptions:i,useWebWorkers:l,transferStreams:c,scripts:a},p){const{signal:y}=i;return Object.assign(t,{busy:!0,readable:n.pipeThrough(new Gh(n,i,s),{signal:y}),writable:r,options:Object.assign({},o),scripts:a,transferStreams:c,terminate(){const{worker:h,busy:x}=t;h&&!x&&(h.terminate(),t.interface=null)},onTaskFinished(){t.busy=!1,p(t)}}),(l&&Yh?Xh:zh)(t,s)}}class Gh extends TransformStream{constructor(t,{onstart:n,onprogress:r,size:o,onend:s},{chunkSize:i}){let l=0;super({start(){n&&Zs(n,o)},async transform(c,a){l+=c.length,r&&await Zs(r,l,o),a.enqueue(c)},flush(){t.size=l,s&&Zs(s,l)}},{highWaterMark:1,size:()=>i})}}async function Zs(e,...t){try{await e(...t)}catch{}}function zh(e,t){return{run:()=>Kh(e,t)}}function Xh(e,{baseURL:t,chunkSize:n}){return e.interface||Object.assign(e,{worker:_h(e.scripts[0],t,e),interface:{run:()=>Zh(e,{chunkSize:n})}}),e.interface}async function Kh({options:e,readable:t,writable:n,onTaskFinished:r},o){const s=new Wh(e,o);try{await t.pipeThrough(s).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:i,size:l}=s;return{signature:i,size:l}}finally{r()}}async function Zh(e,t){let n,r;const o=new Promise((h,x)=>{n=h,r=x});Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:o});const{readable:s,options:i,scripts:l}=e,{writable:c,closed:a}=Jh(e.writable);Ri({type:Fh,scripts:l.slice(1),options:i,config:t,readable:s,writable:c},e)||Object.assign(e,{reader:s.getReader(),writer:c.getWriter()});const y=await o;try{await c.getWriter().close()}catch{}return await a,y}function Jh(e){const t=e.getWriter();let n;const r=new Promise(s=>n=s);return{writable:new WritableStream({async write(s){await t.ready,await t.write(s)},close(){t.releaseLock(),n()},abort(s){return t.abort(s)}}),closed:r}}let Oa=!0,ja=!0;function _h(e,t,n){const r={type:"module"};let o,s;typeof e==Af&&(e=e());try{o=new URL(e,t)}catch{o=e}if(Oa)try{s=new Worker(o)}catch{Oa=!1,s=new Worker(o,r)}else s=new Worker(o,r);return s.addEventListener(Bh,i=>$h(i,n)),s}function Ri(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:o}){try{let{value:s,readable:i,writable:l}=e;const c=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,c.push(e.value)),o&&ja?(i&&c.push(i),l&&c.push(l)):e.readable=e.writable=null,c.length)try{return t.postMessage(e,c),!0}catch{ja=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw n&&n.releaseLock(),r(),s}}async function $h({data:e},t){const{type:n,value:r,messageId:o,result:s,error:i}=e,{reader:l,writer:c,resolveResult:a,rejectResult:p,onTaskFinished:y}=t;try{if(i){const{message:x,stack:E,code:m,name:v}=i,u=new Error(x);Object.assign(u,{stack:E,code:m,name:v}),h(u)}else{if(n==Uh){const{value:x,done:E}=await l.read