PageSourceSearch

https://masca.io/_next/static/chunks/413-3b87c17aa5767ae3.js

js masca.io collected 2026-10-04 13:24:36 UTC 846,066 bytes, 311 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[413],{90461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(86358),s=r(82887),i=r(57337);function o(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,s.concatBytes)(...r)),randomBytes:s.randomBytes}}t.getHash=o,t.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...r(t),create:r})}},20032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(1568),s=r(56356),i=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,s=t;for(;r>i;)r&o&&(n=n.add(s)),s=s.double(),r>>=o;return n},precomputeWindow(e,t){let{windows:r,windowSize:s}=n(t),i=[],o=e,a=o;for(let e=0;e<r;e++){a=o,i.push(a);for(let e=1;e<s;e++)a=a.add(o),i.push(a);o=a.double()}return i},wNAF(t,s,i){let{windows:a,windowSize:l}=n(t),c=e.ZERO,u=e.BASE,d=BigInt(2**t-1),h=2**t,f=BigInt(t);for(let e=0;e<a;e++){let t=e*l,n=Number(i&d);i>>=f,n>l&&(n-=h,i+=o);let a=t+Math.abs(n)-1,p=e%2!=0,g=n<0;0===n?u=u.add(r(p,s[t])):c=c.add(r(g,s[a]))}return{p:c,f:u}},wNAFCached(e,t,r,n){let s=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,s),1!==s&&t.set(e,n(i))),this.wNAF(s,i,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,s.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},83686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(1568),s=r(56356),i=s.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function a(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function l(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){a(e),a(t),l(r),t.length>255&&(t=n((0,s.concatBytes)((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:c}=n,u=Math.ceil(r/i);if(u>255)throw Error("Invalid xmd length");let d=(0,s.concatBytes)(t,o(t.length,1)),h=o(0,c),f=o(r,2),p=Array(u),g=n((0,s.concatBytes)(h,e,f,o(0,1),d));p[0]=n((0,s.concatBytes)(g,o(1,1),d));for(let e=1;e<=u;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(g,p[e-1]),o(e+1,1),d];p[e]=n((0,s.concatBytes)(...t))}return(0,s.concatBytes)(...p).slice(0,r)}function u(e,t,r,n,i){if(a(e),a(t),l(r),t.length>255&&(t=i.create({dkLen:Math.ceil(2*n/8)}).update((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function d(e,t,r){let o;(0,s.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:h,m:f,hash:p,expand:g,DST:m}=r;a(e),l(t);let y=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,s.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(m),b=Math.ceil((d.toString(2).length+h)/8),A=t*f*b;if("xmd"===g)o=c(e,y,A,p);else if("xof"===g)o=u(e,y,A,h,p);else if("_internal_pass"===g)o=e;else throw Error('expand must be "xmd" or "xof"');let w=Array(t);for(let e=0;e<t;e++){let t=Array(f);for(let r=0;r<f;r++){let s=b*(r+e*f),a=o.subarray(s,s+b);t[r]=(0,n.mod)(i(a),d)}w[e]=t}return w}t.expand_message_xmd=c,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[s,i,o,a]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(s,i),n=e.mul(n,e.div(o,a)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,s){let i=d(n,2,{...r,DST:r.DST,...s}),o=e.fromAffine(t(i[0])),a=e.fromAffine(t(i[1])),l=o.add(a).clearCofactor();return l.assertValidity(),l},encodeToCurve(n,s){let i=d(n,1,{...r,DST:r.encodeDST,...s}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o}}}},1568:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(56356),s=BigInt(0),i=BigInt(1),o=BigInt(2),a=BigInt(3),l=BigInt(4),c=BigInt(5),u=BigInt(8);function d(e,t){let r=e%t;return r>=s?r:t+r}function h(e,t,r){if(r<=s||t<s)throw Error("Expected power/modulo > 0");if(r===i)return s;let n=i;for(;t>s;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function f(e,t){if(e===s||t<=s)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,o=s,a=i,l=i,c=s;for(;r!==s;){let e=n/r,t=n%r,s=o-l*e,i=a-c*e;n=r,r=t,o=l,a=c,l=s,c=i}if(n!==i)throw Error("invert: does not exist");return d(o,t)}function p(e){let t,r,n;let a=(e-i)/o;for(t=e-i,r=0;t%o===s;t/=o,r++);for(n=o;n<e&&h(n,a,e)!==e-i;n++);if(1===r){let t=(e+i)/l;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let c=(t+i)/o;return function(e,s){if(e.pow(s,a)===e.neg(e.ONE))throw Error("Cannot find square root");let o=r,l=e.pow(e.mul(e.ONE,n),t),u=e.pow(s,c),d=e.pow(s,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<o&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,i<<BigInt(o-t-1));l=e.sqr(r),u=e.mul(u,r),d=e.mul(d,l),o=t}return u}}function g(e){if(e%l===a){let t=(e+i)/l;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%u===c){let t=(e-c)/u;return function(e,r){let n=e.mul(r,o),s=e.pow(n,t),i=e.mul(r,s),a=e.mul(e.mul(i,o),s),l=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(l),r))throw Error("Cannot find square root");return l}}return p(e)}BigInt(9),BigInt(16),t.mod=d,t.pow=h,t.pow2=function(e,t,r){let n=e;for(;t-- >s;)n*=n,n%=r;return n},t.invert=f,t.tonelliShanks=p,t.FpSqrt=g,t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;let m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,r){if(r<s)throw Error("Expected power > 0");if(r===s)return e.ONE;if(r===i)return t;let n=e.ONE,o=t;for(;r>s;)r&i&&(n=e.mul(n,o)),o=e.sqr(o),r>>=i;return n}function b(e,t){let r=Array(t.length),n=t.reduce((t,n,s)=>e.is0(n)?t:(r[s]=t,e.mul(t,n)),e.ONE),s=e.inv(n);return t.reduceRight((t,n,s)=>e.is0(n)?t:(r[s]=e.mul(t,r[s]),e.mul(t,n)),s),r}function A(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function v(e){let t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){let t=m.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?f(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){let t=(e.ORDER-i)/o;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=A,t.Field=function(e,t,r=!1,o={}){if(e<=s)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:a,nByteLength:l}=A(e,t);if(l>2048)throw Error("Field lengths over 2048 bytes are not supported");let c=g(e),u=Object.freeze({ORDER:e,BITS:a,BYTES:l,MASK:(0,n.bitMask)(a),ZERO:s,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return s<=t&&t<e},is0:e=>e===s,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>y(u,e,t),div:(t,r)=>d(t*f(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>f(t,e),sqrt:o.sqrt||(e=>c(u,e)),invertBatch:e=>b(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,l):(0,n.numberToBytesBE)(e,l),fromBytes:e=>{if(e.length!==l)throw Error(`Fp.fromBytes: expected ${l}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let s=(e=(0,n.ensureBytes)("privateHash",e)).length,o=A(t).nByteLength+8;if(o<24||s<o||s>1024)throw Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${s}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=w,t.getMinHashLength=v,t.mapHashToField=function(e,t,r=!1){let s=e.length,o=w(t),a=v(t);if(s<16||s<a||s>1024)throw Error(`expected ${a}-1024 bytes of input, got ${s}`);let l=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(l,o):(0,n.numberToBytesBE)(l,o)}},56356:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),n=BigInt(1),s=BigInt(2),i=e=>e instanceof Uint8Array,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e){if(!i(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t}function l(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function u(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,s=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(s)||s<0)throw Error("Invalid byte sequence");r[t]=s}return r}function d(e,t){return u(e.toString(16).padStart(2*t,"0"))}function h(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=a,t.numberToHexUnpadded=l,t.hexToNumber=c,t.hexToBytes=u,t.bytesToNumberBE=function(e){return c(a(e))},t.bytesToNumberLE=function(e){if(!i(e))throw Error("Uint8Array expected");return c(a(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return u(l(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=u(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(i(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let s=n.length;if("number"==typeof r&&s!==r)throw Error(`${e} expected ${r} bytes, got ${s}`);return n},t.concatBytes=h,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.utf8ToBytes=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=(e,t,s)=>e|(s?n:r)<<BigInt(t),t.bitMask=e=>(s<<BigInt(e-1))-n;let f=e=>new Uint8Array(e),p=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=f(e),s=f(e),i=0,o=()=>{n.fill(1),s.fill(0),i=0},a=(...e)=>r(s,n,...e),l=(e=f())=>{s=a(p([0]),e),n=a(),0!==e.length&&(s=a(p([1]),e),n=a())},c=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return h(...r)};return(e,t)=>{let r;for(o(),l(e);!(r=t(c()));)l();return o(),r}};let g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let s=g[r];if("function"!=typeof s)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!s(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},57337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(1568),s=r(56356),i=r(56356),o=r(20032),{bytesToNumberBE:a,hexToBytes:l}=s;
1t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],s=e.subarray(2,n+2);if(!n||s.length!==n)throw new r("Invalid signature integer: wrong length");if(128&s[0])throw new r("Invalid signature integer: negative");if(0===s[0]&&!(128&s[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(s),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?l(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let s=n.length;if(s<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==s-2)throw new r("Invalid signature: incorrect length");let{d:i,l:o}=t.DER._parseInt(n.subarray(2)),{d:a,l:c}=t.DER._parseInt(o);if(c.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),s=t(r(e.r)),i=n.length/2,o=s.length/2,a=r(i),l=r(o);return`30${r(o+i+4)}02${l}${s}02${a}${n}`}};let c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(e){let t=function(e){let t=(0,o.validateBasic)(e);s.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,a=t.toBytes||((e,t,n)=>{let i=t.toAffine();return s.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),l=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:n,b:s}=t,i=r.sqr(e),o=r.mul(i,e);return r.add(r.add(o,r.mul(e,n)),s)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function f(e){return"bigint"==typeof e&&c<e&&e<t.n}function p(e){if(!f(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){let r;let{allowedPrivateKeyLengths:o,nByteLength:a,wrapPrivateKey:l,n:c}=t;if(o&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=s.bytesToHex(e)),"string"!=typeof e||!o.includes(e.length))throw Error("Invalid key");e=e.padStart(2*a,"0")}try{r="bigint"==typeof e?e:s.bytesToNumberBE((0,i.ensureBytes)("private key",e,a))}catch(t){throw Error(`private key must be ${a} bytes, hex or bigint, not ${typeof e}`)}return l&&(r=n.mod(r,c)),p(r),r}let m=new Map;function y(e){if(!(e instanceof b))throw Error("ProjectivePoint expected")}class b{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof b)throw Error("projective point not allowed");let s=e=>r.eql(e,r.ZERO);return s(t)&&s(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)}static fromHex(e){let t=b.fromAffine(l((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let s=r.sqr(n),i=d(e);if(!r.eql(s,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:s}=this,{px:i,py:o,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(i,s)),c=r.eql(r.mul(n,a),r.mul(o,s));return l&&c}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,s=r.mul(n,h),{px:i,py:o,pz:a}=this,l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),p=r.mul(a,a),g=r.mul(i,o);return g=r.add(g,g),u=r.mul(i,a),u=r.add(u,u),l=r.mul(e,u),c=r.mul(s,p),c=r.add(l,c),l=r.sub(f,c),c=r.add(f,c),c=r.mul(l,c),l=r.mul(g,l),u=r.mul(s,u),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,g),c=r.add(c,d),p=r.mul(
1o,a),p=r.add(p,p),d=r.mul(p,g),l=r.sub(l,d),u=r.mul(p,f),u=r.add(u,u),new b(l,c,u=r.add(u,u))}add(e){y(e);let{px:n,py:s,pz:i}=this,{px:o,py:a,pz:l}=e,c=r.ZERO,u=r.ZERO,d=r.ZERO,f=t.a,p=r.mul(t.b,h),g=r.mul(n,o),m=r.mul(s,a),A=r.mul(i,l),w=r.add(n,s),v=r.add(o,a);w=r.mul(w,v),v=r.add(g,m),w=r.sub(w,v),v=r.add(n,i);let E=r.add(o,l);return v=r.mul(v,E),E=r.add(g,A),v=r.sub(v,E),E=r.add(s,i),c=r.add(a,l),E=r.mul(E,c),c=r.add(m,A),E=r.sub(E,c),d=r.mul(f,v),c=r.mul(p,A),d=r.add(c,d),c=r.sub(m,d),d=r.add(m,d),u=r.mul(c,d),m=r.add(g,g),m=r.add(m,g),A=r.mul(f,A),v=r.mul(p,v),m=r.add(m,A),A=r.sub(g,A),A=r.mul(f,A),v=r.add(v,A),g=r.mul(m,v),u=r.add(u,g),g=r.mul(E,v),c=r.mul(w,c),c=r.sub(c,g),g=r.mul(w,m),d=r.mul(E,d),new b(c,u,d=r.add(d,g))}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)})}multiplyUnsafe(e){let n=b.ZERO;if(e===c)return n;if(p(e),e===u)return this;let{endo:s}=t;if(!s)return w.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:a,k2:l}=s.splitScalar(e),d=n,h=n,f=this;for(;o>c||l>c;)o&u&&(d=d.add(f)),l&u&&(h=h.add(f)),f=f.double(),o>>=u,l>>=u;return i&&(d=d.negate()),a&&(h=h.negate()),h=new b(r.mul(h.px,s.beta),h.py,h.pz),d.add(h)}multiply(e){let n,s;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:o,k2neg:a,k2:l}=i.splitScalar(e),{p:c,f:u}=this.wNAF(o),{p:d,f:h}=this.wNAF(l);c=w.constTimeNegate(t,c),d=w.constTimeNegate(a,d),d=new b(r.mul(d.px,i.beta),d.py,d.pz),n=c.add(d),s=u.add(h)}else{let{p:t,f:r}=this.wNAF(e);n=t,s=r}return b.normalizeZ([n,s])[0]}multiplyAndAddUnsafe(e,t,r){let n=b.BASE,s=(e,t)=>t!==c&&t!==u&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=s(this,t).add(s(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:s}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(s));let o=r.mul(t,e),a=r.mul(n,e),l=r.mul(s,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(b,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===u?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),a(b,this,e)}toHex(e=!0){return s.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);let A=t.nBitLength,w=(0,o.wNAF)(b,t.endo?Math.ceil(A/2):A);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:f}}function g(e,t){let r=e.ORDER,n=c;for(let e=r-u;e%d===c;e/=d)n+=u;let s=n,i=d<<s-u-u,o=i*d,a=(r-u)/o,l=(a-u)/d,p=o-u,g=e.pow(t,a),m=e.pow(t,(a+u)/d),y=(t,r)=>{let n=g,o=e.pow(r,p),a=e.sqr(o);a=e.mul(a,r);let c=e.mul(t,a);c=e.pow(c,l),c=e.mul(c,o),o=e.mul(c,r),a=e.mul(c,t);let h=e.mul(a,o);c=e.pow(h,i);let f=e.eql(c,e.ONE);o=e.mul(a,m),c=e.mul(h,n),a=e.cmov(o,a,f),h=e.cmov(c,h,f);for(let t=s;t>u;t--){let r=t-d;r=d<<r-u;let s=e.pow(h,r),i=e.eql(s,e.ONE);o=e.mul(a,n),n=e.mul(n,n),s=e.mul(h,n),a=e.cmov(o,a,i),h=e.cmov(s,h,i)}return{isValid:f,value:a}};if(e.ORDER%f===h){let r=(e.ORDER-h)/f,n=e.sqrt(e.neg(t));y=(t,s)=>{let i=e.sqr(s),o=e.mul(t,s);i=e.mul(i,o);let a=e.pow(i,r);a=e.mul(a,o);let l=e.mul(a,n),c=e.mul(e.sqr(a),s),u=e.eql(c,t),d=e.cmov(l,a,u);return{isValid:u,value:d}}}return y}t.weierstrassPoints=p,t.weierstrass=function(e){let r=function(e){let t=(0,o.validateBasic)(e);return s.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:a,n:l}=r,d=a.BYTES+1,h=2*a.BYTES+1;function f(e){return n.mod(e,l)}function g(e){return n.invert(e,l)}let{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:A}=p({...r,toBytes(e,t,r){let n=t.toAffine(),i=a.toBytes(n.x),o=s.concatBytes;return r?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,a.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===d&&(2===r||3===r)){let e=s.bytesToNumberBE(n);if(!(c<e&&e<a.ORDER))throw Error("Point is not on curve");let t=b(e),i=a.sqrt(t);return(1&r)==1!=((i&u)===u)&&(i=a.neg(i)),{x:e,y:i}}if(t===h&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw Error(`Point of length ${t}
1 was invalid. Expected ${d} compressed bytes or ${h} uncompressed bytes`)}}),w=e=>s.bytesToHex(s.numberToBytesBE(e,r.nByteLength)),v=(e,t,r)=>s.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return new E(v(e=(0,i.ensureBytes)("compactSignature",e,2*t),0,t),v(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new E(r,n)}assertValidity(){if(!A(this.r))throw Error("r must be 0 < r < CURVE.n");if(!A(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:s}=this,o=x((0,i.ensureBytes)("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let l=2===s||3===s?t+r.n:t;if(l>=a.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&s)==0?"02":"03",u=m.fromHex(c+w(l)),d=g(l),h=f(-o*d),p=f(n*d),y=m.BASE.multiplyAndAddUnsafe(u,h,p);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>l>>u}normalizeS(){return this.hasHighS()?new E(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return s.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return s.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function P(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===h:r?n===2*d||n===2*h:e instanceof m}let k=r.bits2int||function(e){let t=s.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},x=r.bits2int_modN||function(e){return f(k(e))},C=s.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(c<=e&&e<C))throw Error(`bigint expected < 2^${r.nBitLength}`);return s.numberToBytesBE(e,r.nByteLength)}let O={lowS:r.lowS,prehash:!1},S={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(P(e))throw Error("first arg must be private key");if(!P(t))throw Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t,n=O){let{seed:o,k2sig:d}=function(e,t,n=O){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:d}=r,{lowS:h,prehash:p,extraEntropy:b}=n;null==h&&(h=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));let w=x(e),v=y(t),P=[T(v),T(w)];if(null!=b){let e=!0===b?d(a.BYTES):b;P.push((0,i.ensureBytes)("extraEntropy",e))}return{seed:s.concatBytes(...P),k2sig:function(e){let t=k(e);if(!A(t))return;let r=g(t),n=m.BASE.multiply(t).toAffine(),s=f(n.x);if(s===c)return;let i=f(r*f(w+s*v));if(i===c)return;let o=(n.x===s?0:2)|Number(n.y&u),a=i;if(h&&i>l>>u)a=i>l>>u?f(-i):i,o^=1;return new E(s,a,o)}}}(e,t,n);return s.createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac)(o,d)},verify:function(e,n,s,o=S){let a,l;if(n=(0,i.ensureBytes)("msgHash",n),s=(0,i.ensureBytes)("publicKey",s),"strict"in o)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:u}=o;try{if("string"==typeof e||e instanceof Uint8Array)try{l=E.fromDER(e)}catch(r){if(!(r instanceof t.DER.Err))throw r;l=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;l=new E(t,r)}else throw Error("PARSE");a=m.fromHex(s)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&l.hasHighS())return!1;u&&(n=r.hash(n));let{r:d,s:h}=l,p=x(n),y=g(h),b=f(p*y),A=f(d*y),w=m.BASE.multiplyAndAddUnsafe(a,b,A)?.toAffine();return!!w&&f(w.x)===d},ProjectivePoint:m,Signature:E,utils:{isValidPrivateKey(e){try{return y(e),!0}catch(e){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invali
1d opts");let r=g(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let s,i,o,a,l,c,u,d;s=e.sqr(n),s=e.mul(s,t.Z),i=e.sqr(s),i=e.add(i,s),o=e.add(i,e.ONE),o=e.mul(o,t.B),a=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),a=e.mul(a,t.A),i=e.sqr(o),c=e.sqr(a),l=e.mul(c,t.A),i=e.add(i,l),i=e.mul(i,o),c=e.mul(c,a),l=e.mul(c,t.B),i=e.add(i,l),u=e.mul(s,o);let{isValid:h,value:f}=r(i,c);d=e.mul(s,n),d=e.mul(d,f),u=e.cmov(u,o,h),d=e.cmov(d,f,h);let p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),{x:u=e.div(u,a),y:d}}}},10914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(43639),s=r(82887),i=r(1568),o=r(57337),a=r(56356),l=r(83686),c=r(90461),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),f=BigInt(2),p=(e,t)=>(e+t/f)/t;function g(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),s=BigInt(22),o=BigInt(23),a=BigInt(44),l=BigInt(88),c=e*e*e%u,d=c*c*e%u,h=(0,i.pow2)(d,t,u)*d%u,p=(0,i.pow2)(h,t,u)*d%u,g=(0,i.pow2)(p,f,u)*c%u,y=(0,i.pow2)(g,n,u)*g%u,b=(0,i.pow2)(y,s,u)*y%u,A=(0,i.pow2)(b,a,u)*b%u,w=(0,i.pow2)(A,l,u)*A%u,v=(0,i.pow2)(w,a,u)*b%u,E=(0,i.pow2)(v,t,u)*d%u,P=(0,i.pow2)(E,o,u)*y%u,k=(0,i.pow2)(P,r,u)*c%u,x=(0,i.pow2)(k,f,u);if(!m.eql(m.sqr(x),e))throw Error("Cannot find square root");return x}let m=(0,i.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=BigInt("0x100000000000000000000000000000000"),o=p(t*e,d),a=p(-r*e,d),l=(0,i.mod)(e-o*t-a*n,d),c=(0,i.mod)(-o*r-a*t,d),u=l>s,f=c>s;if(u&&(l=d-l),f&&(c=d-c),l>s||c>s)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:l,k2neg:f,k2:c}}}},n.sha256);let y=BigInt(0),b=e=>"bigint"==typeof e&&y<e&&e<u,A=e=>"bigint"==typeof e&&y<e&&e<d,w={};function v(e,...t){let r=w[e];if(void 0===r){let t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,a.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,a.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),P=e=>(0,a.numberToBytesBE)(e,32),k=e=>(0,i.mod)(e,u),x=e=>(0,i.mod)(e,d),C=t.secp256k1.ProjectivePoint,T=(e,t,r)=>C.BASE.multiplyAndAddUnsafe(e,t,r);function O(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=C.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:x(-r),bytes:E(n)}}function S(e){if(!b(e))throw Error("bad x: need 0 < x < p");let t=k(e*e),r=g(k(t*e+BigInt(7)));r%f!==y&&(r=k(-r));let n=new C(e,r,h);return n.assertValidity(),n}function B(...e){return x((0,a.bytesToNumberBE)(v("BIP0340/challenge",...e)))}function R(e,t,r){let n=(0,a.ensureBytes)("signature",e,64),s=(0,a.ensureBytes)("message",t),i=(0,a.ensureBytes)("publicKey",r,32);try{let e=S((0,a.bytesToNumberBE)(i)),t=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;let r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!A(r))return!1;let o=B(P(t),E(e),s),l=T(e,r,x(-o));if(!l||!l.hasEvenY()||l.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return O(e).bytes},sign:function(e,t,r=(0,s.randomBytes)(32)){let n=(0,a.ensureBytes)("message",e),{bytes:i,scalar:o}=O(t),l=(0,a.ensureBytes)("auxRand",r,32),c=P(o^(0,a.bytesToNumberBE)(v("BIP0340/aux",l))),u=v("BIP0340/nonce",c,i,n),d=x((0,a.bytesToNumberBE)(u));if(d===y)throw Error("sign failed: k is zero");let{bytes:h,scalar:f}=O(d),p=B(h,i,n),g=new Uint8Array(64);if(g.set(h,0),g.set(P(x(f+p*o)),32),!R(g,n,i))throw Error("sign: Invalid signature produced");return g},verify:R,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:S,pointToBytes:E,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:v,mod:i.mod}};let N=(0,l.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a4
113deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),M=(0,o.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}),I=(0,l.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=M(m.create(e[0]));return N(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});t.hashToCurve=I.hashToCurve,t.encodeToCurve=I.encodeToCurve},29233:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function s(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function a(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=s,t.hash=i,t.exists=o,t.output=a,t.default={number:r,bool:n,bytes:s,hash:i,exists:o,output:a}},80530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;let n=r(29233),s=r(82887);class i extends s.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,s.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,o=(e=(0,s.toBytes)(e)).length;for(let n=0;n<o;){let a=Math.min(i-this.pos,o-n);if(a===i){let t=(0,s.createView)(e);for(;i<=o-n;n+=i)this.process(t,n);continue}r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.exists)(this),(0,n.output)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>i-a&&(this.process(r,0),a=0);for(let e=a;e<i;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),l=n?4:0,c=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+c,a,n)}(r,i-8,BigInt(8*this.length),o),this.process(r,0);let l=(0,s.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)l.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:s,destroyed:i,pos:o}=this;return e.length=n,e.pos=o,e.finished=s,e.destroyed=i,n%t&&e.buffer.set(r),e}}t.SHA2=i},29693:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(4294967296-1),n=BigInt(32);function s(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=s(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}t.fromBig=s,t.split=i;let o=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=o;let a=(e,t,r)=>e>>>r;t.shrSH=a;let l=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=l;let c=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=c;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let h=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=h;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;let y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;let b=(e,t,r)=>e<<r-32|t>>>64-r;function A(e,t,r,n){let s=(t>>>0)+(n>>>0);return{h:e+r+(s/4294967296|0)|0,l:0|s}}t.rotlBL=b,t.add=A;let w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;let v=(e,t,r,n)=>t+r+n+(e/4294967296|0)|0;t.add3H=v;let E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;let P=(e,t,r,n,s)=>t+r+n+s+(e/4294967296|0)|0;t.add4H=P;let k=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=k;let x=(e,t,r,n,s,i)=>t+r+n+s+i+(e/4294967296|0)|0;t.add5H=x,t.default={fromBig:s,split:i,toBig:o,shrSH:a,shrSL:l,rotrSH:c,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:A,add3L:w,add3H:v,add4L:E,add4H:P,add5H:x,add5L:k}},60712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},86358:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(29233),s=r(82887);class i extends s.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);let r=(0,s.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,n.exists)(this),this.iHash.update(e),this}digestInto(e){(0,n.exists)(this),(0,n.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:s,blockLen:i,outputLen:o}=this;return e.finished=n,e.destroyed=s,e.blockLen=i,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},94913:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;let n=r(29233),s=r(86358),i=r(82887);function o(e,t,r,o){(0,n.hash)(e);let{c:a,dkLen:l,asyncTick:c}=(0,i.checkOpts)({dkLen:32,asyncTick:10},o);if((0,n.number)(a),(0,n.number)(l),(0,n.number)(c),a<1)throw Error("PBKDF2: iterations (c) should be >= 1");let u=(0,i.toBytes)(t),d=(0,i.toBytes)(r),h=new Uint8Array(l),f=s.hmac.create(e,u),p=f._cloneInto().update(d);return{c:a,dkLen:l,asyncTick:c,DK:h,PRF:f,PRFSalt:p}}function a(e,t,r,n,s){return e.destroy(),t.destroy(),n&&n.destroy(),s.fill(0),r}async function l(e,t,r,n){let s;let{c:l,dkLen:c,asyncTick:u,DK:d,PRF:h,PRFSalt:f}=o(e,t,r,n),p=new Uint8Array(4),g=(0,i.createView)(p),m=new Uint8Array(h.outputLen);for(let e=1,t=0;t<c;e++,t+=h.outputLen){let r=d.subarray(t,t+h.outputLen);g.setInt32(0,e,!1),(s=f._cloneInto(s)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await (0,i.asyncLoop)(l-1,u,()=>{h._cloneInto(s).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]})}return a(h,f,d,s,m)}t.pbkdf2=function(e,t,r,n){let s;let{c:l,dkLen:c,DK:u,PRF:d,PRFSalt:h}=o(e,t,r,n),f=new Uint8Array(4),p=(0,i.createView)(f),g=new Uint8Array(d.outputLen);for(let e=1,t=0;t<c;e++,t+=d.outputLen){let r=u.subarray(t,t+d.outputLen);p.setInt32(0,e,!1),(s=h._cloneInto(s)).update(f).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<l;e++){d._cloneInto(s).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return a(d,h,u,s,g)}
1,t.pbkdf2Async=l},9782:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;let n=r(80530),s=r(82887),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},(e,t)=>t),a=o.map(e=>(9*e+5)%16),l=[o],c=[a];for(let e=0;e<4;e++)for(let t of[l,c])t.push(t[e].map(e=>i[e]));let u=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),d=l.map((e,t)=>e.map(e=>u[t][e])),h=c.map((e,t)=>e.map(e=>u[t][e])),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),g=(e,t)=>e<<t|e>>>32-t;function m(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let y=new Uint32Array(16);class b extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:e,h1:t,h2:r,h3:n,h4:s}=this;return[e,t,r,n,s]}set(e,t,r,n,s){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)y[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,s=0|this.h1,i=s,o=0|this.h2,a=o,u=0|this.h3,b=u,A=0|this.h4,w=A;for(let e=0;e<5;e++){let t=4-e,v=f[e],E=p[e],P=l[e],k=c[e],x=d[e],C=h[e];for(let t=0;t<16;t++){let n=g(r+m(e,s,o,u)+y[P[t]]+v,x[t])+A|0;r=A,A=u,u=0|g(o,10),o=s,s=n}for(let e=0;e<16;e++){let r=g(n+m(t,i,a,b)+y[k[e]]+E,C[e])+w|0;n=w,w=b,b=0|g(a,10),a=i,i=r}}this.set(this.h1+o+b|0,this.h2+u+w|0,this.h3+A+n|0,this.h4+r+i|0,this.h0+s+a|0)}roundClean(){y.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=b,t.ripemd160=(0,s.wrapConstructor)(()=>new b)},15756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;let n=r(29233),s=r(43639),i=r(94913),o=r(82887),a=(e,t)=>e<<t|e>>>32-t;function l(e,t,r,n,s,i){let o=e[t++]^r[n++],l=e[t++]^r[n++],c=e[t++]^r[n++],u=e[t++]^r[n++],d=e[t++]^r[n++],h=e[t++]^r[n++],f=e[t++]^r[n++],p=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],y=e[t++]^r[n++],b=e[t++]^r[n++],A=e[t++]^r[n++],w=e[t++]^r[n++],v=e[t++]^r[n++],E=e[t++]^r[n++],P=o,k=l,x=c,C=u,T=d,O=h,S=f,B=p,R=g,N=m,M=y,I=b,L=A,D=w,F=v,U=E;for(let e=0;e<8;e+=2)T^=a(P+L|0,7),R^=a(T+P|0,9),L^=a(R+T|0,13),P^=a(L+R|0,18),N^=a(O+k|0,7),D^=a(N+O|0,9),k^=a(D+N|0,13),O^=a(k+D|0,18),F^=a(M+S|0,7),x^=a(F+M|0,9),S^=a(x+F|0,13),M^=a(S+x|0,18),C^=a(U+I|0,7),B^=a(C+U|0,9),I^=a(B+C|0,13),U^=a(I+B|0,18),k^=a(P+C|0,7),x^=a(k+P|0,9),C^=a(x+k|0,13),P^=a(C+x|0,18),S^=a(O+T|0,7),B^=a(S+O|0,9),T^=a(B+S|0,13),O^=a(T+B|0,18),I^=a(M+N|0,7),R^=a(I+M|0,9),N^=a(R+I|0,13),M^=a(N+R|0,18),L^=a(U+F|0,7),D^=a(L+U|0,9),F^=a(D+L|0,13),U^=a(F+D|0,18);s[i++]=o+P|0,s[i++]=l+k|0,s[i++]=c+x|0,s[i++]=u+C|0,s[i++]=d+T|0,s[i++]=h+O|0,s[i++]=f+S|0,s[i++]=p+B|0,s[i++]=g+R|0,s[i++]=m+N|0,s[i++]=y+M|0,s[i++]=b+I|0,s[i++]=A+L|0,s[i++]=w+D|0,s[i++]=v+F|0,s[i++]=E+U|0}function c(e,t,r,n,s){let i=n+0,o=n+16*s;for(let n=0;n<16;n++)r[o+n]=e[t+(2*s-1)*16+n];for(let n=0;n<s;n++,i+=16,t+=16)l(r,o,e,t,r,i),n>0&&(o+=16),l(r,i,e,t+=16,r,o)}function u(e,t,r){let{N:a,r:l,p:c,dkLen:u,asyncTick:d,maxmem:h,onProgress:f}=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r);if((0,n.number)(a),(0,n.number)(l),(0,n.number)(c),(0,n.number)(u),(0,n.number)(d),(0,n.number)(h),void 0!==f&&"function"!=typeof f)throw Error("progressCb should be function");let p=128*l,g=p/4;if(a<=1||(a&a-1)!=0||a>=2**(p/8)||a>4294967296)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(c<0||c>(4294967296-1)*32/p)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>(4294967296-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let m=p*(a+c);if(m>h)throw Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${h} (maxmem)`);let y=(0,i.pbkdf2)(s.sha256,e,t,{c:1,dkLen:p*c}),b=(0,o.u32)(y),A=(0,o.u32)(new Uint8Array(p*a)),w=(0,o.u32)(new Uint8Array(p)),v=()=>{};if(f){let e=2*a*c,t=Math.max(Math.floor(e/1e4),1),r=0;v=()=>{r++,f&&(!(r%t)||r===e)&&f(r/e)}}return{N:a,r:l,p:c,dkLen:u,blockSize32:g,V:A,B32:b,B:y,tmp:w,blockMixCb:v,asyncTick:d}}function d(e,t,r,n,o){let a=(0,i.pbkdf2)(s.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),o.fill(0),a}async function h(e,t,r){let{N:n,r:s,p:i,dkLen:a,blockSize32:l,V:h,B32:f,B:p,tmp:g,blockMixCb:m,asyncTick:y}=u(e,t,r);for(let e=0;e<i;e++){let t=l*e;for(let e=0;e<l;e++)h[e]=f[t+e];let r=0;await (0,o.asyncLoop)(n-1,y,()=>{c(h,r,h,r+=l,s),m()}),c(h,(n-1)*l,f,t,s),m(),await (0,o.asyncLoop)(n,y,()=>{let e=f[t+l-16]%n;for(let r=0;r<l;r++)g[r]=f[t+r]^h[e*l+r];c(g,0,f,t,s),m()})}return d(e,a,p,h,g)}t.scrypt=function(e,t,r){let{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:l,B32:h,B:f,tmp:p,blockMixCb:g}=u(e,t,r);for(let e=0;e<i;e++){let t=a*e;for(let e=0;e<a;e++)l[e]=h[t+e];for(let e=0,t=0;e<n-1;e++)c(l,t,l,t+=a,s),g();c(l,(n-1)*a,h,t,s),g();for(let e=0;e<n;e++){let e=h[t+a-16]%n;for(let r=0;r<a;r++)p[r]=h[t+r]^l[e*a+r];c(p,0,h,t,s),g()}}return d(e,o,f,l,p)},t.scryptAsync=h},43639:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(80530),s=r(82887),i=(e,t,r)=>e&t^~e&r,o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([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]),l=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class u extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|l[0],this.B=0|l[1],this.C=0|l[2],this.D=0|l[3],this.E=0|l[4],this.F=0|l[5],this.G=0|l[6],this.H=0|l[7]}get(){let{A:e,B:t,C:r,D:n,E:s,F:i,G:o,H:a}=this;return[e,t,r,n,s,i,o,a]}set(e,t,r,n,s,i,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|s,this.F=0|i,this.G=0|o,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,i=(0,s.rotr)(r,17)^(0,s.rotr)(r,19)^r>>>10;c[e]=i+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:l,D:u,E:d,F:h,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,s.rotr)(d,6)^(0,s.rotr)(d,11)^(0,s.rotr)(d,25))+i(d,h,f)+a[e]+c[e]|0,g=((0,s.rotr)(r,2)^(0,s.rotr)(r,13)^(0,s.rotr)(r,22))+o(r,n,l)|0;p=f,f=h,h=d,d=u+t|0,u=l,l=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,l=l+this.C|0,u=u+this.D|0,d=d+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,n,l,u,d,h,f,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends u{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,s.wrapConstructor)(()=>new u),t.sha224=(0,s.wrapConstructor)(()=>new d)},66463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(29233),s=r(29693),i=r(82887),[o,a,l]=[[],[],[]],c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let s=c;for(let e=0;e<7;e++)(t=(t<<u^(t>>h)*p)%f)&d&&(s^=u<<(u<<BigInt(e))-u);l.push(s)}let[g,m]=(0,s.split)(l,!0),y=(e,t,r)=>r>32?(0,s.rotlBH)(e,t,r):(0,s.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,s.rotlBL)(e,t,r):(0,s.rotlSL)(e,t,r);function A(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=y(i,o,1)^r[n],l=b(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=a[r],i=y(t,s,n),l=b(t,s,n),c=o[r];t=e[c],s=e[c+1],e[c]=i,e[c+1]=l}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=A;class w extends i.Hash{constructor(e,t,r,s=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){A(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){let i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new w(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=w;let v=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=v(6,144,28),t.sha3_256=v(6,136,32),t.sha3_384=v(6,104,48),t.sha3_512=v(6,72,64),t.keccak_224=v(1,144,28),t.keccak_256=v(1,136,32),t.keccak_384=v(1,104,48),t.keccak_512=v(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},12502:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;let n=r(80530),s=r(29693),i=r(82887),[o,a]=s.default.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","0xf40e3585
15771202a","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(e=>BigInt(e))),l=new Uint32Array(80),c=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:s,Cl:i,Dh:o,Dl:a,Eh:l,El:c,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,r,n,s,i,o,a,l,c,u,d,h,f,p,g]}set(e,t,r,n,s,i,o,a,l,c,u,d,h,f,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|s,this.Cl=0|i,this.Dh=0|o,this.Dl=0|a,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t),c[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|l[e-15],r=0|c[e-15],n=s.default.rotrSH(t,r,1)^s.default.rotrSH(t,r,8)^s.default.shrSH(t,r,7),i=s.default.rotrSL(t,r,1)^s.default.rotrSL(t,r,8)^s.default.shrSL(t,r,7),o=0|l[e-2],a=0|c[e-2],u=s.default.rotrSH(o,a,19)^s.default.rotrBH(o,a,61)^s.default.shrSH(o,a,6),d=s.default.rotrSL(o,a,19)^s.default.rotrBL(o,a,61)^s.default.shrSL(o,a,6),h=s.default.add4L(i,d,c[e-7],c[e-16]),f=s.default.add4H(h,n,u,l[e-7],l[e-16]);l[e]=0|f,c[e]=0|h}let{Ah:r,Al:n,Bh:i,Bl:u,Ch:d,Cl:h,Dh:f,Dl:p,Eh:g,El:m,Fh:y,Fl:b,Gh:A,Gl:w,Hh:v,Hl:E}=this;for(let e=0;e<80;e++){let t=s.default.rotrSH(g,m,14)^s.default.rotrSH(g,m,18)^s.default.rotrBH(g,m,41),P=s.default.rotrSL(g,m,14)^s.default.rotrSL(g,m,18)^s.default.rotrBL(g,m,41),k=g&y^~g&A,x=m&b^~m&w,C=s.default.add5L(E,P,x,a[e],c[e]),T=s.default.add5H(C,v,t,k,o[e],l[e]),O=0|C,S=s.default.rotrSH(r,n,28)^s.default.rotrBH(r,n,34)^s.default.rotrBH(r,n,39),B=s.default.rotrSL(r,n,28)^s.default.rotrBL(r,n,34)^s.default.rotrBL(r,n,39),R=r&i^r&d^i&d,N=n&u^n&h^u&h;v=0|A,E=0|w,A=0|y,w=0|b,y=0|g,b=0|m,({h:g,l:m}=s.default.add(0|f,0|p,0|T,0|O)),f=0|d,p=0|h,d=0|i,h=0|u,i=0|r,u=0|n;let M=s.default.add3L(O,B,N);r=s.default.add3H(M,T,S,R),n=0|M}({h:r,l:n}=s.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:u}=s.default.add(0|this.Bh,0|this.Bl,0|i,0|u)),({h:d,l:h}=s.default.add(0|this.Ch,0|this.Cl,0|d,0|h)),({h:f,l:p}=s.default.add(0|this.Dh,0|this.Dl,0|f,0|p)),({h:g,l:m}=s.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:y,l:b}=s.default.add(0|this.Fh,0|this.Fl,0|y,0|b)),({h:A,l:w}=s.default.add(0|this.Gh,0|this.Gl,0|A,0|w)),({h:v,l:E}=s.default.add(0|this.Hh,0|this.Hl,0|v,0|E)),this.set(r,n,i,u,d,h,f,p,g,m,y,b,A,w,v,E)}roundClean(){l.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class h extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,i.wrapConstructor)(()=>new u),t.sha512_224=(0,i.wrapConstructor)(()=>new d),t.sha512_256=(0,i.wrapConstructor)(()=>new h),t.sha384=(0,i.wrapConstructor)(()=>new f)},82887:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esMo
1dule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(60712),s=e=>e instanceof Uint8Array;if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!s(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,s=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(s)||s<0)throw Error("Invalid byte sequence");r[t]=s}return r};let o=async()=>{};async function a(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-s;e>=0&&e<r||(await (0,t.nextTick)(),s+=e)}}function l(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function c(e){if("string"==typeof e&&(e=l(e)),!s(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}t.nextTick=o,t.asyncLoop=a,t.utf8ToBytes=l,t.toBytes=c,t.concatBytes=function(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!s(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t};class u{clone(){return this._cloneInto()}}t.Hash=u;let d={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==d.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},62039:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)}function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function i(e,...t){if(!s(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function l(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=t.isBytes=void 0,t.number=r,t.bool=n,t.isBytes=s,t.bytes=i,t.hash=o,t.exists=a,t.output=l,t.default={number:r,bool:n,bytes:i,hash:o,exists:a,output:l}},51879:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrB
1H=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(4294967296-1),n=BigInt(32);function s(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=s(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}t.fromBig=s,t.split=i;let o=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=o;let a=(e,t,r)=>e>>>r;t.shrSH=a;let l=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=l;let c=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=c;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let h=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=h;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;let y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;let b=(e,t,r)=>e<<r-32|t>>>64-r;function A(e,t,r,n){let s=(t>>>0)+(n>>>0);return{h:e+r+(s/4294967296|0)|0,l:0|s}}t.rotlBL=b,t.add=A;let w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;let v=(e,t,r,n)=>t+r+n+(e/4294967296|0)|0;t.add3H=v;let E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;let P=(e,t,r,n,s)=>t+r+n+s+(e/4294967296|0)|0;t.add4H=P;let k=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=k;let x=(e,t,r,n,s,i)=>t+r+n+s+i+(e/4294967296|0)|0;t.add5H=x,t.default={fromBig:s,split:i,toBig:o,shrSH:a,shrSL:l,rotrSH:c,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:A,add3L:w,add3H:v,add4L:E,add4H:P,add5H:x,add5L:k}},35542:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},13343:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(62039),s=r(51879),i=r(65209),o=[],a=[],l=[],c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let s=c;for(let e=0;e<7;e++)(t=(t<<u^(t>>h)*p)%f)&d&&(s^=u<<(u<<BigInt(e))-u);l.push(s)}let[g,m]=(0,s.split)(l,!0),y=(e,t,r)=>r>32?(0,s.rotlBH)(e,t,r):(0,s.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,s.rotlBL)(e,t,r):(0,s.rotlSL)(e,t,r);function A(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=y(i,o,1)^r[n],l=b(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=a[r],i=y(t,s,n),l=b(t,s,n),c=o[r];t=e[c],s=e[c+1],e[c]=i,e[c+1]=l}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=A;class w extends i.Hash{constructor(e,t,r,s=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),A(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){let i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new w(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=w;let v=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=v(6,144,28),t.sha3_256=v(6,136,32),t.sha3_384=v(6,104,48),t.sha3_512=v(6,72,64),t.keccak_224=v(1,144,28),t.keccak_256=v(1,136,32),t.keccak_384=v(1,104,48),t.keccak_512=v(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},65209:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esMo
1dule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;let n=r(35542),s=r(62039);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name},t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.rotl=(e,t)=>e<<t|e>>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let r=0;r<e.length;r++)e[r]=(0,t.byteSwap)(e[r])};let i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){(0,s.bytes)(e);let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t};let o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function a(e){return e>=o._0&&e<=o._9?e-o._0:e>=o._A&&e<=o._F?e-(o._A-10):e>=o._a&&e<=o._f?e-(o._a-10):void 0}t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,s=0;t<r;t++,s+=2){let r=a(e.charCodeAt(s)),i=a(e.charCodeAt(s+1));if(void 0===r||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[s]+e[s+1])+'" at index '+s);n[t]=16*r+i}return n};let l=async()=>{};async function c(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-s;e>=0&&e<r||(await (0,t.nextTick)(),s+=e)}}function u(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function d(e){return"string"==typeof e&&(e=u(e)),(0,s.bytes)(e),e}t.nextTick=l,t.asyncLoop=c,t.utf8ToBytes=u,t.toBytes=d,t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,s.bytes)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let s=e[t];r.set(s,n),n+=s.length}return r};class h{clone(){return this._cloneInto()}}t.Hash=h;let f={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==f.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},64281:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedMessage=void 0;let s=n(r(64177)),i=n(r(92040)),o=r(48840),a=`
2sign-in-with-ethereum =
3    [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF
4    address LF
5    LF
6    [ statement LF ]
7    LF
8    %s"URI: " URI LF
9    %s"Version: " version LF
10    %s"Chain ID: " chain-id LF
11    %s"Nonce: " nonce LF
12    %s"Issued At: " issued-at
13    [ LF %s"Expiration Time: " expiration-time ]
14    [ LF %s"Not Before: " not-before ]
15    [ LF %s"Request ID: " request-id ]
16    [ LF %s"Resources:"
17    resources ]
18
19domain = authority
20
21address = "0x" 40*40HEXDIG
22    ; Must also conform to captilization
23    ; checksum encoding specified in EIP-55
24    ; where applicable (EOAs).
25
26statement = 1*( reserved / unreserved / " " )
27    ; The purpose is to exclude LF (line breaks).
28
29version = "1"
30
31nonce = 8*( ALPHA / DIGIT )
32
33issued-at = date-time
34expiration-time = date-time
35not-before = date-time
36
37request-id = *pchar
38
39chain-id = 1*DIGIT
40    ; See EIP-155 for valid CHAIN_IDs.
41
42resources = *( LF resource )
43
44resource = "- " URI
45
46; ------------------------------------------------------------------------------
47; RFC 3986
48
49URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
50
51hier-part     = "//" authority path-abempty
52              / path-absolute
53              / path-rootless
54              / path-empty
55
56scheme        = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
57
58authority     = [ userinfo "@" ] host [ ":" port ]
59userinfo      = *( unreserved / pct-encoded / sub-delims / ":" )
60host          = IP-literal / IPv4address / reg-name
61port          = *DIGIT
62
63IP-literal    = "[" ( IPv6address / IPvFuture  ) "]"
64
65IPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
66
67IPv6address   =                            6( h16 ":" ) ls32
68              /                       "::" 5( h16 ":" ) ls32
69              / [               h16 ] "::" 4( h16 ":" ) ls32
70              / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
71              / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
72              / [ *3( h16 ":" ) h16 ] "::"    h16 ":"   ls32
73              / [ *4( h16 ":" ) h16 ] "::"              ls32
74              / [ *5( h16 ":" ) h16 ] "::"              h16
75              / [ *6( h16 ":" ) h16 ] "::"
76
77h16           = 1*4HEXDIG
78ls32          = ( h16 ":" h16 ) / IPv4address
79IPv4address   = dec-octet "." dec-octet "." dec-octet "." dec-octet
80dec-octet     = DIGIT                 ; 0-9
81                 / %x31-39 DIGIT         ; 10-99
82                 / "1" 2DIGIT            ; 100-199
83                 / "2" %x30-34 DIGIT     ; 200-249
84                 / "25" %x30-35          ; 250-255
85
86reg-name      = *( unreserved / pct-encoded / sub-delims )
87
88path-abempty  = *( "/" segment )
89path-absolute = "/" [ segment-nz *( "/" segment ) ]
90path-rootless = segment-nz *( "/" segment )
91path-empty    = 0pchar
92
93segment       = *pchar
94segment-nz    = 1*pchar
95
96pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
97
98query         = *( pchar / "/" / "?" )
99
100fragment      = *( pchar / "/" / "?" )
101
102pct-encoded   = "%" HEXDIG HEXDIG
103
104unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
105reserved      = gen-delims / sub-delims
106gen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"
107sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
108              / "*" / "+" / "," / ";" / "="
109
110; ------------------------------------------------------------------------------
111; RFC 3339
112
113date-fullyear   = 4DIGIT
114date-month      = 2DIGIT  ; 01-12
115date-mday       = 2DIGIT  ; 01-28, 01-29, 01-30, 01-31 based on
116                          ; month/year
117time-hour       = 2DIGIT  ; 00-23
118time-minute     = 2DIGIT  ; 00-59
119time-second     = 2DIGIT  ; 00-58, 00-59, 00-60 based on leap second
120                          ; rules
121time-secfrac    = "." 1*DIGIT
122time-numoffset  = ("+" / "-") time-hour ":" time-minute
123time-offset     = "Z" / time-numoffset
124
125partial-time    = time-hour ":" time-minute ":" time-second
126                  [time-secfrac]
127full-date       = date-fullyear "-" date-month "-" date-mday
128full-time       = partial-time time-offset
129
130date-time       = full-date "T" full-time
131
132; ------------------------------------------------------------------------------
133; RFC 5234
134
135ALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z
136LF             =  %x0A
137                  ; linefeed
138DIGIT          =  %x30-39
139                  ; 0-9
140HEXDIG         =  DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
141`;class l{static generateApi(){let e=new s.default(a);if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),Error("ABNF grammar has errors");return e.toObject()}}l.grammarObj=l.generateApi();class c{constructor(e){let t=new i.default.parser;t.ast=new i.default.ast;let r=i.default.ids;t.ast.callbacks.scheme=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&0===n&&(o.scheme=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.domain=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.domain=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.address=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.address=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.statement=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.statement=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.uri=function(e,t,n,s,o){let a=r.SEM_OK;return e!==r.SEM_PRE||o.uri||(o.uri=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.version=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.version=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks["chain-id"]=function(e,t,n,s,a){let l=r.SEM_OK;return e===r.SEM_PRE&&(a.chainId=(0,o.parseIntegerNumber)(i.default.utils.charsToString(t,n,s))),l},t.ast.callbacks.nonce=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.nonce=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks["issued-at"]=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.issuedAt=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks["expiration-time"]=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.expirationTime=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks["not-before"]=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.notBefore=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks["request-id"]=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.requestId=i.default.utils.charsToString(t,n,s)),a},t.ast.callbacks.resources=function(e,t,n,s,o){let a=r.SEM_OK;return e===r.SEM_PRE&&(o.resources=i.default.utils.charsToString(t,n,s).slice(3).split("\n- ")),a};let n=t.parse(l.grammarObj,"sign-in-with-ethereum",e);if(!n.success)throw Error(`Invalid message: ${JSON.stringify(n)}`);let s={};for(let[e,r]of(t.ast.translate(s),Object.entries(s)))this[e]=r;if(0===this.domain.length)throw Error("Domain cannot be empty.");if(!(0,o.isEIP55Address)(this.address))throw Error("Address not conformant to EIP-55.")}}t.ParsedMessage=c},27885:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);
141(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedMessage=void 0;let i=r(64281);Object.defineProperty(t,"ParsedMessage",{enumerable:!0,get:function(){return i.ParsedMessage}}),s(r(48840),t)},48840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntegerNumber=t.isEIP55Address=void 0;let n=r(13343),s=r(65209);t.isEIP55Address=e=>{if(42!=e.length)return!1;let t=`${e}`.toLowerCase().replace("0x",""),r=(0,s.bytesToHex)((0,n.keccak_256)(t)),i="0x";for(let e=0;e<t.length;e++)parseInt(r[e],16)>=8?i+=t[e].toUpperCase():i+=t[e];return e===i},t.parseIntegerNumber=e=>{let t=parseInt(e);if(isNaN(t)||t===1/0)throw Error("Invalid number.");return t}},64177:function(e,t,r){e.exports=function(e){let t;let{Buffer:n}=r(74279),s="api.js: ",i=this,o=r(92040),a=r(1531),l=r(95073),c=new(r(39905)),{attributes:u,showAttributes:d,showAttributeErrors:h,showRuleDependencies:f}=r(62256),p=r(99713),g=function(e,t,r){let n;let s=`<span class="${o.style.CLASS_CTRLCHAR}">`,i="</span>",a=`<span class="${o.style.CLASS_NOMATCH}">`,l="</span>",c="";for(;Array.isArray(e)&&0!==e.length;){if("number"!=typeof t)throw Error("abnfToHtml: beg must be type number");if(t>=e.length)break;n="number"!=typeof r||t+r>=e.length?e.length:t+r;let u=0;for(let r=t;r<n;r+=1){let t=e[r];if(t>=32&&t<=126)switch(1===u?(c+=i,u=0):2===u&&(c+=l,u=0),t){case 32:c+="&nbsp;";break;case 60:c+="&lt;";break;case 62:c+="&gt;";break;case 38:c+="&amp;";break;case 34:c+="&quot;";break;case 39:c+="&#039;";break;case 92:c+="&#092;";break;default:c+=String.fromCharCode(t)}else 9===t||10===t||13===t?(0===u?(c+=s,u=1):2===u&&(c+=l+s,u=1),9===t&&(c+="TAB"),10===t&&(c+="LF"),13===t&&(c+="CR")):(0===u?(c+=a,u=2):1===u&&(c+=i+a,u=2),c+=`\\x${o.utils.charToHex(t)}`)}2===u&&(c+=l),1===u&&(c+=i);break}return c},m=function(e,t,r){let n="";for(let s=t;s<t+r;s+=1){let t=e[s];if(t>=32&&t<=126)n+=String.fromCharCode(t);else switch(t){case 9:n+="\\t";break;case 10:n+="\\n";break;case 13:n+="\\r";break;default:n+="\\unknown"}}return n},y=function(e){let t="Annotated Input Grammar";return e.forEach(e=>{t+=`
142line no: ${e.lineNo} : char index: ${e.beginChar} : length: ${e.length} : abnf: ${m(i.chars,e.beginChar,e.length)}`}),t+="\n"},b=function(e){let t="";return t+=`<table class="${o.style.CLASS_GRAMMAR}">
143<caption>Annotated Input Grammar</caption>
144<tr><th>line<br>no.</th><th>first<br>char</th><th><br>length</th><th><br>text</th></tr>
145`,e.forEach(e=>{t+=`<tr><td>${e.lineNo}</td><td>${e.beginChar}</td><td>${e.length}</td><td>${g(i.chars,e.beginChar,e.length)}</td></tr>
146`}),t+="</table>\n"},A=function(e,t,r,n){let[s]=o,i="",a=`<span class="${s.CLASS_NOMATCH}">&raquo;</span>`;return i+=`<p><table class="${s.CLASS_GRAMMAR}">
147`,n&&"string"==typeof n&&(i+=`<caption>${n}</caption>
148`),i+="<tr><th>line<br>no.</th><th>line<br>offset</th><th>error<br>offset</th><th><br>text</th></tr>\n",e.forEach(e=>{let n,s,l,c,u;let d="",h="";0===t.length?(u=a,s=0):(l=(n=t[e.line]).beginChar,e.char>l&&(d=g(r,l,e.char-l)),(l=e.char)<(c=n.beginChar+n.length)&&(h=g(r,l,c-l)),u=d+a+h,s=e.char-n.beginChar,i+=`<tr><td>${e.line}</td><td>${n.beginChar}</td><td>${s}</td><td>${u}</td></tr>
149<tr><td colspan="3"></td><td>&uarr;:&nbsp;${o.utils.stringToAsciiHtml(e.msg)}</td></tr>
150`)}),i+="</table></p>\n"},w=function(e,t,r){let n,s,i,o;return n="",e.forEach(e=>{s=t[e.line],n+=`${s.lineNo}: ${s.beginChar}: ${e.char-s.beginChar}: `,i=s.beginChar,o=e.char-s.beginChar,n+=m(r,i,o)+" >> ",i=e.char,o=s.beginChar+s.length-e.char,n+=m(r,i,o)+"\n"+`${s.lineNo}: `+`${s.beginChar}: `+`${e.char-s.beginChar}: `+"error: "+e.msg+"\n"}),n},v=!1,E=!1,P=!1,k=!1,x=0;if(this.errors=[],n.isBuffer(e))this.chars=a.decode("BINARY",e);else if(Array.isArray(e))this.chars=e.slice();else if("string"==typeof e)this.chars=a.decode("STRING",e);else throw Error(`${s}input source is not a string, byte Buffer or character array`);this.sabnf=a.encode("STRING",this.chars),this.scan=function(e,t){this.lines=l(this.chars,this.errors,e,t),v=!0},this.parse=function(e,t,r){if(!v)throw Error(`${s}grammar not scanned`);c.syntax(this.chars,this.lines,this.errors,e,t,r),E=!0},this.translate=function(){if(!E)throw Error(`${s}grammar not scanned and parsed`);let e=c.semantic(this.chars,this.lines,this.errors);0===this.errors.length&&(this.rules=e.rules,this.udts=e.udts,t=e.lineMap,P=!0)},this.attributes=function(){if(!P)throw Error(`${s}grammar not scanned, parsed and translated`);return x=u(this.rules,this.udts,t,this.errors),k=!0,x},this.generate=function(e){if(this.lines=l(this.chars,this.errors,e),this.errors.length||(c.syntax(this.chars,this.lines,this.errors,e),this.errors.length))return;let r=c.semantic(this.chars,this.lines,this.errors);this.errors.length||(this.rules=r.rules,this.udts=r.udts,t=r.lineMap,x=u(this.rules,this.udts,t,this.errors),k=!0)},this.displayRules=function(e="index"){if(!P)throw Error(`${s}grammar not scanned, parsed and translated`);return p(this.rules,this.udts,e)},this.displayRuleDependencies=function(e="index"){if(!k)throw Error(`${s}no attributes - must be preceeded by call to attributes()`);return f(e)},this.displayAttributes=function(e="index"){if(!k)throw Error(`${s}no attributes - must be preceeded by call to attributes()`);return x&&h(e),d(e)},this.displayAttributeErrors=function(){if(!k)throw Error(`${s}no attributes - must be preceeded by call to attributes()`);return h()},this.toSource=function(e){if(!k)throw Error(`${s}can't generate parser source - must be preceeded by call to attributes()`);if(x)throw Error(`${s}can't generate parser source - attributes have ${x} errors`);return c.generateSource(this.chars,this.lines,this.rules,this.udts,e)},this.toObject=function(){if(!k)throw Error(`${s}can't generate parser source - must be preceeded by call to attributes()`);if(x)throw Error(`${s}can't generate parser source - attributes have ${x} errors`);return c.generateObject(this.sabnf,this.rules,this.udts)},this.errorsToAscii=function(){return w(this.errors,this.lines,this.chars)},this.errorsToHtml=function(e){return A(this.errors,this.lines,this.chars,e)},this.linesToAscii=function(){return y(this.lines)},this.linesToHtml=function(){return b(this.lines)}}},62256:function(e,t,r){e.exports=function(){let e=r(87404),{ruleAttributes:t,showAttributes:n,showAttributeErrors:s}=r(40204),{ruleDependencies:i,showRuleDependencies:o}=r(79095);class a{constructor(e,t){this.rules=e,this.udts=t,this.ruleCount=e.length,this.udtCount=t.length,this.startRule=0,this.dependenciesComplete=!1,this.attributesComplete=!1,this.isMutuallyRecursive=!1,this.ruleIndexes=this.indexArray(this.ruleCount),this.ruleAlphaIndexes=this.indexArray(this.ruleCount),this.ruleTypeIndexes=this.indexArray(this.ruleCount),this.udtIndexes=this.indexArray(this.udtCount),this.udtAlphaIndexes=this.indexArray(this.udtCount),this.attrsErrorCount=0,this.attrs=[],this.attrsErrors=[],this.attrsWorking=[],this.ruleDeps=[];for(let t=0;t<this.ruleCount;t+=1)this.attrs.push(this.attrGen(this.rules[t])),this.attrsWorking.push(this.attrGen(this.rules[t])),this.ruleDeps.push(this.rdGen(e[t],this.ruleCount,this.udtCount));this.compRulesAlpha=this.compRulesAlpha.bind(this),this.compUdtsAlpha=this.compUdtsAlpha.bind(this),this.compRulesType=this.compRulesType.bind(this),this.compRulesGroup=this.compRulesGroup.bind(this)}attrGen(e){return{left:!1,nested:!1,right:!1,empty:!1,finite:!1,cyclic:!1,leaf:!1,isOpen:!1,isComplete:!1,rule:e}}attrInit(e){e.left=!1,e.nested=!1,e.right=!1,e.empty=!1,e.finite=!1,e.cyclic=!1,e.leaf=!1,e.isOpen=!1,e.isComplete=!1}attrCopy(e,t){e.left=t.left,e.nested=t.nested,e.right=t.right,e.empty=t.empty,e.finite=t.finite,e.cyclic=t.cyclic,e.leaf=t.leaf,e.isOpen=t.
150isOpen,e.isComplete=t.isComplete,e.rule=t.rule}rdGen(t,r,n){return{rule:t,recursiveType:e.ATTR_N,groupNumber:-1,refersTo:this.falseArray(r),refersToUdt:this.falseArray(n),referencedBy:this.falseArray(r)}}typeToString(t){switch(t){case e.ATTR_N:return" N";case e.ATTR_R:return" R";case e.ATTR_MR:return"MR";default:return"UNKNOWN"}}falseArray(e){let t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(!1);return t}falsifyArray(e){for(let t=0;t<e.length;t+=1)e[t]=!1}indexArray(e){let t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(r);return t}compRulesAlpha(e,t){return this.rules[e].lower<this.rules[t].lower?-1:this.rules[e].lower>this.rules[t].lower?1:0}compUdtsAlpha(e,t){return this.udts[e].lower<this.udts[t].lower?-1:this.udts[e].lower>this.udts[t].lower?1:0}compRulesType(e,t){return this.ruleDeps[e].recursiveType<this.ruleDeps[t].recursiveType?-1:this.ruleDeps[e].recursiveType>this.ruleDeps[t].recursiveType?1:0}compRulesGroup(t,r){if(this.ruleDeps[t].recursiveType===e.ATTR_MR&&this.ruleDeps[r].recursiveType===e.ATTR_MR){if(this.ruleDeps[t].groupNumber<this.ruleDeps[r].groupNumber)return -1;if(this.ruleDeps[t].groupNumber>this.ruleDeps[r].groupNumber)return 1}return 0}}return{attributes:function(e=[],r=[],n=[],s=[]){let o=new a(e,r);return i(o),t(o),o.attrsErrorCount&&s.push({line:0,char:0,msg:`${o.attrsErrorCount} attribute errors`}),o.attrsErrorCount},showAttributes:n,showAttributeErrors:s,showRuleDependencies:o}}()},39905:function(e,t,r){e.exports=function(){let e=r(92040),t=e.ids,n=new(r(63081)),s=new(r(88367)),i=new(r(87310)),o=new e.parser;o.ast=new e.ast,o.callbacks=n.callbacks,o.ast.callbacks=s.callbacks;let a=function(e,t,r){if(t<0||t>=r)return -1;for(let r=0;r<e.length;r+=1)if(t>=e[r].beginChar&&t<e[r].beginChar+e[r].length)return r;return -1},l=function(e,t){let r=-1;if(t<e.length){for(let n=t;n<e.length;n+=1)if(null!==e[n]){r=e[n];break}}return r},c=function(e){e.forEach(e=>{let r=[],n=[],s=0;e.opcodes.forEach(e=>{e.type===t.ALT&&1===e.children.length?n.push(null):e.type===t.CAT&&1===e.children.length?n.push(null):e.type===t.REP&&1===e.min&&1===e.max?n.push(null):(n.push(s),r.push(e),s+=1)}),n.push(s),r.forEach(e=>{if(e.type===t.ALT||e.type===t.CAT)for(let t=0;t<e.children.length;t+=1)e.children[t]=l(n,e.children[t])}),e.opcodes=r})};this.syntax=function(e,t,r,n,s,l){if(l){if("traceObject"!==l.traceObject)throw TypeError("parser: trace argument is not a trace object");o.trace=l}let c={};c.errors=r,c.strict=!!n,c.lite=!!s,c.lines=t,c.findLine=a,c.charsLength=e.length,c.ruleCount=0,o.parse(i,"file",e,c).success||r.push({line:0,char:0,msg:"syntax analysis of input grammar failed"})},this.semantic=function(e,t,r){let n={};return(n.errors=r,n.lines=t,n.findLine=a,n.charsLength=e.length,o.ast.translate(n),r.length)?null:(c(n.rules),{rules:n.rules,udts:n.udts,lineMap:n.rulesLineMap})},this.generateSource=function(e,r,n,s,i){let o,a,l,c,u="",d=!1,h=!1;i&&(i.typescript?(d=!0,h=!1):i.lite&&(d=!1,h=!0));let f=0,p=1/0,g=0,m=[],y=[],b=0,A=0,w=0,v=0,E=0,P=0,k=0,x=0,C=0,T=0,O=0,S=0,B=0,R=0,N=0;return n.forEach(e=>{m.push(e.lower),f+=e.opcodes.length,e.opcodes.forEach(e=>{switch(e.type){case t.ALT:b+=1;break;case t.CAT:A+=1;break;case t.RNM:w+=1;break;case t.UDT:v+=1;break;case t.REP:E+=1;break;case t.AND:P+=1;break;case t.NOT:k+=1;break;case t.BKA:S+=1;break;case t.BKN:B+=1;break;case t.BKR:O+=1;break;case t.ABG:R+=1;break;case t.AEN:N+=1;break;case t.TLS:for(x+=1,o=0;o<e.string.length;o+=1)e.string[o]<p&&(p=e.string[o]),e.string[o]>g&&(g=e.string[o]);break;case t.TBS:for(C+=1,o=0;o<e.string.length;o+=1)e.string[o]<p&&(p=e.string[o]),e.string[o]>g&&(g=e.string[o]);break;case t.TRG:T+=1,e.min<p&&(p=e.min),e.max>g&&(g=e.max);break;default:throw Error("generateSource: unrecognized opcode")}})}),m.sort(),s.length>0&&(s.forEach(e=>{y.push(e.lower)}),y.sort()),u+="// copyright: Copyright (c) 2024 Lowell D. Thomas, all rights reserved<br>\n//   license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)<br>\n//\n// Generated by apg-js, Version 4.4.0 [apg-js](https://github.com/ldthomas/apg-js)\n",i?i.funcName?u+=`const ${i.funcName} = function grammar(){
151`:d?u+="export function grammar(){\n":h?u+="export default function grammar(){\n":u+=`module.exports = function grammar(){
152`:u+=`module.exports = function grammar(){
153`,u+=`  // \`\`\`
154  // SUMMARY
155  //      rules = ${n.length}
156  //       udts = ${s.length}
157  //    opcodes = ${f}
158  //        ---   ABNF original opcodes
159  //        ALT = ${b}
160  //        CAT = ${A}
161  //        REP = ${E}
162  //        RNM = ${w}
163  //        TLS = ${x}
164  //        TBS = ${C}
165  //        TRG = ${T}
166  //        ---   SABNF superset opcodes
167  //        UDT = ${v}
168  //        AND = ${P}
169  //        NOT = ${k}
170`,h||(u+=`  //        BKA = ${S}
171  //        BKN = ${B}
172  //        BKR = ${O}
173  //        ABG = ${R}
174  //        AEN = ${N}
175`),u+="  // characters = [",x+C+T===0?u+=" none defined ]":u+=`${p} - ${g}]`,v>0&&(u+=" + user defined"),u+="\n  // ```\n  /* OBJECT IDENTIFIER (for internal parser use) */\n  this.grammarObject = 'grammarObject';\n\n  /* RULES */\n  this.rules = [];\n",n.forEach((e,t)=>{let r="  this.rules[";r+=t+"] = { name: '"+e.name+"', lower: '"+e.lower+"', index: "+e.index+", isBkr: "+e.isBkr+" };\n",u+=r}),u+="\n  /* UDTS */\n  this.udts = [];\n",s.length>0&&s.forEach((e,t)=>{let r="  this.udts[";r+=t+"] = { name: '"+e.name+"', lower: '"+e.lower+"', index: "+e.index+", empty: "+e.empty+", isBkr: "+e.isBkr+" };\n",u+=r}),u+="\n  /* OPCODES */\n",n.forEach((e,r)=>{r>0&&(u+="\n"),u+=`  /* ${e.name} */
176  this.rules[${r}].opcodes = [];
177`,e.opcodes.forEach((e,i)=>{let o;switch(e.type){case t.ALT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, children: [${e.children.toString()}] };// ALT
178`;break;case t.CAT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, children: [${e.children.toString()}] };// CAT
179`;break;case t.RNM:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, index: ${e.index} };// RNM(${n[e.index].name})
180`;break;case t.BKR:e.index>
180=n.length?(a=s[e.index-n.length].name,l=s[e.index-n.length].lower):(a=n[e.index].name,l=n[e.index].lower),o="%i",e.bkrCase===t.BKR_MODE_CS&&(o="%s"),e.bkrMode===t.BKR_MODE_UM?o+="%u":o+="%p",a=o+a,u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, index: ${e.index}, lower: '${l}', bkrCase: ${e.bkrCase}, bkrMode: ${e.bkrMode} };// BKR(\\${a})
181`;break;case t.UDT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, empty: ${e.empty}, index: ${e.index} };// UDT(${s[e.index].name})
182`;break;case t.REP:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// REP
183`;break;case t.AND:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// AND
184`;break;case t.NOT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// NOT
185`;break;case t.ABG:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// ABG(%^)
186`;break;case t.AEN:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// AEN(%$)
187`;break;case t.BKA:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// BKA
188`;break;case t.BKN:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// BKN
189`;break;case t.TLS:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, string: [${e.string.toString()}] };// TLS
190`;break;case t.TBS:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, string: [${e.string.toString()}] };// TBS
191`;break;case t.TRG:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// TRG
192`;break;default:throw Error("parser.js: ~143: unrecognized opcode")}})}),u+='\n  // The `toString()` function will display the original grammar file(s) that produced these opcodes.\n  this.toString = function toString(){\n    let str = "";\n',r.forEach(t=>{let r=t.beginChar+t.length;c="",u+='    str += "';for(let n=t.beginChar;n<r;n+=1){switch(e[n]){case 9:c=" ";break;case 10:c="\\n";break;case 13:c="\\r";break;case 34:c='\\"';break;case 92:c="\\\\";break;default:c=String.fromCharCode(e[n])}u+=c}u+='";\n'}),u+="    return str;\n  }\n}\n"},this.generateObject=function(e,t,r){let n={},s=[],i=[],o=e.slice(0);return n.grammarObject="grammarObject",t.forEach(e=>{s.push(e.lower)}),s.sort(),r.length>0&&(r.forEach(e=>{i.push(e.lower)}),i.sort()),n.callbacks=[],s.forEach(e=>{n.callbacks[e]=!1}),r.length>0&&i.forEach(e=>{n.callbacks[e]=!1}),n.rules=t,n.udts=r,n.toString=function(){return o},n}}},40204:function(e,t,r){e.exports=function(){let e=r(87404),t=null;function n(e){return!e.left&&!e.nested&&!e.right&&!e.cyclic&&e.empty}function s(e){return!!e.left||!!e.nested||!!e.right||!!e.cyclic}let i=e=>e?"t":"f",o=e=>e?"e":"f",a=e=>e?"t":"e",l=(r,n,s,l)=>`${r}:${n}:`+(`${o(s.left)} ${i(s.nested)} ${i(s.right)} ${o(s.cyclic)} ${a(s.finite)} ${i(s.empty)}:${t.typeToString(l.recursiveType)}:`+(l.recursiveType===e.ATTR_MR?l.groupNumber:"-"))+`:${s.rule.name}
193`,c=()=>"LEGEND - t=true, f=false, e=error\nsequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n",u=e=>{let r=0,n=0,s=null,i=null,o="",{ruleIndexes:a}=t;
193for(97===e?a=t.ruleAlphaIndexes:116===e&&(a=t.ruleTypeIndexes),r=0;r<t.ruleCount;r+=1)n=a[r],s=t.attrs[n],i=t.ruleDeps[n],o+=l(r,n,s,i);return o};return{ruleAttributes:r=>{let i=0,o=0,a=(t=r).attrGen();for(i=0;i<t.ruleCount;i+=1){for(o=0;o<t.ruleCount;o+=1)t.attrInit(t.attrsWorking[o]);t.startRule=i,function t(r,i,o){let a=r.attrsWorking[i];a.isComplete?r.attrCopy(o,a):a.isOpen?i===r.startRule?i===r.startRule&&(o.left=!0,o.right=!0,o.cyclic=!0,o.leaf=!0):o.finite=!0:(a.isOpen=!0,function r(i,o,a,l){i.attrInit(l);let c=o[a];switch(c.type){case e.ALT:!function(e,t,n,s){let i=0,o=t[n],a=o.children.length,l=[];for(i=0;i<a;i+=1)l.push(e.attrGen());for(i=0;i<a;i+=1)r(e,t,o.children[i],l[i]);for(i=0,s.left=!1,s.right=!1,s.nested=!1,s.empty=!1,s.finite=!1,s.cyclic=!1;i<a;i+=1)l[i].left&&(s.left=!0),l[i].nested&&(s.nested=!0),l[i].right&&(s.right=!0),l[i].empty&&(s.empty=!0),l[i].finite&&(s.finite=!0),l[i].cyclic&&(s.cyclic=!0)}(i,o,a,l);break;case e.CAT:!function(e,t,i,o){let a=0,l=t[i],c=l.children.length,u=[];for(a=0;a<c;a+=1)u.push(e.attrGen());for(a=0;a<c;a+=1)r(e,t,l.children[a],u[a]);o.left=function(e,t){for(let r=0;r<t;r+=1){if(e[r].left)return!0;if(!e[r].empty)break}return!1}(u,c),o.right=function(e,t){for(let r=t-1;r>=0;r-=1){if(e[r].right)return!0;if(!e[r].empty)break}return!1}(u,c),o.nested=function(e,t){let r=0,i=0,o=0;for(r=0;r<t;r+=1)if(e[r].nested)return!0;for(r=0;r<t;r+=1)if(e[r].right&&!e[r].leaf){for(i=r+1;i<t;i+=1)if(!n(e[i]))return!0}for(r=t-1;r>=0;r-=1)if(e[r].left&&!e[r].leaf){for(i=r-1;i>=0;i-=1)if(!n(e[i]))return!0}for(r=0;r<t;r+=1)if(!e[r].empty&&!s(e[r])){for(i=r+1;i<t;i+=1)if(s(e[i])){for(o=i+1;o<t;o+=1)if(!e[o].empty&&!s(e[o]))return!0}}return!1}(u,c),o.empty=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].empty)return!1;return!0}(u,c),o.finite=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].finite)return!1;return!0}(u,c),o.cyclic=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].cyclic)return!1;return!0}(u,c)}(i,o,a,l);break;case e.REP:r(i,o,a+1,l),0===c.min&&(l.empty=!0,l.finite=!0);break;case e.RNM:t(i,o[a].index,l);break;case e.BKR:!function(e,r,n,s){let i=r[n];i.index>=e.ruleCount?(s.empty=e.udts[i.index-e.ruleCount].empty,s.finite=!0):(t(e,i.index,s),s.left=!1,s.nested=!1,s.right=!1,s.cyclic=!1)}(i,o,a,l);break;case e.AND:case e.NOT:case e.BKA:case e.BKN:r(i,o,a+1,l),l.empty=!0;break;case e.TLS:l.empty=!o[a].string.length,l.finite=!0,l.cyclic=!1;break;case e.TBS:case e.TRG:l.empty=!1,l.finite=!0,l.cyclic=!1;break;case e.UDT:l.empty=c.empty,l.finite=!0,l.cyclic=!1;break;case e.ABG:case e.AEN:l.empty=!0,l.finite=!0,l.cyclic=!1;break;default:throw Error(`unknown opcode type: ${c}`)}}(r,a.rule.opcodes,0,o),a.left=o.left,a.right=o.right,a.nested=o.nested,a.empty=o.empty,a.finite=o.finite,a.cyclic=o.cyclic,a.leaf=!1,a.isOpen=!1,a.isComplete=!0)}(t,i,a),t.attrCopy(t.attrs[i],t.attrsWorking[i])}t.attributesComplete=!0;let l=null;for(i=0;i<t.ruleCount;i+=1)if((l=t.attrs[i]).left||!l.finite||l.cyclic){let e=t.attrGen(l.rule);t.attrCopy(e,l),t.attrsErrors.push(e),t.attrsErrorCount+=1}},showAttributes:(e="index")=>{if(!t.attributesComplete)throw Error("rule-attributes.js:showAttributes: attributes not available");let r="",n="RULE ATTRIBUTES\n";return 97===e.charCodeAt(0)?r+="alphabetical by rule name\n"+n+c()+u(97):116===e.charCodeAt(0)?r+="ordered by rule type\n"+n+c()+u(116):r+="ordered by rule index\n"+n+c()+u(),r},showAttributeErrors:()=>{let e=null,r=null,n="";if(n+="RULE ATTRIBUTES WITH ERRORS\n"+c(),t.attrsErrorCount)for(let s=0;s<t.attrsErrorCount;s+=1)e=t.attrsErrors[s],r=t.ruleDeps[e.rule.index],n+=l(s,e.rule.index,e,r);else n+="<none>\n";return n}}}()},79095:function(e,t,r){e.exports=(()=>{let e=r(87404),t=null,n=(t,r,s,i)=>{let o=0,a=0,l=r[s];i[s]=!0;let c=l.rule.opcodes;for(o=0;o<c.length;o+=1){let s=c[o];if(s.type===e.RNM)for(l.refersTo[s.index]=!0,i[s.index]||n(t,r,s.index,i),a=0;a<t;a+=1)r[s.index].refersTo[a]&&(l.refersTo[a]=!0);else s.type===e.UDT?l.refersToUdt[s.index]=!0:s.type!==e.BKR||(s.index<t?(l.refersTo[s.index]=!0,i[s.index]||n(t,r,s.index,i)):l.refersToUdt[t-s.index]=!0)}},s=(e=null)=>{let r=0,n=0,s=0,i=0,o=t.ruleCount-1,a=t.udtCount-1,l="",c="",u=!1,d=null,{ruleIndexes:h}=t,{udtIndexes:f}=t;
193for(97===e?(h=t.ruleAlphaIndexes,f=t.udtAlphaIndexes):116===e&&(h=t.ruleTypeIndexes,f=t.udtAlphaIndexes),r=0;r<t.ruleCount;r+=1){for(d=t.ruleDeps[h[r]],c=`${h[r]}:${t.typeToString(d.recursiveType)}:`,t.isMutuallyRecursive&&(c+=(d.groupNumber>-1?d.groupNumber:"-")+":"),c+=" ",l+=`${c+t.rules[h[r]].name}
194`,u=!0,s=0,i=l.length,l+=c,n=0;n<t.ruleCount;n+=1)d.refersTo[h[n]]&&(u?(u=!1,l+="=> "+t.ruleDeps[h[n]].rule.name):l+=`, ${t.ruleDeps[h[n]].rule.name}`,s+=1),l.length-i>100&&n!==o&&(l+=`
195${c}=> `,i=l.length);if(t.udtCount)for(n=0;n<t.udtCount;n+=1)d.refersToUdt[f[n]]&&(u?(u=!1,l+="=> "+t.udts[f[n]].name):l+=`, ${t.udts[f[n]].name}`,s+=1),l.length-i>100&&n!==a&&(l+=`
196${c}=> `,i=l.length);for(0===s&&(l+="=> <none>\n"),!1===u&&(l+="\n"),u=!0,s=0,i=l.length,l+=c,n=0;n<t.ruleCount;n+=1)d.referencedBy[h[n]]&&(u?(u=!1,l+="<= "+t.ruleDeps[h[n]].rule.name):l+=`, ${t.ruleDeps[h[n]].rule.name}`,s+=1),l.length-i>100&&n!==o&&(l+=`
197${c}=> `,i=l.length);0===s&&(l+="<= <none>\n"),!1===u&&(l+="\n"),l+="\n"}return l};return{ruleDependencies:r=>{let s=0,i=0,o=0,a=null,l=null,c=!1;(t=r).dependenciesComplete=!1;
197let u=t.falseArray(t.ruleCount);for(s=0;s<t.ruleCount;s+=1)t.falsifyArray(u),n(t.ruleCount,t.ruleDeps,s,u);for(s=0;s<t.ruleCount;s+=1)for(i=0;i<t.ruleCount;i+=1)s!==i&&t.ruleDeps[i].refersTo[s]&&(t.ruleDeps[s].referencedBy[i]=!0);for(s=0;s<t.ruleCount;s+=1)t.ruleDeps[s].recursiveType=e.ATTR_N,t.ruleDeps[s].refersTo[s]&&(t.ruleDeps[s].recursiveType=e.ATTR_R);for(s=0,o=-1;s<t.ruleCount;s+=1)if((a=t.ruleDeps[s]).recursiveType===e.ATTR_R)for(i=0,c=!0;i<t.ruleCount;i+=1)s!==i&&(l=t.ruleDeps[i]).recursiveType===e.ATTR_R&&a.refersTo[i]&&l.refersTo[s]&&(c&&(o+=1,a.recursiveType=e.ATTR_MR,a.groupNumber=o,c=!1),l.recursiveType=e.ATTR_MR,l.groupNumber=o);t.isMutuallyRecursive=o>-1,t.ruleAlphaIndexes.sort(t.compRulesAlpha),t.ruleTypeIndexes.sort(t.compRulesAlpha),t.ruleTypeIndexes.sort(t.compRulesType),t.isMutuallyRecursive&&t.ruleTypeIndexes.sort(t.compRulesGroup),t.udtCount&&t.udtAlphaIndexes.sort(t.compUdtsAlpha),t.dependenciesComplete=!0},showRuleDependencies:(e="index")=>{let r="RULE DEPENDENCIES(index:type:[group number:])\n";return r+="=> refers to rule names\n<= referenced by rule names\n",t.dependenciesComplete&&(97===e.charCodeAt(0)?r+="alphabetical by rule name\n"+s(97):116===e.charCodeAt(0)?r+="ordered by rule type\n"+s(116):r+="ordered by rule index\n"+s(null)),r}}})()},87310:function(e){e.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"File",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"BlankLine",lower:"blankline",index:1,isBkr:!1},this.rules[2]={name:"Rule",lower:"rule",index:2,isBkr:!1},this.rules[3]={name:"RuleLookup",lower:"rulelookup",index:3,isBkr:!1},this.rules[4]={name:"RuleNameTest",lower:"rulenametest",index:4,isBkr:!1},this.rules[5]={name:"RuleName",lower:"rulename",index:5,isBkr:!1},this.rules[6]={name:"RuleNameError",lower:"rulenameerror",index:6,isBkr:!1},this.rules[7]={name:"DefinedAsTest",lower:"definedastest",index:7,isBkr:!1},this.rules[8]={name:"DefinedAsError",lower:"definedaserror",index:8,isBkr:!1},this.rules[9]={name:"DefinedAs",lower:"definedas",index:9,isBkr:!1},this.rules[10]={name:"Defined",lower:"defined",index:10,isBkr:!1},this.rules[11]={name:"IncAlt",lower:"incalt",index:11,isBkr:!1},this.rules[12]={name:"RuleError",lower:"ruleerror",index:12,isBkr:!1},this.rules[13]={name:"LineEndError",lower:"lineenderror",index:13,isBkr:!1},this.rules[14]={name:"Alternation",lower:"alternation",index:14,isBkr:!1},this.rules[15]={name:"Concatenation",lower:"concatenation",index:15,isBkr:!1},this.rules[16]={name:"Repetition",lower:"repetition",index:16,isBkr:!1},this.rules[17]={name:"Modifier",lower:"modifier",index:17,isBkr:!1},this.rules[18]={name:"Predicate",lower:"predicate",index:18,isBkr:!1},this.rules[19]={name:"BasicElement",lower:"basicelement",index:19,isBkr:!1},this.rules[20]={name:"BasicElementErr",lower:"basicelementerr",index:20,isBkr:!1},this.rules[21]={name:"Group",lower:"group",index:21,isBkr:!1},this.rules[22]={name:"GroupError",lower:"grouperror",index:22,isBkr:!1},this.rules[23]={name:"GroupOpen",lower:"groupopen",index:23,isBkr:!1},this.rules[24]={name:"GroupClose",lower:"groupclose",index:24,isBkr:!1},this.rules[25]={name:"Option",lower:"option",index:25,isBkr:!1},this.rules[26]={name:"OptionError",lower:"optionerror",index:26,isBkr:!1},this.rules[27]={name:"OptionOpen",lower:"optionopen",index:27,isBkr:!1},this.rules[28]={name:"OptionClose",lower:"optionclose",index:28,isBkr:!1},this.rules[29]={name:"RnmOp",lower:"rnmop",index:29,isBkr:!1},this.rules[30]={name:"BkrOp",lower:"bkrop",index:30,isBkr:!1},this.rules[31]={name:"bkrModifier",lower:"bkrmodifier",index:31,isBkr:!1},this.rules[32]={name:"cs",lower:"cs",index:32,isBkr:!1},this.rules[33]={name:"ci",lower:"ci",index:33,isBkr:!1},this.rules[34]={name:"um",lower:"um",index:34,isBkr:!1},this.rules[35]={name:"pm",lower:"pm",index:35,isBkr:!1},this.rules[36]={name:"bkr-name",lower:"bkr-name",index:36,isBkr:!1},this.rules[37]={name:"rname",lower:"rname",index:37,isBkr:!1},this.rules[38]={name:"uname",lower:"uname",index:38,isBkr:!1},this.rules[39]={name:"ename",lower:"ename",index:39,isBkr:!1},this.rules[40]={name:"UdtOp",lower:"udtop",index:40,isBkr:!1},this.rules[41]={name:"udt-non-empty",lower:"udt-non-empty",index:41,isBkr:!1},this.rules[42]={name:"udt-empty",lower:"udt-empty",index:42,isBkr:!1},this.rules[43]={name:"RepOp",lower:"repop",index:43,isBkr:!1}
vendor: 4,429 bytes, line 197
197,this.rules[44]={name:"AltOp",lower:"altop",index:44,isBkr:!1},this.rules[45]={name:"CatOp",lower:"catop",index:45,isBkr:!1},this.rules[46]={name:"StarOp",lower:"starop",index:46,isBkr:!1},this.rules[47]={name:"AndOp",lower:"andop",index:47,isBkr:!1},this.rules[48]={name:"NotOp",lower:"notop",index:48,isBkr:!1},this.rules[49]={name:"BkaOp",lower:"bkaop",index:49,isBkr:!1},this.rules[50]={name:"BknOp",lower:"bknop",index:50,isBkr:!1},this.rules[51]={name:"AbgOp",lower:"abgop",index:51,isBkr:!1},this.rules[52]={name:"AenOp",lower:"aenop",index:52,isBkr:!1},this.rules[53]={name:"TrgOp",lower:"trgop",index:53,isBkr:!1},this.rules[54]={name:"TbsOp",lower:"tbsop",index:54,isBkr:!1},this.rules[55]={name:"TlsOp",lower:"tlsop",index:55,isBkr:!1},this.rules[56]={name:"TlsCase",lower:"tlscase",index:56,isBkr:!1},this.rules[57]={name:"TlsOpen",lower:"tlsopen",index:57,isBkr:!1},this.rules[58]={name:"TlsClose",lower:"tlsclose",index:58,isBkr:!1},this.rules[59]={name:"TlsString",lower:"tlsstring",index:59,isBkr:!1},this.rules[60]={name:"StringTab",lower:"stringtab",index:60,isBkr:!1},this.rules[61]={name:"ClsOp",lower:"clsop",index:61,isBkr:!1},this.rules[62]={name:"ClsOpen",lower:"clsopen",index:62,isBkr:!1},this.rules[63]={name:"ClsClose",lower:"clsclose",index:63,isBkr:!1},this.rules[64]={name:"ClsString",lower:"clsstring",index:64,isBkr:!1},this.rules[65]={name:"ProsVal",lower:"prosval",index:65,isBkr:!1},this.rules[66]={name:"ProsValOpen",lower:"prosvalopen",index:66,isBkr:!1},this.rules[67]={name:"ProsValString",lower:"prosvalstring",index:67,isBkr:!1},this.rules[68]={name:"ProsValClose",lower:"prosvalclose",index:68,isBkr:!1},this.rules[69]={name:"rep-min",lower:"rep-min",index:69,isBkr:!1},this.rules[70]={name:"rep-min-max",lower:"rep-min-max",index:70,isBkr:!1},this.rules[71]={name:"rep-max",lower:"rep-max",index:71,isBkr:!1},this.rules[72]={name:"rep-num",lower:"rep-num",index:72,isBkr:!1},this.rules[73]={name:"dString",lower:"dstring",index:73,isBkr:!1},this.rules[74]={name:"xString",lower:"xstring",index:74,isBkr:!1},this.rules[75]={name:"bString",lower:"bstring",index:75,isBkr:!1},this.rules[76]={name:"Dec",lower:"dec",index:76,isBkr:!1},this.rules[77]={name:"Hex",lower:"hex",index:77,isBkr:!1},this.rules[78]={name:"Bin",lower:"bin",index:78,isBkr:!1},this.rules[79]={name:"dmin",lower:"dmin",index:79,isBkr:!1},this.rules[80]={name:"dmax",lower:"dmax",index:80,isBkr:!1},this.rules[81]={name:"bmin",lower:"bmin",index:81,isBkr:!1},this.rules[82]={name:"bmax",lower:"bmax",index:82,isBkr:!1},this.rules[83]={name:"xmin",lower:"xmin",index:83,isBkr:!1},this.rules[84]={name:"xmax",lower:"xmax",index:84,isBkr:!1},this.rules[85]={name:"dnum",lower:"dnum",index:85,isBkr:!1},this.rules[86]={name:"bnum",lower:"bnum",index:86,isBkr:!1},this.rules[87]={name:"xnum",lower:"xnum",index:87,isBkr:!1},this.rules[88]={name:"alphanum",lower:"alphanum",index:88,isBkr:!1},this.rules[89]={name:"owsp",lower:"owsp",index:89,isBkr:!1},this.rules[90]={name:"wsp",lower:"wsp",index:90,isBkr:!1},this.rules[91]={name:"space",lower:"space",index:91,isBkr:!1},this.rules[92]={name:"comment",lower:"comment",index:92,isBkr:!1},this.rules[93]={name:"LineEnd",lower:"lineend",index:93,isBkr:!1},this.rules[94]={name:"LineContinue",lower:"linecontinue",index:94,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3,4]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[0].opcodes[4]={type:4,index:12},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,5,7]},this.rules[1].opcodes[1]={type:3,min:0,max:1/0},this.rules[1].opcodes[2]={type:1,children:[3,4]},this.rules[1].opcodes[3]={type:6,string:[32]},this.rules[1].opcodes[4]={type:6,string:[9]},this.rules[1].opcodes[5]={type:3,min:0,max:1},this.rules[1].opcodes[6]={type:4,index:92},this.rules[1].opcodes[7]={type:4,index:93},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:4,index:3},this.rules[2].opcodes[2]={type:4,index:89},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:1,children:[5,8]},this.rules[2].opcodes[5]={type:2,children:[6,7]},this.rules[2].opcodes[6]={type:4,index:89},this.rules[2].opcodes[7]={type:4,index:93},this.rules[2].opcodes[8]={type:2,children:[9,10]},this.rules[2].opcodes[9]={type:4,index:13}
197,this.rules[2].opcodes[10]={type:4,index:93},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:89},this.rules[3].opcodes[3]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:4,index:88},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:1,max:1/0},this.rules[6].opcodes[1]={type:1,children:[2,3]},this.rules[6].opcodes[2]={type:5,min:33,max:60},this.rules[6].opcodes[3]={type:5,min:62,max:126},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:9},this.rules[7].opcodes[2]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:2},this.rules[8].opcodes[1]={type:5,min:33,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[61]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:6,string:[61,47]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,6]},this.rules[12].opcodes[1]={type:3,min:1,max:1/0},this.rules[12].opcodes[2]={type:1,children:[3,4,5]},this.rules[12].opcodes[3]={type:5,min:32,max:126},this.rules[12].opcodes[4]={type:6,string:[9]},this.rules[12].opcodes[5]={type:4,index:94},this.rules[12].opcodes[6]={type:4,index:93},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:3,min:1,max:1/0},this.rules[13].opcodes[1]={type:1,children:[2,3,4]},this.rules[13].opcodes[2]={type:5,min:32,max:126},this.rules[13].opcodes[3]={type:6,string:[9]},this.rules[13].opcodes[4]={type:4,index:94},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2]},this.rules[14].opcodes[1]={type:4,index:15},this.rules[14].opcodes[2]={type:3,min:0,max:1/0},this.rules[14].opcodes[3]={type:2,children:[4,5,6]},this.rules[14].opcodes[4]={type:4,index:89},this.rules[14].opcodes[5]={type:4,index:44},this.rules[14].opcodes[6]={type:4,index:15},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2]},this.rules[15].opcodes[1]={type:4,index:16},this.rules[15].opcodes[2]={type:3,min:0,max:1/0},this.rules[15].opcodes[3]={type:2,children:[4,5]},this.rules[15].opcodes[4]={type:4,index:45},this.rules[15].opcodes[5]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,3]},this.rules[16].opcodes[1]={type:3,min:0,max:1},this.rules[16].opcodes[2]={type:4,index:17},this.rules[16].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[16].opcodes[4]={type:4,index:21},this.rules[16].opcodes[5]={type:4,index:25},this.rules[16].opcodes[6]={type:4,index:19},this.rules[16].opcodes[7]={type:4,index:20},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,5]},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:18},this.rules[17].opcodes[3]={type:3,min:0,max:1},this.rules[17].opcodes[4]={type:4,index:43},this.rules[17].opcodes[5]={type:4,index:43},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[18].opcodes[1]={type:4,index:49},this.rules[18].opcodes[2]={type:4,index:50},this.rules[18].opcodes[3]={type:4,index:47},this.rules[18].opcodes[4]={type:4,index:48},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[19].opcodes[1]={type:4,index:40},this.rules[19].opcodes[2]={type:4,index:29},this.rules[19].opcodes[3]={type:4,index:53},this.rules[19].opcodes[4]={type:4,index:54},this.rules[19].opcodes[5]={type:4,index:55},this.rules[19].opcodes[6]={type:4,index:61},this.rules[19].opcodes[7]={type:4,index:30},this.rules[19].opcodes[8]={type:4,index:51},this.rules[19].opcodes[9]={type:4,index:52},this.rules[19].opcodes[10]={type:4,index:65},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:3,min:1,max:1/0}
197,this.rules[20].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[20].opcodes[2]={type:5,min:33,max:40},this.rules[20].opcodes[3]={type:5,min:42,max:46},this.rules[20].opcodes[4]={type:5,min:48,max:92},this.rules[20].opcodes[5]={type:5,min:94,max:126},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2,3]},this.rules[21].opcodes[1]={type:4,index:23},this.rules[21].opcodes[2]={type:4,index:14},this.rules[21].opcodes[3]={type:1,children:[4,5]},this.rules[21].opcodes[4]={type:4,index:24},this.rules[21].opcodes[5]={type:4,index:22},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:3,min:1,max:1/0},this.rules[22].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[22].opcodes[2]={type:5,min:33,max:40},this.rules[22].opcodes[3]={type:5,min:42,max:46},this.rules[22].opcodes[4]={type:5,min:48,max:92},this.rules[22].opcodes[5]={type:5,min:94,max:126},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:6,string:[40]},this.rules[23].opcodes[2]={type:4,index:89},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:4,index:89},this.rules[24].opcodes[2]={type:6,string:[41]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2,3]},this.rules[25].opcodes[1]={type:4,index:27},this.rules[25].opcodes[2]={type:4,index:14},this.rules[25].opcodes[3]={type:1,children:[4,5]},this.rules[25].opcodes[4]={type:4,index:28},this.rules[25].opcodes[5]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:3,min:1,max:1/0},this.rules[26].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[26].opcodes[2]={type:5,min:33,max:40},this.rules[26].opcodes[3]={type:5,min:42,max:46},this.rules[26].opcodes[4]={type:5,min:48,max:92},this.rules[26].opcodes[5]={type:5,min:94,max:126},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:6,string:[91]},this.rules[27].opcodes[2]={type:4,index:89},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:89},this.rules[28].opcodes[2]={type:6,string:[93]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:4,index:88},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,4]},this.rules[30].opcodes[1]={type:6,string:[92]},this.rules[30].opcodes[2]={type:3,min:0,max:1},this.rules[30].opcodes[3]={type:4,index:31},this.rules[30].opcodes[4]={type:4,index:36},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:1,children:[1,7,13,19]},this.rules[31].opcodes[1]={type:2,children:[2,3]},this.rules[31].opcodes[2]={type:4,index:32},this.rules[31].opcodes[3]={type:3,min:0,max:1},this.rules[31].opcodes[4]={type:1,children:[5,6]},this.rules[31].opcodes[5]={type:4,index:34},this.rules[31].opcodes[6]={type:4,index:35},this.rules[31].opcodes[7]={type:2,children:[8,9]},this.rules[31].opcodes[8]={type:4,index:33},this.rules[31].opcodes[9]={type:3,min:0,max:1},this.rules[31].opcodes[10]={type:1,children:[11,12]},this.rules[31].opcodes[11]={type:4,index:34},this.rules[31].opcodes[12]={type:4,index:35},this.rules[31].opcodes[13]={type:2,children:[14,15]},this.rules[31].opcodes[14]={type:4,index:34},this.rules[31].opcodes[15]={type:3,min:0,max:1},this.rules[31].opcodes[16]={type:1,children:[17,18]},this.rules[31].opcodes[17]={type:4,index:32},this.rules[31].opcodes[18]={type:4,index:33},this.rules[31].opcodes[19]={type:2,children:[20,21]},this.rules[31].opcodes[20]={type:4,index:35},this.rules[31].opcodes[21]={type:3,min:0,max:1},this.rules[31].opcodes[22]={type:1,children:[23,24]},this.rules[31].opcodes[23]={type:4,index:32},this.rules[31].opcodes[24]={type:4,index:33},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:6,string:[37,115]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:6,string:[37,105]},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:6,string:[37,117]},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:6,string:[37,112]},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:1,children:[1,2,3]}
197,this.rules[36].opcodes[1]={type:4,index:38},this.rules[36].opcodes[2]={type:4,index:39},this.rules[36].opcodes[3]={type:4,index:37},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:4,index:88},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2]},this.rules[38].opcodes[1]={type:6,string:[117,95]},this.rules[38].opcodes[2]={type:4,index:88},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2]},this.rules[39].opcodes[1]={type:6,string:[101,95]},this.rules[39].opcodes[2]={type:4,index:88},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2]},this.rules[40].opcodes[1]={type:4,index:42},this.rules[40].opcodes[2]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,2]},this.rules[41].opcodes[1]={type:6,string:[117,95]},this.rules[41].opcodes[2]={type:4,index:88},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:6,string:[101,95]},this.rules[42].opcodes[2]={type:4,index:88},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,5,8,11,12]},this.rules[43].opcodes[1]={type:2,children:[2,3,4]},this.rules[43].opcodes[2]={type:4,index:69},this.rules[43].opcodes[3]={type:4,index:46},this.rules[43].opcodes[4]={type:4,index:71},this.rules[43].opcodes[5]={type:2,children:[6,7]},this.rules[43].opcodes[6]={type:4,index:69},this.rules[43].opcodes[7]={type:4,index:46},this.rules[43].opcodes[8]={type:2,children:[9,10]},this.rules[43].opcodes[9]={type:4,index:46},this.rules[43].opcodes[10]={type:4,index:71},this.rules[43].opcodes[11]={type:4,index:46},this.rules[43].opcodes[12]={type:4,index:70},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:2,children:[1,2]},this.rules[44].opcodes[1]={type:6,string:[47]},this.rules[44].opcodes[2]={type:4,index:89},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:4,index:90},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:6,string:[42]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:6,string:[38]},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:6,string:[33]},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:6,string:[38,38]},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[33,33]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[37,94]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[37,36]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:6,string:[37]},this.rules[53].opcodes[2]={type:1,children:[3,8,13]},this.rules[53].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[53].opcodes[4]={type:4,index:76},this.rules[53].opcodes[5]={type:4,index:79},this.rules[53].opcodes[6]={type:6,string:[45]},this.rules[53].opcodes[7]={type:4,index:80},this.rules[53].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[53].opcodes[9]={type:4,index:77},this.rules[53].opcodes[10]={type:4,index:83},this.rules[53].opcodes[11]={type:6,string:[45]},this.rules[53].opcodes[12]={type:4,index:84},this.rules[53].opcodes[13]={type:2,children:[14,15,16,17]},this.rules[53].opcodes[14]={type:4,index:78},this.rules[53].opcodes[15]={type:4,index:81},this.rules[53].opcodes[16]={type:6,string:[45]},this.rules[53].opcodes[17]={type:4,index:82},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:2,children:[1,2]},this.rules[54].opcodes[1]={type:6,string:[37]},this.rules[54].opcodes[2]={type:1,children:[3,10,17]},this.rules[54].opcodes[3]={type:2,children:[4,5,6]},this.rules[54].opcodes[4]={type:4,index:76},this.rules[54].opcodes[5]={type:4,index:73},this.rules[54].opcodes[6]={type:3,min:0,max:1/0},this.rules[54].opcodes[7]={type:2,children:[8,9]},this.rules[54].opcodes[8]={type:6,string:[46]},this.rules[54].opcodes[9]={type:4,index:73},this.rules[54].opcodes[10]={type:2,children:[11,12,13]},this.rules[54].opcodes[11]={type:4,index:77},this.rules[54].opcodes[12]={type:4,index:74},this.rules[54].opcodes[13]={type:3,min:0,max:1/0},this.rules[54].opcodes[14]={type:2,children:[15,16]}
197,this.rules[54].opcodes[15]={type:6,string:[46]},this.rules[54].opcodes[16]={type:4,index:74},this.rules[54].opcodes[17]={type:2,children:[18,19,20]},this.rules[54].opcodes[18]={type:4,index:78},this.rules[54].opcodes[19]={type:4,index:75},this.rules[54].opcodes[20]={type:3,min:0,max:1/0},this.rules[54].opcodes[21]={type:2,children:[22,23]},this.rules[54].opcodes[22]={type:6,string:[46]},this.rules[54].opcodes[23]={type:4,index:75},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[55].opcodes[1]={type:4,index:56},this.rules[55].opcodes[2]={type:4,index:57},this.rules[55].opcodes[3]={type:4,index:59},this.rules[55].opcodes[4]={type:4,index:58},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1},this.rules[56].opcodes[1]={type:1,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[37,105]},this.rules[56].opcodes[3]={type:7,string:[37,115]},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:6,string:[34]},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:6,string:[34]},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:3,min:0,max:1/0},this.rules[59].opcodes[1]={type:1,children:[2,3,4]},this.rules[59].opcodes[2]={type:5,min:32,max:33},this.rules[59].opcodes[3]={type:5,min:35,max:126},this.rules[59].opcodes[4]={type:4,index:60},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:6,string:[9]},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3]},this.rules[61].opcodes[1]={type:4,index:62},this.rules[61].opcodes[2]={type:4,index:64},this.rules[61].opcodes[3]={type:4,index:63},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:6,string:[39]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:6,string:[39]},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:0,max:1/0},this.rules[64].opcodes[1]={type:1,children:[2,3,4]},this.rules[64].opcodes[2]={type:5,min:32,max:38},this.rules[64].opcodes[3]={type:5,min:40,max:126},this.rules[64].opcodes[4]={type:4,index:60},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:2,children:[1,2,3]},this.rules[65].opcodes[1]={type:4,index:66},this.rules[65].opcodes[2]={type:4,index:67},this.rules[65].opcodes[3]={type:4,index:68},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:6,string:[60]},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:0,max:1/0},this.rules[67].opcodes[1]={type:1,children:[2,3,4]},this.rules[67].opcodes[2]={type:5,min:32,max:61},this.rules[67].opcodes[3]={type:5,min:63,max:126},this.rules[67].opcodes[4]={type:4,index:60},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:6,string:[62]},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:4,index:72},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:4,index:72},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:4,index:72},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:3,min:1,max:1/0},this.rules[72].opcodes[1]={type:5,min:48,max:57},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:4,index:85},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:4,index:87},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:4,index:86},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:6,string:[68]},this.rules[76].opcodes[2]={type:6,string:[100]},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:6,string:[88]},this.rules[77].opcodes[2]={type:6,string:[120]},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:1,children:[1,2]},this.rules[78].opcodes[1]={type:6,string:[66]},this.rules[78].opcodes[2]={type:6,string:[98]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:4,index:85},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:4,index:85},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:4,index:86},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:4,index:86},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:4,index:87},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:4,index:87},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:3,min:1,max:1/0}
197,this.rules[85].opcodes[1]={type:5,min:48,max:57},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:3,min:1,max:1/0},this.rules[86].opcodes[1]={type:5,min:48,max:49},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:3,min:1,max:1/0},this.rules[87].opcodes[1]={type:1,children:[2,3,4]},this.rules[87].opcodes[2]={type:5,min:48,max:57},this.rules[87].opcodes[3]={type:5,min:65,max:70},this.rules[87].opcodes[4]={type:5,min:97,max:102},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:2,children:[1,4]},this.rules[88].opcodes[1]={type:1,children:[2,3]},this.rules[88].opcodes[2]={type:5,min:97,max:122},this.rules[88].opcodes[3]={type:5,min:65,max:90},this.rules[88].opcodes[4]={type:3,min:0,max:1/0},this.rules[88].opcodes[5]={type:1,children:[6,7,8,9]},this.rules[88].opcodes[6]={type:5,min:97,max:122},this.rules[88].opcodes[7]={type:5,min:65,max:90},this.rules[88].opcodes[8]={type:5,min:48,max:57},this.rules[88].opcodes[9]={type:6,string:[45]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:3,min:0,max:1/0},this.rules[89].opcodes[1]={type:4,index:91},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:3,min:1,max:1/0},this.rules[90].opcodes[1]={type:4,index:91},this.rules[91].opcodes=[],this.rules[91].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[91].opcodes[1]={type:6,string:[32]},this.rules[91].opcodes[2]={type:6,string:[9]},this.rules[91].opcodes[3]={type:4,index:92},this.rules[91].opcodes[4]={type:4,index:94},this.rules[92].opcodes=[],this.rules[92].opcodes[0]={type:2,children:[1,2]},this.rules[92].opcodes[1]={type:6,string:[59]},this.rules[92].opcodes[2]={type:3,min:0,max:1/0},this.rules[92].opcodes[3]={type:1,children:[4,5]},this.rules[92].opcodes[4]={type:5,min:32,max:126},this.rules[92].opcodes[5]={type:6,string:[9]},this.rules[93].opcodes=[],this.rules[93].opcodes[0]={type:1,children:[1,2,3]},this.rules[93].opcodes[1]={type:6,string:[13,10]},this.rules[93].opcodes[2]={type:6,string:[10]},this.rules[93].opcodes[3]={type:6,string:[13]},this.rules[94].opcodes=[],this.rules[94].opcodes[0]={type:2,children:[1,5]},this.rules[94].opcodes[1]={type:1,children:[2,3,4]},this.rules[94].opcodes[2]={type:6,string:[13,10]},this.rules[94].opcodes[3]={type:6,string:[10]},this.rules[94].opcodes[4]={type:6,string:[13]},this.rules[94].opcodes[5]={type:1,children:[6,7]},this.rules[94].opcodes[6]={type:6,string:[32]},this.rules[94].opcodes[7]={type:6,string:[9]},this.toString=function(){return";\n; ABNF for JavaScript APG 2.0 SABNF\n; RFC 5234 with some restrictions and additions.\n; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n;  - accepts %s\"string\" as a case-sensitive string\n;  - accepts %i\"string\" as a case-insensitive string\n;  - accepts \"string\" as a case-insensitive string\n;\n; Some restrictions:\n;   1. Rules must begin at first character of each line.\n;      Indentations on first rule and rules thereafter are not allowed.\n;   2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n;   3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n;      However, a working parser cannot be generated from them.\n;\n; Super set (SABNF) additions:\n;   1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n;      & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n;      ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n;      e.g. &%d13 or &rule or !(A / B)\n;   2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n;      'name' is alpha followed by alpha/num/hyphen just like a rule name.\n;      u_name may be used as an element but no rule definition is given.\n;      e.g. rule = A / u_myUdt\n;           A = \"a\"\n;      would be a valid grammar.\n;   3. Case-sensitive, single-quoted strings are accepted.\n;      e.g. 'abc' would be equivalent to %d97.98.99\n;      (kept for backward compatibility, but superseded by %s\"abc\")  \n; New 12/26/2015\n;   4. Look-behind operators are accepted as element prefixes.\n;      && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n;      !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n;      e.g. &&%d13 or &&rule or !!(A / B)\n;   5. Back reference operators, i.e. \\rulename, are accepted.\n;      A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n;      to match is a phrase previously matched by the rule 'rulename'.\n;      There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n;      In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n;      In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n;      Back reference modifiers can be used to specify case and mode.\n;      \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n;      Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n;      Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n;
197      Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n;   7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n;      Returns EMPTY or NOMATCH. Never consumes any characters.\n;   8. String end anchor, AEN(%$) matches the end of the input string location.\n;      Returns EMPTY or NOMATCH. Never consumes any characters.\n;\nFile            = *(BlankLine / Rule / RuleError)\nBlankLine       = *(%d32/%d9) [comment] LineEnd\nRule            = RuleLookup owsp Alternation ((owsp LineEnd)\n                / (LineEndError LineEnd))\nRuleLookup      = RuleNameTest owsp DefinedAsTest\nRuleNameTest    = RuleName/RuleNameError\nRuleName        = alphanum\nRuleNameError   = 1*(%d33-60/%d62-126)\nDefinedAsTest   = DefinedAs / DefinedAsError\nDefinedAsError  = 1*2%d33-126\nDefinedAs       = IncAlt / Defined\nDefined         = %d61\nIncAlt          = %d61.47\nRuleError       = 1*(%d32-126 / %d9  / LineContinue) LineEnd\nLineEndError    = 1*(%d32-126 / %d9  / LineContinue)\nAlternation     = Concatenation *(owsp AltOp Concatenation)\nConcatenation   = Repetition *(CatOp Repetition)\nRepetition      = [Modifier] (Group / Option / BasicElement / BasicElementErr)\nModifier        = (Predicate [RepOp])\n                / RepOp\nPredicate       = BkaOp\n                / BknOp\n                / AndOp\n                / NotOp\nBasicElement    = UdtOp\n                / RnmOp\n                / TrgOp\n                / TbsOp\n                / TlsOp\n                / ClsOp\n                / BkrOp\n                / AbgOp\n                / AenOp\n                / ProsVal\nBasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\nGroup           = GroupOpen  Alternation (GroupClose / GroupError)\nGroupError      = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nGroupOpen       = %d40 owsp\nGroupClose      = owsp %d41\nOption          = OptionOpen Alternation (OptionClose / OptionError)\nOptionError     = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nOptionOpen      = %d91 owsp\nOptionClose     = owsp %d93\nRnmOp           = alphanum\nBkrOp           = %d92 [bkrModifier] bkr-name\nbkrModifier     = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\ncs              = '%s'\nci              = '%i'\num              = '%u'\npm              = '%p'\nbkr-name        = uname / ename / rname\nrname           = alphanum\nuname           = %d117.95 alphanum\nename           = %d101.95 alphanum\nUdtOp           = udt-empty\n                / udt-non-empty\nudt-non-empty   = %d117.95 alphanum\nudt-empty       = %d101.95 alphanum\nRepOp           = (rep-min StarOp rep-max)\n                / (rep-min StarOp)\n                / (StarOp rep-max)\n                / StarOp\n                / rep-min-max\nAltOp           = %d47 owsp\nCatOp           = wsp\nStarOp          = %d42\nAndOp           = %d38\nNotOp           = %d33\nBkaOp           = %d38.38\nBknOp           = %d33.33\nAbgOp           = %d37.94\nAenOp           = %d37.36\nTrgOp           = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\nTbsOp           = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\nTlsOp           = TlsCase TlsOpen TlsString TlsClose\nTlsCase         = [\"%i\" / \"%s\"]\nTlsOpen         = %d34\nTlsClose        = %d34\nTlsString       = *(%d32-33/%d35-126/StringTab)\nStringTab       = %d9\nClsOp           = ClsOpen ClsString ClsClose\nClsOpen         = %d39\nClsClose        = %d39\nClsString       = *(%d32-38/%d40-126/StringTab)\nProsVal         = ProsValOpen ProsValString ProsValClose\nProsValOpen     = %d60\nProsValString   = *(%d32-61/%d63-126/StringTab)\nProsValClose    = %d62\nrep-min         = rep-num\nrep-min-max     = rep-num\nrep-max         = rep-num\nrep-num         = 1*(%d48-57)\ndString         = dnum\nxString         = xnum\nbString         = bnum\nDec             = (%d68/%d100)\nHex             = (%d88/%d120)\nBin             = (%d66/%d98)\ndmin            = dnum\ndmax            = dnum\nbmin            = bnum\nbmax            = bnum\nxmin            = xnum\nxmax            = xnum\ndnum            = 1*(%d48-57)\nbnum            = 1*%d48-49\nxnum            = 1*(%d48-57 / %d65-70 / %d97-102)\n;\n; Basics\nalphanum        = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\nowsp            = *space\nwsp             = 1*space\nspace           = %d32\n                / %d9\n                / comment\n                / LineContinue\ncomment         = %d59 *(%d32-126 / %d9)\nLineEnd         = %d13.10\n                / %d10\n                / %d13\nLineContinue    = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n"}}},49752:function(e,t,r){let n=r(87404),s=r(45028),i=[];i.line=function(e,t,r,s,i){return e===n.SEM_PRE?(i.endLength=0,i.textLength=0,i.invalidCount=0):i.lines.push({lineNo:i.lines.length,beginChar:r,length:s,textLength:i.textLength,endType:i.endType,invalidChars:i.invalidCount}),n.SEM_OK},i["line-text"]=function(e,t,r,s,i){return e===n.SEM_PRE&&(i.textLength=s),n.SEM_OK},i["last-line"]=function(e,t,r,s,i){return e===n.SEM_PRE?(i.endLength=0,i.textLength=0,i.invalidCount=0):i.strict?(i.lines.push({lineNo:i.lines.length,beginChar:r,length:s,textLength:s,endType:"none",invalidChars:i.invalidCount}),i.errors.push({line:i.lineNo,char:r+s,msg:"no line end on last line - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})):(t.push(10),i.lines.push({lineNo:i.lines.length,beginChar:r,length:s+1,textLength:s,endType:"LF",invali
197dChars:i.invalidCount})),n.SEM_OK},i.invalid=function(e,t,r,i,o){return e===n.SEM_PRE&&o.errors.push({line:o.lineNo,char:r,msg:`invalid character found '\\x${s.charToHex(t[r])}'`}),n.SEM_OK},i.end=function(e,t,r,s,i){return e===n.SEM_POST&&(i.lineNo+=1),n.SEM_OK},i.lf=function(e,t,r,s,i){return e===n.SEM_PRE&&(i.endType="LF",i.strict&&i.errors.push({line:i.lineNo,char:r,msg:"line end character LF(\\n, \\x0A) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},i.cr=function(e,t,r,s,i){return e===n.SEM_PRE&&(i.endType="CR",i.strict&&i.errors.push({line:i.lineNo,char:r,msg:"line end character CR(\\r, \\x0D) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},i.crlf=function(e,t,r,s,i){return e===n.SEM_PRE&&(i.endType="CRLF"),n.SEM_OK},t.callbacks=i},21600:function(e){e.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"file",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"line",lower:"line",index:1,isBkr:!1},this.rules[2]={name:"line-text",lower:"line-text",index:2,isBkr:!1},this.rules[3]={name:"last-line",lower:"last-line",index:3,isBkr:!1},this.rules[4]={name:"valid",lower:"valid",index:4,isBkr:!1},this.rules[5]={name:"invalid",lower:"invalid",index:5,isBkr:!1},this.rules[6]={name:"end",lower:"end",index:6,isBkr:!1},this.rules[7]={name:"CRLF",lower:"crlf",index:7,isBkr:!1},this.rules[8]={name:"LF",lower:"lf",index:8,isBkr:!1},this.rules[9]={name:"CR",lower:"cr",index:9,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,3]},this.rules[0].opcodes[1]={type:3,min:0,max:1/0},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:3,min:0,max:1},this.rules[0].opcodes[4]={type:4,index:3},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:6},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:0,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:5},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3]},this.rules[3].opcodes[2]={type:4,index:4},this.rules[3].opcodes[3]={type:4,index:5},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:32,max:126},this.rules[4].opcodes[2]={type:6,string:[9]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[5].opcodes[1]={type:5,min:0,max:8},this.rules[5].opcodes[2]={type:5,min:11,max:12},this.rules[5].opcodes[3]={type:5,min:14,max:31},this.rules[5].opcodes[4]={type:5,min:127,max:4294967295},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:6,string:[13,10]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:6,string:[10]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:6,string:[13]},this.toString=function(){return"file = *line [last-line]\nline = line-text end\nline-text = *(valid/invalid)\nlast-line = 1*(valid/invalid)\nvalid = %d32-126 / %d9\ninvalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\nend = CRLF / LF / CR\nCRLF = %d13.10\nLF = %d10\nCR = %d13\n"}}},95073:function(e,t,r){e.exports=function(e,t,n,s){let i=r(92040),o=new(r(21600)),{callbacks:a}=r(49752),l=[],c=new i.parser;if(c.ast=new i.ast,c.ast.callbacks=a,s){if("traceObject"!==s.traceObject)throw TypeError("scanner.js: trace argument is not a trace object");c.trace=s}if(!0!==c.parse(o,"file",e).success){t.push({line:0,char:0,msg:"syntax analysis error analyzing input SABNF grammar"});return}return c.ast.translate({lines:l,lineNo:0,errors:t,strict:!!n}),l}},88367:function(e,t,r){e.exports=function(){let e=r(92040),t=e.ids,n=function(){this.names=[],this.add=function(e){let t=-1;return -1===this.get(e)&&(t={name:e,lower:e.toLowerCase(),index:this.names.length},this.names.push(t)),t},this.get=function(e){let t=-1,r=e.toLowerCase();for(let e=0;e<this.names.length;e+=1)if(this.names[e].lower===r){t=this.names[e];break}return t}},s=function(e,t,r){let n=0;for(let s=t;s<t+r;s+=1)n=10*n+e[s]-48;return n},i=function(e,t,r){let n=0;for(let s=t;s<t+r;s+=1)n=2*n+e[s]-48;return n},o=function(e,t,r){let n=0;for(let s=t;s<t+r;s+=1){let t=e[s];if(t>=48&&t<=57)t-=48;else if(t>=65&&t<=70)t-=55;else if(t>=97&&t<=102)t-=87;else throw Error("hexnum out of range");n=16*n+t}return n};this.callbacks=[],this.callbacks.abgop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.ABG}),o},this.callbacks.aenop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.AEN}),o},this.callbacks.alternation=function(e,r,n,s,i){let o=t.SEM_OK;if(e===t.SEM_PRE)for(;;){if(null===i.definedas){o=t.SEM_SKIP;break}if(null===i.topStack){if("="===i.definedas){i.topStack={alt:{type:t.ALT,children:[]},cat:null},i.altStack.push(i.topStack),i.opcodes.push(i.topStack.alt);break}i.topStack={alt:i.opcodes[0],cat:null},i.altStack.push(i.topStack);break}i.topStack={alt:{type:t.ALT,children:[]},cat:null},i.altStack.push(i.topStack),i.opcodes.push(i.topStack.alt);break}else e===t.SEM_POST&&(i.altStack.pop(),i.altStack.length>0?i.topStack=i.altStack[i.altStack.length-1]:i.topStack=null);return o},this.callbacks.andop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.AND}),o},this.callbacks.bmax=function(e,r,n,s,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.max=i(r,n,s)),a},this.callbacks.bmin=function(e,r,n,s,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.min=i(r,n,s)),a},this.callbacks.bkaop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.BKA}),o},this.callbacks.bknop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.BKN}),o},this.callbacks.bkrop=function(r,n,s,i,o){let a=t.SEM_OK;return r===t.SEM_PRE?(o.ci=!0,o.cs=!1,o.um=!0,o.pm=!1):r===t.SEM_POST&&o.opcodes.push({type:t.BKR,bkrCase:!0===o.cs?t.BKR_MODE_CS:t.BKR_MODE_CI,bkrMode:!0===o.pm?t.BKR_MODE_PM:t.BKR_MODE_UM,index:{phraseIndex:o.bkrname.phraseIndex,name:e.utils.charsToString(n,o.bkrname.phraseIndex,o.bkrname.phraseLength)}}),a},this.callbacks["bkr-name"]=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.bkrname={phraseIndex:n,phraseLength:s}),o},this.callbacks.bstring=function(e,r,n,s,o){let a=t.SEM_OK;return e===t.SEM_POST&&o.tbsstr.push(i(r,n,s)),a},this.callbacks.clsop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(s<=2?i.opcodes.push({type:t.TLS,string:[]}):i.opcodes.push({type:t.TBS,string:r.slice(n+1,n+s-1)})),o},this.callbacks.ci=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.ci=!0),o},this.callbacks.cs=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.cs=!0),o},this.callbacks.um=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.um=!0),o},this.callbacks.pm=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.pm=!0),o},this.callbacks.concatenation=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE?(i.topStack.alt.children.push(i.opcodes.length),i.topStack.cat={type:t.CAT,children:[]},i.opcodes.push(i.topStack.cat)):e===t.SEM_POST&&(i.topStack.cat=null),o},this.callbacks.defined=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="="),o},this.callbacks.dmax=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.max=s(r,n,i)),a},this.callbacks.dmin=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.min=s(r,n,i)),a},this.callbacks.dstring=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&o.tbsstr.push(s(r,n,i)),a},this.callbacks.file=function(e,r,s,i,o){let a=t.SEM_OK;if(e===t.SEM_PRE)o.ruleNames=new n,o.udtNames=new n,o.rules=[],o.udts=[],o.rulesLineMap=[],o.opcodes=[],o.altStack=[],o.topStack=null,o.topRule=null;else if(e===t.SEM_POST){let e;
197o.rules.forEach(r=>{r.isBkr=!1,r.opcodes.forEach(r=>{r.type===t.RNM&&(-1===(e=o.ruleNames.get(r.index.name))?(o.errors.push({line:o.findLine(o.lines,r.index.phraseIndex,o.charsLength),char:r.index.phraseIndex,msg:`Rule name '${r.index.name}' used but not defined.`}),r.index=-1):r.index=e.index)})}),o.udts.forEach(e=>{e.isBkr=!1}),o.rules.forEach(r=>{r.opcodes.forEach(n=>{n.type===t.BKR&&(r.hasBkr=!0,-1!==(e=o.ruleNames.get(n.index.name))?(o.rules[e.index].isBkr=!0,n.index=e.index):-1!==(e=o.udtNames.get(n.index.name))?(o.udts[e.index].isBkr=!0,n.index=o.rules.length+e.index):(o.errors.push({line:o.findLine(o.lines,n.index.phraseIndex,o.charsLength),char:n.index.phraseIndex,msg:`Back reference name '${n.index.name}' refers to undefined rule or unamed UDT.`}),n.index=-1))})})}return a},this.callbacks.incalt=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="=/"),o},this.callbacks.notop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.NOT}),o},this.callbacks.optionopen=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.REP,min:0,max:1,char:n}),o},this.callbacks["rep-max"]=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.max=s(r,n,i)),a},this.callbacks["rep-min"]=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.min=s(r,n,i)),a},this.callbacks["rep-min-max"]=function(e,r,n,i,o){let a=t.SEM_OK;return e===t.SEM_POST&&(o.max=s(r,n,i),o.min=o.max),a},this.callbacks.repetition=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE&&i.topStack.cat.children.push(i.opcodes.length),o},this.callbacks.repop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE?(i.min=0,i.max=1/0,i.topRep={type:t.REP,min:0,max:1/0},i.opcodes.push(i.topRep)):e===t.SEM_POST&&(i.min>i.max&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:`repetition min cannot be greater than max: min: ${i.min}: max: ${i.max}`}),i.topRep.min=i.min,i.topRep.max=i.max),o},this.callbacks.rnmop=function(r,n,s,i,o){let a=t.SEM_OK;return r===t.SEM_POST&&o.opcodes.push({type:t.RNM,index:{phraseIndex:s,name:e.utils.charsToString(n,s,i)}}),a},this.callbacks.rule=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE&&(i.altStack.length=0,i.topStack=null,i.rulesLineMap.push({line:i.findLine(i.lines,n,i.charsLength),char:n})),o},this.callbacks.rulelookup=function(e,r,n,s,i){let o=t.SEM_OK;if(e===t.SEM_PRE)i.ruleName="",i.definedas="";else if(e===t.SEM_POST){let e;"="===i.definedas?-1===(e=i.ruleNames.add(i.ruleName))?(i.definedas=null,i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:`Rule name '${i.ruleName}' previously defined.`})):(i.topRule={name:e.name,lower:e.lower,opcodes:[],index:e.index},i.rules.push(i.topRule),i.opcodes=i.topRule.opcodes):-1===(e=i.ruleNames.get(i.ruleName))?(i.definedas=null,i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:`Rule name '${i.ruleName}' for incremental alternate not previously defined.`})):(i.topRule=i.rules[e.index],i.opcodes=i.topRule.opcodes)}return o},this.callbacks.rulename=function(r,n,s,i,o){let a=t.SEM_OK;return r===t.SEM_PRE&&(o.ruleName=e.utils.charsToString(n,s,i)),a},this.callbacks.tbsop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE?i.tbsstr=[]:e===t.SEM_POST&&i.opcodes.push({type:t.TBS,string:i.tbsstr}),o},this.callbacks.tlscase=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_POST&&s>0&&(83===r[n+1]||115===r[n+1])&&(i.tlscase=!1),o},this.callbacks.tlsstring=function(e,r,n,s,i){let o=t.SEM_OK;if(e===t.SEM_POST){if(i.tlscase){let e=r.slice(n,n+s);for(let t=0;t<e.length;t+=1)e[t]>=65&&e[t]<=90&&(e[t]+=32);i.opcodes.push({type:t.TLS,string:e})}else i.opcodes.push({type:t.TBS,string:r.slice(n,n+s)})}return o},this.callbacks.tlsop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE&&(i.tlscase=!0),o},this.callbacks.trgop=function(e,r,n,s,i){let o=t.SEM_OK;return e===t.SEM_PRE?(i.min=0,i.max=0):e===t.SEM_POST&&(i.min>i.max&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:`TRG, (%dmin-max), min cannot be greater than max: min: ${i.min}: max: ${i.max}`}),i.opcodes.push({type:t.TRG,min:i.min,max:i.max})),o},this.callbacks["udt-empty"]=function(r,n,s,i,o){let a=t.SEM_OK;if(r===t.SEM_POST){let r=e.utils.charsToString(n,s,i),a=o.udtNames.add(r);if(-1===a){if(-1===(a=o.udtNames.get(r)))throw Error("semUdtEmpty: name look up error")}else o.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!0});o.opcodes.push({type:t.UDT,empty:!0,index:a.index})}return a},this.callbacks["udt-non-empty"]=function(r,n,s,i,o){let a=t.SEM_OK;if(r===t.SEM_POST){let r=e.utils.charsToString(n,s,i),a=o.udtNames.add(r);if(-1===a){if(-1===(a=o.udtNames.get(r)))throw Error("semUdtNonEmpty: name look up error")}else o.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!1});o.opcodes.push({type:t.UDT,empty:!1,index:a.index,syntax:null,semantic:null})}return a},this.callbacks.xmax=function(e,r,n,s,i){let a=t.SEM_OK;return e===t.SEM_POST&&(i.max=o(r,n,s)),a},this.callbacks.xmin=function(e,r,n,s,i){let a=t.SEM_OK;return e===t.SEM_POST&&(i.min=o(r,n,s)),a},this.callbacks.xstring=function(e,r,n,s,i){let a=t.SEM_OK;return e===t.SEM_POST&&i.tbsstr.push(o(r,n,s)),a}}},99713:function(e){e.exports=function(){let e="show-rules.js";return function(t=[],r=[],n="index"){let s;let i="showRules",o=[],a=[],l=[],c=[],u=t.length,d=r.length,h="RULE/UDT NAMES";if(!(Array.isArray(t)&&t.length))throw Error(`${e}:${i}: rules arg must be array with length > 0`);if(!Array.isArray(r))throw Error(`${e}:${i}: udts arg must be array`);for(s=0;s<u;s+=1)l.push(s);if((o=l.slice(0)).sort(function(e,r){return t[e].lower<t[r].lower?-1:t[e].lower>t[r].lower?1:0}),d){for(s=0;s<d;s+=1)c.push(s);(a=c.slice(0)).sort(function(e,t){return r[e].lower<r[t].lower?-1:r[e].lower>r[t].lower?1:0})}if(97===n.charCodeAt(0)){for(h+=" - alphabetical by rule/UDT name\n",s=0;s<u;s+=1)h+=`${s}: ${o[s]}: ${t[o[s]].name}
198`;if(d)for(s=0;s<d;s+=1)h+=`${s}: ${a[s]}: ${r[a[s]].name}
199`}else{for(h+=" - ordered by rule/UDT index\n",s=0;s<u;s+=1)h+=`${s}: ${t[s].name}
200`;if(d)for(s=0;s<d;s+=1)h+=`${s}: ${r[s].name}
201`}return h}}()},63081:function(e,t,r){e.exports=function(){let e;let t="syntax-callbacks.js: ",n=r(92040),s=n.ids;this.callbacks=[],this.callbacks.andop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"AND operator(&) foun
201d - strict ABNF specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.basicelementerr=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:!1===e.basicError&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Unrecognized SABNF element."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsclose=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:o.errors.push({line:o.findLine(o.lines,e.clsOpen),char:e.clsOpen,msg:"Case-sensitive literal string('...') opened but not closed."}),e.clsOpen=null,e.basicError=!0;break;case s.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,e.clsOpen),char:e.clsOpen,msg:"Case-sensitive string operator('...') found - strict ABNF specified."}),e.clsOpen=null;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsopen=function(r,n,i){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:e.clsOpen=i;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsstring=function(e,r,n,i){switch(e.state){case s.ACTIVE:i.stringTabChar=!1;break;case s.EMPTY:case s.NOMATCH:break;case s.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.definedaserror=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Expected '=' or '=/'. Not found."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.file=function(e,r,n,i){switch(e.state){case s.ACTIVE:i.altStack=[],i.repCount=0;break;case s.EMPTY:i.errors.push({line:0,char:0,msg:"grammar file is empty"});break;case s.MATCH:0===i.ruleCount&&i.errors.push({line:0,char:0,msg:"no rules defined"});break;case s.NOMATCH:throw Error(`${t}synFile: grammar file NOMATCH: design error: should never happen.`);default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupclose=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:o.errors.push({line:o.findLine(o.lines,e.groupOpen),char:e.groupOpen,msg:'Group "(...)" opened but not closed.'}),(e=o.altStack.pop()).groupError=!0;break;case s.MATCH:e=o.altStack.pop();break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupopen=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:e={groupOpen:i,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(e);break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineenderror=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Unrecognized grammar element or characters."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineend=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:if(1===e.phraseLength&&i.strict){let e=13===r[n]?"CR":"LF";i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:`Line end '${e}' found - strict ABNF specified, only CRLF allowed.`})}break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.notop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"NOT operator(!) found - strict ABNF specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionclose=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:o.errors.push({line:o.findLine(o.lines,e.optionOpen),char:e.optionOpen,msg:'Option "[...]" opened but not closed.'}),(e=o.altStack.pop()).optionError=!0;break;case s.MATCH:e=o.altStack.pop();break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionopen=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:e={groupOpen:null,groupError:!1,optionOpen:i,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(e);break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalclose=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:o.errors.push({line:o.findLine(o.lines,e.prosValOpen),char:e.prosValOpen,msg:"Prose value operator(<...>) opened but not closed."}),e.basicError=!0,e.prosValOpen=null;break;case s.MATCH:o.errors.push({line:o.findLine(o.lines,e.prosValOpen),char:e.prosValOpen,msg:"Prose value operator(<...>) found. The ABNF syntax is valid, but a parser cannot be generated from this grammar."}),e.prosValOpen=null;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalopen=function(r,n,i){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:e.prosValOpen=i;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalstring=function(e,r,n,i){switch(e.state){case s.ACTIVE:i.stringTabChar=!1;break;case s.EMPTY:case s.NOMATCH:break;case s.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in prose value string."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.repetition=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:case s.MATCH:i.repCount+=1;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rule=function(r,n,i,o){switch(r.state){case s.ACTIVE:o.altStack.length=0,e={groupOpen:null,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(e);break;case s.EMPTY:throw Error(`${t}synRule: EMPTY: rule cannot be empty`);case s.NOMATCH:break;case s.MATCH:o.ruleCount+=1;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.ruleerror=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Unrecognized SABNF line. Invalid rule, comment or blank line."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rulenameerror=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Rule names must be alphanum and begin with alphabetic character."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.stringtab=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.stringTabChar=n;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsclose=function(r,n,i,o){switch(r.state){case s.ACTIVE:case s.EMPTY:break;case s.NOMATCH:o.errors.push({line:o.findLine(o.lines,e.tlsOpen),char:e.tlsOpen,msg:'Case-insensitive literal string("...") opened but not closed.'}),e.basicError=!0,e.tlsOpen=null;break;case s.MATCH:e.tlsOpen=null;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsopen=function(r,n,i){switch(r.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:e.tlsOpen=i;break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsstring=function(e,r,n,i){switch(e.state){case s.ACTIVE:i.stringTabChar=!1;break;case s.EMPTY:case s.NOMATCH:break;case s.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string (see 'quoted-string' definition, RFC 7405.)"});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.udtop=function(e,r,i,o){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;
201case s.MATCH:if(o.strict){let t=n.utils.charsToString(r,i,e.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`UDT operator found(${t}) - strict ABNF specified.`})}break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkaop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Positive look-behind operator(&&) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Positive look-behind operator(&&) found - apg-lite specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bknop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Negative look-behind operator(!!) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Negative look-behind operator(!!) found - apg-lite specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkrop=function(e,r,i,o){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:if(o.strict){let t=n.utils.charsToString(r,i,e.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`Back reference operator(${t}) found - strict ABNF specified.`})}else if(o.lite){let t=n.utils.charsToString(r,i,e.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`Back reference operator(${t}) found - apg-lite specified.`})}break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.abgop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Beginning of string anchor(%^) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"Beginning of string anchor(%^) found - apg-lite specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}},this.callbacks.aenop=function(e,r,n,i){switch(e.state){case s.ACTIVE:case s.EMPTY:case s.NOMATCH:break;case s.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"End of string anchor(%$) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,n,i.charsLength),char:n,msg:"End of string anchor(%$) found - apg-lite specified."});break;default:throw Error(`${t}synFile: unrecognized case.`)}}}},1531:function(e,t,r){let{Buffer:n}=r(74279),s=r(64121),i="UTF8",o="UTF16",a="UTF16BE",l="UTF16LE",c="UTF32",u="UTF32BE",d="UTF32LE",h="UINT7",f="ASCII",p="BINARY",g="UINT8",m="UINT16",y="UINT16LE",b="UINT16BE",A="UINT32",w="UINT32LE",v="UINT32BE",E="ESCAPED",P="STRING",k=function(e){e.type=i;let t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)},x=function(e){let t=e.data;switch(e.bom=0,e.type){case o:e.type=a,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type=l,e.bom=2));break;case a:if(e.type=a,t.length>=2){if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw TypeError(`src type: "${a}" specified but BOM is for "${l}"`)}break;case l:if(e.type=l,t.length>=0){if(254===t[0]&&255===t[1])throw TypeError(`src type: "${l}" specified but BOM is for "${a}"`);255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw TypeError(`UTF16 BOM: src type "${e.type}" unrecognized`)}},C=function(e){let t=e.data;switch(e.bom=0,e.type){case c:e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type=d,e.bom=4));break;case u:if(e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw TypeError(`src type: ${u} specified but BOM is for ${d}"`);break;case d:if(e.type=d,t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw TypeError(`src type: "${d}" specified but BOM is for "${u}"`);255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw TypeError(`UTF32 BOM: src type "${e.type}" unrecognized`)}},T=function(e,t){let r=function(e){let t={type:"",base64:!1}
201,r=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return r&&(r[2]&&(t.type=r[2].toUpperCase()),r[1]&&(t.base64=!0)),t}(e.toUpperCase());if(r.base64){if(r.type===P)throw TypeError(`type: "${e} "BASE64:" prefix not allowed with type ${P}`);if(n.isBuffer(t))r.data=s.base64.decode(t);else if("string"==typeof t){let e=n.from(t,"ascii");r.data=s.base64.decode(e)}else throw TypeError(`type: "${e} unrecognized data type: typeof(data): ${typeof t}`)}else r.data=t;switch(r.type){case i:k(r);break;case o:case a:case l:x(r);break;case c:case u:case d:C(r);break;case m:r.type=b;break;case A:r.type=v;break;case f:r.type=h;break;case p:r.type=g;break;case h:case g:case y:case b:case w:case v:case P:case E:break;default:throw TypeError(`type: "${e}" not recognized`)}if(r.type===P){if("string"!=typeof r.data)throw TypeError(`type: "${e}" but data is not a string`)}else if(!n.isBuffer(r.data))throw TypeError(`type: "${e}" but data is not a Buffer`);return r},O=function(e,t){if(!Array.isArray(t))throw TypeError(`dst chars: not array: "${typeof t}`);if("string"!=typeof e)throw TypeError(`dst type: not string: "${typeof e}`);let r=function(e){let t,r;let n={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(r=e,"CRLF:"===(t=e.slice(0,5))){n.crlf=!0,r=e.slice(5);break}"LF:"===(t=e.slice(0,3))&&(n.lf=!0,r=e.slice(3));break}return 1===(t=r.split(":")).length?n.type=t[0]:2===t.length&&"BASE64"===t[1]&&(n.base64=!0,n.type=t[0]),n}(e.toUpperCase());switch(r.type){case i:case a:case l:case u:case d:case h:case g:case y:case b:case w:case v:case E:break;case P:if(r.base64)throw TypeError(`":BASE64" suffix not allowed with type ${P}`);break;case f:r.type=h;break;case p:r.type=g;break;case o:r.type=a;break;case c:r.type=u;break;case m:r.type=b;break;case A:r.type=v;break;default:throw TypeError(`dst type unrecognized: "${e}" : must have form [crlf:|lf:]type[:base64]`)}return r},S=function(e,t){switch(e){case i:return s.utf8.encode(t);case a:return s.utf16be.encode(t);case l:return s.utf16le.encode(t);case u:return s.utf32be.encode(t);case d:return s.utf32le.encode(t);case h:return s.uint7.encode(t);case g:return s.uint8.encode(t);case b:return s.uint16be.encode(t);case y:return s.uint16le.encode(t);case v:return s.uint32be.encode(t);case w:return s.uint32le.encode(t);case P:return s.string.encode(t);case E:return s.escaped.encode(t);default:throw TypeError(`encode type "${e}" not recognized`)}},B=function(e){switch(e.type){case i:return s.utf8.decode(e.data,e.bom);case l:return s.utf16le.decode(e.data,e.bom);case a:return s.utf16be.decode(e.data,e.bom);case u:return s.utf32be.decode(e.data,e.bom);case d:return s.utf32le.decode(e.data,e.bom);case h:return s.uint7.decode(e.data);case g:return s.uint8.decode(e.data);case b:return s.uint16be.decode(e.data);case y:return s.uint16le.decode(e.data);case v:return s.uint32be.decode(e.data);case w:return s.uint32le.decode(e.data);case P:return s.string.decode(e.data);case E:return s.escaped.decode(e.data);default:throw TypeError(`decode type "${e.type}" not recognized`)}};t.decode=function(e,t){return B(T(e,t))},t.encode=function(e,t){let r,n;let i=O(e,t);return i.crlf?(r=s.lineEnds.crlf(t),n=S(i.type,r)):i.lf?(r=s.lineEnds.lf(t),n=S(i.type,r)):n=S(i.type,t),i.base64&&(n=s.base64.encode(n)),n},t.convert=function(e,r,n){return t.encode(n,t.decode(e,r))}},64121:function(e,t,r){let{Buffer:n}=r(74279),s=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],i=[];
201"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(e=>{i.push(e.charCodeAt(0))}),t.utf8={encode(e){let t=[];return e.forEach(e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&31)),t.push(128+(63&e));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&15)),t.push(128+(e>>6&63)),t.push(128+(63&e));else if(e>=65536&&e<=1114111){let r=e>>16&31;t.push(240+(r>>2)),t.push(128+((3&r)<<4)+(e>>12&15)),t.push(128+(e>>6&63)),t.push(128+(63&e))}else throw RangeError(`utf8.encode: character out of range: char: ${e}`)}),n.from(t)},decode(e,t){let r,n,s,i,o,a;let l=e.length,c=t?3:0,u=[];for(;c<l;){for(n=e[c],r=4294967295;;){if(n>=0&&n<=127){r=n,a=1;break}if((s=c+1)<l&&n>=194&&n<=223){r=function(e,t){if((192&t)!=128)return 4294967293;let r=((31&e)<<6)+(63&t);return r<128?4294967292:r}(n,e[s]),a=2;break}if((i=c+2)<l&&n>=224&&n<=239){r=function(e,t,r){if((192&r)!=128||(192&t)!=128)return 4294967293;let n=((15&e)<<12)+((63&t)<<6)+(63&r);return n<2048?4294967292:n>=55296&&n<=57343?4294967294:n}(n,e[s],e[i]),a=3;break}(o=c+3)<l&&n>=240&&n<=244&&(r=function(e,t,r,n){if((192&n)!=128||(192&r)!=128||(192&t)!=128)return 4294967293;let s=(((7&e)<<2)+(t>>4&3)<<16)+((15&t)<<12)+((63&r)<<6)+(63&n);return s<65536?4294967292:s>1114111?4294967294:s}(n,e[s],e[i],e[o]),a=4);break}if(r>1114111){let e=`byte[${c}]`;if(4294967295===r)throw RangeError(`utf8.decode: ill-formed UTF8 byte sequence found at: ${e}`);if(4294967293===r)throw RangeError(`utf8.decode: illegal trailing byte found at: ${e}`);if(4294967294===r)throw RangeError(`utf8.decode: code point out of range found at: ${e}`);if(4294967292===r)throw RangeError(`utf8.decode: non-shortest form found at: ${e}`);throw RangeError(`utf8.decode: unrecognized error found at: ${e}`)}u.push(r),c+=a}return u}},t.utf16be={encode(e){let t,r,s;let i=[];for(let n=0;n<e.length;n+=1)if((t=e[n])>=0&&t<=55295||t>=57344&&t<=65535)i.push(t>>8&255),i.push(255&t);else if(t>=65536&&t<=1114111)r=55296+((s=t-65536)>>10),s=56320+(1023&s),i.push(r>>8&255),i.push(255&r),i.push(s>>8&255),i.push(255&s);else throw RangeError(`utf16be.encode: UTF16BE value out of range: char[${n}]: ${t}`);return n.from(i)},decode(e,t){let r,n,s,i,o,a;if(e.length%2>0)throw RangeError(`utf16be.decode: data length must be even multiple of 2: length: ${e.length}`);let l=[],c=e.length,u=t?2:0,d=0;for(;u<c;){for(;;){if((s=u+1)<c){if((o=(e[u]<<8)+e[s])<55296||o>57343){r=o,n=2;break}if((i=u+3)<c&&(a=(e[u+2]<<8)+e[i],o<=56319&&a>=56320&&a<=57343)){r=65536+(o-55296<<10)+(a-56320),n=4;break}}throw RangeError(`utf16be.decode: ill-formed UTF16BE byte sequence found: byte[${u}]`)}l[d++]=r,u+=n}return l}},t.utf16le={encode(e){let t,r,s;let i=[];for(let n=0;n<e.length;n+=1)if((t=e[n])>=0&&t<=55295||t>=57344&&t<=65535)i.push(255&t),i.push(t>>8&255);else if(t>=65536&&t<=1114111)r=55296+((s=t-65536)>>10),s=56320+(1023&s),i.push(255&r),i.push(r>>8&255),i.push(255&s),i.push(s>>8&255);else throw RangeError(`utf16le.encode: UTF16LE value out of range: char[${n}]: ${t}`);return n.from(i)},decode(e,t){let r,n,s,i,o,a;if(e.length%2>0)throw RangeError(`utf16le.decode: data length must be even multiple of 2: length: ${e.length}`);let l=[],c=e.length,u=t?2:0,d=0;for(;u<c;){for(;;){if((s=u+1)<c){if((o=(e[s]<<8)+e[u])<55296||o>57343){r=o,n=2;break}if((i=u+3)<c&&(a=(e[i]<<8)+e[u+2],o<=56319&&a>=56320&&a<=57343)){r=65536+(o-55296<<10)+(a-56320),n=4;break}}throw RangeError(`utf16le.decode: ill-formed UTF16LE byte sequence found: byte[${u}]`)}l[d++]=r,u+=n}return l}},t.utf32be={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw RangeError(`utf32be.encode: UTF32BE character code out of range: char[${r/4}]: ${e}`);t[r++]=e>>24&255,t[r++]=e>>16&255,t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e,t){if(e.length%4>0)throw RangeError(`utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ${e.length}`);let r=[],n=t?4:0;for(;n<e.length;n+=4){let t=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(t>=55296&&t<=57343||t>1114111)throw RangeError(`utf32be.decode: UTF32BE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.utf32le={encode(e){let t=n.alloc(4*e.length),r=0;
201return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw RangeError(`utf32le.encode: UTF32LE character code out of range: char[${r/4}]: ${e}`);t[r++]=255&e,t[r++]=e>>8&255,t[r++]=e>>16&255,t[r++]=e>>24&255}),t},decode(e,t){if(e.length%4>0)throw RangeError(`utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ${e.length}`);let r=[],n=t?4:0;for(;n<e.length;n+=4){let t=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(t>=55296&&t<=57343||t>1114111)throw RangeError(`utf32le.encode: UTF32LE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.uint7={encode(e){let t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>127)throw RangeError(`uint7.encode: UINT7 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){let t=[];for(let r=0;r<e.length;r+=1){if(e[r]>127)throw RangeError(`uint7.decode: UINT7 character code out of range: byte[${r}]: ${e[r]}`);t[r]=e[r]}return t}},t.uint8={encode(e){let t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>255)throw RangeError(`uint8.encode: UINT8 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){let t=[];for(let r=0;r<e.length;r+=1)t[r]=e[r];return t}},t.uint16be={encode(e){let t=n.alloc(2*e.length),r=0;return e.forEach(e=>{if(e>65535)throw RangeError(`uint16be.encode: UINT16BE character code out of range: char[${r/2}]: ${e}`);t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e){if(e.length%2>0)throw RangeError(`uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},t.uint16le={encode(e){let t=n.alloc(2*e.length),r=0;return e.forEach(e=>{if(e>65535)throw RangeError(`uint16le.encode: UINT16LE character code out of range: char[${r/2}]: ${e}`);t[r++]=255&e,t[r++]=e>>8&255}),t},decode(e){if(e.length%2>0)throw RangeError(`uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},t.uint32be={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{t[r++]=e>>24&255,t[r++]=e>>16&255,t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e){if(e.length%4>0)throw RangeError(`uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=4)t.push((e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3]);return t}},t.uint32le={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{t[r++]=255&e,t[r++]=e>>8&255,t[r++]=e>>16&255,t[r++]=e>>24&255}),t},decode(e){if(e.length%4>0)throw RangeError(`uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=4)t.push((e[r+3]<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]);return t}},t.string={encode:e=>t.utf16le.encode(e).toString("utf16le"),decode:e=>t.utf16le.decode(n.from(e,"utf16le"),0)},t.escaped={encode(e){let t=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(96===i)t.push(i),t.push(i);else if(10===i)t.push(i);else if(i>=32&&i<=126)t.push(i);else{let e="";if(i>=0&&i<=31)e+=`\`x${s[i]}`;else if(i>=127&&i<=255)e+=`\`x${s[i]}`;else if(i>=256&&i<=65535)e+=`\`u${s[i>>8&255]}${s[255&i]}`;else if(i>=65536&&i<=4294967295){e+="`u{";let t=i>>24&255;t>0&&(e+=s[t]),e+=`${s[i>>16&255]+s[i>>8&255]+s[255&i]}}`}else throw Error("escape.encode(char): char > 0xffffffff not allowed");n.from(e).forEach(e=>{t.push(e)})}}return n.from(t)},decode(e){let t,r,n;function s(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}let i=[],o=e.length,a=0;for(;a<o;){for(;;){if(n=!0,96!==e[a]){i.push(e[a]),a+=1,n=!1;break}if((t=a+1)>=o)break;if(96===e[t]){i.push(96),a+=2,n=!1;break}if(120===e[t]){if((r=function(e,t,r){let n={char:null,nexti:e+2,error:!0};if(e+1<t&&s(r[e])&&s(r[e+1])){let t=String.fromCodePoint(r[e],r[e+1]);n.char=parseInt(t,16),Number.isNaN(n.char)||(n.error=!1)}return n}(t+1,o,e)).error)break;
201i.push(r.char),a=r.nexti,n=!1;break}if(117===e[t]){if(123===e[t+1]){if((r=function(e,t,r){let n={char:null,nexti:e+4,error:!0},i="";for(;e<t&&s(r[e]);)i+=String.fromCodePoint(r[e]),e+=1;return n.char=parseInt(i,16),125!==r[e]||Number.isNaN(n.char)||(n.error=!1),n.nexti=e+1,n}(t+2,o,e)).error)break;i.push(r.char),a=r.nexti,n=!1;break}if((r=function(e,t,r){let n={char:null,nexti:e+4,error:!0};if(e+3<t&&s(r[e])&&s(r[e+1])&&s(r[e+2])&&s(r[e+3])){let t=String.fromCodePoint(r[e],r[e+1],r[e+2],r[e+3]);n.char=parseInt(t,16),Number.isNaN(n.char)||(n.error=!1)}return n}(t+1,o,e)).error)break;i.push(r.char),a=r.nexti,n=!1}break}if(n)throw Error(`escaped.decode: ill-formed escape sequence at buf[${a}]`)}return i}},t.lineEnds={crlf(e){let t=[],r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(13),t.push(10);break;case 10:t.push(13),t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&(t.push(13),t.push(10)),t},lf(e){let t=[],r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(10);break;case 10:t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&t.push(10),t}},t.base64={encode(e){let t,r,s;if(0===e.length)return n.alloc(0);let o=e.length%3;o=o>0?3-o:0;let a=(e.length+o)/3,l=n.alloc(4*a);o>0&&(a-=1),t=0,r=0;for(let n=0;n<a;n+=1)s=(e[t++]<<16)+(e[t++]<<8)+e[t++],l[r++]=i[s>>18&63],l[r++]=i[s>>12&63],l[r++]=i[s>>6&63],l[r++]=i[63&s];return 0===o?l:1===o?(s=(e[t++]<<16)+(e[t]<<8),l[r++]=i[s>>18&63],l[r++]=i[s>>12&63],l[r++]=i[s>>6&63],l[r]=i[64],l):2===o?(s=e[t]<<16,l[r++]=i[s>>18&63],l[r++]=i[s>>12&63],l[r++]=i[64],l[r]=i[64],l):void 0},decode(e){let t,r,s;if(0===e.length)return n.alloc(0);let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n+=1){let s=e[n];for(;32!==s&&9!==s&&10!==s&&13!==s;){if(s>=65&&s<=90){t.push(s-65);break}if(s>=97&&s<=122){t.push(s-71);break}if(s>=48&&s<=57){t.push(s+4);break}if(43===s){t.push(62);break}if(47===s){t.push(63);break}if(61===s){t.push(64),r+=1;break}throw RangeError(`base64.decode: invalid character buf[${n}]: ${s}`)}}if(t.length%4>0)throw RangeError(`base64.decode: string length not integral multiple of 4: ${t.length}`);switch(r){case 0:break;case 1:if(64!==t[t.length-1])throw RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==t[t.length-1]||64!==t[t.length-2])throw RangeError("base64.decode: two tail characters found: not last characters");break;default:throw RangeError(`base64.decode: more than two tail characters found: ${r}`)}return{tail:r,buf:n.from(t)}}(e),{tail:o}=i,a=i.buf,l=a.length/4,c=n.alloc(3*l-o);o>0&&(l-=1),r=0,t=0;for(let e=0;e<l;e+=1)s=(a[t++]<<18)+(a[t++]<<12)+(a[t++]<<6)+a[t++],c[r++]=s>>16&255,c[r++]=s>>8&255,c[r++]=255&s;return 1===o&&(s=(a[t++]<<18)+(a[t++]<<12)+(a[t]<<6),c[r++]=s>>16&255,c[r]=s>>8&255),2===o&&(s=(a[t++]<<18)+(a[t++]<<12),c[r]=s>>16&255),c},toString(e){if(e.length%4>0)throw RangeError(`base64.toString: input buffer length not multiple of 4: ${e.length}`);let t="",r=0;for(let s=0;s<e.length;s+=4){for(let t=s;t<s+4;t+=1){var n;if(!((n=e[t])>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||43===n||47===n||61===n))throw RangeError(`base64.toString: buf[${t}]: ${e[t]} : not valid base64 character code`)}!function(e,n,s,i){switch(r){case 76:t+=`\r
202${e}${n}${s}${i}`,r=4;break;case 75:t+=`${e}\r
203${n}${s}${i}`,r=3;break;case 74:t+=`${e+n}\r
204${s}${i}`,r=2;break;case 73:t+=`${e+n+s}\r
205${i}`,r=1;break;default:t+=e+n+s+i,r+=4}}(String.fromCharCode(e[s]),String.fromCharCode(e[s+1]),String.fromCharCode(e[s+2]),String.fromCharCode(e[s+3]))}return t}}},38041:function(e,t,r){e.exports=function(){let e=r(87404),t=r(45028),n=this,s=null,i=null,o=null,a=0,l=[],c=[],u=[],d=[];function h(e){let t="";for(let r=0;r<e;r+=1)t+=" ";return t}this.callbacks=[],this.astObject="astObject",this.init=function(e,t,r){let h;u.length=0,d.length=0,l.length=0,a=0,s=e,i=t,o=r;let f=[];for(h=0;h<s.length;h+=1)f.push(s[h].lower);for(h=0;h<i.length;h+=1)f.push(i[h].lower);for(h=0,a=s.length+i.length;h<a;h+=1)l[h]=!1,c[h]=null;for(let e in n.callbacks){let t=e.toLowerCase();
205if((h=f.indexOf(t))<0)throw Error(`ast.js: init: node '${e}' not a rule or udt name`);"function"==typeof n.callbacks[e]&&(l[h]=!0,c[h]=n.callbacks[e]),!0===n.callbacks[e]&&(l[h]=!0)}},this.ruleDefined=function(e){return!1!==l[e]},this.udtDefined=function(e){return!1!==l[s.length+e]},this.down=function(t,r){let n=d.length;return u.push(n),d.push({name:r,thisIndex:n,thatIndex:null,state:e.SEM_PRE,callbackIndex:t,phraseIndex:null,phraseLength:null,stack:u.length}),n},this.up=function(t,r,n,s){let i=d.length,o=u.pop();return d.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:u.length}),d[o].thatIndex=i,d[o].phraseIndex=n,d[o].phraseLength=s,i},this.translate=function(t){let r,n;for(let s=0;s<d.length;s+=1)r=c[(n=d[s]).callbackIndex],n.state===e.SEM_PRE?null!==r&&r(e.SEM_PRE,o,n.phraseIndex,n.phraseLength,t)===e.SEM_SKIP&&(s=n.thatIndex):null!==r&&r(e.SEM_POST,o,n.phraseIndex,n.phraseLength,t)},this.setLength=function(e){d.length=e,e>0?u.length=d[e-1].stack:u.length=0},this.getLength=function(){return d.length},this.toXml=function(r){let n=t.charsToDec,s="decimal integer character codes";if("string"==typeof r&&r.length>=3){let e=r.slice(0,3).toLowerCase();"asc"===e?(n=t.charsToAscii,s="ASCII for printing characters, hex for non-printing"):"hex"===e?(n=t.charsToHex,s="hexadecimal integer character codes"):"uni"===e&&(n=t.charsToUnicode,s="Unicode UTF-32 integer character codes")}let i="",a=0;return i+=`<?xml version="1.0" encoding="utf-8"?>
206<root nodes="${d.length/2}" characters="${o.length}">
207<!-- input string, ${s} -->
208`+h(a+2)+n(o)+"\n",d.forEach(t=>{t.state===e.SEM_PRE?(a+=1,i+=h(a)+`<node name="${t.name}" index="${t.phraseIndex}" length="${t.phraseLength}">
209`+h(a+2)+n(o,t.phraseIndex,t.phraseLength)+"\n"):(i+=h(a)+`</node><!-- name="${t.name}" -->
210`,a-=1)}),i+="</root>\n"},this.phrases=function(){let t,r;let n={};for(t=0;t<d.length;t+=1)(r=d[t]).state===e.SEM_PRE&&(Array.isArray(n[r.name])||(n[r.name]=[]),n[r.name].push({index:r.phraseIndex,length:r.phraseLength}));return n}}},11048:function(e){e.exports=function(){let e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return((e+=1)+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(r){return -1===e||r<0||r>e||e-r>=t?-1:(r+t)%t},this.forEach=function(r){if(-1!==e){if(e<t){for(let t=0;t<=e;t+=1)r(t,t);return}for(let n=e-t+1;n<=e;n+=1)r((n+t)%t,n)}}}},66224:function(e){e.exports=function(){return"/* This file automatically generated by jsonToless() and LESS. */\n.apg-mono {\n  font-family: monospace;\n}\n.apg-active {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-match {\n  font-weight: bold;\n  color: #264BFF;\n}\n.apg-empty {\n  font-weight: bold;\n  color: #0fbd0f;\n}\n.apg-nomatch {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-lh-match {\n  font-weight: bold;\n  color: #1A97BA;\n}\n.apg-lb-match {\n  font-weight: bold;\n  color: #5F1687;\n}\n.apg-remainder {\n  font-weight: bold;\n  color: #999999;\n}\n.apg-ctrl-char {\n  font-weight: bolder;\n  font-style: italic;\n  font-size: 0.6em;\n}\n.apg-line-end {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-error {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-phrase {\n  color: #000000;\n  background-color: #8caae6;\n}\n.apg-empty-phrase {\n  color: #0fbd0f;\n}\ntable.apg-state {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n  text-align: right;\n}\ntable.apg-state caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-stats {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n  text-align: left;\n}\ntable.apg-grammar {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n  text-align: left;\n}\ntable.apg-rules {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules a {\n  color: #003399 !important;\n}
210\ntable.apg-rules a:hover {\n  color: #8caae6 !important;\n}\ntable.apg-attrs {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs a {\n  color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n  color: #8caae6 !important;\n}\n"}},87404:function(e){e.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}},92040:function(e,t,r){e.exports={ast:r(38041),circular:r(11048),ids:r(87404),parser:r(78739),stats:r(26154),trace:r(80868),utils:r(45028),emitcss:r(66224),style:r(74516)}},78739:function(e,t,r){e.exports=function(){let e,t,n,s,i;let o=r(87404),a=r(45028),l="parser.js: ",c=this;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let u=null,d=null,h=0,f=0,p=0,g=null,m=null,y=null,b=null,A=null,w=0,v=1/0,E=1/0,P=function(t,r,n){let i=`${l}evaluateRule(): `;if(t>=y.length)throw Error(`${i}rule index: ${t} out of range`);if(r>=s)throw Error(`${i}phrase index: ${r} out of range`);let{length:a}=u;u.push({type:o.RNM,index:t}),e(a,r,n),u.pop()},k=function(t,r,n){let i=`${l}evaluateUdt(): `;if(t>=b.length)throw Error(`${i}udt index: ${t} out of range`);if(r>=s)throw Error(`${i}phrase index: ${r} out of range`);let{length:a}=u;u.push({type:o.UDT,empty:b[t].empty,index:t}),e(a,r,n),u.pop()},x=function(){h=0,f=0,p=0,w=0,i=[{lookAround:o.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],y=null,b=null,d=null,t=0,n=0,s=0,g=null,m=null,A=null,u=null},C=function(){let e=[],t=function(){let t=e[e.length-1],r={};for(let e in t)r[e]=t[e];return r};this.push=function(){e.push(t())},this.pop=function(t){let r=t;if(r||(r=e.length-1),r<1||r>e.length)throw Error(`${l}backRef.pop(): bad length: ${r}`);return e.length=r,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,r,n){e[e.length-1][t]={phraseIndex:r,phraseLength:n}},this.getPhrase=function(t){return e[e.length-1][t]},function(){let t={};y.forEach(e=>{e.isBkr&&(t[e.lower]=null)}),b.length>0&&b.forEach(e=>{e.isBkr&&(t[e.lower]=null)}),e.push(t)}()},T=function(){let e=this;this.state=o.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=i[i.length-1],this.uFrame=new C,this.pFrame=new C,this.evaluateRule=P,this.evaluateUdt=k,this.refresh=function(){e.state=o.ACTIVE,e.phraseLength=0,e.lookAround=i[i.length-1]}},O=function(){return i[i.length-1]},S=function(){return i.length>1},B=function(){let e=`${l}initializeAst(): `;for(;;){if(void 0===c.ast){c.ast=null;break}if(null===c.ast)break;if("astObject"!==c.ast.astObject)throw Error(`${e}ast object not recognized`);break}null!==c.ast&&c.ast.init(y,b,d)},R=function(){let e=`${l}initializeTrace(): `;for(;;){if(void 0===c.trace){c.trace=null;break}if(null===c.trace)break;if("traceObject"!==c.trace.traceObject)throw Error(`${e}trace object not recognized`);break}null!==c.trace&&c.trace.init(y,b,d)},N=function(){let e=`${l}initializeStats(): `;for(;;){if(void 0===c.stats){c.stats=null;break}if(null===c.stats)break;if("statsObject"!==c.stats.statsObject)throw Error(`${e}stats object not recognized`);break}null!==c.stats&&c.stats.init(y,b)},M=function(e){let t=`${l}initializeGrammar(): `;if(!e)throw Error(`${t}grammar object undefined`);if("grammarObject"!==e.grammarObject)throw Error(`${t}bad grammar object`);y=e.rules,b=e.udts},I=function(e){let t=`${l}initializeStartRule(): `,r=null;if("number"==typeof e){if(e>=y.length)throw Error(`${t}start rule index too large: max: ${y.length}: index: ${e}`);r=e}else if("string"==typeof e){let n=e.toLowerCase();for(let e=0;e<y.length;e+=1)if(n===y[e].lower){r=y[e].index;break}if(null===r)throw Error(`${t}start rule name '${e}' not recognized`)}else throw Error(`${t}type of start rule '${typeof e}' not recognized`);return r},L=function(e,r,i){let o=`${l}initializeInputChars(): `,c=e,u=r,h=i;if(void 0===c)throw Error(`${o}input string is undefined`);if(null===c)throw Error(`${o}input string is null`);if("string"==typeof c)c=a.stringToChars(c);else if(!Array.isArray(c))throw Error(`${o}input string is not a string or array`);if(c.length>0&&"number"!=typeof c[0])throw Error(`${o}input string not an array of integers`);if("number"!=typeof u)u=0;else if((u=Math.floor(u))<0||u>c.length)throw Error(`${o}input beginning index out of range: ${u}`);if("number"!=typeof h)h=c.length-u;else if((h=Math.floor(h))<0||h>c.length-u)throw Error(`${o}input length out of range: ${h}`);d=c,s=(t=u)+(n=h)},D=function(){let e,t;let r=`${l}initializeCallbacks(): `;for(e=0,g=[],m=[];e<y.length;e+=1)g[e]=null;for(e=0;e<b.length;e+=1)m[e]=null;let n=[];for(e=0;e<y.length;e+=1)n.push(y[e].lower);for(e=0;e<b.length;e+=1)n.push(b[e].lower);for(let s in c.callbacks){if((e=n.indexOf(s.toLowerCase()))<0)throw Error(`${r}syntax callback '${s}' not a rule or udt name`);if((t=c.callbacks[s])||(t=null),"function"==typeof t||null===t)e<y.length?g[e]=t:m[e-y.length]=t;else throw Error(`${r}syntax callback[${s}] must be function reference or 'false' (false/null/undefined/etc.)`)}for(e=0;e<b.length;e+=1)if(null===m[e])throw Error(`${r}all UDT callbacks must be defined. UDT callback[${b[e].lower}] not a function reference`)};this.setMaxTreeDepth=function(e){if("number"!=typeof e||(v=Math.floor(e))<=0)throw Error(`parser: max tree depth must be integer > 0: ${e}`)},this.setMaxNodeHits=function(e){if("number"!=typeof e||(E=Math.floor(e))<=0)throw Error(`parser: max n
210ode hits must be integer > 0: ${e}`)};let F=function(r,i,a){let c;let h=`${l}parse(): `;M(r);let g=I(i);D(),R(),N(),B();let m=new T;switch(null!=a&&(A=a),u=[{type:o.RNM,index:g}],e(0,t,m),u=null,m.state){case o.ACTIVE:throw Error(`${h}final state should never be 'ACTIVE'`);case o.NOMATCH:c=!1;break;case o.EMPTY:case o.MATCH:c=m.phraseLength===n;break;default:throw Error("unrecognized state")}return{success:c,state:m.state,length:n,matched:m.phraseLength,maxMatched:w,maxTreeDepth:f,nodeHits:p,inputLength:d.length,subBegin:t,subEnd:s,subLength:n}};this.parseSubstring=function(e,t,r,n,s,i){return x(),L(r,n,s),F(e,t,i)},this.parse=function(e,t,r,n){return x(),L(r,0,r.length),F(e,t,n)};let U=function(t,r,n){let s=u[t];for(let t=0;t<s.children.length&&(e(s.children[t],r,n),n.state===o.NOMATCH);t+=1);},j=function(t,r,n){let s,i,a,l;let d=u[t],h=n.uFrame.length(),f=n.pFrame.length();c.ast&&(i=c.ast.getLength()),s=!0,a=r,l=0;for(let t=0;t<d.children.length;t+=1){if(e(d.children[t],a,n),n.state===o.NOMATCH){s=!1;break}a+=n.phraseLength,l+=n.phraseLength}s?(n.state=0===l?o.EMPTY:o.MATCH,n.phraseLength=l):(n.state=o.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),c.ast&&c.ast.setLength(i))},_=function(t,r,n){let i,a,l,d;let h=u[t];if(0===h.max){n.state=o.EMPTY,n.phraseLength=0;return}a=r,l=0,d=0;let f=n.uFrame.length(),p=n.pFrame.length();for(c.ast&&(i=c.ast.getLength());!(a>=s)&&(e(t+1,a,n),n.state!==o.NOMATCH&&n.state!==o.EMPTY&&(d+=1,l+=n.phraseLength,a+=n.phraseLength,d!==h.max)););n.state===o.EMPTY?(n.state=0===l?o.EMPTY:o.MATCH,n.phraseLength=l):d>=h.min?(n.state=0===l?o.EMPTY:o.MATCH,n.phraseLength=l):(n.state=o.NOMATCH,n.phraseLength=0,n.uFrame.pop(f),n.pFrame.pop(p),c.ast&&c.ast.setLength(i))},H=function(e,t,r,n){if(t.phraseLength>r){let n=`${l}opRNM(${e.name}): callback function error: `;throw Error(n+=`sysData.phraseLength: ${t.phraseLength} must be <= remaining chars: ${r}`)}switch(t.state){case o.ACTIVE:if(!0!==n)throw Error(`${l}opRNM(${e.name}): callback function return error. ACTIVE state not allowed.`);break;case o.EMPTY:t.phraseLength=0;break;case o.MATCH:0===t.phraseLength&&(t.state=o.EMPTY);break;case o.NOMATCH:t.phraseLength=0;break;default:throw Error(`${l}opRNM(${e.name}): callback function return error. Unrecognized return state: ${t.state}`)}},G=function(t,r,n){let i,a,l,h,f,p;let m=u[t],b=y[m.index],w=g[b.index],v=!S();if(v&&((a=c.ast&&c.ast.ruleDefined(m.index))&&(i=c.ast.getLength(),c.ast.down(m.index,y[m.index].name)),h=n.uFrame.length(),f=n.pFrame.length(),n.uFrame.push(),n.pFrame.push(),p=n.pFrame,n.pFrame=new C),null===w)l=u,u=b.opcodes,e(0,r,n),u=l;else{let t=s-r;n.ruleIndex=b.index,w(n,d,r,A),H(b,n,t,!0),n.state===o.ACTIVE&&(l=u,u=b.opcodes,e(0,r,n),u=l,n.ruleIndex=b.index,w(n,d,r,A),H(b,n,t,!1))}v&&(a&&(n.state===o.NOMATCH?c.ast.setLength(i):c.ast.up(m.index,b.name,r,n.phraseLength)),n.pFrame=p,n.state===o.NOMATCH?(n.uFrame.pop(h),n.pFrame.pop(f)):b.isBkr&&(n.pFrame.savePhrase(b.lower,r,n.phraseLength),n.uFrame.savePhrase(b.lower,r,n.phraseLength)))},K=function(e,t,r){if(t.phraseLength>r){let n=`${l}opUDT(${e.name}): callback function error: `;throw Error(n+=`sysData.phraseLength: ${t.phraseLength} must be <= remaining chars: ${r}`)}switch(t.state){case o.ACTIVE:throw Error(`${l}opUDT(${e.name}): callback function return error. ACTIVE state not allowed.`);case o.EMPTY:if(!1===e.empty)throw Error(`${l}opUDT(${e.name}): callback function return error. May not return EMPTY.`);t.phraseLength=0;break;case o.MATCH:if(0===t.phraseLength){if(!1===e.empty)throw Error(`${l}opUDT(${e.name}): callback function return error. May not return EMPTY.`);t.state=o.EMPTY}break;case o.NOMATCH:t.phraseLength=0;break;default:throw Error(`${l}opUDT(${e.name}): callback function return error. Unrecognized return state: ${t.state}`)}},Q=function(e,t,r){let n,i,a,l,h,f;let p=u[e],g=b[p.index];r.UdtIndex=g.index;let w=!S();w&&((a=c.ast&&c.ast.udtDefined(p.index))&&(i=y.length+p.index,n=c.ast.getLength(),c.ast.down(i,g.name)),l=r.uFrame.length(),h=r.pFrame.length(),r.uFrame.push(),r.pFrame.push(),f=r.pFrame,r.pFrame=new C);let v=s-t;m[p.index](r,d,t,A),K(g,r,v),w&&(a&&(r.state===o.NOMATCH?c.ast.setLength(n):c.ast.up(i,g.name,t,r.phraseLength)),r.pFrame=f,r.state===o.NOMATCH?(r.uFrame.pop(l),r.pFrame.pop(h)):g.isBkr&&(r.pFrame.savePhrase(g.lower,t,r.phraseLength),r.uFrame.savePhrase(g.lower,t,r.phraseLength)))},V=function(r,a,l){i.push({lookAround:o.LOOKAROUND_AHEAD,anchor:a,charsEnd:s,charsLength:n}),s=d.length,n=d.length-t,e(r+1,a,l);let c=i.pop();switch(s=c.charsEnd,n=c.charsLength,l.phraseLength=0,l.state){case o.EMPTY:case o.MATCH:l.state=o.E
210MPTY;break;case o.NOMATCH:l.state=o.NOMATCH;break;default:throw Error(`opAND: invalid state ${l.state}`)}},z=function(r,a,l){i.push({lookAround:o.LOOKAROUND_AHEAD,anchor:a,charsEnd:s,charsLength:n}),s=d.length,n=d.length-t,e(r+1,a,l);let c=i.pop();switch(s=c.charsEnd,n=c.charsLength,l.phraseLength=0,l.state){case o.EMPTY:case o.MATCH:l.state=o.NOMATCH;break;case o.NOMATCH:l.state=o.EMPTY;break;default:throw Error(`opNOT: invalid state ${l.state}`)}},J=function(e,t,r){let n=u[e];r.state=o.NOMATCH,t<s&&n.min<=d[t]&&d[t]<=n.max&&(r.state=o.MATCH,r.phraseLength=1)},W=function(e,t,r){let n;let i=u[e],a=i.string.length;if(r.state=o.NOMATCH,t+a<=s){for(n=0;n<a;n+=1)if(d[t+n]!==i.string[n])return;r.state=o.MATCH,r.phraseLength=a}},$=function(e,t,r){let n,i;let a=u[e];r.state=o.NOMATCH;let l=a.string.length;if(0===l){r.state=o.EMPTY;return}if(t+l<=s){for(n=0;n<l;n+=1)if((i=d[t+n])>=65&&i<=90&&(i+=32),i!==a.string[n])return;r.state=o.MATCH,r.phraseLength=l}},q=function(e,t,r){r.state=o.NOMATCH,r.phraseLength=0,r.state=0===t?o.EMPTY:o.NOMATCH},Z=function(e,t,r){r.state=o.NOMATCH,r.phraseLength=0,r.state=t===d.length?o.EMPTY:o.NOMATCH},Y=function(e,t,r){let n,i,a,l;let c=u[e];r.state=o.NOMATCH,l=c.index<y.length?y[c.index].lower:b[c.index-y.length].lower;let h=c.bkrMode===o.BKR_MODE_PM?r.pFrame.getPhrase(l):r.uFrame.getPhrase(l),f=c.bkrCase===o.BKR_MODE_CI;if(null===h)return;let p=h.phraseIndex,g=h.phraseLength;if(0===g){r.state=o.EMPTY;return}if(t+g<=s){if(f){for(n=0;n<g;n+=1)if(i=d[t+n],a=d[p+n],i>=65&&i<=90&&(i+=32),a>=65&&a<=90&&(a+=32),i!==a)return;r.state=o.MATCH,r.phraseLength=g}else for(n=0;n<g;n+=1)if((i=d[t+n])!==(a=d[p+n]))return;r.state=o.MATCH,r.phraseLength=g}},X=function(t,r,n){switch(i.push({lookAround:o.LOOKAROUND_BEHIND,anchor:r}),e(t+1,r,n),i.pop(),n.phraseLength=0,n.state){case o.EMPTY:case o.MATCH:n.state=o.EMPTY;break;case o.NOMATCH:n.state=o.NOMATCH;break;default:throw Error(`opBKA: invalid state ${n.state}`)}},ee=function(t,r,n){switch(i.push({lookAround:o.LOOKAROUND_BEHIND,anchor:r}),e(t+1,r,n),i.pop(),n.phraseLength=0,n.state){case o.EMPTY:case o.MATCH:n.state=o.NOMATCH;break;case o.NOMATCH:n.state=o.EMPTY;break;default:throw Error(`opBKN: invalid state ${n.state}`)}},et=function(t,r,n){let s,i,a,l;let d=u[t],h=n.uFrame.length(),f=n.pFrame.length();c.ast&&(i=c.ast.getLength()),s=!0,a=r,l=0;for(let t=d.children.length-1;t>=0;t-=1)if(e(d.children[t],a,n),a-=n.phraseLength,l+=n.phraseLength,n.state===o.NOMATCH){s=!1;break}s?(n.state=0===l?o.EMPTY:o.MATCH,n.phraseLength=l):(n.state=o.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),c.ast&&c.ast.setLength(i))},er=function(t,r,n){let s,i,a,l;let d=u[t];i=r,a=0,l=0;let h=n.uFrame.length(),f=n.pFrame.length();for(c.ast&&(s=c.ast.getLength());!(i<=0)&&(e(t+1,i,n),n.state!==o.NOMATCH&&n.state!==o.EMPTY&&(l+=1,a+=n.phraseLength,i-=n.phraseLength,l!==d.max)););n.state===o.EMPTY?(n.state=0===a?o.EMPTY:o.MATCH,n.phraseLength=a):l>=d.min?(n.state=0===a?o.EMPTY:o.MATCH,n.phraseLength=a):(n.state=o.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),c.ast&&c.ast.setLength(s))},en=function(e,t,r){let n=u[e];if(r.state=o.NOMATCH,r.phraseLength=0,t>0){let e=d[t-1];n.min<=e&&e<=n.max&&(r.state=o.MATCH,r.phraseLength=1)}},es=function(e,t,r){let n;let s=u[e];r.state=o.NOMATCH;let i=s.string.length,a=t-i;if(a>=0){for(n=0;n<i;n+=1)if(d[a+n]!==s.string[n])return;r.state=o.MATCH,r.phraseLength=i}},ei=function(e,t,r){let n;let s=u[e];r.state=o.NOMATCH;let i=s.string.length;if(0===i){r.state=o.EMPTY;return}let a=t-i;if(a>=0){for(let e=0;e<i;e+=1)if((n=d[a+e])>=65&&n<=90&&(n+=32),n!==s.string[e])return;r.state=o.MATCH,r.phraseLength=i}},eo=function(e,t,r){let n,s,i,a;let l=u[e];r.state=o.NOMATCH,r.phraseLength=0,a=l.index<y.length?y[l.index].lower:b[l.index-y.length].lower;let c=l.bkrMode===o.BKR_MODE_PM?r.pFrame.getPhrase(a):r.uFrame.getPhrase(a),h=l.bkrCase===o.BKR_MODE_CI;if(null===c)return;let f=c.phraseIndex,p=c.phraseLength;if(0===p){r.state=o.EMPTY,r.phraseLength=0;return}let g=t-p;if(g>=0){if(h){for(n=0;n<p;n+=1)if(s=d[g+n],i=d[f+n],s>=65&&s<=90&&(s+=32),i>=65&&i<=90&&(i+=32),s!==i)return;r.state=o.MATCH,r.phraseLength=p}else for(n=0;n<p;n+=1)if((s=d[g+n])!==(i=d[f+n]))return;r.state=o.MATCH,r.phraseLength=p}};e=function(e,t,r){let n=!0,s=u[e];
210if((p+=1)>E)throw Error(`parser: maximum number of node hits exceeded: ${E}`);if((h+=1)>f&&(f=h)>v)throw Error(`parser: maximum parse tree depth exceeded: ${v}`);if(r.refresh(),null!==c.trace){let e=O();c.trace.down(s,r.state,t,r.phraseLength,e.anchor,e.lookAround)}if(i[i.length-1].lookAround===o.LOOKAROUND_BEHIND)switch(s.type){case o.ALT:U(e,t,r);break;case o.CAT:et(e,t,r);break;case o.REP:er(e,t,r);break;case o.RNM:G(e,t,r);break;case o.UDT:Q(e,t,r);break;case o.AND:V(e,t,r);break;case o.NOT:z(e,t,r);break;case o.TRG:en(e,t,r);break;case o.TBS:es(e,t,r);break;case o.TLS:ei(e,t,r);break;case o.BKR:eo(e,t,r);break;case o.BKA:X(e,t,r);break;case o.BKN:ee(e,t,r);break;case o.ABG:q(e,t,r);break;case o.AEN:Z(e,t,r);break;default:n=!1}else switch(s.type){case o.ALT:U(e,t,r);break;case o.CAT:j(e,t,r);break;case o.REP:_(e,t,r);break;case o.RNM:G(e,t,r);break;case o.UDT:Q(e,t,r);break;case o.AND:V(e,t,r);break;case o.NOT:z(e,t,r);break;case o.TRG:J(e,t,r);break;case o.TBS:W(e,t,r);break;case o.TLS:$(e,t,r);break;case o.BKR:Y(e,t,r);break;case o.BKA:X(e,t,r);break;case o.BKN:ee(e,t,r);break;case o.ABG:q(e,t,r);break;case o.AEN:Z(e,t,r);break;default:n=!1}if(!S()&&t+r.phraseLength>w&&(w=t+r.phraseLength),null!==c.stats&&c.stats.collect(s,r),null!==c.trace){let e=O();c.trace.up(s,r.state,t,r.phraseLength,e.anchor,e.lookAround)}return h-=1,n}}},26154:function(e,t,r){e.exports=function(){let e;let t=r(87404),n=r(45028),s=r(74516),i=[],o=[],a=[],l=[],c=[];this.statsObject="statsObject";let u=function(e,t){return e.lower<t.lower?-1:e.lower>t.lower?1:0},d=function(e,t){return e.total<t.total?1:e.total>t.total?-1:u(e,t)},h=function(e,t){return e.index<t.index?-1:e.index>t.index?1:0},f=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},p=function(){a.length=0,e=new f,a[t.ALT]=new f,a[t.CAT]=new f,a[t.REP]=new f,a[t.RNM]=new f,a[t.TRG]=new f,a[t.TBS]=new f,a[t.TLS]=new f,a[t.UDT]=new f,a[t.AND]=new f,a[t.NOT]=new f,a[t.BKR]=new f,a[t.BKA]=new f,a[t.BKN]=new f,a[t.ABG]=new f,a[t.AEN]=new f,l.length=0;for(let e=0;e<i.length;e+=1)l.push({empty:0,match:0,nomatch:0,total:0,name:i[e].name,lower:i[e].lower,index:i[e].index});if(o.length>0){c.length=0;for(let e=0;e<o.length;e+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:o[e].name,lower:o[e].lower,index:o[e].index})}},g=function(e,r){switch(e.total+=1,r){case t.EMPTY:e.empty+=1;break;case t.MATCH:e.match+=1;break;case t.NOMATCH:e.nomatch+=1;break;default:throw Error(`stats.js: collect(): incStat(): unrecognized state: ${r}`)}},m=function(e,t){return`<tr><td class="${s.CLASS_ACTIVE}">${e}</td><td class="${s.CLASS_EMPTY}">${t.empty}</td><td class="${s.CLASS_MATCH}">${t.match}</td><td class="${s.CLASS_NOMATCH}">${t.nomatch}</td><td class="${s.CLASS_ACTIVE}">${t.total}</td></tr>
211`},y=function(){return""+(m("ALT",a[t.ALT])+m("CAT",a[t.CAT])+m("REP",a[t.REP])+m("RNM",a[t.RNM])+m("TRG",a[t.TRG])+m("TBS",a[t.TBS])+m("TLS",a[t.TLS])+m("UDT",a[t.UDT])+m("AND",a[t.AND])+m("NOT",a[t.NOT])+m("BKR",a[t.BKR])+m("BKA",a[t.BKA])+m("BKN",a[t.BKN])+m("ABG",a[t.ABG])+m("AEN",a[t.AEN])+m("totals",e))},b=function(){let e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n<tr><th>rules</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<i.length;t+=1)l[t].total>0&&(e+=`<tr><td class="${s.CLASS_ACTIVE}">${l[t].name}</td><td class="${s.CLASS_EMPTY}">${l[t].empty}</td><td class="${s.CLASS_MATCH}">${l[t].match}</td><td class="${s.CLASS_NOMATCH}">${l[t].nomatch}</td><td class="${s.CLASS_ACTIVE}">${l[t].total}</td></tr>
212`);if(o.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<o.length;t+=1)c[t].total>0&&(e+=`<tr><td class="${s.CLASS_ACTIVE}">${c[t].name}</td><td class="${s.CLASS_EMPTY}">${c[t].empty}</td><td class="${s.CLASS_MATCH}">${c[t].match}</td><td class="${s.CLASS_NOMATCH}">${c[t].nomatch}</td><td class="${s.CLASS_ACTIVE}">${c[t].total}</td></tr>
213`)}return e};this.validate=function(e){let t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(e,t){i=e,o=t,p()},this.collect=function(r,n){g(e,n.state,n.phraseLength),g(a[r.type],n.state,n.phraseLength),r.type===t.RNM&&g(l[r.index],n.state,n.phraseLength),r.type===t.UDT&&g(c[r.index],n.state,n.phraseLength)},this.toHtml=function(e,t){let r="";for(r+=`<table class="${s.CLASS_STATS}">
214`,"string"==typeof t&&(r+=`<caption>${t}</caption>
215`),r+=`<tr><th class="${s.CLASS_ACTIVE}">ops</th>
216<th class="${s.CLASS_EMPTY}">EMPTY</th>
217<th class="${s.CLASS_MATCH}">MATCH</th>
218<th class="${s.CLASS_NOMATCH}">NOMATCH</th>
219<th class="${s.CLASS_ACTIVE}">totals</th></tr>
220`;;){if(null==e||"ops"===e){r+=y();break}if("index"===e){l.sort(h),c.length>0&&c.sort(h),r+=y()+b();break}if("hits"===e){l.sort(d),c.length>0&&c.sort(h),r+=y()+b();break}"alpha"===e&&(l.sort(u),c.length>0&&c.sort(u),r+=y()+b());break}return r+"</table>\n"},this.toHtmlPage=function(e,t,r){return n.htmlToPage(this.toHtml(e,t),r)}}},74516:function(e){e.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}},80868:function(e,t,r){e.exports=function(){let e=r(45028),t=r(74516),n=new(r(11048)),s=r(87404),i="trace.js: ",o=this,a=[],l=5e3,c=-1,u=0,d=0,h=[],f=null,p=null,g=null,m=[],y=[],b=`<span class="${t.CLASS_LINEEND}">&bull;</span>`,A=`<span class="${t.CLASS_LINEEND}">&hellip;</span>`,w=`<span class="${t.CLASS_EMPTY}">&#120634;</span>`,v=function(){let e=function(e){m[s.ALT]=e,m[s.CAT]=e,m[s.REP]=e,m[s.TLS]=e,m[s.TBS]=e,m[s.TRG]=e,m[s.AND]=e,m[s.NOT]=e,m[s.BKR]=e,m[s.BKA]=e,m[s.BKN]=e,m[s.ABG]=e,m[s.AEN]=e},t=0;for(let e in o.filter.operators)t+=1;if(0===t){e(!1);return}for(let t in o.filter.operators){let r=t.toUpperCase();if("<ALL>"===r){e(!0);return}if("<NONE>"===r){e(!1);return}}for(let t in e(!1),o.filter.operators){let e=t.toUpperCase();if("ALT"===e)m[s.ALT]=!0===o.filter.operators[t];else if("CAT"===e)m[s.CAT]=!0===o.filter.operators[t];else if("REP"===e)m[s.REP]=!0===o.filter.operators[t];else if("AND"===e)m[s.AND]=!0===o.filter.operators[t];else if("NOT"===e)m[s.NOT]=!0===o.filter.operators[t];else if("TLS"===e)m[s.TLS]=!0===o.filter.operators[t];else if("TBS"===e)m[s.TBS]=!0===o.filter.operators[t];else if("TRG"===e)m[s.TRG]=!0===o.filter.operators[t];else if("BKR"===e)m[s.BKR]=!0===o.filter.operators[t];else if("BKA"===e)m[s.BKA]=!0===o.filter.operators[t];else if("BKN"===e)m[s.BKN]=!0===o.filter.operators[t];else if("ABG"===e)m[s.ABG]=!0===o.filter.operators[t];else if("AEN"===e)m[s.AEN]=!0===o.filter.operators[t];else throw Error(`${i}initOpratorFilter: '${t}
220' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn`)}},E=function(){let e,t;let r=function(e){m[s.RNM]=e,m[s.UDT]=e;let t=p.length+g.length;y.length=0;for(let r=0;r<t;r+=1)y.push(e)},n=[];for(t=0;t<p.length;t+=1)n.push(p[t].lower);for(t=0;t<g.length;t+=1)n.push(g[t].lower);for(let t in y.length=0,e=0,o.filter.rules)e+=1;if(0===e){r(!0);return}for(let e in o.filter.rules){let t=e.toLowerCase();if("<all>"===t){r(!0);return}if("<none>"===t){r(!1);return}}for(let e in r(!1),m[s.RNM]=!0,m[s.UDT]=!0,o.filter.rules){let r=e.toLowerCase();if((t=n.indexOf(r))<0)throw Error(`${i}initRuleFilter: '${e}' not a valid rule or udt name`);y[t]=!0===o.filter.rules[e]}};this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){if(c=-1,"number"==typeof e&&e>0)l=Math.ceil(e);else{l=0;return}"number"==typeof t&&(c=Math.floor(t))<0&&(c=-1)},this.getMaxRecords=function(){return l},this.getLastRecord=function(){return c},this.init=function(e,t,r){a.length=0,h.length=0,u=0,d=0,f=r,p=e,g=t,v(),E(),n.init(l)};let P=function(e){return e.type===s.RNM?!!m[e.type]&&!!y[e.index]:e.type===s.UDT?!!m[e.type]&&!!y[p.length+e.index]:m[e.type]},k=function(e){return -1===c||e<=c};this.down=function(e,t,r,s,i,o){k(u)&&P(e)&&(h.push(u),a[n.increment()]={dirUp:!1,depth:d,thisLine:u,thatLine:void 0,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:o},u+=1,d+=1)},this.up=function(e,t,r,s,i,o){if(k(u)&&P(e)){let l=u,c=h.pop(),f=n.getListIndex(c);-1!==f&&(a[f].thatLine=l),d-=1,a[n.increment()]={dirUp:!0,depth:d,thisLine:l,thatLine:c,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:o},u+=1}};let x=function(){let t,r,i,o,l;function c(t,r){let n,i,o;if(r)switch(t.op={id:r.type,name:e.opcodeToString(r.type)},t.opData=void 0,r.type){case s.RNM:t.opData=p[r.index].name;break;case s.UDT:t.opData=g[r.index].name;break;case s.BKR:n=r.index<p.length?p[r.index].name:g[r.index-p.length].name,i=r.bkrCase===s.BKR_MODE_CI?"%i":"%s",o=r.bkrMode===s.BKR_MODE_UM?"%u":"%p",t.opData=`\\\\${i}${o}${n}`;break;case s.TLS:t.opData=[];for(let e=0;e<r.string.length;e+=1)t.opData.push(r.string[e]);break;case s.TBS:t.opData=[];for(let e=0;e<r.string.length;e+=1)t.opData.push(r.string[e]);break;case s.TRG:case s.REP:t.opData=[r.min,r.max];break;default:throw Error("unrecognized opcode")}else t.op={id:void 0,name:void 0},t.opData=void 0}function u(e,t,r){return e===s.MATCH?{index:t,length:r}:e===s.NOMATCH||e===s.EMPTY?{index:t,length:0}:null}let h=-1;function m(t,r,n){let s={id:h++,branch:-1,parent:t,up:!1,down:!1,depth:n,children:[]};return r?(s.down=!0,s.state={id:r.state,name:e.stateToString(r.state)},s.phrase=null,c(s,r.opcode)):(s.state={id:void 0,name:void 0},s.phrase=u(),c(s,void 0)),s}function y(t,r){r&&(t.up=!0,t.state={id:r.state,name:e.stateToString(r.state)},t.phrase=u(r.state,r.phraseIndex,r.phraseLength),t.down||c(t,r.opcode))}let b=0,A=-1,w=1,v=[],E=!0,P=m(null,null,-1);for(v.push(P),r=P,n.forEach(e=>{if(o=a[e],E&&(E=!1,o.depth>0)){let e=o.dirUp?o.depth+1:o.depth;for(let t=0;t<e;t+=1)i=r,r=m(r,null,t),v.push(r),i.children.push(r)}o.dirUp?(y(r=v.pop(),o),r=v[v.length-1]):(i=r,r=m(r,o,o.depth),v.push(r),i.children.push(r))});v.length>1;)y(r=v.pop(),null);if(0===P.children.length)throw Error("trace.toTree(): parse tree has no nodes");if(0===v.length)throw Error("trace.toTree(): integrity check: dummy root node disappeared?");let k=t=P.children[0];for(;t&&!t.down&&!t.up;)k=t,t=t.children[0];(t=k).leftMost=!0,t.rightMost=!0,function e(t){if(A+=1,t.branch=w,A>d&&(d=A),0===t.children.length)b+=1;else for(let r=0;r<t.children.length;r+=1)r>0&&(w+=1),t.children[r].leftMost=!1,t.children[r].rightMost=!1,t.leftMost&&(t.children[r].leftMost=0===r),t.rightMost&&(t.children[r].rightMost=r===t.children.length-1),e(t.children[r]);A-=1}(t),t.branch=0;let x={};x.string=[];for(let e=0;e<f.length;e+=1)x.string[e]=f[e];x.rules=[];for(let e=0;e<p.length;e+=1)x.rules[e]=p[e].name;x.udts=[];for(let e=0;e<g.length;e+=1)x.udts[e]=g[e].name;return x.id={},x.id.ALT={id:s.ALT,name:"ALT"},x.id.CAT={id:s.CAT,name:"CAT"},x.id.REP={id:s.REP,name:"REP"},x.id.RNM={id:s.RNM,name:"RNM"},x.id.TLS={id:s.TLS,name:"TLS"},x.id.TBS={id:s.TBS,name:"TBS"},x.id.TRG={id:s.TRG,name:"TRG"},x.id.UDT={id:s.UDT,name:"UDT"}
220,x.id.AND={id:s.AND,name:"AND"},x.id.NOT={id:s.NOT,name:"NOT"},x.id.BKR={id:s.BKR,name:"BKR"},x.id.BKA={id:s.BKA,name:"BKA"},x.id.BKN={id:s.BKN,name:"BKN"},x.id.ABG={id:s.ABG,name:"ABG"},x.id.AEN={id:s.AEN,name:"AEN"},x.id.ACTIVE={id:s.ACTIVE,name:"ACTIVE"},x.id.MATCH={id:s.MATCH,name:"MATCH"},x.id.EMPTY={id:s.EMPTY,name:"EMPTY"},x.id.NOMATCH={id:s.NOMATCH,name:"NOMATCH"},x.treeDepth=d,x.leafNodes=b,l=t.down?t.up?"none":"right":t.up?"left":"both",x.branchesIncomplete=l,x.tree=function e(t,r){let n;let s={};if(s.id=t.id,s.branch=t.branch,s.leftMost=t.leftMost,s.rightMost=t.rightMost,n=t.state.name?t.state.name:"ACTIVE",s.state={id:t.state.id,name:n},n=t.op.name?t.op.name:"?",s.op={id:t.op.id,name:n},"string"==typeof t.opData)s.opData=t.opData;else if(Array.isArray(t.opData)){s.opData=[];for(let e=0;e<t.opData.length;e+=1)s.opData[e]=t.opData[e]}else s.opData=void 0;t.phrase?s.phrase={index:t.phrase.index,length:t.phrase.length}:s.phrase=null,s.depth=t.depth,s.children=[];for(let n=0;n<t.children.length;n+=1){let i=n!==t.children.length-1;s.children[n]=e(t.children[n],r,i)}return s}(t,t.depth,!1),x};this.toTree=function(e){let t=x();return e?JSON.stringify(t):t},this.toHtmlPage=function(t,r,n){return e.htmlToPage(this.toHtml(t,r),n)};let C=function(e,r){let n;switch(e){case 16:n="hexadecimal";break;case 10:n="decimal";break;case 8:n="ASCII";break;case 32:n="UNICODE";break;default:throw Error(`${i}htmlHeader: unrecognized mode: ${e}`)}let s="";return s+=`<p>display mode: ${n}</p>
221<table class="${t.CLASS_TRACE}">
222`,"string"==typeof r&&(s+=`<caption>${r}</caption>`),s};this.indent=function(e){let t="";for(let r=0;r<e;r+=1)t+=".";return t};let T=function(e,t){let r="";if(t.type===s.TRG){if(16===e||32===e){let n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n=`0${n}`),r+=(16===e?"%x":"U+")+n,(n=t.max.toString(16).toUpperCase()).length%2!=0&&(n=`0${n}`),r+=`&ndash;${n}`}else r=`%d${t.min.toString(10)}&ndash;${t.max.toString(10)}`}return r},O=function(e,t){let r="";if(t.type===s.REP){if(16===e){let e=t.min.toString(16).toUpperCase();e.length%2!=0&&(e=`0${e}`),r=`x${e}`,t.max<1/0?(e=t.max.toString(16).toUpperCase()).length%2!=0&&(e=`0${e}`):e="inf",r+=`&ndash;${e}`}else r=t.max<1/0?`${t.min.toString(10)}&ndash;${t.max.toString(10)}`:`${t.min.toString(10)}&ndash;inf`}return r},S=function(e,t){let r="";if(t.type===s.TBS){let n=Math.min(t.string.length,10);if(16===e||32===e){r+=16===e?"%x":"U+";for(let e=0;e<n;e+=1){let n;e>0&&(r+="."),(n=t.string[e].toString(16).toUpperCase()).length%2!=0&&(n=`0${n}`),r+=n}}else{r="%d";for(let e=0;e<n;e+=1)e>0&&(r+="."),r+=t.string[e].toString(10)}n<t.string.length&&(r+=A)}return r},B=function(t,r){let n="";if(r.type===s.TLS){let s=Math.min(r.string.length,5);if(16===t||10===t){let e,i,o;16===t?(n="%x",o=16):(n="%d",o=10);for(let t=0;t<s;t+=1)t>0&&(n+="."),(i=r.string[t])>=97&&i<=122?(e=i-32,n+=`${e.toString(o)}/${i.toString(o)}`.toUpperCase()):i>=65&&i<=90?(e=i,i+=32,n+=`${e.toString(o)}/${i.toString(o)}`.toUpperCase()):n+=i.toString(o).toUpperCase();s<r.string.length&&(n+=A)}else{n='"';for(let t=0;t<s;t+=1)n+=e.asciiChars[r.string[t]];s<r.string.length&&(n+=A),n+='"'}}return n},R=function(t,r,n,s,i){if(0===s)return"";let o="",a=i?",":"";switch(t){case 16:o=a+e.charsToHex(r,n,s);break;case 10:if(i)return`,${e.charsToDec(r,n,s)}`;o=a+e.charsToDec(r,n,s);break;case 32:o=e.charsToUnicode(r,n,s);break;default:o=e.charsToAsciiHtml(r,n,s)}return o},N=function(e,r,n,i,o,a){let l,c,u,d,h="",f=b,p=`<span class="${t.CLASS_LOOKBEHIND}">`,g=`<span class="${t.CLASS_REMAINDER}">`,m="</span>",y=!1;switch(n){case s.EMPTY:h+=w;case s.NOMATCH:case s.MATCH:case s.ACTIVE:c=a-(l=i-o),u=a,d=r.length-u;break;default:throw Error("unrecognized state")}return f=b,c>80?(c=80,f=A,d=0):c+d>80&&(f=A,d=80-c),c>0&&(h+=p+R(e,r,l,c,y)+m,y=!0),d>0&&(h+=g+R(e,r,u,d,y)+m),h+f},M=function(e,r,n,i,o,a){let l,c,u,d,h="",f=b,p=`<span class="${t.CLASS_REMAINDER}">`,g="</span>",m=!1;switch(n){case s.EMPTY:h+=w;case s.NOMATCH:case s.ACTIVE:l=i,c=0,u=i,d=r.length-u;break;case s.MATCH:l=i,u=i+(c=o),d=r.length-u;break;default:throw Error("unrecognized state")}return f=b,c>80?(c=80,f=A,d=0):c+d>80&&(f=A,d=80-c),c>0&&(h+=a+R(e,r,l,c,m)+g,m=!0),d>0&&(h+=p+R(e,r,u,d,m)+g),h+f},I=function(r){let i,l,c,u,d,h;if(null===p)return"";let m="";return m+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th><th>operator</th><th>phrase</th></tr>
222\n",n.forEach(n=>{let y=a[n];switch(i=y.thisLine,l=void 0!==y.thatLine?y.thatLine:"--",c=!1,u=!1,d=!1,y.lookAround===s.LOOKAROUND_AHEAD&&(c=!0,d=!0,h=y.lookAnchor),(y.opcode.type===s.AND||y.opcode.type===s.NOT)&&(c=!0,d=!0,h=y.phraseIndex),y.lookAround===s.LOOKAROUND_BEHIND&&(u=!0,d=!0,h=y.lookAnchor),(y.opcode.type===s.BKA||y.opcode.type===s.BKN)&&(u=!0,d=!0,h=y.phraseIndex),m+=`<tr><td>${i}</td><td>${l}</td><td>${y.phraseIndex}</td><td>${y.phraseLength}</td><td>${y.depth}</td><td>`,y.state){case s.ACTIVE:m+=`<span class="${t.CLASS_ACTIVE}">&darr;&nbsp;</span>`;break;case s.MATCH:m+=`<span class="${t.CLASS_MATCH}">&uarr;M</span>`;break;case s.NOMATCH:m+=`<span class="${t.CLASS_NOMATCH}">&uarr;N</span>`;break;case s.EMPTY:m+=`<span class="${t.CLASS_EMPTY}">&uarr;E</span>`;break;default:m+=`<span class="${t.CLASS_ACTIVE}">--</span>`}if(m+="</td><td>"+o.indent(y.depth),c?m+=`<span class="${t.CLASS_LOOKAHEAD}">`:u&&(m+=`<span class="${t.CLASS_LOOKBEHIND}">`),m+=e.opcodeToString(y.opcode.type),y.opcode.type===s.RNM&&(m+=`(${p[y.opcode.index].name}) `),y.opcode.type===s.BKR){let e=y.opcode.bkrCase===s.BKR_MODE_CI?"%i":"%s",t=y.opcode.bkrMode===s.BKR_MODE_UM?"%u":"%p";m+=`(\\${e}${t}${p[y.opcode.index].name}) `}(y.opcode.type===s.UDT&&(m+=`(${g[y.opcode.index].name}) `),y.opcode.type===s.TRG&&(m+=`(${T(r,y.opcode)}) `),y.opcode.type===s.TBS&&(m+=`(${S(r,y.opcode)}) `),y.opcode.type===s.TLS&&(m+=`(${B(r,y.opcode)}) `),y.opcode.type===s.REP&&(m+=`(${O(r,y.opcode)}) `),d&&(m+="</span>"),m+="</td><td>",u)?m+=N(r,f,y.state,y.phraseIndex,y.phraseLength,h):c?m+=M(r,f,y.state,y.phraseIndex,y.phraseLength,`<span class="${t.CLASS_LOOKAHEAD}">`):m+=M(r,f,y.state,y.phraseIndex,y.phraseLength,`<span class="${t.CLASS_MATCH}">`),m+="</td></tr>\n"}),m+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th><th>operator</th><th>phrase</th></tr>\n</table>\n"};this.toHtml=function(e,r){let n=8;if("string"==typeof e&&e.length>=3){let t=e.toLowerCase().slice(0,3);"hex"===t?n=16:"dec"===t?n=10:"uni"===t&&(n=32)}return C(n,r)+I(n)+""+`</table>
223<p class="${t.CLASS_MONOSPACE}">legend:<br>
224(a)&nbsp;-&nbsp;line number<br>
225(b)&nbsp;-&nbsp;matching line number<br>
226(c)&nbsp;-&nbsp;phrase offset<br>
227(d)&nbsp;-&nbsp;phrase length<br>
228(e)&nbsp;-&nbsp;tree depth<br>
229(f)&nbsp;-&nbsp;operator state<br>
230&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_ACTIVE}">&darr;</span>&nbsp;&nbsp;phrase opened<br>
231&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_MATCH}">&uarr;M</span> phrase matched<br>
232&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_EMPTY}">&uarr;E</span> empty phrase matched<br>
233&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_NOMATCH}">&uarr;N</span> phrase not matched<br>
234operator&nbsp;-&nbsp;ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>&dagger;</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>&Dagger;</sup><br>
235phrase&nbsp;&nbsp;&nbsp;-&nbsp;up to 80 characters of the phrase being matched<br>
236&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_MATCH}">matched characters</span><br>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_LOOKAHEAD}">matched characters in look ahead mode</span><br>
238&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_LOOKBEHIND}">matched characters in look behind mode</span><br>
239&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_REMAINDER}">remainder characters(not yet examined by parser)</span><br>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_CTRLCHAR}">control characters, TAB, LF, CR, etc. (ASCII mode only)</span><br>
241&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${w} empty string<br>
242&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${b} end of input string<br>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${A} input string display truncated<br>
244</p>
245<p class="${t.CLASS_MONOSPACE}">
246<sup>&dagger;</sup>original ABNF operators:<br>
247ALT - alternation<br>
248CAT - concatenation<br>
249REP - repetition<br>
250RNM - rule name<br>
251TRG - terminal range<br>
252TLS - terminal literal string (case insensitive)<br>
253TBS - terminal binary string (case sensitive)<br>
254<br>
255<sup>&Dagger;</sup>super set SABNF operators:<br>
256UDT - user-defined terminal<br>
257AND - positive look ahead<br>
258NOT - negative look ahead<br>
259BKA - positive look behind<br>
260BKN - negative look behind<br>
261BKR - back reference<br>
262ABG - anchor - begin of input string<br>
263AEN - anchor - end of input string<br>
264</p>
265`}}},45028:function(e,t,r){let n=r(74516),s=r(1531),i=r(66224),o=r(87404),a="utilities.js: ",l=function(e,t,r){let n;let s=t;for(;;){if(e<=0){s=0,n=0;break}if("number"!=typeof s){s=0,n=e;break}if(s>=e){s=e,n=e;break}if("number"!=typeof r){n=e;break}(n=s+r)>e&&(n=e);break}return{beg:s,end:n}};t.htmlToPage=function(e,t){let r;if("string"!=typeof e)throw Error(`${a}htmlToPage: input HTML is not a string`);return r="string"!=typeof t?"htmlToPage":t,`<!DOCTYPE html>
266<html lang="en">
267<head>
268<meta charset="utf-8">
269<title>${r}</title>
270<style>
271`+i()+"</style>\n</head>\n<body>\n"+`<p>${new Date}</p>
272`+e+"</body>\n</html>\n"},t.parserResultToHtml=function(e,t){let r,s,i=null;"string"==typeof t&&""!==t&&(i=t),r=!0===e.success?`<span class="${n.CLASS_MATCH}">true</span>`:`<span class="${n.CLASS_NOMATCH}">
272false</span>`,s=e.state===o.EMPTY?`<span class="${n.CLASS_EMPTY}">EMPTY</span>`:e.state===o.MATCH?`<span class="${n.CLASS_MATCH}">MATCH</span>`:e.state===o.NOMATCH?`<span class="${n.CLASS_NOMATCH}">NOMATCH</span>`:`<span class="${n.CLASS_NOMATCH}">unrecognized</span>`;let a="";return a+=`<table class="${n.CLASS_STATE}">
273`,i&&(a+=`<caption>${i}</caption>
274`),a+=`<tr><th>state item</th><th>value</th><th>description</th></tr>
275<tr><td>parser success</td><td>${r}</td>
276<td><span class="${n.CLASS_MATCH}">true</span> if the parse succeeded,
277 <span class="${n.CLASS_NOMATCH}">false</span> otherwise<br><i>NOTE: for success, entire string must be matched</i></td></tr>
278<tr><td>parser state</td><td>${s}</td>
279<td><span class="${n.CLASS_EMPTY}">EMPTY</span>, <span class="${n.CLASS_MATCH}">MATCH</span> or 
280<span class="${n.CLASS_NOMATCH}">NOMATCH</span></td></tr>
281<tr><td>string length</td><td>${e.length}</td><td>length of the input (sub)string</td></tr>
282<tr><td>matched length</td><td>${e.matched}</td><td>number of input string characters matched</td></tr>
283<tr><td>max matched</td><td>${e.maxMatched}</td><td>maximum number of input string characters matched</td></tr>
284<tr><td>max tree depth</td><td>${e.maxTreeDepth}</td><td>maximum depth of the parse tree reached</td></tr>
285<tr><td>node hits</td><td>${e.nodeHits}</td><td>number of parse tree node hits (opcode function calls)</td></tr>
286<tr><td>input length</td><td>${e.inputLength}</td><td>length of full input string</td></tr>
287<tr><td>sub-string begin</td><td>${e.subBegin}</td><td>sub-string first character index</td></tr>
288<tr><td>sub-string end</td><td>${e.subEnd}</td><td>sub-string end-of-string index</td></tr>
289<tr><td>sub-string length</td><td>${e.subLength}</td><td>sub-string length</td></tr>
290</table>
291`},t.charsToString=function(e,t,r){let n,i;if("number"==typeof t){if(t>=e.length)return"";n=t<0?0:t}else n=0;if("number"==typeof r){if(r<=0)return"";i=r>e.length-n?e.length:n+r}else i=e.length;return n<i?s.encode("UTF16LE",e.slice(n,i)).toString("utf16le"):""},t.stringToChars=function(e){return s.decode("STRING",e)},t.opcodeToString=function(e){let t="unknown";switch(e){case o.ALT:t="ALT";break;case o.CAT:t="CAT";break;case o.RNM:t="RNM";break;case o.UDT:t="UDT";break;case o.AND:t="AND";break;case o.NOT:t="NOT";break;case o.REP:t="REP";break;case o.TRG:t="TRG";break;case o.TBS:t="TBS";break;case o.TLS:t="TLS";break;case o.BKR:t="BKR";break;case o.BKA:t="BKA";break;case o.BKN:t="BKN";break;case o.ABG:t="ABG";break;case o.AEN:t="AEN";break;default:throw Error("unrecognized opcode")}return t},t.stateToString=function(e){let t="unknown";switch(e){case o.ACTIVE:t="ACTIVE";break;case o.MATCH:t="MATCH";break;case o.EMPTY:t="EMPTY";break;case o.NOMATCH:t="NOMATCH";break;default:throw Error("unrecognized state")}return t},t.asciiChars=["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","SO","SI","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US","&nbsp;","!","&#34;","#","$","%","&#38;","&#39;","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&#60;","=","&#62;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","&#92;","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","DEL"],t.charToHex=function(e){let t=e.toString(16).toUpperCase();switch(t.length){case 1:case 3:case 7:t=`0${t}`;break;case 2:case 6:t=`00${t}`;break;case 4:break;case 5:t=`000${t}`;break;default:throw Error("unrecognized option")}return t},t.charsToDec=function(e,t,r){let n="";if(!Array.isArray(e))throw Error(`${a}charsToDec: input must be an array of integers`);let s=l(e.length,t,r);if(s.end>s.beg){n+=e[s.beg];for(let t=s.beg+1;t<s.end;t+=1)n+=`,${e[t]}`}return n},t.charsToHex=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${a}charsToHex: input must be an array of integers`);let i=l(e.length,r,n);if(i.end>i.beg){s+=`\\x${t.charToHex(e[i.beg])}`;for(let r=i.beg+1;r<i.end;r+=1)s+=`,\\x${t.charToHex(e[r])}`}return s},t.charsToHtmlEntities=function(e,t,r){let n="";if(!Array.isArray(e))throw Error(`${a}charsToHex: input must be an array of integers`);let s=l(e.length,t,r);if(s.end>s.beg)for(let t=s.beg;t<s.end;t+=1)n+=`&#x${e[t].toString(16)};`;return n},t.charsToUnicode=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${a}charsToUnicode: input must be an array of integers`);let i=l(e.length,r,n);if(i.end>i.beg)for(let r=i.beg;r<i.end;r+=1){var o;((o=e[r])>=55296&&o<=57343||o>1114111?1:0)?s+=` U+${t.charToHex(e[r])}`:s+=`&#${e[r]};`}return s},t.charsToJsUnicode=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${a}charsToJsUnicode: input must be an array of integers`);let i=l(e.length,r,n);if(i.end>i.beg){s+=`\\u${t.charToHex(e[i.beg])}`;for(let r=i.beg+1;r<i.end;r+=1)s+=`,\\u${t.charToHex(e[r])}`}return s},t.charsToAscii=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${a}charsToAscii: input must be an array of integers`);let i=l(e.length,r,n);for(let r=i.beg;r<i.end;r+=1){let n=e[r];n>=32&&n<=126?s+=String.fromCharCode(n):s+=`\\x${t.charToHex(n)}`}return s},t.charsToAsciiHtml=function(e,r,s){let i;if(!Array.isArray(e))throw Error(`${a}charsToAsciiHtml: input must be an array of integers`);let o="",c=l(e.length,r,s);for(let r=c.beg;r<c.end;r+=1)(i=e[r])<32||127===i?o+=`<span class="${n.CLASS_CTRLCHAR}">${t.asciiChars[i]}</span>`:i>127?o+=`<span class="${n.CLASS_CTRLCHAR}">U+${t.charToHex(i)}</span>`:o+=t.asciiChars[i];return o},t.stringToAsciiHtml=function(e){let t=s.decode("STRING",e);return this.charsToAsciiHtml(t)}},33014:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function s(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,o){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new s(n,i||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,s=[];if(0===this._eventsCount)return s;for(n in e=this._events)t.call(e,n)&&s.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var s=0,i=n.length,o=Array(i);s<i;s++)o[s]=n[s].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,s,i,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,s),!0;case 5:return u.fn.call(u.context,t,n,s,i),!0;case 6:return u.fn.call(u.context,t,n,s,i,o),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,s);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,s){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||s&&!a.once||n&&a.context!==n||o(this,i);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||s&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},32212:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
292 * @license lucide-react v0.367.0 - ISC
293 *
294 * This source code is licensed under the ISC license.
295 * See the LICENSE file in the root directory of this source tree.
296 */let n=(0,r(33823).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},35136:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
297 * @license lucide-react v0.367.0 - ISC
298 *
299 * This source code is licensed under the ISC license.
300 * See the LICENSE file in the root directory of this source tree.
301 */let n=(0,r(33823).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},44673:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
302 * @license lucide-react v0.367.0 - ISC
303 *
304 * This source code is licensed under the ISC license.
305 * See the LICENSE file in the root directory of this source tree.
306 */let n=(0,r(33823).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},25515:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
307 * @license lucide-react v0.367.0 - ISC
308 *
309 * This source code is licensed under the ISC license.
310 * See the LICENSE file in the root directory of this source tree.
311 */let n=(0,r(33823).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},60362:function(e,t,r){"use strict";r.d(t,{default:function(){return s.a}});var n=r(70479),s=r.n(n)},70479:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return a}});let n=r(44573),s=r(8322),i=r(95881),o=n._(r(27240));function a(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},84651:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(s,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SiweMessage=void 0;let a=r(27885),l=i(r(16701)),c=r(55865),u=r(96076),d=r(55013);class h{constructor(e){if("string"==typeof e){let t=new a.ParsedMessage(e);this.scheme=t.scheme,this.domain=t.domain,this.address=t.address,this.statement=t.statement,this.uri=t.uri,this.version=t.version,this.nonce=t.nonce,this.issuedAt=t.issuedAt,this.expirationTime=t.expirationTime,this.notBefore=t.notBefore,this.requestId=t.requestId,this.chainId=t.chainId,this.resources=t.resources}else this.scheme=null==e?void 0:e.scheme,this.domain=e.domain,this.address=e.address,this.statement=null==e?void 0:e.statement,this.uri=e.uri,this.version=e.version,this.chainId=e.chainId,this.nonce=e.nonce,this.issuedAt=null==e?void 0:e.issuedAt,this.expirationTime=null==e?void 0:e.expirationTime,this.notBefore=null==e?void 0:e.notBefore,this.requestId=null==e?void 0:e.requestId,this.resources=null==e?void 0:e.resources,"string"==typeof this.chainId&&(this.chainId=(0,a.parseIntegerNumber)(this.chainId));this.nonce=this.nonce||(0,d.generateNonce)(),this.validateMessage()}toMessage(){this.validateMessage();let e=this.scheme?`${this.scheme}://${this.domain}`:this.domain,t=`${e} wants you to sign in with your Ethereum account:`,r=`URI: ${this.uri}`,n=[t,this.address].join("\n"),s=`Version: ${this.version}`;this.nonce||(this.nonce=(0,d.generateNonce)());let i=[r,s,"Chain ID: "+this.chainId,`Nonce: ${this.nonce}`];if(this.issuedAt=this.issuedAt||new Date().toISOString(),i.push(`Issued At: ${this.issuedAt}`),this.expirationTime){let e=`Expiration Time: ${this.expirationTime}`;i.push(e)}this.notBefore&&i.push(`Not Before: ${this.notBefore}`),this.requestId&&i.push(`Request ID: ${this.requestId}`),this.resources&&i.push(["Resources:",...this.resources.map(e=>`- ${e}`)].join("\n"));let o=i.join("\n");return n=[n,this.statement].join("\n\n"),this.statement&&(n+="\n"),[n,o].join("\n")}prepareMessage(){let e;return this.version,this.toMessage()}validate(e,t){return o(this,void 0,void 0,function*(){return console.warn("validate() has been deprecated, please update your code to use verify(). validate() may be removed in future versions."),this.verify({signature:e},{provider:t,suppressExceptions:!1}).then(({data:e})=>e).catch(({error:e})=>{throw e})})}verify(e,t={suppressExceptions:!1}){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>{var s,i,o;let a,l;let h=e=>t.suppressExceptions?r(e):n(e),f=(0,d.checkInvalidKeys)(e,u.VerifyParamsKeys);f.length>0&&h({success:!1,data:this,error:Error(`${f.join(", ")} is/are not valid key(s) for VerifyParams.`)});let p=(0,d.checkInvalidKeys)(t,u.VerifyOptsKeys);f.length>0&&h({success:!1,data:this,error:Error(`${p.join(", ")} is/are not valid key(s) for VerifyOpts.`)});let{signature:g,scheme:m,domain:y,nonce:b,time:A}=e;m&&m!==this.scheme&&h({success:!1,data:this,error:new u.SiweError(u.SiweErrorType.SCHEME_MISMATCH,m,this.scheme)}),y&&y!==this.domain&&h({success:!1,data:this,error:new u.SiweError(u.SiweErrorType.DOMAIN_MISMATCH,y,this.domain)}),b&&b!==this.nonce&&h({success:!1,data:this,error:new u.SiweError(u.SiweErrorType.NONCE_MISMATCH,b,this.nonce)});let w=new Date(A||new Date);if(this.expirationTime){let e=new Date(this.expirationTime);w.getTime()>=e.getTime()&&h({success:!1,data:this,error:new u.SiweError(u.SiweErrorType.EXPIRED_MESSAGE,`${w.toISOString()} < ${e.toISOString()}`,`${w.toISOString()} >= ${e.toISOString()}`)})}if(this.notBefore){let e=new Date(this.notBefore);w.getTime()<e.getTime()&&h({success:!1,data:this,error:new u.SiweError(u.SiweErrorType.NOT_YET_VALID_MESSAGE,`${w.toISOString()} >= ${e.toISOString()}`,`${w.toISOString()} < ${e.toISOString()}`)})}try{a=this.prepareMessage()}catch(e){h({success:!1,data:this,error:e})}try{l=(0,c.verifyMessage)(a,g)}catch(e){console.error(e)}if(l===this.address)return r({success:!0,data:this});{let n=(0,d.checkContractWalletSignature)(this,g,t.provider).then(e=>e?{success:!0,data:this}:{success:!1,data:this,error:new u.SiweError(u.SiweErrorType.INVALID_SIGNATURE,l,`Resolved address to be ${this.address}`)}).catch(e=>({success:!1,data:this,error:e}));Promise.all([n,null===(o=null===(i=null===(s=null==t?void 0:t.verificationFallback)||void 0===s?void 0:s.call(t,e,t,this,n))||void 0===i?void 0:i.then(e=>e))||void 0===o?void 0:o.catch(e=>e)]).then(([e,t])=>
311{if(t){if(t.success)return r(t);h(t)}else{if(e.success)return r(e);h(e)}})}})})}validateMessage(...e){var t;if(e.length>0)throw new u.SiweError(u.SiweErrorType.UNABLE_TO_PARSE,"Unexpected argument in the validateMessage function.");if(!this.domain||0===this.domain.length||!/[^#?]*/.test(this.domain))throw new u.SiweError(u.SiweErrorType.INVALID_DOMAIN,`${this.domain} to be a valid domain.`);if(!(0,a.isEIP55Address)(this.address))throw new u.SiweError(u.SiweErrorType.INVALID_ADDRESS,(0,c.getAddress)(this.address),this.address);if(!l.isUri(this.uri))throw new u.SiweError(u.SiweErrorType.INVALID_URI,`${this.uri} to be a valid uri.`);if("1"!==this.version)throw new u.SiweError(u.SiweErrorType.INVALID_MESSAGE_VERSION,"1",this.version);let r=null===(t=this===null||void 0===this?void 0:this.nonce)||void 0===t?void 0:t.match(/[a-zA-Z0-9]{8,}/);if(!r||this.nonce.length<8||r[0]!==this.nonce)throw new u.SiweError(u.SiweErrorType.INVALID_NONCE,`Length > 8 (${r.length}). Alphanumeric.`,this.nonce);if(this.issuedAt&&!(0,d.isValidISO8601Date)(this.issuedAt)||this.expirationTime&&!(0,d.isValidISO8601Date)(this.expirationTime)||this.notBefore&&!(0,d.isValidISO8601Date)(this.notBefore))throw Error(u.SiweErrorType.INVALID_TIME_FORMAT)}}t.SiweMessage=h},55865:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.hashMessage=t.verifyMessage=void 0;let n=r(86169),s=null,i=null,o=null;try{s=n.ethers.utils.verifyMessage,i=n.ethers.utils.hashMessage,o=n.ethers.utils.getAddress}catch(e){s=n.ethers.verifyMessage,i=n.ethers.hashMessage,o=n.ethers.getAddress}t.verifyMessage=s,t.hashMessage=i,t.getAddress=o},20274:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(84651),t),s(r(96076),t),s(r(55013),t)},96076:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SiweErrorType=t.SiweError=t.VerifyOptsKeys=t.VerifyParamsKeys=void 0,t.VerifyParamsKeys=["signature","scheme","domain","nonce","time"],t.VerifyOptsKeys=["provider","suppressExceptions","verificationFallback"];class n{constructor(e,t,r){this.type=e,this.expected=t,this.received=r}}t.SiweError=n,(r=t.SiweErrorType||(t.SiweErrorType={})).EXPIRED_MESSAGE="Expired message.",r.INVALID_DOMAIN="Invalid domain.",r.SCHEME_MISMATCH="Scheme does not match provided scheme for verification.",r.DOMAIN_MISMATCH="Domain does not match provided domain for verification.",r.NONCE_MISMATCH="Nonce does not match provided nonce for verification.",r.INVALID_ADDRESS="Invalid address.",r.INVALID_URI="URI does not conform to RFC 3986.",r.INVALID_NONCE="Nonce size smaller then 8 characters or is not alphanumeric.",r.NOT_YET_VALID_MESSAGE="Message is not valid yet.",r.INVALID_SIGNATURE="Signature does not match address of the message.",r.INVALID_TIME_FORMAT="Invalid time format.",r.INVALID_MESSAGE_VERSION="Invalid message version.",r.UNABLE_TO_PARSE="Unable to parse the message."},55013:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(s,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.checkInvalidKeys=t.isValidISO8601Date=t.generateNonce=t.checkContractWalletSignature=void 0;let s=r(33967),i=r(86169),o=r(55865),a=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],l=/^(?<date>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;t.checkContractWalletSignature=(e,t,r)=>n(void 0,void 0,void 0,function*(){if(!r)return!1;let n=new i.Contract(e.address,a,r),s=(0,o.hashMessage)(e.prepareMessage());return(yield n.isValidSignature(s,t))==="0x1626ba7e"}),t.generateNonce=()=>{let e=(0,s.randomStringForEntropy)(96);if(!e||e.length<8)throw Error("Error during nonce creation.");return e},t.isValidISO8601Date=e=>{let t=l.exec(e);if(!e)return!1;let r=new Date(t.groups.date).toISOString(),n=l.exec(r);return t.groups.date===n.groups.date},t.checkInvalidKeys=(e,t)=>{let r=[];
vendor: 4,275 bytes, line 311
311return Object.keys(e).forEach(e=>{t.includes(e)||r.push(e)}),r}},86700:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return v},__asyncGenerator:function(){return w},__asyncValues:function(){return E},__await:function(){return A},__awaiter:function(){return u},__classPrivateFieldGet:function(){return T},__classPrivateFieldIn:function(){return S},__classPrivateFieldSet:function(){return O},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return s},__generator:function(){return d},__importDefault:function(){return C},__importStar:function(){return x},__makeTemplateObject:function(){return P},__metadata:function(){return c},__param:function(){return l},__read:function(){return g},__rest:function(){return o},__spread:function(){return m},__spreadArray:function(){return b},__spreadArrays:function(){return y},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)0>t.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function a(e,t,r,n){var s,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(s,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(s=(s=o.trys).length>0&&s[s.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var h=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function f(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||h(t,e,r)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
311if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,s++)n[s]=i[o];return n}function b(e,t,r){if(r||2==arguments.length)for(var n,s=0,i=t.length;s<i;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){s[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=s[e](t)).value instanceof A?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:A(e[n](t)),done:"return"===n}:s?s(t):t}:s}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,s){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,s,(t=e[r](t)).done,t.value)})}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return k(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function O(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r}function S(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},16701:function(e,t,r){!function(e){"use strict";e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=s,e.exports.is_web_uri=i,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=s,e.exports.isWebUri=i;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function r(e){if(!(!e||/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)||/%[^0-9a-f]/i.test(e)||/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e))){var r=[],n="",s="",i="",o="",a="",l="";if(n=(r=t(e))[1],s=r[2],i=r[3],o=r[4],a=r[5],n&&n.length&&i.length>=0){if(s&&s.length){if(!(0===i.length||/^\//.test(i)))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(n.toLowerCase()))return l+=n+":",s&&s.length&&(l+="//"+s),l+=i,o&&o.length&&(l+="?"+o),a&&a.length&&(l+="#"+a),l}}}function n(e,n){if(r(e)){var s=[],i="",o="",a="",l="",c="",u="",d="";if(i=(s=t(e))[1],o=s[2],a=s[3],c=s[4],u=s[5],i){if(n){if("https"!=i.toLowerCase())return}else if("http"!=i.toLowerCase())return;if(!o)return;return/:(\d+)$/.test(o)&&(l=o.match(/:(\d+)$/)[0],o=o.replace(/:\d+$/,"")),d+=i+"://"+o,l&&(d+=l),d+=a,c&&c.length&&(d+="?"+c),u&&u.length&&(d+="#"+u),d}}}function s(e){return n(e,!0)}function i(e){return n(e)||s(e)}}(e=r.nmd(e))},60807:function(e,t){"use strict";let r,n,s,i,o,a,l,c,u,d,h,f,p,g,m,y;let b=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function A(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),s=1,i=[0,1];for(let e=1;e<n;e++)i.push(s+=r());
311let o=r(),a=t;t+=o;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=2147483648-1,h=0;for(let e=0;e<31;e++)h=h<<1|u();let f=[],p=0,g=2147483648;for(;;){let e=Math.floor(((h-p+1)*s-1)/g),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<i[n]?r=n:t=n}if(0==t)break;f.push(t);let o=p+Math.floor(g*i[t]/s),a=p+Math.floor(g*i[t+1]/s)-1;for(;((o^a)&1073741824)==0;)h=h<<1&d|u(),o=o<<1&d,a=a<<1&d|1;for(;o&~a&536870912;)h=1073741824&h|h<<1&d>>>1|u(),o=o<<1^1073741824,a=(1073741824^a)<<1|1073741825;p=o,g=1+a-o}let m=n-4;return f.map(t=>{switch(t-m){case 3:return m+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return m+256+(e[a++]<<8|e[a++]);case 1:return m+e[a++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s<r;s++)a=a<<6|t[e.charCodeAt(s)],(o+=6)>=8&&(n[i++]=a>>(o-=8));return n}(e)),r=0,()=>t[r++]}function w(e,t=0){let r=[];for(;;){let n=e(),s=e();if(!s)break;t+=n;for(let e=0;e<s;e++)r.push(t+e);t+=s+1}return r}function v(e){return P(()=>{let t=w(e);if(t.length)return t})}function E(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),s=P(t);return k(s.length,1+e,t).flatMap((e,t)=>{let[i,...o]=e;return Array(s[t]).fill().map((e,t)=>{let s=t*n;return[i+t*r,o.map(e=>e+s)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(k(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function P(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function k(e,t,r){let n=Array(e).fill().map(()=>[]);for(let s=0;s<t;s++)(function(e,t){let r=Array(e);for(let s=0,i=0;s<e;s++){var n;r[s]=i+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function x(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function C(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}function T(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function O(e,t){let r=e.length,n=r-t.length;for(let s=0;0==n&&s<r;s++)n=e[s]-t[s];return n}function S(e){return e>>24&255}function B(e){return 16777215&e}function R(e){return e>=44032&&e<55204}function N(e){r||function(){let e=A
vendor: 7,457 bytes, line 311
311("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQ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o1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");f
311or(let[t,o]of(r=new Map(v(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),n=new Set(w(e)),s=new Map,i=new Map,E(e))){if(!n.has(t)&&2==o.length){let[e,r]=o,n=i.get(e);n||(n=new Map,i.set(e,n)),n.set(r,t)}s.set(t,o.reverse())}}();let t=[],o=[],a=!1;function l(e){let n=r.get(e);n&&(a=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(R(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,s=e%28;l(4352+t),l(4449+n),s>0&&l(4519+s)}else{let e=s.get(r);e?o.push(...e):l(r)}if(!o.length)break;r=o.pop()}if(a&&t.length>1){let e=S(t[0]);for(let r=1;r<t.length;r++){let n=S(t[r]);if(0==n||e<=n){e=n;continue}let s=r-1;for(;;){let r=t[s+1];if(t[s+1]=t[s],t[s]=r,!s||(e=S(t[--s]))<=n)break}e=S(t[r])}}return t}function M(e){return N(e).map(B)}function I(e){return function(e){let t=[],r=[],n=-1,s=0;for(let o of e){let e=S(o),a=B(o);if(-1==n)0==e?n=a:t.push(a);else if(s>0&&s>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),s=e;else{let o=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(R(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=i.get(e);return r&&(r=r.get(t))?r:-1}}(n,a);o>=0?n=o:0==s&&0==e?(t.push(n),n=a):(r.push(a),s=e)}}return n>=0&&t.push(n,...r),t}(N(e))}let L=e=>Array.from(e);function D(e,t){return e.P.has(t)||e.Q.has(t)}class F extends Array{get is_emoji(){return!0}}function U(){let e,t;if(o)return;let r=A("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHw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OK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI"),n=()=>w(r),s=()=>new Set(n()),i=(e,t)=>t.forEach(t=>e.add(t));o=new Map(E(r)),a=s(),l=n(),c=new Set(n().map(e=>l[e])),l=new Set(l),u=s(),d=s();let b=v(r),k=r(),x=()=>{let e=new Set;
311return n().forEach(t=>i(e,b[t])),i(e,n()),e};h=P(e=>{let t=P(r).map(e=>e+96);if(t.length){let n=e>=k;return t[0]-=32,t=T(t),n&&(t=`Restricted[${t}]`),{N:t,P:x(),Q:x(),M:!r(),R:n}}}),f=s(),p=new Map;let C=n().concat(L(f)).sort((e,t)=>e-t);for(let{V:e,M:t}of(C.forEach((e,t)=>{let n=r(),s=C[t]=n?C[t-n]:{V:[],M:new Map};s.V.push(e),f.has(e)||p.set(e,s)}),new Set(p.values()))){let r=[];for(let t of e){let e=h.filter(e=>D(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),i(n.G,e)}let n=r.flatMap(e=>L(e.G));for(let{G:e,V:s}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of s)t.set(e,r)}}g=new Set;let S=new Set,B=e=>g.has(e)?S.add(e):g.add(e);for(let e of h){for(let t of e.P)B(t);for(let t of e.Q)B(t)}for(let e of g)p.has(e)||S.has(e)||p.set(e,1);for(let n of(i(g,M(g)),m=(e=[],t=w(r),function t({S:r,B:n},s,i){if(!(4&r)||i!==s[s.length-1])for(let o of(2&r&&(i=s[s.length-1]),1&r&&e.push(s),n))for(let e of o.Q)t(o,[...s,e],i)}(function e(n){return{S:r(),B:P(()=>{let n=w(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>F.from(e)).sort(O),y=new Map,m)){let e=[y];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function j(e){return(K(e)?"":`${_(H([e]))} `)+x(e)}function _(e){return`"${e}"\u200E`}function H(e,t=1/0,r=x){let n=[];G(e[0])&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let s=0,i=e.length;for(let t=0;t<i;t++){let i=e[t];
311K(i)&&(n.push(T(e.slice(s,t))),n.push(r(i)),s=t+1)}return n.push(T(e.slice(s,i))),n.join("")}function G(e){return U(),l.has(e)}function K(e){return U(),u.has(e)}function Q(e,t,r){if(!e)return[];U();let n=0;return e.split(".").map(e=>{let s=C(e),i={input:s,offset:n};n+=s.length+1;try{let e,n=i.tokens=$(s,t,r),o=n.length;if(!o)throw Error("empty label");let a=i.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(a),!(i.emoji=o>1||n[0].is_emoji)&&a.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${T(e.slice(0,4))}"`)}(a),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(l.has(a[0]))throw W("leading combining mark");for(let e=1;e<o;e++){let t=n[e];if(!t.is_emoji&&l.has(t[0]))throw W(`emoji + combining mark: "${T(n[e-1])} + ${H([t[0]])}"`)}!function(e){let t=e[0],r=b.get(t);if(r)throw W(`leading ${r}`);let n=e.length,s=-1;for(let i=1;i<n;i++){t=e[i];let n=b.get(t);if(n){if(s==i)throw W(`${r} + ${n}`);s=i+1,r=n}}if(s==n)throw W(`trailing ${r}`)}(a);let r=L(new Set(t)),[s]=function(e){let t=h;for(let r of e){let e=t.filter(e=>D(e,r));if(!e.length){if(h.some(e=>D(e,r)))throw J(t[0],r);throw z(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!D(e,r))throw J(e,r);if(e.M){let e=M(t);for(let t=1,r=e.length;t<r;t++)if(c.has(e[t])){let n=t+1;for(let s;n<r&&c.has(s=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==s)throw Error(`duplicate non-spacing marks: ${j(s)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${_(H(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(s,t),function(e,t){let r;let n=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):L(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>D(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(s,r),e=s.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}function V(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${_(H(t,63))}: ${n}`)}return T(n)}).join(".")}function z(e){return Error(`disallowed character: ${j(e)}`)}function J(e,t){let r=j(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function W(e){return Error(`illegal placement: ${e}`)}function $(e,t,r){let n=[],s=[];for(e=e.slice().reverse();e.length;){let i=Z(e);if(i)s.length&&(n.push(t(s)),s=[]),n.push(r(i));else{let t=e.pop();if(g.has(t))s.push(t);else{let e=o.get(t);if(e)s.push(...e);else if(!a.has(t))throw z(t)}}}return s.length&&n.push(t(s)),n}function q(e){return e.filter(e=>65039!=e)}function Z(e,t){let r,n=y,s=e.length;for(;s&&(n=n.get(e[--s]));){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}let Y="valid",X="mapped",ee="ignored";function et(e){return e==Y||e==X}function er(e){return e.some(e=>d.has(e))}function en(e){for(let t=0;t<e.length;t++)if(e[t].type==Y){let r=t+1;for(;r<e.length&&e[r].type==Y;)r++;e.splice(t,r-t,{type:Y,cps:e.slice(t,r).flatMap(e=>e.cps)})}return e}t.ens_beautify=function(e){let t=Q(e,I,e=>e);for(let{type:e,output:r,error:n}of t){if(n)break;"Greek"!==e&&function(e,t,r){let n=0;for(;;){let t=e.indexOf(958,n);if(t<0)break;e[t]=926,n=t+1}}(r,0,0)}return V(t)},t.ens_emoji=function(){return U(),m.map(e=>e.slice())},t.ens_normalize=function(e){return V(Q(e,I,q))},t.ens_normalize_fragment=function(e,t){U();let r=t?M:I;return e.split(".").map(e=>T($(C(e),r,q).flat())).join(".")},t.ens_split=function(e,t){return Q(e,I,t?e=>e.slice():q)},t.ens_tokenize=function e(t,{nf:r=!0}={}){U();let n=C(t).reverse(),s=[],i=[];for(;n.length;){let e=Z(n,s);
311if(e)i.push({type:"emoji",emoji:e.slice(),input:s,cps:q(e)}),s=[];else{let e=n.pop();if(46==e)i.push({type:"stop",cp:e});else if(g.has(e))i.push({type:Y,cps:[e]});else if(a.has(e))i.push({type:ee,cp:e});else{let t=o.get(e);t?i.push({type:X,cp:e,cps:t.slice()}):i.push({type:"disallowed",cp:e})}}}if(r)for(let t=0,r=-1;t<i.length;t++){let n=i[t];if(et(n.type)){if(er(n.cps)){let n=t+1;for(let e=n;e<i.length;e++){let{type:t,cps:r}=i[e];if(et(t)){if(!er(r))break;n=e+1}else if(t!==ee)break}r<0&&(r=t);let s=i.slice(r,n),o=s.flatMap(e=>et(e.type)?e.cps:[]),a=I(o);O(a,o)?(i.splice(r,n-r,{type:"nfc",input:o,cps:a,tokens0:en(s),tokens:e(T(a),{nf:!1})}),t=r):t=n-1,r=-1}else r=t}else n.type!==ee&&(r=-1)}return en(i)},t.is_combining_mark=G,t.nfc=I,t.nfd=M,t.safe_str_from_cps=H,t.should_escape=K},8044:function(e,t){"use strict";/*! MIT License. Copyright 2015-2022 Richard Moore <[email protected]>. See LICENSE.txt. */var r,n,s,i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;let a={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],c=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3
311025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,111
3115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],f=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],p=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428
311677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],m=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,18625348
31168,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,6454
31101037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],A=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],w=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
31101765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],v=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
311748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function P(e){let t=[];for(let r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}class k{get key(){return i(this,r,"f").slice()}constructor(e){let t;if(r.set(this,void 0),n.set(this,void 0),s.set(this,void 0),!(this instanceof k))throw Error("AES must be instanitated with `new`");o(this,r,new Uint8Array(e),"f");let u=a[this.key.length];if(null==u)throw TypeError("invalid key size (must be 16, 24 or 32 bytes)");o(this,s,[],"f"),o(this,n,[],"f");for(let e=0;e<=u;e++)i(this,s,"f").push([0,0,0,0]),i(this,n,"f").push([0,0,0,0]);let d=(u+1)*4,h=this.key.length/4,f=P(this.key);for(let e=0;e<h;e++)t=e>>2,i(this,s,"f")[t][e%4]=f[e],i(this,n,"f")[u-t][e%4]=f[e];let p=0,g=h,m;for(;g<d;){if(m=f[h-1],f[0]^=c[m>>16&255]<<24^c[m>>8&255]<<16^c[255&m]<<8^c[m>>24&255]^l[p]<<24,p+=1,8!=h)for(let e=1;e<h;e++)f[e]^=f[e-1];else{for(let e=1;e<h/2;e++)f[e]^=f[e-1];m=f[h/2-1],f[h/2]^=c[255&m]^c[m>>8&255]<<8^c[m>>16&255]<<16^c[m>>24&255]<<24;for(let e=h/2+1;e<h;e++)f[e]^=f[e-1]}let e=0,t,r;for(;e<h&&g<d;)t=g>>2,r=g%4,i(this,s,"f")[t][r]=f[e],i(this,n,"f")[u-t][r]=f[e++],g++}for(let e=1;e<u;e++)for(let t=0;t<4;t++)m=i(this,n,"f")[e][t],i(this,n,"f")[e][t]=A[m>>24&255]^w[m>>16&255]^v[m>>8&255]^E[255&m]}encrypt(e){if(16!=e.length)throw TypeError("invalid plaintext size (must be 16 bytes)");let t=i(this,s,"f").length-1,r=[0,0,0,0],n=P(e);for(let e=0;e<4;e++)n[e]^=i(this,s,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=d[n[t]>>24&255]^h[n[(t+1)%4]>>16&255]^f[n[(t+2)%4]>>8&255]^p[255&n[(t+3)%4]]^i(this,s,"f")[e][t];n=r.slice()}let o=new Uint8Array(16),a=0;for(let e=0;e<4;e++)a=i(this,s,"f")[t][e],o[4*e]=(c[n[e]>>24&255]^a>>24)&255,o[4*e+1]=(c[n[(e+1)%4]>>16&255]^a>>16)&255,o[4*e+2]=(c[n[(e+2)%4]>>8&255]^a>>8)&255,o[4*e+3]=(c[255&n[(e+3)%4]]^a)&255;return o}decrypt(e){if(16!=e.length)throw TypeError("invalid ciphertext size (must be 16 bytes)");
311let t=i(this,n,"f").length-1,r=[0,0,0,0],s=P(e);for(let e=0;e<4;e++)s[e]^=i(this,n,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=g[s[t]>>24&255]^m[s[(t+3)%4]>>16&255]^y[s[(t+2)%4]>>8&255]^b[255&s[(t+1)%4]]^i(this,n,"f")[e][t];s=r.slice()}let o=new Uint8Array(16),a=0;for(let e=0;e<4;e++)a=i(this,n,"f")[t][e],o[4*e]=(u[s[e]>>24&255]^a>>24)&255,o[4*e+1]=(u[s[(e+3)%4]>>16&255]^a>>16)&255,o[4*e+2]=(u[s[(e+2)%4]>>8&255]^a>>8)&255,o[4*e+3]=(u[255&s[(e+1)%4]]^a)&255;return o}}t.AES=k,r=new WeakMap,n=new WeakMap,s=new WeakMap},10078:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var n=r(8044);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return n.AES}});var s=r(15359);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return s.ModeOfOperation}});var i=r(67322);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return i.CBC}});var o=r(97075);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return o.CFB}});var a=r(55195);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return a.CTR}});var l=r(77512);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return l.ECB}});var c=r(62470);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return c.OFB}});var u=r(59739);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return u.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return u.pkcs7Strip}})},67322:function(e,t,r){"use strict";var n,s,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;let a=r(15359);class l extends a.ModeOfOperation{constructor(e,t){if(super("ECC",e,l),n.set(this,void 0),s.set(this,void 0),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");i(this,n,new Uint8Array(t),"f")}else i(this,n,new Uint8Array(16),"f");i(this,s,this.iv,"f")}get iv(){return new Uint8Array(o(this,n,"f"))}encrypt(e){if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){for(let t=0;t<16;t++)o(this,s,"f")[t]^=e[r+t];i(this,s,this.aes.encrypt(o(this,s,"f")),"f"),t.set(o(this,s,"f"),r)}return t}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){let n=this.aes.decrypt(e.subarray(r,r+16));for(let i=0;i<16;i++)t[r+i]=n[i]^o(this,s,"f")[i],o(this,s,"f")[i]=e[r+i]}return t}}t.CBC=l,n=new WeakMap,s=new WeakMap},97075:function(e,t,r){"use strict";var n,s,i,o,a=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},l=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};
311Object.defineProperty(t,"__esModule",{value:!0}),t.CFB=void 0;let c=r(15359);class u extends c.ModeOfOperation{constructor(e,t,r=8){if(super("CFB",e,u),n.add(this),s.set(this,void 0),i.set(this,void 0),!Number.isInteger(r)||r%8)throw TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:r}}),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");a(this,s,new Uint8Array(t),"f")}else a(this,s,new Uint8Array(16),"f");a(this,i,this.iv,"f")}get iv(){return new Uint8Array(l(this,s,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");let t=this.segmentSize/8,r=new Uint8Array(e);for(let e=0;e<r.length;e+=t){let s=this.aes.encrypt(l(this,i,"f"));for(let n=0;n<t;n++)r[e+n]^=s[n];l(this,n,"m",o).call(this,r.subarray(e))}return r}decrypt(e){if(8*e.length%this.segmentSize)throw TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");let t=this.segmentSize/8,r=new Uint8Array(e);for(let s=0;s<r.length;s+=t){let a=this.aes.encrypt(l(this,i,"f"));for(let e=0;e<t;e++)r[s+e]^=a[e];l(this,n,"m",o).call(this,e.subarray(s))}return r}}t.CFB=u,s=new WeakMap,i=new WeakMap,n=new WeakSet,o=function(e){let t=this.segmentSize/8;l(this,i,"f").set(l(this,i,"f").subarray(t)),l(this,i,"f").set(e.subarray(0,t),16-t)}},55195:function(e,t,r){"use strict";var n,s,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CTR=void 0;let l=r(15359);class c extends l.ModeOfOperation{constructor(e,t){super("CTR",e,c),n.set(this,void 0),s.set(this,void 0),i.set(this,void 0),o(this,i,new Uint8Array(16),"f"),a(this,i,"f").fill(0),o(this,n,a(this,i,"f"),"f"),o(this,s,16,"f"),null==t&&(t=1),"number"==typeof t?this.setCounterValue(t):this.setCounterBytes(t)}get counter(){return new Uint8Array(a(this,i,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)a(this,i,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw TypeError("invalid counter initial Uint8Array value length");a(this,i,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(255===a(this,i,"f")[e])a(this,i,"f")[e]=0;else{a(this,i,"f")[e]++;break}}encrypt(e){var t,r;let l=new Uint8Array(e);for(let e=0;e<l.length;e++)16===a(this,s,"f")&&(o(this,n,this.aes.encrypt(a(this,i,"f")),"f"),o(this,s,0,"f"),this.increment()),l[e]^=a(this,n,"f")[o(this,s,(r=a(this,s,"f"),t=r++,r),"f"),t];return l}decrypt(e){return this.encrypt(e)}}t.CTR=c,n=new WeakMap,s=new WeakMap,i=new WeakMap},77512:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;let n=r(15359);class s extends n.ModeOfOperation{constructor(e){super("ECB",e,s)}encrypt(e){if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16)t.set(this.aes.encrypt(e.subarray(r,r+16)),r);return t}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16)t.set(this.aes.decrypt(e.subarray(r,r+16)),r);return t}}t.ECB=s},62470:function(e,t,r){"use strict";var n,s,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};
311Object.defineProperty(t,"__esModule",{value:!0}),t.OFB=void 0;let l=r(15359);class c extends l.ModeOfOperation{constructor(e,t){if(super("OFB",e,c),n.set(this,void 0),s.set(this,void 0),i.set(this,void 0),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");o(this,n,new Uint8Array(t),"f")}else o(this,n,new Uint8Array(16),"f");o(this,s,this.iv,"f"),o(this,i,16,"f")}get iv(){return new Uint8Array(a(this,n,"f"))}encrypt(e){var t,r;if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let n=new Uint8Array(e);for(let e=0;e<n.length;e++)16===a(this,i,"f")&&(o(this,s,this.aes.encrypt(a(this,s,"f")),"f"),o(this,i,0,"f")),n[e]^=a(this,s,"f")[o(this,i,(r=a(this,i,"f"),t=r++,r),"f"),t];return n}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}t.OFB=c,n=new WeakMap,s=new WeakMap,i=new WeakMap},15359:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;let n=r(8044);class s{constructor(e,t,r){if(r&&!(this instanceof r))throw Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new n.AES(t)},name:{enumerable:!0,value:e}})}}t.ModeOfOperation=s},59739:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){let t=16-e.length%16,r=new Uint8Array(e.length+t);r.set(e);for(let n=e.length;n<r.length;n++)r[n]=t;return r},t.pkcs7Strip=function(e){if(e.length<16)throw TypeError("PKCS#7 invalid length");let t=e[e.length-1];if(t>16)throw TypeError("PKCS#7 padding byte out of range");let r=e.length-t;for(let n=0;n<t;n++)if(e[r+n]!==t)throw TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,r))}},26991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.11.1"},54497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;let n=r(66644),s=r(98060),i=r(62259),o=r(10444),a=r(61487),l=r(84027),c=r(44733),u=r(48545),d=r(59059),h=r(16794),f=r(60680),p=r(82747),g=r(24955),m=r(66644),y=new Map;y.set(0,"GENERIC_PANIC"),y.set(1,"ASSERT_FALSE"),y.set(17,"OVERFLOW"),y.set(18,"DIVIDE_BY_ZERO"),y.set(33,"ENUM_RANGE_ERROR"),y.set(34,"BAD_STORAGE_DATA"),y.set(49,"STACK_UNDERFLOW"),y.set(50,"ARRAY_RANGE_ERROR"),y.set(65,"OUT_OF_MEMORY"),y.set(81,"UNINITIALIZED_FUNCTION_CALL");let b=new RegExp(/^bytes([0-9]*)$/),A=new RegExp(/^(u?int)([0-9]*)$/),w=null,v=1024;class E{#e(e){if(e.isArray())return new o.ArrayCoder(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new f.TupleCoder(e.components.map(e=>this.#e(e)),e.name);switch(e.baseType){case"address":return new i.AddressCoder(e.name);case"bool":return new a.BooleanCoder(e.name);case"string":return new h.StringCoder(e.name);case"bytes":return new l.BytesCoder(e.name);case"":return new u.NullCoder(e.name)}let t=e.type.match(A);if(t){let r=parseInt(t[2]||"256");return(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new d.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(b)){let r=parseInt(t[1]);return(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",e),new c.FixedBytesCoder(r,e.name)}(0,n.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){let t=e.map(e=>this.#e(p.ParamType.from(e)));return new f.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,n.assertArgumentCount)(t.length,e.length,"types/values length mismatch");let r=e.map(e=>this.#e(p.ParamType.from(e))),i=new f.TupleCoder(r,"_"),o=new s.Writer;return i.encode(o,t),o.data}decode(e,t,r){let n=e.map(e=>this.#e(p.ParamType.from(e)));return new f.TupleCoder(n,"_").decode(new s.Reader(t,r,v))}static _setDefaultMaxInflation(e){(0,n.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),v=e}static defaultAbiCoder(){return null==w&&(w=new E),w}static getBuiltinCallException(e,t,r){return function(e,t,r,n){let s="missing revert data",i=null,o=null;if(r){s="execution reverted";let e=(0,m.getBytes)(r);if(r=(0,m.hexlify)(r),0===e.length)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(e.length%32!=4)s+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,m.hexlify)(e.slice(0,4)))try{i=n.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch(e){s+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,m.hexlify)(e.slice(0,4)))try{let t=Number(n.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},i=`Panic due to ${y.get(t)||"UNKNOWN"}(${t})`,s+=`: ${i}`}catch(e){s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}let a={to:t.to?(0,g.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(a.from=(0,g.getAddress)(t.from)),(0,m.makeError)(s,"CALL_EXCEPTION",{action:e,data:r,reason:i,transaction:a,invocation:null,revert:o})}(e,t,r,E.defaultAbiCoder())}}t.AbiCoder=E},23069:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;let n=r(66644);t.encodeBytes32String=function(e){let t=(0,n.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,n.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){let t=(0,n.getBytes)(e,"bytes");if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,n.toUtf8String)(t.slice(0,r))}},98060:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;let n=r(66644);t.WordSize=32;let s=new Uint8Array(t.WordSize),i=["then"],o={};function a(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}class l extends Array{#t;constructor(...e){let t=e[0],r=e[1],s=(e[2]||[]).slice(),l=!0;t!==o&&(r=e,s=[],l=!1),super(r.length),r.forEach((e,t)=>{this[t]=e});let c=s.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(this.#t=Object.freeze(r.map((e,t)=>{let r=s[t];return null!=r&&1===c.get(r)?r:null})),!l)return;return Object.freeze(this),new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,n.getNumber)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let s=e[r];return s instanceof Error&&a(`index ${r}`,s),s}if(i.indexOf(t)>=0)return Reflect.get(e,t,r);let s=e[t];if(s instanceof Function)return function(...t){return s.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}})}toArray(){let e=[];return this.forEach((t,r)=>{t instanceof Error&&a(`index ${r}`,t),e.push(t)}),e}toObject(){return this.#t.reduce((e,t,r)=>((0,n.assert)(null!=t,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),t in e||(e[t]=this.getValue(t)),e),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=[],n=[];for(let s=e;s<t;s++)r.push(this[s]),n.push(this.#t[s]);return new l(o,r,n)}filter(e,t){let r=[],n=[];for(let s=0;s<this.length;s++){let i=this[s];i instanceof Error&&a(`index ${s}`,i),e.call(t,i,s,this)&&(r.push(i),n.push(this.#t[s]))}return new l(o,r,n)}map(e,t){let r=[];for(let n=0;n<this.length;n++){let s=this[n];s instanceof Error&&a(`index ${n}`,s),r.push(e.call(t,s,n,this))}return r}getValue(e){let t=this.#t.indexOf(e);if(-1===t)return;let r=this[t];return r instanceof Error&&a(`property ${JSON.stringify(e)}`,r.error),r}static fromItems(e,t){return new l(o,e,t)}}function c(e){let r=(0,n.toBeArray)(e);return(0,n.assert)(r.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:r,length:t.WordSize,offset:r.length}),r.length!==t.WordSize&&(r=(0,n.getBytesCopy)((0,n.concat)([s.slice(r.length%t.WordSize),r]))),r}t.Result=l,t.checkResultErrors=function(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let s in n){let i=e.slice();i.push(s);try{r(i,n[s])}catch(e){t.push({path:i,error:e})}}};return r([],e),t};class u{name;type;localName;dynamic;constructor(e,t,r,s){(0,n.defineProperties)(this,{name:e,type:t,localName:r,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,n.assertArgument)(!1,e,this.localName,t)}}t.Coder=u;class d{#r;#n;constructor(){this.#r=[],this.#n=0}get data(){return(0,n.concat)(this.#r)}get length(){return this.#n}#s(e){return this.#r.push(e),this.#n+=e.length,e.length}appendWriter(e){return this.#s((0,n.getBytesCopy)(e.data))}writeBytes(e){let r=(0,n.getBytesCopy)(e),i=r.length%t.WordSize;return i&&(r=(0,n.getBytesCopy)((0,n.concat)([r,s.slice(i)]))),this.#s(r)}writeValue(e){return this.#s(c(e))}writeUpdatableValue(){let e=this.#r.length;return this.#r.push(s),this.#n+=t.WordSize,t=>{this.#r[e]=c(t)}}}t.Writer=d;class h{allowLoose;#r;#i;#o;#a;#l;constructor(e,t,r){(0,n.defineProperties)(this,{allowLoose:!!t}),this.#r=(0,n.getBytesCopy)(e),this.#o=0,this.#a=null,this.#l=null!=r?r:1024,this.#i=0}get data(){return(0,n.hexlify)(this.#r)}get dataLength(){return this.#r.length}get consumed(){return this.#i}get bytes(){return new Uint8Array(this.#r)}#c(e){if(this.#a)return this.#a.#c(e);this.#o+=e,(0,n.assert)(this.#l<1||this.#o<=this.#l*this.dataLength,`c
311ompressed ABI data exceeds inflation ratio of ${this.#l} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#r),offset:this.#i,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#u(e,r,s){let i=Math.ceil(r/t.WordSize)*t.WordSize;return this.#i+i>this.#r.length&&(this.allowLoose&&s&&this.#i+r<=this.#r.length?i=r:(0,n.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#r),length:this.#r.length,offset:this.#i+i})),this.#r.slice(this.#i,this.#i+i)}subReader(e){let t=new h(this.#r.slice(this.#i+e),this.allowLoose,this.#l);return t.#a=this,t}readBytes(e,t){let r=this.#u(0,e,!!t);return this.#c(e),this.#i+=r.length,r.slice(0,e)}readValue(){return(0,n.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,n.toNumber)(this.readBytes(t.WordSize))}}t.Reader=h},62259:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;let n=r(24955),s=r(81966),i=r(69439),o=r(98060);class a extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=i.Typed.dereference(t,"string");try{r=(0,n.getAddress)(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return(0,n.getAddress)((0,s.toBeHex)(e.readValue(),20))}}t.AddressCoder=a},44154:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;let n=r(98060);class s extends n.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=s},10444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;let n=r(66644),s=r(69439),i=r(98060),o=r(44154);function a(e,t,r){let s=[];if(Array.isArray(r))s=r;else if(r&&"object"==typeof r){let e={};s=t.map(t=>{let s=t.localName;return(0,n.assert)(s,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,n.assert)(!e[s],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[s]=!0,r[s]})}else(0,n.assertArgument)(!1,"invalid tuple value","tuple",r);(0,n.assertArgument)(t.length===s.length,"types/value length mismatch","tuple",r);let o=new i.Writer,a=new i.Writer,l=[];return t.forEach((e,t)=>{let r=s[t];if(e.dynamic){let t=a.length;e.encode(a,r);let n=o.writeUpdatableValue();l.push(e=>{n(e+t)})}else e.encode(o,r)}),l.forEach(e=>{e(o.length)}),e.appendWriter(o)+e.appendWriter(a)}function l(e,t){let r=[],s=[],o=e.subReader(0);return t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readIndex(),s=o.subReader(r);try{i=t.decode(s)}catch(e){if((0,n.isError)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if((0,n.isError)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}if(void 0==i)throw Error("investigate");r.push(i),s.push(t.localName||null)}),i.Result.fromItems(r,s)}t.pack=a,t.unpack=l;class c extends i.Coder{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,n.defineProperties)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){let r=s.Typed.dereference(t,"array");Array.isArray(r)||this._throwError("expected array value",r);let i=this.length;-1===i&&(i=r.length,e.writeValue(r.length)),(0,n.assertArgumentCount)(r.length,i,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let e=0;e<r.length;e++)o.push(this.coder);return a(e,o,r)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,n.assert)(t*i.WordSize<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*i.WordSize,length:e.dataLength}));let r=[];for(let e=0;e<t;e++)r.push(new o.AnonymousCoder(this.coder));return l(e,r)}}t.ArrayCoder=c},61487:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;let n=r(69439),s=r(98060);class i extends s.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=n.Typed.dereference(t,"bool");return e.writeValue(r?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=i},84027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;let n=r(66644),s=r(98060);class i extends s.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,n.getBytesCopy)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=i;class o extends i{constructor(e){super("bytes",e)}decode(e){return(0,n.hexlify)(super.decode(e))}}t.BytesCoder=o},44733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;let n=r(66644),s=r(69439),i=r(98060);class o extends i.Coder{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,n.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.getBytesCopy)(s.Typed.dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,n.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=o},48545:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;let n=r(98060),s=new Uint8Array([]);class i extends n.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(s)}decode(e){return e.readBytes(0),null}}t.NullCoder=i},59059:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;let n=r(66644),s=r(69439),i=r(98060),o=BigInt(0),a=BigInt(1),l=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class c extends i.Coder{size;signed;constructor(e,t,r){let s=(t?"int":"uint")+8*e;super(s,s,r,!1),(0,n.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,n.getBigInt)(s.Typed.dereference(t,this.type)),c=(0,n.mask)(l,8*i.WordSize);if(this.signed){let e=(0,n.mask)(c,8*this.size-1);(r>e||r<-(e+a))&&this._throwError("value out-of-bounds",t),r=(0,n.toTwos)(r,8*i.WordSize)}else(r<o||r>(0,n.mask)(c,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,n.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,n.fromTwos)(t,8*this.size)),t}}t.NumberCoder=c},16794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;let n=r(16345),s=r(69439),i=r(84027);class o extends i.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,n.toUtf8Bytes)(s.Typed.dereference(t,"string")))}decode(e){return(0,n.toUtf8String)(super.decode(e))}}t.StringCoder=o},60680:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;let n=r(8573),s=r(69439),i=r(98060),o=r(10444);class a extends i.Coder{coders;constructor(e,t){let r=!1,s=[];e.forEach(e=>{e.dynamic&&(r=!0),s.push(e.type)}),super("tuple","tuple("+s.join(",")+")",t,r),(0,n.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let s=r.localName;s&&1===t[s]&&("length"===s&&(s="_length"),null==e[s]&&(e[s]=e[n]))}),Object.freeze(e)}encode(e,t){let r=s.Typed.dereference(t,"tuple");return(0,o.pack)(e,this.coders,r)}decode(e){return(0,o.unpack)(e,this.coders)}}t.TupleCoder=a},82747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;let n=r(66644),s=r(9387);function i(e){let t=new Set;
311return e.forEach(e=>t.add(e)),Object.freeze(t)}let o=i("external public payable override".split(" ")),a="constant external internal payable private public pure view override",l=i(a.split(" ")),c="constructor error event fallback function receive struct",u=i(c.split(" ")),d="calldata memory storage payable indexed",h=i(d.split(" ")),f=i([c,d,"tuple returns",a].join(" ").split(" ")),p={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=RegExp("^(\\s*)"),m=RegExp("^([0-9]+)"),y=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),b=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),A=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#i;#d;get offset(){return this.#i}get length(){return this.#d.length-this.#i}constructor(e){this.#i=0,this.#d=e.slice()}clone(){return new w(this.#d)}reset(){this.#i=0}#h(e=0,t=0){return new w(this.#d.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#h(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#i<e.match-1;){let e=this.peek().linkNext;t.push(this.#h(this.#i+1,e)),this.#i=e}return this.#i=e.match+1,t}peek(){if(this.#i>=this.#d.length)throw Error("out-of-bounds");return this.#d[this.#i]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#i++,e}toString(){let e=[];for(let t=this.#i;t<this.#d.length;t++){let r=this.#d[t];e.push(`${r.type}:${r.text}`)}return`<TokenString ${e.join(" ")}>`}}function v(e){let t=[],r=t=>{let r=o<e.length?JSON.stringify(e[o]):"$EOI";throw Error(`invalid token ${r} at ${o}: ${t}`)},s=[],i=[],o=0;for(;o<e.length;){let a=e.substring(o),l=a.match(g);l&&(o+=l[1].length,a=e.substring(o));let c={depth:s.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(c);let u=p[a[0]]||"";if(u){if(c.type=u,c.text=a[0],o++,"OPEN_PAREN"===u)s.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==u)0===s.length&&r("no matching open bracket"),c.match=s.pop(),t[c.match].match=t.length-1,c.depth--,c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1;else if("COMMA"===u)c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===u)c.type="BRACKET";else if("CLOSE_BRACKET"===u){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,n.getNumber)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}if(l=a.match(y)){if(c.text=l[1],o+=c.text.length,f.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(A)){c.type="TYPE";continue}c.type="ID";continue}if(l=a.match(m)){c.text=l[1],c.type="NUMBER",o+=c.text.length;continue}throw Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`)}return new w(t.map(e=>Object.freeze(e)))}function E(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function P(e,t){if(t.peekKeyword(u)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function k(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function x(e){let t=k(e,l);return(E(t,i("constant payable nonpayable".split(" "))),E(t,i("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function C(e,t){return e.popParams().map(e=>_.from(e,t))}
311function T(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,n.getBigInt)(e.pop().text);throw Error("invalid gas")}return null}function O(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let S=new RegExp(/^(.*)\[([0-9]*)\]$/);function B(e){let t=e.match(A);if((0,n.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let R={},N=Symbol.for("_ethers_internal"),M="_ParamTypeInternal",I="_ErrorInternal",L="_EventInternal",D="_ConstructorInternal",F="_FallbackInternal",U="_FunctionInternal",j="_StructInternal";class _{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,s,i,o,a,l){if((0,n.assertPrivate)(e,R,"ParamType"),Object.defineProperty(this,N,{value:M}),o&&(o=Object.freeze(o.slice())),"array"===s){if(null==a||null==l)throw Error("")}else if(null!=a||null!=l)throw Error("");if("tuple"===s){if(null==o)throw Error("")}else if(null!=o)throw Error("");(0,n.defineProperties)(this,{name:t,type:r,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:l})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?t+=this.arrayChildren.format(e)+`[${this.arrayLength<0?"":String(this.arrayLength)}]`:this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#f(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let s=this.arrayChildren,i=t.slice();i.forEach((t,n)=>{s.#f(e,t,r,e=>{i[n]=e})}),n(i);return}if(this.isTuple()){let s;let i=this.components;if(Array.isArray(t))s=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");s=i.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(s.length!==this.components.length)throw Error("array is wrong length");s.forEach((t,n)=>{i[n].#f(e,t,r,e=>{s[n]=e})}),n(s);return}let s=r(this.type,t);s.then?e.push(async function(){n(await s)}()):n(s)}async walkAsync(e,t){let r=[],n=[e];return this.#f(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(_.isParamType(e))return e;if("string"==typeof e)try{return _.from(v(e),t)}catch(t){(0,n.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof w){let r="",n="",s=null;k(e,i(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",s=e.popParams().map(e=>_.from(e)),r=`tuple(${s.map(e=>e.format()).join(",")})`):n=r=B(e.popType("TYPE"));let o=null,a=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();o=new _(R,"",r,n,null,s,a,o),a=t.value,r+=t.text,n="array",s=null}let l=null;if(k(e,h).has("indexed")){if(!t)throw Error("");l=!0}let c=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new _(R,c,r,n,l,s,a,o)}let r=e.name;(0,n.assertArgument)(!r||"string"==typeof r&&r.match(b),"invalid name","obj.name",r);let s=e.indexed;null!=s&&((0,n.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let o=e.type,a=o.match(S);if(a){let t=parseInt(a[2]||"-1"),n=_.from({type:a[1],components:e.components});return new _(R,r||"",o,"array",s,null,t,n)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){let t=null!=e.components?e.components.map(e=>_.from(e)):null;return new _(R,r||"",o,"tuple",s,t,null,null)}return new _(R,r||"",o=B(e.type),o,s,null,null,null)}static isParamType(e){return e&&e[N]===M}}t.ParamType=_;class H{type;inputs;constructor(e,t,r){(0,n.assertPrivate)(e,R,"Fragment"),r=Object.freeze(r.slice()),(0,n.defineProperties)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{H.from(JSON.parse(e))}catch(e){}return H.from(v(e))}if(e instanceof w)switch(e.peekKeyword(u)){case"constructor":return z.from(e);case"error":return Q.from(e);case"event":return V.from(e);case"fallback":case"receive":return J.from(e);case"function":return W.from(e);case"struct":return $.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return z.from(e);case"error":return Q.from(e);case"event":return V.from(e);case"fallback":case"receive":return J.from(e);case"function":return W.from(e);case"struct":return $.from(e)}(0,n.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,n.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return z.isFragment(e)}static isError(e){return Q.isFragment(e)}static isEvent(e){return V.isFragment(e)}static isFunction(e){return W.isFragment(e)}static isStruct(e){return $.isFragment(e)}}t.Fragment=H;class G extends H{name;constructor(e,t,r,s){super(e,t,s),(0,n.assertArgument)("string"==typeof r&&r.match(b),"invalid identifier","name",r),s=Object.freeze(s.slice()),(0,n.defineProperties)(this,{name:r})}}function K(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}t.NamedFragment=G;class Q extends G{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,N,{value:
311I})}get selector(){return(0,s.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+K(e,this.inputs)),t.join(" ")}static from(e){if(Q.isFragment(e))return e;if("string"==typeof e)return Q.from(v(e));if(e instanceof w){let t=P("error",e),r=C(e);return O(e),new Q(R,t,r)}return new Q(R,e.name,e.inputs?e.inputs.map(_.from):[])}static isFragment(e){return e&&e[N]===I}}t.ErrorFragment=Q;class V extends G{anonymous;constructor(e,t,r,s){super(e,"event",t,r),Object.defineProperty(this,N,{value:L}),(0,n.defineProperties)(this,{anonymous:s})}get topicHash(){return(0,s.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+K(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new V(R,e,t=(t||[]).map(e=>_.from(e)),!1).topicHash}static from(e){if(V.isFragment(e))return e;if("string"==typeof e)try{return V.from(v(e))}catch(t){(0,n.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){let t=P("event",e),r=C(e,!0),n=!!k(e,i(["anonymous"])).has("anonymous");return O(e),new V(R,t,r,n)}return new V(R,e.name,e.inputs?e.inputs.map(e=>_.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[N]===L}}t.EventFragment=V;class z extends H{payable;gas;constructor(e,t,r,s,i){super(e,t,r),Object.defineProperty(this,N,{value:D}),(0,n.defineProperties)(this,{payable:s,gas:i})}format(e){if((0,n.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${K(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(z.isFragment(e))return e;if("string"==typeof e)try{return z.from(v(e))}catch(t){(0,n.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){k(e,i(["constructor"]));let t=C(e),r=!!k(e,o).has("payable"),n=T(e);return O(e),new z(R,"constructor",t,r,n)}return new z(R,"constructor",e.inputs?e.inputs.map(_.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[N]===D}}t.ConstructorFragment=z;class J extends H{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,N,{value:F}),(0,n.defineProperties)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(v(e))}catch(t){(0,n.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){let t=e.toString(),r=e.peekKeyword(i(["fallback","receive"]));if((0,n.assertArgument)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(i(["fallback","receive"]))){let t=C(e);return(0,n.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),k(e,i(["payable"])),O(e),new J(R,[],!0)}let s=C(e);s.length?(0,n.assertArgument)(1===s.length&&"bytes"===s[0].type,"invalid fallback inputs","obj.inputs",s.map(e=>e.format("minimal")).join(", ")):s=[_.from("bytes")];let o=x(e);if((0,n.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),k(e,i(["returns"])).has("returns")){let t=C(e);(0,n.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return O(e),new J(R,s,"payable"===o)}return"receive"===e.type?new J(R,[],!0):"fallback"===e.type?new J(R,[_.from("bytes")],"payable"===e.stateMutability):void(0,n.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[N]===F}}t.FallbackFragment=J;class W extends G{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,s,i,o){super(e,"function",t,s),Object.defineProperty(this,N,{value:U}),i=Object.freeze(i.slice()),(0,n.defineProperties)(this,{constant:"view"===r||"pure"===r,gas:o,outputs:i,payable:"payable"===r,stateMutability:r})}get selector(){return(0,s.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+K(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(K(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new W(R,e,"view",t=(t||[]).map(e=>_.from(e)),[],null).selector}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)try{return W.from(v(e))}catch(t){(0,n.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){let t=P("function",e),r=C(e),n=x(e),s=[];k(e,i(["returns"])).has("returns")&&(s=C(e));let o=T(e);return O(e),new W(R,t,n,r,s,o)}let t=e.stateMutability;return null!=t||(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new W(R,e.name,t,e.inputs?e.inputs.map(_.from):[],e.outputs?e.outputs.map(_.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[N]===U}}t.FunctionFragment=W;class $ extends G{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,N,{value:j})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return $.from(v(e))}catch(t){(0,n.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){let t=P("struct",e),r=C(e);return O(e),new $(R,t,r)}return new $(R,e.name,e.inputs?e.inputs.map(_.from):[])}static isFragment(e){return e&&e[N]===j}}t.StructFragment=$},2387:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var n=r(54497);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}});var s=r(23069);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return s.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return s.encodeBytes32String}});var i=r(82747);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}});var o=r(59896);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var a=r(69439);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return a.Typed}})},59896:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;let n=r(53879),s=r(9387),i=r(66644),o=r(54497),a=r(98060);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}});let l=r(82747),c=r(69439);class u{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,s=e.format();(0,i.defineProperties)(this,{fragment:e,name:n,signature:s,topic:t,args:r})}}t.LogDescription=u;class d{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let s=e.name,o=e.format();(0,i.defineProperties)(this,{fragment:e,name:s,args:r,signature:o,selector:t,value:n})}}t.TransactionDescription=d;class h{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,s=e.format();(0,i.defineProperties)(this,{fragment:e,name:n,args:r,signature:s,selector:t})}}t.ErrorDescription=h;class f{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,i.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=f;let p={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},g={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&p[e.toString()]&&(t=p[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class m{fragments;deploy;fallback;receive;#p;#g;#m;#y;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#m=new Map,this.#p=new Map,this.#g=new Map;let r=[];for(let e of t)try{r.push(l.Fragment.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,i.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,s=!1;
311this.#y=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}(0,i.defineProperties)(this,{deploy:e});return;case"fallback":0===e.inputs.length?s=!0:((0,i.assertArgument)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),s=(n=e).payable);return;case"function":r=this.#m;break;case"event":r=this.#g;break;case"error":r=this.#p;break;default:return}let o=e.format();r.has(o)||r.set(o,e)}),this.deploy||(0,i.defineProperties)(this,{deploy:l.ConstructorFragment.from("constructor()")}),(0,i.defineProperties)(this,{fallback:n,receive:s})}format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#b(e,t,r){if((0,i.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#m.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#m)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,s=!0;c.Typed.isTyped(e)&&"overrides"===e.type&&(s=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||s&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let s=0;s<t.length;s++)if(c.Typed.isTyped(t[s])){if(s>=r.length){if("overrides"===t[s].type)continue;n.splice(e,1);break}if(t[s].type!==r[s].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#m.get(l.FunctionFragment.from(e).format())||null}getFunctionName(e){let t=this.#b(e,null,!1);return(0,i.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#b(e,null,!1)}getFunction(e,t){return this.#b(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#m.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#m.get(n),r)}}#A(e,t,r){if((0,i.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#g.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#g)t.split("(")[0]===e&&n.push(r);if(t){for(let e=n.length-1;e>=0;e--)n[e].inputs.length<t.length&&n.splice(e,1);for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let s=0;s<t.length;s++)if(c.Typed.isTyped(t[s])&&t[s].type!==r[s].baseType){n.splice(e,1);break}}}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#g.get(l.EventFragment.from(e).format())||null}getEventName(e){let t=this.#A(e,null,!1);return(0,i.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#A(e,null,!1)}getEvent(e,t){return this.#A(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#g.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#g.get(n),r)}}getError(e,t){if((0,i.isHexString)(e)){let t=e.toLowerCase();if(g[t])return l.ErrorFragment.from(g[t].signature);for(let e of this.#p.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let t=[];for(let[r,n]of this.#p)r.split("(")[0]===e&&t.push(n);if(0===t.length)return"Error"===e?l.ErrorFragment.from("error Error(string)"):"Panic"===e?l.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}return"Error(string)"===(e=l.ErrorFragment.from(e).format())?l.ErrorFragment.from("error Error(string)"):"Panic(uint256)"===e?l.ErrorFragment.from("error Panic(uint256)"):this.#p.get(e)||null}forEachError(e){let t=Array.from(this.#p.keys());t.sort((e,t)=>
311e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#p.get(n),r)}}_decodeParams(e,t){return this.#y.decode(e,t)}_encodeParams(e,t){return this.#y.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}let r="invalid length for result data",n=(0,i.getBytesCopy)(t);if(n.length%32==0)try{return this.#y.decode(e.outputs,n)}catch(e){r="could not decode result data"}(0,i.assert)(!1,r,"BAD_DATA",{value:(0,i.hexlify)(n),info:{method:e.name,signature:e.format()}})}makeError(e,t){let r=(0,i.getBytes)(e,"data"),n=o.AbiCoder.getBuiltinCallException("call",t,r);if(n.message.startsWith("execution reverted (unknown custom error)")){let e=(0,i.hexlify)(r.slice(0,4)),t=this.getError(e);
311if(t)try{let e=this.#y.decode(t.inputs,r.slice(4));n.revert={name:t.name,signature:t.format(),args:e},n.reason=n.revert.signature,n.message=`execution reverted: ${n.reason}`}catch(e){n.message="execution reverted (coult not decode custom error)"}}let s=this.parseTransaction(t);return s&&(n.invocation={method:s.name,signature:s.signature,args:s.args}),n}encodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.hexlify)(this.#y.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}(0,i.assert)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});let r=[];e.anonymous||r.push(e.topicHash);let o=(e,t)=>"string"===e.type?(0,s.id)(t):"bytes"===e.type?(0,n.keccak256)((0,i.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,i.toBeHex)(t):e.type.match(/^bytes/)?t=(0,i.zeroPadBytes)(t,32):"address"===e.type&&this.#y.encode(["address"],[t]),(0,i.zeroPadValue)((0,i.hexlify)(t),32));for(t.forEach((t,n)=>{let s=e.inputs[n];if(!s.indexed){(0,i.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+s.name,t);return}null==t?r.push(null):"array"===s.baseType||"tuple"===s.baseType?(0,i.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+s.name,t):Array.isArray(t)?r.push(t.map(e=>o(s,e))):r.push(o(s,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}let r=[],o=[],a=[];return e.anonymous||r.push(e.topicHash),(0,i.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,i)=>{let l=t[i];if(e.indexed){if("string"===e.type)r.push((0,s.id)(l));else if("bytes"===e.type)r.push((0,n.keccak256)(l));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#y.encode([e.type],[l]))}else o.push(e),a.push(l)}),{data:this.#y.encode(o,a),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,i.assertArgument)((0,i.isHexString)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],s=[],o=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(l.ParamType.from({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(s.push(e),o.push(!1))});let c=null!=r?this.#y.decode(n,(0,i.concat)(r)):null,u=this.#y.decode(s,t,!0),d=[],h=[],p=0,g=0;return e.inputs.forEach((e,t)=>{let r=null;if(e.indexed){if(null==c)r=new f(null);else if(o[t])r=new f(c[g++]);else try{r=c[g++]}catch(e){r=e}}else try{r=u[p++]}catch(e){r=e}d.push(r),h.push(e.name||null)}),a.Result.fromItems(d,h)}parseTransaction(e){let t=(0,i.getBytes)(e.data,"tx.data"),r=(0,i.getBigInt)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,i.hexlify)(t.slice(0,4)));if(!n)return null;let s=this.#y.decode(n.inputs,t.slice(4));return new d(n,n.selector,s,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new u(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,i.hexlify)(e),r=this.getError((0,i.dataSlice)(t,0,4));if(!r)return null;let n=this.#y.decode(r.inputs,(0,i.dataSlice)(t,4));return new h(r,r.selector,n)}static from(e){return e instanceof m?e:new m("string"==typeof e?JSON.parse(e):"function"==typeof e.format?e.format("json"):e)}}t.Interface=m},69439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;let n=r(66644),s={};function i(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new l(s,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function o(e,t){return new l(s,`bytes${t||""}`,e,{size:t})}let a=Symbol.for("_ethers_typed");class l{type;value;#w;_typedSymbol;
311constructor(e,t,r,i){null==i&&(i=null),(0,n.assertPrivate)(s,e,"Typed"),(0,n.defineProperties)(this,{_typedSymbol:a,type:t,value:r}),this.#w=i,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new l(s,e,t)}static uint8(e){return i(e,8)}static uint16(e){return i(e,16)}static uint24(e){return i(e,24)}static uint32(e){return i(e,32)}static uint40(e){return i(e,40)}static uint48(e){return i(e,48)}static uint56(e){return i(e,56)}static uint64(e){return i(e,64)}static uint72(e){return i(e,72)}static uint80(e){return i(e,80)}static uint88(e){return i(e,88)}static uint96(e){return i(e,96)}static uint104(e){return i(e,104)}static uint112(e){return i(e,112)}static uint120(e){return i(e,120)}static uint128(e){return i(e,128)}static uint136(e){return i(e,136)}static uint144(e){return i(e,144)}static uint152(e){return i(e,152)}static uint160(e){return i(e,160)}static uint168(e){return i(e,168)}static uint176(e){return i(e,176)}static uint184(e){return i(e,184)}static uint192(e){return i(e,192)}static uint200(e){return i(e,200)}static uint208(e){return i(e,208)}static uint216(e){return i(e,216)}static uint224(e){return i(e,224)}static uint232(e){return i(e,232)}static uint240(e){return i(e,240)}static uint248(e){return i(e,248)}static uint256(e){return i(e,256)}static uint(e){return i(e,256)}static int8(e){return i(e,-8)}static int16(e){return i(e,-16)}static int24(e){return i(e,-24)}static int32(e){return i(e,-32)}static int40(e){return i(e,-40)}static int48(e){return i(e,-48)}static int56(e){return i(e,-56)}static int64(e){return i(e,-64)}static int72(e){return i(e,-72)}static int80(e){return i(e,-80)}static int88(e){return i(e,-88)}static int96(e){return i(e,-96)}static int104(e){return i(e,-104)}static int112(e){return i(e,-112)}static int120(e){return i(e,-120)}static int128(e){return i(e,-128)}static int136(e){return i(e,-136)}static int144(e){return i(e,-144)}static int152(e){return i(e,-152)}static int160(e){return i(e,-160)}static int168(e){return i(e,-168)}static int176(e){return i(e,-176)}static int184(e){return i(e,-184)}static int192(e){return i(e,-192)}static int200(e){return i(e,-200)}static int208(e){return i(e,-208)}static int216(e){return i(e,-216)}static int224(e){return i(e,-224)}static int232(e){return i(e,-232)}static int240(e){return i(e,-240)}static int248(e){return i(e,-248)}static int256(e){return i(e,-256)}static int(e){return i(e,-256)}static bytes1(e){return o(e,1)}static bytes2(e){return o(e,2)}static bytes3(e){return o(e,3)}static bytes4(e){return o(e,4)}static bytes5(e){return o(e,5)}static bytes6(e){return o(e,6)}static bytes7(e){return o(e,7)}static bytes8(e){return o(e,8)}static bytes9(e){return o(e,9)}static bytes10(e){return o(e,10)}static bytes11(e){return o(e,11)}static bytes12(e){return o(e,12)}static bytes13(e){return o(e,13)}static bytes14(e){return o(e,14)}static bytes15(e){return o(e,15)}static bytes16(e){return o(e,16)}static bytes17(e){return o(e,17)}static bytes18(e){return o(e,18)}static bytes19(e){return o(e,19)}static bytes20(e){return o(e,20)}static bytes21(e){return o(e,21)}static bytes22(e){return o(e,22)}static bytes23(e){return o(e,23)}static bytes24(e){return o(e,24)}static bytes25(e){return o(e,25)}static bytes26(e){return o(e,26)}static bytes27(e){return o(e,27)}static bytes28(e){return o(e,28)}static bytes29(e){return o(e,29)}static bytes30(e){return o(e,30)}static bytes31(e){return o(e,31)}static bytes32(e){return o(e,32)}static address(e){return new l(s,"address",e)}static bool(e){return new l(s,"bool",!!e)}static bytes(e){return new l(s,"bytes",e)}static string(e){return new l(s,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new l(s,"overrides",Object.assign({},e))}
311static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===a}static dereference(e,t){if(l.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=l},99629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;let n=r(53879),s=r(66644),i=BigInt(0),o=BigInt(36);function a(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,s.getBytes)((0,n.keccak256)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let l={};for(let e=0;e<10;e++)l[String(e)]=String(e);for(let e=0;e<26;e++)l[String.fromCharCode(65+e)]=String(10+e);function c(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>l[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let u=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function d(e){if((0,s.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=a(e);return(0,s.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,s.assertArgument)(e.substring(2,4)===c(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=i;for(let r=0;r<e.length;r++)t=t*o+u[e[r]];return t})(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return a("0x"+t)}(0,s.assertArgument)(!1,"invalid address","address",e)}t.getAddress=d,t.getIcapAddress=function(e){let t=BigInt(d(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+c("XE00"+t)+t}},54552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;let n=r(66644),s=r(99629);function i(e){return e&&"function"==typeof e.getAddress}async function o(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,n.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,n.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,s.getAddress)(r)}t.isAddressable=i,t.isAddress=function(e){try{return(0,s.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,s.getAddress)(e):((0,n.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(e,t.resolveName(e))):i(e)?o(e,e.getAddress()):e&&"function"==typeof e.then?o(e,e):void(0,n.assertArgument)(!1,"unsupported addressable value","target",e)}},70394:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;let n=r(53879),s=r(66644),i=r(99629);t.getCreateAddress=function(e){let t=(0,i.getAddress)(e.from),r=(0,s.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,i.getAddress)((0,s.dataSlice)((0,n.keccak256)((0,s.encodeRlp)([t,r])),12))},t.getCreate2Address=function(e,t,r){let o=(0,i.getAddress)(e),a=(0,s.getBytes)(t,"salt"),l=(0,s.getBytes)(r,"initCodeHash");return(0,s.assertArgument)(32===a.length,"salt must be 32 bytes","salt",t),(0,s.assertArgument)(32===l.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,i.getAddress)((0,s.dataSlice)((0,n.keccak256)((0,s.concat)(["0xff",o,a,l])),12))}},24955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var n=r(99629);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return n.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return n.getIcapAddress}});var s=r(70394);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return s.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}});var i=r(54552);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}
311),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}})},82721:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},81596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},73421:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var n=r(82721);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return n.ZeroAddress}});var s=r(81596);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return s.ZeroHash}});var i=r(98708);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return i.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return i.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return i.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return i.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return i.MaxInt256}});var o=r(3346);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},98708:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},3346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="\x19Ethereum Signed Message:\n"},37309:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;let n=r(2387),s=r(24955),i=r(36829),o=r(66644),a=r(58629),l=BigInt(0);function c(e){return e&&"function"==typeof e.call}function u(e){return e&&"function"==typeof e.estimateGas}function d(e){return e&&"function"==typeof e.resolveName}function h(e){return e&&"function"==typeof e.sendTransaction}function f(e){if(null!=e){if(d(e))return e;if(e.provider)return e.provider}}class p{#v;fragment;constructor(e,t,r){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.length<r.length)throw Error("too many arguments");let n=g(e.runner,"resolveName"),i=d(n)?n:null;this.#v=async function(){let n=await Promise.all(t.inputs.map((e,t)=>null==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>(0,s.resolveAddress)(e,i))):(0,s.resolveAddress)(t,i):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#v}}function g(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function m(e){return null==e?null:e.provider||null}async function y(e,t){let r=n.Typed.dereference(e,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",e);let s=(0,i.copyRequest)(r);return(0,o.assertArgument)(null==s.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",s.to),(0,o.assertArgument)(null==s.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",s.data),s.from&&(s.from=s.from),s}async function b(e,t,r){let i=g(e,"resolveName"),o=d(i)?i:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=n.Typed.dereference(t,e),"address"===e)?(0,s.resolveAddress)(t,o):t)))}t.copyOverrides=y,t.resolveArgs=b;let A=Symbol.for("_ethersInternal_contract"),w=new WeakMap;function v(e){return w.get(e[A])}async function E(e,t){let r;let n=null;if(Array.isArray(t)){let n=function(t){if((0,o.isHexString)(t,32))return t;let r=e.interface.getEvent(t);return(0,o.assertArgument)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else"*"===t?r=[null]:"string"==typeof t?(0,o.isHexString)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,o.assertArgument)(n,"unknown fragment","event",t),r=[n.topicHash]):t&&"object"==typeof t&&"getTopicFilter"in t&&"function"==typeof t.getTopicFilter&&t.fragment?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,o.assertArgument)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function P(e,t){let{subs:r}=v(e);return r.get((await E(e,t)).tag)||null}async function k(e,t,r){let n=m(e.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:s,tag:i,topics:l}=await E(e,r),{addr:c,subs:u}=v(e),d=u.get(i);if(!d){let t={address:c||e,topics:l},o=t=>{let n=s;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let i=n,o=s?e.interface.decodeEventLog(s,t.data,t.topics):[];T(e,r,o,n=>new a.ContractEventPayload(e,n,r,i,t))}else T(e,r,[],n=>new a.ContractUnknownEventPayload(e,n,r,t))},h=[];d={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(t,o))},stop:async()=>
311{if(0==h.length)return;let e=h;h=[],await Promise.all(e),n.off(t,o)}},u.set(i,d)}return d}let x=Promise.resolve();async function C(e,t,r,n){await x;let s=await P(e,t);if(!s)return!1;let i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:t,once:s})=>{let i=Array.from(r);n&&i.push(n(s?null:t));try{t.call(e,...i)}catch(e){}return!s}),0===s.listeners.length&&(s.stop(),v(e).subs.delete(s.tag)),i>0}async function T(e,t,r,n){try{await x}catch(e){}let s=C(e,t,r,n);return x=s,await s}let O=["then"];class S{target;interface;runner;filters;[A];fallback;constructor(e,t,r,i){var p;let b;(0,o.assertArgument)("string"==typeof e||(0,s.isAddressable)(e),"invalid value for Contract target","target",e),null==r&&(r=null);let E=n.Interface.from(t);(0,o.defineProperties)(this,{target:e,runner:r,interface:E}),Object.defineProperty(this,A,{value:{}});let P=null,k=null;if(i){let e=m(r);k=new a.ContractTransactionResponse(this.interface,e,i)}let x=new Map;if("string"==typeof e){if((0,o.isHexString)(e))P=e,b=Promise.resolve(e);else{let t=g(r,"resolveName");if(!d(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});b=t.resolveName(e).then(t=>{if(null==t)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return v(this).addr=t,t})}}else b=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return v(this).addr=e,e});p={addrPromise:b,addr:P,deployTx:k,subs:x},w.set(this[A],p);let C=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||O.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>O.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:C}),(0,o.defineProperties)(this,{fallback:E.receive||E.fallback?function(e){let t=async function(t){let r=await y(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await (0,s.resolveAddress)(r.from,f(e.runner)));let n=e.interface,i=(0,o.getBigInt)(r.value||l,"overrides.value")===l,a="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||a||i||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data);let c=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(c||i,"cannot send value to non-payable fallback","overrides.value",r.value),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=g(e.runner,"call");(0,o.assert)(c(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let s=await t(r);try{return await n.call(s)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,s);throw t}},n=async function(r){let n=e.runner;(0,o.assert)(h(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let s=await n.sendTransaction(await t(r)),i=m(e.runner);return new a.ContractTransactionResponse(e.interface,i,s)},i=async function(r){let n=g(e.runner,"estimateGas");return(0,o.assert)(u(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},d=async e=>await n(e);return(0,o.defineProperties)(d,{_contract:e,estimateGas:i,populateTransaction:t,send:n,staticCall:r}),d}(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||O.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||O.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new S(this.target,this.interface,e)}attach(e){return new S(e,this.interface,this.runner)}async getAddress(){return await v(this).addrPromise}async getDeployedCode(){let e=m(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();
311if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=m(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return v(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),i={};if(n.inputs.length+1===t.length&&(i=await y(t.pop())).from&&(i.from=await (0,s.resolveAddress)(i.from,f(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let a=await b(e.runner,n.inputs,t);return Object.assign({},i,await (0,o.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,a)}))},i=async function(...e){let t=await p(...e);return 1===t.length?t[0]:t},l=async function(...t){let r=e.runner;(0,o.assert)(h(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let s=await r.sendTransaction(await n(...t)),i=m(e.runner);return new a.ContractTransactionResponse(e.interface,i,s)},d=async function(...t){let r=g(e.runner,"estimateGas");return(0,o.assert)(u(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},p=async function(...t){let s=g(e.runner,"call");(0,o.assert)(c(s),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await n(...t),a="0x";try{a=await s.call(i)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}let l=r(...t);return e.interface.decodeFunctionResult(l,a)},A=async(...e)=>r(...e).constant?await i(...e):await l(...e);return(0,o.defineProperties)(A,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:d,populateTransaction:n,send:l,staticCall:i,staticCallResult:p}),Object.defineProperty(A,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),A}(this,e)}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getEvent(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=function(...t){return new p(e,r(...t),t)};return(0,o.defineProperties)(n,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getEvent(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),n}(this,e)}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:s}=v(this),l=n||await s,{fragment:c,topics:u}=await E(this,e),d={address:l,topics:u,fromBlock:t,toBlock:r},h=m(this.runner);return(0,o.assert)(h,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await h.getLogs(d)).map(e=>{let t=c;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new a.EventLog(e,this.interface,t)}catch(t){return new a.UndecodedEventLog(e,t)}return new i.Log(e,h)})}async on(e,t){let r=await k(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await k(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await T(this,e,t,null)}async listenerCount(e){if(e){let t=await P(this,e);return t?t.listeners.length:0}let{subs:t}=v(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await P(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=v(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await P(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),v(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await P(this,e);if(!t)return this;t.stop(),v(this).subs.delete(t.tag)}else{let{subs:e}=v(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends S{constructor(t,r=null){super(t,e,r)}}return t}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function B(){return S}t.BaseContract=S;class R extends B(){}t.Contract=R},55091:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;let n=r(2387),s=r(24955),i=r(66644),o=r(37309);class a{interface;bytecode;runner;constructor(e,t,r){let s=n.Interface.from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,i.hexlify)((0,i.getBytes)(t)),(0,i.defineProperties)(this,{bytecode:t,interface:s,runner:r||null})}attach(e){return new o.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={},r=this.interface.deploy;if(r.inputs.length+1===e.length&&(t=await (0,o.copyOverrides)(e.pop())),r.inputs.length!==e.length)throw Error("incorrect number of arguments to constructor");let n=await (0,o.resolveArgs)(this.runner,r.inputs,e);return Object.assign({},t,{data:(0,i.concat)([this.bytecode,this.interface.encodeDeploy(n)])})}async deploy(...e){let t=await this.getDeployTransaction(...e);(0,i.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let r=await this.runner.sendTransaction(t),n=(0,s.getCreateAddress)(r);return new o.BaseContract(n,this.interface,this.runner,r)}connect(e){return new a(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,i.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n="";return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}}t.ContractFactory=a},60153:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var n=r(37309);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return n.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return n.Contract}});var s=r(55091);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}});var i=r(58629);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}})},58629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;let n=r(36829),s=r(66644);class i extends n.Log{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,s.defineProperties)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=i;class o extends n.Log{error;constructor(e,t){super(e,e.provider),(0,s.defineProperties)(this,{error:t})}}t.UndecodedEventLog=o;class a extends n.TransactionReceipt{#E;constructor(e,t,r){super(r,t),this.#E=e}get logs(){return super.logs.map(e=>
311{let t=e.topics.length?this.#E.getEvent(e.topics[0]):null;if(t)try{return new i(e,this.#E,t)}catch(t){return new o(e,t)}return e})}}t.ContractTransactionReceipt=a;class l extends n.TransactionResponse{#E;constructor(e,t,r){super(r,t),this.#E=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new a(this.#E,this.provider,r)}}t.ContractTransactionResponse=l;class c extends s.EventPayload{log;constructor(e,t,r,n){super(e,t,r),(0,s.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=c;class u extends c{constructor(e,t,r,n,o){super(e,t,r,new i(o,e.interface,n));let a=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,s.defineProperties)(this,{args:a,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.ContractEventPayload=u},28078:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;let n=r(86358),s=r(94913),i=r(43639),o=r(12502),a=r(66644),l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),c=l.crypto||l.msCrypto;t.createHash=function(e){switch(e){case"sha256":return i.sha256.create();case"sha512":return o.sha512.create()}(0,a.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){let r={sha256:i.sha256,sha512:o.sha512}[e];return(0,a.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),n.hmac.create(r,t)},t.pbkdf2Sync=function(e,t,r,n,l){let c={sha256:i.sha256,sha512:o.sha512}[l];return(0,a.assertArgument)(null!=c,"invalid pbkdf2 algorithm","algorithm",l),(0,s.pbkdf2)(c,e,t,{c:r,dkLen:n})},t.randomBytes=function(e){(0,a.assert)(null!=c,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,a.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return c.getRandomValues(t),t}},24038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;let n=r(28078),s=r(66644),i=!1,o=function(e,t,r){return(0,n.createHmac)(e,t).update(r).digest()},a=o;function l(e,t,r){let n=(0,s.getBytes)(t,"key"),i=(0,s.getBytes)(r,"data");return(0,s.hexlify)(a(e,n,i))}t.computeHmac=l,l._=o,l.lock=function(){i=!0},l.register=function(e){if(i)throw Error("computeHmac is locked");a=e},Object.freeze(l)},53879:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;let n=r(24038);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}});let s=r(26818);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return s.keccak256}});let i=r(3858);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});let o=r(84144);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});let a=r(53801);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return a.randomBytes}});let l=r(6544);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return l.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return l.scryptSync}});let c=r(49053);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}});var u=r(65598);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var d=r(11993);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return d.Signature}}),t.lock=function(){n.computeHmac.lock(),s.keccak256.lock(),o.pbkdf2.lock(),a.randomBytes.lock(),i.ripemd160.lock(),l.scrypt.lock(),l.scryptSync.lock(),c.sha256.lock(),c.sha512.lock(),a.randomBytes.lock()}},26818:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;let n=r(66463),s=r(66644),i=!1,o=function(e){return(0,n.keccak_256)(e)},a=o;function l(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}t.keccak256=l,l._=o,l.lock=function(){i=!0},l.register=function(e){if(i)throw TypeError("keccak256 is locked");a=e},Object.freeze(l)},84144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;let n=r(28078),s=r(66644),i=!1,o=function(e,t,r,s,i){return(0,n.pbkdf2Sync)(e,t,r,s,i)},a=o;function l(e,t,r,n,i){let o=(0,s.getBytes)(e,"password"),l=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(a(o,l,r,n,i))}t.pbkdf2=l,l._=o,l.lock=function(){i=!0},l.register=function(e){if(i)throw Error("pbkdf2 is locked");a=e},Object.freeze(l)},53801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;let n=r(28078),s=!1,i=function(e){return new Uint8Array((0,n.randomBytes)(e))},o=i;function a(e){return o(e)}t.randomBytes=a,a._=i,a.lock=function(){s=!0},a.register=function(e){if(s)throw Error("randomBytes is locked");o=e},Object.freeze(a)},3858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;let n=r(9782),s=r(66644),i=!1,o=function(e){return(0,n.ripemd160)(e)},a=o;function l(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}t.ripemd160=l,l._=o,l.lock=function(){i=!0},l.register=function(e){if(i)throw TypeError("ripemd160 is locked");a=e},Object.freeze(l)},6544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;let n=r(15756),s=r(66644),i=!1,o=!1,a=async function(e,t,r,s,i,o,a){return await (0,n.scryptAsync)(e,t,{N:r,r:s,p:i,dkLen:o,onProgress:a})},l=function(e,t,r,s,i,o){return(0,n.scrypt)(e,t,{N:r,r:s,p:i,dkLen:o})},c=a,u=l;async function d(e,t,r,n,i,o,a){let l=(0,s.getBytes)(e,"passwd"),u=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(await c(l,u,r,n,i,o,a))}function h(e,t,r,n,i,o){let a=(0,s.getBytes)(e,"passwd"),l=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(u(a,l,r,n,i,o))}t.scrypt=d,d._=a,d.lock=function(){o=!0},d.register=function(e){if(o)throw Error("scrypt is locked");c=e},Object.freeze(d),t.scryptSync=h,h._=l,h.lock=function(){i=!0},h.register=function(e){if(i)throw Error("scryptSync is locked");u=e},Object.freeze(h)},49053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;let n=r(28078),s=r(66644),i=function(e){return(0,n.createHash)("sha256").update(e).digest()},o=function(e){return(0,n.createHash)("sha512").update(e).digest()},a=i,l=o,c=!1,u=!1;function d(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}function h(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(l(t))}t.sha256=d,d._=i,d.lock=function(){c=!0},d.register=function(e){if(c)throw Error("sha256 is locked");a=e},Object.freeze(d),t.sha512=h,h._=o,h.lock=function(){u=!0},h.register=function(e){if(u)throw Error("sha512 is locked");l=e},Object.freeze(d)},11993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;let n=r(73421),s=r(66644),i=BigInt(0),o=BigInt(1),a=BigInt(2),l=BigInt(27),c=BigInt(28),u=BigInt(35),d={};function h(e){return(0,s.zeroPadValue)((0,s.toBeArray)(e),32)}class f{#P;#k;#x;#C;get r(){return this.#P}set r(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid r","value",e),this.#P=(0,s.hexlify)(e)}get s(){return this.#k}set s(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid s","value",e);let t=(0,s.hexlify)(e);(0,s.assertArgument)(8>parseInt(t.substring(0,3)),"non-canonical s","value",t),this.#k=t}get v(){return this.#x}set v(e){let t=(0,s.getNumber)(e,"value");(0,s.assertArgument)(27===t||28===t,"invalid v","v",e),this.#x=t}get networkV(){return this.#C}get legacyChainId(){let e=this.networkV;return null==e?null:f.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){let e=(0,s.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,s.hexlify)(e)}get compactSerialized(){return(0,s.concat)([this.r,this.yParityAndS])}get serialized(){return(0,s.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,s.assertPrivate)(e,d,"Signature"),this.#P=t,this.#k=r,this.#x=n,this.#C=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){let e=new f(d,this.r,this.s,this.v);return this.networkV&&(e.#C=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){let t=(0,s.getBigInt)(e,"v");return t==l||t==c?i:((0,s.assertArgument)(t>
311=u,"invalid EIP-155 v","v",e),(t-u)/a)}static getChainIdV(e,t){return(0,s.getBigInt)(e)*a+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,s.getBigInt)(e);return t===i||t===l?27:t===o||t===c?28:((0,s.assertArgument)(t>=u,"invalid v","v",e),t&o?27:28)}static from(e){function t(t,r){(0,s.assertArgument)(t,r,"signature",e)}if(null==e)return new f(d,n.ZeroHash,n.ZeroHash,27);if("string"==typeof e){let r=(0,s.getBytes)(e,"signature");if(64===r.length){let e=(0,s.hexlify)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new f(d,e,(0,s.hexlify)(t),n)}if(65===r.length){let e=(0,s.hexlify)(r.slice(0,32)),n=r.slice(32,64);t((128&n[0])==0,"non-canonical s");let i=f.getNormalizedV(r[64]);return new f(d,e,(0,s.hexlify)(n),i)}t(!1,"invalid raw signature length")}if(e instanceof f)return e.clone();let r=e.r;t(null!=r,"missing r");let i=h(r),o=function(e,r){if(null!=e)return h(e);if(null!=r){t((0,s.isHexString)(r,32),"invalid yParityAndS");let e=(0,s.getBytes)(r);return e[0]&=127,(0,s.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t((128&(0,s.getBytes)(o)[0])==0,"non-canonical s");let{networkV:a,v:l}=function(e,r,n){if(null!=e){let t=(0,s.getBigInt)(e);return{networkV:t>=u?t:void 0,v:f.getNormalizedV(t)}}if(null!=r)return t((0,s.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,s.getBytes)(r)[0]?28:27};if(null!=n){switch((0,s.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new f(d,i,o,l);return a&&(c.#C=a),t(null==e.yParity||(0,s.getNumber)(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}}t.Signature=f},65598:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;let n=r(10914),s=r(66644),i=r(11993);class o{#T;constructor(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#T=(0,s.hexlify)(e)}get privateKey(){return this.#T}get publicKey(){return o.computePublicKey(this.#T)}
311get compressedPublicKey(){return o.computePublicKey(this.#T,!0)}sign(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);let t=n.secp256k1.sign((0,s.getBytesCopy)(e),(0,s.getBytesCopy)(this.#T),{lowS:!0});return i.Signature.from({r:(0,s.toBeHex)(t.r,32),s:(0,s.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=o.computePublicKey(e);return(0,s.hexlify)(n.secp256k1.getSharedSecret((0,s.getBytesCopy)(this.#T),(0,s.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,s.getBytes)(e,"key");if(32===r.length){let e=n.secp256k1.getPublicKey(r,!!t);return(0,s.hexlify)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let i=n.secp256k1.ProjectivePoint.fromHex(r);return(0,s.hexlify)(i.toRawBytes(t))}static recoverPublicKey(e,t){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);let r=i.Signature.from(t),o=n.secp256k1.Signature.fromCompact((0,s.getBytesCopy)((0,s.concat)([r.r,r.s]))),a=(o=o.addRecoveryBit(r.yParity)).recoverPublicKey((0,s.getBytesCopy)(e));return(0,s.assertArgument)(null!=a,"invalid signautre for digest","signature",t),"0x"+a.toHex(!1)}static addPoints(e,t,r){let s=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(e).substring(2)),i=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(t).substring(2));return"0x"+s.add(i).toHex(!!r)}}t.SigningKey=o},93138:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EtherscanPlugin=t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.toBeArray=t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=void 0;var n=r(26991);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return n.version}});var s=r(2387);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return s.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return s.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return s.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return s.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return s.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return s.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return s.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return s.Typed}});var i=r(24955);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return i.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return i.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}
311),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}});var o=r(73421);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var a=r(60153);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return a.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return a.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return a.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}});var l=r(53879);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return l.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return l.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return l.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return l.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return l.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return l.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return l.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return l.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return l.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return l.SigningKey}});var c=r(9387);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return c.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return c.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return c.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return c.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return c.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}
311});var u=r(72118);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return u.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return u.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return u.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return u.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return u.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return u.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return u.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return u.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return u.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return u.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return u.AnkrProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return u.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return u.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return u.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return u.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return u.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return u.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return u.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return u.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return u.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return u.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return u.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return u.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return u.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return u.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return u.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return u.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return u.showThrottleMessage}});var d=r(91529);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return d.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return d.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return d.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return d.Transaction}});var h=r(66644);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return h.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return h.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return h.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return h.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return h.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return h.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return h.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return h.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return h.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return h.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return h.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return h.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return h.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return h.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return h.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return h.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return h.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return h.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return h.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return h.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return h.assertPrivate}}
311),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return h.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return h.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return h.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return h.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return h.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return h.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return h.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return h.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return h.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return h.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return h.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return h.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return h.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return h.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return h.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return h.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return h.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return h.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return h.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return h.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return h.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return h.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return h.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return h.uuidV4}});var f=r(26499);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return f.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return f.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return f.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return f.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return f.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return f.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return f.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return f.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return f.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return f.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return f.encryptKe
311ystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.encryptKeystoreJsonSync}});var p=r(53664);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return p.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return p.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return p.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return p.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return p.wordlists}})},95702:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;let n=r(53879),s=r(66644);t.id=function(e){return(0,n.keccak256)((0,s.toUtf8Bytes)(e))}},9387:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var n=r(95702);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return n.id}});var s=r(93981);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return s.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return s.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return s.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return s.dnsEncode}});var i=r(45521);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return i.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return i.verifyMessage}});var o=r(18097);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var a=r(17298);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return a.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return a.verifyTypedData}})},45521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;let n=r(53879),s=r(73421),i=r(91529),o=r(66644);function a(e){return"string"==typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,n.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(s.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=a,t.verifyMessage=function(e,t){let r=a(e);return(0,i.recoverAddress)(r,t)}},93981:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;let n=r(53879),s=r(66644),i=r(60807),o=new Uint8Array(32);function a(e){return(0,s.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function l(e){let t=(0,s.toUtf8Bytes)(c(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(a(t.slice(n,e))),n=e+1);return(0,s.assertArgument)(n<t.length,"invalid ENS name; empty component","name",e),r.push(a(t.slice(n))),r}function c(e){try{if(0===e.length)throw Error("empty label");return(0,i.ens_normalize)(e)}catch(t){(0,s.assertArgument)(!1,`invalid ENS name (${t.message})`,"name",e)}}o.fill(0),t.ensNormalize=c,t.isValidName=function(e){try{return 0!==l(e).length}catch(e){}return!1},t.namehash=function(e){(0,s.assertArgument)("string"==typeof e,"invalid ENS name; not a string","name",e),(0,s.assertArgument)(e.length,"invalid ENS name (empty label)","name",e);let t=o,r=l(e);for(;r.length;)t=(0,n.keccak256)((0,s.concat)([t,(0,n.keccak256)(r.pop())]));return(0,s.hexlify)(t)},t.dnsEncode=function(e,t){let r=null!=t?t:63;return(0,s.assertArgument)(r<=255,"DNS encoded label cannot exceed 255","length",r),(0,s.hexlify)((0,s.concat)(l(e).map(t=>{(0,s.assertArgument)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}},18097:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;let n=r(24955),s=r(53879),i=r(66644),o=RegExp("^bytes([0-9]+)$"),a=RegExp("^(u?int)([0-9]*)$"),l=RegExp("^(.*)\\[([0-9]*)\\]$");function c(e,t){(0,i.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,s){r.push(function e(t,r,s){switch(t){case"address":if(s)return(0,i.getBytes)((0,i.zeroPadValue)(r,32));return(0,i.getBytes)((0,n.getAddress)(r));case"string":return(0,i.toUtf8Bytes)(r);case"bytes":return(0,i.getBytes)(r);case"bool":if(r=r?"0x01":"0x00",s)return(0,i.getBytes)((0,i.zeroPadValue)(r,32));return(0,i.getBytes)(r)}let c=t.match(a);if(c){let e="int"===c[1],n=parseInt(c[2]||"256");return(0,i.assertArgument)((!c[2]||c[2]===String(n))&&n%8==0&&0!==n&&n<=256,"invalid number type","type",t),s&&(n=256),e&&(r=(0,i.toTwos)(r,n)),(0,i.getBytes)((0,i.zeroPadValue)((0,i.toBeArray)(r),n/8))}if(c=t.match(o)){let e=parseInt(c[1]);return((0,i.assertArgument)(String(e)===c[1]&&0!==e&&e<=32,"invalid bytes type","type",t),(0,i.assertArgument)((0,i.dataLength)(r)===e,`invalid value for ${t}`,"value",r),s)?(0,i.getBytes)((0,i.zeroPadBytes)(r,32)):r}if((c=t.match(l))&&Array.isArray(r)){let n=c[1],s=parseInt(c[2]||String(r.length));(0,i.assertArgument)(s===r.length,`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(n,t,!0))}),(0,i.getBytes)((0,i.concat)(o))}(0,i.assertArgument)(!1,"invalid type","type",t)}(e,t[s]))}),(0,i.hexlify)((0,i.concat)(r))}t.solidityPacked=c,t.solidityPackedKeccak256=function(e,t){return(0,s.keccak256)(c(e,t))},t.solidityPackedSha256=function(e,t){return(0,s.sha256)(c(e,t))}},17298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;let n=r(24955),s=r(53879),i=r(91529),o=r(66644),a=r(95702),l=new Uint8Array(32);l.fill(0);let c=BigInt(-1),u=BigInt(0),d=BigInt(1),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=(0,o.toBeHex)(d,32),p=(0,o.toBeHex)(u,32),g={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},m=["name","version","chainId","verifyingContract","salt"];function y(e){return function(t){return(0,o.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let b={name:y("name"),version:y("version"),chainId:function(e){let t=(0,o.getBigInt)(e,"domain.chainId");return((0,o.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,o.toQuantity)(t)},verifyingContract:function(e){try{return(0,n.getAddress)(e).toLowerCase()}catch(e){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,o.getBytes)(e,"domain.salt");return(0,o.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,o.hexlify)(t)}};function A(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,o.assertArgument)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let s=(0,o.mask)(h,r?n-1:n),i=r?(s+d)*c:u;return function(t){let n=(0,o.getBigInt)(t,"value");return(0,o.assertArgument)(n>=i&&n<=s,`value out-of-bounds for ${e}`,"value",n),(0,o.toBeHex)(r?(0,o.toTwos)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,o.assertArgument)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,o.getBytes)(t);return(0,o.assertArgument)(n.length===r,`invalid length for ${e}`,"value",t),function(e){let t=(0,o.getBytes)(e),r=t.length%32;return r?(0,o.concat)([t,l.slice(r)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.zeroPadValue)((0,n.getAddress)(e),32)};case"bool":return function(e){return e?f:p};case"bytes":return function(e){return(0,s.keccak256)(e)};case"string":return function(e){return(0,a.id)(e)}}return null}function w(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function v(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class E{primaryType;#O;get types(){return JSON.parse(this.#O)}#S;#B;constructor(e){this.#S=new Map,this.#B=new Map;let t=new Map,r=new Map,n=new Map,s={};for(let i in Object.keys(e).forEach(i=>
311{s[i]=e[i].map(({name:t,type:r})=>{let{base:n,index:s}=v(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(s||"")}}),t.set(i,new Set),r.set(i,[]),n.set(i,new Set)}),this.#O=JSON.stringify(s),s){let n=new Set;for(let a of s[i]){(0,o.assertArgument)(!n.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(i)}`,"types",e),n.add(a.name);let s=v(a.type).base;(0,o.assertArgument)(s!==i,`circular type reference to ${JSON.stringify(s)}`,"types",e),A(s)||((0,o.assertArgument)(r.has(s),`unknown type ${JSON.stringify(s)}`,"types",e),r.get(s).push(i),t.get(i).add(s))}}let i=Array.from(r.keys()).filter(e=>0===r.get(e).length);for(let[a,l]of((0,o.assertArgument)(0!==i.length,"missing primary type","types",e),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,o.defineProperties)(this,{primaryType:i[0]}),!function s(i,a){for(let l of((0,o.assertArgument)(!a.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),a.add(i),t.get(i)))if(r.has(l))for(let e of(s(l,a),a))n.get(e).add(l);a.delete(i)}(this.primaryType,new Set),n)){let e=Array.from(l);e.sort(),this.#S.set(a,w(a,s[a])+e.map(e=>w(e,s[e])).join(""))}}getEncoder(e){let t=this.#B.get(e);return t||(t=this.#R(e),this.#B.set(e,t)),t}#R(e){{let t=A(e);if(t)return t}let t=v(e).array;
311if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,o.assertArgument)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let i=n.map(r);return this.#S.has(e)&&(i=i.map(s.keccak256)),(0,s.keccak256)((0,o.concat)(i))}}let r=this.types[e];if(r){let t=(0,a.id)(this.#S.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#S.has(r)?(0,s.keccak256)(n):n});return n.unshift(t),(0,o.concat)(n)}}(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#S.get(e);return(0,o.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,s.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(A(e))return r(e,t);let n=v(e).array;if(n)return(0,o.assertArgument)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let s=this.types[e];if(s)return s.reduce((e,{name:n,type:s})=>(e[n]=this._visit(s,t[n],r),e),{});(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new E(e)}static getPrimaryType(e){return E.from(e).primaryType}static hashStruct(e,t,r){return E.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=g[r];(0,o.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>m.indexOf(e.name)-m.indexOf(t.name)),E.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,o.concat)(["0x1901",E.hashDomain(e),E.from(t).hash(r)])}static hash(e,t,r){return(0,s.keccak256)(E.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let s={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");let i=E.from(t);for(let e in i.visit(r,(e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(s[t]="0x"),t)),s)s[e]=await n(e);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),r=i.visit(r,(e,t)=>"address"===e&&s[t]?s[t]:t),{domain:e,value:r}}static getPayload(e,t,r){E.hashDomain(e);let n={},s=[];m.forEach(t=>{let r=e[t];null!=r&&(n[t]=b[t](r),s.push({name:t,type:g[t]}))});let i=E.from(t),a=Object.assign({},t=i.types);return(0,o.assertArgument)(null==a.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),a.EIP712Domain=s,i.encode(r),{types:a,domain:n,primaryType:i.primaryType,message:i.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(t));if(e.match(/^u?int/))return(0,o.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,o.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,o.assertArgument)(!1,"unsupported type","type",e)})}}}t.TypedDataEncoder=E,t.verifyTypedData=function(e,t,r,n){return(0,i.recoverAddress)(E.hash(e,t,r),n)}},86169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;let n=r(86700),s=n.__importStar(r(93138));t.ethers=s,n.__exportStar(r(93138),t)},35249:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;let n=r(24955),s=r(73421),i=r(60153),o=r(9387),a=r(91529),l=r(66644),c=r(12044),u=r(37800),d=r(51367),h=r(36829),f=r(78216),p=BigInt(2);function g(e){return e&&"function"==typeof e.then}function m(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class y{name;constructor(e){(0,l.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}
311function b(e){return(e=Array.from(new Set(e).values())).sort(),e}async function A(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,l.isHexString)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:m("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:m("orphan",t),filter:JSON.parse(JSON.stringify(t))}}if(e.address||e.topics){let r=e,s={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?b(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],o=r=>{(0,l.isHexString)(r)?e.push(r):i.push((async()=>{e.push(await (0,n.resolveAddress)(r,t))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),s.address=b(e.map(e=>e.toLowerCase()))}return{filter:s,tag:m("event",s),type:"event"}}(0,l.assertArgument)(!1,"unknown ProviderEvent","event",e)}function w(){return new Date().getTime()}t.UnmanagedSubscriber=y;let v={cacheTimeout:250,pollingInterval:4e3};class E{#N;#M;#I;#L;#D;#F;#U;#j;#_;#H;#G;#w;constructor(e,t){if(this.#w=Object.assign({},v,t||{}),"any"===e)this.#F=!0,this.#D=null;else if(e){let t=d.Network.from(e);this.#F=!1,this.#D=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#F=!1,this.#D=null;this.#j=-1,this.#U=new Map,this.#N=new Map,this.#M=new Map,this.#I=null,this.#L=!1,this.#_=1,this.#H=new Map,this.#G=!1}get pollingInterval(){return this.#w.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#M.values())}attachPlugin(e){if(this.#M.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#M.set(e.name,e.connect(this)),this}getPlugin(e){return this.#M.get(e)||null}get disableCcipRead(){return this.#G}set disableCcipRead(e){this.#G=!!e}async #K(e){let t=this.#w.cacheTimeout;if(t<0)return await this._perform(e);let r=m(e.method,e),n=this.#U.get(r);return n||(n=this._perform(e),this.#U.set(r,n),setTimeout(()=>{this.#U.get(r)===n&&this.#U.delete(r)},t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),s=t.toLowerCase(),i=[];for(let t=0;t<r.length;t++){let o=r[t],a=o.replace("{sender}",n).replace("{data}",s),c=new l.FetchRequest(a);-1===o.indexOf("{data}")&&(c.body={data:s,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:c,index:t,urls:r});let u="unknown error",d=await c.send();try{let e=d.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:c,result:e}),e.data;e.message&&(u=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:c,result:e})}catch(e){}(0,l.assert)(d.statusCode<400||d.statusCode>=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:o,errorMessage:u}}),i.push(u)}(0,l.assert)(!1,`error encountered during CCIP fetch: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:i}})}_wrapBlock(e,t){return new h.Block((0,u.formatBlock)(e),this)}_wrapLog(e,t){return new h.Log((0,u.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new h.TransactionReceipt((0,u.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new h.TransactionResponse((0,u.formatTransactionResponse)(e),this)}_detectNetwork(){(0,l.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,l.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,l.getNumber)(await this.#K({method:"getBlockNumber"}),"%response");return this.#j>=0&&(this.#j=e),e}_getAddress(e){return(0,n.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,l.isHexString)(e)?(0,l.isHexString)(e,32)?e:(0,l.toQuantity)(e):("bigint"==typeof e&&(e=(0,l.getNumber)(e,"blockTag")),"number"==typeof e)?e>=0?(0,l.toQuantity)(e):this.#j>=0?(0,l.toQuantity)(this.#j+e):this.getBlockNumber().then(t=>(0,l.toQuantity)(t+e)):void(0,l.assertArgument)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r;let n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?b(e.map(e=>e.toLowerCase())):e.toLowerCase()),s="blockHash"in e?e.blockHash:void 0,i=(e,t,r)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(s&&(null!=t||null!=r))throw Error("invalid filter");let o={};return i&&(o.address=i),n.length&&(o.topics=n),t&&(o.fromBlock=t),r&&(o.toBlock=r),s&&(o.blockHash=s),o},o=[];if(e.address){if(Array.isArray(e.address))for(let t of e.address)o.push(this._getAddress(t));else o.push(this._getAddress(e.address))}return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),o.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(o),t,r]).then(e=>i(e[0],e[1],e[2])):i(o,t,r)}_getTransactionRequest(e){let t=(0,h.copyRequest)(e),r=[];
311if(["to","from"].forEach(e=>{if(null==t[e])return;let s=(0,n.resolveAddress)(t[e],this);g(s)?r.push(async function(){t[e]=await s}()):t[e]=s}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);g(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#D){let e=(async()=>{try{let e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#D===e&&(this.#D=null),t}})();return this.#D=e,(await e).clone()}let e=this.#D,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#F?(this.emit("network",r,t),this.#D===e&&(this.#D=Promise.resolve(r))):(0,l.assert)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,l.resolveProperties)({_block:this.#Q("latest",!1),gasPrice:(async()=>{try{let e=await this.#K({method:"getGasPrice"});return(0,l.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#K({method:"getPriorityFee"});return(0,l.getBigInt)(e,"%response")}catch(e){}return null})()}),s=null,i=null,o=this._wrapBlock(t,e);return o&&o.baseFeePerGas&&(i=null!=n?n:BigInt("1000000000"),s=o.baseFeePerGas*p+i),new h.FeeData(r,s,i)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new l.FetchRequest(r.url),n=await r.processFunc(t,this,e);return new h.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return g(t)&&(t=await t),(0,l.getBigInt)(await this.#K({method:"estimateGas",transaction:t}),"%response")}async #V(e,t,r){(0,l.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let s=(0,h.copyRequest)(e);try{return(0,l.hexlify)(await this._perform({method:"call",transaction:s,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,l.isCallException)(e)&&e.data&&r>=0&&"latest"===t&&null!=s.to&&"0x556f1830"===(0,l.dataSlice)(e.data,0,4)){let i;let o=e.data,a=await (0,n.resolveAddress)(s.to,this);try{i=function(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,l.assert)((0,l.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,l.dataSlice)(e,0,32);(0,l.assert)((0,l.dataSlice)(r,0,12)===(0,l.dataSlice)(C,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,l.dataSlice)(r,12);try{let r=[],n=(0,l.getNumber)((0,l.dataSlice)(e,32,64)),s=(0,l.getNumber)((0,l.dataSlice)(e,n,n+32)),i=(0,l.dataSlice)(e,n+32);for(let e=0;e<s;e++){let t=function(e,t){try{let r=P(e,t);if(r)return(0,l.toUtf8String)(r)}catch(e){}return null}(i,32*e);if(null==t)throw Error("abort");r.push(t)}t.urls=r}catch(e){(0,l.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{let r=P(e,64);if(null==r)throw Error("abort");t.calldata=r}catch(e){(0,l.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,l.assert)((0,l.dataSlice)(e,100,128)===(0,l.dataSlice)(C,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,l.dataSlice)(e,96,100);try{let r=P(e,128);if(null==r)throw Error("abort");t.extraData=r}catch(e){(0,l.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(e=>t[e]),t}((0,l.dataSlice)(e.data,4))}catch(e){(0,l.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}(0,l.assert)(i.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let c=await this.ccipReadFetch(s,i.calldata,i.urls);(0,l.assert)(null!=c,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:e.data,errorArgs:i.errorArgs}});let u={to:a,data:(0,l.concat)([i.selector,function(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(x),r+=32;for(let n=0;n<e.length;n++){let s=(0,l.getBytes)(e[n]);t[n]=k(r),t.push(k(s.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(s)),r+=32+32*Math.ceil(s.length/32)}return(0,l.concat)(t)}([c,i.extraData])])};
311this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{let e=await this.#V(u,t,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:e}),e}}throw e}}async #z(e){let{value:t}=await (0,l.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){let{tx:t,blockTag:r}=await (0,l.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#z(this.#V(t,r,e.enableCcipRead?0:-1))}async #J(e,t,r){let n=this._getAddress(t),s=this._getBlockTag(r);return("string"!=typeof n||"string"!=typeof s)&&([n,s]=await Promise.all([n,s])),await this.#z(this.#K(Object.assign(e,{address:n,blockTag:s})))}async getBalance(e,t){return(0,l.getBigInt)(await this.#J({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,l.getNumber)(await this.#J({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,l.hexlify)(await this.#J({method:"getCode"},e,t))}async getStorage(e,t,r){let n=(0,l.getBigInt)(t,"position");return(0,l.hexlify)(await this.#J({method:"getStorage",position:n},e,r))}async broadcastTransaction(e){let{blockNumber:t,hash:r,network:n}=await (0,l.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),s=a.Transaction.from(e);if(s.hash!==r)throw Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(s,n).replaceableTransaction(t)}async #Q(e,t){if((0,l.isHexString)(e,32))return await this.#K({method:"getBlock",blockHash:e,includeTransactions:t});let r=this._getBlockTag(e);return"string"!=typeof r&&(r=await r),await this.#K({method:"getBlock",blockTag:r,includeTransactions:t})}async getBlock(e,t){let{network:r,params:n}=await (0,l.resolveProperties)({network:this.getNetwork(),params:this.#Q(e,!!t)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(e){let{network:t,params:r}=await (0,l.resolveProperties)({network:this.getNetwork(),params:this.#K({method:"getTransaction",hash:e})});return null==r?null:this._wrapTransactionResponse(r,t)}async getTransactionReceipt(e){let{network:t,params:r}=await (0,l.resolveProperties)({network:this.getNetwork(),params:this.#K({method:"getTransactionReceipt",hash:e})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){let t=await this.#K({method:"getTransaction",hash:e});if(null==t)throw Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(r,t)}async getTransactionResult(e){let{result:t}=await (0,l.resolveProperties)({network:this.getNetwork(),result:this.#K({method:"getTransactionResult",hash:e})});return null==t?null:(0,l.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);g(t)&&(t=await t);let{network:r,params:n}=await (0,l.resolveProperties)({network:this.getNetwork(),params:this.#K({method:"getLogs",filter:t})});return n.map(e=>this._wrapLog(e,r))}_getProvider(e){(0,l.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await c.EnsResolver.fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){let t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,n.getAddress)(e);let t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{let r=await c.EnsResolver.getEnsAddress(this),n=new i.Contract(r,["function resolver(bytes32) view returns (address)"],this),o=await n.resolver(t);if(null==o||o===s.ZeroAddress)return null;let a=new i.Contract(o,["function name(bytes32) view returns (string)"],this),l=await a.name(t);if(await this.resolveName(l)!==e)return null;return l}catch(e){if((0,l.isError)(e,"BAD_DATA")&&"0x"===e.value||(0,l.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,s)=>{let i=null,o=async r=>{try{let s=await this.getTransactionReceipt(e);
311if(null!=s&&r-s.blockNumber+1>=n){t(s),i&&(clearTimeout(i),i=null);return}}catch(e){console.log("EEE",e)}this.once("block",o)};null!=r&&(i=setTimeout(()=>{null!=i&&(i=null,this.off("block",o),s((0,l.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},r)),o(await this.getBlockNumber())})}async waitForBlock(e){(0,l.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#H.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#H.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#_++,n=()=>{this.#H.delete(r),e()};if(this.paused)this.#H.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#H.set(r,{timer:e,func:n,time:w()})}return r}_forEachSubscriber(e){for(let t of this.#N.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new y(e.type);case"block":{let e=new f.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new f.PollingBlockTagSubscriber(this,e.type);case"event":return new f.PollingEventSubscriber(this,e.filter);case"transaction":return new f.PollingTransactionSubscriber(this,e.hash);case"orphan":return new f.PollingOrphanSubscriber(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#N.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#I&&t.pause(this.#I);break}}async #W(e,t){let r=await A(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await A({orphan:"drop-log",log:t[0]},this)),this.#N.get(r.tag)||null}async #$(e){let t=await A(e,this),r=t.tag,n=this.#N.get(r);return!n&&(n={subscriber:this._getSubscriber(t),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#N.set(r,n)),n}async on(e,t){let r=await this.#$(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#I&&r.subscriber.pause(this.#I)),this}async once(e,t){let r=await this.#$(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#I&&r.subscriber.pause(this.#I)),this}async emit(e,...t){let r=await this.#W(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let s=new l.EventPayload(this,n?null:r,e);try{r.call(this,...t,s)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#N.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#W(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#N.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#W(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#N.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#W(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#N.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#$(e);r&&n.stop(),this.#N.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#N)t&&r.stop(),this.#N.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#L}destroy(){for(let e of(this.removeAllListeners(),this.#H.keys()))this._clearTimeout(e);this.#L=!0}get paused(){return null!=this.#I}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#j=-1,null!=this.#I){if(!!e==this.#I)return;(0,l.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#I=!!e,this.#H.values()))t.timer&&clearTimeout(t.timer),t.time=w()-t.time}resume(){if(null!=this.#I)for(let e of(this._forEachSubscriber(e=>e.resume()),this.#I=null,this.#H.values())){let t=e.time;t<0&&(t=0),e.time=w(),setTimeout(e.func,t)}}}function P(e,t){if("0x"===e)return null;try{let r=(0,l.getNumber)((0,l.dataSlice)(e,t,t+32)),n=(0,l.getNumber)((0,l.dataSlice)(e,r,r+32));return(0,l.dataSlice)(e,r+32,r+32+n)}catch(e){}return null}function k(e){let t=(0,l.toBeArray)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}t.AbstractProvider=E;let x=new Uint8Array([]),C="0x0000000000000000000000000000000000000000000000000000000000000000"},49281:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;let n=r(24955),s=r(91529),i=r(66644),o=r(36829);function a(e,t){if(e.provider)return e.provider;(0,i.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function l(e,t){let r=(0,o.copyRequest)(t);if(null!=r.to&&(r.to=(0,n.resolveAddress)(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),(0,n.resolveAddress)(t,e)]).then(([e,t])=>((0,i.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,i.resolveProperties)(r)}class c{provider;constructor(e){(0,i.defineProperties)(this,{provider:e||null})}async getNonce(e){return a(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await l(this,e)}async populateTransaction(e){let t=a(this,"populateTransaction"),r=await l(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,i.getBigInt)(r.chainId);(0,i.assertArgument)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let s=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||s)?(0,i.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e):(0===r.type||1===r.type)&&s&&(0,i.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,i.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?((0,i.assert)(!s,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,i.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"})}else 2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,i.resolveProperties)(r)}async estimateGas(e){return a(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return a(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=a(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=a(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=s.Transaction.from(r);return await t.broadcastTransaction(await this.signTransaction(n))}}t.AbstractSigner=c;class u extends c{address;constructor(e,t){super(t),(0,i.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new u(this.address,e)}#q(e,t){(0,i.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#q("transactions","signTransaction")}async signMessage(e){this.#q("messages","signMessage")}async signTypedData(e,t,r){this.#q("typed-data","signTypedData")}}t.VoidSigner=u},81248:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;let r=new Set;t.showThrottleMessage=function(e){r.has(e)||(r.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},17250:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;let n=r(66644),s=r(58638),i=r(78553),o=r(40955),a=r(72062),l=r(94609),c=r(90164),u=r(56402),d=r(55864),h=r(51367),f=r(48480),p="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});let r=e=>"-"!==t[e]&&("string"==typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"==typeof e&&e.match(/^https?:/))return new d.JsonRpcProvider(e);if("string"==typeof e&&e.match(/^wss?:/)||e&&"function"==typeof e.send&&"function"==typeof e.close)return new f.WebSocketProvider(e);let g=null;try{g=h.Network.from(e)}catch(e){}let m=[];if(r("publicPolygon")&&g&&"matic"===g.name&&m.push(new d.JsonRpcProvider("https://polygon-rpc.com/",g,{staticNetwork:g})),r("alchemy"))try{m.push(new i.AlchemyProvider(e,t.alchemy))}catch(e){}if(r("ankr")&&null!=t.ankr)try{m.push(new s.AnkrProvider(e,t.ankr))}catch(e){}if(r("cloudflare"))try{m.push(new o.CloudflareProvider(e))}catch(e){}if(r("etherscan"))try{m.push(new a.EtherscanProvider(e,t.etherscan))}catch(e){}if(r("infura"))try{let r,n=t.infura;"object"==typeof n&&(r=n.projectSecret,n=n.projectId),m.push(new l.InfuraProvider(e,n,r))}catch(e){}if(r("quicknode"))try{let r=t.quicknode;m.push(new c.QuickNodeProvider(e,r))}catch(e){}if((0,n.assert)(m.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===m.length)return m[0];let y=Math.floor(m.length/2);return y>2&&(y=2),g&&-1!==p.indexOf(g.name)&&(y=1),t&&t.quorum&&(y=t.quorum),new u.FallbackProvider(m,void 0,{quorum:y})}},12044:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;let n=r(24955),s=r(73421),i=r(60153),o=r(9387),a=r(66644);function l(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,a.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class c{name;constructor(e){(0,a.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}t.MulticoinProviderPlugin=c;class u extends c{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}}t.BasicMulticoinProviderPlugin=u;let d=RegExp("^(ipfs)://(.*)$","i"),h=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),d,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class f{provider;address;name;#Z;#Y;constructor(e,t,r){(0,a.defineProperties)(this,{provider:e,address:t,name:r}),this.#Z=null,this.#Y=new i.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#Z&&(this.#Z=(async()=>{try{return await this.#Y.supportsInterface("0x9061b923")}catch(e){if((0,a.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Z=null,e}})()),await this.#Z}async #X(e,t){t=(t||[]).slice();let r=this.#Y.interface;t.unshift((0,o.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,a.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,o.dnsEncode)(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{let s=await this.#Y[e](...t);if(n)return r.decodeFunctionResult(n,s)[0];return s}catch(e){if(!(0,a.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{let e=await this.#X("addr(bytes32)");if(null==e||e===s.ZeroAddress)return null;return e}catch(e){if((0,a.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<2147483648){let t=e+2147483648,r=await this.#X("addr(bytes32,uint)",[t]);if((0,a.isHexString)(r,20))return(0,n.getAddress)(r)}let t=null;for(let r of this.provider.plugins)if(r instanceof c&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;let r=await this.#X("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;let i=await t.decodeAddress(e,r);if(null!=i)return i;(0,a.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){let t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${(0,a.encodeBase58)("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,a.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;r<h.length;r++){let n=t.match(h[r]);if(null==n)continue;let s=n[1].toLowerCase();switch(s){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{let r=l(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:r}),{linkage:e,url:r}}case"erc721":case"erc1155":{let r="erc721"===s?"tokenURI(uint256)":"uri(uint256)";e.push({type:s,value:t});let o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};let c=(n[2]||"").split("/");if(2!==c.length)return e.push({type:`!${s}caip`,value:n[2]||""}),{url:null,linkage:e};let u=c[1],h=new i.Contract(c[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===s){let t=await h.ownerOf(u);
311if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===s){let t=await h.balanceOf(o,u);if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let f=await h[r](u);if(null==f||"0x"===f)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:f}),"erc1155"===s&&(f=f.replace("{id}",(0,a.toBeHex)(u,32).substring(2)),e.push({type:"metadata-url-expanded",value:f})),f.match(/^ipfs:/i)&&(f=l(f)),e.push({type:"metadata-url",value:f});let p={},g=await new a.FetchRequest(f).send();g.assertOk();try{p=g.bodyJson}catch(t){try{e.push({type:"!metadata",value:g.bodyText})}catch(r){let t=g.body;t&&e.push({type:"!metadata",value:(0,a.hexlify)(t)})}return{url:null,linkage:e}}if(!p)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(p)});let m=p.image;if("string"!=typeof m)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(m.match(/^(https:\/\/|data:)/i));else{let t=m.match(d);if(null==t)return e.push({type:"!imageUrl-ipfs",value:m}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:m}),m=l(m)}return e.push({type:"url",value:m}),{linkage:e,url:m}}}}}catch(e){}return{linkage:e,url:null}}static async getEnsAddress(e){let t=await e.getNetwork(),r=t.getPlugin("org.ethers.plugins.network.Ens");return(0,a.assert)(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),r.address}static async #ee(e,t){let r=await f.getEnsAddress(e);try{let n=new i.Contract(r,["function resolver(bytes32) view returns (address)"],e),a=await n.resolver((0,o.namehash)(t),{enableCcipRead:!0});if(a===s.ZeroAddress)return null;return a}catch(e){throw e}return null}static async fromName(e,t){let r=t;for(;;){if(""===r||"."===r||"eth"!==t&&"eth"===r)return null;let n=await f.#ee(e,r);if(null!=n){let s=new f(e,n,t);if(r!==t&&!await s.supportsWildcard())return null;return s}r=r.split(".").slice(1).join(".")}}}t.EnsResolver=f},37800:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;let n=r(24955),s=r(53879),i=r(91529),o=r(66644),a=BigInt(0);function l(e,t){return function(r){return null==r?t:e(r)}}function c(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function u(e,t){return r=>{let n={};for(let s in e){let i=s;if(t&&s in t&&!(i in r)){for(let e of t[s])if(e in r){i=e;break}}try{let t=e[s](r[i]);void 0!==t&&(n[s]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${s} (${e})`,"BAD_DATA",{value:r})}}return n}}function d(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function h(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function f(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=l,t.arrayOf=c,t.object=u,t.formatBoolean=d,t.formatData=h,t.formatHash=f,t.formatUint256=function(e){if(!(0,o.isHexString)(e))throw Error("invalid uint256");return(0,o.zeroPadValue)(e,32)};let p=u({address:n.getAddress,blockHash:f,blockNumber:o.getNumber,data:h,index:o.getNumber,removed:l(d,!1),topics:c(f),transactionHash:f,transactionIndex:o.getNumber},{index:["logIndex"]});t.formatLog=function(e){return p(e)};let g=u({hash:l(f),parentHash:f,parentBeaconBlockRoot:l(f,null),number:o.getNumber,timestamp:o.getNumber,nonce:l(h),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:l(f,null),receiptsRoot:l(f,null),blobGasUsed:l(o.getBigInt,null),excessBlobGas:l(o.getBigInt,null),miner:l(n.getAddress),extraData:h,baseFeePerGas:l(o.getBigInt)});t.formatBlock=function(e){let t=g(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:A(e)),t};let m=u({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:f,address:n.getAddress,topics:c(f),data:h,index:o.getNumber,blockHash:f},{index:["logIndex"]});function y(e){return m(e)}t.formatReceiptLog=y;
311let b=u({to:l(n.getAddress,null),from:l(n.getAddress,null),contractAddress:l(n.getAddress,null),index:o.getNumber,root:l(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:l(o.getBigInt,null),logsBloom:l(h),blockHash:f,hash:f,logs:c(y),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:l(o.getBigInt),blobGasPrice:l(o.getBigInt,null),status:l(o.getNumber),type:l(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function A(e){e.to&&(0,o.getBigInt)(e.to)===a&&(e.to="0x0000000000000000000000000000000000000000");let t=u({hash:f,index:l(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:l(i.accessListify,null),blobVersionedHashes:l(c(f,!0),null),blockHash:l(f,null),blockNumber:l(o.getNumber,null),transactionIndex:l(o.getNumber,null),from:n.getAddress,gasPrice:l(o.getBigInt),maxPriorityFeePerGas:l(o.getBigInt),maxFeePerGas:l(o.getBigInt),maxFeePerBlobGas:l(o.getBigInt,null),gasLimit:o.getBigInt,to:l(n.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:h,creates:l(n.getAddress,null),chainId:l(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,n.getCreateAddress)(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=s.Signature.from(e.signature):t.signature=s.Signature.from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===a&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return b(e)},t.formatTransactionResponse=A},72118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var n=r(35249);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return n.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return n.UnmanagedSubscriber}});var s=r(49281);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return s.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return s.VoidSigner}});var i=r(81248);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return i.showThrottleMessage}});var o=r(17250);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var a=r(12044);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return a.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return a.MulticoinProviderPlugin}});var l=r(51367);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return l.Network}});var c=r(7315);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}});var u=r(90988);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}});var d=r(36829);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return d.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return d.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return d.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return d.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return d.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return d.copyRequest}});var h=r(56402);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return h.FallbackProvider}});var f=r(55864);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return f.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return f.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return f.JsonRpcSigner}});var p=r(21012);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return p.BrowserProvider}});var g=r(78553);
311Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return g.AlchemyProvider}});var m=r(58638);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return m.AnkrProvider}});var y=r(40955);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return y.CloudflareProvider}});var b=r(72062);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return b.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return b.EtherscanPlugin}});var A=r(94609);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return A.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return A.InfuraWebSocketProvider}});var w=r(10621);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return w.PocketProvider}});var v=r(90164);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return v.QuickNodeProvider}});let E=r(83594);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return E.IpcSocketProvider}});var P=r(27364);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return P.SocketProvider}});var k=r(48480);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return k.WebSocketProvider}});var x=r(27364);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return x.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return x.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return x.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return x.SocketEventSubscriber}})},51367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;let n=r(91529),s=r(66644),i=r(90988),o=new Map;class a{#et;#er;#M;constructor(e,t){this.#et=e,this.#er=(0,s.getBigInt)(t),this.#M=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#et}set name(e){this.#et=e}get chainId(){return this.#er}set chainId(e){this.#er=(0,s.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,s.getBigInt)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#M.values())}attachPlugin(e){if(this.#M.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#M.set(e.name,e.clone()),this}getPlugin(e){return this.#M.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new a(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new i.GasCostPlugin,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n<e.data.length;n+=2)"00"===e.data.substring(n,n+2)?r+=t.txDataZero:r+=t.txDataNonzero;if(e.accessList){let s=(0,n.accessListify)(e.accessList);for(let e in s)r+=t.txAccessListAddress+t.txAccessListStorageKey*s[e].storageKeys.length}return r}static from(e){if(function(){u||(u=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("matic",137,{ensNetwork:1,plugins:[c("https://gasstation.polygon.technology/v2")]}
311),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[c("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1}));function e(e,t,r){let n=function(){let n=new a(e,t);return null!=r.ensNetwork&&n.attachPlugin(new i.EnsPlugin(null,r.ensNetwork)),n.attachPlugin(new i.GasCostPlugin),(r.plugins||[]).forEach(e=>{n.attachPlugin(e)}),n};a.register(e,n),a.register(t,n),r.altNames&&r.altNames.forEach(e=>{a.register(e,n)})}}(),null==e)return a.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=o.get(e);if(t)return t();if("bigint"==typeof e)return new a("unknown",e);(0,s.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,s.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new a(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new i.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,s.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=o.get(e);r&&(0,s.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),o.set(e,t)}}function l(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length<t;)n[1]+="0";if(n[1].length>9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function c(e){return new i.FetchUrlFeeDataNetworkPlugin(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,s]=await Promise.all([r.send(),e()]),i=(n=t).bodyJson.standard;return{gasPrice:s.gasPrice,maxFeePerGas:l(i.maxFee,9),maxPriorityFeePerGas:l(i.maxPriorityFee,9)}}catch(e){(0,s.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}t.Network=a;let u=!1},90988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;let n=r(8573),s=r(66644);class i{name;constructor(e){(0,n.defineProperties)(this,{name:e})}clone(){return new i(this.name)}}t.NetworkPlugin=i;class o extends i{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function i(e,n){let i=(t||{})[e];null==i&&(i=n),(0,s.assertArgument)("number"==typeof i,`invalud value for ${e}`,"costs",t),r[e]=i}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),(0,n.defineProperties)(this,r)}clone(){return new o(this.effectiveBlock,this)}}t.GasCostPlugin=o;class a extends i{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,n.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new a(this.address,this.targetNetwork)}}t.EnsPlugin=a;class l extends i{#en;get feeDataFunc(){return this.#en}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#en=e}async getFeeData(e){return await this.#en(e)}clone(){return new l(this.#en)}}t.FeeDataNetworkPlugin=l;class c extends i{#es;#ei;get url(){return this.#es}get processFunc(){return this.#ei}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#es=e,this.#ei=t}clone(){return this}}t.FetchUrlFeeDataNetworkPlugin=c},78553:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;let n=r(66644),s=r(81248),i=r(51367),o=r(55864),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class l extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);
311null==t&&(t=a),super(l.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new l(e,this.apiKey)}catch(e){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){let t;let{trace:r,tx:s}=await (0,n.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==r||null==s)return null;let i=!1;try{t=r[0].result.output,i="Reverted"===r[0].error}catch(e){}if(t)return(0,n.assert)(!i,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:t,reason:null,transaction:s,invocation:null,revert:null}),t;(0,n.assert)(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(e)}isCommunityResource(){return this.apiKey===a}static getRequest(e,t){null==t&&(t=a);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return r.allowGzip=!0,t===a&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("alchemy"),!0)),r}}t.AlchemyProvider=l},58638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;let n=r(66644),s=r(81248),i=r(51367),o=r(55864),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class l extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);null==t&&(t=a),super(l.getRequest(r,t),r,{polling:!0,staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new l(e,this.apiKey)}catch(e){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=a);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===a&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("AnkrProvider"),!0)),r}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===a}}t.AnkrProvider=l},21012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;let n=r(66644),s=r(55864);class i extends s.JsonRpcApiPollingProvider{#eo;constructor(e,t){(0,n.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,{batchMaxCount:1}),this.#eo=async(t,r)=>{let n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);
311throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,n.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#eo(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#eo("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}}t.BrowserProvider=i},40955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;let n=r(66644),s=r(51367),i=r(55864);class o extends i.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");let t=s.Network.from(e);(0,n.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=o},72062:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;let n=r(2387),s=r(60153),i=r(91529),o=r(66644),a=r(35249),l=r(51367),c=r(90988),u=r(81248),d="org.ethers.plugins.provider.Etherscan";class h extends c.NetworkPlugin{baseUrl;constructor(e){super(d),(0,o.defineProperties)(this,{baseUrl:e})}clone(){return new h(this.baseUrl)}}t.EtherscanPlugin=h;let f=["enableCcipRead"],p=1;class g extends a.AbstractProvider{network;apiKey;#ea;constructor(e,t){super();let r=l.Network.from(e);this.#ea=r.getPlugin(d),(0,o.defineProperties)(this,{apiKey:null!=t?t:null,network:r}),this.getBaseUrl()}getBaseUrl(){if(this.#ea)return this.#ea.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,o.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let n=t[r];return null!=n&&(e+=`&${r}=${n}`),e},""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}async detectNetwork(){return this.network}async fetch(e,t,r){let n=p++,s=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:n,url:s,payload:i});let a=new o.FetchRequest(s);a.setThrottleParams({slotInterval:1e3}),a.retryFunc=(e,t,r)=>(this.isCommunityResource()&&(0,u.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),a.processFunc=async(t,r)=>{let s=r.hasBody()?JSON.parse((0,o.toUtf8String)(r.body)):{},i=("string"==typeof s.result?s.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?s&&0==s.status&&"NOTOK"==s.message&&i&&(this.emit("debug",{action:"receiveError",id:n,reason:"proxy-NOTOK",error:s}),r.throwThrottleError(s.result,2e3)):i&&(this.emit("debug",{action:"receiveError",id:n,reason:"null result",error:s.result}),r.throwThrottleError(s.result,2e3)),r},i&&(a.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.body=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let l=await a.send();try{l.assertOk()}
311catch(e){this.emit("debug",{action:"receiveError",id:n,error:e,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:a,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:n,error:"missing body",reason:"null body"}),(0,o.assert)(!1,"missing response","SERVER_ERROR",{request:a,response:l}));let c=JSON.parse((0,o.toUtf8String)(l.body));return"proxy"===e?("2.0"!=c.jsonrpc&&(this.emit("debug",{action:"receiveError",id:n,result:c,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:a,response:l,info:{result:c}})),c.error&&(this.emit("debug",{action:"receiveError",id:n,result:c,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:l,info:{result:c}}))):0==c.status&&("No records found"===c.message||"No transactions found"===c.message)||1==c.status&&("string"!=typeof c.message||c.message.match(/^OK/))||(this.emit("debug",{action:"receiveError",id:n,result:c}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:l,info:{result:c}})),this.emit("debug",{action:"receiveRequest",id:n,result:c}),c.result}_getTransactionPostData(e){let t={};for(let r in e){if(f.indexOf(r)>=0||null==e[r])continue;let n=e[r];("type"!==r||0!==n)&&("blockTag"!==r||"latest"!==n)&&(n=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r]?(0,o.toQuantity)(n):"accessList"===r?"["+(0,i.accessListify)(n).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,o.hexlify)(n),t[r]=n)}return t}_checkError(e,t,r){let s="";if((0,o.isError)(t,"SERVER_ERROR")){try{s=t.info.result.error.message}catch(e){}if(!s)try{s=t.info.message}catch(e){}}if("estimateGas"===e.method&&!s.match(/revert/i)&&s.match(/insufficient funds/i)&&(0,o.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&s.match(/execution reverted/i)){let r="";try{r=t.info.result.error.data}catch(e){}let s=n.AbiCoder.getBuiltinCallException(e.method,e.transaction,r);throw s.info={request:e,error:t},s}if(s&&"broadcastTransaction"===e.method){let t=i.Transaction.from(e.signedTransaction);s.match(/replacement/i)&&s.match(/underpriced/i)&&(0,o.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),s.match(/insufficient funds/)&&(0,o.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),s.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,o.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(t=>this._checkError(e,t,e.signedTransaction));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,o.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_call";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{let t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){var t;let r=this._getAddress(e);(t=r)&&"function"==typeof t.then&&(r=await r);try{let e=await this.fetch("contract",{action:"getabi",address:r}),t=JSON.parse(e);return new s.Contract(r,t,this)}catch(e){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=g},56402:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;let n=r(66644),s=r(35249),i=r(51367),o=BigInt("1"),a=BigInt("2");function l(){return new Date().getTime()}function c(e){return JSON.stringify(e,(e,t)=>"bigint"==typeof t?{type:"bigint",value:t.toString()}:t)}let u={stallTimeout:400,priority:1,weight:1},d={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function h(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{let t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=l()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}function f(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(f).join(",")+"]";if("object"==typeof e&&"function"==typeof e.toJSON)return f(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{"+t.map(t=>`${JSON.stringify(t)}:${f(e[t])}`).join(",")+"}"}}throw console.log("Could not serialize",e),Error("Hmm...")}function p(e){if("error"in e){let t=e.error;return{tag:f(t),value:t}}let t=e.result;return{tag:f(t),value:t}}function g(e,t){let r=new Map;for(let{value:e,tag:n,weight:s}of t){let t=r.get(n)||{value:e,weight:0};t.weight+=s,r.set(n,t)}let n=null;for(let t of r.values())t.weight>=e&&(!n||t.weight>n.weight)&&(n=t);if(n)return n.value}function m(e,t){let r=0,n=new Map,s=null,i=[];for(let{value:e,tag:o,weight:a}of t)if(e instanceof Error){let t=n.get(o)||{value:e,weight:0};t.weight+=a,n.set(o,t),(null==s||t.weight>s.weight)&&(s=t)}else i.push(BigInt(e)),r+=a;if(r<e)return s&&s.weight>=e?s.value:void 0;i.sort((e,t)=>e<t?-1:t>e?1:0);let l=Math.floor(i.length/2);return i.length%2?i[l]:(i[l-1]+i[l]+o)/a}function y(e,t){let r=g(e,t);if(void 0!==r)return r;for(let e of t)if(e.value)return e.value}class b extends s.AbstractProvider{quorum;eventQuorum;eventWorkers;#el;#ec;#eu;constructor(e,t,r){super(t,r),this.#el=e.map(e=>e instanceof s.AbstractProvider?Object.assign({provider:e},u,d):Object.assign({},u,e,d)),this.#ec=-2,this.#eu=null,r&&null!=r.quorum?this.quorum=r.quorum:this.quorum=Math.ceil(this.#el.reduce((e,t)=>e+=t.weight,0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,n.assertArgument)(this.quorum<=this.#el.reduce((e,t)=>e+t.weight,0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return this.#el.map(e=>{let t=Object.assign({},e);for(let e in t)"_"===e[0]&&delete t[e];return t})}async _detectNetwork(){return i.Network.from((0,n.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{let r="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(r,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#ed(e){let t=Array.from(e).map(e=>e.config),r=this.#el.slice();for(let e of(!function(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}}(r),r.sort((e,t)=>
311e.priority-t.priority),r))if(!e._lastFatalError&&-1===t.indexOf(e))return e;return null}#eh(e,t){let r=this.#ed(e);if(null==r)return null;let n={config:r,result:null,didBump:!1,perform:null,staller:null},s=l();return n.perform=(async()=>{try{r.requests++;let e=await this._translatePerform(r.provider,t);n.result={result:e}}catch(e){r.errorResponses++,n.result={error:e}}let e=l()-s;r._totalTime+=e,r.rollingDuration=.95*r.rollingDuration+.05*e,n.perform=null})(),n.staller=(async()=>{var e;await (e=r.stallTimeout,new Promise(t=>{setTimeout(t,e)})),n.staller=null})(),e.add(n),n}async #ef(){let e=this.#eu;if(!e){let t=[];this.#el.forEach(e=>{t.push((async()=>{await h(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())}),this.#eu=e=(async()=>{await Promise.all(t);let e=null;for(let t of this.#el){if(t._lastFatalError)continue;let r=t._network;null==e?e=r.chainId:r.chainId!==e&&(0,n.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async #ep(e,t){let r=[];for(let t of e)if(null!=t.result){let{tag:e,value:n}=p(t.result);r.push({tag:e,value:n,weight:t.config.weight})}if(!(r.reduce((e,t)=>e+t.weight,0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===this.#ec&&(this.#ec=Math.ceil((0,n.getNumber)(m(this.quorum,this.#el.filter(e=>!e._lastFatalError).map(e=>({value:e.blockNumber,tag:(0,n.getNumber)(e.blockNumber).toString(),weight:e.weight}))))));let e=function(e,t){let r;if(1===e)return(0,n.getNumber)(m(e,t),"%internal");let s=new Map,i=(e,t)=>{let r=s.get(e)||{result:e,weight:0};r.weight+=t,s.set(e,r)};for(let{weight:e,value:r}of t){let t=(0,n.getNumber)(r);i(t-1,e),i(t,e),i(t+1,e)}let o=0;for(let{weight:t,result:n}of s.values())t>=e&&(t>o||null!=r&&t===o&&n>r)&&(o=t,r=n);return r}(this.quorum,r);if(void 0===e)return;return e>this.#ec&&(this.#ec=e),this.#ec}case"getGasPrice":case"getPriorityFee":case"estimateGas":return m(this.quorum,r);case"getBlock":if("blockTag"in t&&"pending"===t.blockTag)return y(this.quorum,r);return g(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return g(this.quorum,r);case"broadcastTransaction":return y(this.quorum,r)}(0,n.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${c(t.method)})`})}}async #eg(e,t){if(0===e.size)throw Error("no runners?!");let r=[],s=0;for(let t of e){if(t.perform&&r.push(t.perform),t.staller){r.push(t.staller);continue}!t.didBump&&(t.didBump=!0,s++)}let i=await this.#ep(e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let r=0;r<s;r++)this.#eh(e,t);return(0,n.assert)(r.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map(e=>c(e.result))}}),await Promise.race(r),await this.#eg(e,t)}async _perform(e){if("broadcastTransaction"===e.method){let t=this.#el.map(e=>null),r=this.#el.map(async({provider:r,weight:n},s)=>{try{let i=await r._perform(e);t[s]=Object.assign(p({result:i}),{weight:n})}catch(e){t[s]=Object.assign(p({error:e}),{weight:n})}});for(;;){for(let{value:e}of t.filter(e=>null!=e))if(!(e instanceof Error))return e;let e=g(this.quorum,t.filter(e=>null!=e));if((0,n.isError)(e,"INSUFFICIENT_FUNDS"))throw e;let s=r.filter((e,r)=>null==t[r]);if(0===s.length)break;await Promise.race(s)}let s=y(this.quorum,t);if((0,n.assert)(void 0!==s,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(c)}}),s instanceof Error)throw s;return s}await this.#ef();let t=new Set,r=0;for(;;){let n=this.#eh(t,e);if(null==n||(r+=n.config.weight)>=this.quorum)break}let s=await this.#eg(t,e);for(let e of t)e.perform&&null==e.result&&e.config.lateResponses++;return s}async destroy(){for(let{provider:e}of this.#el)e.destroy();super.destroy()}}t.FallbackProvider=b},94609:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;let n=r(66644),s=r(81248),i=r(51367),o=r(55864),a=r(48480),l="84842078b09946638c03157f83405213";class c extends a.WebSocketProvider{projectId;projectSecret;constructor(e,t){let r=new u(e,t),s=r._getConnection();(0,n.assert)(!s.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,n.defineProperties)(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===l}}t.InfuraWebSocketProvider=c;class u extends o.JsonRpcProvider{projectId;projectSecret;constructor(e,t,r){null==e&&(e="mainnet");let s=i.Network.from(e);
311null==t&&(t=l),null==r&&(r=null),super(u.getRequest(s,t,r),s,{staticNetwork:s}),(0,n.defineProperties)(this,{projectId:t,projectSecret:r})}_getProvider(e){try{return new u(e,this.projectId,this.projectSecret)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.projectId===l}static getWebSocketProvider(e,t){return new c(e,t)}static getRequest(e,t,r){null==t&&(t=l),null==r&&(r=null);let i=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return i.allowGzip=!0,r&&i.setCredentials("",r),t===l&&(i.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("InfuraProvider"),!0)),i}}t.InfuraProvider=u},83594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0,t.IpcSocketProvider=void 0},55864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;let n=r(2387),s=r(24955),i=r(9387),o=r(91529),a=r(66644),l=r(35249),c=r(49281),u=r(51367),d=r(93238),h=r(78216),f="bigint,boolean,function,number,string,symbol".split(/,/g);function p(e){if(null==e||f.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(p);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function g(e){return e?e.toLowerCase():e}function m(e){return e&&"number"==typeof e.pollingInterval}let y={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class b extends c.AbstractSigner{address;constructor(e,t){super(e),t=(0,s.getAddress)(t),(0,a.defineProperties)(this,{address:t})}connect(e){(0,a.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=p(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await (0,s.resolveAddress)(n,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await (0,s.resolveAddress)(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let s=[1e3,100],i=0,o=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n){e(n.replaceableTransaction(t));return}}catch(e){if((0,a.isError)(e,"CANCELLED")||(0,a.isError)(e,"BAD_DATA")||(0,a.isError)(e,"NETWORK_ERROR")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,a.isError)(e,"INVALID_ARGUMENT")&&(i++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,i>10)){n(e);return}this.provider.emit("error",(0,a.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{o()},s.pop()||4e3)};o()})}async signTransaction(e){let t=p(e);if(t.from){let r=await (0,s.resolveAddress)(t.from,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?(0,a.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,a.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=p(r),o=await i.TypedDataEncoder.resolveNames(e,t,n,async e=>{let t=await (0,s.resolveAddress)(e);return(0,a.assertArgument)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(i.TypedDataEncoder.getPayload(o.domain,t,o.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?(0,a.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,a.hexlify)(t)])}}t.JsonRpcSigner=b;class A extends l.AbstractProvider{#w;#em;#ey;#eb;#eA;#ew;#ev;#eE(){if(this.#eb)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#eb=setTimeout(()=>{this.#eb=null;let e=this.#ey;for(this.#ey=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#w.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#w.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);
311this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:s}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:s.method}));continue}let t=r.filter(e=>e.id===s.id)[0];if(null==t){let e=(0,a.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:s}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(s,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#em=1,this.#w=Object.assign({},y,t||{}),this.#ey=[],this.#eb=null,this.#ew=null,this.#ev=null;{let e=null,t=new Promise(t=>{e=t});this.#eA={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,a.assertArgument)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#ew=u.Network.from(e))):r&&((0,a.assertArgument)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#ew=r)}_getOption(e){return this.#w[e]}get _network(){return(0,a.assert)(this.#ew,"network is not available yet","NETWORK_ERROR"),this.#ew}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,a.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#ew)return this.#ew}return this.#ev||(this.ready?this.#ev=(async()=>{try{let e=u.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return this.#ev=null,e}catch(e){throw this.#ev=null,e}})():this.#ev=(async()=>{let e;let t={id:this.#em++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#ev=null}catch(e){throw this.#ev=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}
311if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return u.Network.from((0,a.getBigInt)(e.result));throw this.getRpcError(t,e)})()),await this.#ev}_start(){null!=this.#eA&&null!=this.#eA.resolve&&(this.#eA.resolve(),this.#eA=null,(async()=>{for(;null==this.#ew&&!this.destroyed;)try{this.#ew=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,a.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await new Promise(e=>{setTimeout(e,1e3)})}this.#eE()})())}async _waitUntilReady(){if(null!=this.#eA)return await this.#eA.promise}_getSubscriber(e){return"pending"===e.type?new d.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new h.PollingEventSubscriber(this,e.filter):new d.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new l.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#eA}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,a.toQuantity)((0,a.getBigInt)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,a.hexlify)(e[r]))}),e.accessList&&(t.accessList=(0,o.accessListify)(e.accessList)),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:s}=t;if("eth_estimateGas"===r&&s.message){let t=s.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,a.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:s}})}if("eth_call"===r||"eth_estimateGas"===r){let t=function e(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,a.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(let r in t){let n=e(t[r]);if(n)return n}return null}if("string"==typeof t)try{return e(JSON.parse(t))}catch(e){}return null}(s),i=n.AbiCoder.getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:s,payload:e},i}let i=JSON.stringify(function(e){let t=[];return!function e(t,r){if(null!=t){if("string"==typeof t.message&&r.push(t.message),"object"==typeof t)for(let n in t)e(t[n],r);if("string"==typeof t)try{return e(JSON.parse(t),r)}catch(e){}}}(e,t),t}(s));if("string"==typeof s.message&&s.message.match(/user denied|ethers-user-denied/i))return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:e,error:s}});if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,a.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:s}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:s}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,a.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:s}});if(i.match(/only replay-protected/i))return(0,a.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:s}}})}let o=!!i.match(/the method .* does not exist/i);return(!o&&s&&s.details&&s.details.startsWith("Unauthorized method:")&&(o=!0),o)?(0,a.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:s,payload:e}}
311):(0,a.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:s,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#em++,n=new Promise((n,s)=>{this.#ey.push({resolve:n,reject:s,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#eE(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new b(this,r[e])}let{accounts:r}=await (0,a.resolveProperties)({network:this.getNetwork(),accounts:t});for(let t of(e=(0,s.getAddress)(e),r))if((0,s.getAddress)(t)===e)return new b(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new b(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#eb&&(clearTimeout(this.#eb),this.#eb=null),this.#ey))t((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#ey=[],super.destroy()}}t.JsonRpcApiProvider=A;class w extends A{#eP;constructor(e,t){super(e,t),this.#eP=4e3}_getSubscriber(e){let t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#eP),t}get pollingInterval(){return this.#eP}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");this.#eP=e,this._forEachSubscriber(e=>{m(e)&&(e.pollingInterval=this.#eP)})}}t.JsonRpcApiPollingProvider=w;class v extends w{#ek;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),"string"==typeof e?this.#ek=new a.FetchRequest(e):this.#ek=e.clone()}_getConnection(){return this.#ek.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){let t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");let r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}t.JsonRpcProvider=v},10621:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;let n=r(66644),s=r(81248),i=r(51367),o=r(55864),a="62e1ad51b37b8e00394bda3b";class l extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,r){null==e&&(e="mainnet");let s=i.Network.from(e);null==t&&(t=a),null==r&&(r=null),super(l.getRequest(s,t,r),s,{staticNetwork:s}),(0,n.defineProperties)(this,{applicationId:t,applicationSecret:r})}_getProvider(e){try{return new l(e,this.applicationId,this.applicationSecret)}catch(e){}return super._getProvider(e)}static getRequest(e,t,r){null==t&&(t=a);let i=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return i.allowGzip=!0,r&&i.setCredentials("",r),t===a&&(i.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===a}}t.PocketProvider=l},90164:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;let n=r(66644),s=r(81248),i=r(51367),o=r(55864),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";class l extends o.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);null==t&&(t=a),super(l.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{token:t})}_getProvider(e){try{return new l(e,this.token)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.token===a}static getRequest(e,t){null==t&&(t=a);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===a&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("QuickNodeProvider"),!0)),r}}t.QuickNodeProvider=l},27364:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;let n=r(35249),s=r(66644),i=r(55864);class o{#ex;#v;get filter(){return JSON.parse(this.#v)}#eC;#eT;#eO;constructor(e,t){this.#ex=e,this.#v=JSON.stringify(t),this.#eC=null,this.#eT=null,this.#eO=null}start(){this.#eC=this.#ex.send("eth_subscribe",this.filter).then(e=>(this.#ex._register(e,this),e))}stop(){this.#eC.then(e=>{this.#ex.send("eth_unsubscribe",[e])}),this.#eC=null}pause(e){(0,s.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#eT=!!e}resume(){this.#eT=null}_handleMessage(e){if(null!=this.#eC&&null===this.#eT){let t=this.#eO;t=null==t?this._emit(this.#ex,e):t.then(async()=>{await this._emit(this.#ex,e)}),this.#eO=t.then(()=>{this.#eO===t&&(this.#eO=null)})}}async _emit(e,t){throw Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=o;class a extends o{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=a;class l extends o{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=l;class c extends o{#eS;get logFilter(){return JSON.parse(this.#eS)}constructor(e,t){super(e,["logs",t]),this.#eS=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=c;class u extends i.JsonRpcApiProvider{#eB;#N;#eR;constructor(e,t){let r=Object.assign({},null!=t?t:{});(0,s.assertArgument)(null==r.batchMaxCount||1===r.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),r.batchMaxCount=1,null==r.staticNetwork&&(r.staticNetwork=!0),super(e,r),this.#eB=new Map,this.#N=new Map,this.#eR=new Map}_getSubscriber(e){switch(e.type){case"close":return new n.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new l(this);case"event":return new c(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new n.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#N.set(e,t);let r=this.#eR.get(e);if(r){for(let e of r)t._handleMessage(e);this.#eR.delete(e)}}async _send(e){(0,s.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);let t=new Promise((t,r)=>{this.#eB.set(e.id,{payload:e,resolve:t,reject:r})});return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){let t=JSON.parse(e);if(t&&"object"==typeof t&&"id"in t){let e=this.#eB.get(t.id);if(null==e){this.emit("error",(0,s.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));return}this.#eB.delete(t.id),e.resolve(t)}else if(t&&"eth_subscription"===t.method){let e=t.params.subscription,r=this.#N.get(e);if(r)r._handleMessage(t.params.result);else{let r=this.#eR.get(e);null==r&&(r=[],this.#eR.set(e,r)),r.push(t.params.result)}}else{this.emit("error",(0,s.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));return}}async _write(e){throw Error("sub-classes must override this")}}t.SocketProvider=u},48480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;let n=r(96527),s=r(27364);class i extends s.SocketProvider{#ek;#eN;get websocket(){if(null==this.#eN)throw Error("websocket closed");return this.#eN}constructor(e,t,r){super(t,r),"string"==typeof e?(this.#ek=()=>new n.WebSocket(e),this.#eN=this.#ek()):"function"==typeof e?(this.#ek=e,this.#eN=e()):(this.#ek=null,this.#eN=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#eN&&(this.#eN.close(),this.#eN=null),super.destroy()}}t.WebSocketProvider=i},36829:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;let n=r(66644),s=r(91529),i=BigInt(0);function o(e){return null==e?null:e}function a(e){return null==e?null:e.toString()}class l{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,n.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:a(e),maxFeePerGas:a(t),maxPriorityFeePerGas:a(r)}}}t.FeeData=l,t.copyRequest=function(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,n.hexlify)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,n.getBigInt)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,n.getNumber)(e[r],`request.${r}`));return e.accessList&&(t.accessList=(0,s.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),t};class c{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;extraData;baseFeePerGas;#eM;constructor(e,t){this.#eM=e.transactions.map(e=>"string"!=typeof e?new h(e,t):e),(0,n.defineProperties)(this,{provider:t,hash:o(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#eM.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#eM.slice();return 0===e.length?[]:((0,n.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:s,hash:i,miner:o,nonce:l,number:c,parentHash:u,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:f,timestamp:p,transactions:g}=this;return{_type:"Block",baseFeePerGas:a(e),difficulty:a(t),extraData:r,gasLimit:a(n),gasUsed:a(s),blobGasUsed:a(this.blobGasUsed),excessBlobGas:a(this.excessBlobGas),hash:i,miner:o,nonce:l,number:c,parentHash:u,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:f,transactions:g}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#eM.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"==typeof e)t=this.#eM[e];else{let r=e.toLowerCase();for(let e of this.#eM){if("string"==typeof e){if(e!==r)continue;t=e;break}if(e.hash!==r){t=e;break}}}if(null==t)throw Error("no such tx");return"string"==typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){let t=this.prefetchedTransactions;if("number"==typeof e)return t[e];for(let r of(e=e.toLowerCase(),t))if(r.hash===e)return r;(0,n.assertArgument)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw Error("");return{orphan:"drop-block",hash:this.hash,number:this.number}}}t.Block=c;class u{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;let r=Object.freeze(e.topics.slice());(0,n.defineProperties)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:r,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){let{address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:o,transactionHash:a,transactionIndex:l}=this;return{_type:"log",address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:o,transactionHash:a,transactionIndex:l}}async getBlock(){let e=await this.provider.getBlock(this.blockHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){let e=await this.provider.getTransaction(this.transactionHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){let e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,n.assert)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:this.transactionHash,blockHash:this.blockHash,blockNumber:this.blockNumber,address:this.address,data:this.data,topics:Object.freeze(this.topics.slice()),index:this.index}}}}t.Log=u;class d{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#eI;constructor(e,t){this.#eI=Object.freeze(e.logs.map(e=>new u(e,t)));let r=i;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,n.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#eI}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:s,blockHash:i,blockNumber:o,logsBloom:l,logs:c,status:u,root:d}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:o,contractAddress:r,cumulativeGasUsed:a(this.cumulativeGasUsed),from:t,gasPrice:a(this.gasPrice),blobGasUsed:a(this.blobGasUsed),blobGasPrice:a(this.blobGasPrice),gasUsed:a(this.gasUsed),hash:n,index:s,logs:c,logs
311Bloom:l,root:d,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){let e=await this.provider.getBlock(this.blockHash);if(null==e)throw Error("TODO");return e}async getTransaction(){let e=await this.provider.getTransaction(this.hash);if(null==e)throw Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return p(this)}reorderedEvent(e){return(0,n.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),f(this,e)}}t.TransactionReceipt=d;class h{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;#eL;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.#eL=-1}toJSON(){let{blockNumber:e,blockHash:t,index:r,hash:n,type:s,to:i,from:o,nonce:l,data:c,signature:u,accessList:d,blobVersionedHashes:h}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:t,blobVersionedHashes:h,chainId:a(this.chainId),data:c,from:o,gasLimit:a(this.gasLimit),gasPrice:a(this.gasPrice),hash:n,maxFeePerGas:a(this.maxFeePerGas),maxPriorityFeePerGas:a(this.maxPriorityFeePerGas),maxFeePerBlobGas:a(this.maxFeePerBlobGas),nonce:l,signature:u,to:i,index:r,type:s,value:a(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){let t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;let t=this.provider.getBlock(e);if(null==t)throw Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){let{tx:e,blockNumber:t}=await (0,n.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){let r=null==e?1:e,s=null==t?0:t,o=this.#eL,a=-1,l=-1===o,c=async()=>{if(l)return null;let{blockNumber:e,nonce:t}=await (0,n.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce){o=e;return}if(l)return null;let s=await this.getTransaction();if(!s||null==s.blockNumber)for(-1===a&&(a=o-3)<this.#eL&&(a=this.#eL);a<=e;){if(l)return null;let t=await this.provider.getBlock(a,!0);if(null==t)break;for(let e of t)if(e===this.hash)return;for(let s=0;s<t.length;s++){let a=await t.getTransaction(s);if(a.from===this.from&&a.nonce===this.nonce){if(l)return null;let t=await this.provider.getTransactionReceipt(a.hash);if(null==t||e-t.blockNumber+1<r)return;let s="replaced";a.data===this.data&&a.to===this.to&&a.value===this.value?s="repriced":"0x"===a.data&&a.from===a.to&&a.value===i&&(s="cancelled"),(0,n.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===s||"cancelled"===s,reason:s,replacement:a.replaceableTransaction(o),hash:a.hash,receipt:t})}}a++}},u=e=>{if(null==e||0!==e.status)return e;(0,n.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},d=await this.provider.getTransactionReceipt(this.hash);if(0===r)return u(d);if(d){if(await d.confirmations()>=r)return u(d)}else if(await c(),0===r)return null;let h=new Promise((e,t)=>
311{let i=[],a=()=>{i.forEach(e=>e())};if(i.push(()=>{l=!0}),s>0){let e=setTimeout(()=>{a(),t((0,n.makeError)("wait for transaction timeout","TIMEOUT"))},s);i.push(()=>{clearTimeout(e)})}let d=async n=>{if(await n.confirmations()>=r){a();try{e(u(n))}catch(e){t(e)}}};if(i.push(()=>{this.provider.off(this.hash,d)}),this.provider.on(this.hash,d),o>=0){let e=async()=>{try{await c()}catch(e){if((0,n.isError)(e,"TRANSACTION_REPLACED")){a(),t(e);return}}l||this.provider.once("block",e)};i.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await h}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,n.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),f(this,e)}replaceableTransaction(e){(0,n.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new h(this,this.provider);return t.#eL=e,t}}function f(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=h},7315:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;let n=r(66644),s=r(49281);class i extends s.AbstractSigner{signer;#eD;#eF;constructor(e){super(e.provider),(0,n.defineProperties)(this,{signer:e}),this.#eD=null,this.#eF=0}async getAddress(){return this.signer.getAddress()}connect(e){return new i(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#eD&&(this.#eD=super.getNonce("pending"));let e=this.#eF;return await this.#eD+e}return super.getNonce(e)}increment(){this.#eF++}reset(){this.#eF=0,this.#eD=null}async sendTransaction(e){let t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,r){return this.signer.signTypedData(e,t,r)}}t.NonceManager=i},93238:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;let n=r(66644),s=r(78216);class i{#ex;#eU;#ej;#e_;#ew;#eH;constructor(e){this.#ex=e,this.#eU=null,this.#ej=this.#eG.bind(this),this.#e_=!1,this.#ew=null,this.#eH=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #eG(e){try{null==this.#eU&&(this.#eU=this._subscribe(this.#ex));let e=null;try{e=await this.#eU}catch(e){if(!(0,n.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#eU=null,this.#ex._recoverSubscriber(this,this._recover(this.#ex));return}let t=await this.#ex.getNetwork();if(this.#ew||(this.#ew=t),this.#ew.chainId!==t.chainId)throw Error("chaid changed");if(this.#eH)return;let r=await this.#ex.send("eth_getFilterChanges",[e]);await this._emitResults(this.#ex,r)}catch(e){console.log("@TODO",e)}this.#ex.once("block",this.#ej)}#eK(){let e=this.#eU;e&&(this.#eU=null,e.then(e=>{this.#ex.send("eth_uninstallFilter",[e])}))}start(){this.#e_||(this.#e_=!0,this.#eG(-2))}stop(){this.#e_&&(this.#e_=!1,this.#eH=!0,this.#eK(),this.#ex.off("block",this.#ej))}pause(e){e&&this.#eK(),this.#ex.off("block",this.#ej)}resume(){this.start()}}t.FilterIdSubscriber=i;class o extends i{#eQ;constructor(e,t){super(e),this.#eQ=JSON.parse(JSON.stringify(t))}_recover(e){return new s.PollingEventSubscriber(e,this.#eQ)}async _subscribe(e){return await e.send("eth_newFilter",[this.#eQ])}async _emitResults(e,t){for(let r of t)e.emit(this.#eQ,e._wrapLog(r,e._network))}}t.FilterIdEventSubscriber=o;class a extends i{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}t.FilterIdPendingSubscriber=a},78216:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;let n=r(66644);function s(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new i(e):(0,n.isHexString)(t,32)?new c(e,t):void(0,n.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class i{#ex;#ej;#eV;#ez;constructor(e){this.#ex=e,this.#ej=null,this.#eV=4e3,this.#ez=-2}get pollingInterval(){return this.#eV}set pollingInterval(e){this.#eV=e}async #eG(){try{let e=await this.#ex.getBlockNumber();if(-2===this.#ez){this.#ez=e;return}if(e!==this.#ez){for(let t=this.#ez+1;t<=e;t++){if(null==this.#ej)return;await this.#ex.emit("block",t)}this.#ez=e}}catch(e){}null!=this.#ej&&(this.#ej=this.#ex._setTimeout(this.#eG.bind(this),this.#eV))}start(){this.#ej||(this.#ej=this.#ex._setTimeout(this.#eG.bind(this),this.#eV),this.#eG())}stop(){this.#ej&&(this.#ex._clearTimeout(this.#ej),this.#ej=null)}pause(e){this.stop(),e&&(this.#ez=-2)}resume(){this.start()}}t.PollingBlockSubscriber=i;class o{#ex;#eG;#e_;constructor(e){this.#ex=e,this.#e_=!1,this.#eG=e=>{this._poll(e,this.#ex)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#e_||(this.#e_=!0,this.#eG(-2),this.#ex.on("block",this.#eG))}stop(){this.#e_&&(this.#e_=!1,this.#ex.off("block",this.#eG))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=o;class a extends o{#eJ;#eW;constructor(e,t){super(e),this.#eJ=t,this.#eW=-2}pause(e){e&&(this.#eW=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#eJ);null!=r&&(-2===this.#eW?this.#eW=r.number:r.number>this.#eW&&(t.emit(this.#eJ,r.number),this.#eW=r.number))}}t.PollingBlockTagSubscriber=a;class l extends o{#v;constructor(e,t){super(e),this.#v=s(t)}async _poll(e,t){throw Error("@TODO")}}t.PollingOrphanSubscriber=l;class c extends o{#e$;constructor(e,t){super(e),this.#e$=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#e$);r&&t.emit(this.#e$,r)}}t.PollingTransactionSubscriber=c;class u{#ex;#v;#ej;#e_;#ez;constructor(e,t){this.#ex=e,this.#v=s(t),this.#ej=this.#eG.bind(this),this.#e_=!1,this.#ez=-2}async #eG(e){if(-2===this.#ez)return;let t=s(this.#v);t.fromBlock=this.#ez+1,t.toBlock=e;let r=await this.#ex.getLogs(t);if(0===r.length){this.#ez<e-60&&(this.#ez=e-60);return}for(let e of r)this.#ex.emit(this.#v,e),this.#ez=e.blockNumber}start(){this.#e_||(this.#e_=!0,-2===this.#ez&&this.#ex.getBlockNumber().then(e=>{this.#ez=e}),this.#ex.on("block",this.#ej))}stop(){this.#e_&&(this.#e_=!1,this.#ex.off("block",this.#ej))}pause(e){this.stop(),e&&(this.#ez=-2)}resume(){this.start()}}t.PollingEventSubscriber=u},96527:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;let n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}().WebSocket;t.WebSocket=n}
311,78884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;let n=r(24955),s=r(66644);function i(e,t){return{address:(0,n.getAddress)(e),storageKeys:t.map((e,t)=>((0,s.assertArgument)((0,s.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}t.accessListify=function(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,s.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),i(t[0],t[1])):((0,s.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),i(t.address,t.storageKeys)));(0,s.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return i(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},51214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;let n=r(24955),s=r(53879);function i(e){let t;return t="string"==typeof e?s.SigningKey.computePublicKey(e,!1):e.publicKey,(0,n.getAddress)((0,s.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=i,t.recoverAddress=function(e,t){return i(s.SigningKey.recoverPublicKey(e,t))}},91529:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var n=r(78884);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return n.accessListify}});var s=r(51214);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return s.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return s.recoverAddress}});var i=r(11744);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i.Transaction}})},11744:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;let n=r(24955),s=r(82721),i=r(53879),o=r(66644),a=r(78884),l=r(51214),c=BigInt(0),u=BigInt(2),d=BigInt(27),h=BigInt(28),f=BigInt(35),p=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function g(e){return"0x"===e?null:(0,n.getAddress)(e)}function m(e,t){try{return(0,a.accessListify)(e)}catch(r){(0,o.assertArgument)(!1,r.message,t,e)}}function y(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function b(e,t){if("0x"===e)return c;let r=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(r<=p,"value exceeds uint size",t,r),r}function A(e,t){let r=(0,o.getBigInt)(e,"value"),n=(0,o.toBeArray)(r);return(0,o.assertArgument)(n.length<=32,"value too large",`tx.${t}`,r),n}function w(e){return(0,a.accessListify)(e).map(e=>[e.address,e.storageKeys])}function v(e,t){let r=[A(e.nonce,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit,"gasLimit"),e.to||"0x",A(e.value,"value"),e.data],n=c;if(e.chainId!=c)n=(0,o.getBigInt)(e.chainId,"tx.chainId"),(0,o.assertArgument)(!t||null==t.networkV||t.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let t=e.signature.legacyChainId;null!=t&&(n=t)}if(!t)return n!==c&&(r.push((0,o.toBeArray)(n)),r.push("0x"),r.push("0x")),(0,o.encodeRlp)(r);let s=BigInt(27+t.yParity);return n!==c?s=i.Signature.getChainIdV(n,t.v):BigInt(t.v)!==s&&(0,o.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,o.toBeArray)(s)),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s)),(0,o.encodeRlp)(r)}function E(e,t){let r;try{if(r=y(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}let n=(0,o.zeroPadValue)(t[1],32),s=(0,o.zeroPadValue)(t[2],32),a=i.Signature.from({r:n,s,yParity:r});e.signature=a}function P(e,t){let r=[A(e.chainId,"chainId"),A(e.nonce,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit,"gasLimit"),e.to||"0x",A(e.value,"value"),e.data,w(e.accessList||[])];return t&&(r.push(A(t.yParity,"yParity")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x02",(0,o.encodeRlp)(r)])}function k(e,t){let r=[A(e.chainId,"chainId"),A(e.nonce,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLim
311it,"gasLimit"),e.to||"0x",A(e.value,"value"),e.data,w(e.accessList||[])];return t&&(r.push(A(t.yParity,"recoveryParam")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x01",(0,o.encodeRlp)(r)])}function x(e,t){let r=[A(e.chainId,"chainId"),A(e.nonce,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit,"gasLimit"),e.to||s.ZeroAddress,A(e.value,"value"),e.data,w(e.accessList||[]),A(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),function(e,t){(0,o.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,o.assertArgument)((0,o.isHexString)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(r.push(A(t.yParity,"yParity")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x03",(0,o.encodeRlp)(r)])}class C{#eq;#eZ;#r;#eY;#eX;#e0;#e1;#e2;#e3;#er;#e4;#e6;#e5;#e8;get type(){return this.#eq}set type(e){switch(e){case null:this.#eq=null;break;case 0:case"legacy":this.#eq=0;break;case 1:case"berlin":case"eip-2930":this.#eq=1;break;case 2:case"london":case"eip-1559":this.#eq=2;break;case 3:case"cancun":case"eip-4844":this.#eq=3;break;default:(0,o.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){let e=this.#eZ;return null==e&&3===this.type?s.ZeroAddress:e}set to(e){this.#eZ=null==e?null:(0,n.getAddress)(e)}get nonce(){return this.#eY}set nonce(e){this.#eY=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#eX}set gasLimit(e){this.#eX=(0,o.getBigInt)(e)}get gasPrice(){let e=this.#e0;return null==e&&(0===this.type||1===this.type)?c:e}set gasPrice(e){this.#e0=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#e1;return null==e?2===this.type||3===this.type?c:null:e}set maxPriorityFeePerGas(e){this.#e1=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#e2;return null==e?2===this.type||3===this.type?c:null:e}set maxFeePerGas(e){this.#e2=null==e?null:(0,o.getBigInt)(e,"maxFeePerGas")}get data(){return this.#r}set data(e){this.#r=(0,o.hexlify)(e)}get value(){return this.#e3}set value(e){this.#e3=(0,o.getBigInt)(e,"value")}get chainId(){return this.#er}set chainId(e){this.#er=(0,o.getBigInt)(e)}get signature(){return this.#e4||null}set signature(e){this.#e4=null==e?null:i.Signature.from(e)}get accessList(){let e=this.#e6||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#e6=null==e?null:(0,a.accessListify)(e)}get maxFeePerBlobGas(){let e=this.#e5;return null==e&&3===this.type?c:e}set maxFeePerBlobGas(e){this.#e5=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#e8;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,o.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,o.assertArgument)((0,o.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#e8=e}constructor(){this.#eq=null,this.#eZ=null,this.#eY=0,this.#eX=c,this.#e0=null,this.#e1=null,this.#e2=null,this.#r="0x",this.#e3=c,this.#er=c,this.#e4=null,this.#e6=null,this.#e5=null,this.#e8=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.serialized)}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,l.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}get serialized(){switch((0,o.assert)(null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"}),this.inferType()){case 0:return v(this,this.signature);case 1:return k(this,this.signature);case 2:return P(this,this.signature);case 3:return x(this,this.signature)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get unsignedSerialized(){switch(this.inferType()){case 0:return v(this);case 1:return k(this);case 2:return P(this);case 3:return x(this)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".unsignedSerialized"})}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#e5||this.#e8;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,o.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,o.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,o.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let s=[];return null!=this.type?s.push(this.type):t?s.push(2):e?(s.push(1),r||s.push(0)):r?(s.push(1),s.push(2)):(n&&this.to||(s.push(0),s.push(1),s.push(2)),s.push(3)),s.sort(),s}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return C.from(this)}toJSON(){let e=e=>null==e?null:e.toString();
311return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new C;if("string"==typeof e){let t=(0,o.getBytes)(e);if(t[0]>=127)return C.from(function(e){let t=(0,o.decodeRlp)(e);(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:y(t[0],"nonce"),gasPrice:b(t[1],"gasPrice"),gasLimit:b(t[2],"gasLimit"),to:g(t[3]),value:b(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:c};if(6===t.length)return r;let n=b(t[6],"v"),s=b(t[7],"r"),a=b(t[8],"s");if(s===c&&a===c)r.chainId=n;else{let s=(n-f)/u;s<c&&(s=c),r.chainId=s,(0,o.assertArgument)(s!==c||n===d||n===h,"non-canonical legacy v","v",t[6]),r.signature=i.Signature.from({r:(0,o.zeroPadValue)(t[7],32),s:(0,o.zeroPadValue)(t[8],32),v:n}),r.hash=(0,i.keccak256)(e)}return r}(t));switch(t[0]){case 1:return C.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,o.hexlify)(e));let r={type:1,chainId:b(t[0],"chainId"),nonce:y(t[1],"nonce"),gasPrice:b(t[2],"gasPrice"),gasLimit:b(t[3],"gasLimit"),to:g(t[4]),value:b(t[5],"value"),data:(0,o.hexlify)(t[6]),accessList:m(t[7],"accessList")};return 8===t.length||(r.hash=(0,i.keccak256)(e),E(r,t.slice(8))),r}(t));case 2:return C.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,o.hexlify)(e));let r={type:2,chainId:b(t[0],"chainId"),nonce:y(t[1],"nonce"),maxPriorityFeePerGas:b(t[2],"maxPriorityFeePerGas"),maxFeePerGas:b(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:b(t[4],"gasLimit"),to:g(t[5]),value:b(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:m(t[8],"accessList")};return 9===t.length||(r.hash=(0,i.keccak256)(e),E(r,t.slice(9))),r}(t));case 3:return C.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),"invalid field count for transaction type: 3","data",(0,o.hexlify)(e));let r={type:3,chainId:b(t[0],"chainId"),nonce:y(t[1],"nonce"),maxPriorityFeePerGas:b(t[2],"maxPriorityFeePerGas"),maxFeePerGas:b(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:b(t[4],"gasLimit"),to:g(t[5]),value:b(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:m(t[8],"accessList"),maxFeePerBlobGas:b(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};(0,o.assertArgument)(null!=r.to,"invalid address for transaction type: 3","data",e),(0,o.assertArgument)(Array.isArray(r.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<r.blobVersionedHashes.length;t++)(0,o.assertArgument)((0,o.isHexString)(r.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||(r.hash=(0,i.keccak256)(e),E(r,t.slice(11))),r}(t))}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let t=new C;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=i.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.hash&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define hash","tx",e),(0,o.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define from","tx",e),(0,o.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=C},8512:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;let n=r(45358),s=r(17269),i=r(81966),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",a=null,l=BigInt(0),c=BigInt(58);t.encodeBase58=function(e){let t=(0,n.getBytes)(e),r=(0,i.toBigInt)(t),s="";for(;r;)s=o[Number(r%c)]+s,r/=c;for(let e=0;e<t.length&&!t[e];e++)s=o[0]+s;return s},t.decodeBase58=function(e){let t=l;for(let r=0;r<e.length;r++)t*=c,t+=function(e){if(null==a){a={};for(let e=0;e<o.length;e++)a[o[e]]=BigInt(e)}let t=a[e];return(0,s.assertArgument)(null!=t,"invalid base58 value","letter",e),t}(e[r]);return t}},20962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;let n=r(45358);t.decodeBase64=function(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,n.getBytes)(t)},t.encodeBase64=function(e){let t=(0,n.getBytes)(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}},45358:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;let n=r(17269);function s(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x([0-9a-f][0-9a-f])*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n<t.length;n++)t[n]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,n.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function i(e,t){return s(e,t,!1)}function o(e,t){return!!("string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/))&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}t.getBytes=i,t.getBytesCopy=function(e,t){return s(e,t,!0)},t.isHexString=o,t.isBytesLike=function(e){return o(e,!0)||e instanceof Uint8Array};let a="0123456789abcdef";function l(e){let t=i(e),r="0x";for(let e=0;e<t.length;e++){let n=t[e];r+=a[(240&n)>>4]+a[15&n]}return r}function c(e,t,r){let s=i(e);(0,n.assert)(t>=s.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(s),length:t,offset:t+1});let o=new Uint8Array(t);return o.fill(0),r?o.set(s,t-s.length):o.set(s,0),l(o)}t.hexlify=l,t.concat=function(e){return"0x"+e.map(e=>l(e).substring(2)).join("")},t.dataLength=function(e){return o(e,!0)?(e.length-2)/2:i(e).length},t.dataSlice=function(e,t,r){let s=i(e);return null!=r&&r>s.length&&(0,n.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:s,length:s.length,offset:r}),l(s.slice(null==t?0:t,null==r?s.length:r))},t.stripZerosLeft=function(e){let t=l(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return c(e,t,!0)},t.zeroPadBytes=function(e,t){return c(e,t,!1)}},17269:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;let n=r(26991),s=r(8573);function i(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(i).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4]+t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return i(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{ "+t.map(t=>`${i(t)}: ${i(e[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function a(e,t,r){let o,a=e;{let s=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${i(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];s.push(e+"="+i(t))}}s.push(`code=${t}`),s.push(`version=${n.version}`),s.length&&(e+=" ("+s.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":o=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=RangeError(e);break;default:o=Error(e)}
311return(0,s.defineProperties)(o,{code:t}),r&&Object.assign(o,r),null==o.shortMessage&&(0,s.defineProperties)(o,{shortMessage:a}),o}function l(e,t,r,n){if(!e)throw a(t,r,n)}t.isError=o,t.isCallException=function(e){return o(e,"CALL_EXCEPTION")},t.makeError=a,t.assert=l,t.assertArgument=function(e,t,r,n){l(e,t,"INVALID_ARGUMENT",{argument:r,value:n})},t.assertArgumentCount=function(e,t,r){null==r&&(r=""),r&&(r=": "+r),l(e>=t,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),l(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};let c=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);t.assertNormalize=function(e){l(c.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),l(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},89363:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;let n=r(8573);class s{filter;emitter;#e9;constructor(e,t,r){this.#e9=t,(0,n.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#e9&&await this.emitter.off(this.filter,this.#e9)}}t.EventPayload=s},89081:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;let n=r(20962),s=r(45358),i=r(17269),o=r(8573),a=r(16345),l=r(30340),c=(0,l.createGetUrl)(),u=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),d=RegExp("^ipfs://(ipfs/)?(.*)$","i"),h=!1;async function f(e,t){try{var r;let t=e.match(u);if(!t)throw Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,n.decodeBase64)(t[3]):(r=t[3],(0,a.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(t){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new A(e))}}function p(e){return async function(t,r){try{let r=t.match(d);if(!r)throw Error("invalid link");return new A(`${e}${r[2]}`)}catch(e){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new A(t))}}}let g={data:f,ipfs:p("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class y{#e7;#te;constructor(e){this.#e7=[],this.#te=!1,m.set(e,()=>{if(!this.#te){for(let e of(this.#te=!0,this.#e7))setTimeout(()=>{e()},0);this.#e7=[]}})}addListener(e){(0,i.assert)(!this.#te,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#e7.push(e)}get cancelled(){return this.#te}checkSignal(){(0,i.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function b(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=y;class A{#tt;#tr;#tn;#ts;#ti;#es;#to;#ta;#tl;#tc;#tu;#td;#th;#tf;#tp;get url(){return this.#es}set url(e){this.#es=String(e)}get body(){return null==this.#to?null:new Uint8Array(this.#to)}set body(e){if(null==e)this.#to=void 0,this.#ta=void 0;else if("string"==typeof e)this.#to=(0,a.toUtf8Bytes)(e),this.#ta="text/plain";else if(e instanceof Uint8Array)this.#to=e,this.#ta="application/octet-stream";else if("object"==typeof e)this.#to=(0,a.toUtf8Bytes)(JSON.stringify(e)),this.#ta="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#to}get method(){return this.#ts?this.#ts:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#ts=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#tn);return this.#tl&&(e.authorization=`Basic ${(0,n.encodeBase64)((0,a.toUtf8Bytes)(this.#tl))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#ta&&(e["content-type"]=this.#ta),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#tn[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#tn={}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#tl||null}setCredentials(e,t){(0,i.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#tl=`${e}:${t}`}get allowGzip(){return this.#tr}set allowGzip(e){this.#tr=!!e}get allowInsecureAuthentication(){return!!this.#tt}set allowInsecureAuthentication(e){this.#tt=!!e}get timeout(){return this.#ti}set timeout(e){(0,i.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#ti=e}get preflightFunc(){return this.#tc||null}set preflightFunc(e){this.#tc=e}get processFunc(){return this.#tu||null}set processFunc(e){this.#tu=e}get retryFunc(){return this.#td||null}set retryFunc(e){this.#td=e}get getUrlFunc(){return this.#tp||c}set getUrlFunc(e){this.#tp=e}constructor(e){this.#es=String(e),this.#tt=!1,this.#tr=!0,this.#tn={},this.#ts="",this.#ti=3e5,this.#tf={slotInterval:250,maxAttempts:12},this.#tp=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#to?(0,s.hexlify)(this.#to):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#tf.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#tf.maxAttempts=e.maxAttempts)}async #tg(e,t,r,n,s){if(e>=this.#tf.maxAttempts)return s.makeServerError("exceeded maximum retry limit");(0,i.assert)(v()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await new Promise(e=>setTimeout(e,r));let o=this.clone(),a=(o.url.split(":")[0]||"").toLowerCase();if(a in g){let e=await g[a](o.url,b(n.#th));if(e instanceof w){let t=e;if(this.processFunc){b(n.#th);try{t=await this.processFunc(o,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));let l=await this.getUrlFunc(o,b(n.#th)),c=new w(l.statusCode,l.statusMessage,l.headers,l.body,n);if(301===c.statusCode||302===c.statusCode){try{let r=c.headers.location||"";return o.redirect(r).#tg(e+1,t,0,n,c)}catch(e){}return c}if(429===c.statusCode&&(null==this.retryFunc||await this.retryFunc(o,c,e))){let r=c.headers["retry-after"],s=this.#tf.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(s=parseInt(r)),o.clone().#tg(e+1,t,s,n,c)}if(this.processFunc){b(n.#th);try{c=await this.processFunc(o,c)}catch(s){(null==s.throttle||"number"!=typeof s.stall)&&c.makeServerError("error in post-processing function",s).assertOk();let r=this.#tf.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return s.stall>=0&&(r=s.stall),o.clone().#tg(e+1,t,r,n,c)}}return c}send(){return(0,i.assert)(null==this.#th,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#th=new y(this),this.#tg(0,v()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,i.assert)(null!=this.#th,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=m.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,i.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new A(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#tn=Object.assign({},this.#tn),this.#to&&(n.#to=new Uint8Array(this.#to)),n.#ta=this.#ta,n}clone(){let e=new A(this.url);return e.#ts=this.#ts,this.#to&&(e.#to=this.#to),e.#ta=this.#ta,e.#tn=Object.assign({},this.#tn),e.#tl=this.#tl,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#tc=this.#tc,e.#tu=this.#tu,e.#td=this.#td,e.#tp=this.#tp,e}static lockConfig(){h=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(h)throw Error("gateways locked");g[e]=t}static registerGetUrl(e){if(h)throw Error("gateways locked");c=e}static createGetUrlFunc(e){return(0,l.createGetUrl)(e)}static createDataGateway(){return f}static createIpfsGatewayFunc(e){return p(e)}}t.FetchRequest=A;class w{#tm;#ty;#tn;#to;#eo;#tb;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#to?(0,s.hexlify)(this.#to):"null"}>`}get statusCode(){return this.#tm}get statusMessage(){return this.#ty}get headers(){return Object.assign({},this.#tn)}get body(){return null==this.#to?null:new Uint8Array(this.#to)}get bodyText(){try{return null==this.#to?"":(0,a.toUtf8String)(this.#to)}
311catch(e){(0,i.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,i.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,n,s){this.#tm=e,this.#ty=t,this.#tn=Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=String(r[t]),e),{}),this.#to=null==n?null:new Uint8Array(n),this.#eo=s||null,this.#tb={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new w(599,r,this.headers,this.body,this.#eo||void 0);return n.#tb={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,i.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,o.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#to}get request(){return this.#eo}ok(){return""===this.#tb.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#tb;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#to&&(n=(0,a.toUtf8String)(this.#to))}catch(e){}(0,i.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function v(){return new Date().getTime()}t.FetchResponse=w},96754:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;let n=r(45358),s=r(17269),i=r(81966),o=r(8573),a=BigInt(-1),l=BigInt(0),c=BigInt(1),u=BigInt(5),d={},h="0000";for(;h.length<80;)h+=h;function f(e){let t=h;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function p(e,t,r){let n=BigInt(t.width);if(t.signed){let t=c<<n-c;(0,s.assert)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>l?(0,i.fromTwos)((0,i.mask)(e,n),n):-(0,i.fromTwos)((0,i.mask)(-e,n),n)}else{let t=c<<n;(0,s.assert)(null==r||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%t+t)%t&t-c}return e}function g(e){"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e){if("fixed"===e);else if("ufixed"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,s.assertArgument)(i,"invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(e){let i=e,o=(e,t,r)=>null==i[e]?r:((0,s.assertArgument)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=o("signed","boolean",t),r=o("width","number",r),n=o("decimals","number",n)}(0,s.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,s.assertArgument)(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);let i=(t?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:t,width:r,decimals:n,name:i}}class m{format;#tA;#tw;#tv;_value;constructor(e,t,r){(0,s.assertPrivate)(e,d,"FixedNumber"),this.#tw=t,this.#tA=r;let n=function(e,t){let r="";e<l&&(r="-",e*=a);let n=e.toString();if(0===t)return r+n;for(;n.length<=t;)n=h+n;let s=n.length-t;for(n=n.substring(0,s)+"."+n.substring(s);"0"===n[0]&&"."!==n[1];)n=n.substring(1);for(;"0"===n[n.length-1]&&"."!==n[n.length-2];)n=n.substring(0,n.length-1);return r+n}(t,r.decimals);(0,o.defineProperties)(this,{format:r.name,_value:n}),this.#tv=f(r.decimals)}get signed(){return this.#tA.signed}get width(){return this.#tA.width}get decimals(){return this.#tA.decimals}get value(){return this.#tw}#tE(e){(0,s.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#tP(e,t){return new m(d,e=p(e,this.#tA,t),this.#tA)}#tk(e,t){return this.#tE(e),this.#tP(this.#tw+e.#tw,t)}addUnsafe(e){return this.#tk(e)}add(e){return this.#tk(e,"add")}#tx(e,t){return this.#tE(e),this.#tP(this.#tw-e.#tw,t)}subUnsafe(e){return this.#tx(e)}sub(e){return this.#tx(e,"sub")}#tC(e,t){return this.#tE(e),this.#tP(this.#tw*e.#tw/this.#tv,t)}mulUnsafe(e){return this.#tC(e)}mul(e){return this.#tC(e,"mul")}mulSignal(e){this.#tE(e);let t=this.#tw*e.#tw;return(0,s.assert)(t%this.#tv===l,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#tP(t/this.#tv,"mulSignal")}#tT(e,t){return(0,s.assert)(e.#tw!==l,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#tE(e),this.#tP(this.#tw*this.#tv/e.#tw,t)}divUnsafe(e){return this.#tT(e)}div(e){return this.#tT(e,"div")}divSignal(e){(0,s.assert)(e.#tw!==l,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#tE(e);let t=this.#tw*this.#tv;return(0,s.assert)(t%e.#tw===l,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#tP(t/e.#tw,"divSignal")}cmp(e){let t=this.value,r=e.value,n=this.decimals-e.decimals;return(n>0?r*=f(n):n<0&&(t*=f(-n)),t<r)?-1:t>r?1:0}eq(e){return 0===this.cmp(e)}lt(e){return 0>this.cmp(e)}lte(e){return 0>=this.cmp(e)}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#tw;
311return this.#tw<l&&(e-=this.#tv-c),e=this.#tw/this.#tv*this.#tv,this.#tP(e,"floor")}ceiling(){let e=this.#tw;return this.#tw>l&&(e+=this.#tv-c),e=this.#tw/this.#tv*this.#tv,this.#tP(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;let t=this.decimals-e,r=u*f(t-1),n=this.value+r,s=f(t);return p(n=n/s*s,this.#tA,"round"),new m(d,n,this.#tA)}isZero(){return this.#tw===l}isNegative(){return this.#tw<l}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return m.fromString(this.toString(),e)}static fromValue(e,t,r){let n=null==t?0:(0,i.getNumber)(t),o=g(r),a=(0,i.getBigInt)(e,"value"),c=n-o.decimals;if(c>0){let t=f(c);(0,s.assert)(a%t===l,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),a/=t}else c<0&&(a*=f(-c));return p(a,o,"fromValue"),new m(d,a,o)}static fromString(e,t){let r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,s.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);let n=g(t),i=r[2]||"0",o=r[3]||"";for(;o.length<n.decimals;)o+=h;(0,s.assert)(o.substring(n.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,n.decimals);let a=BigInt(r[1]+i+o);return p(a,n,"fromString"),new m(d,a,n)}static fromBytes(e,t){let r=(0,i.toBigInt)((0,n.getBytes)(e,"value")),s=g(t);return s.signed&&(r=(0,i.fromTwos)(r,s.width)),p(r,s,"fromBytes"),new m(d,r,s)}}t.FixedNumber=m},30340:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;let n=r(17269);function s(e){return async function(e,t){let r;let s=e.url.split(":")[0].toLowerCase();if((0,n.assert)("http"===s||"https"===s,`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),(0,n.assert)("https"===s||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"}),t){let e=new AbortController;r=e.signal,t.addListener(()=>{e.abort()})}let i={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:r},o=await fetch(e.url,i),a={};o.headers.forEach((e,t)=>{a[t.toLowerCase()]=e});let l=await o.arrayBuffer(),c=null==l?null:new Uint8Array(l);return{statusCode:o.status,statusMessage:o.statusText,headers:a,body:c}}}t.createGetUrl=s;let i=s({});async function o(e,t){return i(e,t)}t.getUrl=o},66644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var n=r(8512);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return n.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return n.encodeBase58}});var s=r(20962);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return s.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return s.encodeBase64}});var i=r(45358);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return i.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return i.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return i.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return i.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return i.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return i.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return i.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return i.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return i.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return i.zeroPadBytes}});var o=r(17269);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}
311),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return o.makeError}});var a=r(89363);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return a.EventPayload}});var l=r(89081);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return l.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return l.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return l.FetchCancelSignal}});var c=r(96754);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return c.FixedNumber}});var u=r(81966);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var d=r(8573);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}});var h=r(14747);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return h.decodeRlp}});var f=r(4266);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}});var p=r(38286);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var g=r(16345);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return g.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return g.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return g.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return g.Utf8ErrorFuncs}});var m=r(49479);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})},81966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;let n=r(45358),s=r(17269),i=BigInt(0),o=BigInt(1);function a(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,s.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,s.assertArgument)(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,s.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,s.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function l(e,t){let r=a(e,t);return(0,s.assert)(r>=i,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}t.fromTwos=function(e,t){let r=l(e,"value"),n=BigInt(d(t,"width"));return((0,s.assert)(r>>n===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-o)?-((~r&(o<<n)-o)+o):r},t.toTwos=function(e,t){let r=a(e,"value"),n=BigInt(d(t,"width")),l=o<<n-o;return r<i?(r=-r,(0,s.assert)(r<=l,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),(~r&(o<<n)-o)+o):((0,s.assert)(r<l,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r)},t.mask=function(e,t){return l(e,"value")&(o<<BigInt(d(t,"bits")))-o},t.getBigInt=a,t.getUint=l;let c="0123456789abcdef";function u(e){if(e instanceof Uint8Array){let t="0x0";
311for(let r of e)t+=c[r>>4]+c[15&r];return BigInt(t)}return a(e)}function d(e,t){switch(typeof e){case"bigint":return(0,s.assertArgument)(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),Number(e);case"number":return(0,s.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,s.assertArgument)(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return d(BigInt(e),t)}catch(r){(0,s.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,s.assertArgument)(!1,"invalid numeric value",t||"value",e)}function h(e){let t=l(e,"value");if(t===i)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);let n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++){let t=2*e;n[e]=parseInt(r.substring(t,t+2),16)}return n}t.toBigInt=u,t.getNumber=d,t.toNumber=function(e){return d(u(e))},t.toBeHex=function(e,t){let r=l(e,"value").toString(16);if(null==t)r.length%2&&(r="0"+r);else{let n=d(t,"width");for((0,s.assert)(2*n>=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*n;)r="0"+r}return"0x"+r},t.toBeArray=h,t.toQuantity=function(e){let t=(0,n.hexlify)((0,n.isBytesLike)(e)?e:h(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},8573:function(e,t){"use strict";async function r(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=r,t.defineProperties=function(e,t,r){for(let n in t){let s=t[n],i=r?r[n]:null;i&&function(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;r<n.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let s=Error(`invalid value for type ${t}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=e,s}(s,i,n),Object.defineProperty(e,n,{enumerable:!0,value:s,writable:!1})}}},14747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;let n=r(45358),s=r(17269),i=r(45358);function o(e,t,r){let n=0;for(let s=0;s<r;s++)n=256*n+e[t+s];return n}function a(e,t,r,n){let i=[];for(;r<t+1+n;){let o=l(e,r);i.push(o.result),r+=o.consumed,(0,s.assert)(r<=t+1+n,"child data too short","BUFFER_OVERRUN",{buffer:e,length:n,offset:t})}return{consumed:1+n,result:i}}function l(e,t){(0,s.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=t=>{(0,s.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let s=o(e,t+1,n);return r(t+1+n+s),a(e,t,t+1+n,n+s)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),a(e,t,t+1,n)}if(e[t]>=184){let s=e[t]-183;r(t+1+s);let i=o(e,t+1,s);r(t+1+s+i);let a=(0,n.hexlify)(e.slice(t+1+s,t+1+s+i));return{consumed:1+s+i,result:a}}if(e[t]>=128){let s=e[t]-128;r(t+1+s);let i=(0,n.hexlify)(e.slice(t+1,t+1+s));return{consumed:1+s,result:i}}return{consumed:1,result:function(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}(e[t])}}t.decodeRlp=function(e){let t=(0,i.getBytes)(e,"data"),r=l(t,0);return(0,s.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},4266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;let n=r(45358);function s(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}let i="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(let r of function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=s(r.length);return n.unshift(247+n.length),n.concat(r)}let r=Array.prototype.slice.call((0,n.getBytes)(t,"object"));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=s(r.length);return i.unshift(183+i.length),i.concat(r)}(e))t+=i[r>>4]+i[15&r];return t}},38286:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;let n=r(17269),s=r(96754),i=r(81966),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(e,t){let r=18;if("string"==typeof t){let e=o.indexOf(t);(0,n.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,i.getNumber)(t,"unit"));return s.FixedNumber.fromValue(e,r,{decimals:r,width:512}).toString()}function l(e,t){(0,n.assertArgument)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){let e=o.indexOf(t);(0,n.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,i.getNumber)(t,"unit"));return s.FixedNumber.fromString(e,{decimals:r,width:512}).value}t.formatUnits=a,t.parseUnits=l,t.formatEther=function(e){return a(e,18)},t.parseEther=function(e){return l(e,18)}},16345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;let n=r(45358),s=r(17269);function i(e,t,r,n,s){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function o(e,r){null==r&&(r=t.Utf8ErrorFuncs.error);let s=(0,n.getBytes)(e,"bytes"),i=[],o=0;for(;o<s.length;){let e=s[o++];if(e>>7==0){i.push(e);continue}let t=null,n=null;if((224&e)==192)t=1,n=127;else if((240&e)==224)t=2,n=2047;else if((248&e)==240)t=3,n=65535;else{(192&e)==128?o+=r("UNEXPECTED_CONTINUE",o-1,s,i):o+=r("BAD_PREFIX",o-1,s,i);continue}if(o-1+t>=s.length){o+=r("OVERRUN",o-1,s,i);continue}let a=e&(1<<8-t-1)-1;for(let e=0;e<t;e++){let e=s[o];if((192&e)!=128){o+=r("MISSING_CONTINUE",o,s,i),a=null;break}a=a<<6|63&e,o++}if(null!==a){if(a>1114111){o+=r("OUT_OF_RANGE",o-1-t,s,i,a);continue}if(a>=55296&&a<=57343){o+=r("UTF16_SURROGATE",o-1-t,s,i,a);continue}if(a<=n){o+=r("OVERLONG",o-1-t,s,i,a);continue}i.push(a)}}return i}function a(e,t){(0,s.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,s.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);(0,s.assertArgument)(t<e.length&&(64512&i)==56320,"invalid surrogate pair","str",e);let o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,n,i){(0,s.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:i,replace:function(e,t,r,n,o){return"OVERLONG"===e?((0,s.assertArgument)("number"==typeof o,"invalid bad code point for replacement","badCodepoint",o),n.push(o),0):(n.push(65533),i(e,t,r,n,o))}}),t.toUtf8Bytes=a,t.toUtf8String=function(e,t){return o(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")},t.toUtf8CodePoints=function(e,t){return o(a(e,t))}},49479:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;let n=r(45358);t.uuidV4=function(e){let t=(0,n.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;let r=(0,n.hexlify)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},14270:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;let n=r(24955),s=r(9387),i=r(72118),o=r(91529),a=r(66644);class l extends i.AbstractSigner{address;#tO;constructor(e,t){super(t),(0,a.assertArgument)(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#tO=e;let r=(0,o.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:r})}get signingKey(){return this.#tO}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new l(this.#tO,e)}async signTransaction(e){let{to:t,from:r}=await (0,a.resolveProperties)({to:e.to?(0,n.resolveAddress)(e.to,this.provider):void 0,from:e.from?(0,n.resolveAddress)(e.from,this.provider):void 0});null!=t&&(e.to=t),null!=r&&(e.from=r),null!=e.from&&((0,a.assertArgument)((0,n.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);let s=o.Transaction.from(e);return s.signature=this.signingKey.sign(s.unsignedHash),s.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,s.hashMessage)(e)).serialized}async signTypedData(e,t,r){let n=await s.TypedDataEncoder.resolveNames(e,t,r,async e=>{(0,a.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});let t=await this.provider.resolveName(e);return(0,a.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t});return this.signingKey.sign(s.TypedDataEncoder.hash(n.domain,t,n.value)).serialized}}t.BaseWallet=l},27614:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;let n=r(53879),s=r(72118),i=r(91529),o=r(66644),a=r(55860),l=r(14270),c=r(34745),u=r(3683);t.defaultPath="m/44'/60'/0'/0/0";let d=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function f(e,t){let r="";for(;e;)r="0123456789abcdef"[e%16]+r,e=Math.trunc(e/16);for(;r.length<2*t;)r="0"+r;return"0x"+r}function p(e){let t=(0,o.getBytes)(e),r=(0,o.dataSlice)((0,n.sha256)((0,n.sha256)(t)),0,4),s=(0,o.concat)([t,r]);return(0,o.encodeBase58)(s)}let g={};function m(e,t,r,s){let i=new Uint8Array(37);2147483648&e?((0,o.assert)(null!=s,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),i.set((0,o.getBytes)(s),1)):i.set((0,o.getBytes)(r));for(let t=24;t>=0;t-=8)i[33+(t>>3)]=e>>24-t&255;let a=(0,o.getBytes)((0,n.computeHmac)("sha512",t,i));return{IL:a.slice(0,32),IR:a.slice(32)}}function y(e,t){let r=t.split("/");(0,o.assertArgument)(r.length>0,"invalid path","path",t),"m"===r[0]&&((0,o.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),r.shift());let n=e;for(let e=0;e<r.length;e++){let t=r[e];if(t.match(/^[0-9]+'$/)){let r=parseInt(t.substring(0,t.length-1));(0,o.assertArgument)(r<2147483648,"invalid path index",`path[${e}]`,t),n=n.deriveChild(2147483648+r)}else if(t.match(/^[0-9]+$/)){let r=parseInt(t);(0,o.assertArgument)(r<2147483648,"invalid path index",`path[${e}]`,t),n=n.deriveChild(r)}else(0,o.assertArgument)(!1,"invalid path component",`path[${e}]`,t)}return n}class b extends l.BaseWallet{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,r,s,i,a,l,c,u){super(t,u),(0,o.assertPrivate)(e,g,"HDNodeWallet"),(0,o.defineProperties)(this,{publicKey:t.compressedPublicKey});let d=(0,o.dataSlice)((0,n.ripemd160)((0,n.sha256)(this.publicKey)),0,4);(0,o.defineProperties)(this,{parentFingerprint:r,fingerprint:d,chainCode:s,path:i,index:a,depth:l}),(0,o.defineProperties)(this,{mnemonic:c})}connect(e){return new b(g,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}#tS(){let e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}async encrypt(e,t){return await (0,u.encryptKeystoreJson)(this.#tS(),e,{progressCallback:t})}encryptSync(e){return(0,u.encryptKeystoreJsonSync)(this.#tS(),e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),p((0,o.concat)(["0x0488ADE4",f(this.depth,1),this.parentFingerprint,f(this.index,4),this.chainCode,(0,o.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new A(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){let t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let r=this.path;r&&(r+="/"+(2147483647&t),2147483648&t&&(r+="'"));let{IR:s,IL:i}=m(t,this.chainCode,this.publicKey,this.privateKey);return new b(g,new n.SigningKey((0,o.toBeHex)(((0,o.toBigInt)(i)+BigInt(this.privateKey))%h,32)),this.fingerprint,(0,o.hexlify)(s),r,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return y(this,e)}static #tB(e,t){(0,o.assertArgument)((0,o.isBytesLike)(e),"invalid seed","seed","[REDACTED]");let r=(0,o.getBytes)(e,"seed");(0,o.assertArgument)(r.length>=16&&r.length<=64,"invalid seed","seed","[REDACTED]");let s=(0,o.getBytes)((0,n.computeHmac)("sha512",d,r));return new b(g,new n.SigningKey((0,o.hexlify)(s.slice(0,32))),"0x00000000",(0,o.hexlify)(s.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){let t=(0,o.toBeArray)((0,o.decodeBase58)(e));(0,o.assertArgument)(82===t.length||p(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");let r=t[4],s=(0,o.hexlify)(t.slice(5,9)),a=parseInt((0,o.hexlify)(t.slice(9,13)).substring(2),16),l=(0,o.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,o.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{let e=(0,o.hexlify)(c);return new A(g,(0,i.computeAddress)(e),e,s,l,null,a,r,null)}case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new b(g,new n.SigningKey(c.slice(1)),s,l,null,a,r,null,null)}(0,o.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,r,s){null==e&&(e=""),null==r&&(r=t.defaultPath),null==s&&(s=a.LangEn.wordlist());let i=c.Mnemonic.fromEntropy((0,n.randomBytes)(16),e,s);return b.#tB(i.computeSeed(),i).derivePath(r)}static fromMnemonic(e,r){return r||(r=t.defaultPath),b.#tB(e.computeSeed(),e).derivePath(r)}static fromPhrase(e,r,n,s){null==r&&(r=""),null==n&&(n=t.defaultPath),null==s&&(s=a.LangEn.wordlist());let i=c.Mnemonic.fromPhrase(e,r,s);return b.#tB(i.computeSeed(),i).derivePath(n)}static fromSeed(e){return b.#tB(e,null)}}t.HDNodeWallet=b;class A extends s.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,r,s,i,a,l,c,u){super(t,u),(0,o.assertPrivate)(e,g,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:r});let d=(0,o.dataSlice)((0,n.ripemd160)((0,n.sha256)(r)),0,4);(0,o.defineProperties)(this,{publicKey:r,fingerprint:d,parentFingerprint:s,chainCode:i,path:a,index:l,depth:c})}connect(e){return new A(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),p((0,o.concat)(["0x0488B21E",f(this.depth,1),this.parentFingerprint,f(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){let t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let r=this.path;r&&(r+="/"+(2147483647&t),2147483648&t&&(r+="'"));let{IR:s,IL:a}=m(t,this.chainCode,this.publicKey,null),l=n.SigningKey.addPoints(a,this.publicKey,!0);return new A(g,(0,i.computeAddress)(l),l,this.fingerprint,(0,o.hexlify)(s),r,t,this.depth+1,this.provider)}derivePath(e){return y(this,e)}}t.HDNodeVoidWallet=A,t.getAccountPath=function(e){let t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>
311=0&&t<2147483648,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){let t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<2147483648,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},26499:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var n=r(14270);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return n.BaseWallet}});var s=r(27614);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return s.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return s.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return s.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return s.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return s.HDNodeVoidWallet}});var i=r(72897);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return i.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return i.decryptCrowdsaleJson}});var o=r(3683);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var a=r(34745);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return a.Mnemonic}});var l=r(51299);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return l.Wallet}})},72897:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;let n=r(10078),s=r(24955),i=r(53879),o=r(9387),a=r(66644),l=r(4375);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1},t.decryptCrowdsaleJson=function(e,t){let r=JSON.parse(e),c=(0,l.getPassword)(t),u=(0,s.getAddress)((0,l.spelunk)(r,"ethaddr:string!")),d=(0,l.looseArrayify)((0,l.spelunk)(r,"encseed:string!"));(0,a.assertArgument)(d&&d.length%16==0,"invalid encseed","json",e);let h=(0,a.getBytes)((0,i.pbkdf2)(c,c,2e3,32,"sha256")).slice(0,16),f=d.slice(0,16),p=d.slice(16),g=new n.CBC(h,f),m=(0,n.pkcs7Strip)((0,a.getBytes)(g.decrypt(p))),y="";for(let e=0;e<m.length;e++)y+=String.fromCharCode(m[e]);return{address:u,privateKey:(0,o.id)(y)}}},3683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;let n=r(10078),s=r(24955),i=r(53879),o=r(91529),a=r(66644),l=r(4375),c=r(26991),u="m/44'/60'/0'/0/0";function d(e,t){let r=(0,a.getBytes)(t),c=(0,l.spelunk)(e,"crypto.ciphertext:data!"),d=(0,a.hexlify)((0,i.keccak256)((0,a.concat)([r.slice(16,32),c]))).substring(2);(0,a.assertArgument)(d===(0,l.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");let h=function(e,t,r){if("aes-128-ctr"===(0,l.spelunk)(e,"crypto.cipher:string")){let s=(0,l.spelunk)(e,"crypto.cipherparams.iv:data!"),i=new n.CTR(t,s);return(0,a.hexlify)(i.decrypt(r))}(0,a.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,r.slice(0,16),c),f=(0,o.computeAddress)(h);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,a.assertArgument)((0,s.getAddress)(t)===f,"keystore address/privateKey mismatch","address",e.address)}let p={address:f,privateKey:h};if("0.1"===(0,l.spelunk)(e,"x-ethers.version:string")){let t=r.slice(32,64),s=(0,l.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),i=(0,l.spelunk)(e,"x-ethers.mnemonicCounter:data!"),o=new n.CTR(t,i);p.mnemonic={path:(0,l.spelunk)(e,"x-ethers.path:string")||u,locale:(0,l.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(o.decrypt(s)))}}return p}function h(e){let t=(0,l.spelunk)(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){let r=(0,l.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,l.spelunk)(e,"crypto.kdfparams.n:int!"),s=(0,l.spelunk)(e,"crypto.kdfparams.r:int!"),i=(0,l.spelunk)(e,"crypto.kdfparams.p:int!");(0,a.assertArgument)(n>0&&(n&n-1)==0,"invalid kdf.N","kdf.N",n),(0,a.assertArgument)(s>0&&i>0,"invalid kdf","kdf",t);let o=(0,l.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}if("pbkdf2"===t.toLowerCase()){let t=(0,l.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,l.spelunk)(e,"crypto.kdfparams.prf:string!"),n=r.split("-").pop();(0,a.assertArgument)("sha256"===n||"sha512"===n,"invalid kdf.pdf","kdf.pdf",r);let s=(0,l.spelunk)(e,"crypto.kdfparams.c:int!"),i=(0,l.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pb
311kdf2",salt:t,count:s,dkLen:i,algorithm:n}}}(0,a.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function f(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function p(e,t,r){let n=JSON.parse(e),s=(0,l.getPassword)(t),o=h(n);if("pbkdf2"===o.name){r&&(r(0),await f(0));let{salt:e,count:t,dkLen:a,algorithm:l}=o,c=(0,i.pbkdf2)(s,e,t,a,l);return r&&(r(1),await f(0)),d(n,c)}(0,a.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});let{salt:c,N:u,r:p,p:g,dkLen:m}=o;return d(n,await (0,i.scrypt)(s,c,u,p,g,m,r))}function g(e){let t=null!=e.salt?(0,a.getBytes)(e.salt,"options.salt"):(0,i.randomBytes)(32),r=131072,n=8,s=1;return e.scrypt&&(e.scrypt.N&&(r=e.scrypt.N),e.scrypt.r&&(n=e.scrypt.r),e.scrypt.p&&(s=e.scrypt.p)),(0,a.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),(0,a.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),(0,a.assertArgument)("number"==typeof s&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:t,N:r,r:n,p:s}}function m(e,t,r,s){let o=(0,a.getBytes)(r.privateKey,"privateKey"),d=null!=s.iv?(0,a.getBytes)(s.iv,"options.iv"):(0,i.randomBytes)(16);(0,a.assertArgument)(16===d.length,"invalid options.iv length","options.iv",s.iv);let h=null!=s.uuid?(0,a.getBytes)(s.uuid,"options.uuid"):(0,i.randomBytes)(16);(0,a.assertArgument)(16===h.length,"invalid options.uuid length","options.uuid",s.iv);let f=e.slice(0,16),p=e.slice(16,32),g=new n.CTR(f,d),m=(0,a.getBytes)(g.encrypt(o)),y=(0,i.keccak256)((0,a.concat)([p,m])),b={address:r.address.substring(2).toLowerCase(),id:(0,a.uuidV4)(h),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(d).substring(2)},ciphertext:(0,a.hexlify)(m).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:y.substring(2)}};if(r.mnemonic){let t=null!=s.client?s.client:`ethers/${c.version}`,o=r.mnemonic.path||u,d=r.mnemonic.locale||"en",h=e.slice(32,64),f=(0,a.getBytes)(r.mnemonic.entropy,"account.mnemonic.entropy"),p=(0,i.randomBytes)(16),g=new n.CTR(h,p),m=(0,a.getBytes)(g.encrypt(f)),y=new Date,A="UTC--"+(y.getUTCFullYear()+"-"+(0,l.zpad)(y.getUTCMonth()+1,2)+"-"+(0,l.zpad)(y.getUTCDate(),2)+"T"+(0,l.zpad)(y.getUTCHours(),2)+"-"+(0,l.zpad)(y.getUTCMinutes(),2)+"-")+(0,l.zpad)(y.getUTCSeconds(),2)+".0Z--"+b.address;b["x-ethers"]={client:t,gethFilename:A,path:o,locale:d,mnemonicCounter:(0,a.hexlify)(p).substring(2),mnemonicCiphertext:(0,a.hexlify)(m).substring(2),version:"0.1"}}return JSON.stringify(b)}async function y(e,t,r){null==r&&(r={});let n=(0,l.getPassword)(t),s=g(r),o=await (0,i.scrypt)(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return m((0,a.getBytes)(o),s,e,r)}t.isKeystoreJson=function(e){try{let t=JSON.parse(e),r=null!=t.version?parseInt(t.version):0;if(3===r)return!0}catch(e){}return!1},t.decryptKeystoreJsonSync=function(e,t){let r=JSON.parse(e),n=(0,l.getPassword)(t),s=h(r);if("pbkdf2"===s.name){let{salt:e,count:t,dkLen:o,algorithm:a}=s;return d(r,(0,i.pbkdf2)(n,e,t,o,a))}(0,a.assert)("scrypt"===s.name,"cannot be reached","UNKNOWN_ERROR",{params:s});let{salt:o,N:c,r:u,p:f,dkLen:p}=s;return d(r,(0,i.scryptSync)(n,o,c,u,f,p))},t.decryptKeystoreJson=p,t.encryptKeystoreJsonSync=function(e,t,r){null==r&&(r={});let n=(0,l.getPassword)(t),s=g(r),o=(0,i.scryptSync)(n,s.salt,s.N,s.r,s.p,64);return m((0,a.getBytes)(o),s,e,r)},t.encryptKeystoreJson=y},34745:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;let n=r(53879),s=r(66644),i=r(55860);function o(e){return(1<<e)-1<<8-e&255}function a(e,t){(0,s.assertNormalize)("NFKD"),null==t&&(t=i.LangEn.wordlist());let r=t.split(e);(0,s.assertArgument)(r.length%3==0&&r.length>
311=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");let a=new Uint8Array(Math.ceil(11*r.length/8)),l=0;for(let e=0;e<r.length;e++){let n=t.getWordIndex(r[e].normalize("NFKD"));(0,s.assertArgument)(n>=0,`invalid mnemonic word at index ${e}`,"mnemonic","[ REDACTED ]");for(let e=0;e<11;e++)n&1<<10-e&&(a[l>>3]|=1<<7-l%8),l++}let c=32*r.length/3,u=o(r.length/3),d=(0,s.getBytes)((0,n.sha256)(a.slice(0,c/8)))[0]&u;return(0,s.assertArgument)(d===(a[a.length-1]&u),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,s.hexlify)(a.slice(0,c/8))}function l(e,t){(0,s.assertArgument)(e.length%4==0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=i.LangEn.wordlist());let r=[0],a=11;for(let t=0;t<e.length;t++)a>8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],a-=8):(r[r.length-1]<<=a,r[r.length-1]|=e[t]>>8-a,r.push(e[t]&((1<<8-a)-1&255)),a+=3);let l=e.length/4,c=parseInt((0,n.sha256)(e).substring(2,4),16)&o(l);return r[r.length-1]<<=l,r[r.length-1]|=c>>8-l,t.join(r.map(e=>t.getWord(e)))}let c={};class u{phrase;password;wordlist;entropy;constructor(e,t,r,n,o){null==n&&(n=""),null==o&&(o=i.LangEn.wordlist()),(0,s.assertPrivate)(e,c,"Mnemonic"),(0,s.defineProperties)(this,{phrase:r,password:n,wordlist:o,entropy:t})}computeSeed(){let e=(0,s.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,n.pbkdf2)((0,s.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,r){let n=a(e,r);return e=l((0,s.getBytes)(n),r),new u(c,n,e,t,r)}static fromEntropy(e,t,r){let n=(0,s.getBytes)(e,"entropy"),i=l(n,r);return new u(c,(0,s.hexlify)(n),i,t,r)}static entropyToPhrase(e,t){return l((0,s.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return a(e,t)}static isValidMnemonic(e,t){try{return a(e,t),!0}catch(e){}return!1}}t.Mnemonic=u},4375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;let n=r(66644);function s(e){return"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),(0,n.getBytesCopy)(e)}t.looseArrayify=s,t.zpad=function(e,t){for(e=String(e);e.length<t;)e="0"+e;return e},t.getPassword=function(e){return"string"==typeof e?(0,n.toUtf8Bytes)(e,"NFKC"):(0,n.getBytesCopy)(e)},t.spelunk=function(e,t){let r=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,n.assertArgument)(null!=r,"invalid path","path",t);let i=r[1],o=r[3],a="!"===r[4],l=e;for(let e of i.toLowerCase().split(".")){if(Array.isArray(l)){if(!e.match(/^[0-9]+$/))break;l=l[parseInt(e)]}else if("object"==typeof l){let t=null;for(let r in l)if(r.toLowerCase()===e){t=l[r];break}l=t}else l=null;if(null==l)break}if((0,n.assertArgument)(!a||null!=l,"missing required value","path",i),o&&null!=l){if("int"===o){if("string"==typeof l&&l.match(/^-?[0-9]+$/))return parseInt(l);if(Number.isSafeInteger(l))return l}if("number"===o&&"string"==typeof l&&l.match(/^-?[0-9.]*$/))return parseFloat(l);if("data"===o&&"string"==typeof l)return s(l);if("array"===o&&Array.isArray(l)||o===typeof l)return l;(0,n.assertArgument)(!1,`wrong type found for ${o} `,"path",i)}return l}},51299:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(53879),s=r(66644),i=r(14270),o=r(27614),a=r(72897),l=r(3683),c=r(34745);function u(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}class d extends i.BaseWallet{constructor(e,t){"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),super("string"==typeof e?new n.SigningKey(e):e,t)}connect(e){return new d(this.signingKey,e)}async encrypt(e,t){let r={address:this.address,privateKey:this.privateKey};return await (0,l.encryptKeystoreJson)(r,e,{progressCallback:t})}encryptSync(e){let t={address:this.address,privateKey:this.privateKey};return(0,l.encryptKeystoreJsonSync)(t,e)}static #tR(e){if((0,s.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){let t=c.Mnemonic.fromEntropy(e.mnemonic.entropy),r=o.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(r.address===e.address&&r.privateKey===e.privateKey)return r;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}let t=new d(e.privateKey);return(0,s.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,r){let n=null;return(0,l.isKeystoreJson)(e)?n=await (0,l.decryptKeystoreJson)(e,t,r):(0,a.isCrowdsaleJson)(e)&&(r&&(r(0),await u(0)),n=(0,a.decryptCrowdsaleJson)(e,t),r&&(r(1),await u(0))),d.#tR(n)}static fromEncryptedJsonSync(e,t){let r=null;return(0,l.isKeystoreJson)(e)?r=(0,l.decryptKeystoreJsonSync)(e,t):(0,a.isCrowdsaleJson)(e)?r=(0,a.decryptCrowdsaleJson)(e,t):(0,s.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),d.#tR(r)}static createRandom(e){let t=o.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){let r=o.HDNodeWallet.fromPhrase(e);return t?r.connect(t):r}}t.Wallet=d},83192:function(e,t){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0,t.decodeBits=function(e,t){let r=(1<<e)-1,n=[],s=0,i=0,o=0;for(let a=0;a<t.length;a++)for(s=s<<6|")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(t[a]),i+=6;i>=e;){let t=s>>i-e;s&=(1<<i-e)-1,i-=e,0===t?o+=r:(n.push(t+o),o=0)}return n}},31246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;let n=r(66644),s=" !#$%&'()*+,-./<=>?@[]^_`{|}~",i=/^[a-z]*$/i;function o(e,t){let r=97;return e.reduce((e,n)=>(n===t?r++:n.match(i)?e.push(String.fromCharCode(r)+n):(r=97,e.push(n)),e),[])}function a(e,t){for(let r=s.length-1;r>=0;r--)e=e.split(s[r]).join(t.substring(2*r,2*r+2));let r=[],n=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(e,t,n,s)=>{if(n)for(let e=parseInt(n);e>=0;e--)r.push(";");else r.push(t.toLowerCase());return""});if(n)throw Error(`leftovers: ${JSON.stringify(n)}`);return o(o(r,";"),":")}t.decode=a,t.decodeOwl=function(e){return(0,n.assertArgument)("0"===e[0],"unsupported auwl data","data",e),a(e.substring(1+2*s.length),e.substring(1,1+2*s.length))}},39379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;let n=r(66644),s=r(83192),i=r(31246);t.decodeOwlA=function(e,t){let r=(0,i.decodeOwl)(e).join(",");return t.split(/,/g).forEach(e=>{let i=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,n.assertArgument)(null!==i,"internal error parsing accents","accents",t);let o=0,a=(0,s.decodeBits)(parseInt(i[3]),i[4]),l=parseInt(i[2]),c=RegExp(`([${i[1]}])`,"g");r=r.replace(c,(e,t)=>(0==--a[o]&&(t=String.fromCharCode(t.charCodeAt(0),l),o++),t))}),r.split(",")}},53664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}
311),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var n=r(5283);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var s=r(55860);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return s.LangEn}});var i=r(9318);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return i.WordlistOwl}});var o=r(57726);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var a=r(32243);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return a.wordlists}})},55860:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;let n=r(9318),s=null;class i extends n.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdO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!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|[email protected])[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==s&&(s=new i),s}}t.LangEn=i},9318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;let n=r(9387),s=r(66644),i=r(31246),o=r(5283);class a extends o.Wordlist{#r;#tN;constructor(e,t,r){super(e),this.#r=t,this.#tN=r,this.#tM=null}get _data(){return this.#r}_decodeWords(){return(0,i.decodeOwl)(this.#r)}#tM;#tI(){if(null==this.#tM){let e=this._decodeWords();if((0,n.id)(e.join("\n")+"\n")!==this.#tN)throw Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#tM=e}return this.#tM}getWord(e){let t=this.#tI();return(0,s.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#tI().indexOf(e)}}t.WordlistOwl=a},57726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;let n=r(9318),s=r(39379);class i extends n.WordlistOwl{#tL;constructor(e,t,r,n){super(e,t,n),this.#tL=r}get _accent(){return this.#tL}_decodeWords(){return(0,s.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=i},5283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;let n=r(66644);class s{locale;constructor(e){(0,n.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}t.Wordlist=s},32243:function(e,t,r){"use strict";
311Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;let n=r(55860);t.wordlists={en:n.LangEn.wordlist()}},81234:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},44369:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},68406:function(e,t,r){"use strict";let n;r.d(t,{R:function(){return s}});var s=((n=s||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},7197:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(16913),s=r(67733),i=r(44237),o=r(91842);function a(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(null),[r,a]=(0,n.useState)(!1),l=(0,i.G)(),c=(0,o.z)(()=>{t.current=null,a(!1),l.dispose()}),u=(0,o.z)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let r=(0,s.r)(e.currentTarget);l.addEventListener(r,"pointerup",c,!1),l.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let s,i;a((s=e.width/2,i=e.height/2,r={top:e.clientY-i,right:e.clientX+s,bottom:e.clientY+i,left:e.clientX-s},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),l.addEventListener(r,"pointercancel",c,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:u,onPointerUp:c,onClick:c}}}},44237:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(16913),s=r(6664);function i(){let[e]=(0,n.useState)(s.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},91842:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(16913),s=r(54766);let i=function(e){let t=(0,s.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},46096:function(e,t,r){"use strict";r.d(t,{e:function(){return i}});var n=r(16913),s=r(82923);let i=(e,t)=>{s.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},54766:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(16913),s=r(46096);function i(e){let t=(0,n.useRef)(e);return(0,s.e)(()=>{t.current=e},[e]),t}},19469:function(e,t,r){"use strict";r.d(t,{f:function(){return o}});var n=r(16913),s=r(46096);function i(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function o(e,t){let[r,o]=(0,n.useState)(()=>i(e));return(0,s.e)(()=>{o(i(e))},[e.type,e.as]),(0,s.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}},87277:function(e,t,r){"use strict";r.d(t,{T:function(){return a},h:function(){return o}});var n=r(16913),s=r(91842);let i=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=(0,n.useRef)(t);(0,n.useEffect)(()=>{o.current=t},[t]);let a=(0,s.z)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:a}},46135:function(e,t,r){"use strict";let n;r.d(t,{_:function(){return o},x:function(){return i}});var s=r(62062),i=((n=i||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let o=(0,s.yV)(function(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(2&n)==2||(null!=(r=i["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,s.sY)({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})})},19269:function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},74077:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>
311"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{A:function(){return n}})},6664:function(e,t,r){"use strict";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,s)=>(e.addEventListener(t,n,s),r.add(()=>e.removeEventListener(t,n,s))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let s=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(s))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let s=setTimeout(...t);return r.add(()=>clearTimeout(s))},microTask(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let i={current:!0};return(0,n.Y)(()=>{i.current&&t[0]()}),r.add(()=>{i.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(68363)},82923:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=Object.defineProperty,s=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>(s(e,"symbol"!=typeof t?t+"":t,r),r);class o{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let a=new o},79367:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let o=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(o,n),o}r.d(t,{E:function(){return n}})},68363:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},67733:function(e,t,r){"use strict";r.d(t,{r:function(){return s}});var n=r(82923);function s(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},62062:function(e,t,r){"use strict";let n,s;r.d(t,{VN:function(){return l},Y2:function(){return h},dG:function(){return g},l4:function(){return c},oA:function(){return y},sY:function(){return u},yV:function(){return m}});var i=r(16913),o=r(74077),a=r(79367),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),c=((s=c||{})[s.Unmount=0]="Unmount",s[s.Hidden=1]="Hidden",s);function u(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:s,features:i,visible:o=!0,name:l,mergeRefs:c}=e;c=null!=c?c:f;let u=p(r,t);if(o)return d(u,n,s,l,c);let h=null!=i?i:0;if(2&h){let{static:e=!1,...t}=u;if(e)return d(t,n,s,l,c)}if(1&h){let{unmount:e=!0,...t}=u;return(0,a.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,s,l,c)})}return d(u,n,s,l,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,{as:a=r,children:l,refName:c="ref",...u}=b(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},h="function"==typeof l?l(t):l;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&
311(u["aria-labelledby"]=void 0);let f={};if(t){let e=!1,r=[];for(let[n,s]of Object.entries(t))"boolean"==typeof s&&(e=!0),!0===s&&r.push(n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(f["data-headlessui-state"]=r.join(" "),r))f["data-".concat(e)]=""}if(a===i.Fragment&&(Object.keys(y(u)).length>0||Object.keys(y(f)).length>0)){if(!(0,i.isValidElement)(h)||Array.isArray(h)&&h.length>1){if(Object.keys(y(u)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(y(u)).concat(Object.keys(y(f))).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"))}else{let e=h.props,t=null==e?void 0:e.className,r="function"==typeof t?function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,o.A)(t(...r),u.className)}:(0,o.A)(t,u.className),n=p(h.props,y(b(u,["ref"])));for(let e in f)e in n&&delete f[e];return(0,i.cloneElement)(h,Object.assign({},n,f,d,{ref:s(h.ref,d.ref)},r?{className:r}:{}))}}return(0,i.createElement)(a,Object.assign({},b(u,["ref"]),a!==i.Fragment&&d,a!==i.Fragment&&f),h)}function h(){let e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return function(){for(var r=arguments.length,n=Array(r),s=0;s<r;s++)n[s]=arguments[s];if(!n.every(e=>null==e))return e.current=n,t}}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},s={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=s[t]||(s[t]=[]),s[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])for(let e in s)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(s[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in s)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(let r of s[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},s={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=s[t]||(s[t]=[]),s[t].push(e[t])):n[t]=e[t];for(let e in s)Object.assign(n,{[e](){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let t of s[e])null==t||t(...r)}});return n}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function y(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},9419:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});t.Z=s},40169:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))});t.Z=s},97006:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.9
31107a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"}))});t.Z=s},22525:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))});t.Z=s},27101:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))});t.Z=s},13062:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))});t.Z=s},77272:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{fillRule:"evenodd",d:"M4.5 12a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",clipRule:"evenodd"}))});t.Z=s},32072:function(e,t,r){"use strict";var n=r(16913);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},i),r?n.createElement("title",{id:s},r):null,n.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))});t.Z=s},78549:function(e,t,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{M:function(){return n}})},1877:function(e,t,r){"use strict";r.d(t,{B:function(){return a}});var n=r(16913),s=r(68806),i=r(45657),o=r(45040);function a(e){let t=e+"CollectionProvider",[r,a]=(0,s.b)(t),[l,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e+"CollectionSlot",d=n.forwardRef((e,t)=>{let{scope:r,children:s}=e,a=c(u,r),l=(0,i.e)(t,a.collectionRef);return n.createElement(o.g7,{ref:l},s)}),h=e+"CollectionItemSlot",f="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:r}=e,s=n.useRef(null),i=n.useRef(new Map).current;return n.createElement(l,{scope:t,itemMap:i,collectionRef:s},r)},Slot:d,ItemSlot:n.forwardRef((e,t)=>
311{let{scope:r,children:s,...a}=e,l=n.useRef(null),u=(0,i.e)(t,l),d=c(h,r);return n.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),n.createElement(o.g7,{[f]:"",ref:u},s)})},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},a]}},45657:function(e,t,r){"use strict";r.d(t,{F:function(){return s},e:function(){return i}});var n=r(16913);function s(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,n.useCallback)(s(...e),e)}},68806:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});var n=r(16913);function s(e,t=[]){let r=[],s=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let s=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:s}}),[r,s])}};return s.scopeName=e,[function(t,s){let i=(0,n.createContext)(s),o=r.length;function a(t){let{scope:r,children:s,...a}=t,l=(null==r?void 0:r[e][o])||i,c=(0,n.useMemo)(()=>a,Object.values(a));return(0,n.createElement)(l.Provider,{value:c},s)}return r=[...r,s],a.displayName=t+"Provider",[a,function(r,a){let l=(null==a?void 0:a[e][o])||i,c=(0,n.useContext)(l);if(c)return c;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=r.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}(s,...t)]}},9388:function(e,t,r){"use strict";let n;r.d(t,{I0:function(){return y},XB:function(){return h},fC:function(){return m}});var s=r(81234),i=r(16913),o=r(78549),a=r(23267),l=r(45657),c=r(59765);let u="dismissableLayer.update",d=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,i.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:A,...w}=e,v=(0,i.useContext)(d),[E,P]=(0,i.useState)(null),k=null!==(r=null==E?void 0:E.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,x]=(0,i.useState)({}),C=(0,l.e)(t,e=>P(e)),T=Array.from(v.layers),[O]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),S=T.indexOf(O),B=E?T.indexOf(E):-1,R=v.layersWithOutsidePointerEventsDisabled.size>0,N=B>=S,M=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,c.W)(e),n=(0,i.useRef)(!1),s=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){g("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",s.current),s.current=i,t.addEventListener("click",s.current,{once:!0})):i()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...v.branches].some(e=>e.contains(t));!N||r||(null==m||m(e),null==b||b(e),e.defaultPrevented||null==A||A())},k),I=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,c.W)(e),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!n.current&&g("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...v.branches].some(e=>e.contains(t))||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==A||A())},k);return!function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,c.W)(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{B!==v.layers.size-1||(null==f||f(e),!e.defaultPrevented&&A&&(e.preventDefault(),A()))},k),(0,i.useEffect)(()=>
311{if(E)return h&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(n=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(E)),v.layers.add(E),p(),()=>{h&&1===v.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=n)}},[E,k,h,v]),(0,i.useEffect)(()=>()=>{E&&(v.layers.delete(E),v.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,v]),(0,i.useEffect)(()=>{let e=()=>x({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,i.createElement)(a.WV.div,(0,s.Z)({},w,{ref:C,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,M.onPointerDownCapture)}))}),f=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(d),n=(0,i.useRef)(null),o=(0,l.e)(t,n);return(0,i.useEffect)(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,i.createElement)(a.WV.div,(0,s.Z)({},e,{ref:o}))});function p(){let e=new CustomEvent(u);document.dispatchEvent(e)}function g(e,t,r,{discrete:n}){let s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?(0,a.jH)(s,i):s.dispatchEvent(i)}let m=h,y=f},6799:function(e,t,r){"use strict";let n;r.d(t,{oC:function(){return nn},VY:function(){return r7},Xi:function(){return rY},ZA:function(){return ne},ck:function(){return nr},wU:function(){return no},__:function(){return nt},Uv:function(){return r9},Ee:function(){return ns},Rk:function(){return ni},fC:function(){return r5},Z0:function(){return na},Tr:function(){return nl},tu:function(){return nu},fF:function(){return nc},xz:function(){return r8}});var s=r(44369),i=r(16913),o=r.t(i,2),a=r(78549),l=r(45657),c=r(68806),u=r(91655),d=r(23267),h=r(1877);let f=(0,i.createContext)(void 0);function p(e){let t=(0,i.useContext)(f);return e||t||"ltr"}var g=r(9388);let m=0;function y(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var b=r(59765);let A="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},E=(0,i.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[u,h]=(0,i.useState)(null),f=(0,b.W)(o),p=(0,b.W)(a),g=(0,i.useRef)(null),m=(0,l.e)(t,e=>h(e)),y=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(n){function e(e){if(y.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:x(g.current,{select:!0})}function t(e){if(y.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||x(g.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&x(u)});return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,u,y.paused]),(0,i.useEffect)(()=>{if(u){C.add(y);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(A,v);u.addEventListener(A,f),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(x(n,{select:t}),document.activeElement!==r)return}(P(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&x(u))}return()=>{u.removeEventListener(A,f),setTimeout(()=>{let t=new CustomEvent(w,v);u.addEventListener(w,p),u.dispatchEvent(t),t.defaultPrevented||x(null!=e?e:document.body,{select:!0}),u.removeEventListener(w,p),C.remove(y)},0)}}},[u,f,p,y]);let E=(0,i.useCallback)(e=>{if(!r&&!n||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,s=document.activeElement;if(t&&s){let t=e.currentTarget,[n,i]=function(e){let t=P(e);return[k(t,e),k(t.reverse(),e)]}(t);n&&i?e.shiftKey||s!==i?e.shiftKey&&s===n&&(e.preventDefault(),r&&x(i,{select:!0})):(e.preventDefault(),r&&x(n,{select:!0})):s===t&&e.preventDefault()}},[r,n,y.paused]);return(0,i.createElement)(d.WV.div,(0,s.Z)({tabIndex:-1},c,{ref:m,onKeyDown:E}))});function P(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function k(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function x(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let C=(n=[],{add(e){let t=n[0];e!==t&&(null==t||t.pause()),(n=T(n,e)).unshift(e)},remove(e){var t;null===(t=(n=T(n,e))[0])||void 0===t||t.resume()}});function T(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var O=r(58563);let S=o["useId".toString()]||(()=>void 0),B=0;function R(e){let[t,r]=i.useState(S());return(0,O.b)(()=>{e||r(e=>null!=e?e:String(B++))},[e]),e||(t?`radix-${t}`:"")}let N=["top","right","bottom","left"],M=Math.min,I=Math.max,L=Math.round,D=Math.floor,F=e=>({x:e,y:e}
311),U={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function _(e,t){return"function"==typeof e?e(t):e}function H(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function K(e){return"x"===e?"y":"x"}function Q(e){return"y"===e?"height":"width"}function V(e){return["top","bottom"].includes(H(e))?"y":"x"}function z(e){return e.replace(/start|end/g,e=>j[e])}function J(e){return e.replace(/left|right|bottom|top/g,e=>U[e])}function W(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function q(e,t,r){let n,{reference:s,floating:i}=e,o=V(t),a=K(V(t)),l=Q(a),c=H(t),u="y"===o,d=s.x+s.width/2-i.width/2,h=s.y+s.height/2-i.height/2,f=s[l]/2-i[l]/2;switch(c){case"top":n={x:d,y:s.y-i.height};break;case"bottom":n={x:d,y:s.y+s.height};break;case"right":n={x:s.x+s.width,y:h};break;case"left":n={x:s.x-i.width,y:h};break;default:n={x:s.x,y:s.y}}switch(G(t)){case"start":n[a]-=f*(r&&u?-1:1);break;case"end":n[a]+=f*(r&&u?-1:1)}return n}let Z=async(e,t,r)=>{let{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=q(c,n,l),h=n,f={},p=0;for(let r=0;r<a.length;r++){let{name:i,fn:g}=a[r],{x:m,y:y,data:b,reset:A}=await g({x:u,y:d,initialPlacement:n,placement:h,strategy:s,middlewareData:f,re
311cts:c,platform:o,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,f={...f,[i]:{...f[i],...b}},A&&p<=50&&(p++,"object"==typeof A&&(A.placement&&(h=A.placement),A.rects&&(c=!0===A.rects?await o.getElementRects({reference:e,floating:t,strategy:s}):A.rects),{x:u,y:d}=q(c,h,l)),r=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:f}};async function Y(e,t){var r;void 0===t&&(t={});let{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=_(t,e),p=W(f),g=a[h?"floating"===d?"reference":"floating":d],m=$(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{...o.floating,x:n,y:s}:o.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),A=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-w.top+p.top)/A.y,bottom:(w.bottom-m.bottom+p.bottom)/A.y,left:(m.left-w.left+p.left)/A.x,right:(w.right-m.right+p.right)/A.x}}function X(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ee(e){return N.some(t=>e[t]>=0)}async function et(e,t){let{placement:r,platform:n,elements:s}=e,i=await (null==n.isRTL?void 0:n.isRTL(s.floating)),o=H(r),a=G(r),l="y"===V(r),c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=_(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}function er(e){return ei(e)?(e.nodeName||"").toLowerCase():"#document"}function en(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function es(e){var t;return null==(t=(ei(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ei(e){return e instanceof Node||e instanceof en(e).Node}function eo(e){return e instanceof Element||e instanceof en(e).Element}function ea(e){return e instanceof HTMLElement||e instanceof en(e).HTMLElement}function el(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof en(e).ShadowRoot)}function ec(e){let{overflow:t,overflowX:r,overflowY:n,display:s}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(s)}function eu(e){let t=ed(),r=ef(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function ed(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function eh(e){return["html","body","#document"].includes(er(e))}function ef(e){return en(e).getComputedStyle(e)}function ep(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eg(e){if("html"===er(e))return e;let t=e.assignedSlot||e.parentNode||el(e)&&e.host||es(e);return el(t)?t.host:t}function em(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let s=function e(t){let r=eg(t);return eh(r)?t.ownerDocument?t.ownerDocument.body:t.body:ea(r)&&ec(r)?r:e(r)}(e),i=s===(null==(n=e.ownerDocument)?void 0:n.body),o=en(s);return i?t.concat(o,o.visualViewport||[],ec(s)?s:[],o.frameElement&&r?em(o.frameElement):[]):t.concat(s,em(s,[],r))}function ey(e){let t=ef(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,s=ea(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=L(r)!==i||L(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function eb(e){return eo(e)?e:e.contextElement}function eA(e){let t=eb(e);if(!ea(t))return F(1);let r=t.getBoundingClientRect(),{width:n,height:s,$:i}=ey(t),o=(i?L(r.width):r.width)/n,a=(i?L(r.height):r.height)/s;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let ew=F(0);function ev(e){let t=en(e);
311return ed()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ew}function eE(e,t,r,n){var s;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=eb(e),a=F(1);t&&(n?eo(n)&&(a=eA(n)):a=eA(e));let l=(void 0===(s=r)&&(s=!1),n&&(!s||n===en(o))&&s)?ev(o):F(0),c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(o){let e=en(o),t=n&&eo(n)?en(n):n,r=e,s=r.frameElement;for(;s&&n&&t!==r;){let e=eA(s),t=s.getBoundingClientRect(),n=ef(s),i=t.left+(s.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(s.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,h*=e.y,c+=i,u+=o,s=(r=en(s)).frameElement}}return $({width:d,height:h,x:c,y:u})}let eP=[":popover-open",":modal"];function ek(e){return eP.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ex(e){return eE(es(e)).left+ep(e).scrollLeft}function eC(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=en(e),n=es(e),s=r.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;let e=ed();(!e||e&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}(e,r);else if("document"===t)n=function(e){let t=es(e),r=ep(e),n=e.ownerDocument.body,s=I(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=I(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+ex(e),a=-r.scrollTop;return"rtl"===ef(n).direction&&(o+=I(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}(es(e));else if(eo(t))n=function(e,t){let r=eE(e,!0,"fixed"===t),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=ea(e)?eA(e):F(1),o=e.clientWidth*i.x;return{width:o,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}(t,r);else{let r=ev(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return $(n)}function eT(e,t){return ea(e)&&"fixed"!==ef(e).position?t?t(e):e.offsetParent:null}function eO(e,t){let r=en(e);if(!ea(e)||ek(e))return r;let n=eT(e,t);for(;n&&["table","td","th"].includes(er(n))&&"static"===ef(n).position;)n=eT(n,t);return n&&("html"===er(n)||"body"===er(n)&&"static"===ef(n).position&&!eu(n))?r:n||function(e){let t=eg(e);for(;ea(t)&&!eh(t);){if(eu(t))return t;t=eg(t)}return null}(e)||r}let eS=async function(e){let t=this.getOffsetParent||eO,r=this.getDimensions;return{reference:function(e,t,r){let n=ea(t),s=es(t),i="fixed"===r,o=eE(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=F(0);if(n||!n&&!i){if(("body"!==er(t)||ec(s))&&(a=ep(t)),n){let e=eE(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else s&&(l.x=ex(s))}return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await r(e.floating)}}},eB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e,i="fixed"===s,o=es(n),a=!!t&&ek(t.floating);if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=F(1),u=F(0),d=ea(n);if((d||!d&&!i)&&(("body"!==er(n)||ec(o))&&(l=ep(n)),ea(n))){let e=eE(n);c=eA(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:es,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e,i=[..."clippingAncestors"===r?function(e,t){let r=t.get(e);if(r)return r;let n=em(e,[],!1).filter(e=>eo(e)&&"body"!==er(e)),s=null,i="fixed"===ef(e).position,o=i?eg(e):e;for(;eo(o)&&!eh(o);){let t=ef(o),r=eu(o);r||"fixed"!==t.position||(s=null),(i?!r&&!s:!r&&"static"===t.position&&!!s&&["absolute","fixed"].includes(s.position)||ec(o)&&!r&&function e(t,r){let n=eg(t);return!(n===r||!eo(n)||eh(n))&&("fixed"===ef(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):s=t,o=eg(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=i[0],a=i.reduce((e,r)=>{let n=eC(t,r,s);return e.top=I(n.top,e.top),e.right=M(n.right,e.right),e.bottom=M(n.bottom,e.bottom),e.left=I(n.left,e.left),e},eC(t,o,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eO,getElementRects:eS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ey(e);return{width:t,height:r}},getScale:eA,isElement:eo,isRTL:function(e){return"rtl"===ef(e).direction}},eR=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=_(e,t)||{};if(null==c)return{};let d=W(u),h={x:r,y:n},f=K(V(s)),p=Q(f),g=await o.getDimensions(c),m="y"===f,y=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-h[f]-i.floating[p],A=h[f]-i.reference[f],w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),v=w?w[y]:0;v&&await (null==o.isElement?void 0:o.isElement(w))||(v=a.floating[y]||i.floating[p]);let E=v/2-g[p]/2-1,P=M(d[m?"top":"left"],E),k=M(d[m?"bottom":"right"],E),x=v-g[p]-k,C=v/2-g[p]/2+(b/2-A/2),T=I(P,M(C,x)),O=!l.arrow&&null!=G(s)&&C!==T&&i.reference[p]/2-(C<P?P:k)-g[p]/2<0,S=O?C<P?C-P:C-x:0;return{[f]:h[f]+S,data:{[f]:T,centerOffset:C-T-S,...O&&{alignmentOffset:S}},reset:O}}}),eN=(e,t,r)=>{let n=new Map,s={platform:eB,...r},i={...s.platform,_c:n};return Z(e,t,{...s,platform:i})};var eM=r(43176);let eI=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?eR({element:r.current,padding:n}).fn(t):{}:r?eR({element:r,padding:n}).fn(t):{}}});var eL="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function eD(e,t){let r,n,s;if(e===t)return!0;
311if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eD(e[n],t[n]))return!1;return!0}if((r=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,s[n]))return!1;for(n=r;0!=n--;){let r=s[n];if(("_owner"!==r||!e.$$typeof)&&!eD(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eF(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eU(e,t){let r=eF(e);return Math.round(t*r)/r}function ej(e){let t=i.useRef(e);return eL(()=>{t.current=e}),t}let e_=(0,i.forwardRef)((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,i.createElement)(d.WV.svg,(0,s.Z)({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var eH=r(43659);let eG="Popper",[eK,eQ]=(0,c.b)(eG),[eV,ez]=eK(eG),eJ=(0,i.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=ez("PopperAnchor",r),c=(0,i.useRef)(null),u=(0,l.e)(t,c);return(0,i.useEffect)(()=>{a.onAnchorChange((null==n?void 0:n.current)||c.current)}),n?null:(0,i.createElement)(d.WV.div,(0,s.Z)({},o,{ref:u}))}),eW="PopperContent",[e$,eq]=eK(eW),eZ=(0,i.forwardRef)((e,t)=>{var r,n,o,a,c,u,h,f,p,g,m,y,A,w;let{__scopePopper:v,side:E="bottom",sideOffset:P=0,align:k="center",alignOffset:x=0,arrowPadding:C=0,avoidCollisions:T=!0,collisionBoundary:S=[],collisionPadding:B=0,sticky:R="partial",hideWhenDetached:N=!1,updatePositionStrategy:L="optimized",onPlaced:F,...U}=e,j=ez(eW,v),[W,$]=(0,i.useState)(null),q=(0,l.e)(t,e=>$(e)),[Z,er]=(0,i.useState)(null),en=(0,eH.t)(Z),ei=null!==(r=null==en?void 0:en.width)&&void 0!==r?r:0,eo=null!==(n=null==en?void 0:en.height)&&void 0!==n?n:0,ea="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},el=Array.isArray(S)?S:[S],ec=el.length>0,eu={padding:ea,boundary:el.filter(e0),altBoundary:ec},{refs:ed,floatingStyles:eh,placement:ef,isPositioned:ep,middlewareData:eg}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=i.useState(n);eD(f,n)||p(n);let[g,m]=i.useState(null),[y,b]=i.useState(null),A=i.useCallback(e=>{e!==P.current&&(P.current=e,m(e))},[]),w=i.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),v=o||g,E=a||y,P=i.useRef(null),k=i.useRef(null),x=i.useRef(d),C=null!=c,T=ej(c),O=ej(s),S=i.useCallback(()=>{if(!P.current||!k.current)return;let e={placement:t,strategy:r,middleware:f};O.current&&(e.platform=O.current),eN(P.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};B.current&&!eD(x.current,t)&&(x.current=t,eM.flushSync(()=>{h(t)}))})},[f,t,r,O]);eL(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[u]);let B=i.useRef(!1);eL(()=>(B.current=!0,()=>{B.current=!1}),[]),eL(()=>{if(v&&(P.current=v),E&&(k.current=E),v&&E){if(T.current)return T.current(v,E,S);S()}},[v,E,S,T,C]);let R=i.useMemo(()=>({reference:P,floating:k,setReference:A,setFloating:w}),[A,w]),N=i.useMemo(()=>({reference:v,floating:E}),[v,E]),M=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!N.floating)return e;let t=eU(N.floating,d.x),n=eU(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eF(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,N.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:S,refs:R,elements:N,floatingStyles:M}),[d,S,R,N,M])}({strategy:"fixed",placement:E+("center"!==k?"-"+k:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let s;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=eb(e),d=i||o?[...u?em(u):[],...em(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)});
311let h=u&&l?function(e,t){let r,n=null,s=es(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function o(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();let{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;let f=D(u),p=D(s.clientWidth-(c+d)),g={rootMargin:-f+"px "+-p+"px "+-D(s.clientHeight-(u+h))+"px "+-D(c)+"px",threshold:I(0,M(1,l))||1},m=!0;function y(e){let t=e[0].intersectionRatio;if(t!==l){if(!m)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},100)}m=!1}try{n=new IntersectionObserver(y,{...g,root:s.ownerDocument})}catch(e){n=new IntersectionObserver(y,g)}n.observe(e)}(!0),i}(u,r):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),u&&!c&&p.observe(u),p.observe(t));let g=c?eE(e):null;return c&&function t(){let n=eE(e);g&&(n.x!==g.x||n.y!==g.y||n.width!==g.width||n.height!==g.height)&&r(),g=n,s=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(s)}})(...e,{animationFrame:"always"===L}),elements:{reference:j.anchor},middleware:[{name:"offset",options:p={mainAxis:P+eo,alignmentAxis:x},async fn(e){var t,r;let{x:n,y:s,placement:i,middlewareData:o}=e,a=await et(e,p);return i===(null==(t=o.offset)?void 0:t.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:n+a.x,y:s+a.y,data:{...a,placement:i}}}},T&&{name:"shift",options:m={mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(void 0===g&&(g={}),{options:g,fn(e){let{x:t,y:r,placement:n,rects:s,middlewareData:i}=e,{offset:o=0,mainAxis:a=!0,crossAxis:l=!0}=_(g,e),c={x:t,y:r},u=V(n),d=K(u),h=c[d],f=c[u],p=_(o,e),m="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(a){let e="y"===d?"height":"width",t=s.reference[d]-s.floating[e]+m.mainAxis,r=s.reference[d]+s.reference[e]-m.mainAxis;h<t?h=t:h>r&&(h=r)}if(l){var y,b;let e="y"===d?"width":"height",t=["top","left"].includes(H(n)),r=s.reference[u]-s.floating[e]+(t&&(null==(y=i.offset)?void 0:y[u])||0)+(t?0:m.crossAxis),o=s.reference[u]+s.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[u])||0)-(t?m.crossAxis:0);f<r?f=r:f>o&&(f=o)}return{[d]:h,[u]:f}}}):void 0,...eu},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:o={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...a}=_(m,e),l={x:t,y:r},c=await Y(e,a),u=V(H(n)),d=K(u),h=l[d],f=l[u];if(s){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=h+c[e],n=h-c[t];h=I(r,M(h,n))}if(i){let e="y"===u?"top":"left",t="y"===u?"bottom":"right",r=f+c[e],n=f-c[t];f=I(r,M(f,n))}let p=o.fn({...e,[d]:h,[u]:f});return{...p,data:{x:p.x-t,y:p.y-r}}}},T&&{name:"flip",options:y={...eu},async fn(e){var t,r,n,s,i;let{placement:o,middlewareData:a,rects:l,initialPlacement:c,platform:u,elements:d}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...A}=_(y,e);if(null!=(t=a.arrow)&&t.alignmentOffset)return{};let w=H(o),v=H(c)===c,E=await (null==u.isRTL?void 0:u.isRTL(d.floating)),P=p||(v||!b?[J(c)]:function(e){let t=J(e);return[z(e),t,z(t)]}(c));p||"none"===m||P.push(...function(e,t,r,n){let s=G(e),i=function(e,t,r){let n=["left","right"],s=["right","left"];switch(e){case"top":case"bottom":if(r)return t?s:n;return t?n:s;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(H(e),"start"===r,n);return s&&(i=i.map(e=>e+"-"+s),t&&(i=i.concat(i.map(z)))),i}(c,b,m,E));let k=[c,...P],x=await Y(e,A),C=[],T=(null==(r=a.flip)?void 0:r.overflows)||[];if(h&&C.push(x[w]),f){let e=function(e,t,r){void 0===r&&(r=!1);let n=G(e),s=K(V(e)),i=Q(s),o="x"===s?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=J(o)),[o,J(o)]}(o,l,E);C.push(x[e[0]],x[e[1]])}if(T=[...T,{placement:o,overflows:C}],!C.every(e=>e<=0)){let e=((null==(n=a.flip)?void 0:n.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let r=null==(s=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
311e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!r)switch(g){case"bestFit":{let e=null==(i=T.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(r=e);break}case"initialPlacement":r=c}if(o!==r)return{reset:{placement:r}}}return{}}},{name:"size",options:A={...eu,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:s,height:i}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${s}px`),o.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){let t,r;let{placement:n,rects:s,platform:i,elements:o}=e,{apply:a=()=>{},...l}=_(A,e),c=await Y(e,l),u=H(n),d=G(n),h="y"===V(n),{width:f,height:p}=s.floating;"top"===u||"bottom"===u?(t=u,r=d===(await (null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(r=u,t="end"===d?"top":"bottom");let g=p-c[t],m=f-c[r],y=!e.middlewareData.shift,b=g,w=m;if(h){let e=f-c.left-c.right;w=d||y?M(m,e):e}else{let e=p-c.top-c.bottom;b=d||y?M(g,e):e}if(y&&!d){let e=I(c.left,0),t=I(c.right,0),r=I(c.top,0),n=I(c.bottom,0);h?w=f-2*(0!==e||0!==t?e+t:I(c.left,c.right)):b=p-2*(0!==r||0!==n?r+n:I(c.top,c.bottom))}await a({...e,availableWidth:w,availableHeight:b});let v=await i.getDimensions(o.floating);return f!==v.width||p!==v.height?{reset:{rects:!0}}:{}}},Z&&eI({element:Z,padding:C}),e1({arrowWidth:ei,arrowHeight:eo}),N&&{name:"hide",options:w={strategy:"referenceHidden",...eu},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=_(w,e);switch(r){case"referenceHidden":{let r=X(await Y(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ee(r)}}}case"escaped":{let r=X(await Y(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:ee(r)}}}default:return{}}}}]}),[ey,eA]=e2(ef),ew=(0,b.W)(F);(0,O.b)(()=>{ep&&(null==ew||ew())},[ep,ew]);let ev=null===(o=eg.arrow)||void 0===o?void 0:o.x,eP=null===(a=eg.arrow)||void 0===a?void 0:a.y,ek=(null===(c=eg.arrow)||void 0===c?void 0:c.centerOffset)!==0,[ex,eC]=(0,i.useState)();return(0,O.b)(()=>{W&&eC(window.getComputedStyle(W).zIndex)},[W]),(0,i.createElement)("div",{ref:ed.setFloating,"data-radix-popper-content-wrapper":"",style:{...eh,transform:ep?eh.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ex,"--radix-popper-transform-origin":[null===(u=eg.transformOrigin)||void 0===u?void 0:u.x,null===(h=eg.transformOrigin)||void 0===h?void 0:h.y].join(" ")},dir:e.dir},(0,i.createElement)(e$,{scope:v,placedSide:ey,onArrowChange:er,arrowX:ev,arrowY:eP,shouldHideArrow:ek},(0,i.createElement)(d.WV.div,(0,s.Z)({"data-side":ey,"data-align":eA},U,{ref:q,style:{...U.style,animation:ep?void 0:"none",opacity:null!==(f=eg.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))}),eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=(0,i.forwardRef)(function(e,t){let{__scopePopper:r,...n}=e,o=eq("PopperArrow",r),a=eY[o.placedSide];return(0,i.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,i.createElement)(e_,(0,s.Z)({},n,{ref:t,style:{...n.style,display:"block"}})))});function e0(e){return null!==e}let e1=e=>({name:"transformOrigin",options:e,fn(t){var r,n,s,i,o;let{placement:a,rects:l,middlewareData:c}=t,u=(null===(r=c.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[f,p]=e2(a),g={start:"0%",center:"50%",end:"100%"}[p],m=(null!==(n=null===(s=c.arrow)||void 0===s?void 0:s.x)&&void 0!==n?n:0)+d/2,y=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+h/2,b="",A="";return"bottom"===f?(b=u?g:`${m}px`,A=`${-h}px`):"top"===f?(b=u?g:`${m}px`,A=`${l.floating.height+h}px`):"right"===f?(b=`${-h}px`,A=u?g:`${y}px`):"left"===f&&(b=`${l.floating.width+h}px`,A=u?g:`${y}px`),{data:{x:b,y:A}}}});function e2(e){let[t,r="center"]=e.split("-");return[t,r]}let e3=e=>{let{__scopePopper:t,children:r}=e,[n,s]=(0,i.useState)(null);return(0,i.createElement)(eV,{scope:t,anchor:n,onAnchorChange:s},r)};var e4=r(56144),e6=r(32157);let e5="rovingFocusGroup.onEntryFocus",e8={bubbles:!1,cancelable:!0},e9="RovingFocusGroup",[e7,te,tt]=(0,h.B)(e9),[tr,tn]=(0,c.b)(e9,[tt]),[ts,ti]=tr(e9),to=(0,i.forwardRef)((e,t)=>(0,i.createElement)(e7.Provider,{scope:e.__scopeRovingFocusGroup},(0,i.createElement)(e7.Slot,{scope:e.__scopeRovingFocusGroup},(0,i.createElement)(ta,(0,s.Z)({},e,{ref:t}))))),ta=(0,i.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:g,onEntryFocus:m,...y}=e,A=(0,i.useRef)(null),w=(0,l.e)(t,A),v=p(c),[E=null,P]=(0,u.T)({prop:h,defaultProp:f,onChange:g}),[k,x]=(0,i.useState)(!1),C=(0,b.W)(m),T=te(r),O=(0,i.useRef)(!1),[S,B]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=A.current;if(e)return e.addEventListener(e5,C),()=>e.removeEventListener(e5,C)},[C]),(0,i.createElement)(ts,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:E,onItemFocus:(0,i.useCallback)(e=>P(e),[P]),onItemShiftTab:(0,i.useCallback)(()=>x(!0),[]),onFocusableItemAdd:(0,i.useCallback)(()=>B(e=>e+1),[]),onFocusableItemRemove:(0,i.useCallback)(()=>B(e=>e-1),[])},(0,i.createElement)(d.WV.div,(0,s.Z)({tabIndex:k||0===S?-1:0,"data-orientation":n},y,{ref:w,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(e5,e8);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>
311e.focusable);tu([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current))}}O.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>x(!1))})))}),tl=(0,i.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:l,...c}=e,u=R(),h=l||u,f=ti("RovingFocusGroupItem",r),p=f.currentTabStopId===h,g=te(r),{onFocusableItemAdd:m,onFocusableItemRemove:y}=f;return(0,i.useEffect)(()=>{if(n)return m(),()=>y()},[n,m,y]),(0,i.createElement)(e7.ItemSlot,{scope:r,id:h,focusable:n,active:o},(0,i.createElement)(d.WV.span,(0,s.Z)({tabIndex:p?0:-1,"data-orientation":f.orientation},c,{ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{n?f.onItemFocus(h):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>f.onItemFocus(h)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let s=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return tc[s]}(e,f.orientation,f.dir);if(void 0!==t){e.preventDefault();let s=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=f.loop?(r=s,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):s.slice(i+1)}setTimeout(()=>tu(s))}})})))}),tc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tu(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}var td=r(45040),th=new WeakMap,tf=new WeakMap,tp={},tg=0,tm=function(e){return e&&(e.host||tm(e.parentNode))},ty=function(e,t,r,n){var s=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=tm(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tp[r]||(tp[r]=new WeakMap);var i=tp[r],o=[],a=new Set,l=new Set(s),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};s.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(n),s=null!==t&&"false"!==t,l=(th.get(e)||0)+1,c=(i.get(e)||0)+1;th.set(e,l),i.set(e,c),o.push(e),1===l&&s&&tf.set(e,!0),1===c&&e.setAttribute(r,"true"),s||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),tg++,function(){o.forEach(function(e){var t=th.get(e)-1,s=i.get(e)-1;th.set(e,t),i.set(e,s),t||(tf.has(e)||e.removeAttribute(n),tf.delete(e)),s||e.removeAttribute(r)}),--tg||(th=new WeakMap,th=new WeakMap,tf=new WeakMap,tp={})}},tb=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),ty(n,s,r,"aria-hidden")):function(){return null}},tA=r(3212),tw="right-scroll-bar-position",tv="width-before-scroll-bar",tE=(0,r(89582)._)(),tP=function(){},tk=i.forwardRef(function(e,t){var r,n,s,o=i.useRef(null),a=i.useState({onScrollCapture:tP,onWheelCapture:tP,onTouchMoveCapture:tP}),l=a[0],c=a[1],u=e.forwardProps,d=e.children,h=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,m=e.sideCar,y=e.noIsolation,b=e.inert,A=e.allowPinchZoom,w=e.as,v=(0,tA._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=(r=[o,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(s=(0,i.useState)(function(){return{value:null,callback:n,facade:{get current(){return s.value},set current(value){var e=s.value;e!==value&&(s.value=value,s.callback(value,e))}}}})[0]).callback=n,s.facade),P=(0,tA.pi)((0,tA.pi)({},v),l);return i.createElement(i.Fragment,null,p&&i.createElement(m,{sideCar:tE,removeScrollBar:f,shards:g,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!A,lockRef:o}),u?i.cloneElement(i.Children.only(d),(0,tA.pi)((0,tA.pi)({},P),{ref:E})):i.createElement(void 0===w?"div":w,(0,tA.pi)({},P,{className:h,ref:E}),d))});tk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tk.classNames={fullWidth:tv,zeroRight:tw};var tx=r(756),tC=r(67228),tT={left:0,top:0,right:0,gap:0},tO=function(e){return parseInt(e||"",10)||0},tS=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],s=t["padding"===e?"paddingRight":"marginRight"];return[tO(r),tO(n),tO(s)]},tB=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tT;var t=tS(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},tR=(0,tC.Ws)(),tN=function(e,t,r,n){var s=e.left,i=e.top,o=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(a,"px ").concat(n,";\n  }\n  body {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(s,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";
311")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tw," {\n    right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(tv," {\n    margin-right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(tw," .").concat(tw," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(tv," .").concat(tv," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},tM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=void 0===n?"margin":n,o=i.useMemo(function(){return tB(s)},[s]);return i.createElement(tR,{styles:tN(o,!t,s,r?"":"!important")})},tI=!1;if("undefined"!=typeof window)try{var tL=Object.defineProperty({},"passive",{get:function(){return tI=!0,!0}});window.addEventListener("test",tL,tL),window.removeEventListener("test",tL,tL)}catch(e){tI=!1}var tD=!!tI&&{passive:!1},tF=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},tU=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tj(e,r)){var n=t_(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},tj=function(e,t){return"v"===e?tF(t,"overflowY"):tF(t,"overflowX")},t_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tH=function(e,t,r,n,s){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=o*n,l=r.target,c=t.contains(l),u=!1,d=a>0,h=0,f=0;do{var p=t_(e,l),g=p[0],m=p[1]-p[2]-o*g;(g||m)&&tj(e,l)&&(h+=m,f+=g),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(s&&0===h||!s&&a>h)?u=!0:!d&&(s&&0===f||!s&&-a>f)&&(u=!0),u},tG=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tK=function(e){return[e.deltaX,e.deltaY]},tQ=function(e){return e&&"current"in e?e.current:e},tV=0,tz=[],tJ=(0,tx.L)(tE,function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),s=i.useState(tV++)[0],o=i.useState(function(){return(0,tC.Ws)()})[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var t=(0,tA.ev)([e.lockRef.current],(e.shards||[]).map(tQ),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var s,i=tG(e),o=r.current,l="deltaX"in e?e.deltaX:o[0]-i[0],c="deltaY"in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=tU(d,u);if(!h)return!0;if(h?s=d:(s="v"===d?"h":"v",h=tU(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=s),!s)return!0;var f=n.current||s;return tH(f,t,e,"h"===f?l:c,!0)},[]),c=i.useCallback(function(e){if(tz.length&&tz[tz.length-1]===o){var r="deltaY"in e?tK(e):tG(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var s=(a.current.shards||[]).map(tQ).filter(Boolean).filter(function(t){return t.contains(e.target)});(s.length>0?l(e,s[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,s){var i={name:e,delta:r,target:n,should:s};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){r.current=tG(e),n.current=void 0},[]),h=i.useCallback(function(t){u(t.type,tK(t),t.target,l(t,e.lockRef.current))},[]),f=i.useCallback(function(t){u(t.type,tG(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return tz.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,tD),document.addEventListener("touchmove",c,tD),document.addEventListener("touchstart",d,tD),function(){tz=tz.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,tD),document.removeEventListener("touchmove",c,tD),document.removeEventListener("touchstart",d,tD)}},[]);var p=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(o,{styles:"\n  .block-interactivity-".concat(s," {pointer-events: none;}\n  .allow-interactivity-").concat(s," {pointer-events: all;}\n")}):null,p?i.createElement(tM,{gapMode:"margin"}):null)}),tW=i.forwardRef(function(e,t){return i.createElement(tk,(0,tA.pi)({},e,{ref:t,sideCar:tJ}))});tW.classNames=tk.classNames;let t$=["Enter"," "],tq=["ArrowUp","PageDown","End"],tZ=["ArrowDown","PageUp","Home",...tq],tY={ltr:[...t$,"ArrowRight"],rtl:[...t$,"ArrowLeft"]},tX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},t0="Menu",[t1,t2,t3]=(0,h.B)(t0),[t4,t6]=(0,c.b)(t0,[t3,eQ,tn]),t5=eQ(),t8=tn(),[t9,t7]=t4(t0),[re,rt]=t4(t0),rr=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,o=t5(r);return(0,i.createElement)(eJ,(0,s.Z)({},o,n,{ref:t}))}),rn="MenuPortal",[rs,ri]=t4(rn,{forceMount:void 0}),ro="MenuContent",[ra,rl]=t4(ro),rc=(0,i.forwardRef)((e,t)=>{let r=ri(ro,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=t7(ro,e.__scopeMenu),l=rt(ro,e.__scopeMenu);return(0,i.createElement)(t1.Provider,{scope:e.__scopeMenu},(0,i.createElement)(e6.z,{present:n||a.open},(0,i.createElement)(t1.Slot,{scope:e.__scopeMenu},l.modal?(0,i.createElement)(ru,(0,s.Z)({},o,{ref:t})):(0,i.createElement)(rd,(0,s.Z)({},o,{ref:t})))))}),ru=(0,i.forwardRef)((e,t)=>{let r=t7(ro,e.__scopeMenu),n=(0,i.useRef)(null),o=(0,l.e)(t,n);return(0,i.useEffect)(()=>{let e=n.current;if(e)return tb(e)},[]),(0,i.createElement)(rh,(0,s.Z)({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),rd=(0,i.forwardRef)((e,t)=>{let r=t7(ro,e.__scopeMenu);return(0,i.createElement)(rh,(0,s.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),rh=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:A,onDismiss:w,disableOutsideScroll:v,...P}=e,k=t7(ro,r),x=rt(ro,r),C=t5(r),T=t8(r),O=t2(r),[S,B]=(0,i.useState)(null),R=(0,i.useRef)(null),N=(0,l.e)(t,R,k.onContentChange),M=(0,i.useRef)(0),I=(0,i.useRef)(""),L=(0,i.useRef)(0),D=(0,i.useRef)(null),F=(0,i.useRef)("right"),U=(0,i.useRef)(0),j=v?tW:i.Fragment,_=v?{as:td.g7,allowPinchZoom:!0}:void 0,H=e=>{var t,r;let n=I.current+e,s=O().filter(e=>!e.disabled),i=document.activeElement,o=null===(t=s.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,r){var n;let s=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===s.length&&(i=i.filter(e=>e!==r));let o=i.find(e=>e.toLowerCase().startsWith(s.toLowerCase()));return o!==r?o:void 0}(s.map(e=>e.textValue),n,o),l=null===(r=s.find(e=>e.textValue===a))||void 0===r?void 0:r.ref.current;
311!function e(t){I.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};(0,i.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,i.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:y()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:y()),m++,()=>{1===m&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),m--}},[]);let G=(0,i.useCallback)(e=>{var t,r,n;return F.current===(null===(t=D.current)||void 0===t?void 0:t.side)&&!!(n=null===(r=D.current)||void 0===r?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,s=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e].x,a=t[e].y,l=t[i].x,c=t[i].y;a>n!=c>n&&r<(l-o)*(n-a)/(c-a)+o&&(s=!s)}return s}({x:e.clientX,y:e.clientY},n)},[]);return(0,i.createElement)(ra,{scope:r,searchRef:I,onItemEnter:(0,i.useCallback)(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:(0,i.useCallback)(e=>{var t;G(e)||(null===(t=R.current)||void 0===t||t.focus(),B(null))},[G]),onTriggerLeave:(0,i.useCallback)(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:L,onPointerGraceIntentChange:(0,i.useCallback)(e=>{D.current=e},[])},(0,i.createElement)(j,_,(0,i.createElement)(E,{asChild:!0,trapped:o,onMountAutoFocus:(0,a.M)(c,e=>{var t;e.preventDefault(),null===(t=R.current)||void 0===t||t.focus()}),onUnmountAutoFocus:u},(0,i.createElement)(g.XB,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:A,onDismiss:w},(0,i.createElement)(to,(0,s.Z)({asChild:!0},T,{dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:B,onEntryFocus:(0,a.M)(h,e=>{x.isUsingKeyboardRef.current||e.preventDefault()})}),(0,i.createElement)(eZ,(0,s.Z)({role:"menu","aria-orientation":"vertical","data-state":rL(k.open),"data-radix-menu-content":"",dir:x.dir},C,P,{ref:N,style:{outline:"none",...P.style},onKeyDown:(0,a.M)(P.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&H(e.key));let s=R.current;if(e.target!==s||!tZ.includes(e.key))return;e.preventDefault();let i=O().filter(e=>!e.disabled).map(e=>e.ref.current);tq.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,a.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),I.current="")}),onPointerMove:(0,a.M)(e.onPointerMove,rU(e=>{let t=e.target,r=U.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>U.current?"right":"left";F.current=t,U.current=e.clientX}}))})))))))}),rf=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,i.createElement)(d.WV.div,(0,s.Z)({role:"group"},n,{ref:t}))}),rp=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,i.createElement)(d.WV.div,(0,s.Z)({},n,{ref:t}))}),rg="MenuItem",rm="menu.itemSelect",ry=(0,i.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,c=(0,i.useRef)(null),u=rt(rg,e.__scopeMenu),h=rl(rg,e.__scopeMenu),f=(0,l.e)(t,c),p=(0,i.useRef)(!1);return(0,i.createElement)(rb,(0,s.Z)({},o,{ref:f,disabled:r,onClick:(0,a.M)(e.onClick,()=>{let e=c.current;if(!r&&e){let t=new CustomEvent(rm,{bubbles:!0,cancelable:!0});e.addEventListener(rm,e=>null==n?void 0:n(e),{once:!0}),(0,d.jH)(e,t),t.defaultPrevented?p.current=!1:u.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,a.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;!r&&(!t||" "!==e.key)&&t$.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),rb=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...c}=e,u=rl(rg,r),h=t8(r),f=(0,i.useRef)(null),p=(0,l.e)(t,f),[g,m]=(0,i.useState)(!1),[y,b]=(0,i.useState)("");return(0,i.useEffect)(()=>{let e=f.current;if(e){var t;b((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,i.createElement)(t1.ItemSlot,{scope:r,disabled:n,textValue:null!=o?o:y},(0,i.createElement)(tl,(0,s.Z)({asChild:!0},h,{focusable:!n}),(0,i.createElement)(d.WV.div,(0,s.Z)({role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},c,{ref:p,onPointerMove:(0,a.M)(e.onPointerMove,rU(e=>{n?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
311s())})),onPointerLeave:(0,a.M)(e.onPointerLeave,rU(e=>u.onItemLeave(e))),onFocus:(0,a.M)(e.onFocus,()=>m(!0)),onBlur:(0,a.M)(e.onBlur,()=>m(!1))}))))}),rA=(0,i.forwardRef)((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,i.createElement)(rx,{scope:e.__scopeMenu,checked:r},(0,i.createElement)(ry,(0,s.Z)({role:"menuitemcheckbox","aria-checked":rD(r)?"mixed":r},o,{ref:t,"data-state":rF(r),onSelect:(0,a.M)(o.onSelect,()=>null==n?void 0:n(!!rD(r)||!r),{checkForDefaultPrevented:!1})})))}),[rw,rv]=t4("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),rE=(0,i.forwardRef)((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,b.W)(n);return(0,i.createElement)(rw,{scope:e.__scopeMenu,value:r,onValueChange:a},(0,i.createElement)(rf,(0,s.Z)({},o,{ref:t})))}),rP=(0,i.forwardRef)((e,t)=>{let{value:r,...n}=e,o=rv("MenuRadioItem",e.__scopeMenu),l=r===o.value;return(0,i.createElement)(rx,{scope:e.__scopeMenu,checked:l},(0,i.createElement)(ry,(0,s.Z)({role:"menuitemradio","aria-checked":l},n,{ref:t,"data-state":rF(l),onSelect:(0,a.M)(n.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})))}),rk="MenuItemIndicator",[rx,rC]=t4(rk,{checked:!1}),rT=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=rC(rk,r);return(0,i.createElement)(e6.z,{present:n||rD(a.checked)||!0===a.checked},(0,i.createElement)(d.WV.span,(0,s.Z)({},o,{ref:t,"data-state":rF(a.checked)})))}),rO=(0,i.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,i.createElement)(d.WV.div,(0,s.Z)({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),rS=((e,t)=>{let{__scopeMenu:r,...n}=e,o=t5(r);return(0,i.createElement)(eX,(0,s.Z)({},o,n,{ref:t}))},"MenuSub"),[rB,rR]=t4(rS),rN="MenuSubTrigger",rM=(0,i.forwardRef)((e,t)=>{let r=t7(rN,e.__scopeMenu),n=rt(rN,e.__scopeMenu),o=rR(rN,e.__scopeMenu),c=rl(rN,e.__scopeMenu),u=(0,i.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=c,f={__scopeMenu:e.__scopeMenu},p=(0,i.useCallback)(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return(0,i.useEffect)(()=>p,[p]),(0,i.useEffect)(()=>{let e=d.current;return()=>{window.clearTimeout(e),h(null)}},[d,h]),(0,i.createElement)(rr,(0,s.Z)({asChild:!0},f),(0,i.createElement)(rb,(0,s.Z)({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":rL(r.open)},e,{ref:(0,l.F)(t,o.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.M)(e.onPointerMove,rU(t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,a.M)(e.onPointerLeave,rU(e=>{var t,n;p();let s=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(s){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,i="right"===t,o=s[i?"left":"right"],a=s[i?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:s.top},{x:a,y:s.top},{x:a,y:s.bottom},{x:o,y:s.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.M)(e.onKeyDown,t=>{let s=""!==c.searchRef.current;if(!e.disabled&&(!s||" "!==t.key)&&tY[n.dir].includes(t.key)){var i;r.onOpenChange(!0),null===(i=r.content)||void 0===i||i.focus(),t.preventDefault()}})})))}),rI=(0,i.forwardRef)((e,t)=>{let r=ri(ro,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,c=t7(ro,e.__scopeMenu),u=rt(ro,e.__scopeMenu),d=rR("MenuSubContent",e.__scopeMenu),h=(0,i.useRef)(null),f=(0,l.e)(t,h);return(0,i.createElement)(t1.Provider,{scope:e.__scopeMenu},(0,i.createElement)(e6.z,{present:n||c.open},(0,i.createElement)(t1.Slot,{scope:e.__scopeMenu},(0,i.createElement)(rh,(0,s.Z)({id:d.contentId,"aria-labelledby":d.triggerId},o,{ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=h.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=tX[u.dir].includes(e.ke
311y);if(t&&r){var n;c.onOpenChange(!1),null===(n=d.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))});function rL(e){return e?"open":"closed"}function rD(e){return"indeterminate"===e}function rF(e){return rD(e)?"indeterminate":e?"checked":"unchecked"}function rU(e){return t=>"mouse"===t.pointerType?e(t):void 0}let rj=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:s,onOpenChange:o,modal:a=!0}=e,l=t5(t),[c,u]=(0,i.useState)(null),d=(0,i.useRef)(!1),h=(0,b.W)(o),f=p(s);return(0,i.useEffect)(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,i.createElement)(e3,l,(0,i.createElement)(t9,{scope:t,open:r,onOpenChange:h,content:c,onContentChange:u},(0,i.createElement)(re,{scope:t,onClose:(0,i.useCallback)(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:a},n)))},r_=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:s}=e,o=t7(rn,t);return(0,i.createElement)(rs,{scope:t,forceMount:r},(0,i.createElement)(e6.z,{present:r||o.open},(0,i.createElement)(e4.h,{asChild:!0,container:s},n)))},rH=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:s}=e,o=t7(rS,t),a=t5(t),[l,c]=(0,i.useState)(null),[u,d]=(0,i.useState)(null),h=(0,b.W)(s);return(0,i.useEffect)(()=>(!1===o.open&&h(!1),()=>h(!1)),[o.open,h]),(0,i.createElement)(e3,a,(0,i.createElement)(t9,{scope:t,open:n,onOpenChange:h,content:u,onContentChange:d},(0,i.createElement)(rB,{scope:t,contentId:R(),triggerId:R(),trigger:l,onTriggerChange:c},r)))},rG="DropdownMenu",[rK,rQ]=(0,c.b)(rG,[t6]),rV=t6(),[rz,rJ]=rK(rG),rW=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,c=rJ("DropdownMenuTrigger",r),u=rV(r);return(0,i.createElement)(rr,(0,s.Z)({asChild:!0},u),(0,i.createElement)(d.WV.button,(0,s.Z)({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},o,{ref:(0,l.F)(t,c.triggerRef),onPointerDown:(0,a.M)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),r$=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rJ("DropdownMenuContent",r),l=rV(r),c=(0,i.useRef)(!1);
311return(0,i.createElement)(rc,(0,s.Z)({id:o.contentId,"aria-labelledby":o.triggerId},l,n,{ref:t,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;c.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,a.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),rq=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rf,(0,s.Z)({},o,n,{ref:t}))}),rZ=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rp,(0,s.Z)({},o,n,{ref:t}))}),rY=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(ry,(0,s.Z)({},o,n,{ref:t}))}),rX=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rA,(0,s.Z)({},o,n,{ref:t}))}),r0=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rE,(0,s.Z)({},o,n,{ref:t}))}),r1=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rP,(0,s.Z)({},o,n,{ref:t}))}),r2=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rT,(0,s.Z)({},o,n,{ref:t}))}),r3=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rO,(0,s.Z)({},o,n,{ref:t}))}),r4=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rM,(0,s.Z)({},o,n,{ref:t}))}),r6=(0,i.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rV(r);return(0,i.createElement)(rI,(0,s.Z)({},o,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),r5=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,d=rV(t),h=(0,i.useRef)(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:a,onChange:l});return(0,i.createElement)(rz,{scope:t,triggerId:R(),triggerRef:h,contentId:R(),open:f,onOpenChange:p,onOpenToggle:(0,i.useCallback)(()=>p(e=>!e),[p]),modal:c},(0,i.createElement)(rj,(0,s.Z)({},d,{open:f,onOpenChange:p,dir:n,modal:c}),r))},r8=rW,r9=e=>{let{__scopeDropdownMenu:t,...r}=e,n=rV(t);return(0,i.createElement)(r_,(0,s.Z)({},n,r))},r7=r$,ne=rq,nt=rZ,nr=rY,nn=rX,ns=r0,ni=r1,no=r2,na=r3,nl=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,l=rV(t),[c=!1,d]=(0,u.T)({prop:n,defaultProp:a,onChange:o});return(0,i.createElement)(rH,(0,s.Z)({},l,{open:c,onOpenChange:d}),r)},nc=r4,nu=r6},56144:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});var n=r(81234),s=r(16913),i=r(43176),o=r(23267);let a=(0,s.forwardRef)((e,t)=>{var r;let{container:a=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...l}=e;return a?i.createPortal((0,s.createElement)(o.WV.div,(0,n.Z)({},l,{ref:t})),a):null})},32157:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(16913),s=r(43176),i=r(45657),o=r(58563);let a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=(0,n.useState)(),c=(0,n.useRef)({}),u=(0,n.useRef)(e),d=(0,n.useRef)("none"),[h,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,n.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return(0,n.useEffect)(()=>{let e=l(c.current);d.current="mounted"===h?e:"none"},[h]),(0,o.b)(()=>{let t=c.current,r=u.current;if(r!==e){let n=d.current,s=l(t);e?f("MOUNT"):"none"===s||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==s?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.b)(()=>
311{if(i){let e=e=>{let t=l(c.current).includes(e.animationName);e.target===i&&t&&(0,s.flushSync)(()=>f("ANIMATION_END"))},t=e=>{e.target===i&&(d.current=l(c.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:(0,n.useCallback)(e=>{e&&(c.current=getComputedStyle(e)),a(e)},[])}}(t),c="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.e)(a.ref,c.ref);return"function"==typeof r||a.isPresent?(0,n.cloneElement)(c,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},23267:function(e,t,r){"use strict";r.d(t,{WV:function(){return a},jH:function(){return l}});var n=r(81234),s=r(16913),i=r(43176),o=r(45040);let a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,s.forwardRef)((e,r)=>{let{asChild:i,...a}=e,l=i?o.g7:t;return(0,s.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,s.createElement)(l,(0,n.Z)({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&(0,i.flushSync)(()=>
311e.dispatchEvent(t))}},45040:function(e,t,r){"use strict";r.d(t,{g7:function(){return o}});var n=r(44369),s=r(16913),i=r(45657);let o=(0,s.forwardRef)((e,t)=>{let{children:r,...i}=e,o=s.Children.toArray(r),l=o.find(c);if(l){let e=l.props.children,r=o.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):(0,s.isValidElement)(e)?e.props.children:null);return(0,s.createElement)(a,(0,n.Z)({},i,{ref:t}),(0,s.isValidElement)(e)?(0,s.cloneElement)(e,void 0,r):null)}return(0,s.createElement)(a,(0,n.Z)({},i,{ref:t}),r)});o.displayName="Slot";let a=(0,s.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,s.isValidElement)(r)?(0,s.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{i(...e),s(...e)}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,i.F)(t,r.ref):r.ref}):s.Children.count(r)>1?s.Children.only(null):null});a.displayName="SlotClone";let l=({children:e})=>(0,s.createElement)(s.Fragment,null,e);function c(e){return(0,s.isValidElement)(e)&&e.type===l}},30803:function(e,t,r){"use strict";r.d(t,{fC:function(){return w},bU:function(){return v}});var n=r(44369),s=r(16913),i=r(78549),o=r(45657),a=r(68806),l=r(91655),c=r(43659),u=r(23267);let d="Switch",[h,f]=(0,a.b)(d),[p,g]=h(d),m=(0,s.forwardRef)((e,t)=>{let{__scopeSwitch:r,name:a,checked:c,defaultChecked:d,required:h,disabled:f,value:g="on",onCheckedChange:m,...y}=e,[w,v]=(0,s.useState)(null),E=(0,o.e)(t,e=>v(e)),P=(0,s.useRef)(!1),k=!w||!!w.closest("form"),[x=!1,C]=(0,l.T)({prop:c,defaultProp:d,onChange:m});return(0,s.createElement)(p,{scope:r,checked:x,disabled:f},(0,s.createElement)(u.WV.button,(0,n.Z)({type:"button",role:"switch","aria-checked":x,"aria-required":h,"data-state":A(x),"data-disabled":f?"":void 0,disabled:f,value:g},y,{ref:E,onClick:(0,i.M)(e.onClick,e=>{C(e=>!e),k&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})})),k&&(0,s.createElement)(b,{control:w,bubbles:!P.current,name:a,value:g,checked:x,required:h,disabled:f,style:{transform:"translateX(-100%)"}}))}),y=(0,s.forwardRef)((e,t)=>{let{__scopeSwitch:r,...i}=e,o=g("SwitchThumb",r);return(0,s.createElement)(u.WV.span,(0,n.Z)({"data-state":A(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t}))}),b=e=>{let{control:t,checked:r,bubbles:i=!0,...o}=e,a=(0,s.useRef)(null),l=function(e){let t=(0,s.useRef)({value:e,previous:e});return(0,s.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r),u=(0,c.t)(t);return(0,s.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[l,r,i]),(0,s.createElement)("input",(0,n.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function A(e){return e?"checked":"unchecked"}let w=m,v=y},43777:function(e,t,r){"use strict";r.d(t,{aU:function(){return $},zt:function(){return V},fC:function(){return J},Dx:function(){return W},l_:function(){return z}});var n=r(81234),s=r(16913),i=r(43176),o=r(78549),a=r(45657),l=r(1877),c=r(68806),u=r(9388),d=r(56144),h=r(32157),f=r(23267),p=r(59765),g=r(91655),m=r(58563);let y=(0,s.forwardRef)((e,t)=>(0,s.createElement)(f.WV.span,(0,n.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),b="ToastProvider",[A,w,v]=(0,l.B)("Toast"),[E,P]=(0,c.b)("Toast",[v]),[k,x]=E(b),C=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}
311=e,[l,c]=(0,s.useState)(null),[u,d]=(0,s.useState)(0),h=(0,s.useRef)(!1),f=(0,s.useRef)(!1);return(0,s.createElement)(A.Provider,{scope:t},(0,s.createElement)(k,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:(0,s.useCallback)(()=>d(e=>e+1),[]),onToastRemove:(0,s.useCallback)(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f},a))};C.propTypes={label:e=>e.label&&"string"==typeof e.label&&!e.label.trim()?Error(`Invalid prop \`label\` supplied to \`${b}\`. Expected non-empty \`string\`.`):null};let T=["F8"],O="toast.viewportPause",S="toast.viewportResume",B=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,hotkey:i=T,label:o="Notifications ({hotkey})",...l}=e,c=x("ToastViewport",r),d=w(r),h=(0,s.useRef)(null),p=(0,s.useRef)(null),g=(0,s.useRef)(null),m=(0,s.useRef)(null),y=(0,a.e)(t,m,c.onViewportChange),b=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=c.toastCount>0;(0,s.useEffect)(()=>{let e=e=>{var t;i.every(t=>e[t]||e.code===t)&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),(0,s.useEffect)(()=>{let e=h.current,t=m.current;if(v&&e&&t){let r=()=>{if(!c.isClosePausedRef.current){let e=new CustomEvent(O);t.dispatchEvent(e),c.isClosePausedRef.current=!0}},n=()=>
311{if(c.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),c.isClosePausedRef.current=!1}},s=t=>{e.contains(t.relatedTarget)||n()},i=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",s),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",i),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",s),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[v,c.isClosePausedRef]);let E=(0,s.useCallback)(({tabbingDirection:e})=>{let t=d().map(t=>{let r=t.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===e?n:n.reverse()});return("forwards"===e?t.reverse():t).flat()},[d]);return(0,s.useEffect)(()=>{let e=m.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,s,i;let r=document.activeElement,o=t.shiftKey;if(t.target===e&&o){null===(n=p.current)||void 0===n||n.focus();return}let a=E({tabbingDirection:o?"backwards":"forwards"}),l=a.findIndex(e=>e===r);Q(a.slice(l+1))?t.preventDefault():o?null===(s=p.current)||void 0===s||s.focus():null===(i=g.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,E]),(0,s.createElement)(u.I0,{ref:h,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&(0,s.createElement)(R,{ref:p,onFocusFromOutsideViewport:()=>{Q(E({tabbingDirection:"forwards"}))}}),(0,s.createElement)(A.Slot,{scope:r},(0,s.createElement)(f.WV.ol,(0,n.Z)({tabIndex:-1},l,{ref:y}))),v&&(0,s.createElement)(R,{ref:g,onFocusFromOutsideViewport:()=>{Q(E({tabbingDirection:"backwards"}))}}))}),R=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:i,...o}=e,a=x("ToastFocusProxy",r);return(0,s.createElement)(y,(0,n.Z)({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;null!==(t=a.viewport)&&void 0!==t&&t.contains(r)||i()}}))}),N="Toast",M=(0,s.forwardRef)((e,t)=>{let{forceMount:r,open:i,defaultOpen:a,onOpenChange:l,...c}=e,[u=!0,d]=(0,g.T)({prop:i,defaultProp:a,onChange:l});return(0,s.createElement)(h.z,{present:r||u},(0,s.createElement)(D,(0,n.Z)({open:u},c,{ref:t,onClose:()=>d(!1),onPause:(0,p.W)(e.onPause),onResume:(0,p.W)(e.onResume),onSwipeStart:(0,o.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,o.M)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)}),onSwipeCancel:(0,o.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,o.M)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),d(!1)})})))}),[I,L]=E(N,{onClose(){}}),D=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,type:l="foreground",duration:c,open:d,onClose:h,onEscapeKeyDown:g,onPause:m,onResume:y,onSwipeStart:b,onSwipeMove:w,onSwipeCancel:v,onSwipeEnd:E,...P}
311=e,k=x(N,r),[C,T]=(0,s.useState)(null),B=(0,a.e)(t,e=>T(e)),R=(0,s.useRef)(null),M=(0,s.useRef)(null),L=c||k.duration,D=(0,s.useRef)(0),U=(0,s.useRef)(L),j=(0,s.useRef)(0),{onToastAdd:_,onToastRemove:H}=k,Q=(0,p.W)(()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null===(e=k.viewport)||void 0===e||e.focus()),h()}),V=(0,s.useCallback)(e=>{e&&e!==1/0&&(window.clearTimeout(j.current),D.current=new Date().getTime(),j.current=window.setTimeout(Q,e))},[Q]);(0,s.useEffect)(()=>{let e=k.viewport;if(e){let t=()=>{V(U.current),null==y||y()},r=()=>{let e=new Date().getTime()-D.current;U.current=U.current-e,window.clearTimeout(j.current),null==m||m()};return e.addEventListener(O,r),e.addEventListener(S,t),()=>{e.removeEventListener(O,r),e.removeEventListener(S,t)}}},[k.viewport,L,m,y,V]),(0,s.useEffect)(()=>{d&&!k.isClosePausedRef.current&&V(L)},[d,L,k.isClosePausedRef,V]),(0,s.useEffect)(()=>(_(),()=>H()),[_,H]);let z=(0,s.useMemo)(()=>C?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,s=""===t.dataset.radixToastAnnounceExclude;if(!n){if(s){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}}),r}(C):null,[C]);return k.viewport?(0,s.createElement)(s.Fragment,null,z&&(0,s.createElement)(F,{__scopeToast:r,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0},z),(0,s.createElement)(I,{scope:r,onClose:Q},(0,i.createPortal)((0,s.createElement)(A.ItemSlot,{scope:r},(0,s.createElement)(u.fC,{asChild:!0,onEscapeKeyDown:(0,o.M)(g,()=>{k.isFocusedToastEscapeKeyDownRef.current||Q(),k.isFocusedToastEscapeKeyDownRef.current=!1})},(0,s.createElement)(f.WV.li,(0,n.Z)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":k.swipeDirection},P,{ref:B,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,o.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==g||g(e.nativeEvent),e.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:(0,o.M)(e.onPointerDown,e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,o.M)(e.onPointerMove,e=>{if(!R.current)return;let t=e.clientX-R.current.x,r=e.clientY-R.current.y,n=!!M.current,s=["left","right"].includes(k.swipeDirection),i=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,o=s?i(0,t):0,a=s?0:i(0,r),l="touch"===e.pointerType?10:2,c={x:o,y:a},u={originalEvent:e,delta:c};n?(M.current=c,G("toast.swipeMove",w,u,{discrete:!1})):K(c,k.swipeDirection,l)?(M.current=c,G("toast.swipeStart",b,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(R.current=null)}),onPointerUp:(0,o.M)(e.onPointerUp,e=>{let t=M.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),M.current=null,R.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};K(t,k.swipeDirection,k.swipeThreshold)?G("toast.swipeEnd",E,n,{discrete:!0}):G("toast.swipeCancel",v,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})))),k.viewport))):null});D.propTypes={type:e=>e.type&&!["foreground","background"].includes(e.type)?Error(`Invalid prop \`type\` supplied to \`${N}\`. Expected \`foreground | background\`.`):null};let F=e=>{let{__scopeToast:t,children:r,...n}=e,i=x(N,t),[o,a]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1);return function(e=()=>{}){let t=(0,p.W)(e);(0,m.b)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>a(!0)),(0,s.useEffect)(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,s.createElement)(d.h,{asChild:!0},(0,s.createElement)(y,n,o&&(0,s.createElement)(s.Fragment,null,i.label," ",r)))},U=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,...i}=e;return(0,s.createElement)(f.WV.div,(0,n.Z)({},i,{ref:t}))}),j=(0,s.forwardRef)((e,t)=>{let{altText:r,...i}=e;return r?(0,s.createElement)(H,{altText:r,asChild:!0},(0,s.createElement)(_,(0,n.Z)({},i,{ref:t}))):null});j.propTypes={altText:e=>e.altText?null:Error("Missing prop `altText` expected on `ToastAction`")};let _=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,...i}=e,a=L("ToastClose",r);return(0,s.createElement)(H,{asChild:!0},(0,s.createElement)(f.WV.button,(0,n.Z)({type:"button"},i,{ref:t,onClick:(0,o.M)(e.onClick,a.onClose)})))}),H=(0,s.forwardRef)((e,t)=>{let{__scopeToast:r,altText:i,...o}=e;return(0,s.createElement)(f.WV.div,(0,n.Z)({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0},o,{ref:t}))});function G(e,t,r,{discrete:n}){let s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?(0,f.jH)(s,i):s.dispatchEvent(i)}let K=(e,t,r=0)=>{let n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return"left"===t||"right"===t?i&&n>r:!i&&s>r};function Q(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}let V=C,z=B,J=M,W=U,$=j},59765:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(16913);function s(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}},91655:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(16913),s=r(59765);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}
311){let r=(0,n.useState)(e),[i]=r,o=(0,n.useRef)(i),a=(0,s.W)(t);return(0,n.useEffect)(()=>{o.current!==i&&(a(i),o.current=i)},[i,o,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,l=a?e:i,c=(0,s.W)(r);return[l,(0,n.useCallback)(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else o(t)},[a,e,o,c])]}},58563:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});var n=r(16913);let s=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},43659:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(16913),s=r(58563);function i(e){let[t,r]=(0,n.useState)(void 0);return(0,s.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,s;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,s=t.blockSize}else n=e.offsetWidth,s=e.offsetHeight;r({width:n,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},99622:function(e,t,r){"use strict";r.d(t,{S:function(){return p}});var n=r(35360),s=r(183),i=r(93126),o=r(86877),a=class extends o.l{constructor(e={}){super(),this.config=e,this.#tD=new Map}#tD;build(e,t,r){let i=t.queryKey,o=t.queryHash??(0,n.Rm)(i,t),a=this.get(o);return a||(a=new s.A({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#tD.has(e.queryHash)||(this.#tD.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#tD.get(e.queryHash);t&&(e.destroy(),t===e&&this.#tD.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#tD.get(e)}getAll(){return[...this.#tD.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n._x)(e,t)):t}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=r(13337),c=class extends o.l{constructor(e={}){super(),this.config=e,this.#tF=new Map,this.#tU=Date.now()}#tF;#tU;build(e,t,r){let n=new l.m({mutationCache:this,mutationId:++this.#tU,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){let t=u(e),r=this.#tF.get(t)??[];r.push(e),this.#tF.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=u(e);if(this.#tF.has(t)){let r=this.#tF.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#tF.delete(t):this.#tF.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#tF.get(u(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#tF.get(u(e))?.find(t=>
311t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#tF.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.X7)(e,t))}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.ZT))))}};function u(e){return e.options.scope?.id??String(e.mutationId)}var d=r(40208),h=r(99983),f=r(77936),p=class{#tj;#t_;#tH;#tG;#tK;#tQ;#tV;#tz;constructor(e={}){this.#tj=e.queryCache||new a,this.#t_=e.mutationCache||new c,this.#tH=e.defaultOptions||{},this.#tG=new Map,this.#tK=new Map,this.#tQ=0}mount(){this.#tQ++,1===this.#tQ&&(this.#tV=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#tj.onFocus())}),this.#tz=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#tj.onOnline())}))}unmount(){this.#tQ--,0===this.#tQ&&(this.#tV?.(),this.#tV=void 0,this.#tz?.(),this.#tz=void 0)}isFetching(e){return this.#tj.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t_.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#tj.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),n=this.#tj.build(this,r);return e.revalidateIfStale&&n.isStaleByTime(r.staleTime)&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#tj.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let s=this.defaultQueryOptions({queryKey:e}),i=this.#tj.get(s.queryHash),o=i?.state.data,a=(0,n.SE)(t,o);if(void 0!==a)return this.#tj.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return i.V.batch(()=>this.#tj.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#tj.get(t.queryHash)?.state}removeQueries(e){let t=this.#tj;i.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#tj,n={type:"active",...e};return i.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(i.V.batch(()=>this.#tj.findAll(e).map(e=>e.cancel(r)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e={},t={}){return i.V.batch(()=>{if(this.#tj.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(i.V.batch(()=>this.#tj.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#tj.build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,f.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#t_.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#tj}getMutationCache(){return this.#t_}getDefaultOptions(){return this.#tH}setDefaultOptions(e){this.#tH=e}setQueryDefaults(e,t){this.#tG.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#tG.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#tK.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#tK.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#tH.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#tH.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#tj.clear(),this.#t_.clear()}}},67318:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});var n=function(){return null}},2690:function(e,t,r){"use strict";r.d(t,{L:function(){return h}});var n=r(1123),s=r(47074),i=r(30751),o=r(87907),a=r(43002),l=r(8576),c=r(79417);let u=/(rabby|trustwallet)/,d={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>
311e?.coinbaseWalletExtension?e.coinbaseWalletExtension:f(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>f(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:f(e,"isPhantom")}};function h(e={}){let t,r,p,g;let{shimDisconnect:m=!0,unstable_shimAsyncInject:y}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...d[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return d=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return u.test(this.id.toLowerCase())},type:h.type,async setup(){let r=await this.getProvider();r&&e.target&&(p||(p=this.onConnect.bind(this),r.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),r.on("accountsChanged",t)))},async connect({chainId:i,isReconnecting:o}={}){let a=await this.getProvider();if(!a)throw new c.M;let l=[];if(o)l=await this.getAccounts().catch(()=>[]);else if(m)try{let e=await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});l=e[0]?.caveats?.[0]?.value?.map(e=>n.K(e))}catch(e){if(e.code===s.ab.code)throw new s.ab(e);if(e.code===s.pT.code)throw e}try{l?.length||o||(l=(await a.request({method:"eth_requestAccounts"})).map(e=>(0,n.K)(e))),p&&(a.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),a.on("chainChanged",r)),g||(g=this.onDisconnect.bind(this),a.on("disconnect",g));let c=await this.getChainId();if(i&&c!==i){let e=await this.switchChain({chainId:i}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:c}});c=e?.id??c}return m&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem("injected.connected",!0),{accounts:l,chainId:c}}catch(e){if(e.code===s.ab.code)throw new s.ab(e);if(e.code===s.pT.code)throw new s.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new c.M;r&&(t.removeListener("chainChanged",r),r=void 0),g&&(t.removeListener("disconnect",g),g=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]})}catch{}m&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new c.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,n.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new c.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?f(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(m&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==y&&!1!==y){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof y?y:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(r=>setTimeout(()=>r(e()),t))]))return!0}throw new c.M}return!!(await (0,i.J)(()=>(0,o.F)(()=>this.getAccounts(),{timeout:100}))).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new c.M;let n=d.chains.find(e=>e.id===t);if(!n)throw new s.x3(new l.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&d.emitter.emit("change",{chainId:t})}),new Promise(e=>d.emitter.once("change",({chainId:r})=>{r===t&&e()}))]),n}catch(i){if(4902===i.code||i?.data?.originalError?.code===4902)try{let i,o;let{default:l,...c}=n.blockExplorers??{};e?.blockExplorerUrls?i=e.blockExplorerUrls:l&&(i=[l.url,...Object.values(c).map(e=>e.url)]),o=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let u={blockExplorerUrls:i,chainId:(0,a.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};if(await r.request({method:"wallet_addEthereumChain",params:[u]}),await this.getChainId()!==t)throw new s.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new s.ab(e)}if(i.code===s.ab.code)throw new s.ab(i);throw new s.x3(i)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(d.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),m&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit("change",{accounts:e.map(e=>(0,n.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let n=await this.getAccounts();if(0===n.length)return;let s=Number(e.chainId);d.emitter.emit("connect",{accounts:n,chainId:s});let i=await this.getProvider();i&&(p&&(i.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),i.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),i.on("chainChanged",r)),g||(g=this.onDisconnect.bind(this),i.on("disconnect",g)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),t&&(r&&(t.removeListener("chainChanged",r),r=void 0),g&&(t.removeListener("disconnect",g),g=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}})}function f(e,t){function r(e){return"function"==typeof t?t(e):"str
311ing"!=typeof t||e[t]}let n=e.ethereum;return n?.providers?n.providers.find(e=>r(e)):n&&r(n)?n:void 0}h.type="injected"},26334:function(e,t,r){"use strict";let n;r.d(t,{_:function(){return C}});var s,i=r(89761),o=r(46004);let a=e=>(t,r,n)=>{let s=n.subscribe;return n.subscribe=(e,t,r)=>{let i=e;if(t){let s=(null==r?void 0:r.equalityFn)||Object.is,o=e(n.getState());i=r=>{let n=e(r);if(!s(o,n)){let e=o;t(o=n,e)}},(null==r?void 0:r.fireImmediately)&&t(o,o)}return s(i)},e(t,r,n)},l=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>l(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>l(t)(e)}}},c=(e,t)=>(r,n,s)=>{let i,o,a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set;try{i=a.getStorage()}catch(e){}if(!i)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},n,s);let h=l(a.serialize),f=()=>{let e;let t=h({state:a.partialize({...n()}),version:a.version}).then(e=>i.setItem(a.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=s.setState;s.setState=(e,t)=>{p(e,t),f()};let g=e((...e)=>{r(...e),f()},n,s),m=()=>{var e;if(!i)return;c=!1,u.forEach(e=>e(n()));let t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,n()))||void 0;return l(i.getItem.bind(i))(a.name).then(e=>{if(e)return a.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(o=a.merge(e,null!=(t=n())?t:g),!0),f()}).then(()=>{null==t||t(o,void 0),c=!0,d.forEach(e=>e(o))}).catch(e=>{null==t||t(void 0,e)})};return s.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(i=e.getStorage())},clearStorage:()=>{null==i||i.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),o||g},u=(e,t)=>(r,n,s)=>{let i,o={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),s=null!=(t=r.getItem(e))?t:null;return s instanceof Promise?s.then(n):n(s)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1,c=new Set,u=new Set,d=o.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)},n,s);let h=()=>{let e=o.partialize({...n()});return d.setItem(o.name,{state:e,version:o.version})},f=s.setState;s.setState=(e,t)=>{f(e,t),h()};let p=e((...e)=>{r(...e),h()},n,s),g=()=>{var e,t;if(!d)return;a=!1,c.forEach(e=>{var t;return e(null!=(t=n())?t:p)});let s=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=n())?e:p))||void 0;return l(d.getItem.bind(d))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(i=o.merge(e,null!=(t=n())?t:p),!0),h()}).then(()=>{null==s||s(i,void 0),i=n(),a=!0,u.forEach(e=>e(i))}).catch(e=>{null==s||s(void 0,e)})};return s.persist={setOptions:e=>{o={...o,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},o.skipHydration||g(),i||p},d=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),c(e,t)):u(e,t),h=e=>{let t;let r=new Set,n=(e,n)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=n?n:"object"!=typeof s)?s:Object.assign({},t,s),r.forEach(r=>r(t,e))}},s=()=>t,i={setState:n,getState:s,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,s,i),i},f=e=>e?h(e):h;var p=r(2690),g=r(33014),m=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class y{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),s.set(this,new g)}on(e,t){m(this,s,"f").on(e,t)}once(e,t){m(this,s,"f").once(e,t)}off(e,t){m(this,s,"f").off(e,t)}emit(e,...t){let r=t[0];
311m(this,s,"f").emit(e,{uid:this.uid,...r})}listenerCount(e){return m(this,s,"f").listenerCount(e)}}function b(e,t){return JSON.parse(e,(e,r)=>{let n=r;return n?.__type==="bigint"&&(n=BigInt(n.value)),n?.__type==="Map"&&(n=new Map(n.value)),t?.(e,n)??n})}function A(e,t){return e.slice(0,t).join(".")||"."}function w(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function v(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,s=[],i=[];return function(o,a){if("object"==typeof a){if(s.length){let e=w(s,this);0===e?s[s.length]=this:(s.splice(e),i.splice(e)),i[i.length]=o;let r=w(s,a);if(0!==r)return n?t.call(this,o,a,A(i,r)):`[ref=${A(i,r)}]`}else s[0]=a,i[0]=o}return r?e.call(this,o,a):a}}((e,r)=>{let n=r;return"bigint"==typeof n&&(n={__type:"bigint",value:r.toString()}),n instanceof Map&&(n={__type:"Map",value:Array.from(r.entries())}),t?.(e,n)??n},n),r??void 0)}s=new WeakMap;let E={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var P=r(8576);let k=256;var x=r(8819);function C(e){let t;let{multiInjectedProviderDiscovery:r=!0,storage:s=function(e){let{deserialize:t=b,key:r="wagmi",serialize:n=v,storage:s=E}=e;function i(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...s,key:r,async getItem(e,n){let o=s.getItem(`${r}.${e}`),a=await i(o);return a?t(a)??null:n??null},async setItem(e,t){let o=`${r}.${e}`;null===t?await i(s.removeItem(o)):await i(s.setItem(o,n(t)))},async removeItem(e){await i(s.removeItem(`${r}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:E}),syncConnectedChain:l=!0,ssr:c,...u}=e,h="undefined"!=typeof window&&r?(0,i.M)():void 0,g=f(()=>u.chains),m=f(()=>[...u.connectors??[],...c?[]:h?.getProviders().map(w)??[]].map(A));function A(e){let t=new y(function(e=11){if(!n||k+e>512){n="",k=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(k,k+++e)}()),r={...e({emitter:t,chains:g.getState(),storage:s}),emitter:t,uid:t.uid};return t.on("connect",R),r.setup?.(),r}function w(e){let{info:t}=e,r=e.provider;return(0,p.L)({target:{...t,id:t.rdns,provider:r}})}let C=new Map;function T(){return{chainId:g.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let O="0.0.0-canary-";t=x.i.startsWith(O)?parseInt(x.i.replace(O,"")):parseInt(x.i.split(".")[0]??"0");let S=f(a(s?d(T,{migrate(e,r){if(r===t)return e;let n=T(),s=e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId?e.chainId:n.chainId;return{...n,chainId:s}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:r,name:n,type:s,uid:i}=t.connector;return[e,{...t,connector:{id:r,name:n,type:s,uid:i}}]})},chainId:e.chainId,current:e.current}),skipHydration:c,storage:s,version:t}):T));function B(e){S.setState(t=>{let r=t.connections.get(e.uid);return r?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??r.accounts,chainId:e.chainId??r.chainId,connector:r.connector})}:t})}function R(e){"connecting"!==S.getState().status&&"reconnecting"!==S.getState().status&&S.setState(t=>{let r=m.getState().find(t=>t.uid===e.uid);return r?(r.emitter.listenerCount("connect")&&r.emitter.off("connect",B),r.emitter.listenerCount("change")||r.emitter.on("change",B),r.emitter.listenerCount("disconnect")||r.emitter.on("disconnect",N),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t})}function N(e){S.setState(t=>{let r=t.connections.get(e.uid);if(r){let e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",B),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",N),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",R)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}})}return l&&S.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(g.getState().some(t=>t.id===e))return S.setState(t=>({...t,chainId:e??t.chainId}))}),h?.subscribe(e=>{let t=new Map;for(let e of m.getState())t.set(e.id,!0);let r=[];for(let n of e){let e=A(w(n));t.has(e.id)||r.push(e)}(!s||S.persist.hasHydrated())&&m.setState(e=>[...e,...r],!0)}),{get chains(){return g.getState()},get connectors(){return m.getState()},storage:s,getClient:function(e={}){let t;let r=e.chainId??S.getState().chainId,n=g.getState().find(e=>e.id===r);if(e.chainId&&!n)throw new P.X4;{let e=C.get(S.getState().chainId);if(e&&!n)return e;if(!n)throw new P.X4}{let e=C.get(r);if(e)return e}if(u.client)t=u.client({chain:n});else{let e=n.id,r=g.getState().map(e=>e.id),s={};for(let[t,n]of Object.entries(u))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof n){if(e in n)s[t]=n[e];else{if(r.some(e=>e in n))continue;s[t]=n}}else s[t]=n}t=(0,o.e)({...s,chain:n,batch:s.batch??{multicall:!0},transport:t=>u.transports[e]({...t,connectors:m})})}return C.set(r,t),t},get state(){return S.getState()},setState(e){let t;t="function"==typeof e?e(S.getState()):e;let r=T();"object"!=typeof t&&(t=r),Object.keys(r).some(e=>!(e in t))&&(t=r),S.setState(t,!0)},subscribe:(e,t,r)=>S.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0),_internal:{mipd:h,store:S,ssr:!!c,syncConnectedChain:l,transports:u.transports,chains:{setState(e){let t="function"==typeof e?e(g.getState()):e;if(0!==t.length)return g.setState(t,!0)},subscribe:e=>g.subscribe(e)}
311,connectors:{providerDetailToConnector:w,setup:A,setState:e=>m.setState("function"==typeof e?e(m.getState()):e,!0),subscribe:e=>m.subscribe(e)},events:{change:B,connect:R,disconnect:N}}}}},37706:function(e,t,r){"use strict";/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return s}});var s=function e(t,r){function s(e,s,i){if("undefined"!=typeof document){"number"==typeof(i=n({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+o}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},s=0;s<r.length;s++){var i=r[s].split("="),o=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(n[a]=t.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){s(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},35029:function(e,t,r){"use strict";r.d(t,{F:function(){return c},f:function(){return u}});var n=r(16913),s=["light","dark"],i="(prefers-color-scheme: dark)",o="undefined"==typeof window,a=n.createContext(void 0),l={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(a))?e:l},u=e=>n.useContext(a)?e.children:n.createElement(h,{...e}),d=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:u=d,defaultTheme:h=o?"system":"light",attribute:y="data-theme",value:b,children:A,nonce:w}=e,[v,E]=n.useState(()=>p(c,h)),[P,k]=n.useState(()=>p(c)),x=b?Object.values(b):u,C=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=m());let n=b?b[t]:t,i=r?g():null,a=document.documentElement;if("class"===y?(a.classList.remove(...x),n&&a.classList.add(n)):n?a.setAttribute(y,n):a.removeAttribute(y),l){let e=s.includes(h)?h:null,r=s.includes(t)?t:e;a.style.colorScheme=r}null==i||i()},[]),T=n.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),O=n.useCallback(e=>{k(m(e)),"system"===v&&o&&!t&&C("system")},[v,t]);n.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),n.useEffect(()=>{let e=e=>{e.key===c&&T(e.newValue||h)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),n.useEffect(()=>{C(null!=t?t:v)},[t,v]);let S=n.useMemo(()=>({theme:v,setTheme:T,forcedTheme:t,resolvedTheme:"system"===v?P:v,themes:o?[...u,"system"]:u,systemTheme:o?P
311:void 0}),[v,T,t,P,o,u]);return n.createElement(a.Provider,{value:S},n.createElement(f,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:o,enableColorScheme:l,storageKey:c,themes:u,defaultTheme:h,attribute:y,value:b,children:A,attrs:x,nonce:w}),A)},f=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:a,enableColorScheme:l,defaultTheme:c,value:u,attrs:d,nonce:h}=e,f="system"===c,p="class"===o?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(o,"',s='setAttribute';"),g=l?(s.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=u?u[e]:e,i=t?e+"|| ''":"'".concat(n,"'"),a="";return l&&r&&!t&&s.includes(e)&&(a+="d.style.colorScheme = '".concat(e,"';")),"class"===o?t||n?a+="c.add(".concat(i,")"):a+="null":n&&(a+="d[s](n,".concat(i,")")),a},y=t?"!function(){".concat(p).concat(m(t),"}()"):a?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(i,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(m("dark"),"}else{").concat(m("light"),"}}else if(e){").concat(u?"var x=".concat(JSON.stringify(u),";"):"").concat(m(u?"x[e]":"e",!0),"}").concat(f?"":"else{"+m(c,!1,!1)+"}").concat(g,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if(e){").concat(u?"var x=".concat(JSON.stringify(u),";"):"").concat(m(u?"x[e]":"e",!0),"}else{").concat(m(c,!1,!1),";}").concat(g,"}catch(t){}}();");return n.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:y}})}),p=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},m=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},48826:function(e,t,r){"use strict";r.d(t,{m6:function(){return D}});let n=/^\[(.+)\]$/;function s(e,t){let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}let i=/\s+/;function o(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=function e(t){let r;if("string"==typeof t)return t;let n="";for(let s=0;s<t.length;s++)t[s]&&(r=e(t[s]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function a(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,c=/^\d+\/\d+$/,u=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,p=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,g=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function m(e){return b(e)||u.has(e)||c.test(e)}function y(e){return R(e,"length",N)}function b(e){return!!e&&!Number.isNaN(Number(e))}function A(e){return R(e,"number",b)}function w(e){return!!e&&Number.isInteger(Number(e))}function v(e){return e.endsWith("%")&&b(e.slice(0,-1))}function E(e){return l.test(e)}function P(e){return d.test(e)}let k=new Set(["length","size","percentage"]);function x(e){return R(e,k,M)}function C(e){return R(e,"position",M)}let T=new Set(["image","url"]);function O(e){return R(e,T,L)}function S(e){return R(e,"",I)}function B(){return!0}function R(e,t,r){let n=l.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function N(e){return h.test(e)&&!f.test(e)}function M(){return!1}function I(e){return p.test(e)}function L(e){return g.test(e)}let D=function(e,...t){let r,a,l;
311let c=function(i){var o;return a=(r={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map;function s(s,i){r.set(s,i),++t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(s(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):s(e,t)}}}((o=t.reduce((e,t)=>t(e),e())).cacheSize),splitModifiers:function(e){let t=e.separator,r=1===t.length,n=t[0],s=t.length;return function(e){let i;let o=[],a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===n&&(r||e.slice(c,c+s)===t)){o.push(e.slice(l,c)),l=c+s;continue}if("/"===u){i=c;continue}}"["===u?a++:"]"===u&&a--}let c=0===o.length?e:e.substring(l),u=c.startsWith("!"),d=u?c.substring(1):c;return{modifiers:o,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}(o),...function(e){let t=function(e){var t;let{theme:r,prefix:n}=e,i={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),n?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[n+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,r,n,i){t.forEach(t=>{if("string"==typeof t){(""===t?r:s(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,o])=>{e(o,s(r,t),n,i)})})})(t,i,e,r)}),i}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:function(e){let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),function e(t,r){if(0===t.length)return r.classGroupId;let n=t[0],s=r.nextPart.get(n),i=s?e(t.slice(1),s):void 0;if(i)return i;if(0===r.validators.length)return;let o=t.join("-");return r.validators.find(({validator:e})=>e(o))?.classGroupId}(r,t)||function(e){if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){let n=r[e]||[];return t&&i[e]?[...n,...i[e]]:n}}}(o)}).cache.get,l=r.cache.set,c=u,u(i)};function u(e){let t=a(e);if(t)return t;let n=function(e,t){let{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=new Set;return e.trim().split(i).map(e=>{let{modifiers:t,hasImportantModifier:s,baseClassName:i,maybePostfixModifierPosition:o}=r(e),a=n(o?i.substring(0,o):i),l=!!o;if(!a){if(!o||!(a=n(i)))return{isTailwindClass:!1,originalClassName:e};l=!1}let c=(function(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:s?c+"!":c,classGroupId:a,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,i=t+r;return!o.has(i)&&(o.add(i),s(r,n).forEach(e=>o.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,r);return l(e,n),n}return function(){return c(o.apply(null,arguments))}}(function(){let e=a("colors"),t=a("spacing"),r=a("blur"),n=a("brightness"),s=a("borderColor"),i=a("borderRadius"),o=a("borderSpacing"),l=a("borderWidth"),c=a("contrast"),u=a("grayscale"),d=a("hueRotate"),h=a("invert"),f=a("gap"),p=a("gradientColorStops"),g=a("gradientColorStopPositions"),k=a("inset"),T=a("margin"),R=a("opacity"),N=a("padding"),M=a("saturate"),I=a("scale"),L=a("sepia"),D=a("skew"),F=a("space"),U=a("translate"),j=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",E,t],G=()=>[E,t],K=()=>["",m,y],Q=()=>["auto",b,E],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",E],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[b,A],Y=()=>[b,E];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[m,y],blur:["none","",P,E],brightness:Z(),borderColor:[e],borderRadius:["n
311one","","full",P,E],borderSpacing:G(),borderWidth:K(),contrast:Z(),grayscale:$(),hueRotate:Y(),invert:$(),gap:G(),gradientColorStops:[e],gradientColorStopPositions:[v,y],inset:H(),margin:H(),opacity:Z(),padding:G(),saturate:Z(),scale:Z(),sepia:$(),skew:Y(),space:G(),translate:G()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),E]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",w,E]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",w,E]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",w,E]},E]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[w,E]},E]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,t]}],"min-w":[{"min-w":[E,t,"min","max","fit"]}],"max-w":[{"max-w":[E,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[E,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",A]}],"font-family":[{font:[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",E]}],"line-clamp":[{"line-clamp":["none",b,A]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",m,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",m,y]}],"underline-offset":[{"underline-offset":["auto",m,E]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),C]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",x]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},O]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,090 bytes, line 311
311],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[m,E]}],"outline-w":[{outline:[m,y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[m,y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,S]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",P,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[M]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[w,E]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
311],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[m,y,A]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},54004:function(e,t,r){"use strict";r.d(t,{y:function(){return n}});let n=(0,r(22986).a)({id:137,name:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},49133:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});let n=(0,r(22986).a)({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0})},90736:function(e,t,r){"use strict";r.d(t,{F:function(){return n}});let n=(0,r(22986).a)({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0})},84811:function(e,t,r){"use strict";r.d(t,{d:function(){return d}});var n=r(15154),s=r(43766);class i extends s.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var o=r(40946),a=r(87907),l=r(44879);let c={current:0,take(){return this.current++},reset(){this.current=0}};var u=r(40789);function d(e,t={}){let{batch:r,fetchOptions:s,key:d="http",name:h="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:g}=t;return({chain:m,retryCount:y,timeout:b})=>{let{batchSize:A=1e3,wait:w=0}="object"==typeof r?r:{},v=t.retryCount??y,E=b??t.timeout??1e4,P=e||m?.rpcUrls.default.http[0];if(!P)throw new i;let k=function(e,t={}){return{async request(r){let{body:s,fetchOptions:i={},onRequest:o=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=r,{headers:h,method:f,signal:p}={...t.fetchOptions,...i};try{let t;let r=await (0,a.F)(async({signal:t})=>{let r={...i,body:Array.isArray(s)?(0,l.P)(s.map(e=>({jsonrpc:"2.0",id:e.id??c.take(),...e}))):(0,l.P)({jsonrpc:"2.0",id:s.id??c.take(),...s}),headers:{...h,"Content-Type":"application/json"},method:f||"POST",signal:p||(d>0?t:null)}
311,n=new Request(e,r);return o&&await o(n),await fetch(e,r)},{errorInstance:new n.W5({body:s,url:e}),timeout:d,signal:!0});if(u&&await u(r),t=r.headers.get("Content-Type")?.startsWith("application/json")?await r.json():await r.text(),!r.ok)throw new n.Gg({body:s,details:(0,l.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:s,details:t.message,url:e})}}}}(P,{fetchOptions:s,onRequest:f,onResponse:p,timeout:E});return(0,u.q)({key:d,name:h,async request({method:t,params:s}){let i={method:t,params:s},{schedule:a}=(0,o.S)({id:`${e}`,wait:w,shouldSplitBatch:e=>e.length>A,fn:e=>k.request({body:e}),sort:(e,t)=>e.id-t.id}),l=async e=>r?a(e):[await k.request({body:e})],[{error:c,result:u}]=await l(i);if(c)throw new n.bs({body:i,error:c,url:P});return u},retryCount:v,retryDelay:g,timeout:E,type:"http"},{fetchOptions:s,url:P})}}},61833:function(e,t,r){"use strict";let n,s,i,o,a,l,c,u,d,h,f,p,g,m,y;r.d(t,{F:function(){return V}});let b=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function A(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),s=1,i=[0,1];for(let e=1;e<n;e++)i.push(s+=r());let o=r(),a=t;t+=o;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=2147483648-1,h=0;for(let e=0;e<31;e++)h=h<<1|u();let f=[],p=0,g=2147483648;for(;;){let e=Math.floor(((h-p+1)*s-1)/g),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<i[n]?r=n:t=n}if(0==t)break;f.push(t);let o=p+Math.floor(g*i[t]/s),a=p+Math.floor(g*i[t+1]/s)-1;for(;((o^a)&1073741824)==0;)h=h<<1&d|u(),o=o<<1&d,a=a<<1&d|1;for(;o&~a&536870912;)h=1073741824&h|h<<1&d>>>1|u(),o=o<<1^1073741824,a=(1073741824^a)<<1|1073741825;p=o,g=1+a-o}let m=n-4;return f.map(t=>
311{switch(t-m){case 3:return m+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return m+256+(e[a++]<<8|e[a++]);case 1:return m+e[a++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s<r;s++)a=a<<6|t[e.charCodeAt(s)],(o+=6)>=8&&(n[i++]=a>>(o-=8));return n}(e)),r=0,()=>t[r++]}function w(e,t=0){let r=[];for(;;){let n=e(),s=e();if(!s)break;t+=n;for(let e=0;e<s;e++)r.push(t+e);t+=s+1}return r}function v(e){return P(()=>{let t=w(e);if(t.length)return t})}function E(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),s=P(t);return k(s.length,1+e,t).flatMap((e,t)=>{let[i,...o]=e;return Array(s[t]).fill().map((e,t)=>{let s=t*n;return[i+t*r,o.map(e=>e+s)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(k(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function P(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function k(e,t,r){let n=Array(e).fill().map(()=>[]);for(let s=0;s<t;s++)(function(e,t){let r=Array(e);for(let s=0,i=0;s<e;s++){var n;r[s]=i+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function x(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function C(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function T(e,t){let r=e.length,n=r-t.length;for(let s=0;0==n&&s<r;s++)n=e[s]-t[s];return n}function O(e){return e>>24&255}function S(e){return 16777215&e}function B(e){return e>=44032&&e<55204}function R(e){n||function(){let e=A
vendor: 7,457 bytes, line 311
311("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogV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51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");f
311or(let[t,r]of(n=new Map(v(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),s=new Set(w(e)),i=new Map,o=new Map,E(e))){if(!s.has(t)&&2==r.length){let[e,n]=r,s=o.get(e);s||(s=new Map,o.set(e,s)),s.set(n,t)}i.set(t,r.reverse())}}();let t=[],r=[],a=!1;function l(e){let r=n.get(e);r&&(a=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(B(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,s=e%28;l(4352+t),l(4449+r),s>0&&l(4519+s)}else{let e=i.get(n);e?r.push(...e):l(n)}if(!r.length)break;n=r.pop()}if(a&&t.length>1){let e=O(t[0]);for(let r=1;r<t.length;r++){let n=O(t[r]);if(0==n||e<=n){e=n;continue}let s=r-1;for(;;){let r=t[s+1];if(t[s+1]=t[s],t[s]=r,!s||(e=O(t[--s]))<=n)break}e=O(t[r])}}return t}function N(e){return function(e){let t=[],r=[],n=-1,s=0;for(let i of e){let e=O(i),a=S(i);if(-1==n)0==e?n=a:t.push(a);else if(s>0&&s>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),s=e;else{let i=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(B(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=o.get(e);return r&&(r=r.get(t))?r:-1}}(n,a);i>=0?n=i:0==s&&0==e?(t.push(n),n=a):(r.push(a),s=e)}}return n>=0&&t.push(n,...r),t}(R(e))}let M=e=>Array.from(e);function I(e,t){return e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DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI"),n=()=>w(r),s=()=>new Set(n());a=new Map(E(r)),l=s(),c=n(),u=new Set(n().map(e=>c[e])),c=new Set(c),d=s(),s();
311let i=v(r),o=r(),b=()=>new Set(n().flatMap(e=>i[e]).concat(n()));h=P(e=>{let t=P(r).map(e=>e+96);if(t.length){let n=e>=o;return t[0]-=32,t=C(t),n&&(t=`Restricted[${t}]`),{N:t,P:b(),Q:b(),M:!r(),R:n}}}),f=s(),p=new Map;let k=n().concat(M(f)).sort((e,t)=>e-t);for(let{V:e,M:t}of(k.forEach((e,t)=>{let n=r(),s=k[t]=n?k[t-n]:{V:[],M:new Map};s.V.push(e),f.has(e)||p.set(e,s)}),new Set(p.values()))){let r=[];for(let t of e){let e=h.filter(e=>I(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),e.forEach(e=>n.G.add(e))}let n=r.flatMap(e=>M(e.G));for(let{G:e,V:s}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of s)t.set(e,r)}}let x=new Set,O=new Set,B=e=>x.has(e)?O.add(e):x.add(e);for(let e of h){for(let t of e.P)B(t);for(let t of e.Q)B(t)}for(let e of x)p.has(e)||O.has(e)||p.set(e,1);for(let n of(g=new Set(M(x).concat(M(R(x).map(S)))),m=(e=[],t=w(r),function t({S:r,B:n},s,i){if(!(4&r)||i!==s[s.length-1])for(let o of(2&r&&(i=s[s.length-1]),1&r&&e.push(s),n))for(let e of o.Q)t(o,[...s,e],i)}(function e(n){return{S:r(),B:P(()=>{let n=w(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>L.from(e)).sort(T),y=new Map,m)){let e=[y];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function F(e){return(_(e)?"":`${U(j([e]))} `)+x(e)}function U(e){return`"${e}"\u200E`}function j(e,t=x){var r;let n=[];r=e[0],D(),c.has(r)&&n.push("◌");let s=0,i=e.length;for(let r=0;r<i;r++){let i=e[r];_(i)&&(n.push(C(e.slice(s,r))),n.push(t(i)),s=r+1)}return n.push(C(e.slice(s,i))),n.join("")}function _(e){return D(),d.has(e)}function H(e){return Error(`disallowed character: ${F(e)}`)}function G(e,t){let r=F(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function K(e){return Error(`illegal placement: ${e}`)}function Q(e){return e.filter(e=>65039!=e)}function V(e){var t;return(t=function(e,t,r){if(!e)return[];D();let n=0;return e.split(".").map(e=>{let s=function(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}(e),i={input:s,offset:n};n+=s.length+1;try{let e,n=i.tokens=function(e,t,r){let n=[],s=[];for(e=e.slice().reverse();e.length;){let i=function(e,t){let r,n=y,s=e.length;for(;s&&(n=n.get(e[--s]));){let{V:t}=n;t&&(r=t,e.length=s)}return r}(e);if(i)s.length&&(n.push(t(s)),s=[]),n.push(r(i));else{let t=e.pop();if(g.has(t))s.push(t);else{let e=a.get(t);if(e)s.push(...e);else if(!l.has(t))throw H(t)}}}return s.length&&n.push(t(s)),n}(s,t,r),o=n.length;if(!o)throw Error("empty label");let d=i.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(i.emoji=o>1||n[0].is_emoji)&&d.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${C(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(c.has(d[0]))throw K("leading combining mark");for(let e=1;e<o;e++){let t=n[e];
311if(!t.is_emoji&&c.has(t[0]))throw K(`emoji + combining mark: "${C(n[e-1])} + ${j([t[0]])}"`)}!function(e){let t=e[0],r=b.get(t);if(r)throw K(`leading ${r}`);let n=e.length,s=-1;for(let i=1;i<n;i++){t=e[i];let n=b.get(t);if(n){if(s==i)throw K(`${r} + ${n}`);s=i+1,r=n}}if(s==n)throw K(`trailing ${r}`)}(d);let r=M(new Set(t)),[s]=function(e){let t=h;for(let r of e){let e=t.filter(e=>I(e,r));if(!e.length){if(h.some(e=>I(e,r)))throw G(t[0],r);throw H(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!I(e,r))throw G(e,r);if(e.M){let e=R(t).map(S);for(let t=1,r=e.length;t<r;t++)if(u.has(e[t])){let n=t+1;for(let s;n<r&&u.has(s=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==s)throw Error(`duplicate non-spacing marks: ${F(s)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${U(j(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(s,t),function(e,t){let r;let n=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):M(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>I(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(s,r),e=s.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}(e,N,Q)).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${U(j(e))}: ${n}`)}return C(n)}).join(".")}},87907:function(e,t,r){"use strict";function n(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((s,i)=>{(async()=>{let o;try{let a=new AbortController;r>0&&(o=setTimeout(()=>{n?a.abort():i(t)},r)),s(await e({signal:a?.signal||null}))}catch(e){"AbortError"===e.name&&i(t),i(e)}finally{clearTimeout(o)}})()})}r.d(t,{F:function(){return n}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.