PageSourceSearch

https://seascape.network/2357.da9e1ace.async.js

js seascape.network collected 2026-10-06 07:40:10 UTC 863,034 bytes, 1 lines download raw bytes

1(self.webpackChunkseascape_web=self.webpackChunkseascape_web||[]).push([[2357],{60532:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),s=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},o=r(84089),a=function(e,t){return s.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var c=s.forwardRef(a)},25035:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),s=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=r(84089),a=function(e,t){return s.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var c=s.forwardRef(a)},75144:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),s=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"wallet",theme:"outlined"},o=r(84089),a=function(e,t){return s.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var c=s.forwardRef(a)},6873:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=w,t.fromBig=s,t.split=i;const r=BigInt(2**32-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){const r=e.length;let n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){const{h:r,l:a}=s(e[o],t);[n[o],i[o]]=[r,a]}return[n,i]}const o=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=o;const a=(e,t,r)=>e>>>r;t.shrSH=a;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const h=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=h;const f=(e,t)=>t;t.rotr32H=f;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;const y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;const b=(e,t,r)=>e<<r-32|t>>>64-r;function w(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:0|s}}t.rotlBL=b;const v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=v;const A=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=A;const E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;const k=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0;t.add4H=k;const P=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=P;const x=(e,t,r,n,s,i)=>t+r+n+s+i+(e/2**32|0)|0;t.add5H=x;const O={fromBig:s,split:i,toBig:o,shrSH:a,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:w,add3L:v,add3H:A,add4L:E,add4H:k,add5H:x,add5L:P};t.default=O},31945: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},85426:function(e,t,r){"use strict";
1Object.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=void 0,t.keccakP=w;const n=r(6873),s=r(98089),i=BigInt(0),o=BigInt(1),a=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),d=[],h=[],f=[];for(let e=0,t=o,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let s=i;for(let e=0;e<7;e++)t=(t<<o^(t>>c)*l)%u,t&a&&(s^=o<<(o<<BigInt(e))-o);f.push(s)}const p=(0,n.split)(f,!0),g=p[0],m=p[1],y=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function w(e,t=24){const 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){const n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=y(i,o,1)^r[n],c=b(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){const n=h[r],i=y(t,s,n),o=b(t,s,n),a=d[r];t=e[a],s=e[a+1],e[a]=i,e[a+1]=o}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]}(0,s.clean)(r)}class v extends s.Hash{constructor(e,t,r,n=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,(0,s.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,s.swap32IfBE)(this.state32),w(this.state32,this.rounds),(0,s.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,s.aexists)(this),e=(0,s.toBytes)(e),(0,s.abytes)(e);const{blockLen:t,state:r}=this,n=e.length;for(let s=0;s<n;){const i=Math.min(t-this.pos,n-s);for(let t=0;t<i;t++)r[this.pos++]^=e[s++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,s.aexists)(this,!1),(0,s.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();const 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 new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,s.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,s.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,s.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new v(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=v;const A=(e,t,r)=>(0,s.createHasher)((()=>new v(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const E=(e,t,r)=>(0,s.createXOFer)(((n={})=>new v(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},98089:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=s,t.anumber=i,t.abytes=o,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){o(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=a,t.byteSwap32=c,t.bytesToHex=function(e){if(o(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,s=0;t<r;t++,s+=2){const r=y(e.charCodeAt(s)),i=y(e.charCodeAt(s+1));if(void 0===r||void 0===i){const t=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+s)}n[t]=16*r+i}return n},t.asyncLoop=async function(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);const e=Date.now()-s;e>=0&&e<r||(await(0,t.nextTick)(),s+=e)}},t.utf8ToBytes=b,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=w,t.kdfInputToBytes=function(e){"string"==typeof e&&(e=b(e));return o(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];o(n),t+=n.length}
1const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const s=e[t];r.set(s,n),n+=s.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=v,t.createOptHasher=A,t.createXOFer=E,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const n=r(31945);function s(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function o(e,...t){if(!s(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>a(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const d=48,h=57,f=65,p=70,g=97,m=102;function y(e){return e>=d&&e<=h?e-d:e>=f&&e<=p?e-(f-10):e>=g&&e<=m?e-(g-10):void 0}function b(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function w(e){return"string"==typeof e&&(e=b(e)),o(e),e}t.nextTick=async()=>{};function v(e){const t=t=>e().update(w(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function A(e){const t=(t,r)=>e(r).update(w(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function E(e){const t=(t,r)=>e(r).update(w(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=class{},t.wrapConstructor=v,t.wrapConstructorWithOpts=A,t.wrapXOFConstructorWithOpts=E},18106:function(e,t,r){"use strict";var n,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedMessage=void 0;const i=s(r(75528)),o=s(r(43063)),a=r(37705);class c{static generateApi(){const e=new i.default('\nsign-in-with-ethereum =\n    [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF\n    address LF\n    LF\n    [ statement LF ]\n    LF\n    %s"URI: " URI LF\n    %s"Version: " version LF\n    %s"Chain ID: " chain-id LF\n    %s"Nonce: " nonce LF\n    %s"Issued At: " issued-at\n    [ LF %s"Expiration Time: " expiration-time ]\n    [ LF %s"Not Before: " not-before ]\n    [ LF %s"Request ID: " request-id ]\n    [ LF %s"Resources:"\n    resources ]\n\ndomain = authority\n\naddress = "0x" 40*40HEXDIG\n    ; Must also conform to captilization\n    ; checksum encoding specified in EIP-55\n    ; where applicable (EOAs).\n\nstatement = 1*( reserved / unreserved / " " )\n    ; The purpose is to exclude LF (line breaks).\n\nversion = "1"\n\nnonce = 8*( ALPHA / DIGIT )\n\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\n\nrequest-id = *pchar\n\nchain-id = 1*DIGIT\n    ; See EIP-155 for valid CHAIN_IDs.\n\nresources = *( LF resource )\n\nresource = "- " URI\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\n\nhier-part     = "//" authority path-abempty\n              / path-absolute\n              / path-rootless\n              / path-empty\n\nscheme        = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n\nauthority     = [ userinfo "@" ] host [ ":" port ]\nuserinfo      = *( unreserved / pct-encoded / sub-delims / ":" )\nhost          = IP-literal / IPv4address / reg-name\nport          = *DIGIT\n\nIP-literal    = "[" 
1( IPv6address / IPvFuture  ) "]"\n\nIPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n\nIPv6address   =                            6( h16 ":" ) ls32\n              /                       "::" 5( h16 ":" ) ls32\n              / [               h16 ] "::" 4( h16 ":" ) ls32\n              / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n              / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n              / [ *3( h16 ":" ) h16 ] "::"    h16 ":"   ls32\n              / [ *4( h16 ":" ) h16 ] "::"              ls32\n              / [ *5( h16 ":" ) h16 ] "::"              h16\n              / [ *6( h16 ":" ) h16 ] "::"\n\nh16           = 1*4HEXDIG\nls32          = ( h16 ":" h16 ) / IPv4address\nIPv4address   = dec-octet "." dec-octet "." dec-octet "." dec-octet\ndec-octet     = DIGIT                 ; 0-9\n                 / %x31-39 DIGIT         ; 10-99\n                 / "1" 2DIGIT            ; 100-199\n                 / "2" %x30-34 DIGIT     ; 200-249\n                 / "25" %x30-35          ; 250-255\n\nreg-name      = *( unreserved / pct-encoded / sub-delims )\n\npath-abempty  = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty    = 0pchar\n\nsegment       = *pchar\nsegment-nz    = 1*pchar\n\npchar         = unreserved / pct-encoded / sub-delims / ":" / "@"\n\nquery         = *( pchar / "/" / "?" )\n\nfragment      = *( pchar / "/" / "?" )\n\npct-encoded   = "%" HEXDIG HEXDIG\n\nunreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"\nreserved      = gen-delims / sub-delims\ngen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"\nsub-delims    = "!" / "$" / "&" / "\'" / "(" / ")"\n              / "*" / "+" / "," / ";" / "="\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear   = 4DIGIT\ndate-month      = 2DIGIT  ; 01-12\ndate-mday       = 2DIGIT  ; 01-28, 01-29, 01-30, 01-31 based on\n                          ; month/year\ntime-hour       = 2DIGIT  ; 00-23\ntime-minute     = 2DIGIT  ; 00-59\ntime-second     = 2DIGIT  ; 00-58, 00-59, 00-60 based on leap second\n                          ; rules\ntime-secfrac    = "." 1*DIGIT\ntime-numoffset  = ("+" / "-") time-hour ":" time-minute\ntime-offset     = "Z" / time-numoffset\n\npartial-time    = time-hour ":" time-minute ":" time-second\n                  [time-secfrac]\nfull-date       = date-fullyear "-" date-month "-" date-mday\nfull-time       = partial-time time-offset\n\ndate-time       = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z\nLF             =  %x0A\n                  ; linefeed\nDIGIT          =  %x30-39\n                  ; 0-9\nHEXDIG         =  DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n');if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),new Error("ABNF grammar has errors");return e.toObject()}}n=c,c.grammarObj=n.generateApi();t.ParsedMessage=class{constructor(e){const t=new o.default.parser;t.ast=new o.default.ast;const r=o.default.ids;t.ast.callbacks.scheme=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&0===n&&(i.scheme=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks.domain=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.domain=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks.address=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.address=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks.statement=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.statement=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks.uri=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.uri||(i.uri=o.default.utils.charsToString(t,n,s))),a};t.ast.callbacks.version=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.version=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks["chain-id"]=function(e,t,n,s,i){const c=r.SEM_OK;return e===r.SEM_PRE&&(i.chainId=(0,a.parseIntegerNumber)(o.default.utils.charsToString(t,n,s))),c};t.ast.callbacks.nonce=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.nonce=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks["issued-at"]=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.issuedAt=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks["expiration-time"]=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.expirationTime=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks["not-before"]=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.notBefore=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks["request-id"]=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.requestId=o.default.utils.charsToString(t,n,s)),a};t.ast.callbacks.resources=function(e,t,n,s,i){const a=r.SEM_OK;return e===r.SEM_PRE&&(i.resources=o.default.utils.charsToString(t,n,s).slice(3).split("\n- ")),a};const n=t.parse(c.grammarObj,"sign-in-with-ethereum",e);if(!n.success)throw new Error(`Invalid message: ${JSON.stringify(n)}`);const s={};t.ast.translate(s);for(const[e,t]of Object.entries(s))this[e]=t;if(0===this.domain.length)throw new Error("Domain cannot be empty.");if(!(0,a.isEIP55Address)(this.address))throw new Error("Address not conformant to EIP-55.")}}},20200: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);
1s&&!("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;const i=r(18106);Object.defineProperty(t,"ParsedMessage",{enumerable:!0,get:function(){return i.ParsedMessage}}),s(r(37705),t)},37705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntegerNumber=t.isEIP55Address=void 0;const n=r(85426),s=r(98089);t.isEIP55Address=e=>{if(42!=e.length)return!1;const t=`${e}`.toLowerCase().replace("0x",""),r=(0,s.bytesToHex)((0,n.keccak_256)(t));let 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=>{const t=parseInt(e);if(isNaN(t))throw new Error("Invalid number.");if(t===1/0)throw new Error("Invalid number.");return t}},98099:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97117);function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=s,t.writeInt16BE=s,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=c,t.readUint32LE=u,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),n=o(e,t+4);return 4294967296*r+n-4294967296*(n>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given b
1itLength");for(var n=0,s=1,i=e/8+r-1;i>=r;i--)n+=t[i]*s,s*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,s=1,i=r;i<r+e/8;i++)n+=t[i]*s,s*=256;return n},t.writeUintBE=function(e,t,r,s){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===s&&(s=0),e%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+s-1;o>=s;o--)r[o]=t/i&255,i*=256;return r},t.writeUintLE=function(e,t,r,s){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===s&&(s=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=s;o<s+e/8;o++)r[o]=t/i&255,i*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},97117:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},31416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const n=r(46008),s=r(98099),i=r(17309);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){const r=o(4,e),n=(0,s.readUint32LE)(r);return(0,i.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=a,n=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let s="";const c=r.length,u=256-256%c;for(;e>0;){const t=o(Math.ceil(256*e/u),n);for(let n=0;n<t.length&&e>0;n++){const i=t[n];i<u&&(s+=r.charAt(i%c),e--)}(0,i.wipe)(t)}return s}t.randomString=c,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},75455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}},58871:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const n=r(17309);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}},46008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const n=r(75455),s=r(58871);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new s.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},17309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},22186:function(){},86250:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(67294),s=r(93967),i=r.n(s),o=r(98423),a=r(98065),c=r(53124),u=r(83559),l=r(83262);const d=["wrap","nowrap","wrap-reverse"],h=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var p=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const r=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&d.includes(r)}})(e,t)),((e,t)=>{const r={};return f.forEach((n=>{r[`${e}-align-${n}`]=t.align===n})),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r})(e,t)),((e,t)=>{const r={};return h.forEach((n=>{r[`${e}-justify-${n}`]=t.justify===n})),r})(e,t)))};const g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},m=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},y=e=>{const{componentCls:t}=e,r={};return d.forEach((e=>{r[`${t}-wrap-${e}`]={flexWrap:e}})),r},b=e=>{const{componentCls:t}=e,r={};return f.forEach((e=>{r[`${t}-align-${e}`]={alignItems:e}})),r},w=e=>{const{componentCls:t}=e,r={};return h.forEach((e=>{r[`${t}-justify-${e}`]={justifyContent:e}})),r};var v=(0,u.I$)("Flex",(e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,s=(0,l.IX)(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[g(s),m(s),y(s),b(s),w(s)]}),(()=>({})),{resetStyle:!1}),A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};const E=n.forwardRef(((e,t)=>{const{prefixCls:r,rootClassName:s,className:u,style:l,flex:d,gap:h,vertical:f=!1,component:g="div",children:m}=e,y=A(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:b,direction:w,getPrefixCls:E}=n.useContext(c.E_),k=E("flex",r),[P,x,O]=v(k),S=null!=f?f:null==b?void 0:b.vertical,C=i()(u,s,null==b?void 0:b.className,k,x,O,p(k,e),{[`${k}-rtl`]:"rtl"===w,[`${k}-gap-${h}`]:(0,a.n)(h),[`${k}-vertical`]:S}),T=Object.assign(Object.assign({},null==b?void 0:b.style),l);return d&&(T.flex=d),h&&!(0,a.n)(h)&&(T.gap=h),P(n.createElement(g,Object.assign({ref:t,className:C,style:T},(0,o.Z)(y,["justify","wrap","align"])),m))}));var k=E},75528:function(e,t,r){e.exports=function(e){const{Buffer:t}=r(48764),n="api.js: ",s=this,i=r(43063),o=r(20979),a=r(1789),c=new(r(73737)),{attributes:u,showAttributes:l,showAttributeErrors:d,showRuleDependencies:h}=r(68862),f=r(2595),p=function(e,t,r){const n=`<span class="${i.style.CLASS_CTRLCHAR}">`,s="</span>",o=`<span class="${i.style.CLASS_NOMATCH}">`,a="</span>";let c,u="";for(;Array.isArray(e)&&0!==e.length;){if("number"!=typeof t)throw new Error("abnfToHtml: beg must be type number");if(t>=e.length)break;c="number"!=typeof r||t+r>=e.length?e.length:t+r;let l=0;for(let r=t;r<c;r+=1){const t=e[r];if(t>=32&&t<=126)switch(1===l?(u+=s,l=0):2===l&&(u+=a,l=0),t){case 32:u+="&nbsp;";break;case 60:u+="&lt;";break;case 62:u+="&gt;";break;case 38:u+="&amp;";break;case 34:u+="&quot;";break;case 39:u+="&#039;";break;case 92:u+="&#092;";break;default:u+=String.fromCharCode(t)}else 9===t||10===t||13===t?(0===l?(u+=n,l=1):2===l&&(u+=a+n,l=1),9===t&&(u+="TAB"),10===t&&(u+="LF"),13===t&&(u+="CR")):(0===l?(u+=o,l=2):1===l&&(u+=s+o,l=2),u+=`\\x${i.utils.charToHex(t)}`)}2===l&&(u+=a),1===l&&(u+=s);break}return u},g=function(e,t,r){let n="";for(let s=t;s<t+r;s+=1){const 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};let m,y=!1,b=!1,w=!1,v=!1,A=0;if(this.errors=[],t.isBuffer(e))this.chars=o.decode("BINARY",e);else if(Array.isArray(e))this.chars=e.slice();else{if("string"!=typeof e)throw new Error(`${n}input source is not a string, byte Buffer or character array`);this.chars=o.decode("STRING",e)}this.sabnf=o.encode("STRING",this.chars),this.scan=function(e,t){this.lines=a(this.chars,this.errors,e,t),y=!0},this.parse=function(e,t,r){if(!y)throw new Error(`${n}grammar not scanned`);c.syntax(this.chars,this.lines,this.errors,e,t,r),b=!0},this.translate=function(){if(!b)throw new Error(`${n}grammar not scanned and parsed`);const e=c.semantic(this.chars,this.lines,this.errors);0===this.errors.length&&(this.rules=e.rules,this.udts=e.udts,m=e.lineMap,w=!0)},this.attributes=function(){if(!w)throw new Error(`${n}grammar not scanned, parsed and translated`);return A=u(this.rules,this.udts,m,this.errors),v=!0,A},this.generate=function(e){if(this.lines=a(this.chars,this.errors,e),this.errors.length)return;if(c.syntax(this.chars,this.lines,this.errors,e),this.errors.length)return;const t=c.semantic(this.chars,this.lines,this.errors);this.errors.length||(this.rules=t.rules,this.udts=t.udts,m=t.lineMap,A=u(this.rules,this.udts,m,this.errors),v=!0)},this.displayRules=function(e="index"){if(!w)throw new Error(`${n}grammar not scanned, parsed and translated`);return f(this.rules,this.udts,e)},this.displayRuleDependencies=function(e="index"){if(!v)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return h(e)},this.displayAttributes=function(e="index"){if(!v)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return A&&d(e),l(e)},this.displayAttributeErrors=function(){if(!v)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return d()},this.toSource=function(e){if(!v)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(A)throw new Error(`${n}can't generate parser source - attributes have ${A} errors`);return c.generateSource(this.chars,this.lines,this.rules,this.udts,e)},this.toObject=function(){if(!v)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(A)throw new Error(`${n}can't generate parser source - attributes have ${A} errors`);return c.generateObject(this.sabnf,this.rules,this.udts)},this.errorsToAscii=function(){return function(e,t,r){let n,s,i,o;return n="",e.forEach((e=>{s=t[e.line],n+=`${s.lineNo}: `,n+=`${s.beginChar}: `,n+=e.char-s.beginChar+": ",i=s.beginChar,o=e.char-s.beginChar,n+=g(r,i,o),n+=" >> ",i=e.char,o=s.beginChar+s.length-e.char,n+=g(r,i,o),n+="\n",n+=`${s.lineNo}: `,n+=`${s.beginChar}: `,n+=e.char-s.beginChar+": ",n+="error: ",n+=e.msg,n+="\n"})),n}(this.errors,this.lines,this.chars)},this.errorsToHtml=function(e){return function(e,t,r,n){const[s]=i;let o="";const a=`<span class="${s.CLASS_NOMATCH}">&raquo;</span>`;return o+=`<p><table class="${s.CLASS_GRAMMAR}">\n`,n&&"string"==typeof n&&(o+=`<caption>${n}</caption>\n`),o+="<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,c,u,l,d="",h="";0===t.length?(l=a,s=0):(n=t[e.line],c=n.beginChar,e.char>
1c&&(d=p(r,c,e.char-c)),c=e.char,u=n.beginChar+n.length,c<u&&(h=p(r,c,u-c)),l=d+a+h,s=e.char-n.beginChar,o+="<tr>",o+=`<td>${e.line}</td><td>${n.beginChar}</td><td>${s}</td><td>${l}</td>`,o+="</tr>\n",o+="<tr>",o+=`<td colspan="3"></td><td>&uarr;:&nbsp;${i.utils.stringToAsciiHtml(e.msg)}</td>`,o+="</tr>\n")})),o+="</table></p>\n",o}(this.errors,this.lines,this.chars,e)},this.linesToAscii=function(){return function(e){let t="Annotated Input Grammar";return e.forEach((e=>{t+="\n",t+=`line no: ${e.lineNo}`,t+=` : char index: ${e.beginChar}`,t+=` : length: ${e.length}`,t+=` : abnf: ${g(s.chars,e.beginChar,e.length)}`})),t+="\n",t}(this.lines)},this.linesToHtml=function(){return function(e){let t="";return t+=`<table class="${i.style.CLASS_GRAMMAR}">\n`,t+="<caption>Annotated Input Grammar</caption>\n",t+="<tr>",t+="<th>line<br>no.</th><th>first<br>char</th><th><br>length</th><th><br>text</th>",t+="</tr>\n",e.forEach((e=>{t+="<tr>",t+=`<td>${e.lineNo}`,t+=`</td><td>${e.beginChar}`,t+=`</td><td>${e.length}`,t+=`</td><td>${p(s.chars,e.beginChar,e.length)}`,t+="</td>",t+="</tr>\n"})),t+="</table>\n",t}(this.lines)}}},68862:function(e,t,r){e.exports=function(){const e=r(58276),{ruleAttributes:t,showAttributes:n,showAttributeErrors:s}=r(94246),{ruleDependencies:i,showRuleDependencies:o}=r(37008);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.isOpen,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){const 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){const 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=[]){const 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}}()},73737:function(e,t,r){e.exports=function(){const e=r(43063),t=e.ids,n=new(r(74216)),s=new(r(11832)),i=new(r(33610)),o=new e.parser;o.ast=new e.ast,o.callbacks=n.callbacks,o.ast.callbacks=s.callbacks;const 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},c=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};this.syntax=function(e,t,r,n,s,c){if(c){if("traceObject"!==c.traceObject)throw new TypeError("parser: trace argument is not a trace object");o.trace=c}const u={};u.errors=r,u.strict=!!n,u.lite=!!s,u.lines=t,u.findLine=a,u.charsLength=e.length,u.ruleCount=0;o.parse(i,"file",e,u).success||r.push({line:0,char:0,msg:"syntax analysis of input grammar failed"})},this.semantic=function(e,r,n){const s={};return s.errors=n,s.lines=r,s.findLine=a,s.charsLength=e.length,o.ast.translate(s),n.length?null:(s.rules.forEac
1h((e=>{const r=[],n=[];let s=0;e.opcodes.forEach((e=>{e.type===t.ALT&&1===e.children.length||e.type===t.CAT&&1===e.children.length||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]=c(n,e.children[t])})),e.opcodes=r})),{rules:s.rules,udts:s.udts,lineMap:s.rulesLineMap})},this.generateSource=function(e,r,n,s,i){let o,a,c,u="",l=!1,d=!1;i&&(i.typescript?(l=!0,d=!1):i.lite&&(l=!1,d=!0));let h=0,f=1/0,p=0;const g=[],m=[];let y,b=0,w=0,v=0,A=0,E=0,k=0,P=0,x=0,O=0,S=0,C=0,T=0,B=0,_=0,I=0;return n.forEach((e=>{g.push(e.lower),h+=e.opcodes.length,e.opcodes.forEach((e=>{switch(e.type){case t.ALT:b+=1;break;case t.CAT:w+=1;break;case t.RNM:v+=1;break;case t.UDT:A+=1;break;case t.REP:E+=1;break;case t.AND:k+=1;break;case t.NOT:P+=1;break;case t.BKA:T+=1;break;case t.BKN:B+=1;break;case t.BKR:C+=1;break;case t.ABG:_+=1;break;case t.AEN:I+=1;break;case t.TLS:for(x+=1,o=0;o<e.string.length;o+=1)e.string[o]<f&&(f=e.string[o]),e.string[o]>p&&(p=e.string[o]);break;case t.TBS:for(O+=1,o=0;o<e.string.length;o+=1)e.string[o]<f&&(f=e.string[o]),e.string[o]>p&&(p=e.string[o]);break;case t.TRG:S+=1,e.min<f&&(f=e.min),e.max>p&&(p=e.max);break;default:throw new Error("generateSource: unrecognized opcode")}}))})),g.sort(),s.length>0&&(s.forEach((e=>{m.push(e.lower)})),m.sort()),u+="// copyright: Copyright (c) 2024 Lowell D. Thomas, all rights reserved<br>\n",u+="//   license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)<br>\n",u+="//\n",u+="// 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(){\n`:u+=l?"export function grammar(){\n":d?"export default function grammar(){\n":"module.exports = function grammar(){\n":u+="module.exports = function grammar(){\n",u+="  // ```\n",u+="  // SUMMARY\n",u+=`  //      rules = ${n.length}\n`,u+=`  //       udts = ${s.length}\n`,u+=`  //    opcodes = ${h}\n`,u+="  //        ---   ABNF original opcodes\n",u+=`  //        ALT = ${b}\n`,u+=`  //        CAT = ${w}\n`,u+=`  //        REP = ${E}\n`,u+=`  //        RNM = ${v}\n`,u+=`  //        TLS = ${x}\n`,u+=`  //        TBS = ${O}\n`,u+=`  //        TRG = ${S}\n`,u+="  //        ---   SABNF superset opcodes\n",u+=`  //        UDT = ${A}\n`,u+=`  //        AND = ${k}\n`,u+=`  //        NOT = ${P}\n`,d||(u+=`  //        BKA = ${T}\n`,u+=`  //        BKN = ${B}\n`,u+=`  //        BKR = ${C}\n`,u+=`  //        ABG = ${_}\n`,u+=`  //        AEN = ${I}\n`),u+="  // characters = [",u+=x+O+S===0?" none defined ]":`${f} - ${p}]`,A>0&&(u+=" + user defined"),u+="\n",u+="  // ```\n",u+="  /* OBJECT IDENTIFIER (for internal parser use) */\n",u+="  this.grammarObject = 'grammarObject';\n",u+="\n",u+="  /* RULES */\n",u+="  this.rules = [];\n",n.forEach(((e,t)=>{let r="  this.rules[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",u+=r})),u+="\n",u+="  /* UDTS */\n",u+="  this.udts = [];\n",s.length>0&&s.forEach(((e,t)=>{let r="  this.udts[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", empty: ",r+=e.empty,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",u+=r})),u+="\n",u+="  /* OPCODES */\n",n.forEach(((e,r)=>{r>
10&&(u+="\n"),u+=`  /* ${e.name} */\n`,u+=`  this.rules[${r}].opcodes = [];\n`,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\n`;break;case t.CAT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, children: [${e.children.toString()}] };// CAT\n`;break;case t.RNM:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, index: ${e.index} };// RNM(${n[e.index].name})\n`;break;case t.BKR:e.index>=n.length?(a=s[e.index-n.length].name,c=s[e.index-n.length].lower):(a=n[e.index].name,c=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: '${c}', bkrCase: ${e.bkrCase}, bkrMode: ${e.bkrMode} };// BKR(\\${a})\n`;break;case t.UDT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, empty: ${e.empty}, index: ${e.index} };// UDT(${s[e.index].name})\n`;break;case t.REP:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// REP\n`;break;case t.AND:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// AND\n`;break;case t.NOT:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// NOT\n`;break;case t.ABG:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// ABG(%^)\n`;break;case t.AEN:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// AEN(%$)\n`;break;case t.BKA:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// BKA\n`;break;case t.BKN:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type} };// BKN\n`;break;case t.TLS:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, string: [${e.string.toString()}] };// TLS\n`;break;case t.TBS:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, string: [${e.string.toString()}] };// TBS\n`;break;case t.TRG:u+=`  this.rules[${r}].opcodes[${i}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// TRG\n`;break;default:throw new Error("parser.js: ~143: unrecognized opcode")}}))})),u+="\n",u+="  // The `toString()` function will display the original grammar file(s) that produced these opcodes.\n",u+="  this.toString = function toString(){\n",u+='    let str = "";\n',r.forEach((t=>{const r=t.beginChar+t.length;y="",u+='    str += "';for(let n=t.beginChar;n<r;n+=1){switch(e[n]){case 9:y=" ";break;case 10:y="\\n";break;case 13:y="\\r";break;case 34:y='\\"';break;case 92:y="\\\\";break;default:y=String.fromCharCode(e[n])}u+=y}u+='";\n'})),u+="    return str;\n",u+="  }\n",u+="}\n",u},this.generateObject=function(e,t,r){const 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}}},94246:function(e,t,r){e.exports=function(){const e=r(58276);let 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)}function i(e,t,r,i){let a=0;const c=t[r],u=c.children.length,l=[];for(a=0;a<u;a+=1)l.push(e.attrGen());for(a=0;a<u;a+=1)o(e,t,c.children[a],l[a]);i.left=function(e,t){for(let r=0;r<t;r+=1){if(e[r].left)return!0;if(!e[r].empty)return!1}return!1}(l,u),i.right=function(e,t){for(let r=t-1;r>=0;r-=1){if(e[r].right)return!0;if(!e[r].empty)return!1}return!1}(l,u),i.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}(l,u),i.empty=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].empty)return!1;return!0}(l,u),i.finite=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].finite)return!1;return!0}(l,u),i.cyclic=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].cyclic)return!1;return!0}(l,u)}function o(t,r,n,s){t.attrInit(s);const c=r[n];switch(c.type){case e.ALT:!function(e,t,r,n){let s=0;const i=t[r],a=i.children.length,c=[];for(s=0;s<a;s+=1)c.push(e.attrGen());for(s=0;s<a;s+=1)o(e,t,i.children[s],c[s]);
1for(n.left=!1,n.right=!1,n.nested=!1,n.empty=!1,n.finite=!1,n.cyclic=!1,s=0;s<a;s+=1)c[s].left&&(n.left=!0),c[s].nested&&(n.nested=!0),c[s].right&&(n.right=!0),c[s].empty&&(n.empty=!0),c[s].finite&&(n.finite=!0),c[s].cyclic&&(n.cyclic=!0)}(t,r,n,s);break;case e.CAT:i(t,r,n,s);break;case e.REP:o(t,r,n+1,s),0===c.min&&(s.empty=!0,s.finite=!0);break;case e.RNM:a(t,r[n].index,s);break;case e.BKR:!function(e,t,r,n){const s=t[r];s.index>=e.ruleCount?(n.empty=e.udts[s.index-e.ruleCount].empty,n.finite=!0):(a(e,s.index,n),n.left=!1,n.nested=!1,n.right=!1,n.cyclic=!1)}(t,r,n,s);break;case e.AND:case e.NOT:case e.BKA:case e.BKN:o(t,r,n+1,s),s.empty=!0;break;case e.TLS:s.empty=!r[n].string.length,s.finite=!0,s.cyclic=!1;break;case e.TBS:case e.TRG:s.empty=!1,s.finite=!0,s.cyclic=!1;break;case e.UDT:s.empty=c.empty,s.finite=!0,s.cyclic=!1;break;case e.ABG:case e.AEN:s.empty=!0,s.finite=!0,s.cyclic=!1;break;default:throw new Error(`unknown opcode type: ${c}`)}}function a(e,t,r){const n=e.attrsWorking[t];n.isComplete?e.attrCopy(r,n):n.isOpen?t===e.startRule?t===e.startRule&&(r.left=!0,r.right=!0,r.cyclic=!0,r.leaf=!0):r.finite=!0:(n.isOpen=!0,o(e,n.rule.opcodes,0,r),n.left=r.left,n.right=r.right,n.nested=r.nested,n.empty=r.empty,n.finite=r.finite,n.cyclic=r.cyclic,n.leaf=!1,n.isOpen=!1,n.isComplete=!0)}const c=e=>e?"t":"f",u=e=>e?"e":"f",l=(r,n,s,i)=>{let o=`${r}:${n}:`;return o+=`${u(s.left)} `,o+=`${c(s.nested)} `,o+=`${c(s.right)} `,o+=`${u(s.cyclic)} `,o+=(s.finite?"t":"e")+" ",o+=`${c(s.empty)}:`,o+=`${t.typeToString(i.recursiveType)}:`,o+=i.recursiveType===e.ATTR_MR?i.groupNumber:"-",o+=`:${s.rule.name}\n`,o},d=()=>{let e="LEGEND - t=true, f=false, e=error\n";return e+="sequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n","LEGEND - t=true, f=false, e=error\nsequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n"},h=e=>{let r=0,n=0,s=null,i=null,o="",{ruleIndexes:a}=t;
1for(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:e=>{t=e;let r=0,n=0;const s=t.attrGen();for(r=0;r<t.ruleCount;r+=1){for(n=0;n<t.ruleCount;n+=1)t.attrInit(t.attrsWorking[n]);t.startRule=r,a(t,r,s),t.attrCopy(t.attrs[r],t.attrsWorking[r])}t.attributesComplete=!0;let i=null;for(r=0;r<t.ruleCount;r+=1)if(i=t.attrs[r],i.left||!i.finite||i.cyclic){const e=t.attrGen(i.rule);t.attrCopy(e,i),t.attrsErrors.push(e),t.attrsErrorCount+=1}},showAttributes:(e="index")=>{if(!t.attributesComplete)throw new Error("rule-attributes.js:showAttributes: attributes not available");let r="";const n="RULE ATTRIBUTES\n";return 97===e.charCodeAt(0)?(r+="alphabetical by rule name\n",r+=n,r+=d(),r+=h(97)):116===e.charCodeAt(0)?(r+="ordered by rule type\n",r+=n,r+=d(),r+=h(116)):(r+="ordered by rule index\n",r+=n,r+=d(),r+=h()),r},showAttributeErrors:()=>{let e=null,r=null,n="";if(n+="RULE ATTRIBUTES WITH ERRORS\n",n+=d(),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}}}()},37008:function(e,t,r){e.exports=(()=>{const e=r(58276);let t=null;const n=(t,r,s,i)=>{let o=0,a=0;const c=r[s];i[s]=!0;const u=c.rule.opcodes;for(o=0;o<u.length;o+=1){const s=u[o];if(s.type===e.RNM)for(c.refersTo[s.index]=!0,i[s.index]||n(t,r,s.index,i),a=0;a<t;a+=1)r[s.index].refersTo[a]&&(c.refersTo[a]=!0);else s.type===e.UDT?c.refersToUdt[s.index]=!0:s.type===e.BKR&&(s.index<t?(c.refersTo[s.index]=!0,i[s.index]||n(t,r,s.index,i)):c.refersToUdt[t-s.index]=!0)}},s=(e=null)=>{let r=0,n=0,s=0,i=0;const o=t.ruleCount-1,a=t.udtCount-1;let c="",u="";const l="=> ";let d=!1,h=null,{ruleIndexes:f}=t,{udtIndexes:p}=t;for(97===e?(f=t.ruleAlphaIndexes,p=t.udtAlphaIndexes):116===e&&(f=t.ruleTypeIndexes,p=t.udtAlphaIndexes),r=0;r<t.ruleCount;r+=1){for(h=t.ruleDeps[f[r]],u=`${f[r]}:${t.typeToString(h.recursiveType)}:`,t.isMutuallyRecursive&&(u+=h.groupNumber>-1?h.groupNumber:"-",u+=":"),u+=" ",c+=`${u+t.rules[f[r]].name}\n`,d=!0,s=0,i=c.length,c+=u,n=0;n<t.ruleCount;n+=1)h.refersTo[f[n]]&&(d?(c+=l,d=!1,c+=t.ruleDeps[f[n]].rule.name):c+=`, ${t.ruleDeps[f[n]].rule.name}`,s+=1),c.length-i>100&&n!==o&&(c+=`\n${u}${l}`,i=c.length);if(t.udtCount)for(n=0;n<t.udtCount;n+=1)h.refersToUdt[p[n]]&&(d?(c+=l,d=!1,c+=t.udts[p[n]].name):c+=`, ${t.udts[p[n]].name}`,s+=1),c.length-i>100&&n!==a&&(c+=`\n${u}${l}`,i=c.length);for(0===s&&(c+="=> <none>\n"),!1===d&&(c+="\n"),d=!0,s=0,i=c.length,c+=u,n=0;n<t.ruleCount;n+=1)h.referencedBy[f[n]]&&(d?(c+="<= ",d=!1,c+=t.ruleDeps[f[n]].rule.name):c+=`, ${t.ruleDeps[f[n]].rule.name}`,s+=1),c.length-i>100&&n!==o&&(c+=`\n${u}${l}`,i=c.length);0===s&&(c+="<= <none>\n"),!1===d&&(c+="\n"),c+="\n"}return c};return{ruleDependencies:r=>{t=r;let s=0,i=0,o=0,a=null,c=null,u=!1;t.dependenciesComplete=!1;
1const l=t.falseArray(t.ruleCount);for(s=0;s<t.ruleCount;s+=1)t.falsifyArray(l),n(t.ruleCount,t.ruleDeps,s,l);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(o=-1,s=0;s<t.ruleCount;s+=1)if(a=t.ruleDeps[s],a.recursiveType===e.ATTR_R)for(u=!0,i=0;i<t.ruleCount;i+=1)s!==i&&(c=t.ruleDeps[i],c.recursiveType===e.ATTR_R&&a.refersTo[i]&&c.refersTo[s]&&(u&&(o+=1,a.recursiveType=e.ATTR_MR,a.groupNumber=o,u=!1),c.recursiveType=e.ATTR_MR,c.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",r+="<= referenced by rule names\n",t.dependenciesComplete?(97===e.charCodeAt(0)?(r+="alphabetical by rule name\n",r+=s(97)):116===e.charCodeAt(0)?(r+="ordered by rule type\n",r+=s(116)):(r+="ordered by rule index\n",r+=s(null)),r):r}}})()},33610: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 1
1,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}
1,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}
1,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]}
1,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]}
1,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}
1,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(){let e="";return e+=";\n",e+="; ABNF for JavaScript APG 2.0 SABNF\n",e+="; RFC 5234 with some restrictions and additions.\n",e+="; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n",e+=';  - accepts %s"string" as a case-sensitive string\n',e+=';  - accepts %i"string" as a case-insensitive string\n',e+=';  - accepts "string" as a case-insensitive string\n',e+=";\n",e+="; Some restrictions:\n",e+=";   1. Rules must begin at first character of each line.\n",e+=";      Indentations on first rule and rules thereafter are not allowed.\n",e+=";   2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n",e+=";   3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n",e+=";      However, a working parser cannot be generated from them.\n",e+=";\n",e+="; Super set (SABNF) additions:\n",e+=";   1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n",e+=";      & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n",e+=";      ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n",e+=";      e.g. &%d13 or &rule or !(A / B)\n",e+=";   2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n",e+=";      'name' is alpha followed by alpha/num/hyphen just like a rule name.\n",e+=";      u_name may be used as an element but no rule definition is given.\n",e+=";      e.g. rule = A / u_myUdt\n",e+=';           A = "a"\n',e+=";      would be a valid grammar.\n",e+=";   3. Case-sensitive, single-quoted strings are accepted.\n",e+=";      e.g. 'abc' would be equivalent to %d97.98.99\n",e+=';      (kept for backward compatibility, but superseded by %s"abc")  \n',e+="; New 12/26/2015\n",e+=";   4. Look-behind operators are accepted as element prefixes.\n",e+=";      && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n",e+=";      !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n",e+=";      e.g. &&%d13 or &&rule or !!(A / B)\n",e+=";   5. Back reference operators, i.e. \\rulename, are accepted.\n",e+=";      A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n",e+=";      to match is a phrase previously matched by the rule 'rulename'.\n",e+=";      There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n",e+=";      In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n",e+=";      In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n",e+=";      Back reference modifiers can be used to specify case and mode.\n",e+=";      \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n",e+=";      Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n",e+=";      Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n",e+=";
1      Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n",e+=";   7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n",e+=";      Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";   8. String end anchor, AEN(%$) matches the end of the input string location.\n",e+=";      Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";\n",e+="File            = *(BlankLine / Rule / RuleError)\n",e+="BlankLine       = *(%d32/%d9) [comment] LineEnd\n",e+="Rule            = RuleLookup owsp Alternation ((owsp LineEnd)\n",e+="                / (LineEndError LineEnd))\n",e+="RuleLookup      = RuleNameTest owsp DefinedAsTest\n",e+="RuleNameTest    = RuleName/RuleNameError\n",e+="RuleName        = alphanum\n",e+="RuleNameError   = 1*(%d33-60/%d62-126)\n",e+="DefinedAsTest   = DefinedAs / DefinedAsError\n",e+="DefinedAsError  = 1*2%d33-126\n",e+="DefinedAs       = IncAlt / Defined\n",e+="Defined         = %d61\n",e+="IncAlt          = %d61.47\n",e+="RuleError       = 1*(%d32-126 / %d9  / LineContinue) LineEnd\n",e+="LineEndError    = 1*(%d32-126 / %d9  / LineContinue)\n",e+="Alternation     = Concatenation *(owsp AltOp Concatenation)\n",e+="Concatenation   = Repetition *(CatOp Repetition)\n",e+="Repetition      = [Modifier] (Group / Option / BasicElement / BasicElementErr)\n",e+="Modifier        = (Predicate [RepOp])\n",e+="                / RepOp\n",e+="Predicate       = BkaOp\n",e+="                / BknOp\n",e+="                / AndOp\n",e+="                / NotOp\n",e+="BasicElement    = UdtOp\n",e+="                / RnmOp\n",e+="                / TrgOp\n",e+="                / TbsOp\n",e+="                / TlsOp\n",e+="                / ClsOp\n",e+="                / BkrOp\n",e+="                / AbgOp\n",e+="                / AenOp\n",e+="                / ProsVal\n",e+="BasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\n",e+="Group           = GroupOpen  Alternation (GroupClose / GroupError)\n",e+="GroupError      = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="GroupOpen       = %d40 owsp\n",e+="GroupClose      = owsp %d41\n",e+="Option          = OptionOpen Alternation (OptionClose / OptionError)\n",e+="OptionError     = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="OptionOpen      = %d91 owsp\n",e+="OptionClose     = owsp %d93\n",e+="RnmOp           = alphanum\n",e+="BkrOp           = %d92 [bkrModifier] bkr-name\n",e+="bkrModifier     = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\n",e+="cs              = '%s'\n",e+="ci              = '%i'\n",e+="um              = '%u'\n",e+="pm              = '%p'\n",e+="bkr-name        = uname / ename / rname\n",e+="rname           = alphanum\n",e+="uname           = %d117.95 alphanum\n",e+="ename           = %d101.95 alphanum\n",e+="UdtOp           = udt-empty\n",e+="                / udt-non-empty\n",e+="udt-non-empty   = %d117.95 alphanum\n",e+="udt-empty       = %d101.95 alphanum\n",e+="RepOp           = (rep-min StarOp rep-max)\n",e+="                / (rep-min StarOp)\n",e+="                / (StarOp rep-max)\n",e+="                / StarOp\n",e+="                / rep-min-max\n",e+="AltOp           = %d47 owsp\n",e+="CatOp           = wsp\n",e+="StarOp          = %d42\n",e+="AndOp           = %d38\n",e+="NotOp           = %d33\n",e+="BkaOp           = %d38.38\n",e+="BknOp           = %d33.33\n",e+="AbgOp           = %d37.94\n",e+="AenOp           = %d37.36\n",e+="TrgOp           = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\n",e+="TbsOp           = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\n",e+="TlsOp           = TlsCase TlsOpen TlsString TlsClose\n",e+='TlsCase         = ["%i" / "%s"]\n',e+="TlsOpen         = %d34\n",e+="TlsClose        = %d34\n",e+="TlsString       = *(%d32-33/%d35-126/StringTab)\n",e+="StringTab       = %d9\n",e+="ClsOp           = ClsOpen ClsString ClsClose\n",e+="ClsOpen         = %d39\n",e+="ClsClose        = %d39\n",e+="ClsString       = *(%d32-38/%d40-126/StringTab)\n",e+="ProsVal         = ProsValOpen ProsValString ProsValClose\n",e+="ProsValOpen     = %d60\n",e+="ProsValString   = *(%d32-61/%d63-126/StringTab)\n",e+="ProsValClose    = %d62\n",e+="rep-min         = rep-num\n",e+="rep-min-max     = rep-num\n",e+="rep-max         = rep-num\n",e+="rep-num         = 1*(%d48-57)\n",e+="dString         = dnum\n",e+="xString         = xnum\n",e+="bString         = bnum\n",e+="Dec             = (%d68/%d100)\n",e+="Hex             = (%d88/%d120)\n",e+="Bin             = (%d66/%d98)\n",e+="dmin            = dnum\n",e+="dmax            = dnum\n",e+="bmin            = bnum\n",e+="bmax            = bnum\n",e+="xmin            = xnum\n",e+="xmax            = xnum\n",e+="dnum            = 1*(%d48-57)\n",e+="bnum            = 1*%d48-49\n",e+="xnum            = 1*(%d48-57 / %d65-70 / %d97-102)\n",e+=";\n",e+="; Basics\n",e+="alphanum        = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\n",e+="owsp            = *space\n",e+="wsp             = 1*space\n",e+="space           = %d32\n",e+="                / %d9\n",e+="                / comment\n",e+="                / LineContinue\n",e+="comment         = %d59 *(%d32-126 / %d9)\n",e+="LineEnd         = %d13.10\n",e+="                / %d10\n",e+="                / %d13\n",e+="LineContinue    = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n",";\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   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;      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) ;
1 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"}}},73479:function(e,t,r){const n=r(58276),s=r(8544);const 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",invalidChars: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.str
1ict&&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},66410: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(){let e="";return e+="file = *line [last-line]\n",e+="line = line-text end\n",e+="line-text = *(valid/invalid)\n",e+="last-line = 1*(valid/invalid)\n",e+="valid = %d32-126 / %d9\n",e+="invalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\n",e+="end = CRLF / LF / CR\n",e+="CRLF = %d13.10\n",e+="LF = %d10\n",e+="CR = %d13\n","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"}}},1789:function(e,t,r){e.exports=function(e,t,n,s){const i=r(43063),o=new(r(66410)),{callbacks:a}=r(73479),c=[],u=new i.parser;if(u.ast=new i.ast,u.ast.callbacks=a,s){if("traceObject"!==s.traceObject)throw new TypeError("scanner.js: trace argument is not a trace object");u.trace=s}if(!0!==u.parse(o,"file",e).success)return void t.push({line:0,char:0,msg:"syntax analysis error analyzing input SABNF grammar"});const l={lines:c,lineNo:0,errors:t,strict:!!n};return u.ast.translate(l),c}},11832:function(e,t,r){e.exports=function(){const e=r(43063),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;const 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))throw new Error("hexnum out of range");t-=87}n=16*n+t}return n};this.callbacks=[],this.callbacks.abgop=function(e,r,n,s,i){const 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){const 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){const e=!0;for(;e;){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){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const o=t.SEM_OK;return e===t.SEM_POST&&(i.ci=!0),o},this.callbacks.cs=function(e,r,n,s,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.cs=!0),o},this.callbacks.um=function(e,r,n,s,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.um=!0),o},this.callbacks.pm=function(e,r,n,s,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.pm=!0),o},this.callbacks.concatenation=function(e,r,n,s,i){const 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){const o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="="),o},this.callbacks.dmax=function(e,r,n,i,o){const 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){const 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){const 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){const 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;
1o.rules.forEach((r=>{r.isBkr=!1,r.opcodes.forEach((r=>{r.type===t.RNM&&(e=o.ruleNames.get(r.index.name),-1===e?(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,e=o.ruleNames.get(n.index.name),-1!==e?(o.rules[e.index].isBkr=!0,n.index=e.index):(e=o.udtNames.get(n.index.name),-1!==e?(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){const o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="=/"),o},this.callbacks.notop=function(e,r,n,s,i){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const 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){const o=t.SEM_OK;if(e===t.SEM_PRE)i.ruleName="",i.definedas="";else if(e===t.SEM_POST){let e;"="===i.definedas?(e=i.ruleNames.add(i.ruleName),-1===e?(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)):(e=i.ruleNames.get(i.ruleName),-1===e?(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){const 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){const 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){const 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){const o=t.SEM_OK;if(e===t.SEM_POST)if(i.tlscase){const 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){const o=t.SEM_OK;return e===t.SEM_PRE&&(i.tlscase=!0),o},this.callbacks.trgop=function(e,r,n,s,i){const 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){const a=t.SEM_OK;if(r===t.SEM_POST){const r=e.utils.charsToString(n,s,i);let a=o.udtNames.add(r);if(-1===a){if(a=o.udtNames.get(r),-1===a)throw new 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){const a=t.SEM_OK;if(r===t.SEM_POST){const r=e.utils.charsToString(n,s,i);let a=o.udtNames.add(r);if(-1===a){if(a=o.udtNames.get(r),-1===a)throw new 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){const 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){const 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){const a=t.SEM_OK;return e===t.SEM_POST&&i.tbsstr.push(o(r,n,s)),a}}},2595:function(e){e.exports=function(){const e="show-rules.js";return function(t=[],r=[],n="index"){const s="showRules";let i=[],o=[];const a=[],c=[],u=t,l=r,d=t.length,h=r.length;let f,p="RULE/UDT NAMES";if(!Array.isArray(t)||!t.length)throw new Error(`${e}:${s}: rules arg must be array with length > 0`);if(!Array.isArray(r))throw new Error(`${e}:${s}: udts arg must be array`);for(f=0;f<d;f+=1)a.push(f);if(i=a.slice(0),i.sort((function(e,t){return u[e].lower<u[t].lower?-1:u[e].lower>u[t].lower?1:0})),h){for(f=0;f<h;f+=1)c.push(f);o=c.slice(0),o.sort((function(e,t){return l[e].lower<l[t].lower?-1:l[e].lower>l[t].lower?1:0}))}if(97===n.charCodeAt(0)){for(p+=" - alphabetical by rule/UDT name\n",f=0;f<d;f+=1)p+=`${f}: ${i[f]}: ${u[i[f]].name}\n`;if(h)for(f=0;f<h;f+=1)p+=`${f}: ${o[f]}: ${l[o[f]].name}\n`}else{for(p+=" - ordered by rule/UDT index\n",f=0;f<d;f+=1)p+=`${f}: ${u[f].name}\n`;if(h)for(f=0;f<h;f+=1)p+=`${f}: ${l[f].name}\n`}return p}}()},74216:function(e,t,r){e.exports=function(){const e="syntax-callbacks.js: ",t=r(43063),n=t.ids;let s;this.callbacks=[],this.callbacks.andop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"AND operator(&) foun
1d - strict ABNF specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.basicelementerr=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1===s.basicError&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Unrecognized SABNF element."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.clsclose=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,s.clsOpen),char:s.clsOpen,msg:"Case-sensitive literal string('...') opened but not closed."}),s.clsOpen=null,s.basicError=!0;break;case n.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,s.clsOpen),char:s.clsOpen,msg:"Case-sensitive string operator('...') found - strict ABNF specified."}),s.clsOpen=null;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.clsopen=function(t,r,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.clsOpen=i;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.clsstring=function(t,r,s,i){switch(t.state){case n.ACTIVE:i.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.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 new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.definedaserror=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Expected '=' or '=/'. Not found."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.file=function(t,r,s,i){switch(t.state){case n.ACTIVE:i.altStack=[],i.repCount=0;break;case n.EMPTY:i.errors.push({line:0,char:0,msg:"grammar file is empty"});break;case n.MATCH:0===i.ruleCount&&i.errors.push({line:0,char:0,msg:"no rules defined"});break;case n.NOMATCH:throw new Error(`${e}synFile: grammar file NOMATCH: design error: should never happen.`);default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.groupclose=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,s.groupOpen),char:s.groupOpen,msg:'Group "(...)" opened but not closed.'}),s=o.altStack.pop(),s.groupError=!0;break;case n.MATCH:s=o.altStack.pop();break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.groupopen=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s={groupOpen:i,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(s);break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.lineenderror=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Unrecognized grammar element or characters."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.lineend=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(1===t.phraseLength&&i.strict){const e=13===r[s]?"CR":"LF";i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:`Line end '${e}' found - strict ABNF specified, only CRLF allowed.`})}break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.notop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"NOT operator(!) found - strict ABNF specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.optionclose=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,s.optionOpen),char:s.optionOpen,msg:'Option "[...]" opened but not closed.'}),s=o.altStack.pop(),s.optionError=!0;break;case n.MATCH:s=o.altStack.pop();break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.optionopen=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s={groupOpen:null,groupError:!1,optionOpen:i,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(s);break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.prosvalclose=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,s.prosValOpen),char:s.prosValOpen,msg:"Prose value operator(<...>) opened but not closed."}),s.basicError=!0,s.prosValOpen=null;break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,s.prosValOpen),char:s.prosValOpen,msg:"Prose value operator(<...>) found. The ABNF syntax is valid, but a parser cannot be generated from this grammar."}),s.prosValOpen=null;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.prosvalopen=function(t,r,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.prosValOpen=i;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.prosvalstring=function(t,r,s,i){switch(t.state){case n.ACTIVE:i.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.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 new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.repetition=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:case n.MATCH:i.repCount+=1;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.rule=function(t,r,i,o){switch(t.state){case n.ACTIVE:o.altStack.length=0,s={groupOpen:null,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(s);break;case n.EMPTY:throw new Error(`${e}synRule: EMPTY: rule cannot be empty`);case n.NOMATCH:break;case n.MATCH:o.ruleCount+=1;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.ruleerror=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Unrecognized SABNF line. Invalid rule, comment or blank line."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.rulenameerror=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Rule names must be alphanum and begin with alphabetic character."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.stringtab=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.stringTabChar=s;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.tlsclose=function(t,r,i,o){switch(t.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,s.tlsOpen),char:s.tlsOpen,msg:'Case-insensitive literal string("...") opened but not closed.'}),s.basicError=!0,s.tlsOpen=null;break;case n.MATCH:s.tlsOpen=null;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.tlsopen=function(t,r,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.tlsOpen=i;break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.tlsstring=function(t,r,s,i){switch(t.state){case n.ACTIVE:i.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.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 new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.udtop=function(r,s,i,o){switch(r.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;
1case n.MATCH:if(o.strict){const e=t.utils.charsToString(s,i,r.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`UDT operator found(${e}) - strict ABNF specified.`})}break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.bkaop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Positive look-behind operator(&&) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Positive look-behind operator(&&) found - apg-lite specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.bknop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Negative look-behind operator(!!) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Negative look-behind operator(!!) found - apg-lite specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.bkrop=function(r,s,i,o){switch(r.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(o.strict){const e=t.utils.charsToString(s,i,r.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`Back reference operator(${e}) found - strict ABNF specified.`})}else if(o.lite){const e=t.utils.charsToString(s,i,r.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`Back reference operator(${e}) found - apg-lite specified.`})}break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.abgop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Beginning of string anchor(%^) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"Beginning of string anchor(%^) found - apg-lite specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}},this.callbacks.aenop=function(t,r,s,i){switch(t.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.strict?i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"End of string anchor(%$) found - strict ABNF specified."}):i.lite&&i.errors.push({line:i.findLine(i.lines,s,i.charsLength),char:s,msg:"End of string anchor(%$) found - apg-lite specified."});break;default:throw new Error(`${e}synFile: unrecognized case.`)}}}},20979:function(e,t,r){const{Buffer:n}=r(48764),s=r(46322),i="UTF8",o="UTF16",a="UTF16BE",c="UTF16LE",u="UTF32",l="UTF32BE",d="UTF32LE",h="UINT7",f="ASCII",p="BINARY",g="UINT8",m="UINT16",y="UINT16LE",b="UINT16BE",w="UINT32",v="UINT32LE",A="UINT32BE",E="ESCAPED",k="STRING",P=function(e,t){const r=function(e){const t={type:"",base64:!1}
1,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===k)throw new TypeError(`type: "${e} "BASE64:" prefix not allowed with type ${k}`);if(n.isBuffer(t))r.data=s.base64.decode(t);else{if("string"!=typeof t)throw new TypeError(`type: "${e} unrecognized data type: typeof(data): ${typeof t}`);{const e=n.from(t,"ascii");r.data=s.base64.decode(e)}}}else r.data=t;switch(r.type){case i:!function(e){e.type=i;const t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)}(r);break;case o:case a:case c:!function(e){const 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=c,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 new TypeError(`src type: "${a}" specified but BOM is for "${c}"`);break;case c:if(e.type=c,t.length>=0){if(254===t[0]&&255===t[1])throw new TypeError(`src type: "${c}" specified but BOM is for "${a}"`);255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw new TypeError(`UTF16 BOM: src type "${e.type}" unrecognized`)}}(r);break;case u:case l:case d:!function(e){const t=e.data;switch(e.bom=0,e.type){case u:e.type=l,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 l:if(e.type=l,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 new TypeError(`src type: ${l} 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 new TypeError(`src type: "${d}" specified but BOM is for "${l}"`);255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw new TypeError(`UTF32 BOM: src type "${e.type}" unrecognized`)}}(r);break;case m:r.type=b;break;case w:r.type=A;break;case f:r.type=h;break;case p:r.type=g;break;case h:case g:case y:case b:case v:case A:case k:case E:break;default:throw new TypeError(`type: "${e}" not recognized`)}if(r.type===k){if("string"!=typeof r.data)throw new TypeError(`type: "${e}" but data is not a string`)}else if(!n.isBuffer(r.data))throw new TypeError(`type: "${e}" but data is not a Buffer`);return r},x=function(e,t){switch(e){case i:return s.utf8.encode(t);case a:return s.utf16be.encode(t);case c:return s.utf16le.encode(t);case l: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 A:return s.uint32be.encode(t);case v:return s.uint32le.encode(t);case k:return s.string.encode(t);case E:return s.escaped.encode(t);default:throw new TypeError(`encode type "${e}" not recognized`)}};t.decode=function(e,t){return function(e){switch(e.type){case i:return s.utf8.decode(e.data,e.bom);case c:return s.utf16le.decode(e.data,e.bom);case a:return s.utf16be.decode(e.data,e.bom);case l: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 A:return s.uint32be.decode(e.data);case v:return s.uint32le.decode(e.data);case k:return s.string.decode(e.data);case E:return s.escaped.decode(e.data);default:throw new TypeError(`decode type "${e.type}" not recognized`)}}(P(e,t))},t.encode=function(e,t){let r,n;const P=function(e,t){if(!Array.isArray(t))throw new TypeError('dst chars: not array: "'+typeof t);if("string"!=typeof e)throw new TypeError('dst type: not string: "'+typeof e);const r=function(e){let t,r;const n={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(r=e,t=e.slice(0,5),"CRLF:"===t){n.crlf=!0,r=e.slice(5);break}if(t=e.slice(0,3),"LF:"===t){n.lf=!0,r=e.slice(3);break}break}return t=r.split(":"),1===t.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 c:case l:case d:case h:case g:case y:case b:case v:case A:case E:break;case k:if(r.base64)throw new TypeError(`":BASE64" suffix not allowed with type ${k}`);break;case f:r.type=h;break;case p:r.type=g;break;case o:r.type=a;break;case u:r.type=l;break;case m:r.type=b;break;case w:r.type=A;break;default:throw new TypeError(`dst type unrecognized: "${e}" : must have form [crlf:|lf:]type[:base64]`)}return r}(e,t);return P.crlf?(r=s.lineEnds.crlf(t),n=x(P.type,r)):P.lf?(r=s.lineEnds.lf(t),n=x(P.type,r)):n=x(P.type,t),P.base64&&(n=s.base64.encode(n)),n};t.convert=function(e,r,n){return t.encode(n,t.decode(e,r))}},46322:function(e,t,r){const{Buffer:n}=r(48764),s=4294967292,i=4294967293,o=4294967294,a=4294967295,c=[0,1,3,7,15,31,63,127,255,511,1023],u=["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","5
15","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"],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),d=[];l.forEach((e=>{d.push(e.charCodeAt(0))})),t.utf8={encode(e){const t=[];return e.forEach((e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&c[5])),t.push(128+(e&c[6]));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]));else{if(!(e>=65536&&e<=1114111))throw new RangeError(`utf8.encode: character out of range: char: ${e}`);{const r=e>>16&c[5];t.push(240+(r>>2)),t.push(128+((r&c[2])<<4)+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]))}}})),n.from(t)},decode(e,t){function r(e,t){if(128!=(192&t))return i;const r=((e&c[5])<<6)+(t&c[6]);return r<128?s:r}function n(e,t,r){if(128!=(192&r)||128!=(192&t))return i;const n=((e&c[4])<<12)+((t&c[6])<<6)+(r&c[6]);return n<2048?s:n>=55296&&n<=57343?o:n}function u(e,t,r,n){if(128!=(192&n)||128!=(192&r)||128!=(192&t))return i;const a=(((e&c[3])<<2)+(t>>4&c[2])<<16)+((t&c[4])<<12)+((r&c[6])<<6)+(n&c[6]);return a<65536?s:a>1114111?o:a}let l,d,h,f,p,g;const m=e.length;let y=t?3:0;const b=[];for(;y<m;){d=e[y],l=a;const t=!0;for(;t;){if(d>=0&&d<=127){l=d,g=1;break}if(h=y+1,h<m&&d>=194&&d<=223){l=r(d,e[h]),g=2;break}if(f=y+2,f<m&&d>=224&&d<=239){l=n(d,e[h],e[f]),g=3;break}if(p=y+3,p<m&&d>=240&&d<=244){l=u(d,e[h],e[f],e[p]),g=4;break}break}if(l>1114111){const e=`byte[${y}]`;if(l===a)throw new RangeError(`utf8.decode: ill-formed UTF8 byte sequence found at: ${e}`);if(l===i)throw new RangeError(`utf8.decode: illegal trailing byte found at: ${e}`);if(l===o)throw new RangeError(`utf8.decode: code point out of range found at: ${e}`);if(l===s)throw new RangeError(`utf8.decode: non-shortest form found at: ${e}`);throw new RangeError(`utf8.decode: unrecognized error found at: ${e}`)}b.push(l),y+=g}return b}},t.utf16be={encode(e){const t=[];let r,s,i;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r>>8&c[8]),t.push(r&c[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16be.encode: UTF16BE value out of range: char[${n}]: ${r}`);i=r-65536,s=55296+(i>>10),i=56320+(i&c[10]),t.push(s>>8&c[8]),t.push(s&c[8]),t.push(i>>8&c[8]),t.push(i&c[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16be.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let s,i,o,a,c,u,l=t?2:0,d=0;for(;l<n;){const t=!0;for(;t;){if(o=l+1,o<n){if(c=(e[l]<<8)+e[o],c<55296||c>57343){s=c,i=2;break}if(a=l+3,a<n&&(u=(e[l+2]<<8)+e[a],c<=56319&&u>=56320&&u<=57343)){s=65536+(c-55296<<10)+(u-56320),i=4;break}}throw new RangeError(`utf16be.decode: ill-formed UTF16BE byte sequence found: byte[${l}]`)}r[d++]=s,l+=i}return r}},t.utf16le={encode(e){const t=[];let r,s,i;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r&c[8]),t.push(r>>8&c[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16le.encode: UTF16LE value out of range: char[${n}]: ${r}`);i=r-65536,s=55296+(i>>10),i=56320+(i&c[10]),t.push(s&c[8]),t.push(s>>8&c[8]),t.push(i&c[8]),t.push(i>>8&c[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16le.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let s,i,o,a,c,u,l=t?2:0,d=0;for(;l<n;){const t=!0;for(;t;){if(o=l+1,o<n){if(c=(e[o]<<8)+e[l],c<55296||c>57343){s=c,i=2;break}if(a=l+3,a<n&&(u=(e[a]<<8)+e[l+2],c<=56319&&u>=56320&&u<=57343)){s=65536+(c-55296<<10)+(u-56320),i=4;break}}throw new RangeError(`utf16le.decode: ill-formed UTF16LE byte sequence found: byte[${l}]`)}r[d++]=s,l+=i}return r}},t.utf32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32be.encode: UTF32BE character code out of range: char[${r/4}]: ${e}`);t[r++]=e>>24&c[8],t[r++]=e>>16&c[8],t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32be.decode: UTF32BE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.utf32le={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${r/4}]: ${e}`);t[r++]=e&c[8],t[r++]=e>>8&c[8],t[r++]=e>>16&c[8],t[r++]=e>>24&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.uint7={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.encode: UINT7 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.decode: UINT7 character code out of range: byte[${r}]: ${e[r]}`);t[r]=e[r]}return t}},t.uint8={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>255)throw new RangeError(`uint8.encode: UINT8 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1)t[r]=e[r];return t}},t.uint16be={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach((e=>{if(e>65535)throw new RangeError(`uint16be.encode: UINT16BE character code out of range: char[${r/2}]: ${e}`);t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},t.uint16le={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach((e=>{if(e>65535)throw new RangeError(`uint16le.encode: UINT16LE character code out of range: char[${r/2}]: ${e}`);t[r++]=e&c[8],t[r++]=e>>8&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},t.uint32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{t[r++]=e>>24&c[8],t[r++]=e>>16&c[8],t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ${e.length}`);const 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){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{t[r++]=e&c[8],t[r++]=e>>8&c[8],t[r++]=e>>16&c[8],t[r++]=e>>24&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ${e.length}`);const 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){return t.utf16le.encode(e).toString("utf16le")},decode(e){return t.utf16le.decode(n.from(e,"utf16le"),0)}},t.escaped={encode(e){const t=[];for(let r=0;r<e.length;r+=1){const s=e[r];if(96===s)t.push(s),t.push(s);else if(10===s)t.push(s);else if(s>=32&&s<=126)t.push(s);else{let e="";if(s>=0&&s<=31)e+=`\`x${u[s]}`;else if(s>=127&&s<=255)e+=`\`x${u[s]}`;else if(s>=256&&s<=65535)e+=`\`u${u[s>>8&c[8]]}${u[s&c[8]]}`;else{if(!(s>=65536&&s<=4294967295))throw new Error("escape.encode(char): char > 0xffffffff not allowed");{e+="`u{";const t=s>>24&c[8];t>0&&(e+=u[t]),e+=`${u[s>>16&c[8]]+u[s>>8&c[8]]+u[s&c[8]]}}`}}n.from(e).forEach((e=>{t.push(e)}))}}return n.from(t)},decode(e){function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e,r,n){const s={char:null,nexti:e+2,error:!0};if(e+1<r&&t(n[e])&&t(n[e+1])){const t=String.fromCodePoint(n[e],n[e+1]);s.char=parseInt(t,16),Number.isNaN(s.char)||(s.error=!1)}return s}function n(e,r,n){const s={char:null,nexti:e+4,error:!0};if(e+3<r&&t(n[e])&&t(n[e+1])&&t(n[e+2])&&t(n[e+3])){const t=String.fromCodePoint(n[e],n[e+1],n[e+2],n[e+3]);s.char=parseInt(t,16),Number.isNaN(s.char)||(s.error=!1)}return s}function s(e,r,n){const s={char:null,nexti:e+4,error:!0};let i="";for(;e<r&&t(n[e]);)i+=String.fromCodePoint(n[e]),e+=1;return s.char=parseInt(i,16),125!==n[e]||Number.isNaN(s.char)||(s.error=!1),s.nexti=e+1,s}const i=[],o=e.length;let a,c,u,l=0;for(;l<o;){const t=!0;for(;t;){if(u=!0,96!==e[l]){i.push(e[l]),l+=1,u=!1;break}if(a=l+1,a>=o)break;if(96===e[a]){i.push(96),l+=2,u=!1;break}if(120===e[a]){if(c=r(a+1,o,e),c.error)break;
1i.push(c.char),l=c.nexti,u=!1;break}if(117===e[a]){if(123===e[a+1]){if(c=s(a+2,o,e),c.error)break;i.push(c.char),l=c.nexti,u=!1;break}if(c=n(a+1,o,e),c.error)break;i.push(c.char),l=c.nexti,u=!1;break}break}if(u)throw new Error(`escaped.decode: ill-formed escape sequence at buf[${l}]`)}return i}};const h=10;t.lineEnds={crlf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===h?r+=2:r+=1,t.push(13),t.push(h);break;case h:t.push(13),t.push(h),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==h&&(t.push(13),t.push(h)),t},lf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===h?r+=2:r+=1,t.push(h);break;case h:t.push(h),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==h&&t.push(h),t}},t.base64={encode(e){if(0===e.length)return n.alloc(0);let t,r,s,i=e.length%3;i=i>0?3-i:0;let o=(e.length+i)/3;const a=n.alloc(4*o);i>0&&(o-=1),t=0,r=0;for(let n=0;n<o;n+=1)s=e[t++]<<16,s+=e[t++]<<8,s+=e[t++],a[r++]=d[s>>18&c[6]],a[r++]=d[s>>12&c[6]],a[r++]=d[s>>6&c[6]],a[r++]=d[s&c[6]];return 0===i?a:1===i?(s=e[t++]<<16,s+=e[t]<<8,a[r++]=d[s>>18&c[6]],a[r++]=d[s>>12&c[6]],a[r++]=d[s>>6&c[6]],a[r]=d[64],a):2===i?(s=e[t]<<16,a[r++]=d[s>>18&c[6]],a[r++]=d[s>>12&c[6]],a[r++]=d[64],a[r]=d[64],a):void 0},decode(e){if(0===e.length)return n.alloc(0);const t=function(e){const t=[];let r=0;for(let n=0;n<e.length;n+=1){const s=e[n],i=!0;for(;i&&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 new RangeError(`base64.decode: invalid character buf[${n}]: ${s}`)}}if(t.length%4>0)throw new 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 new 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 new RangeError("base64.decode: two tail characters found: not last characters");break;default:throw new RangeError(`base64.decode: more than two tail characters found: ${r}`)}return{tail:r,buf:n.from(t)}}(e),{tail:r}=t,s=t.buf;let i,o,a,u=s.length/4;const l=n.alloc(3*u-r);r>0&&(u-=1),o=0,i=0;for(let e=0;e<u;e+=1)a=s[i++]<<18,a+=s[i++]<<12,a+=s[i++]<<6,a+=s[i++],l[o++]=a>>16&c[8],l[o++]=a>>8&c[8],l[o++]=a&c[8];return 1===r&&(a=s[i++]<<18,a+=s[i++]<<12,a+=s[i]<<6,l[o++]=a>>16&c[8],l[o]=a>>8&c[8]),2===r&&(a=s[i++]<<18,a+=s[i++]<<12,l[o]=a>>16&c[8]),l},toString(e){if(e.length%4>0)throw new RangeError(`base64.toString: input buffer length not multiple of 4: ${e.length}`);let t="",r=0;function n(e,n,s,i){switch(r){case 76:t+=`\r\n${e}${n}${s}${i}`,r=4;break;case 75:t+=`${e}\r\n${n}${s}${i}`,r=3;break;case 74:t+=`${e+n}\r\n${s}${i}`,r=2;break;case 73:t+=`${e+n+s}\r\n${i}`,r=1;break;default:t+=e+n+s+i,r+=4}}for(let t=0;t<e.length;t+=4){for(let r=t;r<t+4;r+=1)if(!((s=e[r])>=65&&s<=90||s>=97&&s<=122||s>=48&&s<=57||43===s||47===s||61===s))throw new RangeError(`base64.toString: buf[${r}]: ${e[r]} : not valid base64 character code`);n(String.fromCharCode(e[t]),String.fromCharCode(e[t+1]),String.fromCharCode(e[t+2]),String.fromCharCode(e[t+3]))}var s;return t}}},90580:function(e,t,r){e.exports=function(){const e=r(58276),t=r(8544),n=this;let s=null,i=null,o=null,a=0;const c=[],u=[],l=[],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;l.length=0,d.length=0,c.length=0,a=0,s=e,i=t,o=r;const 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(a=s.length+i.length,h=0;h<a;h+=1)c[h]=!1,u[h]=null;for(const e in n.callbacks){const t=e.toLowerCase();if(h=f.indexOf(t),h<0)throw new Error(`ast.js: init: node '${e}' not a rule or udt name`);"function"==typeof n.callbacks[e]&&(c[h]=!0,u[h]=n.callbacks[e]),!0===n.callbacks[e]&&(c[h]=!0)}},this.ruleDefined=function(e){return!1!==c[e]},this.udtDefined=function(e){return!1!==c[s.length+e]},this.down=function(t,r){const n=d.length;return l.push(n),d.push({name:r,thisIndex:n,thatIndex:null,state:e.SEM_PRE,callbackIndex:t,phraseIndex:null,phraseLength:null,stack:l.length}),n},this.up=function(t,r,n,s){const i=d.length,o=l.pop();return d.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:l.length}),d[o].thatIndex=i,d[o].phraseIndex=n,d[o].phraseLength=s,i},this.translate=function(t){let r,n,s;for(let i=0;i<d.length;i+=1)s=d[i],n=u[s.callbackIndex],s.state===e.SEM_PRE?null!==n&&(r=n(e.SEM_PRE,o,s.phraseIndex,s.phraseLength,t),r===e.SEM_SKIP&&(i=s.thatIndex)):null!==n&&n(e.SEM_POST,o,s.phraseIndex,s.phraseLength,t)},this.setLength=function(e){d.length=e,l.length=e>0?d[e-1].stack: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){const 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"?>\n',i+=`<root nodes="${d.length/2}" characters="${o.length}">\n`,i+=`\x3c!-- input string, ${s} --\x3e\n`,i+=h(a+2),i+=n(o),i+="\n",d.forEach((t=>{t.state===e.SEM_PRE?(a+=1,i+=h(a),i+=`<node name="${t.name}" index="${t.phraseIndex}" length="${t.phraseLength}">\n`,i+=h(a+2),i+=n(o,t.phraseIndex,t.phraseLength),i+="\n"):(i+=h(a),i+=`</node>\x3c!-- name="${t.name}" --\x3e\n`,a-=1)})),i+="</root>\n",i},this.phrases=function(){const t={};let r,n;for(r=0;r<d.length;r+=1)n=d[r],n.state===e.SEM_PRE&&(Array.isArray(t[n.name])||(t[n.name]=[]),t[n.name].push({index:n.phraseIndex,length:n.phraseLength}));return t}}},42761:function(e){e.exports=function(){let e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw new Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return e+=1,(e+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);else for(let n=e-t+1;n<=e;n+=1){r((n+t)%t,n)}}}},91593: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}
1\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}\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}
1\ntable.apg-attrs a:hover {\n  color: #8caae6 !important;\n}\n"}},58276: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}},43063:function(e,t,r){e.exports={ast:r(90580),circular:r(42761),ids:r(58276),parser:r(48629),stats:r(35403),trace:r(99290),utils:r(8544),emitcss:r(91593),style:r(93932)}},48629:function(e,t,r){e.exports=function(){const e=r(58276),t=r(8544),n="parser.js: ",s=this;let i;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let o,a,c,u,l=null,d=null,h=0,f=0,p=0,g=null,m=null,y=null,b=null,w=null,v=0,A=1/0,E=1/0;const k=function(t,r,s){const o=`${n}evaluateRule(): `;if(t>=y.length)throw new Error(`${o}rule index: ${t} out of range`);if(r>=c)throw new Error(`${o}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:e.RNM,index:t}),i(a,r,s),l.pop()},P=function(t,r,s){const o=`${n}evaluateUdt(): `;if(t>=b.length)throw new Error(`${o}udt index: ${t} out of range`);if(r>=c)throw new Error(`${o}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:e.UDT,empty:b[t].empty,index:t}),i(a,r,s),l.pop()},x=function(){h=0,f=0,p=0,v=0,u=[{lookAround:e.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],y=null,b=null,d=null,o=0,a=0,c=0,g=null,m=null,w=null,l=null},O=function(){const e=[];this.push=function(){e.push(function(){const t=e[e.length-1],r={};for(const e in t)r[e]=t[e];return r}())},this.pop=function(t){let r=t;if(r||(r=e.length-1),r<1||r>e.length)throw new Error(`${n}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(){const 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)}()},S=function(){const t=this;this.state=e.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=u[u.length-1],this.uFrame=new O,this.pFrame=new O,this.evaluateRule=k,this.evaluateUdt=P,this.refresh=function(){t.state=e.ACTIVE,t.phraseLength=0,t.lookAround=u[u.length-1]}},C=function(){return u[u.length-1]},T=function(){return u.length>1},B=function(e,r,s){const i=`${n}initializeInputChars(): `;let u=e,l=r,h=s;if(void 0===u)throw new Error(`${i}input string is undefined`);if(null===u)throw new Error(`${i}input string is null`);if("string"==typeof u)u=t.stringToChars(u);else if(!Array.isArray(u))throw new Error(`${i}input string is not a string or array`);if(u.length>0&&"number"!=typeof u[0])throw new Error(`${i}input string not an array of integers`);if("number"!=typeof l)l=0;else if(l=Math.floor(l),l<0||l>u.length)throw new Error(`${i}input beginning index out of range: ${l}`);if("number"!=typeof h)h=u.length-l;else if(h=Math.floor(h),h<0||h>u.length-l)throw new Error(`${i}input length out of range: ${h}`);d=u,o=l,a=h,c=o+a};this.setMaxTreeDepth=function(e){if("number"!=typeof e)throw new Error(`parser: max tree depth must be integer > 0: ${e}`);if(A=Math.floor(e),A<=0)throw new Error(`parser: max tree depth must be integer > 0: ${e}`)},this.setMaxNodeHits=function(e){if("number"!=typeof e)throw new Error(`parser: max node hits must be integer > 0: ${e}`);if(E=Math.floor(e),E<=0)throw new Error(`parser: max node hits must be integer > 0: ${e}`)};const _=function(t,r,u){let h;const A=`${n}parse(): `;!function(e){const t=`${n}initializeGrammar(): `;if(!e)throw new Error(`${t}grammar object undefined`);if("grammarObject"!==e.grammarObject)throw new Error(`${t}bad grammar object`);y=e.rules,b=e.udts}(t);const E=function(e){const t=`${n}initializeStartRule(): `;let r=null;if("number"==typeof e){if(e>=y.length)throw new Error(`${t}start rule index too large: max: ${y.length}: index: ${e}`);r=e}else{if("string"!=typeof e)throw new Error(`${t}type of start rule '${typeof e}' not recognized`);{const 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 new Error(`${t}start rule name '${e}' not recognized`)}}return r}(r);!function(){const e=`${n}initializeCallbacks(): `;let t,r;for(g=[],m=[],t=0;t<y.length;t+=1)g[t]=null;for(t=0;t<b.length;t+=1)m[t]=null;const i=[];for(t=0;t<y.length;t+=1)i.push(y[t].lower);for(t=0;t<b.length;t+=1)i.push(b[t].lower);
1for(const n in s.callbacks){if(t=i.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(r=s.callbacks[n],r||(r=null),"function"!=typeof r&&null!==r)throw new Error(`${e}syntax callback[${n}] must be function reference or 'false' (false/null/undefined/etc.)`);t<y.length?g[t]=r:m[t-y.length]=r}for(t=0;t<b.length;t+=1)if(null===m[t])throw new Error(`${e}all UDT callbacks must be defined. UDT callback[${b[t].lower}] not a function reference`)}(),function(){const e=`${n}initializeTrace(): `;for(;;){if(void 0===s.trace){s.trace=null;break}if(null===s.trace)break;if("traceObject"!==s.trace.traceObject)throw new Error(`${e}trace object not recognized`);break}null!==s.trace&&s.trace.init(y,b,d)}(),function(){const e=`${n}initializeStats(): `;for(;;){if(void 0===s.stats){s.stats=null;break}if(null===s.stats)break;if("statsObject"!==s.stats.statsObject)throw new Error(`${e}stats object not recognized`);break}null!==s.stats&&s.stats.init(y,b)}(),function(){const e=`${n}initializeAst(): `;for(;;){if(void 0===s.ast){s.ast=null;break}if(null===s.ast)break;if("astObject"!==s.ast.astObject)throw new Error(`${e}ast object not recognized`);break}null!==s.ast&&s.ast.init(y,b,d)}();const k=new S;switch(null!=u&&(w=u),l=[{type:e.RNM,index:E}],i(0,o,k),l=null,k.state){case e.ACTIVE:throw new Error(`${A}final state should never be 'ACTIVE'`);case e.NOMATCH:h=!1;break;case e.EMPTY:case e.MATCH:h=k.phraseLength===a;break;default:throw new Error("unrecognized state")}return{success:h,state:k.state,length:a,matched:k.phraseLength,maxMatched:v,maxTreeDepth:f,nodeHits:p,inputLength:d.length,subBegin:o,subEnd:c,subLength:a}};this.parseSubstring=function(e,t,r,n,s,i){return x(),B(r,n,s),_(e,t,i)},this.parse=function(e,t,r,n){return x(),B(r,0,r.length),_(e,t,n)};const I=function(t,r,n){const s=l[t];for(let t=0;t<s.children.length&&(i(s.children[t],r,n),n.state===e.NOMATCH);t+=1);},N=function(t,r,s,i){if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!0!==i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},R=function(t,r,n){let o,a,u,h,f,p;const m=l[t],b=y[m.index],v=g[b.index],A=!T();if(A&&(a=s.ast&&s.ast.ruleDefined(m.index),a&&(o=s.ast.getLength(),s.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 O),null===v)u=l,l=b.opcodes,i(0,r,n),l=u;else{const t=c-r;n.ruleIndex=b.index,v(n,d,r,w),N(b,n,t,!0),n.state===e.ACTIVE&&(u=l,l=b.opcodes,i(0,r,n),l=u,n.ruleIndex=b.index,v(n,d,r,w),N(b,n,t,!1))}A&&(a&&(n.state===e.NOMATCH?s.ast.setLength(o):s.ast.up(m.index,b.name,r,n.phraseLength)),n.pFrame=p,n.state===e.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)))},M=function(t,r,i){let o,a,u,h,f,p;const g=l[t],v=b[g.index];i.UdtIndex=v.index;const A=!T();A&&(u=s.ast&&s.ast.udtDefined(g.index),u&&(a=y.length+g.index,o=s.ast.getLength(),s.ast.down(a,v.name)),h=i.uFrame.length(),f=i.pFrame.length(),i.uFrame.push(),i.pFrame.push(),p=i.pFrame,i.pFrame=new O);const E=c-r;m[g.index](i,d,r,w),function(t,r,s){if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}): callback function return error. ACTIVE state not allowed.`);case e.EMPTY:if(!1===t.empty)throw new Error(`${n}opUDT(${t.name}): callback function return error. May not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!1===t.empty)throw new Error(`${n}opUDT(${t.name}): callback function return error. May not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}}(v,i,E),A&&(u&&(i.state===e.NOMATCH?s.ast.setLength(o):s.ast.up(a,v.name,r,i.p
1hraseLength)),i.pFrame=p,i.state===e.NOMATCH?(i.uFrame.pop(h),i.pFrame.pop(f)):v.isBkr&&(i.pFrame.savePhrase(v.lower,r,i.phraseLength),i.uFrame.savePhrase(v.lower,r,i.phraseLength)))},L=function(t,r,n){u.push({lookAround:e.LOOKAROUND_AHEAD,anchor:r,charsEnd:c,charsLength:a}),c=d.length,a=d.length-o,i(t+1,r,n);const s=u.pop();switch(c=s.charsEnd,a=s.charsLength,n.phraseLength=0,n.state){case e.EMPTY:case e.MATCH:n.state=e.EMPTY;break;case e.NOMATCH:n.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${n.state}`)}},F=function(t,r,n){u.push({lookAround:e.LOOKAROUND_AHEAD,anchor:r,charsEnd:c,charsLength:a}),c=d.length,a=d.length-o,i(t+1,r,n);const s=u.pop();switch(c=s.charsEnd,a=s.charsLength,n.phraseLength=0,n.state){case e.EMPTY:case e.MATCH:n.state=e.NOMATCH;break;case e.NOMATCH:n.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${n.state}`)}},D=function(t,r,n){n.state=e.NOMATCH,n.phraseLength=0,n.state=0===r?e.EMPTY:e.NOMATCH},U=function(t,r,n){n.state=e.NOMATCH,n.phraseLength=0,n.state=r===d.length?e.EMPTY:e.NOMATCH},j=function(t,r,n){switch(u.push({lookAround:e.LOOKAROUND_BEHIND,anchor:r}),i(t+1,r,n),u.pop(),n.phraseLength=0,n.state){case e.EMPTY:case e.MATCH:n.state=e.EMPTY;break;case e.NOMATCH:n.state=e.NOMATCH;break;default:throw new Error(`opBKA: invalid state ${n.state}`)}},H=function(t,r,n){switch(u.push({lookAround:e.LOOKAROUND_BEHIND,anchor:r}),i(t+1,r,n),u.pop(),n.phraseLength=0,n.state){case e.EMPTY:case e.MATCH:n.state=e.NOMATCH;break;case e.NOMATCH:n.state=e.EMPTY;break;default:throw new Error(`opBKN: invalid state ${n.state}`)}};i=function(t,r,n){let o=!0;const a=l[t];if(p+=1,p>E)throw new Error(`parser: maximum number of node hits exceeded: ${E}`);if(h+=1,h>f&&(f=h,f>A))throw new Error(`parser: maximum parse tree depth exceeded: ${A}`);if(n.refresh(),null!==s.trace){const e=C();s.trace.down(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}if(u[u.length-1].lookAround===e.LOOKAROUND_BEHIND)switch(a.type){case e.ALT:I(t,r,n);break;case e.CAT:!function(t,r,n){let o,a,c,u;const d=l[t],h=n.uFrame.length(),f=n.pFrame.length();s.ast&&(a=s.ast.getLength()),o=!0,c=r,u=0;for(let t=d.children.length-1;t>=0;t-=1)if(i(d.children[t],c,n),c-=n.phraseLength,u+=n.phraseLength,n.state===e.NOMATCH){o=!1;break}o?(n.state=0===u?e.EMPTY:e.MATCH,n.phraseLength=u):(n.state=e.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),s.ast&&s.ast.setLength(a))}(t,r,n);break;case e.REP:!function(t,r,n){let o,a,c,u;const d=l[t];a=r,c=0,u=0;const h=n.uFrame.length(),f=n.pFrame.length();for(s.ast&&(o=s.ast.getLength());!(a<=0)&&(i(t+1,a,n),n.state!==e.NOMATCH)&&n.state!==e.EMPTY&&(u+=1,c+=n.phraseLength,a-=n.phraseLength,u!==d.max););n.state===e.EMPTY||u>=d.min?(n.state=0===c?e.EMPTY:e.MATCH,n.phraseLength=c):(n.state=e.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),s.ast&&s.ast.setLength(o))}(t,r,n);break;case e.RNM:R(t,r,n);break;case e.UDT:M(t,r,n);break;case e.AND:L(t,r,n);break;case e.NOT:F(t,r,n);break;case e.TRG:!function(t,r,n){const s=l[t];if(n.state=e.NOMATCH,n.phraseLength=0,r>0){const t=d[r-1];s.min<=t&&t<=s.max&&(n.state=e.MATCH,n.phraseLength=1)}}(t,r,n);break;case e.TBS:!function(t,r,n){let s;const i=l[t];n.state=e.NOMATCH;const o=i.string.length,a=r-o;if(a>=0){for(s=0;s<o;s+=1)if(d[a+s]!==i.string[s])return;n.state=e.MATCH,n.phraseLength=o}}(t,r,n);break;case e.TLS:!function(t,r,n){let s;const i=l[t];n.state=e.NOMATCH;const o=i.string.length;if(0===o)return void(n.state=e.EMPTY);const a=r-o;if(a>=0){for(let e=0;e<o;e+=1)if(s=d[a+e],s>=65&&s<=90&&(s+=32),s!==i.string[e])return;n.state=e.MATCH,n.phraseLength=o}}(t,r,n);break;case e.BKR:!function(t,r,n){let s,i,o,a;const c=l[t];n.state=e.NOMATCH,n.phraseLength=0,a=c.index<y.length?y[c.index].lower:b[c.index-y.length].lower;const u=c.bkrMode===e.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),h=c.bkrCase===e.BKR_MODE_CI;if(null===u)return;const f=u.phraseIndex,p=u.phraseLength;if(0===p)return n.state=e.EMPTY,void(n.phraseLength=0);const g=r-p;if(g>=0){if(h){for(s=0;s<p;s+=1)if(i=d[g+s],o=d[f+s],i>=65&&i<=90&&(i+=32),o>=65&&o<=90&&(o+=32),i!==o)return;n.state=e.MATCH,n.phraseLength=p}else for(s=0;s<p;s+=1)if(i=d[g+s],o=d[f+s],i!==o)return;n.state=e.MATCH,n.phraseLength=p}}(t,r,n);break;case e.BKA:j(t,r,n);break;case e.BKN:H(t,r,n);break;case e.ABG:D(0,r,n);break;case e.AEN:U(0,r,n);break;default:o=!1}else switch(a.type){case e.ALT:I(t,r,n);break;case e.CAT:!function(t,r,n){let o,a,c,u;const d=l[t],h=n.uFrame.length(),f=n.pFrame.length();
1s.ast&&(a=s.ast.getLength()),o=!0,c=r,u=0;for(let t=0;t<d.children.length;t+=1){if(i(d.children[t],c,n),n.state===e.NOMATCH){o=!1;break}c+=n.phraseLength,u+=n.phraseLength}o?(n.state=0===u?e.EMPTY:e.MATCH,n.phraseLength=u):(n.state=e.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),s.ast&&s.ast.setLength(a))}(t,r,n);break;case e.REP:!function(t,r,n){let o,a,u,d;const h=l[t];if(0===h.max)return n.state=e.EMPTY,void(n.phraseLength=0);a=r,u=0,d=0;const f=n.uFrame.length(),p=n.pFrame.length();for(s.ast&&(o=s.ast.getLength());!(a>=c)&&(i(t+1,a,n),n.state!==e.NOMATCH)&&n.state!==e.EMPTY&&(d+=1,u+=n.phraseLength,a+=n.phraseLength,d!==h.max););n.state===e.EMPTY||d>=h.min?(n.state=0===u?e.EMPTY:e.MATCH,n.phraseLength=u):(n.state=e.NOMATCH,n.phraseLength=0,n.uFrame.pop(f),n.pFrame.pop(p),s.ast&&s.ast.setLength(o))}(t,r,n);break;case e.RNM:R(t,r,n);break;case e.UDT:M(t,r,n);break;case e.AND:L(t,r,n);break;case e.NOT:F(t,r,n);break;case e.TRG:!function(t,r,n){const s=l[t];n.state=e.NOMATCH,r<c&&s.min<=d[r]&&d[r]<=s.max&&(n.state=e.MATCH,n.phraseLength=1)}(t,r,n);break;case e.TBS:!function(t,r,n){let s;const i=l[t],o=i.string.length;if(n.state=e.NOMATCH,r+o<=c){for(s=0;s<o;s+=1)if(d[r+s]!==i.string[s])return;n.state=e.MATCH,n.phraseLength=o}}(t,r,n);break;case e.TLS:!function(t,r,n){let s,i;const o=l[t];n.state=e.NOMATCH;const a=o.string.length;if(0!==a){if(r+a<=c){for(s=0;s<a;s+=1)if(i=d[r+s],i>=65&&i<=90&&(i+=32),i!==o.string[s])return;n.state=e.MATCH,n.phraseLength=a}}else n.state=e.EMPTY}(t,r,n);break;case e.BKR:!function(t,r,n){let s,i,o,a;const u=l[t];n.state=e.NOMATCH,a=u.index<y.length?y[u.index].lower:b[u.index-y.length].lower;const h=u.bkrMode===e.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),f=u.bkrCase===e.BKR_MODE_CI;if(null===h)return;const p=h.phraseIndex,g=h.phraseLength;if(0!==g){if(r+g<=c){if(f){for(s=0;s<g;s+=1)if(i=d[r+s],o=d[p+s],i>=65&&i<=90&&(i+=32),o>=65&&o<=90&&(o+=32),i!==o)return;n.state=e.MATCH,n.phraseLength=g}else for(s=0;s<g;s+=1)if(i=d[r+s],o=d[p+s],i!==o)return;n.state=e.MATCH,n.phraseLength=g}}else n.state=e.EMPTY}(t,r,n);break;case e.BKA:j(t,r,n);break;case e.BKN:H(t,r,n);break;case e.ABG:D(0,r,n);break;case e.AEN:U(0,r,n);break;default:o=!1}if(!T()&&r+n.phraseLength>v&&(v=r+n.phraseLength),null!==s.stats&&s.stats.collect(a,n),null!==s.trace){const e=C();s.trace.up(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}return h-=1,o}}},35403:function(e,t,r){e.exports=function(){const e=r(58276),t=r(8544),n=r(93932);let s=[],i=[];const o=[];let a;const c=[],u=[];this.statsObject="statsObject";const l=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:l(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(t,r){switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`stats.js: collect(): incStat(): unrecognized state: ${r}`)}},g=function(e,t){let r="";return r+="<tr>",r+=`<td class="${n.CLASS_ACTIVE}">${e}</td>`,r+=`<td class="${n.CLASS_EMPTY}">${t.empty}</td>`,r+=`<td class="${n.CLASS_MATCH}">${t.match}</td>`,r+=`<td class="${n.CLASS_NOMATCH}">${t.nomatch}</td>`,r+=`<td class="${n.CLASS_ACTIVE}">${t.total}</td>`,r+="</tr>\n",r},m=function(){let t="";return t+=g("ALT",o[e.ALT]),t+=g("CAT",o[e.CAT]),t+=g("REP",o[e.REP]),t+=g("RNM",o[e.RNM]),t+=g("TRG",o[e.TRG]),t+=g("TBS",o[e.TBS]),t+=g("TLS",o[e.TLS]),t+=g("UDT",o[e.UDT]),t+=g("AND",o[e.AND]),t+=g("NOT",o[e.NOT]),t+=g("BKR",o[e.BKR]),t+=g("BKA",o[e.BKA]),t+=g("BKN",o[e.BKN]),t+=g("ABG",o[e.ABG]),t+=g("AEN",o[e.AEN]),t+=g("totals",a),t},y=function(){let e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>rules</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<s.length;t+=1)c[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${c[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${c[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${c[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${c[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${c[t].total}</td>`,e+="</tr>\n");if(i.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<i.length;t+=1)u[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${u[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${u[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${u[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${u[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${u[t].total}</td>`,e+="</tr>\n")}return e};this.validate=function(e){let t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(t,r){s=t,i=r,function(){o.length=0,a=new f,o[e.ALT]=new f,o[e.CAT]=new f,o[e.REP]=new f,o[e.RNM]=new f,o[e.TRG]=new f,o[e.TBS]=new f,o[e.TLS]=new f,o[e.UDT]=new f,o[e.AND]=new f,o[e.NOT]=new f,o[e.BKR]=new f,o[e.BKA]=new f,o[e.BKN]=new f,o[e.ABG]=new f,o[e.AEN]=new f,c.length=0;for(let e=0;e<s.length;e+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:s[e].name,lower:s[e].lower,index:s[e].index});if(i.length>0){u.length=0;for(let e=0;e<i.length;e+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[e].name,lower:i[e].lower,index:i[e].index})}}()},this.collect=function(t,r){p(a,r.state,r.phraseLength),p(o[t.type],r.state,r.phraseLength),t.type===e.RNM&&p(c[t.index],r.state,r.phraseLength),t.type===e.UDT&&p(u[t.index],r.state,r.phraseLength)},this.toHtml=function(e,t){let r="";r+=`<table class="${n.CLASS_STATS}">\n`,"string"==typeof t&&(r+=`<caption>${t}</caption>\n`),r+=`<tr><th class="${n.CLASS_ACTIVE}">ops</th>\n`,r+=`<th class="${n.CLASS_EMPTY}">EMPTY</th>\n`,r+=`<th class="${n.CLASS_MATCH}">MATCH</th>\n`,r+=`<th class="${n.CLASS_NOMATCH}">NOMATCH</th>\n`,r+=`<th class="${n.CLASS_ACTIVE}">totals</th></tr>\n`;for(;;){if(void 0===e){r+=m();break}if(null===e){r+=m();break}if("ops"===e){r+=m();break}if("index"===e){c.sort(h),u.length>0&&u.sort(h),r+=m(),r+=y();break}if("hits"===e){c.sort(d),u.length>0&&u.sort(h),r+=m(),r+=y();break}if("alpha"===e){c.sort(l),u.length>0&&u.sort(l),r+=m(),r+=y();break}break}return r+="</table>\n",r},this.toHtmlPage=function(e,r,n){return t.htmlToPage(this.toHtml(e,r),n)}}},93932: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"}},99290:function(e,t,r){e.exports=function(){const e=r(8544),t=r(93932),n=new(r(42761)),s=r(58276),i="trace.js: ",o=this,a=16,c=80,u=[];let l=5e3,d=-1,h=0,f=0;const p=[];let g=null,m=null,y=null;const b=[],w=[],v=`<span class="${t.CLASS_LINEEND}">&bull;</span>`,A=`<span class="${t.CLASS_LINEEND}">&hellip;</span>`,E=`<span class="${t.CLASS_EMPTY}">&#120634;</span>`;this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){d=-1,"number"==typeof e&&e>0?(l=Math.ceil(e),"number"==typeof t&&(d=Math.floor(t),d<0&&(d=-1))):l=0},this.getMaxRecords=function(){return l},this.getLastRecord=function(){return d},this.init=function(e,t,r){u.length=0,p.length=0,h=0,f=0,g=r,m=e,y=t,function(){const e=function(e){b[s.ALT]=e,b[s.CAT]=e,b[s.REP]=e,b[s.TLS]=e,b[s.TBS]=e,b[s.TRG]=e,b[s.AND]=e,b[s.NOT]=e,b[s.BKR]=e,b[s.BKA]=e,b[s.BKN]=e,b[s.ABG]=e,b[s.AEN]=e};let t=0;for(const e in o.filter.operators)t+=1;if(0!==t){for(const t in o.filter.operators){const r=t.toUpperCase();if("<ALL>"===r)return void e(!0);if("<NONE>"===r)return void e(!1)}e(!1);for(const e in o.filter.operators){const t=e.toUpperCase();if("ALT"===t)b[s.ALT]=!0===o.filter.operators[e];else if("CAT"===t)b[s.CAT]=!0===o.filter.operators[e];else if("REP"===t)b[s.REP]=!0===o.filter.operators[e];else if("AND"===t)b[s.AND]=!0===o.filter.operators[e];else if("NOT"===t)b[s.NOT]=!0===o.filter.operators[e];else if("TLS"===t)b[s.TLS]=!0===o.filter.operators[e];else if("TBS"===t)b[s.TBS]=!0===o.filter.operators[e];else if("TRG"===t)b[s.TRG]=!0===o.filter.operators[e];else if("BKR"===t)b[s.BKR]=!0===o.filter.operators[e];else if("BKA"===t)b[s.BKA]=!0===o.filter.operators[e];else if("BKN"===t)b[s.BKN]=!0===o.filter.operators[e];else if("ABG"===t)b[s.ABG]=!0===o.filter.operators[e];else{if("AEN"!==t)throw new Error(`${i}initOpratorFilter: '${e}
1' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn`);b[s.AEN]=!0===o.filter.operators[e]}}}else e(!1)}(),function(){const e=function(e){b[s.RNM]=e,b[s.UDT]=e;const t=m.length+y.length;w.length=0;for(let r=0;r<t;r+=1)w.push(e)};let t,r;const n=[];for(r=0;r<m.length;r+=1)n.push(m[r].lower);for(r=0;r<y.length;r+=1)n.push(y[r].lower);w.length=0,t=0;for(const e in o.filter.rules)t+=1;if(0!==t){for(const t in o.filter.rules){const r=t.toLowerCase();if("<all>"===r)return void e(!0);if("<none>"===r)return void e(!1)}e(!1),b[s.RNM]=!0,b[s.UDT]=!0;for(const e in o.filter.rules){const t=e.toLowerCase();if(r=n.indexOf(t),r<0)throw new Error(`${i}initRuleFilter: '${e}' not a valid rule or udt name`);w[r]=!0===o.filter.rules[e]}}else e(!0)}(),n.init(l)};const k=function(e){let t=!1;return t=e.type===s.RNM?!(!b[e.type]||!w[e.index]):e.type===s.UDT?!(!b[e.type]||!w[m.length+e.index]):b[e.type],t},P=function(e){return-1===d||e<=d};this.down=function(e,t,r,s,i,o){P(h)&&k(e)&&(p.push(h),u[n.increment()]={dirUp:!1,depth:f,thisLine:h,thatLine:void 0,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:o},h+=1,f+=1)},this.up=function(e,t,r,s,i,o){if(P(h)&&k(e)){const a=h,c=p.pop(),l=n.getListIndex(c);-1!==l&&(u[l].thatLine=a),f-=1,u[n.increment()]={dirUp:!0,depth:f,thisLine:a,thatLine:c,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:o},h+=1}};this.toTree=function(t){const r=function(){function t(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=m[r.index].name;break;case s.UDT:t.opData=y[r.index].name;break;case s.BKR:n=r.index<m.length?m[r.index].name:y[r.index-m.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 new Error("unrecognized opcode")}else t.op={id:void 0,name:void 0},t.opData=void 0}function r(e,t,r){return e===s.MATCH?{index:t,length:r}:e===s.NOMATCH||e===s.EMPTY?{index:t,length:0}:null}let i=-1;function o(n,s,o){const a={id:i++,branch:-1,parent:n,up:!1,down:!1,depth:o,children:[]};return s?(a.down=!0,a.state={id:s.state,name:e.stateToString(s.state)},a.phrase=null,t(a,s.opcode)):(a.state={id:void 0,name:void 0},a.phrase=r(),t(a,void 0)),a}function a(n,s){s&&(n.up=!0,n.state={id:s.state,name:e.stateToString(s.state)},n.phrase=r(s.state,s.phraseIndex,s.phraseLength),n.down||t(n,s.opcode))}let c=0,l=-1,d=1;const h=[];let p,b,w,v,A=!0;const E=o(null,null,-1);for(h.push(E),b=E,n.forEach((e=>{if(v=u[e],A&&(A=!1,v.depth>0)){const e=v.dirUp?v.depth+1:v.depth;for(let t=0;t<e;t+=1)w=b,b=o(b,null,t),h.push(b),w.children.push(b)}v.dirUp?(b=h.pop(),a(b,v),b=h[h.length-1]):(w=b,b=o(b,v,v.depth),h.push(b),w.children.push(b))}));h.length>1;)b=h.pop(),a(b,null);if(0===E.children.length)throw new Error("trace.toTree(): parse tree has no nodes");if(0===h.length)throw new Error("trace.toTree(): integrity check: dummy root node disappeared?");p=E.children[0];let k=p;for(;p&&!p.down&&!p.up;)k=p,p=p.children[0];p=k,p.leftMost=!0,p.rightMost=!0,function e(t){if(l+=1,t.branch=d,l>f&&(f=l),0===t.children.length)c+=1;else for(let r=0;r<t.children.length;r+=1)r>0&&(d+=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]);l-=1}(p),p.branch=0;const P={string:[]};for(let e=0;e<g.length;e+=1)P.string[e]=g[e];P.rules=[];for(let e=0;e<m.length;e+=1)P.rules[e]=m[e].name;P.udts=[];for(let e=0;e<y.length;e+=1)P.udts[e]=y[e].name;let x;return P.id={},P.id.ALT={id:s.ALT,name:"ALT"},P.id.CAT={id:s.CAT,name:"CAT"},P.id.REP={id:s.REP,name:"REP"},P.id.RNM={id:s.RNM,name:"RNM"},P.id.TLS={id:s.TLS,name:"TLS"},P.id.TBS={id:s.TBS,name:"TBS"},P.id.TRG={id:s.TRG,name:"TRG"},P.id.UDT={id:s.UDT,name:"UDT"}
1,P.id.AND={id:s.AND,name:"AND"},P.id.NOT={id:s.NOT,name:"NOT"},P.id.BKR={id:s.BKR,name:"BKR"},P.id.BKA={id:s.BKA,name:"BKA"},P.id.BKN={id:s.BKN,name:"BKN"},P.id.ABG={id:s.ABG,name:"ABG"},P.id.AEN={id:s.AEN,name:"AEN"},P.id.ACTIVE={id:s.ACTIVE,name:"ACTIVE"},P.id.MATCH={id:s.MATCH,name:"MATCH"},P.id.EMPTY={id:s.EMPTY,name:"EMPTY"},P.id.NOMATCH={id:s.NOMATCH,name:"NOMATCH"},P.treeDepth=f,P.leafNodes=c,x=p.down?p.up?"none":"right":p.up?"left":"both",P.branchesIncomplete=x,P.tree=function e(t,r){let n;const 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)t.children.length,s.children[n]=e(t.children[n],r);return s}(p,p.depth),P}();return t?JSON.stringify(r):r},this.toHtmlPage=function(t,r,n){return e.htmlToPage(this.toHtml(t,r),n)};this.indent=function(e){let t="";for(let r=0;r<e;r+=1)t+=".";return t};const x=function(t,r,n,s,i){if(0===s)return"";let o="";const c=i?",":"";switch(t){case a:o=c+e.charsToHex(r,n,s);break;case 10:if(i)return`,${e.charsToDec(r,n,s)}`;o=c+e.charsToDec(r,n,s);break;case 32:o=e.charsToUnicode(r,n,s);break;default:o=e.charsToAsciiHtml(r,n,s)}return o},O=function(e,r,n,i,o,a){let u,l,d,h,f="",p=v;const g=`<span class="${t.CLASS_REMAINDER}">`,m="</span>";let y=!1;switch(n){case s.EMPTY:f+=E;case s.NOMATCH:case s.ACTIVE:u=i,l=0,d=i,h=r.length-d;break;case s.MATCH:u=i,l=o,d=i+l,h=r.length-d;break;default:throw new Error("unrecognized state")}return p=v,l>c?(l=c,p=A,h=0):l+h>c&&(p=A,h=c-l),l>0&&(f+=a,f+=x(e,r,u,l,y),f+=m,y=!0),h>0&&(f+=g,f+=x(e,r,d,h,y),f+=m),f+p},S=function(r){if(null===m)return"";let i,l,d,h,f,p,b="";return b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",n.forEach((n=>{const w=u[n];switch(i=w.thisLine,l=void 0!==w.thatLine?w.thatLine:"--",d=!1,h=!1,f=!1,w.lookAround===s.LOOKAROUND_AHEAD&&(d=!0,f=!0,p=w.lookAnchor),w.opcode.type!==s.AND&&w.opcode.type!==s.NOT||(d=!0,f=!0,p=w.phraseIndex),w.lookAround===s.LOOKAROUND_BEHIND&&(h=!0,f=!0,p=w.lookAnchor),w.opcode.type!==s.BKA&&w.opcode.type!==s.BKN||(h=!0,f=!0,p=w.phraseIndex),b+="<tr>",b+=`<td>${i}</td><td>${l}</td>`,b+=`<td>${w.phraseIndex}</td>`,b+=`<td>${w.phraseLength}</td>`,b+=`<td>${w.depth}</td>`,b+="<td>",w.state){case s.ACTIVE:b+=`<span class="${t.CLASS_ACTIVE}">&darr;&nbsp;</span>`;break;case s.MATCH:b+=`<span class="${t.CLASS_MATCH}">&uarr;M</span>`;break;case s.NOMATCH:b+=`<span class="${t.CLASS_NOMATCH}">&uarr;N</span>`;break;case s.EMPTY:b+=`<span class="${t.CLASS_EMPTY}">&uarr;E</span>`;break;default:b+=`<span class="${t.CLASS_ACTIVE}">--</span>`}if(b+="</td>",b+="<td>",b+=o.indent(w.depth),d?b+=`<span class="${t.CLASS_LOOKAHEAD}">`:h&&(b+=`<span class="${t.CLASS_LOOKBEHIND}">`),b+=e.opcodeToString(w.opcode.type),w.opcode.type===s.RNM&&(b+=`(${m[w.opcode.index].name}) `),w.opcode.type===s.BKR){const e=w.opcode.bkrCase===s.BKR_MODE_CI?"%i":"%s",t=w.opcode.bkrMode===s.BKR_MODE_UM?"%u":"%p";b+=`(\\${e}${t}${m[w.opcode.index].name}) `}w.opcode.type===s.UDT&&(b+=`(${y[w.opcode.index].name}) `),w.opcode.type===s.TRG&&(b+=`(${function(e,t){let r="";if(t.type===s.TRG)if(e===a||32===e){let n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n=`0${n}`),r+=e===a?"%x":"U+",r+=n,n=t.max.toString(16).toUpperCase(),n.length%2!=0&&(n=`0${n}`),r+=`&ndash;${n}`}else r=`%d${t.min.toString(10)}&ndash;${t.max.toString(10)}`;return r}(r,w.opcode)}) `),w.opcode.type===s.TBS&&(b+=`(${function(e,t){let r="";if(t.type===s.TBS){const n=Math.min(t.string.length,10);if(e===a||32===e){r+=e===a?"%x":"U+";for(let e=0;e<n;e+=1){let n;e>0&&(r+="."),n=t.string[e].toString(16).toUpperCase(),n.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}(r,w.opcode)}) `),w.opcode.type===s.TLS&&(b+=`(${function(t,r){let n="";if(r.type===s.TLS){const s=Math.min(r.string.length,5);if(t===a||10===t){let e,i,o;t===a?(n="%x",o=16):(n="%d",o=10);for(let t=0;t<s;t+=1)t>0&&(n+="."),i=r.string[t],i>=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();
1s<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,w.opcode)}) `),w.opcode.type===s.REP&&(b+=`(${function(e,t){let r="";if(t.type===s.REP)if(e===a){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(),e.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}(r,w.opcode)}) `),f&&(b+="</span>"),b+="</td>",b+="<td>",b+=h?function(e,r,n,i,o,a){let u,l,d,h,f="",p=v;const g=`<span class="${t.CLASS_LOOKBEHIND}">`,m=`<span class="${t.CLASS_REMAINDER}">`,y="</span>";let b=!1;switch(n){case s.EMPTY:f+=E;case s.NOMATCH:case s.MATCH:case s.ACTIVE:u=i-o,l=a-u,d=a,h=r.length-d;break;default:throw new Error("unrecognized state")}return p=v,l>c?(l=c,p=A,h=0):l+h>c&&(p=A,h=c-l),l>0&&(f+=g,f+=x(e,r,u,l,b),f+=y,b=!0),h>0&&(f+=m,f+=x(e,r,d,h,b),f+=y),f+p}(r,g,w.state,w.phraseIndex,w.phraseLength,p):d?function(e,r,n,s,i){const o=`<span class="${t.CLASS_LOOKAHEAD}">`;return O(e,r,n,s,i,o)}(r,g,w.state,w.phraseIndex,w.phraseLength):function(e,r,n,s,i){const o=`<span class="${t.CLASS_MATCH}">`;return O(e,r,n,s,i,o)}(r,g,w.state,w.phraseIndex,w.phraseLength),b+="</td></tr>\n"})),b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",b+="</table>\n",b};this.toHtml=function(e,r){let n=8;if("string"==typeof e&&e.length>=3){const t=e.toLowerCase().slice(0,3);"hex"===t?n=a:"dec"===t?n=10:"uni"===t&&(n=32)}let s="";return s+=function(e,r){let n;switch(e){case a:n="hexadecimal";break;case 10:n="decimal";break;case 8:n="ASCII";break;case 32:n="UNICODE";break;default:throw new Error(`${i}htmlHeader: unrecognized mode: ${e}`)}let s="";return s+=`<p>display mode: ${n}</p>\n`,s+=`<table class="${t.CLASS_TRACE}">\n`,"string"==typeof r&&(s+=`<caption>${r}</caption>`),s}(n,r),s+=S(n),s+=function(){let e="";return e+="</table>\n",e+=`<p class="${t.CLASS_MONOSPACE}">legend:<br>\n`,e+="(a)&nbsp;-&nbsp;line number<br>\n",e+="(b)&nbsp;-&nbsp;matching line number<br>\n",e+="(c)&nbsp;-&nbsp;phrase offset<br>\n",e+="(d)&nbsp;-&nbsp;phrase length<br>\n",e+="(e)&nbsp;-&nbsp;tree depth<br>\n",e+="(f)&nbsp;-&nbsp;operator state<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_ACTIVE}">&darr;</span>&nbsp;&nbsp;phrase opened<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_MATCH}">&uarr;M</span> phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_EMPTY}">&uarr;E</span> empty phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_NOMATCH}">&uarr;N</span> phrase not matched<br>\n`,e+="operator&nbsp;-&nbsp;ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>&dagger;</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>&Dagger;</sup><br>\n",e+="phrase&nbsp;&nbsp;&nbsp;-&nbsp;up to 80 characters of the phrase being matched<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_MATCH}">matched characters</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_LOOKAHEAD}">matched characters in look ahead mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_LOOKBEHIND}">matched characters in look behind mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${t.CLASS_REMAINDER}">remainder characters(not yet examined by parser)</span><br>\n`,e+=`&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>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${E} empty string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${v} end of input string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${A} input string display truncated<br>\n`,e+="</p>\n",e+=`<p class="${t.CLASS_MONOSPACE}">\n`,e+="<sup>&dagger;</sup>original ABNF operators:<br>\n",e+="ALT - alternation<br>\n",e+="CAT - concatenation<br>\n",e+="REP - repetition<br>\n",e+="RNM - rule name<br>\n",e+="TRG - terminal range<br>\n",e+="TLS - terminal literal string (case insensitive)<br>\n",e+="TBS - terminal binary string (case sensitive)<br>\n",e+="<br>\n",e+="<sup>&Dagger;</sup>super set SABNF operators:<br>\n",e+="UDT - user-defined terminal<br>\n",e+="AND - positive look ahead<br>\n",e+="NOT - negative look ahead<br>\n",e+="BKA - positive look behind<br>\n",e+="BKN - negative look behind<br>\n",e+="BKR - back reference<br>\n",e+="ABG - anchor - begin of input string<br>\n",e+="AEN - anchor - end of input string<br>\n",e+="</p>\n",e}(),s}}},8544:function(e,t,r){const n=r(93932),s=r(20979),i=r(91593),o=r(58276),a="utilities.js: ",c=function(e,t,r){let n,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}if(n=s+r,n>e){n=e;break}break}return{beg:s,end:n}};t.htmlToPage=function(e,t){let r;if("string"!=typeof e)throw new Error(`${a}htmlToPage: input HTML is not a string`);r="string"!=typeof t?"htmlToPage":t;let n="";return n+="<!DOCTYPE html>\n",n+='<html lang="en">\n',n+="<head>\n",n+='<meta charset="utf-8">\n',n+=`<title>${r}</title>\n`,n+="<style>\n",n+=i(),n+="</style>\n",n+="</head>\n<body>\n",n+=`<p>${new Date}</p>\n`,n+=e,n+="</body>\n</html>\n",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}">
1false</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}">\n`,i&&(a+=`<caption>${i}</caption>\n`),a+="<tr><th>state item</th><th>value</th><th>description</th></tr>\n",a+=`<tr><td>parser success</td><td>${r}</td>\n`,a+=`<td><span class="${n.CLASS_MATCH}">true</span> if the parse succeeded,\n`,a+=` <span class="${n.CLASS_NOMATCH}">false</span> otherwise`,a+="<br><i>NOTE: for success, entire string must be matched</i></td></tr>\n",a+=`<tr><td>parser state</td><td>${s}</td>\n`,a+=`<td><span class="${n.CLASS_EMPTY}">EMPTY</span>, `,a+=`<span class="${n.CLASS_MATCH}">MATCH</span> or \n`,a+=`<span class="${n.CLASS_NOMATCH}">NOMATCH</span></td></tr>\n`,a+=`<tr><td>string length</td><td>${e.length}</td><td>length of the input (sub)string</td></tr>\n`,a+=`<tr><td>matched length</td><td>${e.matched}</td><td>number of input string characters matched</td></tr>\n`,a+=`<tr><td>max matched</td><td>${e.maxMatched}</td><td>maximum number of input string characters matched</td></tr>\n`,a+=`<tr><td>max tree depth</td><td>${e.maxTreeDepth}</td><td>maximum depth of the parse tree reached</td></tr>\n`,a+=`<tr><td>node hits</td><td>${e.nodeHits}</td><td>number of parse tree node hits (opcode function calls)</td></tr>\n`,a+=`<tr><td>input length</td><td>${e.inputLength}</td><td>length of full input string</td></tr>\n`,a+=`<tr><td>sub-string begin</td><td>${e.subBegin}</td><td>sub-string first character index</td></tr>\n`,a+=`<tr><td>sub-string end</td><td>${e.subEnd}</td><td>sub-string end-of-string index</td></tr>\n`,a+=`<tr><td>sub-string length</td><td>${e.subLength}</td><td>sub-string length</td></tr>\n`,a+="</table>\n",a},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 new 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 new 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 new Error("unrecognized option")}return t},t.charsToDec=function(e,t,r){let n="";if(!Array.isArray(e))throw new Error(`${a}charsToDec: input must be an array of integers`);const s=c(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 new Error(`${a}charsToHex: input must be an array of integers`);const i=c(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 new Error(`${a}charsToHex: input must be an array of integers`);const s=c(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 new Error(`${a}charsToUnicode: input must be an array of integers`);const i=c(e.length,r,n);if(i.end>i.beg)for(let r=i.beg;r<i.end;r+=1)s+=(o=e[r])>=55296&&o<=57343||o>1114111?` U+${t.charToHex(e[r])}`:`&#${e[r]};`;var o;return s},t.charsToJsUnicode=function(e,r,n){let s="";if(!Array.isArray(e))throw new Error(`${a}charsToJsUnicode: input must be an array of integers`);const i=c(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 new Error(`${a}charsToAscii: input must be an array of integers`);const i=c(e.length,r,n);for(let r=i.beg;r<i.end;r+=1){const n=e[r];s+=n>=32&&n<=126?String.fromCharCode(n):`\\x${t.charToHex(n)}`}return s},t.charsToAsciiHtml=function(e,r,s){if(!Array.isArray(e))throw new Error(`${a}charsToAsciiHtml: input must be an array of integers`);let i,o="";const u=c(e.length,r,s);for(let r=u.beg;r<u.end;r+=1)i=e[r],o+=i<32||127===i?`<span class="${n.CLASS_CTRLCHAR}">${t.asciiChars[i]}</span>`:i>127?`<span class="${n.CLASS_CTRLCHAR}">U+${t.charToHex(i)}</span>`:t.asciiChars[i];return o},t.stringToAsciiHtml=function(e){const t=s.decode("STRING",e);return this.charsToAsciiHtml(t)}},50079:function(e,t,r){"use strict";
vendor: 9,758 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const n=r(60798),s=r(29681),i=r(12541);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){const r=t=>(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...r(t),create:r})}},92781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const n=r(23570),s=r(43912),i=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){const r=(e,t)=>{const 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){const{windows:r,windowSize:s}=n(t),i=[];let 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){const{windows:a,windowSize:c}=n(t);let u=e.ZERO,l=e.BASE;const d=BigInt(2**t-1),h=2**t,f=BigInt(t);for(let e=0;e<a;e++){const t=e*c;let n=Number(i&d);i>>=f,n>c&&(n-=h,i+=o);const a=t,p=t+Math.abs(n)-1,g=e%2!=0,m=n<0;0===n?l=l.add(r(g,s[a])):u=u.add(r(m,s[p]))}return{p:u,f:l}},wNAFCached(e,t,r,n){const s=e._WINDOW_SIZE||1;let 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})}},6791: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;const n=r(23570),s=r(43912);const i=s.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const 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,t){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function c(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected")}function u(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e,t,r,n){c(e),c(t),u(r),t.length>255&&(t=n((0,s.concatBytes)((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:l}=n,d=Math.ceil(r/i);if(d>255)throw new Error("Invalid xmd length");const h=(0,s.concatBytes)(t,o(t.length,1)),f=o(0,l),p=o(r,2),g=new Array(d),m=n((0,s.concatBytes)(f,e,p,o(0,1),h));g[0]=n((0,s.concatBytes)(m,o(1,1),h));for(let e=1;e<=d;e++){const t=[a(m,g[e-1]),o(e+1,1),h];g[e]=n((0,s.concatBytes)(...t))}return(0,s.concatBytes)(...g).slice(0,r)}function d(e,t,r,n,i){if(c(e),c(t),u(r),t.length>255){const e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new 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 h(e,t,r){(0,s.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:h,hash:f,expand:p,DST:g}=r;c(e),u(t);const m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,s.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(g),y=o.toString(2).length,b=Math.ceil((y+a)/8),w=t*h*b;let v;if("xmd"===p)v=l(e,m,w,f);else if("xof"===p)v=d(e,m,w,a,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=e}const A=new Array(t);for(let e=0;e<t;e++){const t=new Array(h);for(let r=0;r<h;r++){const s=b*(r+e*h),a=v.subarray(s,s+b);t[r]=(0,n.mod)(i(a),o)}A[e]=t}return A}t.expand_message_xmd=l,t.expand_message_xof=d,t.hash_to_field=h,t.isogenyMap=function(e,t){const r=t.map((e=>Array.from(e).reverse()));return(t,n)=>{const[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 new Error("mapToCurve() must be defined");return{hashToCurve(n,s){const i=h(n,2,{...r,DST:r.DST,...s}),o=e.fromAffine(t(i[0])),a=e.fromAffine(t(i[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,s){const i=h(n,1,{...r,DST:r.encodeDST,...s}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o}}}},23570:function(e,t,r){"use strict";Object.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;const n=r(43912),s=BigInt(0),i=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=s?r:t+r}function h(e,t,r){if(r<=s||t<s)throw new 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 new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,o=s,a=i,c=i,u=s;for(;r!==s;){const e=n/r,t=n%r,s=o-c*e,i=a-u*e;n=r,r=t,o=c,a=u,c=s,u=i}if(n!==i)throw new Error("invert: does not exist");return d(o,t)}function p(e){const t=(e-i)/o;let r,n,a;for(r=e-i,n=0;r%o===s;r/=o,n++);for(a=o;a<e&&h(a,t,e)!==e-i;a++);if(1===n){const t=(e+i)/c;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}const u=(r+i)/o;return function(e,s){if(e.pow(s,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let o=n,c=e.pow(e.mul(e.ONE,a),r),l=e.pow(s,u),d=e.pow(s,r);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);const r=e.pow(c,i<<BigInt(o-t-1));c=e.sqr(r),l=e.mul(l,r),d=e.mul(d,c),o=t}return l}}function g(e){if(e%c===a){const t=(e+i)/c;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}if(e%l===u){const t=(e-u)/l;return function(e,r){const n=e.mul(r,o),s=e.pow(n,t),i=e.mul(r,s),a=e.mul(e.mul(i,o),s),c=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),r))throw new Error("Cannot find square root");return c}}return p(e)}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;const 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 new 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){const r=new 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 w(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function v(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=v(e);return t+Math.ceil(t/2)}t.validateField=function(e){const 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){const t=(e.ORDER-i)/o;return r=>{const n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=w,t.Field=function(e,t,r=!1,o={}){if(e<=s)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:a,nByteLength:c}=w(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=g(e),l=Object.freeze({ORDER:e,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:s,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new 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(l,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=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const s=(e=(0,n.ensureBytes)("privateHash",e)).length,o=w(t).nByteLength+8;if(o<24||s<o||s>1024)throw new 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=v,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){const s=e.length,o=v(t),a=A(t);if(s<16||s<a||s>1024)throw new Error(`expected ${a}-1024 bytes of input, got ${s}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)}},43912: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;const 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 new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t}function c(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function l(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){const n=2*t,s=e.slice(n,n+2),i=Number.parseInt(s,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");r[t]=i}return r}function d(e,t){return l(e.toString(16).padStart(2*t,"0"))}function h(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.length),0));let r=0;return e.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length})),t}t.bytesToHex=a,t.numberToHexUnpadded=c,t.hexToNumber=u,t.hexToBytes=l,t.bytesToNumberBE=function(e){return u(a(e))},t.bytesToNumberLE=function(e){if(!i(e))throw new Error("Uint8Array expected");return u(a(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(c(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const s=n.length;if("number"==typeof r&&s!==r)throw new 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 new 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;const f=e=>new Uint8Array(e),p=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=f(e),s=f(e),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...e)=>r(s,n,...e),c=(e=f())=>{s=a(p([0]),e),n=a(),0!==e.length&&(s=a(p([1]),e),n=a())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=a();const t=n.slice();r.push(t),e+=n.length}return h(...r)};return(e,t)=>{let r;for(o(),c(e);!(r=t(u()));)c();return o(),r}};const 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={}){const n=(t,r,n)=>{const s=g[r];if("function"!=typeof s)throw new Error(`Invalid validator "${r}", expected function`);const i=e[t];if(!(n&&void 0===i||s(i,e)))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e}},12541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const n=r(23570),s=r(43912),i=r(43912),o=r(92781);const{bytesToNumberBE:a,hexToBytes:c}
vendor: 9,272 bytes, line 1
1=s;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const 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){const{Err:r}=t.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw new 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");const{d:i,l:o}=t.DER._parseInt(n.subarray(2)),{d:a,l:u}=t.DER._parseInt(o);if(u.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const 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),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(e){const t=function(e){const 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"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new 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 new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,a=t.toBytes||((e,t,n)=>{const i=t.toAffine();return s.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{const 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){const{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 new Error("bad generator point: equation left != right");function f(e){return"bigint"==typeof e&&u<e&&e<t.n}function p(e){if(!f(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){const{allowedPrivateKeyLengths:r,nByteLength:o,wrapPrivateKey:a,n:c}=t;if(r&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=s.bytesToHex(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*o,"0")}let u;try{u="bigint"==typeof e?e:s.bytesToNumberBE((0,i.ensureBytes)("private key",e,o))}catch(t){throw new Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return a&&(u=n.mod(u,c)),p(u),u}const m=new Map;function y(e){if(!(e instanceof b))throw new 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 new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required")}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof b)throw new Error("projective point not allowed");const 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){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((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 new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const s=r.sqr(n),i=d(e);if(!r.eql(s,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:n,pz:s}=this,{px:i,py:o,pz:a}=e,c=r.eql(r.mul(t,a),r.mul(i,s)),u=r.eql(r.mul(n,a),r.mul(o,s));return c&&u}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,s=r.mul(n,h),{px:i,py:o,pz:a}=this;let c=r.ZERO,u=r.ZERO,l=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),l=r.mul(i,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(s,p),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(g,c),l=r.mul(s,l),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(o,a),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),l=r.mul(p,f),l=r.add(l,l),l=r.add(l,l),new b(c,u,l)}add(e){y(e);const{px:n,py:s,pz:i}=this,{px:o,py:a,pz:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const f=t.a,p=r.mul(t.b,h);let g=r.mul(n,o),m=r.mul(s,a),w=r.mul(i,c),v=r.add(n,s),A=r.add(o,a);v=r.mul(v,A),A=r.add(g,m),v=r.sub(v,A),A=r.add(n,i);let E=r.add(o,c);return A=r.mul(A,E),E=r.add(g,w),A=r.sub(A,E),E=r.add(s,i),u=r.add(a,c),E=r.mul(E,u),u=r.add(m,w),E=r.sub(E,u),d=r.mul(f,A),u=r.mul(p,w),d=r.add(u,d),u=r.sub(m,d),d=r.add(m,d),l=r.mul(u,d),m=r.add(g,g),m=r.add(m,g),w=r.mul(f,w),A=r.mul(p,A),m=r.add(m,w),w=r.sub(g,w),w=r.mul(f,w),A=r.add(A,w),g=r.mul(m,A),l=r.add(l,g),g=r.mul(E,A),u=r.mul(v,u),u=r.sub(u,g),g=r.mul(v,m),d=r.mul(E,d),d=r.add(d,g),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return v.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}))}multiplyUnsafe(e){const n=b.ZERO;if(e===u)return n;if(p(e),e===l)return this;const{endo:s}=t;if(!s)return v.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:a,k2:c}=s.splitScalar(e),d=n,h=n,f=this;for(;o>u||c>u;)o&l&&(d=d.add(f)),c&l&&(h=h.add(f)),f=f.double(),o>>=l,c>>=l;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){p(e);let n,s,i=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:a,k2:c}=o.splitScalar(i);let{p:u,f:l}=this.wNAF(t),{p:d,f:h}=this.wNAF(c);u=v.constTimeNegate(e,u),d=v.constTimeNegate(a,d),d=new b(r.mul(d.px,o.beta),d.py,d.pz),n=u.add(d),s=l.add(h)}else{const{p:e,f:t}=this.wNAF(i);n=e,s=t}return b.normalizeZ([n,s])[0]}multiplyAndAddUnsafe(e,t,r){const n=b.BASE,s=(e,t)=>t!==u&&t!==l&&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){const{px:t,py:n,pz:s}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(s));const o=r.mul(t,e),a=r.mul(n,e),c=r.mul(s,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?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);const w=t.nBitLength,v=(0,o.wNAF)(b,t.endo?Math.ceil(w/2):w);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:f}}function g(e,t){const r=e.ORDER;let n=u;for(let e=r-l;e%d===u;e/=d)n+=l;const s=n,i=d<<s-l-l,o=i*d,a=(r-l)/o,c=(a-l)/d,p=o-l,g=i,m=e.pow(t,a),y=e.pow(t,(a+l)/d);let b=(t,r)=>{let n=m,i=e.pow(r,p),o=e.sqr(i);o=e.mul(o,r);let a=e.mul(t,o);a=e.pow(a,c),a=e.mul(a,i),i=e.mul(a,r),o=e.mul(a,t);let u=e.mul(o,i);a=e.pow(u,g);let h=e.eql(a,e.ONE);i=e.mul(o,y),a=e.mul(u,n),o=e.cmov(i,o,h),u=e.cmov(a,u,h);for(let t=s;t>l;t--){let r=t-d;r=d<<r-l;let s=e.pow(u,r);const a=e.eql(s,e.ONE);i=e.mul(o,n),n=e.mul(n,n),s=e.mul(u,n),o=e.cmov(i,o,a),u=e.cmov(s,u,a)}return{isValid:h,value:o}};if(e.ORDER%f===h){const r=(e.ORDER-h)/f,n=e.sqrt(e.neg(t));b=(t,s)=>{let i=e.sqr(s);const o=e.mul(t,s);i=e.mul(i,o);let a=e.pow(i,r);a=e.mul(a,o);const c=e.mul(a,n),u=e.mul(e.sqr(a),s),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,a,l)}}}return b}t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const 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:c}=r,d=a.BYTES+1,h=2*a.BYTES+1;function f(e){return n.mod(e,c)}function g(e){return n.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:w}=p({...r,toBytes(e,t,r){const 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){const t=e.length,r=e[0],n=e.subarray(1);if(t!==d||2!==r&&3!==r){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 new Error(`Point of length ${t}
1 was invalid. Expected ${d} compressed bytes or ${h} uncompressed bytes`)}{const e=s.bytesToNumberBE(n);if(!(u<(i=e)&&i<a.ORDER))throw new Error("Point is not on curve");const t=b(e);let o=a.sqrt(t);return 1==(1&r)!==((o&l)===l)&&(o=a.neg(o)),{x:e,y:o}}var i}}),v=e=>s.bytesToHex(s.numberToBytesBE(e,r.nByteLength));function A(e){return e>c>>l}const E=(e,t,r)=>s.bytesToNumberBE(e.slice(t,r));class k{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new k(E(e,0,t),E(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new k(r,n)}assertValidity(){if(!w(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!w(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new k(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:s}=this,o=S((0,i.ensureBytes)("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");const c=2===s||3===s?t+r.n:t;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=0==(1&s)?"02":"03",l=m.fromHex(u+v(c)),d=g(c),h=f(-o*d),p=f(n*d),y=m.BASE.multiplyAndAddUnsafe(l,h,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new k(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 v(this.r)+v(this.s)}}const P={isValidPrivateKey(e){try{return y(e),!0}catch(e){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute(e=8,t=m.BASE){return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function x(e){const 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}const O=r.bits2int||function(e){const t=s.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},S=r.bits2int_modN||function(e){return f(O(e))},C=s.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&e<C))throw new Error(`bigint expected < 2^${r.nBitLength}`);return s.numberToBytesBE(e,r.nByteLength)}function B(e,t,n=_){if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:d,prehash:h,extraEntropy:p}=n;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),h&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));const b=S(e),v=y(t),E=[T(v),T(b)];if(null!=p){const e=!0===p?c(a.BYTES):p;E.push((0,i.ensureBytes)("extraEntropy",e))}const P=s.concatBytes(...E),x=b;return{seed:P,k2sig:function(e){const t=O(e);if(!w(t))return;const r=g(t),n=m.BASE.multiply(t).toAffine(),s=f(n.x);if(s===u)return;const i=f(r*f(x+s*v));if(i===u)return;let o=(n.x===s?0:2)|Number(n.y&l),a=i;return d&&A(i)&&(a=function(e){return A(e)?f(-e):e}(i),o^=1),new k(s,a,o)}}}const _={lowS:r.lowS,prehash:!1},I={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(x(e))throw new Error("first arg must be private key");if(!x(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t,n=_){const{seed:i,k2sig:o}=B(e,t,n),a=r;return s.createHmacDrbg(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)},verify:function(e,n,s,o=I){const a=e;if(n=(0,i.ensureBytes)("msgHash",n),s=(0,i.ensureBytes)("publicKey",s),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:u}=o;let l,d;try{if("string"==typeof a||a instanceof Uint8Array)try{l=k.fromDER(a)}catch(e){if(!(e instanceof t.DER.Err))throw e;l=k.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:e,s:t}=a;l=new k(e,t)}}d=m.fromHex(s)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&l.hasHighS())return!1;u&&(n=r.hash(n));const{r:h,s:p}=l,y=S(n),b=g(p),w=f(y*b),v=f(h*b),A=m.BASE.multiplyAndAddUnsafe(d,w,v)?.toAffine();return!!A&&f(A.x)===h}
vendor: 4,692 bytes, line 1
1,ProjectivePoint:m,Signature:k,utils:P}},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 new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let s,i,o,a,c,u,l,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),u=e.sqr(a),c=e.mul(u,t.A),i=e.add(i,c),i=e.mul(i,o),u=e.mul(u,a),c=e.mul(u,t.B),i=e.add(i,c),l=e.mul(s,o);const{isValid:h,value:f}=r(i,u);d=e.mul(s,n),d=e.mul(d,f),l=e.cmov(l,o,h),d=e.cmov(d,f,h);const p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),l=e.div(l,a),{x:l,y:d}}}},82958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(67366),s=r(29681),i=r(23570),o=r(12541),a=r(43912),c=r(6791),u=r(50079),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),f=BigInt(2),p=(e,t)=>(e+t/f)/t;function g(e){const t=l,r=BigInt(3),n=BigInt(6),s=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,h=d*d*e%t,p=(0,i.pow2)(h,r,t)*h%t,g=(0,i.pow2)(p,r,t)*h%t,y=(0,i.pow2)(g,f,t)*d%t,b=(0,i.pow2)(y,s,t)*y%t,w=(0,i.pow2)(b,o,t)*b%t,v=(0,i.pow2)(w,c,t)*w%t,A=(0,i.pow2)(v,u,t)*v%t,E=(0,i.pow2)(A,c,t)*w%t,k=(0,i.pow2)(E,r,t)*h%t,P=(0,i.pow2)(k,a,t)*b%t,x=(0,i.pow2)(P,n,t)*d%t,O=(0,i.pow2)(x,f,t);if(!m.eql(m.sqr(O),e))throw new Error("Cannot find square root");return O}const m=(0,i.Field)(l,void 0,void 0,{sqrt:g});t.secp256k1=(0,u.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=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*e,t),u=p(-n*e,t);let l=(0,i.mod)(e-c*r-u*s,t),f=(0,i.mod)(-c*n-u*o,t);const g=l>a,m=f>a;if(g&&(l=t-l),m&&(f=t-f),l>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:l,k2neg:m,k2:f}}}},n.sha256);const y=BigInt(0),b=e=>"bigint"==typeof e&&y<e&&e<l,w={};function v(e,...t){let r=w[e];if(void 0===r){const 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))}const A=e=>e.toRawBytes(!0).slice(1),E=e=>(0,a.numberToBytesBE)(e,32),k=e=>(0,i.mod)(e,l),P=e=>(0,i.mod)(e,d),x=t.secp256k1.ProjectivePoint;function O(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=x.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:P(-r),bytes:A(n)}}function S(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=k(e*e);let r=g(k(t*e+BigInt(7)));r%f!==y&&(r=k(-r));const n=new x(e,r,h);return n.assertValidity(),n}function C(...e){return P((0,a.bytesToNumberBE)(v("BIP0340/challenge",...e)))}function T(e){return O(e).bytes}function B(e,t,r=(0,s.randomBytes)(32)){const n=(0,a.ensureBytes)("message",e),{bytes:i,scalar:o}=O(t),c=(0,a.ensureBytes)("auxRand",r,32),u=E(o^(0,a.bytesToNumberBE)(v("BIP0340/aux",c))),l=v("BIP0340/nonce",u,i,n),d=P((0,a.bytesToNumberBE)(l));if(d===y)throw new Error("sign failed: k is zero");const{bytes:h,scalar:f}=O(d),p=C(h,i,n),g=new Uint8Array(64);if(g.set(h,0),g.set(E(P(f+p*o)),32),!_(g,n,i))throw new Error("sign: Invalid signature produced");return g}function _(e,t,r){const n=(0,a.ensureBytes)("signature",e,64),s=(0,a.ensureBytes)("message",t),i=(0,a.ensureBytes)("publicKey",r,32);try{const e=S((0,a.bytesToNumberBE)(i)),t=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(l=r)&&y<l&&l<d))return!1;const h=C(E(t),A(e),s),f=(o=e,c=r,u=P(-h),x.BASE.multiplyAndAddUnsafe(o,c,u));return!(!f||!f.hasEvenY()||f.toAffine().x!==t)}catch(e){return!1}var o,c,u,l}t.schnorr={getPublicKey:T,sign:B,verify:_,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:S,pointToBytes:A,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:v,mod:i.mod}};const I=(()=>(0,c.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)))))))(),N=(()=>(0,o.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),R=(()=>(0,c.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=N(m.create(e[0]));return I(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=R.hashToCurve,t.encodeToCurve=R.encodeToCurve},46363:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function s(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){s(e);const r=t.outputLen;if(e.length<r)throw new 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;const c={number:r,bool:n,bytes:s,hash:i,exists:o,output:a};t.default=c},70915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(46363),s=r(29681);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);const{view:t,buffer:r,blockLen:i}=this,o=(e=(0,s.toBytes)(e)).length;for(let n=0;n<o;){const a=Math.min(i-this.pos,o-n);if(a!==i)r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===i&&(this.process(t,0),this.pos=0);else{const t=(0,s.createView)(e);for(;i<=o-n;n+=i)this.process(t,n)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.exists)(this),(0,n.output)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:i,isLE:o}=this;let{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);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,u=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+u,a,n)}(r,i-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,s.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)c.setUint32(4*e,d[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{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},94881: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;const r=BigInt(2**32-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++){const{h:o,l:a}=s(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}t.fromBig=s,t.split=i;const o=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=o;const a=(e,t,r)=>e>>>r;t.shrSH=a;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const h=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=h;const f=(e,t)=>t;t.rotr32H=f;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;const y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;const b=(e,t,r)=>e<<r-32|t>>>64-r;function w(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:0|s}}t.rotlBL=b,t.add=w;const v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=v;const A=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=A;const E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;const k=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0;t.add4H=k;const P=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=P;const x=(e,t,r,n,s,i)=>t+r+n+s+i+(e/2**32|0)|0;t.add5H=x;const O={fromBig:s,split:i,toBig:o,shrSH:a,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:w,add3L:v,add3H:A,add4L:E,add4H:k,add5H:x,add5L:P};t.default=O},70754: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},60798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(46363),s=r(29681);class i extends s.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,s.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const 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(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{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)},24112:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(46363),s=r(60798),i=r(29681);function o(e,t,r,o){(0,n.hash)(e);const a=(0,i.checkOpts)({dkLen:32,asyncTick:10},o),{c:c,dkLen:u,asyncTick:l}=a;if((0,n.number)(c),(0,n.number)(u),(0,n.number)(l),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,i.toBytes)(t),h=(0,i.toBytes)(r),f=new Uint8Array(u),p=s.hmac.create(e,d),g=p._cloneInto().update(h);return{c:c,dkLen:u,asyncTick:l,DK:f,PRF:p,PRFSalt:g}}function a(e,t,r,n,s){return e.destroy(),t.destroy(),n&&n.destroy(),s.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:s,dkLen:c,DK:u,PRF:l,PRFSalt:d}=o(e,t,r,n);let h;const f=new Uint8Array(4),p=(0,i.createView)(f),g=new Uint8Array(l.outputLen);for(let e=1,t=0;t<c;e++,t+=l.outputLen){const r=u.subarray(t,t+l.outputLen);p.setInt32(0,e,!1),(h=d._cloneInto(h)).update(f).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<s;e++){l._cloneInto(h).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return a(l,d,u,h,g)}
1,t.pbkdf2Async=async function(e,t,r,n){const{c:s,dkLen:c,asyncTick:u,DK:l,PRF:d,PRFSalt:h}=o(e,t,r,n);let f;const p=new Uint8Array(4),g=(0,i.createView)(p),m=new Uint8Array(d.outputLen);for(let e=1,t=0;t<c;e++,t+=d.outputLen){const r=l.subarray(t,t+d.outputLen);g.setInt32(0,e,!1),(f=h._cloneInto(f)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await(0,i.asyncLoop)(s-1,u,(()=>{d._cloneInto(f).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]}))}return a(d,h,l,f,m)}},67746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(70915),s=r(29681),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));let a=[o],c=[o.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[a,c])t.push(t[e].map((e=>i[e])));const 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))),l=a.map(((e,t)=>e.map((e=>u[t][e])))),d=c.map(((e,t)=>e.map((e=>u[t][e])))),h=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),p=(e,t)=>e<<t|e>>>32-t;function g(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)}const m=new Uint32Array(16);class y 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(){const{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)m[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,s=0|this.h1,i=s,o=0|this.h2,u=o,y=0|this.h3,b=y,w=0|this.h4,v=w;for(let e=0;e<5;e++){const t=4-e,A=h[e],E=f[e],k=a[e],P=c[e],x=l[e],O=d[e];for(let t=0;t<16;t++){const n=p(r+g(e,s,o,y)+m[k[t]]+A,x[t])+w|0;r=w,w=y,y=0|p(o,10),o=s,s=n}for(let e=0;e<16;e++){const r=p(n+g(t,i,u,b)+m[P[e]]+E,O[e])+v|0;n=v,v=b,b=0|p(u,10),u=i,i=r}}this.set(this.h1+o+b|0,this.h2+y+v|0,this.h3+w+n|0,this.h4+r+i|0,this.h0+s+u|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,s.wrapConstructor)((()=>new y))},49468:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(46363),s=r(67366),i=r(24112),o=r(29681),a=(e,t)=>e<<t|e>>>32-t;function c(e,t,r,n,s,i){let o=e[t++]^r[n++],c=e[t++]^r[n++],u=e[t++]^r[n++],l=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++],w=e[t++]^r[n++],v=e[t++]^r[n++],A=e[t++]^r[n++],E=e[t++]^r[n++],k=o,P=c,x=u,O=l,S=d,C=h,T=f,B=p,_=g,I=m,N=y,R=b,M=w,L=v,F=A,D=E;for(let e=0;e<8;e+=2)S^=a(k+M|0,7),_^=a(S+k|0,9),M^=a(_+S|0,13),k^=a(M+_|0,18),I^=a(C+P|0,7),L^=a(I+C|0,9),P^=a(L+I|0,13),C^=a(P+L|0,18),F^=a(N+T|0,7),x^=a(F+N|0,9),T^=a(x+F|0,13),N^=a(T+x|0,18),O^=a(D+R|0,7),B^=a(O+D|0,9),R^=a(B+O|0,13),D^=a(R+B|0,18),P^=a(k+O|0,7),x^=a(P+k|0,9),O^=a(x+P|0,13),k^=a(O+x|0,18),T^=a(C+S|0,7),B^=a(T+C|0,9),S^=a(B+T|0,13),C^=a(S+B|0,18),R^=a(N+I|0,7),_^=a(R+N|0,9),I^=a(_+R|0,13),N^=a(I+_|0,18),M^=a(D+F|0,7),L^=a(M+D|0,9),F^=a(L+M|0,13),D^=a(F+L|0,18);s[i++]=o+k|0,s[i++]=c+P|0,s[i++]=u+x|0,s[i++]=l+O|0,s[i++]=d+S|0,s[i++]=h+C|0,s[i++]=f+T|0,s[i++]=p+B|0,s[i++]=g+_|0,s[i++]=m+I|0,s[i++]=y+N|0,s[i++]=b+R|0,s[i++]=w+M|0,s[i++]=v+L|0,s[i++]=A+F|0,s[i++]=E+D|0}function u(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+16*(2*s-1)+n];for(let n=0;n<s;n++,i+=16,t+=16)c(r,o,e,t,r,i),n>0&&(o+=16),c(r,i,e,t+=16,r,o)}function l(e,t,r){const a=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:u,p:l,dkLen:d,asyncTick:h,maxmem:f,onProgress:p}=a;if((0,n.number)(c),(0,n.number)(u),(0,n.number)(l),(0,n.number)(d),(0,n.number)(h),(0,n.number)(f),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const g=128*u,m=g/4;if(c<=1||0!=(c&c-1)||c>=2**(g/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(l<0||l>137438953440/g)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const y=g*(c+l);if(y>f)throw new Error(`Scrypt: parameters too large, ${y} (128 * r * (N + p)) > ${f} (maxmem)`);const b=(0,i.pbkdf2)(s.sha256,e,t,{c:1,dkLen:g*l}),w=(0,o.u32)(b),v=(0,o.u32)(new Uint8Array(g*c)),A=(0,o.u32)(new Uint8Array(g));let E=()=>{};if(p){const e=2*c*l,t=Math.max(Math.floor(e/1e4),1);let r=0;E=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:c,r:u,p:l,dkLen:d,blockSize32:m,V:v,B32:w,B:b,tmp:A,blockMixCb:E,asyncTick:h}}function d(e,t,r,n,o){const a=(0,i.pbkdf2)(s.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),o.fill(0),a}t.scrypt=function(e,t,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:h,B:f,tmp:p,blockMixCb:g}=l(e,t,r);for(let e=0;e<i;e++){const t=a*e;for(let e=0;e<a;e++)c[e]=h[t+e];for(let e=0,t=0;e<n-1;e++)u(c,t,c,t+=a,s),g();u(c,(n-1)*a,h,t,s),g();for(let e=0;e<n;e++){const e=h[t+a-16]%n;for(let r=0;r<a;r++)p[r]=h[t+r]^c[e*a+r];u(p,0,h,t,s),g()}}return d(e,o,f,c,p)},t.scryptAsync=async function(e,t,r){const{N:n,r:s,p:i,dkLen:a,blockSize32:c,V:h,B32:f,B:p,tmp:g,blockMixCb:m,asyncTick:y}=l(e,t,r);for(let e=0;e<i;e++){const t=c*e;for(let e=0;e<c;e++)h[e]=f[t+e];let r=0;await(0,o.asyncLoop)(n-1,y,(()=>{u(h,r,h,r+=c,s),m()})),u(h,(n-1)*c,f,t,s),m(),await(0,o.asyncLoop)(n,y,(()=>{const e=f[t+c-16]%n;for(let r=0;r<c;r++)g[r]=f[t+r]^h[e*c+r];u(g,0,f,t,s),m()}))}return d(e,a,p,h,g)}},67366:function(e,t,r){"use strict";
vendor: 5,789 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(70915),s=r(29681),i=(e,t,r)=>e&t^e&r^t&r,o=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]),a=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|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{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++){const 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:a,D:u,E:l,F:d,G:h,H:f}=this;for(let e=0;e<64;e++){const t=f+((0,s.rotr)(l,6)^(0,s.rotr)(l,11)^(0,s.rotr)(l,25))+((p=l)&d^~p&h)+o[e]+c[e]|0,g=((0,s.rotr)(r,2)^(0,s.rotr)(r,13)^(0,s.rotr)(r,22))+i(r,n,a)|0;f=h,h=d,d=l,l=u+t|0,u=a,a=n,n=r,r=t+g|0}var p;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,n,a,u,l,d,h,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l 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 l))},7910: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;const n=r(46363),s=r(94881),i=r(29681),[o,a,c]=[[],[],[]],u=BigInt(0),l=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let e=0,t=l,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=u;for(let e=0;e<7;e++)t=(t<<l^(t>>h)*p)%f,t&d&&(s^=l<<(l<<BigInt(e))-l);c.push(s)}const[g,m]=(0,s.split)(c,!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 w(e,t=24){const 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){const n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=y(i,o,1)^r[n],c=b(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){const n=a[r],i=y(t,s,n),c=b(t,s,n),u=o[r];t=e[u],s=e[u+1],e[u]=i,e[u+1]=c}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=w;class v 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 new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){w(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){const 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;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();const 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 new 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 new 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){const{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new v(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=v;const A=(e,t,r)=>(0,i.wrapConstructor)((()=>new v(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)(((n={})=>new v(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},40937: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;const n=r(70915),s=r(94881),i=r(29681),[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)))))(),c=new Uint32Array(80),u=new Uint32Array(80);class l 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(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:s,Cl:i,Dh:o,Dl:a,Eh:c,El:u,Fh:l,Fl:d,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,r,n,s,i,o,a,c,u,l,d,h,f,p,g]}set(e,t,r,n,s,i,o,a,c,u,l,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|c,this.El=0|u,this.Fh=0|l,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)c[r]=e.getUint32(t),u[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],r=0|u[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|c[e-2],a=0|u[e-2],l=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,u[e-7],u[e-16]),f=s.default.add4H(h,n,l,c[e-7],c[e-16]);c[e]=0|f,u[e]=0|h}let{Ah:r,Al:n,Bh:i,Bl:l,Ch:d,Cl:h,Dh:f,Dl:p,Eh:g,El:m,Fh:y,Fl:b,Gh:w,Gl:v,Hh:A,Hl:E}=this;for(let e=0;e<80;e++){const t=s.default.rotrSH(g,m,14)^s.default.rotrSH(g,m,18)^s.default.rotrBH(g,m,41),k=s.default.rotrSL(g,m,14)^s.default.rotrSL(g,m,18)^s.default.rotrBL(g,m,41),P=g&y^~g&w,x=m&b^~m&v,O=s.default.add5L(E,k,x,a[e],u[e]),S=s.default.add5H(O,A,t,P,o[e],c[e]),C=0|O,T=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&i^r&d^i&d,I=n&l^n&h^l&h;A=0|w,E=0|v,w=0|y,v=0|b,y=0|g,b=0|m,({h:g,l:m}=s.default.add(0|f,0|p,0|S,0|C)),f=0|d,p=0|h,d=0|i,h=0|l,i=0|r,l=0|n;const N=s.default.add3L(C,B,I);r=s.default.add3H(N,S,T,_),n=0|N}({h:r,l:n}=s.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:l}=s.default.add(0|this.Bh,0|this.Bl,0|i,0|l)),({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:w,l:v}=s.default.add(0|this.Gh,0|this.Gl,0|w,0|v)),({h:A,l:E}=s.default.add(0|this.Hh,0|this.Hl,0|A,0|E)),this.set(r,n,i,l,d,h,f,p,g,m,y,b,w,v,A,E)}roundClean(){c.fill(0),u.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=l;class d extends l{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 l{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 l{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 l)),t.sha512_224=(0,i.wrapConstructor)((()=>new d)),t.sha512_256=(0,i.wrapConstructor)((()=>new h)),t.sha384=(0,i.wrapConstructor)((()=>new f))},29681:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{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;const n=r(70754),s=e=>e instanceof Uint8Array;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);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!s(e))throw new 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 new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){const n=2*t,s=e.slice(n,n+2),i=Number.parseInt(s,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");r[t]=i}return r};function o(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function a(e){if("string"==typeof e&&(e=o(e)),!s(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);const e=Date.now()-s;e>=0&&e<r||(await(0,t.nextTick)(),s+=e)}},t.utf8ToBytes=o,t.toBytes=a,t.concatBytes=function(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.length),0));let r=0;return e.forEach((e=>{if(!s(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length})),t};t.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==c.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(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 new Error("crypto.getRandomValues must be defined")}},26729: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 new TypeError("The listener must be a function");var a=new s(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=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=new 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 c,u,l=this._events[a],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,s),!0;case 5:return l.fn.call(l.context,t,n,s,i),!0;case 6:return l.fn.call(l.context,t,n,s,i,o),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,f=l.length;for(u=0;
vendor: 7,819 bytes, line 1
1u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,s);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}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 c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||s&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u: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},33715:function(e,t,r){var n=t;n.utils=r(26436),n.common=r(95772),n.sha=r(89041),n.ripemd=r(12949),n.hmac=r(52344),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},95772:function(e,t,r){"use strict";var n=r(26436),s=r(79746);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var s=0;s<e.length;s+=this._delta32)this._update(e,s,s+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),s(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var s=1;s<r;s++)n[s]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[s++]=0;n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=e>>>24&255,n[s++]=e>>>16&255,n[s++]=e>>>8&255,n[s++]=255&e}else for(n[s++]=255&e,n[s++]=e>>>8&255,n[s++]=e>>>16&255,n[s++]=e>>>24&255,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,i=8;i<this.padLength;i++)n[s++]=0;return n}},52344:function(e,t,r){"use strict";var n=r(26436),s=r(79746);function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),s(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},12949:function(e,t,r){"use strict";var n=r(26436),s=r(95772),i=n.rotl32,o=n.sum32,a=n.sum32_3,c=n.sum32_4,u=s.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],s=this.h[2],u=this.h[3],l=this.h[4],b=r,w=n,v=s,A=u,E=l,k=0;k<80;k++){var P=o(i(c(r,d(k,n,s,u),e[p[k]+t],h(k)),m[k]),l);r=l,l=u,u=i(s,10),s=n,n=P,P=o(i(c(b,d(79-k,w,v,A),e[g[k]+t],f(k)),y[k]),E),b=E,E=A,A=i(v,10),v=w,w=P}P=a(this.h[1],s,A),this.h[1]=a(this.h[2],u,E),this.h[2]=a(this.h[3],l,b),this.h[3]=a(this.h[4],r,w),this.h[4]=a(this.h[0],n,v),this.h[0]=P},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(e,t,r){"use strict";t.sha1=r(84761),t.sha224=r(10799),t.sha256=r(89344),t.sha384=r(80772),t.sha512=r(45900)},84761:function(e,t,r){"use strict";var n=r(26436),s=r(95772),i=r(37038),o=n.rotl32,a=n.sum32,c=n.sum32_5,u=i.ft_1,l=s.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var s=this.h[0],i=this.h[1],l=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=c(o(s,5),u(p,i,l,h),f,r[n],d[p]);f=h,h=l,l=o(i,30),i=s,s=g}this.h[0]=a(this.h[0],s),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},10799:function(e,t,r){"use strict";var n=r(26436),s=r(89344);function i(){if(!(this instanceof i))return new i;s.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,s),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},89344:function(e,t,r){"use strict";var n=r(26436),s=r(95772),i=r(37038),o=r(79746),a=n.sum32,c=n.sum32_4,u=n.sum32_5,l=i.ch32,d=i.maj32,h=i.s0_256,f=i.s1_256,p=i.g0_256,g=i.g1_256,m=s.BlockHash,y=[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,2756
vendor: 8,537 bytes, line 1
1734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=c(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var s=this.h[0],i=this.h[1],m=this.h[2],y=this.h[3],b=this.h[4],w=this.h[5],v=this.h[6],A=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var E=u(A,f(b),l(b,w,v),this.k[n],r[n]),k=a(h(s),d(s,i,m));A=v,v=w,w=b,b=a(y,E),y=m,m=i,i=s,s=a(E,k)}this.h[0]=a(this.h[0],s),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],v),this.h[7]=a(this.h[7],A)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},80772:function(e,t,r){"use strict";var n=r(26436),s=r(45900);function i(){if(!(this instanceof i))return new i;s.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,s),e.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},45900:function(e,t,r){"use strict";var n=r(26436),s=r(95772),i=r(79746),o=n.rotr64_hi,a=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=s.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function w(){if(!(this instanceof w))return new w;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function v(e,t,r,n,s){var i=e&r^~e&s;return i<0&&(i+=4294967296),i}function A(e,t,r,n,s,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,s){var i=e&r^e&s^r&s;return i<0&&(i+=4294967296),i}function k(e,t,r,n,s,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function P(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function S(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=o(e,t,1)^o(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function B(e,t){var r=o(e,t,19)^o(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(w,y),e.exports=w,w.blockSize=1024,w.outSize=512,w.hmacStrength=192,w.padLength=128,w.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var s=B(r[n-4],r[n-3]),i=_(r[n-4],r[n-3]),o=r[n-14],a=r[n-13],c=C(r[n-30],r[n-29]),u=T(r[n-30],r[n-29]),l=r[n-32],d=r[n-31];r[n]=f(s,i,o,a,c,u,l,d),r[n+1]=p(s,i,o,a,c,u,l,d)}},w.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],s=this.h[1],o=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],f=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],w=this.h[10],C=this.h[11],T=this.h[12],B=this.h[13],_=this.h[14],I=this.h[15];i(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var R=_,M=I,L=O(y,b),F=S(y,b),D=v(y,b,w,C,T),U=A(y,b,w,C,T,B),j=this.k[N],H=this.k[N+1],$=r[N],G=r[N+1],K=g(R,M,L,F,D,U,j,H,$,G),z=m(R,M,L,F,D,U,j,H,$,G);R=P(n,s),M=x(n,s),L=E(n,s,o,a,c),F=k(n,s,o,a,c,u);var V=d(R,M,L,F),q=h(R,M,L,F);_=T,I=B,T=w,B=C,w=y,C=b,y=d(f,p,K,z),b=h(p,p,K,z),f=c,p=u,c=o,u=a,o=n,a=s,n=d(K,z,V,q),s=h(K,z,V,q)}l(this.h,0,n,s),l(this.h,2,o,a),l(this.h,4,c,u),l(this.h,6,f,p),l(this.h,8,y,b),l(this.h,10,w,C),l(this.h,12,T,B),l(this.h,14,_,I)},w.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37038:function(e,t,r){"use strict";var n=r(26436).rotr32;function s(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?s(t,r,n):1===e||3===e?o(t,r,n):2===e?i(t,r,n):void 0},t.ch32=s,t.maj32=i,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},26436:function(e,t,r){"use strict";var n=r(79746),s=r(35717);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=s,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):i(e,s)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++s)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(s=0;s<e.length;s++)r[s]=0|e[s];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];"little"===t&&(s=o(s)),r+=c(s.toString(16))}return r},t.zero2=a,t.zero8=c,t.join32=function(e,t,r,s){var i=r-t;n(i%4==0);for(var o=new Array(i/4),a=0,c=t;a<o.length;a++,c+=4){var u;u="big"===s?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[a]=u>>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,s=0;n<e.length;n++,s+=4){var i=e[n];"big"===t?(r[s]=i>>>24,r[s+1]=i>>>16&255,r[s+2]=i>>>8&255,r[s+3]=255&i):(r[s+3]=i>>>24,r[s+2]=i>>>16&255,r[s+1]=i>>>8&255,r[s]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,s){return e+t+r+n+s>>>0},t.sum64=function(e,t,r,n){var s=e[t],i=n+e[t+1]>>>0,o=(i<n?1:0)+r+s;e[t]=o>>>
10,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,s,i,o,a){var c=0,u=t;return c+=(u=u+n>>>0)<t?1:0,c+=(u=u+i>>>0)<i?1:0,e+r+s+o+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,s,i,o,a){return t+n+i+a>>>0},t.sum64_5_hi=function(e,t,r,n,s,i,o,a,c,u){var l=0,d=t;return l+=(d=d+n>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+a>>>0)<a?1:0,e+r+s+o+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,s,i,o,a,c,u){return t+n+i+a+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},35717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},96486:function(e,t,r){var n;e=r.nmd(e),function(){var s,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,d=128,h=256,f=1/0,p=9007199254740991,g=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",h]],b="[object Arguments]",w="[object Array]",v="[object Boolean]",A="[object Date]",E="[object Error]",k="[object Function]",P="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",C="[object Promise]",T="[object RegExp]",B="[object Set]",_="[object String]",I="[object Symbol]",N="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",F="[object Float64Array]",D="[object Int8Array]",U="[object Int16Array]",j="[object Int32Array]",H="[object Uint8Array]",$="[object Uint8ClampedArray]",G="[object Uint16Array]",K="[object Uint32Array]",z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,J=RegExp(W.source),Y=RegExp(Q.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,se=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(se.source),oe=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,Ae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 5,916 bytes, line 1
17f]/g,Ee=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Pe="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Be="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_e="['’]",Ie="["+Pe+"]",Ne="["+Be+"]",Re="["+xe+"]",Me="\\d+",Le="["+Oe+"]",Fe="["+Se+"]",De="[^"+Pe+Be+Me+Oe+Se+Ce+"]",Ue="\\ud83c[\\udffb-\\udfff]",je="[^"+Pe+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+Ce+"]",Ke="\\u200d",ze="(?:"+Fe+"|"+De+")",Ve="(?:"+Ge+"|"+De+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Re+"|"+Ue+")"+"?",Je="["+Te+"]?",Ye=Je+Qe+("(?:"+Ke+"(?:"+[je,He,$e].join("|")+")"+Je+Qe+")*"),Ze="(?:"+[Le,He,$e].join("|")+")"+Ye,Xe="(?:"+[je+Re+"?",Re,He,$e,Ie].join("|")+")",et=RegExp(_e,"g"),tt=RegExp(Re,"g"),rt=RegExp(Ue+"(?="+Ue+")|"+Xe+Ye,"g"),nt=RegExp([Ge+"?"+Fe+"+"+qe+"(?="+[Ne,Ge,"$"].join("|")+")",Ve+"+"+We+"(?="+[Ne,Ge+ze,"$"].join("|")+")",Ge+"?"+ze+"+"+qe,Ge+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ze].join("|"),"g"),st=RegExp("["+Ke+Pe+xe+Te+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[L]=ct[F]=ct[D]=ct[U]=ct[j]=ct[H]=ct[$]=ct[G]=ct[K]=!0,ct[b]=ct[w]=ct[R]=ct[v]=ct[M]=ct[A]=ct[E]=ct[k]=ct[x]=ct[O]=ct[S]=ct[T]=ct[B]=ct[_]=ct[N]=!1;var ut={};ut[b]=ut[w]=ut[R]=ut[M]=ut[v]=ut[A]=ut[L]=ut[F]=ut[D]=ut[U]=ut[j]=ut[x]=ut[O]=ut[S]=ut[T]=ut[B]=ut[_]=ut[I]=ut[H]=ut[$]=ut[G]=ut[K]=!0,ut[E]=ut[k]=ut[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,bt=yt&&yt.exports===mt,wt=bt&&ft.process,vt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(e){}}(),At=vt&&vt.isArrayBuffer,Et=vt&&vt.isDate,kt=vt&&vt.isMap,Pt=vt&&vt.isRegExp,xt=vt&&vt.isSet,Ot=vt&&vt.isTypedArray;function St(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var s=-1,i=null==e?0:e.length;++s<i;){var o=e[s];t(n,o,r(o),e)}return n}function Tt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Bt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function _t(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function It(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}function Nt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Rt(e,t,r){for(var n=-1,s=null==e?0:e.length;++n<s;)if(r(t,e[n]))return!0;return!1}function Mt(e,t){for(var r=-1,n=null==e?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}function Lt(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}function Ft(e,t,r,n){var s=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++s]);++s<i;)r=t(r,e[s],s,e);return r}function Dt(e,t,r,n){var s=null==e?0:e.length;for(n&&s&&(r=e[--s]);s--;)r=t(r,e[s],s,e);return r}function Ut(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var jt=qt("length");function Ht(e,t,r){var n;return r(e,(function(e,r,s){if(t(e,r,s))return n=r,!1})),n}function $t(e,t,r,n){for(var s=e.length,i=r+(n?1:-1);n?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function Gt(e,t,r){return t==t?function(e,t,r){var n=r-1,s=e.length;for(;++n<s;)if(e[n]===t)return n;return-1}(e,t,r):$t(e,zt,r)}function Kt(e,t,r,n){for(var s=r-1,i=e.length;++s<i;)if(n(e[s],t))return s;return-1}function zt(e){return e!=e}function Vt(e,t){var r=null==e?0:e.length;return r?Jt(e,t)/r:g}function qt(e){return function(t){return null==t?s:t[e]}}function Wt(e){return function(t){return null==e?s:e[t]}}function Qt(e,t,r,n,s){return s(e,(function(e,s,i){r=n?(n=!1,e):t(r,e,s,i)})),r}function Jt(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);o!==s&&(r=r===s?o:r+o)}return r}function Yt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Zt(e){return e?e.slice(0,mr(e)+1).replace(oe,""):e}function Xt(e){return function(t){return e(t)}}function er(e,t){return Mt(t,(function(t){return e[t]}))}function tr(e,t){return e.has(t)}function rr(e,t){for(var r=-1,n=e.length;++r<n&&Gt(t,e[r],0)>-1;);return r}function nr(e,t){for(var r=e.length;r--&&Gt(t,e[r],0)>-1;);return r}function sr(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var ir=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"
1c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),or=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+lt[e]}function cr(e){return st.test(e)}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function dr(e,t){for(var r=-1,n=e.length,s=0,i=[];++r<n;){var o=e[r];o!==t&&o!==a||(e[r]=a,i[s++]=r)}return i}function hr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function pr(e){return cr(e)?function(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}(e):jt(e)}function gr(e){return cr(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.split("")}(e)}function mr(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yr=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var br=function e(t){var r,n=(t=null==t?gt:br.defaults(gt.Object(),t,br.pick(gt,ot))).Array,ae=t.Date,Pe=t.Error,xe=t.Function,Oe=t.Math,Se=t.Object,Ce=t.RegExp,Te=t.String,Be=t.TypeError,_e=n.prototype,Ie=xe.prototype,Ne=Se.prototype,Re=t["__core-js_shared__"],Me=Ie.toString,Le=Ne.hasOwnProperty,Fe=0,De=(r=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ue=Ne.toString,je=Me.call(Se),He=gt._,$e=Ce("^"+Me.call(Le).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=bt?t.Buffer:s,Ke=t.Symbol,ze=t.Uint8Array,Ve=Ge?Ge.allocUnsafe:s,qe=lr(Se.getPrototypeOf,Se),We=Se.create,Qe=Ne.propertyIsEnumerable,Je=_e.splice,Ye=Ke?Ke.isConcatSpreadable:s,Ze=Ke?Ke.iterator:s,Xe=Ke?Ke.toStringTag:s,rt=function(){try{var e=fi(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==gt.Date.now&&ae.now,ft=t.setTimeout!==gt.setTimeout&&t.setTimeout,pt=Oe.ceil,mt=Oe.floor,yt=Se.getOwnPropertySymbols,wt=Ge?Ge.isBuffer:s,vt=t.isFinite,jt=_e.join,Wt=lr(Se.keys,Se),wr=Oe.max,vr=Oe.min,Ar=ae.now,Er=t.parseInt,kr=Oe.random,Pr=_e.reverse,xr=fi(t,"DataView"),Or=fi(t,"Map"),Sr=fi(t,"Promise"),Cr=fi(t,"Set"),Tr=fi(t,"WeakMap"),Br=fi(Se,"create"),_r=Tr&&new Tr,Ir={},Nr=ji(xr),Rr=ji(Or),Mr=ji(Sr),Lr=ji(Cr),Fr=ji(Tr),Dr=Ke?Ke.prototype:s,Ur=Dr?Dr.valueOf:s,jr=Dr?Dr.toString:s;function Hr(e){if(sa(e)&&!qo(e)&&!(e instanceof zr)){if(e instanceof Kr)return e;if(Le.call(e,"__wrapped__"))return Hi(e)}return new Kr(e)}var $r=function(){function e(){}return function(t){if(!na(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=s,r}}();function Gr(){}function Kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Qr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Wr;++t<r;)this.add(e[t])}function Jr(e){var t=this.__data__=new qr(e);this.size=t.size}function Yr(e,t){var r=qo(e),n=!r&&Vo(e),s=!r&&!n&&Yo(e),i=!r&&!n&&!s&&ha(e),o=r||n||s||i,a=o?Yt(e.length,Te):[],c=a.length;for(var u in e)!t&&!Le.call(e,u)||o&&("length"==u||s&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vi(u,c))||a.push(u);return a}function Zr(e){var t=e.length;return t?e[Jn(0,t-1)]:s}function Xr(e,t){return Fi(_s(e),un(t,0,e.length))}function en(e){return Fi(_s(e))}function tn(e,t,r){(r!==s&&!Go(e[t],r)||r===s&&!(t in e))&&an(e,t,r)}function rn(e,t,r){var n=e[t];Le.call(e,t)&&Go(n,r)&&(r!==s||t in e)||an(e,t,r)}function nn(e,t){for(var r=e.length;r--;)if(Go(e[r][0],t))return r;return-1}function sn(e,t,r,n){return pn(e,(function(e,s,i){t(n,e,r(e),i)})),n}function on(e,t){return e&&Is(t,Ra(t),e)}function an(e,t,r){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function cn(e,t){for(var r=-1,i=t.length,o=n(i),a=null==e;++r<i;)o[r]=a?s:Ta(e,t[r]);return o}function un(e,t,r){return e==e&&(r!==s&&(e=e<=r?e:r),t!==s&&(e=e>=t?e:t)),e}function ln(e,t,r,n,i,o){var a,c=1&t,u=2&t,l=4&t;if(r&&(a=i?r(e,n,i,o):r(e)),a!==s)return a;
vendor: 6,641 bytes, line 1
1if(!na(e))return e;var d=qo(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return _s(e,a)}else{var h=mi(e),f=h==k||h==P;if(Yo(e))return xs(e,c);if(h==S||h==b||f&&!i){if(a=u||f?{}:bi(e),!c)return u?function(e,t){return Is(e,gi(e),t)}(e,function(e,t){return e&&Is(t,Ma(t),e)}(a,e)):function(e,t){return Is(e,pi(e),t)}(e,on(a,e))}else{if(!ut[h])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case R:return Os(e);case v:case A:return new n(+e);case M:return function(e,t){var r=t?Os(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case L:case F:case D:case U:case j:case H:case $:case G:case K:return Ss(e,r);case x:return new n;case O:case _:return new n(e);case T:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case B:return new n;case I:return s=e,Ur?Se(Ur.call(s)):{}}var s}(e,h,c)}}o||(o=new Jr);var p=o.get(e);if(p)return p;o.set(e,a),ua(e)?e.forEach((function(n){a.add(ln(n,t,r,n,e,o))})):ia(e)&&e.forEach((function(n,s){a.set(s,ln(n,t,r,s,e,o))}));var g=d?s:(l?u?oi:ii:u?Ma:Ra)(e);return Tt(g||e,(function(n,s){g&&(n=e[s=n]),rn(a,s,ln(n,t,r,s,e,o))})),a}function dn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Se(e);n--;){var i=r[n],o=t[i],a=e[i];if(a===s&&!(i in e)||!o(a))return!1}return!0}function hn(e,t,r){if("function"!=typeof e)throw new Be(i);return Ni((function(){e.apply(s,r)}),t)}function fn(e,t,r,n){var s=-1,i=Nt,o=!0,a=e.length,c=[],u=t.length;if(!a)return c;r&&(t=Mt(t,Xt(r))),n?(i=Rt,o=!1):t.length>=200&&(i=tr,o=!1,t=new Qr(t));e:for(;++s<a;){var l=e[s],d=null==r?l:r(l);if(l=n||0!==l?l:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(l)}else i(t,d,n)||c.push(l)}return c}Hr.templateSettings={escape:Z,evaluate:X,interpolate:ee,variable:"",imports:{_:Hr}},Hr.prototype=Gr.prototype,Hr.prototype.constructor=Hr,Kr.prototype=$r(Gr.prototype),Kr.prototype.constructor=Kr,zr.prototype=$r(Gr.prototype),zr.prototype.constructor=zr,Vr.prototype.clear=function(){this.__data__=Br?Br(null):{},this.size=0},Vr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vr.prototype.get=function(e){var t=this.__data__;if(Br){var r=t[e];return r===o?s:r}return Le.call(t,e)?t[e]:s},Vr.prototype.has=function(e){var t=this.__data__;return Br?t[e]!==s:Le.call(t,e)},Vr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Br&&t===s?o:t,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=nn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Je.call(t,r,1),--this.size,!0)},qr.prototype.get=function(e){var t=this.__data__,r=nn(t,e);return r<0?s:t[r][1]},qr.prototype.has=function(e){return nn(this.__data__,e)>-1},qr.prototype.set=function(e,t){var r=this.__data__,n=nn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(Or||qr),string:new Vr}},Wr.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return di(this,e).get(e)},Wr.prototype.has=function(e){return di(this,e).has(e)},Wr.prototype.set=function(e,t){var r=di(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Qr.prototype.add=Qr.prototype.push=function(e){return this.__data__.set(e,o),this},Qr.prototype.has=function(e){return this.__data__.has(e)},Jr.prototype.clear=function(){this.__data__=new qr,this.size=0},Jr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Jr.prototype.get=function(e){return this.__data__.get(e)},Jr.prototype.has=function(e){return this.__data__.has(e)},Jr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var pn=Ms(En),gn=Ms(kn,!0);function mn(e,t){var r=!0;return pn(e,(function(e,n,s){return r=!!t(e,n,s)})),r}function yn(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(null!=a&&(c===s?a==a&&!da(a):r(a,c)))var c=a,u=o}return u}function bn(e,t){var r=[];return pn(e,(function(e,n,s){t(e,n,s)&&r.push(e)})),r}function wn(e,t,r,n,s){var i=-1,o=e.length;for(r||(r=wi),s||(s=[]);++i<o;){var a=e[i];t>0&&r(a)?t>1?wn(a,t-1,r,n,s):Lt(s,a):n||(s[s.length]=a)}return s}var vn=Ls(),An=Ls(!0);function En(e,t){return e&&vn(e,t,Ra)}function kn(e,t){return e&&An(e,t,Ra)}function Pn(e,t){return It(t,(function(t){return ea(e[t])}))}function xn(e,t){for(var r=0,n=(t=As(t,e)).length;null!=e&&r<n;)e=e[Ui(t[r++])];return r&&r==n?e:s}function On(e,t,r){var n=t(e);return qo(e)?n:Lt(n,r(e))}function Sn(e){return null==e?e===s?"[object Undefined]":"[object Null]":Xe&&Xe in Se(e)?function(e){var t=Le.call(e,Xe),r=e[Xe];try{e[Xe]=s;var n=!0}catch(e){}var i=Ue.call(e);n&&(t?e[Xe]=r:delete e[Xe]);return i}(e):function(e){return Ue.call(e)}(e)}function Cn(e,t){return e>t}function Tn(e,t){return null!=e&&Le.call(e,t)}function Bn(e,t){return null!=e&&t in Se(e)}function _n(e,t,r){for(var i=r?Rt:Nt,o=e[0].length,a=e.length,c=a,u=n(a),l=1/0,d=[];c--;){var h=e[c];c&&t&&(h=Mt(h,Xt(t))),l=vr(h.length,l),u[c]=!r&&(t||o>=120&&h.length>=120)?new Qr(c&&h):s}h=e[0];var f=-1,p=u[0];e:for(;++f<o&&d.length<l;){var g=h[f],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?tr(p,m):i(d,m,r))){for(c=a;--c;){var y=u[c];if(!(y?tr(y,m):i(e[c],m,r)))continue e}p&&p.push(m),d.push(g)}}return d}function In(e,t,r){var n=null==(e=Ti(e,t=As(t,e)))?e:e[Ui(Zi(t))];return null==n?s:St(n,e,r)}function Nn(e){return sa(e)&&Sn(e)==b}function Rn(e,t,r,n,i){return e===t||(null==e||null==t||!sa(e)&&!sa(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=qo(e),c=qo(t),u=a?w:mi(e),l=c?w:mi(t),d=(u=u==b?S:u)==S,h=(l=l==b?S:l)==S,f=u==l;if(f&&Yo(e)){if(!Yo(t))return!1;a=!0,d=!1}if(f&&!d)return o||(o=new Jr),a||ha(e)?ni(e,t,r,n,i,o):function(e,t,r,n,s,i,o){switch(r){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case A:case O:return Go(+e,+t);case E:return e.name==t.name&&e.message==t.message;case T:case _:return e==t+"";case x:var a=ur;case B:var c=1&n;if(a||(a=hr),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var l=ni(a(e),a(t),n,s,i,o);return o.delete(e),l;case I:if(Ur)return Ur.call(e)==Ur.call(t)}return!1}(e,t,u,r,n,i,o);if(!(1&r)){var p=d&&Le.call(e,"__wrapped__"),g=h&&Le.call(t,"__wrapped__");
vendor: 9,543 bytes, line 1
1if(p||g){var m=p?e.value():e,y=g?t.value():t;return o||(o=new Jr),i(m,y,r,n,o)}}if(!f)return!1;return o||(o=new Jr),function(e,t,r,n,i,o){var a=1&r,c=ii(e),u=c.length,l=ii(t),d=l.length;if(u!=d&&!a)return!1;var h=u;for(;h--;){var f=c[h];if(!(a?f in t:Le.call(t,f)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);var y=a;for(;++h<u;){var b=e[f=c[h]],w=t[f];if(n)var v=a?n(w,b,f,t,e,o):n(b,w,f,e,t,o);if(!(v===s?b===w||i(b,w,r,n,o):v)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var A=e.constructor,E=t.constructor;A==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof E&&E instanceof E||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,r,n,i,o)}(e,t,r,n,Rn,i))}function Mn(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Se(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){var u=(c=r[i])[0],l=e[u],d=c[1];if(a&&c[2]){if(l===s&&!(u in e))return!1}else{var h=new Jr;if(n)var f=n(l,d,u,e,t,h);if(!(f===s?Rn(d,l,3,n,h):f))return!1}}return!0}function Ln(e){return!(!na(e)||(t=e,De&&De in t))&&(ea(e)?$e:be).test(ji(e));var t}function Fn(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?qo(e)?Gn(e[0],e[1]):$n(e):gc(e)}function Dn(e){if(!xi(e))return Wt(e);var t=[];for(var r in Se(e))Le.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Un(e){if(!na(e))return function(e){var t=[];if(null!=e)for(var r in Se(e))t.push(r);return t}(e);var t=xi(e),r=[];for(var n in e)("constructor"!=n||!t&&Le.call(e,n))&&r.push(n);return r}function jn(e,t){return e<t}function Hn(e,t){var r=-1,s=Qo(e)?n(e.length):[];return pn(e,(function(e,n,i){s[++r]=t(e,n,i)})),s}function $n(e){var t=hi(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(r){return r===e||Mn(r,e,t)}}function Gn(e,t){return Ei(e)&&Oi(t)?Si(Ui(e),t):function(r){var n=Ta(r,e);return n===s&&n===t?Ba(r,e):Rn(t,n,3)}}function Kn(e,t,r,n,i){e!==t&&vn(t,(function(o,a){if(i||(i=new Jr),na(o))!function(e,t,r,n,i,o,a){var c=_i(e,r),u=_i(t,r),l=a.get(u);if(l)return void tn(e,r,l);var d=o?o(c,u,r+"",e,t,a):s,h=d===s;if(h){var f=qo(u),p=!f&&Yo(u),g=!f&&!p&&ha(u);d=u,f||p||g?qo(c)?d=c:Jo(c)?d=_s(c):p?(h=!1,d=xs(u,!0)):g?(h=!1,d=Ss(u,!0)):d=[]:aa(u)||Vo(u)?(d=c,Vo(c)?d=va(c):na(c)&&!ea(c)||(d=bi(u))):h=!1}h&&(a.set(u,d),i(d,u,n,o,a),a.delete(u));tn(e,r,d)}(e,t,a,r,Kn,n,i);else{var c=n?n(_i(e,a),o,a+"",e,t,i):s;c===s&&(c=o),tn(e,a,c)}}),Ma)}function zn(e,t){var r=e.length;if(r)return vi(t+=t<0?r:0,r)?e[t]:s}function Vn(e,t,r){t=t.length?Mt(t,(function(e){return qo(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[oc];var n=-1;t=Mt(t,Xt(li()));var s=Hn(e,(function(e,r,s){var i=Mt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(s,(function(e,t){return function(e,t,r){var n=-1,s=e.criteria,i=t.criteria,o=s.length,a=r.length;for(;++n<o;){var c=Cs(s[n],i[n]);if(c)return n>=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,s=t.length,i={};++n<s;){var o=t[n],a=xn(e,o);r(a,o)&&ts(i,As(o,e),a)}return i}function Wn(e,t,r,n){var s=n?Kt:Gt,i=-1,o=t.length,a=e;for(e===t&&(t=_s(t)),r&&(a=Mt(e,Xt(r)));++i<o;)for(var c=0,u=t[i],l=r?r(u):u;(c=s(a,l,c,n))>-1;)a!==e&&Je.call(a,c,1),Je.call(e,c,1);return e}function Qn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var s=t[r];if(r==n||s!==i){var i=s;vi(s)?Je.call(e,s,1):fs(e,s)}}return e}function Jn(e,t){return e+mt(kr()*(t-e+1))}function Yn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Ri(Ci(e,t,oc),e+"")}function Xn(e){return Zr(Ga(e))}function es(e,t){var r=Ga(e);return Fi(r,un(t,0,r.length))}function ts(e,t,r,n){if(!na(e))return e;for(var i=-1,o=(t=As(t,e)).length,a=o-1,c=e;null!=c&&++i<o;){var u=Ui(t[i]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=c[u];(l=n?n(d,u,c):s)===s&&(l=na(d)?d:vi(t[i+1])?[]:{})}rn(c,u,l),c=c[u]}return e}var rs=_r?function(e,t){return _r.set(e,t),e}:oc,ns=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:nc(t),writable:!0})}:oc;function ss(e){return Fi(Ga(e))}function is(e,t,r){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++s<i;)o[s]=e[s+t];return o}function os(e,t){var r;return pn(e,(function(e,n,s){return!(r=t(e,n,s))})),!!r}function as(e,t,r){var n=0,s=null==e?n:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;n<s;){var i=n+s>>>1,o=e[i];null!==o&&!da(o)&&(r?o<=t:o<t)?n=i+1:s=i}return s}return cs(e,t,oc,r)}function cs(e,t,r,n){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=r(t))!=t,c=null===t,u=da(t),l=t===s;i<o;){var d=mt((i+o)/2),h=r(e[d]),f=h!==s,p=null===h,g=h==h,m=da(h);if(a)var y=n||g;else y=l?g&&(n||f):c?g&&f&&(n||!p):u?g&&f&&!p&&(n||!m):!p&&!m&&(n?h<=t:h<t);y?i=d+1:o=d}return vr(o,4294967294)}function us(e,t){for(var r=-1,n=e.length,s=0,i=[];++r<n;){var o=e[r],a=t?t(o):o;if(!r||!Go(a,c)){var c=a;i[s++]=0===o?0:o}}return i}function ls(e){return"number"==typeof e?e:da(e)?g:+e}function ds(e){if("string"==typeof e)return e;if(qo(e))return Mt(e,ds)+"";if(da(e))return jr?jr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function hs(e,t,r){var n=-1,s=Nt,i=e.length,o=!0,a=[],c=a;if(r)o=!1,s=Rt;else if(i>=200){var u=t?null:Ys(e);if(u)return hr(u);o=!1,s=tr,c=new Qr}else c=t?[]:a;e:for(;++n<i;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,o&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),a.push(l)}else s(c,d,r)||(c!==a&&c.push(d),a.push(l))}return a}function fs(e,t){return null==(e=Ti(e,t=As(t,e)))||delete e[Ui(Zi(t))]}function ps(e,t,r,n){return ts(e,t,r(xn(e,t)),n)}function gs(e,t,r,n){for(var s=e.length,i=n?s:-1;(n?i--:++i<s)&&t(e[i],i,e););return r?is(e,n?0:i,n?i+1:s):is(e,n?i+1:0,n?s:i)}function ms(e,t){var r=e;return r instanceof zr&&(r=r.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),r)}function ys(e,t,r){var s=e.length;if(s<2)return s?hs(e[0]):[];for(var i=-1,o=n(s);++i<s;)for(var a=e[i],c=-1;++c<s;)c!=i&&(o[i]=fn(o[i]||a,e[c],t,r));return hs(wn(o,1),t,r)}function bs(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var c=n<o?t[n]:s;r(a,e[n],c)}return a}function ws(e){return Jo(e)?e:[]}function vs(e){return"function"==typeof e?e:oc}function As(e,t){return qo(e)?e:Ei(e,t)?[e]:Di(Aa(e))}var Es=Zn;function ks(e,t,r){var n=e.length;return r=r===s?n:r,!t&&r>=n?e:is(e,t,r)}var Ps=st||function(e){return gt.clearTimeout(e)};function xs(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function Os(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Ss(e,t){var r=t?Os(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Cs(e,t){if(e!==t){var r=e!==s,n=null===e,i=e==e,o=da(e),a=t!==s,c=null===t,u=t==t,l=da(t);if(!c&&!l&&!o&&e>t||o&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&e<t||l&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!u)return-1}return 0}function Ts(e,t,r,s){for(var i=-1,o=e.length,a=r.length,c=-1,u=t.length,l=wr(o-a,0),d=n(u+l),h=!s;++c<u;)d[c]=t[c];for(;++i<a;)(h||i<o)&&(d[r[i]]=e[i]);for(;l--;)d[c++]=e[i++];return d}function Bs(e,t,r,s){for(var i=-1,o=e.length,a=-1,c=r.length,u=-1,l=t.length,d=wr(o-c,0),h=n(d+l),f=!s;++i<d;)h[i]=e[i];for(var p=i;++u<l;)h[p+u]=t[u];for(;++a<c;)(f||i<o)&&(h[p+r[a]]=e[i++]);return h}function _s(e,t){var r=-1,s=e.length;for(t||(t=n(s));++r<s;)t[r]=e[r];return t}function Is(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var c=t[o],u=n?n(r[c],e[c],c,r,e):s;u===s&&(u=e[c]),i?an(r,c,u):rn(r,c,u)}return r}function Ns(e,t){return function(r,n){var s=qo(r)?Ct:sn,i=t?t():{};return s(r,e,li(n,2),i)}}function Rs(e){return Zn((function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:s,a=i>2?r[2]:s;for(o=e.length>3&&"function"==typeof o?(i--,o):s,a&&Ai(r[0],r[1],a)&&(o=i<3?s:o,i=1),t=Se(t);++n<i;){var c=r[n];c&&e(t,c,n,o)}return t}))}function Ms(e,t){return function(r,n){if(null==r)return r;if(!Qo(r))return e(r,n);for(var s=r.length,i=t?s:-1,o=Se(r);(t?i--:++i<s)&&!1!==n(o[i],i,o););return r}}function Ls(e){return function(t,r,n){for(var s=-1,i=Se(t),o=n(t),a=o.length;a--;){var c=o[e?a:++s];if(!1===r(i[c],c,i))break}return t}}function Fs(e){return function(t){var r=cr(t=Aa(t))?gr(t):s,n=r?r[0]:t.charAt(0),i=r?ks(r,1).join(""):t.slice(1);return n[e]()+i}}function Ds(e){return function(t){return Ft(ec(Va(t).replace(et,"")),e,"")}}function Us(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=$r(e.prototype),n=e.apply(r,t);return na(n)?n:r}}function js(e){return function(t,r,n){var i=Se(t);if(!Qo(t)){var o=li(r,3);t=Ra(t),r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:s}}function Hs(e){return si((function(t){var r=t.length,n=r,o=Kr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Be(i);if(o&&!c&&"wrapper"==ci(a))var c=new Kr([],!0)}for(n=c?n:r;++n<r;){var u=ci(a=t[n]),l="wrapper"==u?ai(a):s;c=l&&ki(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ci(l[0])].apply(c,l[3]):1==a.length&&ki(a)?c[u]():c.thru(a)}return function(){var e=arguments,n=e[0];
vendor: 24,388 bytes, line 1
1if(c&&1==e.length&&qo(n))return c.plant(n).value();for(var s=0,i=r?t[s].apply(this,e):n;++s<r;)i=t[s].call(this,i);return i}}))}function $s(e,t,r,i,o,a,c,u,l,h){var f=t&d,p=1&t,g=2&t,m=24&t,y=512&t,b=g?s:Us(e);return function s(){for(var d=arguments.length,w=n(d),v=d;v--;)w[v]=arguments[v];if(m)var A=ui(s),E=sr(w,A);if(i&&(w=Ts(w,i,o,m)),a&&(w=Bs(w,a,c,m)),d-=E,m&&d<h){var k=dr(w,A);return Qs(e,t,$s,s.placeholder,r,w,k,u,l,h-d)}var P=p?r:this,x=g?P[e]:e;return d=w.length,u?w=Bi(w,u):y&&d>1&&w.reverse(),f&&l<d&&(w.length=l),this&&this!==gt&&this instanceof s&&(x=b||Us(x)),x.apply(P,w)}}function Gs(e,t){return function(r,n){return function(e,t,r,n){return En(e,(function(e,s,i){t(n,r(e),s,i)})),n}(r,e,t(n),{})}}function Ks(e,t){return function(r,n){var i;if(r===s&&n===s)return t;if(r!==s&&(i=r),n!==s){if(i===s)return n;"string"==typeof r||"string"==typeof n?(r=ds(r),n=ds(n)):(r=ls(r),n=ls(n)),i=e(r,n)}return i}}function zs(e){return si((function(t){return t=Mt(t,Xt(li())),Zn((function(r){var n=this;return e(t,(function(e){return St(e,n,r)}))}))}))}function Vs(e,t){var r=(t=t===s?" ":ds(t)).length;if(r<2)return r?Yn(t,e):t;var n=Yn(t,pt(e/pr(t)));return cr(t)?ks(gr(n),0,e).join(""):n.slice(0,e)}function qs(e){return function(t,r,i){return i&&"number"!=typeof i&&Ai(t,r,i)&&(r=i=s),t=ma(t),r===s?(r=t,t=0):r=ma(r),function(e,t,r,s){for(var i=-1,o=wr(pt((t-e)/(r||1)),0),a=n(o);o--;)a[s?o:++i]=e,e+=r;return a}(t,r,i=i===s?t<r?1:-1:ma(i),e)}}function Ws(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=wa(t),r=wa(r)),e(t,r)}}function Qs(e,t,r,n,i,o,a,c,d,h){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var p=[e,t,i,f?o:s,f?a:s,f?s:o,f?s:a,c,d,h],g=r.apply(s,p);return ki(e)&&Ii(g,p),g.placeholder=n,Mi(g,e,t)}function Js(e){var t=Oe[e];return function(e,r){if(e=wa(e),(r=null==r?0:vr(ya(r),292))&&vt(e)){var n=(Aa(e)+"e").split("e");return+((n=(Aa(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Ys=Cr&&1/hr(new Cr([,-0]))[1]==f?function(e){return new Cr(e)}:dc;function Zs(e){return function(t){var r=mi(t);return r==x?ur(t):r==B?fr(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xs(e,t,r,o,f,p,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new Be(i);var b=o?o.length:0;if(b||(t&=-97,o=f=s),g=g===s?g:wr(ya(g),0),m=m===s?m:ya(m),b-=f?f.length:0,t&l){var w=o,v=f;o=f=s}var A=y?s:ai(e),E=[e,t,r,o,f,w,v,p,g,m];if(A&&function(e,t){var r=e[1],n=t[1],s=r|n,i=s<131,o=n==d&&8==r||n==d&&r==h&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!o)return e;1&n&&(e[2]=t[2],s|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Ts(u,c,t[4]):c,e[4]=u?dr(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Bs(u,c,t[6]):c,e[6]=u?dr(e[5],a):t[6]);(c=t[7])&&(e[7]=c);n&d&&(e[8]=null==e[8]?t[8]:vr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(E,A),e=E[0],t=E[1],r=E[2],o=E[3],f=E[4],!(m=E[9]=E[9]===s?y?0:e.length:wr(E[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==c?function(e,t,r){var i=Us(e);return function o(){for(var a=arguments.length,c=n(a),u=a,l=ui(o);u--;)c[u]=arguments[u];var d=a<3&&c[0]!==l&&c[a-1]!==l?[]:dr(c,l);return(a-=d.length)<r?Qs(e,t,$s,o.placeholder,s,c,d,s,s,r-a):St(this&&this!==gt&&this instanceof o?i:e,this,c)}}(e,t,m):t!=u&&33!=t||f.length?$s.apply(s,E):function(e,t,r,s){var i=1&t,o=Us(e);return function t(){for(var a=-1,c=arguments.length,u=-1,l=s.length,d=n(l+c),h=this&&this!==gt&&this instanceof t?o:e;++u<l;)d[u]=s[u];for(;c--;)d[u++]=arguments[++a];return St(h,i?r:this,d)}}(e,t,r,o);else var k=function(e,t,r){var n=1&t,s=Us(e);return function t(){return(this&&this!==gt&&this instanceof t?s:e).apply(n?r:this,arguments)}}(e,t,r);return Mi((A?rs:Ii)(k,E),e,t)}function ei(e,t,r,n){return e===s||Go(e,Ne[r])&&!Le.call(n,r)?t:e}function ti(e,t,r,n,i,o){return na(e)&&na(t)&&(o.set(t,e),Kn(e,t,s,ti,o),o.delete(t)),e}function ri(e){return aa(e)?s:e}function ni(e,t,r,n,i,o){var a=1&r,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(e),d=o.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=2&r?new Qr:s;for(o.set(e,t),o.set(t,e);++h<c;){var g=e[h],m=t[h];if(n)var y=a?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(y!==s){if(y)continue;f=!1;break}if(p){if(!Ut(t,(function(e,t){if(!tr(p,t)&&(g===e||i(g,e,r,n,o)))return p.push(t)}))){f=!1;break}}else if(g!==m&&!i(g,m,r,n,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function si(e){return Ri(Ci(e,s,qi),e+"")}function ii(e){return On(e,Ra,pi)}function oi(e){return On(e,Ma,gi)}var ai=_r?function(e){return _r.get(e)}:dc;function ci(e){for(var t=e.name+"",r=Ir[t],n=Le.call(Ir,t)?r.length:0;n--;){var s=r[n],i=s.func;if(null==i||i==e)return s.name}return t}function ui(e){return(Le.call(Hr,"placeholder")?Hr:e).placeholder}function li(){var e=Hr.iteratee||ac;return e=e===ac?Fn:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var r,n,s=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?s["string"==typeof t?"string":"hash"]:s.map}function hi(e){for(var t=Ra(e),r=t.length;r--;){var n=t[r],s=e[n];t[r]=[n,s,Oi(s)]}return t}function fi(e,t){var r=function(e,t){return null==e?s:e[t]}(e,t);return Ln(r)?r:s}var pi=yt?function(e){return null==e?[]:(e=Se(e),It(yt(e),(function(t){return Qe.call(e,t)})))}:bc,gi=yt?function(e){for(var t=[];e;)Lt(t,pi(e)),e=qe(e);return t}:bc,mi=Sn;function yi(e,t,r){for(var n=-1,s=(t=As(t,e)).length,i=!1;++n<s;){var o=Ui(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=s?i:!!(s=null==e?0:e.length)&&ra(s)&&vi(o,s)&&(qo(e)||Vo(e))}function bi(e){return"function"!=typeof e.constructor||xi(e)?{}:$r(qe(e))}function wi(e){return qo(e)||Vo(e)||!!(Ye&&e&&e[Ye])}function vi(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Ai(e,t,r){if(!na(r))return!1;var n=typeof t;return!!("number"==n?Qo(r)&&vi(t,r.length):"string"==n&&t in r)&&Go(r[t],e)}function Ei(e,t){if(qo(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!da(e))||(re.test(e)||!te.test(e)||null!=t&&e in Se(t))}function ki(e){var t=ci(e),r=Hr[t];if("function"!=typeof r||!(t in zr.prototype))return!1;if(e===r)return!0;var n=ai(r);return!!n&&e===n[0]}(xr&&mi(new xr(new ArrayBuffer(1)))!=M||Or&&mi(new Or)!=x||Sr&&mi(Sr.resolve())!=C||Cr&&mi(new Cr)!=B||Tr&&mi(new Tr)!=N)&&(mi=function(e){var t=Sn(e),r=t==S?e.constructor:s,n=r?ji(r):"";if(n)switch(n){case Nr:return M;case Rr:return x;case Mr:return C;case Lr:return B;case Fr:return N}return t});var Pi=Re?ea:wc;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Oi(e){return e==e&&!na(e)}function Si(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==s||e in Se(r)))}}function Ci(e,t,r){return t=wr(t===s?e.length-1:t,0),function(){for(var s=arguments,i=-1,o=wr(s.length-t,0),a=n(o);++i<o;)a[i]=s[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=s[i];return c[t]=r(a),St(e,this,c)}}function Ti(e,t){return t.length<2?e:xn(e,is(t,0,-1))}function Bi(e,t){for(var r=e.length,n=vr(t.length,r),i=_s(e);n--;){var o=t[n];e[n]=vi(o,r)?i[o]:s}return e}function _i(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Li(rs),Ni=ft||function(e,t){return gt.setTimeout(e,t)},Ri=Li(ns);function Mi(e,t,r){var n=t+"";return Ri(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(y,(function(r){var n="_."+r[0];t&r[1]&&!Nt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(n),r)))}function Li(e){var t=0,r=0;return function(){var n=Ar(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Fi(e,t){var r=-1,n=e.length,i=n-1;for(t=t===s?n:t;++r<t;){var o=Jn(r,i),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}var Di=function(e){var t=Fo(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,r,n,s){t.push(n?s.replace(fe,"$1"):r||e)})),t}));function Ui(e){if("string"==typeof e||da(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof zr)return e.clone();var t=new Kr(e.__wrapped__,e.__chain__);return t.__actions__=_s(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Zn((function(e,t){return Jo(e)?fn(e,wn(t,1,Jo,!0)):[]})),Gi=Zn((function(e,t){var r=Zi(t);return Jo(r)&&(r=s),Jo(e)?fn(e,wn(t,1,Jo,!0),li(r,2)):[]})),Ki=Zn((function(e,t){var r=Zi(t);return Jo(r)&&(r=s),Jo(e)?fn(e,wn(t,1,Jo,!0),s,r):[]}));function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var s=null==r?0:ya(r);return s<0&&(s=wr(n+s,0)),$t(e,li(t,3),s)}function Vi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==s&&(i=ya(r),i=r<0?wr(n+i,0):vr(i,n-1)),$t(e,li(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?wn(e,1):[]}function Wi(e){return e&&e.length?e[0]:s}var Qi=Zn((function(e){var t=Mt(e,ws);return t.length&&t[0]===e[0]?_n(t):[]})),Ji=Zn((function(e){var t=Zi(e),r=Mt(e,ws);return t===Zi(r)?t=s:r.pop(),r.length&&r[0]===e[0]?_n(r,li(t,2)):[]})),Yi=Zn((function(e){var t=Zi(e),r=Mt(e,ws);return(t="function"==typeof t?t:s)&&r.pop(),r.length&&r[0]===e[0]?_n(r,s,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:s}var Xi=Zn(eo);function eo(e,t){return e&&e.length&&t&&t.length?Wn(e,t):e}var to=si((function(e,t){var r=null==e?0:e.length,n=cn(e,t);return Qn(e,Mt(t,(function(e){return vi(e,r)?+e:e})).sort(Cs)),n}));function ro(e){return null==e?e:Pr.call(e)}var no=Zn((function(e){return hs(wn(e,1,Jo,!0))})),so=Zn((function(e){var t=Zi(e);return Jo(t)&&(t=s),hs(wn(e,1,Jo,!0),li(t,2))})),io=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:s,hs(wn(e,1,Jo,!0),s,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Jo(e))return t=wr(e.length,t),!0})),Yt(t,(function(t){return Mt(e,qt(t))}))}function ao(e,t){if(!e||!e.length)return[];var r=oo(e);return null==t?r:Mt(r,(function(e){return St(t,s,e)}))}var co=Zn((function(e,t){return Jo(e)?fn(e,t):[]})),uo=Zn((function(e){return ys(It(e,Jo))})),lo=Zn((function(e){var t=Zi(e);return Jo(t)&&(t=s),ys(It(e,Jo),li(t,2))})),ho=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:s,ys(It(e,Jo),s,t)})),fo=Zn(oo);var po=Zn((function(e){var t=e.length,r=t>1?e[t-1]:s;return r="function"==typeof r?(e.pop(),r):s,ao(e,r)}));function go(e){var t=Hr(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var yo=si((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return cn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof zr&&vi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:mo,args:[i],thisArg:s}),new Kr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(s),e}))):this.thru(i)}));var bo=Ns((function(e,t,r){Le.call(e,r)?++e[r]:an(e,r,1)}));var wo=js(zi),vo=js(Vi);function Ao(e,t){return(qo(e)?Tt:pn)(e,li(t,3))}function Eo(e,t){return(qo(e)?Bt:gn)(e,li(t,3))}var ko=Ns((function(e,t,r){Le.call(e,r)?e[r].push(t):an(e,r,[t])}));var Po=Zn((function(e,t,r){var s=-1,i="function"==typeof t,o=Qo(e)?n(e.length):[];return pn(e,(function(e){o[++s]=i?St(t,e,r):In(e,t,r)})),o})),xo=Ns((function(e,t,r){an(e,r,t)}));function Oo(e,t){return(qo(e)?Mt:Hn)(e,li(t,3))}var So=Ns((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Co=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ai(e,t[0],t[1])?t=[]:r>2&&Ai(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,wn(t,1),[])})),To=lt||function(){return gt.Date.now()};function Bo(e,t,r){return t=r?s:t,t=e&&null==t?e.length:t,Xs(e,d,s,s,s,s,t)}function _o(e,t){var r;if("function"!=typeof t)throw new Be(i);return e=ya(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=s),r}}var Io=Zn((function(e,t,r){var n=1;if(r.length){var s=dr(r,ui(Io));n|=u}return Xs(e,n,t,r,s)})),No=Zn((function(e,t,r){var n=3;if(r.length){var s=dr(r,ui(No));n|=u}return Xs(t,n,e,r,s)}));function Ro(e,t,r){var n,o,a,c,u,l,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Be(i);function g(t){var r=n,i=o;return n=o=s,d=t,c=e.apply(i,r)}function m(e){return d=e,u=Ni(b,t),h?g(e):c}function y(e){var r=e-l;return l===s||r>=t||r<0||f&&e-d>=a}function b(){var e=To();if(y(e))return w(e);u=Ni(b,function(e){var r=t-(e-l);return f?vr(r,a-(e-d)):r}(e))}function w(e){return u=s,p&&n?g(e):(n=o=s,c)}function v(){var e=To(),r=y(e);if(n=arguments,o=this,l=e,r){if(u===s)return m(l);if(f)return Ps(u),u=Ni(b,t),g(l)}return u===s&&(u=Ni(b,t)),c}return t=wa(t)||0,na(r)&&(h=!!r.leading,a=(f="maxWait"in r)?wr(wa(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),v.cancel=function(){u!==s&&Ps(u),d=0,n=l=o=u=s},v.flush=function(){return u===s?c:w(To())},v}var Mo=Zn((function(e,t){return hn(e,1,t)})),Lo=Zn((function(e,t,r){return hn(e,wa(t)||0,r)}));function Fo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Be(i);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=e.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(Fo.Cache||Wr),r}function Do(e){if("function"!=typeof e)throw new Be(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fo.Cache=Wr;var Uo=Es((function(e,t){var r=(t=1==t.length&&qo(t[0])?Mt(t[0],Xt(li())):Mt(wn(t,1),Xt(li()))).length;return Zn((function(n){for(var s=-1,i=vr(n.length,r);++s<i;)n[s]=t[s].call(this,n[s]);return St(e,this,n)}))})),jo=Zn((function(e,t){var r=dr(t,ui(jo));return Xs(e,u,s,t,r)})),Ho=Zn((function(e,t){var r=dr(t,ui(Ho));return Xs(e,l,s,t,r)})),$o=si((function(e,t){return Xs(e,h,s,s,s,t)}));function Go(e,t){return e===t||e!=e&&t!=t}var Ko=Ws(Cn),zo=Ws((function(e,t){return e>=t})),Vo=Nn(function(){return arguments}())?Nn:function(e){return sa(e)&&Le.call(e,"callee")&&!Qe.call(e,"callee")},qo=n.isArray,Wo=At?Xt(At):function(e){return sa(e)&&Sn(e)==R};function Qo(e){return null!=e&&ra(e.length)&&!ea(e)}function Jo(e){return sa(e)&&Qo(e)}var Yo=wt||wc,Zo=Et?Xt(Et):function(e){return sa(e)&&Sn(e)==A};function Xo(e){if(!sa(e))return!1;var t=Sn(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!na(e))return!1;var t=Sn(e);return t==k||t==P||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ya(e)}function ra(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function na(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sa(e){return null!=e&&"object"==typeof e}var ia=kt?Xt(kt):function(e){return sa(e)&&mi(e)==x};function oa(e){return"number"==typeof e||sa(e)&&Sn(e)==O}function aa(e){if(!sa(e)||Sn(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==je}var ca=Pt?Xt(Pt):function(e){return sa(e)&&Sn(e)==T};var ua=xt?Xt(xt):function(e){return sa(e)&&mi(e)==B};function la(e){return"string"==typeof e||!qo(e)&&sa(e)&&Sn(e)==_}function da(e){return"symbol"==typeof e||sa(e)&&Sn(e)==I}var ha=Ot?Xt(Ot):function(e){return sa(e)&&ra(e.length)&&!!ct[Sn(e)]};var fa=Ws(jn),pa=Ws((function(e,t){return e<=t}));function ga(e){if(!e)return[];if(Qo(e))return la(e)?gr(e):_s(e);if(Ze&&e[Ze])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ze]());var t=mi(e);return(t==x?ur:t==B?hr:Ga)(e)}function ma(e){return e?(e=wa(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ya(e){var t=ma(e),r=t%1;return t==t?r?t-r:t:0}function ba(e){return e?un(ya(e),0,m):0}function wa(e){if("number"==typeof e)return e;if(da(e))return g;if(na(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=na(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ye.test(e);return r||we.test(e)?ht(e.slice(2),r?2:8):me.test(e)?g:+e}function va(e){return Is(e,Ma(e))}function Aa(e){return null==e?"":ds(e)}var Ea=Rs((function(e,t){if(xi(t)||Qo(t))Is(t,Ra(t),e);else for(var r in t)Le.call(t,r)&&rn(e,r,t[r])})),ka=Rs((function(e,t){Is(t,Ma(t),e)})),Pa=Rs((function(e,t,r,n){Is(t,Ma(t),e,n)})),xa=Rs((function(e,t,r,n){Is(t,Ra(t),e,n)})),Oa=si(cn);var Sa=Zn((function(e,t){e=Se(e);var r=-1,n=t.length,i=n>2?t[2]:s;for(i&&Ai(t[0],t[1],i)&&(n=1);++r<n;)for(var o=t[r],a=Ma(o),c=-1,u=a.length;++c<u;){var l=a[c],d=e[l];(d===s||Go(d,Ne[l])&&!Le.call(e,l))&&(e[l]=o[l])}return e})),Ca=Zn((function(e){return e.push(s,ti),St(Fa,s,e)}));function Ta(e,t,r){var n=null==e?s:xn(e,t);return n===s?r:n}function Ba(e,t){return null!=e&&yi(e,t,Bn)}var _a=Gs((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=r}),nc(oc)),Ia=Gs((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Le.call(e,t)?e[t].push(r):e[t]=[r]}),li),Na=Zn(In);function Ra(e){return Qo(e)?Yr(e):Dn(e)}function Ma(e){return Qo(e)?Yr(e,!0):Un(e)}var La=Rs((function(e,t,r){Kn(e,t,r)})),Fa=Rs((function(e,t,r,n){Kn(e,t,r,n)})),Da=si((function(e,t){var r={};if(null==e)return r;var n=!1;t=Mt(t,(function(t){return t=As(t,e),n||(n=t.length>1),t})),Is(e,oi(e),r),n&&(r=ln(r,7,ri));for(var s=t.length;s--;)fs(r,t[s]);return r}));var Ua=si((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return Ba(e,r)}))}(e,t)}));function ja(e,t){if(null==e)return{};var r=Mt(oi(e),(function(e){return[e]}));return t=li(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var Ha=Zs(Ra),$a=Zs(Ma);function Ga(e){return null==e?[]:er(e,Ra(e))}var Ka=Ds((function(e,t,r){return t=t.toLowerCase(),e+(r?za(t):t)}));function za(e){return Xa(Aa(e).toLowerCase())}function Va(e){return(e=Aa(e))&&e.replace(Ae,ir).replace(tt,"")}var qa=Ds((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Wa=Ds((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Qa=Fs("toLowerCase");var Ja=Ds((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ya=Ds((function(e,t,r){return e+(r?" ":"")+Xa(t)}));var Za=Ds((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Xa=Fs("toUpperCase");function ec(e,t,r){return e=Aa(e),(t=r?s:t)===s?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tc=Zn((function(e,t){try{return St(e,s,t)}catch(e){return Xo(e)?e:new Pe(e)}})),rc=si((function(e,t){return Tt(t,(function(t){t=Ui(t),an(e,t,Io(e[t],e))})),e}));function nc(e){return function(){return e}}var sc=Hs(),ic=Hs(!0);function oc(e){return e}function ac(e){return Fn("function"==typeof e?e:ln(e,1))}var cc=Zn((function(e,t){return function(r){return In(r,e,t)}})),uc=Zn((function(e,t){return function(r){return In(e,r,t)}}));function lc(e,t,r){var n=Ra(t),s=Pn(t,n);null!=r||na(t)&&(s.length||!n.length)||(r=t,t=e,e=this,s=Pn(t,Ra(t)));var i=!(na(r)&&"chain"in r&&!r.chain),o=ea(e);return Tt(s,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__),s=r.__actions__=_s(this.__actions__);return s.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Lt([this.value()],arguments))})})),e}function dc(){}var hc=zs(Mt),fc=zs(_t),pc=zs(Ut);function gc(e){return Ei(e)?qt(Ui(e)):function(e){return function(t){return xn(t,e)}}(e)}var mc=qs(),yc=qs(!0);function bc(){return[]}function wc(){return!1}var vc=Ks((function(e,t){return e+t}),0),Ac=Js("ceil"),Ec=Ks((function(e,t){return e/t}),1),kc=Js("floor");var Pc,xc=Ks((function(e,t){return e*t}),1),Oc=Js("round"),Sc=Ks((function(e,t){return e-t}),0);return Hr.after=function(e,t){if("function"!=typeof t)throw new Be(i);return e=ya(e),function(){if(--e<1)return t.apply(this,arguments)}},Hr.ary=Bo,Hr.assign=Ea,Hr.assignIn=ka,Hr.assignInWith=Pa,Hr.assignWith=xa,Hr.at=Oa,Hr.before=_o,Hr.bind=Io,Hr.bindAll=rc,Hr.bindKey=No,Hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Hr.chain=go,Hr.chunk=function(e,t,r){t=(r?Ai(e,t,r):t===s)?1:wr(ya(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,c=n(pt(i/t));o<i;)c[a++]=is(e,o,o+=t);return c},Hr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,s=[];++t<r;){var i=e[t];i&&(s[n++]=i)}return s},Hr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Lt(qo(r)?_s(r):[r],wn(t,1))},Hr.cond=function(e){var t=null==e?0:e.length,r=li();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new Be(i);return[r(e[0]),e[1]]})):[],Zn((function(r){for(var n=-1;++n<t;){var s=e[n];if(St(s[0],this,r))return St(s[1],this,r)}}))},Hr.conforms=function(e){return function(e){var t=Ra(e);return function(r){return dn(r,e,t)}}(ln(e,1))},Hr.constant=nc,Hr.countBy=bo,Hr.create=function(e,t){var r=$r(e);return null==t?r:on(r,t)},Hr.curry=function e(t,r,n){var i=Xs(t,8,s,s,s,s,s,r=n?s:r);return i.placeholder=e.placeholder,i},Hr.curryRight=function e(t,r,n){var i=Xs(t,c,s,s,s,s,s,r=n?s:r);return i.placeholder=e.placeholder,i},Hr.debounce=Ro,Hr.defaults=Sa,Hr.defaultsDeep=Ca,Hr.defer=Mo,Hr.delay=Lo,Hr.difference=$i,Hr.differenceBy=Gi,Hr.differenceWith=Ki,Hr.drop=function(e,t,r){var n=null==e?0:e.length;return n?is(e,(t=r||t===s?1:ya(t))<0?0:t,n):[]},Hr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?is(e,0,(t=n-(t=r||t===s?1:ya(t)))<0?0:t):[]},Hr.dropRightWhile=function(e,t){return e&&e.length?gs(e,li(t,3),!0,!0):[]},Hr.dropWhile=function(e,t){return e&&e.length?gs(e,li(t,3),!0):[]},Hr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Ai(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=ya(r))<0&&(r=-r>i?0:i+r),(n=n===s||n>i?i:ya(n))<0&&(n+=i),n=r>n?0:ba(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Hr.filter=function(e,t){return(qo(e)?It:bn)(e,li(t,3))},Hr.flatMap=function(e,t){return wn(Oo(e,t),1)},Hr.flatMapDeep=function(e,t){return wn(Oo(e,t),f)},Hr.flatMapDepth=function(e,t,r){return r=r===s?1:ya(r),wn(Oo(e,t),r)},Hr.flatten=qi,Hr.flattenDeep=function(e){return(null==e?0:e.length)?wn(e,f):[]},Hr.flattenDepth=function(e,t){return(null==e?0:e.length)?wn(e,t=t===s?1:ya(t)):[]},Hr.flip=function(e){return Xs(e,512)},Hr.flow=sc,Hr.flowRight=ic,Hr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var s=e[t];n[s[0]]=s[1]}return n},Hr.functions=function(e){return null==e?[]:Pn(e,Ra(e))},Hr.functionsIn=function(e){return null==e?[]:Pn(e,Ma(e))},Hr.groupBy=ko,Hr.initial=function(e){return(null==e?0:e.length)?is(e,0,-1):[]},Hr.intersection=Qi,Hr.intersectionBy=Ji,Hr.intersectionWith=Yi,Hr.invert=_a,Hr.invertBy=Ia,Hr.invokeMap=Po,Hr.iteratee=ac,Hr.keyBy=xo,Hr.keys=Ra,Hr.keysIn=Ma,Hr.map=Oo,Hr.mapKeys=function(e,t){var r={};return t=li(t,3),En(e,(function(e,n,s){an(r,t(e,n,s),e)})),r},Hr.mapValues=function(e,t){var r={};return t=li(t,3),En(e,(function(e,n,s){an(r,n,t(e,n,s))})),r},Hr.matches=function(e){return $n(ln(e,1))},Hr.matchesProperty=function(e,t){return Gn(e,ln(t,1))},Hr.memoize=Fo,Hr.merge=La,Hr.mergeWith=Fa,Hr.method=cc,Hr.methodOf=uc,Hr.mixin=lc,Hr.negate=Do,Hr.nthArg=function(e){return e=ya(e),Zn((function(t){return zn(t,e)}))},Hr.omit=Da,Hr.omitBy=function(e,t){return ja(e,Do(li(t)))},Hr.once=function(e){return _o(2,e)},Hr.orderBy=function(e,t,r,n){return null==e?[]:(qo(t)||(t=null==t?[]:[t]),qo(r=n?s:r)||(r=null==r?[]:[r]),Vn(e,t,r))},Hr.over=hc,Hr.overArgs=Uo,Hr.overEvery=fc,Hr.overSome=pc,Hr.partial=jo,Hr.partialRight=Ho,Hr.partition=So,Hr.pick=Ua,Hr.pickBy=ja,Hr.property=gc,Hr.propertyOf=function(e){return function(t){return null==e?s:xn(e,t)}},Hr.pull=Xi,Hr.pullAll=eo,Hr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,li(r,2)):e},Hr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,s,r):e},Hr.pullAt=to,Hr.range=mc,Hr.rangeRight=yc,Hr.rearg=$o,Hr.reject=function(e,t){return(qo(e)?It:bn)(e,Do(li(t,3)))},Hr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,s=[],i=e.length;for(t=li(t,3);++n<i;){var o=e[n];t(o,n,e)&&(r.push(o),s.push(n))}return Qn(e,s),r},Hr.rest=function(e,t){if("function"!=typeof e)throw new Be(i);return Zn(e,t=t===s?t:ya(t))},Hr.reverse=ro,Hr.sampleSize=function(e,t,r){return t=(r?Ai(e,t,r):t===s)?1:ya(t),(qo(e)?Xr:es)(e,t)}
vendor: 4,872 bytes, line 1
1,Hr.set=function(e,t,r){return null==e?e:ts(e,t,r)},Hr.setWith=function(e,t,r,n){return n="function"==typeof n?n:s,null==e?e:ts(e,t,r,n)},Hr.shuffle=function(e){return(qo(e)?en:ss)(e)},Hr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Ai(e,t,r)?(t=0,r=n):(t=null==t?0:ya(t),r=r===s?n:ya(r)),is(e,t,r)):[]},Hr.sortBy=Co,Hr.sortedUniq=function(e){return e&&e.length?us(e):[]},Hr.sortedUniqBy=function(e,t){return e&&e.length?us(e,li(t,2)):[]},Hr.split=function(e,t,r){return r&&"number"!=typeof r&&Ai(e,t,r)&&(t=r=s),(r=r===s?m:r>>>0)?(e=Aa(e))&&("string"==typeof t||null!=t&&!ca(t))&&!(t=ds(t))&&cr(e)?ks(gr(e),0,r):e.split(t,r):[]},Hr.spread=function(e,t){if("function"!=typeof e)throw new Be(i);return t=null==t?0:wr(ya(t),0),Zn((function(r){var n=r[t],s=ks(r,0,t);return n&&Lt(s,n),St(e,this,s)}))},Hr.tail=function(e){var t=null==e?0:e.length;return t?is(e,1,t):[]},Hr.take=function(e,t,r){return e&&e.length?is(e,0,(t=r||t===s?1:ya(t))<0?0:t):[]},Hr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?is(e,(t=n-(t=r||t===s?1:ya(t)))<0?0:t,n):[]},Hr.takeRightWhile=function(e,t){return e&&e.length?gs(e,li(t,3),!1,!0):[]},Hr.takeWhile=function(e,t){return e&&e.length?gs(e,li(t,3)):[]},Hr.tap=function(e,t){return t(e),e},Hr.throttle=function(e,t,r){var n=!0,s=!0;if("function"!=typeof e)throw new Be(i);return na(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),Ro(e,t,{leading:n,maxWait:t,trailing:s})},Hr.thru=mo,Hr.toArray=ga,Hr.toPairs=Ha,Hr.toPairsIn=$a,Hr.toPath=function(e){return qo(e)?Mt(e,Ui):da(e)?[e]:_s(Di(Aa(e)))},Hr.toPlainObject=va,Hr.transform=function(e,t,r){var n=qo(e),s=n||Yo(e)||ha(e);if(t=li(t,4),null==r){var i=e&&e.constructor;r=s?n?new i:[]:na(e)&&ea(i)?$r(qe(e)):{}}return(s?Tt:En)(e,(function(e,n,s){return t(r,e,n,s)})),r},Hr.unary=function(e){return Bo(e,1)},Hr.union=no,Hr.unionBy=so,Hr.unionWith=io,Hr.uniq=function(e){return e&&e.length?hs(e):[]},Hr.uniqBy=function(e,t){return e&&e.length?hs(e,li(t,2)):[]},Hr.uniqWith=function(e,t){return t="function"==typeof t?t:s,e&&e.length?hs(e,s,t):[]},Hr.unset=function(e,t){return null==e||fs(e,t)},Hr.unzip=oo,Hr.unzipWith=ao,Hr.update=function(e,t,r){return null==e?e:ps(e,t,vs(r))},Hr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:s,null==e?e:ps(e,t,vs(r),n)},Hr.values=Ga,Hr.valuesIn=function(e){return null==e?[]:er(e,Ma(e))},Hr.without=co,Hr.words=ec,Hr.wrap=function(e,t){return jo(vs(t),e)},Hr.xor=uo,Hr.xorBy=lo,Hr.xorWith=ho,Hr.zip=fo,Hr.zipObject=function(e,t){return bs(e||[],t||[],rn)},Hr.zipObjectDeep=function(e,t){return bs(e||[],t||[],ts)},Hr.zipWith=po,Hr.entries=Ha,Hr.entriesIn=$a,Hr.extend=ka,Hr.extendWith=Pa,lc(Hr,Hr),Hr.add=vc,Hr.attempt=tc,Hr.camelCase=Ka,Hr.capitalize=za,Hr.ceil=Ac,Hr.clamp=function(e,t,r){return r===s&&(r=t,t=s),r!==s&&(r=(r=wa(r))==r?r:0),t!==s&&(t=(t=wa(t))==t?t:0),un(wa(e),t,r)},Hr.clone=function(e){return ln(e,4)},Hr.cloneDeep=function(e){return ln(e,5)},Hr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:s)},Hr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:s)},Hr.conformsTo=function(e,t){return null==t||dn(e,t,Ra(t))},Hr.deburr=Va,Hr.defaultTo=function(e,t){return null==e||e!=e?t:e},Hr.divide=Ec,Hr.endsWith=function(e,t,r){e=Aa(e),t=ds(t);var n=e.length,i=r=r===s?n:un(ya(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Hr.eq=Go,Hr.escape=function(e){return(e=Aa(e))&&Y.test(e)?e.replace(Q,or):e},Hr.escapeRegExp=function(e){return(e=Aa(e))&&ie.test(e)?e.replace(se,"\\$&"):e},Hr.every=function(e,t,r){var n=qo(e)?_t:mn;return r&&Ai(e,t,r)&&(t=s),n(e,li(t,3))},Hr.find=wo,Hr.findIndex=zi,Hr.findKey=function(e,t){return Ht(e,li(t,3),En)},Hr.findLast=vo,Hr.findLastIndex=Vi,Hr.findLastKey=function(e,t){return Ht(e,li(t,3),kn)},Hr.floor=kc,Hr.forEach=Ao,Hr.forEachRight=Eo,Hr.forIn=function(e,t){return null==e?e:vn(e,li(t,3),Ma)},Hr.forInRight=function(e,t){return null==e?e:An(e,li(t,3),Ma)},Hr.forOwn=function(e,t){return e&&En(e,li(t,3))},Hr.forOwnRight=function(e,t){return e&&kn(e,li(t,3))},Hr.get=Ta,Hr.gt=Ko,Hr.gte=zo,Hr.has=function(e,t){return null!=e&&yi(e,t,Tn)},Hr.hasIn=Ba,Hr.head=Wi,Hr.identity=oc,Hr.includes=function(e,t,r,n){e=Qo(e)?e:Ga(e),r=r&&!n?ya(r):0;var s=e.length;return r<0&&(r=wr(s+r,0)),la(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&Gt(e,t,r)>-1},Hr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var s=null==r?0:ya(r);return s<0&&(s=wr(n+s,0)),Gt(e,t,s)},Hr.inRange=function(e,t,r){return t=ma(t),r===s?(r=t,t=0):r=ma(r),function(e,t,r){return e>=vr(t,r)&&e<wr(t,r)}(e=wa(e),t,r)},Hr.invoke=Na,Hr.isArguments=Vo,Hr.isArray=qo,Hr.isArrayBuffer=Wo,Hr.isArrayLike=Qo,Hr.isArrayLikeObject=Jo,Hr.isBoolean=function(e){return!0===e||!1===e||sa(e)&&Sn(e)==v},Hr.isBuffer=Yo,Hr.isDate=Zo,Hr.isElement=function(e){return sa(e)&&1===e.nodeType&&!aa(e)},Hr.isEmpty=function(e){if(null==e)return!0;
vendor: 5,500 bytes, line 1
1if(Qo(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Yo(e)||ha(e)||Vo(e)))return!e.length;var t=mi(e);if(t==x||t==B)return!e.size;if(xi(e))return!Dn(e).length;for(var r in e)if(Le.call(e,r))return!1;return!0},Hr.isEqual=function(e,t){return Rn(e,t)},Hr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:s)?r(e,t):s;return n===s?Rn(e,t,s,r):!!n},Hr.isError=Xo,Hr.isFinite=function(e){return"number"==typeof e&&vt(e)},Hr.isFunction=ea,Hr.isInteger=ta,Hr.isLength=ra,Hr.isMap=ia,Hr.isMatch=function(e,t){return e===t||Mn(e,t,hi(t))},Hr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:s,Mn(e,t,hi(t),r)},Hr.isNaN=function(e){return oa(e)&&e!=+e},Hr.isNative=function(e){if(Pi(e))throw new Pe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ln(e)},Hr.isNil=function(e){return null==e},Hr.isNull=function(e){return null===e},Hr.isNumber=oa,Hr.isObject=na,Hr.isObjectLike=sa,Hr.isPlainObject=aa,Hr.isRegExp=ca,Hr.isSafeInteger=function(e){return ta(e)&&e>=-9007199254740991&&e<=p},Hr.isSet=ua,Hr.isString=la,Hr.isSymbol=da,Hr.isTypedArray=ha,Hr.isUndefined=function(e){return e===s},Hr.isWeakMap=function(e){return sa(e)&&mi(e)==N},Hr.isWeakSet=function(e){return sa(e)&&"[object WeakSet]"==Sn(e)},Hr.join=function(e,t){return null==e?"":jt.call(e,t)},Hr.kebabCase=qa,Hr.last=Zi,Hr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==s&&(i=(i=ya(r))<0?wr(n+i,0):vr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):$t(e,zt,i,!0)},Hr.lowerCase=Wa,Hr.lowerFirst=Qa,Hr.lt=fa,Hr.lte=pa,Hr.max=function(e){return e&&e.length?yn(e,oc,Cn):s},Hr.maxBy=function(e,t){return e&&e.length?yn(e,li(t,2),Cn):s},Hr.mean=function(e){return Vt(e,oc)},Hr.meanBy=function(e,t){return Vt(e,li(t,2))},Hr.min=function(e){return e&&e.length?yn(e,oc,jn):s},Hr.minBy=function(e,t){return e&&e.length?yn(e,li(t,2),jn):s},Hr.stubArray=bc,Hr.stubFalse=wc,Hr.stubObject=function(){return{}},Hr.stubString=function(){return""},Hr.stubTrue=function(){return!0},Hr.multiply=xc,Hr.nth=function(e,t){return e&&e.length?zn(e,ya(t)):s},Hr.noConflict=function(){return gt._===this&&(gt._=He),this},Hr.noop=dc,Hr.now=To,Hr.pad=function(e,t,r){e=Aa(e);var n=(t=ya(t))?pr(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return Vs(mt(s),r)+e+Vs(pt(s),r)},Hr.padEnd=function(e,t,r){e=Aa(e);var n=(t=ya(t))?pr(e):0;return t&&n<t?e+Vs(t-n,r):e},Hr.padStart=function(e,t,r){e=Aa(e);var n=(t=ya(t))?pr(e):0;return t&&n<t?Vs(t-n,r)+e:e},Hr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),Er(Aa(e).replace(oe,""),t||0)},Hr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Ai(e,t,r)&&(t=r=s),r===s&&("boolean"==typeof t?(r=t,t=s):"boolean"==typeof e&&(r=e,e=s)),e===s&&t===s?(e=0,t=1):(e=ma(e),t===s?(t=e,e=0):t=ma(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=kr();return vr(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Jn(e,t)},Hr.reduce=function(e,t,r){var n=qo(e)?Ft:Qt,s=arguments.length<3;return n(e,li(t,4),r,s,pn)},Hr.reduceRight=function(e,t,r){var n=qo(e)?Dt:Qt,s=arguments.length<3;return n(e,li(t,4),r,s,gn)},Hr.repeat=function(e,t,r){return t=(r?Ai(e,t,r):t===s)?1:ya(t),Yn(Aa(e),t)},Hr.replace=function(){var e=arguments,t=Aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hr.result=function(e,t,r){var n=-1,i=(t=As(t,e)).length;for(i||(i=1,e=s);++n<i;){var o=null==e?s:e[Ui(t[n])];o===s&&(n=i,o=r),e=ea(o)?o.call(e):o}return e},Hr.round=Oc,Hr.runInContext=e,Hr.sample=function(e){return(qo(e)?Zr:Xn)(e)},Hr.size=function(e){if(null==e)return 0;if(Qo(e))return la(e)?pr(e):e.length;var t=mi(e);return t==x||t==B?e.size:Dn(e).length},Hr.snakeCase=Ja,Hr.some=function(e,t,r){var n=qo(e)?Ut:os;return r&&Ai(e,t,r)&&(t=s),n(e,li(t,3))},Hr.sortedIndex=function(e,t){return as(e,t)},Hr.sortedIndexBy=function(e,t,r){return cs(e,t,li(r,2))},Hr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=as(e,t);if(n<r&&Go(e[n],t))return n}return-1},Hr.sortedLastIndex=function(e,t){return as(e,t,!0)},Hr.sortedLastIndexBy=function(e,t,r){return cs(e,t,li(r,2),!0)},Hr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=as(e,t,!0)-1;if(Go(e[r],t))return r}return-1},Hr.startCase=Ya,Hr.startsWith=function(e,t,r){return e=Aa(e),r=null==r?0:un(ya(r),0,e.length),t=ds(t),e.slice(r,r+t.length)==t},Hr.subtract=Sc,Hr.sum=function(e){return e&&e.length?Jt(e,oc):0},Hr.sumBy=function(e,t){return e&&e.length?Jt(e,li(t,2)):0},Hr.template=function(e,t,r){var n=Hr.templateSettings;r&&Ai(e,t,r)&&(t=s),e=Aa(e),t=Pa({},t,n,ei);var i,o,a=Pa({},t.imports,n.imports,ei),c=Ra(a),u=er(a,c),l=0,d=t.interpolate||Ee,h="__p += '",f=Ce((t.escape||Ee).source+"|"+d.source+"|"+(d===ee?pe:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),p="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,r,n,s,a,c){return n||(n=s),h+=e.slice(l,c).replace(ke,ar),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),h+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(he.test(g))throw new Pe("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(z,""):h).replace(V,"$1").replace(q,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+h+"return __p\n}";var m=tc((function(){return xe(c,p+"return "+h).apply(s,u)}));if(m.source=h,Xo(m))throw m;return m},Hr.times=function(e,t){if((e=ya(e))<1||e>p)return[];var r=m,n=vr(e,m);t=li(t),e-=m;for(var s=Yt(n,t);++r<e;)t(r);return s},Hr.toFinite=ma,Hr.toInteger=ya,Hr.toLength=ba,Hr.toLower=function(e){return Aa(e).toLowerCase()},Hr.toNumber=wa,Hr.toSafeInteger=function(e){return e?un(ya(e),-9007199254740991,p):0===e?e:0},Hr.toString=Aa,Hr.toUpper=function(e){return Aa(e).toUpperCase()},Hr.trim=function(e,t,r){if((e=Aa(e))&&(r||t===s))return Zt(e);if(!e||!(t=ds(t)))return e;var n=gr(e),i=gr(t);return ks(n,rr(n,i),nr(n,i)+1).join("")},Hr.trimEnd=function(e,t,r){if((e=Aa(e))&&(r||t===s))return e.slice(0,mr(e)+1);if(!e||!(t=ds(t)))return e;var n=gr(e);return ks(n,0,nr(n,gr(t))+1).join("")},Hr.trimStart=function(e,t,r){if((e=Aa(e))&&(r||t===s))return e.replace(oe,"");if(!e||!(t=ds(t)))return e;var n=gr(e);return ks(n,rr(n,gr(t))).join("")},Hr.truncate=function(e,t){var r=30,n="...";if(na(t)){var i="separator"in t?t.separator:i;r="length"in t?ya(t.length):r,n="omission"in t?ds(t.omission):n}var o=(e=Aa(e)).length;if(cr(e)){var a=gr(e);o=a.length}if(r>=o)return e;var c=r-pr(n);if(c<1)return n;var u=a?ks(a,0,c).join(""):e.slice(0,c);if(i===s)return u+n;if(a&&(c+=u.length-c),ca(i)){if(e.slice(c).search(i)){var l,d=u;for(i.global||(i=Ce(i.source,Aa(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var h=l.index;u=u.slice(0,h===s?c:h)}}else if(e.indexOf(ds(i),c)!=c){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+n},Hr.unescape=function(e){return(e=Aa(e))&&J.test(e)?e.replace(W,yr):e},Hr.uniqueId=function(e){var t=++Fe;return Aa(e)+t},Hr.upperCase=Za,Hr.upperFirst=Xa,Hr.each=Ao,Hr.eachRight=Eo,Hr.first=Wi,lc(Hr,(Pc={},En(Hr,(function(e,t){Le.call(Hr.prototype,t)||(Pc[t]=e)})),Pc),{chain:!1}),Hr.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hr[e].placeholder=Hr})),Tt(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===s?1:wr(ya(r),0);var n=this.__filtered__&&!t?new zr(this):this.clone();return n.__filtered__?n.__takeCount__=vr(r,n.__takeCount__):n.__views__.push({size:vr(r,m),type:e+(n.__dir__<0?"Right":"")}),n},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(oc)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return In(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Do(li(e)))},zr.prototype.slice=function(e,t){e=ya(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==s&&(r=(t=ya(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(m)},En(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Hr[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);i&&(Hr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,c=t instanceof zr,u=a[0],l=c||qo(t),d=function(e){var t=i.apply(Hr,Lt([e],a));return n&&h?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=c&&!f;if(!o&&l){t=g?t:new zr(this);var m=e.apply(t,a);return m.__actions__.push({func:mo,args:[d],thisArg:s}),new Kr(m,h)}return p&&g?e.apply(this,a):(m=this.thru(d),p?n?m.value()[0]:m.value():m)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=_e[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Hr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var s=this.value();return t.apply(qo(s)?s:[],e)}return this[r]((function(r){return t.apply(qo(r)?r:[],e)}))}})),En(zr.prototype,(function(e,t){var r=Hr[t];if(r){var n=r.name+"";Le.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}})),Ir[$s(s,2).name]=[{name:"wrapper",func:s}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=_s(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_s(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_s(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qo(e),n=t<0,s=r?e.length:0,i=function(e,t,r){var n=-1,s=r.length;for(;++n<s;){var i=r[n],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vr(t,e+o);break;case"takeRight":e=wr(e,t-o)}}return{start:e,end:t}}(0,s,this.__views__),o=i.start,a=i.end,c=a-o,u=n?a:o-1,l=this.__iteratees__,d=l.length,h=0,f=vr(c,this.__takeCount__);if(!r||!n&&s==c&&f==c)return ms(e,this.__actions__);var p=[];e:for(;c--&&h<f;){for(var g=-1,m=e[u+=t];++g<d;){var y=l[g],b=y.iteratee,w=y.type,v=b(m);if(2==w)m=v;else if(!v){if(1==w)continue e;break e}}p[h++]=m}return p},Hr.prototype.at=yo,Hr.prototype.chain=function(){return go(this)},Hr.prototype.commit=function(){return new Kr(this.value(),this.__chain__)},Hr.prototype.next=function(){this.__values__===s&&(this.__values__=ga(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?s:this.__values__[this.__index__++]}},Hr.prototype.plant=function(e){for(var t,r=this;r instanceof Gr;){var n=Hi(r);n.__index__=0,n.__values__=s,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:mo,args:[ro],thisArg:s}),new Kr(t,this.__chain__)}return this.thru(ro)},Hr.prototype.toJSON=Hr.prototype.valueOf=Hr.prototype.value=function(){return ms(this.__wrapped__,this.__actions__)},Hr.prototype.first=Hr.prototype.head,Ze&&(Hr.prototype[Ze]=function(){return this}),Hr}();gt._=br,(n=function(){return br}.call(t,r,t,e))===s||(e.exports=n)}.call(this)},79746:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},67956: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);
1s&&!("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{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SiweMessage=void 0;const a=r(20200),c=i(r(80481)),u=r(31422),l=r(5734),d=r(56564);t.SiweMessage=class{constructor(e){if("string"==typeof e){const 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();const e=`${this.scheme?`${this.scheme}://${this.domain}`:this.domain} wants you to sign in with your Ethereum account:`,t=`URI: ${this.uri}`;let r=[e,this.address].join("\n");const n=`Version: ${this.version}`;this.nonce||(this.nonce=(0,d.generateNonce)());const s=[t,n,"Chain ID: "+this.chainId||0,`Nonce: ${this.nonce}`];if(this.issuedAt=this.issuedAt||(new Date).toISOString(),s.push(`Issued At: ${this.issuedAt}`),this.expirationTime){const e=`Expiration Time: ${this.expirationTime}`;s.push(e)}this.notBefore&&s.push(`Not Before: ${this.notBefore}`),this.requestId&&s.push(`Request ID: ${this.requestId}`),this.resources&&s.push(["Resources:",...this.resources.map((e=>`- ${e}`))].join("\n"));const i=s.join("\n");return r=[r,this.statement].join("\n\n"),this.statement&&(r+="\n"),[r,i].join("\n")}prepareMessage(){let e;return this.version,e=this.toMessage(),e}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;const a=e=>t.suppressExceptions?r(e):n(e),c=(0,d.checkInvalidKeys)(e,l.VerifyParamsKeys);c.length>0&&a({success:!1,data:this,error:new Error(`${c.join(", ")} is/are not valid key(s) for VerifyParams.`)});const h=(0,d.checkInvalidKeys)(t,l.VerifyOptsKeys);c.length>0&&a({success:!1,data:this,error:new Error(`${h.join(", ")} is/are not valid key(s) for VerifyOpts.`)});const{signature:f,scheme:p,domain:g,nonce:m,time:y}=e;p&&p!==this.scheme&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.SCHEME_MISMATCH,p,this.scheme)}),g&&g!==this.domain&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.DOMAIN_MISMATCH,g,this.domain)}),m&&m!==this.nonce&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.NONCE_MISMATCH,m,this.nonce)});const b=new Date(y||new Date);if(this.expirationTime){const e=new Date(this.expirationTime);b.getTime()>=e.getTime()&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.EXPIRED_MESSAGE,`${b.toISOString()} < ${e.toISOString()}`,`${b.toISOString()} >= ${e.toISOString()}`)})}if(this.notBefore){const e=new Date(this.notBefore);b.getTime()<e.getTime()&&a({success:!1,data:this,error:new l.SiweError(l.SiweErrorType.NOT_YET_VALID_MESSAGE,`${b.toISOString()} >= ${e.toISOString()}`,`${b.toISOString()} < ${e.toISOString()}`)})}let w,v;try{w=this.prepareMessage()}catch(e){a({success:!1,data:this,error:e})}try{v=(0,u.verifyMessage)(w,f)}catch(e){console.error(e)}if(v===this.address)return r({success:!0,data:this});{const n=(0,d.checkContractWalletSignature)(this,f,t.provider).then((e=>e?{success:!0,data:this}:{success:!1,data:this,error:new l.SiweError(l.SiweErrorType.INVALID_SIGNATURE,v,`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])=>
1{if(t){if(t.success)return r(t);a(t)}else{if(e.success)return r(e);a(e)}}))}}))}))}validateMessage(...e){var t;if(e.length>0)throw new l.SiweError(l.SiweErrorType.UNABLE_TO_PARSE,"Unexpected argument in the validateMessage function.");if(!this.domain||0===this.domain.length||!/[^#?]*/.test(this.domain))throw new l.SiweError(l.SiweErrorType.INVALID_DOMAIN,`${this.domain} to be a valid domain.`);if(!(0,a.isEIP55Address)(this.address))throw new l.SiweError(l.SiweErrorType.INVALID_ADDRESS,(0,u.getAddress)(this.address),this.address);if(!c.isUri(this.uri))throw new l.SiweError(l.SiweErrorType.INVALID_URI,`${this.uri} to be a valid uri.`);if("1"!==this.version)throw new l.SiweError(l.SiweErrorType.INVALID_MESSAGE_VERSION,"1",this.version);const r=null===(t=null==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 l.SiweError(l.SiweErrorType.INVALID_NONCE,`Length > 8 (${r.length}). Alphanumeric.`,this.nonce);if(this.issuedAt&&!(0,d.isValidISO8601Date)(this.issuedAt))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT);if(this.expirationTime&&!(0,d.isValidISO8601Date)(this.expirationTime))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT);if(this.notBefore&&!(0,d.isValidISO8601Date)(this.notBefore))throw new Error(l.SiweErrorType.INVALID_TIME_FORMAT)}}},31422:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.hashMessage=t.verifyMessage=void 0;const n=r(59237);let 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},97544: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(67956),t),s(r(5734),t),s(r(56564),t)},5734:function(e,t){"use strict";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"];t.SiweError=class{constructor(e,t,r){this.type=e,this.expected=t,this.received=r}},function(e){e.EXPIRED_MESSAGE="Expired message.",e.INVALID_DOMAIN="Invalid domain.",e.SCHEME_MISMATCH="Scheme does not match provided scheme for verification.",e.DOMAIN_MISMATCH="Domain does not match provided domain for verification.",e.NONCE_MISMATCH="Nonce does not match provided nonce for verification.",e.INVALID_ADDRESS="Invalid address.",e.INVALID_URI="URI does not conform to RFC 3986.",e.INVALID_NONCE="Nonce size smaller then 8 characters or is not alphanumeric.",e.NOT_YET_VALID_MESSAGE="Message is not valid yet.",e.INVALID_SIGNATURE="Signature does not match address of the message.",e.INVALID_TIME_FORMAT="Invalid time format.",e.INVALID_MESSAGE_VERSION="Invalid message version.",e.UNABLE_TO_PARSE="Unable to parse the message."}(t.SiweErrorType||(t.SiweErrorType={}))},56564: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{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.checkInvalidKeys=t.isValidISO8601Date=t.generateNonce=t.checkContractWalletSignature=void 0;const s=r(31416),i=r(59237),o=r(31422),a=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],c=/^(?<d
1ate>[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;const n=new i.Contract(e.address,a,r),s=(0,o.hashMessage)(e.prepareMessage());return"0x1626ba7e"===(yield n.isValidSignature(s,t))}));t.generateNonce=()=>{const e=(0,s.randomStringForEntropy)(96);if(!e||e.length<8)throw new Error("Error during nonce creation.");return e};t.isValidISO8601Date=e=>{const t=c.exec(e);if(!e)return!1;const r=new Date(t.groups.date).toISOString(),n=c.exec(r);return t.groups.date===n.groups.date};t.checkInvalidKeys=(e,t)=>{const r=[];return Object.keys(e).forEach((e=>{t.includes(e)||r.push(e)})),r}},80481: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="",c="";if(a=(r=t(e))[1],n=r[2],s=r[3],i=r[4],o=r[5],a&&a.length&&s.length>=0){if(n&&n.length){if(0!==s.length&&!/^\//.test(s))return}else if(/^\/\//.test(s))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return c+=a+":",n&&n.length&&(c+="//"+n),c+=s,i&&i.length&&(c+="?"+i),o&&o.length&&(c+="#"+o),c}}}function n(e,n){if(r(e)){var s,i,o,a,c="",u="",l="",d="";if(c=(s=t(e))[1],u=s[2],i=s[3],o=s[4],a=s[5],c){if(n){if("https"!=c.toLowerCase())return}else if("http"!=c.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(l=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=c+":",d+="//"+u,l&&(d+=l),d+=i,o&&o.length&&(d+="?"+o),a&&a.length&&(d+="#"+a),d}}}function s(e){return n(e,!0)}function i(e){return n(e)||s(e)}}(e=r.nmd(e))},68400:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},40517:function(e,t){"use strict";var r,n,s,i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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 new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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;const a={16:10,24:12,32:14},c=[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],u=[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],l=[82,9,106,213,48,54,165,56,
1191,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,3025820398,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,16733
113503,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,1115438654,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,389
1623319,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,4025428677,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,
1632953703,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,1862534868,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,12974
103050,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,645401037,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,60
17398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],w=[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],v=[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
101765386,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],A=[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
vendor: 4,105 bytes, line 1
1748,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 k(e){const 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 P{get key(){return i(this,r,"f").slice()}constructor(e){if(r.set(this,void 0),n.set(this,void 0),s.set(this,void 0),!(this instanceof P))throw Error("AES must be instanitated with `new`");o(this,r,new Uint8Array(e),"f");const t=a[this.key.length];if(null==t)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");o(this,s,[],"f"),o(this,n,[],"f");for(let e=0;e<=t;e++)i(this,s,"f").push([0,0,0,0]),i(this,n,"f").push([0,0,0,0]);const l=4*(t+1),d=this.key.length/4,h=k(this.key);let f;for(let e=0;e<d;e++)f=e>>2,i(this,s,"f")[f][e%4]=h[e],i(this,n,"f")[t-f][e%4]=h[e];let p,g=0,m=d;for(;m<l;){if(p=h[d-1],h[0]^=u[p>>16&255]<<24^u[p>>8&255]<<16^u[255&p]<<8^u[p>>24&255]^c[g]<<24,g+=1,8!=d)for(let e=1;e<d;e++)h[e]^=h[e-1];else{for(let e=1;e<d/2;e++)h[e]^=h[e-1];p=h[d/2-1],h[d/2]^=u[255&p]^u[p>>8&255]<<8^u[p>>16&255]<<16^u[p>>24&255]<<24;for(let e=d/2+1;e<d;e++)h[e]^=h[e-1]}let e,r,o=0;for(;o<d&&m<l;)e=m>>2,r=m%4,i(this,s,"f")[e][r]=h[o],i(this,n,"f")[t-e][r]=h[o++],m++}for(let e=1;e<t;e++)for(let t=0;t<4;t++)p=i(this,n,"f")[e][t],i(this,n,"f")[e][t]=w[p>>24&255]^v[p>>16&255]^A[p>>8&255]^E[255&p]}encrypt(e){if(16!=e.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const t=i(this,s,"f").length-1,r=[0,0,0,0];let n=k(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()}const o=new Uint8Array(16);let a=0;for(let e=0;e<4;e++)a=i(this,s,"f")[t][e],o[4*e]=255&(u[n[e]>>24&255]^a>>
124),o[4*e+1]=255&(u[n[(e+1)%4]>>16&255]^a>>16),o[4*e+2]=255&(u[n[(e+2)%4]>>8&255]^a>>8),o[4*e+3]=255&(u[255&n[(e+3)%4]]^a);return o}decrypt(e){if(16!=e.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const t=i(this,n,"f").length-1,r=[0,0,0,0];let s=k(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()}const o=new Uint8Array(16);let a=0;for(let e=0;e<4;e++)a=i(this,n,"f")[t][e],o[4*e]=255&(l[s[e]>>24&255]^a>>24),o[4*e+1]=255&(l[s[(e+3)%4]>>16&255]^a>>16),o[4*e+2]=255&(l[s[(e+2)%4]>>8&255]^a>>8),o[4*e+3]=255&(l[255&s[(e+1)%4]]^a);return o}}t.AES=P,r=new WeakMap,n=new WeakMap,s=new WeakMap},93260: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(40517);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return n.AES}});var s=r(2868);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return s.ModeOfOperation}});var i=r(52805);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return i.CBC}});var o=r(73169);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return o.CFB}});var a=r(83310);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return a.CTR}});var c=r(89915);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return c.ECB}});var u=r(22023);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return u.OFB}});var l=r(99533);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return l.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return l.pkcs7Strip}})},52805:function(e,t,r){"use strict";var n,s,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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 new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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;const a=r(2868);class c extends a.ModeOfOperation{constructor(e,t){if(super("ECC",e,c),n.set(this,void 0),s.set(this,void 0),t){if(t.length%16)throw new 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 new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const 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 new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){const 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=c,n=new WeakMap,s=new WeakMap},73169: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 new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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},c=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.CFB=void 0;const u=r(2868);class l extends u.ModeOfOperation{constructor(e,t,r=8){if(super("CFB",e,l),n.add(this),s.set(this,void 0),i.set(this,void 0),!Number.isInteger(r)||r%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:r}}),t){if(t.length%16)throw new 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(c(this,s,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,r=new Uint8Array(e);for(let e=0;e<r.length;e+=t){const s=this.aes.encrypt(c(this,i,"f"));for(let n=0;n<t;n++)r[e+n]^=s[n];c(this,n,"m",o).call(this,r.subarray(e))}return r}decrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,r=new Uint8Array(e);for(let s=0;s<r.length;s+=t){const a=this.aes.encrypt(c(this,i,"f"));for(let e=0;e<t;e++)r[s+e]^=a[e];c(this,n,"m",o).call(this,e.subarray(s))}return r}}t.CFB=l,s=new WeakMap,i=new WeakMap,n=new WeakSet,o=function(e){const t=this.segmentSize/8;c(this,i,"f").set(c(this,i,"f").subarray(t)),c(this,i,"f").set(e.subarray(0,t),16-t)}},83310:function(e,t,r){"use strict";var n,s,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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 new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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;const c=r(2868);class u extends c.ModeOfOperation{constructor(e,t){super("CTR",e,u),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 new 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 new 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]++;break}a(this,i,"f")[e]=0}}encrypt(e){var t,r;const c=new Uint8Array(e);for(let e=0;e<c.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()),c[e]^=a(this,n,"f")[(o(this,s,(r=a(this,s,"f"),t=r++,r),"f"),t)];return c}decrypt(e){return this.encrypt(e)}}t.CTR=u,n=new WeakMap,s=new WeakMap,i=new WeakMap},89915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;const n=r(2868);class s extends n.ModeOfOperation{constructor(e){super("ECB",e,s)}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const 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 new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const 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},22023:function(e,t,r){"use strict";var n,s,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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 new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.OFB=void 0;const c=r(2868);class u extends c.ModeOfOperation{constructor(e,t){if(super("OFB",e,u),n.set(this,void 0),s.set(this,void 0),i.set(this,void 0),t){if(t.length%16)throw new 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 new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const 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 new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}t.OFB=u,n=new WeakMap,s=new WeakMap,i=new WeakMap},2868:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;const n=r(40517);t.ModeOfOperation=class{constructor(e,t,r){if(r&&!(this instanceof r))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new n.AES(t)},name:{enumerable:!0,value:e}})}}},99533:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){const 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 new TypeError("PKCS#7 invalid length");const t=e[e.length-1];if(t>16)throw new TypeError("PKCS#7 padding byte out of range");const r=e.length-t;for(let n=0;n<t;n++)if(e[r+n]!==t)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,r))}},79406:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.15.0"},54760:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const n=r(42120),s=r(12900),i=r(32063),o=r(8151),a=r(38583),c=r(5949),u=r(4148),l=r(36341),d=r(96893),h=r(53524),f=r(46701),p=r(66711),g=r(45475),m=r(42120),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");const b=new RegExp(/^bytes([0-9]*)$/),w=new RegExp(/^(u?int)([0-9]*)$/);let v=null,A=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 c.BytesCoder(e.name);case"":return new l.NullCoder(e.name)}let t=e.type.match(w);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),t){let r=parseInt(t[1]);return(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",e),new u.FixedBytesCoder(r,e.name)}(0,n.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){const 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");const 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){const n=e.map((e=>this.#e(p.ParamType.from(e))));return new f.TupleCoder(n,"_").decode(new s.Reader(t,r,A))}static _setDefaultMaxInflation(e){(0,n.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),A=e}static defaultAbiCoder(){return null==v&&(v=new E),v}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";const 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{const 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)"}const 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},12472:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const n=r(42120);t.encodeBytes32String=function(e){const t=(0,n.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,n.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,n.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,n.toUtf8String)(t.slice(0,r))}},12900: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;const n=r(42120);t.WordSize=32;const s=new Uint8Array(t.WordSize),i=["then"],o={},a=new WeakMap;function c(e){return a.get(e)}function u(e,t){a.set(e,t)}function l(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}function d(e,t,r){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof h?d(c(e),e,r):e)):e.reduce(((e,n,s)=>{let i=t.getValue(n);return n in e||(r&&i instanceof h&&(i=d(c(i),i,r)),e[n]=i),e}),{})}class h extends Array{#t;constructor(...e){const t=e[0];let r=e[1],s=(e[2]||[]).slice(),a=!0;t!==o&&(r=e,s=[],a=!1),super(r.length),r.forEach(((e,t)=>{this[t]=e}));const d=s.reduce(((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(u(this,Object.freeze(r.map(((e,t)=>{const r=s[t];return null!=r&&1===d.get(r)?r:null})))),this.#t=[],null==this.#t&&this.#t,!a)return;Object.freeze(this);const h=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){const r=(0,n.getNumber)(t,"%index");if(r<0||r>=this.length)throw new RangeError("out of result range");const s=e[r];return s instanceof Error&&l(`index ${r}`,s),s}if(i.indexOf(t)>=0)return Reflect.get(e,t,r);const 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)}});return u(h,c(this)),h}toArray(e){const t=[];return this.forEach(((r,n)=>{r instanceof Error&&l(`index ${n}`,r),e&&r instanceof h&&(r=r.toArray(e)),t.push(r)})),t}toObject(e){const t=c(this);return t.reduce(((r,s,i)=>((0,n.assert)(null!=s,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),d(t,this,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);const r=c(this),n=[],s=[];for(let i=e;i<t;i++)n.push(this[i]),s.push(r[i]);return new h(o,n,s)}filter(e,t){const r=c(this),n=[],s=[];for(let i=0;i<this.length;i++){const o=this[i];o instanceof Error&&l(`index ${i}`,o),e.call(t,o,i,this)&&(n.push(o),s.push(r[i]))}return new h(o,n,s)}map(e,t){const r=[];for(let n=0;n<this.length;n++){const s=this[n];s instanceof Error&&l(`index ${n}`,s),r.push(e.call(t,s,n,this))}return r}getValue(e){const t=c(this).indexOf(e);if(-1===t)return;const r=this[t];return r instanceof Error&&l(`property ${JSON.stringify(e)}`,r.error),r}static fromItems(e,t){return new h(o,e,t)}}function f(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=h,t.checkResultErrors=function(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let s in n){const i=e.slice();i.push(s);try{r(i,n[s])}catch(e){t.push({path:i,error:e})}}};return r([],e),t};t.Coder=class{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.Writer=class{#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);const 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(f(e))}writeUpdatableValue(){const e=this.#r.length;return this.#r.push(s),this.#n+=t.WordSize,t=>{this.#r[e]=f(t)}}};class p{allowLoose;#r;#i;#o;#a;#c;constructor(e,t,r){(0,n.defineProperties)(this,{allowLoose:!!t}),this.#r=(0,n.getBytesCopy)(e),this.#o=0,this.#a=null,this.#c=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)}#u(e){if(this.#a)return this.#a.#u(e);this.#o+=e,(0,n.assert)(this.#c<1||this.#o<=this.#c*this.dataLength,`c
1ompressed ABI data exceeds inflation ratio of ${this.#c} ( 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}})}#l(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){const t=new p(this.#r.slice(this.#i+e),this.allowLoose,this.#c);return t.#a=this,t}readBytes(e,t){let r=this.#l(0,e,!!t);return this.#u(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=p},32063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const n=r(45475),s=r(90358),i=r(3762),o=r(12900);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},56347:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const n=r(12900);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},8151:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const n=r(42120),s=r(3762),i=r(12900),o=r(56347);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=>{const 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,c=[];t.forEach(((e,t)=>{let r=s[t];if(e.dynamic){let t=a.length;e.encode(a,r);let n=o.writeUpdatableValue();c.push((e=>{n(e+t)}))}else e.encode(o,r)})),c.forEach((e=>{e(o.length)}));let u=e.appendWriter(o);return u+=e.appendWriter(a),u}function c(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,i.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,i.baseType=t.name,i.name=t.localName,i.type=t.type}if(null==i)throw new Error("investigate");r.push(i),s.push(t.localName||null)})),i.Result.fromItems(r,s)}t.pack=a,t.unpack=c;class u 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(){const e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){const 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 c(e,r)}}t.ArrayCoder=u},38583:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const n=r(3762),s=r(12900);class i extends s.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const r=n.Typed.dereference(t,"bool");return e.writeValue(r?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=i},5949:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const n=r(42120),s=r(12900);class i extends s.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,n.getBytesCopy)(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=i;t.BytesCoder=class extends i{constructor(e){super("bytes",e)}decode(e){return(0,n.hexlify)(super.decode(e))}}},4148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const n=r(42120),s=r(3762),i=r(12900);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},36341:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const n=r(12900),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},96893:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const n=r(42120),s=r(3762),i=r(12900),o=BigInt(0),a=BigInt(1),c=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class u extends i.Coder{size;signed;constructor(e,t,r){const 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)),u=(0,n.mask)(c,8*i.WordSize);if(this.signed){let e=(0,n.mask)(u,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)(u,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=u},53524:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const n=r(82119),s=r(3762),i=r(5949);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},46701:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const n=r(39290),s=r(3762),i=r(12900),o=r(8151);class a extends i.Coder{coders;constructor(e,t){let r=!1;const 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(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const 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){const 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},66711: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;const n=r(42120),s=r(98336);function i(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const o=i("external public payable override".split(" ")),a="constant external internal payable private public pure view override",c=i(a.split(" ")),u="constructor error event fallback function receive struct",l=i(u.split(" ")),d="calldata memory storage payable indexed",h=i(d.split(" ")),f=i([u,d,"tuple returns",a].join(" ").split(" ")),p={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=new RegExp("^(\\s*)"),m=new RegExp("^([0-9]+)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),b=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),w=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class v{#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 v(this.#d)}reset(){this.#i=0}#h(e=0,t=0){return new v(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){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#h(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#i<e.match-1;){const 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 new Error("out-of-bounds");return this.#d[this.#i]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#i++,e}toString(){const e=[];for(let t=this.#i;t<this.#d.length;t++){const r=this.#d[t];e.push(`${r.type}:${r.text}`)}return`<TokenString ${e.join(" ")}>`}}function A(e){const t=[],r=t=>{const r=o<e.length?JSON.stringify(e[o]):"$EOI";throw new Error(`invalid token ${r} at ${o}: ${t}`)};let s=[],i=[],o=0;for(;o<e.length;){let a=e.substring(o),c=a.match(g);c&&(o+=c[1].length,a=e.substring(o));const u={depth:s.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(u);let l=p[a[0]]||"";if(l){if(u.type=l,u.text=a[0],o++,"OPEN_PAREN"===l)s.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==l)0===s.length&&r("no matching open bracket"),u.match=s.pop(),t[u.match].match=t.length-1,u.depth--,u.linkBack=i.pop(),t[u.linkBack].linkNext=t.length-1;else if("COMMA"===l)u.linkBack=i.pop(),t[u.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===l)u.type="BRACKET";else if("CLOSE_BRACKET"===l){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const 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 new Error("missing opening bracket");t[t.length-1].text+=e}}else if(c=a.match(y),c){if(u.text=c[1],o+=u.text.length,f.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(w)){u.type="TYPE";continue}u.type="ID"}else{if(c=a.match(m),!c)throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`);u.text=c[1],u.type="NUMBER",o+=u.text.length}}return new v(t.map((e=>Object.freeze(e))))}function E(e,t){let r=[];for(const n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function k(e,t){if(t.peekKeyword(l)){const r=t.pop().text;if(r!==e)throw new Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function P(e,t){const r=new Set;for(;;){const n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function x(e){let t=P(e,c);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 O(e,t){return e.popParams().map((e=>j.from(e,t)))}
1function S(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,n.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function C(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const T=new RegExp(/^(.*)\[([0-9]*)\]$/);function B(e){const t=e.match(w);if((0,n.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const r=parseInt(t[2]);(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){const r=parseInt(t[3]);(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}const _={},I=Symbol.for("_ethers_internal"),N="_ParamTypeInternal",R="_ErrorInternal",M="_EventInternal",L="_ConstructorInternal",F="_FallbackInternal",D="_FunctionInternal",U="_StructInternal";class j{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,s,i,o,a,c){if((0,n.assertPrivate)(e,_,"ParamType"),Object.defineProperty(this,I,{value:N}),o&&(o=Object.freeze(o.slice())),"array"===s){if(null==a||null==c)throw new Error("")}else if(null!=a||null!=c)throw new Error("");if("tuple"===s){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,n.defineProperties)(this,{name:t,type:r,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const 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),t+=`[${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 new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return e.map((e=>r.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const 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 new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const s=this.arrayChildren,i=t.slice();return i.forEach(((t,n)=>{s.#f(e,t,r,(e=>{i[n]=e}))})),void n(i)}if(this.isTuple()){const s=this.components;let i;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!=typeof t)throw new Error("invalid tuple value");i=s.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(i.length!==this.components.length)throw new Error("array is wrong length");return i.forEach(((t,n)=>{s[n].#f(e,t,r,(e=>{i[n]=e}))})),void n(i)}const s=r(this.type,t);s.then?e.push(async function(){n(await s)}()):n(s)}async walkAsync(e,t){const 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(j.isParamType(e))return e;if("string"==typeof e)try{return j.from(A(e),t)}catch(t){(0,n.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof v){let r="",n="",s=null;P(e,i(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",s=e.popParams().map((e=>j.from(e))),r=`tuple(${s.map((e=>e.format())).join(",")})`):(r=B(e.popType("TYPE")),n=r);let o=null,a=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();o=new j(_,"",r,n,null,s,a,o),a=t.value,r+=t.text,n="array",s=null}let c=null;if(P(e,h).has("indexed")){if(!t)throw new Error("");c=!0}
1const u=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new j(_,u,r,n,c,s,a,o)}const 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(T);if(a){const t=parseInt(a[2]||"-1"),n=j.from({type:a[1],components:e.components});return new j(_,r||"",o,"array",s,null,t,n)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){const t=null!=e.components?e.components.map((e=>j.from(e))):null;return new j(_,r||"",o,"tuple",s,t,null,null)}return o=B(e.type),new j(_,r||"",o,o,s,null,null,null)}static isParamType(e){return e&&e[I]===N}}t.ParamType=j;class H{type;inputs;constructor(e,t,r){(0,n.assertPrivate)(e,_,"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(A(e))}if(e instanceof v){switch(e.peekKeyword(l)){case"constructor":return V.from(e);case"error":return K.from(e);case"event":return z.from(e);case"fallback":case"receive":return q.from(e);case"function":return W.from(e);case"struct":return Q.from(e)}}else if("object"==typeof e){switch(e.type){case"constructor":return V.from(e);case"error":return K.from(e);case"event":return z.from(e);case"fallback":case"receive":return q.from(e);case"function":return W.from(e);case"struct":return Q.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 V.isFragment(e)}static isError(e){return K.isFragment(e)}static isEvent(e){return z.isFragment(e)}static isFunction(e){return W.isFragment(e)}static isStruct(e){return Q.isFragment(e)}}t.Fragment=H;class $ 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 G(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=$;class K extends ${constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,I,{value: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:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+G(e,this.inputs)),t.join(" ")}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)return K.from(A(e));if(e instanceof v){const t=k("error",e),r=O(e);return C(e),new K(_,t,r)}return new K(_,e.name,e.inputs?e.inputs.map(j.from):[])}static isFragment(e){return e&&e[I]===R}}t.ErrorFragment=K;class z extends ${anonymous;constructor(e,t,r,s){super(e,"event",t,r),Object.defineProperty(this,I,{value:M}),(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))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>j.from(e)));return new z(_,e,t,!1).topicHash}static from(e){if(z.isFragment(e))return e;if("string"==typeof e)try{return z.from(A(e))}catch(t){(0,n.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof v){const t=k("event",e),r=O(e,!0),n=!!P(e,i(["anonymous"])).has("anonymous");return C(e),new z(_,t,r,n)}return new z(_,e.name,e.inputs?e.inputs.map((e=>j.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[I]===M}}t.EventFragment=z;class V extends H{payable;gas;constructor(e,t,r,s,i){super(e,t,r),Object.defineProperty(this,I,{value:L}),(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))))});const t=[`constructor${G(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"==typeof e)try{return V.from(A(e))}catch(t){(0,n.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof v){P(e,i(["constructor"]));const t=O(e),r=!!P(e,o).has("payable"),n=S(e);return C(e),new V(_,"constructor",t,r,n)}return new V(_,"constructor",e.inputs?e.inputs.map(j.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===L}}t.ConstructorFragment=V;class q extends H{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,I,{value:F}),(0,n.defineProperties)(this,{payable:r})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(q.isFragment(e))return e;if("string"==typeof e)try{return q.from(A(e))}catch(t){(0,n.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof v){const t=e.toString(),r=e.peekKeyword(i(["fallback","receive"]));(0,n.assertArgument)(r,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(i(["fallback","receive"]))){const t=O(e);return(0,n.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),P(e,i(["payable"])),C(e),new q(_,[],!0)}let s=O(e);s.length?(0,n.assertArgument)(1===s.length&&"bytes"===s[0].type,"invali
1d fallback inputs","obj.inputs",s.map((e=>e.format("minimal"))).join(", ")):s=[j.from("bytes")];const o=x(e);if((0,n.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),P(e,i(["returns"])).has("returns")){const t=O(e);(0,n.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return C(e),new q(_,s,"payable"===o)}if("receive"===e.type)return new q(_,[],!0);if("fallback"===e.type){const t=[j.from("bytes")],r="payable"===e.stateMutability;return new q(_,t,r)}(0,n.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[I]===F}}t.FallbackFragment=q;class W extends ${constant;outputs;stateMutability;payable;gas;constructor(e,t,r,s,i,o){super(e,"function",t,s),Object.defineProperty(this,I,{value:D}),i=Object.freeze(i.slice());const a="view"===r||"pure"===r,c="payable"===r;(0,n.defineProperties)(this,{constant:a,gas:o,outputs:i,payable:c,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))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(G(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>j.from(e)));return new W(_,e,"view",t,[],null).selector}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)try{return W.from(A(e))}catch(t){(0,n.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof v){const t=k("function",e),r=O(e),n=x(e);let s=[];P(e,i(["returns"])).has("returns")&&(s=O(e));const o=S(e);return C(e),new W(_,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(_,e.name,t,e.inputs?e.inputs.map(j.from):[],e.outputs?e.outputs.map(j.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===D}}t.FunctionFragment=W;class Q extends ${constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,I,{value:U})}format(){throw new Error("@TODO")}static from(e){if("string"==typeof e)try{return Q.from(A(e))}catch(t){(0,n.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof v){const t=k("struct",e),r=O(e);return C(e),new Q(_,t,r)}return new Q(_,e.name,e.inputs?e.inputs.map(j.from):[])}static isFragment(e){return e&&e[I]===U}}t.StructFragment=Q},93707:function(e,t,r){"use strict";Object.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(54760);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}});var s=r(12472);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(66711);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(16401);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(3762);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return a.Typed}})},16401:function(e,t,r){"use strict";
vendor: 8,404 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const n=r(96965),s=r(98336),i=r(42120),o=r(54760),a=r(12900);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}});const c=r(66711),u=r(3762);class l{fragment;name;signature;topic;args;constructor(e,t,r){const n=e.name,s=e.format();(0,i.defineProperties)(this,{fragment:e,name:n,signature:s,topic:t,args:r})}}t.LogDescription=l;class d{fragment;name;args;signature;selector;value;constructor(e,t,r,n){const 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){const 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;const 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;const r=[];for(const e of t)try{r.push(c.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;this.#y=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let r;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,i.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?s=!0:((0,i.assertArgument)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),n=e,s=n.payable));case"function":r=this.#m;break;case"event":r=this.#g;break;case"error":r=this.#p;break;default:return}const o=e.format();r.has(o)||r.set(o,e)})),this.deploy||(0,i.defineProperties)(this,{deploy:c.ConstructorFragment.from("constructor()")}),(0,i.defineProperties)(this,{fallback:n,receive:s})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#b(e,t,r){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#m.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const n=[];for(const[t,r]of this.#m)t.split("(")[0]===e&&n.push(r);if(t){const e=t.length>0?t[t.length-1]:null;let r=t.length,s=!0;u.Typed.isTyped(e)&&"overrides"===e.type&&(s=!1,r--);for(let e=n.length-1;e>=0;e--){const t=n[e].inputs.length;t===r||s&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){const r=n[e].inputs;for(let s=0;s<t.length;s++)if(u.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){const 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){const 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]}const n=this.#m.get(c.FunctionFragment.from(e).format());return n||null}getFunctionName(e){const 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){const t=Array.from(this.#m.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let r=0;r<t.length;r++){const n=t[r];e(this.#m.get(n),r)}}#w(e,t,r){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#g.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const n=[];for(const[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--){const r=n[e].inputs;for(let s=0;s<t.length;s++)if(u.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){const 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]}const n=this.#g.get(c.EventFragment.from(e).format());return n||null}getEventName(e){const t=this.#w(e,null,!1);return(0,i.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#w(e,null,!1)}getEvent(e,t){return this.#w(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#g.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let r=0;r<t.length;r++){const n=t[r];e(this.#g.get(n),r)}}getError(e,t){if((0,i.isHexString)(e)){const t=e.toLowerCase();if(g[t])return c.ErrorFragment.from(g[t].signature);for(const e of this.#p.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[r,n]of this.#p)r.split("(")[0]===e&&t.push(n);if(0===t.length)return"Error"===e?c.ErrorFragment.from("error Error(string)"):"Panic"===e?c.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){const r=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}if("Error(string)"===(e=c.ErrorFragment.from(e).format()))return c.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return c.ErrorFragment.from("error Panic(uint256)");const r=this.#p.get(e);return r||null}forEachError(e){const t=Array.from(this.#p.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let r=0;r<t.length;r++){const 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){const 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){const 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){const 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){const 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){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}let r="invalid length for result data";const 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){const r=(0,i.getBytes)(e,"data"),n=o.AbiCoder.getBuiltinCallException("call",t,r);if(n.message.startsWith("execution reverted (unknown custom error)")){const e=(0,i.hexlify)(r.slice(0,4)),t=this.getError(e);
1if(t)try{const 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)"}}const 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){const 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){const 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});const r=[];e.anonymous||r.push(e.topicHash);const 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)=>{const s=e.inputs[n];s.indexed?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)):(0,i.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+s.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}const 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)=>{const c=t[i];if(e.indexed)if("string"===e.type)r.push((0,s.id)(c));else if("bytes"===e.type)r.push((0,n.keccak256)(c));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this.#y.encode([e.type],[c]))}else o.push(e),a.push(c)})),{data:this.#y.encode(o,a),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){const 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)}const n=[],s=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(c.ParamType.from({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(s.push(e),o.push(!1))}));const u=null!=r?this.#y.decode(n,(0,i.concat)(r)):null,l=this.#y.decode(s,t,!0),d=[],h=[];let p=0,g=0;return e.inputs.forEach(((e,t)=>{let r=null;if(e.indexed)if(null==u)r=new f(null);else if(o[t])r=new f(u[g++]);else try{r=u[g++]}catch(e){r=e}else try{r=l[p++]}catch(e){r=e}d.push(r),h.push(e.name||null)})),a.Result.fromItems(d,h)}parseTransaction(e){const 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;const s=this.#y.decode(n.inputs,t.slice(4));return new d(n,n.selector,s,r)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new l(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,i.hexlify)(e),r=this.getError((0,i.dataSlice)(t,0,4));if(!r)return null;const 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:"string"==typeof e?new m(JSON.parse(e)):"function"==typeof e.formatJson?new m(e.formatJson()):"function"==typeof e.format?new m(e.format("json")):new m(e)}}t.Interface=m},3762:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const n=r(42120),s={};function i(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new c(s,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function o(e,t){return new c(s,`bytes${t||""}`,e,{size:t})}const a=Symbol.for("_ethers_typed");class c{type;value;#v;_typedSymbol;
1constructor(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.#v=i,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new 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.#v}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#v?-1:!1===this.#v?this.value.length:null}static from(e,t){return new c(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 c(s,"address",e)}static bool(e){return new c(s,"bool",!!e)}static bytes(e){return new c(s,"bytes",e)}static string(e){return new c(s,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new c(s,"overrides",Object.assign({},e))}
1static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===a}static dereference(e,t){if(c.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=c},40805:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const n=r(96965),s=r(42120),i=BigInt(0),o=BigInt(36);function a(e){const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);const 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("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);function u(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[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}const l=function(){const 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);const 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)===u(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+l[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"+u("XE00"+t)+t}},93442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const n=r(42120),s=r(40805);function i(e){return e&&"function"==typeof e.getAddress}async function o(e,t){const 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)}},96067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const n=r(96965),s=r(42120),i=r(40805);t.getCreateAddress=function(e){const t=(0,i.getAddress)(e.from);let 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){const o=(0,i.getAddress)(e),a=(0,s.getBytes)(t,"salt"),c=(0,s.getBytes)(r,"initCodeHash");return(0,s.assertArgument)(32===a.length,"salt must be 32 bytes","salt",t),(0,s.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,i.getAddress)((0,s.dataSlice)((0,n.keccak256)((0,s.concat)(["0xff",o,a,c])),12))}},45475: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(40805);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(96067);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(93442);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}
1),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}})},23223:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},90688:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},30087: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(23223);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return n.ZeroAddress}});var s=r(90688);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return s.ZeroHash}});var i=r(24456);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(82359);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},24456: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")},82359:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="�Ethereum Signed Message:\n"},44350:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const n=r(93707),s=r(45475),i=r(37143),o=r(42120),a=r(97151),c=BigInt(0);function u(e){return e&&"function"==typeof e.call}function l(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{#A;fragment;constructor(e,t,r){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.length<r.length)throw new Error("too many arguments");const n=g(e.runner,"resolveName"),i=d(n)?n:null;this.#A=async function(){const 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.#A}}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){const r=n.Typed.dereference(e,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",e);const 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){const 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))))))}function w(e){const t=async function(t){const r=await y(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await(0,s.resolveAddress)(r.from,f(e.runner)));const n=e.interface,i=(0,o.getBigInt)(r.value||c,"overrides.value")===c,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);const u=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(u||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){const n=e.runner;(0,o.assert)(h(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await n.sendTransaction(await t(r)),i=m(e.runner);return new a.ContractTransactionResponse(e.interface,i,s)},n=async e=>await r(e);
1return(0,o.defineProperties)(n,{_contract:e,estimateGas:async function(r){const n=g(e.runner,"estimateGas");return(0,o.assert)(l(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},populateTransaction:t,send:r,staticCall:async function(r){const n=g(e.runner,"call");(0,o.assert)(u(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const 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}t.copyOverrides=y,t.resolveArgs=b;const v=Symbol.for("_ethersInternal_contract"),A=new WeakMap;function E(e){return A.get(e[v])}async function k(e,t){let r,n=null;if(Array.isArray(t)){const n=function(t){if((0,o.isHexString)(t,32))return t;const 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]):(s=t)&&"object"==typeof s&&"getTopicFilter"in s&&"function"==typeof s.getTopicFilter&&s.fragment?r=await t.getTopicFilter():"fragment"in t?(n=t.fragment,r=[n.topicHash]):(0,o.assertArgument)(!1,"unknown event name","event",t);var s;r=r.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));return{fragment:n,tag:r.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:r}}async function P(e,t){const{subs:r}=E(e);return r.get((await k(e,t)).tag)||null}async function x(e,t,r){const n=m(e.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:s,tag:i,topics:c}=await k(e,r),{addr:u,subs:l}=E(e);let d=l.get(i);if(!d){const t={address:u||e,topics:c},o=t=>{let n=s;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){const i=n,o=s?e.interface.decodeEventLog(s,t.data,t.topics):[];S(e,r,o,(n=>new a.ContractEventPayload(e,n,r,i,t)))}else S(e,r,[],(n=>new a.ContractUnknownEventPayload(e,n,r,t)))};let h=[];d={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(t,o))},stop:async()=>{if(0==h.length)return;let e=h;h=[],await Promise.all(e),n.off(t,o)}},l.set(i,d)}return d}let O=Promise.resolve();async function S(e,t,r,n){try{await O}catch(e){}const s=async function(e,t,r,n){await O;const s=await P(e,t);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter((({listener:t,once:s})=>{const 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(),E(e).subs.delete(s.tag)),i>0}(e,t,r,n);return O=s,await s}const C=["then"];class T{target;interface;runner;filters;[v];fallback;
1constructor(e,t,r,i){(0,o.assertArgument)("string"==typeof e||(0,s.isAddressable)(e),"invalid value for Contract target","target",e),null==r&&(r=null);const c=n.Interface.from(t);let u;(0,o.defineProperties)(this,{target:e,runner:r,interface:c}),Object.defineProperty(this,v,{value:{}});let l=null,h=null;if(i){const e=m(r);h=new a.ContractTransactionResponse(this.interface,e,i)}let f=new Map;if("string"==typeof e)if((0,o.isHexString)(e))l=e,u=Promise.resolve(e);else{const t=g(r,"resolveName");if(!d(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});u=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 E(this).addr=t,t}))}else u=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return E(this).addr=e,e}));var p,y;p=this,y={addrPromise:u,addr:l,deployTx:h,subs:f},A.set(p[v],y);const b=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||C.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)=>C.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:b}),(0,o.defineProperties)(this,{fallback:c.receive||c.fallback?w(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||C.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||C.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new T(this.target,this.interface,e)}attach(e){return new T(e,this.interface,this.runner)}async getAddress(){return await E(this).addrPromise}async getDeployedCode(){const e=m(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();
1if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=m(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,r)=>{const n=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",n)}catch(e){r(e)}};n()}))}deploymentTransaction(){return E(this).deployTx}getFunction(e){"string"!=typeof e&&(e=e.format());const t=function(e,t){const r=function(...r){const 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){const n=r(...t);let i={};if(n.inputs.length+1===t.length&&(i=await y(t.pop()),i.from&&(i.from=await(0,s.resolveAddress)(i.from,f(e.runner)))),n.inputs.length!==t.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const 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){const t=await d(...e);return 1===t.length?t[0]:t},c=async function(...t){const r=e.runner;(0,o.assert)(h(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await r.sendTransaction(await n(...t)),i=m(e.runner);return new a.ContractTransactionResponse(e.interface,i,s)},d=async function(...t){const s=g(e.runner,"call");(0,o.assert)(u(s),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await n(...t);let 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}const c=r(...t);return e.interface.decodeFunctionResult(c,a)},p=async(...e)=>r(...e).constant?await i(...e):await c(...e);return(0,o.defineProperties)(p,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:async function(...t){const r=g(e.runner,"estimateGas");return(0,o.assert)(l(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},populateTransaction:n,send:c,staticCall:i,staticCallResult:d}),Object.defineProperty(p,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=e.interface.getFunction(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),p}(this,e);return t}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){const r=function(...r){const 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:()=>{const 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 new Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");const{addr:n,addrPromise:s}=E(this),c=n||await s,{fragment:u,topics:l}=await k(this,e),d={address:c,topics:l,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=u;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){const r=await x(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){const r=await x(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await S(this,e,t,null)}async listenerCount(e){if(e){const t=await P(this,e);return t?t.listeners.length:0}const{subs:t}=E(this);let r=0;for(const{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){const t=await P(this,e);return t?t.listeners.map((({listener:e})=>e)):[]}const{subs:t}=E(this);let r=[];for(const{listeners:e}of t.values())r=r.concat(e.map((({listener:e})=>e)));return r}async off(e,t){const r=await P(this,e);if(!r)return this;if(t){const 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(),E(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){const t=await P(this,e);if(!t)return this;t.stop(),E(this).subs.delete(t.tag)}else{const{subs:e}=E(this);for(const{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){return class extends T{constructor(t,r=null){super(t,e,r)}}}static from(e,t,r){null==r&&(r=null);return new this(e,t,r)}}t.BaseContract=T;class B extends(function(){return T}()){}t.Contract=B},31018:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const n=r(93707),s=r(45475),i=r(42120),o=r(44350);class a{interface;bytecode;runner;constructor(e,t,r){const 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={};const r=this.interface.deploy;if(r.inputs.length+1===e.length&&(t=await(0,o.copyOverrides)(e.pop())),r.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const n=await(0,o.resolveArgs)(this.runner,r.inputs,e),s=(0,i.concat)([this.bytecode,this.interface.encodeDeploy(n)]);return Object.assign({},t,{data:s})}async deploy(...e){const 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"});const 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));const r=e.abi;let n="";return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}}t.ContractFactory=a},37252: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(44350);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(31018);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}});var i=r(97151);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}})},97151: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;const n=r(37143),s=r(42120);class i extends n.Log{interface;fragment;args;constructor(e,t,r){super(e,e.provider);const 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=>
1{const 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 c extends n.TransactionResponse{#E;constructor(e,t,r){super(r,t),this.#E=e}async wait(e,t){const r=await super.wait(e,t);return null==r?null:new a(this.#E,this.provider,r)}}t.ContractTransactionResponse=c;class u 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=u;t.ContractEventPayload=class extends u{constructor(e,t,r,n,o){super(e,t,r,new i(o,e.interface,n));const 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()}}},43147:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const n=r(60798),s=r(24112),i=r(67366),o=r(40937),a=r(42120);const c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}(),u=c.crypto||c.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){const 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,c){const u={sha256:i.sha256,sha512:o.sha512}[c];return(0,a.assertArgument)(null!=u,"invalid pbkdf2 algorithm","algorithm",c),(0,s.pbkdf2)(u,e,t,{c:r,dkLen:n})},t.randomBytes=function(e){(0,a.assert)(null!=u,"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);const t=new Uint8Array(e);return u.getRandomValues(t),t}},76117:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const n=r(43147),s=r(42120);let i=!1;const o=function(e,t,r){return(0,n.createHmac)(e,t).update(r).digest()};let a=o;function c(e,t,r){const n=(0,s.getBytes)(t,"key"),i=(0,s.getBytes)(r,"data");return(0,s.hexlify)(a(e,n,i))}t.computeHmac=c,c._=o,c.lock=function(){i=!0},c.register=function(e){if(i)throw new Error("computeHmac is locked");a=e},Object.freeze(c)},96965: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;const n=r(76117);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}});const s=r(33037);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return s.keccak256}});const i=r(7990);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});const o=r(64989);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const a=r(62385);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return a.randomBytes}});const c=r(16168);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});const u=r(69233);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return u.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return u.sha512}});var l=r(33106);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return l.SigningKey}});var d=r(63295);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(),c.scrypt.lock(),c.scryptSync.lock(),u.sha256.lock(),u.sha512.lock(),a.randomBytes.lock()}},33037:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const n=r(7910),s=r(42120);let i=!1;const o=function(e){return(0,n.keccak_256)(e)};let a=o;function c(e){const t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}t.keccak256=c,c._=o,c.lock=function(){i=!0},c.register=function(e){if(i)throw new TypeError("keccak256 is locked");a=e},Object.freeze(c)},64989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const n=r(43147),s=r(42120);let i=!1;const o=function(e,t,r,s,i){return(0,n.pbkdf2Sync)(e,t,r,s,i)};let a=o;function c(e,t,r,n,i){const o=(0,s.getBytes)(e,"password"),c=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(a(o,c,r,n,i))}t.pbkdf2=c,c._=o,c.lock=function(){i=!0},c.register=function(e){if(i)throw new Error("pbkdf2 is locked");a=e},Object.freeze(c)},62385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const n=r(43147);let s=!1;const i=function(e){return new Uint8Array((0,n.randomBytes)(e))};let 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 new Error("randomBytes is locked");o=e},Object.freeze(a)},7990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const n=r(67746),s=r(42120);let i=!1;const o=function(e){return(0,n.ripemd160)(e)};let a=o;function c(e){const t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}t.ripemd160=c,c._=o,c.lock=function(){i=!0},c.register=function(e){if(i)throw new TypeError("ripemd160 is locked");a=e},Object.freeze(c)},16168:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const n=r(49468),s=r(42120);let i=!1,o=!1;const 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})},c=function(e,t,r,s,i,o){return(0,n.scrypt)(e,t,{N:r,r:s,p:i,dkLen:o})};let u=a,l=c;async function d(e,t,r,n,i,o,a){const c=(0,s.getBytes)(e,"passwd"),l=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(await u(c,l,r,n,i,o,a))}function h(e,t,r,n,i,o){const a=(0,s.getBytes)(e,"passwd"),c=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(l(a,c,r,n,i,o))}t.scrypt=d,d._=a,d.lock=function(){o=!0},d.register=function(e){if(o)throw new Error("scrypt is locked");u=e},Object.freeze(d),t.scryptSync=h,h._=c,h.lock=function(){i=!0},h.register=function(e){if(i)throw new Error("scryptSync is locked");l=e},Object.freeze(h)},69233:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const n=r(43147),s=r(42120),i=function(e){return(0,n.createHash)("sha256").update(e).digest()},o=function(e){return(0,n.createHash)("sha512").update(e).digest()};let a=i,c=o,u=!1,l=!1;function d(e){const t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(a(t))}function h(e){const t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(c(t))}t.sha256=d,d._=i,d.lock=function(){u=!0},d.register=function(e){if(u)throw new Error("sha256 is locked");a=e},Object.freeze(d),t.sha512=h,h._=o,h.lock=function(){l=!0},h.register=function(e){if(l)throw new Error("sha512 is locked");c=e},Object.freeze(d)},63295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const n=r(30087),s=r(42120),i=BigInt(0),o=BigInt(1),a=BigInt(2),c=BigInt(27),u=BigInt(28),l=BigInt(35),d={};function h(e){return(0,s.zeroPadValue)((0,s.toBeArray)(e),32)}class f{#k;#P;#x;#O;get r(){return this.#k}set r(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid r","value",e),this.#k=(0,s.hexlify)(e)}get s(){return(0,s.assertArgument)(parseInt(this.#P.substring(0,3))<8,"non-canonical s; use ._s","s",this.#P),this.#P}set s(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid s","value",e),this.#P=(0,s.hexlify)(e)}get _s(){return this.#P}isValid(){return parseInt(this.#P.substring(0,3))<8}get v(){return this.#x}set v(e){const t=(0,s.getNumber)(e,"value");(0,s.assertArgument)(27===t||28===t,"invalid v","v",e),this.#x=t}get networkV(){return this.#O}get legacyChainId(){const e=this.networkV;return null==e?null:f.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const 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.#k=t,this.#P=r,this.#x=n,this.#O=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this._s}"${this.isValid()?"":', valid: "false"'}, yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new f(d,this.r,this._s,this.v);return this.networkV&&(e.#O=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}static getChainId(e){const t=(0,s.getBigInt)(e,"v");return t==c||t==u?i:((0,s.assertArgument)(t>
1=l,"invalid EIP-155 v","v",e),(t-l)/a)}static getChainIdV(e,t){return(0,s.getBigInt)(e)*a+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,s.getBigInt)(e);return t===i||t===c?27:t===o||t===u?28:((0,s.assertArgument)(t>=l,"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){const r=(0,s.getBytes)(e,"signature");if(64===r.length){const 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){const e=(0,s.hexlify)(r.slice(0,32)),t=(0,s.hexlify)(r.slice(32,64)),n=f.getNormalizedV(r[64]);return new f(d,e,t,n)}t(!1,"invalid raw signature length")}if(e instanceof f)return e.clone();const r=e.r;t(null!=r,"missing r");const i=h(r),o=function(e,r){if(null!=e)return h(e);if(null!=r){t((0,s.isHexString)(r,32),"invalid yParityAndS");const e=(0,s.getBytes)(r);return e[0]&=127,(0,s.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:a,v:c}=function(e,r,n){if(null!=e){const t=(0,s.getBigInt)(e);return{networkV:t>=l?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),u=new f(d,i,o,c);return a&&(u.#O=a),t(null==e.yParity||(0,s.getNumber)(e.yParity,"sig.yParity")===u.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===u.yParityAndS,"yParityAndS mismatch"),u}}t.Signature=f},33106:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const n=r(82958),s=r(42120),i=r(63295);class o{#S;constructor(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#S=(0,s.hexlify)(e)}get privateKey(){return this.#S}get publicKey(){return o.computePublicKey(this.#S)}get compressedPublicKey(){return o.computePublicKey(this.#S,!0)}sign(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);const t=n.secp256k1.sign((0,s.getBytesCopy)(e),(0,s.getBytesCopy)(this.#S),{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){const t=o.computePublicKey(e);return(0,s.hexlify)(n.secp256k1.getSharedSecret((0,s.getBytesCopy)(this.#S),(0,s.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,s.getBytes)(e,"key");if(32===r.length){const e=n.secp256k1.getPublicKey(r,!!t);return(0,s.hexlify)(e)}if(64===r.length){const e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}const 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);const r=i.Signature.from(t);let o=n.secp256k1.Signature.fromCompact((0,s.getBytesCopy)((0,s.concat)([r.r,r.s])));o=o.addRecoveryBit(r.yParity);const a=o.recoverPublicKey((0,s.getBytesCopy)(e));return(0,s.assertArgument)(null!=a,"invalid signature for digest","signature",t),"0x"+a.toHex(!1)}static addPoints(e,t,r){const 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},81097: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.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.BlockscoutProvider=t.AnkrProvider=t.AlchemyProvi
1der=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.verifyAuthorization=t.hashAuthorization=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.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.authorizationify=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=t.EtherscanPlugin=t.EnsPlugin=t.Network=t.EnsResolver=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=t.toBeArray=t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=void 0;var n=r(79406);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return n.version}});var s=r(93707);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(45475);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}}
1),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(30087);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(37252);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 c=r(96965);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return c.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return c.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return c.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return c.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return c.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return c.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return c.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var u=r(98336);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return u.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return u.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return u.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return u.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return u.dnsEncode}}),Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return u.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return u.verifyAuthorization}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return u.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return u.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return u.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return u.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return u.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return u.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return u.verifyTypedData}
1});var l=r(4878);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return l.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return l.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return l.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return l.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return l.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return l.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return l.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return l.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return l.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return l.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return l.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return l.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return l.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return l.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return l.AnkrProvider}}),Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return l.BlockscoutProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return l.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return l.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return l.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return l.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return l.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return l.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return l.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return l.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return l.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return l.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return l.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return l.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return l.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return l.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return l.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return l.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return l.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return l.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return l.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return l.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return l.showThrottleMessage}});var d=r(2290);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return d.accessListify}}),Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return d.authorizationify}}),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(42120);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}}
1),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(91602);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
1ystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.encryptKeystoreJsonSync}});var p=r(60659);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}})},15849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=t.hashAuthorization=void 0;const n=r(45475),s=r(96965),i=r(2290),o=r(42120);function a(e){return(0,o.assertArgument)("string"==typeof e.address,"invalid address for hashAuthorization","auth.address",e),(0,s.keccak256)((0,o.concat)(["0x05",(0,o.encodeRlp)([null!=e.chainId?(0,o.toBeArray)(e.chainId):"0x",(0,n.getAddress)(e.address),null!=e.nonce?(0,o.toBeArray)(e.n
1once):"0x"])]))}t.hashAuthorization=a,t.verifyAuthorization=function(e,t){return(0,i.recoverAddress)(a(e),t)}},52625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const n=r(96965),s=r(42120);t.id=function(e){return(0,n.keccak256)((0,s.toUtf8Bytes)(e))}},98336: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=t.verifyAuthorization=t.hashAuthorization=void 0;var n=r(15849);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return n.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return n.verifyAuthorization}});var s=r(52625);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return s.id}});var i=r(85420);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return i.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return i.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return i.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return i.dnsEncode}});var o=r(18043);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return o.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return o.verifyMessage}});var a=r(18191);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return a.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return a.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return a.solidityPackedSha256}});var c=r(58993);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}})},18043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const n=r(96965),s=r(30087),i=r(2290),o=r(42120);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){const r=a(e);return(0,i.recoverAddress)(r,t)}},85420:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const n=r(96965),s=r(42120),i=r(32303),o=new Uint8Array(32);function a(e){return(0,s.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function c(e){const t=(0,s.toUtf8Bytes)(u(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 u(e){try{if(0===e.length)throw new 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=u,t.isValidName=function(e){try{return 0!==c(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;const r=c(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){const 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)(c(e).map((t=>{(0,s.assertArgument)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);const n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n}))))+"00"}},18191:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const n=r(45475),s=r(96965),i=r(42120),o=new RegExp("^bytes([0-9]+)$"),a=new RegExp("^(u?int)([0-9]*)$"),c=new RegExp("^(.*)\\[([0-9]*)\\]$");function u(e,t,r){switch(e){case"address":return r?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)((0,n.getAddress)(t));case"string":return(0,i.toUtf8Bytes)(t);case"bytes":return(0,i.getBytes)(t);case"bool":return t=t?"0x01":"0x00",r?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)(t)}let s=e.match(a);if(s){let n="int"===s[1],o=parseInt(s[2]||"256");return(0,i.assertArgument)((!s[2]||s[2]===String(o))&&o%8==0&&0!==o&&o<=256,"invalid number type","type",e),r&&(o=256),n&&(t=(0,i.toT
1wos)(t,o)),(0,i.getBytes)((0,i.zeroPadValue)((0,i.toBeArray)(t),o/8))}if(s=e.match(o),s){const n=parseInt(s[1]);return(0,i.assertArgument)(String(n)===s[1]&&0!==n&&n<=32,"invalid bytes type","type",e),(0,i.assertArgument)((0,i.dataLength)(t)===n,`invalid value for ${e}`,"value",t),r?(0,i.getBytes)((0,i.zeroPadBytes)(t,32)):t}if(s=e.match(c),s&&Array.isArray(t)){const r=s[1],n=parseInt(s[2]||String(t.length));(0,i.assertArgument)(n===t.length,`invalid array length for ${e}`,"value",t);const o=[];return t.forEach((function(e){o.push(u(r,e,!0))})),(0,i.getBytes)((0,i.concat)(o))}(0,i.assertArgument)(!1,"invalid type","type",e)}function l(e,t){(0,i.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(u(e,t[n]))})),(0,i.hexlify)((0,i.concat)(r))}t.solidityPacked=l,t.solidityPackedKeccak256=function(e,t){return(0,s.keccak256)(l(e,t))},t.solidityPackedSha256=function(e,t){return(0,s.sha256)(l(e,t))}},58993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const n=r(45475),s=r(96965),i=r(2290),o=r(42120),a=r(52625),c=new Uint8Array(32);c.fill(0);const u=BigInt(-1),l=BigInt(0),d=BigInt(1),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const f=(0,o.toBeHex)(d,32),p=(0,o.toBeHex)(l,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}}const b={name:y("name"),version:y("version"),chainId:function(e){const 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){const 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 w(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const 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);const s=(0,o.mask)(h,r?n-1:n),i=r?(s+d)*u:l;return function(t){const 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)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0,o.assertArgument)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){const n=(0,o.getBytes)(t);return(0,o.assertArgument)(n.length===r,`invalid length for ${e}`,"value",t),function(e){const t=(0,o.getBytes)(e),r=t.length%32;return r?(0,o.concat)([t,c.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 v(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}function A(e){const 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;#C;get types(){return JSON.parse(this.#C)}#T;#B;constructor(e){this.#T=new Map,this.#B=new Map;const t=new Map,r=new Map,n=new Map,s={};Object.keys(e).forEach((i=>{s[i]=e[i].map((({name:t,type:r})=>{let{base:n,index:s}=A(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.#C=JSON.stringify(s);for(const n in s){const i=new Set;for(const a of s[n]){(0,o.assertArgument)(!i.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(n)}`,"types",e),i.add(a.name);const s=A(a.type).base;(0,o.assertArgument)(s!==n,`circular type reference to ${JSON.stringify(s)}`,"types",e);w(s)||((0,o.assertArgument)(r.has(s),`unknown type ${JSON.stringify(s)}`,"types",e),r.get(s).push(n),t.get(n).add(s))}}const i=Array.from(r.keys()).filter((e=>0===r.get(e).length));(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){(0,o.assertArgument)(!a.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),a.add(i);for(const e of t.get(i))if(r.has(e)){s(e,a);for(const t of a)n.get(t).add(e)}a.delete(i)}(this.primaryType,new Set);for(const[e,t]of n){const r=Array.from(t);r.sort(),this.#T.set(e,v(e,s[e])+r.map((e=>v(e,s[e]))).join(""))}}getEncoder(e){let t=this.#B.get(e);return t||(t=this.#_(e),this.#B.set(e,t)),t}#_(e){{const t=w(e);if(t)return t}const t=A(e).array;
1if(t){const 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.#T.has(e)&&(i=i.map(s.keccak256)),(0,s.keccak256)((0,o.concat)(i))}}const r=this.types[e];if(r){const t=(0,a.id)(this.#T.get(e));return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this.#T.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){const t=this.#T.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(w(e))return r(e,t);const n=A(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)));const 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){const t=[];for(const r in e){if(null==e[r])continue;const 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){e=Object.assign({},e);for(const t in e)null==e[t]&&delete e[t];const s={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const i=E.from(t);i.visit(r,((e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(s[t]="0x"),t)));for(const e in s)s[e]=await n(e);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),{domain:e,value:r=i.visit(r,((e,t)=>"address"===e&&s[t]?s[t]:t))}}static getPayload(e,t,r){E.hashDomain(e);const n={},s=[];m.forEach((t=>{const r=e[t];null!=r&&(n[t]=b[t](r),s.push({name:t,type:g[t]}))}));const i=E.from(t);t=i.types;const a=Object.assign({},t);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)}},59237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const n=r(94427),s=n.__importStar(r(81097));t.ethers=s,n.__exportStar(r(81097),t)},55142:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const n=r(45475),s=r(30087),i=r(37252),o=r(98336),a=r(2290),c=r(42120),u=r(54087),l=r(83080),d=r(54837),h=r(37143),f=r(21097),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)){const e=Object.keys(t);return e.sort(),e.reduce(((e,r)=>(e[r]=t[r],e)),{})}return t}))}class y{name;constructor(e){(0,c.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}
1function b(e){return(e=Array.from(new Set(e).values())).sort(),e}async function w(e,t){if(null==e)throw new 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,c.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:m("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:m("orphan",t),filter:(r=t,JSON.parse(JSON.stringify(r)))}}var r;if(e.address||e.topics){const 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){const e=[],i=[],o=r=>{(0,c.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,c.assertArgument)(!1,"unknown ProviderEvent","event",e)}function v(){return(new Date).getTime()}t.UnmanagedSubscriber=y;const A={cacheTimeout:250,pollingInterval:4e3};function E(e,t){try{const r=k(e,t);if(r)return(0,c.toUtf8String)(r)}catch(e){}return null}function k(e,t){if("0x"===e)return null;try{const r=(0,c.getNumber)((0,c.dataSlice)(e,t,t+32)),n=(0,c.getNumber)((0,c.dataSlice)(e,r,r+32));return(0,c.dataSlice)(e,r+32,r+32+n)}catch(e){}return null}function P(e){const t=(0,c.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function x(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{#I;#N;#R;#M;#L;#F;#D;#U;#j;#H;#$;#v;constructor(e,t){if(this.#v=Object.assign({},A,t||{}),"any"===e)this.#F=!0,this.#L=null;else if(e){const t=d.Network.from(e);this.#F=!1,this.#L=Promise.resolve(t),setTimeout((()=>{this.emit("network",t,null)}),0)}else this.#F=!1,this.#L=null;this.#U=-1,this.#D=new Map,this.#I=new Map,this.#N=new Map,this.#R=null,this.#M=!1,this.#j=1,this.#H=new Map,this.#$=!1}get pollingInterval(){return this.#v.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.connect(this)),this}getPlugin(e){return this.#N.get(e)||null}get disableCcipRead(){return this.#$}set disableCcipRead(e){this.#$=!!e}async#G(e){const t=this.#v.cacheTimeout;if(t<0)return await this._perform(e);const r=m(e.method,e);let n=this.#D.get(r);return n||(n=this._perform(e),this.#D.set(r,n),setTimeout((()=>{this.#D.get(r)===n&&this.#D.delete(r)}),t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;const n=e.to.toLowerCase(),s=t.toLowerCase(),i=[];for(let t=0;t<r.length;t++){const o=r[t],a=o.replace("{sender}",n).replace("{data}",s),u=new c.FetchRequest(a);-1===o.indexOf("{data}")&&(u.body={data:s,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:u,index:t,urls:r});let l,d="unknown error";try{l=await u.send()}catch(e){i.push(e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:{error:e}});continue}try{const e=l.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:u,result:e}),e.data;e.message&&(d=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:e})}catch(e){}(0,c.assert)(l.statusCode<400||l.statusCode>=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:o,errorMessage:d}}),i.push(d)}(0,c.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,l.formatBlock)(e),this)}_wrapLog(e,t){return new h.Log((0,l.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new h.TransactionReceipt((0,l.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new h.TransactionResponse((0,l.formatTransactionResponse)(e),this)}_detectNetwork(){(0,c.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,c.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,c.getNumber)(await this.#G({method:"getBlockNumber"}),"%response");return this.#U>=0&&(this.#U=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,c.isHexString)(e)?(0,c.isHexString)(e,32)?e:(0,c.toQuantity)(e):("bigint"==typeof e&&(e=(0,c.getNumber)(e,"blockTag")),"number"==typeof e?e>=0?(0,c.toQuantity)(e):this.#U>=0?(0,c.toQuantity)(this.#U+e):this.getBlockNumber().then((t=>(0,c.toQuantity)(t+e))):void(0,c.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?b(e.map((e=>e.toLowerCase()))):e.toLowerCase())),r="blockHash"in e?e.blockHash:void 0,n=(e,n,s)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(r&&(null!=n||null!=s))throw new Error("invalid filter");const o={};return i&&(o.address=i),t.length&&(o.topics=t),n&&(o.fromBlock=n),s&&(o.toBlock=s),r&&(o.blockHash=r),o};let s,i,o=[];if(e.address)if(Array.isArray(e.address))for(const t of e.address)o.push(this._getAddress(t));else o.push(this._getAddress(e.address));return"fromBlock"in e&&(s=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(i=this._getBlockTag(e.toBlock)),o.filter((e=>"string"!=typeof e)).length||null!=s&&"string"!=typeof s||null!=i&&"string"!=typeof i?Promise.all([Promise.all(o),s,i]).then((e=>n(e[0],e[1],e[2]))):n(o,s,i)}_getTransactionRequest(e){const t=(0,h.copyRequest)(e),r=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const s=(0,n.resolveAddress)(t[e],this);
1g(s)?r.push(async function(){t[e]=await s}()):t[e]=s})),null!=t.blockTag){const 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.#L){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#L===e&&(this.#L=null),t}})();return this.#L=e,(await e).clone()}const e=this.#L,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#F?(this.emit("network",r,t),this.#L===e&&(this.#L=Promise.resolve(r))):(0,c.assert)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:r,priorityFee:n}=await(0,c.resolveProperties)({_block:this.#K("latest",!1),gasPrice:(async()=>{try{const e=await this.#G({method:"getGasPrice"});return(0,c.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await this.#G({method:"getPriorityFee"});return(0,c.getBigInt)(e,"%response")}catch(e){}return null})()});let s=null,i=null;const 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){const e=new c.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,c.getBigInt)(await this.#G({method:"estimateGas",transaction:t}),"%response")}async#z(e,t,r){(0,c.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const s=(0,h.copyRequest)(e);try{return(0,c.hexlify)(await this._perform({method:"call",transaction:s,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,c.isCallException)(e)&&e.data&&r>=0&&"latest"===t&&null!=s.to&&"0x556f1830"===(0,c.dataSlice)(e.data,0,4)){const i=e.data,o=await(0,n.resolveAddress)(s.to,this);let a;try{a=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,c.assert)((0,c.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=(0,c.dataSlice)(e,0,32);(0,c.assert)((0,c.dataSlice)(r,0,12)===(0,c.dataSlice)(C,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,c.dataSlice)(r,12);try{const r=[],n=(0,c.getNumber)((0,c.dataSlice)(e,32,64)),s=(0,c.getNumber)((0,c.dataSlice)(e,n,n+32)),i=(0,c.dataSlice)(e,n+32);for(let e=0;e<s;e++){const t=E(i,32*e);if(null==t)throw new Error("abort");r.push(t)}t.urls=r}catch(e){(0,c.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const r=k(e,64);if(null==r)throw new Error("abort");t.calldata=r}catch(e){(0,c.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,c.assert)((0,c.dataSlice)(e,100,128)===(0,c.dataSlice)(C,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,c.dataSlice)(e,96,100);try{const r=k(e,128);if(null==r)throw new Error("abort");t.extraData=r}catch(e){(0,c.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,c.dataSlice)(e.data,4))}catch(e){(0,c.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:i}})}(0,c.assert)(a.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:i,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:a.errorArgs}});const u=await this.ccipReadFetch(s,a.calldata,a.urls);(0,c.assert)(null!=u,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:e.data,errorArgs:a.errorArgs}});const l={to:o,data:(0,c.concat)([a.selector,S([u,a.extraData])])};
1this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const e=await this.#z(l,t,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:e}),e}}throw e}}async#V(e){const{value:t}=await(0,c.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){const{tx:t,blockTag:r}=await(0,c.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#V(this.#z(t,r,e.enableCcipRead?0:-1))}async#q(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.#V(this.#G(Object.assign(e,{address:n,blockTag:s})))}async getBalance(e,t){return(0,c.getBigInt)(await this.#q({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,c.getNumber)(await this.#q({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,c.hexlify)(await this.#q({method:"getCode"},e,t))}async getStorage(e,t,r){const n=(0,c.getBigInt)(t,"position");return(0,c.hexlify)(await this.#q({method:"getStorage",position:n},e,r))}async broadcastTransaction(e){const{blockNumber:t,hash:r,network:n}=await(0,c.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),s=a.Transaction.from(e);if(s.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(s,n).replaceableTransaction(t)}async#K(e,t){if((0,c.isHexString)(e,32))return await this.#G({method:"getBlock",blockHash:e,includeTransactions:t});let r=this._getBlockTag(e);return"string"!=typeof r&&(r=await r),await this.#G({method:"getBlock",blockTag:r,includeTransactions:t})}async getBlock(e,t){const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#K(e,!!t)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(e){const{network:t,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransaction",hash:e})});return null==r?null:this._wrapTransactionResponse(r,t)}async getTransactionReceipt(e){const{network:t,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransactionReceipt",hash:e})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){const t=await this.#G({method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(r,t)}async getTransactionResult(e){const{result:t}=await(0,c.resolveProperties)({network:this.getNetwork(),result:this.#G({method:"getTransactionResult",hash:e})});return null==t?null:(0,c.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);g(t)&&(t=await t);const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getLogs",filter:t})});return n.map((e=>this._wrapLog(e,r)))}_getProvider(e){(0,c.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await u.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,n.getAddress)(e);const t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{const r=await u.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;const a=new i.Contract(o,["function name(bytes32) view returns (string)"],this),c=await a.name(t);return await this.resolveName(c)!==e?null:c}catch(e){if((0,c.isError)(e,"BAD_DATA")&&"0x"===e.value)return null;if((0,c.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,r){const n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise((async(t,s)=>{let i=null;const o=async r=>{try{const s=await this.getTransactionReceipt(e);
1if(null!=s&&r-s.blockNumber+1>=n)return t(s),void(i&&(clearTimeout(i),i=null))}catch(e){console.log("EEE",e)}this.once("block",o)};null!=r&&(i=setTimeout((()=>{null!=i&&(i=null,this.off("block",o),s((0,c.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),r)),o(await this.getBlockNumber())}))}async waitForBlock(e){(0,c.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=this.#H.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#H.delete(e))}_setTimeout(e,t){null==t&&(t=0);const r=this.#j++,n=()=>{this.#H.delete(r),e()};if(this.paused)this.#H.set(r,{timer:null,func:n,time:t});else{const e=setTimeout(n,t);this.#H.set(r,{timer:e,func:n,time:v()})}return r}_forEachSubscriber(e){for(const t of this.#I.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new y(e.type);case"block":{const 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 new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const r of this.#I.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#R&&t.pause(this.#R);break}}async#W(e,t){let r=await w(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await w({orphan:"drop-log",log:t[0]},this)),this.#I.get(r.tag)||null}async#Q(e){const t=await w(e,this),r=t.tag;let n=this.#I.get(r);if(!n){n={subscriber:this._getSubscriber(t),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#I.set(r,n)}return n}async on(e,t){const r=await this.#Q(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#R&&r.subscriber.pause(this.#R)),this}async once(e,t){const r=await this.#Q(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#R&&r.subscriber.pause(this.#R)),this}async emit(e,...t){const r=await this.#W(e,t);if(!r||0===r.listeners.length)return!1;const n=r.listeners.length;return r.listeners=r.listeners.filter((({listener:r,once:n})=>{const s=new c.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.#I.delete(r.tag)),n>0}async listenerCount(e){if(e){const t=await this.#W(e);return t?t.listeners.length:0}let t=0;for(const{listeners:e}of this.#I.values())t+=e.length;return t}async listeners(e){if(e){const t=await this.#W(e);return t?t.listeners.map((({listener:e})=>e)):[]}let t=[];for(const{listeners:e}of this.#I.values())t=t.concat(e.map((({listener:e})=>e)));return t}async off(e,t){const r=await this.#W(e);if(!r)return this;if(t){const 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.#I.delete(r.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:r,subscriber:n}=await this.#Q(e);r&&n.stop(),this.#I.delete(t)}else for(const[e,{started:t,subscriber:r}]of this.#I)t&&r.stop(),this.#I.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.#M}destroy(){this.removeAllListeners();for(const e of this.#H.keys())this._clearTimeout(e);this.#M=!0}get paused(){return null!=this.#R}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#U=-1,null!=this.#R){if(this.#R==!!e)return;(0,c.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),this.#R=!!e;for(const e of this.#H.values())e.timer&&clearTimeout(e.timer),e.time=v()-e.time}resume(){if(null!=this.#R){this._forEachSubscriber((e=>e.resume())),this.#R=null;for(const e of this.#H.values()){let t=e.time;t<0&&(t=0),e.time=v(),setTimeout(e.func,t)}}}};
1const O=new Uint8Array([]);function S(e){const t=[];let r=0;for(let n=0;n<e.length;n++)t.push(O),r+=32;for(let n=0;n<e.length;n++){const s=(0,c.getBytes)(e[n]);t[n]=P(r),t.push(P(s.length)),t.push(x(s)),r+=32+32*Math.ceil(s.length/32)}return(0,c.concat)(t)}const C="0x0000000000000000000000000000000000000000000000000000000000000000"},35649:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const n=r(45475),s=r(2290),i=r(42120),o=r(37143);function a(e,t){if(e.provider)return e.provider;(0,i.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function c(e,t){let r=(0,o.copyRequest)(t);if(null!=r.to&&(r.to=(0,n.resolveAddress)(r.to,e)),null!=r.from){const 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 u{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 c(this,e)}async populateTransaction(e){const t=a(this,"populateTransaction"),r=await c(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));const n=await this.provider.getNetwork();if(null!=r.chainId){const t=(0,i.getBigInt)(r.chainId);(0,i.assertArgument)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;const s=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null==r.gasPrice||2!==r.type&&!s?0!==r.type&&1!==r.type||!s||(0,i.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,i.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas)if(0===r.type||1===r.type){const 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{const e=await t.getFeeData();if(null==r.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(r.authorizationList&&r.authorizationList.length?r.type=4:r.type=2,null!=r.gasPrice){const 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&&3!==r.type&&4!==r.type||(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else r.type=2;return await(0,i.resolveProperties)(r)}async populateAuthorization(e){const t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await a(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}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){const t=a(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=a(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;const n=s.Transaction.from(r);return await t.broadcastTransaction(await this.signTransaction(n))}authorize(e){(0,i.assert)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}t.AbstractSigner=u;class l extends u{address;constructor(e,t){super(t),(0,i.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new l(this.address,e)}#J(e,t){(0,i.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#J("transactions","signTransaction")}async signMessage(e){this.#J("messages","signMessage")}
1async signTypedData(e,t,r){this.#J("typed-data","signTypedData")}}t.VoidSigner=l},32813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const 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("=========================="))}},7994:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const n=r(42120),s=r(16791),i=r(23815),o=r(60085),a=r(3377),c=r(22880),u=r(35012),l=r(81333),d=r(24129),h=r(32013),f=r(54837),p=r(62196);const g="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const 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 h.JsonRpcProvider(e);if("string"==typeof e&&e.match(/^wss?:/)||(m=e)&&"function"==typeof m.send&&"function"==typeof m.close)return new p.WebSocketProvider(e);var m;let y=null;try{y=f.Network.from(e)}catch(e){}const b=[];if(r("publicPolygon")&&y&&("matic"===y.name?b.push(new h.JsonRpcProvider("https://polygon-rpc.com/",y,{staticNetwork:y})):"matic-amoy"===y.name&&b.push(new h.JsonRpcProvider("https://rpc-amoy.polygon.technology/",y,{staticNetwork:y}))),r("alchemy"))try{b.push(new i.AlchemyProvider(e,t.alchemy))}catch(e){}if(r("ankr")&&null!=t.ankr)try{b.push(new s.AnkrProvider(e,t.ankr))}catch(e){}if(r("chainstack"))try{b.push(new o.ChainstackProvider(e,t.chainstack))}catch(e){}if(r("cloudflare"))try{b.push(new a.CloudflareProvider(e))}catch(e){}if(r("etherscan"))try{b.push(new c.EtherscanProvider(e,t.etherscan))}catch(e){}if(r("infura"))try{let r,n=t.infura;"object"==typeof n&&(r=n.projectSecret,n=n.projectId),b.push(new u.InfuraProvider(e,n,r))}catch(e){}if(r("quicknode"))try{let r=t.quicknode;b.push(new l.QuickNodeProvider(e,r))}catch(e){}if((0,n.assert)(b.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===b.length)return b[0];let w=Math.floor(b.length/2);return w>2&&(w=2),y&&-1!==g.indexOf(y.name)&&(w=1),t&&t.quorum&&(w=t.quorum),new d.FallbackProvider(b,void 0,{quorum:w})}},54087:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const n=r(45475),s=r(30087),i=r(37252),o=r(98336),a=r(42120);function c(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 u{name;constructor(e){(0,a.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=u;t.BasicMulticoinProviderPlugin=class extends u{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const l=new RegExp("^(ipfs)://(.*)$","i"),d=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),l,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class h{provider;address;name;#Y;#Z;constructor(e,t,r){(0,a.defineProperties)(this,{provider:e,address:t,name:r}),this.#Y=null,this.#Z=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.#Y&&(this.#Y=(async()=>{try{return await this.#Z.supportsInterface("0x9061b923")}catch(e){if((0,a.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Y=null,e}})()),await this.#Y}
1async#X(e,t){t=(t||[]).slice();const r=this.#Z.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{const s=await this.#Z[e](...t);return n?r.decodeFunctionResult(n,s)[0]: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{const e=await this.#X("addr(bytes32)");return null==e||e===s.ZeroAddress?null:e}catch(e){if((0,a.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<2147483648){let t=e+2147483648;const r=await this.#X("addr(bytes32,uint)",[t]);if((0,a.isHexString)(r,20))return(0,n.getAddress)(r)}let t=null;for(const r of this.provider.plugins)if(r instanceof u&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;const r=await this.#X("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;const 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){const t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const 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])}`}const 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(){const e=[{type:"name",value:this.name}];try{const 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<d.length;r++){const n=t.match(d[r]);if(null==n)continue;const s=n[1].toLowerCase();switch(s){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{const r=c(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:r}),{linkage:e,url:r}}case"erc721":case"erc1155":{const r="erc721"===s?"tokenURI(uint256)":"uri(uint256)";e.push({type:s,value:t});const o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const u=(n[2]||"").split("/");if(2!==u.length)return e.push({type:`!${s}caip`,value:n[2]||""}),{url:null,linkage:e};const d=u[1],h=new i.Contract(u[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){const t=await h.ownerOf(d);if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===s){const t=await h.balanceOf(o,d);
1if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let f=await h[r](d);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)(d,32).substring(2)),e.push({type:"metadata-url-expanded",value:f})),f.match(/^ipfs:/i)&&(f=c(f)),e.push({type:"metadata-url",value:f});let p={};const g=await new a.FetchRequest(f).send();g.assertOk();try{p=g.bodyJson}catch(t){try{e.push({type:"!metadata",value:g.bodyText})}catch(t){const r=g.body;return r&&e.push({type:"!metadata",value:(0,a.hexlify)(r)}),{url:null,linkage:e}}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{if(null==m.match(l))return e.push({type:"!imageUrl-ipfs",value:m}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:m}),m=c(m)}return e.push({type:"url",value:m}),{linkage:e,url:m}}}}}catch(e){}return{linkage:e,url:null}}static async getEnsAddress(e){const 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){const r=await h.getEnsAddress(e);try{const n=new i.Contract(r,["function resolver(bytes32) view returns (address)"],e),a=await n.resolver((0,o.namehash)(t),{enableCcipRead:!0});return a===s.ZeroAddress?null:a}catch(e){throw e}return null}static async fromName(e,t){let r=t;for(;;){if(""===r||"."===r)return null;if("eth"!==t&&"eth"===r)return null;const n=await h.#ee(e,r);if(null!=n){const s=new h(e,n,t);return r===t||await s.supportsWildcard()?s:null}r=r.split(".").slice(1).join(".")}}}t.EnsResolver=h},83080: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;const n=r(45475),s=r(96965),i=r(2290),o=r(42120),a=BigInt(0);function c(e,t){return function(r){return null==r?t:e(r)}}function u(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map((t=>e(t)))}}function l(e,t){return r=>{const n={};for(const s in e){let i=s;if(t&&s in t&&!(i in r))for(const e of t[s])if(e in r){i=e;break}try{const t=e[s](r[i]);void 0!==t&&(n[s]=t)}catch(e){const t=e instanceof Error?e.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${s} (${t})`,"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=c,t.arrayOf=u,t.object=l,t.formatBoolean=d,t.formatData=h,t.formatHash=f,t.formatUint256=function(e){if(!(0,o.isHexString)(e))throw new Error("invalid uint256");return(0,o.zeroPadValue)(e,32)};const p=l({address:n.getAddress,blockHash:f,blockNumber:o.getNumber,data:h,index:o.getNumber,removed:c(d,!1),topics:u(f),transactionHash:f,transactionIndex:o.getNumber},{index:["logIndex"]});t.formatLog=function(e){return p(e)};const g=l({hash:c(f),parentHash:f,parentBeaconBlockRoot:c(f,null),number:o.getNumber,timestamp:o.getNumber,nonce:c(h),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:c(f,null),receiptsRoot:c(f,null),blobGasUsed:c(o.getBigInt,null),excessBlobGas:c(o.getBigInt,null),miner:c(n.getAddress),prevRandao:c(f,null),extraData:h,baseFeePerGas:c(o.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=g(e);return t.transactions=e.transactions.map((e=>"string"==typeof e?e:w(e))),t};const m=l({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:f,address:n.getAddress,topics:u(f),data:h,index:o.getNumber,blockHash:f},{index:["logIndex"]});function y(e){return m(e)}t.formatReceiptLog=y;
1const b=l({to:c(n.getAddress,null),from:c(n.getAddress,null),contractAddress:c(n.getAddress,null),index:o.getNumber,root:c(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:c(o.getBigInt,null),logsBloom:c(h),blockHash:f,hash:f,logs:u(y),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:c(o.getBigInt),blobGasPrice:c(o.getBigInt,null),status:c(o.getNumber),type:c(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function w(e){e.to&&(0,o.getBigInt)(e.to)===a&&(e.to="0x0000000000000000000000000000000000000000");const t=l({hash:f,index:c(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:c(i.accessListify,null),blobVersionedHashes:c(u(f,!0),null),authorizationList:c(u((e=>{let t;if(e.signature)t=e.signature;else{let r=e.yParity;"0x1b"===r?r=0:"0x1c"===r&&(r=1),t=Object.assign({},e,{yParity:r})}return{address:(0,n.getAddress)(e.address),chainId:(0,o.getBigInt)(e.chainId),nonce:(0,o.getBigInt)(e.nonce),signature:s.Signature.from(t)}}),!1),null),blockHash:c(f,null),blockNumber:c(o.getNumber,null),transactionIndex:c(o.getNumber,null),from:n.getAddress,gasPrice:c(o.getBigInt),maxPriorityFeePerGas:c(o.getBigInt),maxFeePerGas:c(o.getBigInt),maxFeePerBlobGas:c(o.getBigInt,null),gasLimit:o.getBigInt,to:c(n.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:h,creates:c(n.getAddress,null),chainId:c(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){const 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=w},4878: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.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.BlockscoutProvider=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(55142);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(35649);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(32813);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return i.showThrottleMessage}});var o=r(7994);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var a=r(54087);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return a.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return a.MulticoinProviderPlugin}});var c=r(54837);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return c.Network}});var u=r(22992);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}});var l=r(67004);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}});var d=r(37143);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(24129);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return h.FallbackProvider}});var f=r(32013);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(30292);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return p.BrowserProvider}});var g=r(23815);
1Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return g.AlchemyProvider}});var m=r(45447);Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return m.BlockscoutProvider}});var y=r(16791);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return y.AnkrProvider}});var b=r(3377);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return b.CloudflareProvider}});var w=r(60085);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return w.ChainstackProvider}});var v=r(22880);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return v.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return v.EtherscanPlugin}});var A=r(35012);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return A.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return A.InfuraWebSocketProvider}});var E=r(52751);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return E.PocketProvider}});var k=r(81333);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return k.QuickNodeProvider}});const P=r(28306);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var x=r(12394);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return x.SocketProvider}});var O=r(62196);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return O.WebSocketProvider}});var S=r(12394);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return S.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return S.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return S.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return S.SocketEventSubscriber}})},54837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const n=r(2290),s=r(42120),i=r(67004),o=new Map;class a{#te;#re;#N;constructor(e,t){this.#te=e,this.#re=(0,s.getBigInt)(t),this.#N=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#te}set name(e){this.#te=e}get chainId(){return this.#re}set chainId(e){this.#re=(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}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.clone()),this}getPlugin(e){return this.#N.get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new a(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new i.GasCostPlugin;let 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){const s=(0,n.accessListify)(e.accessList);for(const e in s)r+=t.txAccessListAddress+t.txAccessListStorageKey*s[e].storageKeys.length}return r}static from(e){if(function(){if(l)return;function e(e,t,r){const n=function(){const 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)}))}l=!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("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[u("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}
1),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[u("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})}(),null==e)return a.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){const 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);const 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));const r=o.get(e);r&&(0,s.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),o.set(e,t)}}function c(e,t){const r=String(e);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw new 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 u(e){return new i.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{const[t,s]=await Promise.all([r.send(),e()]);n=t;const i=n.bodyJson.standard;return{gasPrice:s.gasPrice,maxFeePerGas:c(i.maxFee,9),maxPriorityFeePerGas:c(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 l=!1},67004:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const n=r(39290),s=r(42120);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}`);const 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 c extends i{#ne;get feeDataFunc(){return this.#ne}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#ne=e}async getFeeData(e){return await this.#ne(e)}clone(){return new c(this.#ne)}}t.FeeDataNetworkPlugin=c;t.FetchUrlFeeDataNetworkPlugin=class extends i{#se;#ie;get url(){return this.#se}get processFunc(){return this.#ie}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#se=e,this.#ie=t}clone(){return this}}},23815:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class c extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const r=i.Network.from(e);null==t&&(t=a);super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:t,tx:r}=await(0,n.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==t||null==r)return null;let s,i=!1;
1try{s=t[0].result.output,i="Reverted"===t[0].error}catch(e){}if(s)return(0,n.assert)(!i,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:s,reason:null,transaction:r,invocation:null,revert:null}),s;(0,n.assert)(!1,"could not parse trace result","BAD_DATA",{value:t})}return await super._perform(e)}isCommunityResource(){return this.apiKey===a}static getRequest(e,t){null==t&&(t=a);const 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-amoy":return"polygon-amoy.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=c},16791:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const r=i.Network.from(e);null==t&&(t=a);const s={polling:!0,staticNetwork:r};super(c.getRequest(r,t),r,s),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=a);const 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=c},45447:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockscoutProvider=void 0;const n=r(42120),s=r(54837),i=r(32013);class o extends i.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const r=s.Network.from(e);null==t&&(t=null);super(o.getRequest(r),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return null===this.apiKey}getRpcRequest(e){const t=super.getRpcRequest(e);return t&&"eth_estimateGas"===t.method&&1==t.args.length&&(t.args=t.args.slice(),t.args.push("latest")),t}getRpcError(e,t){const r=t?t.error:null;if(r&&-32015===r.code&&!(0,n.isHexString)(r.data||"",!0)){const e={"assert(false)":"01","arithmetic underflow or overflow":"11","division or modulo by zero":"12","out-of-bounds array access; popping on an empty array":"31","out-of-bounds access of an array or bytesN":"32"};let t="";"VM execution error."===r.message?t=e[r.data]||"":e[r.message||""]&&(t=e[r.message||""]),t&&(r.message+=` (reverted: ${r.data})`,r.data="0x4e487b7100000000000000000000000000000000000000000000000000000000000000"+t)}else r&&-32e3===r.code&&"wrong transaction nonce"===r.message&&(r.message+=" (nonce too low)");return super.getRpcError(e,t)}
1static getRequest(e){const t=new n.FetchRequest(function(e){switch(e){case"mainnet":return"https://eth.blockscout.com/api/eth-rpc";case"sepolia":return"https://eth-sepolia.blockscout.com/api/eth-rpc";case"holesky":return"https://eth-holesky.blockscout.com/api/eth-rpc";case"classic":return"https://etc.blockscout.com/api/eth-rpc";case"arbitrum":return"https://arbitrum.blockscout.com/api/eth-rpc";case"base":return"https://base.blockscout.com/api/eth-rpc";case"base-sepolia":return"https://base-sepolia.blockscout.com/api/eth-rpc";case"matic":return"https://polygon.blockscout.com/api/eth-rpc";case"optimism":return"https://optimism.blockscout.com/api/eth-rpc";case"optimism-sepolia":return"https://optimism-sepolia.blockscout.com/api/eth-rpc";case"xdai":return"https://gnosis.blockscout.com/api/eth-rpc"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name));return t.allowGzip=!0,t}}t.BlockscoutProvider=o},30292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const n=r(42120),s=r(32013);class i extends s.JsonRpcApiPollingProvider{#oe;#ae;constructor(e,t,r){const s=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,n.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,s),this.#ae=null,r&&r.providerInfo&&(this.#ae=r.providerInfo),this.#oe=async(t,r)=>{const n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{const t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(e){const t=new Error(e.message);throw t.code=e.code,t.data=e.data,t.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:t}),t}}}get providerInfo(){return this.#ae}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{const t=await this.#oe(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);const 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.#oe("eth_requestAccounts",[])}catch(e){const t=e.payload;throw this.getRpcError(t,{id:t.id,error:e})}return await super.getSigner(e)}static async discover(e){if(null==e&&(e={}),e.provider)return new i(e.provider);const t=e.window?e.window:"undefined"!=typeof window?window:null;if(null==t)return null;const r=e.anyProvider;if(r&&t.ethereum)return new i(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;const s=e.timeout?e.timeout:300;return 0===s?null:await new Promise(((o,a)=>{let c=[];const u=e=>{c.push(e.detail),r&&l()},l=()=>{if(clearTimeout(d),c.length)if(e&&e.filter){const t=e.filter(c.map((e=>Object.assign({},e.info))));if(null==t)o(null);else if(t instanceof i)o(t);else{let e=null;if(t.uuid){e=c.filter((e=>t.uuid===e.info.uuid))[0]}if(e){const{provider:t,info:r}=e;o(new i(t,void 0,{providerInfo:r}))}else a((0,n.makeError)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:t}))}}else{const{provider:e,info:t}=c[0];o(new i(e,void 0,{providerInfo:t}))}else o(null);t.removeEventListener("eip6963:announceProvider",u)},d=setTimeout((()=>{l()}),s);t.addEventListener("eip6963:announceProvider",u),t.dispatchEvent(new Event("eip6963:requestProvider"))}))}}t.BrowserProvider=i},60085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013);function a(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,n.assertArgument)(!1,"unsupported network","network",e)}class c extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const r=i.Network.from(e);null==t&&(t=a(r.name));
1super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===a(this._network.name)}static getRequest(e,t){null==t&&(t=a(e.name));const r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===a(e.name)&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("ChainstackProvider"),!0)),r}}t.ChainstackProvider=c},3377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const n=r(42120),s=r(54837),i=r(32013);class o extends i.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const 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},22880:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const n=r(93707),s=r(37252),i=r(2290),o=r(42120),a=r(55142),c=r(54837),u=r(67004),l=r(32813);const d="org.ethers.plugins.provider.Etherscan";class h extends u.NetworkPlugin{baseUrl;constructor(e){super(d),(0,o.defineProperties)(this,{baseUrl:e})}clone(){return new h(this.baseUrl)}}t.EtherscanPlugin=h;const f=["enableCcipRead"];let p=1;class g extends a.AbstractProvider{network;apiKey;#ce;constructor(e,t){const r=null!=t?t:null;super();const n=c.Network.from(e);this.#ce=n.getPlugin(d),(0,o.defineProperties)(this,{apiKey:r,network:n})}getBaseUrl(){if(this.#ce)return this.#ce.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"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.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)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),"");return this.apiKey&&(r+=`&apikey=${this.apiKey}`),`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}&module=${e}${r}`}getPostUrl(){return`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t.chainid=this.network.chainId,t}async detectNetwork(){return this.network}async fetch(e,t,r){const 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});const a=new o.FetchRequest(s);a.setThrottleParams({slotInterval:1e3}),a.retryFunc=(e,t,r)=>(this.isCommunityResource()&&(0,l.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),a.processFunc=async(t,r)=>{const 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("&"));const c=await a.send();try{c.assertOk()}
1catch(e){this.emit("debug",{action:"receiveError",id:n,error:e,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:a,response:c})}c.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:c}));const u=JSON.parse((0,o.toUtf8String)(c.body));return"proxy"===e?("2.0"!=u.jsonrpc&&(this.emit("debug",{action:"receiveError",id:n,result:u,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:a,response:c,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:n,result:u,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:n,result:u}),u.result):0!=u.status||"No records found"!==u.message&&"No transactions found"!==u.message?((1!=u.status||"string"==typeof u.message&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:n,result:u}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:n,result:u}),u.result):(this.emit("debug",{action:"receiveRequest",id:n,result:u}),u.result)}_getTransactionPostData(e){const t={};for(let r in e){if(f.indexOf(r)>=0)continue;if(null==e[r])continue;let n=e[r];if(("type"!==r||0!==n)&&("blockTag"!==r||"latest"!==n)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r])n=(0,o.toQuantity)(n);else if("accessList"===r)n="["+(0,i.accessListify)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===r){if(0===n.length)continue;(0,o.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else n=(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(t){}const s=n.AbiCoder.getBuiltinCallException(e.method,e.transaction,r);throw s.info={request:e,error:t},s}if(s&&"broadcastTransaction"===e.method){const 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 new 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 new Error("EtherscanProvider does not support blockTag for call");const 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":{const 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){let t=this._getAddress(e);var r;(r=t)&&"function"==typeof r.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),r=JSON.parse(e);return new s.Contract(t,r,this)}catch(e){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=g},24129:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const n=r(42120),s=r(55142),i=r(54837),o=BigInt("1"),a=BigInt("2");function c(){return(new Date).getTime()}function u(e){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?{type:"bigint",value:t.toString()}:t))}const l={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};function h(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(h).join(",")+"]";if("object"==typeof e&&"function"==typeof e.toJSON)return h(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":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${h(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function f(e,t){if("error"in t){const e=t.error;let r;return r=(0,n.isError)(e,"CALL_EXCEPTION")?h(Object.assign({},e,{shortMessage:void 0,reason:void 0,info:void 0})):h(e),{tag:r,value:e}}const r=t.result;return{tag:h(r),value:r}}function p(e,t){const r=new Map;for(const{value:e,tag:n,weight:s}of t){const t=r.get(n)||{value:e,weight:0};t.weight+=s,r.set(n,t)}let n=null;for(const t of r.values())t.weight>=e&&(!n||t.weight>n.weight)&&(n=t);if(n)return n.value}function g(e,t){let r=0;const n=new Map;let s=null;const i=[];for(const{value:e,tag:o,weight:a}of t)if(e instanceof Error){const 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));const c=Math.floor(i.length/2);return i.length%2?i[c]:(i[c-1]+i[c]+o)/a}function m(e,t){const r=p(e,t);if(void 0!==r)return r;for(const e of t)if(e.value)return e.value}class y extends s.AbstractProvider{quorum;eventQuorum;eventWorkers;#ue;#le;#de;constructor(e,t,r){super(t,r),this.#ue=e.map((e=>e instanceof s.AbstractProvider?Object.assign({provider:e},l,d):Object.assign({},l,e,d))),this.#le=-2,this.#de=null,r&&null!=r.quorum?this.quorum=r.quorum:this.quorum=Math.ceil(this.#ue.reduce(((e,t)=>e+=t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,n.assertArgument)(this.quorum<=this.#ue.reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return this.#ue.map((e=>{const t=Object.assign({},e);for(const 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":{const 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)}}#he(e){const t=Array.from(e).map((e=>e.config)),r=this.#ue.slice();!function(e){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}}(r),r.sort(((e,t)=>e.priority-t.priority));for(const e of r)if(!e._lastFatalError&&-1===t.indexOf(e))return e;return null}#fe(e,t){const r=this.#he(e);if(null==r)return null;const n={config:r,result:null,didBump:!1,perform:null,staller:null},s=c();return n.perform=(async()=>{try{r.requests++;const e=await this._translatePerform(r.provider,t);n.result={result:e}}catch(e){r.errorResponses++,n.result={error:e}}const e=c()-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#pe(){let e=this.#de;if(!e){const t=[];this.#ue.forEach((e=>{t.push((async()=>{await async function(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=c()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),this.#de=e=(async()=>{await Promise.all(t);let e=null;for(const t of this.#ue){if(t._lastFatalError)continue;const 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#ge(e,t){const r=[];for(const n of e)if(null!=n.result){const{tag:e,value:s}=f(t.method,n.result);r.push({tag:e,value:s,weight:n.config.weight})}if(!(r.reduce(((e,t)=>e+t.weight),0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===this.#le&&(this.#le=Math.ceil((0,n.getNumber)(g(this.quorum,this.#ue.filter((e=>!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,n.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,n.getNumber)(g(e,t),"%internal");const r=new Map,s=(e,t)=>{const n=r.get(e)||{result:e,weight:0};n.weight+=t,r.set(e,n)};for(const{weight:e,value:r}of t){const t=(0,n.getNumber)(r);s(t-1,e),s(t,e),s(t+1,e)}let i,o=0;for(const{weight:t,result:n}of r.values())t>=e&&(t>o||null!=i&&t===o&&n>i)&&(o=t,i=n);return i}(this.quorum,r);if(void 0===e)return;return e>this.#le&&(this.#le=e),this.#le}case"getGasPrice":case"getPriorityFee":case"estimateGas":return g(this.quorum,r);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?m(this.quorum,r):p(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return p(this.quorum,r);case"broadcastTransaction":return m(this.quorum,r)}(0,n.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${u(t.method)})`})}}async#me(e,t){if(0===e.size)throw new Error("no runners?!");const r=[];let s=0;for(const t of e)t.perform&&r.push(t.perform),t.staller?r.push(t.staller):t.didBump||(t.didBump=!0,s++);const i=await this.#ge(e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let r=0;r<s;r++)this.#fe(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=>u(e.result)))}}),await Promise.race(r),await this.#me(e,t)}async _perform(e){if("broadcastTransaction"===e.method){const t=this.#ue.map((e=>null)),r=this.#ue.map((async({provider:r,weight:n},s)=>{try{const i=await r._perform(e);t[s]=Object.assign(f(e.method,{result:i}),{weight:n})}catch(r){t[s]=Object.assign(f(e.method,{error:r}),{weight:n})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const s=p(this.quorum,t.filter((e=>null!=e)));if((0,n.isError)(s,"INSUFFICIENT_FUNDS"))throw s;const i=r.filter(((e,r)=>null==t[r]));if(0===i.length)break;await Promise.race(i)}const s=m(this.quorum,t);if((0,n.assert)(void 0!==s,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(u)}}),s instanceof Error)throw s;return s}await this.#pe();const t=new Set;let r=0;for(;;){const n=this.#fe(t,e);if(null==n)break;
1if(r+=n.config.weight,r>=this.quorum)break}const s=await this.#me(t,e);for(const e of t)e.perform&&null==e.result&&e.config.lateResponses++;return s}async destroy(){for(const{provider:e}of this.#ue)e.destroy();super.destroy()}}t.FallbackProvider=y},35012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013),a=r(62196),c="84842078b09946638c03157f83405213";class u extends a.WebSocketProvider{projectId;projectSecret;constructor(e,t){const r=new l(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/"),r._network),(0,n.defineProperties)(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===c}}t.InfuraWebSocketProvider=u;class l extends o.JsonRpcProvider{projectId;projectSecret;constructor(e,t,r){null==e&&(e="mainnet");const s=i.Network.from(e);null==t&&(t=c),null==r&&(r=null);super(l.getRequest(s,t,r),s,{staticNetwork:s}),(0,n.defineProperties)(this,{projectId:t,projectSecret:r})}_getProvider(e){try{return new l(e,this.projectId,this.projectSecret)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.projectId===c}static getWebSocketProvider(e,t){return new u(e,t)}static getRequest(e,t,r){null==t&&(t=c),null==r&&(r=null);const 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":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.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===c&&(i.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("InfuraProvider"),!0)),i}}t.InfuraProvider=l},28306:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0;t.IpcSocketProvider=undefined},32013:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const n=r(93707),s=r(45475),i=r(98336),o=r(2290),a=r(42120),c=r(55142),u=r(35649),l=r(54837),d=r(21570),h=r(21097),f="bigint,boolean,function,number,string,symbol".split(/,/g);function p(e){if(null==e||f.indexOf(typeof e)>=0)return e;if("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 new Error(`should not happen: ${e} (${typeof e})`)}function g(e){return new Promise((t=>{setTimeout(t,e)}))}function m(e){return e?e.toLowerCase():e}function y(e){return e&&"number"==typeof e.pollingInterval}const b={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class w extends u.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){const t=p(e),r=[];if(t.from){const n=t.from;r.push((async()=>{const 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()=>
1{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;r.push((async()=>{t.to=await(0,s.resolveAddress)(e,this.provider)})())}r.length&&await Promise.all(r);const n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise(((e,n)=>{const s=[1e3,100];let i=0;const o=async()=>{try{const n=await this.provider.getTransaction(r);if(null!=n)return void e(n.replaceableTransaction(t))}catch(e){if((0,a.isError)(e,"CANCELLED")||(0,a.isError)(e,"BAD_DATA")||(0,a.isError)(e,"NETWORK_ERROR")||(0,a.isError)(e,"UNSUPPORTED_OPERATION"))return null==e.info&&(e.info={}),e.info.sendTransactionHash=r,void n(e);if((0,a.isError)(e,"INVALID_ARGUMENT")&&(i++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,i>10))return void n(e);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){const t=p(e);if(t.from){const 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;const r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){const 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){const n=p(r),o=await i.TypedDataEncoder.resolveNames(e,t,n,(async e=>{const 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){const 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=w;class v extends c.AbstractProvider{#v;#ye;#be;#we;#ve;#Ae;#Ee;#ke(){if(this.#we)return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#we=setTimeout((()=>{this.#we=null;const e=this.#be;for(this.#be=[];e.length;){const t=[e.shift()];for(;e.length&&t.length!==this.#v.batchMaxCount;){t.push(e.shift());if(JSON.stringify(t.map((e=>e.payload))).length>this.#v.batchMaxSize){e.unshift(t.pop());break}}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const r=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:r});for(const{resolve:e,reject:n,payload:s}of t){if(this.destroyed){n((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:s.method}));continue}const t=r.filter((e=>e.id===s.id))[0];if(null!=t)"error"in t?n(this.getRpcError(s,t)):e(t.result);else{const e=(0,a.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:s}});this.emit("error",e),n(e)}}}catch(e){this.emit("debug",{action:"receiveRpcError",error:e});for(const{reject:r}of t)r(e)}})()}}),e)}constructor(e,t){super(e,t),this.#ye=1,this.#v=Object.assign({},b,t||{}),this.#be=[],this.#we=null,this.#Ae=null,this.#Ee=null;{let e=null;const t=new Promise((t=>{e=t}));this.#ve={promise:t,resolve:e}}const 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.#Ae=l.Network.from(e))):r&&((0,a.assertArgument)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#Ae=r)}_getOption(e){return this.#v[e]}get _network(){return(0,a.assert)(this.#Ae,"network is not available yet","NETWORK_E
1RROR"),this.#Ae}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){const r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#Ae)return this.#Ae}return this.#Ee?await this.#Ee:this.ready?(this.#Ee=(async()=>{try{const e=l.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return this.#Ee=null,e}catch(e){throw this.#Ee=null,e}})(),await this.#Ee):(this.#Ee=(async()=>{const e={id:this.#ye++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let t;this.emit("debug",{action:"sendRpcPayload",payload:e});try{t=(await this._send(e))[0],this.#Ee=null}catch(e){throw this.#Ee=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}
1if(this.emit("debug",{action:"receiveRpcResult",result:t}),"result"in t)return l.Network.from((0,a.getBigInt)(t.result));throw this.getRpcError(e,t)})(),await this.#Ee)}_start(){null!=this.#ve&&null!=this.#ve.resolve&&(this.#ve.resolve(),this.#ve=null,(async()=>{for(;null==this.#Ae&&!this.destroyed;)try{this.#Ae=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 g(1e3)}this.#ke()})())}async _waitUntilReady(){if(null!=this.#ve)return await this.#ve.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 c.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#ve}getRpcTransaction(e){const 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)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>{const t=(0,o.authorizationify)(e);return{address:t.address,nonce:(0,a.toQuantity)(t.nonce),chainId:(0,a.toQuantity)(t.chainId),yParity:(0,a.toQuantity)(t.signature.yParity),r:(0,a.toQuantity)(t.signature.r),s:(0,a.toQuantity)(t.signature.s)}}))),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:[m(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[m(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[m(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[m(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(m):e.filter.address=m(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:r}=e,{error:s}=t;if("eth_estimateGas"===r&&s.message){const 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(t.match(/nonce/i)&&t.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:s}})}if("eth_call"===r||"eth_estimateGas"===r){const t=E(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}const i=JSON.stringify(function(e){const t=[];return k(e,t),t}(s));if("string"==typeof s.message&&s.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:t[r]||"unknown",reason:"rejected",info:{payload:e,error:s}})}if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){const 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}}
1):(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}));const r=this.#ye++,n=new Promise(((n,s)=>{this.#be.push({resolve:n,reject:s,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})}));return this.#ke(),n}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"==typeof e){const r=await t;if(e>=r.length)throw new Error("no such account");return new w(this,r[e])}const{accounts:r}=await(0,a.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,s.getAddress)(e);for(const t of r)if((0,s.getAddress)(t)===e)return new w(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new w(this,e)))}destroy(){this.#we&&(clearTimeout(this.#we),this.#we=null);for(const{payload:e,reject:t}of this.#be)t((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#be=[],super.destroy()}}t.JsonRpcApiProvider=v;class A extends v{#Pe;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=b.pollingInterval),this.#Pe=r}_getSubscriber(e){const t=super._getSubscriber(e);return y(t)&&(t.pollingInterval=this.#Pe),t}get pollingInterval(){return this.#Pe}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");this.#Pe=e,this._forEachSubscriber((e=>{y(e)&&(e.pollingInterval=this.#Pe)}))}}t.JsonRpcApiPollingProvider=A;function E(e){if(null==e)return null;if("string"==typeof e.message&&e.message.match(/revert/i)&&(0,a.isHexString)(e.data))return{message:e.message,data:e.data};if("object"==typeof e){for(const t in e){const r=E(e[t]);if(r)return r}return null}if("string"==typeof e)try{return E(JSON.parse(e))}catch(e){}return null}function k(e,t){if(null!=e){if("string"==typeof e.message&&t.push(e.message),"object"==typeof e)for(const r in e)k(e[r],t);if("string"==typeof e)try{return k(JSON.parse(e),t)}catch(e){}}}t.JsonRpcProvider=class extends A{#xe;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),this.#xe="string"==typeof e?new a.FetchRequest(e):e.clone()}_getConnection(){return this.#xe.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}},52751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013),a="62e1ad51b37b8e00394bda3b";class c extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,r){null==e&&(e="mainnet");const s=i.Network.from(e);null==t&&(t=a),null==r&&(r=null);const o={staticNetwork:s};super(c.getRequest(s,t,r),s,o),(0,n.defineProperties)(this,{applicationId:t,applicationSecret:r})}_getProvider(e){try{return new c(e,this.applicationId,this.applicationSecret)}catch(e){}return super._getProvider(e)}static getRequest(e,t,r){null==t&&(t=a);const 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=c},81333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const n=r(42120),s=r(32813),i=r(54837),o=r(32013),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";class c extends o.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");const r=i.Network.from(e);null==t&&(t=a);
1super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{token:t})}_getProvider(e){try{return new c(e,this.token)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.token===a}static getRequest(e,t){null==t&&(t=a);const 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=c},12394:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const n=r(55142),s=r(42120),i=r(32013);class o{#Oe;#A;get filter(){return JSON.parse(this.#A)}#Se;#Ce;#Te;constructor(e,t){this.#Oe=e,this.#A=JSON.stringify(t),this.#Se=null,this.#Ce=null,this.#Te=null}start(){this.#Se=this.#Oe.send("eth_subscribe",this.filter).then((e=>(this.#Oe._register(e,this),e)))}stop(){this.#Se.then((e=>{this.#Oe.destroyed||this.#Oe.send("eth_unsubscribe",[e])})),this.#Se=null}pause(e){(0,s.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#Ce=!!e}resume(){this.#Ce=null}_handleMessage(e){if(null!=this.#Se&&null===this.#Ce){let t=this.#Te;t=null==t?this._emit(this.#Oe,e):t.then((async()=>{await this._emit(this.#Oe,e)})),this.#Te=t.then((()=>{this.#Te===t&&(this.#Te=null)}))}}async _emit(e,t){throw new 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 c extends o{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=c;class u extends o{#Be;get logFilter(){return JSON.parse(this.#Be)}constructor(e,t){super(e,["logs",t]),this.#Be=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=u;class l extends i.JsonRpcApiProvider{#_e;#I;#Ie;constructor(e,t){const 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.#_e=new Map,this.#I=new Map,this.#Ie=new Map}_getSubscriber(e){switch(e.type){case"close":return new n.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new c(this);case"event":return new u(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.#I.set(e,t);const r=this.#Ie.get(e);if(r){for(const e of r)t._handleMessage(e);this.#Ie.delete(e)}}async _send(e){(0,s.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,r)=>{this.#_e.set(e.id,{payload:e,resolve:t,reject:r})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"==typeof t&&"id"in t){const e=this.#_e.get(t.id);
1if(null==e)return void this.emit("error",(0,s.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#_e.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,s.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,r=this.#I.get(e);if(r)r._handleMessage(t.params.result);else{let r=this.#Ie.get(e);null==r&&(r=[],this.#Ie.set(e,r)),r.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=l},62196:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const n=r(19817),s=r(12394);class i extends s.SocketProvider{#xe;#Ne;get websocket(){if(null==this.#Ne)throw new Error("websocket closed");return this.#Ne}constructor(e,t,r){super(t,r),"string"==typeof e?(this.#xe=()=>new n.WebSocket(e),this.#Ne=this.#xe()):"function"==typeof e?(this.#xe=e,this.#Ne=e()):(this.#xe=null,this.#Ne=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.#Ne&&(this.#Ne.close(),this.#Ne=null),super.destroy()}}t.WebSocketProvider=i},37143:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const n=r(42120),s=r(2290),i=BigInt(0);function o(e){return null==e?null:e}function a(e){return null==e?null:e.toString()}t.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,n.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(r)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:a(e),maxFeePerGas:a(t),maxPriorityFeePerGas:a(r)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,n.hexlify)(e.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)s in e&&null!=e[s]&&(t[s]=(0,n.getBigInt)(e[s],`request.${s}`));const i="type,nonce".split(/,/);for(const r of i)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)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,n.isBytesLike)(e)?(0,n.hexlify)(e):Object.assign({},e)))),t};class c{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Re;constructor(e,t){this.#Re=e.transactions.map((e=>"string"!=typeof e?new d(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,prevRandao:o(e.prevRandao),extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Re.map((e=>"string"==typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Re.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(){const{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:s,hash:i,miner:o,prevRandao:c,nonce:u,number:l,parentHash:d,parentBeaconBlockRoot:h,stateRoot:f,receiptsRoot:p,timestamp:g,transactions:m}=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,prevRandao:c,nonce:u,number:l,parentHash:d,timestamp:g,parentBeaconBlockRoot:h,stateRoot:f,receiptsRoot:p,transactions:m}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#Re.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"==typeof e)t=this.#Re[e];else{const r=e.toLowerCase();for(const e of this.#Re){if("string"==typeof e){if(e!==r)continue;t=e;break}if(e.hash===r){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"==typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"==typeof e)return t[e];e=e.toLowerCase();for(const r of 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 new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}t.Block=c;class u{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;const 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(){const{address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:o,transactionHash:a,transactionIndex:c}=this;return{_type:"log",address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:o,transactionHash:a,transactionIndex:c}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const 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:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}t.Log=u;class l{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#Me;constructor(e,t){this.#Me=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.#Me}toJSON(){const{to:e,from:t,contractAddress:r,hash:n,index:s,blockHash:i,blockNumber:o,logsBloom:c,logs:u,status:l,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:u,logsBloom:c,root:d,status:l,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(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new 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 f(this)}reorderedEvent(e){return(0,n.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),h(this,e)}}t.TransactionReceipt=l;class d{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;authorizationList;#Le;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.gasLim
1it,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.authorizationList=null!=e.authorizationList?e.authorizationList:null,this.#Le=-1}toJSON(){const{blockNumber:e,blockHash:t,index:r,hash:n,type:s,to:i,from:o,nonce:c,data:u,signature:l,accessList:d,blobVersionedHashes:h}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:t,blobVersionedHashes:h,chainId:a(this.chainId),data:u,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:c,signature:l,to:i,index:r,type:s,value:a(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{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){const r=null==e?1:e,s=null==t?0:t;let o=this.#Le,a=-1,c=-1===o;const u=async()=>{if(c)return null;const{blockNumber:e,nonce:t}=await(0,n.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(o=e);if(c)return null;const s=await this.getTransaction();if(!s||null==s.blockNumber)for(-1===a&&(a=o-3,a<this.#Le&&(a=this.#Le));a<=e;){if(c)return null;const t=await this.provider.getBlock(a,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let s=0;s<t.length;s++){const a=await t.getTransaction(s);if(a.from===this.from&&a.nonce===this.nonce){if(c)return null;const t=await this.provider.getTransactionReceipt(a.hash);if(null==t)return;if(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++}},l=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 l(d);if(d){if(1===r||await d.confirmations()>=r)return l(d)}else if(await u(),0===r)return null;const h=new Promise(((e,t)=>{const i=[],a=()=>{i.forEach((e=>e()))};if(i.push((()=>{c=!0})),s>0){const e=setTimeout((()=>{a(),t((0,n.makeError)("wait for transaction timeout","TIMEOUT"))}),s);i.push((()=>{clearTimeout(e)}))}const d=async n=>{if(await n.confirmations()>=r){a();try{e(l(n))}catch(e){t(e)}}};if(i.push((()=>{this.provider.off(this.hash,d)})),this.provider.on(this.hash,d),o>=0){const e=async()=>{try{await u()}catch(e){if((0,n.isError)(e,"TRANSACTION_REPLACED"))return a(),void t(e)}c||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()"}),f(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()"}),h(this,e)}replaceableTransaction(e){(0,n.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new d(this,this.provider);return t.#Le=e,t}}function h(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function f(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=d},22992:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const n=r(42120),s=r(35649);class i extends s.AbstractSigner{signer;#Fe;#De;constructor(e){super(e.provider),(0,n.defineProperties)(this,{signer:e}),this.#Fe=null,this.#De=0}async getAddress(){return this.signer.getAddress()}connect(e){return new i(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#Fe&&(this.#Fe=super.getNonce("pending"));const e=this.#De;return await this.#Fe+e}return super.getNonce(e)}increment(){this.#De++}reset(){this.#De=0,this.#Fe=null}async sendTransaction(e){const 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},21570:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const n=r(42120),s=r(21097);class i{#Oe;#Ue;#je;#He;#Ae;#$e;constructor(e){this.#Oe=e,this.#Ue=null,this.#je=this.#Ge.bind(this),this.#He=!1,this.#Ae=null,this.#$e=!1}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}async#Ge(e){try{null==this.#Ue&&(this.#Ue=this._subscribe(this.#Oe));let e=null;try{e=await this.#Ue}catch(e){if(!(0,n.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e)return this.#Ue=null,void this.#Oe._recoverSubscriber(this,this._recover(this.#Oe));const t=await this.#Oe.getNetwork();if(this.#Ae||(this.#Ae=t),this.#Ae.chainId!==t.chainId)throw new Error("chaid changed");if(this.#$e)return;const r=await this.#Oe.send("eth_getFilterChanges",[e]);await this._emitResults(this.#Oe,r)}catch(e){console.log("@TODO",e)}this.#Oe.once("block",this.#je)}#Ke(){const e=this.#Ue;e&&(this.#Ue=null,e.then((e=>{this.#Oe.destroyed||this.#Oe.send("eth_uninstallFilter",[e])})))}start(){this.#He||(this.#He=!0,this.#Ge(-2))}stop(){this.#He&&(this.#He=!1,this.#$e=!0,this.#Ke(),this.#Oe.off("block",this.#je))}pause(e){e&&this.#Ke(),this.#Oe.off("block",this.#je)}resume(){this.start()}}t.FilterIdSubscriber=i;t.FilterIdEventSubscriber=class extends i{#ze;constructor(e,t){var r;super(e),this.#ze=(r=t,JSON.parse(JSON.stringify(r)))}_recover(e){return new s.PollingEventSubscriber(e,this.#ze)}async _subscribe(e){return await e.send("eth_newFilter",[this.#ze])}async _emitResults(e,t){for(const r of t)e.emit(this.#ze,e._wrapLog(r,e._network))}};t.FilterIdPendingSubscriber=class extends i{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const r of t)e.emit("pending",r)}}},21097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const n=r(42120);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 a(e,t):void(0,n.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class i{#Oe;#je;#Ve;#qe;constructor(e){this.#Oe=e,this.#je=null,this.#Ve=4e3,this.#qe=-2}get pollingInterval(){return this.#Ve}set pollingInterval(e){this.#Ve=e}async#Ge(){try{const e=await this.#Oe.getBlockNumber();if(-2===this.#qe)return void(this.#qe=e);if(e!==this.#qe){for(let t=this.#qe+1;t<=e;t++){if(null==this.#je)return;await this.#Oe.emit("block",t)}this.#qe=e}}catch(e){}null!=this.#je&&(this.#je=this.#Oe._setTimeout(this.#Ge.bind(this),this.#Ve))}start(){this.#je||(this.#je=this.#Oe._setTimeout(this.#Ge.bind(this),this.#Ve),this.#Ge())}stop(){this.#je&&(this.#Oe._clearTimeout(this.#je),this.#je=null)}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}t.PollingBlockSubscriber=i;class o{#Oe;#Ge;#He;constructor(e){this.#Oe=e,this.#He=!1,this.#Ge=e=>{this._poll(e,this.#Oe)}}async _poll(e,t){throw new Error("sub-classes must override this")}start(){this.#He||(this.#He=!0,this.#Ge(-2),this.#Oe.on("block",this.#Ge))}stop(){this.#He&&(this.#He=!1,this.#Oe.off("block",this.#Ge))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=o;t.PollingBlockTagSubscriber=class extends o{#We;#Qe;constructor(e,t){super(e),this.#We=t,this.#Qe=-2}pause(e){e&&(this.#Qe=-2),super.pause(e)}async _poll(e,t){const r=await t.getBlock(this.#We);null!=r&&(-2===this.#Qe?this.#Qe=r.number:r.number>this.#Qe&&(t.emit(this.#We,r.number),this.#Qe=r.number))}};t.PollingOrphanSubscriber=class extends o{#A;constructor(e,t){super(e),this.#A=s(t)}async _poll(e,t){throw new Error("@TODO")}};class a extends o{#Je;constructor(e,t){super(e),this.#Je=t}async _poll(e,t){const r=await t.getTransactionReceipt(this.#Je);r&&t.emit(this.#Je,r)}}t.PollingTransactionSubscriber=a;t.PollingEventSubscriber=class{#Oe;#A;#je;#He;#qe;constructor(e,t){this.#Oe=e,this.#A=s(t),this.#je=this.#Ge.bind(this),this.#He=!1,this.#qe=-2}async#Ge(e){if(-2===this.#qe)return;const t=s(this.#A);t.fromBlock=this.#qe+1,t.toBlock=e;const r=await this.#Oe.getLogs(t);if(0!==r.length)for(const e of r)this.#Oe.emit(this.#A,e),this.#qe=e.blockNumber;else this.#qe<e-60&&(this.#qe=e-60)}start(){this.#He||(this.#He=!0,-2===this.#qe&&this.#Oe.getBlockNumber().then((e=>{this.#qe=e})),this.#Oe.on("block",this.#je))}stop(){this.#He&&(this.#He=!1,this.#Oe.off("block",this.#je))}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}},19817:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=n},484:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const n=r(45475),s=r(42120);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);const t=Object.keys(e).map((t=>{const 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}},17782:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const n=r(45475),s=r(96965);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))}},24438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationify=void 0;const n=r(45475),s=r(96965),i=r(42120);t.authorizationify=function(e){return{address:(0,n.getAddress)(e.address),nonce:(0,i.getBigInt)(null!=e.nonce?e.nonce:0),chainId:(0,i.getBigInt)(null!=e.chainId?e.chainId:0),signature:s.Signature.from(e.signature)}}},2290:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=void 0;var n=r(484);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return n.accessListify}});var s=r(24438);Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return s.authorizationify}});var i=r(17782);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return i.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return i.recoverAddress}});var o=r(31541);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return o.Transaction}})},31541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const n=r(45475),s=r(23223),i=r(96965),o=r(42120),a=r(484),c=r(24438),u=r(17782),l=BigInt(0),d=BigInt(2),h=BigInt(27),f=BigInt(28),p=BigInt(35),g=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),m=131072;function y(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return r+=(0,i.sha256)(t).substring(4),"0x"+r}function b(e){return"0x"===e?null:(0,n.getAddress)(e)}function w(e,t){try{return(0,a.accessListify)(e)}catch(r){(0,o.assertArgument)(!1,r.message,t,e)}}function v(e,t){try{if(!Array.isArray(e))throw new Error("authorizationList: invalid array");const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(!Array.isArray(n))throw new Error(`authorization[${r}
1]: invalid array`);if(6!==n.length)throw new Error(`authorization[${r}]: wrong length`);if(!n[1])throw new Error(`authorization[${r}]: null address`);t.push({address:b(n[1]),nonce:E(n[2],"nonce"),chainId:E(n[0],"chainId"),signature:i.Signature.from({yParity:A(n[3],"yParity"),r:(0,o.zeroPadValue)(n[4],32),s:(0,o.zeroPadValue)(n[5],32)})})}return t}catch(r){(0,o.assertArgument)(!1,r.message,t,e)}}function A(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function E(e,t){if("0x"===e)return l;const r=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(r<=g,"value exceeds uint size",t,r),r}function k(e,t){const 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 P(e){return(0,a.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function x(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}function O(e,t){let r;try{if(r=A(t[0],"yParity"),0!==r&&1!==r)throw new Error("bad yParity")}catch(e){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}const n=(0,o.zeroPadValue)(t[1],32),s=(0,o.zeroPadValue)(t[2],32),a=i.Signature.from({r:n,s:s,yParity:r});e.signature=a}class S{#Ye;#Ze;#r;#Xe;#et;#tt;#rt;#nt;#st;#re;#it;#ot;#at;#ct;#ut;#lt;#dt;get type(){return this.#Ye}set type(e){switch(e){case null:this.#Ye=null;break;case 0:case"legacy":this.#Ye=0;break;case 1:case"berlin":case"eip-2930":this.#Ye=1;break;case 2:case"london":case"eip-1559":this.#Ye=2;break;case 3:case"cancun":case"eip-4844":this.#Ye=3;break;case 4:case"pectra":case"eip-7702":this.#Ye=4;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";case 4:return"eip-7702"}return null}get to(){const e=this.#Ze;return null==e&&3===this.type?s.ZeroAddress:e}set to(e){this.#Ze=null==e?null:(0,n.getAddress)(e)}get nonce(){return this.#Xe}set nonce(e){this.#Xe=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#et}set gasLimit(e){this.#et=(0,o.getBigInt)(e)}get gasPrice(){const e=this.#tt;return null!=e||0!==this.type&&1!==this.type?e:l}set gasPrice(e){this.#tt=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){const e=this.#rt;return null==e?2===this.type||3===this.type?l:null:e}set maxPriorityFeePerGas(e){this.#rt=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){const e=this.#nt;return null==e?2===this.type||3===this.type?l:null:e}set maxFeePerGas(e){this.#nt=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.#st}set value(e){this.#st=(0,o.getBigInt)(e,"value")}get chainId(){return this.#re}set chainId(e){this.#re=(0,o.getBigInt)(e)}get signature(){return this.#it||null}set signature(e){this.#it=null==e?null:i.Signature.from(e)}get accessList(){const e=this.#ot||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#ot=null==e?null:(0,a.accessListify)(e)}get authorizationList(){const e=this.#dt||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#dt=null==e?null:e.map((e=>(0,c.authorizationify)(e)))}get maxFeePerBlobGas(){const e=this.#at;return null==e&&3===this.type?l:e}set maxFeePerBlobGas(e){this.#at=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#ct;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.#ct=e}get blobs(){return null==this.#lt?null:this.#lt.map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void(this.#lt=null);const t=[],r=[];for(let n=0;n<e.length;n++){const s=e[n];if((0,o.isBytesLike)(s)){(0,o.assert)(this.#ut,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,o.getBytes)(s);if((0,o.assertArgument)(e.length<=m,"blob is too large",`blobs[${n}]`,s),e.length!==m){const t=new Uint8Array(m);t.set(e),e=t}const i=this.#ut.blobToKzgCommitment(e),a=(0,o.hexlify)(this.#ut.computeBlobKzgProof(e,i));t.push({data:(0,o.hexlify)(e),commitment:(0,o.hexlify)(i),proof:a}),r.push(y(1,i))}else{const e=(0,o.hexlify)(s.commitment);t.push({data:(0,o.hexlify)(s.data),commitment:e,proof:(0,o.hexlify)(s.proof)}),r.push(y(1,e))}}this.#lt=t,this.#ct=r}get kzg(){return this.#ut}set kzg(e){this.#ut=null==e?null:function(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,o.getBytes)(e.blobToKzgCommitment((0,o.hexlify)(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,o.getBytes)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return(0,o.getBytes)(e.blobToKZGCommitment((0,o.hexlify)(t)));(0,o.assertArgument)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?(0,o.getBytes)(e.computeBlobProof((0,o.hexlify)(t),(0,o.hexlify)(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?(0,o.getBytes)(e.computeBlobKZGProof((0,o.hexlify)(t),(0,o.hexlify)(r))):void(0,o.assertArgument)(!1,"unsupported KZG library","kzg",e)}}(e)}constructor(){this.#Ye=null,this.#Ze=null,this.#Xe=0,this.#et=l,this.#tt=null,this.#rt=null,this.#nt=null,this.#r="0x",this.#st=l,this.#re=l,this.#it=null,this.#ot=null,this.#at=null,this.#ct=null,this.#ut=null,this.#lt=null,this.#dt=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.#ht(!0,!1))}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,u.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}#ht(e,t){(0,o.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const r=[k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLim
1it,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data];let n=l;if(e.chainId!=l)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){const t=e.signature.legacyChainId;null!=t&&(n=t)}if(!t)return n!==l&&(r.push((0,o.toBeArray)(n)),r.push("0x"),r.push("0x")),(0,o.encodeRlp)(r);let s=BigInt(27+t.yParity);return n!==l?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)}(this,r);case 1:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,P(e.accessList||[])];return t&&(r.push(k(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)])}(this,r);case 2:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,P(e.accessList||[])];return t&&(r.push(k(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)])}(this,r);case 3:return function(e,t,r){const n=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||s.ZeroAddress,k(e.value,"value"),e.data,P(e.accessList||[]),k(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),x(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(n.push(k(t.yParity,"yParity")),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s)),r)?(0,o.concat)(["0x03",(0,o.encodeRlp)([n,r.map((e=>e.data)),r.map((e=>e.commitment)),r.map((e=>e.proof))])]):(0,o.concat)(["0x03",(0,o.encodeRlp)(n)])}(this,r,t?this.blobs:null);case 4:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,P(e.accessList||[]),(n=e.authorizationList||[],n.map((e=>[k(e.chainId,"chainId"),e.address,k(e.nonce,"nonce"),k(e.signature.yParity,"yParity"),(0,o.toBeArray)(e.signature.r),(0,o.toBeArray)(e.signature.s)])))];var n;return t&&(r.push(k(t.yParity,"yParity")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x04",(0,o.encodeRlp)(r)])}(this,r)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ht(!0,!0)}get unsignedSerialized(){return this.#ht(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#at||this.#ct;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});const s=[];return null!=this.type?s.push(this.type):this.authorizationList&&this.authorizationList.length?s.push(4):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 S.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{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),
1chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new S;if("string"==typeof e){const t=(0,o.getBytes)(e);if(t[0]>=127)return S.from(function(e){const 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);const r={type:0,nonce:A(t[0],"nonce"),gasPrice:E(t[1],"gasPrice"),gasLimit:E(t[2],"gasLimit"),to:b(t[3]),value:E(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:l};if(6===t.length)return r;const n=E(t[6],"v"),s=E(t[7],"r"),a=E(t[8],"s");if(s===l&&a===l)r.chainId=n;else{let e=(n-p)/d;e<l&&(e=l),r.chainId=e,(0,o.assertArgument)(e!==l||n===h||n===f,"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})}return r}(t));switch(t[0]){case 1:return S.from(function(e){const 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));const r={type:1,chainId:E(t[0],"chainId"),nonce:A(t[1],"nonce"),gasPrice:E(t[2],"gasPrice"),gasLimit:E(t[3],"gasLimit"),to:b(t[4]),value:E(t[5],"value"),data:(0,o.hexlify)(t[6]),accessList:w(t[7],"accessList")};return 8===t.length||O(r,t.slice(8)),r}(t));case 2:return S.from(function(e){const 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));const r={type:2,chainId:E(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:E(t[2],"maxPriorityFeePerGas"),maxFeePerGas:E(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:E(t[4],"gasLimit"),to:b(t[5]),value:E(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:w(t[8],"accessList")};return 9===t.length||O(r,t.slice(9)),r}(t));case 3:return S.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1)),r="3",n=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";const e=t[1],s=t[2],i=t[3];(0,o.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,o.assertArgument)(Array.isArray(s),"invalid network format: commitments not an array","fields[2]",s),(0,o.assertArgument)(Array.isArray(i),"invalid network format: proofs not an array","fields[3]",i),(0,o.assertArgument)(e.length===s.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,o.assertArgument)(e.length===i.length,"invalid network format: blobs/proofs length mismatch","fields",t),n=[];for(let r=0;r<t[1].length;r++)n.push({data:e[r],commitment:s[r],proof:i[r]});t=t[0]}(0,o.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,o.hexlify)(e));const s={type:3,chainId:E(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:E(t[2],"maxPriorityFeePerGas"),maxFeePerGas:E(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:E(t[4],"gasLimit"),to:b(t[5]),value:E(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:w(t[8],"accessList"),maxFeePerBlobGas:E(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};n&&(s.blobs=n),(0,o.assertArgument)(null!=s.to,`invalid address for transaction type: ${r}`,"data",e),(0,o.assertArgument)(Array.isArray(s.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<s.blobVersionedHashes.length;t++)(0,o.assertArgument)((0,o.isHexString)(s.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||O(s,t.slice(11)),s}(t));case 4:return S.from(function(e){const t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,o.hexlify)(e));const r={type:4,chainId:E(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:E(t[2],"maxPriorityFeePerGas"),maxFeePerGas:E(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:E(t[4],"gasLimit"),to:b(t[5]),value:E(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:w(t[8],"accessList"),authorizationList:v(t[9],"authorizationList")};return 10===t.length||O(r,t.slice(10)),r}(t))}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new S;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLim
1it&&(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.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobs&&(t.blobs=e.blobs),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=S},20349:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const n=r(86239),s=r(21766),i=r(90358),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let a=null;function c(e){if(null==a){a={};for(let e=0;e<o.length;e++)a[o[e]]=BigInt(e)}const t=a[e];return(0,s.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const u=BigInt(0),l=BigInt(58);t.encodeBase58=function(e){const t=(0,n.getBytes)(e);let r=(0,i.toBigInt)(t),s="";for(;r;)s=o[Number(r%l)]+s,r/=l;for(let e=0;e<t.length&&!t[e];e++)s=o[0]+s;return s},t.decodeBase58=function(e){let t=u;for(let r=0;r<e.length;r++)t*=l,t+=c(e[r]);return t}},66446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const n=r(86239);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,n.getBytes)(t)},t.encodeBase64=function(e){const t=(0,n.getBytes)(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}},86239: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;const n=r(21766);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)){const t=new Uint8Array((e.length-2)/2);let 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};const a="0123456789abcdef";function c(e){const t=i(e);let r="0x";for(let e=0;e<t.length;e++){const n=t[e];r+=a[(240&n)>>4]+a[15&n]}return r}function u(e,t,r){const s=i(e);(0,n.assert)(t>=s.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(s),length:t,offset:t+1});const o=new Uint8Array(t);return o.fill(0),r?o.set(s,t-s.length):o.set(s,0),c(o)}t.hexlify=c,t.concat=function(e){return"0x"+e.map((e=>c(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){const 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}),c(s.slice(null==t?0:t,null==r?s.length:r))},t.stripZerosLeft=function(e){let t=c(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return u(e,t,!0)},t.zeroPadBytes=function(e,t){return u(e,t,!1)}},21766: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;const n=r(79406),s=r(39290);function i(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map((e=>i(e,t))).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return i(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const r=Object.keys(e);return r.sort(),"{ "+r.map((r=>`${i(r,t)}: ${i(e[r],t)}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function a(e,t,r){let o,a=e;{const s=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will over
1write populated values: ${i(r)}`);for(const e in r){if("shortMessage"===e)continue;const 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=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(e);break;default:o=new Error(e)}return(0,s.defineProperties)(o,{code:t}),r&&Object.assign(o,r),null==o.shortMessage&&(0,s.defineProperties)(o,{shortMessage:a}),o}function c(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=c,t.assertArgument=function(e,t,r,n){c(e,t,"INVALID_ARGUMENT",{argument:r,value:n})},t.assertArgumentCount=function(e,t,r){null==r&&(r=""),r&&(r=": "+r),c(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),c(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const u=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(e){}return e}),[]);t.assertNormalize=function(e){c(u.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),c(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},52203:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const n=r(39290);t.EventPayload=class{filter;emitter;#ft;constructor(e,t,r){this.#ft=t,(0,n.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#ft&&await this.emitter.off(this.filter,this.#ft)}}},93654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const n=r(66446),s=r(86239),i=r(21766),o=r(39290),a=r(82119),c=r(93040);let u=(0,c.createGetUrl)();const l=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),d=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let h=!1;async function f(e,t){try{const t=e.match(l);if(!t)throw new Error("invalid data");return new v(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 v(599,"BAD REQUEST (invalid data: URI)",{},null,new w(e))}var r}function p(e){return async function(t,r){try{const r=t.match(d);if(!r)throw new Error("invalid link");return new w(`${e}${r[2]}`)}catch(e){return new v(599,"BAD REQUEST (invalid IPFS URI)",{},null,new w(t))}}}const g={data:f,ipfs:p("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class y{#pt;#gt;constructor(e){this.#pt=[],this.#gt=!1,m.set(e,(()=>{if(!this.#gt){this.#gt=!0;for(const e of this.#pt)setTimeout((()=>{e()}),0);this.#pt=[]}}))}addListener(e){(0,i.assert)(!this.#gt,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#pt.push(e)}get cancelled(){return this.#gt}checkSignal(){(0,i.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function b(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=y;class w{#mt;#yt;#bt;#wt;#vt;#se;#At;#Et;#kt;#Pt;#xt;#Ot;#St;#Ct;#Tt;get url(){return this.#se}set url(e){this.#se=String(e)}get body(){return null==this.#At?null:new Uint8Array(this.#At)}set body(e){if(null==e)this.#At=void 0,this.#Et=void 0;else if("string"==typeof e)this.#At=(0,a.toUtf8Bytes)(e),this.#Et="text/plain";else if(e instanceof Uint8Array)this.#At=e,this.#Et="application/octet-stream";else{if("object"!=typeof e)throw new Error("invalid body");this.#At=(0,a.toUtf8Bytes)(JSON.stringify(e)),this.#Et="application/json"}}hasBody(){return null!=this.#At}get method(){return this.#wt?this.#wt:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#wt=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#bt);return this.#kt&&(e.authorization=`Basic ${(0,n.encodeBase64)((0,a.toUtf8Bytes)(this.#kt))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#Et&&(e["content-type"]=this.#Et),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#bt[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#bt={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#kt||null}setCredentials(e,t){(0,i.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#kt=`${e}:${t}`}get allowGzip(){return this.#yt}set allowGzip(e){this.#yt=!!e}get allowInsecureAuthentication(){return!!this.#mt}set allowInsecureAuthentication(e){this.#mt=!!e}get timeout(){return this.#vt}set timeout(e){(0,i.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#vt=e}get preflightFunc(){return this.#Pt||null}set preflightFunc(e){this.#Pt=e}get processFunc(){return this.#xt||null}set processFunc(e){this.#xt=e}get retryFunc(){return this.#Ot||null}set retryFunc(e){this.#Ot=e}get getUrlFunc(){return this.#Tt||u}set getUrlFunc(e){this.#Tt=e}constructor(e){this.#se=String(e),this.#mt=!1,this.#yt=!0,this.#bt={},this.#wt="",this.#vt=3e5,this.#Ct={slotInterval:250,maxAttempts:12},this.#Tt=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#At?(0,s.hexlify)(this.#At):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#Ct.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#Ct.maxAttempts=e.maxAttempts)}async#Bt(e,t,r,n,s){if(e>=this.#Ct.maxAttempts)return s.makeServerError("exceeded maximum retry limit");(0,i.assert)(A()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(r);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in g){const e=await g[a](o.url,b(n.#St));if(e instanceof v){let t=e;if(this.processFunc){b(n.#St);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));const c=await this.getUrlFunc(o,b(n.#St));let u=new v(c.statusCode,c.statusMessage,c.headers,c.body,n);if(301===u.statusCode||302===u.statusCode){try{const r=u.headers.location||"";return o.redirect(r).#Bt(e+1,t,0,n,u)}catch(e){}return u}if(429===u.statusCode&&(null==this.retryFunc||await this.retryFunc(o,u,e))){const r=u.headers["retry-after"];let s=this.#Ct.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(s=parseInt(r)),o.clone().#Bt(e+1,t,s,n,u)}if(this.processFunc){b(n.#St);try{u=await this.processFunc(o,u)}catch(r){null!=r.throttle&&"number"==typeof r.stall||u.makeServerError("error in post-processing function",r).assertOk();let s=this.#Ct.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return r.stall>=0&&(s=r.stall),o.clone().#Bt(e+1,t,s,n,u)}}return u}send(){return(0,i.assert)(null==this.#St,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#St=new y(this),this.#Bt(0,A()+this.timeout,0,this,new v(0,"",{},null,this))}cancel(){(0,i.assert)(null!=this.#St,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=m.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const 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)})`});const n=new w(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#bt=Object.assign({},this.#bt),this.#At&&(n.#At=new Uint8Array(this.#At)),n.#Et=this.#Et,n}clone(){const e=new w(this.url);return e.#wt=this.#wt,this.#At&&(e.#At=this.#At),e.#Et=this.#Et,e.#bt=Object.assign({},this.#bt),e.#kt=this.#kt,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#Pt=this.#Pt,e.#xt=this.#xt,e.#Ot=this.#Ot,e.#Ct=Object.assign({},this.#Ct),e.#Tt=this.#Tt,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 new Error(`cannot intercept ${e}; use registerGetUrl`);if(h)throw new Error("gateways locked");g[e]=t}static registerGetUrl(e){if(h)throw new Error("gateways locked");u=e}static createGetUrlFunc(e){return(0,c.createGetUrl)(e)}static createDataGateway(){return f}static createIpfsGatewayFunc(e){return p(e)}}t.FetchRequest=w;class v{#_t;#It;#bt;#At;#oe;#Nt;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#At?(0,s.hexlify)(this.#At):"null"}>`}get statusCode(){return this.#_t}get statusMessage(){return this.#It}get headers(){return Object.assign({},this.#bt)}get body(){return null==this.#At?null:new Uint8Array(this.#At)}get bodyText(){try{return null==this.#At?"":(0,a.toUtf8String)(this.#At)}
1catch(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](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,n,s){this.#_t=e,this.#It=t,this.#bt=Object.keys(r).reduce(((e,t)=>(e[t.toLowerCase()]=String(r[t]),e)),{}),this.#At=null==n?null:new Uint8Array(n),this.#oe=s||null,this.#Nt={message:""}}makeServerError(e,t){let r;r=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const n=new v(599,r,this.headers,this.body,this.#oe||void 0);return n.#Nt={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);const r=new 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.#At}get request(){return this.#oe}ok(){return""===this.#Nt.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#Nt;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#At&&(n=(0,a.toUtf8String)(this.#At))}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 A(){return(new Date).getTime()}t.FetchResponse=v},76539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const n=r(86239),s=r(21766),i=r(90358),o=r(39290),a=BigInt(-1),c=BigInt(0),u=BigInt(1),l=BigInt(5),d={};let 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){const n=BigInt(t.width);if(t.signed){const t=u<<n-u;(0,s.assert)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>c?(0,i.fromTwos)((0,i.mask)(e,n),n):-(0,i.fromTwos)((0,i.mask)(-e,n),n)}else{const t=u<<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-u}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{const 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){const 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);return{signed:t,width:r,decimals:n,name:(t?"":"u")+"fixed"+String(r)+"x"+String(n)}}class m{format;#Rt;#Mt;#Lt;_value;constructor(e,t,r){(0,s.assertPrivate)(e,d,"FixedNumber"),this.#Mt=t,this.#Rt=r;const n=function(e,t){let r="";e<c&&(r="-",e*=a);let n=e.toString();if(0===t)return r+n;for(;n.length<=t;)n=h+n;const 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.#Lt=f(r.decimals)}get signed(){return this.#Rt.signed}get width(){return this.#Rt.width}get decimals(){return this.#Rt.decimals}get value(){return this.#Mt}#Ft(e){(0,s.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#Dt(e,t){return e=p(e,this.#Rt,t),new m(d,e,this.#Rt)}#Ut(e,t){return this.#Ft(e),this.#Dt(this.#Mt+e.#Mt,t)}addUnsafe(e){return this.#Ut(e)}add(e){return this.#Ut(e,"add")}#jt(e,t){return this.#Ft(e),this.#Dt(this.#Mt-e.#Mt,t)}subUnsafe(e){return this.#jt(e)}sub(e){return this.#jt(e,"sub")}#Ht(e,t){return this.#Ft(e),this.#Dt(this.#Mt*e.#Mt/this.#Lt,t)}mulUnsafe(e){return this.#Ht(e)}mul(e){return this.#Ht(e,"mul")}mulSignal(e){this.#Ft(e);const t=this.#Mt*e.#Mt;return(0,s.assert)(t%this.#Lt===c,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#Dt(t/this.#Lt,"mulSignal")}#$t(e,t){return(0,s.assert)(e.#Mt!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#Ft(e),this.#Dt(this.#Mt*this.#Lt/e.#Mt,t)}divUnsafe(e){return this.#$t(e)}div(e){return this.#$t(e,"div")}divSignal(e){(0,s.assert)(e.#Mt!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#Ft(e);const t=this.#Mt*this.#Lt;return(0,s.assert)(t%e.#Mt===c,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#Dt(t/e.#Mt,"divSignal")}cmp(e){let t=this.value,r=e.value;const 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 this.cmp(e)<0}
1lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#Mt;return this.#Mt<c&&(e-=this.#Lt-u),e=this.#Mt/this.#Lt*this.#Lt,this.#Dt(e,"floor")}ceiling(){let e=this.#Mt;return this.#Mt>c&&(e+=this.#Lt-u),e=this.#Mt/this.#Lt*this.#Lt,this.#Dt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,r=l*f(t-1);let n=this.value+r;const s=f(t);return n=n/s*s,p(n,this.#Rt,"round"),new m(d,n,this.#Rt)}isZero(){return this.#Mt===c}isNegative(){return this.#Mt<c}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return m.fromString(this.toString(),e)}static fromValue(e,t,r){const n=null==t?0:(0,i.getNumber)(t),o=g(r);let a=(0,i.getBigInt)(e,"value");const u=n-o.decimals;if(u>0){const t=f(u);(0,s.assert)(a%t===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),a/=t}else u<0&&(a*=f(-u));return p(a,o,"fromValue"),new m(d,a,o)}static fromString(e,t){const r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,s.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);const n=g(t);let 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);const 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"));const 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},93040:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const n=r(21766);function s(e){return async function(t,r){(0,n.assert)(null==r||!r.cancelled,"request cancelled before sending","CANCELLED");const s=t.url.split(":")[0].toLowerCase();(0,n.assert)("http"===s||"https"===s,`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),(0,n.assert)("https"===s||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout((()=>{i=(0,n.makeError)("request timeout","TIMEOUT"),o.abort()}),t.timeout);r&&r.addListener((()=>{i=(0,n.makeError)("request cancelled","CANCELLED"),o.abort()}));const c=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:o.signal});let u;try{u=await fetch(t.url,c)}catch(e){if(clearTimeout(a),i)throw i;throw e}clearTimeout(a);const l={};u.headers.forEach(((e,t)=>{l[t.toLowerCase()]=e}));const d=await u.arrayBuffer(),h=null==d?null:new Uint8Array(d);return{statusCode:u.status,statusMessage:u.statusText,headers:l,body:h}}}t.createGetUrl=s;const i=s({});t.getUrl=async function(e,t){return i(e,t)}},42120: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(20349);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(66446);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(86239);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(21766);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}}
1),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(52203);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return a.EventPayload}});var c=r(93654);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var u=r(76539);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return u.FixedNumber}});var l=r(90358);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return l.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return l.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return l.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return l.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return l.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return l.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return l.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return l.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return l.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return l.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return l.toQuantity}});var d=r(39290);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(14978);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return h.decodeRlp}});var f=r(49122);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}});var p=r(88680);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(82119);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(4824);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})},90358: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;const n=r(86239),s=r(21766),i=BigInt(0),o=BigInt(1),a=9007199254740991;function c(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>=-a&&e<=a,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):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 u(e,t){const r=c(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){const r=u(e,"value"),n=BigInt(h(t,"width"));if((0,s.assert)(r>>n===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-o){return-((~r&(o<<n)-o)+o)}return r},t.toTwos=function(e,t){let r=c(e,"value");const n=BigInt(h(t,"width")),a=o<<n-o;if(r<i){r=-r,(0,s.assert)(r<=a,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~r&(o<<n)-o)+o}return(0,s.assert)(r<a,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r},t.mask=function(e,t){const r=u(e,"value"),n=BigInt(h(t,"bits"));return r&(o<<n)-o},t.getBigInt=c,t.getUint=u;const l="0123456789abcdef";function d(e){if(e instanceof Uint8Array){let t="0x0";
1for(const r of e)t+=l[r>>4],t+=l[15&r];return BigInt(t)}return c(e)}function h(e,t){switch(typeof e){case"bigint":return(0,s.assertArgument)(e>=-a&&e<=a,"overflow",t||"value",e),Number(e);case"number":return(0,s.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,s.assertArgument)(e>=-a&&e<=a,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return h(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 f(e){const t=u(e,"value");if(t===i)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++){const t=2*e;n[e]=parseInt(r.substring(t,t+2),16)}return n}t.toBigInt=d,t.getNumber=h,t.toNumber=function(e){return h(d(e))},t.toBeHex=function(e,t){let r=u(e,"value").toString(16);if(null==t)r.length%2&&(r="0"+r);else{const n=h(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=f,t.toQuantity=function(e){let t=(0,n.hexlify)((0,n.isBytesLike)(e)?e:f(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},39290:function(e,t){"use strict";function r(e,t,r){const 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}const s=new Error(`invalid value for type ${t}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=e,s}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,r,n)=>(e[t[n]]=r,e)),{})},t.defineProperties=function(e,t,n){for(let s in t){let i=t[s];const o=n?n[s]:null;o&&r(i,o,s),Object.defineProperty(e,s,{enumerable:!0,value:i,writable:!1})}}},14978:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const n=r(86239),s=r(21766),i=r(86239);function o(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function a(e,t,r){let n=0;for(let s=0;s<r;s++)n=256*n+e[t+s];return n}function c(e,t,r,n){const i=[];for(;r<t+1+n;){const o=u(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 u(e,t){(0,s.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const 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){const n=e[t]-247;r(t+1+n);const s=a(e,t+1,n);return r(t+1+n+s),c(e,t,t+1+n,n+s)}if(e[t]>=192){const n=e[t]-192;return r(t+1+n),c(e,t,t+1,n)}if(e[t]>=184){const s=e[t]-183;r(t+1+s);const i=a(e,t+1,s);r(t+1+s+i);return{consumed:1+s+i,result:(0,n.hexlify)(e.slice(t+1+s,t+1+s+i))}}if(e[t]>=128){const s=e[t]-128;r(t+1+s);return{consumed:1+s,result:(0,n.hexlify)(e.slice(t+1,t+1+s))}}return{consumed:1,result:o(e[t])}}t.decodeRlp=function(e){const t=(0,i.getBytes)(e,"data"),r=u(t,0);return(0,s.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},49122:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const n=r(86239);function s(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function i(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(i(e))})),t.length<=55)return t.unshift(192+t.length),t;const r=s(t.length);return r.unshift(247+r.length),r.concat(t)}const t=Array.prototype.slice.call((0,n.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=s(t.length);return r.unshift(183+r.length),r.concat(t)}const o="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const r of i(e))t+=o[r>>4],t+=o[15&r];return t}},88680:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const n=r(21766),s=r(76539),i=r(90358),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(e,t){let r=18;if("string"==typeof t){const 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 c(e,t){(0,n.assertArgument)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){const 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=c,t.formatEther=function(e){return a(e,18)},t.parseEther=function(e){return c(e,18)}},82119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const n=r(86239),s=r(21766);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);const s=(0,n.getBytes)(e,"bytes"),i=[];let o=0;for(;o<s.length;){const e=s[o++];if(e>>7==0){i.push(e);continue}let t=null,n=null;if(192==(224&e))t=1,n=127;else if(224==(240&e))t=2,n=2047;else{if(240!=(248&e)){o+=r(128==(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,s,i);continue}t=3,n=65535}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(128!=(192&e)){o+=r("MISSING_CONTINUE",o,s,i),a=null;break}a=a<<6|63&e,o++}null!==a&&(a>1114111?o+=r("OUT_OF_RANGE",o-1-t,s,i,a):a>=55296&&a<=57343?o+=r("UTF16_SURROGATE",o-1-t,s,i,a):a<=n?o+=r("OVERLONG",o-1-t,s,i,a):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++){const 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(55296==(64512&n)){t++;const i=e.charCodeAt(t);(0,s.assertArgument)(t<e.length&&56320==(64512&i),"invalid surrogate pair","str",e);const 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))}}),t.toUtf8Bytes=a,t.toUtf8String=function(e,t){return o(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return o(a(e,t))}},4824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const n=r(86239);t.uuidV4=function(e){const t=(0,n.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const 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("-")}},85662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const n=r(45475),s=r(98336),i=r(4878),o=r(2290),a=r(42120);class c extends i.AbstractSigner{address;#Gt;constructor(e,t){super(t),(0,a.assertArgument)(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#Gt=e;const r=(0,o.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:r})}get signingKey(){return this.#Gt}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new c(this.#Gt,e)}async signTransaction(e){e=(0,i.copyRequest)(e);const{to:t,from:r}=await(0,a.resolveProperties)({to:e.to?(0,n.resolveAddress)(e.to,this):void 0,from:e.from?(0,n.resolveAddress)(e.from,this):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);const 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}authorizeSync(e){(0,a.assertArgument)("string"==typeof e.address,"invalid address for authorizeSync","auth.address",e);const t=this.signingKey.sign((0,s.hashAuthorization)(e));return Object.assign({},{address:(0,n.getAddress)(e.address),nonce:(0,a.getBigInt)(e.nonce||0),chainId:(0,a.getBigInt)(e.chainId||0)},{signature:t})}async authorize(e){return e=Object.assign({},e,{address:await(0,n.resolveAddress)(e.address,this)}),this.authorizeSync(await this.populateAuthorization(e))}async signTypedData(e,t,r){const 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}});const 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=c},90483:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const n=r(96965),s=r(4878),i=r(2290),o=r(42120),a=r(10847),c=r(85662),u=r(40075),l=r(10630);t.defaultPath="m/44'/60'/0'/0/0";const d=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),h=2147483648,f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function p(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 g(e){const 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)}const m={};function y(e,t,r,s){const i=new Uint8Array(37);e&h?((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;const a=(0,o.getBytes)((0,n.computeHmac)("sha512",t,i));return{IL:a.slice(0,32),IR:a.slice(32)}}function b(e,t){const 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++){const t=r[e];if(t.match(/^[0-9]+'$/)){const r=parseInt(t.substring(0,t.length-1));(0,o.assertArgument)(r<h,"invalid path index",`path[${e}]`,t),n=n.deriveChild(h+r)}else if(t.match(/^[0-9]+$/)){const r=parseInt(t);(0,o.assertArgument)(r<h,"invalid path index",`path[${e}]`,t),n=n.deriveChild(r)}else(0,o.assertArgument)(!1,"invalid path component",`path[${e}]`,t)}return n}class w extends c.BaseWallet{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,r,s,i,a,c,u,l){super(t,l),(0,o.assertPrivate)(e,m,"HDNodeWallet"),(0,o.defineProperties)(this,{publicKey:t.compressedPublicKey});const 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:c}),(0,o.defineProperties)(this,{mnemonic:u})}connect(e){return new w(m,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}#Kt(){const 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,l.encryptKeystoreJson)(this.#Kt(),e,{progressCallback:t})}encryptSync(e){return(0,l.encryptKeystoreJsonSync)(this.#Kt(),e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g((0,o.concat)(["0x0488ADE4",p(this.depth,1),this.parentFingerprint,p(this.index,4),this.chainCode,(0,o.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new v(m,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let r=this.path;r&&(r+="/"+(2147483647&t),t&h&&(r+="'"));const{IR:s,IL:i}=y(t,this.chainCode,this.publicKey,this.privateKey),a=new n.SigningKey((0,o.toBeHex)(((0,o.toBigInt)(i)+BigInt(this.privateKey))%f,32));return new w(m,a,this.fingerprint,(0,o.hexlify)(s),r,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return b(this,e)}static#zt(e,t){(0,o.assertArgument)((0,o.isBytesLike)(e),"invalid seed","seed","[REDACTED]");const r=(0,o.getBytes)(e,"seed");(0,o.assertArgument)(r.length>=16&&r.length<=64,"invalid seed","seed","[REDACTED]");const s=(0,o.getBytes)((0,n.computeHmac)("sha512",d,r)),i=new n.SigningKey((0,o.hexlify)(s.slice(0,32)));return new w(m,i,"0x00000000",(0,o.hexlify)(s.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){const t=(0,o.toBeArray)((0,o.decodeBase58)(e));(0,o.assertArgument)(82===t.length||g(t.slice(0,78))===e,"invali
1d extended key","extendedKey","[ REDACTED ]");const r=t[4],s=(0,o.hexlify)(t.slice(5,9)),a=parseInt((0,o.hexlify)(t.slice(9,13)).substring(2),16),c=(0,o.hexlify)(t.slice(13,45)),u=t.slice(45,78);switch((0,o.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,o.hexlify)(u);return new v(m,(0,i.computeAddress)(e),e,s,c,null,a,r,null)}case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new w(m,new n.SigningKey(u.slice(1)),s,c,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());const i=u.Mnemonic.fromEntropy((0,n.randomBytes)(16),e,s);return w.#zt(i.computeSeed(),i).derivePath(r)}static fromMnemonic(e,r){return r||(r=t.defaultPath),w.#zt(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());const i=u.Mnemonic.fromPhrase(e,r,s);return w.#zt(i.computeSeed(),i).derivePath(n)}static fromSeed(e){return w.#zt(e,null)}}t.HDNodeWallet=w;class v extends s.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,r,s,i,a,c,u,l){super(t,l),(0,o.assertPrivate)(e,m,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:r});const 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:c,depth:u})}connect(e){return new v(m,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"}),g((0,o.concat)(["0x0488B21E",p(this.depth,1),this.parentFingerprint,p(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let r=this.path;r&&(r+="/"+(2147483647&t),t&h&&(r+="'"));const{IR:s,IL:a}=y(t,this.chainCode,this.publicKey,null),c=n.SigningKey.addPoints(a,this.publicKey,!0),u=(0,i.computeAddress)(c);return new v(m,u,c,this.fingerprint,(0,o.hexlify)(s),r,t,this.depth+1,this.provider)}derivePath(e){return b(this,e)}}t.HDNodeVoidWallet=v,t.getAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<h,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<h,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},91602: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(85662);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return n.BaseWallet}});var s=r(90483);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(78668);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(10630);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}}
1),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(40075);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return a.Mnemonic}});var c=r(6389);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return c.Wallet}})},78668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const n=r(93260),s=r(45475),i=r(96965),o=r(98336),a=r(42120),c=r(57668);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1},t.decryptCrowdsaleJson=function(e,t){const r=JSON.parse(e),u=(0,c.getPassword)(t),l=(0,s.getAddress)((0,c.spelunk)(r,"ethaddr:string!")),d=(0,c.looseArrayify)((0,c.spelunk)(r,"encseed:string!"));(0,a.assertArgument)(d&&d.length%16==0,"invalid encseed","json",e);const h=(0,a.getBytes)((0,i.pbkdf2)(u,u,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)));let y="";for(let e=0;e<m.length;e++)y+=String.fromCharCode(m[e]);return{address:l,privateKey:(0,o.id)(y)}}},10630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const n=r(93260),s=r(45475),i=r(96965),o=r(2290),a=r(42120),c=r(57668),u=r(79406),l="m/44'/60'/0'/0/0";function d(e,t){const r=(0,a.getBytes)(t),u=(0,c.spelunk)(e,"crypto.ciphertext:data!"),d=(0,a.hexlify)((0,i.keccak256)((0,a.concat)([r.slice(16,32),u]))).substring(2);(0,a.assertArgument)(d===(0,c.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const h=function(e,t,r){if("aes-128-ctr"===(0,c.spelunk)(e,"crypto.cipher:string")){const s=(0,c.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),u),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)}const p={address:f,privateKey:h};if("0.1"===(0,c.spelunk)(e,"x-ethers.version:string")){const t=r.slice(32,64),s=(0,c.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),i=(0,c.spelunk)(e,"x-ethers.mnemonicCounter:data!"),o=new n.CTR(t,i);p.mnemonic={path:(0,c.spelunk)(e,"x-ethers.path:string")||l,locale:(0,c.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(o.decrypt(s)))}}return p}function h(e){const t=(0,c.spelunk)(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){const r=(0,c.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,c.spelunk)(e,"crypto.kdfparams.n:int!"),s=(0,c.spelunk)(e,"crypto.kdfparams.r:int!"),i=(0,c.spelunk)(e,"crypto.kdfparams.p:int!");(0,a.assertArgument)(n>0&&0==(n&n-1),"invalid kdf.N","kdf.N",n),(0,a.assertArgument)(s>0&&i>0,"invalid kdf","kdf",t);const o=(0,c.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()){const t=(0,c.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,c.spelunk)(e,"crypto.kdfparams.prf:string!"),n=r.split("-").pop();(0,a.assertArgument)("sha256"===n||"sha512"===n,"invalid kdf.pdf","kdf.pdf",r);const s=(0,c.spelunk)(e,"crypto.kdfparams.c:int!"),i=(0,c.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pbkdf2",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)}))}function p(e){const t=null!=e.salt?(0,a.getBytes)(e.salt,"options.salt"):(0,i.randomBytes)(32);let r=1<<17,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 g(e,t,r,s){const o=(0,a.getBytes)(r.privateKey,"privateKey"),d=null!=s.iv?(0,a.getBytes)(s.iv,"o
1ptions.iv"):(0,i.randomBytes)(16);(0,a.assertArgument)(16===d.length,"invalid options.iv length","options.iv",s.iv);const 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);const 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){const t=null!=s.client?s.client:`ethers/${u.version}`,o=r.mnemonic.path||l,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,w="UTC--"+(y.getUTCFullYear()+"-"+(0,c.zpad)(y.getUTCMonth()+1,2)+"-"+(0,c.zpad)(y.getUTCDate(),2)+"T"+(0,c.zpad)(y.getUTCHours(),2)+"-"+(0,c.zpad)(y.getUTCMinutes(),2)+"-"+(0,c.zpad)(y.getUTCSeconds(),2)+".0Z")+"--"+b.address;b["x-ethers"]={client:t,gethFilename:w,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)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(e){}return!1},t.decryptKeystoreJsonSync=function(e,t){const r=JSON.parse(e),n=(0,c.getPassword)(t),s=h(r);if("pbkdf2"===s.name){const{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});const{salt:o,N:u,r:l,p:f,dkLen:p}=s;return d(r,(0,i.scryptSync)(n,o,u,l,f,p))},t.decryptKeystoreJson=async function(e,t,r){const n=JSON.parse(e),s=(0,c.getPassword)(t),o=h(n);if("pbkdf2"===o.name){r&&(r(0),await f(0));const{salt:e,count:t,dkLen:a,algorithm:c}=o,u=(0,i.pbkdf2)(s,e,t,a,c);return r&&(r(1),await f(0)),d(n,u)}(0,a.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:u,N:l,r:p,p:g,dkLen:m}=o;return d(n,await(0,i.scrypt)(s,u,l,p,g,m,r))},t.encryptKeystoreJsonSync=function(e,t,r){null==r&&(r={});const n=(0,c.getPassword)(t),s=p(r),o=(0,i.scryptSync)(n,s.salt,s.N,s.r,s.p,64);return g((0,a.getBytes)(o),s,e,r)},t.encryptKeystoreJson=async function(e,t,r){null==r&&(r={});const n=(0,c.getPassword)(t),s=p(r),o=await(0,i.scrypt)(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return g((0,a.getBytes)(o),s,e,r)}},40075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const n=r(96965),s=r(42120),i=r(10847);function o(e){return(1<<e)-1<<8-e&255}function a(e,t){(0,s.assertNormalize)("NFKD"),null==t&&(t=i.LangEn.wordlist());const r=t.split(e);(0,s.assertArgument)(r.length%3==0&&r.length>
1=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const a=new Uint8Array(Math.ceil(11*r.length/8));let c=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[c>>3]|=1<<7-c%8),c++}const u=32*r.length/3,l=o(r.length/3),d=(0,s.getBytes)((0,n.sha256)(a.slice(0,u/8)))[0]&l;return(0,s.assertArgument)(d===(a[a.length-1]&l),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,s.hexlify)(a.slice(0,u/8))}function c(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());const r=[0];let 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);const c=e.length/4,u=parseInt((0,n.sha256)(e).substring(2,4),16)&o(c);return r[r.length-1]<<=c,r[r.length-1]|=u>>8-c,t.join(r.map((e=>t.getWord(e))))}const u={};class l{phrase;password;wordlist;entropy;constructor(e,t,r,n,o){null==n&&(n=""),null==o&&(o=i.LangEn.wordlist()),(0,s.assertPrivate)(e,u,"Mnemonic"),(0,s.defineProperties)(this,{phrase:r,password:n,wordlist:o,entropy:t})}computeSeed(){const 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){const n=a(e,r);return e=c((0,s.getBytes)(n),r),new l(u,n,e,t,r)}static fromEntropy(e,t,r){const n=(0,s.getBytes)(e,"entropy"),i=c(n,r);return new l(u,(0,s.hexlify)(n),i,t,r)}static entropyToPhrase(e,t){return c((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=l},57668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const n=r(42120);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){const r=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,n.assertArgument)(null!=r,"invalid path","path",t);const i=r[1],o=r[3],a="!"===r[4];let c=e;for(const e of i.toLowerCase().split(".")){if(Array.isArray(c)){if(!e.match(/^[0-9]+$/))break;c=c[parseInt(e)]}else if("object"==typeof c){let t=null;for(const r in c)if(r.toLowerCase()===e){t=c[r];break}c=t}else c=null;if(null==c)break}if((0,n.assertArgument)(!a||null!=c,"missing required value","path",i),o&&null!=c){if("int"===o){if("string"==typeof c&&c.match(/^-?[0-9]+$/))return parseInt(c);if(Number.isSafeInteger(c))return c}if("number"===o&&"string"==typeof c&&c.match(/^-?[0-9.]*$/))return parseFloat(c);if("data"===o&&"string"==typeof c)return s(c);if("array"===o&&Array.isArray(c))return c;if(o===typeof c)return c;(0,n.assertArgument)(!1,`wrong type found for ${o} `,"path",i)}return c}},6389:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const n=r(96965),s=r(42120),i=r(85662),o=r(90483),a=r(78668),c=r(10630),u=r(40075);function l(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){const r={address:this.address,privateKey:this.privateKey};return await(0,c.encryptKeystoreJson)(r,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,c.encryptKeystoreJsonSync)(t,e)}static#Vt(e){if((0,s.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=u.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")}const 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,c.isKeystoreJson)(e)?n=await(0,c.decryptKeystoreJson)(e,t,r):(0,a.isCrowdsaleJson)(e)&&(r&&(r(0),await l(0)),n=(0,a.decryptCrowdsaleJson)(e,t),r&&(r(1),await l(0))),d.#Vt(n)}static fromEncryptedJsonSync(e,t){let r=null;return(0,c.isKeystoreJson)(e)?r=(0,c.decryptKeystoreJsonSync)(e,t):(0,a.isCrowdsaleJson)(e)?r=(0,a.decryptCrowdsaleJson)(e,t):(0,s.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),d.#Vt(r)}static createRandom(e){const t=o.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const r=o.HDNodeWallet.fromPhrase(e);return t?r.connect(t):r}}t.Wallet=d},75033:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0;t.decodeBits=function(e,t){const r=(1<<e)-1,n=[];let 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;){const t=s>>i-e;s&=(1<<i-e)-1,i-=e,0===t?o+=r:(n.push(t+o),o=0)}return n}},82629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const n=r(42120),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));const 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 new 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))}},84603:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const n=r(42120),s=r(75033),i=r(82629);t.decodeOwlA=function(e,t){let r=(0,i.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const i=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,n.assertArgument)(null!==i,"internal error parsing accents","accents",t);let o=0;const a=(0,s.decodeBits)(parseInt(i[3]),i[4]),c=parseInt(i[2]),u=new RegExp(`([${i[1]}])`,"g");r=r.replace(u,((e,t)=>(0===--a[o]&&(t=String.fromCharCode(t.charCodeAt(0),c),o++),t)))})),r.split(",")}},60659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}
1),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var n=r(51208);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var s=r(10847);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return s.LangEn}});var i=r(21978);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return i.WordlistOwl}});var o=r(99766);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var a=r(99669);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return a.wordlists}})},10847:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const n=r(21978);let 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[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>
1Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp [email protected]#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!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},21978:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const n=r(98336),s=r(42120),i=r(82629),o=r(51208);class a extends o.Wordlist{#r;#qt;constructor(e,t,r){super(e),this.#r=t,this.#qt=r,this.#Wt=null}get _data(){return this.#r}_decodeWords(){return(0,i.decodeOwl)(this.#r)}#Wt;#Qt(){if(null==this.#Wt){const e=this._decodeWords();if((0,n.id)(e.join("\n")+"\n")!==this.#qt)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#Wt=e}return this.#Wt}getWord(e){const t=this.#Qt();return(0,s.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#Qt().indexOf(e)}}t.WordlistOwl=a},99766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const n=r(21978),s=r(84603);class i extends n.WordlistOwl{#Jt;constructor(e,t,r,n){super(e,t,n),this.#Jt=r}get _accent(){return this.#Jt}_decodeWords(){return(0,s.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=i},51208:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const n=r(42120);t.Wordlist=class{locale;constructor(e){(0,n.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},99669:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const n=r(10847);t.wordlists={en:n.LangEn.wordlist()}},32303:function(e,t){"use strict";const r=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function n(e){return function(e){let t=0;return()=>e[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 c=0,u=0;function l(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}const d=2**31,h=d>>>1,f=d-1;let p=0;for(let e=0;e<31;e++)p=p<<1|l();let g=[],m=0,y=d;for(;;){let e=Math.floor(((p-m+1)*s-1)/y),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<i[n]?r=n:t=n}if(0==t)break;g.push(t);let o=m+Math.floor(y*i[t]/s),a=m+Math.floor(y*i[t+1]/s)-1;for(;0==((o^a)&h);)p=p<<1&f|l(),o=o<<1&f,a=a<<1&f|1;for(;o&~a&536870912;)p=p&h|p<<1&f>>>1|l(),o=o<<1^h,a=(a^h)<<1|h|1;m=o,y=1+a-o}let b=n-4;return g.map((t=>{switch(t-b){case 3:return b+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return b+256+(e[a++]<<8|e[a++]);case 1:return b+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>>
vendor: 1,805 bytes, line 1
13);for(let s=0,i=0,o=0,a=0;s<r;s++)a=a<<6|t[e.charCodeAt(s)],o+=6,o>=8&&(n[i++]=a>>(o-=8));return n}(e)))}function s(e){return 1&e?~e>>1:e>>1}function i(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=s(t());return r}function o(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 a(e){return u((()=>{let t=o(e);if(t.length)return t}))}function c(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(d(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(r,e))}return t.flat()}function u(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function l(e,t,r){let n=Array(e).fill().map((()=>[]));for(let s=0;s<t;s++)i(e,r).forEach(((e,t)=>n[t].push(e)));return n}function d(e,t){let r=1+t(),n=t(),s=u(t);return l(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))]}))}))}function h(e,t){return l(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function f(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function p(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 g(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 m(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}const y=44032,b=4352,w=4449,v=4519,A=28,E=588;function k(e){return e>>24&255}function P(e){return 16777215&e}let x,O,S,C;function T(e){return e>=y&&e<55204}function B(e,t){if(e>=b&&e<4371&&t>=w&&t<4470)return y+(e-b)*E+(t-w)*A;if(T(e)&&t>v&&t<4547&&(e-y)%A==0)return e+(t-v);{let r=C.get(e);return r&&(r=r.get(t),r)?r:-1}}function _(e){x||function(){let e=n
vendor: 7,456 bytes, line 1
1("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");
vendor: 2,696 bytes, line 1
1x=new Map(a(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),O=new Set(o(e)),S=new Map,C=new Map;for(let[t,r]of c(e)){if(!O.has(t)&&2==r.length){let[e,n]=r,s=C.get(e);s||(s=new Map,C.set(e,s)),s.set(n,t)}S.set(t,r.reverse())}}();let t=[],r=[],s=!1;function i(e){let r=x.get(e);r&&(s=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(T(n)){let e=n-y,t=e%E/A|0,r=e%A;i(b+(e/E|0)),i(w+t),r>0&&i(v+r)}else{let e=S.get(n);e?r.push(...e):i(n)}if(!r.length)break;n=r.pop()}if(s&&t.length>1){let e=k(t[0]);for(let r=1;r<t.length;r++){let n=k(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)break;if(e=k(t[--s]),e<=n)break}e=k(t[r])}}return t}function I(e){return _(e).map(P)}function N(e){return function(e){let t=[],r=[],n=-1,s=0;for(let i of e){let e=k(i),o=P(i);if(-1==n)0==e?n=o:t.push(o);else if(s>0&&s>=e)0==e?(t.push(n,...r),r.length=0,n=o):r.push(o),s=e;else{let i=B(n,o);i>=0?n=i:0==s&&0==e?(t.push(n),n=o):(r.push(o),s=e)}}return n>=0&&t.push(n,...r),t}(_(e))}const R=".",M=e=>Array.from(e);function L(e,t){return e.P.has(t)||e.Q.has(t)}class F extends Array{get is_emoji(){return!0}}let D,U,j,H,$,G,K,z,V,q,W,Q;function J(){if(D)return;let e=n("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhT
1yiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9ey
1MgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduP
1jbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESV
1FFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI");const t=()=>o(e),r=()=>new Set(t()),s=(e,t)=>t.forEach((t=>e.add(t)));D=new Map(c(e)),U=r(),j=t(),H=new Set(t().map((e=>j[e]))),j=new Set(j),$=r(),G=r();let i=a(e),l=e();const d=()=>{let e=new Set;
vendor: 5,364 bytes, line 1
1return t().forEach((t=>s(e,i[t]))),s(e,t()),e};K=u((t=>{let r=u(e).map((e=>e+96));if(r.length){let n=t>=l;return r[0]-=32,r=g(r),n&&(r=`Restricted[${r}]`),{N:r,P:d(),Q:d(),M:!e(),R:n}}})),z=r(),V=new Map;let h=t().concat(M(z)).sort(((e,t)=>e-t));h.forEach(((t,r)=>{let n=e(),s=h[r]=n?h[r-n]:{V:[],M:new Map};s.V.push(t),z.has(t)||V.set(t,s)}));for(let{V:e,M:t}of new Set(V.values())){let r=[];for(let t of e){let e=K.filter((e=>L(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),s(n.G,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)}}q=new Set;let f=new Set;const p=e=>q.has(e)?f.add(e):q.add(e);for(let e of K){for(let t of e.P)p(t);for(let t of e.Q)p(t)}for(let e of q)V.has(e)||f.has(e)||V.set(e,1);s(q,I(q)),W=function(e){let t=[],r=o(e);return function e({S:r,B:n},s,i){if(!(4&r&&i===s[s.length-1])){2&r&&(i=s[s.length-1]),1&r&&t.push(s);for(let t of n)for(let r of t.Q)e(t,[...s,r],i)}}(function t(n){return{S:e(),B:u((()=>{let n=o(e).map((e=>r[e]));if(n.length)return t(n)})),Q:n}}([]),[]),t}(e).map((e=>F.from(e))).sort(m),Q=new Map;for(let e of W){let t=[Q];for(let r of e){let e=t.map((e=>{let t=e.get(r);return t||(t=new Map,e.set(r,t)),t}));65039===r?t.push(...e):t=e}for(let r of t)r.V=e}}function Y(e){return(te(e)?"":`${Z(X([e]))} `)+f(e)}function Z(e){return`"${e}"‎`}function X(e,t=1/0,r=f){let n=[];ee(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];te(i)&&(n.push(g(e.slice(s,t))),n.push(r(i)),s=t+1)}return n.push(g(e.slice(s,i))),n.join("")}function ee(e){return J(),j.has(e)}function te(e){return J(),$.has(e)}function re(e,t,r){let n=0;for(;;){let s=e.indexOf(t,n);if(s<0)break;e[s]=r,n=s+1}}function ne(e,t,n){if(!e)return[];J();let s=0;return e.split(R).map((e=>{let i=p(e),o={input:i,offset:s};s+=i.length+1;try{let e,s=o.tokens=ce(i,t,n),a=s.length;if(!a)throw new Error("empty label");let c=o.output=s.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(c),!(o.emoji=a>1||s[0].is_emoji)&&c.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${g(e.slice(0,4))}"`)}(c),e="ASCII";else{let t=s.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(j.has(c[0]))throw ae("leading combining mark");for(let e=1;e<a;e++){let t=s[e];if(!t.is_emoji&&j.has(t[0]))throw ae(`emoji + combining mark: "${g(s[e-1])} + ${X([t[0]])}"`)}!function(e){let t=e[0],n=r.get(t);if(n)throw ae(`leading ${n}`);let s=e.length,i=-1;for(let o=1;o<s;o++){t=e[o];let s=r.get(t);if(s){if(i==o)throw ae(`${n} + ${s}`);i=o+1,n=s}}if(i==s)throw ae(`trailing ${n}`)}(c);let n=M(new Set(t)),[i]=function(e){let t=K;for(let r of e){let e=t.filter((e=>L(e,r)));if(!e.length)throw K.some((e=>L(e,r)))?oe(t[0],r):ie(r);if(t=e,1==e.length)break}return t}(n);!function(e,t){for(let r of t)if(!L(e,r))throw oe(e,r);if(e.M){let e=I(t);for(let t=1,r=e.length;t<r;t++)if(H.has(e[t])){let n,s=t+1;for(;s<r&&H.has(n=e[s]);s++)for(let r=t;r<s;r++)if(e[r]==n)throw new Error(`duplicate non-spacing marks: ${Y(n)}`);if(s-t>4)throw new Error(`excessive non-spacing marks: ${Z(X(e.slice(t-1,s)))} (${s-t}/4)`);t=s}}}(i,t),function(e,t){let r,n=[];for(let e of t){let t=V.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),!r.length)return}else n.push(e)}if(r)for(let t of r)if(n.every((e=>L(t,e))))throw new Error(`whole-script confusable: ${e.N}/${t.N}`)}(i,n),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o}))}function se(e){return e.map((({input:t,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==e.length?n:`Invalid label ${Z(X(t,63))}: ${n}`)}return g(n)})).join(R)}function ie(e){return new Error(`disallowed character: ${Y(e)}`)}function oe(e,t){let r=Y(t),n=K.find((e=>e.P.has(t)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${e.N} + ${r}`)}function ae(e){return new Error(`illegal placement: ${e}`)}function ce(e,t,r){let n=[],s=[];for(e=e.slice().reverse();e.length;){let i=le(e);if(i)s.length&&(n.push(t(s)),s=[]),n.push(r(i));else{let t=e.pop();if(q.has(t))s.push(t);else{let e=D.get(t);if(e)s.push(...e);else if(!U.has(t))throw ie(t)}}}return s.length&&n.push(t(s)),n}function ue(e){return e.filter((e=>65039!=e))}function le(e,t){let r,n=Q,s=e.length;for(;s&&(n=n.get(e[--s]),n);){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}const de="valid",he="mapped",fe="ignored";function pe(e){return e==de||e==he}function ge(e){return e.some((e=>G.has(e)))}function me(e){for(let t=0;t<e.length;t++)if(e[t].type==de){let r=t+1;for(;r<e.length&&e[r].type==de;)r++;e.splice(t,r-t,{type:de,cps:e.slice(t,r).flatMap((e=>e.cps))})}return e}t.ens_beautify=function(e){let t=ne(e,N,(e=>e));for(let{type:e,output:r,error:n}of t){if(n)break;"Greek"!==e&&re(r,958,926)}return se(t)},t.ens_emoji=function(){return J(),W.map((e=>e.slice()))},t.ens_normalize=function(e){return se(ne(e,N,ue))},t.ens_normalize_fragment=function(e,t){J();let r=t?I:N;return e.split(R).map((e=>g(ce(p(e),r,ue).flat()))).join(R)},t.ens_split=function(e,t){return ne(e,N,t?e=>e.slice():ue)},t.ens_tokenize=function e(t,{nf:r=!0}={}){J();let n=p(t).reverse(),s=[],i=[];for(;n.length;){let e=le(n,s);
1if(e)i.push({type:"emoji",emoji:e.slice(),input:s,cps:ue(e)}),s=[];else{let e=n.pop();if(46==e)i.push({type:"stop",cp:e});else if(q.has(e))i.push({type:de,cps:[e]});else if(U.has(e))i.push({type:fe,cp:e});else{let t=D.get(e);t?i.push({type:he,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(pe(n.type))if(ge(n.cps)){let n=t+1;for(let e=n;e<i.length;e++){let{type:t,cps:r}=i[e];if(pe(t)){if(!ge(r))break;n=e+1}else if(t!==fe)break}r<0&&(r=t);let s=i.slice(r,n),o=s.flatMap((e=>pe(e.type)?e.cps:[])),a=N(o);m(a,o)?(i.splice(r,n-r,{type:"nfc",input:o,cps:a,tokens0:me(s),tokens:e(g(a),{nf:!1})}),t=r):t=n-1,r=-1}else r=t;else n.type!==fe&&(r=-1)}return me(i)},t.is_combining_mark=ee,t.nfc=N,t.nfd=I,t.safe_str_from_cps=X,t.should_escape=te},59059:function(e,t,r){"use strict";r.d(t,{Z:function(){return re}});r(33715),r(54146),r(34155),r(48764).Buffer;function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,r){return s=f()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var s=new(Function.bind.apply(e,n));return r&&l(s,r.prototype),s},s.apply(null,arguments)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function d(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function h(e){var t="function"==typeof Map?new Map:void 0;return h=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},h(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var p,g=Object.defineProperty,m=function(e,t,r){return function(e,t,r){t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!=(void 0===t?"undefined":d(t))?t+"":t,r),r},y="INTERNAL_ERROR",b="SERVER_ERROR";a(p={},"PARSE_ERROR",{code:-32700,message:"Parse error"}),a(p,"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),a(p,"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),a(p,"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),a(p,y,{code:-32603,message:"Internal error"}),a(p,b,{code:-32e3,message:"Server error"});"undefined"==typeof window||d(window);h(Error);var w=function(){try{var e,t;return!0===(null===(t=window)||void 0===t||null===(e=t.ethereum)||void 0===e?void 0:e.isBinance)}catch(e){return!1}};r(34155),r(48764).Buffer;function v(e,t,r){return t=O(t),function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,B()?Reflect.construct(t,r||[],O(e).constructor):t.apply(e,r))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t,r){return E=B()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var s=new(Function.bind.apply(e,n));return r&&S(s,r.prototype),s},E.apply(null,arguments)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(e,t,r){return t&&k(e.prototype,t),r&&k(e,r),e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}
1function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return E(e,arguments,O(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)},T(e)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}var _,I=Object.defineProperty,N=function(e,t,r){return function(e,t,r){t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!=(void 0===t?"undefined":C(t))?t+"":t,r),r},R="INTERNAL_ERROR",M="SERVER_ERROR";x(_={},"PARSE_ERROR",{code:-32700,message:"Parse error"}),x(_,"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),x(_,"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),x(_,"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),x(_,R,{code:-32603,message:"Internal error"}),x(_,M,{code:-32e3,message:"Server error"});function L(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==(void 0===e?"undefined":C(e))?Number(e):e}"undefined"==typeof window||C(window);T(Error);var F=function(){try{var e,t;return!0===(null===(t=window)||void 0===t||null===(e=t.ethereum)||void 0===e?void 0:e.isBinance)}catch(e){return!1}},D=r(45775),U=r(39028),j=r(92106),H=r(27319),$=r(87675),G=r(66573);function K(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}function z(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function o(e){K(i,n,s,o,a,"next",e)}function a(e){K(i,n,s,o,a,"throw",e)}o(void 0)}))}}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){V(e,t,r[t])}))}return e}function W(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function Q(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function J(e,t){var r,n,s,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(s=2&a[0]?n.return:a[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;switch(n=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(s=i.trys,(s=s.length>0&&s[s.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(6===a[0]&&i.label<s[1]){i.label=s[1],s=a;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(a);break}s[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Y(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,H.K)((function(n){return{id:"wallet.binance.com",name:"Binance Wallet",type:Y.type,setup:function(){return z((function(){var e;return J(this,(function(t){switch(t.label){case 0:return[4,this.getProvider()];case 1:return(e=t.sent())&&e.on("connect",this.onConnect.bind(this)),[2]}}))})).call(this)},connect:function(){return z((function(){var e,r,s,i,o,a=arguments;return J(this,(function(c){switch(c.label){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},r=null!=(r=e.chainId)?r:56,[4,this.getProvider({chainId:r})];case 1:return(s=c.sent()).on("accountsChanged",this.onAccountsChanged.bind(this)),s.on("chainChanged",this.onChainChanged.bind(this)),s.on("disconnect",this.onDisconnect.bind(this)),setTimeout((function(){return n.emitter.emit("message",{type:"connecting"})}),0),s.setLng(t.lng||"en"),[4,s.enable()];case 2:return i=c.sent().map((function(e){return(0,D.K)(e)})),[4,this.getChainId()];case 3:return o=c.sent(),[2,{accounts:i,chainId:o}]}}))})).apply(this,arguments)},disconnect:function(){return z((function(){var e;return J(this,(function(t){switch(t.label){case 0:return[4,this.getProvider()];case 1:return(e=t.sent()).disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),[2]}}))})).call(this)},getAccounts:function(){return z((function(){return J(this,(function(e){switch(e.label){case 0:return[4,this.getProvider()];case 1:return[4,e.sent().request({method:"eth_accounts"})];case 2:return[2,e.sent().map((function(e){return(0,D.K)(e)}))]}}))})).call(this)},getChainId:function(){return z((function(){var e,t,r;return J(this,(function(n){switch(n.label){case 0:return[4,this.getProvider()];case 1:return t=n.sent(),null===(e=t.chainId)||void 0===e?[3,2]:(r=e,[3,4]);case 2:return[4,null==t?void 0:t.request({method:"eth_chainId"})];case 3:r=n.sent(),n.label=4;case 4:return[2,L(r)]}}))})).call(this)},getProvider:function(){return z((function(){var s,i,o,a,c,u,l,d=arguments;return J(this,(function(h){switch(h.label){case 0:return s=d.length>0&&void 0!==d[0]?d[0]:{},i=s.chainId,("undefined"==typeof window?"undefined":Q(window))>"u"?[2]:[4,Promise.all([r.e(9608),r.e(4098),r.e(8960),r.e(6601)]).then(r.bind(r,38960))];case 1:return c=h.sent().default,u=i||(null===(o=n.chains[0])||void 0===o?void 0:o.id),l=t.infuraId?{}:n.chains.reduce((function(e,t){return W(q({},e),V({},t.id,t.rpcUrls.default.http[0]))}),{}),[2,(e=new c(W(q({},t),{chainId:u,rpc:q({},l,null===(a=this.options)||void 0===a?void 0:a.rpc)})),e)]}}))})).apply(this,arguments)},isAuthorized:function(){return z((function(){return J(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getAccounts()];case 1:return[2,e.sent().length>0];case 2:return e.sent(),[2,!1];case 3:return[2]}}
1))})).call(this)},switchChain:function(e){return z((function(e){var t,r,s,i,o,a;return J(this,(function(c){switch(c.label){case 0:if(t=e.chainId,r=n.chains.find((function(e){return e.id===t})),!r)throw new U.x3(new $.X4);return[4,this.getProvider()];case 1:s=c.sent(),i=(0,j.eC)(r.id),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,Promise.race([s.request({method:"wallet_switchEthereumChain",params:[{chainId:i}]}),new Promise((function(e){return n.emitter.once("change",(function(r){r.chainId===t&&e(t)}))}))])];case 3:return[2,(c.sent(),r)];case 4:throw o=c.sent(),a="string"==typeof o?o:null==o?void 0:o.message,/user rejected request/i.test(a)?new U.ab(o):new U.x3(o);case 5:return[2]}}))})).apply(this,arguments)},onAccountsChanged:function(e){0===e.length?n.emitter.emit("disconnect"):n.emitter.emit("change",{accounts:e.map((function(e){return(0,D.K)(e)}))})},onChainChanged:function(e){var t=L(e);n.emitter.emit("change",{chainId:t})},onConnect:function(e){return z((function(){var t,r,s;return J(this,(function(i){switch(i.label){case 0:return[4,this.getAccounts()];case 1:return 0===(t=i.sent()).length?[2]:(r=L(e.chainId),n.emitter.emit("connect",{accounts:t,chainId:r}),[4,this.getProvider()]);case 2:return(s=i.sent())&&(s.removeListener("connect",this.onConnect.bind(this)),s.on("accountsChanged",this.onAccountsChanged.bind(this)),s.on("chainChanged",this.onChainChanged),s.on("disconnect",this.onDisconnect.bind(this))),[2]}}))})).call(this)},onDisconnect:function(e){return z((function(){var e;return J(this,(function(t){switch(t.label){case 0:return n.emitter.emit("disconnect"),[4,this.getProvider()];case 1:return(e=t.sent()).removeListener("accountsChanged",this.onAccountsChanged.bind(this)),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect.bind(this)),e.on("connect",this.onConnect.bind(this)),[2]}}))})).call(this)}}}))}Y.type="binanceWallet";var Z=function(){return F()?G.L:function(){try{var e,t;return!0===(null===(t=window)||void 0===t||null===(e=t.binancew3w)||void 0===e?void 0:e.isExtension)}catch(e){return!1}}()?function(){return(0,G.L)({target:{id:"wallet.binance.com",name:"Binance Wallet",provider:function(){return window.binancew3w.ethereum}}})}:Y};function X(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}function ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var te={learnMoreUrl:"https://www.binance.com/en/blog/markets/introducing-binance-web3-wallet-5931309459106555347",steps:[{description:"Log in to your Binance app and tap [Wallets]. Go to [Web3].",step:"install",title:"Open Binance app"},{description:"Tap [Create Wallet] to start using your Web3 Wallet.",step:"create",title:"Create or Import a Wallet"},{description:"After you scan, a connection prompt will appear for you to connect your wallet.",step:"scan",title:"Tap the scan button"}]};function re(){var e=!w();return{id:"wallet.binance.com",name:"Binance Wallet",iconUrl:function(){return function(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function o(e){X(i,n,s,o,a,"next",e)}function a(e){X(i,n,s,o,a,"throw",e)}o(void 0)}))}}((function(){var e,t;return function(e,t){var r,n,s,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(s=2&a[0]?n.return:a[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;switch(n=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((s=(s=i.trys).length>0&&s[s.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(6===a[0]&&i.label<s[1]){i.label=s[1],s=a;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(a);break}s[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}(this,(function(n){switch(n.label){case 0:return t=(e="data:image/svg+xml;base64,").concat,[4,r.e(8669).then(r.bind(r,48669))];case 1:return[2,t.apply(e,[n.sent().default])]}}))}))()}
1,iconAccent:"#1E1E1E",iconBackground:"#1E1E1E",installed:w()||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.binance.dev",ios:"https://apps.apple.com/us/app/binance-buy-bitcoin-crypto/id1436799971",mobile:"https://www.binance.com/en/download",qrCode:"https://www.binance.com/en/download",chrome:"https://chromewebstore.google.com/detail/cadiboklkpojfamcoggejbbdjcoiljjk"},mobile:{getUri:function(e){return e}},qrCode:e?{getUri:function(e){return console.log(e),e},instructions:te}:void 0,extension:{instructions:te},createConnector:function(e){return(0,H.K)((function(t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ee(e,t,r[t])}))}return e}({},Z()()(t),e)}))}}}},87093:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(89765),s="#1A1B1F",i={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:s},orange:{accentColor:"#FF983D",accentColorForeground:s},pink:{accentColor:"#FF7AB8",accentColorForeground:s},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},o=i.blue,a=({accentColor:e=o.accentColor,accentColorForeground:t=o.accentColorForeground,...r}={})=>({...(0,n.w)(r),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:s,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackgroun
1d:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});a.accentColors=i},75552:function(e,t,r){"use strict";r.d(t,{d:function(){return h}});var n=r(27319),s=r(17897);var i=r(87675),o=r(45775),a=r(39028),c=r(92106);function u(e){const t=e.isNewChainsStale??!0;let l,d;let h,f,p,g,m,y;return(0,n.K)((n=>({id:"walletConnect",name:"WalletConnect",type:u.type,async setup(){const e=await this.getProvider().catch((()=>null));e&&(p||(p=this.onConnect.bind(this),e.on("connect",p)),m||(m=this.onSessionDelete.bind(this),e.on("session_delete",m)))},async connect({chainId:e,withCapabilities:t,...r}={}){try{const i=await this.getProvider();if(!i)throw new s.M;g||(g=this.onDisplayUri,i.on("display_uri",g));let c=e;if(!c){const e=await(n.storage?.getItem("state"))??{},t=n.chains.some((t=>t.id===e.chainId));c=t?e.chainId:n.chains[0]?.id}if(!c)throw new Error("No chains found on connector.");const u=await this.isChainsStale();if(i.session&&u&&await i.disconnect(),!i.session||u){const e=n.chains.filter((e=>e.id!==c)).map((e=>e.id));await i.connect({optionalChains:[c,...e],..."pairingTopic"in r?{pairingTopic:r.pairingTopic}:{}}),this.setRequestedChainsIds(n.chains.map((e=>e.id)))}const l=(await i.enable()).map((e=>(0,o.K)(e)));let d=await this.getChainId();if(e&&d!==e){const t=await this.switchChain({chainId:e}).catch((e=>{if(e.code===a.ab.code&&"Missing or invalid. request() method: wallet_addEthereumChain"!==e.cause?.message)throw e;return{id:d}}));d=t?.id??d}return g&&(i.removeListener("display_uri",g),g=void 0),p&&(i.removeListener("connect",p),p=void 0),h||(h=this.onAccountsChanged.bind(this),i.on("accountsChanged",h)),f||(f=this.onChainChanged.bind(this),i.on("chainChanged",f)),y||(y=this.onDisconnect.bind(this),i.on("disconnect",y)),m||(m=this.onSessionDelete.bind(this),i.on("session_delete",m)),{accounts:t?l.map((e=>({address:e,capabilities:{}}))):l,chainId:d}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new a.ab(e);throw e}},async disconnect(){const e=await this.getProvider();try{await(e?.disconnect())}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{f&&(e?.removeListener("chainChanged",f),f=void 0),y&&(e?.removeListener("disconnect",y),y=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),h&&(e?.removeListener("accountsChanged",h),h=void 0),m&&(e?.removeListener("session_delete",m),m=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map((e=>(0,o.K)(e)))},async getProvider({chainId:t}={}){return l||(d||(d=async function(){const t=n.chains.map((e=>e.id));if(!t.length)return;const{EthereumProvider:s}=await Promise.all([r.e(4098),r.e(5235)]).then(r.bind(r,6583));return await s.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(n.chains.map((e=>{const[t]=function(e){const{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];const n=e.transports?.[t.id]?.({chain:t});return(n?.value?.transports||[n]).map((({value:e})=>e?.url||r))}({chain:e,transports:n.transports});return[e.id,t]}))),showQrModal:e.showQrModal??!0})}()),l=await d,l?.events.setMaxListeners(Number.POSITIVE_INFINITY)),t&&await(this.switchChain?.({chainId:t})),l},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;return!await this.isChainsStale()||!t.session||(await t.disconnect().catch((()=>{})),!1)}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){const r=await this.getProvider();if(!r)throw new s.M;const o=n.chains.find((e=>e.id===t));if(!o)throw new a.x3(new i.X4);try{await Promise.all([new Promise((e=>{const r=({chainId:s})=>{s===t&&(n.emitter.off("change",r),e())};n.emitter.on("change",r)})),r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.eC)(t)}]})]);const e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),o}catch(n){const s=n;
1if(/(user rejected)/i.test(s.message))throw new a.ab(s);try{let n,s;n=e?.blockExplorerUrls?e.blockExplorerUrls:o.blockExplorers?.default.url?[o.blockExplorers?.default.url]:[],s=e?.rpcUrls?.length?e.rpcUrls:[...o.rpcUrls.default.http];const i={blockExplorerUrls:n,chainId:(0,c.eC)(t),chainName:e?.chainName??o.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??o.nativeCurrency,rpcUrls:s};await r.request({method:"wallet_addEthereumChain",params:[i]});const a=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...a,t]),o}catch(e){throw new a.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():n.emitter.emit("change",{accounts:e.map((e=>(0,o.K)(e)))})},onChainChanged(e){const t=Number(e);n.emitter.emit("change",{chainId:t})},async onConnect(e){const t=Number(e.chainId),r=await this.getAccounts();n.emitter.emit("connect",{accounts:r,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),n.emitter.emit("disconnect");const t=await this.getProvider();h&&(t.removeListener("accountsChanged",h),h=void 0),f&&(t.removeListener("chainChanged",f),f=void 0),y&&(t.removeListener("disconnect",y),y=void 0),m&&(t.removeListener("session_delete",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){n.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){if(!l)return[];const e=l.session?.namespaces.eip155?.accounts?.map((e=>Number.parseInt(e.split(":")[1]||"",10)));return e??[]},async getRequestedChainsIds(){return await(n.storage?.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!t)return!1;const e=n.chains.map((e=>e.id)),r=this.getNamespaceChainsIds();if(r.length&&!r.some((t=>e.includes(t))))return!1;const s=await this.getRequestedChainsIds();return!e.every((e=>s.includes(e)))},async setRequestedChainsIds(e){await(n.storage?.setItem(this.requestedChainsStorageKey,e))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})))}u.type="walletConnect";var l=new Map,d=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:r})=>{let n={...t||{},projectId:e,showQrModal:!1};r&&(n={...n,showQrModal:!0});const s=JSON.stringify(n),i=l.get(s);if(i)return i;const o=u(n);return l.set(s,o),o};function h({projectId:e,walletConnectParameters:t}){if(!e||""===e)throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===e&&(e="21fef48091f12692cad574a6f7753643"),r=>function({projectId:e,walletDetails:t,walletConnectParameters:r}){return(0,n.K)((n=>({...d({projectId:e,walletConnectParameters:r,rkDetailsShowQrModal:t.rkDetails.showQrModal})(n),...t})))}({projectId:e,walletDetails:r,walletConnectParameters:t})}},13380:function(e,t,r){"use strict";r.d(t,{p:function(){return o}});var n=r(35277),s=r(75552),i=r(48961),o=({projectId:e,walletConnectParameters:t})=>{const o=(0,n.tq)()?(0,i.B)({flag:"isTrust"}):(0,i.B)({flag:"isTrustWallet"}),a=!o;let c;a&&(c={getUri:e=>e,instructions:{learnMoreUrl:"https://trustwallet.com/",steps:[{description:"wallet_connectors.trust.qr_code.step1.description",step:"install",title:"wallet_connectors.trust.qr_code.step1.title"},{description:"wallet_connectors.trust.qr_code.step2.description",step:"create",title:"wallet_connectors.trust.qr_code.step2.title"},{description:"wallet_connectors.trust.qr_code.step3.description",step:"scan",title:"wallet_connectors.trust.qr_code.step3.title"}]}});return{id:"trust",name:"Trust Wallet",rdns:"com.trustwallet.app",iconUrl:async()=>(await r.e(9055).then(r.bind(r,59055))).default,installed:o||void 0,iconAccent:"#3375BB",iconBackground:"#fff",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",ios:"https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",mobile:"https://trustwallet.com/download",qrCode:"https://trustwallet.com/download",chrome:"https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",browserExtension:"https://trustwallet.com/browser-extension"},mobile:{getUri:a?e=>`trust://wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:c,extension:{instructions:{learnMoreUrl:"https://trustwallet.com/browser-extension",steps:[{description:"wallet_connectors.trust.extension.step1.description",step:"install",title:"wallet_connectors.trust.extension.step1.title"},{description:"wallet_connectors.trust.extension.step2.description",step:"create",title:"wallet_connectors.trust.extension.step2.title"},{description:"wallet_connectors.trust.extension.step3.description",step:"refresh",title:"wallet_connectors.trust.extension.step3.title"}]}},createConnector:a?(0,s.d)({projectId:e,walletConnectParameters:t}):(0,n.tq)()?(0,i.K)({flag:"isTrust"}):(0,i.K)({flag:"isTrustWallet"})}}},48961:function(e,t,r){"use strict";r.d(t,{B:function(){return a},K:function(){return c}});var n=r(27319),s=r(66573);function i(e){const t="undefined"!=typeof window?window:void 0;if(void 0===t||void 0===t.ethereum)return;const r=t.ethereum.providers;
1return r?r.find((t=>t[e])):t.ethereum[e]?t.ethereum:void 0}function o(e){const t=(e,r)=>{const[n,...s]=r.split("."),i=e[n];if(i)return 0===s.length?i:t(i,s.join("."))};if("undefined"!=typeof window)return t(window,e)}function a({flag:e,namespace:t}){return!(!t||void 0===o(t))||!(!e||void 0===i(e))}function c({flag:e,namespace:t,target:r}){const a=r||function({flag:e,namespace:t}){const r="undefined"!=typeof window?window:void 0;if(void 0===r)return;if(t){const e=o(t);if(e)return e}const n=r.ethereum?.providers;if(e){const t=i(e);if(t)return t}return void 0!==n&&n.length>0?n[0]:r.ethereum}({flag:e,namespace:t});return function(e){return t=>{const r=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return(0,n.K)((e=>({...(0,s.L)(r)(e),...t})))}}(a)}},33024:function(e,t,r){"use strict";r.d(t,{P:function(){return a}});var n=r(35277),s=r(75552),i=r(48961);function o(e){return!!e?.isMetaMask&&(!(e.isBraveWallet&&!e._events&&!e._state)&&(!e.isApexWallet&&(!e.isAvalanche&&(!e.isBackpack&&(!e.isBifrost&&(!e.isBitKeep&&(!e.isBitski&&(!e.isBlockWallet&&(!e.isCoinbaseWallet&&(!e.isDawn&&(!e.isEnkrypt&&(!e.isExodus&&(!e.isFrame&&(!e.isFrontier&&(!e.isGamestop&&(!e.isHyperPay&&(!e.isImToken&&(!e.isKuCoinWallet&&(!e.isMathWallet&&(!e.isNestWallet&&(!e.isOkxWallet&&!e.isOKExWallet&&(!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&(!e.isOpera&&(!e.isPhantom&&(!e.isPortal&&(!e.isRabby&&(!e.isRainbow&&(!e.isStatus&&(!e.isTalisman&&(!e.isTally&&(!e.isTokenPocket&&(!e.isTokenary&&(!e.isTrust&&!e.isTrustWallet&&(!e.isXDEFI&&(!e.isZeal&&(!e.isZerion&&!e.__seif))))))))))))))))))))))))))))))))))))}var a=({projectId:e,walletConnectParameters:t})=>{const a=(0,i.B)({flag:"isMetaMask"}),c=!a,u=e=>(0,n.Dt)()?e:(0,n.gn)()?`metamask://wc?uri=${encodeURIComponent(e)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`;return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await r.e(1995).then(r.bind(r,61995))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:c?void 0:a,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:c?u:void 0},qrCode:c?{getUri:u,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:c?(0,s.d)({projectId:e,walletConnectParameters:t}):(0,i.K)({target:"undefined"!=typeof window?window.ethereum?.providers?.find(o)??window.ethereum:void 0})}}},39893:function(e,t,r){"use strict";r.d(t,{D:function(){return l}});var n=r(35277),s=r(27319),i=r(87675),o=r(45775),a=r(39028),c=r(92106);function u(e={}){return"3"===e.version||e.headlessMode?function(e){const t=!1;let n,l,d,h,f;return(0,s.K)((s=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:u.type,async connect({chainId:e,withCapabilities:t}={}){try{const r=await this.getProvider(),n=(await r.request({method:"eth_requestAccounts"})).map((e=>(0,o.K)(e)));d||(d=this.onAccountsChanged.bind(this),r.on("accountsChanged",d)),h||(h=this.onChainChanged.bind(this),r.on("chainChanged",h)),f||(f=this.onDisconnect.bind(this),r.on("disconnect",f));let s=await this.getChainId();if(e&&s!==e){const t=await this.switchChain({chainId:e}).catch((e=>{if(e.code===a.ab.code)throw e;return{id:s}}));s=t?.id??s}return{accounts:t?n.map((e=>({address:e,capabilities:{}}))):n,chainId:s}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new a.ab(e);throw e}},async disconnect(){const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),h&&(e.removeListener("chainChanged",h),h=void 0),f&&(e.removeListener("disconnect",f),f=void 0),e.disconnect(),e.close()},async getAccounts(){const e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map((e=>(0,o.K)(e)))},async getChainId(){const e=await this.getProvider(),t=await e.request({method:"eth_chainId"});return Number(t)}
1,async getProvider(){if(!l){const i=await(async()=>{const{default:e}=await Promise.all([r.e(9608),r.e(9635),r.e(2753)]).then(r.t.bind(r,89635,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})();n=new i({...e,reloadOnDisconnect:t});const o=n.walletExtension?.getChainId(),a=s.chains.find((t=>e.chainId?t.id===e.chainId:t.id===o))||s.chains[0],c=e.chainId||a?.id,u=e.jsonRpcUrl||a?.rpcUrls.default.http[0];l=n.makeWeb3Provider(u,c)}return l},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){const r=s.chains.find((e=>e.id===t));if(!r)throw new a.x3(new i.X4);const n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.eC)(r.id)}]}),r}catch(s){if(4902===s.code)try{let s,i;s=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];const o={blockExplorerUrls:s,chainId:(0,c.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:i};return await n.request({method:"wallet_addEthereumChain",params:[o]}),r}catch(e){throw new a.ab(e)}throw new a.x3(s)}},onAccountsChanged(e){0===e.length?this.onDisconnect():s.emitter.emit("change",{accounts:e.map((e=>(0,o.K)(e)))})},onChainChanged(e){const t=Number(e);s.emitter.emit("change",{chainId:t})},async onDisconnect(e){s.emitter.emit("disconnect");const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),h&&(t.removeListener("chainChanged",h),h=void 0),f&&(t.removeListener("disconnect",f),f=void 0)}})))}(e):function(e){let t,n,l,d;return(0,s.K)((s=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:u.type,async connect({chainId:e,withCapabilities:t,...r}={}){try{const s=await this.getProvider(),i=(await s.request({method:"eth_requestAccounts",params:"instantOnboarding"in r&&r.instantOnboarding?[{onboarding:"instant"}]:[]})).map((e=>(0,o.K)(e)));n||(n=this.onAccountsChanged.bind(this),s.on("accountsChanged",n)),l||(l=this.onChainChanged.bind(this),s.on("chainChanged",l)),d||(d=this.onDisconnect.bind(this),s.on("disconnect",d));let c=await this.getChainId();if(e&&c!==e){const t=await this.switchChain({chainId:e}).catch((e=>{if(e.code===a.ab.code)throw e;return{id:c}}));c=t?.id??c}return{accounts:t?i.map((e=>({address:e,capabilities:{}}))):i,chainId:c}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new a.ab(e);throw e}},async disconnect(){const e=await this.getProvider();n&&(e.removeListener("accountsChanged",n),n=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),d&&(e.removeListener("disconnect",d),d=void 0),e.disconnect(),e.close?.()},async getAccounts(){const e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map((e=>(0,o.K)(e)))},async getChainId(){const e=await this.getProvider(),t=await e.request({method:"eth_chainId"});return Number(t)}
1,async getProvider(){if(!t){const n="string"==typeof e.preference?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:i}=await r.e(4507).then(r.bind(r,4507)),o=i({...e,appChainIds:s.chains.map((e=>e.id)),preference:n});t=o.getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){const r=s.chains.find((e=>e.id===t));if(!r)throw new a.x3(new i.X4);const n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.eC)(r.id)}]}),r}catch(s){if(4902===s.code)try{let s,i;s=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];const o={blockExplorerUrls:s,chainId:(0,c.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:i};return await n.request({method:"wallet_addEthereumChain",params:[o]}),r}catch(e){throw new a.ab(e)}throw new a.x3(s)}},onAccountsChanged(e){0===e.length?this.onDisconnect():s.emitter.emit("change",{accounts:e.map((e=>(0,o.K)(e)))})},onChainChanged(e){const t=Number(e);s.emitter.emit("change",{chainId:t})},async onDisconnect(e){s.emitter.emit("disconnect");const t=await this.getProvider();n&&(t.removeListener("accountsChanged",n),n=void 0),l&&(t.removeListener("chainChanged",l),l=void 0),d&&(t.removeListener("disconnect",d),d=void 0)}})))}(e)}u.type="coinbaseWallet";var l=({appName:e,appIcon:t})=>({id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await r.e(9682).then(r.bind(r,29682))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...(0,n.gn)()?{}:{qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:r=>{const n=u({appName:e,appLogoUrl:t,preference:l.preference});return(0,s.K)((e=>({...n(e),...r})))}})},35277:function(e,t,r){"use strict";function n(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)}function s(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function i(){return n()||s()}r.d(t,{Dt:function(){return n},gn:function(){return s},tq:function(){return i}})},67702:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});var n=r(35277),s=r(75552),i=r(48961),o=({projectId:e,walletConnectParameters:t})=>{const o=(0,i.B)({flag:"isRainbow"}),a=!o,c=e=>(0,n.Dt)()?e:(0,n.gn)()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>
1(await r.e(3712).then(r.bind(r,63712))).default,iconBackground:"#0c2f78",installed:a?void 0:o,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:a?c:void 0},qrCode:a?{getUri:c,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:a?(0,s.d)({projectId:e,walletConnectParameters:t}):(0,i.K)({flag:"isRainbow"})}}},8590:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});var n=r(24139),s=r(56888),i=r(27037),o=r(7506),a=class extends o.l{constructor(e={}){super(),this.config=e,this.#Yt=new Map}#Yt;build(e,t,r){const i=t.queryKey,o=t.queryHash??(0,n.Rm)(i,t);let a=this.get(o);return a||(a=new s.A({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#Yt.has(e.queryHash)||(this.#Yt.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#Yt.get(e.queryHash);t&&(e.destroy(),t===e&&this.#Yt.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.Vr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#Yt.get(e)}getAll(){return[...this.#Yt.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>(0,n._x)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,n._x)(e,t))):t}notify(e){i.Vr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){i.Vr.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){i.Vr.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},c=r(59289),u=class extends o.l{constructor(e={}){super(),this.config=e,this.#Zt=new Set,this.#Xt=new Map,this.#er=0}#Zt;#Xt;#er;build(e,t,r){const n=new c.m({client:e,mutationCache:this,mutationId:++this.#er,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#Zt.add(e);const t=l(e);if("string"==typeof t){const r=this.#Xt.get(t);r?r.push(e):this.#Xt.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#Zt.delete(e)){const t=l(e);if("string"==typeof t){const r=this.#Xt.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#Xt.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=l(e);if("string"==typeof t){const r=this.#Xt.get(t)?.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){const t=l(e);if("string"==typeof t){const r=this.#Xt.get(t)?.find((t=>
1t!==e&&t.state.isPaused));return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){i.Vr.batch((()=>{this.#Zt.forEach((e=>{this.notify({type:"removed",mutation:e})})),this.#Zt.clear(),this.#Xt.clear()}))}getAll(){return Array.from(this.#Zt)}find(e){const 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.Vr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return i.Vr.batch((()=>Promise.all(e.map((e=>e.continue().catch(n.ZT))))))}};function l(e){return e.options.scope?.id}var d=r(66474),h=r(14304);function f(e){return{onFetch:(t,r)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const l=async()=>{let r=!1;const l=(0,n.cG)(t.options,t.fetchOptions),d=async(e,s,i)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);const o=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:i?"backward":"forward",meta:t.options.meta};var n;return n=e,Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)}),e})(),a=await l(o),{maxPages:c}=t.options,u=i?n.Ht:n.VX;return{pages:u(e.pages,a,c),pageParams:u(e.pageParams,s,c)}};if(i&&o.length){const e="backward"===i,t={pages:o,pageParams:a},r=(e?g:p)(s,t);c=await d(t,r,e)}else{const t=e??o.length;do{const e=0===u?a[0]??s.initialPageParam:p(s,c);if(u>0&&null==e)break;c=await d(c,e),u++}while(u<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function p(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function g(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var m=class{#tr;#rr;#nr;#sr;#ir;#or;#ar;#cr;constructor(e={}){this.#tr=e.queryCache||new a,this.#rr=e.mutationCache||new u,this.#nr=e.defaultOptions||{},this.#sr=new Map,this.#ir=new Map,this.#or=0}mount(){this.#or++,1===this.#or&&(this.#ar=d.j.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#tr.onFocus())})),this.#cr=h.N.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#tr.onOnline())})))}unmount(){this.#or--,0===this.#or&&(this.#ar?.(),this.#ar=void 0,this.#cr?.(),this.#cr=void 0)}isFetching(e){return this.#tr.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#rr.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#tr.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#tr.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.KC)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#tr.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=this.#tr.get(s.queryHash)?.state.data,o=(0,n.SE)(t,i);if(void 0!==o)return this.#tr.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return i.Vr.batch((()=>this.#tr.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#tr.get(t.queryHash)?.state}removeQueries(e){const t=this.#tr;i.Vr.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=this.#tr;return i.Vr.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries({type:"active",...e},t))))}cancelQueries(e,t={}){const r={revert:!0,...t},s=i.Vr.batch((()=>this.#tr.findAll(e).map((e=>e.cancel(r)))));return Promise.all(s).then(n.ZT).catch(n.ZT)}invalidateQueries(e,t={}){return i.Vr.batch((()=>(this.#tr.findAll(e).forEach((e=>{e.invalidate()})),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=i.Vr.batch((()=>this.#tr.findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))));return Promise.all(s).then(n.ZT)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#tr.build(this,t);return r.isStaleByTime((0,n.KC)(t.staleTime,r))?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=f(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}ensureInfiniteQueryData(e){return e.behavior=f(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return h.N.isOnline()?this.#rr.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#tr}getMutationCache(){return this.#rr}getDefaultOptions(){return this.#nr}setDefaultOptions(e){this.#nr=e}setQueryDefaults(e,t){this.#sr.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#sr.values()],r={};return t.forEach((t=>{(0,n.to)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)})),r}setMutationDefaults(e,t){this.#ir.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#ir.values()],r={};return t.forEach((t=>{(0,n.to)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#nr.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"),t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#nr.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#tr.clear(),this.#rr.clear()}}},27319:function(e,t,r){"use strict";function n(e){return e}r.d(t,{K:function(){return n}})},66573:function(e,t,r){"use strict";r.d(t,{L:function(){return d}});var n=r(45775),s=r(39028),i=r(60229),o=r(7760),a=r(92106),c=r(87675),u=r(17897),l=r(27319);function d(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function p(){const t=e.target;if("function"==typeof t){const e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider(e){return e?.ethereum}}}let g,m,y,b;return(0,l.K)((l=>({get icon(){return p().icon},get id(){return p().id},get name(){return p().name},get supportsSimulation(){return!0},type:d.type,async setup(){const t=await this.getProvider();t?.on&&e.target&&(y||(y=this.onConnect.bind(this),t.on("connect",y)),g||(g=this.onAccountsChanged.bind(this),t.on("accountsChanged",g)))},async connect({chainId:r,isReconnecting:i,withCapabilities:o}={}){const a=await this.getProvider();if(!a)throw new u.M;let c=[];if(i)c=await this.getAccounts().catch((()=>[]));else if(t)try{if(c=(await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map((e=>(0,n.K)(e))),c.length>0){c=await this.getAccounts()}}catch(e){const t=e;if(t.code===s.ab.code)throw new s.ab(t);if(t.code===s.pT.code)throw t}try{if(!c?.length&&!i){c=(await a.request({method:"eth_requestAccounts"})).map((e=>(0,n.K)(e)))}y&&(a.removeListener("connect",y),y=void 0),g||(g=this.onAccountsChanged.bind(this),a.on("accountsChanged",g)),m||(m=this.onChainChanged.bind(this),a.on("chainChanged",m)),b||(b=this.onDisconnect.bind(this),a.on("disconnect",b));let u=await this.getChainId();if(r&&u!==r){const e=await this.switchChain({chainId:r}).catch((e=>{if(e.code===s.ab.code)throw e;return{id:u}}));u=e?.id??u}return t&&await(l.storage?.removeItem(`${this.id}.disconnected`)),e.target||await(l.storage?.setItem("injected.connected",!0)),{accounts:o?c.map((e=>({address:e,capabilities:{}}))):c,chainId:u}}catch(e){const t=e;if(t.code===s.ab.code)throw new s.ab(t);if(t.code===s.pT.code)throw new s.pT(t);throw t}},async disconnect(){const r=await this.getProvider();if(!r)throw new u.M;m&&(r.removeListener("chainChanged",m),m=void 0),b&&(r.removeListener("disconnect",b),b=void 0),y||(y=this.onConnect.bind(this),r.on("connect",y));try{await(0,i.F)((()=>r.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]})),{timeout:100})}catch{}t&&await(l.storage?.setItem(`${this.id}.disconnected`,!0)),e.target||await(l.storage?.removeItem("injected.connected"))},async getAccounts(){const e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map((e=>(0,n.K)(e)))},async getChainId(){const e=await this.getProvider();if(!e)throw new u.M;const t=await e.request({method:"eth_chainId"});return Number(t)}
1,async getProvider(){if("undefined"==typeof window)return;let e;const t=p();return e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?f(window,t.provider):t.provider,e&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(t&&await(l.storage?.getItem(`${this.id}.disconnected`)))return!1;if(!e.target){if(!await(l.storage?.getItem("injected.connected")))return!1}if(!await this.getProvider()){if(void 0!==r&&!1!==r){const e=async()=>{"undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e);return!!await this.getProvider()},t="number"==typeof r?r: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 u.M}return!!(await(0,o.J)((()=>this.getAccounts()))).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){const r=await this.getProvider();if(!r)throw new u.M;const n=l.chains.find((e=>e.id===t));if(!n)throw new s.x3(new c.X4);const i=new Promise((e=>{const r=n=>{"chainId"in n&&n.chainId===t&&(l.emitter.off("change",r),e())};l.emitter.on("change",r)}));try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]}).then((async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})})),i]),n}catch(o){const c=o;if(4902===c.code||4902===c?.data?.originalError?.code)try{const{default:o,...c}=n.blockExplorers??{};let u,d;e?.blockExplorerUrls?u=e.blockExplorerUrls:o&&(u=[o.url,...Object.values(c).map((e=>e.url))]),d=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];const h={blockExplorerUrls:u,chainId:(0,a.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:d};return await Promise.all([r.request({method:"wallet_addEthereumChain",params:[h]}).then((async()=>{if(await this.getChainId()!==t)throw new s.ab(new Error("User rejected switch after adding network."));l.emitter.emit("change",{chainId:t})})),i]),n}catch(e){throw new s.ab(e)}if(c.code===s.ab.code)throw new s.ab(c);throw new s.x3(c)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){const e=(await this.getChainId()).toString();this.onConnect({chainId:e}),t&&await(l.storage?.removeItem(`${this.id}.disconnected`))}else l.emitter.emit("change",{accounts:e.map((e=>(0,n.K)(e)))})},onChainChanged(e){const t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){const t=await this.getAccounts();if(0===t.length)return;const r=Number(e.chainId);l.emitter.emit("connect",{accounts:t,chainId:r});const n=await this.getProvider();n&&(y&&(n.removeListener("connect",y),y=void 0),g||(g=this.onAccountsChanged.bind(this),n.on("accountsChanged",g)),m||(m=this.onChainChanged.bind(this),n.on("chainChanged",m)),b||(b=this.onDisconnect.bind(this),n.on("disconnect",b)))},async onDisconnect(e){const t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(m&&(t.removeListener("chainChanged",m),m=void 0),b&&(t.removeListener("disconnect",b),b=void 0),y||(y=this.onConnect.bind(this),t.on("connect",y))))}})))}d.type="injected";const h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:f(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return f(e,(e=>{if(!e.isMetaMask)return!1;if(e.isBraveWallet&&!e._events&&!e._state)return!1;const t=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of t)if(e[r])return!1;return!0}))}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:f(e,"isPhantom")}}};function f(e,t){function r(e){return"function"==typeof t?t(e):"str
1ing"!=typeof t||e[t]}const n=e.ethereum;return n?.providers?n.providers.find((e=>r(e))):n&&r(n)?n:void 0}},94298:function(e,t,r){"use strict";function n(){const e=new Set;let t=[];const r=()=>function(e){if("undefined"==typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}((r=>{t.some((({info:e})=>e.uuid===r.info.uuid))||(t=[...t,r],e.forEach((e=>e(t,{added:[r]}))))}));let n=r();return{_listeners(){return e},clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider({rdns:e}){return t.find((t=>t.info.rdns===e))},getProviders(){return t},reset(){this.clear(),n?.(),n=r()},subscribe(r,{emitImmediately:n}={}){return e.add(r),n&&r(t,{added:t}),()=>e.delete(r)}}}r.d(t,{_:function(){return x}});var s=r(94898);const i=e=>(t,r,n)=>{const s=n.subscribe;n.subscribe=(e,t,r)=>{let i=e;if(t){const s=(null==r?void 0:r.equalityFn)||Object.is;let o=e(n.getState());i=r=>{const n=e(r);if(!s(o,n)){const e=o;t(o=n,e)}},(null==r?void 0:r.fireImmediately)&&t(o,o)}return s(i)};return e(t,r,n)};function o(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;const s=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(n=r.getItem(e))?n:null;return i instanceof Promise?i.then(s):s(i)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}const a=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(e){return a(e)(r)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return a(t)(e)}}}},c=(e,t)=>(r,n,s)=>{let i={storage:o((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1;const u=new Set,l=new Set;let d=i.storage;if(!d)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)}),n,s);const h=()=>{const e=i.partialize({...n()});return d.setItem(i.name,{state:e,version:i.version})},f=s.setState;s.setState=(e,t)=>{f(e,t),h()};const p=e(((...e)=>{r(...e),h()}),n,s);let g;s.getInitialState=()=>p;const m=()=>{var e,t;if(!d)return;c=!1,u.forEach((e=>{var t;return e(null!=(t=n())?t:p)}));const s=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=n())?e:p))||void 0;return a(d.getItem.bind(d))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];if(i.migrate)return[!0,i.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]})).then((e=>{var t;const[s,o]=e;if(g=i.merge(o,null!=(t=n())?t:p),r(g,!0),s)return h()})).then((()=>{null==s||s(g,void 0),g=n(),c=!0,l.forEach((e=>e(g)))})).catch((e=>{null==s||s(void 0,e)}))};return s.persist={setOptions:e=>{i={...i,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||m(),g||p},u=e=>{let t;const r=new Set,n=(e,n)=>{const s="function"==typeof e?e(t):e;if(!Object.is(s,t)){const e=t;t=(null!=n?n:"object"!=typeof s||null===s)?s:Object.assign({},t,s),r.forEach((r=>r(t,e)))}},s=()=>t,i={setState:n,getState:s,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,s,i);return i},l=e=>e?u(e):u;var d=r(66573),h=r(54146);class f{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new h.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){const r=t[0];this._emitter.emit(e,{uid:this.uid,...r})}listenerCount(e){return this._emitter.listenerCount(e)}}function p(e,t){return JSON.parse(e,((e,r)=>{let n=r;return"bigint"===n?.__type&&(n=BigInt(n.value)),"Map"===n?.__type&&(n=new Map(n.value)),t?.(e,n)??n}))}function g(e,t){return e.slice(0,t).join(".")||"."}function m(e,t){const{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function y(e,t,r,n){return JSON.stringify(e,function(e,t){const r="function"==typeof e,n="function"==typeof t,s=[],i=[];return function(o,a){if("object"==typeof a)if(s.length){const e=m(s,this);0===e?s[s.length]=this:(s.splice(e),i.splice(e)),i[i.length]=o;const r=m(s,a);if(0!==r)return n?t.call(this,o,a,g(i,r)):`[ref=${g(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)}function b(e){const{deserialize:t=p,key:r="wagmi",serialize:n=y,storage:s=w}=e;function i(e){return e instanceof Promise?e.then((e=>e)).catch((()=>null)):e}return{...s,key:r,async getItem(e,n){const o=s.getItem(`${r}.${e}`),a=await i(o);return a?t(a)??null:n??null},async setItem(e,t){const 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}`))}}}const w={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function v(){const e="undefined"!=typeof window&&window.localStorage?window.localStorage:w;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}var A=r(87675);let E,k=256;var P=r(79983);function x(e){const{multiInjectedProviderDiscovery:t=!0,storage:r=b({storage:v()}),syncConnectedChain:o=!0,ssr:a=!1,...u}=e,h="undefined"!=typeof window&&t?n():void 0,p=l((()=>u.chains)),g=l((()=>{const e=[],t=new Set;for(const r of u.connectors??[]){const n=m(r);if(e.push(n),!a&&n.rdns){const e="string"==typeof n.rdns?[n.rdns]:n.rdns;for(const r of e)t.add(r)}}if(!a&&h){const r=h.getProviders();for(const n of r)t.has(n.info.rdns)||e.push(m(y(n)))}return e}));function m(e){const t=function(e){return new f(e)}(function(e=11){if(!E||k+e>512){E="",k=0;for(let e=0;e<256;e++)E+=(256+256*Math.random()|0).toString(16).substring(1)}return E.substring(k,k+++e)}()),n={...e({emitter:t,chains:p.getState(),storage:r,transports:u.transports}),emitter:t,uid:t.uid};return t.on("connect",_),n.setup?.(),n}function y(e){const{info:t}=e,r=e.provider;return(0,d.L)({target:{...t,id:t.rdns,provider:r}})}const w=new Map;function x(){return{chainId:p.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let O;const S="0.0.0-canary-";O=P.i.startsWith(S)?Number.parseInt(P.i.replace(S,""),10):Number.parseInt(P.i.split(".")[0]??"0",10);const C=l(i(r?c(x,{migrate(e,t){if(t===O)return e;const r=x(),n=T(e,r.chainId);return{...r,chainId:n}},name:"store",partialize(e){return{connections:{__type:"Map",value:Array.from(e.connections.entries()).map((([e,t])=>{const{id:r,name:n,type:s,uid:i}=t.connector,o={id:r,name:n,type:s,uid:i};return[e,{...t,connector:o}]}))},chainId:e.chainId,current:e.current}},merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;const r=T(e,t.chainId);return{...t,...e,chainId:r}},skipHydration:a,storage:r,version:O}):x));function T(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&p.getState().some((t=>
1t.id===e.chainId))?e.chainId:t}function B(e){C.setState((t=>{const 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 _(e){"connecting"!==C.getState().status&&"reconnecting"!==C.getState().status&&C.setState((t=>{const r=g.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",I),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t}))}function I(e){C.setState((t=>{const r=t.connections.get(e.uid);if(r){const e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",B),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",I),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",_)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};const n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}}))}return C.setState(x()),o&&C.subscribe((({connections:e,current:t})=>t?e.get(t)?.chainId:void 0),(e=>{if(p.getState().some((t=>t.id===e)))return C.setState((t=>({...t,chainId:e??t.chainId})))})),h?.subscribe((e=>{const t=new Set,n=new Set;for(const e of g.getState())if(t.add(e.id),e.rdns){const t="string"==typeof e.rdns?[e.rdns]:e.rdns;for(const e of t)n.add(e)}const s=[];for(const r of e){if(n.has(r.info.rdns))continue;const e=m(y(r));t.has(e.id)||s.push(e)}r&&!C.persist.hasHydrated()||g.setState((e=>[...e,...s]),!0)})),{get chains(){return p.getState()},get connectors(){return g.getState()},storage:r,getClient:function(e={}){const t=e.chainId??C.getState().chainId,r=p.getState().find((e=>e.id===t));if(e.chainId&&!r)throw new A.X4;{const e=w.get(C.getState().chainId);if(e&&!r)return e;if(!r)throw new A.X4}{const e=w.get(t);if(e)return e}let n;if(u.client)n=u.client({chain:r});else{const e=r.id,t=p.getState().map((e=>e.id)),i={},o=Object.entries(u);for(const[r,n]of o)if("chains"!==r&&"client"!==r&&"connectors"!==r&&"transports"!==r)if("object"==typeof n)if(e in n)i[r]=n[e];else{if(t.some((e=>e in n)))continue;i[r]=n}else i[r]=n;n=(0,s.e)({...i,chain:r,batch:i.batch??{multicall:!0},transport:t=>u.transports[e]({...t,connectors:g})})}return w.set(t,n),n},get state(){return C.getState()},setState(e){let t;t="function"==typeof e?e(C.getState()):e;const r=x();"object"!=typeof t&&(t=r);Object.keys(r).some((e=>!(e in t)))&&(t=r),C.setState(t,!0)},subscribe(e,t,r){return C.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0)},_internal:{mipd:h,async revalidate(){const e=C.getState(),t=e.connections;let r=e.current;for(const[,e]of t){const n=e.connector;!!n.isAuthorized&&await n.isAuthorized()||(t.delete(n.uid),r===n.uid&&(r=null))}C.setState((e=>({...e,connections:t,current:r})))},store:C,ssr:Boolean(a),syncConnectedChain:o,transports:u.transports,chains:{setState(e){const t="function"==typeof e?e(p.getState()):e;if(0!==t.length)return p.setState(t,!0)},subscribe(e){return p.subscribe(e)}},connectors:{providerDetailToConnector:y,setup:m,setState(e){return g.setState("function"==typeof e?e(g.getState()):e,!0)},subscribe(e){return g.subscribe(e)}},events:{change:B,connect:_,disconnect:I}}}}},94427:function(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:function(){return R},__assign:function(){return i},__asyncDelegator:function(){return x},__asyncGenerator:function(){return P},__asyncValues:function(){return O},__await:function(){return k},__awaiter:function(){return p},__classPrivateFieldGet:function(){return _},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return I},__createBinding:function(){return m},__decorate:function(){return a},__disposeResources:function(){return L},__esDecorate:function(){return u},__exportStar:function(){return y},__extends:function(){return s},__generator:function(){return g},__importDefault:function(){return B},__importStar:function(){return T}
vendor: 4,647 bytes, line 1
1,__makeTemplateObject:function(){return S},__metadata:function(){return f},__param:function(){return c},__propKey:function(){return d},__read:function(){return w},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return h},__spread:function(){return v},__spreadArray:function(){return E},__spreadArrays:function(){return A},__values:function(){return b}});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])},n(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new 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},i.apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&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 c(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,s,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h=!1,f=r.length-1;f>=0;f--){var p={};for(var g in n)p[g]="access"===g?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[f])("accessor"===c?{get:d.get,set:d.set}:d[u],p);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(d.get=a),(a=o(m.set))&&(d.set=a),(a=o(m.init))&&s.unshift(a)}else(a=o(m))&&("field"===c?s.unshift(a):d[u]=a)}l&&Object.defineProperty(l,n.name,d),h=!0}function l(e,t,r){for(var n=arguments.length>2,s=0;s<t.length;s++)r=n?t[s].call(e,r):t[s].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))}function g(e,t){var r,n,s,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(s=2&a[0]?n.return:a[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;switch(n=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(s=i.trys,(s=s.length>0&&s[s.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(6===a[0]&&i.label<s[1]){i.label=s[1],s=a;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(a);break}s[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,481 bytes, line 1
1s&&!("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 y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(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 v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function A(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),s=0;for(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 E(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 k(e){return this instanceof k?(this.v=e,this):new k(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),n[Symbol.asyncIterator]=function(){return this},n;function o(e,t){s[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=s[e](t)).value instanceof k?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function x(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:k(e[n](t)),done:!1}:s?s(t):t}:s}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(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 S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(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)&&m(t,e,r);return C(t,e),t}function B(e){return e&&e.__esModule?e:{default:e}}function _(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new 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 I(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new 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 N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");
vendor: 1,089 bytes, line 1
1s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,(function(e){return t(e),s()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}t.default={__extends:s,__assign:i,__rest:o,__decorate:a,__param:c,__metadata:f,__awaiter:p,__generator:g,__createBinding:m,__exportStar:y,__values:b,__read:w,__spread:v,__spreadArrays:A,__spreadArray:E,__await:k,__asyncGenerator:P,__asyncDelegator:x,__asyncValues:O,__makeTemplateOb
1ject:S,__importStar:T,__importDefault:B,__classPrivateFieldGet:_,__classPrivateFieldSet:I,__classPrivateFieldIn:N,__addDisposableResource:R,__disposeResources:L}},54146:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});var n=r(26729);t.Z=n},80444:function(e,t,r){"use strict";r.d(t,{v:function(){return i}});var n=r(94898),s=r(25486);function i(e){const{key:t="public",name:r="Public Client"}=e;return(0,n.e)({...e,key:t,name:r,type:"publicClient"}).extend(s.I)}},68597:function(e,t,r){"use strict";r.d(t,{d:function(){return h}});var n=r(78863),s=r(36117);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",name:"UrlRequiredError"})}}var o=r(32357),a=r(60229),c=r(96070);function u(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const l=u();var d=r(22319);function h(e,t={}){const{batch:r,fetchFn:s,fetchOptions:u,key:h="http",methods:f,name:p="HTTP JSON-RPC",onFetchRequest:g,onFetchResponse:m,retryDelay:y,raw:b}=t;return({chain:w,retryCount:v,timeout:A})=>{const{batchSize:E=1e3,wait:k=0}="object"==typeof r?r:{},P=t.retryCount??v,x=A??t.timeout??1e4,O=e||w?.rpcUrls.default.http[0];if(!O)throw new i;const S=function(e,t={}){return{async request(r){const{body:s,fetchFn:i=t.fetchFn??fetch,onRequest:o=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=r,h={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:f,method:p,signal:g}=h;try{const t=await(0,a.F)((async({signal:t})=>{const r={...h,body:Array.isArray(s)?(0,c.P)(s.map((e=>({jsonrpc:"2.0",id:e.id??l.take(),...e})))):(0,c.P)({jsonrpc:"2.0",id:s.id??l.take(),...s}),headers:{"Content-Type":"application/json",...f},method:p||"POST",signal:g||(d>0?t:null)},n=new Request(e,r),a=await(o?.(n,r))??{...r,url:e};return await i(a.url??e,a)}),{errorInstance:new n.W5({body:s,url:e}),timeout:d,signal:!0});let r;if(u&&await u(t),t.headers.get("Content-Type")?.startsWith("application/json"))r=await t.json();else{r=await t.text();try{r=JSON.parse(r||"{}")}catch(e){if(t.ok)throw e;r={error:r}}}if(!t.ok)throw new n.Gg({body:s,details:(0,c.P)(r.error)||t.statusText,headers:t.headers,status:t.status,url:e});return r}catch(t){if(t instanceof n.Gg)throw t;if(t instanceof n.W5)throw t;throw new n.Gg({body:s,cause:t,url:e})}}}}(O,{fetchFn:s,fetchOptions:u,onRequest:g,onResponse:m,timeout:x});return(0,d.q)({key:h,methods:f,name:p,async request({method:e,params:t}){const s={method:e,params:t},{schedule:i}=(0,o.S)({id:O,wait:k,shouldSplitBatch(e){return e.length>E},fn:e=>S.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:a,result:c}]=await(async e=>r?i(e):[await S.request({body:e})])(s);if(b)return{error:a,result:c};if(a)throw new n.bs({body:s,error:a,url:O});return c},retryCount:P,retryDelay:y,timeout:x,type:"http"},{fetchOptions:u,url:O})}}},60229:function(e,t,r){"use strict";function n(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise(((s,i)=>{(async()=>{let o;try{const 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.