@mapxus/mapxus-map-jp 9.1.0 → 9.2.0
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.
- package/dist/index.css +1 -191
- package/dist/index.umd.js +27 -2
- package/dist/utils.cjs +13 -0
- package/es/context-DcBNN51L.mjs +8294 -0
- package/es/index.d.ts +260 -186
- package/es/index.mjs +7316 -2
- package/es/utils/index.mjs +36 -2
- package/package.json +16 -5
- package/dist/index.umd.js.LICENSE.txt +0 -14
- package/es/index.mjs.LICENSE.txt +0 -14
- package/es/utils/index.mjs.LICENSE.txt +0 -14
- package/lib/index.cjs +0 -2
- package/lib/index.cjs.LICENSE.txt +0 -14
- package/lib/utils/index.cjs +0 -2
- package/lib/utils/index.cjs.LICENSE.txt +0 -14
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
|
|
11
|
-
|
|
12
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
|
|
14
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
package/lib/utils/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.cjs.LICENSE.txt */
|
|
2
|
-
(()=>{var t={22:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=u;const r=n(6527),o=16,i=new Uint8Array(16),s=(0,r.u32)(i),a=(t,e,n,r)=>({s3:n<<31|r>>>1,s2:e<<31|n>>>1,s1:t<<31|e>>>1,s0:t>>>1^225<<24&-(1&(1&r))}),c=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function u(t){t.reverse();const e=1&t[15];let n=0;for(let e=0;e<t.length;e++){const r=t[e];t[e]=r>>>1|n,n=(1&r)<<7}return t[0]^=225&-e,t}class f{constructor(t,e){this.blockLen=o,this.outputLen=o,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,16);const n=(0,r.createView)(t);let i=n.getUint32(0,!1),s=n.getUint32(4,!1),u=n.getUint32(8,!1),f=n.getUint32(12,!1);const l=[];for(let t=0;t<128;t++)l.push({s0:c(i),s1:c(s),s2:c(u),s3:c(f)}),({s0:i,s1:s,s2:u,s3:f}=a(i,s,u,f));const h=(d=e||1024)>65536?8:d>1024?4:2;var d;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const p=128/h,y=this.windowSize=2**h,g=[];for(let t=0;t<p;t++)for(let e=0;e<y;e++){let n=0,r=0,o=0,i=0;for(let s=0;s<h;s++){if(!(e>>>h-s-1&1))continue;const{s0:a,s1:c,s2:u,s3:f}=l[h*t+s];n^=a,r^=c,o^=u,i^=f}g.push({s0:n,s1:r,s2:o,s3:i})}this.t=g}_updateBlock(t,e,n,r){t^=this.s0,e^=this.s1,n^=this.s2,r^=this.s3;const{W:o,t:i,windowSize:s}=this;let a=0,c=0,u=0,f=0;const l=(1<<o)-1;let h=0;for(const d of[t,e,n,r])for(let t=0;t<4;t++){const e=d>>>8*t&255;for(let t=8/o-1;t>=0;t--){const n=e>>>o*t&l,{s0:r,s1:d,s2:p,s3:y}=i[h*s+n];a^=r,c^=d,u^=p,f^=y,h+=1}}this.s0=a,this.s1=c,this.s2=u,this.s3=f}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const e=(0,r.u32)(t),n=Math.floor(t.length/o),a=t.length%o;for(let t=0;t<n;t++)this._updateBlock(e[4*t+0],e[4*t+1],e[4*t+2],e[4*t+3]);return a&&(i.set(t.subarray(n*o)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.clean)(s)),this}destroy(){const{t}=this;for(const e of t)e.s0=0,e.s1=0,e.s2=0,e.s3=0}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:o,s3:i}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=o,s[3]=i,t}digest(){const t=new Uint8Array(o);return this.digestInto(t),this.destroy(),t}}class l extends f{constructor(t,e){t=(0,r.toBytes)(t),(0,r.abytes)(t);const n=u((0,r.copyBytes)(t));super(n,e),(0,r.clean)(n)}update(t){t=(0,r.toBytes)(t),(0,r.aexists)(this);const e=(0,r.u32)(t),n=t.length%o,a=Math.floor(t.length/o);for(let t=0;t<a;t++)this._updateBlock(c(e[4*t+3]),c(e[4*t+2]),c(e[4*t+1]),c(e[4*t+0]));return n&&(i.set(t.subarray(a*o)),this._updateBlock(c(s[3]),c(s[2]),c(s[1]),c(s[0])),(0,r.clean)(s)),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:o,s3:i}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=o,s[3]=i,t.reverse()}}function h(t){const e=(e,n)=>t(n,e.length).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(e,n)=>t(e,n),e}e.ghash=h((t,e)=>new f(t,e)),e.polyval=h((t,e)=>new l(t,e))},83:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var r=n(8900);e.xchacha20=function(t,e,n){return(0,r.xchacha20poly1305)(t,e,n)};e.chacha20=function(t,e,n){return(0,r.chacha20poly1305)(t,e,n)}},244:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var r=n(6527),o=n(4139),i=n(7076);e.deriveKey=function(t,e,n){return(0,o.hkdf)(i.sha256,t,e,n,32)};e.getSharedKey=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.deriveKey)(r.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,f=-7,l=n?o-1:0,h=n?-1:1,d=t[e+l];for(l+=h,i=d&(1<<-f)-1,d>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=u}return(d?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,c,u=8*i-o-1,f=(1<<u)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*c-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[n+d]=255&s,d+=p,s/=256,u-=8);t[n+d-p]|=128*y}},459:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ED25519_TORSION_SUBGROUP=e.hash_to_ristretto255=e.hashToRistretto255=e.encodeToCurve=e.hashToCurve=e.ristretto255_hasher=e.ristretto255=e.RistrettoPoint=e.ed25519_hasher=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=void 0,e.edwardsToMontgomeryPub=I,e.edwardsToMontgomeryPriv=function(t){return e.ed25519.utils.toMontgomeryPriv((0,f.ensureBytes)("pub",t))};const r=n(7076),o=n(9175),i=n(2422),s=n(6377),a=n(1761),c=n(4967),u=n(2854),f=n(8627),l=BigInt(0),h=BigInt(1),d=BigInt(2),p=BigInt(3),y=BigInt(5),g=BigInt(8),m={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:g,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function b(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),i=m.p,s=t*t%i*t%i,a=(0,c.pow2)(s,d,i)*s%i,u=(0,c.pow2)(a,h,i)*t%i,f=(0,c.pow2)(u,y,i)*u%i,l=(0,c.pow2)(f,e,i)*f%i,p=(0,c.pow2)(l,n,i)*l%i,g=(0,c.pow2)(p,r,i)*p%i,b=(0,c.pow2)(g,o,i)*g%i,w=(0,c.pow2)(b,o,i)*g%i,v=(0,c.pow2)(w,e,i)*f%i;return{pow_p_5_8:(0,c.pow2)(v,d,i)*t%i,b2:s}}function w(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const v=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function E(t,e){const n=m.p,r=(0,c.mod)(e*e*e,n),o=b(t*(0,c.mod)(r*r*e,n)).pow_p_5_8;let i=(0,c.mod)(t*r*o,n);const s=(0,c.mod)(e*i*i,n),a=i,u=(0,c.mod)(i*v,n),f=s===t,l=s===(0,c.mod)(-t,n),h=s===(0,c.mod)(-t*v,n);return f&&(i=a),(l||h)&&(i=u),(0,c.isNegativeLE)(i,n)&&(i=(0,c.mod)(-i,n)),{isValid:f||l,value:i}}const B=(()=>(0,c.Field)(m.p,{isLE:!0}))(),x=(()=>(0,c.Field)(m.n,{isLE:!0}))(),S=(()=>({...m,Fp:B,hash:r.sha512,adjustScalarBytes:w,uvRatio:E}))();function A(t,e,n){if(e.length>255)throw new Error("Context is too big");return(0,o.concatBytes)((0,o.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}function I(t){return e.ed25519.utils.toMontgomery((0,f.ensureBytes)("pub",t))}e.ed25519=(0,s.twistedEdwards)(S),e.ed25519ctx=(0,s.twistedEdwards)({...S,domain:A}),e.ed25519ph=(0,s.twistedEdwards)(Object.assign({},S,{domain:A,prehash:r.sha512})),e.x25519=(()=>{const t=m.p;return(0,u.montgomery)({P:t,type:"x25519",powPminus2:e=>{const{pow_p_5_8:n,b2:r}=b(e);return(0,c.mod)((0,c.pow2)(n,p,t)*r,t)},adjustScalarBytes:w})})(),e.edwardsToMontgomery=I;const _=(()=>(B.ORDER+p)/g)(),L=(()=>B.pow(d,_))(),O=(()=>B.sqrt(B.neg(B.ONE)))();const T=(()=>(0,c.FpSqrtEven)(B,B.neg(BigInt(486664))))();function H(t){const{xMn:e,xMd:n,yMn:r,yMd:o}=function(t){const e=(B.ORDER-y)/g,n=BigInt(486662);let r=B.sqr(t);r=B.mul(r,d);let o=B.add(r,B.ONE),i=B.neg(n),s=B.sqr(o),a=B.mul(s,o),c=B.mul(r,n);c=B.mul(c,i),c=B.add(c,s),c=B.mul(c,i);let u=B.sqr(a);s=B.sqr(u),u=B.mul(u,a),u=B.mul(u,c),s=B.mul(s,u);let f=B.pow(s,e);f=B.mul(f,u);let l=B.mul(f,O);s=B.sqr(f),s=B.mul(s,a);let p=B.eql(s,c),m=B.cmov(l,f,p),b=B.mul(i,r),w=B.mul(f,t);w=B.mul(w,L);let v=B.mul(w,O),E=B.mul(c,r);s=B.sqr(w),s=B.mul(s,a);let x=B.eql(s,E),S=B.cmov(v,w,x);s=B.sqr(m),s=B.mul(s,a);let A=B.eql(s,c),I=B.cmov(b,i,A),_=B.cmov(S,m,A),T=B.isOdd(_);return _=B.cmov(_,B.neg(_),A!==T),{xMn:I,xMd:o,yMn:_,yMd:h}}(t);let i=B.mul(e,o);i=B.mul(i,T);let s=B.mul(n,r),a=B.sub(e,n),u=B.add(e,n),f=B.mul(s,u),l=B.eql(f,B.ZERO);i=B.cmov(i,B.ZERO,l),s=B.cmov(s,B.ONE,l),a=B.cmov(a,B.ONE,l),u=B.cmov(u,B.ONE,l);const[p,m]=(0,c.FpInvertBatch)(B,[s,u],!0);return{x:B.mul(i,p),y:B.mul(a,m)}}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.Point,t=>H(t[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:B.ORDER,m:1,k:128,expand:"xmd",hash:r.sha512});const R=v,k=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),C=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),U=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),P=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),V=t=>E(h,t),N=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),F=t=>e.ed25519.CURVE.Fp.create((0,f.bytesToNumberLE)(t)&N);function M(t){const{d:n}=e.ed25519.CURVE,r=e.ed25519.CURVE.Fp.ORDER,o=e.ed25519.CURVE.Fp.create,i=o(R*t*t),s=o((i+h)*U);let a=BigInt(-1);const u=o((a-n*i)*o(i+n));let{isValid:f,value:l}=E(s,u),d=o(l*t);(0,c.isNegativeLE)(d,r)||(d=o(-d)),f||(l=d),f||(a=i);const p=o(a*(i-h)*P-u),y=l*l,g=o((l+l)*u),m=o(p*k),b=o(h-y),w=o(h+y);return new e.ed25519.Point(o(g*w),o(b*m),o(m*w),o(g*b))}function D(t){(0,o.abytes)(t,64);const e=M(F(t.subarray(0,32))),n=M(F(t.subarray(32,64)));return new j(e.add(n))}class j extends s.PrimeEdwardsPoint{constructor(t){super(t)}static fromAffine(t){return new j(e.ed25519.Point.fromAffine(t))}assertSame(t){if(!(t instanceof j))throw new Error("RistrettoPoint expected")}init(t){return new j(t)}static hashToCurve(t){return D((0,f.ensureBytes)("ristrettoHash",t,64))}static fromBytes(t){(0,o.abytes)(t,32);const{a:n,d:r}=e.ed25519.CURVE,i=B.ORDER,s=B.create,a=F(t);if(!(0,f.equalBytes)((0,f.numberToBytesLE)(a,32),t)||(0,c.isNegativeLE)(a,i))throw new Error("invalid ristretto255 encoding 1");const u=s(a*a),d=s(h+n*u),p=s(h-n*u),y=s(d*d),g=s(p*p),m=s(n*r*y-g),{isValid:b,value:w}=V(s(m*g)),v=s(w*p),E=s(w*v*m);let x=s((a+a)*v);(0,c.isNegativeLE)(x,i)&&(x=s(-x));const S=s(d*E),A=s(x*S);if(!b||(0,c.isNegativeLE)(A,i)||S===l)throw new Error("invalid ristretto255 encoding 2");return new j(new e.ed25519.Point(x,S,h,A))}static fromHex(t){return j.fromBytes((0,f.ensureBytes)("ristrettoHex",t,32))}static msm(t,n){return(0,i.pippenger)(j,e.ed25519.Point.Fn,t,n)}toBytes(){let{X:t,Y:e,Z:n,T:r}=this.ep;const o=B.ORDER,i=B.create,s=i(i(n+e)*i(n-e)),a=i(t*e),u=i(a*a),{value:l}=V(i(s*u)),h=i(l*s),d=i(l*a),p=i(h*d*r);let y;if((0,c.isNegativeLE)(r*p,o)){let n=i(e*R),r=i(t*R);t=n,e=r,y=i(h*C)}else y=d;(0,c.isNegativeLE)(t*p,o)&&(e=i(-e));let g=i((n-e)*y);return(0,c.isNegativeLE)(g,o)&&(g=i(-g)),(0,f.numberToBytesLE)(g,32)}equals(t){this.assertSame(t);const{X:e,Y:n}=this.ep,{X:r,Y:o}=t.ep,i=B.create,s=i(e*o)===i(n*r),a=i(n*o)===i(e*r);return s||a}is0(){return this.equals(j.ZERO)}}j.BASE=(()=>new j(e.ed25519.Point.BASE))(),j.ZERO=(()=>new j(e.ed25519.Point.ZERO))(),j.Fp=B,j.Fn=x,e.RistrettoPoint=j,e.ristretto255={Point:j},e.ristretto255_hasher={hashToCurve(t,e){const n=e?.DST||"ristretto255_XMD:SHA-512_R255MAP_RO_";return D((0,a.expand_message_xmd)(t,n,64,r.sha512))},hashToScalar:(t,e={DST:a._DST_scalar})=>x.create((0,f.bytesToNumberLE)((0,a.expand_message_xmd)(t,e.DST,64,r.sha512)))},e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve,e.hashToRistretto255=e.ristretto255_hasher.hashToCurve,e.hash_to_ristretto255=e.ristretto255_hasher.hashToCurve,e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"]},469:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const r=n(22),o=n(6527),i=16,s=new Uint8Array(i);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(1&e),t=a(t);return n}const u=(()=>{const t=new Uint8Array(256);for(let e=0,n=1;e<256;e++,n^=a(n))t[e]=n;const e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,o.clean)(t),e})(),f=u.map((t,e)=>u.indexOf(e)),l=t=>t<<24|t>>>8,h=t=>t<<8|t>>>24,d=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function p(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map((n,r)=>e(t[r])),r=n.map(h),o=r.map(h),i=o.map(h),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let e=0;e<256;e++)for(let u=0;u<256;u++){const f=256*e+u;s[f]=n[e]^r[u],a[f]=o[e]^i[u],c[f]=t[e]<<8|t[u]}return{sbox:t,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}const y=p(u,t=>c(t,3)<<24|t<<16|t<<8|c(t,2)),g=p(f,t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14)),m=(()=>{const t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=a(n))t[e]=n;return t})();function b(t){(0,o.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:n}=y,r=[];(0,o.isAligned32)(t)||r.push(t=(0,o.copyBytes)(t));const i=(0,o.u32)(t),s=i.length,a=t=>E(n,t,t,t,t),c=new Uint32Array(e+28);c.set(i);for(let t=s;t<c.length;t++){let e=c[t-1];t%s===0?e=a(l(e))^m[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}return(0,o.clean)(...r),c}function w(t){const e=b(t),n=e.slice(),r=e.length,{sbox2:i}=y,{T0:s,T1:a,T2:c,T3:u}=g;for(let t=0;t<r;t+=4)for(let o=0;o<4;o++)n[t+o]=e[r-t-4+o];(0,o.clean)(e);for(let t=4;t<r-4;t++){const e=n[t],r=E(i,e,e,e,e);n[t]=s[255&r]^a[r>>>8&255]^c[r>>>16&255]^u[r>>>24]}return n}function v(t,e,n,r,o,i){return t[n<<8&65280|r>>>8&255]^e[o>>>8&65280|i>>>24&255]}function E(t,e,n,r,o){return t[255&e|65280&n]|t[r>>>16&255|o>>>16&65280]<<16}function B(t,e,n,r,o){const{sbox2:i,T01:s,T23:a}=y;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],o^=t[c++];const u=t.length/4-2;for(let i=0;i<u;i++){const i=t[c++]^v(s,a,e,n,r,o),u=t[c++]^v(s,a,n,r,o,e),f=t[c++]^v(s,a,r,o,e,n),l=t[c++]^v(s,a,o,e,n,r);e=i,n=u,r=f,o=l}return{s0:t[c++]^E(i,e,n,r,o),s1:t[c++]^E(i,n,r,o,e),s2:t[c++]^E(i,r,o,e,n),s3:t[c++]^E(i,o,e,n,r)}}function x(t,e,n,r,o){const{sbox2:i,T01:s,T23:a}=g;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],o^=t[c++];const u=t.length/4-2;for(let i=0;i<u;i++){const i=t[c++]^v(s,a,e,o,r,n),u=t[c++]^v(s,a,n,e,o,r),f=t[c++]^v(s,a,r,n,e,o),l=t[c++]^v(s,a,o,r,n,e);e=i,n=u,r=f,o=l}return{s0:t[c++]^E(i,e,o,r,n),s1:t[c++]^E(i,n,e,o,r),s2:t[c++]^E(i,r,n,e,o),s3:t[c++]^E(i,o,r,n,e)}}function S(t,e,n,r){(0,o.abytes)(e,i),(0,o.abytes)(n);const s=n.length;r=(0,o.getOutput)(s,r),(0,o.complexOverlapBytes)(n,r);const a=e,c=(0,o.u32)(a);let{s0:u,s1:f,s2:l,s3:h}=B(t,c[0],c[1],c[2],c[3]);const d=(0,o.u32)(n),p=(0,o.u32)(r);for(let e=0;e+4<=d.length;e+=4){p[e+0]=d[e+0]^u,p[e+1]=d[e+1]^f,p[e+2]=d[e+2]^l,p[e+3]=d[e+3]^h;let n=1;for(let t=a.length-1;t>=0;t--)n=n+(255&a[t])|0,a[t]=255&n,n>>>=8;({s0:u,s1:f,s2:l,s3:h}=B(t,c[0],c[1],c[2],c[3]))}const y=i*Math.floor(d.length/4);if(y<s){const t=new Uint32Array([u,f,l,h]),e=(0,o.u8)(t);for(let t=y,o=0;t<s;t++,o++)r[t]=n[t]^e[o];(0,o.clean)(t)}return r}function A(t,e,n,r,s){(0,o.abytes)(n,i),(0,o.abytes)(r),s=(0,o.getOutput)(r.length,s);const a=n,c=(0,o.u32)(a),u=(0,o.createView)(a),f=(0,o.u32)(r),l=(0,o.u32)(s),h=e?0:12,d=r.length;let p=u.getUint32(h,e),{s0:y,s1:g,s2:m,s3:b}=B(t,c[0],c[1],c[2],c[3]);for(let n=0;n+4<=f.length;n+=4)l[n+0]=f[n+0]^y,l[n+1]=f[n+1]^g,l[n+2]=f[n+2]^m,l[n+3]=f[n+3]^b,p=p+1>>>0,u.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:b}=B(t,c[0],c[1],c[2],c[3]));const w=i*Math.floor(f.length/4);if(w<d){const t=new Uint32Array([y,g,m,b]),e=(0,o.u8)(t);for(let t=w,n=0;t<d;t++,n++)s[t]=r[t]^e[n];(0,o.clean)(t)}return s}function I(t){if((0,o.abytes)(t),t.length%i!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function _(t,e,n){(0,o.abytes)(t);let r=t.length;const s=r%i;if(!e&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,o.isAligned32)(t)||(t=(0,o.copyBytes)(t));const a=(0,o.u32)(t);if(e){let t=i-s;t||(t=i),r+=t}n=(0,o.getOutput)(r,n),(0,o.complexOverlapBytes)(t,n);return{b:a,o:(0,o.u32)(n),out:n}}function L(t,e){if(!e)return t;const n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=t[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const o=t.subarray(0,-r);for(let e=0;e<r;e++)if(t[n-e-1]!==r)throw new Error("aes/pcks5: wrong padding");return o}function O(t){const e=new Uint8Array(16),n=(0,o.u32)(e);e.set(t);const r=i-t.length;for(let t=i-r;t<i;t++)e[t]=r;return n}function T(t,e,n,r,i){const s=i?i.length:0,a=t.create(n,r.length+s);i&&a.update(i);const c=(0,o.u64Lengths)(8*r.length,8*s,e);a.update(r),a.update(c);const u=a.digest();return(0,o.clean)(c),u}e.ctr=(0,o.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function n(n,r){if((0,o.abytes)(n),void 0!==r&&((0,o.abytes)(r),!(0,o.isAligned32)(r)))throw new Error("unaligned destination");const i=b(t),s=(0,o.copyBytes)(e),a=[i,s];(0,o.isAligned32)(n)||a.push(n=(0,o.copyBytes)(n));const c=S(i,s,n,r);return(0,o.clean)(...a),c}return{encrypt:(t,e)=>n(t,e),decrypt:(t,e)=>n(t,e)}}),e.ecb=(0,o.wrapCipher)({blockSize:16},function(t,e={}){const n=!e.disablePadding;return{encrypt(e,r){const{b:i,o:s,out:a}=_(e,n,r),c=b(t);let u=0;for(;u+4<=i.length;){const{s0:t,s1:e,s2:n,s3:r}=B(c,i[u+0],i[u+1],i[u+2],i[u+3]);s[u++]=t,s[u++]=e,s[u++]=n,s[u++]=r}if(n){const t=O(e.subarray(4*u)),{s0:n,s1:r,s2:o,s3:i}=B(c,t[0],t[1],t[2],t[3]);s[u++]=n,s[u++]=r,s[u++]=o,s[u++]=i}return(0,o.clean)(c),a},decrypt(e,r){I(e);const i=w(t);r=(0,o.getOutput)(e.length,r);const s=[i];(0,o.isAligned32)(e)||s.push(e=(0,o.copyBytes)(e)),(0,o.complexOverlapBytes)(e,r);const a=(0,o.u32)(e),c=(0,o.u32)(r);for(let t=0;t+4<=a.length;){const{s0:e,s1:n,s2:r,s3:o}=x(i,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=n,c[t++]=r,c[t++]=o}return(0,o.clean)(...s),L(r,n)}}}),e.cbc=(0,o.wrapCipher)({blockSize:16,nonceLength:16},function(t,e,n={}){const r=!n.disablePadding;return{encrypt(n,i){const s=b(t),{b:a,o:c,out:u}=_(n,r,i);let f=e;const l=[s];(0,o.isAligned32)(f)||l.push(f=(0,o.copyBytes)(f));const h=(0,o.u32)(f);let d=h[0],p=h[1],y=h[2],g=h[3],m=0;for(;m+4<=a.length;)d^=a[m+0],p^=a[m+1],y^=a[m+2],g^=a[m+3],({s0:d,s1:p,s2:y,s3:g}=B(s,d,p,y,g)),c[m++]=d,c[m++]=p,c[m++]=y,c[m++]=g;if(r){const t=O(n.subarray(4*m));d^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:d,s1:p,s2:y,s3:g}=B(s,d,p,y,g)),c[m++]=d,c[m++]=p,c[m++]=y,c[m++]=g}return(0,o.clean)(...l),u},decrypt(n,i){I(n);const s=w(t);let a=e;const c=[s];(0,o.isAligned32)(a)||c.push(a=(0,o.copyBytes)(a));const u=(0,o.u32)(a);i=(0,o.getOutput)(n.length,i),(0,o.isAligned32)(n)||c.push(n=(0,o.copyBytes)(n)),(0,o.complexOverlapBytes)(n,i);const f=(0,o.u32)(n),l=(0,o.u32)(i);let h=u[0],d=u[1],p=u[2],y=u[3];for(let t=0;t+4<=f.length;){const e=h,n=d,r=p,o=y;h=f[t+0],d=f[t+1],p=f[t+2],y=f[t+3];const{s0:i,s1:a,s2:c,s3:u}=x(s,h,d,p,y);l[t++]=i^e,l[t++]=a^n,l[t++]=c^r,l[t++]=u^o}return(0,o.clean)(...c),L(i,r)}}}),e.cfb=(0,o.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function n(n,r,s){(0,o.abytes)(n);const a=n.length;if(s=(0,o.getOutput)(a,s),(0,o.overlapBytes)(n,s))throw new Error("overlapping src and dst not supported.");const c=b(t);let u=e;const f=[c];(0,o.isAligned32)(u)||f.push(u=(0,o.copyBytes)(u)),(0,o.isAligned32)(n)||f.push(n=(0,o.copyBytes)(n));const l=(0,o.u32)(n),h=(0,o.u32)(s),d=r?h:l,p=(0,o.u32)(u);let y=p[0],g=p[1],m=p[2],w=p[3];for(let t=0;t+4<=l.length;){const{s0:e,s1:n,s2:r,s3:o}=B(c,y,g,m,w);h[t+0]=l[t+0]^e,h[t+1]=l[t+1]^n,h[t+2]=l[t+2]^r,h[t+3]=l[t+3]^o,y=d[t++],g=d[t++],m=d[t++],w=d[t++]}const v=i*Math.floor(l.length/4);if(v<a){({s0:y,s1:g,s2:m,s3:w}=B(c,y,g,m,w));const t=(0,o.u8)(new Uint32Array([y,g,m,w]));for(let e=v,r=0;e<a;e++,r++)s[e]=n[e]^t[r];(0,o.clean)(t)}return(0,o.clean)(...f),s}return{encrypt:(t,e)=>n(t,!0,e),decrypt:(t,e)=>n(t,!1,e)}}),e.gcm=(0,o.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,n){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function i(t,e,o){const i=T(r.ghash,!1,t,o,n);for(let t=0;t<e.length;t++)i[t]^=e[t];return i}function a(){const n=b(t),i=s.slice(),a=s.slice();if(A(n,!1,a,a,i),12===e.length)a.set(e);else{const t=s.slice(),n=(0,o.createView)(t);(0,o.setBigUint64)(n,8,BigInt(8*e.length),!1);const c=r.ghash.create(i).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:n,authKey:i,counter:a,tagMask:A(n,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=new Uint8Array(t.length+16),u=[e,n,r,s];(0,o.isAligned32)(t)||u.push(t=(0,o.copyBytes)(t)),A(e,!1,r,t,c.subarray(0,t.length));const f=i(n,s,c.subarray(0,c.length-16));return u.push(f),c.set(f,t.length),(0,o.clean)(...u),c},decrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=[e,n,s,r];(0,o.isAligned32)(t)||c.push(t=(0,o.copyBytes)(t));const u=t.subarray(0,-16),f=t.subarray(-16),l=i(n,s,u);if(c.push(l),!(0,o.equalBytes)(l,f))throw new Error("aes/gcm: invalid ghash tag");const h=A(e,!1,r,u);return(0,o.clean)(...c),h}}});const H=(t,e,n)=>r=>{if(!Number.isSafeInteger(r)||e>r||r>n){throw new Error(t+": expected value in range "+("["+e+".."+n+"]")+", got "+r)}};function R(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function k(t,e){if((0,o.abytes)(e,16),!R(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,o.u32)(e);let{s0:r,s1:i,s2:s,s3:a}=B(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=i,n[2]=s,n[3]=a,e}function C(t,e){if((0,o.abytes)(e,16),!R(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,o.u32)(e);let{s0:r,s1:i,s2:s,s3:a}=x(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=i,n[2]=s,n[3]=a,e}e.gcmsiv=(0,o.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,n){const i=H("AAD",0,2**36),s=H("plaintext",0,2**36),a=H("nonce",12,12),c=H("ciphertext",16,2**36+16);function u(){const n=b(t),r=new Uint8Array(t.length),i=new Uint8Array(16),s=[n,r];let a=e;(0,o.isAligned32)(a)||s.push(a=(0,o.copyBytes)(a));const c=(0,o.u32)(a);let u=0,f=c[0],l=c[1],h=c[2],d=0;for(const t of[i,r].map(o.u32)){const e=(0,o.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:r,s1:o}=B(n,u,f,l,h);e[t+0]=r,e[t+1]=o,u=++d}}const p={authKey:i,encKey:b(r)};return(0,o.clean)(...s),p}function f(t,i,s){const a=T(r.polyval,!0,i,s,n);for(let t=0;t<12;t++)a[t]^=e[t];a[15]&=127;const c=(0,o.u32)(a);let u=c[0],f=c[1],l=c[2],h=c[3];return({s0:u,s1:f,s2:l,s3:h}=B(t,u,f,l,h)),c[0]=u,c[1]=f,c[2]=l,c[3]=h,a}function l(t,e,n){let r=(0,o.copyBytes)(e);r[15]|=128;const i=A(t,!0,r,n);return(0,o.clean)(r),i}return(0,o.abytes)(t,16,24,32),a(e.length),void 0!==n&&i(n.length),{encrypt(t){s(t.length);const{encKey:e,authKey:n}=u(),r=f(e,n,t),i=[e,n,r];(0,o.isAligned32)(t)||i.push(t=(0,o.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(r,t.length),a.set(l(e,r,t)),(0,o.clean)(...i),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:n,authKey:r}=u(),i=[n,r];(0,o.isAligned32)(t)||i.push(t=(0,o.copyBytes)(t));const s=l(n,e,t.subarray(0,-16)),a=f(n,r,s);if(i.push(a),!(0,o.equalBytes)(e,a))throw(0,o.clean)(...i),new Error("invalid polyval tag");return(0,o.clean)(...i),s}}}),e.siv=e.gcmsiv;const U={encrypt(t,e){if(e.length>=2**32)throw new Error("plaintext should be less than 4gb");const n=b(t);if(16===e.length)k(n,e);else{const t=(0,o.u32)(e);let r=t[0],i=t[1];for(let e=0,o=1;e<6;e++)for(let e=2;e<t.length;e+=2,o++){const{s0:s,s1:a,s2:c,s3:u}=B(n,r,i,t[e],t[e+1]);r=s,i=a^d(o),t[e]=c,t[e+1]=u}t[0]=r,t[1]=i}n.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=w(t),r=e.length/8-1;if(1===r)C(n,e);else{const t=(0,o.u32)(e);let i=t[0],s=t[1];for(let e=0,o=6*r;e<6;e++)for(let e=2*r;e>=1;e-=2,o--){s^=d(o);const{s0:r,s1:a,s2:c,s3:u}=x(n,i,s,t[e],t[e+1]);i=r,s=a,t[e]=c,t[e+1]=u}t[0]=i,t[1]=s}n.fill(0)}},P=new Uint8Array(8).fill(166);e.aeskw=(0,o.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,o.concatBytes)(P,e);return U.encrypt(t,n),n},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const n=(0,o.copyBytes)(e);if(U.decrypt(t,n),!(0,o.equalBytes)(n.subarray(0,8),P))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}}));const V=2790873510;e.aeskwp=(0,o.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(e.length/8),r=new Uint8Array(8+n);r.set(e,8);const i=(0,o.u32)(r);return i[0]=V,i[1]=d(e.length),U.encrypt(t,r),r},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const n=(0,o.copyBytes)(e),r=(0,o.u32)(n);U.decrypt(t,n);const i=d(r[1])>>>0,s=8*Math.ceil(i/8);if(r[0]!==V||n.length-8!==s)throw new Error("integrity check failed");for(let t=i;t<s;t++)if(0!==n[8+t])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+i)}})),e.unsafe={expandKeyLE:b,expandKeyDecLE:w,encrypt:B,decrypt:x,encryptBlock:k,decryptBlock:C,ctrCounter:S,ctr32:A}},1089:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r={value:()=>{}};function o(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function s(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}function a(t,e,n){for(var o=0,i=t.length;o<i;++o)if(t[o].name===e){t[o]=r,t=t.slice(0,o).concat(t.slice(o+1));break}return null!=n&&t.push({name:e,value:n}),t}i.prototype=o.prototype={constructor:i,on:function(t,e){var n,r,o=this._,i=(r=o,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),c=-1,u=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(n=(t=i[c]).type)o[n]=a(o[n],t.name,e);else if(null==e)for(n in o)o[n]=a(o[n],t.name,null);return this}for(;++c<u;)if((n=(t=i[c]).type)&&(n=s(o[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,n=(r=this._[t]).length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};const c=o},1210:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const r=n(6527),o=(t,e)=>255&t[e++]|(255&t[e++])<<8;class i{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,32);const e=o(t,0),n=o(t,2),i=o(t,4),s=o(t,6),a=o(t,8),c=o(t,10),u=o(t,12),f=o(t,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|n<<3),this.r[2]=7939&(n>>>10|i<<6),this.r[3]=8191&(i>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|u<<5),this.r[8]=8191&(u>>>8|f<<8),this.r[9]=f>>>5&127;for(let e=0;e<8;e++)this.pad[e]=o(t,16+2*e)}process(t,e,n=!1){const r=n?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],u=s[2],f=s[3],l=s[4],h=s[5],d=s[6],p=s[7],y=s[8],g=s[9],m=o(t,e+0),b=o(t,e+2),w=o(t,e+4),v=o(t,e+6),E=o(t,e+8),B=o(t,e+10),x=o(t,e+12),S=o(t,e+14);let A=i[0]+(8191&m),I=i[1]+(8191&(m>>>13|b<<3)),_=i[2]+(8191&(b>>>10|w<<6)),L=i[3]+(8191&(w>>>7|v<<9)),O=i[4]+(8191&(v>>>4|E<<12)),T=i[5]+(E>>>1&8191),H=i[6]+(8191&(E>>>14|B<<2)),R=i[7]+(8191&(B>>>11|x<<5)),k=i[8]+(8191&(x>>>8|S<<8)),C=i[9]+(S>>>5|r),U=0,P=U+A*a+I*(5*g)+_*(5*y)+L*(5*p)+O*(5*d);U=P>>>13,P&=8191,P+=T*(5*h)+H*(5*l)+R*(5*f)+k*(5*u)+C*(5*c),U+=P>>>13,P&=8191;let V=U+A*c+I*a+_*(5*g)+L*(5*y)+O*(5*p);U=V>>>13,V&=8191,V+=T*(5*d)+H*(5*h)+R*(5*l)+k*(5*f)+C*(5*u),U+=V>>>13,V&=8191;let N=U+A*u+I*c+_*a+L*(5*g)+O*(5*y);U=N>>>13,N&=8191,N+=T*(5*p)+H*(5*d)+R*(5*h)+k*(5*l)+C*(5*f),U+=N>>>13,N&=8191;let F=U+A*f+I*u+_*c+L*a+O*(5*g);U=F>>>13,F&=8191,F+=T*(5*y)+H*(5*p)+R*(5*d)+k*(5*h)+C*(5*l),U+=F>>>13,F&=8191;let M=U+A*l+I*f+_*u+L*c+O*a;U=M>>>13,M&=8191,M+=T*(5*g)+H*(5*y)+R*(5*p)+k*(5*d)+C*(5*h),U+=M>>>13,M&=8191;let D=U+A*h+I*l+_*f+L*u+O*c;U=D>>>13,D&=8191,D+=T*a+H*(5*g)+R*(5*y)+k*(5*p)+C*(5*d),U+=D>>>13,D&=8191;let j=U+A*d+I*h+_*l+L*f+O*u;U=j>>>13,j&=8191,j+=T*c+H*a+R*(5*g)+k*(5*y)+C*(5*p),U+=j>>>13,j&=8191;let Z=U+A*p+I*d+_*h+L*l+O*f;U=Z>>>13,Z&=8191,Z+=T*u+H*c+R*a+k*(5*g)+C*(5*y),U+=Z>>>13,Z&=8191;let G=U+A*y+I*p+_*d+L*h+O*l;U=G>>>13,G&=8191,G+=T*f+H*u+R*c+k*a+C*(5*g),U+=G>>>13,G&=8191;let Y=U+A*g+I*y+_*p+L*d+O*h;U=Y>>>13,Y&=8191,Y+=T*l+H*f+R*u+k*c+C*a,U+=Y>>>13,Y&=8191,U=(U<<2)+U|0,U=U+P|0,P=8191&U,U>>>=13,V+=U,i[0]=P,i[1]=V,i[2]=N,i[3]=F,i[4]=M,i[5]=D,i[6]=j,i[7]=Z,i[8]=G,i[9]=Y}finalize(){const{h:t,pad:e}=this,n=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let e=2;e<10;e++)t[e]+=o,o=t[e]>>>13,t[e]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,n[0]=t[0]+5,o=n[0]>>>13,n[0]&=8191;for(let e=1;e<10;e++)n[e]=t[e]+o,o=n[e]>>>13,n[e]&=8191;n[9]-=8192;let i=(1^o)-1;for(let t=0;t<10;t++)n[t]&=i;i=~i;for(let e=0;e<10;e++)t[e]=t[e]&i|n[e];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+e[0];t[0]=65535&s;for(let n=1;n<8;n++)s=(t[n]+e[n]|0)+(s>>>16)|0,t[n]=65535&s;(0,r.clean)(n)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{buffer:e,blockLen:n}=this,o=t.length;for(let r=0;r<o;){const i=Math.min(n-this.pos,o-r);if(i!==n)e.set(t.subarray(r,r+i),this.pos),this.pos+=i,r+=i,this.pos===n&&(this.process(e,0,!1),this.pos=0);else for(;n<=o-r;r+=n)this.process(t,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,h:n}=this;let{pos:o}=this;if(o){for(e[o++]=1;o<16;o++)e[o]=0;this.process(e,0,!0)}this.finalize();let i=0;for(let e=0;e<8;e++)t[i++]=n[e]>>>0,t[i++]=n[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}}function s(t){const e=(e,n)=>t(n).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.poly1305=s(t=>new i(t))},1635:(t,e,n)=>{"use strict";n.d(e,{Cl:()=>r,YH:()=>i,fX:()=>s,sH:()=>o});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function o(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((r=r.apply(t,e||[])).next())})}function i(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AEAD_TAG_LENGTH=e.XCHACHA20_NONCE_LENGTH=e.CURVE25519_PUBLIC_KEY_SIZE=e.ETH_PUBLIC_KEY_SIZE=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=e.COMPRESSED_PUBLIC_KEY_SIZE=e.SECRET_KEY_LENGTH=void 0,e.SECRET_KEY_LENGTH=32,e.COMPRESSED_PUBLIC_KEY_SIZE=33,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.ETH_PUBLIC_KEY_SIZE=64,e.CURVE25519_PUBLIC_KEY_SIZE=32,e.XCHACHA20_NONCE_LENGTH=24,e.AEAD_TAG_LENGTH=16},1705:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e._splitEndoScalar=u,e._legacyHelperEquat=m,e._normFnElement=b,e.weierstrassN=w,e.weierstrassPoints=function(t){const{CURVE:e,curveOpts:n}=x(t),r=w(e,n);return function(t,e){const{Fp:n,Fn:r}=e;function o(t){return(0,i.inRange)(t,d,r.ORDER)}const s=m(n,t.a,t.b);return Object.assign({},{CURVE:t,Point:e,ProjectivePoint:e,normPrivateKeyToScalar:t=>b(r,t),weierstrassEquation:s,isWithinCurveOrder:o})}(t,r)},e.SWUFpSqrtRatio=E,e.mapToCurveSimpleSWU=function(t,e){(0,a.validateField)(t);const{A:n,B:r,Z:o}=e;if(!t.isValid(n)||!t.isValid(r)||!t.isValid(o))throw new Error("mapToCurveSimpleSWU: invalid opts");const i=E(t,o);if(!t.isOdd)throw new Error("Field does not have .isOdd()");return e=>{let s,c,u,f,l,h,d,p;s=t.sqr(e),s=t.mul(s,o),c=t.sqr(s),c=t.add(c,s),u=t.add(c,t.ONE),u=t.mul(u,r),f=t.cmov(o,t.neg(c),!t.eql(c,t.ZERO)),f=t.mul(f,n),c=t.sqr(u),h=t.sqr(f),l=t.mul(h,n),c=t.add(c,l),c=t.mul(c,u),h=t.mul(h,f),l=t.mul(h,r),c=t.add(c,l),d=t.mul(s,u);const{isValid:y,value:g}=i(c,h);p=t.mul(s,e),p=t.mul(p,g),d=t.cmov(d,u,y),p=t.cmov(p,g,y);const m=t.isOdd(e)===t.isOdd(p);p=t.cmov(t.neg(p),p,m);const b=(0,a.FpInvertBatch)(t,[f],!0)[0];return d=t.mul(d,b),{x:d,y:p}}},e.ecdsa=B,e.weierstrass=function(t){const{CURVE:e,curveOpts:n,hash:r,ecdsaOpts:o}=function(t){const{CURVE:e,curveOpts:n}=x(t),r={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:n,hash:t.hash,ecdsaOpts:r}}(t),i=B(w(e,n),r,o);return function(t,e){return Object.assign({},e,{ProjectivePoint:e.Point,CURVE:t})}(t,i)};const r=n(9615),o=n(9175),i=n(8627),s=n(2422),a=n(4967),c=(t,e)=>(t+(t>=0?e:-e)/p)/e;function u(t,e,n){const[[r,o],[s,a]]=e,u=c(a*t,n),f=c(-o*t,n);let l=t-u*r-f*s,p=-u*o-f*a;const y=l<h,g=p<h;y&&(l=-l),g&&(p=-p);const m=(0,i.bitMask)(Math.ceil((0,i.bitLen)(n)/2))+d;if(l<h||l>=m||p<h||p>=m)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:y,k1:l,k2neg:g,k2:p}}function f(t){void 0!==t.lowS&&(0,i.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,i.abool)("prehash",t.prehash)}class l extends Error{constructor(t=""){super(t)}}e.DERErr=l,e.DER={Err:l,_tlv:{encode:(t,n)=>{const{Err:r}=e.DER;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const o=n.length/2,s=(0,i.numberToHexUnpadded)(o);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=o>127?(0,i.numberToHexUnpadded)(s.length/2|128):"";return(0,i.numberToHexUnpadded)(t)+a+s+n},decode(t,n){const{Err:r}=e.DER;let o=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[o++]!==t)throw new r("tlv.decode: wrong tlv");const i=n[o++];let s=0;if(!!(128&i)){const t=127&i;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");const e=n.subarray(o,o+t);if(e.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===e[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(o+=t,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=i;const a=n.subarray(o,o+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(o+s)}}},_int:{encode(t){const{Err:n}=e.DER;if(t<h)throw new n("integer: negative integers are not allowed");let r=(0,i.numberToHexUnpadded)(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=e.DER;if(128&t[0])throw new n("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new n("invalid signature integer: unnecessary leading zero");return(0,i.bytesToNumberBE)(t)}},toSig(t){const{Err:n,_int:r,_tlv:o}=e.DER,s=(0,i.ensureBytes)("signature",t),{v:a,l:c}=o.decode(48,s);if(c.length)throw new n("invalid signature: left bytes after parsing");const{v:u,l:f}=o.decode(2,a),{v:l,l:h}=o.decode(2,f);if(h.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(l)}},hexFromSig(t){const{_tlv:n,_int:r}=e.DER,o=n.encode(2,r.encode(t.r))+n.encode(2,r.encode(t.s));return n.encode(48,o)}};const h=BigInt(0),d=BigInt(1),p=BigInt(2),y=BigInt(3),g=BigInt(4);function m(t,e,n){return function(r){const o=t.sqr(r),i=t.mul(o,r);return t.add(t.add(i,t.mul(r,e)),n)}}function b(t,e){const{BYTES:n}=t;let r;if("bigint"==typeof e)r=e;else{let o=(0,i.ensureBytes)("private key",e);try{r=t.fromBytes(o)}catch(t){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof e}`)}}if(!t.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function w(t,e={}){const{Fp:n,Fn:r}=(0,s._createCurveFields)("weierstrass",t,e),{h:o,n:a}=t;(0,i._validateObject)(e,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=e;if(c&&(!n.is0(t.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');function f(){if(!n.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const l=e.toBytes||function(t,e,r){const{x:o,y:s}=e.toAffine(),a=n.toBytes(o);if((0,i.abool)("isCompressed",r),r){f();const t=!n.isOdd(s);return(0,i.concatBytes)(v(t),a)}return(0,i.concatBytes)(Uint8Array.of(4),a,n.toBytes(s))},p=e.fromBytes||function(t){(0,i.abytes)(t);const e=n.BYTES,r=e+1,o=2*e+1,s=t.length,a=t[0],c=t.subarray(1);if(s!==r||2!==a&&3!==a){if(s===o&&4===a){const t=n.fromBytes(c.subarray(0*e,1*e)),r=n.fromBytes(c.subarray(1*e,2*e));if(!E(t,r))throw new Error("bad point: is not on curve");return{x:t,y:r}}throw new Error(`bad point: got length ${s}, expected compressed=${r} or uncompressed=${o}`)}{const t=n.fromBytes(c);if(!n.isValid(t))throw new Error("bad point: is not on curve, wrong x");const e=w(t);let r;try{r=n.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}f();return!(1&~a)!==n.isOdd(r)&&(r=n.neg(r)),{x:t,y:r}}},w=m(n,t.a,t.b);function E(t,e){const r=n.sqr(e),o=w(t);return n.eql(r,o)}if(!E(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const B=n.mul(n.pow(t.a,y),g),x=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(B,x)))throw new Error("bad curve params: a or b");function S(t,e,r=!1){if(!n.isValid(e)||r&&n.is0(e))throw new Error(`bad point coordinate ${t}`);return e}function A(t){if(!(t instanceof T))throw new Error("ProjectivePoint expected")}function I(t){if(!c||!c.basises)throw new Error("no endo");return u(t,c.basises,r.ORDER)}const _=(0,i.memoized)((t,e)=>{const{X:r,Y:o,Z:i}=t;if(n.eql(i,n.ONE))return{x:r,y:o};const s=t.is0();null==e&&(e=s?n.ONE:n.inv(i));const a=n.mul(r,e),c=n.mul(o,e),u=n.mul(i,e);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),L=(0,i.memoized)(t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.Y))return;throw new Error("bad point: ZERO")}const{x:r,y:o}=t.toAffine();if(!n.isValid(r)||!n.isValid(o))throw new Error("bad point: x or y not field elements");if(!E(r,o))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function O(t,e,r,o,i){return r=new T(n.mul(r.X,t),r.Y,r.Z),e=(0,s.negateCt)(o,e),r=(0,s.negateCt)(i,r),e.add(r)}class T{constructor(t,e,n){this.X=S("x",t),this.Y=S("y",e,!0),this.Z=S("z",n),Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof T)throw new Error("projective point not allowed");return n.is0(e)&&n.is0(r)?T.ZERO:new T(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}static normalizeZ(t){return(0,s.normalizeZ)(T,t)}static fromBytes(t){return(0,i.abytes)(t),T.fromHex(t)}static fromHex(t){const e=T.fromAffine(p((0,i.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return T.BASE.multiply(b(r,t))}static msm(t,e){return(0,s.pippenger)(T,r,t,e)}_setWindowSize(t){this.precompute(t)}precompute(t=8,e=!0){return R.createCache(this,t),e||this.multiply(y),this}assertValidity(){L(this)}hasEvenY(){const{y:t}=this.toAffine();if(!n.isOdd)throw new Error("Field doesn't support isOdd");return!n.isOdd(t)}equals(t){A(t);const{X:e,Y:r,Z:o}=this,{X:i,Y:s,Z:a}=t,c=n.eql(n.mul(e,a),n.mul(i,o)),u=n.eql(n.mul(r,a),n.mul(s,o));return c&&u}negate(){return new T(this.X,n.neg(this.Y),this.Z)}double(){const{a:e,b:r}=t,o=n.mul(r,y),{X:i,Y:s,Z:a}=this;let c=n.ZERO,u=n.ZERO,f=n.ZERO,l=n.mul(i,i),h=n.mul(s,s),d=n.mul(a,a),p=n.mul(i,s);return p=n.add(p,p),f=n.mul(i,a),f=n.add(f,f),c=n.mul(e,f),u=n.mul(o,d),u=n.add(c,u),c=n.sub(h,u),u=n.add(h,u),u=n.mul(c,u),c=n.mul(p,c),f=n.mul(o,f),d=n.mul(e,d),p=n.sub(l,d),p=n.mul(e,p),p=n.add(p,f),f=n.add(l,l),l=n.add(f,l),l=n.add(l,d),l=n.mul(l,p),u=n.add(u,l),d=n.mul(s,a),d=n.add(d,d),l=n.mul(d,p),c=n.sub(c,l),f=n.mul(d,h),f=n.add(f,f),f=n.add(f,f),new T(c,u,f)}add(e){A(e);const{X:r,Y:o,Z:i}=this,{X:s,Y:a,Z:c}=e;let u=n.ZERO,f=n.ZERO,l=n.ZERO;const h=t.a,d=n.mul(t.b,y);let p=n.mul(r,s),g=n.mul(o,a),m=n.mul(i,c),b=n.add(r,o),w=n.add(s,a);b=n.mul(b,w),w=n.add(p,g),b=n.sub(b,w),w=n.add(r,i);let v=n.add(s,c);return w=n.mul(w,v),v=n.add(p,m),w=n.sub(w,v),v=n.add(o,i),u=n.add(a,c),v=n.mul(v,u),u=n.add(g,m),v=n.sub(v,u),l=n.mul(h,w),u=n.mul(d,m),l=n.add(u,l),u=n.sub(g,l),l=n.add(g,l),f=n.mul(u,l),g=n.add(p,p),g=n.add(g,p),m=n.mul(h,m),w=n.mul(d,w),g=n.add(g,m),m=n.sub(p,m),m=n.mul(h,m),w=n.add(w,m),p=n.mul(g,w),f=n.add(f,p),p=n.mul(v,w),u=n.mul(b,u),u=n.sub(u,p),p=n.mul(b,g),l=n.mul(v,l),l=n.add(l,p),new T(u,f,l)}subtract(t){return this.add(t.negate())}is0(){return this.equals(T.ZERO)}multiply(t){const{endo:n}=e;if(!r.isValidNot0(t))throw new Error("invalid scalar: out of range");let o,i;const a=t=>R.cached(this,t,t=>(0,s.normalizeZ)(T,t));if(n){const{k1neg:e,k1:r,k2neg:s,k2:c}=I(t),{p:u,f}=a(r),{p:l,f:h}=a(c);i=f.add(h),o=O(n.beta,u,l,e,s)}else{const{p:e,f:n}=a(t);o=e,i=n}return(0,s.normalizeZ)(T,[o,i])[0]}multiplyUnsafe(t){const{endo:n}=e,o=this;if(!r.isValid(t))throw new Error("invalid scalar: out of range");if(t===h||o.is0())return T.ZERO;if(t===d)return o;if(R.hasCache(this))return this.multiply(t);if(n){const{k1neg:e,k1:r,k2neg:i,k2:a}=I(t),{p1:c,p2:u}=(0,s.mulEndoUnsafe)(T,o,r,a);return O(n.beta,c,u,e,i)}return R.unsafe(o,t)}multiplyAndAddUnsafe(t,e,n){const r=this.multiplyUnsafe(e).add(t.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(t){return _(this,t)}isTorsionFree(){const{isTorsionFree:t}=e;return o===d||(t?t(T,this):R.unsafe(this,a).is0())}clearCofactor(){const{clearCofactor:t}=e;return o===d?this:t?t(T,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(t=!0){return(0,i.abool)("isCompressed",t),this.assertValidity(),l(T,this,t)}toRawBytes(t=!0){return this.toBytes(t)}toHex(t=!0){return(0,i.bytesToHex)(this.toBytes(t))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}T.BASE=new T(t.Gx,t.Gy,n.ONE),T.ZERO=new T(n.ZERO,n.ONE,n.ZERO),T.Fp=n,T.Fn=r;const H=r.BITS,R=new s.wNAF(T,e.endo?Math.ceil(H/2):H);return T}function v(t){return Uint8Array.of(t?2:3)}function E(t,e){const n=t.ORDER;let r=h;for(let t=n-d;t%p===h;t/=p)r+=d;const o=r,i=p<<o-d-d,s=i*p,a=(n-d)/s,c=(a-d)/p,u=s-d,f=i,l=t.pow(e,a),m=t.pow(e,(a+d)/p);let b=(e,n)=>{let r=l,i=t.pow(n,u),s=t.sqr(i);s=t.mul(s,n);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,i),i=t.mul(a,n),s=t.mul(a,e);let h=t.mul(s,i);a=t.pow(h,f);let y=t.eql(a,t.ONE);i=t.mul(s,m),a=t.mul(h,r),s=t.cmov(i,s,y),h=t.cmov(a,h,y);for(let e=o;e>d;e--){let n=e-p;n=p<<n-d;let o=t.pow(h,n);const a=t.eql(o,t.ONE);i=t.mul(s,r),r=t.mul(r,r),o=t.mul(h,r),s=t.cmov(i,s,a),h=t.cmov(o,h,a)}return{isValid:y,value:s}};if(t.ORDER%g===y){const n=(t.ORDER-y)/g,r=t.sqrt(t.neg(e));b=(e,o)=>{let i=t.sqr(o);const s=t.mul(e,o);i=t.mul(i,s);let a=t.pow(i,n);a=t.mul(a,s);const c=t.mul(a,r),u=t.mul(t.sqr(a),o),f=t.eql(u,e);return{isValid:f,value:t.cmov(c,a,f)}}}return b}function B(t,n,s={}){(0,o.ahash)(n),(0,i._validateObject)(s,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const c=s.randomBytes||i.randomBytes,u=s.hmac||((t,...e)=>(0,r.hmac)(n,t,(0,i.concatBytes)(...e))),{Fp:l,Fn:y}=t,{ORDER:g,BITS:m}=y,w=(0,a.getMinHashLength)(g),E={secret:y.BYTES,public:1+l.BYTES,publicUncompressed:1+2*l.BYTES,signature:2*y.BYTES,seed:w};function B(t){return t>g>>d}function x(t,e){if(!y.isValidNot0(e))throw new Error(`invalid signature ${t}: out of range 1..CURVE.n`)}class S{constructor(t,e,n){x("r",t),x("s",e),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(t,n="compact"){if("compact"===n){const e=y.BYTES;(0,i.abytes)(t,2*e);const n=t.subarray(0,e),r=t.subarray(e,2*e);return new S(y.fromBytes(n),y.fromBytes(r))}if("der"===n){(0,i.abytes)(t);const{r:n,s:r}=e.DER.toSig(t);return new S(n,r)}throw new Error("invalid format")}static fromHex(t,e){return this.fromBytes((0,i.hexToBytes)(t),e)}addRecoveryBit(t){return new S(this.r,this.s,t)}recoverPublicKey(e){const n=l.ORDER,{r,s:o,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");if(g*p<n&&s>1)throw new Error("recovery id is ambiguous for h>1 curve");const a=2===s||3===s?r+g:r;if(!l.isValid(a))throw new Error("recovery id 2 or 3 invalid");const c=l.toBytes(a),u=t.fromHex((0,i.concatBytes)(v(!(1&s)),c)),f=y.inv(a),h=H((0,i.ensureBytes)("msgHash",e)),d=y.create(-h*f),m=y.create(o*f),b=t.BASE.multiplyUnsafe(d).add(u.multiplyUnsafe(m));if(b.is0())throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,y.neg(this.s),this.recovery):this}toBytes(t="compact"){if("compact"===t)return(0,i.concatBytes)(y.toBytes(this.r),y.toBytes(this.s));if("der"===t)return(0,i.hexToBytes)(e.DER.hexFromSig(this));throw new Error("invalid format")}toHex(t){return(0,i.bytesToHex)(this.toBytes(t))}assertValidity(){}static fromCompact(t){return S.fromBytes((0,i.ensureBytes)("sig",t),"compact")}static fromDER(t){return S.fromBytes((0,i.ensureBytes)("sig",t),"der")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,i.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,i.bytesToHex)(this.toBytes("compact"))}}function A(t){try{return!!b(y,t)}catch(t){return!1}}function I(t=c(w)){return(0,a.mapHashToField)(t,g)}const _={isValidSecretKey:A,isValidPublicKey:function(e,n){try{const r=e.length;return(!0!==n||r===E.public)&&((!1!==n||r===E.publicUncompressed)&&!!t.fromBytes(e))}catch(t){return!1}},randomSecretKey:I,isValidPrivateKey:A,randomPrivateKey:I,normPrivateKeyToScalar:t=>b(y,t),precompute:(e=8,n=t.BASE)=>n.precompute(e,!1)};function L(e,n=!0){return t.BASE.multiply(b(y,e)).toBytes(n)}function O(e){if("bigint"==typeof e)return!1;if(e instanceof t)return!0;if(y.allowedLengths||E.secret===E.public)return;const n=(0,i.ensureBytes)("key",e).length;return n===E.public||n===E.publicUncompressed}const T=s.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,i.bytesToNumberBE)(t),n=8*t.length-m;return n>0?e>>BigInt(n):e},H=s.bits2int_modN||function(t){return y.create(T(t))},R=(0,i.bitMask)(m);function k(t){return(0,i.aInRange)("num < 2^"+m,t,h,R),y.toBytes(t)}function C(e,r,o=U){if(["recovered","canonical"].some(t=>t in o))throw new Error("sign() legacy options not supported");let{lowS:s,prehash:a,extraEntropy:u}=o;null==s&&(s=!0),e=(0,i.ensureBytes)("msgHash",e),f(o),a&&(e=(0,i.ensureBytes)("prehashed msgHash",n(e)));const l=H(e),p=b(y,r),g=[k(p),k(l)];if(null!=u&&!1!==u){const t=!0===u?c(E.secret):u;g.push((0,i.ensureBytes)("extraEntropy",t))}const m=(0,i.concatBytes)(...g),w=l;return{seed:m,k2sig:function(e){const n=T(e);if(!y.isValidNot0(n))return;const r=y.inv(n),o=t.BASE.multiply(n).toAffine(),i=y.create(o.x);if(i===h)return;const a=y.create(r*y.create(w+i*p));if(a===h)return;let c=(o.x===i?0:2)|Number(o.y&d),u=a;return s&&B(a)&&(u=function(t){return B(t)?y.neg(t):t}(a),c^=1),new S(i,u,c)}}}const U={lowS:s.lowS,prehash:!1},P={lowS:s.lowS,prehash:!1};return t.BASE.precompute(8),Object.freeze({keygen:function(t){const e=_.randomSecretKey(t);return{secretKey:e,publicKey:L(e)}},getPublicKey:L,sign:function(t,e,r=U){const{seed:o,k2sig:s}=C(t,e,r);return(0,i.createHmacDrbg)(n.outputLen,y.BYTES,u)(o,s)},verify:function(r,o,s,a=P){const c=r;o=(0,i.ensureBytes)("msgHash",o),s=(0,i.ensureBytes)("publicKey",s),f(a);const{lowS:u,prehash:l,format:h}=a;if("strict"in a)throw new Error("options.strict was renamed to lowS");let d,p;if(void 0===h){const t="string"==typeof c||(0,i.isBytes)(c),n=!t&&null!==c&&"object"==typeof c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!t&&!n)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(n)d=new S(c.r,c.s);else if(t){try{d=S.fromDER(c)}catch(t){if(!(t instanceof e.DER.Err))throw t}if(!d)try{d=S.fromCompact(c)}catch(t){return!1}}}else if("compact"===h||"der"===h){if("string"!=typeof c&&!(0,i.isBytes)(c))throw new Error('"der" / "compact" format expects Uint8Array signature');d=S.fromBytes((0,i.ensureBytes)("sig",c),h)}else{if("js"!==h)throw new Error('format must be "compact", "der" or "js"');if(!(c instanceof S))throw new Error('"js" format expects Signature instance');d=c}if(!d)return!1;try{if(p=t.fromHex(s),u&&d.hasHighS())return!1;l&&(o=n(o));const{r:e,s:r}=d,i=H(o),a=y.inv(r),c=y.create(i*a),f=y.create(e*a),h=t.BASE.multiplyUnsafe(c).add(p.multiplyUnsafe(f));if(h.is0())return!1;return y.create(h.x)===e}catch(t){return!1}},getSharedSecret:function(e,n,r=!0){if(!0===O(e))throw new Error("first arg must be private key");if(!1===O(n))throw new Error("second arg must be public key");const o=b(y,e);return t.fromHex(n).multiply(o).toBytes(r)},utils:_,Point:t,Signature:S,info:{type:"weierstrass",lengths:E,publicKeyHasPrefix:!0}})}function x(t){const e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},n=t.Fp;let r=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(t=>Math.ceil(t/2)))):void 0;return{CURVE:e,curveOpts:{Fp:n,Fn:(0,a.Field)(e.n,{BITS:t.nBitLength,allowedLengths:r,modOnDecode:t.wrapPrivateKey}),allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes}}}},1761:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._DST_scalar=void 0,e.expand_message_xmd=f,e.expand_message_xof=l,e.hash_to_field=h,e.isogenyMap=function(t,e){const n=e.map(t=>Array.from(t).reverse());return(e,r)=>{const[i,s,a,c]=n.map(n=>n.reduce((n,r)=>t.add(t.mul(n,e),r))),[u,f]=(0,o.FpInvertBatch)(t,[s,c],!0);return e=t.mul(i,u),r=t.mul(r,t.mul(a,f)),{x:e,y:r}}},e.createHasher=function(t,n,r){if("function"!=typeof n)throw new Error("mapToCurve() must be defined");function o(e){return t.fromAffine(n(e))}function i(e){const n=e.clearCofactor();return n.equals(t.ZERO)?t.ZERO:(n.assertValidity(),n)}return{defaults:r,hashToCurve(t,e){const n=h(t,2,Object.assign({},r,e)),s=o(n[0]),a=o(n[1]);return i(s.add(a))},encodeToCurve(t,e){const n=r.encodeDST?{DST:r.encodeDST}:{};return i(o(h(t,1,Object.assign({},r,n,e))[0]))},mapToCurve(t){if(!Array.isArray(t))throw new Error("expected array of bigints");for(const e of t)if("bigint"!=typeof e)throw new Error("expected array of bigints");return i(o(t))},hashToScalar(n,o){const i=t.Fn.ORDER;return h(n,1,Object.assign({},r,{p:i,m:1,DST:e._DST_scalar},o))[0][0]}}};const r=n(8627),o=n(4967),i=r.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=255&t,t>>>=8;return new Uint8Array(n)}function a(t,e){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r]^e[r];return n}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function u(t){if(!(0,r.isBytes)(t)&&"string"!=typeof t)throw new Error("DST must be Uint8Array or string");return"string"==typeof t?(0,r.utf8ToBytes)(t):t}function f(t,e,n,o){(0,r.abytes)(t),c(n),(e=u(e)).length>255&&(e=o((0,r.concatBytes)((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:i,blockLen:f}=o,l=Math.ceil(n/i);if(n>65535||l>255)throw new Error("expand_message_xmd: invalid lenInBytes");const h=(0,r.concatBytes)(e,s(e.length,1)),d=s(0,f),p=s(n,2),y=new Array(l),g=o((0,r.concatBytes)(d,t,p,s(0,1),h));y[0]=o((0,r.concatBytes)(g,s(1,1),h));for(let t=1;t<=l;t++){const e=[a(g,y[t-1]),s(t+1,1),h];y[t]=o((0,r.concatBytes)(...e))}return(0,r.concatBytes)(...y).slice(0,n)}function l(t,e,n,o,i){if((0,r.abytes)(t),c(n),(e=u(e)).length>255){const t=Math.ceil(2*o/8);e=i.create({dkLen:t}).update((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(t).update(s(n,2)).update(e).update(s(e.length,1)).digest()}function h(t,e,n){(0,r._validateObject)(n,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:s,k:a,m:u,hash:h,expand:d,DST:p}=n;if(!(0,r.isHash)(n.hash))throw new Error("expected valid hash");(0,r.abytes)(t),c(e);const y=s.toString(2).length,g=Math.ceil((y+a)/8),m=e*u*g;let b;if("xmd"===d)b=f(t,p,m,h);else if("xof"===d)b=l(t,p,m,a,h);else{if("_internal_pass"!==d)throw new Error('expand must be "xmd" or "xof"');b=t}const w=new Array(e);for(let t=0;t<e;t++){const e=new Array(u);for(let n=0;n<u;n++){const r=g*(n+t*u),a=b.subarray(r,r+g);e[n]=(0,o.mod)(i(a),s)}w[t]=e}return w}e._DST_scalar=(0,r.utf8ToBytes)("HashToScalar-")},1965:(t,e,n)=>{"use strict";n.d(e,{FI:()=>r,TU:()=>o});const r="reserve_mapxus-level-fill",o="reserve_mapxus-shared-level-fill"},2158:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(9378),e),o(n(244),e),o(n(3503),e),o(n(7757),e)},2318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=w,e.fromBig=o,e.split=i;const n=BigInt(2**32-1),r=BigInt(32);function o(t,e=!1){return e?{h:Number(t&n),l:Number(t>>r&n)}:{h:0|Number(t>>r&n),l:0|Number(t&n)}}function i(t,e=!1){const n=t.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=o(t[s],e);[r[s],i[s]]=[n,a]}return[r,i]}const s=(t,e)=>BigInt(t>>>0)<<r|BigInt(e>>>0);e.toBig=s;const a=(t,e,n)=>t>>>n;e.shrSH=a;const c=(t,e,n)=>t<<32-n|e>>>n;e.shrSL=c;const u=(t,e,n)=>t>>>n|e<<32-n;e.rotrSH=u;const f=(t,e,n)=>t<<32-n|e>>>n;e.rotrSL=f;const l=(t,e,n)=>t<<64-n|e>>>n-32;e.rotrBH=l;const h=(t,e,n)=>t>>>n-32|e<<64-n;e.rotrBL=h;const d=(t,e)=>e;e.rotr32H=d;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,n)=>t<<n|e>>>32-n;e.rotlSH=y;const g=(t,e,n)=>e<<n|t>>>32-n;e.rotlSL=g;const m=(t,e,n)=>e<<n-32|t>>>64-n;e.rotlBH=m;const b=(t,e,n)=>t<<n-32|e>>>64-n;function w(t,e,n,r){const o=(e>>>0)+(r>>>0);return{h:t+n+(o/2**32|0)|0,l:0|o}}e.rotlBL=b;const v=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);e.add3L=v;const E=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;e.add3H=E;const B=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);e.add4L=B;const x=(t,e,n,r,o)=>e+n+r+o+(t/2**32|0)|0;e.add4H=x;const S=(t,e,n,r,o)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(o>>>0);e.add5L=S;const A=(t,e,n,r,o,i)=>e+n+r+o+i+(t/2**32|0)|0;e.add5H=A;const I={fromBig:o,split:i,toBig:s,shrSH:a,shrSL:c,rotrSH:u,rotrSL:f,rotrBH:l,rotrBL:h,rotr32H:d,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:b,add:w,add3L:v,add3H:E,add4L:B,add4H:x,add5H:A,add5L:S};e.default=I},2422:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wNAF=void 0,e.negateCt=a,e.normalizeZ=function(t,e){const n=(0,o.FpInvertBatch)(t.Fp,e.map(t=>t.Z));return e.map((e,r)=>t.fromAffine(e.toAffine(n[r])))},e.mulEndoUnsafe=function(t,e,n,r){let o=e,a=t.ZERO,c=t.ZERO;for(;n>i||r>i;)n&s&&(a=a.add(o)),r&s&&(c=c.add(o)),o=o.double(),n>>=s,r>>=s;return{p1:a,p2:c}},e.pippenger=function(t,e,n,o){l(n,t),h(o,e);const i=n.length,s=o.length;if(i!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,r.bitLen)(BigInt(i));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const f=(0,r.bitMask)(u),d=new Array(Number(f)+1).fill(a),p=Math.floor((e.BITS-1)/u)*u;let y=a;for(let t=p;t>=0;t-=u){d.fill(a);for(let e=0;e<s;e++){const r=o[e],i=Number(r>>BigInt(t)&f);d[i]=d[i].add(n[e])}let e=a;for(let t=d.length-1,n=a;t>0;t--)n=n.add(d[t]),e=e.add(n);if(y=y.add(e),0!==t)for(let t=0;t<u;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,n,o){c(o,e.BITS),l(n,t);const i=t.ZERO,s=2**o-1,a=Math.ceil(e.BITS/o),u=(0,r.bitMask)(o),f=n.map(t=>{const e=[];for(let n=0,r=t;n<s;n++)e.push(r),r=r.add(t);return e});return t=>{if(h(t,e),t.length>n.length)throw new Error("array of scalars must be smaller than array of points");let r=i;for(let e=0;e<a;e++){if(r!==i)for(let t=0;t<o;t++)r=r.double();const n=BigInt(a*o-(e+1)*o);for(let e=0;e<t.length;e++){const o=t[e],i=Number(o>>n&u);i&&(r=r.add(f[e][i-1]))}}return r}},e.validateBasic=function(t){return(0,o.validateField)(t.Fp),(0,r.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,o.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})},e._createCurveFields=function(t,e,n={}){if(!e||"object"!=typeof e)throw new Error(`expected valid ${t} CURVE object`);for(const t of["p","n","h"]){const n=e[t];if(!("bigint"==typeof n&&n>i))throw new Error(`CURVE.${t} must be positive bigint`)}const r=m(e.p,n.Fp),o=m(e.n,n.Fn),s=["Gx","Gy","a","weierstrass"===t?"b":"d"];for(const t of s)if(!r.isValid(e[t]))throw new Error(`CURVE.${t} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:o}};const r=n(8627),o=n(4967),i=BigInt(0),s=BigInt(1);function a(t,e){const n=e.negate();return t?n:e}function c(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function u(t,e){c(t,e);const n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,r.bitMask)(t),maxNumber:n,shiftBy:BigInt(t)}}function f(t,e,n){const{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n;let c=Number(t&o),u=t>>a;c>r&&(c-=i,u+=s);const f=e*r;return{nextN:u,offset:f+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:e%2!=0,offsetF:f}}function l(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((t,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)})}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)})}const d=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}function g(t){if(t!==i)throw new Error("invalid wNAF")}function m(t,e){if(e){if(e.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,o.validateField)(e),e}return(0,o.Field)(t)}e.wNAF=class{constructor(t,e){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=e}_unsafeLadder(t,e,n=this.ZERO){let r=t;for(;e>i;)e&s&&(n=n.add(r)),r=r.double(),e>>=s;return n}precomputeWindow(t,e){const{windows:n,windowSize:r}=u(e,this.bits),o=[];let i=t,s=i;for(let t=0;t<n;t++){s=i,o.push(s);for(let t=1;t<r;t++)s=s.add(i),o.push(s);i=s.double()}return o}wNAF(t,e,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,o=this.BASE;const i=u(t,this.bits);for(let t=0;t<i.windows;t++){const{nextN:s,offset:c,isZero:u,isNeg:l,isNegF:h,offsetF:d}=f(n,t,i);n=s,u?o=o.add(a(h,e[d])):r=r.add(a(l,e[c]))}return g(n),{p:r,f:o}}wNAFUnsafe(t,e,n,r=this.ZERO){const o=u(t,this.bits);for(let t=0;t<o.windows&&n!==i;t++){const{nextN:i,offset:s,isZero:a,isNeg:c}=f(n,t,o);if(n=i,!a){const t=e[s];r=r.add(c?t.negate():t)}}return g(n),r}getPrecomputes(t,e,n){let r=d.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&("function"==typeof n&&(r=n(r)),d.set(e,r))),r}cached(t,e,n){const r=y(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)}unsafe(t,e,n,r){const o=y(t);return 1===o?this._unsafeLadder(t,e,r):this.wNAFUnsafe(o,this.getPrecomputes(o,t,n),e,r)}createCache(t,e){c(e,this.bits),p.set(t,e),d.delete(t)}hasCache(t){return 1!==y(t)}}},2506:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rotl=function(t,e){return t<<e|t>>>32-e},e.createCipher=function(t,e){const{allowShortKeys:n,extendNonceFn:o,counterLength:i,counterRight:s,rounds:p}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,r.anumber)(i),(0,r.anumber)(p),(0,r.abool)(s),(0,r.abool)(n),(e,y,g,m,b=0)=>{(0,r.abytes)(e),(0,r.abytes)(y),(0,r.abytes)(g);const w=g.length;if(void 0===m&&(m=new Uint8Array(w)),(0,r.abytes)(m),(0,r.anumber)(b),b<0||b>=h)throw new Error("arx: counter overflow");if(m.length<w)throw new Error(`arx: output (${m.length}) is shorter than data (${w})`);const v=[];let E,B,x=e.length;if(32===x)v.push(E=(0,r.copyBytes)(e)),B=c;else{if(16!==x||!n)throw new Error(`arx: invalid 32-byte key, got length=${x}`);E=new Uint8Array(32),E.set(e),E.set(e,16),B=a,v.push(E)}u(y)||v.push(y=(0,r.copyBytes)(y));const S=(0,r.u32)(E);if(o){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");o(B,S,(0,r.u32)(y.subarray(0,16)),S),y=y.subarray(16)}const A=16-i;if(A!==y.length)throw new Error(`arx: nonce must be ${A} or 16 bytes`);if(12!==A){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const I=(0,r.u32)(y);return function(t,e,n,o,i,s,a,c){const p=i.length,y=new Uint8Array(f),g=(0,r.u32)(y),m=u(i)&&u(s),b=m?(0,r.u32)(i):d,w=m?(0,r.u32)(s):d;for(let r=0;r<p;a++){if(t(e,n,o,g,a,c),a>=h)throw new Error("arx: counter overflow");const u=Math.min(f,p-r);if(m&&u===f){const t=r/4;if(r%4!=0)throw new Error("arx: invalid block position");for(let e,n=0;n<l;n++)e=t+n,w[e]=b[e]^g[n];r+=f;continue}for(let t,e=0;e<u;e++)t=r+e,s[t]=i[t]^y[e];r+=u}}(t,B,S,I,g,m,b,p),(0,r.clean)(...v),m}};const r=n(6527),o=t=>Uint8Array.from(t.split("").map(t=>t.charCodeAt(0))),i=o("expand 16-byte k"),s=o("expand 32-byte k"),a=(0,r.u32)(i),c=(0,r.u32)(s);function u(t){return t.byteOffset%4==0}const f=64,l=16,h=2**32-1,d=new Uint32Array},2557:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var r=n(6527),o=n(2158),i=function(){function t(t,e){var n=(0,o.convertPublicKeyFormat)(t,!0,e),r=(0,o.convertPublicKeyFormat)(t,!1,e);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return t.fromHex=function(e,n){return new t((0,o.hexToPublicKey)(e,n),n)},Object.defineProperty(t.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toBytes=function(t){return void 0===t&&(t=!0),t?this.data:this._uncompressed},t.prototype.toHex=function(t){return void 0===t&&(t=!0),(0,r.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var n=this.toBytes(e),r=t.multiply(this,e);return(0,o.getSharedKey)(n,r)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PublicKey=i},2658:(t,e,n)=>{"use strict";n.d(e,{S:()=>o,d:()=>i});let r=[];const o={[Symbol.for("mapxus/callers-register")]:t=>{r=t}};function i(){return r}},2854:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(d=t,(0,r._validateObject)(d,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...d})),{P:n,type:c,adjustScalarBytes:u,powPminus2:f,randomBytes:l}=e,h="x25519"===c;var d;if(!h&&"x448"!==c)throw new Error("invalid type");const p=l||r.randomBytes,y=h?255:448,g=h?32:56,m=h?BigInt(9):BigInt(5),b=h?BigInt(121665):BigInt(39081),w=h?a**BigInt(254):a**BigInt(447),v=h?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,E=w+v+s,B=t=>(0,o.mod)(t,n),x=S(m);function S(t){return(0,r.numberToBytesLE)(B(t),g)}function A(t,e){const o=function(t,e){(0,r.aInRange)("u",t,i,n),(0,r.aInRange)("scalar",e,w,E);const o=e,a=t;let c=s,u=i,l=t,h=s,d=i;for(let t=BigInt(y-1);t>=i;t--){const e=o>>t&s;d^=e,({x_2:c,x_3:l}=_(d,c,l)),({x_2:u,x_3:h}=_(d,u,h)),d=e;const n=c+u,r=B(n*n),i=c-u,f=B(i*i),p=r-f,y=l+h,g=B((l-h)*n),m=B(y*i),w=g+m,v=g-m;l=B(w*w),h=B(a*B(v*v)),c=B(r*f),u=B(p*(r+B(b*p)))}({x_2:c,x_3:l}=_(d,c,l)),({x_2:u,x_3:h}=_(d,u,h));const p=f(u);return B(c*p)}(function(t){const e=(0,r.ensureBytes)("u coordinate",t,g);return h&&(e[31]&=127),B((0,r.bytesToNumberLE)(e))}(e),function(t){return(0,r.bytesToNumberLE)(u((0,r.ensureBytes)("scalar",t,g)))}(t));if(o===i)throw new Error("invalid private or public key received");return S(o)}function I(t){return A(t,x)}function _(t,e,n){const r=B(t*(e-n));return{x_2:e=B(e-r),x_3:n=B(n+r)}}const L=(t=p(g))=>t,O={randomSecretKey:L,randomPrivateKey:L};const T={secret:g,public:g,seed:g};return{keygen:function(t){const e=O.randomSecretKey(t);return{secretKey:e,publicKey:I(e)}},getSharedSecret:(t,e)=>A(t,e),getPublicKey:t=>I(t),scalarMult:A,scalarMultBase:I,utils:O,GuBytes:x.slice(),info:{type:"montgomery",lengths:T}}};const r=n(8627),o=n(4967),i=BigInt(0),s=BigInt(1),a=BigInt(2)},3503:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var r=n(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,r.hexToBytes)((0,e.remove0x)(t))}},3562:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=function(t){return{hash:t}},e.createCurve=function(t,e){const n=e=>(0,r.weierstrass)({...t,hash:e});return{...n(e),create:n}};const r=n(1705)},3574:(t,e,n)=>{"use strict";n.d(e,{ys:()=>r.y});var r=n(6612);n(9408),n(8884),n(6358),n(5405)},4139:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=i,e.expand=c;const r=n(9615),o=n(9175);function i(t,e,n){return(0,o.ahash)(t),void 0===n&&(n=new Uint8Array(t.outputLen)),(0,r.hmac)(t,(0,o.toBytes)(n),(0,o.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,n,i=32){(0,o.ahash)(t),(0,o.anumber)(i);const c=t.outputLen;if(i>255*c)throw new Error("Length should be <= 255*HashLen");const u=Math.ceil(i/c);void 0===n&&(n=a);const f=new Uint8Array(u*c),l=r.hmac.create(t,e),h=l._cloneInto(),d=new Uint8Array(l.outputLen);for(let t=0;t<u;t++)s[0]=t+1,h.update(0===t?a:d).update(n).update(s).digestInto(d),f.set(d,c*t),l._cloneInto(h);return l.destroy(),h.destroy(),(0,o.clean)(d,s),f.slice(0,i)}e.hkdf=(t,e,n,r,o)=>c(t,i(t,e,n),r,o)},4928:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var r=n(1666),o=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};e.ECIES_CONFIG=new o;e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve};e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed};e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed};e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm};e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength};e.ephemeralKeySize=function(){var t={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in t)return t[e.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4967:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=p,e.pow=function(t,e,n){return B(I(n),t,e)},e.pow2=function(t,e,n){let r=t;for(;e-- >o;)r*=r,r%=n;return r},e.invert=y,e.tonelliShanks=w,e.FpSqrt=v,e.validateField=function(t){const e=E.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,r._validateObject)(t,e),t},e.FpPow=B,e.FpInvertBatch=x,e.FpDiv=function(t,e,n){return t.mul(e,"bigint"==typeof n?y(n,t.ORDER):t.inv(n))},e.FpLegendre=S,e.FpIsSquare=function(t,e){return 1===S(t,e)},e.nLength=A,e.Field=I,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n},e.hashToPrivateScalar=function(t,e,n=!1){const o=(t=(0,r.ensureBytes)("privateHash",t)).length,s=A(e).nByteLength+8;if(s<24||o<s||o>1024)throw new Error("hashToPrivateScalar: expected "+s+"-1024 bytes of input, got "+o);return p(n?(0,r.bytesToNumberLE)(t):(0,r.bytesToNumberBE)(t),e-i)+i},e.getFieldBytesLength=_,e.getMinHashLength=L,e.mapHashToField=function(t,e,n=!1){const o=t.length,s=_(e),a=L(e);if(o<16||o<a||o>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+o);const c=p(n?(0,r.bytesToNumberLE)(t):(0,r.bytesToNumberBE)(t),e-i)+i;return n?(0,r.numberToBytesLE)(c,s):(0,r.numberToBytesBE)(c,s)};const r=n(8627),o=BigInt(0),i=BigInt(1),s=BigInt(2),a=BigInt(3),c=BigInt(4),u=BigInt(5),f=BigInt(7),l=BigInt(8),h=BigInt(9),d=BigInt(16);function p(t,e){const n=t%e;return n>=o?n:e+n}function y(t,e){if(t===o)throw new Error("invert: expected non-zero number");if(e<=o)throw new Error("invert: expected positive modulus, got "+e);let n=p(t,e),r=e,s=o,a=i,c=i,u=o;for(;n!==o;){const t=r/n,e=r%n,o=s-c*t,i=a-u*t;r=n,n=e,s=c,a=u,c=o,u=i}if(r!==i)throw new Error("invert: does not exist");return p(s,e)}function g(t,e,n){if(!t.eql(t.sqr(e),n))throw new Error("Cannot find square root")}function m(t,e){const n=(t.ORDER+i)/c,r=t.pow(e,n);return g(t,r,e),r}function b(t,e){const n=(t.ORDER-u)/l,r=t.mul(e,s),o=t.pow(r,n),i=t.mul(e,o),a=t.mul(t.mul(i,s),o),c=t.mul(i,t.sub(a,t.ONE));return g(t,c,e),c}function w(t){if(t<a)throw new Error("sqrt is not defined for small field");let e=t-i,n=0;for(;e%s===o;)e/=s,n++;let r=s;const c=I(t);for(;1===S(c,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return m;let u=c.pow(r,e);const f=(e+i)/s;return function(t,r){if(t.is0(r))return r;if(1!==S(t,r))throw new Error("Cannot find square root");let o=n,s=t.mul(t.ONE,u),a=t.pow(r,e),c=t.pow(r,f);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,n=t.sqr(a);for(;!t.eql(n,t.ONE);)if(e++,n=t.sqr(n),e===o)throw new Error("Cannot find square root");const r=i<<BigInt(o-e-1),u=t.pow(s,r);o=e,s=t.sqr(u),a=t.mul(a,s),c=t.mul(c,u)}return c}}function v(t){return t%c===a?m:t%l===u?b:t%d===h?function(t){const e=I(t),n=w(t),r=n(e,e.neg(e.ONE)),o=n(e,r),i=n(e,e.neg(r)),s=(t+f)/d;return(t,e)=>{let n=t.pow(e,s),a=t.mul(n,r);const c=t.mul(n,o),u=t.mul(n,i),f=t.eql(t.sqr(a),e),l=t.eql(t.sqr(c),e);n=t.cmov(n,a,f),a=t.cmov(u,c,l);const h=t.eql(t.sqr(a),e),d=t.cmov(n,a,h);return g(t,d,e),d}}(t):w(t)}e.isNegativeLE=(t,e)=>(p(t,e)&i)===i;const E=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function B(t,e,n){if(n<o)throw new Error("invalid exponent, negatives unsupported");if(n===o)return t.ONE;if(n===i)return e;let r=t.ONE,s=e;for(;n>o;)n&i&&(r=t.mul(r,s)),s=t.sqr(s),n>>=i;return r}function x(t,e,n=!1){const r=new Array(e.length).fill(n?t.ZERO:void 0),o=e.reduce((e,n,o)=>t.is0(n)?e:(r[o]=e,t.mul(e,n)),t.ONE),i=t.inv(o);return e.reduceRight((e,n,o)=>t.is0(n)?e:(r[o]=t.mul(e,r[o]),t.mul(e,n)),i),r}function S(t,e){const n=(t.ORDER-i)/s,r=t.pow(e,n),o=t.eql(r,t.ONE),a=t.eql(r,t.ZERO),c=t.eql(r,t.neg(t.ONE));if(!o&&!a&&!c)throw new Error("invalid Legendre symbol result");return o?1:a?0:-1}function A(t,e){void 0!==e&&(0,r.anumber)(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function I(t,e,n=!1,s={}){if(t<=o)throw new Error("invalid field: expected ORDER > 0, got "+t);let a,c,u,f=!1;if("object"==typeof e&&null!=e){if(s.sqrt||n)throw new Error("cannot specify opts in two arguments");const t=e;t.BITS&&(a=t.BITS),t.sqrt&&(c=t.sqrt),"boolean"==typeof t.isLE&&(n=t.isLE),"boolean"==typeof t.modOnDecode&&(f=t.modOnDecode),u=t.allowedLengths}else"number"==typeof e&&(a=e),s.sqrt&&(c=s.sqrt);const{nBitLength:l,nByteLength:h}=A(t,a);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let d;const g=Object.freeze({ORDER:t,isLE:n,BITS:l,BYTES:h,MASK:(0,r.bitMask)(l),ZERO:o,ONE:i,allowedLengths:u,create:e=>p(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return o<=e&&e<t},is0:t=>t===o,isValidNot0:t=>!g.is0(t)&&g.isValid(t),isOdd:t=>(t&i)===i,neg:e=>p(-e,t),eql:(t,e)=>t===e,sqr:e=>p(e*e,t),add:(e,n)=>p(e+n,t),sub:(e,n)=>p(e-n,t),mul:(e,n)=>p(e*n,t),pow:(t,e)=>B(g,t,e),div:(e,n)=>p(e*y(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>y(e,t),sqrt:c||(e=>(d||(d=v(t)),d(g,e))),toBytes:t=>n?(0,r.numberToBytesLE)(t,h):(0,r.numberToBytesBE)(t,h),fromBytes:(e,o=!0)=>{if(u){if(!u.includes(e.length)||e.length>h)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+e.length);const t=new Uint8Array(h);t.set(e,n?0:t.length-e.length),e=t}if(e.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+e.length);let i=n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e);if(f&&(i=p(i,t)),!o&&!g.isValid(i))throw new Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:t=>x(g,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(g)}function _(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function L(t){const e=_(t);return e+Math.ceil(e/2)}},4969:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});var r=n(3574);function o(t){let e=null;return!function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?!function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?!function(t){return/^zh-(Hant|HK|MO)$/.test(t)}(t)?!function(t){return"zh-TW"===t}(t)?!function(t){return/^ja(-JP)?$/.test(t)}(t)?!function(t){return/^ko(-KR)?$/.test(t)}(t)?!function(t){return/^(fil|tl)(-PH)?$/.test(t)}(t)?!function(t){return/^id(-ID)?$/.test(t)}(t)?!function(t){return/^pt(-(BR|PT))?$/.test(t)}(t)?!function(t){return/^th(-TH)?$/.test(t)}(t)?!function(t){return/^vi(-VN)?$/.test(t)}(t)?function(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}(t)&&(e=r.ys.ARABIC):e=r.ys.VIETNAMESE:e=r.ys.THAI:e=r.ys.PORTUGUESE:e=r.ys.INDONESIAN:e=r.ys.FILIPINO:e=r.ys.KOREAN:e=r.ys.JAPANESE:e=r.ys.CHINESE_TRADITIONAL_TW:e=r.ys.CHINESE_TRADITIONAL:e=r.ys.CHINESE_SIMPLIFIED:e=r.ys.ENGLISH,e}},5145:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5295:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var r=n(6527),o=n(2158),i=n(2557),s=function(){function t(t,e){if(this.curve=e,void 0===t)this.data=(0,o.getValidSecret)(e);else{if(!(0,o.isValidPrivateKey)(t,e))throw new Error("Invalid private key");this.data=t}this.publicKey=new i.PublicKey((0,o.getPublicKey)(this.data,e),e)}return t.fromHex=function(e,n){return new t((0,o.decodeHex)(e),n)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var n=this.publicKey.toBytes(e),r=this.multiply(t,e);return(0,o.getSharedKey)(n,r)},t.prototype.multiply=function(t,e){return void 0===e&&(e=!1),(0,o.getSharedPoint)(this.data,t.toBytes(!0),e,this.curve)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PrivateKey=s},5297:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5405:(t,e,n)=>{"use strict";var r;!function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(r||(r={}))},5461:(t,e,n)=>{"use strict";n.d(e,{U:()=>a,l:()=>s});var r=n(9588);const o="-webkit-extension-67d8e3e8-";let i=null;async function s(){let t=sessionStorage.getItem(o);if(!t)try{a(),await c(Date.now()),t=sessionStorage.getItem(o)}catch(t){throw new Error("Failed to fetch public key: "+t)}return t}function a(){sessionStorage.removeItem(o),i&&(clearTimeout(i),i=null)}async function c(t){try{const n=await fetch(`${r.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=n,a=parseInt(s.get("x-retry-in"));i=setTimeout(async()=>{await c(t)},1e3*a),e=await n.text(),sessionStorage.setItem(o,e)}catch(t){throw t}var e}},6358:(t,e,n)=>{"use strict";var r,o,i,s;!function(t){t.POINT="Point",t.POLYGON="Polygon"}(r||(r={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(o||(o={})),function(t){t.DEFAULT_NAME="DefaultName"}(i||(i={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(s||(s={}))},6377:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrimeEdwardsPoint=void 0,e.edwards=f,e.eddsa=l,e.twistedEdwards=function(t){const{CURVE:e,curveOpts:n,hash:r,eddsaOpts:o}=function(t){const e={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},n=t.Fp,r=(0,i.Field)(e.n,t.nBitLength,!0),o={Fp:n,Fn:r,uvRatio:t.uvRatio},s={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:e,curveOpts:o,hash:t.hash,eddsaOpts:s}}(t),s=l(f(e,n),r,o);return function(t,e){const n=Object.assign({},e,{ExtendedPoint:e.Point,CURVE:t});return n}(t,s)};const r=n(8627),o=n(2422),i=n(4967),s=BigInt(0),a=BigInt(1),c=BigInt(2),u=BigInt(8);function f(t,e={}){const{Fp:n,Fn:i}=(0,o._createCurveFields)("edwards",t,e),{h:f,n:l}=t;(0,r._validateObject)(e,{},{uvRatio:"function"});const h=c<<BigInt(8*i.BYTES)-a,d=t=>n.create(t),p=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:n.sqrt(n.div(t,e))}}catch(t){return{isValid:!1,value:s}}});if(!function(t,e,n,r){const o=t.sqr(n),i=t.sqr(r),s=t.add(t.mul(e.a,o),i),a=t.add(t.ONE,t.mul(e.d,t.mul(o,i)));return t.eql(s,a)}(n,t,t.Gx,t.Gy))throw new Error("bad curve params: generator point");function y(t,e,n=!1){const o=n?a:s;return(0,r.aInRange)("coordinate "+t,e,o,h),e}function g(t){if(!(t instanceof w))throw new Error("ExtendedPoint expected")}const m=(0,r.memoized)((t,e)=>{const{X:r,Y:o,Z:i}=t,c=t.is0();null==e&&(e=c?u:n.inv(i));const f=d(r*e),l=d(o*e),h=n.mul(i,e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:f,y:l}}),b=(0,r.memoized)(e=>{const{a:n,d:r}=t;if(e.is0())throw new Error("bad point: ZERO");const{X:o,Y:i,Z:s,T:a}=e,c=d(o*o),u=d(i*i),f=d(s*s),l=d(f*f),h=d(c*n);if(d(f*d(h+u))!==d(l+d(r*d(c*u))))throw new Error("bad point: equation left != right (1)");if(d(o*i)!==d(s*a))throw new Error("bad point: equation left != right (2)");return!0});class w{constructor(t,e,n,r){this.X=y("x",t),this.Y=y("y",e),this.Z=y("z",n,!0),this.T=y("t",r),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(t){return(0,o.normalizeZ)(w,t)}static msm(t,e){return(0,o.pippenger)(w,i,t,e)}_setWindowSize(t){this.precompute(t)}static fromAffine(t){if(t instanceof w)throw new Error("extended point not allowed");const{x:e,y:n}=t||{};return y("x",e),y("y",n),new w(e,n,a,d(e*n))}precompute(t=8,e=!0){return v.createCache(this,t),e||this.multiply(c),this}assertValidity(){b(this)}equals(t){g(t);const{X:e,Y:n,Z:r}=this,{X:o,Y:i,Z:s}=t,a=d(e*s),c=d(o*r),u=d(n*s),f=d(i*r);return a===c&&u===f}is0(){return this.equals(w.ZERO)}negate(){return new w(d(-this.X),this.Y,this.Z,d(-this.T))}double(){const{a:e}=t,{X:n,Y:r,Z:o}=this,i=d(n*n),s=d(r*r),a=d(c*d(o*o)),u=d(e*i),f=n+r,l=d(d(f*f)-i-s),h=u+s,p=h-a,y=u-s,g=d(l*p),m=d(h*y),b=d(l*y),v=d(p*h);return new w(g,m,v,b)}add(e){g(e);const{a:n,d:r}=t,{X:o,Y:i,Z:s,T:a}=this,{X:c,Y:u,Z:f,T:l}=e,h=d(o*c),p=d(i*u),y=d(a*r*l),m=d(s*f),b=d((o+i)*(c+u)-h-p),v=m-y,E=m+y,B=d(p-n*h),x=d(b*v),S=d(E*B),A=d(b*B),I=d(v*E);return new w(x,S,I,A)}subtract(t){return this.add(t.negate())}multiply(t){const e=t;(0,r.aInRange)("scalar",e,a,l);const{p:n,f:i}=v.cached(this,e,t=>(0,o.normalizeZ)(w,t));return(0,o.normalizeZ)(w,[n,i])[0]}multiplyUnsafe(t,e=w.ZERO){const n=t;return(0,r.aInRange)("scalar",n,s,l),n===s?w.ZERO:this.is0()||n===a?this:v.unsafe(this,n,t=>(0,o.normalizeZ)(w,t),e)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}isTorsionFree(){return v.unsafe(this,l).is0()}toAffine(t){return m(this,t)}clearCofactor(){return f===a?this:this.multiplyUnsafe(f)}static fromBytes(t,e=!1){return(0,r.abytes)(t),w.fromHex(t,e)}static fromHex(e,o=!1){const{d:i,a:c}=t,u=n.BYTES;e=(0,r.ensureBytes)("pointHex",e,u),(0,r.abool)("zip215",o);const f=e.slice(),l=e[u-1];f[u-1]=-129&l;const y=(0,r.bytesToNumberLE)(f),g=o?h:n.ORDER;(0,r.aInRange)("pointHex.y",y,s,g);const m=d(y*y),b=d(m-a),v=d(i*m-c);let{isValid:E,value:B}=p(b,v);if(!E)throw new Error("Point.fromHex: invalid y coordinate");const x=(B&a)===a,S=!!(128&l);if(!o&&B===s&&S)throw new Error("Point.fromHex: x=0 and x_0=1");return S!==x&&(B=d(-B)),w.fromAffine({x:B,y})}toBytes(){const{x:t,y:e}=this.toAffine(),o=(0,r.numberToBytesLE)(e,n.BYTES);return o[o.length-1]|=t&a?128:0,o}toRawBytes(){return this.toBytes()}toHex(){return(0,r.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}w.BASE=new w(t.Gx,t.Gy,a,d(t.Gx*t.Gy)),w.ZERO=new w(s,a,a,s),w.Fp=n,w.Fn=i;const v=new o.wNAF(w,8*i.BYTES);return w}function l(t,e,n){if("function"!=typeof e)throw new Error('"hash" function param is required');(0,r._validateObject)(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:o}=n,{BASE:i,Fp:c,Fn:u}=t,f=u.ORDER,l=n.randomBytes||r.randomBytes,h=n.adjustScalarBytes||(t=>t),d=n.domain||((t,e,n)=>{if((0,r.abool)("phflag",n),e.length||n)throw new Error("Contexts/pre-hash are not supported");return t});function p(t){return u.create(t)}function y(t){return p((0,r.bytesToNumberLE)(t))}function g(t){const{head:n,prefix:o,scalar:s}=function(t){const n=c.BYTES;t=(0,r.ensureBytes)("private key",t,n);const o=(0,r.ensureBytes)("hashed private key",e(t),2*n),i=h(o.slice(0,n));return{head:i,prefix:o.slice(n,2*n),scalar:y(i)}}(t),a=i.multiply(s),u=a.toBytes();return{head:n,prefix:o,scalar:s,point:a,pointBytes:u}}function m(t){return g(t).pointBytes}function b(t=Uint8Array.of(),...n){const i=(0,r.concatBytes)(...n);return y(e(d(i,(0,r.ensureBytes)("context",t),!!o)))}const w={zip215:!0};i.precompute(8);const v=c.BYTES,E={secret:v,public:v,signature:2*v,seed:v};function B(t=l(E.seed)){return t}const x={getExtendedPublicKey:g,randomSecretKey:B,isValidSecretKey:function(t){try{return!!u.fromBytes(t,!1)}catch(t){return!1}},isValidPublicKey:function(e,n){try{return!!t.fromBytes(e,n)}catch(t){return!1}},randomPrivateKey:B,toMontgomery(e){const{y:n}=t.fromBytes(e),r=32===v;if(!r&&57!==v)throw new Error("only defined for 25519 and 448");const o=r?c.div(a+n,a-n):c.div(n-a,n+a);return c.toBytes(o)},toMontgomeryPriv(t){(0,r.abytes)(t,v);const n=e(t.subarray(0,v));return h(n).subarray(0,v)},precompute:(e=8,n=t.BASE)=>n.precompute(e,!1)};return Object.freeze({keygen:function(t){const e=x.randomSecretKey(t);return{secretKey:e,publicKey:m(e)}},getPublicKey:m,sign:function(t,e,n={}){t=(0,r.ensureBytes)("message",t),o&&(t=o(t));const{prefix:a,scalar:u,pointBytes:l}=g(e),h=b(n.context,a,t),d=i.multiply(h).toBytes(),y=p(h+b(n.context,d,l,t)*u);(0,r.aInRange)("signature.s",y,s,f);const m=c.BYTES,w=(0,r.concatBytes)(d,(0,r.numberToBytesLE)(y,m));return(0,r.ensureBytes)("result",w,2*m)},verify:function(e,n,s,a=w){const{context:u,zip215:f}=a,l=c.BYTES;e=(0,r.ensureBytes)("signature",e,2*l),n=(0,r.ensureBytes)("message",n),s=(0,r.ensureBytes)("publicKey",s,l),void 0!==f&&(0,r.abool)("zip215",f),o&&(n=o(n));const h=(0,r.bytesToNumberLE)(e.slice(l,2*l));let d,p,y;try{d=t.fromHex(s,f),p=t.fromHex(e.slice(0,l),f),y=i.multiplyUnsafe(h)}catch(t){return!1}if(!f&&d.isSmallOrder())return!1;const g=b(u,p.toBytes(),d.toBytes(),n);return p.add(d.multiplyUnsafe(g)).subtract(y).clearCofactor().is0()},utils:x,Point:t,info:{type:"edwards",lengths:E}})}e.PrimeEdwardsPoint=class{constructor(t){this.ep=t}static fromBytes(t){throw new Error("fromBytes must be implemented by subclass")}static fromHex(t){throw new Error("fromHex must be implemented by subclass")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(t){return this.ep.toAffine(t)}toRawBytes(){return this.toBytes()}toHex(){return(0,r.bytesToHex)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(t){return this.assertSame(t),this.init(this.ep.add(t.ep))}subtract(t){return this.assertSame(t),this.init(this.ep.subtract(t.ep))}multiply(t){return this.init(this.ep.multiply(t))}multiplyUnsafe(t){return this.init(this.ep.multiplyUnsafe(t))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(t,e){return this.init(this.ep.precompute(t,e))}}},6527:(t,e)=>{"use strict";function n(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function r(t){if("boolean"!=typeof t)throw new Error(`boolean expected, not ${t}`)}function o(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function i(t,...e){if(!n(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=void 0,e.isBytes=n,e.abool=r,e.anumber=o,e.abytes=i,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");o(t.outputLen),o(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){i(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=s,e.bytesToHex=u,e.hexToBytes=h,e.hexToNumber=d,e.bytesToNumberBE=function(t){return d(u(t))},e.numberToBytesBE=function(t,e){return h(t.toString(16).padStart(2*e,"0"))},e.utf8ToBytes=p,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=function(t){if("string"==typeof t)t=p(t);else{if(!n(t))throw new Error("Uint8Array expected, got "+typeof t);t=b(t)}return t},e.overlapBytes=y,e.complexOverlapBytes=function(t,e){if(y(t,e)&&t.byteOffset<e.byteOffset)throw new Error("complex overlap of input and output is not supported")},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n},e.checkOpts=function(t,e){if(null==e||"object"!=typeof e)throw new Error("options must be defined");return Object.assign(t,e)},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.getOutput=function(t,e,n=!0){if(void 0===e)return new Uint8Array(t);if(e.length!==t)throw new Error("invalid output length, expected "+t+", got: "+e.length);if(n&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,n){r(n);const o=new Uint8Array(16),i=s(o);return g(i,0,BigInt(e),n),g(i,8,BigInt(t),n),o},e.isAligned32=m,e.copyBytes=b,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function u(t){if(i(t),a)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=c[t[n]];return e}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function l(t){return t>=f._0&&t<=f._9?t-f._0:t>=f.A&&t<=f.F?t-(f.A-10):t>=f.a&&t<=f.f?t-(f.a-10):void 0}function h(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(a)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,o=0;e<n;e++,o+=2){const n=l(t.charCodeAt(o)),i=l(t.charCodeAt(o+1));if(void 0===n||void 0===i){const e=t[o]+t[o+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+o)}r[e]=16*n+i}return r}function d(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x"+t)}function p(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function y(t,e){return t.buffer===e.buffer&&t.byteOffset<e.byteOffset+e.byteLength&&e.byteOffset<t.byteOffset+t.byteLength}e.nextTick=async()=>{};e.Hash=class{};function g(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}function m(t){return t.byteOffset%4==0}function b(t){return Uint8Array.from(t)}e.wrapCipher=(t,n)=>{function r(r,...o){if(i(r),!e.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=o[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?i(e):i(e,t.nonceLength)}const s=t.tagLength;s&&void 0!==o[1]&&i(o[1]);const a=n(r,...o),c=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");i(e)}};let u=!1;return{encrypt(t,e){if(u)throw new Error("cannot encrypt() twice with same key + nonce");return u=!0,i(t),c(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(i(t),s&&t.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,e),a.decrypt(t,e)}}}return Object.assign(r,t),r}},6568:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Lt});var r=n(1635),o="4.6.2";function i(t,e){return new Promise(function(n){return setTimeout(n,t,e)})}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var n=t();s(n)?n.then(function(t){return e(!0,t)},function(t){return e(!1,t)}):e(!0,n)}catch(t){e(!1,t)}}function c(t,e,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,function(){var o,i,s,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:o=Array(t.length),i=Date.now(),s=0,r.label=1;case 1:return s<t.length?(o[s]=e(t[s],s),(a=Date.now())>=i+n?(i=a,[4,new Promise(function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)})]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function u(t){return t.then(void 0,function(){}),t}function f(t){return parseInt(t)}function l(t){return parseFloat(t)}function h(t,e){return"number"==typeof t&&isNaN(t)?e:t}function d(t){return t.reduce(function(t,e){return t+(e?1:0)},0)}function p(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function y(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=0,f=0,l=0,h=0;l+=(h+=i+(65535&e[1]))>>>16,h&=65535,f+=(l+=o+c)>>>16,l&=65535,u+=(f+=r+a)>>>16,f&=65535,u+=n+s,u&=65535,t[0]=u<<16|f,t[1]=l<<16|h}function g(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=65535&e[1],f=0,l=0,h=0,d=0;h+=(d+=i*u)>>>16,d&=65535,l+=(h+=o*u)>>>16,h&=65535,l+=(h+=i*c)>>>16,h&=65535,f+=(l+=r*u)>>>16,l&=65535,f+=(l+=o*c)>>>16,l&=65535,f+=(l+=i*a)>>>16,l&=65535,f+=n*u+r*c+o*a+i*s,f&=65535,t[0]=f<<16|l,t[1]=h<<16|d}function m(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function b(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function w(t,e){t[0]^=e[0],t[1]^=e[1]}var v=[4283543511,3981806797],E=[3301882366,444984403];function B(t){var e=[0,t[0]>>>1];w(t,e),g(t,v),e[1]=t[0]>>>1,w(t,e),g(t,E),e[1]=t[0]>>>1,w(t,e)}var x=[2277735313,289559509],S=[1291169091,658871167],A=[0,5],I=[0,1390208809],_=[0,944331445];function L(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,o=[0,n.length],i=o[1]%16,s=o[1]-i,a=[0,e],c=[0,e],u=[0,0],f=[0,0];for(r=0;r<s;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,f[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,f[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(u,x),m(u,31),g(u,S),w(a,u),m(a,27),y(a,c),g(a,A),y(a,I),g(f,S),m(f,33),g(f,x),w(c,f),m(c,31),y(c,a),g(c,A),y(c,_);u[0]=0,u[1]=0,f[0]=0,f[1]=0;var l=[0,0];switch(i){case 15:l[1]=n[r+14],b(l,48),w(f,l);case 14:l[1]=n[r+13],b(l,40),w(f,l);case 13:l[1]=n[r+12],b(l,32),w(f,l);case 12:l[1]=n[r+11],b(l,24),w(f,l);case 11:l[1]=n[r+10],b(l,16),w(f,l);case 10:l[1]=n[r+9],b(l,8),w(f,l);case 9:l[1]=n[r+8],w(f,l),g(f,S),m(f,33),g(f,x),w(c,f);case 8:l[1]=n[r+7],b(l,56),w(u,l);case 7:l[1]=n[r+6],b(l,48),w(u,l);case 6:l[1]=n[r+5],b(l,40),w(u,l);case 5:l[1]=n[r+4],b(l,32),w(u,l);case 4:l[1]=n[r+3],b(l,24),w(u,l);case 3:l[1]=n[r+2],b(l,16),w(u,l);case 2:l[1]=n[r+1],b(l,8),w(u,l);case 1:l[1]=n[r],w(u,l),g(u,x),m(u,31),g(u,S),w(a,u)}return w(a,o),w(c,o),y(a,c),y(c,a),B(a),B(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function O(t){return"function"!=typeof t}function T(t,e,n,o){var i=Object.keys(t).filter(function(t){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(n,t)}),s=u(c(i,function(n){return function(t,e){var n=u(new Promise(function(n){var r=Date.now();a(t.bind(null,e),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=Date.now()-r;if(!t[0])return n(function(){return{error:t[1],duration:o}});var i=t[1];if(O(i))return n(function(){return{value:i,duration:o}});n(function(){return new Promise(function(t){var e=Date.now();a(i,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o+Date.now()-e;if(!n[0])return t({error:n[1],duration:i});t({value:n[1],duration:i})})})})})}));return function(){return n.then(function(t){return t()})}}(t[n],e)},o));return function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,n,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,s];case 1:return[4,c(r.sent(),function(t){return u(t())},o)];case 2:return t=r.sent(),[4,Promise.all(t)];case 3:for(e=r.sent(),n={},a=0;a<i.length;++a)n[i[a]]=e[a];return[2,n]}})})}}function H(){var t=window,e=navigator;return d(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function R(){var t=window,e=navigator;return d(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function k(){var t=window;return d(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function C(){var t=window,e=t.HTMLElement,n=t.Document;return d(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function U(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function P(){var t,e,n=window;return d(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function V(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return d([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function N(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function F(){var t=R(),e=P(),n=window,r=navigator,o="connection";return t?d([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:!!e&&d(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function M(t){var e=new Error(t);return e.name=t,e}function D(t,e,n){var o,s,a;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,function(){var c,u;return(0,r.YH)(this,function(r){switch(r.label){case 0:c=document,r.label=1;case 1:return c.body?[3,3]:[4,i(n)];case 2:return r.sent(),[3,1];case 3:u=c.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise(function(t,n){var r=!1,o=function(){r=!0,t()};u.onload=o,u.onerror=function(t){r=!0,n(t)};var i=u.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in u?u.srcdoc=e:u.src="about:blank",c.body.appendChild(u);var s=function(){var t,e;r||("complete"===(null===(e=null===(t=u.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(s,10))};s()})];case 5:r.sent(),r.label=6;case 6:return(null===(s=null===(o=u.contentWindow)||void 0===o?void 0:o.document)||void 0===s?void 0:s.body)?[3,8]:[4,i(n)];case 7:return r.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}})})}function j(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var u=a.exec(o[2]);if(!u)break;var f=u[0];switch(f[0]){case".":c("class",f.slice(1));break;case"#":c("id",f.slice(1));break;case"[":var l=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!l)throw new Error(r);c(l[1],null!==(n=null!==(e=l[4])&&void 0!==e?e:l[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,s]}(t),n=e[0],r=e[1],o=document.createElement(null!=n?n:"div"),i=0,s=Object.keys(r);i<s.length;i++){var a=s[i],c=r[a].join(" ");"style"===a?Z(o.style,c):o.setAttribute(a,c)}return o}function Z(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var s=i[1],a=i[2],c=i[4];t.setProperty(s,a,c||"")}}}var G=["monospace","sans-serif","serif"],Y=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function K(t){return t.toDataURL()}var W,z;function X(){var t=this;return function(){if(void 0===z){var t=function(){var e=q();J(e)?z=setTimeout(t,2500):(W=e,z=void 0)};t()}}(),function(){return(0,r.sH)(t,void 0,void 0,function(){var t;return(0,r.YH)(this,function(e){switch(e.label){case 0:return J(t=q())?W?[2,(0,r.fX)([],W,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,N()]:[3,2]:[3,2];case 1:e.sent(),t=q(),e.label=2;case 2:return J(t)||(W=t),[2,t]}var n})})}}function q(){var t=screen;return[h(l(t.availTop),null),h(l(t.width)-l(t.availWidth)-h(l(t.availLeft),0),null),h(l(t.height)-l(t.availHeight)-h(l(t.availTop),0),null),h(l(t.availLeft),null)]}function J(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function $(t){var e;return(0,r.sH)(this,void 0,void 0,function(){var n,o,s,a,c,u,f;return(0,r.YH)(this,function(r){switch(r.label){case 0:for(n=document,o=n.createElement("div"),s=new Array(t.length),a={},Q(o),f=0;f<t.length;++f)"DIALOG"===(c=j(t[f])).tagName&&c.show(),Q(u=n.createElement("div")),u.appendChild(c),o.appendChild(u),s[f]=c;r.label=1;case 1:return n.body?[3,3]:[4,i(50)];case 2:return r.sent(),[3,1];case 3:n.body.appendChild(o);try{for(f=0;f<t.length;++f)s[f].offsetParent||(a[t[f]]=!0)}finally{null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return[2,a]}})})}function Q(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function tt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function et(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function nt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function rt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function ot(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function it(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var st=Math,at=function(){return 0};var ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ut=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var ft=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),lt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ht=["FRAGMENT_SHADER","VERTEX_SHADER"],dt=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pt="WEBGL_debug_renderer_info";function yt(t){if(t.webgl)return t.webgl.context;var e,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return e=void 0});for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{e=n.getContext(i)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function mt(t){return Object.keys(t.__proto__).filter(bt)}function bt(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function wt(){return P()}function vt(){return R()||k()}function Et(t){return"function"==typeof t.getParameter}var Bt={fonts:function(){var t=this;return D(function(e,n){var o=n.document;return(0,r.sH)(t,void 0,void 0,function(){var t,e,n,i,s,a,c,u,f,l,h;return(0,r.YH)(this,function(r){for((t=o.body).style.fontSize="48px",(e=o.createElement("div")).style.setProperty("visibility","hidden","important"),n={},i={},s=function(t){var n=o.createElement("span"),r=n.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},a=function(t,e){return s("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=G.map(function(t){return a(e,t)})},n=0,r=Y;n<r.length;n++){e(r[n])}return t},u=function(t){return G.some(function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==i[e]})},f=function(){return G.map(s)}(),l=c(),t.appendChild(e),h=0;h<G.length;h++)n[G[h]]=f[h].offsetWidth,i[G[h]]=f[h].offsetHeight;return[2,Y.filter(function(t){return u(l[t])})]})})})},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,r.sH)(this,void 0,void 0,function(){var t,n,o,i,s;return(0,r.YH)(this,function(r){switch(r.label){case 0:return k()||F()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(t),[4,$((s=[]).concat.apply(s,n.map(function(e){return t[e]})))]):[2,void 0];case 1:return o=r.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n+="\n".concat(i,":");for(var s=0,a=t[i];s<a.length;s++){var c=a[s];n+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(t,o),(i=n.filter(function(e){var n=t[e];return d(n.map(function(t){return o[t]}))>.6*n.length})).sort(),[2,i]}var a})})},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return D(function(n,o){var i=o.document,s=i.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",R()?s.style.zoom="".concat(1/o.devicePixelRatio):k()&&(s.style.zoom="reset");var c=i.createElement("div");return c.textContent=(0,r.fX)([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(c),t(i,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(t,e){for(var n={},r={},o=0,i=Object.keys(ct);o<i.length;o++){var s=i[o],a=ct[s],c=a[0],u=void 0===c?{}:c,f=a[1],l=void 0===f?"mmMwWLliI0fiflO&1":f,h=t.createElement("span");h.textContent=l,h.style.whiteSpace="nowrap";for(var d=0,p=Object.keys(u);d<p.length;d++){var y=p[d],g=u[y];void 0!==g&&(h.style[y]=g)}n[s]=h,e.append(t.createElement("br"),h)}for(var m=0,b=Object.keys(ct);m<b.length;m++){r[s=b[m]]=n[s].getBoundingClientRect().width}return r})},audio:function(){return k()&&V()&&U()||R()&&(t=navigator,e=window,n=Audio.prototype,r=e.visualViewport,d(["srLatency"in n,"srChannelCount"in n,"devicePosture"in t,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var t=window,e=t.URLPattern;return d(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(k()&&!C()&&!function(){var t=window;return d(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=new e(1,5e3,44100),o=r.createOscillator();o.type="triangle",o.frequency.value=1e4;var i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,o.connect(i),i.connect(r.destination),o.start(0);var a=function(t){var e=3,n=500,r=500,o=5e3,i=function(){},a=new Promise(function(a,c){var f=!1,l=0,h=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var d=function(){setTimeout(function(){return c(M("timeout"))},Math.min(r,h+o-Date.now()))},p=function(){try{var r=t.startRendering();switch(s(r)&&u(r),t.state){case"running":h=Date.now(),f&&d();break;case"suspended":document.hidden||l++,f&&l>=e?c(M("suspended")):setTimeout(p,n)}}catch(t){c(t)}};p(),i=function(){f||(f=!0,h>0&&d())}});return[a,i]}(r),c=a[0],f=a[1],l=u(c.then(function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))},function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return function(){return f(),l}}();var t,e,n,r},screenFrame:function(){var t=this;if(k()&&V()&&U())return function(){return Promise.resolve(void 0)};var e=X();return function(){return(0,r.sH)(t,void 0,void 0,function(){var t,n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),[2,[(n=function(t){return null===t?null:p(t,10)})(t[0]),n(t[1]),n(t[2]),n(t[3])]]}})})}},canvas:function(){return function(t){var e,n,r,o=!1,i=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=i[0],a=i[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?n=r="unsupported":(o=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?n=r="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e);var n=K(t),r=K(t);if(n!==r)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],s=o[1],a=o[2];e.fillStyle=i,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var o=K(t);return[o,n]}(s,a),n=e[0],r=e[1]));return{winding:o,geometry:n,text:r}}(k()&&V()&&U())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,n=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(e.languages))R()&&d([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||n.push(e.languages);else if("string"==typeof e.languages){var o=e.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(l(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,n;if(!(k()&&V()&&U()))return t=screen,(n=[(e=function(t){return h(f(t),null)})(t.width),e(t.height)]).sort().reverse(),n},hardwareConcurrency:function(){return h(f(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(l(new Date(r,0,1).getTimezoneOffset()),l(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(H()||(t=window,e=navigator,d(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!H())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&k()&&!C()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return d(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var o=[],i=0;i<r.length;++i){var s=r[i];o.push({type:s.type,suffixes:s.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:o})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=f(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],o=window[r];o&&"object"==typeof o&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!tt("inverted")||!tt("none")&&void 0},forcedColors:function(){return!!et("active")||!et("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return nt("no-preference")?0:nt("high")||nt("more")?1:nt("low")||nt("less")?-1:nt("forced")?10:void 0},reducedMotion:function(){return!!rt("reduce")||!rt("no-preference")&&void 0},reducedTransparency:function(){return!!ot("reduce")||!ot("no-preference")&&void 0},hdr:function(){return!!it("high")||!it("standard")&&void 0},math:function(){var t,e=st.acos||at,n=st.acosh||at,r=st.asin||at,o=st.asinh||at,i=st.atanh||at,s=st.atan||at,a=st.sin||at,c=st.sinh||at,u=st.cos||at,f=st.cosh||at,l=st.tan||at,h=st.tanh||at,d=st.exp||at,p=st.expm1||at,y=st.log1p||at;return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(t){return st.log(t+st.sqrt(t*t+1))}(1),atanh:i(.5),atanhPf:function(t){return st.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(t){return st.exp(t)-1/st.exp(t)/2}(1),cos:u(10.000000000123),cosh:f(1),coshPf:function(t){return(st.exp(t)+1/st.exp(t))/2}(1),tan:l(-1e300),tanh:h(1),tanhPf:function(t){return(st.exp(2*t)-1)/(st.exp(2*t)+1)}(1),exp:d(1),expm1:p(1),expm1Pf:function(t){return st.exp(t)-1}(1),log1p:y(10),log1pPf:function(t){return st.log(1+t)}(10),powPI:function(t){return st.pow(st.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(ut())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(F()||k()))return-2;if(!window.AudioContext)return-1;var t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function(t){var e,n,r,o,i,s,a=yt(t.cache);if(!a)return-1;if(!Et(a))return-2;var c=wt()?null:a.getExtension(pt);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=a.getParameter(a.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:c?null===(r=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=a.getParameter(a.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:c?null===(i=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=yt(t.cache);if(!e)return-1;if(!Et(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),o=[],i=[],s=[],a=[],c=[];if(r)for(var u=0,f=Object.keys(r);u<f.length;u++){var l=f[u];i.push("".concat(l,"=").concat(r[l]))}for(var h=0,d=mt(e);h<d.length;h++){var p=e[E=d[h]];s.push("".concat(E,"=").concat(p).concat(ft.has(p)?"=".concat(e.getParameter(p)):""))}if(n)for(var y=0,g=n;y<g.length;y++){var m=g[y];if(!(m===pt&&wt()||"WEBGL_polygon_mode"===m&&vt())){var b=e.getExtension(m);if(b)for(var w=0,v=mt(b);w<v.length;w++){var E;p=b[E=v[w]];a.push("".concat(E,"=").concat(p).concat(lt.has(p)?"=".concat(e.getParameter(p)):""))}else o.push(m)}}for(var B=0,x=ht;B<x.length;B++)for(var S=x[B],A=0,I=dt;A<I.length;A++){var _=I[A],L=gt(e,S,_);c.push("".concat(S,".").concat(_,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:i,parameters:s,shaderPrecisions:c,extensions:n,extensionParameters:a,unsupportedExtensions:o}}};function xt(t){var e=function(t){if(F())return.4;if(k())return!C()||V()&&U()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),n=function(t){return p(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function St(t){return JSON.stringify(t,function(t,e){return e instanceof Error?(n=e,(0,r.Cl)({name:n.name,message:n.message,stack:null===(o=n.stack)||void 0===o?void 0:o.split("\n")},n)):e;var n,o},2)}function At(t){return L(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var o=r[n],i=t[o],s="error"in i?"error":JSON.stringify(i.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function It(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise(function(t){return n.call(window,function(){return t()},{timeout:e})}):i(Math.min(t,e))}(t,2*t)}function _t(t,e){var n=Date.now();return{get:function(i){return(0,r.sH)(this,void 0,void 0,function(){var s,a,c;return(0,r.YH)(this,function(r){switch(r.label){case 0:return s=Date.now(),[4,t()];case 1:return a=r.sent(),c=function(t){var e,n=xt(t);return{get visitorId(){return void 0===e&&(e=At(this.components)),e},set visitorId(t){e=t},confidence:n,components:t,version:o}}(a),(e||(null==i?void 0:i.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-n,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(St(a),"\n```")),[2,c]}})})}}}var Lt={load:function(t){var e;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,function(){var n,i,s;return(0,r.YH)(this,function(r){switch(r.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),n=t.delayFallback,i=t.debug,[4,It(n)];case 1:return r.sent(),s=function(t){return T(Bt,t,[])}({cache:{},debug:i}),[2,_t(s,i)]}})})},hashComponents:At,componentsToDebugString:St}},6612:(t,e,n)=>{"use strict";var r;n.d(e,{y:()=>r}),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar"}(r||(r={}))},6748:(t,e,n)=>{"use strict";e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var n=(0,o.ellipticCurve)(),a=new i.PrivateKey(void 0,n),c=t instanceof Uint8Array?new i.PublicKey(t,n):i.PublicKey.fromHex(t,n),u=a.encapsulate(c,(0,o.isHkdfKeyCompressed)()),f=a.publicKey.toBytes((0,o.isEphemeralKeyCompressed)()),l=(0,s.symEncrypt)(u,e);return(0,r.concatBytes)(f,l)}(t,e))};var r=n(6527),o=n(4928),i=n(9065),s=n(2158);var a=n(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=n(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},7076:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const r=n(7202),o=n(2318),i=n(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends r.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:t,B:e,C:n,D:r,E:o,F:i,G:s,H:a}=this;return[t,e,n,r,o,i,s,a]}set(t,e,n,r,o,i,s,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|o,this.F=0|i,this.G=0|s,this.H=0|a}process(t,e){for(let n=0;n<16;n++,e+=4)a[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],n=a[t-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,o=(0,i.rotr)(n,17)^(0,i.rotr)(n,19)^n>>>10;a[t]=o+a[t-7]+r+a[t-16]|0}let{A:n,B:o,C:c,D:u,E:f,F:l,G:h,H:d}=this;for(let t=0;t<64;t++){const e=d+((0,i.rotr)(f,6)^(0,i.rotr)(f,11)^(0,i.rotr)(f,25))+(0,r.Chi)(f,l,h)+s[t]+a[t]|0,p=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+(0,r.Maj)(n,o,c)|0;d=h,h=l,l=f,f=u+e|0,u=c,c=o,o=n,n=e+p|0}n=n+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,f=f+this.E|0,l=l+this.F|0,h=h+this.G|0,d=d+this.H|0,this.set(n,o,c,u,f,l,h,d)}roundClean(){(0,i.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,i.clean)(this.buffer)}}e.SHA256=c;class u extends c{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}e.SHA224=u;const f=(()=>o.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),l=(()=>f[0])(),h=(()=>f[1])(),d=new Uint32Array(80),p=new Uint32Array(80);class y extends r.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:o,Cl:i,Dh:s,Dl:a,Eh:c,El:u,Fh:f,Fl:l,Gh:h,Gl:d,Hh:p,Hl:y}=this;return[t,e,n,r,o,i,s,a,c,u,f,l,h,d,p,y]}set(t,e,n,r,o,i,s,a,c,u,f,l,h,d,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|o,this.Cl=0|i,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|l,this.Gh=0|h,this.Gl=0|d,this.Hh=0|p,this.Hl=0|y}process(t,e){for(let n=0;n<16;n++,e+=4)d[n]=t.getUint32(e),p[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|d[t-15],n=0|p[t-15],r=o.rotrSH(e,n,1)^o.rotrSH(e,n,8)^o.shrSH(e,n,7),i=o.rotrSL(e,n,1)^o.rotrSL(e,n,8)^o.shrSL(e,n,7),s=0|d[t-2],a=0|p[t-2],c=o.rotrSH(s,a,19)^o.rotrBH(s,a,61)^o.shrSH(s,a,6),u=o.rotrSL(s,a,19)^o.rotrBL(s,a,61)^o.shrSL(s,a,6),f=o.add4L(i,u,p[t-7],p[t-16]),l=o.add4H(f,r,c,d[t-7],d[t-16]);d[t]=0|l,p[t]=0|f}let{Ah:n,Al:r,Bh:i,Bl:s,Ch:a,Cl:c,Dh:u,Dl:f,Eh:y,El:g,Fh:m,Fl:b,Gh:w,Gl:v,Hh:E,Hl:B}=this;for(let t=0;t<80;t++){const e=o.rotrSH(y,g,14)^o.rotrSH(y,g,18)^o.rotrBH(y,g,41),x=o.rotrSL(y,g,14)^o.rotrSL(y,g,18)^o.rotrBL(y,g,41),S=y&m^~y&w,A=g&b^~g&v,I=o.add5L(B,x,A,h[t],p[t]),_=o.add5H(I,E,e,S,l[t],d[t]),L=0|I,O=o.rotrSH(n,r,28)^o.rotrBH(n,r,34)^o.rotrBH(n,r,39),T=o.rotrSL(n,r,28)^o.rotrBL(n,r,34)^o.rotrBL(n,r,39),H=n&i^n&a^i&a,R=r&s^r&c^s&c;E=0|w,B=0|v,w=0|m,v=0|b,m=0|y,b=0|g,({h:y,l:g}=o.add(0|u,0|f,0|_,0|L)),u=0|a,f=0|c,a=0|i,c=0|s,i=0|n,s=0|r;const k=o.add3L(L,T,R);n=o.add3H(k,_,O,H),r=0|k}({h:n,l:r}=o.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:s}=o.add(0|this.Bh,0|this.Bl,0|i,0|s)),({h:a,l:c}=o.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:u,l:f}=o.add(0|this.Dh,0|this.Dl,0|u,0|f)),({h:y,l:g}=o.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:b}=o.add(0|this.Fh,0|this.Fl,0|m,0|b)),({h:w,l:v}=o.add(0|this.Gh,0|this.Gl,0|w,0|v)),({h:E,l:B}=o.add(0|this.Hh,0|this.Hl,0|E,0|B)),this.set(n,r,i,s,a,c,u,f,y,g,m,b,w,v,E,B)}roundClean(){(0,i.clean)(d,p)}destroy(){(0,i.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}e.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),b=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class w extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=w;class v extends y{constructor(){super(32),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}e.SHA512_256=v,e.sha256=(0,i.createHasher)(()=>new c),e.sha224=(0,i.createHasher)(()=>new u),e.sha512=(0,i.createHasher)(()=>new y),e.sha384=(0,i.createHasher)(()=>new g),e.sha512_256=(0,i.createHasher)(()=>new v),e.sha512_224=(0,i.createHasher)(()=>new w)},7202:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA512_IV=e.SHA384_IV=e.SHA224_IV=e.SHA256_IV=e.HashMD=void 0,e.setBigUint64=o,e.Chi=function(t,e,n){return t&e^~t&n},e.Maj=function(t,e,n){return t&e^t&n^e&n};const r=n(9175);function o(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}class i extends r.Hash{constructor(t,e,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=(0,r.createView)(this.buffer)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{view:e,buffer:n,blockLen:o}=this,i=t.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const e=(0,r.createView)(t);for(;o<=i-s;s+=o)this.process(e,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:i,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let t=a;t<i;t++)e[t]=0;o(n,i-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=u/4,l=this.get();if(f>l.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<f;t++)c.setUint32(4*t,l[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:o,destroyed:i,pos:s}=this;return t.destroyed=i,t.finished=o,t.length=r,t.pos=s,r%e&&t.buffer.set(n),t}clone(){return this._cloneInto()}}e.HashMD=i,e.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),e.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),e.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7311:(t,e,n)=>{"use strict";n.d(e,{o:()=>u});var r=n(6568),o=n(8330),i=n(8693),s=n(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class u{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async setAccessByAppKey(t){this._tokenGetter=this._fetchToken.bind(this);const{appId:e,secret:n,platform:r}=t;this._appId=e,this._secret=n,this._platform=r,this._version=r?.sdkVersion||o.rE,this._identifier=r?.identifier||await this.getWebIdentifier()}setTokenGetter(t){this._tokenGetter=t}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:t,initialDelay:e}=c;let n=0;for(;n<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(r){if(n++,n>t)throw this._globalDispatcher.call("unauthorized"),r;await this._retryDelay(n,e)}}getSdkVersion(){return this._version||o.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then(t=>(this._updateContext(t),this._dispatch.call(a,null,t.accessToken),t.accessToken)).catch(t=>{throw this._tokenPending=null,t}).finally(()=>{this._tokenPending=null}),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const t=await r.Ay.load(),e=await t.get();this._webIdentifier=e.visitorId}return this._webIdentifier}on(t,e){return this._dispatch.on(t,e),{off:()=>this._dispatch.on(t,null)}}setGlobalDispatcher(t){this._globalDispatcher=t}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(t){const{accessToken:e,expiredTime:n,identifier:r,sdkVersion:o}=t;this._accessToken=e,this._expiredTime=n,void 0!==r&&(this._identifier=r),void 0!==o&&(this._version=o)}_fetchToken(){return(0,i.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const n=e*Math.pow(2,t-1);return console.warn(`Retrying in ${n} ms... (Attempt ${t})`),new Promise(t=>setTimeout(t,n))}}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=a(t),s=i[0],c=i[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,c)),f=0,l=c>0?s-4:s;for(n=0;n<l;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[f++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(u(t,a,a+s>c?c:a+s));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function u(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(c(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7678:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var r=n(469);e.aes256gcm=function(t,e,n){return(0,r.gcm)(t,e,n)};e.aes256cbc=function(t,e,n){return(0,r.cbc)(t,e)}},7757:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var r=n(6527),o=n(8489),i=n(7678),s=n(83),a=n(4928),c=n(1666);e.symEncrypt=function(t,e,n){return u(f,t,e,n)};function u(t,e,n,r){var o=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===o)return t(i.aes256gcm,e,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,r);if("xchacha20"===o)return t(s.xchacha20,e,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,r);if("aes-256-cbc"===o)return t(i.aes256cbc,e,n,16,0);throw new Error("Not implemented")}function f(t,e,n,i,s,a){var c=(0,o.randomBytes)(i),u=t(e,c,a).encrypt(n);if(0===s)return(0,r.concatBytes)(c,u);var f=u.length-s,l=u.subarray(0,f),h=u.subarray(f);return(0,r.concatBytes)(c,h,l)}function l(t,e,n,o,i,s){var a=n.subarray(0,o),c=t(e,Uint8Array.from(a),s),u=n.subarray(o);if(0===i)return c.decrypt(u);var f=u.subarray(0,i),l=u.subarray(i);return c.decrypt((0,r.concatBytes)(l,f))}e.symDecrypt=function(t,e,n){return u(l,t,e,n)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,n)=>{"use strict";n.d(e,{Cm:()=>o,EC:()=>s,Uk:()=>i});var r=n(7311);function o(){return r.o.getInstance().getIdentifier()}function i(t){r.o.getInstance().setTokenGetter(t)}function s(){return r.o.getInstance().setupTokenManager()}},8167:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(8287),o=n(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=r.hp),o.VV.ellipticCurve="secp256k1",o.VV.symmetricAlgorithm="aes-256-gcm";const i=new TextEncoder;function s(t,e){return(0,o.w)(t,i.encode(e)).toString("hex")}},8287:(t,e,n)=>{"use strict";const r=n(7526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=a(n);const o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||q(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(o)return r?-1:K(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let r=-1;for(i=n;i<a;i++)if(u(t,i)===u(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(t,i+r)!==u(e,r)){n=!1;break}if(n)return i}return-1}function v(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(q(r))return s;t[n+s]=r}return s}function E(t,e,n,r){return z(K(e,t.length-n),t,n,r)}function B(t,e,n,r){return z(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return z(W(e),t,n,r)}function S(t,e,n,r){return z(function(t,e){let n,r,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[o+1],r=t[o+2],a=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(t){const e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=_));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return l(t)},c.allocUnsafeSlow=function(t){return l(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(X(e,Uint8Array))o+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(i,s),u=this.slice(r,o),f=t.slice(e,n);for(let t=0;t<a;++t)if(u[t]!==f[t]){i=u[t],s=f[t];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return B(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function L(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function O(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function T(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r<n;++r)o+=J[t[r]];return o}function H(t,e,n){const r=t.slice(e,n);let o="";for(let t=0;t<r.length-1;t+=2)o+=String.fromCharCode(r[t]+256*r[t+1]);return o}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function C(t,e,n,r,o){j(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function U(t,e,n,r,o){j(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function P(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=$(function(t){Z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),c.prototype.readBigUInt64BE=$(function(t){Z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=$(function(t){Z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),c.prototype.readBigInt64BE=$(function(t){Z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=$(function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=$(function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}let o=0,i=1,s=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=$(function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=$(function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=c.isBuffer(t)?t:c.from(t,r),s=i.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%s]}return this};const F={};function M(t,e,n){F[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function D(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function j(t,e,n,r,o,i){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){Z(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||G(e,t.length-(n+1))}(r,o,i)}function Z(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,n){if(Math.floor(t)!==t)throw Z(t,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}M("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),M("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),M("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=D(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function K(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function q(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function $(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8330:t=>{"use strict";t.exports={rE:"9.1.0"}},8489:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=i,e.getWebcryptoSubtle=s,e.managedNonce=function(t){const{nonceLength:e}=t;return(0,o.anumber)(e),(n,...r)=>({encrypt(s,...a){const c=i(e),u=t(n,c,...r).encrypt(s,...a),f=(0,o.concatBytes)(c,u);return u.fill(0),f},decrypt(o,...i){const s=o.subarray(0,e),a=o.subarray(e);return t(n,s,...r).decrypt(a,...i)}})};const r=n(5297),o=n(6527);function i(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r.crypto&&"object"==typeof r.crypto.subtle&&null!=r.crypto.subtle)return r.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,n,r){const o=s(),i=await o.importKey("raw",t,e,!0,["encrypt"]),a=await o.encrypt(n,i,r);return new Uint8Array(a)},async decrypt(t,e,n,r){const o=s(),i=await o.importKey("raw",t,e,!0,["decrypt"]),a=await o.decrypt(n,i,r);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",u="AES-GCM";function f(t){return(n,r,i)=>{(0,o.abytes)(n),(0,o.abytes)(r);const s={name:t,length:8*n.length},f=function(t,e,n){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===u)return n?{name:u,iv:e,additionalData:n}:{name:u,iv:e};throw new Error("unknown aes block mode")}(t,r,i);let l=!1;return{encrypt(t){if((0,o.abytes)(t),l)throw new Error("Cannot encrypt() twice with same key / nonce");return l=!0,e.utils.encrypt(n,s,f,t)},decrypt:t=>((0,o.abytes)(t),e.utils.decrypt(n,s,f,t))}}}e.cbc=f(a),e.ctr=f(c),e.gcm=(()=>f(u))()},8510:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const r=n(7076),o=n(9175),i=n(3562),s=n(1761),a=n(4967),c=n(1705),u=n(8627),f={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},l={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},h=BigInt(0),d=BigInt(1),p=BigInt(2);function y(t){const e=f.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),l=t*t*t%e,h=l*l*t%e,d=(0,a.pow2)(h,n,e)*h%e,y=(0,a.pow2)(d,n,e)*h%e,m=(0,a.pow2)(y,p,e)*l%e,b=(0,a.pow2)(m,o,e)*m%e,w=(0,a.pow2)(b,i,e)*b%e,v=(0,a.pow2)(w,c,e)*w%e,E=(0,a.pow2)(v,u,e)*v%e,B=(0,a.pow2)(E,c,e)*w%e,x=(0,a.pow2)(B,n,e)*h%e,S=(0,a.pow2)(x,s,e)*b%e,A=(0,a.pow2)(S,r,e)*l%e,I=(0,a.pow2)(A,p,e);if(!g.eql(g.sqr(I),t))throw new Error("Cannot find square root");return I}const g=(0,a.Field)(f.p,void 0,void 0,{sqrt:y});e.secp256k1=(0,i.createCurve)({...f,Fp:g,lowS:!0,endo:l},r.sha256);const m={};function b(t,...e){let n=m[t];if(void 0===n){const e=(0,r.sha256)(Uint8Array.from(t,t=>t.charCodeAt(0)));n=(0,u.concatBytes)(e,e),m[t]=n}return(0,r.sha256)((0,u.concatBytes)(n,...e))}const w=t=>t.toBytes(!0).slice(1),v=t=>(0,u.numberToBytesBE)(t,32),E=t=>(0,a.mod)(t,f.p),B=t=>(0,a.mod)(t,f.n),x=(()=>e.secp256k1.Point)(),S=t=>t%p===h;function A(t){let e=(0,c._normFnElement)(x.Fn,t),n=x.BASE.multiply(e);return{scalar:S(n.y)?e:B(-e),bytes:w(n)}}function I(t){(0,u.aInRange)("x",t,d,f.p);const e=E(t*t);let n=y(E(e*t+BigInt(7)));S(n)||(n=E(-n));const r=x.fromAffine({x:t,y:n});return r.assertValidity(),r}const _=u.bytesToNumberBE;function L(...t){return B(_(b("BIP0340/challenge",...t)))}function O(t){return A(t).bytes}function T(t,e,n=(0,o.randomBytes)(32)){const r=(0,u.ensureBytes)("message",t),{bytes:i,scalar:s}=A(e),a=(0,u.ensureBytes)("auxRand",n,32),c=v(s^_(b("BIP0340/aux",a))),f=b("BIP0340/nonce",c,i,r),l=B(_(f));if(l===h)throw new Error("sign failed: k is zero");const{bytes:d,scalar:p}=A(l),y=L(d,i,r),g=new Uint8Array(64);if(g.set(d,0),g.set(v(B(p+y*s)),32),!H(g,r,i))throw new Error("sign: Invalid signature produced");return g}function H(t,e,n){const r=(0,u.ensureBytes)("signature",t,64),o=(0,u.ensureBytes)("message",e),i=(0,u.ensureBytes)("publicKey",n,32);try{const t=I(_(i)),e=_(r.subarray(0,32));if(!(0,u.inRange)(e,d,f.p))return!1;const n=_(r.subarray(32,64));if(!(0,u.inRange)(n,d,f.n))return!1;const s=L(v(e),w(t),o),a=x.BASE.multiplyUnsafe(n).add(t.multiplyUnsafe(B(-s))),{x:c,y:l}=a.toAffine();return!(a.is0()||!S(l)||c!==e)}catch(t){return!1}}e.schnorr=(()=>{const t=(t=(0,o.randomBytes)(48))=>(0,a.mapHashToField)(t,f.n);return e.secp256k1.utils.randomSecretKey,{keygen:function(e){const n=t(e);return{secretKey:n,publicKey:O(n)}},getPublicKey:O,sign:T,verify:H,Point:x,utils:{randomSecretKey:t,randomPrivateKey:t,taggedHash:b,lift_x:I,pointToBytes:w,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,mod:a.mod},info:{type:"weierstrass",publicKeyHasPrefix:!1,lengths:{secret:32,public:32,signature:64,seed:48}}}})();const R=(()=>(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(t=>BigInt(t)))))(),k=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.Point,t=>{const{x:e,y:n}=k(g.create(t[0]));return R(e,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8627:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=e.utf8ToBytes=e.randomBytes=e.isBytes=e.hexToBytes=e.concatBytes=e.bytesToUtf8=e.bytesToHex=e.anumber=e.abytes=void 0,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=a,e.hexToNumber=c,e.bytesToNumberBE=function(t){return c((0,r.bytesToHex)(t))},e.bytesToNumberLE=function(t){return(0,r.abytes)(t),c((0,r.bytesToHex)(Uint8Array.from(t).reverse()))},e.numberToBytesBE=u,e.numberToBytesLE=function(t,e){return u(t,e).reverse()},e.numberToVarBytesBE=function(t){return(0,r.hexToBytes)(a(t))},e.ensureBytes=function(t,e,n){let o;if("string"==typeof e)try{o=(0,r.hexToBytes)(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!(0,r.isBytes)(e))throw new Error(t+" must be hex string or Uint8Array");o=Uint8Array.from(e)}const i=o.length;if("number"==typeof n&&i!==n)throw new Error(t+" of length "+n+" expected, got "+i);return o},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.inRange=l,e.aInRange=function(t,e,n,r){if(!l(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>i;t>>=s,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&s},e.bitSet=function(t,e,n){return t|(n?s:i)<<BigInt(e)},e.createHmacDrbg=function(t,e,n){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const o=t=>new Uint8Array(t),i=t=>Uint8Array.of(t);let s=o(t),a=o(t),c=0;const u=()=>{s.fill(1),a.fill(0),c=0},f=(...t)=>n(a,s,...t),l=(t=o(0))=>{a=f(i(0),t),s=f(),0!==t.length&&(a=f(i(1),t),s=f())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){s=f();const e=s.slice();n.push(e),t+=s.length}return(0,r.concatBytes)(...n)};return(t,e)=>{let n;for(u(),l(t);!(n=e(h()));)l();return u(),n}},e.validateObject=function(t,e,n={}){const r=(e,n,r)=>{const o=h[n];if("function"!=typeof o)throw new Error("invalid validator function");const i=t[e];if(!(r&&void 0===i||o(i,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+i)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t},e.isHash=function(t){return"function"==typeof t&&Number.isSafeInteger(t.outputLen)},e._validateObject=function(t,e,n={}){if(!t||"object"!=typeof t)throw new Error("expected valid options object");function r(e,n,r){const o=t[e];if(r&&void 0===o)return;const i=typeof o;if(i!==n||null===o)throw new Error(`param "${e}" is invalid: expected ${n}, got ${i}`)}Object.entries(e).forEach(([t,e])=>r(t,e,!1)),Object.entries(n).forEach(([t,e])=>r(t,e,!0))},e.memoized=function(t){const e=new WeakMap;return(n,...r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t(n,...r);return e.set(n,i),i}};const r=n(9175);var o=n(9175);Object.defineProperty(e,"abytes",{enumerable:!0,get:function(){return o.abytes}}),Object.defineProperty(e,"anumber",{enumerable:!0,get:function(){return o.anumber}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(e,"bytesToUtf8",{enumerable:!0,get:function(){return o.bytesToUtf8}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return o.concatBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return o.hexToBytes}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return o.isBytes}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return o.randomBytes}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return o.utf8ToBytes}});const i=BigInt(0),s=BigInt(1);function a(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function c(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?i:BigInt("0x"+t)}function u(t,e){return(0,r.hexToBytes)(t.toString(16).padStart(2*e,"0"))}const f=t=>"bigint"==typeof t&&i<=t;function l(t,e,n){return f(t)&&f(e)&&f(n)&&e<=t&&t<n}e.bitMask=t=>(s<<BigInt(t))-s;const h={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||(0,r.isBytes)(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.notImplemented=()=>{throw new Error("not implemented")}},8693:(t,e,n)=>{"use strict";n.d(e,{i:()=>f});var r=n(2658),o=n(5461),i=n(7808),s=n(9588),a=n(8167),c=n(8330);const u=["CORE_SDK",...(0,r.d)()];async function f(t,e,n,r){if(!t||!e)throw new Error("appId and secret are required");try{const f=await(0,o.l)(),h=await async function(t,e=l){return t??async function(t){return{identifier:await(0,i.Cm)(),origin:t,keyPlatform:"WEB",sdkVersion:c.rE}}(e)}(n,r),{identifier:d,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(t,e){return(0,a.Z)(t,JSON.stringify(e))}(f,{appId:t,secret:e,identifier:d,timestamp:Date.now(),products:u,...y}),b=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!b.ok){const t=await b.json(),{code:e,message:n}=t;if(401===b.status&&7001005===e)throw(0,o.U)(),new Error(n);throw new Error(n||`HTTP error! status: ${b.status}`)}const w=await b.json(),{accessToken:v,expiresIn:E}=w;return{accessToken:v,expiredTime:Date.now()+1e3*(E-90)}}catch(t){throw t instanceof Error?new Error(`Failed to get access token: ${t.message}`,{cause:t}):new Error(`Failed to get access token: ${String(t)}`)}}const l="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8884:(t,e,n)=>{"use strict";var r;!function(t){t.Access="access_control",t.Map="map"}(r||(r={}))},8900:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;const r=n(2506),o=n(1210),i=n(6527);function s(t,e,n,o,i,s=20){let a=t[0],c=t[1],u=t[2],f=t[3],l=e[0],h=e[1],d=e[2],p=e[3],y=e[4],g=e[5],m=e[6],b=e[7],w=i,v=n[0],E=n[1],B=n[2],x=a,S=c,A=u,I=f,_=l,L=h,O=d,T=p,H=y,R=g,k=m,C=b,U=w,P=v,V=E,N=B;for(let t=0;t<s;t+=2)x=x+_|0,U=(0,r.rotl)(U^x,16),H=H+U|0,_=(0,r.rotl)(_^H,12),x=x+_|0,U=(0,r.rotl)(U^x,8),H=H+U|0,_=(0,r.rotl)(_^H,7),S=S+L|0,P=(0,r.rotl)(P^S,16),R=R+P|0,L=(0,r.rotl)(L^R,12),S=S+L|0,P=(0,r.rotl)(P^S,8),R=R+P|0,L=(0,r.rotl)(L^R,7),A=A+O|0,V=(0,r.rotl)(V^A,16),k=k+V|0,O=(0,r.rotl)(O^k,12),A=A+O|0,V=(0,r.rotl)(V^A,8),k=k+V|0,O=(0,r.rotl)(O^k,7),I=I+T|0,N=(0,r.rotl)(N^I,16),C=C+N|0,T=(0,r.rotl)(T^C,12),I=I+T|0,N=(0,r.rotl)(N^I,8),C=C+N|0,T=(0,r.rotl)(T^C,7),x=x+L|0,N=(0,r.rotl)(N^x,16),k=k+N|0,L=(0,r.rotl)(L^k,12),x=x+L|0,N=(0,r.rotl)(N^x,8),k=k+N|0,L=(0,r.rotl)(L^k,7),S=S+O|0,U=(0,r.rotl)(U^S,16),C=C+U|0,O=(0,r.rotl)(O^C,12),S=S+O|0,U=(0,r.rotl)(U^S,8),C=C+U|0,O=(0,r.rotl)(O^C,7),A=A+T|0,P=(0,r.rotl)(P^A,16),H=H+P|0,T=(0,r.rotl)(T^H,12),A=A+T|0,P=(0,r.rotl)(P^A,8),H=H+P|0,T=(0,r.rotl)(T^H,7),I=I+_|0,V=(0,r.rotl)(V^I,16),R=R+V|0,_=(0,r.rotl)(_^R,12),I=I+_|0,V=(0,r.rotl)(V^I,8),R=R+V|0,_=(0,r.rotl)(_^R,7);let F=0;o[F++]=a+x|0,o[F++]=c+S|0,o[F++]=u+A|0,o[F++]=f+I|0,o[F++]=l+_|0,o[F++]=h+L|0,o[F++]=d+O|0,o[F++]=p+T|0,o[F++]=y+H|0,o[F++]=g+R|0,o[F++]=m+k|0,o[F++]=b+C|0,o[F++]=w+U|0,o[F++]=v+P|0,o[F++]=E+V|0,o[F++]=B+N|0}function a(t,e,n,o){let i=t[0],s=t[1],a=t[2],c=t[3],u=e[0],f=e[1],l=e[2],h=e[3],d=e[4],p=e[5],y=e[6],g=e[7],m=n[0],b=n[1],w=n[2],v=n[3];for(let t=0;t<20;t+=2)i=i+u|0,m=(0,r.rotl)(m^i,16),d=d+m|0,u=(0,r.rotl)(u^d,12),i=i+u|0,m=(0,r.rotl)(m^i,8),d=d+m|0,u=(0,r.rotl)(u^d,7),s=s+f|0,b=(0,r.rotl)(b^s,16),p=p+b|0,f=(0,r.rotl)(f^p,12),s=s+f|0,b=(0,r.rotl)(b^s,8),p=p+b|0,f=(0,r.rotl)(f^p,7),a=a+l|0,w=(0,r.rotl)(w^a,16),y=y+w|0,l=(0,r.rotl)(l^y,12),a=a+l|0,w=(0,r.rotl)(w^a,8),y=y+w|0,l=(0,r.rotl)(l^y,7),c=c+h|0,v=(0,r.rotl)(v^c,16),g=g+v|0,h=(0,r.rotl)(h^g,12),c=c+h|0,v=(0,r.rotl)(v^c,8),g=g+v|0,h=(0,r.rotl)(h^g,7),i=i+f|0,v=(0,r.rotl)(v^i,16),y=y+v|0,f=(0,r.rotl)(f^y,12),i=i+f|0,v=(0,r.rotl)(v^i,8),y=y+v|0,f=(0,r.rotl)(f^y,7),s=s+l|0,m=(0,r.rotl)(m^s,16),g=g+m|0,l=(0,r.rotl)(l^g,12),s=s+l|0,m=(0,r.rotl)(m^s,8),g=g+m|0,l=(0,r.rotl)(l^g,7),a=a+h|0,b=(0,r.rotl)(b^a,16),d=d+b|0,h=(0,r.rotl)(h^d,12),a=a+h|0,b=(0,r.rotl)(b^a,8),d=d+b|0,h=(0,r.rotl)(h^d,7),c=c+u|0,w=(0,r.rotl)(w^c,16),p=p+w|0,u=(0,r.rotl)(u^p,12),c=c+u|0,w=(0,r.rotl)(w^c,8),p=p+w|0,u=(0,r.rotl)(u^p,7);let E=0;o[E++]=i,o[E++]=s,o[E++]=a,o[E++]=c,o[E++]=m,o[E++]=b,o[E++]=w,o[E++]=v}e.chacha20orig=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),u=(t,e)=>{t.update(e);const n=e.length%16;n&&t.update(c.subarray(n))},f=new Uint8Array(32);function l(t,e,n,r,s){const a=t(e,n,f),c=o.poly1305.create(a);s&&u(c,s),u(c,r);const l=(0,i.u64Lengths)(r.length,s?s.length:0,!0);c.update(l);const h=c.digest();return(0,i.clean)(a,l),h}e._poly1305_aead=t=>(e,n,r)=>{const o=16;return{encrypt(s,a){const c=s.length;(a=(0,i.getOutput)(c+o,a,!1)).set(s);const u=a.subarray(0,-16);t(e,n,u,u,1);const f=l(t,e,n,u,r);return a.set(f,c),(0,i.clean)(f),a},decrypt(s,a){a=(0,i.getOutput)(s.length-o,a,!1);const c=s.subarray(0,-16),u=s.subarray(-16),f=l(t,e,n,c,r);if(!(0,i.equalBytes)(u,f))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,n,a,a,1),(0,i.clean)(f),a}}},e.chacha20poly1305=(0,i.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,i.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))},9065:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var r=n(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var o=n(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}})},9175:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=o,e.anumber=i,e.abytes=s,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");i(t.outputLen),i(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){s(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)},e.rotr=function(t,e){return t<<32-e|t>>>e},e.rotl=function(t,e){return t<<e|t>>>32-e>>>0},e.byteSwap=a,e.byteSwap32=c,e.bytesToHex=function(t){if(s(t),u)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=f[t[n]];return e},e.hexToBytes=function(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(u)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,o=0;e<n;e++,o+=2){const n=h(t.charCodeAt(o)),i=h(t.charCodeAt(o+1));if(void 0===n||void 0===i){const e=t[o]+t[o+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+o)}r[e]=16*n+i}return r},e.asyncLoop=async function(t,n,r){let o=Date.now();for(let i=0;i<t;i++){r(i);const t=Date.now()-o;t>=0&&t<n||(await(0,e.nextTick)(),o+=t)}},e.utf8ToBytes=d,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=p,e.kdfInputToBytes=function(t){"string"==typeof t&&(t=d(t));return s(t),t},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];s(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n},e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("options should be object or undefined");return Object.assign(t,e)},e.createHasher=y,e.createOptHasher=g,e.createXOFer=m,e.randomBytes=function(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const r=n(5145);function o(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function s(t,...e){if(!o(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function c(t){for(let e=0;e<t.length;e++)t[e]=a(t[e]);return t}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.swap8IfBE=e.isLE?t=>t:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),f=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=l._0&&t<=l._9?t-l._0:t>=l.A&&t<=l.F?t-(l.A-10):t>=l.a&&t<=l.f?t-(l.a-10):void 0}function d(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function p(t){return"string"==typeof t&&(t=d(t)),s(t),t}e.nextTick=async()=>{};function y(t){const e=e=>t().update(p(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function g(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9378:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var r=n(8489),o=n(459),i=n(8510),s=n(4928),a=n(1666),c=n(3503);e.getValidSecret=function(t){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(n,t));return n};e.isValidPrivateKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.utils.isValidPrivateKey(t)},function(){return!0},function(){return!0})};e.getPublicKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)})};e.getSharedPoint=function(t,e,n,r){return u(r||(0,s.ellipticCurve)(),function(r){return r.getSharedSecret(t,e,n)},function(n){return n.getSharedSecret(t,e)},function(n){return l(n,t,e)})};e.convertPublicKeyFormat=function(t,e,n){return u(n||(0,s.ellipticCurve)(),function(n){return n.getSharedSecret(BigInt(1),t,e)},function(){return t},function(){return t})};function u(t,e,n,r){if("secp256k1"===t)return e(i.secp256k1);if("x25519"===t)return n(o.x25519);if("ed25519"===t)return r(o.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var n=(0,c.decodeHex)(t);return u(e||(0,s.ellipticCurve)(),function(){return f(n)},function(){return n},function(){return n})};var f=function(t){if(t.length===a.ETH_PUBLIC_KEY_SIZE){var e=new Uint8Array(1+t.length);return e.set([4]),e.set(t,1),e}return t},l=function(t,e,n){var r=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(n).multiply(r).toRawBytes()}},9408:(t,e,n)=>{"use strict";var r;!function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2",t.MAPXUS_DEFAULT="mapxus_default"}(r||(r={}))},9489:(t,e,n)=>{"use strict";n.d(e,{S:()=>i});var r=n(1089),o=n(7311);const i=["unauthorized","initError"],s=globalThis,a=(0,r.A)(...i);o.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(t,e){return a.on(t,e),{off:()=>a.on(t,null)}}},9588:(t,e,n)=>{"use strict";n.d(e,{KL:()=>s,R0:()=>r,e$:()=>i,kk:()=>o});const r="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",i=10,s=1},9615:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const r=n(9175);class o extends r.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(t);const n=(0,r.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let t=0;t<i.length;t++)i[t]^=54;this.iHash.update(i),this.oHash=t.create();for(let t=0;t<i.length;t++)i[t]^=106;this.oHash.update(i),(0,r.clean)(i)}update(t){return(0,r.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,r.aexists)(this),(0,r.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:s}=this;return t.finished=r,t.destroyed=o,t.blockLen=i,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=o;e.hmac=(t,e,n)=>new o(t,e).update(n).digest(),e.hmac.create=(t,e)=>new o(t,e)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ASSISTANT_LAYER_INDOOR_FLOORS:()=>i.FI,ASSISTANT_LAYER_SHARED_FLOORS:()=>i.TU,ERRORS:()=>u.S,OFFSET:()=>e.e$,PAGE:()=>e.KL,VERSION:()=>f,__internal:()=>c.S,convertBrowserLangToPresetLang:()=>o.y,getAccessToken:()=>s.i,getIdentifier:()=>a.Cm,setGetTokenAsync:()=>a.Uk,setupTokenManager:()=>a.EC});var t=n(8330),e=n(9588),o=n(4969),i=n(1965),s=n(8693),a=n(7808),c=n(2658),u=n(9489);const f=t.rE})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
|
|
11
|
-
|
|
12
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
|
|
14
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|