{"version":3,"sources":["../../../src/avm/gen/template.ts","../../../src/avm/template-loader.ts","../../../src/avm/paywall.ts","../../../src/avm/index.ts"],"names":["AVM_PAYWALL_TEMPLATE"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,gBAAA,GAAA,EAAA;AAAA,QAAA,CAAA,gBAAA,EAAA;AAAA,EAAA,oBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAIa,oBAAA;AAJb,IAAA,aAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yBAAA,GAAA;AAIO,IAAM,oBAAA,GACX,qqojGAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLF,IAAI,cAAA,GAAgC,IAAA;AAE7B,SAAS,cAAA,GAAgC;AAC9C,EAAA,IAAI,mBAAmB,IAAA,EAAM;AAC3B,IAAA,OAAO,cAAA;AAAA,EACT;AAEA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,aAAA,EAAA,EAAA,YAAA,CAAA,gBAAA,CAAA,CAAA;AACjB,IAAA,cAAA,GAAiB,QAAA,CAAS,oBAAA;AAC1B,IAAA,OAAO,cAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACNA,SAAS,aAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AAyBO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAMA,wBAAuB,cAAA,EAAe;AAE5C,EAAA,IAAI,CAACA,qBAAAA,EAAsB;AACzB,IAAA,OAAO,CAAA,gHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,YAAW,GAAI,OAAA;AAEvF,EAAA,MAAM,YAAA,GAAe,UACjB,gEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACH,YAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,kBAAA,EACzB,UAAA,GAAa,IAAA,CAAK,SAAA,CAAU,UAAU,IAAI,WAAW,CAAA;AAAA;AAAA,IAAA,EAEnE,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOA,qBAAAA,CAAqB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC3E;;;AC9DO,IAAM,UAAA,GAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/C,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,WAAW,CAAA;AAAA,EACnD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AACR,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,iBAAA,CAAkB;AAAA,MACvB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,YAAY,MAAA,CAAO;AAAA,KACpB,CAAA;AAAA,EACH;AACF","file":"index.cjs","sourcesContent":["// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * The pre-built AVM paywall template with inlined CSS and JS\n */\nexport const AVM_PAYWALL_TEMPLATE =\n  '<!DOCTYPE html><html lang=\"en\"><head>\\n        <meta charset=\"UTF-8\">\\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: white;--text-color: #111827;--secondary-text-color: #4b5563;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626}body{min-height:100vh;background-color:var(--background-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid #d1d5db;background-color:#fff;transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px #2563eb33}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover{background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover{background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover{background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover{background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;width:1rem;height:1rem}\\n</style></head>\\n    <body>\\n        <div id=\"root\"></div>\\n    \\n    \\n  <script type=\"module\">\"use strict\";(()=>{var G9e=Object.create;var wA=Object.defineProperty;var q9e=Object.getOwnPropertyDescriptor;var W9e=Object.getOwnPropertyNames;var Y9e=Object.getPrototypeOf,Z9e=Object.prototype.hasOwnProperty;var X9e=(t,e,n)=>e in t?wA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ha=(t=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(t,{get:(e,n)=>(typeof require<\"u\"?require:e)[n]}):t)(function(t){if(typeof require<\"u\")return require.apply(this,arguments);throw Error(\\'Dynamic require of \"\\'+t+\\'\" is not supported\\')});var Ve=(t,e)=>()=>(t&&(e=t(t=0)),e);var Qr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oi=(t,e)=>{for(var n in e)wA(t,n,{get:e[n],enumerable:!0})},pD=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of W9e(e))!Z9e.call(t,o)&&o!==n&&wA(t,o,{get:()=>e[o],enumerable:!(r=q9e(e,o))||r.enumerable});return t},wo=(t,e,n)=>(pD(t,e,\"default\"),n&&pD(n,e,\"default\")),br=(t,e,n)=>(n=t!=null?G9e(Y9e(t)):{},pD(e||!t||!t.__esModule?wA(n,\"default\",{value:t,enumerable:!0}):n,t));var ge=(t,e,n)=>X9e(t,typeof e!=\"symbol\"?e+\"\":e,n);var CZ=Qr(EA=>{\"use strict\";u();EA.byteLength=Q9e;EA.toByteArray=tke;EA.fromByteArray=oke;var vd=[],Tl=[],J9e=typeof Uint8Array<\"u\"?Uint8Array:Array,hD=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(s1=0,AZ=hD.length;s1<AZ;++s1)vd[s1]=hD[s1],Tl[hD.charCodeAt(s1)]=s1;var s1,AZ;Tl[45]=62;Tl[95]=63;function kZ(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=t.indexOf(\"=\");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Q9e(t){var e=kZ(t),n=e[0],r=e[1];return(n+r)*3/4-r}function eke(t,e,n){return(e+n)*3/4-n}function tke(t){var e,n=kZ(t),r=n[0],o=n[1],a=new J9e(eke(t,r,o)),c=0,l=o>0?r-4:r,f;for(f=0;f<l;f+=4)e=Tl[t.charCodeAt(f)]<<18|Tl[t.charCodeAt(f+1)]<<12|Tl[t.charCodeAt(f+2)]<<6|Tl[t.charCodeAt(f+3)],a[c++]=e>>16&255,a[c++]=e>>8&255,a[c++]=e&255;return o===2&&(e=Tl[t.charCodeAt(f)]<<2|Tl[t.charCodeAt(f+1)]>>4,a[c++]=e&255),o===1&&(e=Tl[t.charCodeAt(f)]<<10|Tl[t.charCodeAt(f+1)]<<4|Tl[t.charCodeAt(f+2)]>>2,a[c++]=e>>8&255,a[c++]=e&255),a}function nke(t){return vd[t>>18&63]+vd[t>>12&63]+vd[t>>6&63]+vd[t&63]}function rke(t,e,n){for(var r,o=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),o.push(nke(r));return o.join(\"\")}function oke(t){for(var e,n=t.length,r=n%3,o=[],a=16383,c=0,l=n-r;c<l;c+=a)o.push(rke(t,c,c+a>l?l:c+a));return r===1?(e=t[n-1],o.push(vd[e>>2]+vd[e<<4&63]+\"==\")):r===2&&(e=(t[n-2]<<8)+t[n-1],o.push(vd[e>>10]+vd[e>>4&63]+vd[e<<2&63]+\"=\")),o.join(\"\")}});var TZ=Qr(mD=>{u();mD.read=function(t,e,n,r,o){var a,c,l=o*8-r-1,f=(1<<l)-1,p=f>>1,m=-7,g=n?o-1:0,y=n?-1:1,A=t[e+g];for(g+=y,a=A&(1<<-m)-1,A>>=-m,m+=l;m>0;a=a*256+t[e+g],g+=y,m-=8);for(c=a&(1<<-m)-1,a>>=-m,m+=r;m>0;c=c*256+t[e+g],g+=y,m-=8);if(a===0)a=1-p;else{if(a===f)return c?NaN:(A?-1:1)*(1/0);c=c+Math.pow(2,r),a=a-p}return(A?-1:1)*c*Math.pow(2,a-r)};mD.write=function(t,e,n,r,o,a){var c,l,f,p=a*8-o-1,m=(1<<p)-1,g=m>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=r?0:a-1,T=r?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-c))<1&&(c--,f*=2),c+g>=1?e+=y/f:e+=y*Math.pow(2,1-g),e*f>=2&&(c++,f/=2),c+g>=m?(l=0,c=m):c+g>=1?(l=(e*f-1)*Math.pow(2,o),c=c+g):(l=e*Math.pow(2,g-1)*Math.pow(2,o),c=0));o>=8;t[n+A]=l&255,A+=T,l/=256,o-=8);for(c=c<<o|l,p+=o;p>0;t[n+A]=c&255,A+=T,c/=256,p-=8);t[n+A-T]|=R*128}});var $s=Qr(Q2=>{\"use strict\";u();var gD=CZ(),X2=TZ(),_Z=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;Q2.Buffer=yn;Q2.SlowBuffer=uke;Q2.INSPECT_MAX_BYTES=50;var SA=2147483647;Q2.kMaxLength=SA;yn.TYPED_ARRAY_SUPPORT=ike();!yn.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function ike(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(yn.prototype,\"parent\",{enumerable:!0,get:function(){if(yn.isBuffer(this))return this.buffer}});Object.defineProperty(yn.prototype,\"offset\",{enumerable:!0,get:function(){if(yn.isBuffer(this))return this.byteOffset}});function Hf(t){if(t>SA)throw new RangeError(\\'The value \"\\'+t+\\'\" is invalid for option \"size\"\\');let e=new Uint8Array(t);return Object.setPrototypeOf(e,yn.prototype),e}function yn(t,e,n){if(typeof t==\"number\"){if(typeof e==\"string\")throw new TypeError(\\'The \"string\" argument must be of type string. Received type number\\');return bD(t)}return PZ(t,e,n)}yn.poolSize=8192;function PZ(t,e,n){if(typeof t==\"string\")return ske(t,e);if(ArrayBuffer.isView(t))return cke(t);if(t==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(xd(t,ArrayBuffer)||t&&xd(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(xd(t,SharedArrayBuffer)||t&&xd(t.buffer,SharedArrayBuffer)))return vD(t,e,n);if(typeof t==\"number\")throw new TypeError(\\'The \"value\" argument must not be of type number. Received type number\\');let r=t.valueOf&&t.valueOf();if(r!=null&&r!==t)return yn.from(r,e,n);let o=lke(t);if(o)return o;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\"function\")return yn.from(t[Symbol.toPrimitive](\"string\"),e,n);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}yn.from=function(t,e,n){return PZ(t,e,n)};Object.setPrototypeOf(yn.prototype,Uint8Array.prototype);Object.setPrototypeOf(yn,Uint8Array);function BZ(t){if(typeof t!=\"number\")throw new TypeError(\\'\"size\" argument must be of type number\\');if(t<0)throw new RangeError(\\'The value \"\\'+t+\\'\" is invalid for option \"size\"\\')}function ake(t,e,n){return BZ(t),t<=0?Hf(t):e!==void 0?typeof n==\"string\"?Hf(t).fill(e,n):Hf(t).fill(e):Hf(t)}yn.alloc=function(t,e,n){return ake(t,e,n)};function bD(t){return BZ(t),Hf(t<0?0:wD(t)|0)}yn.allocUnsafe=function(t){return bD(t)};yn.allocUnsafeSlow=function(t){return bD(t)};function ske(t,e){if((typeof e!=\"string\"||e===\"\")&&(e=\"utf8\"),!yn.isEncoding(e))throw new TypeError(\"Unknown encoding: \"+e);let n=DZ(t,e)|0,r=Hf(n),o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}function yD(t){let e=t.length<0?0:wD(t.length)|0,n=Hf(e);for(let r=0;r<e;r+=1)n[r]=t[r]&255;return n}function cke(t){if(xd(t,Uint8Array)){let e=new Uint8Array(t);return vD(e.buffer,e.byteOffset,e.byteLength)}return yD(t)}function vD(t,e,n){if(e<0||t.byteLength<e)throw new RangeError(\\'\"offset\" is outside of buffer bounds\\');if(t.byteLength<e+(n||0))throw new RangeError(\\'\"length\" is outside of buffer bounds\\');let r;return e===void 0&&n===void 0?r=new Uint8Array(t):n===void 0?r=new Uint8Array(t,e):r=new Uint8Array(t,e,n),Object.setPrototypeOf(r,yn.prototype),r}function lke(t){if(yn.isBuffer(t)){let e=wD(t.length)|0,n=Hf(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!=\"number\"||SD(t.length)?Hf(0):yD(t);if(t.type===\"Buffer\"&&Array.isArray(t.data))return yD(t.data)}function wD(t){if(t>=SA)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+SA.toString(16)+\" bytes\");return t|0}function uke(t){return+t!=t&&(t=0),yn.alloc(+t)}yn.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==yn.prototype};yn.compare=function(e,n){if(xd(e,Uint8Array)&&(e=yn.from(e,e.offset,e.byteLength)),xd(n,Uint8Array)&&(n=yn.from(n,n.offset,n.byteLength)),!yn.isBuffer(e)||!yn.isBuffer(n))throw new TypeError(\\'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array\\');if(e===n)return 0;let r=e.length,o=n.length;for(let a=0,c=Math.min(r,o);a<c;++a)if(e[a]!==n[a]){r=e[a],o=n[a];break}return r<o?-1:o<r?1:0};yn.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}};yn.concat=function(e,n){if(!Array.isArray(e))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(e.length===0)return yn.alloc(0);let r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;let o=yn.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){let c=e[r];if(xd(c,Uint8Array))a+c.length>o.length?(yn.isBuffer(c)||(c=yn.from(c)),c.copy(o,a)):Uint8Array.prototype.set.call(o,c,a);else if(yn.isBuffer(c))c.copy(o,a);else throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');a+=c.length}return o};function DZ(t,e){if(yn.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xd(t,ArrayBuffer))return t.byteLength;if(typeof t!=\"string\")throw new TypeError(\\'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type \\'+typeof t);let n=t.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let o=!1;for(;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":return xD(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return n*2;case\"hex\":return n>>>1;case\"base64\":return jZ(t).length;default:if(o)return r?-1:xD(t).length;e=(\"\"+e).toLowerCase(),o=!0}}yn.byteLength=DZ;function dke(t,e,n){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return wke(this,e,n);case\"utf8\":case\"utf-8\":return OZ(this,e,n);case\"ascii\":return xke(this,e,n);case\"latin1\":case\"binary\":return bke(this,e,n);case\"base64\":return yke(this,e,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Eke(this,e,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),r=!0}}yn.prototype._isBuffer=!0;function c1(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}yn.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let n=0;n<e;n+=2)c1(this,n,n+1);return this};yn.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(let n=0;n<e;n+=4)c1(this,n,n+3),c1(this,n+1,n+2);return this};yn.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(let n=0;n<e;n+=8)c1(this,n,n+7),c1(this,n+1,n+6),c1(this,n+2,n+5),c1(this,n+3,n+4);return this};yn.prototype.toString=function(){let e=this.length;return e===0?\"\":arguments.length===0?OZ(this,0,e):dke.apply(this,arguments)};yn.prototype.toLocaleString=yn.prototype.toString;yn.prototype.equals=function(e){if(!yn.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e?!0:yn.compare(this,e)===0};yn.prototype.inspect=function(){let e=\"\",n=Q2.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,n).replace(/(.{2})/g,\"$1 \").trim(),this.length>n&&(e+=\" ... \"),\"<Buffer \"+e+\">\"};_Z&&(yn.prototype[_Z]=yn.prototype.inspect);yn.prototype.compare=function(e,n,r,o,a){if(xd(e,Uint8Array)&&(e=yn.from(e,e.offset,e.byteLength)),!yn.isBuffer(e))throw new TypeError(\\'The \"target\" argument must be one of type Buffer or Uint8Array. Received type \\'+typeof e);if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),n<0||r>e.length||o<0||a>this.length)throw new RangeError(\"out of range index\");if(o>=a&&n>=r)return 0;if(o>=a)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,a>>>=0,this===e)return 0;let c=a-o,l=r-n,f=Math.min(c,l),p=this.slice(o,a),m=e.slice(n,r);for(let g=0;g<f;++g)if(p[g]!==m[g]){c=p[g],l=m[g];break}return c<l?-1:l<c?1:0};function FZ(t,e,n,r,o){if(t.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,SD(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0)if(o)n=0;else return-1;if(typeof e==\"string\"&&(e=yn.from(e,r)),yn.isBuffer(e))return e.length===0?-1:MZ(t,e,n,r,o);if(typeof e==\"number\")return e=e&255,typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):MZ(t,[e],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function MZ(t,e,n,r,o){let a=1,c=t.length,l=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(t.length<2||e.length<2)return-1;a=2,c/=2,l/=2,n/=2}function f(m,g){return a===1?m[g]:m.readUInt16BE(g*a)}let p;if(o){let m=-1;for(p=n;p<c;p++)if(f(t,p)===f(e,m===-1?0:p-m)){if(m===-1&&(m=p),p-m+1===l)return m*a}else m!==-1&&(p-=p-m),m=-1}else for(n+l>c&&(n=c-l),p=n;p>=0;p--){let m=!0;for(let g=0;g<l;g++)if(f(t,p+g)!==f(e,g)){m=!1;break}if(m)return p}return-1}yn.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1};yn.prototype.indexOf=function(e,n,r){return FZ(this,e,n,r,!0)};yn.prototype.lastIndexOf=function(e,n,r){return FZ(this,e,n,r,!1)};function fke(t,e,n,r){n=Number(n)||0;let o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;let a=e.length;r>a/2&&(r=a/2);let c;for(c=0;c<r;++c){let l=parseInt(e.substr(c*2,2),16);if(SD(l))return c;t[n+c]=l}return c}function pke(t,e,n,r){return AA(xD(e,t.length-n),t,n,r)}function hke(t,e,n,r){return AA(Cke(e),t,n,r)}function mke(t,e,n,r){return AA(jZ(e),t,n,r)}function gke(t,e,n,r){return AA(Tke(e,t.length-n),t,n,r)}yn.prototype.write=function(e,n,r,o){if(n===void 0)o=\"utf8\",r=this.length,n=0;else if(r===void 0&&typeof n==\"string\")o=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,o===void 0&&(o=\"utf8\")):(o=r,r=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let a=this.length-n;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");o||(o=\"utf8\");let c=!1;for(;;)switch(o){case\"hex\":return fke(this,e,n,r);case\"utf8\":case\"utf-8\":return pke(this,e,n,r);case\"ascii\":case\"latin1\":case\"binary\":return hke(this,e,n,r);case\"base64\":return mke(this,e,n,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return gke(this,e,n,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+o);o=(\"\"+o).toLowerCase(),c=!0}};yn.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function yke(t,e,n){return e===0&&n===t.length?gD.fromByteArray(t):gD.fromByteArray(t.slice(e,n))}function OZ(t,e,n){n=Math.min(t.length,n);let r=[],o=e;for(;o<n;){let a=t[o],c=null,l=a>239?4:a>223?3:a>191?2:1;if(o+l<=n){let f,p,m,g;switch(l){case 1:a<128&&(c=a);break;case 2:f=t[o+1],(f&192)===128&&(g=(a&31)<<6|f&63,g>127&&(c=g));break;case 3:f=t[o+1],p=t[o+2],(f&192)===128&&(p&192)===128&&(g=(a&15)<<12|(f&63)<<6|p&63,g>2047&&(g<55296||g>57343)&&(c=g));break;case 4:f=t[o+1],p=t[o+2],m=t[o+3],(f&192)===128&&(p&192)===128&&(m&192)===128&&(g=(a&15)<<18|(f&63)<<12|(p&63)<<6|m&63,g>65535&&g<1114112&&(c=g))}}c===null?(c=65533,l=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|c&1023),r.push(c),o+=l}return vke(r)}var IZ=4096;function vke(t){let e=t.length;if(e<=IZ)return String.fromCharCode.apply(String,t);let n=\"\",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=IZ));return n}function xke(t,e,n){let r=\"\";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]&127);return r}function bke(t,e,n){let r=\"\";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function wke(t,e,n){let r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o=\"\";for(let a=e;a<n;++a)o+=_ke[t[a]];return o}function Eke(t,e,n){let r=t.slice(e,n),o=\"\";for(let a=0;a<r.length-1;a+=2)o+=String.fromCharCode(r[a]+r[a+1]*256);return o}yn.prototype.slice=function(e,n){let r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);let o=this.subarray(e,n);return Object.setPrototypeOf(o,yn.prototype),o};function Da(t,e,n){if(t%1!==0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>n)throw new RangeError(\"Trying to access beyond buffer length\")}yn.prototype.readUintLE=yn.prototype.readUIntLE=function(e,n,r){e=e>>>0,n=n>>>0,r||Da(e,n,this.length);let o=this[e],a=1,c=0;for(;++c<n&&(a*=256);)o+=this[e+c]*a;return o};yn.prototype.readUintBE=yn.prototype.readUIntBE=function(e,n,r){e=e>>>0,n=n>>>0,r||Da(e,n,this.length);let o=this[e+--n],a=1;for(;n>0&&(a*=256);)o+=this[e+--n]*a;return o};yn.prototype.readUint8=yn.prototype.readUInt8=function(e,n){return e=e>>>0,n||Da(e,1,this.length),this[e]};yn.prototype.readUint16LE=yn.prototype.readUInt16LE=function(e,n){return e=e>>>0,n||Da(e,2,this.length),this[e]|this[e+1]<<8};yn.prototype.readUint16BE=yn.prototype.readUInt16BE=function(e,n){return e=e>>>0,n||Da(e,2,this.length),this[e]<<8|this[e+1]};yn.prototype.readUint32LE=yn.prototype.readUInt32LE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};yn.prototype.readUint32BE=yn.prototype.readUInt32BE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};yn.prototype.readBigUInt64LE=$h(function(e){e=e>>>0,J2(e,\"offset\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&qw(e,this.length-8);let o=n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))});yn.prototype.readBigUInt64BE=$h(function(e){e=e>>>0,J2(e,\"offset\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&qw(e,this.length-8);let o=n*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(o)<<BigInt(32))+BigInt(a)});yn.prototype.readIntLE=function(e,n,r){e=e>>>0,n=n>>>0,r||Da(e,n,this.length);let o=this[e],a=1,c=0;for(;++c<n&&(a*=256);)o+=this[e+c]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*n)),o};yn.prototype.readIntBE=function(e,n,r){e=e>>>0,n=n>>>0,r||Da(e,n,this.length);let o=n,a=1,c=this[e+--o];for(;o>0&&(a*=256);)c+=this[e+--o]*a;return a*=128,c>=a&&(c-=Math.pow(2,8*n)),c};yn.prototype.readInt8=function(e,n){return e=e>>>0,n||Da(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};yn.prototype.readInt16LE=function(e,n){e=e>>>0,n||Da(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};yn.prototype.readInt16BE=function(e,n){e=e>>>0,n||Da(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};yn.prototype.readInt32LE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};yn.prototype.readInt32BE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};yn.prototype.readBigInt64LE=$h(function(e){e=e>>>0,J2(e,\"offset\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&qw(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});yn.prototype.readBigInt64BE=$h(function(e){e=e>>>0,J2(e,\"offset\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&qw(e,this.length-8);let o=(n<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)});yn.prototype.readFloatLE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),X2.read(this,e,!0,23,4)};yn.prototype.readFloatBE=function(e,n){return e=e>>>0,n||Da(e,4,this.length),X2.read(this,e,!1,23,4)};yn.prototype.readDoubleLE=function(e,n){return e=e>>>0,n||Da(e,8,this.length),X2.read(this,e,!0,52,8)};yn.prototype.readDoubleBE=function(e,n){return e=e>>>0,n||Da(e,8,this.length),X2.read(this,e,!1,52,8)};function yc(t,e,n,r,o,a){if(!yn.isBuffer(t))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(e>o||e<a)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>t.length)throw new RangeError(\"Index out of range\")}yn.prototype.writeUintLE=yn.prototype.writeUIntLE=function(e,n,r,o){if(e=+e,n=n>>>0,r=r>>>0,!o){let l=Math.pow(2,8*r)-1;yc(this,e,n,r,l,0)}let a=1,c=0;for(this[n]=e&255;++c<r&&(a*=256);)this[n+c]=e/a&255;return n+r};yn.prototype.writeUintBE=yn.prototype.writeUIntBE=function(e,n,r,o){if(e=+e,n=n>>>0,r=r>>>0,!o){let l=Math.pow(2,8*r)-1;yc(this,e,n,r,l,0)}let a=r-1,c=1;for(this[n+a]=e&255;--a>=0&&(c*=256);)this[n+a]=e/c&255;return n+r};yn.prototype.writeUint8=yn.prototype.writeUInt8=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,1,255,0),this[n]=e&255,n+1};yn.prototype.writeUint16LE=yn.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,2,65535,0),this[n]=e&255,this[n+1]=e>>>8,n+2};yn.prototype.writeUint16BE=yn.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=e&255,n+2};yn.prototype.writeUint32LE=yn.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255,n+4};yn.prototype.writeUint32BE=yn.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};function LZ(t,e,n,r,o){HZ(e,r,o,t,n,7);let a=Number(e&BigInt(4294967295));t[n++]=a,a=a>>8,t[n++]=a,a=a>>8,t[n++]=a,a=a>>8,t[n++]=a;let c=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=c,c=c>>8,t[n++]=c,c=c>>8,t[n++]=c,c=c>>8,t[n++]=c,n}function NZ(t,e,n,r,o){HZ(e,r,o,t,n,7);let a=Number(e&BigInt(4294967295));t[n+7]=a,a=a>>8,t[n+6]=a,a=a>>8,t[n+5]=a,a=a>>8,t[n+4]=a;let c=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=c,c=c>>8,t[n+2]=c,c=c>>8,t[n+1]=c,c=c>>8,t[n]=c,n+8}yn.prototype.writeBigUInt64LE=$h(function(e,n=0){return LZ(this,e,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});yn.prototype.writeBigUInt64BE=$h(function(e,n=0){return NZ(this,e,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});yn.prototype.writeIntLE=function(e,n,r,o){if(e=+e,n=n>>>0,!o){let f=Math.pow(2,8*r-1);yc(this,e,n,r,f-1,-f)}let a=0,c=1,l=0;for(this[n]=e&255;++a<r&&(c*=256);)e<0&&l===0&&this[n+a-1]!==0&&(l=1),this[n+a]=(e/c>>0)-l&255;return n+r};yn.prototype.writeIntBE=function(e,n,r,o){if(e=+e,n=n>>>0,!o){let f=Math.pow(2,8*r-1);yc(this,e,n,r,f-1,-f)}let a=r-1,c=1,l=0;for(this[n+a]=e&255;--a>=0&&(c*=256);)e<0&&l===0&&this[n+a+1]!==0&&(l=1),this[n+a]=(e/c>>0)-l&255;return n+r};yn.prototype.writeInt8=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=e&255,n+1};yn.prototype.writeInt16LE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,2,32767,-32768),this[n]=e&255,this[n+1]=e>>>8,n+2};yn.prototype.writeInt16BE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=e&255,n+2};yn.prototype.writeInt32LE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,4,2147483647,-2147483648),this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4};yn.prototype.writeInt32BE=function(e,n,r){return e=+e,n=n>>>0,r||yc(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};yn.prototype.writeBigInt64LE=$h(function(e,n=0){return LZ(this,e,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});yn.prototype.writeBigInt64BE=$h(function(e,n=0){return NZ(this,e,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function UZ(t,e,n,r,o,a){if(n+r>t.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function zZ(t,e,n,r,o){return e=+e,n=n>>>0,o||UZ(t,e,n,4,34028234663852886e22,-34028234663852886e22),X2.write(t,e,n,r,23,4),n+4}yn.prototype.writeFloatLE=function(e,n,r){return zZ(this,e,n,!0,r)};yn.prototype.writeFloatBE=function(e,n,r){return zZ(this,e,n,!1,r)};function VZ(t,e,n,r,o){return e=+e,n=n>>>0,o||UZ(t,e,n,8,17976931348623157e292,-17976931348623157e292),X2.write(t,e,n,r,52,8),n+8}yn.prototype.writeDoubleLE=function(e,n,r){return VZ(this,e,n,!0,r)};yn.prototype.writeDoubleBE=function(e,n,r){return VZ(this,e,n,!1,r)};yn.prototype.copy=function(e,n,r,o){if(!yn.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),!o&&o!==0&&(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o<r&&(o=r),o===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(o<0)throw new RangeError(\"sourceEnd out of bounds\");o>this.length&&(o=this.length),e.length-n<o-r&&(o=e.length-n+r);let a=o-r;return this===e&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(n,r,o):Uint8Array.prototype.set.call(e,this.subarray(r,o),n),a};yn.prototype.fill=function(e,n,r,o){if(typeof e==\"string\"){if(typeof n==\"string\"?(o=n,n=0,r=this.length):typeof r==\"string\"&&(o=r,r=this.length),o!==void 0&&typeof o!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof o==\"string\"&&!yn.isEncoding(o))throw new TypeError(\"Unknown encoding: \"+o);if(e.length===1){let c=e.charCodeAt(0);(o===\"utf8\"&&c<128||o===\"latin1\")&&(e=c)}}else typeof e==\"number\"?e=e&255:typeof e==\"boolean\"&&(e=Number(e));if(n<0||this.length<n||this.length<r)throw new RangeError(\"Out of range index\");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let a;if(typeof e==\"number\")for(a=n;a<r;++a)this[a]=e;else{let c=yn.isBuffer(e)?e:yn.from(e,o),l=c.length;if(l===0)throw new TypeError(\\'The value \"\\'+e+\\'\" is invalid for argument \"value\"\\');for(a=0;a<r-n;++a)this[a+n]=c[a%l]}return this};var Z2={};function ED(t,e,n){Z2[t]=class extends n{constructor(){super(),Object.defineProperty(this,\"message\",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}ED(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(t){return t?`${t} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError);ED(\"ERR_INVALID_ARG_TYPE\",function(t,e){return`The \"${t}\" argument must be of type number. Received type ${typeof e}`},TypeError);ED(\"ERR_OUT_OF_RANGE\",function(t,e,n){let r=`The value of \"${t}\" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=RZ(String(n)):typeof n==\"bigint\"&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=RZ(o)),o+=\"n\"),r+=` It must be ${e}. Received ${o}`,r},RangeError);function RZ(t){let e=\"\",n=t.length,r=t[0]===\"-\"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Ske(t,e,n){J2(e,\"offset\"),(t[e]===void 0||t[e+n]===void 0)&&qw(e,t.length-(n+1))}function HZ(t,e,n,r,o,a){if(t>n||t<e){let c=typeof e==\"bigint\"?\"n\":\"\",l;throw a>3?e===0||e===BigInt(0)?l=`>= 0${c} and < 2${c} ** ${(a+1)*8}${c}`:l=`>= -(2${c} ** ${(a+1)*8-1}${c}) and < 2 ** ${(a+1)*8-1}${c}`:l=`>= ${e}${c} and <= ${n}${c}`,new Z2.ERR_OUT_OF_RANGE(\"value\",l,t)}Ske(r,o,a)}function J2(t,e){if(typeof t!=\"number\")throw new Z2.ERR_INVALID_ARG_TYPE(e,\"number\",t)}function qw(t,e,n){throw Math.floor(t)!==t?(J2(t,n),new Z2.ERR_OUT_OF_RANGE(n||\"offset\",\"an integer\",t)):e<0?new Z2.ERR_BUFFER_OUT_OF_BOUNDS:new Z2.ERR_OUT_OF_RANGE(n||\"offset\",`>= ${n?1:0} and <= ${e}`,t)}var Ake=/[^+/0-9A-Za-z-_]/g;function kke(t){if(t=t.split(\"=\")[0],t=t.trim().replace(Ake,\"\"),t.length<2)return\"\";for(;t.length%4!==0;)t=t+\"=\";return t}function xD(t,e){e=e||1/0;let n,r=t.length,o=null,a=[];for(let c=0;c<r;++c){if(n=t.charCodeAt(c),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(c+1===r){(e-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\"Invalid code point\")}return a}function Cke(t){let e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function Tke(t,e){let n,r,o,a=[];for(let c=0;c<t.length&&!((e-=2)<0);++c)n=t.charCodeAt(c),r=n>>8,o=n%256,a.push(o),a.push(r);return a}function jZ(t){return gD.toByteArray(kke(t))}function AA(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function xd(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function SD(t){return t!==t}var _ke=(function(){let t=\"0123456789abcdef\",e=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e})();function $h(t){return typeof BigInt>\"u\"?Mke:t}function Mke(){throw new Error(\"BigInt not supported\")}});var $Z,u=Ve(()=>{\"use strict\";$Z=br($s(),1);globalThis.Buffer=$Z.Buffer});var KZ=Qr(Ii=>{\"use strict\";u();(function(){function t(){if(G=!1,se){var L=Ii.unstable_now();_=L;var U=!0;try{e:{V=!1,D&&(D=!1,J(te),te=-1),O=!0;var W=K;try{t:{for(a(L),R=n(y);R!==null&&!(R.expirationTime>L&&l());){var w=R.callback;if(typeof w==\"function\"){R.callback=null,K=R.priorityLevel;var I=w(R.expirationTime<=L);if(L=Ii.unstable_now(),typeof I==\"function\"){R.callback=I,a(L),U=!0;break t}R===n(y)&&r(y),a(L)}else r(y);R=n(y)}if(R!==null)U=!0;else{var ye=n(A);ye!==null&&f(c,ye.startTime-L),U=!1}}break e}finally{R=null,K=W,O=!1}U=void 0}}finally{U?P():se=!1}}}function e(L,U){var W=L.length;L.push(U);e:for(;0<W;){var w=W-1>>>1,I=L[w];if(0<o(I,U))L[w]=U,L[W]=I,W=w;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var U=L[0],W=L.pop();if(W!==U){L[0]=W;e:for(var w=0,I=L.length,ye=I>>>1;w<ye;){var ne=2*(w+1)-1,Q=L[ne],ie=ne+1,ue=L[ie];if(0>o(Q,W))ie<I&&0>o(ue,Q)?(L[w]=ue,L[ie]=W,w=ie):(L[w]=Q,L[ne]=W,w=ne);else if(ie<I&&0>o(ue,W))L[w]=ue,L[ie]=W,w=ie;else break e}}return U}function o(L,U){var W=L.sortIndex-U.sortIndex;return W!==0?W:L.id-U.id}function a(L){for(var U=n(A);U!==null;){if(U.callback===null)r(A);else if(U.startTime<=L)r(A),U.sortIndex=U.expirationTime,e(y,U);else break;U=n(A)}}function c(L){if(D=!1,a(L),!V)if(n(y)!==null)V=!0,se||(se=!0,P());else{var U=n(A);U!==null&&f(c,U.startTime-L)}}function l(){return G?!0:!(Ii.unstable_now()-_<S)}function f(L,U){te=ee(function(){L(Ii.unstable_now())},U)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ii.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var p=performance;Ii.unstable_now=function(){return p.now()}}else{var m=Date,g=m.now();Ii.unstable_now=function(){return m.now()-g}}var y=[],A=[],T=1,R=null,K=3,O=!1,V=!1,D=!1,G=!1,ee=typeof setTimeout==\"function\"?setTimeout:null,J=typeof clearTimeout==\"function\"?clearTimeout:null,le=typeof setImmediate<\"u\"?setImmediate:null,se=!1,te=-1,S=5,_=-1;if(typeof le==\"function\")var P=function(){le(t)};else if(typeof MessageChannel<\"u\"){var z=new MessageChannel,Y=z.port2;z.port1.onmessage=t,P=function(){Y.postMessage(null)}}else P=function(){ee(t,0)};Ii.unstable_IdlePriority=5,Ii.unstable_ImmediatePriority=1,Ii.unstable_LowPriority=4,Ii.unstable_NormalPriority=3,Ii.unstable_Profiling=null,Ii.unstable_UserBlockingPriority=2,Ii.unstable_cancelCallback=function(L){L.callback=null},Ii.unstable_forceFrameRate=function(L){0>L||125<L?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):S=0<L?Math.floor(1e3/L):5},Ii.unstable_getCurrentPriorityLevel=function(){return K},Ii.unstable_next=function(L){switch(K){case 1:case 2:case 3:var U=3;break;default:U=K}var W=K;K=U;try{return L()}finally{K=W}},Ii.unstable_requestPaint=function(){G=!0},Ii.unstable_runWithPriority=function(L,U){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var W=K;K=L;try{return U()}finally{K=W}},Ii.unstable_scheduleCallback=function(L,U,W){var w=Ii.unstable_now();switch(typeof W==\"object\"&&W!==null?(W=W.delay,W=typeof W==\"number\"&&0<W?w+W:w):W=w,L){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=W+I,L={id:T++,callback:U,priorityLevel:L,startTime:W,expirationTime:I,sortIndex:-1},W>w?(L.sortIndex=W,e(A,L),n(y)===null&&L===n(A)&&(D?(J(te),te=-1):D=!0,f(c,W-w))):(L.sortIndex=I,e(y,L),V||O||(V=!0,se||(se=!0,P()))),L},Ii.unstable_shouldYield=l,Ii.unstable_wrapCallback=function(L){var U=K;return function(){var W=K;K=U;try{return L.apply(this,arguments)}finally{K=W}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var qZ=Qr((tHe,GZ)=>{\"use strict\";u();GZ.exports=KZ()});var WZ=Qr((qr,kA)=>{\"use strict\";u();(function(){function t(Se,it){Object.defineProperty(r.prototype,Se,{get:function(){console.warn(\"%s(...) is deprecated in plain JavaScript React classes. %s\",it[0],it[1])}})}function e(Se){return Se===null||typeof Se!=\"object\"?null:(Se=k&&Se[k]||Se[\"@@iterator\"],typeof Se==\"function\"?Se:null)}function n(Se,it){Se=(Se=Se.constructor)&&(Se.displayName||Se.name)||\"ReactClass\";var Nt=Se+\".\"+it;C[Nt]||(console.error(\"Can\\'t call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",it,Se),C[Nt]=!0)}function r(Se,it,Nt){this.props=Se,this.context=it,this.refs=ae,this.updater=Nt||Z}function o(){}function a(Se,it,Nt){this.props=Se,this.context=it,this.refs=ae,this.updater=Nt||Z}function c(){}function l(Se){return\"\"+Se}function f(Se){try{l(Se);var it=!1}catch{it=!0}if(it){it=console;var Nt=it.error,tn=typeof Symbol==\"function\"&&Symbol.toStringTag&&Se[Symbol.toStringTag]||Se.constructor.name||\"Object\";return Nt.call(it,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",tn),l(Se)}}function p(Se){if(Se==null)return null;if(typeof Se==\"function\")return Se.$$typeof===Pe?null:Se.displayName||Se.name||null;if(typeof Se==\"string\")return Se;switch(Se){case I:return\"Fragment\";case ne:return\"Profiler\";case ye:return\"StrictMode\";case q:return\"Suspense\";case Ee:return\"SuspenseList\";case B:return\"Activity\"}if(typeof Se==\"object\")switch(typeof Se.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),Se.$$typeof){case w:return\"Portal\";case ie:return Se.displayName||\"Context\";case Q:return(Se._context.displayName||\"Context\")+\".Consumer\";case ue:var it=Se.render;return Se=Se.displayName,Se||(Se=it.displayName||it.name||\"\",Se=Se!==\"\"?\"ForwardRef(\"+Se+\")\":\"ForwardRef\"),Se;case we:return it=Se.displayName||null,it!==null?it:p(Se.type)||\"Memo\";case _e:it=Se._payload,Se=Se._init;try{return p(Se(it))}catch{}}return null}function m(Se){if(Se===I)return\"<>\";if(typeof Se==\"object\"&&Se!==null&&Se.$$typeof===_e)return\"<...>\";try{var it=p(Se);return it?\"<\"+it+\">\":\"<...>\"}catch{return\"<...>\"}}function g(){var Se=De.A;return Se===null?null:Se.getOwner()}function y(){return Error(\"react-stack-top-frame\")}function A(Se){if(Re.call(Se,\"key\")){var it=Object.getOwnPropertyDescriptor(Se,\"key\").get;if(it&&it.isReactWarning)return!1}return Se.key!==void 0}function T(Se,it){function Nt(){et||(et=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",it))}Nt.isReactWarning=!0,Object.defineProperty(Se,\"key\",{get:Nt,configurable:!0})}function R(){var Se=p(this.type);return Qe[Se]||(Qe[Se]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),Se=this.props.ref,Se!==void 0?Se:null}function K(Se,it,Nt,tn,pn,kn){var zn=Nt.ref;return Se={$$typeof:W,type:Se,key:it,props:Nt,_owner:tn},(zn!==void 0?zn:null)!==null?Object.defineProperty(Se,\"ref\",{enumerable:!1,get:R}):Object.defineProperty(Se,\"ref\",{enumerable:!1,value:null}),Se._store={},Object.defineProperty(Se._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Se,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Se,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:pn}),Object.defineProperty(Se,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:kn}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se}function O(Se,it){return it=K(Se.type,it,Se.props,Se._owner,Se._debugStack,Se._debugTask),Se._store&&(it._store.validated=Se._store.validated),it}function V(Se){D(Se)?Se._store&&(Se._store.validated=1):typeof Se==\"object\"&&Se!==null&&Se.$$typeof===_e&&(Se._payload.status===\"fulfilled\"?D(Se._payload.value)&&Se._payload.value._store&&(Se._payload.value._store.validated=1):Se._store&&(Se._store.validated=1))}function D(Se){return typeof Se==\"object\"&&Se!==null&&Se.$$typeof===W}function G(Se){var it={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+Se.replace(/[=:]/g,function(Nt){return it[Nt]})}function ee(Se,it){return typeof Se==\"object\"&&Se!==null&&Se.key!=null?(f(Se.key),G(\"\"+Se.key)):it.toString(36)}function J(Se){switch(Se.status){case\"fulfilled\":return Se.value;case\"rejected\":throw Se.reason;default:switch(typeof Se.status==\"string\"?Se.then(c,c):(Se.status=\"pending\",Se.then(function(it){Se.status===\"pending\"&&(Se.status=\"fulfilled\",Se.value=it)},function(it){Se.status===\"pending\"&&(Se.status=\"rejected\",Se.reason=it)})),Se.status){case\"fulfilled\":return Se.value;case\"rejected\":throw Se.reason}}throw Se}function le(Se,it,Nt,tn,pn){var kn=typeof Se;(kn===\"undefined\"||kn===\"boolean\")&&(Se=null);var zn=!1;if(Se===null)zn=!0;else switch(kn){case\"bigint\":case\"string\":case\"number\":zn=!0;break;case\"object\":switch(Se.$$typeof){case W:case w:zn=!0;break;case _e:return zn=Se._init,le(zn(Se._payload),it,Nt,tn,pn)}}if(zn){zn=Se,pn=pn(zn);var _n=tn===\"\"?\".\"+ee(zn,0):tn;return me(pn)?(Nt=\"\",_n!=null&&(Nt=_n.replace(Bt,\"$&/\")+\"/\"),le(pn,it,Nt,\"\",function(_r){return _r})):pn!=null&&(D(pn)&&(pn.key!=null&&(zn&&zn.key===pn.key||f(pn.key)),Nt=O(pn,Nt+(pn.key==null||zn&&zn.key===pn.key?\"\":(\"\"+pn.key).replace(Bt,\"$&/\")+\"/\")+_n),tn!==\"\"&&zn!=null&&D(zn)&&zn.key==null&&zn._store&&!zn._store.validated&&(Nt._store.validated=2),pn=Nt),it.push(pn)),1}if(zn=0,_n=tn===\"\"?\".\":tn+\":\",me(Se))for(var Dn=0;Dn<Se.length;Dn++)tn=Se[Dn],kn=_n+ee(tn,Dn),zn+=le(tn,it,Nt,kn,pn);else if(Dn=e(Se),typeof Dn==\"function\")for(Dn===Se.entries&&(Vt||console.warn(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Vt=!0),Se=Dn.call(Se),Dn=0;!(tn=Se.next()).done;)tn=tn.value,kn=_n+ee(tn,Dn++),zn+=le(tn,it,Nt,kn,pn);else if(kn===\"object\"){if(typeof Se.then==\"function\")return le(J(Se),it,Nt,tn,pn);throw it=String(Se),Error(\"Objects are not valid as a React child (found: \"+(it===\"[object Object]\"?\"object with keys {\"+Object.keys(Se).join(\", \")+\"}\":it)+\"). If you meant to render a collection of children, use an array instead.\")}return zn}function se(Se,it,Nt){if(Se==null)return Se;var tn=[],pn=0;return le(Se,tn,\"\",\"\",function(kn){return it.call(Nt,kn,pn++)}),tn}function te(Se){if(Se._status===-1){var it=Se._ioInfo;it!=null&&(it.start=it.end=performance.now()),it=Se._result;var Nt=it();if(Nt.then(function(pn){if(Se._status===0||Se._status===-1){Se._status=1,Se._result=pn;var kn=Se._ioInfo;kn!=null&&(kn.end=performance.now()),Nt.status===void 0&&(Nt.status=\"fulfilled\",Nt.value=pn)}},function(pn){if(Se._status===0||Se._status===-1){Se._status=2,Se._result=pn;var kn=Se._ioInfo;kn!=null&&(kn.end=performance.now()),Nt.status===void 0&&(Nt.status=\"rejected\",Nt.reason=pn)}}),it=Se._ioInfo,it!=null){it.value=Nt;var tn=Nt.displayName;typeof tn==\"string\"&&(it.name=tn)}Se._status===-1&&(Se._status=0,Se._result=Nt)}if(Se._status===1)return it=Se._result,it===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))\\n\\nDid you accidentally put curly braces around the import?`,it),\"default\"in it||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))`,it),it.default;throw Se._result}function S(){var Se=De.H;return Se===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),Se}function _(){De.asyncTransitions--}function P(Se){if(hn===null)try{var it=(\"require\"+Math.random()).slice(0,7);hn=(kA&&kA[it]).call(kA,\"timers\").setImmediate}catch{hn=function(tn){Yt===!1&&(Yt=!0,typeof MessageChannel>\"u\"&&console.error(\"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"));var pn=new MessageChannel;pn.port1.onmessage=tn,pn.port2.postMessage(void 0)}}return hn(Se)}function z(Se){return 1<Se.length&&typeof AggregateError==\"function\"?new AggregateError(Se):Se[0]}function Y(Se,it){it!==Pn-1&&console.error(\"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"),Pn=it}function L(Se,it,Nt){var tn=De.actQueue;if(tn!==null)if(tn.length!==0)try{U(tn),P(function(){return L(Se,it,Nt)});return}catch(pn){De.thrownErrors.push(pn)}else De.actQueue=null;0<De.thrownErrors.length?(tn=z(De.thrownErrors),De.thrownErrors.length=0,Nt(tn)):it(Se)}function U(Se){if(!Un){Un=!0;var it=0;try{for(;it<Se.length;it++){var Nt=Se[it];do{De.didUsePromise=!1;var tn=Nt(!1);if(tn!==null){if(De.didUsePromise){Se[it]=Nt,Se.splice(0,it);return}Nt=tn}else break}while(!0)}Se.length=0}catch(pn){Se.splice(0,it+1),De.thrownErrors.push(pn)}finally{Un=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var W=Symbol.for(\"react.transitional.element\"),w=Symbol.for(\"react.portal\"),I=Symbol.for(\"react.fragment\"),ye=Symbol.for(\"react.strict_mode\"),ne=Symbol.for(\"react.profiler\"),Q=Symbol.for(\"react.consumer\"),ie=Symbol.for(\"react.context\"),ue=Symbol.for(\"react.forward_ref\"),q=Symbol.for(\"react.suspense\"),Ee=Symbol.for(\"react.suspense_list\"),we=Symbol.for(\"react.memo\"),_e=Symbol.for(\"react.lazy\"),B=Symbol.for(\"react.activity\"),k=Symbol.iterator,C={},Z={isMounted:function(){return!1},enqueueForceUpdate:function(Se){n(Se,\"forceUpdate\")},enqueueReplaceState:function(Se){n(Se,\"replaceState\")},enqueueSetState:function(Se){n(Se,\"setState\")}},X=Object.assign,ae={};Object.freeze(ae),r.prototype.isReactComponent={},r.prototype.setState=function(Se,it){if(typeof Se!=\"object\"&&typeof Se!=\"function\"&&Se!=null)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,Se,it,\"setState\")},r.prototype.forceUpdate=function(Se){this.updater.enqueueForceUpdate(this,Se,\"forceUpdate\")};var de={isMounted:[\"isMounted\",\"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"],replaceState:[\"replaceState\",\"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"]};for(Kn in de)de.hasOwnProperty(Kn)&&t(Kn,de[Kn]);o.prototype=r.prototype,de=a.prototype=new o,de.constructor=a,X(de,r.prototype),de.isPureReactComponent=!0;var me=Array.isArray,Pe=Symbol.for(\"react.client.reference\"),De={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,qe=console.createTask?console.createTask:function(){return null};de={react_stack_bottom_frame:function(Se){return Se()}};var et,ot,Qe={},xt=de.react_stack_bottom_frame.bind(de,y)(),Wt=qe(m(y)),Vt=!1,Bt=/\\\\/+/g,nn=typeof reportError==\"function\"?reportError:function(Se){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var it=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof Se==\"object\"&&Se!==null&&typeof Se.message==\"string\"?String(Se.message):String(Se),error:Se});if(!window.dispatchEvent(it))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",Se);return}console.error(Se)},Yt=!1,hn=null,Pn=0,Mn=!1,Un=!1,Wn=typeof queueMicrotask==\"function\"?function(Se){queueMicrotask(function(){return queueMicrotask(Se)})}:P;de=Object.freeze({__proto__:null,c:function(Se){return S().useMemoCache(Se)}});var Kn={map:se,forEach:function(Se,it,Nt){se(Se,function(){it.apply(this,arguments)},Nt)},count:function(Se){var it=0;return se(Se,function(){it++}),it},toArray:function(Se){return se(Se,function(it){return it})||[]},only:function(Se){if(!D(Se))throw Error(\"React.Children.only expected to receive a single React element child.\");return Se}};qr.Activity=B,qr.Children=Kn,qr.Component=r,qr.Fragment=I,qr.Profiler=ne,qr.PureComponent=a,qr.StrictMode=ye,qr.Suspense=q,qr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=De,qr.__COMPILER_RUNTIME=de,qr.act=function(Se){var it=De.actQueue,Nt=Pn;Pn++;var tn=De.actQueue=it!==null?it:[],pn=!1;try{var kn=Se()}catch(Dn){De.thrownErrors.push(Dn)}if(0<De.thrownErrors.length)throw Y(it,Nt),Se=z(De.thrownErrors),De.thrownErrors.length=0,Se;if(kn!==null&&typeof kn==\"object\"&&typeof kn.then==\"function\"){var zn=kn;return Wn(function(){pn||Mn||(Mn=!0,console.error(\"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"))}),{then:function(Dn,_r){pn=!0,zn.then(function(pr){if(Y(it,Nt),Nt===0){try{U(tn),P(function(){return L(pr,Dn,_r)})}catch(vo){De.thrownErrors.push(vo)}if(0<De.thrownErrors.length){var vr=z(De.thrownErrors);De.thrownErrors.length=0,_r(vr)}}else Dn(pr)},function(pr){Y(it,Nt),0<De.thrownErrors.length&&(pr=z(De.thrownErrors),De.thrownErrors.length=0),_r(pr)})}}}var _n=kn;if(Y(it,Nt),Nt===0&&(U(tn),tn.length!==0&&Wn(function(){pn||Mn||(Mn=!0,console.error(\"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\\\n\\\\nawait act(() => ...)\"))}),De.actQueue=null),0<De.thrownErrors.length)throw Se=z(De.thrownErrors),De.thrownErrors.length=0,Se;return{then:function(Dn,_r){pn=!0,Nt===0?(De.actQueue=tn,P(function(){return L(_n,Dn,_r)})):Dn(_n)}}},qr.cache=function(Se){return function(){return Se.apply(null,arguments)}},qr.cacheSignal=function(){return null},qr.captureOwnerStack=function(){var Se=De.getCurrentStack;return Se===null?null:Se()},qr.cloneElement=function(Se,it,Nt){if(Se==null)throw Error(\"The argument must be a React element, but you passed \"+Se+\".\");var tn=X({},Se.props),pn=Se.key,kn=Se._owner;if(it!=null){var zn;e:{if(Re.call(it,\"ref\")&&(zn=Object.getOwnPropertyDescriptor(it,\"ref\").get)&&zn.isReactWarning){zn=!1;break e}zn=it.ref!==void 0}zn&&(kn=g()),A(it)&&(f(it.key),pn=\"\"+it.key);for(_n in it)!Re.call(it,_n)||_n===\"key\"||_n===\"__self\"||_n===\"__source\"||_n===\"ref\"&&it.ref===void 0||(tn[_n]=it[_n])}var _n=arguments.length-2;if(_n===1)tn.children=Nt;else if(1<_n){zn=Array(_n);for(var Dn=0;Dn<_n;Dn++)zn[Dn]=arguments[Dn+2];tn.children=zn}for(tn=K(Se.type,pn,tn,kn,Se._debugStack,Se._debugTask),pn=2;pn<arguments.length;pn++)V(arguments[pn]);return tn},qr.createContext=function(Se){return Se={$$typeof:ie,_currentValue:Se,_currentValue2:Se,_threadCount:0,Provider:null,Consumer:null},Se.Provider=Se,Se.Consumer={$$typeof:Q,_context:Se},Se._currentRenderer=null,Se._currentRenderer2=null,Se},qr.createElement=function(Se,it,Nt){for(var tn=2;tn<arguments.length;tn++)V(arguments[tn]);tn={};var pn=null;if(it!=null)for(Dn in ot||!(\"__self\"in it)||\"key\"in it||(ot=!0,console.warn(\"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\")),A(it)&&(f(it.key),pn=\"\"+it.key),it)Re.call(it,Dn)&&Dn!==\"key\"&&Dn!==\"__self\"&&Dn!==\"__source\"&&(tn[Dn]=it[Dn]);var kn=arguments.length-2;if(kn===1)tn.children=Nt;else if(1<kn){for(var zn=Array(kn),_n=0;_n<kn;_n++)zn[_n]=arguments[_n+2];Object.freeze&&Object.freeze(zn),tn.children=zn}if(Se&&Se.defaultProps)for(Dn in kn=Se.defaultProps,kn)tn[Dn]===void 0&&(tn[Dn]=kn[Dn]);pn&&T(tn,typeof Se==\"function\"?Se.displayName||Se.name||\"Unknown\":Se);var Dn=1e4>De.recentlyCreatedOwnerStacks++;return K(Se,pn,tn,g(),Dn?Error(\"react-stack-top-frame\"):xt,Dn?qe(m(Se)):Wt)},qr.createRef=function(){var Se={current:null};return Object.seal(Se),Se},qr.forwardRef=function(Se){Se!=null&&Se.$$typeof===we?console.error(\"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"):typeof Se!=\"function\"?console.error(\"forwardRef requires a render function but was given %s.\",Se===null?\"null\":typeof Se):Se.length!==0&&Se.length!==2&&console.error(\"forwardRef render functions accept exactly two parameters: props and ref. %s\",Se.length===1?\"Did you forget to use the ref parameter?\":\"Any additional parameter will be undefined.\"),Se!=null&&Se.defaultProps!=null&&console.error(\"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\");var it={$$typeof:ue,render:Se},Nt;return Object.defineProperty(it,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return Nt},set:function(tn){Nt=tn,Se.name||Se.displayName||(Object.defineProperty(Se,\"name\",{value:tn}),Se.displayName=tn)}}),it},qr.isValidElement=D,qr.lazy=function(Se){Se={_status:-1,_result:Se};var it={$$typeof:_e,_payload:Se,_init:te},Nt={name:\"lazy\",start:-1,end:-1,value:null,owner:null,debugStack:Error(\"react-stack-top-frame\"),debugTask:console.createTask?console.createTask(\"lazy()\"):null};return Se._ioInfo=Nt,it._debugInfo=[{awaited:Nt}],it},qr.memo=function(Se,it){Se==null&&console.error(\"memo: The first argument must be a component. Instead received: %s\",Se===null?\"null\":typeof Se),it={$$typeof:we,type:Se,compare:it===void 0?null:it};var Nt;return Object.defineProperty(it,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return Nt},set:function(tn){Nt=tn,Se.name||Se.displayName||(Object.defineProperty(Se,\"name\",{value:tn}),Se.displayName=tn)}}),it},qr.startTransition=function(Se){var it=De.T,Nt={};Nt._updatedFibers=new Set,De.T=Nt;try{var tn=Se(),pn=De.S;pn!==null&&pn(Nt,tn),typeof tn==\"object\"&&tn!==null&&typeof tn.then==\"function\"&&(De.asyncTransitions++,tn.then(_,_),tn.then(c,nn))}catch(kn){nn(kn)}finally{it===null&&Nt._updatedFibers&&(Se=Nt._updatedFibers.size,Nt._updatedFibers.clear(),10<Se&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\")),it!==null&&Nt.types!==null&&(it.types!==null&&it.types!==Nt.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),it.types=Nt.types),De.T=it}},qr.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},qr.use=function(Se){return S().use(Se)},qr.useActionState=function(Se,it,Nt){return S().useActionState(Se,it,Nt)},qr.useCallback=function(Se,it){return S().useCallback(Se,it)},qr.useContext=function(Se){var it=S();return Se.$$typeof===Q&&console.error(\"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"),it.useContext(Se)},qr.useDebugValue=function(Se,it){return S().useDebugValue(Se,it)},qr.useDeferredValue=function(Se,it){return S().useDeferredValue(Se,it)},qr.useEffect=function(Se,it){return Se==null&&console.warn(\"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),S().useEffect(Se,it)},qr.useEffectEvent=function(Se){return S().useEffectEvent(Se)},qr.useId=function(){return S().useId()},qr.useImperativeHandle=function(Se,it,Nt){return S().useImperativeHandle(Se,it,Nt)},qr.useInsertionEffect=function(Se,it){return Se==null&&console.warn(\"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),S().useInsertionEffect(Se,it)},qr.useLayoutEffect=function(Se,it){return Se==null&&console.warn(\"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),S().useLayoutEffect(Se,it)},qr.useMemo=function(Se,it){return S().useMemo(Se,it)},qr.useOptimistic=function(Se,it){return S().useOptimistic(Se,it)},qr.useReducer=function(Se,it,Nt){return S().useReducer(Se,it,Nt)},qr.useRef=function(Se){return S().useRef(Se)},qr.useState=function(Se){return S().useState(Se)},qr.useSyncExternalStore=function(Se,it,Nt){return S().useSyncExternalStore(Se,it,Nt)},qr.useTransition=function(){return S().useTransition()},qr.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Ww=Qr((oHe,YZ)=>{\"use strict\";u();YZ.exports=WZ()});var ZZ=Qr(Ks=>{\"use strict\";u();(function(){function t(){}function e(g){return\"\"+g}function n(g,y,A){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(T);var R=!1}catch{R=!0}return R&&(console.error(\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",typeof Symbol==\"function\"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||\"Object\"),e(T)),{$$typeof:p,key:T==null?null:\"\"+T,children:g,containerInfo:y,implementation:A}}function r(g,y){if(g===\"font\")return\"\";if(typeof y==\"string\")return y===\"use-credentials\"?y:\"\"}function o(g){return g===null?\"`null`\":g===void 0?\"`undefined`\":g===\"\"?\"an empty string\":\\'something with type \"\\'+typeof g+\\'\"\\'}function a(g){return g===null?\"`null`\":g===void 0?\"`undefined`\":g===\"\"?\"an empty string\":typeof g==\"string\"?JSON.stringify(g):typeof g==\"number\"?\"`\"+g+\"`\":\\'something with type \"\\'+typeof g+\\'\"\\'}function c(){var g=m.H;return g===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=Ww(),f={d:{f:t,r:function(){throw Error(\"Invalid form element. requestFormReset must be passed a form that was rendered by React.\")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},p=Symbol.for(\"react.portal\"),m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"),Ks.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ks.createPortal=function(g,y){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(\"Target container is not a DOM element.\");return n(g,y,null,A)},Ks.flushSync=function(g){var y=m.T,A=f.p;try{if(m.T=null,f.p=2,g)return g()}finally{m.T=y,f.p=A,f.d.f()&&console.error(\"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.\")}},Ks.preconnect=function(g,y){typeof g==\"string\"&&g?y!=null&&typeof y!=\"object\"?console.error(\"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",a(y)):y!=null&&typeof y.crossOrigin!=\"string\"&&console.error(\"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",o(y.crossOrigin)):console.error(\"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(g)),typeof g==\"string\"&&(y?(y=y.crossOrigin,y=typeof y==\"string\"?y===\"use-credentials\"?y:\"\":void 0):y=null,f.d.C(g,y))},Ks.prefetchDNS=function(g){if(typeof g!=\"string\"||!g)console.error(\"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(g));else if(1<arguments.length){var y=arguments[1];typeof y==\"object\"&&y.hasOwnProperty(\"crossOrigin\")?console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",a(y)):console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",a(y))}typeof g==\"string\"&&f.d.D(g)},Ks.preinit=function(g,y){if(typeof g==\"string\"&&g?y==null||typeof y!=\"object\"?console.error(\"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",a(y)):y.as!==\"style\"&&y.as!==\"script\"&&console.error(\\'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".\\',a(y.as)):console.error(\"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(g)),typeof g==\"string\"&&y&&typeof y.as==\"string\"){var A=y.as,T=r(A,y.crossOrigin),R=typeof y.integrity==\"string\"?y.integrity:void 0,K=typeof y.fetchPriority==\"string\"?y.fetchPriority:void 0;A===\"style\"?f.d.S(g,typeof y.precedence==\"string\"?y.precedence:void 0,{crossOrigin:T,integrity:R,fetchPriority:K}):A===\"script\"&&f.d.X(g,{crossOrigin:T,integrity:R,fetchPriority:K,nonce:typeof y.nonce==\"string\"?y.nonce:void 0})}},Ks.preinitModule=function(g,y){var A=\"\";typeof g==\"string\"&&g||(A+=\" The `href` argument encountered was \"+o(g)+\".\"),y!==void 0&&typeof y!=\"object\"?A+=\" The `options` argument encountered was \"+o(y)+\".\":y&&\"as\"in y&&y.as!==\"script\"&&(A+=\" The `as` option encountered was \"+a(y.as)+\".\"),A?console.error(\"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",A):(A=y&&typeof y.as==\"string\"?y.as:\"script\",A)===\"script\"||(A=a(A),console.error(\\'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)\\',A,g)),typeof g==\"string\"&&(typeof y==\"object\"&&y!==null?(y.as==null||y.as===\"script\")&&(A=r(y.as,y.crossOrigin),f.d.M(g,{crossOrigin:A,integrity:typeof y.integrity==\"string\"?y.integrity:void 0,nonce:typeof y.nonce==\"string\"?y.nonce:void 0})):y==null&&f.d.M(g))},Ks.preload=function(g,y){var A=\"\";if(typeof g==\"string\"&&g||(A+=\" The `href` argument encountered was \"+o(g)+\".\"),y==null||typeof y!=\"object\"?A+=\" The `options` argument encountered was \"+o(y)+\".\":typeof y.as==\"string\"&&y.as||(A+=\" The `as` option encountered was \"+o(y.as)+\".\"),A&&console.error(\\'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s\\',A),typeof g==\"string\"&&typeof y==\"object\"&&y!==null&&typeof y.as==\"string\"){A=y.as;var T=r(A,y.crossOrigin);f.d.L(g,A,{crossOrigin:T,integrity:typeof y.integrity==\"string\"?y.integrity:void 0,nonce:typeof y.nonce==\"string\"?y.nonce:void 0,type:typeof y.type==\"string\"?y.type:void 0,fetchPriority:typeof y.fetchPriority==\"string\"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy==\"string\"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet==\"string\"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes==\"string\"?y.imageSizes:void 0,media:typeof y.media==\"string\"?y.media:void 0})}},Ks.preloadModule=function(g,y){var A=\"\";typeof g==\"string\"&&g||(A+=\" The `href` argument encountered was \"+o(g)+\".\"),y!==void 0&&typeof y!=\"object\"?A+=\" The `options` argument encountered was \"+o(y)+\".\":y&&\"as\"in y&&typeof y.as!=\"string\"&&(A+=\" The `as` option encountered was \"+o(y.as)+\".\"),A&&console.error(\\'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s\\',A),typeof g==\"string\"&&(y?(A=r(y.as,y.crossOrigin),f.d.m(g,{as:typeof y.as==\"string\"&&y.as!==\"script\"?y.as:void 0,crossOrigin:A,integrity:typeof y.integrity==\"string\"?y.integrity:void 0})):f.d.m(g))},Ks.requestFormReset=function(g){f.d.r(g)},Ks.unstable_batchedUpdates=function(g,y){return g(y)},Ks.useFormState=function(g,y,A){return c().useFormState(g,y,A)},Ks.useFormStatus=function(){return c().useHostTransitionStatus()},Ks.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var JZ=Qr((cHe,XZ)=>{\"use strict\";u();XZ.exports=ZZ()});var QZ=Qr(CA=>{\"use strict\";u();(function(){function t(i,s){for(i=i.memoizedState;i!==null&&0<s;)i=i.next,s--;return i}function e(i,s,d,h){if(d>=s.length)return h;var v=s[d],E=wa(i)?i.slice():ao({},i);return E[v]=e(i[v],s,d+1,h),E}function n(i,s,d){if(s.length!==d.length)console.warn(\"copyWithRename() expects paths of the same length\");else{for(var h=0;h<d.length-1;h++)if(s[h]!==d[h]){console.warn(\"copyWithRename() expects paths to be the same except for the deepest key\");return}return r(i,s,d,0)}}function r(i,s,d,h){var v=s[h],E=wa(i)?i.slice():ao({},i);return h+1===s.length?(E[d[h]]=E[v],wa(E)?E.splice(v,1):delete E[v]):E[v]=r(i[v],s,d,h+1),E}function o(i,s,d){var h=s[d],v=wa(i)?i.slice():ao({},i);return d+1===s.length?(wa(v)?v.splice(h,1):delete v[h],v):(v[h]=o(i[h],s,d+1),v)}function a(){return!1}function c(){return null}function l(){console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\")}function f(){console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\")}function p(){}function m(){}function g(i){var s=[];return i.forEach(function(d){s.push(d)}),s.sort().join(\", \")}function y(i,s,d,h){return new ys(i,s,d,h)}function A(i,s){i.context===Sh&&(PP(i.current,2,s,i,null,null),s2())}function T(i,s){if(yl!==null){var d=s.staleFamilies;s=s.updatedFamilies,Hb(),dl(i.current,s,d),s2()}}function R(i){yl=i}function K(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function O(i){var s=i,d=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(d=s.return),i=s.return;while(i)}return s.tag===3?d:null}function V(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function D(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function G(i){if(O(i)!==i)throw Error(\"Unable to find node on an unmounted component.\")}function ee(i){var s=i.alternate;if(!s){if(s=O(i),s===null)throw Error(\"Unable to find node on an unmounted component.\");return s!==i?null:i}for(var d=i,h=s;;){var v=d.return;if(v===null)break;var E=v.alternate;if(E===null){if(h=v.return,h!==null){d=h;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===d)return G(v),i;if(E===h)return G(v),s;E=E.sibling}throw Error(\"Unable to find node on an unmounted component.\")}if(d.return!==h.return)d=v,h=E;else{for(var j=!1,oe=v.child;oe;){if(oe===d){j=!0,d=v,h=E;break}if(oe===h){j=!0,h=v,d=E;break}oe=oe.sibling}if(!j){for(oe=E.child;oe;){if(oe===d){j=!0,d=E,h=v;break}if(oe===h){j=!0,h=E,d=v;break}oe=oe.sibling}if(!j)throw Error(\"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\")}}if(d.alternate!==h)throw Error(\"Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.\")}if(d.tag!==3)throw Error(\"Unable to find node on an unmounted component.\");return d.stateNode.current===d?i:s}function J(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=J(i),s!==null)return s;i=i.sibling}return null}function le(i){return i===null||typeof i!=\"object\"?null:(i=Lq&&i[Lq]||i[\"@@iterator\"],typeof i==\"function\"?i:null)}function se(i){if(i==null)return null;if(typeof i==\"function\")return i.$$typeof===nAe?null:i.displayName||i.name||null;if(typeof i==\"string\")return i;switch(i){case h2:return\"Fragment\";case UP:return\"Profiler\";case m7:return\"StrictMode\";case VP:return\"Suspense\";case HP:return\"SuspenseList\";case jP:return\"Activity\"}if(typeof i==\"object\")switch(typeof i.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),i.$$typeof){case p2:return\"Portal\";case sd:return i.displayName||\"Context\";case zP:return(i._context.displayName||\"Context\")+\".Consumer\";case Jb:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||\"\",i=i!==\"\"?\"ForwardRef(\"+i+\")\":\"ForwardRef\"),i;case g7:return s=i.displayName||null,s!==null?s:se(i.type)||\"Memo\";case Hc:s=i._payload,i=i._init;try{return se(i(s))}catch{}}return null}function te(i){return typeof i.tag==\"number\"?S(i):typeof i.name==\"string\"?i.name:null}function S(i){var s=i.type;switch(i.tag){case 31:return\"Activity\";case 24:return\"Cache\";case 9:return(s._context.displayName||\"Context\")+\".Consumer\";case 10:return s.displayName||\"Context\";case 18:return\"DehydratedFragment\";case 11:return i=s.render,i=i.displayName||i.name||\"\",s.displayName||(i!==\"\"?\"ForwardRef(\"+i+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return s;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return se(s);case 8:return s===m7?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 14:case 15:if(typeof s==\"function\")return s.displayName||s.name||null;if(typeof s==\"string\")return s;break;case 29:if(s=i._debugInfo,s!=null){for(var d=s.length-1;0<=d;d--)if(typeof s[d].name==\"string\")return s[d].name}if(i.return!==null)return S(i.return)}return null}function _(i){return{current:i}}function P(i,s){0>kf?console.error(\"Unexpected pop.\"):(s!==KP[kf]&&console.error(\"Unexpected Fiber popped.\"),i.current=$P[kf],$P[kf]=null,KP[kf]=null,kf--)}function z(i,s,d){kf++,$P[kf]=i.current,KP[kf]=d,i.current=s}function Y(i){return i===null&&console.error(\"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"),i}function L(i,s){z(yh,s,i),z(Qb,i,i),z(gh,null,i);var d=s.nodeType;switch(d){case 9:case 11:d=d===9?\"#document\":\"#fragment\",s=(s=s.documentElement)&&(s=s.namespaceURI)?sq(s):Uf;break;default:if(d=s.tagName,s=s.namespaceURI)s=sq(s),s=cq(s,d);else switch(d){case\"svg\":s=W2;break;case\"math\":s=hA;break;default:s=Uf}}d=d.toLowerCase(),d=Ae(null,d),d={context:s,ancestorInfo:d},P(gh,i),z(gh,d,i)}function U(i){P(gh,i),P(Qb,i),P(yh,i)}function W(){return Y(gh.current)}function w(i){i.memoizedState!==null&&z(y7,i,i);var s=Y(gh.current),d=i.type,h=cq(s.context,d);d=Ae(s.ancestorInfo,d),h={context:h,ancestorInfo:d},s!==h&&(z(Qb,i,i),z(gh,h,i))}function I(i){Qb.current===i&&(P(gh,i),P(Qb,i)),y7.current===i&&(P(y7,i),$w._currentValue=a1)}function ye(){}function ne(){if(ew===0){Nq=console.log,Uq=console.info,zq=console.warn,Vq=console.error,Hq=console.group,jq=console.groupCollapsed,$q=console.groupEnd;var i={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}ew++}function Q(){if(ew--,ew===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ao({},i,{value:Nq}),info:ao({},i,{value:Uq}),warn:ao({},i,{value:zq}),error:ao({},i,{value:Vq}),group:ao({},i,{value:Hq}),groupCollapsed:ao({},i,{value:jq}),groupEnd:ao({},i,{value:$q})})}0>ew&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function ie(i){var s=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,i=i.stack,Error.prepareStackTrace=s,i.startsWith(`Error: react-stack-top-frame\\n`)&&(i=i.slice(29)),s=i.indexOf(`\\n`),s!==-1&&(i=i.slice(s+1)),s=i.indexOf(\"react_stack_bottom_frame\"),s!==-1&&(s=i.lastIndexOf(`\\n`,s)),s!==-1)i=i.slice(0,s);else return\"\";return i}function ue(i){if(GP===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\\\\n( *(at )?)/);GP=s&&s[1]||\"\",Kq=-1<d.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<d.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+GP+i+Kq}function q(i,s){if(!i||qP)return\"\";var d=WP.get(i);if(d!==void 0)return d;qP=!0,d=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var h=null;h=an.H,an.H=null,ne();try{var v={DetermineComponentFrameRoot:function(){try{if(s){var pt=function(){throw Error()};if(Object.defineProperty(pt.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(pt,[])}catch(er){var qt=er}Reflect.construct(i,[],pt)}else{try{pt.call()}catch(er){qt=er}i.call(pt.prototype)}}else{try{throw Error()}catch(er){qt=er}(pt=i())&&typeof pt.catch==\"function\"&&pt.catch(function(){})}}catch(er){if(er&&qt&&typeof er.stack==\"string\")return[er.stack,qt.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var E=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,\"name\");E&&E.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var j=v.DetermineComponentFrameRoot(),oe=j[0],ke=j[1];if(oe&&ke){var Fe=oe.split(`\\n`),Ct=ke.split(`\\n`);for(j=E=0;E<Fe.length&&!Fe[E].includes(\"DetermineComponentFrameRoot\");)E++;for(;j<Ct.length&&!Ct[j].includes(\"DetermineComponentFrameRoot\");)j++;if(E===Fe.length||j===Ct.length)for(E=Fe.length-1,j=Ct.length-1;1<=E&&0<=j&&Fe[E]!==Ct[j];)j--;for(;1<=E&&0<=j;E--,j--)if(Fe[E]!==Ct[j]){if(E!==1||j!==1)do if(E--,j--,0>j||Fe[E]!==Ct[j]){var Tt=`\\n`+Fe[E].replace(\" at new \",\" at \");return i.displayName&&Tt.includes(\"<anonymous>\")&&(Tt=Tt.replace(\"<anonymous>\",i.displayName)),typeof i==\"function\"&&WP.set(i,Tt),Tt}while(1<=E&&0<=j);break}}}finally{qP=!1,an.H=h,Q(),Error.prepareStackTrace=d}return Fe=(Fe=i?i.displayName||i.name:\"\")?ue(Fe):\"\",typeof i==\"function\"&&WP.set(i,Fe),Fe}function Ee(i,s){switch(i.tag){case 26:case 27:case 5:return ue(i.type);case 16:return ue(\"Lazy\");case 13:return i.child!==s&&s!==null?ue(\"Suspense Fallback\"):ue(\"Suspense\");case 19:return ue(\"SuspenseList\");case 0:case 15:return q(i.type,!1);case 11:return q(i.type.render,!1);case 1:return q(i.type,!0);case 31:return ue(\"Activity\");default:return\"\"}}function we(i){try{var s=\"\",d=null;do{s+=Ee(i,d);var h=i._debugInfo;if(h)for(var v=h.length-1;0<=v;v--){var E=h[v];if(typeof E.name==\"string\"){var j=s;e:{var oe=E.name,ke=E.env,Fe=E.debugLocation;if(Fe!=null){var Ct=ie(Fe),Tt=Ct.lastIndexOf(`\\n`),pt=Tt===-1?Ct:Ct.slice(Tt+1);if(pt.indexOf(oe)!==-1){var qt=`\\n`+pt;break e}}qt=ue(oe+(ke?\" [\"+ke+\"]\":\"\"))}s=j+qt}}d=i,i=i.return}while(i);return s}catch(er){return`\\nError generating stack: `+er.message+`\\n`+er.stack}}function _e(i){return(i=i?i.displayName||i.name:\"\")?ue(i):\"\"}function B(){if(jc===null)return null;var i=jc._debugOwner;return i!=null?te(i):null}function k(){if(jc===null)return\"\";var i=jc;try{var s=\"\";switch(i.tag===6&&(i=i.return),i.tag){case 26:case 27:case 5:s+=ue(i.type);break;case 13:s+=ue(\"Suspense\");break;case 19:s+=ue(\"SuspenseList\");break;case 31:s+=ue(\"Activity\");break;case 30:case 0:case 15:case 1:i._debugOwner||s!==\"\"||(s+=_e(i.type));break;case 11:i._debugOwner||s!==\"\"||(s+=_e(i.type.render))}for(;i;)if(typeof i.tag==\"number\"){var d=i;i=d._debugOwner;var h=d._debugStack;if(i&&h){var v=ie(h);v!==\"\"&&(s+=`\\n`+v)}}else if(i.debugStack!=null){var E=i.debugStack;(i=i.owner)&&E&&(s+=`\\n`+ie(E))}else break;var j=s}catch(oe){j=`\\nError generating stack: `+oe.message+`\\n`+oe.stack}return j}function C(i,s,d,h,v,E,j){var oe=jc;Z(i);try{return i!==null&&i._debugTask?i._debugTask.run(s.bind(null,d,h,v,E,j)):s(d,h,v,E,j)}finally{Z(oe)}throw Error(\"runWithFiberInDEV should never be called in production. This is a bug in React.\")}function Z(i){an.getCurrentStack=i===null?null:k,cd=!1,jc=i}function X(i){return typeof Symbol==\"function\"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||\"Object\"}function ae(i){try{return de(i),!1}catch{return!0}}function de(i){return\"\"+i}function me(i,s){if(ae(i))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",s,X(i)),de(i)}function Pe(i,s){if(ae(i))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",s,X(i)),de(i)}function De(i){if(ae(i))return console.error(\"Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.\",X(i)),de(i)}function Re(i){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\")return!1;var s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(s.isDisabled)return!0;if(!s.supportsFiber)return console.error(\"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools\"),!0;try{g2=s.inject(i),xs=s}catch(d){console.error(\"React instrumentation encountered an error: %o.\",d)}return!!s.checkDCE}function qe(i){if(typeof lAe==\"function\"&&uAe(i),xs&&typeof xs.setStrictMode==\"function\")try{xs.setStrictMode(g2,i)}catch(s){ld||(ld=!0,console.error(\"React instrumentation encountered an error: %o\",s))}}function et(i){return i>>>=0,i===0?32:31-(dAe(i)/fAe|0)|0}function ot(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),i}}function Qe(i,s,d){var h=i.pendingLanes;if(h===0)return 0;var v=0,E=i.suspendedLanes,j=i.pingedLanes;i=i.warmLanes;var oe=h&134217727;return oe!==0?(h=oe&~E,h!==0?v=ot(h):(j&=oe,j!==0?v=ot(j):d||(d=oe&~i,d!==0&&(v=ot(d))))):(oe=h&~E,oe!==0?v=ot(oe):j!==0?v=ot(j):d||(d=h&~i,d!==0&&(v=ot(d)))),v===0?0:s!==0&&s!==v&&(s&E)===0&&(E=v&-v,d=s&-s,E>=d||E===32&&(d&4194048)!==0)?s:v}function xt(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function Wt(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),-1}}function Vt(){var i=b7;return b7<<=1,(b7&62914560)===0&&(b7=4194304),i}function Bt(i){for(var s=[],d=0;31>d;d++)s.push(i);return s}function nn(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Yt(i,s,d,h,v,E){var j=i.pendingLanes;i.pendingLanes=d,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=d,i.entangledLanes&=d,i.errorRecoveryDisabledLanes&=d,i.shellSuspendCounter=0;var oe=i.entanglements,ke=i.expirationTimes,Fe=i.hiddenUpdates;for(d=j&~d;0<d;){var Ct=31-Os(d),Tt=1<<Ct;oe[Ct]=0,ke[Ct]=-1;var pt=Fe[Ct];if(pt!==null)for(Fe[Ct]=null,Ct=0;Ct<pt.length;Ct++){var qt=pt[Ct];qt!==null&&(qt.lane&=-536870913)}d&=~Tt}h!==0&&hn(i,h,0),E!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=E&~(j&~s))}function hn(i,s,d){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Os(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|d&261930}function Pn(i,s){var d=i.entangledLanes|=s;for(i=i.entanglements;d;){var h=31-Os(d),v=1<<h;v&s|i[h]&s&&(i[h]|=s),d&=~v}}function Mn(i,s){var d=s&-s;return d=(d&42)!==0?1:Un(d),(d&(i.suspendedLanes|s))!==0?0:d}function Un(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Wn(i,s,d){if(ud)for(i=i.pendingUpdatersLaneMap;0<d;){var h=31-Os(d),v=1<<h;i[h].add(s),d&=~v}}function Kn(i,s){if(ud)for(var d=i.pendingUpdatersLaneMap,h=i.memoizedUpdaters;0<s;){var v=31-Os(s);i=1<<v,v=d[v],0<v.size&&(v.forEach(function(E){var j=E.alternate;j!==null&&h.has(j)||h.add(E)}),v.clear()),s&=~i}}function Se(i){return i&=-i,$c!==0&&$c<i?lu!==0&&lu<i?(i&134217727)!==0?dd:w7:lu:$c}function it(){var i=No.p;return i!==0?i:(i=window.event,i===void 0?dd:Iq(i.type))}function Nt(i,s){var d=No.p;try{return No.p=i,s()}finally{No.p=d}}function tn(i){delete i[Za],delete i[Ls],delete i[QP],delete i[pAe],delete i[hAe]}function pn(i){var s=i[Za];if(s)return s;for(var d=i.parentNode;d;){if(s=d[xh]||d[Za]){if(d=s.alternate,s.child!==null||d!==null&&d.child!==null)for(i=gq(i);i!==null;){if(d=i[Za])return d;i=gq(i)}return s}i=d,d=i.parentNode}return null}function kn(i){if(i=i[Za]||i[xh]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function zn(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(\"getNodeFromInstance: Invalid argument.\")}function _n(i){var s=i[Gq];return s||(s=i[Gq]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Dn(i){i[tw]=!0}function _r(i,s){pr(i,s),pr(i+\"Capture\",s)}function pr(i,s){N0[i]&&console.error(\"EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.\",i),N0[i]=s;var d=i.toLowerCase();for(eB[d]=i,i===\"onDoubleClick\"&&(eB.ondblclick=i),i=0;i<s.length;i++)qq.add(s[i])}function vr(i,s){mAe[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||console.error(i===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),s.onChange||s.readOnly||s.disabled||s.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function vo(i){return cu.call(Yq,i)?!0:cu.call(Wq,i)?!1:gAe.test(i)?Yq[i]=!0:(Wq[i]=!0,console.error(\"Invalid attribute name: `%s`\",i),!1)}function jr(i,s,d){if(vo(s)){if(!i.hasAttribute(s)){switch(typeof d){case\"symbol\":case\"object\":return d;case\"function\":return d;case\"boolean\":if(d===!1)return d}return d===void 0?void 0:null}return i=i.getAttribute(s),i===\"\"&&d===!0?!0:(me(d,s),i===\"\"+d?d:i)}}function Mr(i,s,d){if(vo(s))if(d===null)i.removeAttribute(s);else{switch(typeof d){case\"undefined\":case\"function\":case\"symbol\":i.removeAttribute(s);return;case\"boolean\":var h=s.toLowerCase().slice(0,5);if(h!==\"data-\"&&h!==\"aria-\"){i.removeAttribute(s);return}}me(d,s),i.setAttribute(s,\"\"+d)}}function wi(i,s,d){if(d===null)i.removeAttribute(s);else{switch(typeof d){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":i.removeAttribute(s);return}me(d,s),i.setAttribute(s,\"\"+d)}}function fe(i,s,d,h){if(h===null)i.removeAttribute(d);else{switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":i.removeAttribute(d);return}me(h,d),i.setAttributeNS(s,d,\"\"+h)}}function Be(i){switch(typeof i){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return i;case\"object\":return De(i),i;default:return\"\"}}function $(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()===\"input\"&&(s===\"checkbox\"||s===\"radio\")}function M(i,s,d){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof h<\"u\"&&typeof h.get==\"function\"&&typeof h.set==\"function\"){var v=h.get,E=h.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return v.call(this)},set:function(j){De(j),d=\"\"+j,E.call(this,j)}}),Object.defineProperty(i,s,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(j){De(j),d=\"\"+j},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function re(i){if(!i._valueTracker){var s=$(i)?\"checked\":\"value\";i._valueTracker=M(i,s,\"\"+i[s])}}function H(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var d=s.getValue(),h=\"\";return i&&(h=$(i)?i.checked?\"true\":\"false\":i.value),i=h,i!==d?(s.setValue(i),!0):!1}function he(i){if(i=i||(typeof document<\"u\"?document:void 0),typeof i>\"u\")return null;try{return i.activeElement||i.body}catch{return i.body}}function He(i){return i.replace(yAe,function(s){return\"\\\\\\\\\"+s.charCodeAt(0).toString(16)+\" \"})}function nt(i,s){s.checked===void 0||s.defaultChecked===void 0||Xq||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",B()||\"A component\",s.type),Xq=!0),s.value===void 0||s.defaultValue===void 0||Zq||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",B()||\"A component\",s.type),Zq=!0)}function Rt(i,s,d,h,v,E,j,oe){i.name=\"\",j!=null&&typeof j!=\"function\"&&typeof j!=\"symbol\"&&typeof j!=\"boolean\"?(me(j,\"type\"),i.type=j):i.removeAttribute(\"type\"),s!=null?j===\"number\"?(s===0&&i.value===\"\"||i.value!=s)&&(i.value=\"\"+Be(s)):i.value!==\"\"+Be(s)&&(i.value=\"\"+Be(s)):j!==\"submit\"&&j!==\"reset\"||i.removeAttribute(\"value\"),s!=null?Tn(i,j,Be(s)):d!=null?Tn(i,j,Be(d)):h!=null&&i.removeAttribute(\"value\"),v==null&&E!=null&&(i.defaultChecked=!!E),v!=null&&(i.checked=v&&typeof v!=\"function\"&&typeof v!=\"symbol\"),oe!=null&&typeof oe!=\"function\"&&typeof oe!=\"symbol\"&&typeof oe!=\"boolean\"?(me(oe,\"name\"),i.name=\"\"+Be(oe)):i.removeAttribute(\"name\")}function Ft(i,s,d,h,v,E,j,oe){if(E!=null&&typeof E!=\"function\"&&typeof E!=\"symbol\"&&typeof E!=\"boolean\"&&(me(E,\"type\"),i.type=E),s!=null||d!=null){if(!(E!==\"submit\"&&E!==\"reset\"||s!=null)){re(i);return}d=d!=null?\"\"+Be(d):\"\",s=s!=null?\"\"+Be(s):d,oe||s===i.value||(i.value=s),i.defaultValue=s}h=h??v,h=typeof h!=\"function\"&&typeof h!=\"symbol\"&&!!h,i.checked=oe?i.checked:!!h,i.defaultChecked=!!h,j!=null&&typeof j!=\"function\"&&typeof j!=\"symbol\"&&typeof j!=\"boolean\"&&(me(j,\"name\"),i.name=j),re(i)}function Tn(i,s,d){s===\"number\"&&he(i.ownerDocument)===i||i.defaultValue===\"\"+d||(i.defaultValue=\"\"+d)}function $t(i,s){s.value==null&&(typeof s.children==\"object\"&&s.children!==null?NP.Children.forEach(s.children,function(d){d==null||typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"||Qq||(Qq=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\"))}):s.dangerouslySetInnerHTML==null||eW||(eW=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\"))),s.selected==null||Jq||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),Jq=!0)}function Gn(){var i=B();return i?`\\n\\nCheck the render method of \\\\``+i+\"`.\":\"\"}function cn(i,s,d,h){if(i=i.options,s){s={};for(var v=0;v<d.length;v++)s[\"$\"+d[v]]=!0;for(d=0;d<i.length;d++)v=s.hasOwnProperty(\"$\"+i[d].value),i[d].selected!==v&&(i[d].selected=v),v&&h&&(i[d].defaultSelected=!0)}else{for(d=\"\"+Be(d),s=null,v=0;v<i.length;v++){if(i[v].value===d){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}s!==null||i[v].disabled||(s=i[v])}s!==null&&(s.selected=!0)}}function Fn(i,s){for(i=0;i<nW.length;i++){var d=nW[i];if(s[d]!=null){var h=wa(s[d]);s.multiple&&!h?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s\",d,Gn()):!s.multiple&&h&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s\",d,Gn())}}s.value===void 0||s.defaultValue===void 0||tW||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),tW=!0)}function Nn(i,s){s.value===void 0||s.defaultValue===void 0||rW||(console.error(\"%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\",B()||\"A component\"),rW=!0),s.children!=null&&s.value==null&&console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\")}function Hn(i,s,d){if(s!=null&&(s=\"\"+Be(s),s!==i.value&&(i.value=s),d==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=d!=null?\"\"+Be(d):\"\"}function jn(i,s,d,h){if(s==null){if(h!=null){if(d!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(wa(h)){if(1<h.length)throw Error(\"<textarea> can only have at most one child.\");h=h[0]}d=h}d==null&&(d=\"\"),s=d}d=Be(s),i.defaultValue=d,h=i.textContent,h===d&&h!==\"\"&&h!==null&&(i.value=h),re(i)}function In(i,s){return i.serverProps===void 0&&i.serverTail.length===0&&i.children.length===1&&3<i.distanceFromLeaf&&i.distanceFromLeaf>15-s?In(i.children[0],s):i}function sn(i){return\"  \"+\"  \".repeat(i)}function xn(i){return\"+ \"+\"  \".repeat(i)}function Kt(i){return\"- \"+\"  \".repeat(i)}function rn(i){switch(i.tag){case 26:case 27:case 5:return i.type;case 16:return\"Lazy\";case 31:return\"Activity\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 0:case 15:return i=i.type,i.displayName||i.name||null;case 11:return i=i.type.render,i.displayName||i.name||null;case 1:return i=i.type,i.displayName||i.name||null;default:return null}}function Ht(i,s){return oW.test(i)?(i=JSON.stringify(i),i.length>s-2?8>s?\\'{\"...\"}\\':\"{\"+i.slice(0,s-7)+\\'...\"}\\':\"{\"+i+\"}\"):i.length>s?5>s?\\'{\"...\"}\\':i.slice(0,s-3)+\"...\":i}function Gt(i,s,d){var h=120-2*d;if(s===null)return xn(d)+Ht(i,h)+`\\n`;if(typeof s==\"string\"){for(var v=0;v<s.length&&v<i.length&&s.charCodeAt(v)===i.charCodeAt(v);v++);return v>h-8&&10<v&&(i=\"...\"+i.slice(v-8),s=\"...\"+s.slice(v-8)),xn(d)+Ht(i,h)+`\\n`+Kt(d)+Ht(s,h)+`\\n`}return sn(d)+Ht(i,h)+`\\n`}function vt(i){return Object.prototype.toString.call(i).replace(/^\\\\[object (.*)\\\\]$/,function(s,d){return d})}function ft(i,s){switch(typeof i){case\"string\":return i=JSON.stringify(i),i.length>s?5>s?\\'\"...\"\\':i.slice(0,s-4)+\\'...\"\\':i;case\"object\":if(i===null)return\"null\";if(wa(i))return\"[...]\";if(i.$$typeof===ad)return(s=se(i.type))?\"<\"+s+\">\":\"<...>\";var d=vt(i);if(d===\"Object\"){d=\"\",s-=2;for(var h in i)if(i.hasOwnProperty(h)){var v=JSON.stringify(h);if(v!==\\'\"\\'+h+\\'\"\\'&&(h=v),s-=h.length-2,v=ft(i[h],15>s?s:15),s-=v.length,0>s){d+=d===\"\"?\"...\":\", ...\";break}d+=(d===\"\"?\"\":\",\")+h+\":\"+v}return\"{\"+d+\"}\"}return d;case\"function\":return(s=i.displayName||i.name)?\"function \"+s:\"function\";default:return String(i)}}function at(i,s){return typeof i!=\"string\"||oW.test(i)?\"{\"+ft(i,s-2)+\"}\":i.length>s-2?5>s?\\'\"...\"\\':\\'\"\\'+i.slice(0,s-5)+\\'...\"\\':\\'\"\\'+i+\\'\"\\'}function rt(i,s,d){var h=120-d.length-i.length,v=[],E;for(E in s)if(s.hasOwnProperty(E)&&E!==\"children\"){var j=at(s[E],120-d.length-E.length-1);h-=E.length+j.length+2,v.push(E+\"=\"+j)}return v.length===0?d+\"<\"+i+`>\\n`:0<h?d+\"<\"+i+\" \"+v.join(\" \")+`>\\n`:d+\"<\"+i+`\\n`+d+\"  \"+v.join(`\\n`+d+\"  \")+`\\n`+d+`>\\n`}function lt(i,s,d){var h=\"\",v=ao({},s),E;for(E in i)if(i.hasOwnProperty(E)){delete v[E];var j=120-2*d-E.length-2,oe=ft(i[E],j);s.hasOwnProperty(E)?(j=ft(s[E],j),h+=xn(d)+E+\": \"+oe+`\\n`,h+=Kt(d)+E+\": \"+j+`\\n`):h+=xn(d)+E+\": \"+oe+`\\n`}for(var ke in v)v.hasOwnProperty(ke)&&(i=ft(v[ke],120-2*d-ke.length-2),h+=Kt(d)+ke+\": \"+i+`\\n`);return h}function Et(i,s,d,h){var v=\"\",E=new Map;for(Fe in d)d.hasOwnProperty(Fe)&&E.set(Fe.toLowerCase(),Fe);if(E.size===1&&E.has(\"children\"))v+=rt(i,s,sn(h));else{for(var j in s)if(s.hasOwnProperty(j)&&j!==\"children\"){var oe=120-2*(h+1)-j.length-1,ke=E.get(j.toLowerCase());if(ke!==void 0){E.delete(j.toLowerCase());var Fe=s[j];ke=d[ke];var Ct=at(Fe,oe);oe=at(ke,oe),typeof Fe==\"object\"&&Fe!==null&&typeof ke==\"object\"&&ke!==null&&vt(Fe)===\"Object\"&&vt(ke)===\"Object\"&&(2<Object.keys(Fe).length||2<Object.keys(ke).length||-1<Ct.indexOf(\"...\")||-1<oe.indexOf(\"...\"))?v+=sn(h+1)+j+`={{\\n`+lt(Fe,ke,h+2)+sn(h+1)+`}}\\n`:(v+=xn(h+1)+j+\"=\"+Ct+`\\n`,v+=Kt(h+1)+j+\"=\"+oe+`\\n`)}else v+=sn(h+1)+j+\"=\"+at(s[j],oe)+`\\n`}E.forEach(function(Tt){if(Tt!==\"children\"){var pt=120-2*(h+1)-Tt.length-1;v+=Kt(h+1)+Tt+\"=\"+at(d[Tt],pt)+`\\n`}}),v=v===\"\"?sn(h)+\"<\"+i+`>\\n`:sn(h)+\"<\"+i+`\\n`+v+sn(h)+`>\\n`}return i=d.children,s=s.children,typeof i==\"string\"||typeof i==\"number\"||typeof i==\"bigint\"?(E=\"\",(typeof s==\"string\"||typeof s==\"number\"||typeof s==\"bigint\")&&(E=\"\"+s),v+=Gt(E,\"\"+i,h+1)):(typeof s==\"string\"||typeof s==\"number\"||typeof s==\"bigint\")&&(v=i==null?v+Gt(\"\"+s,null,h+1):v+Gt(\"\"+s,void 0,h+1)),v}function Ut(i,s){var d=rn(i);if(d===null){for(d=\"\",i=i.child;i;)d+=Ut(i,s),i=i.sibling;return d}return sn(s)+\"<\"+d+`>\\n`}function xe(i,s){var d=In(i,s);if(d!==i&&(i.children.length!==1||i.children[0]!==d))return sn(s)+`...\\n`+xe(d,s+1);d=\"\";var h=i.fiber._debugInfo;if(h)for(var v=0;v<h.length;v++){var E=h[v].name;typeof E==\"string\"&&(d+=sn(s)+\"<\"+E+`>\\n`,s++)}if(h=\"\",v=i.fiber.pendingProps,i.fiber.tag===6)h=Gt(v,i.serverProps,s),s++;else if(E=rn(i.fiber),E!==null)if(i.serverProps===void 0){h=s;var j=120-2*h-E.length-2,oe=\"\";for(Fe in v)if(v.hasOwnProperty(Fe)&&Fe!==\"children\"){var ke=at(v[Fe],15);if(j-=Fe.length+ke.length+2,0>j){oe+=\" ...\";break}oe+=\" \"+Fe+\"=\"+ke}h=sn(h)+\"<\"+E+oe+`>\\n`,s++}else i.serverProps===null?(h=rt(E,v,xn(s)),s++):typeof i.serverProps==\"string\"?console.error(\"Should not have matched a non HostText fiber to a Text node. This is a bug in React.\"):(h=Et(E,v,i.serverProps,s),s++);var Fe=\"\";for(v=i.fiber.child,E=0;v&&E<i.children.length;)j=i.children[E],j.fiber===v?(Fe+=xe(j,s),E++):Fe+=Ut(v,s),v=v.sibling;for(v&&0<i.children.length&&(Fe+=sn(s)+`...\\n`),v=i.serverTail,i.serverProps===null&&s--,i=0;i<v.length;i++)E=v[i],Fe=typeof E==\"string\"?Fe+(Kt(s)+Ht(E,120-2*s)+`\\n`):Fe+rt(E.type,E.props,Kt(s));return d+h+Fe}function Ne(i){try{return`\\n\\n`+xe(i,0)}catch{return\"\"}}function ze(i,s,d){for(var h=s,v=null,E=0;h;)h===i&&(E=0),v={fiber:h,children:v!==null?[v]:[],serverProps:h===s?d:h===i?null:void 0,serverTail:[],distanceFromLeaf:E},E++,h=h.return;return v!==null?Ne(v).replaceAll(/^[+-]/gm,\">\"):\"\"}function Ae(i,s){var d=ao({},i||aW),h={tag:s};return iW.indexOf(s)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),xAe.indexOf(s)!==-1&&(d.pTagInButtonScope=null),vAe.indexOf(s)!==-1&&s!==\"address\"&&s!==\"div\"&&s!==\"p\"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=h,s===\"form\"&&(d.formTag=h),s===\"a\"&&(d.aTagInScope=h),s===\"button\"&&(d.buttonTagInScope=h),s===\"nobr\"&&(d.nobrTagInScope=h),s===\"p\"&&(d.pTagInButtonScope=h),s===\"li\"&&(d.listItemTagAutoclosing=h),(s===\"dd\"||s===\"dt\")&&(d.dlItemTagAutoclosing=h),s===\"#document\"||s===\"html\"?d.containerTagInScope=null:d.containerTagInScope||(d.containerTagInScope=h),i!==null||s!==\"#document\"&&s!==\"html\"&&s!==\"body\"?d.implicitRootScope===!0&&(d.implicitRootScope=!1):d.implicitRootScope=!0,d}function tt(i,s,d){switch(s){case\"select\":return i===\"hr\"||i===\"option\"||i===\"optgroup\"||i===\"script\"||i===\"template\"||i===\"#text\";case\"optgroup\":return i===\"option\"||i===\"#text\";case\"option\":return i===\"#text\";case\"tr\":return i===\"th\"||i===\"td\"||i===\"style\"||i===\"script\"||i===\"template\";case\"tbody\":case\"thead\":case\"tfoot\":return i===\"tr\"||i===\"style\"||i===\"script\"||i===\"template\";case\"colgroup\":return i===\"col\"||i===\"template\";case\"table\":return i===\"caption\"||i===\"colgroup\"||i===\"tbody\"||i===\"tfoot\"||i===\"thead\"||i===\"style\"||i===\"script\"||i===\"template\";case\"head\":return i===\"base\"||i===\"basefont\"||i===\"bgsound\"||i===\"link\"||i===\"meta\"||i===\"title\"||i===\"noscript\"||i===\"noframes\"||i===\"style\"||i===\"script\"||i===\"template\";case\"html\":if(d)break;return i===\"head\"||i===\"body\"||i===\"frameset\";case\"frameset\":return i===\"frame\";case\"#document\":if(!d)return i===\"html\"}switch(i){case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return s!==\"h1\"&&s!==\"h2\"&&s!==\"h3\"&&s!==\"h4\"&&s!==\"h5\"&&s!==\"h6\";case\"rp\":case\"rt\":return bAe.indexOf(s)===-1;case\"caption\":case\"col\":case\"colgroup\":case\"frameset\":case\"frame\":case\"tbody\":case\"td\":case\"tfoot\":case\"th\":case\"thead\":case\"tr\":return s==null;case\"head\":return d||s===null;case\"html\":return d&&s===\"#document\"||s===null;case\"body\":return d&&(s===\"#document\"||s===\"html\")||s===null}return!0}function Ce(i,s){switch(i){case\"address\":case\"article\":case\"aside\":case\"blockquote\":case\"center\":case\"details\":case\"dialog\":case\"dir\":case\"div\":case\"dl\":case\"fieldset\":case\"figcaption\":case\"figure\":case\"footer\":case\"header\":case\"hgroup\":case\"main\":case\"menu\":case\"nav\":case\"ol\":case\"p\":case\"section\":case\"summary\":case\"ul\":case\"pre\":case\"listing\":case\"table\":case\"hr\":case\"xmp\":case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return s.pTagInButtonScope;case\"form\":return s.formTag||s.pTagInButtonScope;case\"li\":return s.listItemTagAutoclosing;case\"dd\":case\"dt\":return s.dlItemTagAutoclosing;case\"button\":return s.buttonTagInScope;case\"a\":return s.aTagInScope;case\"nobr\":return s.nobrTagInScope}return null}function _t(i,s){for(;i;){switch(i.tag){case 5:case 26:case 27:if(i.type===s)return i}i=i.return}return null}function Lt(i,s){s=s||aW;var d=s.current;if(s=(d=tt(i,d&&d.tag,s.implicitRootScope)?null:d)?null:Ce(i,s),s=d||s,!s)return!0;var h=s.tag;if(s=String(!!d)+\"|\"+i+\"|\"+h,E7[s])return!1;E7[s]=!0;var v=(s=jc)?_t(s.return,h):null,E=s!==null&&v!==null?ze(v,s,null):\"\",j=\"<\"+i+\">\";return d?(d=\"\",h===\"table\"&&i===\"tr\"&&(d+=\" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.\"),console.error(`In HTML, %s cannot be a child of <%s>.%s\\nThis will cause a hydration error.%s`,j,h,d,E)):console.error(`In HTML, %s cannot be a descendant of <%s>.\\nThis will cause a hydration error.%s`,j,h,E),s&&(i=s.return,v===null||i===null||v===i&&i._debugOwner===s._debugOwner||C(v,function(){console.error(`<%s> cannot contain a nested %s.\\nSee this log for the ancestor stack trace.`,h,j)})),!1}function Dt(i,s,d){if(d||tt(\"#text\",s,!1))return!0;if(d=\"#text|\"+s,E7[d])return!1;E7[d]=!0;var h=(d=jc)?_t(d,s):null;return d=d!==null&&h!==null?ze(h,d,d.tag!==6?{children:null}:null):\"\",/\\\\S/.test(i)?console.error(`In HTML, text nodes cannot be a child of <%s>.\\nThis will cause a hydration error.%s`,s,d):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don\\'t have any extra whitespace between tags on each line of your source code.\\nThis will cause a hydration error.%s`,s,d),!1}function yt(i,s){if(s){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=s;return}}i.textContent=s}function Zt(i){return i.replace(SAe,function(s,d){return d.toUpperCase()})}function Jt(i,s,d){var h=s.indexOf(\"--\")===0;h||(-1<s.indexOf(\"-\")?y2.hasOwnProperty(s)&&y2[s]||(y2[s]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",s,Zt(s.replace(EAe,\"ms-\")))):wAe.test(s)?y2.hasOwnProperty(s)&&y2[s]||(y2[s]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",s,s.charAt(0).toUpperCase()+s.slice(1))):!lW.test(d)||nB.hasOwnProperty(d)&&nB[d]||(nB[d]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,s,d.replace(lW,\"\"))),typeof d==\"number\"&&(isNaN(d)?uW||(uW=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",s)):isFinite(d)||dW||(dW=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",s)))),d==null||typeof d==\"boolean\"||d===\"\"?h?i.setProperty(s,\"\"):s===\"float\"?i.cssFloat=\"\":i[s]=\"\":h?i.setProperty(s,d):typeof d!=\"number\"||d===0||fW.has(s)?s===\"float\"?i.cssFloat=d:(Pe(d,s),i[s]=(\"\"+d).trim()):i[s]=d+\"px\"}function Qn(i,s,d){if(s!=null&&typeof s!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");if(s&&Object.freeze(s),i=i.style,d!=null){if(s){var h={};if(d){for(var v in d)if(d.hasOwnProperty(v)&&!s.hasOwnProperty(v))for(var E=tB[v]||[v],j=0;j<E.length;j++)h[E[j]]=v}for(var oe in s)if(s.hasOwnProperty(oe)&&(!d||d[oe]!==s[oe]))for(v=tB[oe]||[oe],E=0;E<v.length;E++)h[v[E]]=oe;oe={};for(var ke in s)for(v=tB[ke]||[ke],E=0;E<v.length;E++)oe[v[E]]=ke;ke={};for(var Fe in h)if(v=h[Fe],(E=oe[Fe])&&v!==E&&(j=v+\",\"+E,!ke[j])){ke[j]=!0,j=console;var Ct=s[v];j.error.call(j,\"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don\\'t mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.\",Ct==null||typeof Ct==\"boolean\"||Ct===\"\"?\"Removing\":\"Updating\",v,E)}}for(var Tt in d)!d.hasOwnProperty(Tt)||s!=null&&s.hasOwnProperty(Tt)||(Tt.indexOf(\"--\")===0?i.setProperty(Tt,\"\"):Tt===\"float\"?i.cssFloat=\"\":i[Tt]=\"\");for(var pt in s)Fe=s[pt],s.hasOwnProperty(pt)&&d[pt]!==Fe&&Jt(i,pt,Fe)}else for(h in s)s.hasOwnProperty(h)&&Jt(i,h,s[h])}function Xn(i){if(i.indexOf(\"-\")===-1)return!1;switch(i){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function tr(i){return AAe.get(i)||i}function gr(i,s){if(cu.call(x2,s)&&x2[s])return!0;if(CAe.test(s)){if(i=\"aria-\"+s.slice(4).toLowerCase(),i=pW.hasOwnProperty(i)?i:null,i==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",s),x2[s]=!0;if(s!==i)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",s,i),x2[s]=!0}if(kAe.test(s)){if(i=s.toLowerCase(),i=pW.hasOwnProperty(i)?i:null,i==null)return x2[s]=!0,!1;s!==i&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",s,i),x2[s]=!0)}return!0}function yr(i,s){var d=[],h;for(h in s)gr(i,h)||d.push(h);s=d.map(function(v){return\"`\"+v+\"`\"}).join(\", \"),d.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",s,i):1<d.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",s,i)}function Br(i,s,d,h){if(cu.call(Ns,s)&&Ns[s])return!0;var v=s.toLowerCase();if(v===\"onfocusin\"||v===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),Ns[s]=!0;if(typeof d==\"function\"&&(i===\"form\"&&s===\"action\"||i===\"input\"&&s===\"formAction\"||i===\"button\"&&s===\"formAction\"))return!0;if(h!=null){if(i=h.possibleRegistrationNames,h.registrationNameDependencies.hasOwnProperty(s))return!0;if(h=i.hasOwnProperty(v)?i[v]:null,h!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",s,h),Ns[s]=!0;if(mW.test(s))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",s),Ns[s]=!0}else if(mW.test(s))return TAe.test(s)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",s),Ns[s]=!0;if(_Ae.test(s)||MAe.test(s))return!0;if(v===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),Ns[s]=!0;if(v===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),Ns[s]=!0;if(v===\"is\"&&d!==null&&d!==void 0&&typeof d!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof d),Ns[s]=!0;if(typeof d==\"number\"&&isNaN(d))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",s),Ns[s]=!0;if(A7.hasOwnProperty(v)){if(v=A7[v],v!==s)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",s,v),Ns[s]=!0}else if(s!==v)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",s,v),Ns[s]=!0;switch(s){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof d){case\"boolean\":switch(s){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return v=s.toLowerCase().slice(0,5),v===\"data-\"||v===\"aria-\"?!0:(d?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',d,s,s,d,s):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',d,s,s,d,s,s,s),Ns[s]=!0)}case\"function\":case\"symbol\":return Ns[s]=!0,!1;case\"string\":if(d===\"false\"||d===\"true\"){switch(s){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",d,s,d===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',s,d),Ns[s]=!0}}return!0}function no(i,s,d){var h=[],v;for(v in s)Br(i,v,s[v],d)||h.push(v);s=h.map(function(E){return\"`\"+E+\"`\"}).join(\", \"),h.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",s,i):1<h.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",s,i)}function Xo(i){return IAe.test(\"\"+i)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":i}function zo(){}function E0(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function S0(i){var s=kn(i);if(s&&(i=s.stateNode)){var d=i[Ls]||null;e:switch(i=s.stateNode,s.type){case\"input\":if(Rt(i,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),s=d.name,d.type===\"radio\"&&s!=null){for(d=i;d.parentNode;)d=d.parentNode;for(me(s,\"name\"),d=d.querySelectorAll(\\'input[name=\"\\'+He(\"\"+s)+\\'\"][type=\"radio\"]\\'),s=0;s<d.length;s++){var h=d[s];if(h!==i&&h.form===i.form){var v=h[Ls]||null;if(!v)throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");Rt(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<d.length;s++)h=d[s],h.form===i.form&&H(h)}break e;case\"textarea\":Hn(i,d.value,d.defaultValue);break e;case\"select\":s=d.value,s!=null&&cn(i,!!d.multiple,s,!1)}}}function A0(i,s,d){if(rB)return i(s,d);rB=!0;try{var h=i(s);return h}finally{if(rB=!1,(b2!==null||w2!==null)&&(s2(),b2&&(s=b2,i=w2,w2=b2=null,S0(s),i)))for(s=0;s<i.length;s++)S0(i[s])}}function nh(i,s){var d=i.stateNode;if(d===null)return null;var h=d[Ls]||null;if(h===null)return null;d=h[s];e:switch(s){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(h=!h.disabled)||(i=i.type,h=!(i===\"button\"||i===\"input\"||i===\"select\"||i===\"textarea\")),i=!h;break e;default:i=!1}if(i)return null;if(d&&typeof d!=\"function\")throw Error(\"Expected `\"+s+\"` listener to be a function, instead got a value of `\"+typeof d+\"` type.\");return d}function Ab(){if(k7)return k7;var i,s=iB,d=s.length,h,v=\"value\"in bh?bh.value:bh.textContent,E=v.length;for(i=0;i<d&&s[i]===v[i];i++);var j=d-i;for(h=1;h<=j&&s[d-h]===v[E-h];h++);return k7=v.slice(i,1<h?1-h:void 0)}function k0(i){var s=i.keyCode;return\"charCode\"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function C0(){return!0}function bS(){return!1}function ms(i){function s(d,h,v,E,j){this._reactName=d,this._targetInst=v,this.type=h,this.nativeEvent=E,this.target=j,this.currentTarget=null;for(var oe in i)i.hasOwnProperty(oe)&&(d=i[oe],this[oe]=d?d(E):E[oe]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?C0:bS,this.isPropagationStopped=bS,this}return ao(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!=\"unknown\"&&(d.returnValue=!1),this.isDefaultPrevented=C0)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!=\"unknown\"&&(d.cancelBubble=!0),this.isPropagationStopped=C0)},persist:function(){},isPersistent:C0}),s}function XI(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=jAe[i])?!!s[i]:!1}function b(){return XI}function F(i,s){switch(i){case\"keyup\":return t9e.indexOf(s.keyCode)!==-1;case\"keydown\":return s.keyCode!==xW;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function N(i){return i=i.detail,typeof i==\"object\"&&\"data\"in i?i.data:null}function ce(i,s){switch(i){case\"compositionend\":return N(s);case\"keypress\":return s.which!==wW?null:(SW=!0,EW);case\"textInput\":return i=s.data,i===EW&&SW?null:i;default:return null}}function ve(i,s){if(E2)return i===\"compositionend\"||!lB&&F(i,s)?(i=Ab(),k7=iB=bh=null,E2=!1,i):null;switch(i){case\"paste\":return null;case\"keypress\":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case\"compositionend\":return bW&&s.locale!==\"ko\"?null:s.data;default:return null}}function pe(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s===\"input\"?!!r9e[i.type]:s===\"textarea\"}function Ge(i){if(!fd)return!1;i=\"on\"+i;var s=i in document;return s||(s=document.createElement(\"div\"),s.setAttribute(i,\"return;\"),s=typeof s[i]==\"function\"),s}function ht(i,s,d,h){b2?w2?w2.push(h):w2=[h]:b2=h,s=i7(s,\"onChange\"),0<s.length&&(d=new C7(\"onChange\",\"change\",null,d,h),i.push({event:d,listeners:s}))}function Xe(i){ZG(i,0)}function It(i){var s=zn(i);if(H(s))return i}function kt(i,s){if(i===\"change\")return s}function ut(){sw&&(sw.detachEvent(\"onpropertychange\",st),cw=sw=null)}function st(i){if(i.propertyName===\"value\"&&It(cw)){var s=[];ht(s,cw,i,E0(i)),A0(Xe,s)}}function bt(i,s,d){i===\"focusin\"?(ut(),sw=s,cw=d,sw.attachEvent(\"onpropertychange\",st)):i===\"focusout\"&&ut()}function Ot(i){if(i===\"selectionchange\"||i===\"keyup\"||i===\"keydown\")return It(cw)}function Mt(i,s){if(i===\"click\")return It(s)}function gt(i,s){if(i===\"input\"||i===\"change\")return It(s)}function $e(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}function Me(i,s){if(Us(i,s))return!0;if(typeof i!=\"object\"||i===null||typeof s!=\"object\"||s===null)return!1;var d=Object.keys(i),h=Object.keys(s);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var v=d[h];if(!cu.call(s,v)||!Us(i[v],s[v]))return!1}return!0}function Ie(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Te(i,s){var d=Ie(i);i=0;for(var h;d;){if(d.nodeType===3){if(h=i+d.textContent.length,i<=s&&h>=s)return{node:d,offset:s-i};i=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Ie(d)}}function Oe(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Oe(i,s.parentNode):\"contains\"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Ze(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=he(i.document);s instanceof i.HTMLIFrameElement;){try{var d=typeof s.contentWindow.location.href==\"string\"}catch{d=!1}if(d)i=s.contentWindow;else break;s=he(i.document)}return s}function We(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s===\"input\"&&(i.type===\"text\"||i.type===\"search\"||i.type===\"tel\"||i.type===\"url\"||i.type===\"password\")||s===\"textarea\"||i.contentEditable===\"true\")}function ct(i,s,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;dB||S2==null||S2!==he(h)||(h=S2,\"selectionStart\"in h&&We(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),lw&&Me(lw,h)||(lw=h,h=i7(uB,\"onSelect\"),0<h.length&&(s=new C7(\"onSelect\",\"select\",null,s,d),i.push({event:s,listeners:h}),s.target=S2)))}function fn(i,s){var d={};return d[i.toLowerCase()]=s.toLowerCase(),d[\"Webkit\"+i]=\"webkit\"+s,d[\"Moz\"+i]=\"moz\"+s,d}function Rn(i){if(fB[i])return fB[i];if(!A2[i])return i;var s=A2[i],d;for(d in s)if(s.hasOwnProperty(d)&&d in kW)return fB[i]=s[d];return i}function On(i,s){IW.set(i,s),_r(s,[i])}function Ln(i){for(var s=_7,d=0;d<i.length;d++){var h=i[d];if(typeof h==\"object\"&&h!==null)if(wa(h)&&h.length===2&&typeof h[0]==\"string\"){if(s!==_7&&s!==yB)return mB;s=yB}else return mB;else{if(typeof h==\"function\"||typeof h==\"string\"&&50<h.length||s!==_7&&s!==gB)return mB;s=gB}}return s}function un(i,s,d,h){for(var v in i)cu.call(i,v)&&v[0]!==\"_\"&&bn(v,i[v],s,d,h)}function bn(i,s,d,h,v){switch(typeof s){case\"object\":if(s===null){s=\"null\";break}else{if(s.$$typeof===ad){var E=se(s.type)||\"\\\\u2026\",j=s.key;s=s.props;var oe=Object.keys(s),ke=oe.length;if(j==null&&ke===0){s=\"<\"+E+\" />\";break}if(3>h||ke===1&&oe[0]===\"children\"&&j==null){s=\"<\"+E+\" \\\\u2026 />\";break}d.push([v+\"\\\\xA0\\\\xA0\".repeat(h)+i,\"<\"+E]),j!==null&&bn(\"key\",j,d,h+1,v),i=!1;for(var Fe in s)Fe===\"children\"?s.children!=null&&(!wa(s.children)||0<s.children.length)&&(i=!0):cu.call(s,Fe)&&Fe[0]!==\"_\"&&bn(Fe,s[Fe],d,h+1,v);d.push([\"\",i?\">\\\\u2026</\"+E+\">\":\"/>\"]);return}if(E=Object.prototype.toString.call(s),E=E.slice(8,E.length-1),E===\"Array\"){if(Fe=Ln(s),Fe===gB||Fe===_7){s=JSON.stringify(s);break}else if(Fe===yB){for(d.push([v+\"\\\\xA0\\\\xA0\".repeat(h)+i,\"\"]),i=0;i<s.length;i++)E=s[i],bn(E[0],E[1],d,h+1,v);return}}if(E===\"Promise\"){if(s.status===\"fulfilled\"){if(E=d.length,bn(i,s.value,d,h,v),d.length>E){d=d[E],d[1]=\"Promise<\"+(d[1]||\"Object\")+\">\";return}}else if(s.status===\"rejected\"&&(E=d.length,bn(i,s.reason,d,h,v),d.length>E)){d=d[E],d[1]=\"Rejected Promise<\"+d[1]+\">\";return}d.push([\"\\\\xA0\\\\xA0\".repeat(h)+i,\"Promise\"]);return}E===\"Object\"&&(Fe=Object.getPrototypeOf(s))&&typeof Fe.constructor==\"function\"&&(E=Fe.constructor.name),d.push([v+\"\\\\xA0\\\\xA0\".repeat(h)+i,E===\"Object\"?3>h?\"\":\"\\\\u2026\":E]),3>h&&un(s,d,h+1,v);return}case\"function\":s=s.name===\"\"?\"() => {}\":s.name+\"() {}\";break;case\"string\":s=s===u9e?\"\\\\u2026\":JSON.stringify(s);break;case\"undefined\":s=\"undefined\";break;case\"boolean\":s=s?\"true\":\"false\";break;default:s=String(s)}d.push([v+\"\\\\xA0\\\\xA0\".repeat(h)+i,s])}function mn(i,s,d,h){var v=!0;for(j in i)j in s||(d.push([M7+\"\\\\xA0\\\\xA0\".repeat(h)+j,\"\\\\u2026\"]),v=!1);for(var E in s)if(E in i){var j=i[E],oe=s[E];if(j!==oe){if(h===0&&E===\"children\")v=\"\\\\xA0\\\\xA0\".repeat(h)+E,d.push([M7+v,\"\\\\u2026\"],[I7+v,\"\\\\u2026\"]);else{if(!(3<=h)){if(typeof j==\"object\"&&typeof oe==\"object\"&&j!==null&&oe!==null&&j.$$typeof===oe.$$typeof)if(oe.$$typeof===ad){if(j.type===oe.type&&j.key===oe.key){j=se(oe.type)||\"\\\\u2026\",v=\"\\\\xA0\\\\xA0\".repeat(h)+E,j=\"<\"+j+\" \\\\u2026 />\",d.push([M7+v,j],[I7+v,j]),v=!1;continue}}else{var ke=Object.prototype.toString.call(j),Fe=Object.prototype.toString.call(oe);if(ke===Fe&&(Fe===\"[object Object]\"||Fe===\"[object Array]\")){ke=[BW+\"\\\\xA0\\\\xA0\".repeat(h)+E,Fe===\"[object Array]\"?\"Array\":\"\"],d.push(ke),Fe=d.length,mn(j,oe,d,h+1)?Fe===d.length&&(ke[1]=\"Referentially unequal but deeply equal objects. Consider memoization.\"):v=!1;continue}}else if(typeof j==\"function\"&&typeof oe==\"function\"&&j.name===oe.name&&j.length===oe.length&&(ke=Function.prototype.toString.call(j),Fe=Function.prototype.toString.call(oe),ke===Fe)){j=oe.name===\"\"?\"() => {}\":oe.name+\"() {}\",d.push([BW+\"\\\\xA0\\\\xA0\".repeat(h)+E,j+\" Referentially unequal function closure. Consider memoization.\"]);continue}}bn(E,j,d,h,M7),bn(E,oe,d,h,I7)}v=!1}}else d.push([I7+\"\\\\xA0\\\\xA0\".repeat(h)+E,\"\\\\u2026\"]),v=!1;return v}function Ye(i){uo=i&63?\"Blocking\":i&64?\"Gesture\":i&4194176?\"Transition\":i&62914560?\"Suspense\":i&2080374784?\"Idle\":\"Other\"}function Ue(i,s,d,h){fi&&(Eh.start=s,Eh.end=d,Cf.color=\"warning\",Cf.tooltipText=h,Cf.properties=null,(i=i._debugTask)?i.run(performance.measure.bind(performance,h,Eh)):performance.measure(h,Eh))}function Je(i,s,d){Ue(i,s,d,\"Reconnect\")}function jt(i,s,d,h,v){var E=S(i);if(E!==null&&fi){var j=i.alternate,oe=i.actualDuration;if(j===null||j.child!==i.child)for(var ke=i.child;ke!==null;ke=ke.sibling)oe-=ke.actualDuration;h=.5>oe?h?\"tertiary-light\":\"primary-light\":10>oe?h?\"tertiary\":\"primary\":100>oe?h?\"tertiary-dark\":\"primary-dark\":\"error\";var Fe=i.memoizedProps;oe=i._debugTask,Fe!==null&&j!==null&&j.memoizedProps!==Fe?(ke=[d9e],Fe=mn(j.memoizedProps,Fe,ke,0),1<ke.length&&(Fe&&!wh&&(j.lanes&v)===0&&100<i.actualDuration?(wh=!0,ke[0]=f9e,Cf.color=\"warning\",Cf.tooltipText=DW):(Cf.color=h,Cf.tooltipText=E),Cf.properties=ke,Eh.start=s,Eh.end=d,oe!=null?oe.run(performance.measure.bind(performance,\"\\\\u200B\"+E,Eh)):performance.measure(\"\\\\u200B\"+E,Eh))):oe!=null?oe.run(console.timeStamp.bind(console,E,s,d,ml,void 0,h)):console.timeStamp(E,s,d,ml,void 0,h)}}function wn(i,s,d,h){if(fi){var v=S(i);if(v!==null){for(var E=null,j=[],oe=0;oe<h.length;oe++){var ke=h[oe];E==null&&ke.source!==null&&(E=ke.source._debugTask),ke=ke.value,j.push([\"Error\",typeof ke==\"object\"&&ke!==null&&typeof ke.message==\"string\"?String(ke.message):String(ke)])}i.key!==null&&bn(\"key\",i.key,j,0,\"\"),i.memoizedProps!==null&&un(i.memoizedProps,j,0,\"\"),E==null&&(E=i._debugTask),i={start:s,end:d,detail:{devtools:{color:\"error\",track:ml,tooltipText:i.tag===13?\"Hydration failed\":\"Error boundary caught an error\",properties:j}}},E?E.run(performance.measure.bind(performance,\"\\\\u200B\"+v,i)):performance.measure(\"\\\\u200B\"+v,i)}}}function dn(i,s,d,h,v){if(v!==null){if(fi){var E=S(i);if(E!==null){h=[];for(var j=0;j<v.length;j++){var oe=v[j].value;h.push([\"Error\",typeof oe==\"object\"&&oe!==null&&typeof oe.message==\"string\"?String(oe.message):String(oe)])}i.key!==null&&bn(\"key\",i.key,h,0,\"\"),i.memoizedProps!==null&&un(i.memoizedProps,h,0,\"\"),s={start:s,end:d,detail:{devtools:{color:\"error\",track:ml,tooltipText:\"A lifecycle or effect errored\",properties:h}}},(i=i._debugTask)?i.run(performance.measure.bind(performance,\"\\\\u200B\"+E,s)):performance.measure(\"\\\\u200B\"+E,s)}}}else E=S(i),E!==null&&fi&&(v=1>h?\"secondary-light\":100>h?\"secondary\":500>h?\"secondary-dark\":\"error\",(i=i._debugTask)?i.run(console.timeStamp.bind(console,E,s,d,ml,void 0,v)):console.timeStamp(E,s,d,ml,void 0,v))}function Pr(i,s,d,h){if(fi&&!(s<=i)){var v=(d&738197653)===d?\"tertiary-dark\":\"primary-dark\";d=(d&536870912)===d?\"Prepared\":(d&201326741)===d?\"Hydrated\":\"Render\",h?h.run(console.timeStamp.bind(console,d,i,s,uo,so,v)):console.timeStamp(d,i,s,uo,so,v)}}function ro(i,s,d,h){!fi||s<=i||(d=(d&738197653)===d?\"tertiary-dark\":\"primary-dark\",h?h.run(console.timeStamp.bind(console,\"Prewarm\",i,s,uo,so,d)):console.timeStamp(\"Prewarm\",i,s,uo,so,d))}function Gr(i,s,d,h){!fi||s<=i||(d=(d&738197653)===d?\"tertiary-dark\":\"primary-dark\",h?h.run(console.timeStamp.bind(console,\"Suspended\",i,s,uo,so,d)):console.timeStamp(\"Suspended\",i,s,uo,so,d))}function Yi(i,s,d,h,v,E){if(fi&&!(s<=i)){d=[];for(var j=0;j<h.length;j++){var oe=h[j].value;d.push([\"Recoverable Error\",typeof oe==\"object\"&&oe!==null&&typeof oe.message==\"string\"?String(oe.message):String(oe)])}i={start:i,end:s,detail:{devtools:{color:\"primary-dark\",track:uo,trackGroup:so,tooltipText:v?\"Hydration Failed\":\"Recovered after Error\",properties:d}}},E?E.run(performance.measure.bind(performance,\"Recovered\",i)):performance.measure(\"Recovered\",i)}}function zi(i,s,d,h){!fi||s<=i||(h?h.run(console.timeStamp.bind(console,\"Errored\",i,s,uo,so,\"error\")):console.timeStamp(\"Errored\",i,s,uo,so,\"error\"))}function Ka(i,s,d,h){!fi||s<=i||(h?h.run(console.timeStamp.bind(console,d,i,s,uo,so,\"secondary-light\")):console.timeStamp(d,i,s,uo,so,\"secondary-light\"))}function Ga(i,s,d,h,v){if(fi&&!(s<=i)){for(var E=[],j=0;j<d.length;j++){var oe=d[j].value;E.push([\"Error\",typeof oe==\"object\"&&oe!==null&&typeof oe.message==\"string\"?String(oe.message):String(oe)])}i={start:i,end:s,detail:{devtools:{color:\"error\",track:uo,trackGroup:so,tooltipText:h?\"Remaining Effects Errored\":\"Commit Errored\",properties:E}}},v?v.run(performance.measure.bind(performance,\"Errored\",i)):performance.measure(\"Errored\",i)}}function ia(i,s,d){!fi||s<=i||(d?d.run(console.timeStamp.bind(console,\"Animating\",i,s,uo,so,\"secondary-dark\")):console.timeStamp(\"Animating\",i,s,uo,so,\"secondary-dark\"))}function Zi(){for(var i=k2,s=vB=k2=0;s<i;){var d=gl[s];gl[s++]=null;var h=gl[s];gl[s++]=null;var v=gl[s];gl[s++]=null;var E=gl[s];if(gl[s++]=null,h!==null&&v!==null){var j=h.pending;j===null?v.next=v:(v.next=j.next,j.next=v),h.pending=v}E!==0&&di(d,v,E)}}function Ti(i,s,d,h){gl[k2++]=i,gl[k2++]=s,gl[k2++]=d,gl[k2++]=h,vB|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function ba(i,s,d,h){return Ti(i,s,d,h),lc(i)}function nr(i,s){return Ti(i,null,null,s),lc(i)}function di(i,s,d){i.lanes|=d;var h=i.alternate;h!==null&&(h.lanes|=d);for(var v=!1,E=i.return;E!==null;)E.childLanes|=d,h=E.alternate,h!==null&&(h.childLanes|=d),E.tag===22&&(i=E.stateNode,i===null||i._visibility&uw||(v=!0)),i=E,E=E.return;return i.tag===3?(E=i.stateNode,v&&s!==null&&(v=31-Os(d),i=E.hiddenUpdates,h=i[v],h===null?i[v]=[s]:h.push(s),s.lane=d|536870912),E):null}function lc(i){if(Lw>T9e)throw e1=Lw=0,Nw=XB=null,Error(\"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\");e1>_9e&&(e1=0,Nw=null,console.error(\"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn\\'t have a dependency array, or one of the dependencies changes on every render.\")),i.alternate===null&&(i.flags&4098)!==0&&jG(i);for(var s=i,d=s.return;d!==null;)s.alternate===null&&(s.flags&4098)!==0&&jG(i),s=d,d=s.return;return s.tag===3?s.stateNode:null}function gs(i){if(yl===null)return i;var s=yl(i);return s===void 0?i:s.current}function Dc(i){if(yl===null)return i;var s=yl(i);return s===void 0?i!=null&&typeof i.render==\"function\"&&(s=gs(i.render),i.render!==s)?(s={$$typeof:Jb,render:s},i.displayName!==void 0&&(s.displayName=i.displayName),s):i:s.current}function Fc(i,s){if(yl===null)return!1;var d=i.elementType;s=s.type;var h=!1,v=typeof s==\"object\"&&s!==null?s.$$typeof:null;switch(i.tag){case 1:typeof s==\"function\"&&(h=!0);break;case 0:(typeof s==\"function\"||v===Hc)&&(h=!0);break;case 11:(v===Jb||v===Hc)&&(h=!0);break;case 14:case 15:(v===g7||v===Hc)&&(h=!0);break;default:return!1}return!!(h&&(i=yl(d),i!==void 0&&i===yl(s)))}function ul(i){yl!==null&&typeof WeakSet==\"function\"&&(C2===null&&(C2=new WeakSet),C2.add(i))}function dl(i,s,d){do{var h=i,v=h.alternate,E=h.child,j=h.sibling,oe=h.tag;h=h.type;var ke=null;switch(oe){case 0:case 15:case 1:ke=h;break;case 11:ke=h.render}if(yl===null)throw Error(\"Expected resolveFamily to be set during hot reload.\");var Fe=!1;if(h=!1,ke!==null&&(ke=yl(ke),ke!==void 0&&(d.has(ke)?h=!0:s.has(ke)&&(oe===1?h=!0:Fe=!0))),C2!==null&&(C2.has(i)||v!==null&&C2.has(v))&&(h=!0),h&&(i._debugNeedsRemount=!0),(h||Fe)&&(v=nr(i,2),v!==null&&Di(v,i,2)),E===null||h||dl(E,s,d),j===null)break;i=j}while(!0)}function ys(i,s,d,h){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,FW||typeof Object.preventExtensions!=\"function\"||Object.preventExtensions(this)}function fl(i){return i=i.prototype,!(!i||!i.isReactComponent)}function _a(i,s){var d=i.alternate;switch(d===null?(d=y(i.tag,s,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d._debugOwner=i._debugOwner,d._debugStack=i._debugStack,d._debugTask=i._debugTask,d._debugHookTypes=i._debugHookTypes,d.alternate=i,i.alternate=d):(d.pendingProps=s,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null,d.actualDuration=-0,d.actualStartTime=-1.1),d.flags=i.flags&65011712,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,s=i.dependencies,d.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d.refCleanup=i.refCleanup,d.selfBaseDuration=i.selfBaseDuration,d.treeBaseDuration=i.treeBaseDuration,d._debugInfo=i._debugInfo,d._debugNeedsRemount=i._debugNeedsRemount,d.tag){case 0:case 15:d.type=gs(i.type);break;case 1:d.type=gs(i.type);break;case 11:d.type=Dc(i.type)}return d}function uc(i,s){i.flags&=65011714;var d=i.alternate;return d===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=d.childLanes,i.lanes=d.lanes,i.child=d.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=d.memoizedProps,i.memoizedState=d.memoizedState,i.updateQueue=d.updateQueue,i.type=d.type,s=d.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},i.selfBaseDuration=d.selfBaseDuration,i.treeBaseDuration=d.treeBaseDuration),i}function pl(i,s,d,h,v,E){var j=0,oe=i;if(typeof i==\"function\")fl(i)&&(j=1),oe=gs(oe);else if(typeof i==\"string\")j=W(),j=j7e(i,d,j)?26:i===\"html\"||i===\"head\"||i===\"body\"?27:5;else e:switch(i){case jP:return s=y(31,d,s,v),s.elementType=jP,s.lanes=E,s;case h2:return Ds(d.children,v,E,s);case m7:j=8,v|=bs,v|=uu;break;case UP:return i=d,h=v,typeof i.id!=\"string\"&&console.error(\\'Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.\\',typeof i.id),s=y(12,i,s,h|Zr),s.elementType=UP,s.lanes=E,s.stateNode={effectDuration:0,passiveEffectDuration:0},s;case VP:return s=y(13,d,s,v),s.elementType=VP,s.lanes=E,s;case HP:return s=y(19,d,s,v),s.elementType=HP,s.lanes=E,s;default:if(typeof i==\"object\"&&i!==null)switch(i.$$typeof){case sd:j=10;break e;case zP:j=9;break e;case Jb:j=11,oe=Dc(oe);break e;case g7:j=14;break e;case Hc:j=16,oe=null;break e}oe=\"\",(i===void 0||typeof i==\"object\"&&i!==null&&Object.keys(i).length===0)&&(oe+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),i===null?d=\"null\":wa(i)?d=\"array\":i!==void 0&&i.$$typeof===ad?(d=\"<\"+(se(i.type)||\"Unknown\")+\" />\",oe=\" Did you accidentally export a JSX literal instead of a component?\"):d=typeof i,(j=h?te(h):null)&&(oe+=`\\n\\nCheck the render method of \\\\``+j+\"`.\"),j=29,d=Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+(d+\".\"+oe)),oe=null}return s=y(j,d,s,v),s.elementType=i,s.type=oe,s.lanes=E,s._debugOwner=h,s}function vs(i,s,d){return s=pl(i.type,i.key,i.props,i._owner,s,d),s._debugOwner=i._owner,s._debugStack=i._debugStack,s._debugTask=i._debugTask,s}function Ds(i,s,d,h){return i=y(7,i,h,s),i.lanes=d,i}function rh(i,s,d){return i=y(6,i,null,s),i.lanes=d,i}function T0(i){var s=y(18,null,null,Lr);return s.stateNode=i,s}function JI(i,s,d){return s=y(4,i.children!==null?i.children:[],i.key,s),s.lanes=d,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function Oc(i,s){if(typeof i==\"object\"&&i!==null){var d=xB.get(i);return d!==void 0?d:(s={value:i,source:s,stack:we(s)},xB.set(i,s),s)}return{value:i,source:s,stack:we(s)}}function xf(i,s){oh(),T2[_2++]=dw,T2[_2++]=R7,R7=i,dw=s}function B$(i,s,d){oh(),vl[xl++]=_f,vl[xl++]=Mf,vl[xl++]=z0,z0=i;var h=_f;i=Mf;var v=32-Os(h)-1;h&=~(1<<v),d+=1;var E=32-Os(s)+v;if(30<E){var j=v-v%5;E=(h&(1<<j)-1).toString(32),h>>=j,v-=j,_f=1<<32-Os(s)+v|d<<v|h,Mf=E+i}else _f=1<<E|d<<v|h,Mf=i}function QI(i){oh(),i.return!==null&&(xf(i,1),B$(i,1,0))}function eR(i){for(;i===R7;)R7=T2[--_2],T2[_2]=null,dw=T2[--_2],T2[_2]=null;for(;i===z0;)z0=vl[--xl],vl[xl]=null,Mf=vl[--xl],vl[xl]=null,_f=vl[--xl],vl[xl]=null}function D$(){return oh(),z0!==null?{id:_f,overflow:Mf}:null}function F$(i,s){oh(),vl[xl++]=_f,vl[xl++]=Mf,vl[xl++]=z0,_f=s.id,Mf=s.overflow,z0=i}function oh(){ho||console.error(\"Expected to be hydrating. This is a bug in React. Please file an issue.\")}function _0(i,s){if(i.return===null){if(Kc===null)Kc={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:s};else{if(Kc.fiber!==i)throw Error(\"Saw multiple hydration diff roots in a pass. This is a bug in React.\");Kc.distanceFromLeaf>s&&(Kc.distanceFromLeaf=s)}return Kc}var d=_0(i.return,s+1).children;return 0<d.length&&d[d.length-1].fiber===i?(d=d[d.length-1],d.distanceFromLeaf>s&&(d.distanceFromLeaf=s),d):(s={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:s},d.push(s),s)}function O$(){ho&&console.error(\"We should not be hydrating here. This is a bug in React. Please file a bug.\")}function wS(i,s){pd||(i=_0(i,0),i.serverProps=null,s!==null&&(s=hq(s),i.serverTail.push(s)))}function ih(i){var s=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,d=\"\",h=Kc;throw h!==null&&(Kc=null,d=Ne(h)),kb(Oc(Error(\"Hydration failed because the server rendered \"+(s?\"text\":\"HTML\")+` didn\\'t match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\nhttps://react.dev/link/hydration-mismatch`+d),i)),bB}function L$(i){var s=i.stateNode,d=i.type,h=i.memoizedProps;switch(s[Za]=i,s[Ls]=h,bP(d,h),d){case\"dialog\":xo(\"cancel\",s),xo(\"close\",s);break;case\"iframe\":case\"object\":case\"embed\":xo(\"load\",s);break;case\"video\":case\"audio\":for(d=0;d<Uw.length;d++)xo(Uw[d],s);break;case\"source\":xo(\"error\",s);break;case\"img\":case\"image\":case\"link\":xo(\"error\",s),xo(\"load\",s);break;case\"details\":xo(\"toggle\",s);break;case\"input\":vr(\"input\",h),xo(\"invalid\",s),nt(s,h),Ft(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case\"option\":$t(s,h);break;case\"select\":vr(\"select\",h),xo(\"invalid\",s),Fn(s,h);break;case\"textarea\":vr(\"textarea\",h),xo(\"invalid\",s),Nn(s,h),jn(s,h.value,h.defaultValue,h.children)}d=h.children,typeof d!=\"string\"&&typeof d!=\"number\"&&typeof d!=\"bigint\"||s.textContent===\"\"+d||h.suppressHydrationWarning===!0||eq(s.textContent,d)?(h.popover!=null&&(xo(\"beforetoggle\",s),xo(\"toggle\",s)),h.onScroll!=null&&xo(\"scroll\",s),h.onScrollEnd!=null&&xo(\"scrollend\",s),h.onClick!=null&&(s.onclick=zo),s=!0):s=!1,s||ih(i,!0)}function N$(i){for(Xa=i.return;Xa;)switch(Xa.tag){case 5:case 31:case 13:bl=!1;return;case 27:case 3:bl=!0;return;default:Xa=Xa.return}}function Jy(i){if(i!==Xa)return!1;if(!ho)return N$(i),ho=!0,!1;var s=i.tag,d;if((d=s!==3&&s!==27)&&((d=s===5)&&(d=i.type,d=!(d!==\"form\"&&d!==\"button\")||kP(i.type,i.memoizedProps)),d=!d),d&&pi){for(d=pi;d;){var h=_0(i,0),v=hq(d);h.serverTail.push(v),d=v.type===\"Suspense\"?MP(d):Vc(d.nextSibling)}ih(i)}if(N$(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");pi=MP(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");pi=MP(i)}else s===27?(s=pi,mh(i.type)?(i=lD,lD=null,pi=i):pi=s):pi=Xa?Vc(i.stateNode.nextSibling):null;return!0}function M0(){pi=Xa=null,pd=ho=!1}function tR(){var i=Ah;return i!==null&&(js===null?js=i:js.push.apply(js,i),Ah=null),i}function kb(i){Ah===null?Ah=[i]:Ah.push(i)}function nR(){var i=Kc;if(i!==null){Kc=null;for(var s=Ne(i);0<i.children.length;)i=i.children[0];C(i.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn\\'t match the client properties. This won\\'t be patched up. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\n%s%s`,\"https://react.dev/link/hydration-mismatch\",s)})}}function ES(){M2=P7=null,I2=!1}function ah(i,s,d){z(wB,s._currentValue,i),s._currentValue=d,z(EB,s._currentRenderer,i),s._currentRenderer!==void 0&&s._currentRenderer!==null&&s._currentRenderer!==LW&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),s._currentRenderer=LW}function bf(i,s){i._currentValue=wB.current;var d=EB.current;P(EB,s),i._currentRenderer=d,P(wB,s)}function rR(i,s,d){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===d)break;i=i.return}i!==d&&console.error(\"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.\")}function oR(i,s,d,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var E=v.dependencies;if(E!==null){var j=v.child;E=E.firstContext;e:for(;E!==null;){var oe=E;E=v;for(var ke=0;ke<s.length;ke++)if(oe.context===s[ke]){E.lanes|=d,oe=E.alternate,oe!==null&&(oe.lanes|=d),rR(E.return,d,i),h||(j=null);break e}E=oe.next}}else if(v.tag===18){if(j=v.return,j===null)throw Error(\"We just came from a parent so we must have had a parent. This is a bug in React.\");j.lanes|=d,E=j.alternate,E!==null&&(E.lanes|=d),rR(j,d,i),j=null}else j=v.child;if(j!==null)j.return=v;else for(j=v;j!==null;){if(j===i){j=null;break}if(v=j.sibling,v!==null){v.return=j.return,j=v;break}j=j.return}v=j}}function Qy(i,s,d,h){i=null;for(var v=s,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var j=v.alternate;if(j===null)throw Error(\"Should have a current fiber. This is a bug in React.\");if(j=j.memoizedProps,j!==null){var oe=v.type;Us(v.pendingProps.value,j.value)||(i!==null?i.push(oe):i=[oe])}}else if(v===y7.current){if(j=v.alternate,j===null)throw Error(\"Should have a current fiber. This is a bug in React.\");j.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push($w):i=[$w])}v=v.return}i!==null&&oR(s,i,d,h),s.flags|=262144}function SS(i){for(i=i.firstContext;i!==null;){if(!Us(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function I0(i){P7=i,M2=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Ei(i){return I2&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),U$(P7,i)}function AS(i,s){return P7===null&&I0(i),U$(i,s)}function U$(i,s){var d=s._currentValue;if(s={context:s,memoizedValue:d,next:null},M2===null){if(i===null)throw Error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\");M2=s,i.dependencies={lanes:0,firstContext:s,_debugThenableState:null},i.flags|=524288}else M2=M2.next=s;return d}function iR(){return{controller:new m9e,data:new Map,refCount:0}}function R0(i){i.controller.signal.aborted&&console.warn(\"A cache instance was retained after it was already freed. This likely indicates a bug in React.\"),i.refCount++}function Cb(i){i.refCount--,0>i.refCount&&console.warn(\"A cache instance was released after it was already freed. This likely indicates a bug in React.\"),i.refCount===0&&g9e(y9e,function(){i.controller.abort()})}function qu(i,s,d){(i&127)!==0?0>hd&&(hd=ca(),pw=B7(s),SB=s,d!=null&&(AB=S(d)),(ko&(Sa|Wc))!==Ba&&(Fi=!0,Th=fw),i=qb(),s=Gb(),i!==R2||s!==hw?R2=-1.1:s!==null&&(Th=fw),H0=i,hw=s):(i&4194048)!==0&&0>wl&&(wl=ca(),mw=B7(s),NW=s,d!=null&&(UW=S(d)),0>Pf)&&(i=qb(),s=Gb(),(i!==Mh||s!==j0)&&(Mh=-1.1),_h=i,j0=s)}function FSe(i){if(0>hd){hd=ca(),pw=i._debugTask!=null?i._debugTask:null,(ko&(Sa|Wc))!==Ba&&(Th=fw);var s=qb(),d=Gb();s!==R2||d!==hw?R2=-1.1:d!==null&&(Th=fw),H0=s,hw=d}0>wl&&(wl=ca(),mw=i._debugTask!=null?i._debugTask:null,0>Pf)&&(i=qb(),s=Gb(),(i!==Mh||s!==j0)&&(Mh=-1.1),_h=i,j0=s)}function wf(){var i=V0;return V0=0,i}function kS(i){var s=V0;return V0=i,s}function Tb(i){var s=V0;return V0+=i,s}function CS(){Fr=Ir=-1.1}function Lc(){var i=Ir;return Ir=-1.1,i}function Nc(i){0<=i&&(Ir=i)}function Wu(){var i=_i;return _i=-0,i}function Yu(i){0<=i&&(_i=i)}function Zu(){var i=Si;return Si=null,i}function Xu(){var i=Fi;return Fi=!1,i}function aR(i){zs=ca(),0>i.actualStartTime&&(i.actualStartTime=zs)}function sR(i){if(0<=zs){var s=ca()-zs;i.actualDuration+=s,i.selfBaseDuration=s,zs=-1}}function z$(i){if(0<=zs){var s=ca()-zs;i.actualDuration+=s,zs=-1}}function Ju(){if(0<=zs){var i=ca(),s=i-zs;zs=-1,V0+=s,_i+=s,Fr=i}}function V$(i){Si===null&&(Si=[]),Si.push(i),Rf===null&&(Rf=[]),Rf.push(i)}function Qu(){zs=ca(),0>Ir&&(Ir=zs)}function _b(i){for(var s=i.child;s;)i.actualDuration+=s.actualDuration,s=s.sibling}function OSe(i,s){if(yw===null){var d=yw=[];CB=0,$0=gP(),P2={status:\"pending\",value:void 0,then:function(h){d.push(h)}}}return CB++,s.then(H$,H$),s}function H$(){if(--CB===0&&(-1<wl||(Pf=-1.1),yw!==null)){P2!==null&&(P2.status=\"fulfilled\");var i=yw;yw=null,$0=0,P2=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function LSe(i,s){var d=[],h={status:\"pending\",value:null,reason:null,then:function(v){d.push(v)}};return i.then(function(){h.status=\"fulfilled\",h.value=s;for(var v=0;v<d.length;v++)(0,d[v])(s)},function(v){for(h.status=\"rejected\",h.reason=v,v=0;v<d.length;v++)(0,d[v])(void 0)}),h}function cR(){var i=K0.current;return i!==null?i:ei.pooledCache}function TS(i,s){s===null?z(K0,K0.current,i):z(K0,s.pool,i)}function j$(){var i=cR();return i===null?null:{parent:sa._currentValue,pool:i}}function $$(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function K$(i){return i=i.status,i===\"fulfilled\"||i===\"rejected\"}function G$(i,s,d){an.actQueue!==null&&(an.didUsePromise=!0);var h=i.thenables;if(d=h[d],d===void 0?h.push(s):d!==s&&(i.didWarnAboutUncachedPromise||(i.didWarnAboutUncachedPromise=!0,console.error(\"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.\")),s.then(zo,zo),s=d),s._debugInfo===void 0){i=performance.now(),h=s.displayName;var v={name:typeof h==\"string\"?h:\"Promise\",start:i,end:i,value:s};s._debugInfo=[{awaited:v}],s.status!==\"fulfilled\"&&s.status!==\"rejected\"&&(i=function(){v.end=performance.now()},s.then(i,i))}switch(s.status){case\"fulfilled\":return s.value;case\"rejected\":throw i=s.reason,W$(i),i;default:if(typeof s.status==\"string\")s.then(zo,zo);else{if(i=ei,i!==null&&100<i.shellSuspendCounter)throw Error(\"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\");i=s,i.status=\"pending\",i.then(function(E){if(s.status===\"pending\"){var j=s;j.status=\"fulfilled\",j.value=E}},function(E){if(s.status===\"pending\"){var j=s;j.status=\"rejected\",j.reason=E}})}switch(s.status){case\"fulfilled\":return s.value;case\"rejected\":throw i=s.reason,W$(i),i}throw q0=s,Aw=!0,B2}}function sh(i){try{return w9e(i)}catch(s){throw s!==null&&typeof s==\"object\"&&typeof s.then==\"function\"?(q0=s,Aw=!0,B2):s}}function q$(){if(q0===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var i=q0;return q0=null,Aw=!1,i}function W$(i){if(i===B2||i===V7)throw Error(\"Hooks are not supported inside an async component. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\")}function qa(i){var s=Xr;return i!=null&&(Xr=s===null?i:s.concat(i)),s}function lR(){var i=Xr;if(i!=null){for(var s=i.length-1;0<=s;s--)if(i[s].name!=null){var d=i[s].debugTask;if(d!=null)return d}}return null}function _S(i,s,d){for(var h=Object.keys(i.props),v=0;v<h.length;v++){var E=h[v];if(E!==\"children\"&&E!==\"key\"){s===null&&(s=vs(i,d.mode,0),s._debugInfo=Xr,s.return=d),C(s,function(j){console.error(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",j)},E);break}}}function MS(i){var s=kw;return kw+=1,D2===null&&(D2=$$()),G$(D2,i,s)}function Mb(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Y$(i,s){throw s.$$typeof===eAe?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:\\n- Multiple copies of the \"react\" package is used.\\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n- A compiler tries to \"inline\" JSX instead of using the runtime.`):(i=Object.prototype.toString.call(s),Error(\"Objects are not valid as a React child (found: \"+(i===\"[object Object]\"?\"object with keys {\"+Object.keys(s).join(\", \")+\"}\":i)+\"). If you meant to render a collection of children, use an array instead.\"))}function IS(i,s){var d=lR();d!==null?d.run(Y$.bind(null,i,s)):Y$(i,s)}function Z$(i,s){var d=S(i)||\"Component\";iY[d]||(iY[d]=!0,s=s.displayName||s.name||\"Component\",i.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  root.render(%s)`,s,s,s):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  <%s>{%s}</%s>`,s,s,d,s,d))}function RS(i,s){var d=lR();d!==null?d.run(Z$.bind(null,i,s)):Z$(i,s)}function X$(i,s){var d=S(i)||\"Component\";aY[d]||(aY[d]=!0,s=String(s),i.tag===3?console.error(`Symbols are not valid as a React child.\\n  root.render(%s)`,s):console.error(`Symbols are not valid as a React child.\\n  <%s>%s</%s>`,d,s,d))}function PS(i,s){var d=lR();d!==null?d.run(X$.bind(null,i,s)):X$(i,s)}function J$(i){function s(dt,mt){if(i){var St=dt.deletions;St===null?(dt.deletions=[mt],dt.flags|=16):St.push(mt)}}function d(dt,mt){if(!i)return null;for(;mt!==null;)s(dt,mt),mt=mt.sibling;return null}function h(dt){for(var mt=new Map;dt!==null;)dt.key!==null?mt.set(dt.key,dt):mt.set(dt.index,dt),dt=dt.sibling;return mt}function v(dt,mt){return dt=_a(dt,mt),dt.index=0,dt.sibling=null,dt}function E(dt,mt,St){return dt.index=St,i?(St=dt.alternate,St!==null?(St=St.index,St<mt?(dt.flags|=67108866,mt):St):(dt.flags|=67108866,mt)):(dt.flags|=1048576,mt)}function j(dt){return i&&dt.alternate===null&&(dt.flags|=67108866),dt}function oe(dt,mt,St,gn){return mt===null||mt.tag!==6?(mt=rh(St,dt.mode,gn),mt.return=dt,mt._debugOwner=dt,mt._debugTask=dt._debugTask,mt._debugInfo=Xr,mt):(mt=v(mt,St),mt.return=dt,mt._debugInfo=Xr,mt)}function ke(dt,mt,St,gn){var ar=St.type;return ar===h2?(mt=Ct(dt,mt,St.props.children,gn,St.key),_S(St,mt,dt),mt):mt!==null&&(mt.elementType===ar||Fc(mt,St)||typeof ar==\"object\"&&ar!==null&&ar.$$typeof===Hc&&sh(ar)===mt.type)?(mt=v(mt,St.props),Mb(mt,St),mt.return=dt,mt._debugOwner=St._owner,mt._debugInfo=Xr,mt):(mt=vs(St,dt.mode,gn),Mb(mt,St),mt.return=dt,mt._debugInfo=Xr,mt)}function Fe(dt,mt,St,gn){return mt===null||mt.tag!==4||mt.stateNode.containerInfo!==St.containerInfo||mt.stateNode.implementation!==St.implementation?(mt=JI(St,dt.mode,gn),mt.return=dt,mt._debugInfo=Xr,mt):(mt=v(mt,St.children||[]),mt.return=dt,mt._debugInfo=Xr,mt)}function Ct(dt,mt,St,gn,ar){return mt===null||mt.tag!==7?(mt=Ds(St,dt.mode,gn,ar),mt.return=dt,mt._debugOwner=dt,mt._debugTask=dt._debugTask,mt._debugInfo=Xr,mt):(mt=v(mt,St),mt.return=dt,mt._debugInfo=Xr,mt)}function Tt(dt,mt,St){if(typeof mt==\"string\"&&mt!==\"\"||typeof mt==\"number\"||typeof mt==\"bigint\")return mt=rh(\"\"+mt,dt.mode,St),mt.return=dt,mt._debugOwner=dt,mt._debugTask=dt._debugTask,mt._debugInfo=Xr,mt;if(typeof mt==\"object\"&&mt!==null){switch(mt.$$typeof){case ad:return St=vs(mt,dt.mode,St),Mb(St,mt),St.return=dt,dt=qa(mt._debugInfo),St._debugInfo=Xr,Xr=dt,St;case p2:return mt=JI(mt,dt.mode,St),mt.return=dt,mt._debugInfo=Xr,mt;case Hc:var gn=qa(mt._debugInfo);return mt=sh(mt),dt=Tt(dt,mt,St),Xr=gn,dt}if(wa(mt)||le(mt))return St=Ds(mt,dt.mode,St,null),St.return=dt,St._debugOwner=dt,St._debugTask=dt._debugTask,dt=qa(mt._debugInfo),St._debugInfo=Xr,Xr=dt,St;if(typeof mt.then==\"function\")return gn=qa(mt._debugInfo),dt=Tt(dt,MS(mt),St),Xr=gn,dt;if(mt.$$typeof===sd)return Tt(dt,AS(dt,mt),St);IS(dt,mt)}return typeof mt==\"function\"&&RS(dt,mt),typeof mt==\"symbol\"&&PS(dt,mt),null}function pt(dt,mt,St,gn){var ar=mt!==null?mt.key:null;if(typeof St==\"string\"&&St!==\"\"||typeof St==\"number\"||typeof St==\"bigint\")return ar!==null?null:oe(dt,mt,\"\"+St,gn);if(typeof St==\"object\"&&St!==null){switch(St.$$typeof){case ad:return St.key===ar?(ar=qa(St._debugInfo),dt=ke(dt,mt,St,gn),Xr=ar,dt):null;case p2:return St.key===ar?Fe(dt,mt,St,gn):null;case Hc:return ar=qa(St._debugInfo),St=sh(St),dt=pt(dt,mt,St,gn),Xr=ar,dt}if(wa(St)||le(St))return ar!==null?null:(ar=qa(St._debugInfo),dt=Ct(dt,mt,St,gn,null),Xr=ar,dt);if(typeof St.then==\"function\")return ar=qa(St._debugInfo),dt=pt(dt,mt,MS(St),gn),Xr=ar,dt;if(St.$$typeof===sd)return pt(dt,mt,AS(dt,St),gn);IS(dt,St)}return typeof St==\"function\"&&RS(dt,St),typeof St==\"symbol\"&&PS(dt,St),null}function qt(dt,mt,St,gn,ar){if(typeof gn==\"string\"&&gn!==\"\"||typeof gn==\"number\"||typeof gn==\"bigint\")return dt=dt.get(St)||null,oe(mt,dt,\"\"+gn,ar);if(typeof gn==\"object\"&&gn!==null){switch(gn.$$typeof){case ad:return St=dt.get(gn.key===null?St:gn.key)||null,dt=qa(gn._debugInfo),mt=ke(mt,St,gn,ar),Xr=dt,mt;case p2:return dt=dt.get(gn.key===null?St:gn.key)||null,Fe(mt,dt,gn,ar);case Hc:var Vr=qa(gn._debugInfo);return gn=sh(gn),mt=qt(dt,mt,St,gn,ar),Xr=Vr,mt}if(wa(gn)||le(gn))return St=dt.get(St)||null,dt=qa(gn._debugInfo),mt=Ct(mt,St,gn,ar,null),Xr=dt,mt;if(typeof gn.then==\"function\")return Vr=qa(gn._debugInfo),mt=qt(dt,mt,St,MS(gn),ar),Xr=Vr,mt;if(gn.$$typeof===sd)return qt(dt,mt,St,AS(mt,gn),ar);IS(mt,gn)}return typeof gn==\"function\"&&RS(mt,gn),typeof gn==\"symbol\"&&PS(mt,gn),null}function er(dt,mt,St,gn){if(typeof St!=\"object\"||St===null)return gn;switch(St.$$typeof){case ad:case p2:m(dt,mt,St);var ar=St.key;if(typeof ar!=\"string\")break;if(gn===null){gn=new Set,gn.add(ar);break}if(!gn.has(ar)){gn.add(ar);break}C(mt,function(){console.error(\"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \\\\u2014 the behavior is unsupported and could change in a future version.\",ar)});break;case Hc:St=sh(St),er(dt,mt,St,gn)}return gn}function ur(dt,mt,St,gn){for(var ar=null,Vr=null,Tr=null,Sr=mt,Wr=mt=0,hi=null;Sr!==null&&Wr<St.length;Wr++){Sr.index>Wr?(hi=Sr,Sr=null):hi=Sr.sibling;var Ji=pt(dt,Sr,St[Wr],gn);if(Ji===null){Sr===null&&(Sr=hi);break}ar=er(dt,Ji,St[Wr],ar),i&&Sr&&Ji.alternate===null&&s(dt,Sr),mt=E(Ji,mt,Wr),Tr===null?Vr=Ji:Tr.sibling=Ji,Tr=Ji,Sr=hi}if(Wr===St.length)return d(dt,Sr),ho&&xf(dt,Wr),Vr;if(Sr===null){for(;Wr<St.length;Wr++)Sr=Tt(dt,St[Wr],gn),Sr!==null&&(ar=er(dt,Sr,St[Wr],ar),mt=E(Sr,mt,Wr),Tr===null?Vr=Sr:Tr.sibling=Sr,Tr=Sr);return ho&&xf(dt,Wr),Vr}for(Sr=h(Sr);Wr<St.length;Wr++)hi=qt(Sr,dt,Wr,St[Wr],gn),hi!==null&&(ar=er(dt,hi,St[Wr],ar),i&&hi.alternate!==null&&Sr.delete(hi.key===null?Wr:hi.key),mt=E(hi,mt,Wr),Tr===null?Vr=hi:Tr.sibling=hi,Tr=hi);return i&&Sr.forEach(function(Vf){return s(dt,Vf)}),ho&&xf(dt,Wr),Vr}function si(dt,mt,St,gn){if(St==null)throw Error(\"An iterable object provided no iterator.\");for(var ar=null,Vr=null,Tr=mt,Sr=mt=0,Wr=null,hi=null,Ji=St.next();Tr!==null&&!Ji.done;Sr++,Ji=St.next()){Tr.index>Sr?(Wr=Tr,Tr=null):Wr=Tr.sibling;var Vf=pt(dt,Tr,Ji.value,gn);if(Vf===null){Tr===null&&(Tr=Wr);break}hi=er(dt,Vf,Ji.value,hi),i&&Tr&&Vf.alternate===null&&s(dt,Tr),mt=E(Vf,mt,Sr),Vr===null?ar=Vf:Vr.sibling=Vf,Vr=Vf,Tr=Wr}if(Ji.done)return d(dt,Tr),ho&&xf(dt,Sr),ar;if(Tr===null){for(;!Ji.done;Sr++,Ji=St.next())Tr=Tt(dt,Ji.value,gn),Tr!==null&&(hi=er(dt,Tr,Ji.value,hi),mt=E(Tr,mt,Sr),Vr===null?ar=Tr:Vr.sibling=Tr,Vr=Tr);return ho&&xf(dt,Sr),ar}for(Tr=h(Tr);!Ji.done;Sr++,Ji=St.next())Wr=qt(Tr,dt,Sr,Ji.value,gn),Wr!==null&&(hi=er(dt,Wr,Ji.value,hi),i&&Wr.alternate!==null&&Tr.delete(Wr.key===null?Sr:Wr.key),mt=E(Wr,mt,Sr),Vr===null?ar=Wr:Vr.sibling=Wr,Vr=Wr);return i&&Tr.forEach(function(K9e){return s(dt,K9e)}),ho&&xf(dt,Sr),ar}function bo(dt,mt,St,gn){if(typeof St==\"object\"&&St!==null&&St.type===h2&&St.key===null&&(_S(St,null,dt),St=St.props.children),typeof St==\"object\"&&St!==null){switch(St.$$typeof){case ad:var ar=qa(St._debugInfo);e:{for(var Vr=St.key;mt!==null;){if(mt.key===Vr){if(Vr=St.type,Vr===h2){if(mt.tag===7){d(dt,mt.sibling),gn=v(mt,St.props.children),gn.return=dt,gn._debugOwner=St._owner,gn._debugInfo=Xr,_S(St,gn,dt),dt=gn;break e}}else if(mt.elementType===Vr||Fc(mt,St)||typeof Vr==\"object\"&&Vr!==null&&Vr.$$typeof===Hc&&sh(Vr)===mt.type){d(dt,mt.sibling),gn=v(mt,St.props),Mb(gn,St),gn.return=dt,gn._debugOwner=St._owner,gn._debugInfo=Xr,dt=gn;break e}d(dt,mt);break}else s(dt,mt);mt=mt.sibling}St.type===h2?(gn=Ds(St.props.children,dt.mode,gn,St.key),gn.return=dt,gn._debugOwner=dt,gn._debugTask=dt._debugTask,gn._debugInfo=Xr,_S(St,gn,dt),dt=gn):(gn=vs(St,dt.mode,gn),Mb(gn,St),gn.return=dt,gn._debugInfo=Xr,dt=gn)}return dt=j(dt),Xr=ar,dt;case p2:e:{for(ar=St,St=ar.key;mt!==null;){if(mt.key===St)if(mt.tag===4&&mt.stateNode.containerInfo===ar.containerInfo&&mt.stateNode.implementation===ar.implementation){d(dt,mt.sibling),gn=v(mt,ar.children||[]),gn.return=dt,dt=gn;break e}else{d(dt,mt);break}else s(dt,mt);mt=mt.sibling}gn=JI(ar,dt.mode,gn),gn.return=dt,dt=gn}return j(dt);case Hc:return ar=qa(St._debugInfo),St=sh(St),dt=bo(dt,mt,St,gn),Xr=ar,dt}if(wa(St))return ar=qa(St._debugInfo),dt=ur(dt,mt,St,gn),Xr=ar,dt;if(le(St)){if(ar=qa(St._debugInfo),Vr=le(St),typeof Vr!=\"function\")throw Error(\"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\");var Tr=Vr.call(St);return Tr===St?(dt.tag!==0||Object.prototype.toString.call(dt.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(Tr)!==\"[object Generator]\")&&(rY||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),rY=!0):St.entries!==Vr||IB||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),IB=!0),dt=si(dt,mt,Tr,gn),Xr=ar,dt}if(typeof St.then==\"function\")return ar=qa(St._debugInfo),dt=bo(dt,mt,MS(St),gn),Xr=ar,dt;if(St.$$typeof===sd)return bo(dt,mt,AS(dt,St),gn);IS(dt,St)}return typeof St==\"string\"&&St!==\"\"||typeof St==\"number\"||typeof St==\"bigint\"?(ar=\"\"+St,mt!==null&&mt.tag===6?(d(dt,mt.sibling),gn=v(mt,ar),gn.return=dt,dt=gn):(d(dt,mt),gn=rh(ar,dt.mode,gn),gn.return=dt,gn._debugOwner=dt,gn._debugTask=dt._debugTask,gn._debugInfo=Xr,dt=gn),j(dt)):(typeof St==\"function\"&&RS(dt,St),typeof St==\"symbol\"&&PS(dt,St),d(dt,mt))}return function(dt,mt,St,gn){var ar=Xr;Xr=null;try{kw=0;var Vr=bo(dt,mt,St,gn);return D2=null,Vr}catch(hi){if(hi===B2||hi===V7)throw hi;var Tr=y(29,hi,null,dt.mode);Tr.lanes=gn,Tr.return=dt;var Sr=Tr._debugInfo=Xr;if(Tr._debugOwner=dt._debugOwner,Tr._debugTask=dt._debugTask,Sr!=null){for(var Wr=Sr.length-1;0<=Wr;Wr--)if(typeof Sr[Wr].stack==\"string\"){Tr._debugOwner=Sr[Wr],Tr._debugTask=Sr[Wr].debugTask;break}}return Tr}finally{Xr=ar}}}function Q$(i,s){var d=wa(i);return i=!d&&typeof le(i)==\"function\",d||i?(d=d?\"array\":\"iterable\",console.error(\"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>\",d,s,d),!1):!0}function uR(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dR(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ch(i){return{lane:i,tag:cY,payload:null,callback:null,next:null}}function lh(i,s,d){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,PB===h&&!dY){var v=S(i);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\\n\\nPlease update the following component: %s`,v),dY=!0}return(ko&Sa)!==Ba?(v=h.pending,v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=lc(i),di(i,null,d),s):(Ti(i,h,s,d),lc(i))}function Ib(i,s,d){if(s=s.updateQueue,s!==null&&(s=s.shared,(d&4194048)!==0)){var h=s.lanes;h&=i.pendingLanes,d|=h,s.lanes=d,Pn(i,d)}}function BS(i,s){var d=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var v=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var j={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};E===null?v=E=j:E=E.next=j,d=d.next}while(d!==null);E===null?v=E=s:E=E.next=s}else v=E=s;d={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:h.shared,callbacks:h.callbacks},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=s:i.next=s,d.lastBaseUpdate=s}function Rb(){if(BB){var i=P2;if(i!==null)throw i}}function Pb(i,s,d,h){BB=!1;var v=i.updateQueue;Ih=!1,PB=v.shared;var E=v.firstBaseUpdate,j=v.lastBaseUpdate,oe=v.shared.pending;if(oe!==null){v.shared.pending=null;var ke=oe,Fe=ke.next;ke.next=null,j===null?E=Fe:j.next=Fe,j=ke;var Ct=i.alternate;Ct!==null&&(Ct=Ct.updateQueue,oe=Ct.lastBaseUpdate,oe!==j&&(oe===null?Ct.firstBaseUpdate=Fe:oe.next=Fe,Ct.lastBaseUpdate=ke))}if(E!==null){var Tt=v.baseState;j=0,Ct=Fe=ke=null,oe=E;do{var pt=oe.lane&-536870913,qt=pt!==oe.lane;if(qt?(Jr&pt)===pt:(h&pt)===pt){pt!==0&&pt===$0&&(BB=!0),Ct!==null&&(Ct=Ct.next={lane:0,tag:oe.tag,payload:oe.payload,callback:null,next:null});e:{pt=i;var er=oe,ur=s,si=d;switch(er.tag){case lY:if(er=er.payload,typeof er==\"function\"){I2=!0;var bo=er.call(si,Tt,ur);if(pt.mode&bs){qe(!0);try{er.call(si,Tt,ur)}finally{qe(!1)}}I2=!1,Tt=bo;break e}Tt=er;break e;case RB:pt.flags=pt.flags&-65537|128;case cY:if(bo=er.payload,typeof bo==\"function\"){if(I2=!0,er=bo.call(si,Tt,ur),pt.mode&bs){qe(!0);try{bo.call(si,Tt,ur)}finally{qe(!1)}}I2=!1}else er=bo;if(er==null)break e;Tt=ao({},Tt,er);break e;case uY:Ih=!0}}pt=oe.callback,pt!==null&&(i.flags|=64,qt&&(i.flags|=8192),qt=v.callbacks,qt===null?v.callbacks=[pt]:qt.push(pt))}else qt={lane:pt,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Ct===null?(Fe=Ct=qt,ke=Tt):Ct=Ct.next=qt,j|=pt;if(oe=oe.next,oe===null){if(oe=v.shared.pending,oe===null)break;qt=oe,oe=qt.next,qt.next=null,v.lastBaseUpdate=qt,v.shared.pending=null}}while(!0);Ct===null&&(ke=Tt),v.baseState=ke,v.firstBaseUpdate=Fe,v.lastBaseUpdate=Ct,E===null&&(v.shared.lanes=0),Bh|=j,i.lanes=j,i.memoizedState=Tt}PB=null}function eK(i,s){if(typeof i!=\"function\")throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \"+i);i.call(s)}function NSe(i,s){var d=i.shared.hiddenCallbacks;if(d!==null)for(i.shared.hiddenCallbacks=null,i=0;i<d.length;i++)eK(d[i],s)}function tK(i,s){var d=i.callbacks;if(d!==null)for(i.callbacks=null,i=0;i<d.length;i++)eK(d[i],s)}function nK(i,s){var d=yd;z(j7,d,i),z(F2,s,i),yd=d|s.baseLanes}function fR(i){z(j7,yd,i),z(F2,F2.current,i)}function pR(i){yd=j7.current,P(F2,i),P(j7,i)}function uh(i){var s=i.alternate;z(Xi,Xi.current&O2,i),z(Gc,i,i),El===null&&(s===null||F2.current!==null||s.memoizedState!==null)&&(El=i)}function hR(i){z(Xi,Xi.current,i),z(Gc,i,i),El===null&&(El=i)}function rK(i){i.tag===22?(z(Xi,Xi.current,i),z(Gc,i,i),El===null&&(El=i)):dh(i)}function dh(i){z(Xi,Xi.current,i),z(Gc,Gc.current,i)}function Uc(i){P(Gc,i),El===i&&(El=null),P(Xi,i)}function DS(i){for(var s=i;s!==null;){if(s.tag===13){var d=s.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||TP(d)||_P(d)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder===\"forwards\"||s.memoizedProps.revealOrder===\"backwards\"||s.memoizedProps.revealOrder===\"unstable_legacy-backwards\"||s.memoizedProps.revealOrder===\"together\")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function io(){var i=en;Al===null?Al=[i]:Al.push(i)}function $n(){var i=en;if(Al!==null&&(Of++,Al[Of]!==i)){var s=S(zr);if(!fY.has(s)&&(fY.add(s),Al!==null)){for(var d=\"\",h=0;h<=Of;h++){var v=Al[h],E=h===Of?i:v;for(v=h+1+\". \"+v;30>v.length;)v+=\" \";v+=E+`\\n`,d+=v}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\\n\\n   Previous render            Next render\\n   ------------------------------------------------------\\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n`,s,d)}}}function e2(i){i==null||wa(i)||console.error(\"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.\",en,typeof i)}function FS(){var i=S(zr);hY.has(i)||(hY.add(i),console.error(\"ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.\",i))}function Vi(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function mR(i,s){if(_w)return!1;if(s===null)return console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",en),!1;i.length!==s.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,en,\"[\"+s.join(\", \")+\"]\",\"[\"+i.join(\", \")+\"]\");for(var d=0;d<s.length&&d<i.length;d++)if(!Us(i[d],s[d]))return!1;return!0}function gR(i,s,d,h,v,E){Df=E,zr=s,Al=i!==null?i._debugHookTypes:null,Of=-1,_w=i!==null&&i.type!==s.type,(Object.prototype.toString.call(d)===\"[object AsyncFunction]\"||Object.prototype.toString.call(d)===\"[object AsyncGeneratorFunction]\")&&(E=S(zr),DB.has(E)||(DB.add(E),console.error(\"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\",E===null?\"An unknown Component\":\"<\"+E+\">\"))),s.memoizedState=null,s.updateQueue=null,s.lanes=0,an.H=i!==null&&i.memoizedState!==null?OB:Al!==null?mY:FB,Y0=E=(s.mode&bs)!==Lr;var j=TB(d,h,v);if(Y0=!1,N2&&(j=yR(s,d,h,v)),E){qe(!0);try{j=yR(s,d,h,v)}finally{qe(!1)}}return oK(i,s),j}function oK(i,s){s._debugHookTypes=Al,s.dependencies===null?Ff!==null&&(s.dependencies={lanes:0,firstContext:null,_debugThenableState:Ff}):s.dependencies._debugThenableState=Ff,an.H=Mw;var d=Qo!==null&&Qo.next!==null;if(Df=0,Al=en=la=Qo=zr=null,Of=-1,i!==null&&(i.flags&65011712)!==(s.flags&65011712)&&console.error(\"Internal React error: Expected static flag was missing. Please notify the React team.\"),K7=!1,Tw=0,Ff=null,d)throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");i===null||ua||(i=i.dependencies,i!==null&&SS(i)&&(ua=!0)),Aw?(Aw=!1,i=!0):i=!1,i&&(s=S(s)||\"Unknown\",pY.has(s)||DB.has(s)||(pY.add(s),console.error(\"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.\")))}function yR(i,s,d,h){zr=i;var v=0;do{if(N2&&(Ff=null),Tw=0,N2=!1,v>=S9e)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(v+=1,_w=!1,la=Qo=null,i.updateQueue!=null){var E=i.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}Of=-1,an.H=gY,E=TB(s,d,h)}while(N2);return E}function USe(){var i=an.H,s=i.useState()[0];return s=typeof s.then==\"function\"?Bb(s):s,i=i.useState()[0],(Qo!==null?Qo.memoizedState:null)!==i&&(zr.flags|=1024),s}function vR(){var i=G7!==0;return G7=0,i}function xR(i,s,d){s.updateQueue=i.updateQueue,s.flags=(s.mode&uu)!==Lr?s.flags&-402655237:s.flags&-2053,i.lanes&=~d}function bR(i){if(K7){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}K7=!1}Df=0,Al=la=Qo=zr=null,Of=-1,en=null,N2=!1,Tw=G7=0,Ff=null}function Fs(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return la===null?zr.memoizedState=la=i:la=la.next=i,la}function Vo(){if(Qo===null){var i=zr.alternate;i=i!==null?i.memoizedState:null}else i=Qo.next;var s=la===null?zr.memoizedState:la.next;if(s!==null)la=s,Qo=i;else{if(i===null)throw zr.alternate===null?Error(\"Update hook called on initial render. This is likely a bug in React. Please file an issue.\"):Error(\"Rendered more hooks than during the previous render.\");Qo=i,i={memoizedState:Qo.memoizedState,baseState:Qo.baseState,baseQueue:Qo.baseQueue,queue:Qo.queue,next:null},la===null?zr.memoizedState=la=i:la=la.next=i}return la}function OS(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bb(i){var s=Tw;return Tw+=1,Ff===null&&(Ff=$$()),i=G$(Ff,i,s),s=zr,(la===null?s.memoizedState:la.next)===null&&(s=s.alternate,an.H=s!==null&&s.memoizedState!==null?OB:FB),i}function fh(i){if(i!==null&&typeof i==\"object\"){if(typeof i.then==\"function\")return Bb(i);if(i.$$typeof===sd)return Ei(i)}throw Error(\"An unsupported type was passed to use(): \"+String(i))}function P0(i){var s=null,d=zr.updateQueue;if(d!==null&&(s=d.memoCache),s==null){var h=zr.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),d===null&&(d=OS(),zr.updateQueue=d),d.memoCache=s,d=s.data[s.index],d===void 0||_w)for(d=s.data[s.index]=Array(i),h=0;h<i;h++)d[h]=tAe;else d.length!==i&&console.error(\"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.\",d.length,i);return s.index++,d}function au(i,s){return typeof s==\"function\"?s(i):s}function wR(i,s,d){var h=Fs();if(d!==void 0){var v=d(s);if(Y0){qe(!0);try{d(s)}finally{qe(!1)}}}else v=s;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=$Se.bind(null,zr,i),[h.memoizedState,i]}function t2(i){var s=Vo();return ER(s,Qo,i)}function ER(i,s,d){var h=i.queue;if(h===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");h.lastRenderedReducer=d;var v=i.baseQueue,E=h.pending;if(E!==null){if(v!==null){var j=v.next;v.next=E.next,E.next=j}s.baseQueue!==v&&console.error(\"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.\"),s.baseQueue=v=E,h.pending=null}if(E=i.baseState,v===null)i.memoizedState=E;else{s=v.next;var oe=j=null,ke=null,Fe=s,Ct=!1;do{var Tt=Fe.lane&-536870913;if(Tt!==Fe.lane?(Jr&Tt)===Tt:(Df&Tt)===Tt){var pt=Fe.revertLane;if(pt===0)ke!==null&&(ke=ke.next={lane:0,revertLane:0,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null}),Tt===$0&&(Ct=!0);else if((Df&pt)===pt){Fe=Fe.next,pt===$0&&(Ct=!0);continue}else Tt={lane:0,revertLane:Fe.revertLane,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},ke===null?(oe=ke=Tt,j=E):ke=ke.next=Tt,zr.lanes|=pt,Bh|=pt;Tt=Fe.action,Y0&&d(E,Tt),E=Fe.hasEagerState?Fe.eagerState:d(E,Tt)}else pt={lane:Tt,revertLane:Fe.revertLane,gesture:Fe.gesture,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},ke===null?(oe=ke=pt,j=E):ke=ke.next=pt,zr.lanes|=Tt,Bh|=Tt;Fe=Fe.next}while(Fe!==null&&Fe!==s);if(ke===null?j=E:ke.next=oe,!Us(E,i.memoizedState)&&(ua=!0,Ct&&(d=P2,d!==null)))throw d;i.memoizedState=E,i.baseState=j,i.baseQueue=ke,h.lastRenderedState=E}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Db(i){var s=Vo(),d=s.queue;if(d===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");d.lastRenderedReducer=i;var h=d.dispatch,v=d.pending,E=s.memoizedState;if(v!==null){d.pending=null;var j=v=v.next;do E=i(E,j.action),j=j.next;while(j!==v);Us(E,s.memoizedState)||(ua=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),d.lastRenderedState=E}return[E,h]}function SR(i,s,d){var h=zr,v=Fs();if(ho){if(d===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");var E=d();L2||E===d()||(console.error(\"The result of getServerSnapshot should be cached to avoid an infinite loop\"),L2=!0)}else{if(E=s(),L2||(d=s(),Us(E,d)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),L2=!0)),ei===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");(Jr&127)!==0||iK(h,s,E)}return v.memoizedState=E,d={value:E,getSnapshot:s},v.queue=d,zS(sK.bind(null,h,d,i),[i]),h.flags|=2048,r2(Sl|Hs,{destroy:void 0},aK.bind(null,h,d,E,s),null),E}function LS(i,s,d){var h=zr,v=Vo(),E=ho;if(E){if(d===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");d=d()}else if(d=s(),!L2){var j=s();Us(d,j)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),L2=!0)}(j=!Us((Qo||v).memoizedState,d))&&(v.memoizedState=d,ua=!0),v=v.queue;var oe=sK.bind(null,h,v,i);if(dc(2048,Hs,oe,[i]),v.getSnapshot!==s||j||la!==null&&la.memoizedState.tag&Sl){if(h.flags|=2048,r2(Sl|Hs,{destroy:void 0},aK.bind(null,h,v,d,s),null),ei===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");E||(Df&127)!==0||iK(h,s,d)}return d}function iK(i,s,d){i.flags|=16384,i={getSnapshot:s,value:d},s=zr.updateQueue,s===null?(s=OS(),zr.updateQueue=s,s.stores=[i]):(d=s.stores,d===null?s.stores=[i]:d.push(i))}function aK(i,s,d,h){s.value=d,s.getSnapshot=h,cK(s)&&lK(i)}function sK(i,s,d){return d(function(){cK(s)&&(qu(2,\"updateSyncExternalStore()\",i),lK(i))})}function cK(i){var s=i.getSnapshot;i=i.value;try{var d=s();return!Us(i,d)}catch{return!0}}function lK(i){var s=nr(i,2);s!==null&&Di(s,i,2)}function AR(i){var s=Fs();if(typeof i==\"function\"){var d=i;if(i=d(),Y0){qe(!0);try{d()}finally{qe(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:i},s}function kR(i){i=AR(i);var s=i.queue,d=_K.bind(null,zr,s);return s.dispatch=d,[i.memoizedState,d]}function CR(i){var s=Fs();s.memoizedState=s.baseState=i;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=d,s=zR.bind(null,zr,!0,d),d.dispatch=s,[i,s]}function uK(i,s){var d=Vo();return dK(d,Qo,i,s)}function dK(i,s,d,h){return i.baseState=d,ER(i,Qo,typeof h==\"function\"?h:au)}function fK(i,s){var d=Vo();return Qo!==null?dK(d,Qo,i,s):(d.baseState=i,[i,d.queue.dispatch])}function zSe(i,s,d,h,v){if(GS(i))throw Error(\"Cannot update form state while rendering.\");if(i=s.action,i!==null){var E={payload:v,action:i,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(j){E.listeners.push(j)}};an.T!==null?d(!0):E.isTransition=!1,h(E),d=s.pending,d===null?(E.next=s.pending=E,pK(s,E)):(E.next=d.next,s.pending=d.next=E)}}function pK(i,s){var d=s.action,h=s.payload,v=i.state;if(s.isTransition){var E=an.T,j={};j._updatedFibers=new Set,an.T=j;try{var oe=d(v,h),ke=an.S;ke!==null&&ke(j,oe),hK(i,s,oe)}catch(Fe){TR(i,s,Fe)}finally{E!==null&&j.types!==null&&(E.types!==null&&E.types!==j.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),E.types=j.types),an.T=E,E===null&&j._updatedFibers&&(i=j._updatedFibers.size,j._updatedFibers.clear(),10<i&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}else try{j=d(v,h),hK(i,s,j)}catch(Fe){TR(i,s,Fe)}}function hK(i,s,d){d!==null&&typeof d==\"object\"&&typeof d.then==\"function\"?(an.asyncTransitions++,d.then(KS,KS),d.then(function(h){mK(i,s,h)},function(h){return TR(i,s,h)}),s.isTransition||console.error(\"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.\")):mK(i,s,d)}function mK(i,s,d){s.status=\"fulfilled\",s.value=d,gK(s),i.state=d,s=i.pending,s!==null&&(d=s.next,d===s?i.pending=null:(d=d.next,s.next=d,pK(i,d)))}function TR(i,s,d){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status=\"rejected\",s.reason=d,gK(s),s=s.next;while(s!==h)}i.action=null}function gK(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function yK(i,s){return s}function n2(i,s){if(ho){var d=ei.formState;if(d!==null){e:{var h=zr;if(ho){if(pi){t:{for(var v=pi,E=bl;v.nodeType!==8;){if(!E){v=null;break t}if(v=Vc(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E===iD||E===tZ?v:null}if(v){pi=Vc(v.nextSibling),h=v.data===iD;break e}}ih(h)}h=!1}h&&(s=d[0])}}return d=Fs(),d.memoizedState=d.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yK,lastRenderedState:s},d.queue=h,d=_K.bind(null,zr,h),h.dispatch=d,h=AR(!1),E=zR.bind(null,zr,!1,h.queue),h=Fs(),v={state:s,dispatch:null,action:i,pending:null},h.queue=v,d=zSe.bind(null,zr,v,E,d),v.dispatch=d,h.memoizedState=i,[s,d,!1]}function NS(i){var s=Vo();return vK(s,Qo,i)}function vK(i,s,d){if(s=ER(i,s,yK)[0],i=t2(au)[0],typeof s==\"object\"&&s!==null&&typeof s.then==\"function\")try{var h=Bb(s)}catch(j){throw j===B2?V7:j}else h=s;s=Vo();var v=s.queue,E=v.dispatch;return d!==s.memoizedState&&(zr.flags|=2048,r2(Sl|Hs,{destroy:void 0},VSe.bind(null,v,d),null)),[h,E,i]}function VSe(i,s){i.action=s}function US(i){var s=Vo(),d=Qo;if(d!==null)return vK(s,d,i);Vo(),s=s.memoizedState,d=Vo();var h=d.queue.dispatch;return d.memoizedState=i,[s,h,!1]}function r2(i,s,d,h){return i={tag:i,create:d,deps:h,inst:s,next:null},s=zr.updateQueue,s===null&&(s=OS(),zr.updateQueue=s),d=s.lastEffect,d===null?s.lastEffect=i.next=i:(h=d.next,d.next=i,i.next=h,s.lastEffect=i),i}function _R(i){var s=Fs();return i={current:i},s.memoizedState=i}function B0(i,s,d,h){var v=Fs();zr.flags|=i,v.memoizedState=r2(Sl|s,{destroy:void 0},d,h===void 0?null:h)}function dc(i,s,d,h){var v=Vo();h=h===void 0?null:h;var E=v.memoizedState.inst;Qo!==null&&h!==null&&mR(h,Qo.memoizedState.deps)?v.memoizedState=r2(s,E,d,h):(zr.flags|=i,v.memoizedState=r2(Sl|s,E,d,h))}function zS(i,s){(zr.mode&uu)!==Lr?B0(276826112,Hs,i,s):B0(8390656,Hs,i,s)}function HSe(i){zr.flags|=4;var s=zr.updateQueue;if(s===null)s=OS(),zr.updateQueue=s,s.events=[i];else{var d=s.events;d===null?s.events=[i]:d.push(i)}}function MR(i){var s=Fs(),d={impl:i};return s.memoizedState=d,function(){if((ko&Sa)!==Ba)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return d.impl.apply(void 0,arguments)}}function VS(i){var s=Vo().memoizedState;return HSe({ref:s,nextImpl:i}),function(){if((ko&Sa)!==Ba)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return s.impl.apply(void 0,arguments)}}function IR(i,s){var d=4194308;return(zr.mode&uu)!==Lr&&(d|=134217728),B0(d,qc,i,s)}function xK(i,s){if(typeof s==\"function\"){i=i();var d=s(i);return function(){typeof d==\"function\"?d():s(null)}}if(s!=null)return s.hasOwnProperty(\"current\")||console.error(\"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.\",\"an object with keys {\"+Object.keys(s).join(\", \")+\"}\"),i=i(),s.current=i,function(){s.current=null}}function RR(i,s,d){typeof s!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",s!==null?typeof s:\"null\"),d=d!=null?d.concat([i]):null;var h=4194308;(zr.mode&uu)!==Lr&&(h|=134217728),B0(h,qc,xK.bind(null,s,i),d)}function HS(i,s,d){typeof s!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",s!==null?typeof s:\"null\"),d=d!=null?d.concat([i]):null,dc(4,qc,xK.bind(null,s,i),d)}function PR(i,s){return Fs().memoizedState=[i,s===void 0?null:s],i}function jS(i,s){var d=Vo();s=s===void 0?null:s;var h=d.memoizedState;return s!==null&&mR(s,h[1])?h[0]:(d.memoizedState=[i,s],i)}function BR(i,s){var d=Fs();s=s===void 0?null:s;var h=i();if(Y0){qe(!0);try{i()}finally{qe(!1)}}return d.memoizedState=[h,s],h}function $S(i,s){var d=Vo();s=s===void 0?null:s;var h=d.memoizedState;if(s!==null&&mR(s,h[1]))return h[0];if(h=i(),Y0){qe(!0);try{i()}finally{qe(!1)}}return d.memoizedState=[h,s],h}function DR(i,s){var d=Fs();return FR(d,i,s)}function bK(i,s){var d=Vo();return EK(d,Qo.memoizedState,i,s)}function wK(i,s){var d=Vo();return Qo===null?FR(d,i,s):EK(d,Qo.memoizedState,i,s)}function FR(i,s,d){return d===void 0||(Df&1073741824)!==0&&(Jr&261930)===0?i.memoizedState=s:(i.memoizedState=d,i=SG(),zr.lanes|=i,Bh|=i,d)}function EK(i,s,d,h){return Us(d,s)?d:F2.current!==null?(i=FR(i,d,h),Us(i,s)||(ua=!0),i):(Df&42)===0||(Df&1073741824)!==0&&(Jr&261930)===0?(ua=!0,i.memoizedState=d):(i=SG(),zr.lanes|=i,Bh|=i,s)}function KS(){an.asyncTransitions--}function SK(i,s,d,h,v){var E=No.p;No.p=E!==0&&E<lu?E:lu;var j=an.T,oe={};oe._updatedFibers=new Set,an.T=oe,zR(i,!1,s,d);try{var ke=v(),Fe=an.S;if(Fe!==null&&Fe(oe,ke),ke!==null&&typeof ke==\"object\"&&typeof ke.then==\"function\"){an.asyncTransitions++,ke.then(KS,KS);var Ct=LSe(ke,h);Fb(i,s,Ct,zc(i))}else Fb(i,s,h,zc(i))}catch(Tt){Fb(i,s,{then:function(){},status:\"rejected\",reason:Tt},zc(i))}finally{No.p=E,j!==null&&oe.types!==null&&(j.types!==null&&j.types!==oe.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),j.types=oe.types),an.T=j,j===null&&oe._updatedFibers&&(i=oe._updatedFibers.size,oe._updatedFibers.clear(),10<i&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}function OR(i,s,d,h){if(i.tag!==5)throw Error(\"Expected the form instance to be a HostComponent. This is a bug in React.\");var v=AK(i).queue;FSe(i),SK(i,v,s,a1,d===null?p:function(){return kK(i),d(h)})}function AK(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:a1,baseState:a1,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:a1},next:null};var d={};return s.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:d},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function kK(i){an.T===null&&console.error(\"requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.\");var s=AK(i);s.next===null&&(s=i.alternate.memoizedState),Fb(i,s.next.queue,{},zc(i))}function LR(){var i=AR(!1);return i=SK.bind(null,zr,i.queue,!0,!1),Fs().memoizedState=i,[!1,i]}function CK(){var i=t2(au)[0],s=Vo().memoizedState;return[typeof i==\"boolean\"?i:Bb(i),s]}function TK(){var i=Db(au)[0],s=Vo().memoizedState;return[typeof i==\"boolean\"?i:Bb(i),s]}function D0(){return Ei($w)}function NR(){var i=Fs(),s=ei.identifierPrefix;if(ho){var d=Mf,h=_f;d=(h&~(1<<32-Os(h)-1)).toString(32)+d,s=\"_\"+s+\"R_\"+d,d=G7++,0<d&&(s+=\"H\"+d.toString(32)),s+=\"_\"}else d=E9e++,s=\"_\"+s+\"r_\"+d.toString(32)+\"_\";return i.memoizedState=s}function UR(){return Fs().memoizedState=jSe.bind(null,zr)}function jSe(i,s){for(var d=i.return;d!==null;){switch(d.tag){case 24:case 3:var h=zc(d),v=ch(h),E=lh(d,v,h);E!==null&&(qu(h,\"refresh()\",i),Di(E,d,h),Ib(E,d,h)),i=iR(),s!=null&&E!==null&&console.error(\"The seed argument is not enabled outside experimental channels.\"),v.payload={cache:i};return}d=d.return}}function $Se(i,s,d){var h=arguments;typeof h[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),h=zc(i);var v={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};GS(i)?MK(s,v):(v=ba(i,s,v,h),v!==null&&(qu(h,\"dispatch()\",i),Di(v,i,h),IK(v,s,h)))}function _K(i,s,d){var h=arguments;typeof h[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),h=zc(i),Fb(i,s,d,h)&&qu(h,\"setState()\",i)}function Fb(i,s,d,h){var v={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(GS(i))MK(s,v);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null)){var j=an.H;an.H=fu;try{var oe=s.lastRenderedState,ke=E(oe,d);if(v.hasEagerState=!0,v.eagerState=ke,Us(ke,oe))return Ti(i,s,v,0),ei===null&&Zi(),!1}catch{}finally{an.H=j}}if(d=ba(i,s,v,h),d!==null)return Di(d,i,h),IK(d,s,h),!0}return!1}function zR(i,s,d,h){if(an.T===null&&$0===0&&console.error(\"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.\"),h={lane:2,revertLane:gP(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},GS(i)){if(s)throw Error(\"Cannot update optimistic state while rendering.\");console.error(\"Cannot call startTransition while rendering.\")}else s=ba(i,d,h,2),s!==null&&(qu(2,\"setOptimistic()\",i),Di(s,i,2))}function GS(i){var s=i.alternate;return i===zr||s!==null&&s===zr}function MK(i,s){N2=K7=!0;var d=i.pending;d===null?s.next=s:(s.next=d.next,d.next=s),i.pending=s}function IK(i,s,d){if((d&4194048)!==0){var h=s.lanes;h&=i.pendingLanes,d|=h,s.lanes=d,Pn(i,d)}}function VR(i){if(i!==null&&typeof i!=\"function\"){var s=String(i);TY.has(s)||(TY.add(s),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",i))}}function HR(i,s,d,h){var v=i.memoizedState,E=d(h,v);if(i.mode&bs){qe(!0);try{E=d(h,v)}finally{qe(!1)}}E===void 0&&(s=se(s)||\"Component\",SY.has(s)||(SY.add(s),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",s))),v=E==null?v:ao({},v,E),i.memoizedState=v,i.lanes===0&&(i.updateQueue.baseState=v)}function RK(i,s,d,h,v,E,j){var oe=i.stateNode;if(typeof oe.shouldComponentUpdate==\"function\"){if(d=oe.shouldComponentUpdate(h,E,j),i.mode&bs){qe(!0);try{d=oe.shouldComponentUpdate(h,E,j)}finally{qe(!1)}}return d===void 0&&console.error(\"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.\",se(s)||\"Component\"),d}return s.prototype&&s.prototype.isPureReactComponent?!Me(d,h)||!Me(v,E):!0}function PK(i,s,d,h){var v=s.state;typeof s.componentWillReceiveProps==\"function\"&&s.componentWillReceiveProps(d,h),typeof s.UNSAFE_componentWillReceiveProps==\"function\"&&s.UNSAFE_componentWillReceiveProps(d,h),s.state!==v&&(i=S(i)||\"Component\",vY.has(i)||(vY.add(i),console.error(\"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",i)),LB.enqueueReplaceState(s,s.state,null))}function F0(i,s){var d=s;if(\"ref\"in s){d={};for(var h in s)h!==\"ref\"&&(d[h]=s[h])}if(i=i.defaultProps){d===s&&(d=ao({},d));for(var v in i)d[v]===void 0&&(d[v]=i[v])}return d}function BK(i){hB(i),console.warn(`%s\\n\\n%s\\n`,U2?\"An error occurred in the <\"+U2+\"> component.\":\"An error occurred in one of your React components.\",`Consider adding an error boundary to your tree to customize error handling behavior.\\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function DK(i){var s=U2?\"The above error occurred in the <\"+U2+\"> component.\":\"The above error occurred in one of your React components.\",d=\"React will try to recreate this component tree from scratch using the error boundary you provided, \"+((NB||\"Anonymous\")+\".\");if(typeof i==\"object\"&&i!==null&&typeof i.environmentName==\"string\"){var h=i.environmentName;i=[`%o\\n\\n%s\\n\\n%s\\n`,i,s,d].slice(0),typeof i[0]==\"string\"?i.splice(0,1,lZ+\" \"+i[0],uZ,yA+h+yA,dZ):i.splice(0,0,lZ,uZ,yA+h+yA,dZ),i.unshift(console),h=j9e.apply(console.error,i),h()}else console.error(`%o\\n\\n%s\\n\\n%s\\n`,i,s,d)}function FK(i){hB(i)}function qS(i,s){try{U2=s.source?S(s.source):null,NB=null;var d=s.value;if(an.actQueue!==null)an.thrownErrors.push(d);else{var h=i.onUncaughtError;h(d,{componentStack:s.stack})}}catch(v){setTimeout(function(){throw v})}}function OK(i,s,d){try{U2=d.source?S(d.source):null,NB=S(s);var h=i.onCaughtError;h(d.value,{componentStack:d.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function jR(i,s,d){return d=ch(d),d.tag=RB,d.payload={element:null},d.callback=function(){C(s.source,qS,i,s)},d}function $R(i){return i=ch(i),i.tag=RB,i}function KR(i,s,d,h){var v=d.type.getDerivedStateFromError;if(typeof v==\"function\"){var E=h.value;i.payload=function(){return v(E)},i.callback=function(){ul(d),C(h.source,OK,s,d,h)}}var j=d.stateNode;j!==null&&typeof j.componentDidCatch==\"function\"&&(i.callback=function(){ul(d),C(h.source,OK,s,d,h),typeof v!=\"function\"&&(Fh===null?Fh=new Set([this]):Fh.add(this)),v9e(this,h),typeof v==\"function\"||(d.lanes&2)===0&&console.error(\"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.\",S(d)||\"Unknown\")})}function KSe(i,s,d,h,v){if(d.flags|=32768,ud&&jb(i,v),h!==null&&typeof h==\"object\"&&typeof h.then==\"function\"){if(s=d.alternate,s!==null&&Qy(s,d,v,!0),ho&&(pd=!0),d=Gc.current,d!==null){switch(d.tag){case 31:case 13:return El===null?n7():d.alternate===null&&Mi===Nf&&(Mi=Y7),d.flags&=-257,d.flags|=65536,d.lanes=v,h===H7?d.flags|=16384:(s=d.updateQueue,s===null?d.updateQueue=new Set([h]):s.add(h),fP(i,h,v)),!1;case 22:return d.flags|=65536,h===H7?d.flags|=16384:(s=d.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},d.updateQueue=s):(d=s.retryQueue,d===null?s.retryQueue=new Set([h]):d.add(h)),fP(i,h,v)),!1}throw Error(\"Unexpected Suspense handler tag (\"+d.tag+\"). This is a bug in React.\")}return fP(i,h,v),n7(),!1}if(ho)return pd=!0,s=Gc.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==bB&&kb(Oc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.\",{cause:h}),d))):(h!==bB&&kb(Oc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering the entire root.\",{cause:h}),d)),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=Oc(h,d),v=jR(i.stateNode,h,v),BS(i,v),Mi!==Rh&&(Mi=Z0)),!1;var E=Oc(Error(\"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.\",{cause:h}),d);if(Fw===null?Fw=[E]:Fw.push(E),Mi!==Rh&&(Mi=Z0),s===null)return!0;h=Oc(h,d),d=s;do{switch(d.tag){case 3:return d.flags|=65536,i=v&-v,d.lanes|=i,i=jR(d.stateNode,h,i),BS(d,i),!1;case 1:if(s=d.type,E=d.stateNode,(d.flags&128)===0&&(typeof s.getDerivedStateFromError==\"function\"||E!==null&&typeof E.componentDidCatch==\"function\"&&(Fh===null||!Fh.has(E))))return d.flags|=65536,v&=-v,d.lanes|=v,v=$R(v),KR(v,i,d,h),BS(d,v),!1}d=d.return}while(d!==null);return!1}function Wa(i,s,d,h){s.child=i===null?sY(s,null,d,h):W0(s,i.child,d,h)}function LK(i,s,d,h,v){d=d.render;var E=s.ref;if(\"ref\"in h){var j={};for(var oe in h)oe!==\"ref\"&&(j[oe]=h[oe])}else j=h;return I0(s),h=gR(i,s,d,j,E,v),oe=vR(),i!==null&&!ua?(xR(i,s,v),Ef(i,s,v)):(ho&&oe&&QI(s),s.flags|=1,Wa(i,s,h,v),s.child)}function NK(i,s,d,h,v){if(i===null){var E=d.type;return typeof E==\"function\"&&!fl(E)&&E.defaultProps===void 0&&d.compare===null?(d=gs(E),s.tag=15,s.type=d,qR(s,E),UK(i,s,d,h,v)):(i=pl(d.type,null,h,s,s.mode,v),i.ref=s.ref,i.return=s,s.child=i)}if(E=i.child,!QR(i,v)){var j=E.memoizedProps;if(d=d.compare,d=d!==null?d:Me,d(j,h)&&i.ref===s.ref)return Ef(i,s,v)}return s.flags|=1,i=_a(E,h),i.ref=s.ref,i.return=s,s.child=i}function UK(i,s,d,h,v){if(i!==null){var E=i.memoizedProps;if(Me(E,h)&&i.ref===s.ref&&s.type===i.type)if(ua=!1,s.pendingProps=h=E,QR(i,v))(i.flags&131072)!==0&&(ua=!0);else return s.lanes=i.lanes,Ef(i,s,v)}return GR(i,s,d,h,v)}function zK(i,s,d,h){var v=h.children,E=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:uw,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode===\"hidden\"){if((s.flags&128)!==0){if(E=E!==null?E.baseLanes|d:d,i!==null){for(h=s.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~E}else h=0,s.child=null;return VK(i,s,E,d,h)}if((d&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&TS(s,E!==null?E.cachePool:null),E!==null?nK(s,E):fR(s),rK(s);else return h=s.lanes=536870912,VK(i,s,E!==null?E.baseLanes|d:d,d,h)}else E!==null?(TS(s,E.cachePool),nK(s,E),dh(s),s.memoizedState=null):(i!==null&&TS(s,null),fR(s),dh(s));return Wa(i,s,v,d),s.child}function Ob(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:uw,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function VK(i,s,d,h,v){var E=cR();return E=E===null?null:{parent:sa._currentValue,pool:E},s.memoizedState={baseLanes:d,cachePool:E},i!==null&&TS(s,null),fR(s),rK(s),i!==null&&Qy(i,s,h,!0),s.childLanes=v,null}function WS(i,s){var d=s.hidden;return d!==void 0&&console.error(`<Activity> doesn\\'t accept a hidden prop. Use mode=\"hidden\" instead.\\n- <Activity %s>\\n+ <Activity %s>`,d===!0?\"hidden\":d===!1?\"hidden={false}\":\"hidden={...}\",d?\\'mode=\"hidden\"\\':\\'mode=\"visible\"\\'),s=ZS({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function HK(i,s,d){return W0(s,i.child,null,d),i=WS(s,s.pendingProps),i.flags|=2,Uc(s),s.memoizedState=null,i}function GSe(i,s,d){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(ho){if(h.mode===\"hidden\")return i=WS(s,h),s.lanes=536870912,Ob(null,i);if(hR(s),(i=pi)?(d=pq(i,bl),d=d!==null&&d.data===n1?d:null,d!==null&&(h={dehydrated:d,treeContext:D$(),retryLane:536870912,hydrationErrors:null},s.memoizedState=h,h=T0(d),h.return=s,s.child=h,Xa=s,pi=null)):d=null,d===null)throw wS(s,i),ih(s);return s.lanes=536870912,null}return WS(s,h)}var E=i.memoizedState;if(E!==null){var j=E.dehydrated;if(hR(s),v)if(s.flags&256)s.flags&=-257,s=HK(i,s,d);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\");else if(O$(),(d&536870912)!==0&&t7(s),ua||Qy(i,s,d,!1),v=(d&i.childLanes)!==0,ua||v){if(h=ei,h!==null&&(j=Mn(h,d),j!==0&&j!==E.retryLane))throw E.retryLane=j,nr(i,j),Di(h,i,j),UB;n7(),s=HK(i,s,d)}else i=E.treeContext,pi=Vc(j.nextSibling),Xa=s,ho=!0,Ah=null,pd=!1,Kc=null,bl=!1,i!==null&&F$(s,i),s=WS(s,h),s.flags|=4096;return s}return E=i.child,h={mode:h.mode,children:h.children},(d&536870912)!==0&&(d&i.lanes)!==0&&t7(s),i=_a(E,h),i.ref=s.ref,s.child=i,i.return=s,i}function YS(i,s){var d=s.ref;if(d===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof d!=\"function\"&&typeof d!=\"object\")throw Error(\"Expected ref to be a function, an object returned by React.createRef(), or undefined/null.\");(i===null||i.ref!==d)&&(s.flags|=4194816)}}function GR(i,s,d,h,v){if(d.prototype&&typeof d.prototype.render==\"function\"){var E=se(d)||\"Unknown\";_Y[E]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",E,E),_Y[E]=!0)}return s.mode&bs&&du.recordLegacyContextWarning(s,null),i===null&&(qR(s,s.type),d.contextTypes&&(E=se(d)||\"Unknown\",IY[E]||(IY[E]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",E)))),I0(s),d=gR(i,s,d,h,void 0,v),h=vR(),i!==null&&!ua?(xR(i,s,v),Ef(i,s,v)):(ho&&h&&QI(s),s.flags|=1,Wa(i,s,d,v),s.child)}function jK(i,s,d,h,v,E){return I0(s),Of=-1,_w=i!==null&&i.type!==s.type,s.updateQueue=null,d=yR(s,h,d,v),oK(i,s),h=vR(),i!==null&&!ua?(xR(i,s,E),Ef(i,s,E)):(ho&&h&&QI(s),s.flags|=1,Wa(i,s,d,E),s.child)}function $K(i,s,d,h,v){switch(c(s)){case!1:var E=s.stateNode,j=new s.type(s.memoizedProps,E.context).state;E.updater.enqueueSetState(E,j,null);break;case!0:s.flags|=128,s.flags|=65536,E=Error(\"Simulated error coming from DevTools\");var oe=v&-v;if(s.lanes|=oe,j=ei,j===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");oe=$R(oe),KR(oe,j,s,Oc(E,s)),BS(s,oe)}if(I0(s),s.stateNode===null){if(j=Sh,E=d.contextType,\"contextType\"in d&&E!==null&&(E===void 0||E.$$typeof!==sd)&&!CY.has(d)&&(CY.add(d),oe=E===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof E!=\"object\"?\" However, it is set to a \"+typeof E+\".\":E.$$typeof===zP?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(E).join(\", \")+\"}.\",console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",se(d)||\"Component\",oe)),typeof E==\"object\"&&E!==null&&(j=Ei(E)),E=new d(h,j),s.mode&bs){qe(!0);try{E=new d(h,j)}finally{qe(!1)}}if(j=s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=LB,s.stateNode=E,E._reactInternals=s,E._reactInternalInstance=yY,typeof d.getDerivedStateFromProps==\"function\"&&j===null&&(j=se(d)||\"Component\",xY.has(j)||(xY.add(j),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",j,E.state===null?\"null\":\"undefined\",j))),typeof d.getDerivedStateFromProps==\"function\"||typeof E.getSnapshotBeforeUpdate==\"function\"){var ke=oe=j=null;if(typeof E.componentWillMount==\"function\"&&E.componentWillMount.__suppressDeprecationWarning!==!0?j=\"componentWillMount\":typeof E.UNSAFE_componentWillMount==\"function\"&&(j=\"UNSAFE_componentWillMount\"),typeof E.componentWillReceiveProps==\"function\"&&E.componentWillReceiveProps.__suppressDeprecationWarning!==!0?oe=\"componentWillReceiveProps\":typeof E.UNSAFE_componentWillReceiveProps==\"function\"&&(oe=\"UNSAFE_componentWillReceiveProps\"),typeof E.componentWillUpdate==\"function\"&&E.componentWillUpdate.__suppressDeprecationWarning!==!0?ke=\"componentWillUpdate\":typeof E.UNSAFE_componentWillUpdate==\"function\"&&(ke=\"UNSAFE_componentWillUpdate\"),j!==null||oe!==null||ke!==null){E=se(d)||\"Component\";var Fe=typeof d.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";wY.has(E)||(wY.add(E),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,E,Fe,j!==null?`\\n  `+j:\"\",oe!==null?`\\n  `+oe:\"\",ke!==null?`\\n  `+ke:\"\"))}}E=s.stateNode,j=se(d)||\"Component\",E.render||(d.prototype&&typeof d.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",j):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",j)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",j),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",j),E.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",j),d.childContextTypes&&!kY.has(d)&&(kY.add(d),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",j)),d.contextTypes&&!AY.has(d)&&(AY.add(d),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",j)),typeof E.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",j),d.prototype&&d.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",se(d)||\"A pure component\"),typeof E.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",j),typeof E.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",j),typeof E.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",j),typeof E.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",j),oe=E.props!==h,E.props!==void 0&&oe&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",j),E.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",j,j),typeof E.getSnapshotBeforeUpdate!=\"function\"||typeof E.componentDidUpdate==\"function\"||bY.has(d)||(bY.add(d),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",se(d))),typeof E.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",j),typeof E.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",j),typeof d.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",j),(oe=E.state)&&(typeof oe!=\"object\"||wa(oe))&&console.error(\"%s.state: must be set to an object or null\",j),typeof E.getChildContext==\"function\"&&typeof d.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",j),E=s.stateNode,E.props=h,E.state=s.memoizedState,E.refs={},uR(s),j=d.contextType,E.context=typeof j==\"object\"&&j!==null?Ei(j):Sh,E.state===h&&(j=se(d)||\"Component\",EY.has(j)||(EY.add(j),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",j))),s.mode&bs&&du.recordLegacyContextWarning(s,E),du.recordUnsafeLifecycleWarnings(s,E),E.state=s.memoizedState,j=d.getDerivedStateFromProps,typeof j==\"function\"&&(HR(s,d,j,h),E.state=s.memoizedState),typeof d.getDerivedStateFromProps==\"function\"||typeof E.getSnapshotBeforeUpdate==\"function\"||typeof E.UNSAFE_componentWillMount!=\"function\"&&typeof E.componentWillMount!=\"function\"||(j=E.state,typeof E.componentWillMount==\"function\"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount==\"function\"&&E.UNSAFE_componentWillMount(),j!==E.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",S(s)||\"Component\"),LB.enqueueReplaceState(E,E.state,null)),Pb(s,h,E,v),Rb(),E.state=s.memoizedState),typeof E.componentDidMount==\"function\"&&(s.flags|=4194308),(s.mode&uu)!==Lr&&(s.flags|=134217728),E=!0}else if(i===null){E=s.stateNode;var Ct=s.memoizedProps;oe=F0(d,Ct),E.props=oe;var Tt=E.context;ke=d.contextType,j=Sh,typeof ke==\"object\"&&ke!==null&&(j=Ei(ke)),Fe=d.getDerivedStateFromProps,ke=typeof Fe==\"function\"||typeof E.getSnapshotBeforeUpdate==\"function\",Ct=s.pendingProps!==Ct,ke||typeof E.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof E.componentWillReceiveProps!=\"function\"||(Ct||Tt!==j)&&PK(s,E,h,j),Ih=!1;var pt=s.memoizedState;E.state=pt,Pb(s,h,E,v),Rb(),Tt=s.memoizedState,Ct||pt!==Tt||Ih?(typeof Fe==\"function\"&&(HR(s,d,Fe,h),Tt=s.memoizedState),(oe=Ih||RK(s,d,oe,h,pt,Tt,j))?(ke||typeof E.UNSAFE_componentWillMount!=\"function\"&&typeof E.componentWillMount!=\"function\"||(typeof E.componentWillMount==\"function\"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount==\"function\"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount==\"function\"&&(s.flags|=4194308),(s.mode&uu)!==Lr&&(s.flags|=134217728)):(typeof E.componentDidMount==\"function\"&&(s.flags|=4194308),(s.mode&uu)!==Lr&&(s.flags|=134217728),s.memoizedProps=h,s.memoizedState=Tt),E.props=h,E.state=Tt,E.context=j,E=oe):(typeof E.componentDidMount==\"function\"&&(s.flags|=4194308),(s.mode&uu)!==Lr&&(s.flags|=134217728),E=!1)}else{E=s.stateNode,dR(i,s),j=s.memoizedProps,ke=F0(d,j),E.props=ke,Fe=s.pendingProps,pt=E.context,Tt=d.contextType,oe=Sh,typeof Tt==\"object\"&&Tt!==null&&(oe=Ei(Tt)),Ct=d.getDerivedStateFromProps,(Tt=typeof Ct==\"function\"||typeof E.getSnapshotBeforeUpdate==\"function\")||typeof E.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof E.componentWillReceiveProps!=\"function\"||(j!==Fe||pt!==oe)&&PK(s,E,h,oe),Ih=!1,pt=s.memoizedState,E.state=pt,Pb(s,h,E,v),Rb();var qt=s.memoizedState;j!==Fe||pt!==qt||Ih||i!==null&&i.dependencies!==null&&SS(i.dependencies)?(typeof Ct==\"function\"&&(HR(s,d,Ct,h),qt=s.memoizedState),(ke=Ih||RK(s,d,ke,h,pt,qt,oe)||i!==null&&i.dependencies!==null&&SS(i.dependencies))?(Tt||typeof E.UNSAFE_componentWillUpdate!=\"function\"&&typeof E.componentWillUpdate!=\"function\"||(typeof E.componentWillUpdate==\"function\"&&E.componentWillUpdate(h,qt,oe),typeof E.UNSAFE_componentWillUpdate==\"function\"&&E.UNSAFE_componentWillUpdate(h,qt,oe)),typeof E.componentDidUpdate==\"function\"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate==\"function\"&&(s.flags|=1024)):(typeof E.componentDidUpdate!=\"function\"||j===i.memoizedProps&&pt===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!=\"function\"||j===i.memoizedProps&&pt===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=qt),E.props=h,E.state=qt,E.context=oe,E=ke):(typeof E.componentDidUpdate!=\"function\"||j===i.memoizedProps&&pt===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!=\"function\"||j===i.memoizedProps&&pt===i.memoizedState||(s.flags|=1024),E=!1)}if(oe=E,YS(i,s),j=(s.flags&128)!==0,oe||j){if(oe=s.stateNode,Z(s),j&&typeof d.getDerivedStateFromError!=\"function\")d=null,zs=-1;else if(d=qW(oe),s.mode&bs){qe(!0);try{qW(oe)}finally{qe(!1)}}s.flags|=1,i!==null&&j?(s.child=W0(s,i.child,null,v),s.child=W0(s,null,d,v)):Wa(i,s,d,v),s.memoizedState=oe.state,i=s.child}else i=Ef(i,s,v);return v=s.stateNode,E&&v.props!==h&&(z2||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",S(s)||\"a component\"),z2=!0),i}function KK(i,s,d,h){return M0(),s.flags|=256,Wa(i,s,d,h),s.child}function qR(i,s){s&&s.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,s.displayName||s.name||\"Component\"),typeof s.getDerivedStateFromProps==\"function\"&&(i=se(s)||\"Unknown\",RY[i]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",i),RY[i]=!0)),typeof s.contextType==\"object\"&&s.contextType!==null&&(s=se(s)||\"Unknown\",MY[s]||(console.error(\"%s: Function components do not support contextType.\",s),MY[s]=!0))}function WR(i){return{baseLanes:i,cachePool:j$()}}function YR(i,s,d){return i=i!==null?i.childLanes&~d:0,s&&(i|=gc),i}function GK(i,s,d){var h,v=s.pendingProps;a(s)&&(s.flags|=128);var E=!1,j=(s.flags&128)!==0;if((h=j)||(h=i!==null&&i.memoizedState===null?!1:(Xi.current&Cw)!==0),h&&(E=!0,s.flags&=-129),h=(s.flags&32)!==0,s.flags&=-33,i===null){if(ho){if(E?uh(s):dh(s),(i=pi)?(d=pq(i,bl),d=d!==null&&d.data!==n1?d:null,d!==null&&(h={dehydrated:d,treeContext:D$(),retryLane:536870912,hydrationErrors:null},s.memoizedState=h,h=T0(d),h.return=s,s.child=h,Xa=s,pi=null)):d=null,d===null)throw wS(s,i),ih(s);return _P(d)?s.lanes=32:s.lanes=536870912,null}var oe=v.children;if(v=v.fallback,E){dh(s);var ke=s.mode;return oe=ZS({mode:\"hidden\",children:oe},ke),v=Ds(v,ke,d,null),oe.return=s,v.return=s,oe.sibling=v,s.child=oe,v=s.child,v.memoizedState=WR(d),v.childLanes=YR(i,h,d),s.memoizedState=zB,Ob(null,v)}return uh(s),ZR(s,oe)}var Fe=i.memoizedState;if(Fe!==null){var Ct=Fe.dehydrated;if(Ct!==null){if(j)s.flags&256?(uh(s),s.flags&=-257,s=XR(i,s,d)):s.memoizedState!==null?(dh(s),s.child=i.child,s.flags|=128,s=null):(dh(s),oe=v.fallback,ke=s.mode,v=ZS({mode:\"visible\",children:v.children},ke),oe=Ds(oe,ke,d,null),oe.flags|=2,v.return=s,oe.return=s,v.sibling=oe,s.child=v,W0(s,i.child,null,d),v=s.child,v.memoizedState=WR(d),v.childLanes=YR(i,h,d),s.memoizedState=zB,s=Ob(null,v));else if(uh(s),O$(),(d&536870912)!==0&&t7(s),_P(Ct)){if(h=Ct.nextSibling&&Ct.nextSibling.dataset,h){oe=h.dgst;var Tt=h.msg;ke=h.stck;var pt=h.cstck}E=Tt,h=oe,v=ke,Ct=pt,oe=E,ke=Ct,oe=Error(oe||\"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.\"),oe.stack=v||\"\",oe.digest=h,h=ke===void 0?null:ke,v={value:oe,source:null,stack:h},typeof h==\"string\"&&xB.set(oe,v),kb(v),s=XR(i,s,d)}else if(ua||Qy(i,s,d,!1),h=(d&i.childLanes)!==0,ua||h){if(h=ei,h!==null&&(v=Mn(h,d),v!==0&&v!==Fe.retryLane))throw Fe.retryLane=v,nr(i,v),Di(h,i,v),UB;TP(Ct)||n7(),s=XR(i,s,d)}else TP(Ct)?(s.flags|=192,s.child=i.child,s=null):(i=Fe.treeContext,pi=Vc(Ct.nextSibling),Xa=s,ho=!0,Ah=null,pd=!1,Kc=null,bl=!1,i!==null&&F$(s,i),s=ZR(s,v.children),s.flags|=4096);return s}}return E?(dh(s),oe=v.fallback,ke=s.mode,pt=i.child,Ct=pt.sibling,v=_a(pt,{mode:\"hidden\",children:v.children}),v.subtreeFlags=pt.subtreeFlags&65011712,Ct!==null?oe=_a(Ct,oe):(oe=Ds(oe,ke,d,null),oe.flags|=2),oe.return=s,v.return=s,v.sibling=oe,s.child=v,Ob(null,v),v=s.child,oe=i.child.memoizedState,oe===null?oe=WR(d):(ke=oe.cachePool,ke!==null?(pt=sa._currentValue,ke=ke.parent!==pt?{parent:pt,pool:pt}:ke):ke=j$(),oe={baseLanes:oe.baseLanes|d,cachePool:ke}),v.memoizedState=oe,v.childLanes=YR(i,h,d),s.memoizedState=zB,Ob(i.child,v)):(Fe!==null&&(d&62914560)===d&&(d&i.lanes)!==0&&t7(s),uh(s),d=i.child,i=d.sibling,d=_a(d,{mode:\"visible\",children:v.children}),d.return=s,d.sibling=null,i!==null&&(h=s.deletions,h===null?(s.deletions=[i],s.flags|=16):h.push(i)),s.child=d,s.memoizedState=null,d)}function ZR(i,s){return s=ZS({mode:\"visible\",children:s},i.mode),s.return=i,i.child=s}function ZS(i,s){return i=y(22,i,null,s),i.lanes=0,i}function XR(i,s,d){return W0(s,i.child,null,d),i=ZR(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function qK(i,s,d){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),rR(i.return,s,d)}function JR(i,s,d,h,v,E){var j=i.memoizedState;j===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:v,treeForkCount:E}:(j.isBackwards=s,j.rendering=null,j.renderingStartTime=0,j.last=h,j.tail=d,j.tailMode=v,j.treeForkCount=E)}function WK(i,s,d){var h=s.pendingProps,v=h.revealOrder,E=h.tail,j=h.children,oe=Xi.current;if((h=(oe&Cw)!==0)?(oe=oe&O2|Cw,s.flags|=128):oe&=O2,z(Xi,oe,s),oe=v??\"null\",v!==\"forwards\"&&v!==\"unstable_legacy-backwards\"&&v!==\"together\"&&v!==\"independent\"&&!PY[oe])if(PY[oe]=!0,v==null)console.error(\\'The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\".\\');else if(v===\"backwards\")console.error(\\'The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead.\\');else if(typeof v==\"string\")switch(v.toLowerCase()){case\"together\":case\"forwards\":case\"backwards\":case\"independent\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.\\',v,v.toLowerCase());break;case\"forward\":case\"backward\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.\\',v,v.toLowerCase());break;default:console.error(\\'\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',v)}else console.error(\\'%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',v);oe=E??\"null\",W7[oe]||(E==null?(v===\"forwards\"||v===\"backwards\"||v===\"unstable_legacy-backwards\")&&(W7[oe]=!0,console.error(\\'The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\".\\')):E!==\"visible\"&&E!==\"collapsed\"&&E!==\"hidden\"?(W7[oe]=!0,console.error(\\'\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?\\',E)):v!==\"forwards\"&&v!==\"backwards\"&&v!==\"unstable_legacy-backwards\"&&(W7[oe]=!0,console.error(\\'<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?\\',E)));e:if((v===\"forwards\"||v===\"backwards\"||v===\"unstable_legacy-backwards\")&&j!==void 0&&j!==null&&j!==!1)if(wa(j)){for(oe=0;oe<j.length;oe++)if(!Q$(j[oe],oe))break e}else if(oe=le(j),typeof oe==\"function\"){if(oe=oe.call(j))for(var ke=oe.next(),Fe=0;!ke.done;ke=oe.next()){if(!Q$(ke.value,Fe))break e;Fe++}}else console.error(\\'A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?\\',v);if(Wa(i,s,j,d),ho?(oh(),j=dw):j=0,!h&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&qK(i,d,s);else if(i.tag===19)qK(i,d,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case\"forwards\":for(d=s.child,v=null;d!==null;)i=d.alternate,i!==null&&DS(i)===null&&(v=d),d=d.sibling;d=v,d===null?(v=s.child,s.child=null):(v=d.sibling,d.sibling=null),JR(s,!1,v,d,E,j);break;case\"backwards\":case\"unstable_legacy-backwards\":for(d=null,v=s.child,s.child=null;v!==null;){if(i=v.alternate,i!==null&&DS(i)===null){s.child=v;break}i=v.sibling,v.sibling=d,d=v,v=i}JR(s,!0,d,null,E,j);break;case\"together\":JR(s,!1,null,null,void 0,j);break;default:s.memoizedState=null}return s.child}function Ef(i,s,d){if(i!==null&&(s.dependencies=i.dependencies),zs=-1,Bh|=s.lanes,(d&s.childLanes)===0)if(i!==null){if(Qy(i,s,d,!1),(d&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(\"Resuming work not yet implemented.\");if(s.child!==null){for(i=s.child,d=_a(i,i.pendingProps),s.child=d,d.return=s;i.sibling!==null;)i=i.sibling,d=d.sibling=_a(i,i.pendingProps),d.return=s;d.sibling=null}return s.child}function QR(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&SS(i)))}function qSe(i,s,d){switch(s.tag){case 3:L(s,s.stateNode.containerInfo),ah(s,sa,i.memoizedState.cache),M0();break;case 27:case 5:w(s);break;case 4:L(s,s.stateNode.containerInfo);break;case 10:ah(s,s.type,s.memoizedProps.value);break;case 12:(d&s.childLanes)!==0&&(s.flags|=4),s.flags|=2048;var h=s.stateNode;h.effectDuration=-0,h.passiveEffectDuration=-0;break;case 31:if(s.memoizedState!==null)return s.flags|=128,hR(s),null;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(uh(s),s.flags|=128,null):(d&s.child.childLanes)!==0?GK(i,s,d):(uh(s),i=Ef(i,s,d),i!==null?i.sibling:null);uh(s);break;case 19:var v=(i.flags&128)!==0;if(h=(d&s.childLanes)!==0,h||(Qy(i,s,d,!1),h=(d&s.childLanes)!==0),v){if(h)return WK(i,s,d);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),z(Xi,Xi.current,s),h)break;return null;case 22:return s.lanes=0,zK(i,s,d,s.pendingProps);case 24:ah(s,sa,i.memoizedState.cache)}return Ef(i,s,d)}function eP(i,s,d){if(s._debugNeedsRemount&&i!==null){d=pl(s.type,s.key,s.pendingProps,s._debugOwner||null,s.mode,s.lanes),d._debugStack=s._debugStack,d._debugTask=s._debugTask;var h=s.return;if(h===null)throw Error(\"Cannot swap the root fiber.\");if(i.alternate=null,s.alternate=null,d.index=s.index,d.sibling=s.sibling,d.return=s.return,d.ref=s.ref,d._debugInfo=s._debugInfo,s===h.child)h.child=d;else{var v=h.child;if(v===null)throw Error(\"Expected parent to have a child.\");for(;v.sibling!==s;)if(v=v.sibling,v===null)throw Error(\"Expected to find the previous sibling.\");v.sibling=d}return s=h.deletions,s===null?(h.deletions=[i],h.flags|=16):s.push(i),d.flags|=2,d}if(i!==null)if(i.memoizedProps!==s.pendingProps||s.type!==i.type)ua=!0;else{if(!QR(i,d)&&(s.flags&128)===0)return ua=!1,qSe(i,s,d);ua=(i.flags&131072)!==0}else ua=!1,(h=ho)&&(oh(),h=(s.flags&1048576)!==0),h&&(h=s.index,oh(),B$(s,dw,h));switch(s.lanes=0,s.tag){case 16:e:if(h=s.pendingProps,i=sh(s.elementType),s.type=i,typeof i==\"function\")fl(i)?(h=F0(i,h),s.tag=1,s.type=i=gs(i),s=$K(null,s,i,h,d)):(s.tag=0,qR(s,i),s.type=i=gs(i),s=GR(null,s,i,h,d));else{if(i!=null){if(v=i.$$typeof,v===Jb){s.tag=11,s.type=i=Dc(i),s=LK(null,s,i,h,d);break e}else if(v===g7){s.tag=14,s=NK(null,s,i,h,d);break e}}throw s=\"\",i!==null&&typeof i==\"object\"&&i.$$typeof===Hc&&(s=\" Did you wrap a component in React.lazy() more than once?\"),d=se(i)||i,Error(\"Element type is invalid. Received a promise that resolves to: \"+d+\". Lazy element type must resolve to a class or function.\"+s)}return s;case 0:return GR(i,s,s.type,s.pendingProps,d);case 1:return h=s.type,v=F0(h,s.pendingProps),$K(i,s,h,v,d);case 3:e:{if(L(s,s.stateNode.containerInfo),i===null)throw Error(\"Should have a current fiber. This is a bug in React.\");h=s.pendingProps;var E=s.memoizedState;v=E.element,dR(i,s),Pb(s,h,null,d);var j=s.memoizedState;if(h=j.cache,ah(s,sa,h),h!==E.cache&&oR(s,[sa],d,!0),Rb(),h=j.element,E.isDehydrated)if(E={element:h,isDehydrated:!1,cache:j.cache},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){s=KK(i,s,h,d);break e}else if(h!==v){v=Oc(Error(\"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.\"),s),kb(v),s=KK(i,s,h,d);break e}else for(i=s.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName===\"HTML\"?i.ownerDocument.body:i,pi=Vc(i.firstChild),Xa=s,ho=!0,Ah=null,pd=!1,Kc=null,bl=!0,d=sY(s,null,h,d),s.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(M0(),h===v){s=Ef(i,s,d);break e}Wa(i,s,h,d)}s=s.child}return s;case 26:return YS(i,s),i===null?(d=xq(s.type,null,s.pendingProps,null))?s.memoizedState=d:ho||(d=s.type,i=s.pendingProps,h=Y(yh.current),h=a7(h).createElement(d),h[Za]=s,h[Ls]=i,Ya(h,d,i),Dn(h),s.stateNode=h):s.memoizedState=xq(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return w(s),i===null&&ho&&(h=Y(yh.current),v=W(),h=s.stateNode=yq(s.type,s.pendingProps,h,v,!1),pd||(v=iq(h,s.type,s.pendingProps,v),v!==null&&(_0(s,0).serverProps=v)),Xa=s,bl=!0,v=pi,mh(s.type)?(lD=v,pi=Vc(h.firstChild)):pi=v),Wa(i,s,s.pendingProps.children,d),YS(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&ho&&(E=W(),h=Lt(s.type,E.ancestorInfo),v=pi,(j=!v)||(j=F7e(v,s.type,s.pendingProps,bl),j!==null?(s.stateNode=j,pd||(E=iq(j,s.type,s.pendingProps,E),E!==null&&(_0(s,0).serverProps=E)),Xa=s,pi=Vc(j.firstChild),bl=!1,E=!0):E=!1,j=!E),j&&(h&&wS(s,v),ih(s))),w(s),v=s.type,E=s.pendingProps,j=i!==null?i.memoizedProps:null,h=E.children,kP(v,E)?h=null:j!==null&&kP(v,j)&&(s.flags|=32),s.memoizedState!==null&&(v=gR(i,s,USe,null,null,d),$w._currentValue=v),YS(i,s),Wa(i,s,h,d),s.child;case 6:return i===null&&ho&&(d=s.pendingProps,i=W(),h=i.ancestorInfo.current,d=h!=null?Dt(d,h.tag,i.ancestorInfo.implicitRootScope):!0,i=pi,(h=!i)||(h=O7e(i,s.pendingProps,bl),h!==null?(s.stateNode=h,Xa=s,pi=null,h=!0):h=!1,h=!h),h&&(d&&wS(s,i),ih(s))),null;case 13:return GK(i,s,d);case 4:return L(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=W0(s,null,h,d):Wa(i,s,h,d),s.child;case 11:return LK(i,s,s.type,s.pendingProps,d);case 7:return Wa(i,s,s.pendingProps,d),s.child;case 8:return Wa(i,s,s.pendingProps.children,d),s.child;case 12:return s.flags|=4,s.flags|=2048,h=s.stateNode,h.effectDuration=-0,h.passiveEffectDuration=-0,Wa(i,s,s.pendingProps.children,d),s.child;case 10:return h=s.type,v=s.pendingProps,E=v.value,\"value\"in v||BY||(BY=!0,console.error(\"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?\")),ah(s,h,E),Wa(i,s,v.children,d),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,typeof h!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\"),I0(s),v=Ei(v),h=TB(h,v,void 0),s.flags|=1,Wa(i,s,h,d),s.child;case 14:return NK(i,s,s.type,s.pendingProps,d);case 15:return UK(i,s,s.type,s.pendingProps,d);case 19:return WK(i,s,d);case 31:return GSe(i,s,d);case 22:return zK(i,s,d,s.pendingProps);case 24:return I0(s),h=Ei(sa),i===null?(v=cR(),v===null&&(v=ei,E=iR(),v.pooledCache=E,R0(E),E!==null&&(v.pooledCacheLanes|=d),v=E),s.memoizedState={parent:h,cache:v},uR(s),ah(s,sa,v)):((i.lanes&d)!==0&&(dR(i,s),Pb(s,null,null,d),Rb()),v=i.memoizedState,E=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),ah(s,sa,h)):(h=E.cache,ah(s,sa,h),h!==v.cache&&oR(s,[sa],d,!0))),Wa(i,s,s.pendingProps.children,d),s.child;case 29:throw s.pendingProps}throw Error(\"Unknown unit of work tag (\"+s.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function Sf(i){i.flags|=4}function tP(i,s,d,h,v){if((s=(i.mode&h9e)!==Lr)&&(s=!1),s){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(TG())i.flags|=8192;else throw q0=H7,MB}else i.flags&=-16777217}function YK(i,s){if(s.type!==\"stylesheet\"||(s.state.loading&kl)!==i1)i.flags&=-16777217;else if(i.flags|=16777216,!Aq(s))if(TG())i.flags|=8192;else throw q0=H7,MB}function XS(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?Vt():536870912,i.lanes|=s,Q0|=s)}function Lb(i,s){if(!ho)switch(i.tailMode){case\"hidden\":s=i.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?i.tail=null:d.sibling=null;break;case\"collapsed\":d=i.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function ai(i){var s=i.alternate!==null&&i.alternate.child===i.child,d=0,h=0;if(s)if((i.mode&Zr)!==Lr){for(var v=i.selfBaseDuration,E=i.child;E!==null;)d|=E.lanes|E.childLanes,h|=E.subtreeFlags&65011712,h|=E.flags&65011712,v+=E.treeBaseDuration,E=E.sibling;i.treeBaseDuration=v}else for(v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else if((i.mode&Zr)!==Lr){v=i.actualDuration,E=i.selfBaseDuration;for(var j=i.child;j!==null;)d|=j.lanes|j.childLanes,h|=j.subtreeFlags,h|=j.flags,v+=j.actualDuration,E+=j.treeBaseDuration,j=j.sibling;i.actualDuration=v,i.treeBaseDuration=E}else for(v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=d,s}function WSe(i,s,d){var h=s.pendingProps;switch(eR(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ai(s),null;case 1:return ai(s),null;case 3:return d=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),bf(sa,s),U(s),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(i===null||i.child===null)&&(Jy(s)?(nR(),Sf(s)):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,tR())),ai(s),null;case 26:var v=s.type,E=s.memoizedState;return i===null?(Sf(s),E!==null?(ai(s),YK(s,E)):(ai(s),tP(s,v,null,h,d))):E?E!==i.memoizedState?(Sf(s),ai(s),YK(s,E)):(ai(s),s.flags&=-16777217):(i=i.memoizedProps,i!==h&&Sf(s),ai(s),tP(s,v,i,h,d)),null;case 27:if(I(s),d=Y(yh.current),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Sf(s);else{if(!h){if(s.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return ai(s),null}i=W(),Jy(s)?L$(s,i):(i=yq(v,h,d,i,!0),s.stateNode=i,Sf(s))}return ai(s),null;case 5:if(I(s),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Sf(s);else{if(!h){if(s.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return ai(s),null}var j=W();if(Jy(s))L$(s,j);else{switch(E=Y(yh.current),Lt(v,j.ancestorInfo),j=j.context,E=a7(E),j){case W2:E=E.createElementNS(v2,v);break;case hA:E=E.createElementNS(S7,v);break;default:switch(v){case\"svg\":E=E.createElementNS(v2,v);break;case\"math\":E=E.createElementNS(S7,v);break;case\"script\":E=E.createElement(\"div\"),E.innerHTML=\"<script><\\\\/script>\",E=E.removeChild(E.firstChild);break;case\"select\":E=typeof h.is==\"string\"?E.createElement(\"select\",{is:h.is}):E.createElement(\"select\"),h.multiple?E.multiple=!0:h.size&&(E.size=h.size);break;default:E=typeof h.is==\"string\"?E.createElement(v,{is:h.is}):E.createElement(v),v.indexOf(\"-\")===-1&&(v!==v.toLowerCase()&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",v),Object.prototype.toString.call(E)!==\"[object HTMLUnknownElement]\"||cu.call(rZ,v)||(rZ[v]=!0,console.error(\"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.\",v)))}}E[Za]=s,E[Ls]=h;e:for(j=s.child;j!==null;){if(j.tag===5||j.tag===6)E.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===s)break e;for(;j.sibling===null;){if(j.return===null||j.return===s)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}s.stateNode=E;e:switch(Ya(E,v,h),v){case\"button\":case\"input\":case\"select\":case\"textarea\":h=!!h.autoFocus;break e;case\"img\":h=!0;break e;default:h=!1}h&&Sf(s)}}return ai(s),tP(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,d),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Sf(s);else{if(typeof h!=\"string\"&&s.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");if(i=Y(yh.current),d=W(),Jy(s)){if(i=s.stateNode,d=s.memoizedProps,v=!pd,h=null,E=Xa,E!==null)switch(E.tag){case 3:v&&(v=mq(i,d,h),v!==null&&(_0(s,0).serverProps=v));break;case 27:case 5:h=E.memoizedProps,v&&(v=mq(i,d,h),v!==null&&(_0(s,0).serverProps=v))}i[Za]=s,i=!!(i.nodeValue===d||h!==null&&h.suppressHydrationWarning===!0||eq(i.nodeValue,d)),i||ih(s,!0)}else v=d.ancestorInfo.current,v!=null&&Dt(h,v.tag,d.ancestorInfo.implicitRootScope),i=a7(i).createTextNode(h),i[Za]=s,s.stateNode=i}return ai(s),null;case 31:if(d=s.memoizedState,i===null||i.memoizedState!==null){if(h=Jy(s),d!==null){if(i===null){if(!h)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(\"Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.\");i[Za]=s,ai(s),(s.mode&Zr)!==Lr&&d!==null&&(i=s.child,i!==null&&(s.treeBaseDuration-=i.treeBaseDuration))}else nR(),M0(),(s.flags&128)===0&&(d=s.memoizedState=null),s.flags|=4,ai(s),(s.mode&Zr)!==Lr&&d!==null&&(i=s.child,i!==null&&(s.treeBaseDuration-=i.treeBaseDuration));i=!1}else d=tR(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=d),i=!0;if(!i)return s.flags&256?(Uc(s),s):(Uc(s),null);if((s.flags&128)!==0)throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\")}return ai(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=h,E=Jy(s),v!==null&&v.dehydrated!==null){if(i===null){if(!E)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(E=s.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");E[Za]=s,ai(s),(s.mode&Zr)!==Lr&&v!==null&&(v=s.child,v!==null&&(s.treeBaseDuration-=v.treeBaseDuration))}else nR(),M0(),(s.flags&128)===0&&(v=s.memoizedState=null),s.flags|=4,ai(s),(s.mode&Zr)!==Lr&&v!==null&&(v=s.child,v!==null&&(s.treeBaseDuration-=v.treeBaseDuration));v=!1}else v=tR(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(Uc(s),s):(Uc(s),null)}return Uc(s),(s.flags&128)!==0?(s.lanes=d,(s.mode&Zr)!==Lr&&_b(s),s):(d=h!==null,i=i!==null&&i.memoizedState!==null,d&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),E=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(E=h.memoizedState.cachePool.pool),E!==v&&(h.flags|=2048)),d!==i&&d&&(s.child.flags|=8192),XS(s,s.updateQueue),ai(s),(s.mode&Zr)!==Lr&&d&&(i=s.child,i!==null&&(s.treeBaseDuration-=i.treeBaseDuration)),null);case 4:return U(s),i===null&&vP(s.stateNode.containerInfo),ai(s),null;case 10:return bf(s.type,s),ai(s),null;case 19:if(P(Xi,s),h=s.memoizedState,h===null)return ai(s),null;if(v=(s.flags&128)!==0,E=h.rendering,E===null)if(v)Lb(h,!1);else{if(Mi!==Nf||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(E=DS(i),E!==null){for(s.flags|=128,Lb(h,!1),i=E.updateQueue,s.updateQueue=i,XS(s,i),s.subtreeFlags=0,i=d,d=s.child;d!==null;)uc(d,i),d=d.sibling;return z(Xi,Xi.current&O2|Cw,s),ho&&xf(s,h.treeForkCount),s.child}i=i.sibling}h.tail!==null&&Ia()>tA&&(s.flags|=128,v=!0,Lb(h,!1),s.lanes=4194304)}else{if(!v)if(i=DS(E),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,XS(s,i),Lb(h,!0),h.tail===null&&h.tailMode===\"hidden\"&&!E.alternate&&!ho)return ai(s),null}else 2*Ia()-h.renderingStartTime>tA&&d!==536870912&&(s.flags|=128,v=!0,Lb(h,!1),s.lanes=4194304);h.isBackwards?(E.sibling=s.child,s.child=E):(i=h.last,i!==null?i.sibling=E:s.child=E,h.last=E)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=Ia(),i.sibling=null,d=Xi.current,d=v?d&O2|Cw:d&O2,z(Xi,d,s),ho&&xf(s,h.treeForkCount),i):(ai(s),null);case 22:case 23:return Uc(s),pR(s),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(d&536870912)!==0&&(s.flags&128)===0&&(ai(s),s.subtreeFlags&6&&(s.flags|=8192)):ai(s),d=s.updateQueue,d!==null&&XS(s,d.retryQueue),d=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==d&&(s.flags|=2048),i!==null&&P(K0,s),null;case 24:return d=null,i!==null&&(d=i.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),bf(sa,s),ai(s),null;case 25:return null;case 30:return null}throw Error(\"Unknown unit of work tag (\"+s.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function YSe(i,s){switch(eR(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,(s.mode&Zr)!==Lr&&_b(s),s):null;case 3:return bf(sa,s),U(s),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return I(s),null;case 31:if(s.memoizedState!==null){if(Uc(s),s.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");M0()}return i=s.flags,i&65536?(s.flags=i&-65537|128,(s.mode&Zr)!==Lr&&_b(s),s):null;case 13:if(Uc(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");M0()}return i=s.flags,i&65536?(s.flags=i&-65537|128,(s.mode&Zr)!==Lr&&_b(s),s):null;case 19:return P(Xi,s),null;case 4:return U(s),null;case 10:return bf(s.type,s),null;case 22:case 23:return Uc(s),pR(s),i!==null&&P(K0,s),i=s.flags,i&65536?(s.flags=i&-65537|128,(s.mode&Zr)!==Lr&&_b(s),s):null;case 24:return bf(sa,s),null;case 25:return null;default:return null}}function ZK(i,s){switch(eR(s),s.tag){case 3:bf(sa,s),U(s);break;case 26:case 27:case 5:I(s);break;case 4:U(s);break;case 31:s.memoizedState!==null&&Uc(s);break;case 13:Uc(s);break;case 19:P(Xi,s);break;case 10:bf(s.type,s);break;case 22:case 23:Uc(s),pR(s),i!==null&&P(K0,s);break;case 24:bf(sa,s)}}function ed(i){return(i.mode&Zr)!==Lr}function XK(i,s){ed(i)?(Qu(),Nb(s,i),Ju()):Nb(s,i)}function nP(i,s,d){ed(i)?(Qu(),o2(d,i,s),Ju()):o2(d,i,s)}function Nb(i,s){try{var d=s.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var v=h.next;d=v;do{if((d.tag&i)===i&&(h=void 0,(i&Vs)!==$7&&(K2=!0),h=C(s,x9e,d),(i&Vs)!==$7&&(K2=!1),h!==void 0&&typeof h!=\"function\")){var E=void 0;E=(d.tag&qc)!==0?\"useLayoutEffect\":(d.tag&Vs)!==0?\"useInsertionEffect\":\"useEffect\";var j=void 0;j=h===null?\" You returned null. If your effect does not require clean up, return undefined (or nothing).\":typeof h.then==\"function\"?`\\n\\nIt looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\\n\\n`+E+`(() => {\\n  async function fetchData() {\\n    // You can await here\\n    const response = await MyAPI.getData(someId);\\n    // ...\\n  }\\n  fetchData();\\n}, [someId]); // Or [] if effect doesn\\'t need props or state\\n\\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:\" You returned: \"+h,C(s,function(oe,ke){console.error(\"%s must not return anything besides a function, which is used for clean-up.%s\",oe,ke)},E,j)}d=d.next}while(d!==v)}}catch(oe){Lo(s,s.return,oe)}}function o2(i,s,d){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var E=v.next;h=E;do{if((h.tag&i)===i){var j=h.inst,oe=j.destroy;oe!==void 0&&(j.destroy=void 0,(i&Vs)!==$7&&(K2=!0),v=s,C(v,b9e,v,d,oe),(i&Vs)!==$7&&(K2=!1))}h=h.next}while(h!==E)}}catch(ke){Lo(s,s.return,ke)}}function JK(i,s){ed(i)?(Qu(),Nb(s,i),Ju()):Nb(s,i)}function rP(i,s,d){ed(i)?(Qu(),o2(d,i,s),Ju()):o2(d,i,s)}function QK(i){var s=i.updateQueue;if(s!==null){var d=i.stateNode;i.type.defaultProps||\"ref\"in i.memoizedProps||z2||(d.props!==i.memoizedProps&&console.error(\"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",S(i)||\"instance\"),d.state!==i.memoizedState&&console.error(\"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",S(i)||\"instance\"));try{C(i,tK,s,d)}catch(h){Lo(i,i.return,h)}}}function ZSe(i,s,d){return i.getSnapshotBeforeUpdate(s,d)}function XSe(i,s){var d=s.memoizedProps,h=s.memoizedState;s=i.stateNode,i.type.defaultProps||\"ref\"in i.memoizedProps||z2||(s.props!==i.memoizedProps&&console.error(\"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",S(i)||\"instance\"),s.state!==i.memoizedState&&console.error(\"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",S(i)||\"instance\"));try{var v=F0(i.type,d),E=C(i,ZSe,s,v,h);d=DY,E!==void 0||d.has(i.type)||(d.add(i.type),C(i,function(){console.error(\"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.\",S(i))})),s.__reactInternalSnapshotBeforeUpdate=E}catch(j){Lo(i,i.return,j)}}function eG(i,s,d){d.props=F0(i.type,i.memoizedProps),d.state=i.memoizedState,ed(i)?(Qu(),C(i,QW,i,s,d),Ju()):C(i,QW,i,s,d)}function JSe(i){var s=i.ref;if(s!==null){switch(i.tag){case 26:case 27:case 5:var d=i.stateNode;break;case 30:d=i.stateNode;break;default:d=i.stateNode}if(typeof s==\"function\")if(ed(i))try{Qu(),i.refCleanup=s(d)}finally{Ju()}else i.refCleanup=s(d);else typeof s==\"string\"?console.error(\"String refs are no longer supported.\"):s.hasOwnProperty(\"current\")||console.error(\"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().\",S(i)),s.current=d}}function Ub(i,s){try{C(i,JSe,i)}catch(d){Lo(i,s,d)}}function td(i,s){var d=i.ref,h=i.refCleanup;if(d!==null)if(typeof h==\"function\")try{if(ed(i))try{Qu(),C(i,h)}finally{Ju(i)}else C(i,h)}catch(v){Lo(i,s,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof d==\"function\")try{if(ed(i))try{Qu(),C(i,d,null)}finally{Ju(i)}else C(i,d,null)}catch(v){Lo(i,s,v)}else d.current=null}function tG(i,s,d,h){var v=i.memoizedProps,E=v.id,j=v.onCommit;v=v.onRender,s=s===null?\"mount\":\"update\",N7&&(s=\"nested-update\"),typeof v==\"function\"&&v(E,s,i.actualDuration,i.treeBaseDuration,i.actualStartTime,d),typeof j==\"function\"&&j(E,s,h,d)}function QSe(i,s,d,h){var v=i.memoizedProps;i=v.id,v=v.onPostCommit,s=s===null?\"mount\":\"update\",N7&&(s=\"nested-update\"),typeof v==\"function\"&&v(i,s,h,d)}function nG(i){var s=i.type,d=i.memoizedProps,h=i.stateNode;try{C(i,S7e,h,s,d,i)}catch(v){Lo(i,i.return,v)}}function oP(i,s,d){try{C(i,k7e,i.stateNode,i.type,d,s,i)}catch(h){Lo(i,i.return,h)}}function rG(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&mh(i.type)||i.tag===4}function iP(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||rG(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&mh(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function aP(i,s,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?(uq(d),(d.nodeType===9?d.body:d.nodeName===\"HTML\"?d.ownerDocument.body:d).insertBefore(i,s)):(uq(d),s=d.nodeType===9?d.body:d.nodeName===\"HTML\"?d.ownerDocument.body:d,s.appendChild(i),d=d._reactRootContainer,d!=null||s.onclick!==null||(s.onclick=zo));else if(h!==4&&(h===27&&mh(i.type)&&(d=i.stateNode,s=null),i=i.child,i!==null))for(aP(i,s,d),i=i.sibling;i!==null;)aP(i,s,d),i=i.sibling}function JS(i,s,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?d.insertBefore(i,s):d.appendChild(i);else if(h!==4&&(h===27&&mh(i.type)&&(d=i.stateNode),i=i.child,i!==null))for(JS(i,s,d),i=i.sibling;i!==null;)JS(i,s,d),i=i.sibling}function e7e(i){for(var s,d=i.return;d!==null;){if(rG(d)){s=d;break}d=d.return}if(s==null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");switch(s.tag){case 27:s=s.stateNode,d=iP(i),JS(i,d,s);break;case 5:d=s.stateNode,s.flags&32&&(lq(d),s.flags&=-33),s=iP(i),JS(i,s,d);break;case 3:case 4:s=s.stateNode.containerInfo,d=iP(i),aP(i,d,s);break;default:throw Error(\"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\")}}function oG(i){var s=i.stateNode,d=i.memoizedProps;try{C(i,V7e,i.type,d,s,i)}catch(h){Lo(i,i.return,h)}}function iG(i,s){return s.tag===31?(s=s.memoizedState,i.memoizedState!==null&&s===null):s.tag===13?(i=i.memoizedState,s=s.memoizedState,i!==null&&i.dehydrated!==null&&(s===null||s.dehydrated===null)):s.tag===3?i.memoizedState.isDehydrated&&(s.flags&256)===0:!1}function t7e(i,s){if(i=i.containerInfo,aD=vA,i=Ze(i),We(i)){if(\"selectionStart\"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var v=h.anchorOffset,E=h.focusNode;h=h.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var j=0,oe=-1,ke=-1,Fe=0,Ct=0,Tt=i,pt=null;t:for(;;){for(var qt;Tt!==d||v!==0&&Tt.nodeType!==3||(oe=j+v),Tt!==E||h!==0&&Tt.nodeType!==3||(ke=j+h),Tt.nodeType===3&&(j+=Tt.nodeValue.length),(qt=Tt.firstChild)!==null;)pt=Tt,Tt=qt;for(;;){if(Tt===i)break t;if(pt===d&&++Fe===v&&(oe=j),pt===E&&++Ct===h&&(ke=j),(qt=Tt.nextSibling)!==null)break;Tt=pt,pt=Tt.parentNode}Tt=qt}d=oe===-1||ke===-1?null:{start:oe,end:ke}}else d=null}d=d||{start:0,end:0}}else d=null;for(sD={focusedElem:i,selectionRange:d},vA=!1,Pa=s;Pa!==null;)if(s=Pa,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Pa=i;else for(;Pa!==null;){switch(i=s=Pa,d=i.alternate,v=i.flags,i.tag){case 0:if((v&4)!==0&&(i=i.updateQueue,i=i!==null?i.events:null,i!==null))for(d=0;d<i.length;d++)v=i[d],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:(v&1024)!==0&&d!==null&&XSe(i,d);break;case 3:if((v&1024)!==0){if(i=i.stateNode.containerInfo,d=i.nodeType,d===9)CP(i);else if(d===1)switch(i.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":CP(i);break;default:i.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((v&1024)!==0)throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\")}if(i=s.sibling,i!==null){i.return=s.return,Pa=i;break}Pa=s.return}}function aG(i,s,d){var h=Lc(),v=Wu(),E=Zu(),j=Xu(),oe=d.flags;switch(d.tag){case 0:case 11:case 15:nd(i,d),oe&4&&XK(d,qc|Sl);break;case 1:if(nd(i,d),oe&4)if(i=d.stateNode,s===null)d.type.defaultProps||\"ref\"in d.memoizedProps||z2||(i.props!==d.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",S(d)||\"instance\"),i.state!==d.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",S(d)||\"instance\")),ed(d)?(Qu(),C(d,_B,d,i),Ju()):C(d,_B,d,i);else{var ke=F0(d.type,s.memoizedProps);s=s.memoizedState,d.type.defaultProps||\"ref\"in d.memoizedProps||z2||(i.props!==d.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",S(d)||\"instance\"),i.state!==d.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",S(d)||\"instance\")),ed(d)?(Qu(),C(d,ZW,d,i,ke,s,i.__reactInternalSnapshotBeforeUpdate),Ju()):C(d,ZW,d,i,ke,s,i.__reactInternalSnapshotBeforeUpdate)}oe&64&&QK(d),oe&512&&Ub(d,d.return);break;case 3:if(s=wf(),nd(i,d),oe&64&&(oe=d.updateQueue,oe!==null)){if(ke=null,d.child!==null)switch(d.child.tag){case 27:case 5:ke=d.child.stateNode;break;case 1:ke=d.child.stateNode}try{C(d,tK,oe,ke)}catch(Ct){Lo(d,d.return,Ct)}}i.effectDuration+=kS(s);break;case 27:s===null&&oe&4&&oG(d);case 26:case 5:if(nd(i,d),s===null){if(oe&4)nG(d);else if(oe&64){i=d.type,s=d.memoizedProps,ke=d.stateNode;try{C(d,A7e,ke,i,s,d)}catch(Ct){Lo(d,d.return,Ct)}}}oe&512&&Ub(d,d.return);break;case 12:if(oe&4){oe=wf(),nd(i,d),i=d.stateNode,i.effectDuration+=Tb(oe);try{C(d,tG,d,s,kh,i.effectDuration)}catch(Ct){Lo(d,d.return,Ct)}}else nd(i,d);break;case 31:nd(i,d),oe&4&&lG(i,d);break;case 13:nd(i,d),oe&4&&uG(i,d),oe&64&&(i=d.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(oe=u7e.bind(null,d),L7e(i,oe))));break;case 22:if(oe=d.memoizedState!==null||Lf,!oe){s=s!==null&&s.memoizedState!==null||da,ke=Lf;var Fe=da;Lf=oe,(da=s)&&!Fe?(rd(i,d,(d.subtreeFlags&8772)!==0),(d.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Je(d,Ir,Fr)):nd(i,d),Lf=ke,da=Fe}break;case 30:break;default:nd(i,d)}(d.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&((Fi||.05<_i)&&dn(d,Ir,Fr,_i,Si),d.alternate===null&&d.return!==null&&d.return.alternate!==null&&.05<Fr-Ir&&(iG(d.return.alternate,d.return)||Ue(d,Ir,Fr,\"Mount\"))),Nc(h),Yu(v),Si=E,Fi=j}function sG(i){var s=i.alternate;s!==null&&(i.alternate=null,sG(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&tn(s)),i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Af(i,s,d){for(d=d.child;d!==null;)cG(i,s,d),d=d.sibling}function cG(i,s,d){if(xs&&typeof xs.onCommitFiberUnmount==\"function\")try{xs.onCommitFiberUnmount(g2,d)}catch(Fe){ld||(ld=!0,console.error(\"React instrumentation encountered an error: %o\",Fe))}var h=Lc(),v=Wu(),E=Zu(),j=Xu();switch(d.tag){case 26:da||td(d,s),Af(i,s,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(i=d.stateNode,i.parentNode.removeChild(i));break;case 27:da||td(d,s);var oe=fa,ke=hc;mh(d.type)&&(fa=d.stateNode,hc=!1),Af(i,s,d),C(d,Wb,d.stateNode),fa=oe,hc=ke;break;case 5:da||td(d,s);case 6:if(oe=fa,ke=hc,fa=null,Af(i,s,d),fa=oe,hc=ke,fa!==null)if(hc)try{C(d,_7e,fa,d.stateNode)}catch(Fe){Lo(d,s,Fe)}else try{C(d,T7e,fa,d.stateNode)}catch(Fe){Lo(d,s,Fe)}break;case 18:fa!==null&&(hc?(i=fa,dq(i.nodeType===9?i.body:i.nodeName===\"HTML\"?i.ownerDocument.body:i,d.stateNode),f2(i)):dq(fa,d.stateNode));break;case 4:oe=fa,ke=hc,fa=d.stateNode.containerInfo,hc=!0,Af(i,s,d),fa=oe,hc=ke;break;case 0:case 11:case 14:case 15:o2(Vs,d,s),da||nP(d,s,qc),Af(i,s,d);break;case 1:da||(td(d,s),oe=d.stateNode,typeof oe.componentWillUnmount==\"function\"&&eG(d,s,oe)),Af(i,s,d);break;case 21:Af(i,s,d);break;case 22:da=(oe=da)||d.memoizedState!==null,Af(i,s,d),da=oe;break;default:Af(i,s,d)}(d.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(d,Ir,Fr,_i,Si),Nc(h),Yu(v),Si=E,Fi=j}function lG(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{C(s,U7e,i)}catch(d){Lo(s,s.return,d)}}}function uG(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{C(s,z7e,i)}catch(d){Lo(s,s.return,d)}}function n7e(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new FY),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new FY),s;default:throw Error(\"Unexpected Suspense handler tag (\"+i.tag+\"). This is a bug in React.\")}}function QS(i,s){var d=n7e(i);s.forEach(function(h){if(!d.has(h)){if(d.add(h),ud)if(V2!==null&&H2!==null)jb(H2,V2);else throw Error(\"Expected finished root and lanes to be set. This is a bug in React.\");var v=d7e.bind(null,i,h);h.then(v,v)}})}function fc(i,s){var d=s.deletions;if(d!==null)for(var h=0;h<d.length;h++){var v=i,E=s,j=d[h],oe=Lc(),ke=E;e:for(;ke!==null;){switch(ke.tag){case 27:if(mh(ke.type)){fa=ke.stateNode,hc=!1;break e}break;case 5:fa=ke.stateNode,hc=!1;break e;case 3:case 4:fa=ke.stateNode.containerInfo,hc=!0;break e}ke=ke.return}if(fa===null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");cG(v,E,j),fa=null,hc=!1,(j.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Ue(j,Ir,Fr,\"Unmount\"),Nc(oe),v=j,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)dG(s,i),s=s.sibling}function dG(i,s){var d=Lc(),h=Wu(),v=Zu(),E=Xu(),j=i.alternate,oe=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:fc(s,i),pc(i),oe&4&&(o2(Vs|Sl,i,i.return),Nb(Vs|Sl,i),nP(i,i.return,qc|Sl));break;case 1:if(fc(s,i),pc(i),oe&512&&(da||j===null||td(j,j.return)),oe&64&&Lf&&(oe=i.updateQueue,oe!==null&&(j=oe.callbacks,j!==null))){var ke=oe.shared.hiddenCallbacks;oe.shared.hiddenCallbacks=ke===null?j:ke.concat(j)}break;case 26:if(ke=pu,fc(s,i),pc(i),oe&512&&(da||j===null||td(j,j.return)),oe&4){var Fe=j!==null?j.memoizedState:null;if(oe=i.memoizedState,j===null)if(oe===null)if(i.stateNode===null){e:{oe=i.type,j=i.memoizedProps,ke=ke.ownerDocument||ke;t:switch(oe){case\"title\":Fe=ke.getElementsByTagName(\"title\")[0],(!Fe||Fe[tw]||Fe[Za]||Fe.namespaceURI===v2||Fe.hasAttribute(\"itemprop\"))&&(Fe=ke.createElement(oe),ke.head.insertBefore(Fe,ke.querySelector(\"head > title\"))),Ya(Fe,oe,j),Fe[Za]=i,Dn(Fe),oe=Fe;break e;case\"link\":var Ct=Eq(\"link\",\"href\",ke).get(oe+(j.href||\"\"));if(Ct){for(var Tt=0;Tt<Ct.length;Tt++)if(Fe=Ct[Tt],Fe.getAttribute(\"href\")===(j.href==null||j.href===\"\"?null:j.href)&&Fe.getAttribute(\"rel\")===(j.rel==null?null:j.rel)&&Fe.getAttribute(\"title\")===(j.title==null?null:j.title)&&Fe.getAttribute(\"crossorigin\")===(j.crossOrigin==null?null:j.crossOrigin)){Ct.splice(Tt,1);break t}}Fe=ke.createElement(oe),Ya(Fe,oe,j),ke.head.appendChild(Fe);break;case\"meta\":if(Ct=Eq(\"meta\",\"content\",ke).get(oe+(j.content||\"\"))){for(Tt=0;Tt<Ct.length;Tt++)if(Fe=Ct[Tt],me(j.content,\"content\"),Fe.getAttribute(\"content\")===(j.content==null?null:\"\"+j.content)&&Fe.getAttribute(\"name\")===(j.name==null?null:j.name)&&Fe.getAttribute(\"property\")===(j.property==null?null:j.property)&&Fe.getAttribute(\"http-equiv\")===(j.httpEquiv==null?null:j.httpEquiv)&&Fe.getAttribute(\"charset\")===(j.charSet==null?null:j.charSet)){Ct.splice(Tt,1);break t}}Fe=ke.createElement(oe),Ya(Fe,oe,j),ke.head.appendChild(Fe);break;default:throw Error(\\'getNodesForType encountered a type it did not expect: \"\\'+oe+\\'\". This is a bug in React.\\')}Fe[Za]=i,Dn(Fe),oe=Fe}i.stateNode=oe}else Sq(ke,i.type,i.stateNode);else i.stateNode=wq(ke,oe,i.memoizedProps);else Fe!==oe?(Fe===null?j.stateNode!==null&&(j=j.stateNode,j.parentNode.removeChild(j)):Fe.count--,oe===null?Sq(ke,i.type,i.stateNode):wq(ke,oe,i.memoizedProps)):oe===null&&i.stateNode!==null&&oP(i,i.memoizedProps,j.memoizedProps)}break;case 27:fc(s,i),pc(i),oe&512&&(da||j===null||td(j,j.return)),j!==null&&oe&4&&oP(i,i.memoizedProps,j.memoizedProps);break;case 5:if(fc(s,i),pc(i),oe&512&&(da||j===null||td(j,j.return)),i.flags&32){ke=i.stateNode;try{C(i,lq,ke)}catch(ur){Lo(i,i.return,ur)}}oe&4&&i.stateNode!=null&&(ke=i.memoizedProps,oP(i,ke,j!==null?j.memoizedProps:ke)),oe&1024&&(VB=!0,i.type!==\"form\"&&console.error(\"Unexpected host component type. Expected a form. This is a bug in React.\"));break;case 6:if(fc(s,i),pc(i),oe&4){if(i.stateNode===null)throw Error(\"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\");oe=i.memoizedProps,j=j!==null?j.memoizedProps:oe,ke=i.stateNode;try{C(i,C7e,ke,j,oe)}catch(ur){Lo(i,i.return,ur)}}break;case 3:if(ke=wf(),mA=null,Fe=pu,pu=s7(s.containerInfo),fc(s,i),pu=Fe,pc(i),oe&4&&j!==null&&j.memoizedState.isDehydrated)try{C(i,N7e,s.containerInfo)}catch(ur){Lo(i,i.return,ur)}VB&&(VB=!1,fG(i)),s.effectDuration+=kS(ke);break;case 4:oe=pu,pu=s7(i.stateNode.containerInfo),fc(s,i),pc(i),pu=oe;break;case 12:oe=wf(),fc(s,i),pc(i),i.stateNode.effectDuration+=Tb(oe);break;case 31:fc(s,i),pc(i),oe&4&&(oe=i.updateQueue,oe!==null&&(i.updateQueue=null,QS(i,oe)));break;case 13:fc(s,i),pc(i),i.child.flags&8192&&i.memoizedState!==null!=(j!==null&&j.memoizedState!==null)&&(eA=Ia()),oe&4&&(oe=i.updateQueue,oe!==null&&(i.updateQueue=null,QS(i,oe)));break;case 22:ke=i.memoizedState!==null;var pt=j!==null&&j.memoizedState!==null,qt=Lf,er=da;if(Lf=qt||ke,da=er||pt,fc(s,i),da=er,Lf=qt,pt&&!ke&&!qt&&!er&&(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Je(i,Ir,Fr),pc(i),oe&8192)e:for(s=i.stateNode,s._visibility=ke?s._visibility&~uw:s._visibility|uw,!ke||j===null||pt||Lf||da||(O0(i),(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Ue(i,Ir,Fr,\"Disconnect\")),j=null,s=i;;){if(s.tag===5||s.tag===26){if(j===null){pt=j=s;try{Fe=pt.stateNode,ke?C(pt,I7e,Fe):C(pt,B7e,pt.stateNode,pt.memoizedProps)}catch(ur){Lo(pt,pt.return,ur)}}}else if(s.tag===6){if(j===null){pt=s;try{Ct=pt.stateNode,ke?C(pt,R7e,Ct):C(pt,D7e,Ct,pt.memoizedProps)}catch(ur){Lo(pt,pt.return,ur)}}}else if(s.tag===18){if(j===null){pt=s;try{Tt=pt.stateNode,ke?C(pt,M7e,Tt):C(pt,P7e,pt.stateNode)}catch(ur){Lo(pt,pt.return,ur)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;j===s&&(j=null),s=s.return}j===s&&(j=null),s.sibling.return=s.return,s=s.sibling}oe&4&&(oe=i.updateQueue,oe!==null&&(j=oe.retryQueue,j!==null&&(oe.retryQueue=null,QS(i,j))));break;case 19:fc(s,i),pc(i),oe&4&&(oe=i.updateQueue,oe!==null&&(i.updateQueue=null,QS(i,oe)));break;case 30:break;case 21:break;default:fc(s,i),pc(i)}(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&((Fi||.05<_i)&&dn(i,Ir,Fr,_i,Si),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<Fr-Ir&&(iG(i.return.alternate,i.return)||Ue(i,Ir,Fr,\"Mount\"))),Nc(d),Yu(h),Si=v,Fi=E}function pc(i){var s=i.flags;if(s&2){try{C(i,e7e,i)}catch(d){Lo(i,i.return,d)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function fG(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;fG(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function nd(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)aG(i,s.alternate,s),s=s.sibling}function pG(i){var s=Lc(),d=Wu(),h=Zu(),v=Xu();switch(i.tag){case 0:case 11:case 14:case 15:nP(i,i.return,qc),O0(i);break;case 1:td(i,i.return);var E=i.stateNode;typeof E.componentWillUnmount==\"function\"&&eG(i,i.return,E),O0(i);break;case 27:C(i,Wb,i.stateNode);case 26:case 5:td(i,i.return),O0(i);break;case 22:i.memoizedState===null&&O0(i);break;case 30:O0(i);break;default:O0(i)}(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(i,Ir,Fr,_i,Si),Nc(s),Yu(d),Si=h,Fi=v}function O0(i){for(i=i.child;i!==null;)pG(i),i=i.sibling}function hG(i,s,d,h){var v=Lc(),E=Wu(),j=Zu(),oe=Xu(),ke=d.flags;switch(d.tag){case 0:case 11:case 15:rd(i,d,h),XK(d,qc);break;case 1:if(rd(i,d,h),s=d.stateNode,typeof s.componentDidMount==\"function\"&&C(d,_B,d,s),s=d.updateQueue,s!==null){i=d.stateNode;try{C(d,NSe,s,i)}catch(Fe){Lo(d,d.return,Fe)}}h&&ke&64&&QK(d),Ub(d,d.return);break;case 27:oG(d);case 26:case 5:rd(i,d,h),h&&s===null&&ke&4&&nG(d),Ub(d,d.return);break;case 12:if(h&&ke&4){ke=wf(),rd(i,d,h),h=d.stateNode,h.effectDuration+=Tb(ke);try{C(d,tG,d,s,kh,h.effectDuration)}catch(Fe){Lo(d,d.return,Fe)}}else rd(i,d,h);break;case 31:rd(i,d,h),h&&ke&4&&lG(i,d);break;case 13:rd(i,d,h),h&&ke&4&&uG(i,d);break;case 22:d.memoizedState===null&&rd(i,d,h),Ub(d,d.return);break;case 30:break;default:rd(i,d,h)}(d.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(d,Ir,Fr,_i,Si),Nc(v),Yu(E),Si=j,Fi=oe}function rd(i,s,d){for(d=d&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;)hG(i,s.alternate,s,d),s=s.sibling}function sP(i,s){var d=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==d&&(i!=null&&R0(i),d!=null&&Cb(d))}function cP(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(R0(s),i!=null&&Cb(i))}function su(i,s,d,h,v){if(s.subtreeFlags&10256||s.actualDuration!==0&&(s.alternate===null||s.alternate.child!==s.child))for(s=s.child;s!==null;){var E=s.sibling;mG(i,s,d,h,E!==null?E.actualStartTime:v),s=E}}function mG(i,s,d,h,v){var E=Lc(),j=Wu(),oe=Zu(),ke=Xu(),Fe=wh,Ct=s.flags;switch(s.tag){case 0:case 11:case 15:(s.mode&Zr)!==Lr&&0<s.actualStartTime&&(s.flags&1)!==0&&jt(s,s.actualStartTime,v,Ea,d),su(i,s,d,h,v),Ct&2048&&JK(s,Hs|Sl);break;case 1:(s.mode&Zr)!==Lr&&0<s.actualStartTime&&((s.flags&128)!==0?wn(s,s.actualStartTime,v,[]):(s.flags&1)!==0&&jt(s,s.actualStartTime,v,Ea,d)),su(i,s,d,h,v);break;case 3:var Tt=wf(),pt=Ea;Ea=s.alternate!==null&&s.alternate.memoizedState.isDehydrated&&(s.flags&256)===0,su(i,s,d,h,v),Ea=pt,Ct&2048&&(d=null,s.alternate!==null&&(d=s.alternate.memoizedState.cache),h=s.memoizedState.cache,h!==d&&(R0(h),d!=null&&Cb(d))),i.passiveEffectDuration+=kS(Tt);break;case 12:if(Ct&2048){Ct=wf(),su(i,s,d,h,v),i=s.stateNode,i.passiveEffectDuration+=Tb(Ct);try{C(s,QSe,s,s.alternate,kh,i.passiveEffectDuration)}catch(qt){Lo(s,s.return,qt)}}else su(i,s,d,h,v);break;case 31:Ct=Ea,Tt=s.alternate!==null?s.alternate.memoizedState:null,pt=s.memoizedState,Tt!==null&&pt===null?(pt=s.deletions,pt!==null&&0<pt.length&&pt[0].tag===18?(Ea=!1,Tt=Tt.hydrationErrors,Tt!==null&&wn(s,s.actualStartTime,v,Tt)):Ea=!0):Ea=!1,su(i,s,d,h,v),Ea=Ct;break;case 13:Ct=Ea,Tt=s.alternate!==null?s.alternate.memoizedState:null,pt=s.memoizedState,Tt===null||Tt.dehydrated===null||pt!==null&&pt.dehydrated!==null?Ea=!1:(pt=s.deletions,pt!==null&&0<pt.length&&pt[0].tag===18?(Ea=!1,Tt=Tt.hydrationErrors,Tt!==null&&wn(s,s.actualStartTime,v,Tt)):Ea=!0),su(i,s,d,h,v),Ea=Ct;break;case 23:break;case 22:pt=s.stateNode,Tt=s.alternate,s.memoizedState!==null?pt._visibility&Tf?su(i,s,d,h,v):zb(i,s,d,h,v):pt._visibility&Tf?su(i,s,d,h,v):(pt._visibility|=Tf,i2(i,s,d,h,(s.subtreeFlags&10256)!==0||s.actualDuration!==0&&(s.alternate===null||s.alternate.child!==s.child),v),(s.mode&Zr)===Lr||Ea||(i=s.actualStartTime,0<=i&&.05<v-i&&Je(s,i,v),0<=Ir&&0<=Fr&&.05<Fr-Ir&&Je(s,Ir,Fr))),Ct&2048&&sP(Tt,s);break;case 24:su(i,s,d,h,v),Ct&2048&&cP(s.alternate,s);break;default:su(i,s,d,h,v)}(s.mode&Zr)!==Lr&&((i=!Ea&&s.alternate===null&&s.return!==null&&s.return.alternate!==null)&&(d=s.actualStartTime,0<=d&&.05<v-d&&Ue(s,d,v,\"Mount\")),0<=Ir&&0<=Fr&&((Fi||.05<_i)&&dn(s,Ir,Fr,_i,Si),i&&.05<Fr-Ir&&Ue(s,Ir,Fr,\"Mount\"))),Nc(E),Yu(j),Si=oe,Fi=ke,wh=Fe}function i2(i,s,d,h,v,E){for(v=v&&((s.subtreeFlags&10256)!==0||s.actualDuration!==0&&(s.alternate===null||s.alternate.child!==s.child)),s=s.child;s!==null;){var j=s.sibling;gG(i,s,d,h,v,j!==null?j.actualStartTime:E),s=j}}function gG(i,s,d,h,v,E){var j=Lc(),oe=Wu(),ke=Zu(),Fe=Xu(),Ct=wh;v&&(s.mode&Zr)!==Lr&&0<s.actualStartTime&&(s.flags&1)!==0&&jt(s,s.actualStartTime,E,Ea,d);var Tt=s.flags;switch(s.tag){case 0:case 11:case 15:i2(i,s,d,h,v,E),JK(s,Hs);break;case 23:break;case 22:var pt=s.stateNode;s.memoizedState!==null?pt._visibility&Tf?i2(i,s,d,h,v,E):zb(i,s,d,h,E):(pt._visibility|=Tf,i2(i,s,d,h,v,E)),v&&Tt&2048&&sP(s.alternate,s);break;case 24:i2(i,s,d,h,v,E),v&&Tt&2048&&cP(s.alternate,s);break;default:i2(i,s,d,h,v,E)}(s.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(s,Ir,Fr,_i,Si),Nc(j),Yu(oe),Si=ke,Fi=Fe,wh=Ct}function zb(i,s,d,h,v){if(s.subtreeFlags&10256||s.actualDuration!==0&&(s.alternate===null||s.alternate.child!==s.child))for(var E=s.child;E!==null;){s=E.sibling;var j=i,oe=d,ke=h,Fe=s!==null?s.actualStartTime:v,Ct=wh;(E.mode&Zr)!==Lr&&0<E.actualStartTime&&(E.flags&1)!==0&&jt(E,E.actualStartTime,Fe,Ea,oe);var Tt=E.flags;switch(E.tag){case 22:zb(j,E,oe,ke,Fe),Tt&2048&&sP(E.alternate,E);break;case 24:zb(j,E,oe,ke,Fe),Tt&2048&&cP(E.alternate,E);break;default:zb(j,E,oe,ke,Fe)}wh=Ct,E=s}}function a2(i,s,d){if(i.subtreeFlags&Iw)for(i=i.child;i!==null;)yG(i,s,d),i=i.sibling}function yG(i,s,d){switch(i.tag){case 26:a2(i,s,d),i.flags&Iw&&i.memoizedState!==null&&$7e(d,pu,i.memoizedState,i.memoizedProps);break;case 5:a2(i,s,d);break;case 3:case 4:var h=pu;pu=s7(i.stateNode.containerInfo),a2(i,s,d),pu=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=Iw,Iw=16777216,a2(i,s,d),Iw=h):a2(i,s,d));break;default:a2(i,s,d)}}function vG(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Vb(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var d=0;d<s.length;d++){var h=s[d],v=Lc();Pa=h,wG(h,i),(h.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Ue(h,Ir,Fr,\"Unmount\"),Nc(v)}vG(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xG(i),i=i.sibling}function xG(i){var s=Lc(),d=Wu(),h=Zu(),v=Xu();switch(i.tag){case 0:case 11:case 15:Vb(i),i.flags&2048&&rP(i,i.return,Hs|Sl);break;case 3:var E=wf();Vb(i),i.stateNode.passiveEffectDuration+=kS(E);break;case 12:E=wf(),Vb(i),i.stateNode.passiveEffectDuration+=Tb(E);break;case 22:E=i.stateNode,i.memoizedState!==null&&E._visibility&Tf&&(i.return===null||i.return.tag!==13)?(E._visibility&=~Tf,e7(i),(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Ue(i,Ir,Fr,\"Disconnect\")):Vb(i);break;default:Vb(i)}(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(i,Ir,Fr,_i,Si),Nc(s),Yu(d),Fi=v,Si=h}function e7(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var d=0;d<s.length;d++){var h=s[d],v=Lc();Pa=h,wG(h,i),(h.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&.05<Fr-Ir&&Ue(h,Ir,Fr,\"Unmount\"),Nc(v)}vG(i)}for(i=i.child;i!==null;)bG(i),i=i.sibling}function bG(i){var s=Lc(),d=Wu(),h=Zu(),v=Xu();switch(i.tag){case 0:case 11:case 15:rP(i,i.return,Hs),e7(i);break;case 22:var E=i.stateNode;E._visibility&Tf&&(E._visibility&=~Tf,e7(i));break;default:e7(i)}(i.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(i,Ir,Fr,_i,Si),Nc(s),Yu(d),Fi=v,Si=h}function wG(i,s){for(;Pa!==null;){var d=Pa,h=d,v=s,E=Lc(),j=Wu(),oe=Zu(),ke=Xu();switch(h.tag){case 0:case 11:case 15:rP(h,v,Hs);break;case 23:case 22:h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool,v!=null&&R0(v));break;case 24:Cb(h.memoizedState.cache)}if((h.mode&Zr)!==Lr&&0<=Ir&&0<=Fr&&(Fi||.05<_i)&&dn(h,Ir,Fr,_i,Si),Nc(E),Yu(j),Fi=ke,Si=oe,h=d.child,h!==null)h.return=d,Pa=h;else e:for(d=i;Pa!==null;){if(h=Pa,E=h.sibling,j=h.return,sG(h),h===d){Pa=null;break e}if(E!==null){E.return=j,Pa=E;break e}Pa=j}}}function r7e(){k9e.forEach(function(i){return i()})}function EG(){var i=typeof IS_REACT_ACT_ENVIRONMENT<\"u\"?IS_REACT_ACT_ENVIRONMENT:void 0;return i||an.actQueue===null||console.error(\"The current testing environment is not configured to support act(...)\"),i}function zc(i){if((ko&Sa)!==Ba&&Jr!==0)return Jr&-Jr;var s=an.T;return s!==null?(s._updatedFibers||(s._updatedFibers=new Set),s._updatedFibers.add(i),gP()):it()}function SG(){if(gc===0)if((Jr&536870912)===0||ho){var i=x7;x7<<=1,(x7&3932160)===0&&(x7=262144),gc=i}else gc=536870912;return i=Gc.current,i!==null&&(i.flags|=32),gc}function Di(i,s,d){if(K2&&console.error(\"useInsertionEffect must not schedule updates.\"),JB&&(oA=!0),(i===ei&&(Ho===X0||Ho===J0)||i.cancelPendingCommit!==null)&&(c2(i,0),ph(i,Jr,gc,!1)),nn(i,d),(ko&Sa)!==Ba&&i===ei){if(cd)switch(s.tag){case 0:case 11:case 15:i=oo&&S(oo)||\"Unknown\",ZY.has(i)||(ZY.add(i),s=S(s)||\"Unknown\",console.error(\"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render\",s,i,i));break;case 1:YY||(console.error(\"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.\"),YY=!0)}}else ud&&Wn(i,s,d),p7e(s),i===ei&&((ko&Sa)===Ba&&(Dh|=d),Mi===Rh&&ph(i,Jr,gc,!1)),od(i)}function AG(i,s,d){if((ko&(Sa|Wc))!==Ba)throw Error(\"Should not already be working.\");if(Jr!==0&&oo!==null){var h=oo,v=Ia();switch(HW){case Bw:case X0:var E=gw;fi&&((h=h._debugTask)?h.run(console.timeStamp.bind(console,\"Suspended\",E,v,ml,void 0,\"primary-light\")):console.timeStamp(\"Suspended\",E,v,ml,void 0,\"primary-light\"));break;case J0:E=gw,fi&&((h=h._debugTask)?h.run(console.timeStamp.bind(console,\"Action\",E,v,ml,void 0,\"primary-light\")):console.timeStamp(\"Action\",E,v,ml,void 0,\"primary-light\"));break;default:fi&&(h=v-gw,3>h||console.timeStamp(\"Blocked\",gw,v,ml,void 0,5>h?\"primary-light\":10>h?\"primary\":100>h?\"primary-dark\":\"error\"))}}E=(d=!d&&(s&127)===0&&(s&i.expiredLanes)===0||xt(i,s))?i7e(i,s):uP(i,s,!0);var j=d;do{if(E===Nf){j2&&!d&&ph(i,s,0,!1),s=Ho,gw=ca(),HW=s;break}else{if(h=Ia(),v=i.current.alternate,j&&!o7e(v)){Ye(s),v=Ra,E=h,!fi||E<=v||(Hi?Hi.run(console.timeStamp.bind(console,\"Teared Render\",v,E,uo,so,\"error\")):console.timeStamp(\"Teared Render\",v,E,uo,so,\"error\")),L0(s,h),E=uP(i,s,!1),j=!1;continue}if(E===Z0){if(j=s,i.errorRecoveryDisabledLanes&j)var oe=0;else oe=i.pendingLanes&-536870913,oe=oe!==0?oe:oe&536870912?536870912:0;if(oe!==0){Ye(s),zi(Ra,h,s,Hi),L0(s,h),s=oe;e:{h=i,E=j,j=Fw;var ke=h.current.memoizedState.isDehydrated;if(ke&&(c2(h,oe).flags|=256),oe=uP(h,oe,!1),oe!==Z0){if($B&&!ke){h.errorRecoveryDisabledLanes|=E,Dh|=E,E=Rh;break e}h=js,js=j,h!==null&&(js===null?js=h:js.push.apply(js,h))}E=oe}if(j=!1,E!==Z0)continue;h=Ia()}}if(E===Pw){Ye(s),zi(Ra,h,s,Hi),L0(s,h),c2(i,0),ph(i,s,0,!0);break}e:{switch(d=i,E){case Nf:case Pw:throw Error(\"Root did not complete. This is a bug in React.\");case Rh:if((s&4194048)!==s)break;case Z7:Ye(s),ro(Ra,h,s,Hi),L0(s,h),v=s,(v&127)!==0?F7=h:(v&4194048)!==0&&(O7=h),ph(d,s,gc,!Ph);break e;case Z0:js=null;break;case Y7:case OY:break;default:throw Error(\"Unknown root exit status.\")}if(an.actQueue!==null)dP(d,v,s,js,Ow,Q7,gc,Dh,Q0,E,null,null,Ra,h);else{if((s&62914560)===s&&(j=eA+UY-Ia(),10<j)){if(ph(d,s,gc,!Ph),Qe(d,0,!0)!==0)break e;hu=s,d.timeoutHandle=oZ(kG.bind(null,d,v,js,Ow,Q7,s,gc,Dh,Q0,Ph,E,\"Throttled\",Ra,h),j);break e}kG(d,v,js,Ow,Q7,s,gc,Dh,Q0,Ph,E,null,Ra,h)}}}break}while(!0);od(i)}function kG(i,s,d,h,v,E,j,oe,ke,Fe,Ct,Tt,pt,qt){i.timeoutHandle=o1;var er=s.subtreeFlags,ur=null;if((er&8192||(er&16785408)===16785408)&&(ur={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zo},yG(s,E,ur),er=(E&62914560)===E?eA-Ia():(E&4194048)===E?NY-Ia():0,er=K7e(ur,er),er!==null)){hu=E,i.cancelPendingCommit=er(dP.bind(null,i,s,E,d,h,v,j,oe,ke,Ct,ur,ur.waitingForViewTransition?\"Waiting for the previous Animation\":0<ur.count?0<ur.imgCount?\"Suspended on CSS and Images\":\"Suspended on CSS\":ur.imgCount===1?\"Suspended on an Image\":0<ur.imgCount?\"Suspended on Images\":null,pt,qt)),ph(i,E,j,!Fe);return}dP(i,s,E,d,h,v,j,oe,ke,Ct,ur,Tt,pt,qt)}function o7e(i){for(var s=i;;){var d=s.tag;if((d===0||d===11||d===15)&&s.flags&16384&&(d=s.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var h=0;h<d.length;h++){var v=d[h],E=v.getSnapshot;v=v.value;try{if(!Us(E(),v))return!1}catch{return!1}}if(d=s.child,s.subtreeFlags&16384&&d!==null)d.return=s,s=d;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ph(i,s,d,h){s&=~KB,s&=~Dh,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var v=s;0<v;){var E=31-Os(v),j=1<<E;h[E]=-1,v&=~j}d!==0&&hn(i,d,s)}function s2(){return(ko&(Sa|Wc))===Ba?($b(0,!1),!1):!0}function lP(){if(oo!==null){if(Ho===mc)var i=oo.return;else i=oo,ES(),bR(i),D2=null,kw=0,i=oo;for(;i!==null;)ZK(i.alternate,i),i=i.return;oo=null}}function L0(i,s){(i&127)!==0&&(Ch=s),(i&4194048)!==0&&(md=s),(i&62914560)!==0&&(zW=s),(i&2080374784)!==0&&(VW=s)}function c2(i,s){fi&&(console.timeStamp(\"Blocking Track\",.003,.003,\"Blocking\",so,\"primary-light\"),console.timeStamp(\"Transition Track\",.003,.003,\"Transition\",so,\"primary-light\"),console.timeStamp(\"Suspense Track\",.003,.003,\"Suspense\",so,\"primary-light\"),console.timeStamp(\"Idle Track\",.003,.003,\"Idle\",so,\"primary-light\"));var d=Ra;if(Ra=ca(),Jr!==0&&0<d){if(Ye(Jr),Mi===Y7||Mi===Rh)ro(d,Ra,s,Hi);else{var h=Ra,v=Hi;if(fi&&!(h<=d)){var E=(s&738197653)===s?\"tertiary-dark\":\"primary-dark\",j=(s&536870912)===s?\"Prewarm\":(s&201326741)===s?\"Interrupted Hydration\":\"Interrupted Render\";v?v.run(console.timeStamp.bind(console,j,d,h,uo,so,E)):console.timeStamp(j,d,h,uo,so,E)}}L0(Jr,Ra)}if(d=Hi,Hi=null,(s&127)!==0){Hi=pw,v=0<=hd&&hd<Ch?Ch:hd,h=0<=H0&&H0<Ch?Ch:H0,E=0<=h?h:0<=v?v:Ra,0<=F7?(Ye(2),Gr(F7,E,s,d)):(L7&127)!==0&&(Ye(2),ia(Ch,E,Bf)),d=v;var oe=h,ke=hw,Fe=0<R2,Ct=Th===fw,Tt=Th===D7;if(v=Ra,h=pw,E=SB,j=AB,fi){if(uo=\"Blocking\",0<d?d>v&&(d=v):d=v,0<oe?oe>d&&(oe=d):oe=d,ke!==null&&d>oe){var pt=Fe?\"secondary-light\":\"warning\";h?h.run(console.timeStamp.bind(console,Fe?\"Consecutive\":\"Event: \"+ke,oe,d,uo,so,pt)):console.timeStamp(Fe?\"Consecutive\":\"Event: \"+ke,oe,d,uo,so,pt)}v>d&&(oe=Ct?\"error\":(s&738197653)===s?\"tertiary-light\":\"primary-light\",Ct=Tt?\"Promise Resolved\":Ct?\"Cascading Update\":5<v-d?\"Update Blocked\":\"Update\",Tt=[],j!=null&&Tt.push([\"Component name\",j]),E!=null&&Tt.push([\"Method name\",E]),d={start:d,end:v,detail:{devtools:{properties:Tt,track:uo,trackGroup:so,color:oe}}},h?h.run(performance.measure.bind(performance,Ct,d)):performance.measure(Ct,d))}hd=-1.1,Th=0,AB=SB=null,F7=-1.1,R2=H0,H0=-1.1,Ch=ca()}if((s&4194048)!==0&&(Hi=mw,v=0<=Pf&&Pf<md?md:Pf,d=0<=wl&&wl<md?md:wl,h=0<=_h&&_h<md?md:_h,E=0<=h?h:0<=d?d:Ra,0<=O7?(Ye(256),Gr(O7,E,s,Hi)):(L7&4194048)!==0&&(Ye(256),ia(md,E,Bf)),Tt=h,oe=j0,ke=0<Mh,Fe=kB===D7,E=Ra,h=mw,j=NW,Ct=UW,fi&&(uo=\"Transition\",0<d?d>E&&(d=E):d=E,0<v?v>d&&(v=d):v=d,0<Tt?Tt>v&&(Tt=v):Tt=v,v>Tt&&oe!==null&&(pt=ke?\"secondary-light\":\"warning\",h?h.run(console.timeStamp.bind(console,ke?\"Consecutive\":\"Event: \"+oe,Tt,v,uo,so,pt)):console.timeStamp(ke?\"Consecutive\":\"Event: \"+oe,Tt,v,uo,so,pt)),d>v&&(h?h.run(console.timeStamp.bind(console,\"Action\",v,d,uo,so,\"primary-dark\")):console.timeStamp(\"Action\",v,d,uo,so,\"primary-dark\")),E>d&&(v=Fe?\"Promise Resolved\":5<E-d?\"Update Blocked\":\"Update\",Tt=[],Ct!=null&&Tt.push([\"Component name\",Ct]),j!=null&&Tt.push([\"Method name\",j]),d={start:d,end:E,detail:{devtools:{properties:Tt,track:uo,trackGroup:so,color:\"primary-light\"}}},h?h.run(performance.measure.bind(performance,v,d)):performance.measure(v,d))),wl=Pf=-1.1,kB=0,O7=-1.1,Mh=_h,_h=-1.1,md=ca()),(s&62914560)!==0&&(L7&62914560)!==0&&(Ye(4194304),ia(zW,Ra,Bf)),(s&2080374784)!==0&&(L7&2080374784)!==0&&(Ye(268435456),ia(VW,Ra,Bf)),d=i.timeoutHandle,d!==o1&&(i.timeoutHandle=o1,N9e(d)),d=i.cancelPendingCommit,d!==null&&(i.cancelPendingCommit=null,d()),hu=0,lP(),ei=i,oo=d=_a(i.current,null),Jr=s,Ho=mc,Yc=null,Ph=!1,j2=xt(i,s),$B=!1,Mi=Nf,Q0=gc=KB=Dh=Bh=0,js=Fw=null,Q7=!1,(s&8)!==0&&(s|=s&32),h=i.entangledLanes,h!==0)for(i=i.entanglements,h&=s;0<h;)v=31-Os(h),E=1<<v,s|=i[v],h&=~E;return yd=s,Zi(),i=PW(),1e3<i-RW&&(an.recentlyCreatedOwnerStacks=0,RW=i),du.discardPendingWarnings(),d}function CG(i,s){zr=null,an.H=Mw,an.getCurrentStack=null,cd=!1,jc=null,s===B2||s===V7?(s=q$(),Ho=Bw):s===MB?(s=q$(),Ho=LY):Ho=s===UB?jB:s!==null&&typeof s==\"object\"&&typeof s.then==\"function\"?Dw:X7,Yc=s;var d=oo;d===null?(Mi=Pw,qS(i,Oc(s,i.current))):d.mode&Zr&&sR(d)}function TG(){var i=Gc.current;return i===null?!0:(Jr&4194048)===Jr?El===null:(Jr&62914560)===Jr||(Jr&536870912)!==0?i===El:!1}function _G(){var i=an.H;return an.H=Mw,i===null?Mw:i}function MG(){var i=an.A;return an.A=A9e,i}function t7(i){Hi===null&&(Hi=i._debugTask==null?null:i._debugTask)}function n7(){Mi=Rh,Ph||(Jr&4194048)!==Jr&&Gc.current!==null||(j2=!0),(Bh&134217727)===0&&(Dh&134217727)===0||ei===null||ph(ei,Jr,gc,!1)}function uP(i,s,d){var h=ko;ko|=Sa;var v=_G(),E=MG();if(ei!==i||Jr!==s){if(ud){var j=i.memoizedUpdaters;0<j.size&&(jb(i,Jr),j.clear()),Kn(i,s)}Ow=null,c2(i,s)}s=!1,j=Mi;e:do try{if(Ho!==mc&&oo!==null){var oe=oo,ke=Yc;switch(Ho){case jB:lP(),j=Z7;break e;case Bw:case X0:case J0:case Dw:Gc.current===null&&(s=!0);var Fe=Ho;if(Ho=mc,Yc=null,l2(i,oe,ke,Fe),d&&j2){j=Nf;break e}break;default:Fe=Ho,Ho=mc,Yc=null,l2(i,oe,ke,Fe)}}IG(),j=Mi;break}catch(Ct){CG(i,Ct)}while(!0);return s&&i.shellSuspendCounter++,ES(),ko=h,an.H=v,an.A=E,oo===null&&(ei=null,Jr=0,Zi()),j}function IG(){for(;oo!==null;)RG(oo)}function i7e(i,s){var d=ko;ko|=Sa;var h=_G(),v=MG();if(ei!==i||Jr!==s){if(ud){var E=i.memoizedUpdaters;0<E.size&&(jb(i,Jr),E.clear()),Kn(i,s)}Ow=null,tA=Ia()+zY,c2(i,s)}else j2=xt(i,s);e:do try{if(Ho!==mc&&oo!==null)t:switch(s=oo,E=Yc,Ho){case X7:Ho=mc,Yc=null,l2(i,s,E,X7);break;case X0:case J0:if(K$(E)){Ho=mc,Yc=null,PG(s);break}s=function(){Ho!==X0&&Ho!==J0||ei!==i||(Ho=J7),od(i)},E.then(s,s);break e;case Bw:Ho=J7;break e;case LY:Ho=HB;break e;case J7:K$(E)?(Ho=mc,Yc=null,PG(s)):(Ho=mc,Yc=null,l2(i,s,E,J7));break;case HB:var j=null;switch(oo.tag){case 26:j=oo.memoizedState;case 5:case 27:var oe=oo;if(j?Aq(j):oe.stateNode.complete){Ho=mc,Yc=null;var ke=oe.sibling;if(ke!==null)oo=ke;else{var Fe=oe.return;Fe!==null?(oo=Fe,r7(Fe)):oo=null}break t}break;default:console.error(\"Unexpected type of fiber triggered a suspensey commit. This is a bug in React.\")}Ho=mc,Yc=null,l2(i,s,E,HB);break;case Dw:Ho=mc,Yc=null,l2(i,s,E,Dw);break;case jB:lP(),Mi=Z7;break e;default:throw Error(\"Unexpected SuspendedReason. This is a bug in React.\")}an.actQueue!==null?IG():a7e();break}catch(Ct){CG(i,Ct)}while(!0);return ES(),an.H=h,an.A=v,ko=d,oo!==null?Nf:(ei=null,Jr=0,Zi(),Mi)}function a7e(){for(;oo!==null&&!iAe();)RG(oo)}function RG(i){var s=i.alternate;(i.mode&Zr)!==Lr?(aR(i),s=C(i,eP,s,i,yd),sR(i)):s=C(i,eP,s,i,yd),i.memoizedProps=i.pendingProps,s===null?r7(i):oo=s}function PG(i){var s=C(i,s7e,i);i.memoizedProps=i.pendingProps,s===null?r7(i):oo=s}function s7e(i){var s=i.alternate,d=(i.mode&Zr)!==Lr;switch(d&&aR(i),i.tag){case 15:case 0:s=jK(s,i,i.pendingProps,i.type,void 0,Jr);break;case 11:s=jK(s,i,i.pendingProps,i.type.render,i.ref,Jr);break;case 5:bR(i);default:ZK(s,i),i=oo=uc(i,yd),s=eP(s,i,yd)}return d&&sR(i),s}function l2(i,s,d,h){ES(),bR(s),D2=null,kw=0;var v=s.return;try{if(KSe(i,v,s,d,Jr)){Mi=Pw,qS(i,Oc(d,i.current)),oo=null;return}}catch(E){if(v!==null)throw oo=v,E;Mi=Pw,qS(i,Oc(d,i.current)),oo=null;return}s.flags&32768?(ho||h===X7?i=!0:j2||(Jr&536870912)!==0?i=!1:(Ph=i=!0,(h===X0||h===J0||h===Bw||h===Dw)&&(h=Gc.current,h!==null&&h.tag===13&&(h.flags|=16384))),BG(s,i)):r7(s)}function r7(i){var s=i;do{if((s.flags&32768)!==0){BG(s,Ph);return}var d=s.alternate;if(i=s.return,aR(s),d=C(s,WSe,d,s,yd),(s.mode&Zr)!==Lr&&z$(s),d!==null){oo=d;return}if(s=s.sibling,s!==null){oo=s;return}oo=s=i}while(s!==null);Mi===Nf&&(Mi=OY)}function BG(i,s){do{var d=YSe(i.alternate,i);if(d!==null){d.flags&=32767,oo=d;return}if((i.mode&Zr)!==Lr){z$(i),d=i.actualDuration;for(var h=i.child;h!==null;)d+=h.actualDuration,h=h.sibling;i.actualDuration=d}if(d=i.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!s&&(i=i.sibling,i!==null)){oo=i;return}oo=i=d}while(i!==null);Mi=Z7,oo=null}function dP(i,s,d,h,v,E,j,oe,ke,Fe,Ct,Tt,pt,qt){i.cancelPendingCommit=null;do Hb();while(pa!==Oh);if(du.flushLegacyContextWarning(),du.flushPendingUnsafeLifecycleWarnings(),(ko&(Sa|Wc))!==Ba)throw Error(\"Should not already be working.\");if(Ye(d),Fe===Z0?zi(pt,qt,d,Hi):h!==null?Yi(pt,qt,d,h,s!==null&&s.alternate!==null&&s.alternate.memoizedState.isDehydrated&&(s.flags&256)!==0,Hi):Pr(pt,qt,d,Hi),s!==null){if(d===0&&console.error(\"finishedLanes should not be empty during a commit. This is a bug in React.\"),s===i.current)throw Error(\"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\");if(E=s.lanes|s.childLanes,E|=vB,Yt(i,d,E,j,oe,ke),i===ei&&(oo=ei=null,Jr=0),$2=s,Lh=i,hu=d,WB=E,ZB=v,GY=h,YB=qt,qY=Tt,mu=nA,WY=null,s.actualDuration!==0||(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,f7e(m2,function(){return Hw=window.event,mu===nA&&(mu=qB),NG(),null})):(i.callbackNode=null,i.callbackPriority=0),Rf=null,kh=ca(),Tt!==null&&Ka(qt,kh,Tt,Hi),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=an.T,an.T=null,v=No.p,No.p=$c,j=ko,ko|=Wc;try{t7e(i,s,d)}finally{ko=j,No.p=v,an.T=h}}pa=HY,DG(),FG(),OG()}}function DG(){if(pa===HY){pa=Oh;var i=Lh,s=$2,d=hu,h=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||h){h=an.T,an.T=null;var v=No.p;No.p=$c;var E=ko;ko|=Wc;try{V2=d,H2=i,CS(),dG(s,i),H2=V2=null,d=sD;var j=Ze(i.containerInfo),oe=d.focusedElem,ke=d.selectionRange;if(j!==oe&&oe&&oe.ownerDocument&&Oe(oe.ownerDocument.documentElement,oe)){if(ke!==null&&We(oe)){var Fe=ke.start,Ct=ke.end;if(Ct===void 0&&(Ct=Fe),\"selectionStart\"in oe)oe.selectionStart=Fe,oe.selectionEnd=Math.min(Ct,oe.value.length);else{var Tt=oe.ownerDocument||document,pt=Tt&&Tt.defaultView||window;if(pt.getSelection){var qt=pt.getSelection(),er=oe.textContent.length,ur=Math.min(ke.start,er),si=ke.end===void 0?ur:Math.min(ke.end,er);!qt.extend&&ur>si&&(j=si,si=ur,ur=j);var bo=Te(oe,ur),dt=Te(oe,si);if(bo&&dt&&(qt.rangeCount!==1||qt.anchorNode!==bo.node||qt.anchorOffset!==bo.offset||qt.focusNode!==dt.node||qt.focusOffset!==dt.offset)){var mt=Tt.createRange();mt.setStart(bo.node,bo.offset),qt.removeAllRanges(),ur>si?(qt.addRange(mt),qt.extend(dt.node,dt.offset)):(mt.setEnd(dt.node,dt.offset),qt.addRange(mt))}}}}for(Tt=[],qt=oe;qt=qt.parentNode;)qt.nodeType===1&&Tt.push({element:qt,left:qt.scrollLeft,top:qt.scrollTop});for(typeof oe.focus==\"function\"&&oe.focus(),oe=0;oe<Tt.length;oe++){var St=Tt[oe];St.element.scrollLeft=St.left,St.element.scrollTop=St.top}}vA=!!aD,sD=aD=null}finally{ko=E,No.p=v,an.T=h}}i.current=s,pa=jY}}function FG(){if(pa===jY){pa=Oh;var i=WY;if(i!==null){kh=ca();var s=If,d=kh;!fi||d<=s||(Bf?Bf.run(console.timeStamp.bind(console,i,s,d,uo,so,\"secondary-light\")):console.timeStamp(i,s,d,uo,so,\"secondary-light\"))}i=Lh,s=$2,d=hu;var h=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||h){h=an.T,an.T=null;var v=No.p;No.p=$c;var E=ko;ko|=Wc;try{V2=d,H2=i,CS(),aG(i,s.alternate,s),H2=V2=null}finally{ko=E,No.p=v,an.T=h}}i=YB,s=qY,If=ca(),i=s===null?i:kh,s=If,d=mu===GB,h=Hi,Rf!==null?Ga(i,s,Rf,!1,h):!fi||s<=i||(h?h.run(console.timeStamp.bind(console,d?\"Commit Interrupted View Transition\":\"Commit\",i,s,uo,so,d?\"error\":\"secondary-dark\")):console.timeStamp(d?\"Commit Interrupted View Transition\":\"Commit\",i,s,uo,so,d?\"error\":\"secondary-dark\")),pa=$Y}}function OG(){if(pa===KY||pa===$Y){if(pa===KY){var i=If;If=ca();var s=If,d=mu===GB;!fi||s<=i||(Bf?Bf.run(console.timeStamp.bind(console,d?\"Interrupted View Transition\":\"Starting Animation\",i,s,uo,so,d?\"error\":\"secondary-light\")):console.timeStamp(d?\"Interrupted View Transition\":\"Starting Animation\",i,s,uo,so,d?\" error\":\"secondary-light\")),mu!==GB&&(mu=VY)}pa=Oh,aAe(),i=Lh;var h=$2;s=hu,d=GY;var v=h.actualDuration!==0||(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0;v?pa=rA:(pa=Oh,$2=Lh=null,LG(i,i.pendingLanes),e1=0,Nw=null);var E=i.pendingLanes;if(E===0&&(Fh=null),v||HG(i),E=Se(s),h=h.stateNode,xs&&typeof xs.onCommitFiberRoot==\"function\")try{var j=(h.current.flags&128)===128;switch(E){case $c:var oe=ZP;break;case lu:oe=XP;break;case dd:oe=m2;break;case w7:oe=JP;break;default:oe=m2}xs.onCommitFiberRoot(g2,h,oe,j)}catch(Tt){ld||(ld=!0,console.error(\"React instrumentation encountered an error: %o\",Tt))}if(ud&&i.memoizedUpdaters.clear(),r7e(),d!==null){j=an.T,oe=No.p,No.p=$c,an.T=null;try{var ke=i.onRecoverableError;for(h=0;h<d.length;h++){var Fe=d[h],Ct=c7e(Fe.stack);C(Fe.source,ke,Fe.value,Ct)}}finally{an.T=j,No.p=oe}}(hu&3)!==0&&Hb(),od(i),E=i.pendingLanes,(s&261930)!==0&&(E&42)!==0?(U7=!0,i===XB?Lw++:(Lw=0,XB=i)):Lw=0,v||L0(s,If),$b(0,!1)}}function c7e(i){return i={componentStack:i},Object.defineProperty(i,\"digest\",{get:function(){console.error(\\'You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.\\')}}),i}function LG(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Cb(s)))}function Hb(){return DG(),FG(),OG(),NG()}function NG(){if(pa!==rA)return!1;var i=Lh,s=WB;WB=0;var d=Se(hu),h=dd===0||dd>d?dd:d;d=an.T;var v=No.p;try{No.p=h,an.T=null;var E=ZB;ZB=null,h=Lh;var j=hu;if(pa=Oh,$2=Lh=null,hu=0,(ko&(Sa|Wc))!==Ba)throw Error(\"Cannot flush passive effects while already rendering.\");Ye(j),JB=!0,oA=!1;var oe=0;if(Rf=null,oe=Ia(),mu===VY)ia(If,oe,Bf);else{var ke=If,Fe=oe,Ct=mu===qB;!fi||Fe<=ke||(Hi?Hi.run(console.timeStamp.bind(console,Ct?\"Waiting for Paint\":\"Waiting\",ke,Fe,uo,so,\"secondary-light\")):console.timeStamp(Ct?\"Waiting for Paint\":\"Waiting\",ke,Fe,uo,so,\"secondary-light\"))}ke=ko,ko|=Wc;var Tt=h.current;CS(),xG(Tt);var pt=h.current;Tt=YB,CS(),mG(h,pt,j,E,Tt),HG(h),ko=ke;var qt=Ia();if(pt=oe,Tt=Hi,Rf!==null?Ga(pt,qt,Rf,!0,Tt):!fi||qt<=pt||(Tt?Tt.run(console.timeStamp.bind(console,\"Remaining Effects\",pt,qt,uo,so,\"secondary-dark\")):console.timeStamp(\"Remaining Effects\",pt,qt,uo,so,\"secondary-dark\")),L0(j,qt),$b(0,!1),oA?h===Nw?e1++:(e1=0,Nw=h):e1=0,oA=JB=!1,xs&&typeof xs.onPostCommitFiberRoot==\"function\")try{xs.onPostCommitFiberRoot(g2,h)}catch(ur){ld||(ld=!0,console.error(\"React instrumentation encountered an error: %o\",ur))}var er=h.current.stateNode;return er.effectDuration=0,er.passiveEffectDuration=0,!0}finally{No.p=v,an.T=d,LG(i,s)}}function UG(i,s,d){s=Oc(d,s),V$(s),s=jR(i.stateNode,s,2),i=lh(i,s,2),i!==null&&(nn(i,2),od(i))}function Lo(i,s,d){if(K2=!1,i.tag===3)UG(i,i,d);else{for(;s!==null;){if(s.tag===3){UG(s,i,d);return}if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError==\"function\"||typeof h.componentDidCatch==\"function\"&&(Fh===null||!Fh.has(h))){i=Oc(d,i),V$(i),d=$R(2),h=lh(s,d,2),h!==null&&(KR(d,h,s,i),nn(h,2),od(h));return}}s=s.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\\n\\nError message:\\n\\n%s`,d)}}function fP(i,s,d){var h=i.pingCache;if(h===null){h=i.pingCache=new C9e;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(d)||($B=!0,v.add(d),h=l7e.bind(null,i,s,d),ud&&jb(i,d),s.then(h,h))}function l7e(i,s,d){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&d,i.warmLanes&=~d,(d&127)!==0?0>hd&&(Ch=hd=ca(),pw=B7(\"Promise Resolved\"),Th=D7):(d&4194048)!==0&&0>wl&&(md=wl=ca(),mw=B7(\"Promise Resolved\"),kB=D7),EG()&&an.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\\n\\nWhen testing, code that resolves suspended data should be wrapped into act(...):\\n\\nact(() => {\\n  /* finish loading suspended data */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ei===i&&(Jr&d)===d&&(Mi===Rh||Mi===Y7&&(Jr&62914560)===Jr&&Ia()-eA<UY?(ko&Sa)===Ba&&c2(i,0):KB|=d,Q0===Jr&&(Q0=0)),od(i)}function zG(i,s){s===0&&(s=Vt()),i=nr(i,s),i!==null&&(nn(i,s),od(i))}function u7e(i){var s=i.memoizedState,d=0;s!==null&&(d=s.retryLane),zG(i,d)}function d7e(i,s){var d=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(d=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(\"Pinged unknown suspense boundary type. This is probably a bug in React.\")}h!==null&&h.delete(s),zG(i,d)}function pP(i,s,d){if((s.subtreeFlags&67117056)!==0)for(s=s.child;s!==null;){var h=i,v=s,E=v.type===m7;E=d||E,v.tag!==22?v.flags&67108864?E&&C(v,VG,h,v):pP(h,v,E):v.memoizedState===null&&(E&&v.flags&8192?C(v,VG,h,v):v.subtreeFlags&67108864&&C(v,pP,h,v,E)),s=s.sibling}}function VG(i,s){qe(!0);try{pG(s),bG(s),hG(i,s.alternate,s,!1),gG(i,s,0,null,!1,0)}finally{qe(!1)}}function HG(i){var s=!0;i.current.mode&(bs|uu)||(s=!1),pP(i,i.current,s)}function jG(i){if((ko&Sa)===Ba){var s=i.tag;if(s===3||s===1||s===0||s===11||s===14||s===15){if(s=S(i)||\"ReactComponent\",iA!==null){if(iA.has(s))return;iA.add(s)}else iA=new Set([s]);C(i,function(){console.error(\"Can\\'t perform a React state update on a component that hasn\\'t mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.\")})}}}function jb(i,s){ud&&i.memoizedUpdaters.forEach(function(d){Wn(i,d,s)})}function f7e(i,s){var d=an.actQueue;return d!==null?(d.push(s),M9e):YP(i,s)}function p7e(i){EG()&&an.actQueue===null&&C(i,function(){console.error(`An update to %s inside a test was not wrapped in act(...).\\n\\nWhen testing, code that causes React state updates should be wrapped into act(...):\\n\\nact(() => {\\n  /* fire events that update state */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,S(i))})}function od(i){i!==G2&&i.next===null&&(G2===null?aA=G2=i:G2=G2.next=i),sA=!0,an.actQueue!==null?eD||(eD=!0,qG()):QB||(QB=!0,qG())}function $b(i,s){if(!tD&&sA){tD=!0;do for(var d=!1,h=aA;h!==null;){if(!s)if(i!==0){var v=h.pendingLanes;if(v===0)var E=0;else{var j=h.suspendedLanes,oe=h.pingedLanes;E=(1<<31-Os(42|i)+1)-1,E&=v&~(j&~oe),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(d=!0,GG(h,E))}else E=Jr,E=Qe(h,h===ei?E:0,h.cancelPendingCommit!==null||h.timeoutHandle!==o1),(E&3)===0||xt(h,E)||(d=!0,GG(h,E));h=h.next}while(d);tD=!1}}function h7e(){Hw=window.event,hP()}function hP(){sA=eD=QB=!1;var i=0;Nh!==0&&w7e()&&(i=Nh);for(var s=Ia(),d=null,h=aA;h!==null;){var v=h.next,E=$G(h,s);E===0?(h.next=null,d===null?aA=v:d.next=v,v===null&&(G2=d)):(d=h,(i!==0||(E&3)!==0)&&(sA=!0)),h=v}pa!==Oh&&pa!==rA||$b(i,!1),Nh!==0&&(Nh=0)}function $G(i,s){for(var d=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,E=i.pendingLanes&-62914561;0<E;){var j=31-Os(E),oe=1<<j,ke=v[j];ke===-1?((oe&d)===0||(oe&h)!==0)&&(v[j]=Wt(oe,s)):ke<=s&&(i.expiredLanes|=oe),E&=~oe}if(s=ei,d=Jr,d=Qe(i,i===s?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==o1),h=i.callbackNode,d===0||i===s&&(Ho===X0||Ho===J0)||i.cancelPendingCommit!==null)return h!==null&&mP(h),i.callbackNode=null,i.callbackPriority=0;if((d&3)===0||xt(i,d)){if(s=d&-d,s!==i.callbackPriority||an.actQueue!==null&&h!==nD)mP(h);else return s;switch(Se(d)){case $c:case lu:d=XP;break;case dd:d=m2;break;case w7:d=JP;break;default:d=m2}return h=KG.bind(null,i),an.actQueue!==null?(an.actQueue.push(h),d=nD):d=YP(d,h),i.callbackPriority=s,i.callbackNode=d,s}return h!==null&&mP(h),i.callbackPriority=2,i.callbackNode=null,2}function KG(i,s){if(U7=N7=!1,Hw=window.event,pa!==Oh&&pa!==rA)return i.callbackNode=null,i.callbackPriority=0,null;var d=i.callbackNode;if(mu===nA&&(mu=qB),Hb()&&i.callbackNode!==d)return null;var h=Jr;return h=Qe(i,i===ei?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==o1),h===0?null:(AG(i,h,s),$G(i,Ia()),i.callbackNode!=null&&i.callbackNode===d?KG.bind(null,i):null)}function GG(i,s){if(Hb())return null;N7=U7,U7=!1,AG(i,s,!0)}function mP(i){i!==nD&&i!==null&&oAe(i)}function qG(){an.actQueue!==null&&an.actQueue.push(function(){return hP(),null}),U9e(function(){(ko&(Sa|Wc))!==Ba?YP(ZP,h7e):hP()})}function gP(){if(Nh===0){var i=$0;i===0&&(i=v7,v7<<=1,(v7&261888)===0&&(v7=256)),Nh=i}return Nh}function WG(i){return i==null||typeof i==\"symbol\"||typeof i==\"boolean\"?null:typeof i==\"function\"?i:(me(i,\"action\"),Xo(\"\"+i))}function YG(i,s){var d=s.ownerDocument.createElement(\"input\");return d.name=s.name,d.value=s.value,i.id&&d.setAttribute(\"form\",i.id),s.parentNode.insertBefore(d,s),i=new FormData(i),d.parentNode.removeChild(d),i}function m7e(i,s,d,h,v){if(s===\"submit\"&&d&&d.stateNode===v){var E=WG((v[Ls]||null).action),j=h.submitter;j&&(s=(s=j[Ls]||null)?WG(s.formAction):j.getAttribute(\"formAction\"),s!==null&&(E=s,j=null));var oe=new C7(\"action\",\"action\",null,h,v);i.push({event:oe,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Nh!==0){var ke=j?YG(v,j):new FormData(v),Fe={pending:!0,data:ke,method:v.method,action:E};Object.freeze(Fe),OR(d,Fe,null,ke)}}else typeof E==\"function\"&&(oe.preventDefault(),ke=j?YG(v,j):new FormData(v),Fe={pending:!0,data:ke,method:v.method,action:E},Object.freeze(Fe),OR(d,Fe,E,ke))},currentTarget:v}]})}}function o7(i,s,d){i.currentTarget=d;try{s(i)}catch(h){hB(h)}i.currentTarget=null}function ZG(i,s){s=(s&4)!==0;for(var d=0;d<i.length;d++){var h=i[d];e:{var v=void 0,E=h.event;if(h=h.listeners,s)for(var j=h.length-1;0<=j;j--){var oe=h[j],ke=oe.instance,Fe=oe.currentTarget;if(oe=oe.listener,ke!==v&&E.isPropagationStopped())break e;ke!==null?C(ke,o7,E,oe,Fe):o7(E,oe,Fe),v=ke}else for(j=0;j<h.length;j++){if(oe=h[j],ke=oe.instance,Fe=oe.currentTarget,oe=oe.listener,ke!==v&&E.isPropagationStopped())break e;ke!==null?C(ke,o7,E,oe,Fe):o7(E,oe,Fe),v=ke}}}}function xo(i,s){rD.has(i)||console.error(\\'Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.\\',i);var d=s[QP];d===void 0&&(d=s[QP]=new Set);var h=i+\"__bubble\";d.has(h)||(XG(s,i,2,!1),d.add(h))}function yP(i,s,d){rD.has(i)&&!s&&console.error(\\'Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.\\',i);var h=0;s&&(h|=4),XG(d,i,h,s)}function vP(i){if(!i[cA]){i[cA]=!0,qq.forEach(function(d){d!==\"selectionchange\"&&(rD.has(d)||yP(d,!1,i),yP(d,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[cA]||(s[cA]=!0,yP(\"selectionchange\",!1,s))}}function XG(i,s,d,h){switch(Iq(s)){case $c:var v=Y7e;break;case lu:v=Z7e;break;default:v=DP}d=v.bind(null,s,d,i),v=void 0,!oB||s!==\"touchstart\"&&s!==\"touchmove\"&&s!==\"wheel\"||(v=!0),h?v!==void 0?i.addEventListener(s,d,{capture:!0,passive:v}):i.addEventListener(s,d,!0):v!==void 0?i.addEventListener(s,d,{passive:v}):i.addEventListener(s,d,!1)}function xP(i,s,d,h,v){var E=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var j=h.tag;if(j===3||j===4){var oe=h.stateNode.containerInfo;if(oe===v)break;if(j===4)for(j=h.return;j!==null;){var ke=j.tag;if((ke===3||ke===4)&&j.stateNode.containerInfo===v)return;j=j.return}for(;oe!==null;){if(j=pn(oe),j===null)return;if(ke=j.tag,ke===5||ke===6||ke===26||ke===27){h=E=j;continue e}oe=oe.parentNode}}h=h.return}A0(function(){var Fe=E,Ct=E0(d),Tt=[];e:{var pt=IW.get(i);if(pt!==void 0){var qt=C7,er=i;switch(i){case\"keypress\":if(k0(d)===0)break e;case\"keydown\":case\"keyup\":qt=KAe;break;case\"focusin\":er=\"focus\",qt=cB;break;case\"focusout\":er=\"blur\",qt=cB;break;case\"beforeblur\":case\"afterblur\":qt=cB;break;case\"click\":if(d.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":qt=gW;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":qt=BAe;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":qt=WAe;break;case CW:case TW:case _W:qt=OAe;break;case MW:qt=ZAe;break;case\"scroll\":case\"scrollend\":qt=RAe;break;case\"wheel\":qt=JAe;break;case\"copy\":case\"cut\":case\"paste\":qt=NAe;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":qt=vW;break;case\"toggle\":case\"beforetoggle\":qt=e9e}var ur=(s&4)!==0,si=!ur&&(i===\"scroll\"||i===\"scrollend\"),bo=ur?pt!==null?pt+\"Capture\":null:pt;ur=[];for(var dt=Fe,mt;dt!==null;){var St=dt;if(mt=St.stateNode,St=St.tag,St!==5&&St!==26&&St!==27||mt===null||bo===null||(St=nh(dt,bo),St!=null&&ur.push(Kb(dt,St,mt))),si)break;dt=dt.return}0<ur.length&&(pt=new qt(pt,er,null,d,Ct),Tt.push({event:pt,listeners:ur}))}}if((s&7)===0){e:{if(pt=i===\"mouseover\"||i===\"pointerover\",qt=i===\"mouseout\"||i===\"pointerout\",pt&&d!==nw&&(er=d.relatedTarget||d.fromElement)&&(pn(er)||er[xh]))break e;if((qt||pt)&&(pt=Ct.window===Ct?Ct:(pt=Ct.ownerDocument)?pt.defaultView||pt.parentWindow:window,qt?(er=d.relatedTarget||d.toElement,qt=Fe,er=er?pn(er):null,er!==null&&(si=O(er),ur=er.tag,er!==si||ur!==5&&ur!==27&&ur!==6)&&(er=null)):(qt=null,er=Fe),qt!==er)){if(ur=gW,St=\"onMouseLeave\",bo=\"onMouseEnter\",dt=\"mouse\",(i===\"pointerout\"||i===\"pointerover\")&&(ur=vW,St=\"onPointerLeave\",bo=\"onPointerEnter\",dt=\"pointer\"),si=qt==null?pt:zn(qt),mt=er==null?pt:zn(er),pt=new ur(St,dt+\"leave\",qt,d,Ct),pt.target=si,pt.relatedTarget=mt,St=null,pn(Ct)===Fe&&(ur=new ur(bo,dt+\"enter\",er,d,Ct),ur.target=mt,ur.relatedTarget=si,St=ur),si=St,qt&&er)t:{for(ur=g7e,bo=qt,dt=er,mt=0,St=bo;St;St=ur(St))mt++;St=0;for(var gn=dt;gn;gn=ur(gn))St++;for(;0<mt-St;)bo=ur(bo),mt--;for(;0<St-mt;)dt=ur(dt),St--;for(;mt--;){if(bo===dt||dt!==null&&bo===dt.alternate){ur=bo;break t}bo=ur(bo),dt=ur(dt)}ur=null}else ur=null;qt!==null&&JG(Tt,pt,qt,ur,!1),er!==null&&si!==null&&JG(Tt,si,er,ur,!0)}}e:{if(pt=Fe?zn(Fe):window,qt=pt.nodeName&&pt.nodeName.toLowerCase(),qt===\"select\"||qt===\"input\"&&pt.type===\"file\")var ar=kt;else if(pe(pt))if(AW)ar=gt;else{ar=Ot;var Vr=bt}else qt=pt.nodeName,!qt||qt.toLowerCase()!==\"input\"||pt.type!==\"checkbox\"&&pt.type!==\"radio\"?Fe&&Xn(Fe.elementType)&&(ar=kt):ar=Mt;if(ar&&(ar=ar(i,Fe))){ht(Tt,ar,d,Ct);break e}Vr&&Vr(i,pt,Fe),i===\"focusout\"&&Fe&&pt.type===\"number\"&&Fe.memoizedProps.value!=null&&Tn(pt,\"number\",pt.value)}switch(Vr=Fe?zn(Fe):window,i){case\"focusin\":(pe(Vr)||Vr.contentEditable===\"true\")&&(S2=Vr,uB=Fe,lw=null);break;case\"focusout\":lw=uB=S2=null;break;case\"mousedown\":dB=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":dB=!1,ct(Tt,d,Ct);break;case\"selectionchange\":if(o9e)break;case\"keydown\":case\"keyup\":ct(Tt,d,Ct)}var Tr;if(lB)e:{switch(i){case\"compositionstart\":var Sr=\"onCompositionStart\";break e;case\"compositionend\":Sr=\"onCompositionEnd\";break e;case\"compositionupdate\":Sr=\"onCompositionUpdate\";break e}Sr=void 0}else E2?F(i,d)&&(Sr=\"onCompositionEnd\"):i===\"keydown\"&&d.keyCode===xW&&(Sr=\"onCompositionStart\");Sr&&(bW&&d.locale!==\"ko\"&&(E2||Sr!==\"onCompositionStart\"?Sr===\"onCompositionEnd\"&&E2&&(Tr=Ab()):(bh=Ct,iB=\"value\"in bh?bh.value:bh.textContent,E2=!0)),Vr=i7(Fe,Sr),0<Vr.length&&(Sr=new yW(Sr,i,null,d,Ct),Tt.push({event:Sr,listeners:Vr}),Tr?Sr.data=Tr:(Tr=N(d),Tr!==null&&(Sr.data=Tr)))),(Tr=n9e?ce(i,d):ve(i,d))&&(Sr=i7(Fe,\"onBeforeInput\"),0<Sr.length&&(Vr=new zAe(\"onBeforeInput\",\"beforeinput\",null,d,Ct),Tt.push({event:Vr,listeners:Sr}),Vr.data=Tr)),m7e(Tt,i,Fe,d,Ct)}ZG(Tt,s)})}function Kb(i,s,d){return{instance:i,listener:s,currentTarget:d}}function i7(i,s){for(var d=s+\"Capture\",h=[];i!==null;){var v=i,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=nh(i,d),v!=null&&h.unshift(Kb(i,v,E)),v=nh(i,s),v!=null&&h.push(Kb(i,v,E))),i.tag===3)return h;i=i.return}return[]}function g7e(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function JG(i,s,d,h,v){for(var E=s._reactName,j=[];d!==null&&d!==h;){var oe=d,ke=oe.alternate,Fe=oe.stateNode;if(oe=oe.tag,ke!==null&&ke===h)break;oe!==5&&oe!==26&&oe!==27||Fe===null||(ke=Fe,v?(Fe=nh(d,E),Fe!=null&&j.unshift(Kb(d,Fe,ke))):v||(Fe=nh(d,E),Fe!=null&&j.push(Kb(d,Fe,ke)))),d=d.return}j.length!==0&&i.push({event:s,listeners:j})}function bP(i,s){yr(i,s),i!==\"input\"&&i!==\"textarea\"&&i!==\"select\"||s==null||s.value!==null||hW||(hW=!0,i===\"select\"&&s.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",i):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",i));var d={registrationNameDependencies:N0,possibleRegistrationNames:eB};Xn(i)||typeof s.is==\"string\"||no(i,s,d),s.contentEditable&&!s.suppressContentEditableWarning&&s.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\")}function Ma(i,s,d,h){s!==d&&(d=hh(d),hh(s)!==d&&(h[i]=s))}function y7e(i,s,d){s.forEach(function(h){d[tq(h)]=h===\"style\"?EP(i):i.getAttribute(h)})}function id(i,s){s===!1?console.error(\"Expected `%s` listener to be a function, instead got `false`.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\",i,i,i):console.error(\"Expected `%s` listener to be a function, instead got a value of `%s` type.\",i,typeof s)}function QG(i,s){return i=i.namespaceURI===S7||i.namespaceURI===v2?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=s,i.innerHTML}function hh(i){return ae(i)&&(console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",X(i)),de(i)),(typeof i==\"string\"?i:\"\"+i).replace(I9e,`\\n`).replace(R9e,\"\")}function eq(i,s){return s=hh(s),hh(i)===s}function Jo(i,s,d,h,v,E){switch(d){case\"children\":typeof h==\"string\"?(Dt(h,s,!1),s===\"body\"||s===\"textarea\"&&h===\"\"||yt(i,h)):(typeof h==\"number\"||typeof h==\"bigint\")&&(Dt(\"\"+h,s,!1),s!==\"body\"&&yt(i,\"\"+h));break;case\"className\":wi(i,\"class\",h);break;case\"tabIndex\":wi(i,\"tabindex\",h);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":wi(i,d,h);break;case\"style\":Qn(i,h,E);break;case\"data\":if(s!==\"object\"){wi(i,\"data\",h);break}case\"src\":case\"href\":if(h===\"\"&&(s!==\"a\"||d!==\"href\")){console.error(d===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',d,d),i.removeAttribute(d);break}if(h==null||typeof h==\"function\"||typeof h==\"symbol\"||typeof h==\"boolean\"){i.removeAttribute(d);break}me(h,d),h=Xo(\"\"+h),i.setAttribute(d,h);break;case\"action\":case\"formAction\":if(h!=null&&(s===\"form\"?d===\"formAction\"?console.error(\"You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.\"):typeof h==\"function\"&&(v.encType==null&&v.method==null||dA||(dA=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),v.target==null||uA||(uA=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"))):s===\"input\"||s===\"button\"?d===\"action\"?console.error(\"You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.\"):s!==\"input\"||v.type===\"submit\"||v.type===\"image\"||lA?s!==\"button\"||v.type==null||v.type===\"submit\"||lA?typeof h==\"function\"&&(v.name==null||QY||(QY=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),v.formEncType==null&&v.formMethod==null||dA||(dA=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),v.formTarget==null||uA||(uA=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"))):(lA=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\')):(lA=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\')):console.error(d===\"action\"?\"You can only pass the action prop to <form>.\":\"You can only pass the formAction prop to <input> or <button>.\")),typeof h==\"function\"){i.setAttribute(d,\"javascript:throw new Error(\\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\\')\");break}else typeof E==\"function\"&&(d===\"formAction\"?(s!==\"input\"&&Jo(i,s,\"name\",v.name,v,null),Jo(i,s,\"formEncType\",v.formEncType,v,null),Jo(i,s,\"formMethod\",v.formMethod,v,null),Jo(i,s,\"formTarget\",v.formTarget,v,null)):(Jo(i,s,\"encType\",v.encType,v,null),Jo(i,s,\"method\",v.method,v,null),Jo(i,s,\"target\",v.target,v,null)));if(h==null||typeof h==\"symbol\"||typeof h==\"boolean\"){i.removeAttribute(d);break}me(h,d),h=Xo(\"\"+h),i.setAttribute(d,h);break;case\"onClick\":h!=null&&(typeof h!=\"function\"&&id(d,h),i.onclick=zo);break;case\"onScroll\":h!=null&&(typeof h!=\"function\"&&id(d,h),xo(\"scroll\",i));break;case\"onScrollEnd\":h!=null&&(typeof h!=\"function\"&&id(d,h),xo(\"scrollend\",i));break;case\"dangerouslySetInnerHTML\":if(h!=null){if(typeof h!=\"object\"||!(\"__html\"in h))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(d=h.__html,d!=null){if(v.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");i.innerHTML=d}}break;case\"multiple\":i.multiple=h&&typeof h!=\"function\"&&typeof h!=\"symbol\";break;case\"muted\":i.muted=h&&typeof h!=\"function\"&&typeof h!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(h==null||typeof h==\"function\"||typeof h==\"boolean\"||typeof h==\"symbol\"){i.removeAttribute(\"xlink:href\");break}me(h,d),d=Xo(\"\"+h),i.setAttributeNS(t1,\"xlink:href\",d);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":h!=null&&typeof h!=\"function\"&&typeof h!=\"symbol\"?(me(h,d),i.setAttribute(d,\"\"+h)):i.removeAttribute(d);break;case\"inert\":h!==\"\"||fA[d]||(fA[d]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",d));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":h&&typeof h!=\"function\"&&typeof h!=\"symbol\"?i.setAttribute(d,\"\"):i.removeAttribute(d);break;case\"capture\":case\"download\":h===!0?i.setAttribute(d,\"\"):h!==!1&&h!=null&&typeof h!=\"function\"&&typeof h!=\"symbol\"?(me(h,d),i.setAttribute(d,h)):i.removeAttribute(d);break;case\"cols\":case\"rows\":case\"size\":case\"span\":h!=null&&typeof h!=\"function\"&&typeof h!=\"symbol\"&&!isNaN(h)&&1<=h?(me(h,d),i.setAttribute(d,h)):i.removeAttribute(d);break;case\"rowSpan\":case\"start\":h==null||typeof h==\"function\"||typeof h==\"symbol\"||isNaN(h)?i.removeAttribute(d):(me(h,d),i.setAttribute(d,h));break;case\"popover\":xo(\"beforetoggle\",i),xo(\"toggle\",i),Mr(i,\"popover\",h);break;case\"xlinkActuate\":fe(i,t1,\"xlink:actuate\",h);break;case\"xlinkArcrole\":fe(i,t1,\"xlink:arcrole\",h);break;case\"xlinkRole\":fe(i,t1,\"xlink:role\",h);break;case\"xlinkShow\":fe(i,t1,\"xlink:show\",h);break;case\"xlinkTitle\":fe(i,t1,\"xlink:title\",h);break;case\"xlinkType\":fe(i,t1,\"xlink:type\",h);break;case\"xmlBase\":fe(i,oD,\"xml:base\",h);break;case\"xmlLang\":fe(i,oD,\"xml:lang\",h);break;case\"xmlSpace\":fe(i,oD,\"xml:space\",h);break;case\"is\":E!=null&&console.error(\\'Cannot update the \"is\" prop after it has been initialized.\\'),Mr(i,\"is\",h);break;case\"innerText\":case\"textContent\":break;case\"popoverTarget\":eZ||h==null||typeof h!=\"object\"||(eZ=!0,console.error(\"The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.\",h));default:!(2<d.length)||d[0]!==\"o\"&&d[0]!==\"O\"||d[1]!==\"n\"&&d[1]!==\"N\"?(d=tr(d),Mr(i,d,h)):N0.hasOwnProperty(d)&&h!=null&&typeof h!=\"function\"&&id(d,h)}}function wP(i,s,d,h,v,E){switch(d){case\"style\":Qn(i,h,E);break;case\"dangerouslySetInnerHTML\":if(h!=null){if(typeof h!=\"object\"||!(\"__html\"in h))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(d=h.__html,d!=null){if(v.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");i.innerHTML=d}}break;case\"children\":typeof h==\"string\"?yt(i,h):(typeof h==\"number\"||typeof h==\"bigint\")&&yt(i,\"\"+h);break;case\"onScroll\":h!=null&&(typeof h!=\"function\"&&id(d,h),xo(\"scroll\",i));break;case\"onScrollEnd\":h!=null&&(typeof h!=\"function\"&&id(d,h),xo(\"scrollend\",i));break;case\"onClick\":h!=null&&(typeof h!=\"function\"&&id(d,h),i.onclick=zo);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(N0.hasOwnProperty(d))h!=null&&typeof h!=\"function\"&&id(d,h);else e:{if(d[0]===\"o\"&&d[1]===\"n\"&&(v=d.endsWith(\"Capture\"),s=d.slice(2,v?d.length-7:void 0),E=i[Ls]||null,E=E!=null?E[d]:null,typeof E==\"function\"&&i.removeEventListener(s,E,v),typeof h==\"function\")){typeof E!=\"function\"&&E!==null&&(d in i?i[d]=null:i.hasAttribute(d)&&i.removeAttribute(d)),i.addEventListener(s,h,v);break e}d in i?i[d]=h:h===!0?i.setAttribute(d,\"\"):Mr(i,d,h)}}}function Ya(i,s,d){switch(bP(s,d),s){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":xo(\"error\",i),xo(\"load\",i);var h=!1,v=!1,E;for(E in d)if(d.hasOwnProperty(E)){var j=d[E];if(j!=null)switch(E){case\"src\":h=!0;break;case\"srcSet\":v=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(s+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Jo(i,s,E,j,d,null)}}v&&Jo(i,s,\"srcSet\",d.srcSet,d,null),h&&Jo(i,s,\"src\",d.src,d,null);return;case\"input\":vr(\"input\",d),xo(\"invalid\",i);var oe=E=j=v=null,ke=null,Fe=null;for(h in d)if(d.hasOwnProperty(h)){var Ct=d[h];if(Ct!=null)switch(h){case\"name\":v=Ct;break;case\"type\":j=Ct;break;case\"checked\":ke=Ct;break;case\"defaultChecked\":Fe=Ct;break;case\"value\":E=Ct;break;case\"defaultValue\":oe=Ct;break;case\"children\":case\"dangerouslySetInnerHTML\":if(Ct!=null)throw Error(s+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:Jo(i,s,h,Ct,d,null)}}nt(i,d),Ft(i,E,oe,ke,Fe,j,v,!1);return;case\"select\":vr(\"select\",d),xo(\"invalid\",i),h=j=E=null;for(v in d)if(d.hasOwnProperty(v)&&(oe=d[v],oe!=null))switch(v){case\"value\":E=oe;break;case\"defaultValue\":j=oe;break;case\"multiple\":h=oe;default:Jo(i,s,v,oe,d,null)}Fn(i,d),s=E,d=j,i.multiple=!!h,s!=null?cn(i,!!h,s,!1):d!=null&&cn(i,!!h,d,!0);return;case\"textarea\":vr(\"textarea\",d),xo(\"invalid\",i),E=v=h=null;for(j in d)if(d.hasOwnProperty(j)&&(oe=d[j],oe!=null))switch(j){case\"value\":h=oe;break;case\"defaultValue\":v=oe;break;case\"children\":E=oe;break;case\"dangerouslySetInnerHTML\":if(oe!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:Jo(i,s,j,oe,d,null)}Nn(i,d),jn(i,h,v,E);return;case\"option\":$t(i,d);for(ke in d)d.hasOwnProperty(ke)&&(h=d[ke],h!=null)&&(ke===\"selected\"?i.selected=h&&typeof h!=\"function\"&&typeof h!=\"symbol\":Jo(i,s,ke,h,d,null));return;case\"dialog\":xo(\"beforetoggle\",i),xo(\"toggle\",i),xo(\"cancel\",i),xo(\"close\",i);break;case\"iframe\":case\"object\":xo(\"load\",i);break;case\"video\":case\"audio\":for(h=0;h<Uw.length;h++)xo(Uw[h],i);break;case\"image\":xo(\"error\",i),xo(\"load\",i);break;case\"details\":xo(\"toggle\",i);break;case\"embed\":case\"source\":case\"link\":xo(\"error\",i),xo(\"load\",i);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(Fe in d)if(d.hasOwnProperty(Fe)&&(h=d[Fe],h!=null))switch(Fe){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(s+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Jo(i,s,Fe,h,d,null)}return;default:if(Xn(s)){for(Ct in d)d.hasOwnProperty(Ct)&&(h=d[Ct],h!==void 0&&wP(i,s,Ct,h,d,void 0));return}}for(oe in d)d.hasOwnProperty(oe)&&(h=d[oe],h!=null&&Jo(i,s,oe,h,d,null))}function v7e(i,s,d,h){switch(bP(s,h),s){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var v=null,E=null,j=null,oe=null,ke=null,Fe=null,Ct=null;for(qt in d){var Tt=d[qt];if(d.hasOwnProperty(qt)&&Tt!=null)switch(qt){case\"checked\":break;case\"value\":break;case\"defaultValue\":ke=Tt;default:h.hasOwnProperty(qt)||Jo(i,s,qt,null,h,Tt)}}for(var pt in h){var qt=h[pt];if(Tt=d[pt],h.hasOwnProperty(pt)&&(qt!=null||Tt!=null))switch(pt){case\"type\":E=qt;break;case\"name\":v=qt;break;case\"checked\":Fe=qt;break;case\"defaultChecked\":Ct=qt;break;case\"value\":j=qt;break;case\"defaultValue\":oe=qt;break;case\"children\":case\"dangerouslySetInnerHTML\":if(qt!=null)throw Error(s+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:qt!==Tt&&Jo(i,s,pt,qt,h,Tt)}}s=d.type===\"checkbox\"||d.type===\"radio\"?d.checked!=null:d.value!=null,h=h.type===\"checkbox\"||h.type===\"radio\"?h.checked!=null:h.value!=null,s||!h||JY||(console.error(\"A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),JY=!0),!s||h||XY||(console.error(\"A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),XY=!0),Rt(i,j,oe,ke,Fe,Ct,E,v);return;case\"select\":qt=j=oe=pt=null;for(E in d)if(ke=d[E],d.hasOwnProperty(E)&&ke!=null)switch(E){case\"value\":break;case\"multiple\":qt=ke;default:h.hasOwnProperty(E)||Jo(i,s,E,null,h,ke)}for(v in h)if(E=h[v],ke=d[v],h.hasOwnProperty(v)&&(E!=null||ke!=null))switch(v){case\"value\":pt=E;break;case\"defaultValue\":oe=E;break;case\"multiple\":j=E;default:E!==ke&&Jo(i,s,v,E,h,ke)}h=oe,s=j,d=qt,pt!=null?cn(i,!!s,pt,!1):!!d!=!!s&&(h!=null?cn(i,!!s,h,!0):cn(i,!!s,s?[]:\"\",!1));return;case\"textarea\":qt=pt=null;for(oe in d)if(v=d[oe],d.hasOwnProperty(oe)&&v!=null&&!h.hasOwnProperty(oe))switch(oe){case\"value\":break;case\"children\":break;default:Jo(i,s,oe,null,h,v)}for(j in h)if(v=h[j],E=d[j],h.hasOwnProperty(j)&&(v!=null||E!=null))switch(j){case\"value\":pt=v;break;case\"defaultValue\":qt=v;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(v!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:v!==E&&Jo(i,s,j,v,h,E)}Hn(i,pt,qt);return;case\"option\":for(var er in d)pt=d[er],d.hasOwnProperty(er)&&pt!=null&&!h.hasOwnProperty(er)&&(er===\"selected\"?i.selected=!1:Jo(i,s,er,null,h,pt));for(ke in h)pt=h[ke],qt=d[ke],h.hasOwnProperty(ke)&&pt!==qt&&(pt!=null||qt!=null)&&(ke===\"selected\"?i.selected=pt&&typeof pt!=\"function\"&&typeof pt!=\"symbol\":Jo(i,s,ke,pt,h,qt));return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var ur in d)pt=d[ur],d.hasOwnProperty(ur)&&pt!=null&&!h.hasOwnProperty(ur)&&Jo(i,s,ur,null,h,pt);for(Fe in h)if(pt=h[Fe],qt=d[Fe],h.hasOwnProperty(Fe)&&pt!==qt&&(pt!=null||qt!=null))switch(Fe){case\"children\":case\"dangerouslySetInnerHTML\":if(pt!=null)throw Error(s+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:Jo(i,s,Fe,pt,h,qt)}return;default:if(Xn(s)){for(var si in d)pt=d[si],d.hasOwnProperty(si)&&pt!==void 0&&!h.hasOwnProperty(si)&&wP(i,s,si,void 0,h,pt);for(Ct in h)pt=h[Ct],qt=d[Ct],!h.hasOwnProperty(Ct)||pt===qt||pt===void 0&&qt===void 0||wP(i,s,Ct,pt,h,qt);return}}for(var bo in d)pt=d[bo],d.hasOwnProperty(bo)&&pt!=null&&!h.hasOwnProperty(bo)&&Jo(i,s,bo,null,h,pt);for(Tt in h)pt=h[Tt],qt=d[Tt],!h.hasOwnProperty(Tt)||pt===qt||pt==null&&qt==null||Jo(i,s,Tt,pt,h,qt)}function tq(i){switch(i){case\"class\":return\"className\";case\"for\":return\"htmlFor\";default:return i}}function EP(i){var s={};i=i.style;for(var d=0;d<i.length;d++){var h=i[d];s[h]=i.getPropertyValue(h)}return s}function nq(i,s,d){if(s!=null&&typeof s!=\"object\")console.error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");else{var h,v=h=\"\",E;for(E in s)if(s.hasOwnProperty(E)){var j=s[E];j!=null&&typeof j!=\"boolean\"&&j!==\"\"&&(E.indexOf(\"--\")===0?(Pe(j,E),h+=v+E+\":\"+(\"\"+j).trim()):typeof j!=\"number\"||j===0||fW.has(E)?(Pe(j,E),h+=v+E.replace(sW,\"-$1\").toLowerCase().replace(cW,\"-ms-\")+\":\"+(\"\"+j).trim()):h+=v+E.replace(sW,\"-$1\").toLowerCase().replace(cW,\"-ms-\")+\":\"+j+\"px\",v=\";\")}h=h||null,s=i.getAttribute(\"style\"),s!==h&&(h=hh(h),hh(s)!==h&&(d.style=EP(i)))}}function hl(i,s,d,h,v,E){if(v.delete(d),i=i.getAttribute(d),i===null)switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(h!=null)switch(typeof h){case\"function\":case\"symbol\":case\"boolean\":break;default:if(me(h,s),i===\"\"+h)return}Ma(s,i,h,E)}function rq(i,s,d,h,v,E){if(v.delete(d),i=i.getAttribute(d),i===null){switch(typeof h){case\"function\":case\"symbol\":return}if(!h)return}else switch(typeof h){case\"function\":case\"symbol\":break;default:if(h)return}Ma(s,i,h,E)}function SP(i,s,d,h,v,E){if(v.delete(d),i=i.getAttribute(d),i===null)switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":return}else if(h!=null)switch(typeof h){case\"function\":case\"symbol\":break;default:if(me(h,d),i===\"\"+h)return}Ma(s,i,h,E)}function oq(i,s,d,h,v,E){if(v.delete(d),i=i.getAttribute(d),i===null)switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return;default:if(isNaN(h))return}else if(h!=null)switch(typeof h){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!isNaN(h)&&(me(h,s),i===\"\"+h))return}Ma(s,i,h,E)}function AP(i,s,d,h,v,E){if(v.delete(d),i=i.getAttribute(d),i===null)switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(h!=null)switch(typeof h){case\"function\":case\"symbol\":case\"boolean\":break;default:if(me(h,s),d=Xo(\"\"+h),i===d)return}Ma(s,i,h,E)}function iq(i,s,d,h){for(var v={},E=new Set,j=i.attributes,oe=0;oe<j.length;oe++)switch(j[oe].name.toLowerCase()){case\"value\":break;case\"checked\":break;case\"selected\":break;default:E.add(j[oe].name)}if(Xn(s)){for(var ke in d)if(d.hasOwnProperty(ke)){var Fe=d[ke];if(Fe!=null){if(N0.hasOwnProperty(ke))typeof Fe!=\"function\"&&id(ke,Fe);else if(d.suppressHydrationWarning!==!0)switch(ke){case\"children\":typeof Fe!=\"string\"&&typeof Fe!=\"number\"||Ma(\"children\",i.textContent,Fe,v);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":j=i.innerHTML,Fe=Fe?Fe.__html:void 0,Fe!=null&&(Fe=QG(i,Fe),Ma(ke,j,Fe,v));continue;case\"style\":E.delete(ke),nq(i,Fe,v);continue;case\"offsetParent\":case\"offsetTop\":case\"offsetLeft\":case\"offsetWidth\":case\"offsetHeight\":case\"isContentEditable\":case\"outerText\":case\"outerHTML\":E.delete(ke.toLowerCase()),console.error(\"Assignment to read-only property will result in a no-op: `%s`\",ke);continue;case\"className\":E.delete(\"class\"),j=jr(i,\"class\",Fe),Ma(\"className\",j,Fe,v);continue;default:h.context===Uf&&s!==\"svg\"&&s!==\"math\"?E.delete(ke.toLowerCase()):E.delete(ke),j=jr(i,ke,Fe),Ma(ke,j,Fe,v)}}}}else for(Fe in d)if(d.hasOwnProperty(Fe)&&(ke=d[Fe],ke!=null)){if(N0.hasOwnProperty(Fe))typeof ke!=\"function\"&&id(Fe,ke);else if(d.suppressHydrationWarning!==!0)switch(Fe){case\"children\":typeof ke!=\"string\"&&typeof ke!=\"number\"||Ma(\"children\",i.textContent,ke,v);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"value\":case\"checked\":case\"selected\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":j=i.innerHTML,ke=ke?ke.__html:void 0,ke!=null&&(ke=QG(i,ke),j!==ke&&(v[Fe]={__html:j}));continue;case\"className\":hl(i,Fe,\"class\",ke,E,v);continue;case\"tabIndex\":hl(i,Fe,\"tabindex\",ke,E,v);continue;case\"style\":E.delete(Fe),nq(i,ke,v);continue;case\"multiple\":E.delete(Fe),Ma(Fe,i.multiple,ke,v);continue;case\"muted\":E.delete(Fe),Ma(Fe,i.muted,ke,v);continue;case\"autoFocus\":E.delete(\"autofocus\"),Ma(Fe,i.autofocus,ke,v);continue;case\"data\":if(s!==\"object\"){E.delete(Fe),j=i.getAttribute(\"data\"),Ma(Fe,j,ke,v);continue}case\"src\":case\"href\":if(!(ke!==\"\"||s===\"a\"&&Fe===\"href\"||s===\"object\"&&Fe===\"data\")){console.error(Fe===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',Fe,Fe);continue}AP(i,Fe,Fe,ke,E,v);continue;case\"action\":case\"formAction\":if(j=i.getAttribute(Fe),typeof ke==\"function\"){E.delete(Fe.toLowerCase()),Fe===\"formAction\"?(E.delete(\"name\"),E.delete(\"formenctype\"),E.delete(\"formmethod\"),E.delete(\"formtarget\")):(E.delete(\"enctype\"),E.delete(\"method\"),E.delete(\"target\"));continue}else if(j===P9e){E.delete(Fe.toLowerCase()),Ma(Fe,\"function\",ke,v);continue}AP(i,Fe,Fe.toLowerCase(),ke,E,v);continue;case\"xlinkHref\":AP(i,Fe,\"xlink:href\",ke,E,v);continue;case\"contentEditable\":SP(i,Fe,\"contenteditable\",ke,E,v);continue;case\"spellCheck\":SP(i,Fe,\"spellcheck\",ke,E,v);continue;case\"draggable\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":SP(i,Fe,Fe,ke,E,v);continue;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":rq(i,Fe,Fe.toLowerCase(),ke,E,v);continue;case\"capture\":case\"download\":e:{oe=i;var Ct=j=Fe,Tt=v;if(E.delete(Ct),oe=oe.getAttribute(Ct),oe===null)switch(typeof ke){case\"undefined\":case\"function\":case\"symbol\":break e;default:if(ke===!1)break e}else if(ke!=null)switch(typeof ke){case\"function\":case\"symbol\":break;case\"boolean\":if(ke===!0&&oe===\"\")break e;break;default:if(me(ke,j),oe===\"\"+ke)break e}Ma(j,oe,ke,Tt)}continue;case\"cols\":case\"rows\":case\"size\":case\"span\":e:{if(oe=i,Ct=j=Fe,Tt=v,E.delete(Ct),oe=oe.getAttribute(Ct),oe===null)switch(typeof ke){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":break e;default:if(isNaN(ke)||1>ke)break e}else if(ke!=null)switch(typeof ke){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!(isNaN(ke)||1>ke)&&(me(ke,j),oe===\"\"+ke))break e}Ma(j,oe,ke,Tt)}continue;case\"rowSpan\":oq(i,Fe,\"rowspan\",ke,E,v);continue;case\"start\":oq(i,Fe,Fe,ke,E,v);continue;case\"xHeight\":hl(i,Fe,\"x-height\",ke,E,v);continue;case\"xlinkActuate\":hl(i,Fe,\"xlink:actuate\",ke,E,v);continue;case\"xlinkArcrole\":hl(i,Fe,\"xlink:arcrole\",ke,E,v);continue;case\"xlinkRole\":hl(i,Fe,\"xlink:role\",ke,E,v);continue;case\"xlinkShow\":hl(i,Fe,\"xlink:show\",ke,E,v);continue;case\"xlinkTitle\":hl(i,Fe,\"xlink:title\",ke,E,v);continue;case\"xlinkType\":hl(i,Fe,\"xlink:type\",ke,E,v);continue;case\"xmlBase\":hl(i,Fe,\"xml:base\",ke,E,v);continue;case\"xmlLang\":hl(i,Fe,\"xml:lang\",ke,E,v);continue;case\"xmlSpace\":hl(i,Fe,\"xml:space\",ke,E,v);continue;case\"inert\":ke!==\"\"||fA[Fe]||(fA[Fe]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",Fe)),rq(i,Fe,Fe,ke,E,v);continue;default:if(!(2<Fe.length)||Fe[0]!==\"o\"&&Fe[0]!==\"O\"||Fe[1]!==\"n\"&&Fe[1]!==\"N\"){oe=tr(Fe),j=!1,h.context===Uf&&s!==\"svg\"&&s!==\"math\"?E.delete(oe.toLowerCase()):(Ct=Fe.toLowerCase(),Ct=A7.hasOwnProperty(Ct)&&A7[Ct]||null,Ct!==null&&Ct!==Fe&&(j=!0,E.delete(Ct)),E.delete(oe));e:if(Ct=i,Tt=oe,oe=ke,vo(Tt))if(Ct.hasAttribute(Tt))Ct=Ct.getAttribute(Tt),me(oe,Tt),oe=Ct===\"\"+oe?oe:Ct;else{switch(typeof oe){case\"function\":case\"symbol\":break e;case\"boolean\":if(Ct=Tt.toLowerCase().slice(0,5),Ct!==\"data-\"&&Ct!==\"aria-\")break e}oe=oe===void 0?void 0:null}else oe=void 0;j||Ma(Fe,oe,ke,v)}}}return 0<E.size&&d.suppressHydrationWarning!==!0&&y7e(i,E,v),Object.keys(v).length===0?null:v}function x7e(i,s){switch(i.length){case 0:return\"\";case 1:return i[0];case 2:return i[0]+\" \"+s+\" \"+i[1];default:return i.slice(0,-1).join(\", \")+\", \"+s+\" \"+i[i.length-1]}}function aq(i){switch(i){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function b7e(){if(typeof performance.getEntriesByType==\"function\"){for(var i=0,s=0,d=performance.getEntriesByType(\"resource\"),h=0;h<d.length;h++){var v=d[h],E=v.transferSize,j=v.initiatorType,oe=v.duration;if(E&&oe&&aq(j)){for(j=0,oe=v.responseEnd,h+=1;h<d.length;h++){var ke=d[h],Fe=ke.startTime;if(Fe>oe)break;var Ct=ke.transferSize,Tt=ke.initiatorType;Ct&&aq(Tt)&&(ke=ke.responseEnd,j+=Ct*(ke<oe?1:(oe-Fe)/(ke-Fe)))}if(--h,s+=8*(E+j)/(v.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i==\"number\")?i:5}function a7(i){return i.nodeType===9?i:i.ownerDocument}function sq(i){switch(i){case v2:return W2;case S7:return hA;default:return Uf}}function cq(i,s){if(i===Uf)switch(s){case\"svg\":return W2;case\"math\":return hA;default:return Uf}return i===W2&&s===\"foreignObject\"?Uf:i}function kP(i,s){return i===\"textarea\"||i===\"noscript\"||typeof s.children==\"string\"||typeof s.children==\"number\"||typeof s.children==\"bigint\"||typeof s.dangerouslySetInnerHTML==\"object\"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function w7e(){var i=window.event;return i&&i.type===\"popstate\"?i===cD?!1:(cD=i,!0):(cD=null,!1)}function Gb(){var i=window.event;return i&&i!==Hw?i.type:null}function qb(){var i=window.event;return i&&i!==Hw?i.timeStamp:-1.1}function E7e(i){setTimeout(function(){throw i})}function S7e(i,s,d){switch(s){case\"button\":case\"input\":case\"select\":case\"textarea\":d.autoFocus&&i.focus();break;case\"img\":d.src?i.src=d.src:d.srcSet&&(i.srcset=d.srcSet)}}function A7e(){}function k7e(i,s,d,h){v7e(i,s,d,h),i[Ls]=h}function lq(i){yt(i,\"\")}function C7e(i,s,d){i.nodeValue=d}function uq(i){if(!i.__reactWarnedAboutChildrenConflict){var s=i[Ls]||null;if(s!==null){var d=kn(i);d!==null&&(typeof s.children==\"string\"||typeof s.children==\"number\"?(i.__reactWarnedAboutChildrenConflict=!0,C(d,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"children\" text content using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})):s.dangerouslySetInnerHTML!=null&&(i.__reactWarnedAboutChildrenConflict=!0,C(d,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"dangerouslySetInnerHTML\" using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})))}}}function mh(i){return i===\"head\"}function T7e(i,s){i.removeChild(s)}function _7e(i,s){(i.nodeType===9?i.body:i.nodeName===\"HTML\"?i.ownerDocument.body:i).removeChild(s)}function dq(i,s){var d=s,h=0;do{var v=d.nextSibling;if(i.removeChild(d),v&&v.nodeType===8)if(d=v.data,d===Vw||d===pA){if(h===0){i.removeChild(v),f2(s);return}h--}else if(d===zw||d===Uh||d===r1||d===q2||d===n1)h++;else if(d===D9e)Wb(i.ownerDocument.documentElement);else if(d===O9e){d=i.ownerDocument.head,Wb(d);for(var E=d.firstChild;E;){var j=E.nextSibling,oe=E.nodeName;E[tw]||oe===\"SCRIPT\"||oe===\"STYLE\"||oe===\"LINK\"&&E.rel.toLowerCase()===\"stylesheet\"||d.removeChild(E),E=j}}else d===F9e&&Wb(i.ownerDocument.body);d=v}while(d);f2(s)}function fq(i,s){var d=i;i=0;do{var h=d.nextSibling;if(d.nodeType===1?s?(d._stashedDisplay=d.style.display,d.style.display=\"none\"):(d.style.display=d._stashedDisplay||\"\",d.getAttribute(\"style\")===\"\"&&d.removeAttribute(\"style\")):d.nodeType===3&&(s?(d._stashedText=d.nodeValue,d.nodeValue=\"\"):d.nodeValue=d._stashedText||\"\"),h&&h.nodeType===8)if(d=h.data,d===Vw){if(i===0)break;i--}else d!==zw&&d!==Uh&&d!==r1&&d!==q2||i++;d=h}while(d)}function M7e(i){fq(i,!0)}function I7e(i){i=i.style,typeof i.setProperty==\"function\"?i.setProperty(\"display\",\"none\",\"important\"):i.display=\"none\"}function R7e(i){i.nodeValue=\"\"}function P7e(i){fq(i,!1)}function B7e(i,s){s=s[L9e],s=s!=null&&s.hasOwnProperty(\"display\")?s.display:null,i.style.display=s==null||typeof s==\"boolean\"?\"\":(\"\"+s).trim()}function D7e(i,s){i.nodeValue=s}function CP(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var d=s;switch(s=s.nextSibling,d.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":CP(d),tn(d);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(d.rel.toLowerCase()===\"stylesheet\")continue}i.removeChild(d)}}function F7e(i,s,d,h){for(;i.nodeType===1;){var v=d;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!==\"INPUT\"||i.type!==\"hidden\"))break}else if(h){if(!i[tw])switch(s){case\"meta\":if(!i.hasAttribute(\"itemprop\"))break;return i;case\"link\":if(E=i.getAttribute(\"rel\"),E===\"stylesheet\"&&i.hasAttribute(\"data-precedence\"))break;if(E!==v.rel||i.getAttribute(\"href\")!==(v.href==null||v.href===\"\"?null:v.href)||i.getAttribute(\"crossorigin\")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute(\"title\")!==(v.title==null?null:v.title))break;return i;case\"style\":if(i.hasAttribute(\"data-precedence\"))break;return i;case\"script\":if(E=i.getAttribute(\"src\"),(E!==(v.src==null?null:v.src)||i.getAttribute(\"type\")!==(v.type==null?null:v.type)||i.getAttribute(\"crossorigin\")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&i.hasAttribute(\"async\")&&!i.hasAttribute(\"itemprop\"))break;return i;default:return i}}else if(s===\"input\"&&i.type===\"hidden\"){me(v.name,\"name\");var E=v.name==null?null:\"\"+v.name;if(v.type===\"hidden\"&&i.getAttribute(\"name\")===E)return i}else return i;if(i=Vc(i.nextSibling),i===null)break}return null}function O7e(i,s,d){if(s===\"\")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!==\"INPUT\"||i.type!==\"hidden\")&&!d||(i=Vc(i.nextSibling),i===null))return null;return i}function pq(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!==\"INPUT\"||i.type!==\"hidden\")&&!s||(i=Vc(i.nextSibling),i===null))return null;return i}function TP(i){return i.data===Uh||i.data===r1}function _P(i){return i.data===q2||i.data===Uh&&i.ownerDocument.readyState!==nZ}function L7e(i,s){var d=i.ownerDocument;if(i.data===r1)i._reactRetry=s;else if(i.data!==Uh||d.readyState!==nZ)s();else{var h=function(){s(),d.removeEventListener(\"DOMContentLoaded\",h)};d.addEventListener(\"DOMContentLoaded\",h),i._reactRetry=h}}function Vc(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s===zw||s===q2||s===Uh||s===r1||s===n1||s===iD||s===tZ)break;if(s===Vw||s===pA)return null}}return i}function hq(i){if(i.nodeType===1){for(var s=i.nodeName.toLowerCase(),d={},h=i.attributes,v=0;v<h.length;v++){var E=h[v];d[tq(E.name)]=E.name.toLowerCase()===\"style\"?EP(i):E.value}return{type:s,props:d}}return i.nodeType===8?i.data===n1?{type:\"Activity\",props:{}}:{type:\"Suspense\",props:{}}:i.nodeValue}function mq(i,s,d){return d===null||d[B9e]!==!0?(i.nodeValue===s?i=null:(s=hh(s),i=hh(i.nodeValue)===s?null:i.nodeValue),i):null}function MP(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var d=i.data;if(d===Vw||d===pA){if(s===0)return Vc(i.nextSibling);s--}else d!==zw&&d!==q2&&d!==Uh&&d!==r1&&d!==n1||s++}i=i.nextSibling}return null}function gq(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var d=i.data;if(d===zw||d===q2||d===Uh||d===r1||d===n1){if(s===0)return i;s--}else d!==Vw&&d!==pA||s++}i=i.previousSibling}return null}function N7e(i){f2(i)}function U7e(i){f2(i)}function z7e(i){f2(i)}function yq(i,s,d,h,v){switch(v&&Lt(i,h.ancestorInfo),s=a7(d),i){case\"html\":if(i=s.documentElement,!i)throw Error(\"React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.\");return i;case\"head\":if(i=s.head,!i)throw Error(\"React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.\");return i;case\"body\":if(i=s.body,!i)throw Error(\"React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.\");return i;default:throw Error(\"resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}}function V7e(i,s,d,h){if(!d[xh]&&kn(d)){var v=d.tagName.toLowerCase();console.error(\"You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.\",v,v,v)}switch(i){case\"html\":case\"head\":case\"body\":break;default:console.error(\"acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}for(v=d.attributes;v.length;)d.removeAttributeNode(v[0]);Ya(d,i,s),d[Za]=h,d[Ls]=s}function Wb(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);tn(i)}function s7(i){return typeof i.getRootNode==\"function\"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function vq(i,s,d){var h=Y2;if(h&&typeof s==\"string\"&&s){var v=He(s);v=\\'link[rel=\"\\'+i+\\'\"][href=\"\\'+v+\\'\"]\\',typeof d==\"string\"&&(v+=\\'[crossorigin=\"\\'+d+\\'\"]\\'),cZ.has(v)||(cZ.add(v),i={rel:i,crossOrigin:d,href:s},h.querySelector(v)===null&&(s=h.createElement(\"link\"),Ya(s,\"link\",i),Dn(s),h.head.appendChild(s)))}}function xq(i,s,d,h){var v=(v=yh.current)?s7(v):null;if(!v)throw Error(\\'\"resourceRoot\" was expected to exist. This is a bug in React.\\');switch(i){case\"meta\":case\"title\":return null;case\"style\":return typeof d.precedence==\"string\"&&typeof d.href==\"string\"?(d=u2(d.href),s=_n(v).hoistableStyles,h=s.get(d),h||(h={type:\"style\",instance:null,count:0,state:null},s.set(d,h)),h):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(d.rel===\"stylesheet\"&&typeof d.href==\"string\"&&typeof d.precedence==\"string\"){i=u2(d.href);var E=_n(v).hoistableStyles,j=E.get(i);if(!j&&(v=v.ownerDocument||v,j={type:\"stylesheet\",instance:null,count:0,state:{loading:i1,preload:null}},E.set(i,j),(E=v.querySelector(Yb(i)))&&!E._p&&(j.instance=E,j.state.loading=jw|kl),!Cl.has(i))){var oe={rel:\"preload\",as:\"style\",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy};Cl.set(i,oe),E||H7e(v,i,oe,j.state)}if(s&&h===null)throw d=`\\n\\n  - `+c7(s)+`\\n  + `+c7(d),Error(\"Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+d);return j}if(s&&h!==null)throw d=`\\n\\n  - `+c7(s)+`\\n  + `+c7(d),Error(\"Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+d);return null;case\"script\":return s=d.async,d=d.src,typeof d==\"string\"&&s&&typeof s!=\"function\"&&typeof s!=\"symbol\"?(d=d2(d),s=_n(v).hoistableScripts,h=s.get(d),h||(h={type:\"script\",instance:null,count:0,state:null},s.set(d,h)),h):{type:\"void\",instance:null,count:0,state:null};default:throw Error(\\'getResource encountered a type it did not expect: \"\\'+i+\\'\". this is a bug in React.\\')}}function c7(i){var s=0,d=\"<link\";return typeof i.rel==\"string\"?(s++,d+=\\' rel=\"\\'+i.rel+\\'\"\\'):cu.call(i,\"rel\")&&(s++,d+=\\' rel=\"\\'+(i.rel===null?\"null\":\"invalid type \"+typeof i.rel)+\\'\"\\'),typeof i.href==\"string\"?(s++,d+=\\' href=\"\\'+i.href+\\'\"\\'):cu.call(i,\"href\")&&(s++,d+=\\' href=\"\\'+(i.href===null?\"null\":\"invalid type \"+typeof i.href)+\\'\"\\'),typeof i.precedence==\"string\"?(s++,d+=\\' precedence=\"\\'+i.precedence+\\'\"\\'):cu.call(i,\"precedence\")&&(s++,d+=\" precedence={\"+(i.precedence===null?\"null\":\"invalid type \"+typeof i.precedence)+\"}\"),Object.getOwnPropertyNames(i).length>s&&(d+=\" ...\"),d+\" />\"}function u2(i){return\\'href=\"\\'+He(i)+\\'\"\\'}function Yb(i){return\\'link[rel=\"stylesheet\"][\\'+i+\"]\"}function bq(i){return ao({},i,{\"data-precedence\":i.precedence,precedence:null})}function H7e(i,s,d,h){i.querySelector(\\'link[rel=\"preload\"][as=\"style\"][\\'+s+\"]\")?h.loading=jw:(s=i.createElement(\"link\"),h.preload=s,s.addEventListener(\"load\",function(){return h.loading|=jw}),s.addEventListener(\"error\",function(){return h.loading|=aZ}),Ya(s,\"link\",d),Dn(s),i.head.appendChild(s))}function d2(i){return\\'[src=\"\\'+He(i)+\\'\"]\\'}function Zb(i){return\"script[async]\"+i}function wq(i,s,d){if(s.count++,s.instance===null)switch(s.type){case\"style\":var h=i.querySelector(\\'style[data-href~=\"\\'+He(d.href)+\\'\"]\\');if(h)return s.instance=h,Dn(h),h;var v=ao({},d,{\"data-href\":d.href,\"data-precedence\":d.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement(\"style\"),Dn(h),Ya(h,\"style\",v),l7(h,d.precedence,i),s.instance=h;case\"stylesheet\":v=u2(d.href);var E=i.querySelector(Yb(v));if(E)return s.state.loading|=kl,s.instance=E,Dn(E),E;h=bq(d),(v=Cl.get(v))&&IP(h,v),E=(i.ownerDocument||i).createElement(\"link\"),Dn(E);var j=E;return j._p=new Promise(function(oe,ke){j.onload=oe,j.onerror=ke}),Ya(E,\"link\",h),s.state.loading|=kl,l7(E,d.precedence,i),s.instance=E;case\"script\":return E=d2(d.src),(v=i.querySelector(Zb(E)))?(s.instance=v,Dn(v),v):(h=d,(v=Cl.get(E))&&(h=ao({},d),RP(h,v)),i=i.ownerDocument||i,v=i.createElement(\"script\"),Dn(v),Ya(v,\"link\",h),i.head.appendChild(v),s.instance=v);case\"void\":return null;default:throw Error(\\'acquireResource encountered a resource type it did not expect: \"\\'+s.type+\\'\". this is a bug in React.\\')}else s.type===\"stylesheet\"&&(s.state.loading&kl)===i1&&(h=s.instance,s.state.loading|=kl,l7(h,d.precedence,i));return s.instance}function l7(i,s,d){for(var h=d.querySelectorAll(\\'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]\\'),v=h.length?h[h.length-1]:null,E=v,j=0;j<h.length;j++){var oe=h[j];if(oe.dataset.precedence===s)E=oe;else if(E!==v)break}E?E.parentNode.insertBefore(i,E.nextSibling):(s=d.nodeType===9?d.head:d,s.insertBefore(i,s.firstChild))}function IP(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function RP(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}function Eq(i,s,d){if(mA===null){var h=new Map,v=mA=new Map;v.set(d,h)}else v=mA,h=v.get(d),h||(h=new Map,v.set(d,h));if(h.has(i))return h;for(h.set(i,null),d=d.getElementsByTagName(i),v=0;v<d.length;v++){var E=d[v];if(!(E[tw]||E[Za]||i===\"link\"&&E.getAttribute(\"rel\")===\"stylesheet\")&&E.namespaceURI!==v2){var j=E.getAttribute(s)||\"\";j=i+j;var oe=h.get(j);oe?oe.push(E):h.set(j,[E])}}return h}function Sq(i,s,d){i=i.ownerDocument||i,i.head.insertBefore(d,s===\"title\"?i.querySelector(\"head > title\"):null)}function j7e(i,s,d){var h=!d.ancestorInfo.containerTagInScope;if(d.context===W2||s.itemProp!=null)return!h||s.itemProp==null||i!==\"meta\"&&i!==\"title\"&&i!==\"style\"&&i!==\"link\"&&i!==\"script\"||console.error(\"Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.\",i,i),!1;switch(i){case\"meta\":case\"title\":return!0;case\"style\":if(typeof s.precedence!=\"string\"||typeof s.href!=\"string\"||s.href===\"\"){h&&console.error(\\'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`.\\');break}return!0;case\"link\":if(typeof s.rel!=\"string\"||typeof s.href!=\"string\"||s.href===\"\"||s.onLoad||s.onError){if(s.rel===\"stylesheet\"&&typeof s.precedence==\"string\"){i=s.href;var v=s.onError,E=s.disabled;d=[],s.onLoad&&d.push(\"`onLoad`\"),v&&d.push(\"`onError`\"),E!=null&&d.push(\"`disabled`\"),v=x7e(d,\"and\"),v+=d.length===1?\" prop\":\" props\",E=d.length===1?\"an \"+v:\"the \"+v,d.length&&console.error(\\'React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',i,E,v)}h&&(typeof s.rel!=\"string\"||typeof s.href!=\"string\"||s.href===\"\"?console.error(\"Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag\"):(s.onError||s.onLoad)&&console.error(\"Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"));break}return s.rel===\"stylesheet\"?(i=s.precedence,s=s.disabled,typeof i!=\"string\"&&h&&console.error(\\'Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag.\\'),typeof i==\"string\"&&s==null):!0;case\"script\":if(i=s.async&&typeof s.async!=\"function\"&&typeof s.async!=\"symbol\",!i||s.onLoad||s.onError||!s.src||typeof s.src!=\"string\"){h&&(i?s.onLoad||s.onError?console.error(\"Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"):console.error(\"Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.\"):console.error(\\'Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.\\'));break}return!0;case\"noscript\":case\"template\":h&&console.error(\"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.\",i)}return!1}function Aq(i){return!(i.type===\"stylesheet\"&&(i.state.loading&sZ)===i1)}function $7e(i,s,d,h){if(d.type===\"stylesheet\"&&(typeof h.media!=\"string\"||matchMedia(h.media).matches!==!1)&&(d.state.loading&kl)===i1){if(d.instance===null){var v=u2(h.href),E=s.querySelector(Yb(v));if(E){s=E._p,s!==null&&typeof s==\"object\"&&typeof s.then==\"function\"&&(i.count++,i=u7.bind(i),s.then(i,i)),d.state.loading|=kl,d.instance=E,Dn(E);return}E=s.ownerDocument||s,h=bq(h),(v=Cl.get(v))&&IP(h,v),E=E.createElement(\"link\"),Dn(E);var j=E;j._p=new Promise(function(oe,ke){j.onload=oe,j.onerror=ke}),Ya(E,\"link\",h),d.instance=E}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(d,s),(s=d.state.preload)&&(d.state.loading&sZ)===i1&&(i.count++,d=u7.bind(i),s.addEventListener(\"load\",d),s.addEventListener(\"error\",d))}}function K7e(i,s){return i.stylesheets&&i.count===0&&d7(i,i.stylesheets),0<i.count||0<i.imgCount?function(d){var h=setTimeout(function(){if(i.stylesheets&&d7(i,i.stylesheets),i.unsuspend){var E=i.unsuspend;i.unsuspend=null,E()}},z9e+s);0<i.imgBytes&&uD===0&&(uD=125*b7e()*H9e);var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&d7(i,i.stylesheets),i.unsuspend)){var E=i.unsuspend;i.unsuspend=null,E()}},(i.imgBytes>uD?50:V9e)+s);return i.unsuspend=d,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function u7(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)d7(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}function d7(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gA=new Map,s.forEach(G7e,i),gA=null,u7.call(i))}function G7e(i,s){if(!(s.state.loading&kl)){var d=gA.get(i);if(d)var h=d.get(dD);else{d=new Map,gA.set(i,d);for(var v=i.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),E=0;E<v.length;E++){var j=v[E];(j.nodeName===\"LINK\"||j.getAttribute(\"media\")!==\"not all\")&&(d.set(j.dataset.precedence,j),h=j)}h&&d.set(dD,h)}v=s.instance,j=v.getAttribute(\"data-precedence\"),E=d.get(j)||h,E===h&&d.set(dD,v),d.set(j,v),this.count++,h=u7.bind(this),v.addEventListener(\"load\",h),v.addEventListener(\"error\",h),E?E.parentNode.insertBefore(v,E.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),s.state.loading|=kl}}function q7e(i,s,d,h,v,E,j,oe,ke){for(this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=o1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.hiddenUpdates=Bt(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ke,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,i=this.pendingUpdatersLaneMap=[],s=0;31>s;s++)i.push(new Set);this._debugRootType=d?\"hydrateRoot()\":\"createRoot()\"}function kq(i,s,d,h,v,E,j,oe,ke,Fe,Ct,Tt){return i=new q7e(i,s,d,j,ke,Fe,Ct,Tt,oe),s=p9e,E===!0&&(s|=bs|uu),s|=Zr,E=y(3,null,null,s),i.current=E,E.stateNode=i,s=iR(),R0(s),i.pooledCache=s,R0(s),E.memoizedState={element:h,isDehydrated:d,cache:s},uR(E),i}function Cq(i){return i?(i=Sh,i):Sh}function PP(i,s,d,h,v,E){if(xs&&typeof xs.onScheduleFiberRoot==\"function\")try{xs.onScheduleFiberRoot(g2,h,d)}catch(j){ld||(ld=!0,console.error(\"React instrumentation encountered an error: %o\",j))}v=Cq(v),h.context===null?h.context=v:h.pendingContext=v,cd&&jc!==null&&!fZ&&(fZ=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\\n\\nCheck the render method of %s.`,S(jc)||\"Unknown\")),h=ch(s),h.payload={element:d},E=E===void 0?null:E,E!==null&&(typeof E!=\"function\"&&console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",E),h.callback=E),d=lh(i,h,s),d!==null&&(qu(s,\"root.render()\",null),Di(d,i,s),Ib(d,i,s))}function Tq(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<s?d:s}}function BP(i,s){Tq(i,s),(i=i.alternate)&&Tq(i,s)}function _q(i){if(i.tag===13||i.tag===31){var s=nr(i,67108864);s!==null&&Di(s,i,67108864),BP(i,67108864)}}function Mq(i){if(i.tag===13||i.tag===31){var s=zc(i);s=Un(s);var d=nr(i,s);d!==null&&Di(d,i,s),BP(i,s)}}function W7e(){return jc}function Y7e(i,s,d,h){var v=an.T;an.T=null;var E=No.p;try{No.p=$c,DP(i,s,d,h)}finally{No.p=E,an.T=v}}function Z7e(i,s,d,h){var v=an.T;an.T=null;var E=No.p;try{No.p=lu,DP(i,s,d,h)}finally{No.p=E,an.T=v}}function DP(i,s,d,h){if(vA){var v=FP(h);if(v===null)xP(i,s,h,xA,d),Rq(i,h);else if(X7e(v,i,s,d,h))h.stopPropagation();else if(Rq(i,h),s&4&&-1<$9e.indexOf(i)){for(;v!==null;){var E=kn(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var j=ot(E.pendingLanes);if(j!==0){var oe=E;for(oe.pendingLanes|=2,oe.entangledLanes|=2;j;){var ke=1<<31-Os(j);oe.entanglements[1]|=ke,j&=~ke}od(E),(ko&(Sa|Wc))===Ba&&(tA=Ia()+zY,$b(0,!1))}}break;case 31:case 13:oe=nr(E,2),oe!==null&&Di(oe,E,2),s2(),BP(E,2)}if(E=FP(h),E===null&&xP(i,s,h,xA,d),E===v)break;v=E}v!==null&&h.stopPropagation()}else xP(i,s,h,null,d)}}function FP(i){return i=E0(i),OP(i)}function OP(i){if(xA=null,i=pn(i),i!==null){var s=O(i);if(s===null)i=null;else{var d=s.tag;if(d===13){if(i=V(s),i!==null)return i;i=null}else if(d===31){if(i=D(s),i!==null)return i;i=null}else if(d===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return xA=i,null}function Iq(i){switch(i){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return $c;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return lu;case\"message\":switch(sAe()){case ZP:return $c;case XP:return lu;case m2:case cAe:return dd;case JP:return w7;default:return dd}default:return dd}}function Rq(i,s){switch(i){case\"focusin\":case\"focusout\":zh=null;break;case\"dragenter\":case\"dragleave\":Vh=null;break;case\"mouseover\":case\"mouseout\":Hh=null;break;case\"pointerover\":case\"pointerout\":Kw.delete(s.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":Gw.delete(s.pointerId)}}function Xb(i,s,d,h,v,E){return i===null||i.nativeEvent!==E?(i={blockedOn:s,domEventName:d,eventSystemFlags:h,nativeEvent:E,targetContainers:[v]},s!==null&&(s=kn(s),s!==null&&_q(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),i)}function X7e(i,s,d,h,v){switch(s){case\"focusin\":return zh=Xb(zh,i,s,d,h,v),!0;case\"dragenter\":return Vh=Xb(Vh,i,s,d,h,v),!0;case\"mouseover\":return Hh=Xb(Hh,i,s,d,h,v),!0;case\"pointerover\":var E=v.pointerId;return Kw.set(E,Xb(Kw.get(E)||null,i,s,d,h,v)),!0;case\"gotpointercapture\":return E=v.pointerId,Gw.set(E,Xb(Gw.get(E)||null,i,s,d,h,v)),!0}return!1}function Pq(i){var s=pn(i.target);if(s!==null){var d=O(s);if(d!==null){if(s=d.tag,s===13){if(s=V(d),s!==null){i.blockedOn=s,Nt(i.priority,function(){Mq(d)});return}}else if(s===31){if(s=D(d),s!==null){i.blockedOn=s,Nt(i.priority,function(){Mq(d)});return}}else if(s===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function f7(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var d=FP(i.nativeEvent);if(d===null){d=i.nativeEvent;var h=new d.constructor(d.type,d),v=h;nw!==null&&console.error(\"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.\"),nw=v,d.target.dispatchEvent(h),nw===null&&console.error(\"Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.\"),nw=null}else return s=kn(d),s!==null&&_q(s),i.blockedOn=d,!1;s.shift()}return!0}function Bq(i,s,d){f7(i)&&d.delete(s)}function J7e(){fD=!1,zh!==null&&f7(zh)&&(zh=null),Vh!==null&&f7(Vh)&&(Vh=null),Hh!==null&&f7(Hh)&&(Hh=null),Kw.forEach(Bq),Gw.forEach(Bq)}function p7(i,s){i.blockedOn===s&&(i.blockedOn=null,fD||(fD=!0,aa.unstable_scheduleCallback(aa.unstable_NormalPriority,J7e)))}function Dq(i){bA!==i&&(bA=i,aa.unstable_scheduleCallback(aa.unstable_NormalPriority,function(){bA===i&&(bA=null);for(var s=0;s<i.length;s+=3){var d=i[s],h=i[s+1],v=i[s+2];if(typeof h!=\"function\"){if(OP(h||d)===null)continue;break}var E=kn(d);E!==null&&(i.splice(s,3),s-=3,d={pending:!0,data:v,method:d.method,action:h},Object.freeze(d),OR(E,d,h,v))}}))}function f2(i){function s(ke){return p7(ke,i)}zh!==null&&p7(zh,i),Vh!==null&&p7(Vh,i),Hh!==null&&p7(Hh,i),Kw.forEach(s),Gw.forEach(s);for(var d=0;d<jh.length;d++){var h=jh[d];h.blockedOn===i&&(h.blockedOn=null)}for(;0<jh.length&&(d=jh[0],d.blockedOn===null);)Pq(d),d.blockedOn===null&&jh.shift();if(d=(i.ownerDocument||i).$$reactFormReplay,d!=null)for(h=0;h<d.length;h+=3){var v=d[h],E=d[h+1],j=v[Ls]||null;if(typeof E==\"function\")j||Dq(d);else if(j){var oe=null;if(E&&E.hasAttribute(\"formAction\")){if(v=E,j=E[Ls]||null)oe=j.formAction;else if(OP(v)!==null)continue}else oe=j.action;typeof oe==\"function\"?d[h+1]=oe:(d.splice(h,3),h-=3),Dq(d)}}}function Fq(){function i(E){E.canIntercept&&E.info===\"react-transition\"&&E.intercept({handler:function(){return new Promise(function(j){return v=j})},focusReset:\"manual\",scroll:\"manual\"})}function s(){v!==null&&(v(),v=null),h||setTimeout(d,20)}function d(){if(!h&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:\"react-transition\",history:\"replace\"})}}if(typeof navigation==\"object\"){var h=!1,v=null;return navigation.addEventListener(\"navigate\",i),navigation.addEventListener(\"navigatesuccess\",s),navigation.addEventListener(\"navigateerror\",s),setTimeout(d,100),function(){h=!0,navigation.removeEventListener(\"navigate\",i),navigation.removeEventListener(\"navigatesuccess\",s),navigation.removeEventListener(\"navigateerror\",s),v!==null&&(v(),v=null)}}}function LP(i){this._internalRoot=i}function h7(i){this._internalRoot=i}function Oq(i){i[xh]&&(i._reactRootContainer?console.error(\"You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.\"):console.error(\"You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.\"))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var aa=qZ(),NP=Ww(),Q7e=JZ(),ao=Object.assign,eAe=Symbol.for(\"react.element\"),ad=Symbol.for(\"react.transitional.element\"),p2=Symbol.for(\"react.portal\"),h2=Symbol.for(\"react.fragment\"),m7=Symbol.for(\"react.strict_mode\"),UP=Symbol.for(\"react.profiler\"),zP=Symbol.for(\"react.consumer\"),sd=Symbol.for(\"react.context\"),Jb=Symbol.for(\"react.forward_ref\"),VP=Symbol.for(\"react.suspense\"),HP=Symbol.for(\"react.suspense_list\"),g7=Symbol.for(\"react.memo\"),Hc=Symbol.for(\"react.lazy\"),jP=Symbol.for(\"react.activity\"),tAe=Symbol.for(\"react.memo_cache_sentinel\"),Lq=Symbol.iterator,nAe=Symbol.for(\"react.client.reference\"),wa=Array.isArray,an=NP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,No=Q7e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rAe=Object.freeze({pending:!1,data:null,method:null,action:null}),$P=[],KP=[],kf=-1,gh=_(null),Qb=_(null),yh=_(null),y7=_(null),ew=0,Nq,Uq,zq,Vq,Hq,jq,$q;ye.__reactDisabledLog=!0;var GP,Kq,qP=!1,WP=new(typeof WeakMap==\"function\"?WeakMap:Map),jc=null,cd=!1,cu=Object.prototype.hasOwnProperty,YP=aa.unstable_scheduleCallback,oAe=aa.unstable_cancelCallback,iAe=aa.unstable_shouldYield,aAe=aa.unstable_requestPaint,Ia=aa.unstable_now,sAe=aa.unstable_getCurrentPriorityLevel,ZP=aa.unstable_ImmediatePriority,XP=aa.unstable_UserBlockingPriority,m2=aa.unstable_NormalPriority,cAe=aa.unstable_LowPriority,JP=aa.unstable_IdlePriority,lAe=aa.log,uAe=aa.unstable_setDisableYieldValue,g2=null,xs=null,ld=!1,ud=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\",Os=Math.clz32?Math.clz32:et,dAe=Math.log,fAe=Math.LN2,v7=256,x7=262144,b7=4194304,$c=2,lu=8,dd=32,w7=268435456,vh=Math.random().toString(36).slice(2),Za=\"__reactFiber$\"+vh,Ls=\"__reactProps$\"+vh,xh=\"__reactContainer$\"+vh,QP=\"__reactEvents$\"+vh,pAe=\"__reactListeners$\"+vh,hAe=\"__reactHandles$\"+vh,Gq=\"__reactResources$\"+vh,tw=\"__reactMarker$\"+vh,qq=new Set,N0={},eB={},mAe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gAe=RegExp(\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Wq={},Yq={},yAe=/[\\\\n\"\\\\\\\\]/g,Zq=!1,Xq=!1,Jq=!1,Qq=!1,eW=!1,tW=!1,nW=[\"value\",\"defaultValue\"],rW=!1,oW=/[\"\\'&<>\\\\n\\\\t]|^\\\\s|\\\\s$/,vAe=\"address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp\".split(\" \"),iW=\"applet caption html table td th marquee object template foreignObject desc title\".split(\" \"),xAe=iW.concat([\"button\"]),bAe=\"dd dt li option optgroup p rp rt\".split(\" \"),aW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},E7={},tB={animation:\"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction\".split(\" \"),background:\"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize\".split(\" \"),backgroundPosition:[\"backgroundPositionX\",\"backgroundPositionY\"],border:\"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth\".split(\" \"),borderBlockEnd:[\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\"],borderBlockStart:[\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\"],borderBottom:[\"borderBottomColor\",\"borderBottomStyle\",\"borderBottomWidth\"],borderColor:[\"borderBottomColor\",\"borderLeftColor\",\"borderRightColor\",\"borderTopColor\"],borderImage:[\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\"],borderInlineEnd:[\"borderInlineEndColor\",\"borderInlineEndStyle\",\"borderInlineEndWidth\"],borderInlineStart:[\"borderInlineStartColor\",\"borderInlineStartStyle\",\"borderInlineStartWidth\"],borderLeft:[\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\"],borderRadius:[\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderTopLeftRadius\",\"borderTopRightRadius\"],borderRight:[\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\"],borderStyle:[\"borderBottomStyle\",\"borderLeftStyle\",\"borderRightStyle\",\"borderTopStyle\"],borderTop:[\"borderTopColor\",\"borderTopStyle\",\"borderTopWidth\"],borderWidth:[\"borderBottomWidth\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\"],columnRule:[\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\"],columns:[\"columnCount\",\"columnWidth\"],flex:[\"flexBasis\",\"flexGrow\",\"flexShrink\"],flexFlow:[\"flexDirection\",\"flexWrap\"],font:\"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight\".split(\" \"),fontVariant:\"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition\".split(\" \"),gap:[\"columnGap\",\"rowGap\"],grid:\"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows\".split(\" \"),gridArea:[\"gridColumnEnd\",\"gridColumnStart\",\"gridRowEnd\",\"gridRowStart\"],gridColumn:[\"gridColumnEnd\",\"gridColumnStart\"],gridColumnGap:[\"columnGap\"],gridGap:[\"columnGap\",\"rowGap\"],gridRow:[\"gridRowEnd\",\"gridRowStart\"],gridRowGap:[\"rowGap\"],gridTemplate:[\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\"],listStyle:[\"listStyleImage\",\"listStylePosition\",\"listStyleType\"],margin:[\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\"],marker:[\"markerEnd\",\"markerMid\",\"markerStart\"],mask:\"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize\".split(\" \"),maskPosition:[\"maskPositionX\",\"maskPositionY\"],outline:[\"outlineColor\",\"outlineStyle\",\"outlineWidth\"],overflow:[\"overflowX\",\"overflowY\"],padding:[\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\"],placeContent:[\"alignContent\",\"justifyContent\"],placeItems:[\"alignItems\",\"justifyItems\"],placeSelf:[\"alignSelf\",\"justifySelf\"],textDecoration:[\"textDecorationColor\",\"textDecorationLine\",\"textDecorationStyle\"],textEmphasis:[\"textEmphasisColor\",\"textEmphasisStyle\"],transition:[\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\"],wordWrap:[\"overflowWrap\"]},sW=/([A-Z])/g,cW=/^ms-/,wAe=/^(?:webkit|moz|o)[A-Z]/,EAe=/^-ms-/,SAe=/-(.)/g,lW=/;\\\\s*$/,y2={},nB={},uW=!1,dW=!1,fW=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),S7=\"http://www.w3.org/1998/Math/MathML\",v2=\"http://www.w3.org/2000/svg\",AAe=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),A7={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},pW={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0,\"aria-braillelabel\":0,\"aria-brailleroledescription\":0,\"aria-colindextext\":0,\"aria-rowindextext\":0},x2={},kAe=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),CAe=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),hW=!1,Ns={},mW=/^on./,TAe=/^on[^A-Z]/,_Ae=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),MAe=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),IAe=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,nw=null,b2=null,w2=null,rB=!1,fd=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),oB=!1;if(fd)try{var rw={};Object.defineProperty(rw,\"passive\",{get:function(){oB=!0}}),window.addEventListener(\"test\",rw,rw),window.removeEventListener(\"test\",rw,rw)}catch{oB=!1}var bh=null,iB=null,k7=null,U0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},C7=ms(U0),ow=ao({},U0,{view:0,detail:0}),RAe=ms(ow),aB,sB,iw,T7=ao({},ow,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:b,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return\"movementX\"in i?i.movementX:(i!==iw&&(iw&&i.type===\"mousemove\"?(aB=i.screenX-iw.screenX,sB=i.screenY-iw.screenY):sB=aB=0,iw=i),aB)},movementY:function(i){return\"movementY\"in i?i.movementY:sB}}),gW=ms(T7),PAe=ao({},T7,{dataTransfer:0}),BAe=ms(PAe),DAe=ao({},ow,{relatedTarget:0}),cB=ms(DAe),FAe=ao({},U0,{animationName:0,elapsedTime:0,pseudoElement:0}),OAe=ms(FAe),LAe=ao({},U0,{clipboardData:function(i){return\"clipboardData\"in i?i.clipboardData:window.clipboardData}}),NAe=ms(LAe),UAe=ao({},U0,{data:0}),yW=ms(UAe),zAe=yW,VAe={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},HAe={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},jAe={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},$Ae=ao({},ow,{key:function(i){if(i.key){var s=VAe[i.key]||i.key;if(s!==\"Unidentified\")return s}return i.type===\"keypress\"?(i=k0(i),i===13?\"Enter\":String.fromCharCode(i)):i.type===\"keydown\"||i.type===\"keyup\"?HAe[i.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:b,charCode:function(i){return i.type===\"keypress\"?k0(i):0},keyCode:function(i){return i.type===\"keydown\"||i.type===\"keyup\"?i.keyCode:0},which:function(i){return i.type===\"keypress\"?k0(i):i.type===\"keydown\"||i.type===\"keyup\"?i.keyCode:0}}),KAe=ms($Ae),GAe=ao({},T7,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vW=ms(GAe),qAe=ao({},ow,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:b}),WAe=ms(qAe),YAe=ao({},U0,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZAe=ms(YAe),XAe=ao({},T7,{deltaX:function(i){return\"deltaX\"in i?i.deltaX:\"wheelDeltaX\"in i?-i.wheelDeltaX:0},deltaY:function(i){return\"deltaY\"in i?i.deltaY:\"wheelDeltaY\"in i?-i.wheelDeltaY:\"wheelDelta\"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),JAe=ms(XAe),QAe=ao({},U0,{newState:0,oldState:0}),e9e=ms(QAe),t9e=[9,13,27,32],xW=229,lB=fd&&\"CompositionEvent\"in window,aw=null;fd&&\"documentMode\"in document&&(aw=document.documentMode);var n9e=fd&&\"TextEvent\"in window&&!aw,bW=fd&&(!lB||aw&&8<aw&&11>=aw),wW=32,EW=String.fromCharCode(wW),SW=!1,E2=!1,r9e={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},sw=null,cw=null,AW=!1;fd&&(AW=Ge(\"input\")&&(!document.documentMode||9<document.documentMode));var Us=typeof Object.is==\"function\"?Object.is:$e,o9e=fd&&\"documentMode\"in document&&11>=document.documentMode,S2=null,uB=null,lw=null,dB=!1,A2={animationend:fn(\"Animation\",\"AnimationEnd\"),animationiteration:fn(\"Animation\",\"AnimationIteration\"),animationstart:fn(\"Animation\",\"AnimationStart\"),transitionrun:fn(\"Transition\",\"TransitionRun\"),transitionstart:fn(\"Transition\",\"TransitionStart\"),transitioncancel:fn(\"Transition\",\"TransitionCancel\"),transitionend:fn(\"Transition\",\"TransitionEnd\")},fB={},kW={};fd&&(kW=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete A2.animationend.animation,delete A2.animationiteration.animation,delete A2.animationstart.animation),\"TransitionEvent\"in window||delete A2.transitionend.transition);var CW=Rn(\"animationend\"),TW=Rn(\"animationiteration\"),_W=Rn(\"animationstart\"),i9e=Rn(\"transitionrun\"),a9e=Rn(\"transitionstart\"),s9e=Rn(\"transitioncancel\"),MW=Rn(\"transitionend\"),IW=new Map,pB=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");pB.push(\"scrollEnd\");var RW=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var c9e=performance,PW=function(){return c9e.now()};else{var l9e=Date;PW=function(){return l9e.now()}}var hB=typeof reportError==\"function\"?reportError:function(i){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var s=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof i==\"object\"&&i!==null&&typeof i.message==\"string\"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",i);return}console.error(i)},u9e=\"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.\",_7=0,mB=1,gB=2,yB=3,M7=\"\\\\u2013\\\\xA0\",I7=\"+\\\\xA0\",BW=\"\\\\u2007\\\\xA0\",fi=typeof console<\"u\"&&typeof console.timeStamp==\"function\"&&typeof performance<\"u\"&&typeof performance.measure==\"function\",ml=\"Components \\\\u269B\",so=\"Scheduler \\\\u269B\",uo=\"Blocking\",wh=!1,Cf={color:\"primary\",properties:null,tooltipText:\"\",track:ml},Eh={start:-0,end:-0,detail:{devtools:Cf}},d9e=[\"Changed Props\",\"\"],DW=\"This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.\",f9e=[\"Changed Props\",DW],uw=1,Tf=2,gl=[],k2=0,vB=0,Sh={};Object.freeze(Sh);var yl=null,C2=null,Lr=0,p9e=1,Zr=2,bs=8,uu=16,h9e=32,FW=!1;try{var OW=Object.preventExtensions({})}catch{FW=!0}var xB=new WeakMap,T2=[],_2=0,R7=null,dw=0,vl=[],xl=0,z0=null,_f=1,Mf=\"\",Xa=null,pi=null,ho=!1,pd=!1,Kc=null,Ah=null,bl=!1,bB=Error(\"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),wB=_(null),EB=_(null),LW={},P7=null,M2=null,I2=!1,m9e=typeof AbortController<\"u\"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(d,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(d){return d()})}},g9e=aa.unstable_scheduleCallback,y9e=aa.unstable_NormalPriority,sa={$$typeof:sd,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ca=aa.unstable_now,B7=console.createTask?console.createTask:function(){return null},fw=1,D7=2,Ra=-0,kh=-0,If=-0,Rf=null,zs=-1.1,V0=-0,_i=-0,Ir=-1.1,Fr=-1.1,Si=null,Fi=!1,Ch=-0,hd=-1.1,pw=null,Th=0,SB=null,AB=null,H0=-1.1,hw=null,R2=-1.1,F7=-1.1,md=-0,Pf=-1.1,wl=-1.1,kB=0,mw=null,NW=null,UW=null,_h=-1.1,j0=null,Mh=-1.1,O7=-1.1,zW=-0,VW=-0,L7=0,Bf=null,HW=0,gw=-1.1,N7=!1,U7=!1,yw=null,CB=0,$0=0,P2=null,jW=an.S;an.S=function(i,s){if(NY=Ia(),typeof s==\"object\"&&s!==null&&typeof s.then==\"function\"){if(0>Pf&&0>wl){Pf=ca();var d=qb(),h=Gb();(d!==Mh||h!==j0)&&(Mh=-1.1),_h=d,j0=h}OSe(i,s)}jW!==null&&jW(i,s)};var K0=_(null),du={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},vw=[],xw=[],bw=[],ww=[],Ew=[],Sw=[],G0=new Set;du.recordUnsafeLifecycleWarnings=function(i,s){G0.has(i.type)||(typeof s.componentWillMount==\"function\"&&s.componentWillMount.__suppressDeprecationWarning!==!0&&vw.push(i),i.mode&bs&&typeof s.UNSAFE_componentWillMount==\"function\"&&xw.push(i),typeof s.componentWillReceiveProps==\"function\"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&bw.push(i),i.mode&bs&&typeof s.UNSAFE_componentWillReceiveProps==\"function\"&&ww.push(i),typeof s.componentWillUpdate==\"function\"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ew.push(i),i.mode&bs&&typeof s.UNSAFE_componentWillUpdate==\"function\"&&Sw.push(i))},du.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<vw.length&&(vw.forEach(function(oe){i.add(S(oe)||\"Component\"),G0.add(oe.type)}),vw=[]);var s=new Set;0<xw.length&&(xw.forEach(function(oe){s.add(S(oe)||\"Component\"),G0.add(oe.type)}),xw=[]);var d=new Set;0<bw.length&&(bw.forEach(function(oe){d.add(S(oe)||\"Component\"),G0.add(oe.type)}),bw=[]);var h=new Set;0<ww.length&&(ww.forEach(function(oe){h.add(S(oe)||\"Component\"),G0.add(oe.type)}),ww=[]);var v=new Set;0<Ew.length&&(Ew.forEach(function(oe){v.add(S(oe)||\"Component\"),G0.add(oe.type)}),Ew=[]);var E=new Set;if(0<Sw.length&&(Sw.forEach(function(oe){E.add(S(oe)||\"Component\"),G0.add(oe.type)}),Sw=[]),0<s.size){var j=g(s);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n\\nPlease update the following components: %s`,j)}0<h.size&&(j=g(h),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n\\nPlease update the following components: %s`,j)),0<E.size&&(j=g(E),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n\\nPlease update the following components: %s`,j)),0<i.size&&(j=g(i),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j)),0<d.size&&(j=g(d),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j)),0<v.size&&(j=g(v),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j))};var z7=new Map,$W=new Set;du.recordLegacyContextWarning=function(i,s){for(var d=null,h=i;h!==null;)h.mode&bs&&(d=h),h=h.return;d===null?console.error(\"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.\"):!$W.has(i.type)&&(h=z7.get(d),i.type.contextTypes!=null||i.type.childContextTypes!=null||s!==null&&typeof s.getChildContext==\"function\")&&(h===void 0&&(h=[],z7.set(d,h)),h.push(i))},du.flushLegacyContextWarning=function(){z7.forEach(function(i){if(i.length!==0){var s=i[0],d=new Set;i.forEach(function(v){d.add(S(v)||\"Component\"),$W.add(v.type)});var h=g(d);C(s,function(){console.error(`Legacy context API has been detected within a strict-mode tree.\\n\\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\\n\\nPlease update the following components: %s\\n\\nLearn more about this warning here: https://react.dev/link/legacy-context`,h)})}})},du.discardPendingWarnings=function(){vw=[],xw=[],bw=[],ww=[],Ew=[],Sw=[],z7=new Map};var KW={react_stack_bottom_frame:function(i,s,d){var h=cd;cd=!0;try{return i(s,d)}finally{cd=h}}},TB=KW.react_stack_bottom_frame.bind(KW),GW={react_stack_bottom_frame:function(i){var s=cd;cd=!0;try{return i.render()}finally{cd=s}}},qW=GW.react_stack_bottom_frame.bind(GW),WW={react_stack_bottom_frame:function(i,s){try{s.componentDidMount()}catch(d){Lo(i,i.return,d)}}},_B=WW.react_stack_bottom_frame.bind(WW),YW={react_stack_bottom_frame:function(i,s,d,h,v){try{s.componentDidUpdate(d,h,v)}catch(E){Lo(i,i.return,E)}}},ZW=YW.react_stack_bottom_frame.bind(YW),XW={react_stack_bottom_frame:function(i,s){var d=s.stack;i.componentDidCatch(s.value,{componentStack:d!==null?d:\"\"})}},v9e=XW.react_stack_bottom_frame.bind(XW),JW={react_stack_bottom_frame:function(i,s,d){try{d.componentWillUnmount()}catch(h){Lo(i,s,h)}}},QW=JW.react_stack_bottom_frame.bind(JW),eY={react_stack_bottom_frame:function(i){var s=i.create;return i=i.inst,s=s(),i.destroy=s}},x9e=eY.react_stack_bottom_frame.bind(eY),tY={react_stack_bottom_frame:function(i,s,d){try{d()}catch(h){Lo(i,s,h)}}},b9e=tY.react_stack_bottom_frame.bind(tY),nY={react_stack_bottom_frame:function(i){var s=i._init;return s(i._payload)}},w9e=nY.react_stack_bottom_frame.bind(nY),B2=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),MB=Error(\"Suspense Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),V7=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary.\"),H7={then:function(){console.error(\\'Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.\\')}},q0=null,Aw=!1,D2=null,kw=0,Xr=null,IB,rY=IB=!1,oY={},iY={},aY={};m=function(i,s,d){if(d!==null&&typeof d==\"object\"&&d._store&&(!d._store.validated&&d.key==null||d._store.validated===2)){if(typeof d._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");d._store.validated=1;var h=S(i),v=h||\"null\";if(!oY[v]){oY[v]=!0,d=d._owner,i=i._debugOwner;var E=\"\";i&&typeof i.tag==\"number\"&&(v=S(i))&&(E=`\\n\\nCheck the render method of \\\\``+v+\"`.\"),E||h&&(E=`\\n\\nCheck the top-level render call using <`+h+\">.\");var j=\"\";d!=null&&i!==d&&(h=null,typeof d.tag==\"number\"?h=S(d):typeof d.name==\"string\"&&(h=d.name),h&&(j=\" It was passed a child from \"+h+\".\")),C(s,function(){console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',E,j)})}}};var W0=J$(!0),sY=J$(!1),cY=0,lY=1,uY=2,RB=3,Ih=!1,dY=!1,PB=null,BB=!1,F2=_(null),j7=_(0),Gc=_(null),El=null,O2=1,Cw=2,Xi=_(0),$7=0,Sl=1,Vs=2,qc=4,Hs=8,L2,fY=new Set,pY=new Set,DB=new Set,hY=new Set,Df=0,zr=null,Qo=null,la=null,K7=!1,N2=!1,Y0=!1,G7=0,Tw=0,Ff=null,E9e=0,S9e=25,en=null,Al=null,Of=-1,_w=!1,Mw={readContext:Ei,use:fh,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useLayoutEffect:Vi,useInsertionEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useDeferredValue:Vi,useTransition:Vi,useSyncExternalStore:Vi,useId:Vi,useHostTransitionStatus:Vi,useFormState:Vi,useActionState:Vi,useOptimistic:Vi,useMemoCache:Vi,useCacheRefresh:Vi};Mw.useEffectEvent=Vi;var FB=null,mY=null,OB=null,gY=null,gd=null,fu=null,q7=null;FB={readContext:function(i){return Ei(i)},use:fh,useCallback:function(i,s){return en=\"useCallback\",io(),e2(s),PR(i,s)},useContext:function(i){return en=\"useContext\",io(),Ei(i)},useEffect:function(i,s){return en=\"useEffect\",io(),e2(s),zS(i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",io(),e2(d),RR(i,s,d)},useInsertionEffect:function(i,s){en=\"useInsertionEffect\",io(),e2(s),B0(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",io(),e2(s),IR(i,s)},useMemo:function(i,s){en=\"useMemo\",io(),e2(s);var d=an.H;an.H=gd;try{return BR(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",io();var h=an.H;an.H=gd;try{return wR(i,s,d)}finally{an.H=h}},useRef:function(i){return en=\"useRef\",io(),_R(i)},useState:function(i){en=\"useState\",io();var s=an.H;an.H=gd;try{return kR(i)}finally{an.H=s}},useDebugValue:function(){en=\"useDebugValue\",io()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",io(),DR(i,s)},useTransition:function(){return en=\"useTransition\",io(),LR()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",io(),SR(i,s,d)},useId:function(){return en=\"useId\",io(),NR()},useFormState:function(i,s){return en=\"useFormState\",io(),FS(),n2(i,s)},useActionState:function(i,s){return en=\"useActionState\",io(),n2(i,s)},useOptimistic:function(i){return en=\"useOptimistic\",io(),CR(i)},useHostTransitionStatus:D0,useMemoCache:P0,useCacheRefresh:function(){return en=\"useCacheRefresh\",io(),UR()},useEffectEvent:function(i){return en=\"useEffectEvent\",io(),MR(i)}},mY={readContext:function(i){return Ei(i)},use:fh,useCallback:function(i,s){return en=\"useCallback\",$n(),PR(i,s)},useContext:function(i){return en=\"useContext\",$n(),Ei(i)},useEffect:function(i,s){return en=\"useEffect\",$n(),zS(i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",$n(),RR(i,s,d)},useInsertionEffect:function(i,s){en=\"useInsertionEffect\",$n(),B0(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",$n(),IR(i,s)},useMemo:function(i,s){en=\"useMemo\",$n();var d=an.H;an.H=gd;try{return BR(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",$n();var h=an.H;an.H=gd;try{return wR(i,s,d)}finally{an.H=h}},useRef:function(i){return en=\"useRef\",$n(),_R(i)},useState:function(i){en=\"useState\",$n();var s=an.H;an.H=gd;try{return kR(i)}finally{an.H=s}},useDebugValue:function(){en=\"useDebugValue\",$n()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",$n(),DR(i,s)},useTransition:function(){return en=\"useTransition\",$n(),LR()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",$n(),SR(i,s,d)},useId:function(){return en=\"useId\",$n(),NR()},useActionState:function(i,s){return en=\"useActionState\",$n(),n2(i,s)},useFormState:function(i,s){return en=\"useFormState\",$n(),FS(),n2(i,s)},useOptimistic:function(i){return en=\"useOptimistic\",$n(),CR(i)},useHostTransitionStatus:D0,useMemoCache:P0,useCacheRefresh:function(){return en=\"useCacheRefresh\",$n(),UR()},useEffectEvent:function(i){return en=\"useEffectEvent\",$n(),MR(i)}},OB={readContext:function(i){return Ei(i)},use:fh,useCallback:function(i,s){return en=\"useCallback\",$n(),jS(i,s)},useContext:function(i){return en=\"useContext\",$n(),Ei(i)},useEffect:function(i,s){en=\"useEffect\",$n(),dc(2048,Hs,i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",$n(),HS(i,s,d)},useInsertionEffect:function(i,s){return en=\"useInsertionEffect\",$n(),dc(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",$n(),dc(4,qc,i,s)},useMemo:function(i,s){en=\"useMemo\",$n();var d=an.H;an.H=fu;try{return $S(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",$n();var h=an.H;an.H=fu;try{return t2(i,s,d)}finally{an.H=h}},useRef:function(){return en=\"useRef\",$n(),Vo().memoizedState},useState:function(){en=\"useState\",$n();var i=an.H;an.H=fu;try{return t2(au)}finally{an.H=i}},useDebugValue:function(){en=\"useDebugValue\",$n()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",$n(),bK(i,s)},useTransition:function(){return en=\"useTransition\",$n(),CK()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",$n(),LS(i,s,d)},useId:function(){return en=\"useId\",$n(),Vo().memoizedState},useFormState:function(i){return en=\"useFormState\",$n(),FS(),NS(i)},useActionState:function(i){return en=\"useActionState\",$n(),NS(i)},useOptimistic:function(i,s){return en=\"useOptimistic\",$n(),uK(i,s)},useHostTransitionStatus:D0,useMemoCache:P0,useCacheRefresh:function(){return en=\"useCacheRefresh\",$n(),Vo().memoizedState},useEffectEvent:function(i){return en=\"useEffectEvent\",$n(),VS(i)}},gY={readContext:function(i){return Ei(i)},use:fh,useCallback:function(i,s){return en=\"useCallback\",$n(),jS(i,s)},useContext:function(i){return en=\"useContext\",$n(),Ei(i)},useEffect:function(i,s){en=\"useEffect\",$n(),dc(2048,Hs,i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",$n(),HS(i,s,d)},useInsertionEffect:function(i,s){return en=\"useInsertionEffect\",$n(),dc(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",$n(),dc(4,qc,i,s)},useMemo:function(i,s){en=\"useMemo\",$n();var d=an.H;an.H=q7;try{return $S(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",$n();var h=an.H;an.H=q7;try{return Db(i,s,d)}finally{an.H=h}},useRef:function(){return en=\"useRef\",$n(),Vo().memoizedState},useState:function(){en=\"useState\",$n();var i=an.H;an.H=q7;try{return Db(au)}finally{an.H=i}},useDebugValue:function(){en=\"useDebugValue\",$n()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",$n(),wK(i,s)},useTransition:function(){return en=\"useTransition\",$n(),TK()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",$n(),LS(i,s,d)},useId:function(){return en=\"useId\",$n(),Vo().memoizedState},useFormState:function(i){return en=\"useFormState\",$n(),FS(),US(i)},useActionState:function(i){return en=\"useActionState\",$n(),US(i)},useOptimistic:function(i,s){return en=\"useOptimistic\",$n(),fK(i,s)},useHostTransitionStatus:D0,useMemoCache:P0,useCacheRefresh:function(){return en=\"useCacheRefresh\",$n(),Vo().memoizedState},useEffectEvent:function(i){return en=\"useEffectEvent\",$n(),VS(i)}},gd={readContext:function(i){return f(),Ei(i)},use:function(i){return l(),fh(i)},useCallback:function(i,s){return en=\"useCallback\",l(),io(),PR(i,s)},useContext:function(i){return en=\"useContext\",l(),io(),Ei(i)},useEffect:function(i,s){return en=\"useEffect\",l(),io(),zS(i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",l(),io(),RR(i,s,d)},useInsertionEffect:function(i,s){en=\"useInsertionEffect\",l(),io(),B0(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",l(),io(),IR(i,s)},useMemo:function(i,s){en=\"useMemo\",l(),io();var d=an.H;an.H=gd;try{return BR(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",l(),io();var h=an.H;an.H=gd;try{return wR(i,s,d)}finally{an.H=h}},useRef:function(i){return en=\"useRef\",l(),io(),_R(i)},useState:function(i){en=\"useState\",l(),io();var s=an.H;an.H=gd;try{return kR(i)}finally{an.H=s}},useDebugValue:function(){en=\"useDebugValue\",l(),io()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",l(),io(),DR(i,s)},useTransition:function(){return en=\"useTransition\",l(),io(),LR()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",l(),io(),SR(i,s,d)},useId:function(){return en=\"useId\",l(),io(),NR()},useFormState:function(i,s){return en=\"useFormState\",l(),io(),n2(i,s)},useActionState:function(i,s){return en=\"useActionState\",l(),io(),n2(i,s)},useOptimistic:function(i){return en=\"useOptimistic\",l(),io(),CR(i)},useMemoCache:function(i){return l(),P0(i)},useHostTransitionStatus:D0,useCacheRefresh:function(){return en=\"useCacheRefresh\",io(),UR()},useEffectEvent:function(i){return en=\"useEffectEvent\",l(),io(),MR(i)}},fu={readContext:function(i){return f(),Ei(i)},use:function(i){return l(),fh(i)},useCallback:function(i,s){return en=\"useCallback\",l(),$n(),jS(i,s)},useContext:function(i){return en=\"useContext\",l(),$n(),Ei(i)},useEffect:function(i,s){en=\"useEffect\",l(),$n(),dc(2048,Hs,i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",l(),$n(),HS(i,s,d)},useInsertionEffect:function(i,s){return en=\"useInsertionEffect\",l(),$n(),dc(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",l(),$n(),dc(4,qc,i,s)},useMemo:function(i,s){en=\"useMemo\",l(),$n();var d=an.H;an.H=fu;try{return $S(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",l(),$n();var h=an.H;an.H=fu;try{return t2(i,s,d)}finally{an.H=h}},useRef:function(){return en=\"useRef\",l(),$n(),Vo().memoizedState},useState:function(){en=\"useState\",l(),$n();var i=an.H;an.H=fu;try{return t2(au)}finally{an.H=i}},useDebugValue:function(){en=\"useDebugValue\",l(),$n()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",l(),$n(),bK(i,s)},useTransition:function(){return en=\"useTransition\",l(),$n(),CK()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",l(),$n(),LS(i,s,d)},useId:function(){return en=\"useId\",l(),$n(),Vo().memoizedState},useFormState:function(i){return en=\"useFormState\",l(),$n(),NS(i)},useActionState:function(i){return en=\"useActionState\",l(),$n(),NS(i)},useOptimistic:function(i,s){return en=\"useOptimistic\",l(),$n(),uK(i,s)},useMemoCache:function(i){return l(),P0(i)},useHostTransitionStatus:D0,useCacheRefresh:function(){return en=\"useCacheRefresh\",$n(),Vo().memoizedState},useEffectEvent:function(i){return en=\"useEffectEvent\",l(),$n(),VS(i)}},q7={readContext:function(i){return f(),Ei(i)},use:function(i){return l(),fh(i)},useCallback:function(i,s){return en=\"useCallback\",l(),$n(),jS(i,s)},useContext:function(i){return en=\"useContext\",l(),$n(),Ei(i)},useEffect:function(i,s){en=\"useEffect\",l(),$n(),dc(2048,Hs,i,s)},useImperativeHandle:function(i,s,d){return en=\"useImperativeHandle\",l(),$n(),HS(i,s,d)},useInsertionEffect:function(i,s){return en=\"useInsertionEffect\",l(),$n(),dc(4,Vs,i,s)},useLayoutEffect:function(i,s){return en=\"useLayoutEffect\",l(),$n(),dc(4,qc,i,s)},useMemo:function(i,s){en=\"useMemo\",l(),$n();var d=an.H;an.H=fu;try{return $S(i,s)}finally{an.H=d}},useReducer:function(i,s,d){en=\"useReducer\",l(),$n();var h=an.H;an.H=fu;try{return Db(i,s,d)}finally{an.H=h}},useRef:function(){return en=\"useRef\",l(),$n(),Vo().memoizedState},useState:function(){en=\"useState\",l(),$n();var i=an.H;an.H=fu;try{return Db(au)}finally{an.H=i}},useDebugValue:function(){en=\"useDebugValue\",l(),$n()},useDeferredValue:function(i,s){return en=\"useDeferredValue\",l(),$n(),wK(i,s)},useTransition:function(){return en=\"useTransition\",l(),$n(),TK()},useSyncExternalStore:function(i,s,d){return en=\"useSyncExternalStore\",l(),$n(),LS(i,s,d)},useId:function(){return en=\"useId\",l(),$n(),Vo().memoizedState},useFormState:function(i){return en=\"useFormState\",l(),$n(),US(i)},useActionState:function(i){return en=\"useActionState\",l(),$n(),US(i)},useOptimistic:function(i,s){return en=\"useOptimistic\",l(),$n(),fK(i,s)},useMemoCache:function(i){return l(),P0(i)},useHostTransitionStatus:D0,useCacheRefresh:function(){return en=\"useCacheRefresh\",$n(),Vo().memoizedState},useEffectEvent:function(i){return en=\"useEffectEvent\",l(),$n(),VS(i)}};var yY={},vY=new Set,xY=new Set,bY=new Set,wY=new Set,EY=new Set,SY=new Set,AY=new Set,kY=new Set,CY=new Set,TY=new Set;Object.freeze(yY);var LB={enqueueSetState:function(i,s,d){i=i._reactInternals;var h=zc(i),v=ch(h);v.payload=s,d!=null&&(VR(d),v.callback=d),s=lh(i,v,h),s!==null&&(qu(h,\"this.setState()\",i),Di(s,i,h),Ib(s,i,h))},enqueueReplaceState:function(i,s,d){i=i._reactInternals;var h=zc(i),v=ch(h);v.tag=lY,v.payload=s,d!=null&&(VR(d),v.callback=d),s=lh(i,v,h),s!==null&&(qu(h,\"this.replaceState()\",i),Di(s,i,h),Ib(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var d=zc(i),h=ch(d);h.tag=uY,s!=null&&(VR(s),h.callback=s),s=lh(i,h,d),s!==null&&(qu(d,\"this.forceUpdate()\",i),Di(s,i,d),Ib(s,i,d))}},U2=null,NB=null,UB=Error(\"This is not a real error. It\\'s an implementation detail of React\\'s selective hydration feature. If this leaks into userspace, it\\'s a bug in React. Please file an issue.\"),ua=!1,_Y={},MY={},IY={},RY={},z2=!1,PY={},W7={},zB={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},BY=!1,DY=null;DY=new Set;var Lf=!1,da=!1,VB=!1,FY=typeof WeakSet==\"function\"?WeakSet:Set,Pa=null,V2=null,H2=null,fa=null,hc=!1,pu=null,Ea=!1,Iw=8192,A9e={getCacheForType:function(i){var s=Ei(sa),d=s.data.get(i);return d===void 0&&(d=i(),s.data.set(i,d)),d},cacheSignal:function(){return Ei(sa).controller.signal},getOwner:function(){return jc}};if(typeof Symbol==\"function\"&&Symbol.for){var Rw=Symbol.for;Rw(\"selector.component\"),Rw(\"selector.has_pseudo_class\"),Rw(\"selector.role\"),Rw(\"selector.test_id\"),Rw(\"selector.text\")}var k9e=[],C9e=typeof WeakMap==\"function\"?WeakMap:Map,Ba=0,Sa=2,Wc=4,Nf=0,Pw=1,Z0=2,Y7=3,Rh=4,Z7=6,OY=5,ko=Ba,ei=null,oo=null,Jr=0,mc=0,X7=1,X0=2,Bw=3,LY=4,HB=5,Dw=6,J7=7,jB=8,J0=9,Ho=mc,Yc=null,Ph=!1,j2=!1,$B=!1,yd=0,Mi=Nf,Bh=0,Dh=0,KB=0,gc=0,Q0=0,Fw=null,js=null,Q7=!1,eA=0,NY=0,UY=300,tA=1/0,zY=500,Ow=null,Hi=null,Fh=null,nA=0,GB=1,qB=2,VY=3,Oh=0,HY=1,jY=2,$Y=3,KY=4,rA=5,pa=0,Lh=null,$2=null,hu=0,WB=0,YB=-0,ZB=null,GY=null,qY=null,mu=nA,WY=null,T9e=50,Lw=0,XB=null,JB=!1,oA=!1,_9e=50,e1=0,Nw=null,K2=!1,iA=null,YY=!1,ZY=new Set,M9e={},aA=null,G2=null,QB=!1,eD=!1,sA=!1,tD=!1,Nh=0,nD={};(function(){for(var i=0;i<pB.length;i++){var s=pB[i],d=s.toLowerCase();s=s[0].toUpperCase()+s.slice(1),On(d,\"on\"+s)}On(CW,\"onAnimationEnd\"),On(TW,\"onAnimationIteration\"),On(_W,\"onAnimationStart\"),On(\"dblclick\",\"onDoubleClick\"),On(\"focusin\",\"onFocus\"),On(\"focusout\",\"onBlur\"),On(i9e,\"onTransitionRun\"),On(a9e,\"onTransitionStart\"),On(s9e,\"onTransitionCancel\"),On(MW,\"onTransitionEnd\")})(),pr(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),pr(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),pr(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),pr(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),_r(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),_r(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),_r(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),_r(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),_r(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),_r(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var Uw=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),rD=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(Uw)),cA=\"_reactListening\"+Math.random().toString(36).slice(2),XY=!1,JY=!1,lA=!1,QY=!1,uA=!1,dA=!1,eZ=!1,fA={},I9e=/\\\\r\\\\n?/g,R9e=/\\\\u0000|\\\\uFFFD/g,t1=\"http://www.w3.org/1999/xlink\",oD=\"http://www.w3.org/XML/1998/namespace\",P9e=\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\",B9e=\"suppressHydrationWarning\",n1=\"&\",pA=\"/&\",zw=\"$\",Vw=\"/$\",Uh=\"$?\",r1=\"$~\",q2=\"$!\",D9e=\"html\",F9e=\"body\",O9e=\"head\",iD=\"F!\",tZ=\"F\",nZ=\"loading\",L9e=\"style\",Uf=0,W2=1,hA=2,aD=null,sD=null,rZ={dialog:!0,webview:!0},cD=null,Hw=void 0,oZ=typeof setTimeout==\"function\"?setTimeout:void 0,N9e=typeof clearTimeout==\"function\"?clearTimeout:void 0,o1=-1,iZ=typeof Promise==\"function\"?Promise:void 0,U9e=typeof queueMicrotask==\"function\"?queueMicrotask:typeof iZ<\"u\"?function(i){return iZ.resolve(null).then(i).catch(E7e)}:oZ,lD=null,i1=0,jw=1,aZ=2,sZ=3,kl=4,Cl=new Map,cZ=new Set,zf=No.d;No.d={f:function(){var i=zf.f(),s=s2();return i||s},r:function(i){var s=kn(i);s!==null&&s.tag===5&&s.type===\"form\"?kK(s):zf.r(i)},D:function(i){zf.D(i),vq(\"dns-prefetch\",i,null)},C:function(i,s){zf.C(i,s),vq(\"preconnect\",i,s)},L:function(i,s,d){zf.L(i,s,d);var h=Y2;if(h&&i&&s){var v=\\'link[rel=\"preload\"][as=\"\\'+He(s)+\\'\"]\\';s===\"image\"&&d&&d.imageSrcSet?(v+=\\'[imagesrcset=\"\\'+He(d.imageSrcSet)+\\'\"]\\',typeof d.imageSizes==\"string\"&&(v+=\\'[imagesizes=\"\\'+He(d.imageSizes)+\\'\"]\\')):v+=\\'[href=\"\\'+He(i)+\\'\"]\\';var E=v;switch(s){case\"style\":E=u2(i);break;case\"script\":E=d2(i)}Cl.has(E)||(i=ao({rel:\"preload\",href:s===\"image\"&&d&&d.imageSrcSet?void 0:i,as:s},d),Cl.set(E,i),h.querySelector(v)!==null||s===\"style\"&&h.querySelector(Yb(E))||s===\"script\"&&h.querySelector(Zb(E))||(s=h.createElement(\"link\"),Ya(s,\"link\",i),Dn(s),h.head.appendChild(s)))}},m:function(i,s){zf.m(i,s);var d=Y2;if(d&&i){var h=s&&typeof s.as==\"string\"?s.as:\"script\",v=\\'link[rel=\"modulepreload\"][as=\"\\'+He(h)+\\'\"][href=\"\\'+He(i)+\\'\"]\\',E=v;switch(h){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":E=d2(i)}if(!Cl.has(E)&&(i=ao({rel:\"modulepreload\",href:i},s),Cl.set(E,i),d.querySelector(v)===null)){switch(h){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(d.querySelector(Zb(E)))return}h=d.createElement(\"link\"),Ya(h,\"link\",i),Dn(h),d.head.appendChild(h)}}},X:function(i,s){zf.X(i,s);var d=Y2;if(d&&i){var h=_n(d).hoistableScripts,v=d2(i),E=h.get(v);E||(E=d.querySelector(Zb(v)),E||(i=ao({src:i,async:!0},s),(s=Cl.get(v))&&RP(i,s),E=d.createElement(\"script\"),Dn(E),Ya(E,\"link\",i),d.head.appendChild(E)),E={type:\"script\",instance:E,count:1,state:null},h.set(v,E))}},S:function(i,s,d){zf.S(i,s,d);var h=Y2;if(h&&i){var v=_n(h).hoistableStyles,E=u2(i);s=s||\"default\";var j=v.get(E);if(!j){var oe={loading:i1,preload:null};if(j=h.querySelector(Yb(E)))oe.loading=jw|kl;else{i=ao({rel:\"stylesheet\",href:i,\"data-precedence\":s},d),(d=Cl.get(E))&&IP(i,d);var ke=j=h.createElement(\"link\");Dn(ke),Ya(ke,\"link\",i),ke._p=new Promise(function(Fe,Ct){ke.onload=Fe,ke.onerror=Ct}),ke.addEventListener(\"load\",function(){oe.loading|=jw}),ke.addEventListener(\"error\",function(){oe.loading|=aZ}),oe.loading|=kl,l7(j,s,h)}j={type:\"stylesheet\",instance:j,count:1,state:oe},v.set(E,j)}}},M:function(i,s){zf.M(i,s);var d=Y2;if(d&&i){var h=_n(d).hoistableScripts,v=d2(i),E=h.get(v);E||(E=d.querySelector(Zb(v)),E||(i=ao({src:i,async:!0,type:\"module\"},s),(s=Cl.get(v))&&RP(i,s),E=d.createElement(\"script\"),Dn(E),Ya(E,\"link\",i),d.head.appendChild(E)),E={type:\"script\",instance:E,count:1,state:null},h.set(v,E))}}};var Y2=typeof document>\"u\"?null:document,mA=null,z9e=6e4,V9e=800,H9e=500,uD=0,dD=null,gA=null,a1=rAe,$w={$$typeof:sd,Provider:null,Consumer:null,_currentValue:a1,_currentValue2:a1,_threadCount:0},lZ=\"%c%s%c\",uZ=\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",dZ=\"\",yA=\" \",j9e=Function.prototype.bind,fZ=!1,pZ=null,hZ=null,mZ=null,gZ=null,yZ=null,vZ=null,xZ=null,bZ=null,wZ=null,EZ=null;pZ=function(i,s,d,h){s=t(i,s),s!==null&&(d=e(s.memoizedState,d,0,h),s.memoizedState=d,s.baseState=d,i.memoizedProps=ao({},i.memoizedProps),d=nr(i,2),d!==null&&Di(d,i,2))},hZ=function(i,s,d){s=t(i,s),s!==null&&(d=o(s.memoizedState,d,0),s.memoizedState=d,s.baseState=d,i.memoizedProps=ao({},i.memoizedProps),d=nr(i,2),d!==null&&Di(d,i,2))},mZ=function(i,s,d,h){s=t(i,s),s!==null&&(d=n(s.memoizedState,d,h),s.memoizedState=d,s.baseState=d,i.memoizedProps=ao({},i.memoizedProps),d=nr(i,2),d!==null&&Di(d,i,2))},gZ=function(i,s,d){i.pendingProps=e(i.memoizedProps,s,0,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps),s=nr(i,2),s!==null&&Di(s,i,2)},yZ=function(i,s){i.pendingProps=o(i.memoizedProps,s,0),i.alternate&&(i.alternate.pendingProps=i.pendingProps),s=nr(i,2),s!==null&&Di(s,i,2)},vZ=function(i,s,d){i.pendingProps=n(i.memoizedProps,s,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps),s=nr(i,2),s!==null&&Di(s,i,2)},xZ=function(i){var s=nr(i,2);s!==null&&Di(s,i,2)},bZ=function(i){var s=Vt(),d=nr(i,s);d!==null&&Di(d,i,s)},wZ=function(i){c=i},EZ=function(i){a=i};var vA=!0,xA=null,fD=!1,zh=null,Vh=null,Hh=null,Kw=new Map,Gw=new Map,jh=[],$9e=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \"),bA=null;if(h7.prototype.render=LP.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(\"Cannot update an unmounted root.\");var d=arguments;typeof d[1]==\"function\"?console.error(\"does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"):K(d[1])?console.error(\"You passed a container to the second argument of root.render(...). You don\\'t need to pass it again since you already passed it to create the root.\"):typeof d[1]<\"u\"&&console.error(\"You passed a second argument to root.render(...) but it only accepts one argument.\"),d=i;var h=s.current,v=zc(h);PP(h,v,d,s,null,null)},h7.prototype.unmount=LP.prototype.unmount=function(){var i=arguments;if(typeof i[0]==\"function\"&&console.error(\"does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"),i=this._internalRoot,i!==null){this._internalRoot=null;var s=i.containerInfo;(ko&(Sa|Wc))!==Ba&&console.error(\"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.\"),PP(i.current,2,null,i,null,null),s2(),s[xh]=null}},h7.prototype.unstable_scheduleHydration=function(i){if(i){var s=it();i={blockedOn:null,target:i,priority:s};for(var d=0;d<jh.length&&s!==0&&s<jh[d].priority;d++);jh.splice(d,0,i),d===0&&Pq(i)}},(function(){var i=NP.version;if(i!==\"19.2.1\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(i+`\\n  - react-dom:  19.2.1\\nLearn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills\"),No.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render==\"function\"?Error(\"Unable to find node on an unmounted component.\"):(i=Object.keys(i).join(\",\"),Error(\"Argument appears to not be a ReactComponent. Keys: \"+i));return i=ee(s),i=i!==null?J(i):null,i=i===null?null:i.stateNode,i},!(function(){var i={bundleType:1,version:\"19.2.1\",rendererPackageName:\"react-dom\",currentDispatcherRef:an,reconcilerVersion:\"19.2.1\"};return i.overrideHookState=pZ,i.overrideHookStateDeletePath=hZ,i.overrideHookStateRenamePath=mZ,i.overrideProps=gZ,i.overridePropsDeletePath=yZ,i.overridePropsRenamePath=vZ,i.scheduleUpdate=xZ,i.scheduleRetry=bZ,i.setErrorHandler=wZ,i.setSuspenseHandler=EZ,i.scheduleRefresh=T,i.scheduleRoot=A,i.setRefreshHandler=R,i.getCurrentFiber=W7e,Re(i)})()&&fd&&window.top===window.self&&(-1<navigator.userAgent.indexOf(\"Chrome\")&&navigator.userAgent.indexOf(\"Edge\")===-1||-1<navigator.userAgent.indexOf(\"Firefox\"))){var SZ=window.location.protocol;/^(https?|file):$/.test(SZ)&&console.info(\"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools\"+(SZ===\"file:\"?`\\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:\"\"),\"font-weight:bold\")}CA.createRoot=function(i,s){if(!K(i))throw Error(\"Target container is not a DOM element.\");Oq(i);var d=!1,h=\"\",v=BK,E=DK,j=FK;return s!=null&&(s.hydrate?console.warn(\"hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.\"):typeof s==\"object\"&&s!==null&&s.$$typeof===ad&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\\n\\n  let root = createRoot(domContainer);\\n  root.render(<App />);`),s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(E=s.onCaughtError),s.onRecoverableError!==void 0&&(j=s.onRecoverableError)),s=kq(i,1,!1,null,null,d,h,null,v,E,j,Fq),i[xh]=s.current,vP(i),new LP(s)},CA.hydrateRoot=function(i,s,d){if(!K(i))throw Error(\"Target container is not a DOM element.\");Oq(i),s===void 0&&console.error(\"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)\");var h=!1,v=\"\",E=BK,j=DK,oe=FK,ke=null;return d!=null&&(d.unstable_strictMode===!0&&(h=!0),d.identifierPrefix!==void 0&&(v=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(j=d.onCaughtError),d.onRecoverableError!==void 0&&(oe=d.onRecoverableError),d.formState!==void 0&&(ke=d.formState)),s=kq(i,1,!0,s,d??null,h,v,ke,E,j,oe,Fq),s.context=Cq(null),d=s.current,h=zc(d),h=Un(h),v=ch(h),v.callback=null,lh(d,v,h),qu(h,\"hydrateRoot()\",null),d=h,s.current.lanes=d,nn(s,d),od(s),i[xh]=s.current,vP(i),new h7(s)},CA.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var tX=Qr((fHe,eX)=>{\"use strict\";u();eX.exports=QZ()});var RA=Qr((kHe,IA)=>{u();(function(t){\"use strict\";var e=function(fe){var Be,$=new Float64Array(16);if(fe)for(Be=0;Be<fe.length;Be++)$[Be]=fe[Be];return $},n=function(){throw new Error(\"no PRNG\")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),c=e([1]),l=e([56129,1]),f=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),p=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),m=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),g=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),y=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function A(fe,Be,$,M){fe[Be]=$>>24&255,fe[Be+1]=$>>16&255,fe[Be+2]=$>>8&255,fe[Be+3]=$&255,fe[Be+4]=M>>24&255,fe[Be+5]=M>>16&255,fe[Be+6]=M>>8&255,fe[Be+7]=M&255}function T(fe,Be,$,M,re){var H,he=0;for(H=0;H<re;H++)he|=fe[Be+H]^$[M+H];return(1&he-1>>>8)-1}function R(fe,Be,$,M){return T(fe,Be,$,M,16)}function K(fe,Be,$,M){return T(fe,Be,$,M,32)}function O(fe,Be,$,M){for(var re=M[0]&255|(M[1]&255)<<8|(M[2]&255)<<16|(M[3]&255)<<24,H=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,he=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,He=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,nt=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,Rt=M[4]&255|(M[5]&255)<<8|(M[6]&255)<<16|(M[7]&255)<<24,Ft=Be[0]&255|(Be[1]&255)<<8|(Be[2]&255)<<16|(Be[3]&255)<<24,Tn=Be[4]&255|(Be[5]&255)<<8|(Be[6]&255)<<16|(Be[7]&255)<<24,$t=Be[8]&255|(Be[9]&255)<<8|(Be[10]&255)<<16|(Be[11]&255)<<24,Gn=Be[12]&255|(Be[13]&255)<<8|(Be[14]&255)<<16|(Be[15]&255)<<24,cn=M[8]&255|(M[9]&255)<<8|(M[10]&255)<<16|(M[11]&255)<<24,Fn=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,Nn=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,Hn=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,jn=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,In=M[12]&255|(M[13]&255)<<8|(M[14]&255)<<16|(M[15]&255)<<24,sn=re,xn=H,Kt=he,rn=He,Ht=nt,Gt=Rt,vt=Ft,ft=Tn,at=$t,rt=Gn,lt=cn,Et=Fn,Ut=Nn,xe=Hn,Ne=jn,ze=In,Ae,tt=0;tt<20;tt+=2)Ae=sn+Ut|0,Ht^=Ae<<7|Ae>>>25,Ae=Ht+sn|0,at^=Ae<<9|Ae>>>23,Ae=at+Ht|0,Ut^=Ae<<13|Ae>>>19,Ae=Ut+at|0,sn^=Ae<<18|Ae>>>14,Ae=Gt+xn|0,rt^=Ae<<7|Ae>>>25,Ae=rt+Gt|0,xe^=Ae<<9|Ae>>>23,Ae=xe+rt|0,xn^=Ae<<13|Ae>>>19,Ae=xn+xe|0,Gt^=Ae<<18|Ae>>>14,Ae=lt+vt|0,Ne^=Ae<<7|Ae>>>25,Ae=Ne+lt|0,Kt^=Ae<<9|Ae>>>23,Ae=Kt+Ne|0,vt^=Ae<<13|Ae>>>19,Ae=vt+Kt|0,lt^=Ae<<18|Ae>>>14,Ae=ze+Et|0,rn^=Ae<<7|Ae>>>25,Ae=rn+ze|0,ft^=Ae<<9|Ae>>>23,Ae=ft+rn|0,Et^=Ae<<13|Ae>>>19,Ae=Et+ft|0,ze^=Ae<<18|Ae>>>14,Ae=sn+rn|0,xn^=Ae<<7|Ae>>>25,Ae=xn+sn|0,Kt^=Ae<<9|Ae>>>23,Ae=Kt+xn|0,rn^=Ae<<13|Ae>>>19,Ae=rn+Kt|0,sn^=Ae<<18|Ae>>>14,Ae=Gt+Ht|0,vt^=Ae<<7|Ae>>>25,Ae=vt+Gt|0,ft^=Ae<<9|Ae>>>23,Ae=ft+vt|0,Ht^=Ae<<13|Ae>>>19,Ae=Ht+ft|0,Gt^=Ae<<18|Ae>>>14,Ae=lt+rt|0,Et^=Ae<<7|Ae>>>25,Ae=Et+lt|0,at^=Ae<<9|Ae>>>23,Ae=at+Et|0,rt^=Ae<<13|Ae>>>19,Ae=rt+at|0,lt^=Ae<<18|Ae>>>14,Ae=ze+Ne|0,Ut^=Ae<<7|Ae>>>25,Ae=Ut+ze|0,xe^=Ae<<9|Ae>>>23,Ae=xe+Ut|0,Ne^=Ae<<13|Ae>>>19,Ae=Ne+xe|0,ze^=Ae<<18|Ae>>>14;sn=sn+re|0,xn=xn+H|0,Kt=Kt+he|0,rn=rn+He|0,Ht=Ht+nt|0,Gt=Gt+Rt|0,vt=vt+Ft|0,ft=ft+Tn|0,at=at+$t|0,rt=rt+Gn|0,lt=lt+cn|0,Et=Et+Fn|0,Ut=Ut+Nn|0,xe=xe+Hn|0,Ne=Ne+jn|0,ze=ze+In|0,fe[0]=sn>>>0&255,fe[1]=sn>>>8&255,fe[2]=sn>>>16&255,fe[3]=sn>>>24&255,fe[4]=xn>>>0&255,fe[5]=xn>>>8&255,fe[6]=xn>>>16&255,fe[7]=xn>>>24&255,fe[8]=Kt>>>0&255,fe[9]=Kt>>>8&255,fe[10]=Kt>>>16&255,fe[11]=Kt>>>24&255,fe[12]=rn>>>0&255,fe[13]=rn>>>8&255,fe[14]=rn>>>16&255,fe[15]=rn>>>24&255,fe[16]=Ht>>>0&255,fe[17]=Ht>>>8&255,fe[18]=Ht>>>16&255,fe[19]=Ht>>>24&255,fe[20]=Gt>>>0&255,fe[21]=Gt>>>8&255,fe[22]=Gt>>>16&255,fe[23]=Gt>>>24&255,fe[24]=vt>>>0&255,fe[25]=vt>>>8&255,fe[26]=vt>>>16&255,fe[27]=vt>>>24&255,fe[28]=ft>>>0&255,fe[29]=ft>>>8&255,fe[30]=ft>>>16&255,fe[31]=ft>>>24&255,fe[32]=at>>>0&255,fe[33]=at>>>8&255,fe[34]=at>>>16&255,fe[35]=at>>>24&255,fe[36]=rt>>>0&255,fe[37]=rt>>>8&255,fe[38]=rt>>>16&255,fe[39]=rt>>>24&255,fe[40]=lt>>>0&255,fe[41]=lt>>>8&255,fe[42]=lt>>>16&255,fe[43]=lt>>>24&255,fe[44]=Et>>>0&255,fe[45]=Et>>>8&255,fe[46]=Et>>>16&255,fe[47]=Et>>>24&255,fe[48]=Ut>>>0&255,fe[49]=Ut>>>8&255,fe[50]=Ut>>>16&255,fe[51]=Ut>>>24&255,fe[52]=xe>>>0&255,fe[53]=xe>>>8&255,fe[54]=xe>>>16&255,fe[55]=xe>>>24&255,fe[56]=Ne>>>0&255,fe[57]=Ne>>>8&255,fe[58]=Ne>>>16&255,fe[59]=Ne>>>24&255,fe[60]=ze>>>0&255,fe[61]=ze>>>8&255,fe[62]=ze>>>16&255,fe[63]=ze>>>24&255}function V(fe,Be,$,M){for(var re=M[0]&255|(M[1]&255)<<8|(M[2]&255)<<16|(M[3]&255)<<24,H=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,he=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,He=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,nt=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,Rt=M[4]&255|(M[5]&255)<<8|(M[6]&255)<<16|(M[7]&255)<<24,Ft=Be[0]&255|(Be[1]&255)<<8|(Be[2]&255)<<16|(Be[3]&255)<<24,Tn=Be[4]&255|(Be[5]&255)<<8|(Be[6]&255)<<16|(Be[7]&255)<<24,$t=Be[8]&255|(Be[9]&255)<<8|(Be[10]&255)<<16|(Be[11]&255)<<24,Gn=Be[12]&255|(Be[13]&255)<<8|(Be[14]&255)<<16|(Be[15]&255)<<24,cn=M[8]&255|(M[9]&255)<<8|(M[10]&255)<<16|(M[11]&255)<<24,Fn=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,Nn=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,Hn=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,jn=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,In=M[12]&255|(M[13]&255)<<8|(M[14]&255)<<16|(M[15]&255)<<24,sn=re,xn=H,Kt=he,rn=He,Ht=nt,Gt=Rt,vt=Ft,ft=Tn,at=$t,rt=Gn,lt=cn,Et=Fn,Ut=Nn,xe=Hn,Ne=jn,ze=In,Ae,tt=0;tt<20;tt+=2)Ae=sn+Ut|0,Ht^=Ae<<7|Ae>>>25,Ae=Ht+sn|0,at^=Ae<<9|Ae>>>23,Ae=at+Ht|0,Ut^=Ae<<13|Ae>>>19,Ae=Ut+at|0,sn^=Ae<<18|Ae>>>14,Ae=Gt+xn|0,rt^=Ae<<7|Ae>>>25,Ae=rt+Gt|0,xe^=Ae<<9|Ae>>>23,Ae=xe+rt|0,xn^=Ae<<13|Ae>>>19,Ae=xn+xe|0,Gt^=Ae<<18|Ae>>>14,Ae=lt+vt|0,Ne^=Ae<<7|Ae>>>25,Ae=Ne+lt|0,Kt^=Ae<<9|Ae>>>23,Ae=Kt+Ne|0,vt^=Ae<<13|Ae>>>19,Ae=vt+Kt|0,lt^=Ae<<18|Ae>>>14,Ae=ze+Et|0,rn^=Ae<<7|Ae>>>25,Ae=rn+ze|0,ft^=Ae<<9|Ae>>>23,Ae=ft+rn|0,Et^=Ae<<13|Ae>>>19,Ae=Et+ft|0,ze^=Ae<<18|Ae>>>14,Ae=sn+rn|0,xn^=Ae<<7|Ae>>>25,Ae=xn+sn|0,Kt^=Ae<<9|Ae>>>23,Ae=Kt+xn|0,rn^=Ae<<13|Ae>>>19,Ae=rn+Kt|0,sn^=Ae<<18|Ae>>>14,Ae=Gt+Ht|0,vt^=Ae<<7|Ae>>>25,Ae=vt+Gt|0,ft^=Ae<<9|Ae>>>23,Ae=ft+vt|0,Ht^=Ae<<13|Ae>>>19,Ae=Ht+ft|0,Gt^=Ae<<18|Ae>>>14,Ae=lt+rt|0,Et^=Ae<<7|Ae>>>25,Ae=Et+lt|0,at^=Ae<<9|Ae>>>23,Ae=at+Et|0,rt^=Ae<<13|Ae>>>19,Ae=rt+at|0,lt^=Ae<<18|Ae>>>14,Ae=ze+Ne|0,Ut^=Ae<<7|Ae>>>25,Ae=Ut+ze|0,xe^=Ae<<9|Ae>>>23,Ae=xe+Ut|0,Ne^=Ae<<13|Ae>>>19,Ae=Ne+xe|0,ze^=Ae<<18|Ae>>>14;fe[0]=sn>>>0&255,fe[1]=sn>>>8&255,fe[2]=sn>>>16&255,fe[3]=sn>>>24&255,fe[4]=Gt>>>0&255,fe[5]=Gt>>>8&255,fe[6]=Gt>>>16&255,fe[7]=Gt>>>24&255,fe[8]=lt>>>0&255,fe[9]=lt>>>8&255,fe[10]=lt>>>16&255,fe[11]=lt>>>24&255,fe[12]=ze>>>0&255,fe[13]=ze>>>8&255,fe[14]=ze>>>16&255,fe[15]=ze>>>24&255,fe[16]=vt>>>0&255,fe[17]=vt>>>8&255,fe[18]=vt>>>16&255,fe[19]=vt>>>24&255,fe[20]=ft>>>0&255,fe[21]=ft>>>8&255,fe[22]=ft>>>16&255,fe[23]=ft>>>24&255,fe[24]=at>>>0&255,fe[25]=at>>>8&255,fe[26]=at>>>16&255,fe[27]=at>>>24&255,fe[28]=rt>>>0&255,fe[29]=rt>>>8&255,fe[30]=rt>>>16&255,fe[31]=rt>>>24&255}function D(fe,Be,$,M){O(fe,Be,$,M)}function G(fe,Be,$,M){V(fe,Be,$,M)}var ee=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function J(fe,Be,$,M,re,H,he){var He=new Uint8Array(16),nt=new Uint8Array(64),Rt,Ft;for(Ft=0;Ft<16;Ft++)He[Ft]=0;for(Ft=0;Ft<8;Ft++)He[Ft]=H[Ft];for(;re>=64;){for(D(nt,He,he,ee),Ft=0;Ft<64;Ft++)fe[Be+Ft]=$[M+Ft]^nt[Ft];for(Rt=1,Ft=8;Ft<16;Ft++)Rt=Rt+(He[Ft]&255)|0,He[Ft]=Rt&255,Rt>>>=8;re-=64,Be+=64,M+=64}if(re>0)for(D(nt,He,he,ee),Ft=0;Ft<re;Ft++)fe[Be+Ft]=$[M+Ft]^nt[Ft];return 0}function le(fe,Be,$,M,re){var H=new Uint8Array(16),he=new Uint8Array(64),He,nt;for(nt=0;nt<16;nt++)H[nt]=0;for(nt=0;nt<8;nt++)H[nt]=M[nt];for(;$>=64;){for(D(he,H,re,ee),nt=0;nt<64;nt++)fe[Be+nt]=he[nt];for(He=1,nt=8;nt<16;nt++)He=He+(H[nt]&255)|0,H[nt]=He&255,He>>>=8;$-=64,Be+=64}if($>0)for(D(he,H,re,ee),nt=0;nt<$;nt++)fe[Be+nt]=he[nt];return 0}function se(fe,Be,$,M,re){var H=new Uint8Array(32);G(H,M,re,ee);for(var he=new Uint8Array(8),He=0;He<8;He++)he[He]=M[He+16];return le(fe,Be,$,he,H)}function te(fe,Be,$,M,re,H,he){var He=new Uint8Array(32);G(He,H,he,ee);for(var nt=new Uint8Array(8),Rt=0;Rt<8;Rt++)nt[Rt]=H[Rt+16];return J(fe,Be,$,M,re,nt,He)}var S=function(fe){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var Be,$,M,re,H,he,He,nt;Be=fe[0]&255|(fe[1]&255)<<8,this.r[0]=Be&8191,$=fe[2]&255|(fe[3]&255)<<8,this.r[1]=(Be>>>13|$<<3)&8191,M=fe[4]&255|(fe[5]&255)<<8,this.r[2]=($>>>10|M<<6)&7939,re=fe[6]&255|(fe[7]&255)<<8,this.r[3]=(M>>>7|re<<9)&8191,H=fe[8]&255|(fe[9]&255)<<8,this.r[4]=(re>>>4|H<<12)&255,this.r[5]=H>>>1&8190,he=fe[10]&255|(fe[11]&255)<<8,this.r[6]=(H>>>14|he<<2)&8191,He=fe[12]&255|(fe[13]&255)<<8,this.r[7]=(he>>>11|He<<5)&8065,nt=fe[14]&255|(fe[15]&255)<<8,this.r[8]=(He>>>8|nt<<8)&8191,this.r[9]=nt>>>5&127,this.pad[0]=fe[16]&255|(fe[17]&255)<<8,this.pad[1]=fe[18]&255|(fe[19]&255)<<8,this.pad[2]=fe[20]&255|(fe[21]&255)<<8,this.pad[3]=fe[22]&255|(fe[23]&255)<<8,this.pad[4]=fe[24]&255|(fe[25]&255)<<8,this.pad[5]=fe[26]&255|(fe[27]&255)<<8,this.pad[6]=fe[28]&255|(fe[29]&255)<<8,this.pad[7]=fe[30]&255|(fe[31]&255)<<8};S.prototype.blocks=function(fe,Be,$){for(var M=this.fin?0:2048,re,H,he,He,nt,Rt,Ft,Tn,$t,Gn,cn,Fn,Nn,Hn,jn,In,sn,xn,Kt,rn=this.h[0],Ht=this.h[1],Gt=this.h[2],vt=this.h[3],ft=this.h[4],at=this.h[5],rt=this.h[6],lt=this.h[7],Et=this.h[8],Ut=this.h[9],xe=this.r[0],Ne=this.r[1],ze=this.r[2],Ae=this.r[3],tt=this.r[4],Ce=this.r[5],_t=this.r[6],Lt=this.r[7],Dt=this.r[8],yt=this.r[9];$>=16;)re=fe[Be+0]&255|(fe[Be+1]&255)<<8,rn+=re&8191,H=fe[Be+2]&255|(fe[Be+3]&255)<<8,Ht+=(re>>>13|H<<3)&8191,he=fe[Be+4]&255|(fe[Be+5]&255)<<8,Gt+=(H>>>10|he<<6)&8191,He=fe[Be+6]&255|(fe[Be+7]&255)<<8,vt+=(he>>>7|He<<9)&8191,nt=fe[Be+8]&255|(fe[Be+9]&255)<<8,ft+=(He>>>4|nt<<12)&8191,at+=nt>>>1&8191,Rt=fe[Be+10]&255|(fe[Be+11]&255)<<8,rt+=(nt>>>14|Rt<<2)&8191,Ft=fe[Be+12]&255|(fe[Be+13]&255)<<8,lt+=(Rt>>>11|Ft<<5)&8191,Tn=fe[Be+14]&255|(fe[Be+15]&255)<<8,Et+=(Ft>>>8|Tn<<8)&8191,Ut+=Tn>>>5|M,$t=0,Gn=$t,Gn+=rn*xe,Gn+=Ht*(5*yt),Gn+=Gt*(5*Dt),Gn+=vt*(5*Lt),Gn+=ft*(5*_t),$t=Gn>>>13,Gn&=8191,Gn+=at*(5*Ce),Gn+=rt*(5*tt),Gn+=lt*(5*Ae),Gn+=Et*(5*ze),Gn+=Ut*(5*Ne),$t+=Gn>>>13,Gn&=8191,cn=$t,cn+=rn*Ne,cn+=Ht*xe,cn+=Gt*(5*yt),cn+=vt*(5*Dt),cn+=ft*(5*Lt),$t=cn>>>13,cn&=8191,cn+=at*(5*_t),cn+=rt*(5*Ce),cn+=lt*(5*tt),cn+=Et*(5*Ae),cn+=Ut*(5*ze),$t+=cn>>>13,cn&=8191,Fn=$t,Fn+=rn*ze,Fn+=Ht*Ne,Fn+=Gt*xe,Fn+=vt*(5*yt),Fn+=ft*(5*Dt),$t=Fn>>>13,Fn&=8191,Fn+=at*(5*Lt),Fn+=rt*(5*_t),Fn+=lt*(5*Ce),Fn+=Et*(5*tt),Fn+=Ut*(5*Ae),$t+=Fn>>>13,Fn&=8191,Nn=$t,Nn+=rn*Ae,Nn+=Ht*ze,Nn+=Gt*Ne,Nn+=vt*xe,Nn+=ft*(5*yt),$t=Nn>>>13,Nn&=8191,Nn+=at*(5*Dt),Nn+=rt*(5*Lt),Nn+=lt*(5*_t),Nn+=Et*(5*Ce),Nn+=Ut*(5*tt),$t+=Nn>>>13,Nn&=8191,Hn=$t,Hn+=rn*tt,Hn+=Ht*Ae,Hn+=Gt*ze,Hn+=vt*Ne,Hn+=ft*xe,$t=Hn>>>13,Hn&=8191,Hn+=at*(5*yt),Hn+=rt*(5*Dt),Hn+=lt*(5*Lt),Hn+=Et*(5*_t),Hn+=Ut*(5*Ce),$t+=Hn>>>13,Hn&=8191,jn=$t,jn+=rn*Ce,jn+=Ht*tt,jn+=Gt*Ae,jn+=vt*ze,jn+=ft*Ne,$t=jn>>>13,jn&=8191,jn+=at*xe,jn+=rt*(5*yt),jn+=lt*(5*Dt),jn+=Et*(5*Lt),jn+=Ut*(5*_t),$t+=jn>>>13,jn&=8191,In=$t,In+=rn*_t,In+=Ht*Ce,In+=Gt*tt,In+=vt*Ae,In+=ft*ze,$t=In>>>13,In&=8191,In+=at*Ne,In+=rt*xe,In+=lt*(5*yt),In+=Et*(5*Dt),In+=Ut*(5*Lt),$t+=In>>>13,In&=8191,sn=$t,sn+=rn*Lt,sn+=Ht*_t,sn+=Gt*Ce,sn+=vt*tt,sn+=ft*Ae,$t=sn>>>13,sn&=8191,sn+=at*ze,sn+=rt*Ne,sn+=lt*xe,sn+=Et*(5*yt),sn+=Ut*(5*Dt),$t+=sn>>>13,sn&=8191,xn=$t,xn+=rn*Dt,xn+=Ht*Lt,xn+=Gt*_t,xn+=vt*Ce,xn+=ft*tt,$t=xn>>>13,xn&=8191,xn+=at*Ae,xn+=rt*ze,xn+=lt*Ne,xn+=Et*xe,xn+=Ut*(5*yt),$t+=xn>>>13,xn&=8191,Kt=$t,Kt+=rn*yt,Kt+=Ht*Dt,Kt+=Gt*Lt,Kt+=vt*_t,Kt+=ft*Ce,$t=Kt>>>13,Kt&=8191,Kt+=at*tt,Kt+=rt*Ae,Kt+=lt*ze,Kt+=Et*Ne,Kt+=Ut*xe,$t+=Kt>>>13,Kt&=8191,$t=($t<<2)+$t|0,$t=$t+Gn|0,Gn=$t&8191,$t=$t>>>13,cn+=$t,rn=Gn,Ht=cn,Gt=Fn,vt=Nn,ft=Hn,at=jn,rt=In,lt=sn,Et=xn,Ut=Kt,Be+=16,$-=16;this.h[0]=rn,this.h[1]=Ht,this.h[2]=Gt,this.h[3]=vt,this.h[4]=ft,this.h[5]=at,this.h[6]=rt,this.h[7]=lt,this.h[8]=Et,this.h[9]=Ut},S.prototype.finish=function(fe,Be){var $=new Uint16Array(10),M,re,H,he;if(this.leftover){for(he=this.leftover,this.buffer[he++]=1;he<16;he++)this.buffer[he]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(M=this.h[1]>>>13,this.h[1]&=8191,he=2;he<10;he++)this.h[he]+=M,M=this.h[he]>>>13,this.h[he]&=8191;for(this.h[0]+=M*5,M=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=M,M=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=M,$[0]=this.h[0]+5,M=$[0]>>>13,$[0]&=8191,he=1;he<10;he++)$[he]=this.h[he]+M,M=$[he]>>>13,$[he]&=8191;for($[9]-=8192,re=(M^1)-1,he=0;he<10;he++)$[he]&=re;for(re=~re,he=0;he<10;he++)this.h[he]=this.h[he]&re|$[he];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,H=this.h[0]+this.pad[0],this.h[0]=H&65535,he=1;he<8;he++)H=(this.h[he]+this.pad[he]|0)+(H>>>16)|0,this.h[he]=H&65535;fe[Be+0]=this.h[0]>>>0&255,fe[Be+1]=this.h[0]>>>8&255,fe[Be+2]=this.h[1]>>>0&255,fe[Be+3]=this.h[1]>>>8&255,fe[Be+4]=this.h[2]>>>0&255,fe[Be+5]=this.h[2]>>>8&255,fe[Be+6]=this.h[3]>>>0&255,fe[Be+7]=this.h[3]>>>8&255,fe[Be+8]=this.h[4]>>>0&255,fe[Be+9]=this.h[4]>>>8&255,fe[Be+10]=this.h[5]>>>0&255,fe[Be+11]=this.h[5]>>>8&255,fe[Be+12]=this.h[6]>>>0&255,fe[Be+13]=this.h[6]>>>8&255,fe[Be+14]=this.h[7]>>>0&255,fe[Be+15]=this.h[7]>>>8&255},S.prototype.update=function(fe,Be,$){var M,re;if(this.leftover){for(re=16-this.leftover,re>$&&(re=$),M=0;M<re;M++)this.buffer[this.leftover+M]=fe[Be+M];if($-=re,Be+=re,this.leftover+=re,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if($>=16&&(re=$-$%16,this.blocks(fe,Be,re),Be+=re,$-=re),$){for(M=0;M<$;M++)this.buffer[this.leftover+M]=fe[Be+M];this.leftover+=$}};function _(fe,Be,$,M,re,H){var he=new S(H);return he.update($,M,re),he.finish(fe,Be),0}function P(fe,Be,$,M,re,H){var he=new Uint8Array(16);return _(he,0,$,M,re,H),R(fe,Be,he,0)}function z(fe,Be,$,M,re){var H;if($<32)return-1;for(te(fe,0,Be,0,$,M,re),_(fe,16,fe,32,$-32,fe),H=0;H<16;H++)fe[H]=0;return 0}function Y(fe,Be,$,M,re){var H,he=new Uint8Array(32);if($<32||(se(he,0,32,M,re),P(Be,16,Be,32,$-32,he)!==0))return-1;for(te(fe,0,Be,0,$,M,re),H=0;H<32;H++)fe[H]=0;return 0}function L(fe,Be){var $;for($=0;$<16;$++)fe[$]=Be[$]|0}function U(fe){var Be,$,M=1;for(Be=0;Be<16;Be++)$=fe[Be]+M+65535,M=Math.floor($/65536),fe[Be]=$-M*65536;fe[0]+=M-1+37*(M-1)}function W(fe,Be,$){for(var M,re=~($-1),H=0;H<16;H++)M=re&(fe[H]^Be[H]),fe[H]^=M,Be[H]^=M}function w(fe,Be){var $,M,re,H=e(),he=e();for($=0;$<16;$++)he[$]=Be[$];for(U(he),U(he),U(he),M=0;M<2;M++){for(H[0]=he[0]-65517,$=1;$<15;$++)H[$]=he[$]-65535-(H[$-1]>>16&1),H[$-1]&=65535;H[15]=he[15]-32767-(H[14]>>16&1),re=H[15]>>16&1,H[14]&=65535,W(he,H,1-re)}for($=0;$<16;$++)fe[2*$]=he[$]&255,fe[2*$+1]=he[$]>>8}function I(fe,Be){var $=new Uint8Array(32),M=new Uint8Array(32);return w($,fe),w(M,Be),K($,0,M,0)}function ye(fe){var Be=new Uint8Array(32);return w(Be,fe),Be[0]&1}function ne(fe,Be){var $;for($=0;$<16;$++)fe[$]=Be[2*$]+(Be[2*$+1]<<8);fe[15]&=32767}function Q(fe,Be,$){for(var M=0;M<16;M++)fe[M]=Be[M]+$[M]}function ie(fe,Be,$){for(var M=0;M<16;M++)fe[M]=Be[M]-$[M]}function ue(fe,Be,$){var M,re,H=0,he=0,He=0,nt=0,Rt=0,Ft=0,Tn=0,$t=0,Gn=0,cn=0,Fn=0,Nn=0,Hn=0,jn=0,In=0,sn=0,xn=0,Kt=0,rn=0,Ht=0,Gt=0,vt=0,ft=0,at=0,rt=0,lt=0,Et=0,Ut=0,xe=0,Ne=0,ze=0,Ae=$[0],tt=$[1],Ce=$[2],_t=$[3],Lt=$[4],Dt=$[5],yt=$[6],Zt=$[7],Jt=$[8],Qn=$[9],Xn=$[10],tr=$[11],gr=$[12],yr=$[13],Br=$[14],no=$[15];M=Be[0],H+=M*Ae,he+=M*tt,He+=M*Ce,nt+=M*_t,Rt+=M*Lt,Ft+=M*Dt,Tn+=M*yt,$t+=M*Zt,Gn+=M*Jt,cn+=M*Qn,Fn+=M*Xn,Nn+=M*tr,Hn+=M*gr,jn+=M*yr,In+=M*Br,sn+=M*no,M=Be[1],he+=M*Ae,He+=M*tt,nt+=M*Ce,Rt+=M*_t,Ft+=M*Lt,Tn+=M*Dt,$t+=M*yt,Gn+=M*Zt,cn+=M*Jt,Fn+=M*Qn,Nn+=M*Xn,Hn+=M*tr,jn+=M*gr,In+=M*yr,sn+=M*Br,xn+=M*no,M=Be[2],He+=M*Ae,nt+=M*tt,Rt+=M*Ce,Ft+=M*_t,Tn+=M*Lt,$t+=M*Dt,Gn+=M*yt,cn+=M*Zt,Fn+=M*Jt,Nn+=M*Qn,Hn+=M*Xn,jn+=M*tr,In+=M*gr,sn+=M*yr,xn+=M*Br,Kt+=M*no,M=Be[3],nt+=M*Ae,Rt+=M*tt,Ft+=M*Ce,Tn+=M*_t,$t+=M*Lt,Gn+=M*Dt,cn+=M*yt,Fn+=M*Zt,Nn+=M*Jt,Hn+=M*Qn,jn+=M*Xn,In+=M*tr,sn+=M*gr,xn+=M*yr,Kt+=M*Br,rn+=M*no,M=Be[4],Rt+=M*Ae,Ft+=M*tt,Tn+=M*Ce,$t+=M*_t,Gn+=M*Lt,cn+=M*Dt,Fn+=M*yt,Nn+=M*Zt,Hn+=M*Jt,jn+=M*Qn,In+=M*Xn,sn+=M*tr,xn+=M*gr,Kt+=M*yr,rn+=M*Br,Ht+=M*no,M=Be[5],Ft+=M*Ae,Tn+=M*tt,$t+=M*Ce,Gn+=M*_t,cn+=M*Lt,Fn+=M*Dt,Nn+=M*yt,Hn+=M*Zt,jn+=M*Jt,In+=M*Qn,sn+=M*Xn,xn+=M*tr,Kt+=M*gr,rn+=M*yr,Ht+=M*Br,Gt+=M*no,M=Be[6],Tn+=M*Ae,$t+=M*tt,Gn+=M*Ce,cn+=M*_t,Fn+=M*Lt,Nn+=M*Dt,Hn+=M*yt,jn+=M*Zt,In+=M*Jt,sn+=M*Qn,xn+=M*Xn,Kt+=M*tr,rn+=M*gr,Ht+=M*yr,Gt+=M*Br,vt+=M*no,M=Be[7],$t+=M*Ae,Gn+=M*tt,cn+=M*Ce,Fn+=M*_t,Nn+=M*Lt,Hn+=M*Dt,jn+=M*yt,In+=M*Zt,sn+=M*Jt,xn+=M*Qn,Kt+=M*Xn,rn+=M*tr,Ht+=M*gr,Gt+=M*yr,vt+=M*Br,ft+=M*no,M=Be[8],Gn+=M*Ae,cn+=M*tt,Fn+=M*Ce,Nn+=M*_t,Hn+=M*Lt,jn+=M*Dt,In+=M*yt,sn+=M*Zt,xn+=M*Jt,Kt+=M*Qn,rn+=M*Xn,Ht+=M*tr,Gt+=M*gr,vt+=M*yr,ft+=M*Br,at+=M*no,M=Be[9],cn+=M*Ae,Fn+=M*tt,Nn+=M*Ce,Hn+=M*_t,jn+=M*Lt,In+=M*Dt,sn+=M*yt,xn+=M*Zt,Kt+=M*Jt,rn+=M*Qn,Ht+=M*Xn,Gt+=M*tr,vt+=M*gr,ft+=M*yr,at+=M*Br,rt+=M*no,M=Be[10],Fn+=M*Ae,Nn+=M*tt,Hn+=M*Ce,jn+=M*_t,In+=M*Lt,sn+=M*Dt,xn+=M*yt,Kt+=M*Zt,rn+=M*Jt,Ht+=M*Qn,Gt+=M*Xn,vt+=M*tr,ft+=M*gr,at+=M*yr,rt+=M*Br,lt+=M*no,M=Be[11],Nn+=M*Ae,Hn+=M*tt,jn+=M*Ce,In+=M*_t,sn+=M*Lt,xn+=M*Dt,Kt+=M*yt,rn+=M*Zt,Ht+=M*Jt,Gt+=M*Qn,vt+=M*Xn,ft+=M*tr,at+=M*gr,rt+=M*yr,lt+=M*Br,Et+=M*no,M=Be[12],Hn+=M*Ae,jn+=M*tt,In+=M*Ce,sn+=M*_t,xn+=M*Lt,Kt+=M*Dt,rn+=M*yt,Ht+=M*Zt,Gt+=M*Jt,vt+=M*Qn,ft+=M*Xn,at+=M*tr,rt+=M*gr,lt+=M*yr,Et+=M*Br,Ut+=M*no,M=Be[13],jn+=M*Ae,In+=M*tt,sn+=M*Ce,xn+=M*_t,Kt+=M*Lt,rn+=M*Dt,Ht+=M*yt,Gt+=M*Zt,vt+=M*Jt,ft+=M*Qn,at+=M*Xn,rt+=M*tr,lt+=M*gr,Et+=M*yr,Ut+=M*Br,xe+=M*no,M=Be[14],In+=M*Ae,sn+=M*tt,xn+=M*Ce,Kt+=M*_t,rn+=M*Lt,Ht+=M*Dt,Gt+=M*yt,vt+=M*Zt,ft+=M*Jt,at+=M*Qn,rt+=M*Xn,lt+=M*tr,Et+=M*gr,Ut+=M*yr,xe+=M*Br,Ne+=M*no,M=Be[15],sn+=M*Ae,xn+=M*tt,Kt+=M*Ce,rn+=M*_t,Ht+=M*Lt,Gt+=M*Dt,vt+=M*yt,ft+=M*Zt,at+=M*Jt,rt+=M*Qn,lt+=M*Xn,Et+=M*tr,Ut+=M*gr,xe+=M*yr,Ne+=M*Br,ze+=M*no,H+=38*xn,he+=38*Kt,He+=38*rn,nt+=38*Ht,Rt+=38*Gt,Ft+=38*vt,Tn+=38*ft,$t+=38*at,Gn+=38*rt,cn+=38*lt,Fn+=38*Et,Nn+=38*Ut,Hn+=38*xe,jn+=38*Ne,In+=38*ze,re=1,M=H+re+65535,re=Math.floor(M/65536),H=M-re*65536,M=he+re+65535,re=Math.floor(M/65536),he=M-re*65536,M=He+re+65535,re=Math.floor(M/65536),He=M-re*65536,M=nt+re+65535,re=Math.floor(M/65536),nt=M-re*65536,M=Rt+re+65535,re=Math.floor(M/65536),Rt=M-re*65536,M=Ft+re+65535,re=Math.floor(M/65536),Ft=M-re*65536,M=Tn+re+65535,re=Math.floor(M/65536),Tn=M-re*65536,M=$t+re+65535,re=Math.floor(M/65536),$t=M-re*65536,M=Gn+re+65535,re=Math.floor(M/65536),Gn=M-re*65536,M=cn+re+65535,re=Math.floor(M/65536),cn=M-re*65536,M=Fn+re+65535,re=Math.floor(M/65536),Fn=M-re*65536,M=Nn+re+65535,re=Math.floor(M/65536),Nn=M-re*65536,M=Hn+re+65535,re=Math.floor(M/65536),Hn=M-re*65536,M=jn+re+65535,re=Math.floor(M/65536),jn=M-re*65536,M=In+re+65535,re=Math.floor(M/65536),In=M-re*65536,M=sn+re+65535,re=Math.floor(M/65536),sn=M-re*65536,H+=re-1+37*(re-1),re=1,M=H+re+65535,re=Math.floor(M/65536),H=M-re*65536,M=he+re+65535,re=Math.floor(M/65536),he=M-re*65536,M=He+re+65535,re=Math.floor(M/65536),He=M-re*65536,M=nt+re+65535,re=Math.floor(M/65536),nt=M-re*65536,M=Rt+re+65535,re=Math.floor(M/65536),Rt=M-re*65536,M=Ft+re+65535,re=Math.floor(M/65536),Ft=M-re*65536,M=Tn+re+65535,re=Math.floor(M/65536),Tn=M-re*65536,M=$t+re+65535,re=Math.floor(M/65536),$t=M-re*65536,M=Gn+re+65535,re=Math.floor(M/65536),Gn=M-re*65536,M=cn+re+65535,re=Math.floor(M/65536),cn=M-re*65536,M=Fn+re+65535,re=Math.floor(M/65536),Fn=M-re*65536,M=Nn+re+65535,re=Math.floor(M/65536),Nn=M-re*65536,M=Hn+re+65535,re=Math.floor(M/65536),Hn=M-re*65536,M=jn+re+65535,re=Math.floor(M/65536),jn=M-re*65536,M=In+re+65535,re=Math.floor(M/65536),In=M-re*65536,M=sn+re+65535,re=Math.floor(M/65536),sn=M-re*65536,H+=re-1+37*(re-1),fe[0]=H,fe[1]=he,fe[2]=He,fe[3]=nt,fe[4]=Rt,fe[5]=Ft,fe[6]=Tn,fe[7]=$t,fe[8]=Gn,fe[9]=cn,fe[10]=Fn,fe[11]=Nn,fe[12]=Hn,fe[13]=jn,fe[14]=In,fe[15]=sn}function q(fe,Be){ue(fe,Be,Be)}function Ee(fe,Be){var $=e(),M;for(M=0;M<16;M++)$[M]=Be[M];for(M=253;M>=0;M--)q($,$),M!==2&&M!==4&&ue($,$,Be);for(M=0;M<16;M++)fe[M]=$[M]}function we(fe,Be){var $=e(),M;for(M=0;M<16;M++)$[M]=Be[M];for(M=250;M>=0;M--)q($,$),M!==1&&ue($,$,Be);for(M=0;M<16;M++)fe[M]=$[M]}function _e(fe,Be,$){var M=new Uint8Array(32),re=new Float64Array(80),H,he,He=e(),nt=e(),Rt=e(),Ft=e(),Tn=e(),$t=e();for(he=0;he<31;he++)M[he]=Be[he];for(M[31]=Be[31]&127|64,M[0]&=248,ne(re,$),he=0;he<16;he++)nt[he]=re[he],Ft[he]=He[he]=Rt[he]=0;for(He[0]=Ft[0]=1,he=254;he>=0;--he)H=M[he>>>3]>>>(he&7)&1,W(He,nt,H),W(Rt,Ft,H),Q(Tn,He,Rt),ie(He,He,Rt),Q(Rt,nt,Ft),ie(nt,nt,Ft),q(Ft,Tn),q($t,He),ue(He,Rt,He),ue(Rt,nt,Tn),Q(Tn,He,Rt),ie(He,He,Rt),q(nt,He),ie(Rt,Ft,$t),ue(He,Rt,l),Q(He,He,Ft),ue(Rt,Rt,He),ue(He,Ft,$t),ue(Ft,nt,re),q(nt,Tn),W(He,nt,H),W(Rt,Ft,H);for(he=0;he<16;he++)re[he+16]=He[he],re[he+32]=Rt[he],re[he+48]=nt[he],re[he+64]=Ft[he];var Gn=re.subarray(32),cn=re.subarray(16);return Ee(Gn,Gn),ue(cn,cn,Gn),w(fe,cn),0}function B(fe,Be){return _e(fe,Be,o)}function k(fe,Be){return n(Be,32),B(fe,Be)}function C(fe,Be,$){var M=new Uint8Array(32);return _e(M,$,Be),G(fe,r,M,ee)}var Z=z,X=Y;function ae(fe,Be,$,M,re,H){var he=new Uint8Array(32);return C(he,re,H),Z(fe,Be,$,M,he)}function de(fe,Be,$,M,re,H){var he=new Uint8Array(32);return C(he,re,H),X(fe,Be,$,M,he)}var me=[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 Pe(fe,Be,$,M){for(var re=new Int32Array(16),H=new Int32Array(16),he,He,nt,Rt,Ft,Tn,$t,Gn,cn,Fn,Nn,Hn,jn,In,sn,xn,Kt,rn,Ht,Gt,vt,ft,at,rt,lt,Et,Ut=fe[0],xe=fe[1],Ne=fe[2],ze=fe[3],Ae=fe[4],tt=fe[5],Ce=fe[6],_t=fe[7],Lt=Be[0],Dt=Be[1],yt=Be[2],Zt=Be[3],Jt=Be[4],Qn=Be[5],Xn=Be[6],tr=Be[7],gr=0;M>=128;){for(Ht=0;Ht<16;Ht++)Gt=8*Ht+gr,re[Ht]=$[Gt+0]<<24|$[Gt+1]<<16|$[Gt+2]<<8|$[Gt+3],H[Ht]=$[Gt+4]<<24|$[Gt+5]<<16|$[Gt+6]<<8|$[Gt+7];for(Ht=0;Ht<80;Ht++)if(he=Ut,He=xe,nt=Ne,Rt=ze,Ft=Ae,Tn=tt,$t=Ce,Gn=_t,cn=Lt,Fn=Dt,Nn=yt,Hn=Zt,jn=Jt,In=Qn,sn=Xn,xn=tr,vt=_t,ft=tr,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=(Ae>>>14|Jt<<18)^(Ae>>>18|Jt<<14)^(Jt>>>9|Ae<<23),ft=(Jt>>>14|Ae<<18)^(Jt>>>18|Ae<<14)^(Ae>>>9|Jt<<23),at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,vt=Ae&tt^~Ae&Ce,ft=Jt&Qn^~Jt&Xn,at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,vt=me[Ht*2],ft=me[Ht*2+1],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,vt=re[Ht%16],ft=H[Ht%16],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,Kt=lt&65535|Et<<16,rn=at&65535|rt<<16,vt=Kt,ft=rn,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=(Ut>>>28|Lt<<4)^(Lt>>>2|Ut<<30)^(Lt>>>7|Ut<<25),ft=(Lt>>>28|Ut<<4)^(Ut>>>2|Lt<<30)^(Ut>>>7|Lt<<25),at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,vt=Ut&xe^Ut&Ne^xe&Ne,ft=Lt&Dt^Lt&yt^Dt&yt,at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,Gn=lt&65535|Et<<16,xn=at&65535|rt<<16,vt=Rt,ft=Hn,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=Kt,ft=rn,at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,Rt=lt&65535|Et<<16,Hn=at&65535|rt<<16,xe=he,Ne=He,ze=nt,Ae=Rt,tt=Ft,Ce=Tn,_t=$t,Ut=Gn,Dt=cn,yt=Fn,Zt=Nn,Jt=Hn,Qn=jn,Xn=In,tr=sn,Lt=xn,Ht%16===15)for(Gt=0;Gt<16;Gt++)vt=re[Gt],ft=H[Gt],at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=re[(Gt+9)%16],ft=H[(Gt+9)%16],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,Kt=re[(Gt+1)%16],rn=H[(Gt+1)%16],vt=(Kt>>>1|rn<<31)^(Kt>>>8|rn<<24)^Kt>>>7,ft=(rn>>>1|Kt<<31)^(rn>>>8|Kt<<24)^(rn>>>7|Kt<<25),at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,Kt=re[(Gt+14)%16],rn=H[(Gt+14)%16],vt=(Kt>>>19|rn<<13)^(rn>>>29|Kt<<3)^Kt>>>6,ft=(rn>>>19|Kt<<13)^(Kt>>>29|rn<<3)^(rn>>>6|Kt<<26),at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,re[Gt]=lt&65535|Et<<16,H[Gt]=at&65535|rt<<16;vt=Ut,ft=Lt,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[0],ft=Be[0],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[0]=Ut=lt&65535|Et<<16,Be[0]=Lt=at&65535|rt<<16,vt=xe,ft=Dt,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[1],ft=Be[1],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[1]=xe=lt&65535|Et<<16,Be[1]=Dt=at&65535|rt<<16,vt=Ne,ft=yt,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[2],ft=Be[2],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[2]=Ne=lt&65535|Et<<16,Be[2]=yt=at&65535|rt<<16,vt=ze,ft=Zt,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[3],ft=Be[3],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[3]=ze=lt&65535|Et<<16,Be[3]=Zt=at&65535|rt<<16,vt=Ae,ft=Jt,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[4],ft=Be[4],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[4]=Ae=lt&65535|Et<<16,Be[4]=Jt=at&65535|rt<<16,vt=tt,ft=Qn,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[5],ft=Be[5],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[5]=tt=lt&65535|Et<<16,Be[5]=Qn=at&65535|rt<<16,vt=Ce,ft=Xn,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[6],ft=Be[6],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[6]=Ce=lt&65535|Et<<16,Be[6]=Xn=at&65535|rt<<16,vt=_t,ft=tr,at=ft&65535,rt=ft>>>16,lt=vt&65535,Et=vt>>>16,vt=fe[7],ft=Be[7],at+=ft&65535,rt+=ft>>>16,lt+=vt&65535,Et+=vt>>>16,rt+=at>>>16,lt+=rt>>>16,Et+=lt>>>16,fe[7]=_t=lt&65535|Et<<16,Be[7]=tr=at&65535|rt<<16,gr+=128,M-=128}return M}function De(fe,Be,$){var M=new Int32Array(8),re=new Int32Array(8),H=new Uint8Array(256),he,He=$;for(M[0]=1779033703,M[1]=3144134277,M[2]=1013904242,M[3]=2773480762,M[4]=1359893119,M[5]=2600822924,M[6]=528734635,M[7]=1541459225,re[0]=4089235720,re[1]=2227873595,re[2]=4271175723,re[3]=1595750129,re[4]=2917565137,re[5]=725511199,re[6]=4215389547,re[7]=327033209,Pe(M,re,Be,$),$%=128,he=0;he<$;he++)H[he]=Be[He-$+he];for(H[$]=128,$=256-128*($<112?1:0),H[$-9]=0,A(H,$-8,He/536870912|0,He<<3),Pe(M,re,H,$),he=0;he<8;he++)A(fe,8*he,M[he],re[he]);return 0}function Re(fe,Be){var $=e(),M=e(),re=e(),H=e(),he=e(),He=e(),nt=e(),Rt=e(),Ft=e();ie($,fe[1],fe[0]),ie(Ft,Be[1],Be[0]),ue($,$,Ft),Q(M,fe[0],fe[1]),Q(Ft,Be[0],Be[1]),ue(M,M,Ft),ue(re,fe[3],Be[3]),ue(re,re,p),ue(H,fe[2],Be[2]),Q(H,H,H),ie(he,M,$),ie(He,H,re),Q(nt,H,re),Q(Rt,M,$),ue(fe[0],he,He),ue(fe[1],Rt,nt),ue(fe[2],nt,He),ue(fe[3],he,Rt)}function qe(fe,Be,$){var M;for(M=0;M<4;M++)W(fe[M],Be[M],$)}function et(fe,Be){var $=e(),M=e(),re=e();Ee(re,Be[2]),ue($,Be[0],re),ue(M,Be[1],re),w(fe,M),fe[31]^=ye($)<<7}function ot(fe,Be,$){var M,re;for(L(fe[0],a),L(fe[1],c),L(fe[2],c),L(fe[3],a),re=255;re>=0;--re)M=$[re/8|0]>>(re&7)&1,qe(fe,Be,M),Re(Be,fe),Re(fe,fe),qe(fe,Be,M)}function Qe(fe,Be){var $=[e(),e(),e(),e()];L($[0],m),L($[1],g),L($[2],c),ue($[3],m,g),ot(fe,$,Be)}function xt(fe,Be,$){var M=new Uint8Array(64),re=[e(),e(),e(),e()],H;for($||n(Be,32),De(M,Be,32),M[0]&=248,M[31]&=127,M[31]|=64,Qe(re,M),et(fe,re),H=0;H<32;H++)Be[H+32]=fe[H];return 0}var Wt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Vt(fe,Be){var $,M,re,H;for(M=63;M>=32;--M){for($=0,re=M-32,H=M-12;re<H;++re)Be[re]+=$-16*Be[M]*Wt[re-(M-32)],$=Math.floor((Be[re]+128)/256),Be[re]-=$*256;Be[re]+=$,Be[M]=0}for($=0,re=0;re<32;re++)Be[re]+=$-(Be[31]>>4)*Wt[re],$=Be[re]>>8,Be[re]&=255;for(re=0;re<32;re++)Be[re]-=$*Wt[re];for(M=0;M<32;M++)Be[M+1]+=Be[M]>>8,fe[M]=Be[M]&255}function Bt(fe){var Be=new Float64Array(64),$;for($=0;$<64;$++)Be[$]=fe[$];for($=0;$<64;$++)fe[$]=0;Vt(fe,Be)}function nn(fe,Be,$,M){var re=new Uint8Array(64),H=new Uint8Array(64),he=new Uint8Array(64),He,nt,Rt=new Float64Array(64),Ft=[e(),e(),e(),e()];De(re,M,32),re[0]&=248,re[31]&=127,re[31]|=64;var Tn=$+64;for(He=0;He<$;He++)fe[64+He]=Be[He];for(He=0;He<32;He++)fe[32+He]=re[32+He];for(De(he,fe.subarray(32),$+32),Bt(he),Qe(Ft,he),et(fe,Ft),He=32;He<64;He++)fe[He]=M[He];for(De(H,fe,$+64),Bt(H),He=0;He<64;He++)Rt[He]=0;for(He=0;He<32;He++)Rt[He]=he[He];for(He=0;He<32;He++)for(nt=0;nt<32;nt++)Rt[He+nt]+=H[He]*re[nt];return Vt(fe.subarray(32),Rt),Tn}function Yt(fe,Be){var $=e(),M=e(),re=e(),H=e(),he=e(),He=e(),nt=e();return L(fe[2],c),ne(fe[1],Be),q(re,fe[1]),ue(H,re,f),ie(re,re,fe[2]),Q(H,fe[2],H),q(he,H),q(He,he),ue(nt,He,he),ue($,nt,re),ue($,$,H),we($,$),ue($,$,re),ue($,$,H),ue($,$,H),ue(fe[0],$,H),q(M,fe[0]),ue(M,M,H),I(M,re)&&ue(fe[0],fe[0],y),q(M,fe[0]),ue(M,M,H),I(M,re)?-1:(ye(fe[0])===Be[31]>>7&&ie(fe[0],a,fe[0]),ue(fe[3],fe[0],fe[1]),0)}function hn(fe,Be,$,M){var re,H=new Uint8Array(32),he=new Uint8Array(64),He=[e(),e(),e(),e()],nt=[e(),e(),e(),e()];if($<64||Yt(nt,M))return-1;for(re=0;re<$;re++)fe[re]=Be[re];for(re=0;re<32;re++)fe[re+32]=M[re];if(De(he,fe,$),Bt(he),ot(He,nt,he),Qe(nt,Be.subarray(32)),Re(He,nt),et(H,He),$-=64,K(Be,0,H,0)){for(re=0;re<$;re++)fe[re]=0;return-1}for(re=0;re<$;re++)fe[re]=Be[re+64];return $}var Pn=32,Mn=24,Un=32,Wn=16,Kn=32,Se=32,it=32,Nt=32,tn=32,pn=Mn,kn=Un,zn=Wn,_n=64,Dn=32,_r=64,pr=32,vr=64;t.lowlevel={crypto_core_hsalsa20:G,crypto_stream_xor:te,crypto_stream:se,crypto_stream_salsa20_xor:J,crypto_stream_salsa20:le,crypto_onetimeauth:_,crypto_onetimeauth_verify:P,crypto_verify_16:R,crypto_verify_32:K,crypto_secretbox:z,crypto_secretbox_open:Y,crypto_scalarmult:_e,crypto_scalarmult_base:B,crypto_box_beforenm:C,crypto_box_afternm:Z,crypto_box:ae,crypto_box_open:de,crypto_box_keypair:k,crypto_hash:De,crypto_sign:nn,crypto_sign_keypair:xt,crypto_sign_open:hn,crypto_secretbox_KEYBYTES:Pn,crypto_secretbox_NONCEBYTES:Mn,crypto_secretbox_ZEROBYTES:Un,crypto_secretbox_BOXZEROBYTES:Wn,crypto_scalarmult_BYTES:Kn,crypto_scalarmult_SCALARBYTES:Se,crypto_box_PUBLICKEYBYTES:it,crypto_box_SECRETKEYBYTES:Nt,crypto_box_BEFORENMBYTES:tn,crypto_box_NONCEBYTES:pn,crypto_box_ZEROBYTES:kn,crypto_box_BOXZEROBYTES:zn,crypto_sign_BYTES:_n,crypto_sign_PUBLICKEYBYTES:Dn,crypto_sign_SECRETKEYBYTES:_r,crypto_sign_SEEDBYTES:pr,crypto_hash_BYTES:vr,gf:e,D:f,L:Wt,pack25519:w,unpack25519:ne,M:ue,A:Q,S:q,Z:ie,pow2523:we,add:Re,set25519:L,modL:Vt,scalarmult:ot,scalarbase:Qe};function vo(fe,Be){if(fe.length!==Pn)throw new Error(\"bad key size\");if(Be.length!==Mn)throw new Error(\"bad nonce size\")}function jr(fe,Be){if(fe.length!==it)throw new Error(\"bad public key size\");if(Be.length!==Nt)throw new Error(\"bad secret key size\")}function Mr(){for(var fe=0;fe<arguments.length;fe++)if(!(arguments[fe]instanceof Uint8Array))throw new TypeError(\"unexpected type, use Uint8Array\")}function wi(fe){for(var Be=0;Be<fe.length;Be++)fe[Be]=0}t.randomBytes=function(fe){var Be=new Uint8Array(fe);return n(Be,fe),Be},t.secretbox=function(fe,Be,$){Mr(fe,Be,$),vo($,Be);for(var M=new Uint8Array(Un+fe.length),re=new Uint8Array(M.length),H=0;H<fe.length;H++)M[H+Un]=fe[H];return z(re,M,M.length,Be,$),re.subarray(Wn)},t.secretbox.open=function(fe,Be,$){Mr(fe,Be,$),vo($,Be);for(var M=new Uint8Array(Wn+fe.length),re=new Uint8Array(M.length),H=0;H<fe.length;H++)M[H+Wn]=fe[H];return M.length<32||Y(re,M,M.length,Be,$)!==0?null:re.subarray(Un)},t.secretbox.keyLength=Pn,t.secretbox.nonceLength=Mn,t.secretbox.overheadLength=Wn,t.scalarMult=function(fe,Be){if(Mr(fe,Be),fe.length!==Se)throw new Error(\"bad n size\");if(Be.length!==Kn)throw new Error(\"bad p size\");var $=new Uint8Array(Kn);return _e($,fe,Be),$},t.scalarMult.base=function(fe){if(Mr(fe),fe.length!==Se)throw new Error(\"bad n size\");var Be=new Uint8Array(Kn);return B(Be,fe),Be},t.scalarMult.scalarLength=Se,t.scalarMult.groupElementLength=Kn,t.box=function(fe,Be,$,M){var re=t.box.before($,M);return t.secretbox(fe,Be,re)},t.box.before=function(fe,Be){Mr(fe,Be),jr(fe,Be);var $=new Uint8Array(tn);return C($,fe,Be),$},t.box.after=t.secretbox,t.box.open=function(fe,Be,$,M){var re=t.box.before($,M);return t.secretbox.open(fe,Be,re)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var fe=new Uint8Array(it),Be=new Uint8Array(Nt);return k(fe,Be),{publicKey:fe,secretKey:Be}},t.box.keyPair.fromSecretKey=function(fe){if(Mr(fe),fe.length!==Nt)throw new Error(\"bad secret key size\");var Be=new Uint8Array(it);return B(Be,fe),{publicKey:Be,secretKey:new Uint8Array(fe)}},t.box.publicKeyLength=it,t.box.secretKeyLength=Nt,t.box.sharedKeyLength=tn,t.box.nonceLength=pn,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(fe,Be){if(Mr(fe,Be),Be.length!==_r)throw new Error(\"bad secret key size\");var $=new Uint8Array(_n+fe.length);return nn($,fe,fe.length,Be),$},t.sign.open=function(fe,Be){if(Mr(fe,Be),Be.length!==Dn)throw new Error(\"bad public key size\");var $=new Uint8Array(fe.length),M=hn($,fe,fe.length,Be);if(M<0)return null;for(var re=new Uint8Array(M),H=0;H<re.length;H++)re[H]=$[H];return re},t.sign.detached=function(fe,Be){for(var $=t.sign(fe,Be),M=new Uint8Array(_n),re=0;re<M.length;re++)M[re]=$[re];return M},t.sign.detached.verify=function(fe,Be,$){if(Mr(fe,Be,$),Be.length!==_n)throw new Error(\"bad signature size\");if($.length!==Dn)throw new Error(\"bad public key size\");var M=new Uint8Array(_n+fe.length),re=new Uint8Array(_n+fe.length),H;for(H=0;H<_n;H++)M[H]=Be[H];for(H=0;H<fe.length;H++)M[H+_n]=fe[H];return hn(re,M,M.length,$)>=0},t.sign.keyPair=function(){var fe=new Uint8Array(Dn),Be=new Uint8Array(_r);return xt(fe,Be),{publicKey:fe,secretKey:Be}},t.sign.keyPair.fromSecretKey=function(fe){if(Mr(fe),fe.length!==_r)throw new Error(\"bad secret key size\");for(var Be=new Uint8Array(Dn),$=0;$<Be.length;$++)Be[$]=fe[32+$];return{publicKey:Be,secretKey:new Uint8Array(fe)}},t.sign.keyPair.fromSeed=function(fe){if(Mr(fe),fe.length!==pr)throw new Error(\"bad seed size\");for(var Be=new Uint8Array(Dn),$=new Uint8Array(_r),M=0;M<32;M++)$[M]=fe[M];return xt(Be,$,!0),{publicKey:Be,secretKey:$}},t.sign.publicKeyLength=Dn,t.sign.secretKeyLength=_r,t.sign.seedLength=pr,t.sign.signatureLength=_n,t.hash=function(fe){Mr(fe);var Be=new Uint8Array(vr);return De(Be,fe,fe.length),Be},t.hash.hashLength=vr,t.verify=function(fe,Be){return Mr(fe,Be),fe.length===0||Be.length===0||fe.length!==Be.length?!1:T(fe,0,Be,0,fe.length)===0},t.setPRNG=function(fe){n=fe},(function(){var fe=typeof self<\"u\"?self.crypto||self.msCrypto:null;if(fe&&fe.getRandomValues){var Be=65536;t.setPRNG(function($,M){var re,H=new Uint8Array(M);for(re=0;re<M;re+=Be)fe.getRandomValues(H.subarray(re,re+Math.min(M-re,Be)));for(re=0;re<M;re++)$[re]=H[re];wi(H)})}else typeof ha<\"u\"&&(fe=ha(\"crypto\"),fe&&fe.randomBytes&&t.setPRNG(function($,M){var re,H=fe.randomBytes(M);for(re=0;re<M;re++)$[re]=H[re];wi(H)}))})()})(typeof IA<\"u\"&&IA.exports?IA.exports:self.nacl=self.nacl||{})});var aX=Qr((_He,PA)=>{u();(function(){\"use strict\";var t=\"input is invalid type\",e=\"finalize already called\",n=typeof window==\"object\",r=n?window:{};r.JS_SHA512_NO_WINDOW&&(n=!1);var o=!n&&typeof self==\"object\",a=!r.JS_SHA512_NO_NODE_JS&&typeof process==\"object\"&&process.versions&&process.versions.node;a?r=globalThis:o&&(r=self);var c=!r.JS_SHA512_NO_COMMON_JS&&typeof PA==\"object\"&&PA.exports,l=typeof define==\"function\"&&define.amd,f=!r.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<\"u\",p=\"0123456789abcdef\".split(\"\"),m=[-2147483648,8388608,32768,128],g=[24,16,8,0],y=[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],A=[\"hex\",\"array\",\"digest\",\"arrayBuffer\"],T=[];(r.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(J){return Object.prototype.toString.call(J)===\"[object Array]\"}),f&&(r.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(J){return typeof J==\"object\"&&J.buffer&&J.buffer.constructor===ArrayBuffer});var R=function(J,le){return function(se){return new D(le,!0).update(se)[J]()}},K=function(J){var le=R(\"hex\",J);le.create=function(){return new D(J)},le.update=function(S){return le.create().update(S)};for(var se=0;se<A.length;++se){var te=A[se];le[te]=R(te,J)}return le},O=function(J,le){return function(se,te){return new G(se,le,!0).update(te)[J]()}},V=function(J){var le=O(\"hex\",J);le.create=function(S){return new G(S,J)},le.update=function(S,_){return le.create(S).update(_)};for(var se=0;se<A.length;++se){var te=A[se];le[te]=O(te,J)}return le};function D(J,le){le?(T[0]=T[1]=T[2]=T[3]=T[4]=T[5]=T[6]=T[7]=T[8]=T[9]=T[10]=T[11]=T[12]=T[13]=T[14]=T[15]=T[16]=T[17]=T[18]=T[19]=T[20]=T[21]=T[22]=T[23]=T[24]=T[25]=T[26]=T[27]=T[28]=T[29]=T[30]=T[31]=T[32]=0,this.blocks=T):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):J==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):J==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=J,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}D.prototype.update=function(J){if(this.finalized)throw new Error(e);var le,se=typeof J;if(se!==\"string\"){if(se===\"object\"){if(J===null)throw new Error(t);if(f&&J.constructor===ArrayBuffer)J=new Uint8Array(J);else if(!Array.isArray(J)&&(!f||!ArrayBuffer.isView(J)))throw new Error(t)}else throw new Error(t);le=!0}for(var te,S=0,_,P=J.length,z=this.blocks;S<P;){if(this.hashed&&(this.hashed=!1,z[0]=this.block,z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=z[16]=z[17]=z[18]=z[19]=z[20]=z[21]=z[22]=z[23]=z[24]=z[25]=z[26]=z[27]=z[28]=z[29]=z[30]=z[31]=z[32]=0),le)for(_=this.start;S<P&&_<128;++S)z[_>>2]|=J[S]<<g[_++&3];else for(_=this.start;S<P&&_<128;++S)te=J.charCodeAt(S),te<128?z[_>>2]|=te<<g[_++&3]:te<2048?(z[_>>2]|=(192|te>>6)<<g[_++&3],z[_>>2]|=(128|te&63)<<g[_++&3]):te<55296||te>=57344?(z[_>>2]|=(224|te>>12)<<g[_++&3],z[_>>2]|=(128|te>>6&63)<<g[_++&3],z[_>>2]|=(128|te&63)<<g[_++&3]):(te=65536+((te&1023)<<10|J.charCodeAt(++S)&1023),z[_>>2]|=(240|te>>18)<<g[_++&3],z[_>>2]|=(128|te>>12&63)<<g[_++&3],z[_>>2]|=(128|te>>6&63)<<g[_++&3],z[_>>2]|=(128|te&63)<<g[_++&3]);this.lastByteIndex=_,this.bytes+=_-this.start,_>=128?(this.block=z[32],this.start=_-128,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},D.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var J=this.blocks,le=this.lastByteIndex;J[32]=this.block,J[le>>2]|=m[le&3],this.block=J[32],le>=112&&(this.hashed||this.hash(),J[0]=this.block,J[1]=J[2]=J[3]=J[4]=J[5]=J[6]=J[7]=J[8]=J[9]=J[10]=J[11]=J[12]=J[13]=J[14]=J[15]=J[16]=J[17]=J[18]=J[19]=J[20]=J[21]=J[22]=J[23]=J[24]=J[25]=J[26]=J[27]=J[28]=J[29]=J[30]=J[31]=J[32]=0),J[30]=this.hBytes<<3|this.bytes>>>29,J[31]=this.bytes<<3,this.hash()}},D.prototype.hash=function(){var J=this.h0h,le=this.h0l,se=this.h1h,te=this.h1l,S=this.h2h,_=this.h2l,P=this.h3h,z=this.h3l,Y=this.h4h,L=this.h4l,U=this.h5h,W=this.h5l,w=this.h6h,I=this.h6l,ye=this.h7h,ne=this.h7l,Q=this.blocks,ie,ue,q,Ee,we,_e,B,k,C,Z,X,ae,de,me,Pe,De,Re,qe,et,ot,Qe,xt,Wt,Vt,Bt;for(ie=32;ie<160;ie+=2)ot=Q[ie-30],Qe=Q[ie-29],ue=(ot>>>1|Qe<<31)^(ot>>>8|Qe<<24)^ot>>>7,q=(Qe>>>1|ot<<31)^(Qe>>>8|ot<<24)^(Qe>>>7|ot<<25),ot=Q[ie-4],Qe=Q[ie-3],Ee=(ot>>>19|Qe<<13)^(Qe>>>29|ot<<3)^ot>>>6,we=(Qe>>>19|ot<<13)^(ot>>>29|Qe<<3)^(Qe>>>6|ot<<26),ot=Q[ie-32],Qe=Q[ie-31],xt=Q[ie-14],Wt=Q[ie-13],_e=(Wt&65535)+(Qe&65535)+(q&65535)+(we&65535),B=(Wt>>>16)+(Qe>>>16)+(q>>>16)+(we>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(ue&65535)+(Ee&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(ue>>>16)+(Ee>>>16)+(k>>>16),Q[ie]=C<<16|k&65535,Q[ie+1]=B<<16|_e&65535;var nn=J,Yt=le,hn=se,Pn=te,Mn=S,Un=_,Wn=P,Kn=z,Se=Y,it=L,Nt=U,tn=W,pn=w,kn=I,zn=ye,_n=ne;for(De=hn&Mn,Re=Pn&Un,ie=0;ie<160;ie+=8)ue=(nn>>>28|Yt<<4)^(Yt>>>2|nn<<30)^(Yt>>>7|nn<<25),q=(Yt>>>28|nn<<4)^(nn>>>2|Yt<<30)^(nn>>>7|Yt<<25),Ee=(Se>>>14|it<<18)^(Se>>>18|it<<14)^(it>>>9|Se<<23),we=(it>>>14|Se<<18)^(it>>>18|Se<<14)^(Se>>>9|it<<23),Z=nn&hn,X=Yt&Pn,qe=Z^nn&Mn^De,et=X^Yt&Un^Re,Vt=Se&Nt^~Se&pn,Bt=it&tn^~it&kn,ot=Q[ie],Qe=Q[ie+1],xt=y[ie],Wt=y[ie+1],_e=(Wt&65535)+(Qe&65535)+(Bt&65535)+(we&65535)+(_n&65535),B=(Wt>>>16)+(Qe>>>16)+(Bt>>>16)+(we>>>16)+(_n>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(Vt&65535)+(Ee&65535)+(zn&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(Vt>>>16)+(Ee>>>16)+(zn>>>16)+(k>>>16),ot=C<<16|k&65535,Qe=B<<16|_e&65535,_e=(et&65535)+(q&65535),B=(et>>>16)+(q>>>16)+(_e>>>16),k=(qe&65535)+(ue&65535)+(B>>>16),C=(qe>>>16)+(ue>>>16)+(k>>>16),xt=C<<16|k&65535,Wt=B<<16|_e&65535,_e=(Kn&65535)+(Qe&65535),B=(Kn>>>16)+(Qe>>>16)+(_e>>>16),k=(Wn&65535)+(ot&65535)+(B>>>16),C=(Wn>>>16)+(ot>>>16)+(k>>>16),zn=C<<16|k&65535,_n=B<<16|_e&65535,_e=(Wt&65535)+(Qe&65535),B=(Wt>>>16)+(Qe>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(k>>>16),Wn=C<<16|k&65535,Kn=B<<16|_e&65535,ue=(Wn>>>28|Kn<<4)^(Kn>>>2|Wn<<30)^(Kn>>>7|Wn<<25),q=(Kn>>>28|Wn<<4)^(Wn>>>2|Kn<<30)^(Wn>>>7|Kn<<25),Ee=(zn>>>14|_n<<18)^(zn>>>18|_n<<14)^(_n>>>9|zn<<23),we=(_n>>>14|zn<<18)^(_n>>>18|zn<<14)^(zn>>>9|_n<<23),ae=Wn&nn,de=Kn&Yt,qe=ae^Wn&hn^Z,et=de^Kn&Pn^X,Vt=zn&Se^~zn&Nt,Bt=_n&it^~_n&tn,ot=Q[ie+2],Qe=Q[ie+3],xt=y[ie+2],Wt=y[ie+3],_e=(Wt&65535)+(Qe&65535)+(Bt&65535)+(we&65535)+(kn&65535),B=(Wt>>>16)+(Qe>>>16)+(Bt>>>16)+(we>>>16)+(kn>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(Vt&65535)+(Ee&65535)+(pn&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(Vt>>>16)+(Ee>>>16)+(pn>>>16)+(k>>>16),ot=C<<16|k&65535,Qe=B<<16|_e&65535,_e=(et&65535)+(q&65535),B=(et>>>16)+(q>>>16)+(_e>>>16),k=(qe&65535)+(ue&65535)+(B>>>16),C=(qe>>>16)+(ue>>>16)+(k>>>16),xt=C<<16|k&65535,Wt=B<<16|_e&65535,_e=(Un&65535)+(Qe&65535),B=(Un>>>16)+(Qe>>>16)+(_e>>>16),k=(Mn&65535)+(ot&65535)+(B>>>16),C=(Mn>>>16)+(ot>>>16)+(k>>>16),pn=C<<16|k&65535,kn=B<<16|_e&65535,_e=(Wt&65535)+(Qe&65535),B=(Wt>>>16)+(Qe>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(k>>>16),Mn=C<<16|k&65535,Un=B<<16|_e&65535,ue=(Mn>>>28|Un<<4)^(Un>>>2|Mn<<30)^(Un>>>7|Mn<<25),q=(Un>>>28|Mn<<4)^(Mn>>>2|Un<<30)^(Mn>>>7|Un<<25),Ee=(pn>>>14|kn<<18)^(pn>>>18|kn<<14)^(kn>>>9|pn<<23),we=(kn>>>14|pn<<18)^(kn>>>18|pn<<14)^(pn>>>9|kn<<23),me=Mn&Wn,Pe=Un&Kn,qe=me^Mn&nn^ae,et=Pe^Un&Yt^de,Vt=pn&zn^~pn&Se,Bt=kn&_n^~kn&it,ot=Q[ie+4],Qe=Q[ie+5],xt=y[ie+4],Wt=y[ie+5],_e=(Wt&65535)+(Qe&65535)+(Bt&65535)+(we&65535)+(tn&65535),B=(Wt>>>16)+(Qe>>>16)+(Bt>>>16)+(we>>>16)+(tn>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(Vt&65535)+(Ee&65535)+(Nt&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(Vt>>>16)+(Ee>>>16)+(Nt>>>16)+(k>>>16),ot=C<<16|k&65535,Qe=B<<16|_e&65535,_e=(et&65535)+(q&65535),B=(et>>>16)+(q>>>16)+(_e>>>16),k=(qe&65535)+(ue&65535)+(B>>>16),C=(qe>>>16)+(ue>>>16)+(k>>>16),xt=C<<16|k&65535,Wt=B<<16|_e&65535,_e=(Pn&65535)+(Qe&65535),B=(Pn>>>16)+(Qe>>>16)+(_e>>>16),k=(hn&65535)+(ot&65535)+(B>>>16),C=(hn>>>16)+(ot>>>16)+(k>>>16),Nt=C<<16|k&65535,tn=B<<16|_e&65535,_e=(Wt&65535)+(Qe&65535),B=(Wt>>>16)+(Qe>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(k>>>16),hn=C<<16|k&65535,Pn=B<<16|_e&65535,ue=(hn>>>28|Pn<<4)^(Pn>>>2|hn<<30)^(Pn>>>7|hn<<25),q=(Pn>>>28|hn<<4)^(hn>>>2|Pn<<30)^(hn>>>7|Pn<<25),Ee=(Nt>>>14|tn<<18)^(Nt>>>18|tn<<14)^(tn>>>9|Nt<<23),we=(tn>>>14|Nt<<18)^(tn>>>18|Nt<<14)^(Nt>>>9|tn<<23),De=hn&Mn,Re=Pn&Un,qe=De^hn&Wn^me,et=Re^Pn&Kn^Pe,Vt=Nt&pn^~Nt&zn,Bt=tn&kn^~tn&_n,ot=Q[ie+6],Qe=Q[ie+7],xt=y[ie+6],Wt=y[ie+7],_e=(Wt&65535)+(Qe&65535)+(Bt&65535)+(we&65535)+(it&65535),B=(Wt>>>16)+(Qe>>>16)+(Bt>>>16)+(we>>>16)+(it>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(Vt&65535)+(Ee&65535)+(Se&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(Vt>>>16)+(Ee>>>16)+(Se>>>16)+(k>>>16),ot=C<<16|k&65535,Qe=B<<16|_e&65535,_e=(et&65535)+(q&65535),B=(et>>>16)+(q>>>16)+(_e>>>16),k=(qe&65535)+(ue&65535)+(B>>>16),C=(qe>>>16)+(ue>>>16)+(k>>>16),xt=C<<16|k&65535,Wt=B<<16|_e&65535,_e=(Yt&65535)+(Qe&65535),B=(Yt>>>16)+(Qe>>>16)+(_e>>>16),k=(nn&65535)+(ot&65535)+(B>>>16),C=(nn>>>16)+(ot>>>16)+(k>>>16),Se=C<<16|k&65535,it=B<<16|_e&65535,_e=(Wt&65535)+(Qe&65535),B=(Wt>>>16)+(Qe>>>16)+(_e>>>16),k=(xt&65535)+(ot&65535)+(B>>>16),C=(xt>>>16)+(ot>>>16)+(k>>>16),nn=C<<16|k&65535,Yt=B<<16|_e&65535;_e=(le&65535)+(Yt&65535),B=(le>>>16)+(Yt>>>16)+(_e>>>16),k=(J&65535)+(nn&65535)+(B>>>16),C=(J>>>16)+(nn>>>16)+(k>>>16),this.h0h=C<<16|k&65535,this.h0l=B<<16|_e&65535,_e=(te&65535)+(Pn&65535),B=(te>>>16)+(Pn>>>16)+(_e>>>16),k=(se&65535)+(hn&65535)+(B>>>16),C=(se>>>16)+(hn>>>16)+(k>>>16),this.h1h=C<<16|k&65535,this.h1l=B<<16|_e&65535,_e=(_&65535)+(Un&65535),B=(_>>>16)+(Un>>>16)+(_e>>>16),k=(S&65535)+(Mn&65535)+(B>>>16),C=(S>>>16)+(Mn>>>16)+(k>>>16),this.h2h=C<<16|k&65535,this.h2l=B<<16|_e&65535,_e=(z&65535)+(Kn&65535),B=(z>>>16)+(Kn>>>16)+(_e>>>16),k=(P&65535)+(Wn&65535)+(B>>>16),C=(P>>>16)+(Wn>>>16)+(k>>>16),this.h3h=C<<16|k&65535,this.h3l=B<<16|_e&65535,_e=(L&65535)+(it&65535),B=(L>>>16)+(it>>>16)+(_e>>>16),k=(Y&65535)+(Se&65535)+(B>>>16),C=(Y>>>16)+(Se>>>16)+(k>>>16),this.h4h=C<<16|k&65535,this.h4l=B<<16|_e&65535,_e=(W&65535)+(tn&65535),B=(W>>>16)+(tn>>>16)+(_e>>>16),k=(U&65535)+(Nt&65535)+(B>>>16),C=(U>>>16)+(Nt>>>16)+(k>>>16),this.h5h=C<<16|k&65535,this.h5l=B<<16|_e&65535,_e=(I&65535)+(kn&65535),B=(I>>>16)+(kn>>>16)+(_e>>>16),k=(w&65535)+(pn&65535)+(B>>>16),C=(w>>>16)+(pn>>>16)+(k>>>16),this.h6h=C<<16|k&65535,this.h6l=B<<16|_e&65535,_e=(ne&65535)+(_n&65535),B=(ne>>>16)+(_n>>>16)+(_e>>>16),k=(ye&65535)+(zn&65535)+(B>>>16),C=(ye>>>16)+(zn>>>16)+(k>>>16),this.h7h=C<<16|k&65535,this.h7l=B<<16|_e&65535},D.prototype.hex=function(){this.finalize();var J=this.h0h,le=this.h0l,se=this.h1h,te=this.h1l,S=this.h2h,_=this.h2l,P=this.h3h,z=this.h3l,Y=this.h4h,L=this.h4l,U=this.h5h,W=this.h5l,w=this.h6h,I=this.h6l,ye=this.h7h,ne=this.h7l,Q=this.bits,ie=p[J>>28&15]+p[J>>24&15]+p[J>>20&15]+p[J>>16&15]+p[J>>12&15]+p[J>>8&15]+p[J>>4&15]+p[J&15]+p[le>>28&15]+p[le>>24&15]+p[le>>20&15]+p[le>>16&15]+p[le>>12&15]+p[le>>8&15]+p[le>>4&15]+p[le&15]+p[se>>28&15]+p[se>>24&15]+p[se>>20&15]+p[se>>16&15]+p[se>>12&15]+p[se>>8&15]+p[se>>4&15]+p[se&15]+p[te>>28&15]+p[te>>24&15]+p[te>>20&15]+p[te>>16&15]+p[te>>12&15]+p[te>>8&15]+p[te>>4&15]+p[te&15]+p[S>>28&15]+p[S>>24&15]+p[S>>20&15]+p[S>>16&15]+p[S>>12&15]+p[S>>8&15]+p[S>>4&15]+p[S&15]+p[_>>28&15]+p[_>>24&15]+p[_>>20&15]+p[_>>16&15]+p[_>>12&15]+p[_>>8&15]+p[_>>4&15]+p[_&15]+p[P>>28&15]+p[P>>24&15]+p[P>>20&15]+p[P>>16&15]+p[P>>12&15]+p[P>>8&15]+p[P>>4&15]+p[P&15];return Q>=256&&(ie+=p[z>>28&15]+p[z>>24&15]+p[z>>20&15]+p[z>>16&15]+p[z>>12&15]+p[z>>8&15]+p[z>>4&15]+p[z&15]),Q>=384&&(ie+=p[Y>>28&15]+p[Y>>24&15]+p[Y>>20&15]+p[Y>>16&15]+p[Y>>12&15]+p[Y>>8&15]+p[Y>>4&15]+p[Y&15]+p[L>>28&15]+p[L>>24&15]+p[L>>20&15]+p[L>>16&15]+p[L>>12&15]+p[L>>8&15]+p[L>>4&15]+p[L&15]+p[U>>28&15]+p[U>>24&15]+p[U>>20&15]+p[U>>16&15]+p[U>>12&15]+p[U>>8&15]+p[U>>4&15]+p[U&15]+p[W>>28&15]+p[W>>24&15]+p[W>>20&15]+p[W>>16&15]+p[W>>12&15]+p[W>>8&15]+p[W>>4&15]+p[W&15]),Q==512&&(ie+=p[w>>28&15]+p[w>>24&15]+p[w>>20&15]+p[w>>16&15]+p[w>>12&15]+p[w>>8&15]+p[w>>4&15]+p[w&15]+p[I>>28&15]+p[I>>24&15]+p[I>>20&15]+p[I>>16&15]+p[I>>12&15]+p[I>>8&15]+p[I>>4&15]+p[I&15]+p[ye>>28&15]+p[ye>>24&15]+p[ye>>20&15]+p[ye>>16&15]+p[ye>>12&15]+p[ye>>8&15]+p[ye>>4&15]+p[ye&15]+p[ne>>28&15]+p[ne>>24&15]+p[ne>>20&15]+p[ne>>16&15]+p[ne>>12&15]+p[ne>>8&15]+p[ne>>4&15]+p[ne&15]),ie},D.prototype.toString=D.prototype.hex,D.prototype.digest=function(){this.finalize();var J=this.h0h,le=this.h0l,se=this.h1h,te=this.h1l,S=this.h2h,_=this.h2l,P=this.h3h,z=this.h3l,Y=this.h4h,L=this.h4l,U=this.h5h,W=this.h5l,w=this.h6h,I=this.h6l,ye=this.h7h,ne=this.h7l,Q=this.bits,ie=[J>>24&255,J>>16&255,J>>8&255,J&255,le>>24&255,le>>16&255,le>>8&255,le&255,se>>24&255,se>>16&255,se>>8&255,se&255,te>>24&255,te>>16&255,te>>8&255,te&255,S>>24&255,S>>16&255,S>>8&255,S&255,_>>24&255,_>>16&255,_>>8&255,_&255,P>>24&255,P>>16&255,P>>8&255,P&255];return Q>=256&&ie.push(z>>24&255,z>>16&255,z>>8&255,z&255),Q>=384&&ie.push(Y>>24&255,Y>>16&255,Y>>8&255,Y&255,L>>24&255,L>>16&255,L>>8&255,L&255,U>>24&255,U>>16&255,U>>8&255,U&255,W>>24&255,W>>16&255,W>>8&255,W&255),Q==512&&ie.push(w>>24&255,w>>16&255,w>>8&255,w&255,I>>24&255,I>>16&255,I>>8&255,I&255,ye>>24&255,ye>>16&255,ye>>8&255,ye&255,ne>>24&255,ne>>16&255,ne>>8&255,ne&255),ie},D.prototype.array=D.prototype.digest,D.prototype.arrayBuffer=function(){this.finalize();var J=this.bits,le=new ArrayBuffer(J/8),se=new DataView(le);return se.setUint32(0,this.h0h),se.setUint32(4,this.h0l),se.setUint32(8,this.h1h),se.setUint32(12,this.h1l),se.setUint32(16,this.h2h),se.setUint32(20,this.h2l),se.setUint32(24,this.h3h),J>=256&&se.setUint32(28,this.h3l),J>=384&&(se.setUint32(32,this.h4h),se.setUint32(36,this.h4l),se.setUint32(40,this.h5h),se.setUint32(44,this.h5l)),J==512&&(se.setUint32(48,this.h6h),se.setUint32(52,this.h6l),se.setUint32(56,this.h7h),se.setUint32(60,this.h7l)),le},D.prototype.clone=function(){var J=new D(this.bits,!1);return this.copyTo(J),J},D.prototype.copyTo=function(J){var le=0,se=[\"h0h\",\"h0l\",\"h1h\",\"h1l\",\"h2h\",\"h2l\",\"h3h\",\"h3l\",\"h4h\",\"h4l\",\"h5h\",\"h5l\",\"h6h\",\"h6l\",\"h7h\",\"h7l\",\"start\",\"bytes\",\"hBytes\",\"finalized\",\"hashed\",\"lastByteIndex\"];for(le=0;le<se.length;++le)J[se[le]]=this[se[le]];for(le=0;le<this.blocks.length;++le)J.blocks[le]=this.blocks[le]};function G(J,le,se){var te,S=typeof J;if(S!==\"string\"){if(S===\"object\"){if(J===null)throw new Error(t);if(f&&J.constructor===ArrayBuffer)J=new Uint8Array(J);else if(!Array.isArray(J)&&(!f||!ArrayBuffer.isView(J)))throw new Error(t)}else throw new Error(t);te=!0}var _=J.length;if(!te){for(var P=[],_=J.length,z=0,Y,L=0;L<_;++L)Y=J.charCodeAt(L),Y<128?P[z++]=Y:Y<2048?(P[z++]=192|Y>>6,P[z++]=128|Y&63):Y<55296||Y>=57344?(P[z++]=224|Y>>12,P[z++]=128|Y>>6&63,P[z++]=128|Y&63):(Y=65536+((Y&1023)<<10|J.charCodeAt(++L)&1023),P[z++]=240|Y>>18,P[z++]=128|Y>>12&63,P[z++]=128|Y>>6&63,P[z++]=128|Y&63);J=P}J.length>128&&(J=new D(le,!0).update(J).array());for(var U=[],W=[],L=0;L<128;++L){var w=J[L]||0;U[L]=92^w,W[L]=54^w}D.call(this,le,se),this.update(W),this.oKeyPad=U,this.inner=!0,this.sharedMemory=se}G.prototype=new D,G.prototype.finalize=function(){if(D.prototype.finalize.call(this),this.inner){this.inner=!1;var J=this.array();D.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(J),D.prototype.finalize.call(this)}},G.prototype.clone=function(){var J=new G([],this.bits,!1);this.copyTo(J),J.inner=this.inner;for(var le=0;le<this.oKeyPad.length;++le)J.oKeyPad[le]=this.oKeyPad[le];return J};var ee=K(512);ee.sha512=ee,ee.sha384=K(384),ee.sha512_256=K(256),ee.sha512_224=K(224),ee.sha512.hmac=V(512),ee.sha384.hmac=V(384),ee.sha512_256.hmac=V(256),ee.sha512_224.hmac=V(224),c?PA.exports=ee:(r.sha512=ee.sha512,r.sha384=ee.sha384,r.sha512_256=ee.sha512_256,r.sha512_224=ee.sha512_224,l&&define(function(){return ee}))})()});var CD=Qr((sX,BA)=>{u();(function(t){\"use strict\";var e,n=/^-?(?:\\\\d+(?:\\\\.\\\\d*)?|\\\\.\\\\d+)(?:e[+-]?\\\\d+)?$/i,r=Math.ceil,o=Math.floor,a=\"[BigNumber Error] \",c=a+\"Number primitive has more than 15 significant digits: \",l=1e14,f=14,p=9007199254740991,m=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,y=1e9;function A(ee){var J,le,se,te=ie.prototype={constructor:ie,toString:null,valueOf:null},S=new ie(1),_=20,P=4,z=-7,Y=21,L=-1e7,U=1e7,W=!1,w=1,I=0,ye={prefix:\"\",groupSize:3,secondaryGroupSize:0,groupSeparator:\",\",decimalSeparator:\".\",fractionGroupSize:0,fractionGroupSeparator:\"\\\\xA0\",suffix:\"\"},ne=\"0123456789abcdefghijklmnopqrstuvwxyz\",Q=!0;function ie(B,k){var C,Z,X,ae,de,me,Pe,De,Re=this;if(!(Re instanceof ie))return new ie(B,k);if(k==null){if(B&&B._isBigNumber===!0){Re.s=B.s,!B.c||B.e>U?Re.c=Re.e=null:B.e<L?Re.c=[Re.e=0]:(Re.e=B.e,Re.c=B.c.slice());return}if((me=typeof B==\"number\")&&B*0==0){if(Re.s=1/B<0?(B=-B,-1):1,B===~~B){for(ae=0,de=B;de>=10;de/=10,ae++);ae>U?Re.c=Re.e=null:(Re.e=ae,Re.c=[B]);return}De=String(B)}else{if(!n.test(De=String(B)))return se(Re,De,me);Re.s=De.charCodeAt(0)==45?(De=De.slice(1),-1):1}(ae=De.indexOf(\".\"))>-1&&(De=De.replace(\".\",\"\")),(de=De.search(/e/i))>0?(ae<0&&(ae=de),ae+=+De.slice(de+1),De=De.substring(0,de)):ae<0&&(ae=De.length)}else{if(O(k,2,ne.length,\"Base\"),k==10&&Q)return Re=new ie(B),we(Re,_+Re.e+1,P);if(De=String(B),me=typeof B==\"number\"){if(B*0!=0)return se(Re,De,me,k);if(Re.s=1/B<0?(De=De.slice(1),-1):1,ie.DEBUG&&De.replace(/^0\\\\.0*|\\\\./,\"\").length>15)throw Error(c+B)}else Re.s=De.charCodeAt(0)===45?(De=De.slice(1),-1):1;for(C=ne.slice(0,k),ae=de=0,Pe=De.length;de<Pe;de++)if(C.indexOf(Z=De.charAt(de))<0){if(Z==\".\"){if(de>ae){ae=Pe;continue}}else if(!X&&(De==De.toUpperCase()&&(De=De.toLowerCase())||De==De.toLowerCase()&&(De=De.toUpperCase()))){X=!0,de=-1,ae=0;continue}return se(Re,String(B),me,k)}me=!1,De=le(De,k,10,Re.s),(ae=De.indexOf(\".\"))>-1?De=De.replace(\".\",\"\"):ae=De.length}for(de=0;De.charCodeAt(de)===48;de++);for(Pe=De.length;De.charCodeAt(--Pe)===48;);if(De=De.slice(de,++Pe)){if(Pe-=de,me&&ie.DEBUG&&Pe>15&&(B>p||B!==o(B)))throw Error(c+Re.s*B);if((ae=ae-de-1)>U)Re.c=Re.e=null;else if(ae<L)Re.c=[Re.e=0];else{if(Re.e=ae,Re.c=[],de=(ae+1)%f,ae<0&&(de+=f),de<Pe){for(de&&Re.c.push(+De.slice(0,de)),Pe-=f;de<Pe;)Re.c.push(+De.slice(de,de+=f));de=f-(De=De.slice(de)).length}else de-=Pe;for(;de--;De+=\"0\");Re.c.push(+De)}}else Re.c=[Re.e=0]}ie.clone=A,ie.ROUND_UP=0,ie.ROUND_DOWN=1,ie.ROUND_CEIL=2,ie.ROUND_FLOOR=3,ie.ROUND_HALF_UP=4,ie.ROUND_HALF_DOWN=5,ie.ROUND_HALF_EVEN=6,ie.ROUND_HALF_CEIL=7,ie.ROUND_HALF_FLOOR=8,ie.EUCLID=9,ie.config=ie.set=function(B){var k,C;if(B!=null)if(typeof B==\"object\"){if(B.hasOwnProperty(k=\"DECIMAL_PLACES\")&&(C=B[k],O(C,0,y,k),_=C),B.hasOwnProperty(k=\"ROUNDING_MODE\")&&(C=B[k],O(C,0,8,k),P=C),B.hasOwnProperty(k=\"EXPONENTIAL_AT\")&&(C=B[k],C&&C.pop?(O(C[0],-y,0,k),O(C[1],0,y,k),z=C[0],Y=C[1]):(O(C,-y,y,k),z=-(Y=C<0?-C:C))),B.hasOwnProperty(k=\"RANGE\"))if(C=B[k],C&&C.pop)O(C[0],-y,-1,k),O(C[1],1,y,k),L=C[0],U=C[1];else if(O(C,-y,y,k),C)L=-(U=C<0?-C:C);else throw Error(a+k+\" cannot be zero: \"+C);if(B.hasOwnProperty(k=\"CRYPTO\"))if(C=B[k],C===!!C)if(C)if(typeof crypto<\"u\"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))W=C;else throw W=!C,Error(a+\"crypto unavailable\");else W=C;else throw Error(a+k+\" not true or false: \"+C);if(B.hasOwnProperty(k=\"MODULO_MODE\")&&(C=B[k],O(C,0,9,k),w=C),B.hasOwnProperty(k=\"POW_PRECISION\")&&(C=B[k],O(C,0,y,k),I=C),B.hasOwnProperty(k=\"FORMAT\"))if(C=B[k],typeof C==\"object\")ye=C;else throw Error(a+k+\" not an object: \"+C);if(B.hasOwnProperty(k=\"ALPHABET\"))if(C=B[k],typeof C==\"string\"&&!/^.?$|[+\\\\-.\\\\s]|(.).*\\\\1/.test(C))Q=C.slice(0,10)==\"0123456789\",ne=C;else throw Error(a+k+\" invalid: \"+C)}else throw Error(a+\"Object expected: \"+B);return{DECIMAL_PLACES:_,ROUNDING_MODE:P,EXPONENTIAL_AT:[z,Y],RANGE:[L,U],CRYPTO:W,MODULO_MODE:w,POW_PRECISION:I,FORMAT:ye,ALPHABET:ne}},ie.isBigNumber=function(B){if(!B||B._isBigNumber!==!0)return!1;if(!ie.DEBUG)return!0;var k,C,Z=B.c,X=B.e,ae=B.s;e:if({}.toString.call(Z)==\"[object Array]\"){if((ae===1||ae===-1)&&X>=-y&&X<=y&&X===o(X)){if(Z[0]===0){if(X===0&&Z.length===1)return!0;break e}if(k=(X+1)%f,k<1&&(k+=f),String(Z[0]).length==k){for(k=0;k<Z.length;k++)if(C=Z[k],C<0||C>=l||C!==o(C))break e;if(C!==0)return!0}}}else if(Z===null&&X===null&&(ae===null||ae===1||ae===-1))return!0;throw Error(a+\"Invalid BigNumber: \"+B)},ie.maximum=ie.max=function(){return q(arguments,-1)},ie.minimum=ie.min=function(){return q(arguments,1)},ie.random=(function(){var B=9007199254740992,k=Math.random()*B&2097151?function(){return o(Math.random()*B)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(C){var Z,X,ae,de,me,Pe=0,De=[],Re=new ie(S);if(C==null?C=_:O(C,0,y),de=r(C/f),W)if(crypto.getRandomValues){for(Z=crypto.getRandomValues(new Uint32Array(de*=2));Pe<de;)me=Z[Pe]*131072+(Z[Pe+1]>>>11),me>=9e15?(X=crypto.getRandomValues(new Uint32Array(2)),Z[Pe]=X[0],Z[Pe+1]=X[1]):(De.push(me%1e14),Pe+=2);Pe=de/2}else if(crypto.randomBytes){for(Z=crypto.randomBytes(de*=7);Pe<de;)me=(Z[Pe]&31)*281474976710656+Z[Pe+1]*1099511627776+Z[Pe+2]*4294967296+Z[Pe+3]*16777216+(Z[Pe+4]<<16)+(Z[Pe+5]<<8)+Z[Pe+6],me>=9e15?crypto.randomBytes(7).copy(Z,Pe):(De.push(me%1e14),Pe+=7);Pe=de/7}else throw W=!1,Error(a+\"crypto unavailable\");if(!W)for(;Pe<de;)me=k(),me<9e15&&(De[Pe++]=me%1e14);for(de=De[--Pe],C%=f,de&&C&&(me=m[f-C],De[Pe]=o(de/me)*me);De[Pe]===0;De.pop(),Pe--);if(Pe<0)De=[ae=0];else{for(ae=-1;De[0]===0;De.splice(0,1),ae-=f);for(Pe=1,me=De[0];me>=10;me/=10,Pe++);Pe<f&&(ae-=f-Pe)}return Re.e=ae,Re.c=De,Re}})(),ie.sum=function(){for(var B=1,k=arguments,C=new ie(k[0]);B<k.length;)C=C.plus(k[B++]);return C},le=(function(){var B=\"0123456789\";function k(C,Z,X,ae){for(var de,me=[0],Pe,De=0,Re=C.length;De<Re;){for(Pe=me.length;Pe--;me[Pe]*=Z);for(me[0]+=ae.indexOf(C.charAt(De++)),de=0;de<me.length;de++)me[de]>X-1&&(me[de+1]==null&&(me[de+1]=0),me[de+1]+=me[de]/X|0,me[de]%=X)}return me.reverse()}return function(C,Z,X,ae,de){var me,Pe,De,Re,qe,et,ot,Qe,xt=C.indexOf(\".\"),Wt=_,Vt=P;for(xt>=0&&(Re=I,I=0,C=C.replace(\".\",\"\"),Qe=new ie(Z),et=Qe.pow(C.length-xt),I=Re,Qe.c=k(G(R(et.c),et.e,\"0\"),10,X,B),Qe.e=Qe.c.length),ot=k(C,Z,X,de?(me=ne,B):(me=B,ne)),De=Re=ot.length;ot[--Re]==0;ot.pop());if(!ot[0])return me.charAt(0);if(xt<0?--De:(et.c=ot,et.e=De,et.s=ae,et=J(et,Qe,Wt,Vt,X),ot=et.c,qe=et.r,De=et.e),Pe=De+Wt+1,xt=ot[Pe],Re=X/2,qe=qe||Pe<0||ot[Pe+1]!=null,qe=Vt<4?(xt!=null||qe)&&(Vt==0||Vt==(et.s<0?3:2)):xt>Re||xt==Re&&(Vt==4||qe||Vt==6&&ot[Pe-1]&1||Vt==(et.s<0?8:7)),Pe<1||!ot[0])C=qe?G(me.charAt(1),-Wt,me.charAt(0)):me.charAt(0);else{if(ot.length=Pe,qe)for(--X;++ot[--Pe]>X;)ot[Pe]=0,Pe||(++De,ot=[1].concat(ot));for(Re=ot.length;!ot[--Re];);for(xt=0,C=\"\";xt<=Re;C+=me.charAt(ot[xt++]));C=G(C,De,me.charAt(0))}return C}})(),J=(function(){function B(Z,X,ae){var de,me,Pe,De,Re=0,qe=Z.length,et=X%g,ot=X/g|0;for(Z=Z.slice();qe--;)Pe=Z[qe]%g,De=Z[qe]/g|0,de=ot*Pe+De*et,me=et*Pe+de%g*g+Re,Re=(me/ae|0)+(de/g|0)+ot*De,Z[qe]=me%ae;return Re&&(Z=[Re].concat(Z)),Z}function k(Z,X,ae,de){var me,Pe;if(ae!=de)Pe=ae>de?1:-1;else for(me=Pe=0;me<ae;me++)if(Z[me]!=X[me]){Pe=Z[me]>X[me]?1:-1;break}return Pe}function C(Z,X,ae,de){for(var me=0;ae--;)Z[ae]-=me,me=Z[ae]<X[ae]?1:0,Z[ae]=me*de+Z[ae]-X[ae];for(;!Z[0]&&Z.length>1;Z.splice(0,1));}return function(Z,X,ae,de,me){var Pe,De,Re,qe,et,ot,Qe,xt,Wt,Vt,Bt,nn,Yt,hn,Pn,Mn,Un,Wn=Z.s==X.s?1:-1,Kn=Z.c,Se=X.c;if(!Kn||!Kn[0]||!Se||!Se[0])return new ie(!Z.s||!X.s||(Kn?Se&&Kn[0]==Se[0]:!Se)?NaN:Kn&&Kn[0]==0||!Se?Wn*0:Wn/0);for(xt=new ie(Wn),Wt=xt.c=[],De=Z.e-X.e,Wn=ae+De+1,me||(me=l,De=T(Z.e/f)-T(X.e/f),Wn=Wn/f|0),Re=0;Se[Re]==(Kn[Re]||0);Re++);if(Se[Re]>(Kn[Re]||0)&&De--,Wn<0)Wt.push(1),qe=!0;else{for(hn=Kn.length,Mn=Se.length,Re=0,Wn+=2,et=o(me/(Se[0]+1)),et>1&&(Se=B(Se,et,me),Kn=B(Kn,et,me),Mn=Se.length,hn=Kn.length),Yt=Mn,Vt=Kn.slice(0,Mn),Bt=Vt.length;Bt<Mn;Vt[Bt++]=0);Un=Se.slice(),Un=[0].concat(Un),Pn=Se[0],Se[1]>=me/2&&Pn++;do{if(et=0,Pe=k(Se,Vt,Mn,Bt),Pe<0){if(nn=Vt[0],Mn!=Bt&&(nn=nn*me+(Vt[1]||0)),et=o(nn/Pn),et>1)for(et>=me&&(et=me-1),ot=B(Se,et,me),Qe=ot.length,Bt=Vt.length;k(ot,Vt,Qe,Bt)==1;)et--,C(ot,Mn<Qe?Un:Se,Qe,me),Qe=ot.length,Pe=1;else et==0&&(Pe=et=1),ot=Se.slice(),Qe=ot.length;if(Qe<Bt&&(ot=[0].concat(ot)),C(Vt,ot,Bt,me),Bt=Vt.length,Pe==-1)for(;k(Se,Vt,Mn,Bt)<1;)et++,C(Vt,Mn<Bt?Un:Se,Bt,me),Bt=Vt.length}else Pe===0&&(et++,Vt=[0]);Wt[Re++]=et,Vt[0]?Vt[Bt++]=Kn[Yt]||0:(Vt=[Kn[Yt]],Bt=1)}while((Yt++<hn||Vt[0]!=null)&&Wn--);qe=Vt[0]!=null,Wt[0]||Wt.splice(0,1)}if(me==l){for(Re=1,Wn=Wt[0];Wn>=10;Wn/=10,Re++);we(xt,ae+(xt.e=Re+De*f-1)+1,de,qe)}else xt.e=De,xt.r=+qe;return xt}})();function ue(B,k,C,Z){var X,ae,de,me,Pe;if(C==null?C=P:O(C,0,8),!B.c)return B.toString();if(X=B.c[0],de=B.e,k==null)Pe=R(B.c),Pe=Z==1||Z==2&&(de<=z||de>=Y)?D(Pe,de):G(Pe,de,\"0\");else if(B=we(new ie(B),k,C),ae=B.e,Pe=R(B.c),me=Pe.length,Z==1||Z==2&&(k<=ae||ae<=z)){for(;me<k;Pe+=\"0\",me++);Pe=D(Pe,ae)}else if(k-=de+(Z===2&&ae>de),Pe=G(Pe,ae,\"0\"),ae+1>me){if(--k>0)for(Pe+=\".\";k--;Pe+=\"0\");}else if(k+=ae-me,k>0)for(ae+1==me&&(Pe+=\".\");k--;Pe+=\"0\");return B.s<0&&X?\"-\"+Pe:Pe}function q(B,k){for(var C,Z,X=1,ae=new ie(B[0]);X<B.length;X++)Z=new ie(B[X]),(!Z.s||(C=K(ae,Z))===k||C===0&&ae.s===k)&&(ae=Z);return ae}function Ee(B,k,C){for(var Z=1,X=k.length;!k[--X];k.pop());for(X=k[0];X>=10;X/=10,Z++);return(C=Z+C*f-1)>U?B.c=B.e=null:C<L?B.c=[B.e=0]:(B.e=C,B.c=k),B}se=(function(){var B=/^(-?)0([xbo])(?=\\\\w[\\\\w.]*$)/i,k=/^([^.]+)\\\\.$/,C=/^\\\\.([^.]+)$/,Z=/^-?(Infinity|NaN)$/,X=/^\\\\s*\\\\+(?=[\\\\w.])|^\\\\s+|\\\\s+$/g;return function(ae,de,me,Pe){var De,Re=me?de:de.replace(X,\"\");if(Z.test(Re))ae.s=isNaN(Re)?null:Re<0?-1:1;else{if(!me&&(Re=Re.replace(B,function(qe,et,ot){return De=(ot=ot.toLowerCase())==\"x\"?16:ot==\"b\"?2:8,!Pe||Pe==De?et:qe}),Pe&&(De=Pe,Re=Re.replace(k,\"$1\").replace(C,\"0.$1\")),de!=Re))return new ie(Re,De);if(ie.DEBUG)throw Error(a+\"Not a\"+(Pe?\" base \"+Pe:\"\")+\" number: \"+de);ae.s=null}ae.c=ae.e=null}})();function we(B,k,C,Z){var X,ae,de,me,Pe,De,Re,qe=B.c,et=m;if(qe){e:{for(X=1,me=qe[0];me>=10;me/=10,X++);if(ae=k-X,ae<0)ae+=f,de=k,Pe=qe[De=0],Re=o(Pe/et[X-de-1]%10);else if(De=r((ae+1)/f),De>=qe.length)if(Z){for(;qe.length<=De;qe.push(0));Pe=Re=0,X=1,ae%=f,de=ae-f+1}else break e;else{for(Pe=me=qe[De],X=1;me>=10;me/=10,X++);ae%=f,de=ae-f+X,Re=de<0?0:o(Pe/et[X-de-1]%10)}if(Z=Z||k<0||qe[De+1]!=null||(de<0?Pe:Pe%et[X-de-1]),Z=C<4?(Re||Z)&&(C==0||C==(B.s<0?3:2)):Re>5||Re==5&&(C==4||Z||C==6&&(ae>0?de>0?Pe/et[X-de]:0:qe[De-1])%10&1||C==(B.s<0?8:7)),k<1||!qe[0])return qe.length=0,Z?(k-=B.e+1,qe[0]=et[(f-k%f)%f],B.e=-k||0):qe[0]=B.e=0,B;if(ae==0?(qe.length=De,me=1,De--):(qe.length=De+1,me=et[f-ae],qe[De]=de>0?o(Pe/et[X-de]%et[de])*me:0),Z)for(;;)if(De==0){for(ae=1,de=qe[0];de>=10;de/=10,ae++);for(de=qe[0]+=me,me=1;de>=10;de/=10,me++);ae!=me&&(B.e++,qe[0]==l&&(qe[0]=1));break}else{if(qe[De]+=me,qe[De]!=l)break;qe[De--]=0,me=1}for(ae=qe.length;qe[--ae]===0;qe.pop());}B.e>U?B.c=B.e=null:B.e<L&&(B.c=[B.e=0])}return B}function _e(B){var k,C=B.e;return C===null?B.toString():(k=R(B.c),k=C<=z||C>=Y?D(k,C):G(k,C,\"0\"),B.s<0?\"-\"+k:k)}return te.absoluteValue=te.abs=function(){var B=new ie(this);return B.s<0&&(B.s=1),B},te.comparedTo=function(B,k){return K(this,new ie(B,k))},te.decimalPlaces=te.dp=function(B,k){var C,Z,X,ae=this;if(B!=null)return O(B,0,y),k==null?k=P:O(k,0,8),we(new ie(ae),B+ae.e+1,k);if(!(C=ae.c))return null;if(Z=((X=C.length-1)-T(this.e/f))*f,X=C[X])for(;X%10==0;X/=10,Z--);return Z<0&&(Z=0),Z},te.dividedBy=te.div=function(B,k){return J(this,new ie(B,k),_,P)},te.dividedToIntegerBy=te.idiv=function(B,k){return J(this,new ie(B,k),0,1)},te.exponentiatedBy=te.pow=function(B,k){var C,Z,X,ae,de,me,Pe,De,Re,qe=this;if(B=new ie(B),B.c&&!B.isInteger())throw Error(a+\"Exponent not an integer: \"+_e(B));if(k!=null&&(k=new ie(k)),me=B.e>14,!qe.c||!qe.c[0]||qe.c[0]==1&&!qe.e&&qe.c.length==1||!B.c||!B.c[0])return Re=new ie(Math.pow(+_e(qe),me?B.s*(2-V(B)):+_e(B))),k?Re.mod(k):Re;if(Pe=B.s<0,k){if(k.c?!k.c[0]:!k.s)return new ie(NaN);Z=!Pe&&qe.isInteger()&&k.isInteger(),Z&&(qe=qe.mod(k))}else{if(B.e>9&&(qe.e>0||qe.e<-1||(qe.e==0?qe.c[0]>1||me&&qe.c[1]>=24e7:qe.c[0]<8e13||me&&qe.c[0]<=9999975e7)))return ae=qe.s<0&&V(B)?-0:0,qe.e>-1&&(ae=1/ae),new ie(Pe?1/ae:ae);I&&(ae=r(I/f+2))}for(me?(C=new ie(.5),Pe&&(B.s=1),De=V(B)):(X=Math.abs(+_e(B)),De=X%2),Re=new ie(S);;){if(De){if(Re=Re.times(qe),!Re.c)break;ae?Re.c.length>ae&&(Re.c.length=ae):Z&&(Re=Re.mod(k))}if(X){if(X=o(X/2),X===0)break;De=X%2}else if(B=B.times(C),we(B,B.e+1,1),B.e>14)De=V(B);else{if(X=+_e(B),X===0)break;De=X%2}qe=qe.times(qe),ae?qe.c&&qe.c.length>ae&&(qe.c.length=ae):Z&&(qe=qe.mod(k))}return Z?Re:(Pe&&(Re=S.div(Re)),k?Re.mod(k):ae?we(Re,I,P,de):Re)},te.integerValue=function(B){var k=new ie(this);return B==null?B=P:O(B,0,8),we(k,k.e+1,B)},te.isEqualTo=te.eq=function(B,k){return K(this,new ie(B,k))===0},te.isFinite=function(){return!!this.c},te.isGreaterThan=te.gt=function(B,k){return K(this,new ie(B,k))>0},te.isGreaterThanOrEqualTo=te.gte=function(B,k){return(k=K(this,new ie(B,k)))===1||k===0},te.isInteger=function(){return!!this.c&&T(this.e/f)>this.c.length-2},te.isLessThan=te.lt=function(B,k){return K(this,new ie(B,k))<0},te.isLessThanOrEqualTo=te.lte=function(B,k){return(k=K(this,new ie(B,k)))===-1||k===0},te.isNaN=function(){return!this.s},te.isNegative=function(){return this.s<0},te.isPositive=function(){return this.s>0},te.isZero=function(){return!!this.c&&this.c[0]==0},te.minus=function(B,k){var C,Z,X,ae,de=this,me=de.s;if(B=new ie(B,k),k=B.s,!me||!k)return new ie(NaN);if(me!=k)return B.s=-k,de.plus(B);var Pe=de.e/f,De=B.e/f,Re=de.c,qe=B.c;if(!Pe||!De){if(!Re||!qe)return Re?(B.s=-k,B):new ie(qe?de:NaN);if(!Re[0]||!qe[0])return qe[0]?(B.s=-k,B):new ie(Re[0]?de:P==3?-0:0)}if(Pe=T(Pe),De=T(De),Re=Re.slice(),me=Pe-De){for((ae=me<0)?(me=-me,X=Re):(De=Pe,X=qe),X.reverse(),k=me;k--;X.push(0));X.reverse()}else for(Z=(ae=(me=Re.length)<(k=qe.length))?me:k,me=k=0;k<Z;k++)if(Re[k]!=qe[k]){ae=Re[k]<qe[k];break}if(ae&&(X=Re,Re=qe,qe=X,B.s=-B.s),k=(Z=qe.length)-(C=Re.length),k>0)for(;k--;Re[C++]=0);for(k=l-1;Z>me;){if(Re[--Z]<qe[Z]){for(C=Z;C&&!Re[--C];Re[C]=k);--Re[C],Re[Z]+=l}Re[Z]-=qe[Z]}for(;Re[0]==0;Re.splice(0,1),--De);return Re[0]?Ee(B,Re,De):(B.s=P==3?-1:1,B.c=[B.e=0],B)},te.modulo=te.mod=function(B,k){var C,Z,X=this;return B=new ie(B,k),!X.c||!B.s||B.c&&!B.c[0]?new ie(NaN):!B.c||X.c&&!X.c[0]?new ie(X):(w==9?(Z=B.s,B.s=1,C=J(X,B,0,3),B.s=Z,C.s*=Z):C=J(X,B,0,w),B=X.minus(C.times(B)),!B.c[0]&&w==1&&(B.s=X.s),B)},te.multipliedBy=te.times=function(B,k){var C,Z,X,ae,de,me,Pe,De,Re,qe,et,ot,Qe,xt,Wt,Vt=this,Bt=Vt.c,nn=(B=new ie(B,k)).c;if(!Bt||!nn||!Bt[0]||!nn[0])return!Vt.s||!B.s||Bt&&!Bt[0]&&!nn||nn&&!nn[0]&&!Bt?B.c=B.e=B.s=null:(B.s*=Vt.s,!Bt||!nn?B.c=B.e=null:(B.c=[0],B.e=0)),B;for(Z=T(Vt.e/f)+T(B.e/f),B.s*=Vt.s,Pe=Bt.length,qe=nn.length,Pe<qe&&(Qe=Bt,Bt=nn,nn=Qe,X=Pe,Pe=qe,qe=X),X=Pe+qe,Qe=[];X--;Qe.push(0));for(xt=l,Wt=g,X=qe;--X>=0;){for(C=0,et=nn[X]%Wt,ot=nn[X]/Wt|0,de=Pe,ae=X+de;ae>X;)De=Bt[--de]%Wt,Re=Bt[de]/Wt|0,me=ot*De+Re*et,De=et*De+me%Wt*Wt+Qe[ae]+C,C=(De/xt|0)+(me/Wt|0)+ot*Re,Qe[ae--]=De%xt;Qe[ae]=C}return C?++Z:Qe.splice(0,1),Ee(B,Qe,Z)},te.negated=function(){var B=new ie(this);return B.s=-B.s||null,B},te.plus=function(B,k){var C,Z=this,X=Z.s;if(B=new ie(B,k),k=B.s,!X||!k)return new ie(NaN);if(X!=k)return B.s=-k,Z.minus(B);var ae=Z.e/f,de=B.e/f,me=Z.c,Pe=B.c;if(!ae||!de){if(!me||!Pe)return new ie(X/0);if(!me[0]||!Pe[0])return Pe[0]?B:new ie(me[0]?Z:X*0)}if(ae=T(ae),de=T(de),me=me.slice(),X=ae-de){for(X>0?(de=ae,C=Pe):(X=-X,C=me),C.reverse();X--;C.push(0));C.reverse()}for(X=me.length,k=Pe.length,X-k<0&&(C=Pe,Pe=me,me=C,k=X),X=0;k;)X=(me[--k]=me[k]+Pe[k]+X)/l|0,me[k]=l===me[k]?0:me[k]%l;return X&&(me=[X].concat(me),++de),Ee(B,me,de)},te.precision=te.sd=function(B,k){var C,Z,X,ae=this;if(B!=null&&B!==!!B)return O(B,1,y),k==null?k=P:O(k,0,8),we(new ie(ae),B,k);if(!(C=ae.c))return null;if(X=C.length-1,Z=X*f+1,X=C[X]){for(;X%10==0;X/=10,Z--);for(X=C[0];X>=10;X/=10,Z++);}return B&&ae.e+1>Z&&(Z=ae.e+1),Z},te.shiftedBy=function(B){return O(B,-p,p),this.times(\"1e\"+B)},te.squareRoot=te.sqrt=function(){var B,k,C,Z,X,ae=this,de=ae.c,me=ae.s,Pe=ae.e,De=_+4,Re=new ie(\"0.5\");if(me!==1||!de||!de[0])return new ie(!me||me<0&&(!de||de[0])?NaN:de?ae:1/0);if(me=Math.sqrt(+_e(ae)),me==0||me==1/0?(k=R(de),(k.length+Pe)%2==0&&(k+=\"0\"),me=Math.sqrt(+k),Pe=T((Pe+1)/2)-(Pe<0||Pe%2),me==1/0?k=\"5e\"+Pe:(k=me.toExponential(),k=k.slice(0,k.indexOf(\"e\")+1)+Pe),C=new ie(k)):C=new ie(me+\"\"),C.c[0]){for(Pe=C.e,me=Pe+De,me<3&&(me=0);;)if(X=C,C=Re.times(X.plus(J(ae,X,De,1))),R(X.c).slice(0,me)===(k=R(C.c)).slice(0,me))if(C.e<Pe&&--me,k=k.slice(me-3,me+1),k==\"9999\"||!Z&&k==\"4999\"){if(!Z&&(we(X,X.e+_+2,0),X.times(X).eq(ae))){C=X;break}De+=4,me+=4,Z=1}else{(!+k||!+k.slice(1)&&k.charAt(0)==\"5\")&&(we(C,C.e+_+2,1),B=!C.times(C).eq(ae));break}}return we(C,C.e+_+1,P,B)},te.toExponential=function(B,k){return B!=null&&(O(B,0,y),B++),ue(this,B,k,1)},te.toFixed=function(B,k){return B!=null&&(O(B,0,y),B=B+this.e+1),ue(this,B,k)},te.toFormat=function(B,k,C){var Z,X=this;if(C==null)B!=null&&k&&typeof k==\"object\"?(C=k,k=null):B&&typeof B==\"object\"?(C=B,B=k=null):C=ye;else if(typeof C!=\"object\")throw Error(a+\"Argument not an object: \"+C);if(Z=X.toFixed(B,k),X.c){var ae,de=Z.split(\".\"),me=+C.groupSize,Pe=+C.secondaryGroupSize,De=C.groupSeparator||\"\",Re=de[0],qe=de[1],et=X.s<0,ot=et?Re.slice(1):Re,Qe=ot.length;if(Pe&&(ae=me,me=Pe,Pe=ae,Qe-=ae),me>0&&Qe>0){for(ae=Qe%me||me,Re=ot.substr(0,ae);ae<Qe;ae+=me)Re+=De+ot.substr(ae,me);Pe>0&&(Re+=De+ot.slice(ae)),et&&(Re=\"-\"+Re)}Z=qe?Re+(C.decimalSeparator||\"\")+((Pe=+C.fractionGroupSize)?qe.replace(new RegExp(\"\\\\\\\\d{\"+Pe+\"}\\\\\\\\B\",\"g\"),\"$&\"+(C.fractionGroupSeparator||\"\")):qe):Re}return(C.prefix||\"\")+Z+(C.suffix||\"\")},te.toFraction=function(B){var k,C,Z,X,ae,de,me,Pe,De,Re,qe,et,ot=this,Qe=ot.c;if(B!=null&&(me=new ie(B),!me.isInteger()&&(me.c||me.s!==1)||me.lt(S)))throw Error(a+\"Argument \"+(me.isInteger()?\"out of range: \":\"not an integer: \")+_e(me));if(!Qe)return new ie(ot);for(k=new ie(S),De=C=new ie(S),Z=Pe=new ie(S),et=R(Qe),ae=k.e=et.length-ot.e-1,k.c[0]=m[(de=ae%f)<0?f+de:de],B=!B||me.comparedTo(k)>0?ae>0?k:De:me,de=U,U=1/0,me=new ie(et),Pe.c[0]=0;Re=J(me,k,0,1),X=C.plus(Re.times(Z)),X.comparedTo(B)!=1;)C=Z,Z=X,De=Pe.plus(Re.times(X=De)),Pe=X,k=me.minus(Re.times(X=k)),me=X;return X=J(B.minus(C),Z,0,1),Pe=Pe.plus(X.times(De)),C=C.plus(X.times(Z)),Pe.s=De.s=ot.s,ae=ae*2,qe=J(De,Z,ae,P).minus(ot).abs().comparedTo(J(Pe,C,ae,P).minus(ot).abs())<1?[De,Z]:[Pe,C],U=de,qe},te.toNumber=function(){return+_e(this)},te.toPrecision=function(B,k){return B!=null&&O(B,1,y),ue(this,B,k,2)},te.toString=function(B){var k,C=this,Z=C.s,X=C.e;return X===null?Z?(k=\"Infinity\",Z<0&&(k=\"-\"+k)):k=\"NaN\":(B==null?k=X<=z||X>=Y?D(R(C.c),X):G(R(C.c),X,\"0\"):B===10&&Q?(C=we(new ie(C),_+X+1,P),k=G(R(C.c),C.e,\"0\")):(O(B,2,ne.length,\"Base\"),k=le(G(R(C.c),X,\"0\"),10,B,Z,!0)),Z<0&&C.c[0]&&(k=\"-\"+k)),k},te.valueOf=te.toJSON=function(){return _e(this)},te._isBigNumber=!0,ee!=null&&ie.set(ee),ie}function T(ee){var J=ee|0;return ee>0||ee===J?J:J-1}function R(ee){for(var J,le,se=1,te=ee.length,S=ee[0]+\"\";se<te;){for(J=ee[se++]+\"\",le=f-J.length;le--;J=\"0\"+J);S+=J}for(te=S.length;S.charCodeAt(--te)===48;);return S.slice(0,te+1||1)}function K(ee,J){var le,se,te=ee.c,S=J.c,_=ee.s,P=J.s,z=ee.e,Y=J.e;if(!_||!P)return null;if(le=te&&!te[0],se=S&&!S[0],le||se)return le?se?0:-P:_;if(_!=P)return _;if(le=_<0,se=z==Y,!te||!S)return se?0:!te^le?1:-1;if(!se)return z>Y^le?1:-1;for(P=(z=te.length)<(Y=S.length)?z:Y,_=0;_<P;_++)if(te[_]!=S[_])return te[_]>S[_]^le?1:-1;return z==Y?0:z>Y^le?1:-1}function O(ee,J,le,se){if(ee<J||ee>le||ee!==o(ee))throw Error(a+(se||\"Argument\")+(typeof ee==\"number\"?ee<J||ee>le?\" out of range: \":\" not an integer: \":\" not a primitive number: \")+String(ee))}function V(ee){var J=ee.c.length-1;return T(ee.e/f)==J&&ee.c[J]%2!=0}function D(ee,J){return(ee.length>1?ee.charAt(0)+\".\"+ee.slice(1):ee)+(J<0?\"e\":\"e+\")+J}function G(ee,J,le){var se,te;if(J<0){for(te=le+\".\";++J;te+=le);ee=te+ee}else if(se=ee.length,++J>se){for(te=le,J-=se;--J;te+=le);ee+=te}else J<se&&(ee=ee.slice(0,J)+\".\"+ee.slice(J));return ee}e=A(),e.default=e.BigNumber=e,typeof define==\"function\"&&define.amd?define(function(){return e}):typeof BA<\"u\"&&BA.exports?BA.exports=e:(t||(t=typeof self<\"u\"&&self?self:window),t.BigNumber=e)})(sX)});var dX=Qr((RHe,uX)=>{u();var cX=CD(),lX=uX.exports;(function(){\"use strict\";function t(p){return p<10?\"0\"+p:p}var e=/[\\\\u0000\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,n=/[\\\\\\\\\\\\\"\\\\x00-\\\\x1f\\\\x7f-\\\\x9f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,r,o,a={\"\\\\b\":\"\\\\\\\\b\",\"\\t\":\"\\\\\\\\t\",\"\\\\n\":\"\\\\\\\\n\",\"\\\\f\":\"\\\\\\\\f\",\"\\\\r\":\"\\\\\\\\r\",\\'\"\\':\\'\\\\\\\\\"\\',\"\\\\\\\\\":\"\\\\\\\\\\\\\\\\\"},c;function l(p){return n.lastIndex=0,n.test(p)?\\'\"\\'+p.replace(n,function(m){var g=a[m];return typeof g==\"string\"?g:\"\\\\\\\\u\"+(\"0000\"+m.charCodeAt(0).toString(16)).slice(-4)})+\\'\"\\':\\'\"\\'+p+\\'\"\\'}function f(p,m){var g,y,A,T,R=r,K,O=m[p],V=O!=null&&(O instanceof cX||cX.isBigNumber(O));switch(O&&typeof O==\"object\"&&typeof O.toJSON==\"function\"&&(O=O.toJSON(p)),typeof c==\"function\"&&(O=c.call(m,p,O)),typeof O){case\"string\":return V?O:l(O);case\"number\":return isFinite(O)?String(O):\"null\";case\"boolean\":case\"null\":case\"bigint\":return String(O);case\"object\":if(!O)return\"null\";if(r+=o,K=[],Object.prototype.toString.apply(O)===\"[object Array]\"){for(T=O.length,g=0;g<T;g+=1)K[g]=f(g,O)||\"null\";return A=K.length===0?\"[]\":r?`[\\n`+r+K.join(`,\\n`+r)+`\\n`+R+\"]\":\"[\"+K.join(\",\")+\"]\",r=R,A}if(c&&typeof c==\"object\")for(T=c.length,g=0;g<T;g+=1)typeof c[g]==\"string\"&&(y=c[g],A=f(y,O),A&&K.push(l(y)+(r?\": \":\":\")+A));else Object.keys(O).forEach(function(D){var G=f(D,O);G&&K.push(l(D)+(r?\": \":\":\")+G)});return A=K.length===0?\"{}\":r?`{\\n`+r+K.join(`,\\n`+r)+`\\n`+R+\"}\":\"{\"+K.join(\",\")+\"}\",r=R,A}}typeof lX.stringify!=\"function\"&&(lX.stringify=function(p,m,g){var y;if(r=\"\",o=\"\",typeof g==\"number\")for(y=0;y<g;y+=1)o+=\" \";else typeof g==\"string\"&&(o=g);if(c=m,m&&typeof m!=\"function\"&&(typeof m!=\"object\"||typeof m.length!=\"number\"))throw new Error(\"JSON.stringify\");return f(\"\",{\"\":p})})})()});var pX=Qr((BHe,fX)=>{u();var DA=null,Bke=/(?:_|\\\\\\\\u005[Ff])(?:_|\\\\\\\\u005[Ff])(?:p|\\\\\\\\u0070)(?:r|\\\\\\\\u0072)(?:o|\\\\\\\\u006[Ff])(?:t|\\\\\\\\u0074)(?:o|\\\\\\\\u006[Ff])(?:_|\\\\\\\\u005[Ff])(?:_|\\\\\\\\u005[Ff])/,Dke=/(?:c|\\\\\\\\u0063)(?:o|\\\\\\\\u006[Ff])(?:n|\\\\\\\\u006[Ee])(?:s|\\\\\\\\u0073)(?:t|\\\\\\\\u0074)(?:r|\\\\\\\\u0072)(?:u|\\\\\\\\u0075)(?:c|\\\\\\\\u0063)(?:t|\\\\\\\\u0074)(?:o|\\\\\\\\u006[Ff])(?:r|\\\\\\\\u0072)/,Fke=function(t){\"use strict\";var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:\"error\",constructorAction:\"error\"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<\"u\")if(t.constructorAction===\"error\"||t.constructorAction===\"ignore\"||t.constructorAction===\"preserve\")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be \"error\", \"ignore\" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<\"u\")if(t.protoAction===\"error\"||t.protoAction===\"ignore\"||t.protoAction===\"preserve\")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be \"error\", \"ignore\" or undefined but passed ${t.protoAction}`)}var n,r,o={\\'\"\\':\\'\"\\',\"\\\\\\\\\":\"\\\\\\\\\",\"/\":\"/\",b:\"\\\\b\",f:\"\\\\f\",n:`\\n`,r:\"\\\\r\",t:\"\\t\"},a,c=function(R){throw{name:\"SyntaxError\",message:R,at:n,text:a}},l=function(R){return R&&R!==r&&c(\"Expected \\'\"+R+\"\\' instead of \\'\"+r+\"\\'\"),r=a.charAt(n),n+=1,r},f=function(){var R,K=\"\";for(r===\"-\"&&(K=\"-\",l(\"-\"));r>=\"0\"&&r<=\"9\";)K+=r,l();if(r===\".\")for(K+=\".\";l()&&r>=\"0\"&&r<=\"9\";)K+=r;if(r===\"e\"||r===\"E\")for(K+=r,l(),(r===\"-\"||r===\"+\")&&(K+=r,l());r>=\"0\"&&r<=\"9\";)K+=r,l();if(R=+K,!isFinite(R))c(\"Bad number\");else return DA==null&&(DA=CD()),K.length>15?e.storeAsString?K:e.useNativeBigInt?BigInt(K):new DA(K):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(R):new DA(R):R},p=function(){var R,K,O=\"\",V;if(r===\\'\"\\')for(var D=n;l();){if(r===\\'\"\\')return n-1>D&&(O+=a.substring(D,n-1)),l(),O;if(r===\"\\\\\\\\\"){if(n-1>D&&(O+=a.substring(D,n-1)),l(),r===\"u\"){for(V=0,K=0;K<4&&(R=parseInt(l(),16),!!isFinite(R));K+=1)V=V*16+R;O+=String.fromCharCode(V)}else if(typeof o[r]==\"string\")O+=o[r];else break;D=n}}c(\"Bad string\")},m=function(){for(;r&&r<=\" \";)l()},g=function(){switch(r){case\"t\":return l(\"t\"),l(\"r\"),l(\"u\"),l(\"e\"),!0;case\"f\":return l(\"f\"),l(\"a\"),l(\"l\"),l(\"s\"),l(\"e\"),!1;case\"n\":return l(\"n\"),l(\"u\"),l(\"l\"),l(\"l\"),null}c(\"Unexpected \\'\"+r+\"\\'\")},y,A=function(){var R=[];if(r===\"[\"){if(l(\"[\"),m(),r===\"]\")return l(\"]\"),R;for(;r;){if(R.push(y()),m(),r===\"]\")return l(\"]\"),R;l(\",\"),m()}}c(\"Bad array\")},T=function(){var R,K=Object.create(null);if(r===\"{\"){if(l(\"{\"),m(),r===\"}\")return l(\"}\"),K;for(;r;){if(R=p(),m(),l(\":\"),e.strict===!0&&Object.hasOwnProperty.call(K,R)&&c(\\'Duplicate key \"\\'+R+\\'\"\\'),Bke.test(R)===!0?e.protoAction===\"error\"?c(\"Object contains forbidden prototype property\"):e.protoAction===\"ignore\"?y():K[R]=y():Dke.test(R)===!0?e.constructorAction===\"error\"?c(\"Object contains forbidden constructor property\"):e.constructorAction===\"ignore\"?y():K[R]=y():K[R]=y(),m(),r===\"}\")return l(\"}\"),K;l(\",\"),m()}}c(\"Bad object\")};return y=function(){switch(m(),r){case\"{\":return T();case\"[\":return A();case\\'\"\\':return p();case\"-\":return f();default:return r>=\"0\"&&r<=\"9\"?f():g()}},function(R,K){var O;return a=R+\"\",n=0,r=\" \",O=y(),m(),r&&c(\"Syntax error\"),typeof K==\"function\"?(function V(D,G){var ee,J,le=D[G];return le&&typeof le==\"object\"&&Object.keys(le).forEach(function(se){J=V(le,se),J!==void 0?le[se]=J:delete le[se]}),K.call(D,G,le)})({\"\":O},\"\"):O}};fX.exports=Fke});var TD=Qr((FHe,FA)=>{u();var hX=dX().stringify,mX=pX();FA.exports=function(t){return{parse:mX(t),stringify:hX}};FA.exports.parse=mX();FA.exports.stringify=hX});var _D,Li,Zw=Ve(()=>{u();(function(t){t.UNSAFE=\"unsafe\",t.SAFE=\"safe\",t.MIXED=\"mixed\",t.BIGINT=\"bigint\"})(_D||(_D={}));Li=_D});function l1(t,{intDecoding:e}){if(e!==Li.SAFE&&e!==Li.UNSAFE&&e!==Li.BIGINT&&e!==Li.MIXED)throw new Error(`Invalid intDecoding option: ${e}`);return yX.parse(t,(n,r)=>{if(r!=null&&typeof r==\"object\"&&Object.getPrototypeOf(r)==null&&Object.setPrototypeOf(r,Object.prototype),typeof r==\"bigint\"){if(e===Li.SAFE&&r>Number.MAX_SAFE_INTEGER)throw new Error(`Integer exceeds maximum safe integer: ${r.toString()}. Try parsing with a different intDecoding option.`);return e===Li.BIGINT||e===Li.MIXED&&r>Number.MAX_SAFE_INTEGER?r:Number(r)}return typeof r==\"number\"&&e===Li.BIGINT&&Number.isInteger(r)?BigInt(r):r})}function Zc(t,e,n){return yX.stringify(t,e,n)}function Fa(t,e){return t.length!==e.length?!1:Array.from(t).every((n,r)=>n===e[r])}function ti(...t){let e=t.reduce((o,a)=>o+a.length,0),n=new Uint8Array(e),r=0;for(let o=0;o<t.length;o++)n.set(t[o],r),r+=t[o].length;return n}function Xw(){return typeof process==\"object\"&&typeof process.versions==\"object\"&&typeof process.versions.node<\"u\"}function vX(){let{navigator:t}=globalThis;return typeof t==\"object\"&&t.product===\"ReactNative\"}function Bn(t){if(typeof t>\"u\")throw new Error(\"Value is undefined\");if(typeof t==\"bigint\"){if(t>BigInt(Number.MAX_SAFE_INTEGER)||t<BigInt(Number.MIN_SAFE_INTEGER))throw new Error(`BigInt value ${t} is not a safe integer`);return Number(t)}if(typeof t==\"number\"){if(Number.isSafeInteger(t))return t;throw new Error(`Value ${t} is not a safe integer`)}throw new Error(`Unexpected type ${typeof t}, ${t}`)}function ma(t){let e=Bn(t);if(e<0)throw new Error(`Value ${e} is negative`);return e}function Qt(t){if(typeof t>\"u\")throw new Error(\"Value is undefined\");if(typeof t==\"bigint\")return t;if(typeof t==\"number\"){if(!Number.isSafeInteger(t))throw new Error(`Value ${t} is not a safe integer`);return BigInt(t)}throw new Error(`Unexpected type ${typeof t}, ${t}`)}function Ro(t){let e=Qt(t);if(e<0||e>BigInt(\"0xffffffffffffffff\"))throw new Error(`Value ${e} is not a uint64`);return e}var gX,yX,Ai=Ve(()=>{u();gX=br(TD(),1);Zw();yX=(0,gX.default)({useNativeBigInt:!0,strict:!0})});function ws(t){return xX.default.sha512_256.array(t)}function Oke(t){return vX()&&console.warn(\"It looks like you\\'re running in react-native. In order to perform common crypto operations you will need to polyfill common operations such as crypto.getRandomValues\"),gu.default.randomBytes(t)}function MD(t){return gu.default.sign.keyPair.fromSeed(t)}function bX(){let t=Oke(gu.default.box.secretKeyLength);return MD(t)}function OA(t){return t===gu.default.sign.signatureLength}function u1(t){return gu.default.sign.keyPair.fromSecretKey(t)}function Gh(t,e){return gu.default.sign.detached(t,e)}function LA(t,e){return gu.default.verify(t,e)}function d1(t,e,n){return gu.default.sign.detached.verify(t,e,n)}var gu,xX,NA,HHe,ID,UA,_l=Ve(()=>{u();gu=br(RA(),1),xX=br(aX(),1);Ai();NA=gu.default.sign.publicKeyLength,HHe=gu.default.sign.secretKeyLength,ID=32,UA=32});var ev=Qr(($He,zA)=>{u();(function(){\"use strict\";var t=typeof window==\"object\"?window:{},e=!t.HI_BASE32_NO_NODE_JS&&typeof process==\"object\"&&process.versions&&process.versions.node;e&&(t=globalThis);var n=!t.HI_BASE32_NO_COMMON_JS&&typeof zA==\"object\"&&zA.exports,r=typeof define==\"function\"&&define.amd,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\".split(\"\"),a={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},c=[0,0,0,0,0,0,0,0],l=function(K,O){O.length>10&&(O=\"...\"+O.substr(-10));var V=new Error(\"Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading \"+K+\" bytes: \"+O+\" <-\");throw V.position=K,V},f=function(K){for(var O=\"\",V=K.length,D=0,G=0,ee,J;D<V;){if(ee=K[D++],ee<=127){O+=String.fromCharCode(ee);continue}else ee>191&&ee<=223?(J=ee&31,G=1):ee<=239?(J=ee&15,G=2):ee<=247?(J=ee&7,G=3):l(D,O);for(var le=0;le<G;++le)ee=K[D++],(ee<128||ee>191)&&l(D,O),J<<=6,J+=ee&63;J>=55296&&J<=57343&&l(D,O),J>1114111&&l(D,O),J<=65535?O+=String.fromCharCode(J):(J-=65536,O+=String.fromCharCode((J>>10)+55296),O+=String.fromCharCode((J&1023)+56320))}return O},p=function(K){if(K===\"\")return[];if(!/^[A-Z2-7=]+$/.test(K))throw new Error(\"Invalid base32 characters\");K=K.replace(/=/g,\"\");for(var O,V,D,G,ee,J,le,se,te=[],S=0,_=K.length,P=0,z=_>>3<<3;P<z;)O=a[K.charAt(P++)],V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],J=a[K.charAt(P++)],le=a[K.charAt(P++)],se=a[K.charAt(P++)],te[S++]=(O<<3|V>>>2)&255,te[S++]=(V<<6|D<<1|G>>>4)&255,te[S++]=(G<<4|ee>>>1)&255,te[S++]=(ee<<7|J<<2|le>>>3)&255,te[S++]=(le<<5|se)&255;var Y=_-z;return Y===2?(O=a[K.charAt(P++)],V=a[K.charAt(P++)],te[S++]=(O<<3|V>>>2)&255):Y===4?(O=a[K.charAt(P++)],V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],te[S++]=(O<<3|V>>>2)&255,te[S++]=(V<<6|D<<1|G>>>4)&255):Y===5?(O=a[K.charAt(P++)],V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],te[S++]=(O<<3|V>>>2)&255,te[S++]=(V<<6|D<<1|G>>>4)&255,te[S++]=(G<<4|ee>>>1)&255):Y===7&&(O=a[K.charAt(P++)],V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],J=a[K.charAt(P++)],le=a[K.charAt(P++)],te[S++]=(O<<3|V>>>2)&255,te[S++]=(V<<6|D<<1|G>>>4)&255,te[S++]=(G<<4|ee>>>1)&255,te[S++]=(ee<<7|J<<2|le>>>3)&255),te},m=function(K){for(var O,V,D,G,ee,J=\"\",le=K.length,se=0,te=parseInt(le/5)*5;se<te;)O=K.charCodeAt(se++),V=K.charCodeAt(se++),D=K.charCodeAt(se++),G=K.charCodeAt(se++),ee=K.charCodeAt(se++),J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[(G<<3|ee>>>5)&31]+o[ee&31];var S=le-te;return S===1?(O=K.charCodeAt(se),J+=o[O>>>3]+o[O<<2&31]+\"======\"):S===2?(O=K.charCodeAt(se++),V=K.charCodeAt(se),J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[V<<4&31]+\"====\"):S===3?(O=K.charCodeAt(se++),V=K.charCodeAt(se++),D=K.charCodeAt(se),J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[D<<1&31]+\"===\"):S===4&&(O=K.charCodeAt(se++),V=K.charCodeAt(se++),D=K.charCodeAt(se++),G=K.charCodeAt(se),J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[G<<3&31]+\"=\"),J},g=function(K){var O,V,D,G,ee,J,le=!1,se=\"\",te=0,S,_=0,P=0,z=K.length;if(K===\"\")return se;do{for(c[0]=c[5],c[1]=c[6],c[2]=c[7],S=_;te<z&&S<5;++te)J=K.charCodeAt(te),J<128?c[S++]=J:J<2048?(c[S++]=192|J>>6,c[S++]=128|J&63):J<55296||J>=57344?(c[S++]=224|J>>12,c[S++]=128|J>>6&63,c[S++]=128|J&63):(J=65536+((J&1023)<<10|K.charCodeAt(++te)&1023),c[S++]=240|J>>18,c[S++]=128|J>>12&63,c[S++]=128|J>>6&63,c[S++]=128|J&63);P+=S-_,_=S-5,te===z&&++te,te>z&&S<6&&(le=!0),O=c[0],S>4?(V=c[1],D=c[2],G=c[3],ee=c[4],se+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[(G<<3|ee>>>5)&31]+o[ee&31]):S===1?se+=o[O>>>3]+o[O<<2&31]+\"======\":S===2?(V=c[1],se+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[V<<4&31]+\"====\"):S===3?(V=c[1],D=c[2],se+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[D<<1&31]+\"===\"):(V=c[1],D=c[2],G=c[3],se+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[G<<3&31]+\"=\")}while(!le);return se},y=function(K){for(var O,V,D,G,ee,J=\"\",le=K.length,se=0,te=parseInt(le/5)*5;se<te;)O=K[se++],V=K[se++],D=K[se++],G=K[se++],ee=K[se++],J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[(G<<3|ee>>>5)&31]+o[ee&31];var S=le-te;return S===1?(O=K[se],J+=o[O>>>3]+o[O<<2&31]+\"======\"):S===2?(O=K[se++],V=K[se],J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[V<<4&31]+\"====\"):S===3?(O=K[se++],V=K[se++],D=K[se],J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[D<<1&31]+\"===\"):S===4&&(O=K[se++],V=K[se++],D=K[se++],G=K[se],J+=o[O>>>3]+o[(O<<2|V>>>6)&31]+o[V>>>1&31]+o[(V<<4|D>>>4)&31]+o[(D<<1|G>>>7)&31]+o[G>>>2&31]+o[G<<3&31]+\"=\"),J},A=function(K,O){var V=typeof K!=\"string\";return V&&K.constructor===ArrayBuffer&&(K=new Uint8Array(K)),V?y(K):O?m(K):g(K)},T=function(K,O){if(!O)return f(p(K));if(K===\"\")return\"\";if(!/^[A-Z2-7=]+$/.test(K))throw new Error(\"Invalid base32 characters\");var V,D,G,ee,J,le,se,te,S=\"\",_=K.indexOf(\"=\");_===-1&&(_=K.length);for(var P=0,z=_>>3<<3;P<z;)V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],J=a[K.charAt(P++)],le=a[K.charAt(P++)],se=a[K.charAt(P++)],te=a[K.charAt(P++)],S+=String.fromCharCode((V<<3|D>>>2)&255)+String.fromCharCode((D<<6|G<<1|ee>>>4)&255)+String.fromCharCode((ee<<4|J>>>1)&255)+String.fromCharCode((J<<7|le<<2|se>>>3)&255)+String.fromCharCode((se<<5|te)&255);var Y=_-z;return Y===2?(V=a[K.charAt(P++)],D=a[K.charAt(P++)],S+=String.fromCharCode((V<<3|D>>>2)&255)):Y===4?(V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],S+=String.fromCharCode((V<<3|D>>>2)&255)+String.fromCharCode((D<<6|G<<1|ee>>>4)&255)):Y===5?(V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],J=a[K.charAt(P++)],S+=String.fromCharCode((V<<3|D>>>2)&255)+String.fromCharCode((D<<6|G<<1|ee>>>4)&255)+String.fromCharCode((ee<<4|J>>>1)&255)):Y===7&&(V=a[K.charAt(P++)],D=a[K.charAt(P++)],G=a[K.charAt(P++)],ee=a[K.charAt(P++)],J=a[K.charAt(P++)],le=a[K.charAt(P++)],se=a[K.charAt(P++)],S+=String.fromCharCode((V<<3|D>>>2)&255)+String.fromCharCode((D<<6|G<<1|ee>>>4)&255)+String.fromCharCode((ee<<4|J>>>1)&255)+String.fromCharCode((J<<7|le<<2|se>>>3)&255)),S},R={encode:A,decode:T};T.asBytes=p,n?zA.exports=R:(t.base32=R,r&&define(function(){return R}))})()});function Jw(t){if(!(typeof t==\"bigint\"||Number.isInteger(t))||t<0||t>BigInt(\"0xffffffffffffffff\"))throw new Error(\"Input is not a 64-bit unsigned integer\");let n=new Uint8Array(8);return new DataView(n.buffer).setBigUint64(0,BigInt(t)),n}function RD(t,e=\"safe\"){if(e!==\"safe\"&&e!==\"mixed\"&&e!==\"bigint\")throw new Error(`Unknown decodingMode option: ${e}`);if(t.byteLength===0||t.byteLength>8)throw new Error(`Data has unacceptable length. Expected length is between 1 and 8, got ${t.byteLength}`);let n=new Uint8Array(8-t.byteLength),r=ti(n,t),a=new DataView(r.buffer).getBigUint64(0),c=a>BigInt(Number.MAX_SAFE_INTEGER);if(e===\"safe\"){if(c)throw new Error(`Integer exceeds maximum safe integer: ${a.toString()}. Try decoding with \"mixed\" or \"safe\" decodingMode.`);return Number(a)}return e===\"mixed\"&&!c?Number(a):a}var PD=Ve(()=>{u();Ai()});function Yn(t){if(Xw())return new Uint8Array(globalThis.Buffer.from(t,\"base64\"));let e=atob(t);return Uint8Array.from(e,n=>n.codePointAt(0))}function ci(t){if(Xw())return globalThis.Buffer.from(t).toString(\"base64\");let e=Array.from(t,n=>String.fromCodePoint(n)).join(\"\");return btoa(e)}function qh(t){return new TextDecoder().decode(t)}function Oa(t){return typeof t==\"string\"?new TextEncoder().encode(t):t}function Wh(t){return Xw()?globalThis.Buffer.from(t).toString(\"hex\"):Array.from(t).map(e=>e.toString(16).padStart(2,\"0\")).join(\"\")}function BD(t){if(Xw())return globalThis.Buffer.from(t,\"hex\");let e=t;t.length%2!==0&&(e=t.padStart(1,\"0\"));let n=new Uint8Array(e.length/2);for(let r=0;r<e.length/2;r++)n[r]=parseInt(e.slice(2*r,2*r+2),16);return n}var Es=Ve(()=>{u();Ai()});function wX(t){return Uint8Array.from(ws(t).slice(ID-tv,ID))}function e3(t){return dr.fromString(t)}function t3(t){try{dr.fromString(t)}catch{return!1}return!0}function n3(t){return new dr(t).toString()}function nv(t){let e=ti(Nke,Jw(t)),n=ws(e);return new dr(Uint8Array.from(n))}var FD,Yh,tv,DD,OD,Qw,Lke,dr,Nke,Ss=Ve(()=>{u();FD=br(ev(),1);_l();Ai();PD();Es();Yh=36,tv=4,DD=58,OD=\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ\",Qw=\"address seems to be malformed\",Lke=\"wrong checksum for address\";dr=class t{constructor(e){if(!(e instanceof Uint8Array))throw new Error(`${Qw}: ${e} is not Uint8Array, type ${typeof e}`);if(e.length!==Yh-tv)throw new Error(`${Qw}: 0x${Wh(e)}, length ${e.length}`);this.publicKey=e}equals(e){return e instanceof t&&Fa(this.publicKey,e.publicKey)}checksum(){return wX(this.publicKey)}toString(){return FD.default.encode(ti(this.publicKey,this.checksum())).slice(0,DD)}static fromString(e){if(typeof e!=\"string\")throw new Error(`${Qw}: expected string, got ${typeof e}, ${e}`);if(e.length!==DD)throw new Error(`${Qw}: expected length ${DD}, got ${e.length}: ${e}`);let n=FD.default.decode.asBytes(e);if(n.length!==Yh)throw new Error(`${Qw}: expected byte length ${Yh}, got ${n.length}`);let r=new Uint8Array(n.slice(0,Yh-tv)),o=new Uint8Array(n.slice(NA,Yh)),a=wX(r);if(!Fa(a,o))throw new Error(Lke);return new t(r)}static zeroAddress(){return new t(new Uint8Array(Yh-tv))}};Nke=new TextEncoder().encode(\"appID\")});function LD(t){if(t<0||!Number.isSafeInteger(t))throw new Error(rv);return t/1e6}function ND(t){let e=t*1e6;return Math.round(e)}var rv,UD=Ve(()=>{u();rv=\"Microalgos should be positive and less than 2^53 - 1.\"});var zD,VA,EX=Ve(()=>{u();zD=class extends Error{constructor(e,n){super(e),this.response=n,this.name=\"URLTokenBaseHTTPError\",this.response=n}},VA=class t{constructor(e,n,r,o={}){this.defaultHeaders=o;let a=n.endsWith(\"/\")?n:`${n}/`,c=new URL(a);if(typeof r<\"u\"&&(c.port=r.toString()),c.protocol.length===0)throw new Error(\"Invalid base server URL, protocol must be defined.\");this.baseURL=c,this.tokenHeader=e}getURL(e,n){let r;e.startsWith(\"./\")?r=e:e.startsWith(\"/\")?r=`.${e}`:r=`./${e}`;let o=new URL(r,this.baseURL);if(n)for(let[a,c]of Object.entries(n))o.searchParams.set(a,c.toString());return o.toString()}static formatFetchResponseHeaders(e){let n={};return e.forEach((r,o)=>{n[r]=o}),n}static async checkHttpError(e){if(e.ok)return;let n,r;try{n=new Uint8Array(await e.arrayBuffer());let a=JSON.parse(new TextDecoder().decode(n));a.message&&(r=a.message)}catch{}let o=`Network request error. Received status ${e.status} (${e.statusText})`;throw r&&(o+=`: ${r}`),new zD(o,{body:n??new Uint8Array,status:e.status,headers:t.formatFetchResponseHeaders(e.headers)})}static async formatFetchResponse(e){return await this.checkHttpError(e),{body:new Uint8Array(await e.arrayBuffer()),status:e.status,headers:t.formatFetchResponseHeaders(e.headers)}}async get(e,n,r,o){let a={...this.tokenHeader,...this.defaultHeaders,...r??{}},c=await fetch(this.getURL(e,n),{headers:a,...o??{}});return t.formatFetchResponse(c)}async post(e,n,r,o,a){let c={...this.tokenHeader,...this.defaultHeaders,...o??{}},l=await fetch(this.getURL(e,r),{method:\"POST\",body:n,headers:c,...a??{}});return t.formatFetchResponse(l)}async delete(e,n,r,o,a){let c={...this.tokenHeader,...this.defaultHeaders,...o??{}},l=await fetch(this.getURL(e,r),{method:\"DELETE\",body:n,headers:c,...a??{}});return t.formatFetchResponse(l)}}});function zke(t){for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(!t[e]||t[e].length===0)&&delete t[e];return t}function SX(t){return Object.keys(t).reduce((e,n)=>(e[n.toLowerCase()]=t[n],e),{})}function Vke(t){return t!==void 0&&Object.prototype.hasOwnProperty.call(t,\"format\")&&t.format===\"msgpack\"?\"application/msgpack\":\"application/json\"}var VD,ov,AX=Ve(()=>{u();Ai();EX();VD=class{constructor(e){this.body=e.body,this.text=e.text,this.format=e.format,this.headers=e.headers,this.status=e.status,this.ok=e.ok}getJSONText(){if(this.text===void 0)throw new Error(`Response body does not contain JSON data. Format is ${this.format}`);return this.text}parseBodyAsJSON(e){if(this.text===void 0)throw new Error(`Response body does not contain JSON data. Format is ${this.format}`);return ov.parseJSON(this.text,this.status,e)}};ov=class t{constructor(e,n,r,o={}){n!==void 0?this.bc=new VA(e,n,r,o):this.bc=e}static parseJSON(e,n,r){try{return e?l1(e,r):null}catch(o){let a=o;throw a.rawResponse=e||null,a.statusCode=n,a}}static serializeData(e,n){if(!e)return new Uint8Array(0);if(n[\"content-type\"]===\"application/json\")return new TextEncoder().encode(Zc(e));if(typeof e==\"string\")return new TextEncoder().encode(e);if(e instanceof Uint8Array)return e;throw new Error(\"provided data is neither a string nor a Uint8Array and content-type is not application/json\")}static prepareResponse(e,n){let{body:r}=e,o;return n!==\"application/msgpack\"&&(o=r&&new TextDecoder().decode(r)||\"\"),new VD({...e,format:n,text:o,ok:Math.trunc(e.status/100)===2})}static prepareResponseError(e){return e.response&&(e.response=t.prepareResponse(e.response,\"application/json\"),e.status=e.response.status),e}async get({relativePath:e,query:n,requestHeaders:r,customOptions:o}){let a=Vke(n),c={...r??{},accept:a};try{let l=await this.bc.get(e,n?zke(n):void 0,c,o);return t.prepareResponse(l,a)}catch(l){throw t.prepareResponseError(l)}}async post({relativePath:e,data:n,query:r,requestHeaders:o,customOptions:a}){let c={\"content-type\":\"application/json\",...SX(o??{})};try{let l=await this.bc.post(e,t.serializeData(n,c),r,c,a);return t.prepareResponse(l,\"application/json\")}catch(l){throw t.prepareResponseError(l)}}async delete({relativePath:e,data:n,requestHeaders:r,customOptions:o}){let a={\"content-type\":\"application/json\",...SX(r??{})};try{let c=await this.bc.delete(e,typeof n<\"u\"?t.serializeData(n,a):void 0,void 0,a,o);return t.prepareResponse(c,\"application/json\")}catch(c){throw t.prepareResponseError(c)}}}});function Hke(t,e=\"\"){let n={};return e===\"\"||(n[t]=e),n}function jke(t){return typeof t.get==\"function\"}var jf,HA=Ve(()=>{u();AX();jf=class{constructor(e,n,r,o,a={}){if(jke(n))this.c=new ov(n);else{let c;typeof n==\"string\"?c=Hke(e,n):c=n,this.c=new ov(c,r,o,a)}}}});function kX(t){for(var e=t.length,n=0,r=0;r<e;){var o=t.charCodeAt(r++);if((o&4294967168)===0){n++;continue}else if((o&4294965248)===0)n+=2;else{if(o>=55296&&o<=56319&&r<e){var a=t.charCodeAt(r);(a&64512)===56320&&(++r,o=((o&1023)<<10)+(a&1023)+65536)}(o&4294901760)===0?n+=3:n+=4}}return n}function $ke(t,e,n){for(var r=t.length,o=n,a=0;a<r;){var c=t.charCodeAt(a++);if((c&4294967168)===0){e[o++]=c;continue}else if((c&4294965248)===0)e[o++]=c>>6&31|192;else{if(c>=55296&&c<=56319&&a<r){var l=t.charCodeAt(a);(l&64512)===56320&&(++a,c=((c&1023)<<10)+(l&1023)+65536)}(c&4294901760)===0?(e[o++]=c>>12&15|224,e[o++]=c>>6&63|128):(e[o++]=c>>18&7|240,e[o++]=c>>12&63|128,e[o++]=c>>6&63|128)}e[o++]=c&63|128}}function qke(t,e,n){Kke.encodeInto(t,e.subarray(n))}function CX(t,e,n){t.length>Gke?qke(t,e,n):$ke(t,e,n)}function HD(t,e,n){for(var r=e,o=r+n,a=[],c=\"\";r<o;){var l=t[r++];if((l&128)===0)a.push(l);else if((l&224)===192){var f=t[r++]&63;a.push((l&31)<<6|f)}else if((l&240)===224){var f=t[r++]&63,p=t[r++]&63;a.push((l&31)<<12|f<<6|p)}else if((l&248)===240){var f=t[r++]&63,p=t[r++]&63,m=t[r++]&63,g=(l&7)<<18|f<<12|p<<6|m;g>65535&&(g-=65536,a.push(g>>>10&1023|55296),g=56320|g&1023),a.push(g)}else a.push(l);a.length>=Wke&&(c+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(c+=String.fromCharCode.apply(String,a)),c}function Xke(t,e,n){var r=t.subarray(e,e+n);return Yke.decode(r)}function TX(t,e,n){return n>Zke?Xke(t,e,n):HD(t,e,n)}var Kke,Gke,Wke,Yke,Zke,jA=Ve(()=>{u();Kke=new TextEncoder,Gke=50;Wke=4096;Yke=new TextDecoder,Zke=200});var r3,_X=Ve(()=>{u();r3=(function(){function t(e,n){this.type=e,this.data=n}return t})()});var Jke,Ml,jD=Ve(()=>{u();Jke=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!=\"function\"&&n!==null)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Ml=(function(t){Jke(e,t);function e(n){var r=t.call(this,n)||this,o=Object.create(e.prototype);return Object.setPrototypeOf(r,o),Object.defineProperty(r,\"name\",{configurable:!0,enumerable:!1,value:e.name}),r}return e})(Error)});function MX(t,e,n){var r=n/4294967296,o=n;t.setUint32(e,r),t.setUint32(e+4,o)}function $A(t,e,n){var r=Math.floor(n/4294967296),o=n;t.setUint32(e,r),t.setUint32(e+4,o)}function KA(t,e,n){if(n===li.UNSAFE_NUMBER||n===li.SAFE_NUMBER){var r=t.getInt32(e),o=t.getUint32(e+4);if(n===li.SAFE_NUMBER&&(r<Math.floor(Number.MIN_SAFE_INTEGER/4294967296)||r===Math.floor(Number.MIN_SAFE_INTEGER/4294967296)&&o===0||r>(Number.MAX_SAFE_INTEGER-o)/4294967296)){var a=\"\".concat(r<0?\"-\":\"\",\"0x\").concat(Math.abs(r).toString(16)).concat(o.toString(16).padStart(8,\"0\"));throw new Error(\"Mode is IntMode.SAFE_NUMBER and value is not a safe integer: \".concat(a))}return r*4294967296+o}var c=t.getBigInt64(e);return n===li.MIXED&&c>=Number.MIN_SAFE_INTEGER&&c<=Number.MAX_SAFE_INTEGER?Number(c):c}function IX(t,e,n){if(n===li.UNSAFE_NUMBER||n===li.SAFE_NUMBER){var r=t.getUint32(e),o=t.getUint32(e+4);if(n===li.SAFE_NUMBER&&r>(Number.MAX_SAFE_INTEGER-o)/4294967296){var a=\"0x\".concat(r.toString(16)).concat(o.toString(16).padStart(8,\"0\"));throw new Error(\"Mode is IntMode.SAFE_NUMBER and value is not a safe integer: \".concat(a))}return r*4294967296+o}var c=t.getBigUint64(e);return n===li.MIXED&&c<=Number.MAX_SAFE_INTEGER?Number(c):c}function RX(t,e){return e===li.BIGINT?BigInt(t):Number(t)}var li,iv,o3=Ve(()=>{u();(function(t){t[t.UNSAFE_NUMBER=0]=\"UNSAFE_NUMBER\",t[t.SAFE_NUMBER=1]=\"SAFE_NUMBER\",t[t.AS_ENCODED=2]=\"AS_ENCODED\",t[t.MIXED=3]=\"MIXED\",t[t.BIGINT=4]=\"BIGINT\"})(li||(li={}));iv=4294967295});function nCe(t){var e=t.sec,n=t.nsec;if(e>=0&&n>=0&&e<=tCe)if(n===0&&e<=eCe){var r=new Uint8Array(4),o=new DataView(r.buffer);return o.setUint32(0,e),r}else{var a=e/4294967296,c=e&4294967295,r=new Uint8Array(8),o=new DataView(r.buffer);return o.setUint32(0,n<<2|a&3),o.setUint32(4,c),r}else{var r=new Uint8Array(12),o=new DataView(r.buffer);return o.setUint32(0,n),$A(o,4,e),r}}function rCe(t){var e=t.getTime(),n=Math.floor(e/1e3),r=(e-n*1e3)*1e6,o=Math.floor(r/1e9);return{sec:n+o,nsec:r-o*1e9}}function oCe(t){if(t instanceof Date){var e=rCe(t);return nCe(e)}else return null}function iCe(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var n=e.getUint32(0),r=0;return{sec:n,nsec:r}}case 8:{var o=e.getUint32(0),a=e.getUint32(4),n=(o&3)*4294967296+a,r=o>>>2;return{sec:n,nsec:r}}case 12:{var n=KA(e,4,li.UNSAFE_NUMBER),r=e.getUint32(0);return{sec:n,nsec:r}}default:throw new Ml(\"Unrecognized data size for timestamp (expected 4, 8, or 12): \".concat(t.length))}}function aCe(t){var e=iCe(t);return new Date(e.sec*1e3+e.nsec/1e6)}var Qke,eCe,tCe,PX,BX=Ve(()=>{u();jD();o3();Qke=-1,eCe=4294967296-1,tCe=17179869184-1;PX={type:Qke,encode:oCe,decode:aCe}});var GA,$D=Ve(()=>{u();_X();BX();GA=(function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(PX)}return t.prototype.register=function(e){var n=e.type,r=e.encode,o=e.decode;if(n>=0)this.encoders[n]=r,this.decoders[n]=o;else{var a=1+n;this.builtInEncoders[a]=r,this.builtInDecoders[a]=o}},t.prototype.tryToEncode=function(e,n){for(var r=0;r<this.builtInEncoders.length;r++){var o=this.builtInEncoders[r];if(o!=null){var a=o(e,n);if(a!=null){var c=-1-r;return new r3(c,a)}}}for(var r=0;r<this.encoders.length;r++){var o=this.encoders[r];if(o!=null){var a=o(e,n);if(a!=null){var c=r;return new r3(c,a)}}}return e instanceof r3?e:null},t.prototype.decode=function(e,n,r){var o=n<0?this.builtInDecoders[-1-n]:this.decoders[n];return o?o(e,n,r):new r3(n,e)},t.defaultCodec=new t,t})()});function wd(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer?new Uint8Array(t):Uint8Array.from(t)}function DX(t){if(t instanceof ArrayBuffer)return new DataView(t);var e=wd(t);return new DataView(e.buffer,e.byteOffset,e.byteLength)}function KD(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var o=t[r]-e[r];if(o!==0)return o}return t.length-e.length}var Qi,qA=Ve(()=>{u();Qi=(function(){function t(e){if(this.rawBinaryValue=e,!ArrayBuffer.isView(e))throw new TypeError(\"RawBinaryString: rawBinaryValue must be an ArrayBufferView\")}return t})()});var sCe,cCe,FX,OX=Ve(()=>{u();jA();$D();o3();qA();sCe=100,cCe=2048,FX=(function(){function t(e){var n,r,o,a,c,l,f,p;this.extensionCodec=(n=e?.extensionCodec)!==null&&n!==void 0?n:GA.defaultCodec,this.context=e?.context,this.forceBigIntToInt64=(r=e?.forceBigIntToInt64)!==null&&r!==void 0?r:!1,this.maxDepth=(o=e?.maxDepth)!==null&&o!==void 0?o:sCe,this.initialBufferSize=(a=e?.initialBufferSize)!==null&&a!==void 0?a:cCe,this.sortKeys=(c=e?.sortKeys)!==null&&c!==void 0?c:!1,this.forceFloat32=(l=e?.forceFloat32)!==null&&l!==void 0?l:!1,this.ignoreUndefined=(f=e?.ignoreUndefined)!==null&&f!==void 0?f:!1,this.forceIntegerToFloat=(p=e?.forceIntegerToFloat)!==null&&p!==void 0?p:!1,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return t.prototype.reinitializeState=function(){this.pos=0},t.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},t.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},t.prototype.doEncode=function(e,n){if(n>this.maxDepth)throw new Error(\"Too deep objects in depth \".concat(n));e==null?this.encodeNil():typeof e==\"boolean\"?this.encodeBoolean(e):typeof e==\"number\"?this.encodeNumber(e):typeof e==\"string\"?this.encodeString(e):this.encodeObject(e,n)},t.prototype.ensureBufferSizeToWrite=function(e){var n=this.pos+e;this.view.byteLength<n&&this.resizeBuffer(n*2)},t.prototype.resizeBuffer=function(e){var n=new ArrayBuffer(e),r=new Uint8Array(n),o=new DataView(n);r.set(this.bytes),this.view=o,this.bytes=r},t.prototype.encodeNil=function(){this.writeU8(192)},t.prototype.encodeBoolean=function(e){e===!1?this.writeU8(194):this.writeU8(195)},t.prototype.encodeNumber=function(e){!this.forceIntegerToFloat&&Number.isSafeInteger(e)?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.encodeNumberAsFloat(e)},t.prototype.encodeNumberAsFloat=function(e){this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.encodeBigInt=function(e){if(this.forceBigIntToInt64)this.encodeBigIntAsInt64(e);else if(e>=0)if(e<4294967296||this.forceIntegerToFloat)this.encodeNumber(Number(e));else if(e<BigInt(\"0x10000000000000000\"))this.encodeBigIntAsInt64(e);else throw new Error(\"Bigint is too large for uint64: \".concat(e));else if(e>=-2147483648||this.forceIntegerToFloat)this.encodeNumber(Number(e));else if(e>=BigInt(-1)*BigInt(\"0x8000000000000000\"))this.encodeBigIntAsInt64(e);else throw new Error(\"Bigint is too small for int64: \".concat(e))},t.prototype.encodeBigIntAsInt64=function(e){e>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(e)):(this.writeU8(211),this.writeBigInt64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error(\"Too long string: \".concat(e,\" bytes in UTF-8\"))},t.prototype.encodeString=function(e){var n=5,r=kX(e);this.ensureBufferSizeToWrite(n+r),this.writeStringHeader(r),CX(e,this.bytes,this.pos),this.pos+=r},t.prototype.encodeObject=function(e,n){var r=this.extensionCodec.tryToEncode(e,this.context);if(r!=null)this.encodeExtension(r);else if(Array.isArray(e))this.encodeArray(e,n);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(e instanceof Qi)this.encodeBinaryAsString(e);else if(typeof e==\"bigint\")this.encodeBigInt(e);else if(e instanceof Map)this.encodeMap(e,n);else if(typeof e==\"object\")this.encodeMapObject(e,n);else throw new Error(\"Unrecognized object: \".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var n=e.byteLength;if(n<256)this.writeU8(196),this.writeU8(n);else if(n<65536)this.writeU8(197),this.writeU16(n);else if(n<4294967296)this.writeU8(198),this.writeU32(n);else throw new Error(\"Too large binary: \".concat(n));var r=wd(e);this.writeU8a(r)},t.prototype.encodeBinaryAsString=function(e){var n=e.rawBinaryValue;this.writeStringHeader(n.byteLength);var r=wd(n);this.writeU8a(r)},t.prototype.encodeArray=function(e,n){var r=e.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error(\"Too large array: \".concat(r));for(var o=0,a=e;o<a.length;o++){var c=a[o];this.doEncode(c,n+1)}},t.prototype.countWithoutUndefined=function(e,n){for(var r=0,o=0,a=n;o<a.length;o++){var c=a[o];e.get(c)!==void 0&&r++}return r},t.prototype.sortMapKeys=function(e){for(var n=[],r=[],o=[],a=[],c=0,l=e;c<l.length;c++){var f=l[c];if(typeof f==\"number\"){if(isNaN(f))throw new Error(\"Cannot sort map keys with NaN value\");n.push(f)}else if(typeof f==\"bigint\")n.push(f);else if(typeof f==\"string\")r.push(f);else if(ArrayBuffer.isView(f))a.push(wd(f));else if(f instanceof Qi)o.push(f);else throw new Error(\"Unsupported map key type: \".concat(Object.prototype.toString.apply(f)))}return n.sort(function(p,m){return p<m?-1:p>m?1:0}),r.sort(),o.sort(function(p,m){return KD(wd(p.rawBinaryValue),wd(m.rawBinaryValue))}),a.sort(KD),[].concat(n,r,o,a)},t.prototype.encodeMapObject=function(e,n){this.encodeMap(new Map(Object.entries(e)),n)},t.prototype.encodeMap=function(e,n){var r=Array.from(e.keys());this.sortKeys&&(r=this.sortMapKeys(r));var o=this.ignoreUndefined?this.countWithoutUndefined(e,r):r.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw new Error(\"Too large map object: \".concat(o));for(var a=0,c=r;a<c.length;a++){var l=c[a],f=e.get(l);if(!(this.ignoreUndefined&&f===void 0)){if(typeof l==\"string\")this.encodeString(l);else if(typeof l==\"number\")this.encodeNumber(l);else if(typeof l==\"bigint\")this.encodeBigInt(l);else if(ArrayBuffer.isView(l))this.encodeBinary(l);else if(l instanceof Qi)this.encodeBinaryAsString(l);else throw new Error(\"Unsupported map key type: \".concat(Object.prototype.toString.apply(l)));this.doEncode(f,n+1)}}},t.prototype.encodeExtension=function(e){var n=e.data.length;if(n===1)this.writeU8(212);else if(n===2)this.writeU8(213);else if(n===4)this.writeU8(214);else if(n===8)this.writeU8(215);else if(n===16)this.writeU8(216);else if(n<256)this.writeU8(199),this.writeU8(n);else if(n<65536)this.writeU8(200),this.writeU16(n);else if(n<4294967296)this.writeU8(201),this.writeU32(n);else throw new Error(\"Too large extension object: \".concat(n));this.writeI8(e.type),this.writeU8a(e.data)},t.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},t.prototype.writeU8a=function(e){var n=e.length;this.ensureBufferSizeToWrite(n),this.bytes.set(e,this.pos),this.pos+=n},t.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},t.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},t.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},t.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},t.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},t.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},t.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},t.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),MX(this.view,this.pos,e),this.pos+=8},t.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),$A(this.view,this.pos,e),this.pos+=8},t.prototype.writeBigUint64=function(e){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,e),this.pos+=8},t.prototype.writeBigInt64=function(e){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,e),this.pos+=8},t})()});function i3(t,e){var n=new FX(e);return n.encodeSharedRef(t)}var LX=Ve(()=>{u();OX()});function WA(t){return\"\".concat(t<0?\"-\":\"\",\"0x\").concat(Math.abs(t).toString(16).padStart(2,\"0\"))}var NX=Ve(()=>{u()});var lCe,uCe,UX,zX=Ve(()=>{u();jA();lCe=16,uCe=16,UX=(function(){function t(e,n){e===void 0&&(e=lCe),n===void 0&&(n=uCe),this.maxKeyLength=e,this.maxLengthPerKey=n,this.hit=0,this.miss=0,this.caches=[];for(var r=0;r<this.maxKeyLength;r++)this.caches.push([])}return t.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},t.prototype.find=function(e,n,r){var o=this.caches[r-1];e:for(var a=0,c=o;a<c.length;a++){for(var l=c[a],f=l.bytes,p=0;p<r;p++)if(f[p]!==e[n+p])continue e;return l.str}return null},t.prototype.store=function(e,n){var r=this.caches[e.length-1],o={bytes:e,str:n};r.length>=this.maxLengthPerKey?r[Math.random()*r.length|0]=o:r.push(o)},t.prototype.decode=function(e,n,r){var o=this.find(e,n,r);if(o!=null)return this.hit++,o;this.miss++;var a=HD(e,n,r),c=Uint8Array.prototype.slice.call(e,n,n+r);return this.store(c,a),a},t})()});function pCe(t,e,n){return e?typeof t==\"string\"||typeof t==\"number\"||typeof t==\"bigint\"||t instanceof Uint8Array||t instanceof Qi:typeof t==\"string\"||n&&typeof t==\"number\"}var dCe,GD,VX,av,fCe,qD,s3,jX,hCe,a3,YD,mCe,WD,HX,gCe,$X,KX=Ve(()=>{u();NX();$D();o3();jA();qA();zX();jD();dCe=function(t,e,n,r){function o(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function l(m){try{p(r.next(m))}catch(g){c(g)}}function f(m){try{p(r.throw(m))}catch(g){c(g)}}function p(m){m.done?a(m.value):o(m.value).then(l,f)}p((r=r.apply(t,e||[])).next())})},GD=function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol==\"function\"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return f([p,m])}}function f(p){if(r)throw new TypeError(\"Generator is already executing.\");for(;c&&(c=0,p[0]&&(n=0)),n;)try{if(r=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,o=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){n.label=p[1];break}if(p[0]===6&&n.label<a[1]){n.label=a[1],a=p;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(p);break}a[2]&&n.ops.pop(),n.trys.pop();continue}p=e.call(t,n)}catch(m){p=[6,m],o=0}finally{r=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},VX=function(t){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof __values==\"function\"?__values(t):t[Symbol.iterator](),n={},r(\"next\"),r(\"throw\"),r(\"return\"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(c){return new Promise(function(l,f){c=t[a](c),o(l,f,c.done,c.value)})}}function o(a,c,l,f){Promise.resolve(f).then(function(p){a({value:p,done:l})},c)}},av=function(t){return this instanceof av?(this.v=t,this):new av(t)},fCe=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=n.apply(t,e||[]),o,a=[];return o={},c(\"next\"),c(\"throw\"),c(\"return\"),o[Symbol.asyncIterator]=function(){return this},o;function c(y){r[y]&&(o[y]=function(A){return new Promise(function(T,R){a.push([y,A,T,R])>1||l(y,A)})})}function l(y,A){try{f(r[y](A))}catch(T){g(a[0][3],T)}}function f(y){y.value instanceof av?Promise.resolve(y.value.v).then(p,m):g(a[0][2],y)}function p(y){l(\"next\",y)}function m(y){l(\"throw\",y)}function g(y,A){y(A),a.shift(),a.length&&l(a[0][0],a[0][1])}},qD=\"array\",s3=\"map_key\",jX=\"map_value\";hCe=(function(){function t(e){this.useMap=e,this.stack=[],this.stackHeadPosition=-1}return Object.defineProperty(t.prototype,\"length\",{get:function(){return this.stackHeadPosition+1},enumerable:!1,configurable:!0}),t.prototype.top=function(){return this.stack[this.stackHeadPosition]},t.prototype.pushArrayState=function(e){var n=this.getUninitializedStateFromPool();n.type=qD,n.position=0,n.size=e,n.array=new Array(e)},t.prototype.pushMapState=function(e){var n=this.getUninitializedStateFromPool();n.type=s3,n.readCount=0,n.size=e,n.map=this.useMap?new Map:{}},t.prototype.getUninitializedStateFromPool=function(){if(this.stackHeadPosition++,this.stackHeadPosition===this.stack.length){var e={type:void 0,size:0,array:void 0,position:0,readCount:0,map:void 0,key:null};this.stack.push(e)}return this.stack[this.stackHeadPosition]},t.prototype.release=function(e){var n=this.stack[this.stackHeadPosition];if(n!==e)throw new Error(\"Invalid stack state. Released state is not on top of the stack.\");if(e.type===qD){var r=e;r.size=0,r.array=void 0,r.position=0,r.type=void 0}if(e.type===s3||e.type===jX){var r=e;r.size=0,r.map=void 0,r.readCount=0,r.type=void 0}this.stackHeadPosition--},t.prototype.reset=function(){this.stack.length=0,this.stackHeadPosition=-1},t})(),a3=-1,YD=new DataView(new ArrayBuffer(0)),mCe=new Uint8Array(YD.buffer);try{YD.getInt8(0)}catch(t){if(!(t instanceof RangeError))throw new Error(\"This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access\")}WD=RangeError,HX=new WD(\"Insufficient data\"),gCe=new UX,$X=(function(){function t(e){var n,r,o,a,c,l,f,p,m,g,y,A;if(this.totalPos=0,this.pos=0,this.view=YD,this.bytes=mCe,this.headByte=a3,this.extensionCodec=(n=e?.extensionCodec)!==null&&n!==void 0?n:GA.defaultCodec,this.context=e?.context,this.intMode=(r=e?.intMode)!==null&&r!==void 0?r:e?.useBigInt64?li.AS_ENCODED:li.UNSAFE_NUMBER,this.rawBinaryStringValues=(o=e?.rawBinaryStringValues)!==null&&o!==void 0?o:!1,this.rawBinaryStringKeys=(a=e?.rawBinaryStringKeys)!==null&&a!==void 0?a:!1,this.useRawBinaryStringClass=(c=e?.useRawBinaryStringClass)!==null&&c!==void 0?c:!1,this.useMap=(l=e?.useMap)!==null&&l!==void 0?l:!1,this.supportObjectNumberKeys=(f=e?.supportObjectNumberKeys)!==null&&f!==void 0?f:!1,this.maxStrLength=(p=e?.maxStrLength)!==null&&p!==void 0?p:iv,this.maxBinLength=(m=e?.maxBinLength)!==null&&m!==void 0?m:iv,this.maxArrayLength=(g=e?.maxArrayLength)!==null&&g!==void 0?g:iv,this.maxMapLength=(y=e?.maxMapLength)!==null&&y!==void 0?y:iv,this.maxExtLength=(A=e?.maxExtLength)!==null&&A!==void 0?A:iv,this.keyDecoder=e?.keyDecoder!==void 0?e.keyDecoder:gCe,this.rawBinaryStringKeys&&!this.useMap)throw new Error(\"rawBinaryStringKeys is only supported when useMap is true\");this.stack=new hCe(this.useMap)}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=a3,this.stack.reset()},t.prototype.setBuffer=function(e){this.bytes=wd(e),this.view=DX(this.bytes),this.pos=0},t.prototype.appendBuffer=function(e){if(this.headByte===a3&&!this.hasRemaining(1))this.setBuffer(e);else{var n=this.bytes.subarray(this.pos),r=wd(e),o=new Uint8Array(n.length+r.length);o.set(n),o.set(r,n.length),this.setBuffer(o)}},t.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},t.prototype.createExtraByteError=function(e){var n=this,r=n.view,o=n.pos;return new RangeError(\"Extra \".concat(r.byteLength-o,\" of \").concat(r.byteLength,\" byte(s) found at buffer[\").concat(e,\"]\"))},t.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var n=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return n},t.prototype.decodeMulti=function(e){return GD(this,function(n){switch(n.label){case 0:this.reinitializeState(),this.setBuffer(e),n.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})},t.prototype.decodeAsync=function(e){var n,r,o,a,c,l,f;return dCe(this,void 0,void 0,function(){var p,m,g,y,A,T,R,K;return GD(this,function(O){switch(O.label){case 0:p=!1,O.label=1;case 1:O.trys.push([1,6,7,12]),n=!0,r=VX(e),O.label=2;case 2:return[4,r.next()];case 3:if(o=O.sent(),a=o.done,!!a)return[3,5];if(f=o.value,n=!1,g=f,p)throw this.createExtraByteError(this.totalPos);this.appendBuffer(g);try{m=this.doDecodeSync(),p=!0}catch(V){if(!(V instanceof WD))throw V}this.totalPos+=this.pos,O.label=4;case 4:return n=!0,[3,2];case 5:return[3,12];case 6:return y=O.sent(),c={error:y},[3,12];case 7:return O.trys.push([7,,10,11]),!n&&!a&&(l=r.return)?[4,l.call(r)]:[3,9];case 8:O.sent(),O.label=9;case 9:return[3,11];case 10:if(c)throw c.error;return[7];case 11:return[7];case 12:if(p){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,m]}throw A=this,T=A.headByte,R=A.pos,K=A.totalPos,new RangeError(\"Insufficient data in parsing \".concat(WA(T),\" at \").concat(K,\" (\").concat(R,\" in the current buffer)\"))}})})},t.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},t.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},t.prototype.decodeMultiAsync=function(e,n){return fCe(this,arguments,function(){var o,a,c,l,f,p,m,g,y,A,T,R;return GD(this,function(K){switch(K.label){case 0:o=n,a=-1,K.label=1;case 1:K.trys.push([1,13,14,19]),c=!0,l=VX(e),K.label=2;case 2:return[4,av(l.next())];case 3:if(f=K.sent(),y=f.done,!!y)return[3,12];if(R=f.value,c=!1,p=R,n&&a===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(p),o&&(a=this.readArraySize(),o=!1,this.complete()),K.label=4;case 4:K.trys.push([4,9,,10]),K.label=5;case 5:return[4,av(this.doDecodeSync())];case 6:return[4,K.sent()];case 7:return K.sent(),--a===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(m=K.sent(),!(m instanceof WD))throw m;return[3,10];case 10:this.totalPos+=this.pos,K.label=11;case 11:return c=!0,[3,2];case 12:return[3,19];case 13:return g=K.sent(),A={error:g},[3,19];case 14:return K.trys.push([14,,17,18]),!c&&!y&&(T=l.return)?[4,av(T.call(l))]:[3,16];case 15:K.sent(),K.label=16;case 16:return[3,18];case 17:if(A)throw A.error;return[7];case 18:return[7];case 19:return[2]}})})},t.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),n=void 0;if(e>=224)n=this.convertNumber(e-256);else if(e<192)if(e<128)n=this.convertNumber(e);else if(e<144){var r=e-128;if(r!==0){this.pushMapState(r),this.complete();continue e}else n=this.useMap?new Map:{}}else if(e<160){var r=e-144;if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else{var o=e-160;n=this.decodeString(o,0)}else if(e===192)n=null;else if(e===194)n=!1;else if(e===195)n=!0;else if(e===202)n=this.readF32();else if(e===203)n=this.readF64();else if(e===204)n=this.convertNumber(this.readU8());else if(e===205)n=this.convertNumber(this.readU16());else if(e===206)n=this.convertNumber(this.readU32());else if(e===207)n=this.readU64();else if(e===208)n=this.convertNumber(this.readI8());else if(e===209)n=this.convertNumber(this.readI16());else if(e===210)n=this.convertNumber(this.readI32());else if(e===211)n=this.readI64();else if(e===217){var o=this.lookU8();n=this.decodeString(o,1)}else if(e===218){var o=this.lookU16();n=this.decodeString(o,2)}else if(e===219){var o=this.lookU32();n=this.decodeString(o,4)}else if(e===220){var r=this.readU16();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(e===221){var r=this.readU32();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(e===222){var r=this.readU16();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(e===223){var r=this.readU32();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(e===196){var r=this.lookU8();n=this.decodeBinary(r,1)}else if(e===197){var r=this.lookU16();n=this.decodeBinary(r,2)}else if(e===198){var r=this.lookU32();n=this.decodeBinary(r,4)}else if(e===212)n=this.decodeExtension(1,0);else if(e===213)n=this.decodeExtension(2,0);else if(e===214)n=this.decodeExtension(4,0);else if(e===215)n=this.decodeExtension(8,0);else if(e===216)n=this.decodeExtension(16,0);else if(e===199){var r=this.lookU8();n=this.decodeExtension(r,1)}else if(e===200){var r=this.lookU16();n=this.decodeExtension(r,2)}else if(e===201){var r=this.lookU32();n=this.decodeExtension(r,4)}else throw new Ml(\"Unrecognized type byte: \".concat(WA(e)));this.complete();for(var a=this.stack;a.length>0;){var c=a.top();if(c.type===qD)if(c.array[c.position]=n,c.position++,c.position===c.size)n=c.array,a.release(c);else continue e;else if(c.type===s3){if(!pCe(n,this.useMap,this.supportObjectNumberKeys)){var l=this.useMap?\"string, number, bigint, or Uint8Array\":this.supportObjectNumberKeys?\"string or number\":\"string\";throw new Ml(\"The type of key must be \".concat(l,\" but got \").concat(typeof n))}if(!this.useMap&&n===\"__proto__\")throw new Ml(\"The key __proto__ is not allowed\");c.key=n,c.type=jX;continue e}else if(this.useMap?c.map.set(c.key,n):c.map[c.key]=n,c.readCount++,c.readCount===c.size)n=c.map,a.release(c);else{c.key=null,c.type=s3;continue e}}return n}},t.prototype.readHeadByte=function(){return this.headByte===a3&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=a3},t.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new Ml(\"Unrecognized array type byte: \".concat(WA(e)))}}},t.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Ml(\"Max length exceeded: map length (\".concat(e,\") > maxMapLengthLength (\").concat(this.maxMapLength,\")\"));this.stack.pushMapState(e)},t.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Ml(\"Max length exceeded: array length (\".concat(e,\") > maxArrayLength (\").concat(this.maxArrayLength,\")\"));this.stack.pushArrayState(e)},t.prototype.decodeString=function(e,n){if(this.stateIsMapKey()?this.rawBinaryStringKeys:this.rawBinaryStringValues){var r=this.decodeBinary(e,n);return this.useRawBinaryStringClass?new Qi(r):r}return this.decodeUtf8String(e,n)},t.prototype.decodeUtf8String=function(e,n){var r;if(e>this.maxStrLength)throw new Ml(\"Max length exceeded: UTF-8 byte length (\".concat(e,\") > maxStrLength (\").concat(this.maxStrLength,\")\"));if(this.bytes.byteLength<this.pos+n+e)throw HX;var o=this.pos+n,a;return this.stateIsMapKey()&&(!((r=this.keyDecoder)===null||r===void 0)&&r.canBeCached(e))?a=this.keyDecoder.decode(this.bytes,o,e):a=TX(this.bytes,o,e),this.pos+=n+e,a},t.prototype.stateIsMapKey=function(){if(this.stack.length>0){var e=this.stack.top();return e.type===s3}return!1},t.prototype.decodeBinary=function(e,n){if(e>this.maxBinLength)throw new Ml(\"Max length exceeded: bin length (\".concat(e,\") > maxBinLength (\").concat(this.maxBinLength,\")\"));if(!this.hasRemaining(e+n))throw HX;var r=this.pos+n,o=this.bytes.subarray(r,r+e);return this.pos+=n+e,o},t.prototype.decodeExtension=function(e,n){if(e>this.maxExtLength)throw new Ml(\"Max length exceeded: ext length (\".concat(e,\") > maxExtLength (\").concat(this.maxExtLength,\")\"));var r=this.view.getInt8(this.pos+n),o=this.decodeBinary(e,n+1);return this.extensionCodec.decode(o,r,this.context)},t.prototype.convertNumber=function(e){return RX(e,this.intMode)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},t.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},t.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},t.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},t.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},t.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},t.prototype.readU64=function(){var e=IX(this.view,this.pos,this.intMode);return this.pos+=8,e},t.prototype.readI64=function(){var e=KA(this.view,this.pos,this.intMode);return this.pos+=8,e},t.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},t.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},t})()});function f1(t,e){var n=new $X(e);return n.decode(t)}var GX=Ve(()=>{u();KX()});var c3=Ve(()=>{u();LX();GX();o3();qA()});function vCe(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&(!t[e]||t[e].length===0))return{containsEmpty:!0,firstEmptyKey:e};return{containsEmpty:!1,firstEmptyKey:void 0}}function $f(t){return i3(t,{sortKeys:!0})}function XD(t){let e=vCe(t);if(e.containsEmpty)throw new Error(yCe+e.firstEmptyKey);return $f(t)}function JD(t){switch(t){case Li.UNSAFE:return li.UNSAFE_NUMBER;case Li.SAFE:return li.SAFE_NUMBER;case Li.MIXED:return li.MIXED;case Li.BIGINT:return li.BIGINT;default:throw new Error(`Invalid intDecoding: ${t}`)}}function XA(t,e){let n={intMode:e?.intDecoding?JD(e?.intDecoding):li.BIGINT};return f1(t,n)}function QD(t){return XA(t,{intDecoding:Li.MIXED})}function JA(t,e){let n={intMode:e?.intDecoding?JD(e?.intDecoding):li.BIGINT,useMap:!0};return f1(t,n)}function xCe(t,e){let n={intMode:e?.intDecoding?JD(e?.intDecoding):li.BIGINT,useMap:!0,rawBinaryStringKeys:!0,rawBinaryStringValues:!0,useRawBinaryStringClass:!0};return f1(t,n)}function YA(t){if(t==null)return t;if(t instanceof Uint8Array)return ci(t);if(Array.isArray(t))return t.map(YA);if(t instanceof Map){let e={};for(let[n,r]of t){if(typeof n!=\"string\")throw new Error(`JSON map key must be a string: ${n}`);e[n]=YA(r)}return e}return t}function ZA(t){if(t==null||typeof t==\"string\"||typeof t==\"number\"||typeof t==\"bigint\"||typeof t==\"boolean\")return t;if(Array.isArray(t))return t.map(ZA);if(typeof t==\"object\"){let e=new Map;for(let[n,r]of Object.entries(t))e.set(n,ZA(r));return e}throw new Error(`Invalid JSON encoding data: ${t}`)}function fo(t,e){let n=JA(t),r=new ZD({baseObjectBytes:t});return e.fromEncodingData(e.encodingSchema.fromPreparedMsgpack(n,r))}function ea(t){return $f(t.getEncodingSchema().prepareMsgpack(t.toEncodingData()))}function Zn(t,e){let n=l1(t,{intDecoding:Li.BIGINT});return e.fromEncodingData(e.encodingSchema.fromPreparedJSON(n))}function eF(t,e){let{space:n,...r}=e??{},o=t.getEncodingSchema().prepareJSON(t.toEncodingData(),r);return Zc(o,void 0,n)}var yCe,Zh,ZD,ni,fr=Ve(()=>{u();c3();Es();Zw();Ai();yCe=\"The object contains empty or 0 values. First empty or 0 value encountered during encoding: \";(function(t){t[t.MAP_VALUE=0]=\"MAP_VALUE\",t[t.ARRAY_ELEMENT=1]=\"ARRAY_ELEMENT\"})(Zh||(Zh={}));ZD=class t{constructor({parent:e,segment:n,baseObjectBytes:r}){this.resolvedCache=null,this.resolvedCachePresent=!1,this.parent=e,this.segment=n,this.baseObjectBytes=r}withMapValue(e){return new t({parent:this,segment:{kind:Zh.MAP_VALUE,key:e}})}withArrayElement(e){return new t({parent:this,segment:{kind:Zh.ARRAY_ELEMENT,key:e}})}getRawStringAtCurrentLocation(){let e=this.resolve();if(e instanceof Qi)return e.rawBinaryValue;throw new Error(`Invalid type. Expected RawBinaryString, got ${e} (${typeof e})`)}getRawStringKeysAndValuesAtCurrentLocation(){let e=this.resolve();if(!(e instanceof Map))throw new Error(`Invalid type. Expected Map, got ${e} (${typeof e})`);let n=new Map;for(let[r,o]of e)if(r instanceof Qi)n.set(r.rawBinaryValue,o);else throw new Error(`Invalid type for map key. Expected RawBinaryString, got ${r} (${typeof r})`);return n}resolve(){if(this.resolvedCachePresent)return this.resolvedCache;let e;if(this.parent?e=this.parent.resolve():e=xCe(this.baseObjectBytes),!this.segment)return this.resolvedCache=e,this.resolvedCachePresent=!0,e;if(this.segment.kind===Zh.MAP_VALUE){if(!(e instanceof Map))throw new Error(`Invalid type. Expected Map, got ${e} (${typeof e})`);if(typeof this.segment.key==\"string\"||this.segment.key instanceof Uint8Array||this.segment.key instanceof Qi){let n=this.segment.key instanceof Qi?this.segment.key.rawBinaryValue:Oa(this.segment.key),r=typeof this.segment.key==\"string\"||this.segment.key instanceof Qi;for(let[o,a]of e){let c;if(r?o instanceof Qi&&(c=o.rawBinaryValue):o instanceof Uint8Array&&(c=o),c&&Fa(n,c)){this.resolvedCache=a;break}}}else this.resolvedCache=e.get(this.segment.key);return this.resolvedCachePresent=!0,this.resolvedCache}if(this.segment.kind===Zh.ARRAY_ELEMENT){if(!Array.isArray(e))throw new Error(`Invalid type. Expected Array, got ${e} (${typeof e})`);return this.resolvedCache=e[this.segment.key],this.resolvedCachePresent=!0,this.resolvedCache}throw new Error(`Invalid segment kind: ${this.segment.kind}`)}getPathString(){let e=this.parent?this.parent.getPathString():\"root\";return this.segment?this.segment.kind===Zh.MAP_VALUE?`${e} -> map key \"${this.segment.key}\" (${typeof this.segment.key})`:this.segment.kind===Zh.ARRAY_ELEMENT?`${e} -> array index ${this.segment.key} (${typeof this.segment.key})`:`${e} -> unknown segment kind ${this.segment.kind}`:e}},ni=class{}});var Rr,qX=Ve(()=>{u();fr();Rr=class extends ni{defaultValue(){return!1}isDefaultValue(e){return e===!1}prepareMsgpack(e){if(typeof e==\"boolean\")return e;throw new Error(\"Invalid boolean\")}fromPreparedMsgpack(e,n){if(typeof e==\"boolean\")return e;throw new Error(\"Invalid boolean\")}prepareJSON(e,n){if(typeof e==\"boolean\")return e;throw new Error(\"Invalid boolean\")}fromPreparedJSON(e){if(typeof e==\"boolean\")return e;throw new Error(\"Invalid boolean\")}}});var on,WX=Ve(()=>{u();fr();on=class extends ni{defaultValue(){return\"\"}isDefaultValue(e){return e===\"\"}prepareMsgpack(e){if(typeof e==\"string\")return e;throw new Error(`Invalid string: (${typeof e}) ${e}`)}fromPreparedMsgpack(e,n){if(typeof e==\"string\")return e;throw new Error(`Invalid string: (${typeof e}) ${e}`)}prepareJSON(e,n){if(typeof e==\"string\")return e;throw new Error(`Invalid string: (${typeof e}) ${e}`)}fromPreparedJSON(e){if(typeof e==\"string\")return e;throw new Error(`Invalid string: (${typeof e}) ${e}`)}}});var Le,YX=Ve(()=>{u();fr();Ai();Le=class extends ni{defaultValue(){return BigInt(0)}isDefaultValue(e){return typeof e==\"bigint\"?e===BigInt(0):typeof e==\"number\"?e===0:!1}prepareMsgpack(e){return Ro(e)}fromPreparedMsgpack(e,n){return Ro(e)}prepareJSON(e,n){return Ro(e)}fromPreparedJSON(e){return Ro(e)}}});var co,ZX=Ve(()=>{u();fr();Ss();co=class extends ni{defaultValue(){return dr.zeroAddress()}isDefaultValue(e){return dr.zeroAddress().equals(e)}prepareMsgpack(e){if(e instanceof dr)return e.publicKey;throw new Error(`Invalid address: (${typeof e}) ${e}`)}fromPreparedMsgpack(e,n){return new dr(e)}prepareJSON(e,n){if(e instanceof dr)return e.toString();throw new Error(`Invalid address: (${typeof e}) ${e}`)}fromPreparedJSON(e){return dr.fromString(e)}}});var An,po,XX=Ve(()=>{u();fr();Es();An=class extends ni{defaultValue(){return new Uint8Array}isDefaultValue(e){return e instanceof Uint8Array&&e.byteLength===0}prepareMsgpack(e){if(e instanceof Uint8Array)return e;throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}fromPreparedMsgpack(e,n){if(e instanceof Uint8Array)return e;throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}prepareJSON(e,n){if(e instanceof Uint8Array)return ci(e);throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}fromPreparedJSON(e){if(e==null)return this.defaultValue();if(typeof e==\"string\")return Yn(e);throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}},po=class extends ni{constructor(e){super(),this.length=e}defaultValue(){return new Uint8Array(this.length)}isDefaultValue(e){return e instanceof Uint8Array&&e.byteLength===this.length&&e.every(n=>n===0)}prepareMsgpack(e){if(e instanceof Uint8Array){if(e.byteLength===this.length)return e;throw new Error(`Invalid byte array length: wanted ${this.length}, got ${e.byteLength}`)}throw new Error(\"Invalid byte array\")}fromPreparedMsgpack(e,n){if(e instanceof Uint8Array){if(e.byteLength===this.length)return e;throw new Error(`Invalid byte array length: wanted ${this.length}, got ${e.byteLength}`)}throw new Error(\"Invalid byte array\")}prepareJSON(e){if(e instanceof Uint8Array){if(e.byteLength===this.length)return ci(e);throw new Error(`Invalid byte array length: wanted ${this.length}, got ${e.byteLength}`)}throw new Error(\"Invalid byte array\")}fromPreparedJSON(e){if(typeof e==\"string\"){let n=Yn(e);if(n.byteLength===this.length)return n;throw new Error(`Invalid byte array length: wanted ${this.length}, got ${n.byteLength}`)}throw new Error(\"Invalid base64 byte array\")}}});var tF,l3,JX,u3,QX=Ve(()=>{u();tF=br(ev(),1);fr();l3=32,JX=52,u3=class extends ni{defaultValue(){return new Uint8Array(l3)}isDefaultValue(e){return e instanceof Uint8Array&&e.byteLength===l3&&e.every(n=>n===0)}prepareMsgpack(e){if(e instanceof Uint8Array&&e.byteLength===l3)return e;throw new Error(`Invalid block hash: (${typeof e}) ${e}`)}fromPreparedMsgpack(e,n){if(e instanceof Uint8Array&&e.byteLength===l3)return e;throw new Error(`Invalid block hash: (${typeof e}) ${e}`)}prepareJSON(e,n){if(e instanceof Uint8Array&&e.byteLength===l3)return`blk-${tF.default.encode(e).slice(0,JX)}`;throw new Error(`Invalid block hash: (${typeof e}) ${e}`)}fromPreparedJSON(e){if(typeof e==\"string\"&&e.length===JX+4&&e.startsWith(\"blk-\"))return Uint8Array.from(tF.default.decode.asBytes(e.slice(4)));throw new Error(`Invalid block hash: (${typeof e}) ${e}`)}}});var yu,eJ=Ve(()=>{u();c3();fr();Es();Ai();yu=class extends ni{defaultValue(){return new Uint8Array}isDefaultValue(e){return e instanceof Uint8Array&&e.byteLength===0}prepareMsgpack(e){if(e instanceof Uint8Array)return new Qi(e);throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}fromPreparedMsgpack(e,n){return n.getRawStringAtCurrentLocation()}prepareJSON(e,n){if(e instanceof Uint8Array){let r=qh(e);if(!n.lossyBinaryStringConversion&&!Fa(Oa(r),e))throw new Error(`Invalid UTF-8 byte array encountered. Encode with lossyBinaryStringConversion enabled to bypass this check. Base64 value: ${ci(e)}`);return r}throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}fromPreparedJSON(e){if(typeof e==\"string\")return Oa(e);throw new Error(`Invalid byte array: (${typeof e}) ${e}`)}}});var vn,tJ=Ve(()=>{u();fr();vn=class extends ni{constructor(e){super(),this.itemSchema=e}defaultValue(){return[]}isDefaultValue(e){return Array.isArray(e)&&e.length===0}prepareMsgpack(e){if(Array.isArray(e))return e.map(n=>this.itemSchema.prepareMsgpack(n));throw new Error(\"ArraySchema data must be an array\")}fromPreparedMsgpack(e,n){if(Array.isArray(e))return e.map((r,o)=>this.itemSchema.fromPreparedMsgpack(r,n.withArrayElement(o)));throw new Error(`ArraySchema encoded data must be an array: ${e} (${typeof e})`)}prepareJSON(e,n){if(Array.isArray(e))return e.map(r=>this.itemSchema.prepareJSON(r,n));throw new Error(\"ArraySchema data must be an array\")}fromPreparedJSON(e){if(Array.isArray(e))return e.map(n=>this.itemSchema.fromPreparedJSON(n));throw new Error(`ArraySchema encoded data must be an array: ${e} (${typeof e})`)}}});function hr(t){return t.map(e=>({...e,omitEmpty:!0}))}function Kf(...t){let e=new Map;for(let n of t)for(let[r,o]of n){if(e.has(r))throw new Error(`Duplicate key: ${r}`);e.set(r,o)}return e}function Ri(t,e){let n=new Map;for(let[r,o]of t){let[a,c]=e(r,o);n.set(a,c)}return n}function QA(t){if(t instanceof Qi)return qh(t.rawBinaryValue);if(t instanceof Map){let e=new Map;for(let[n,r]of t)e.set(QA(n),QA(r));return e}return Array.isArray(t)?t.map(QA):t}var wt,Ed,d3,Sd,nJ=Ve(()=>{u();c3();fr();Ai();Es();wt=class t extends ni{constructor(e){super(),this.entries=e,this.checkEntries()}pushEntries(...e){this.entries.push(...e),this.checkEntries()}checkEntries(){for(let n of this.entries)if(n.embedded){if(n.key!==\"\")throw new Error(\"Embedded entries must have an empty key\");if(!(n.valueSchema instanceof t))throw new Error(\"Embedded entry valueSchema must be a NamedMapSchema\")}let e=new Set;for(let n of this.getEntries()){if(e.has(n.key))throw new Error(`Duplicate key: ${n.key}`);e.add(n.key)}}getEntries(){let e=[];for(let n of this.entries)if(n.embedded){let r=n.valueSchema;e.push(...r.getEntries())}else e.push(n);return e}defaultValue(){let e=new Map;for(let n of this.getEntries())e.set(n.key,n.valueSchema.defaultValue());return e}isDefaultValue(e){if(!(e instanceof Map))return!1;for(let n of this.getEntries())if(!n.valueSchema.isDefaultValue(e.get(n.key)))return!1;return!0}prepareMsgpack(e){if(!(e instanceof Map))throw new Error(`NamedMapSchema data must be a Map. Got (${typeof e}) ${e}`);let n=new Map;for(let r of this.getEntries()){let o=e.get(r.key);r.omitEmpty&&r.valueSchema.isDefaultValue(o)||n.set(r.key,r.valueSchema.prepareMsgpack(o))}return n}fromPreparedMsgpack(e,n){if(!(e instanceof Map))throw new Error(\"NamedMapSchema data must be a Map\");let r=new Map;for(let o of this.getEntries())if(e.has(o.key))r.set(o.key,o.valueSchema.fromPreparedMsgpack(e.get(o.key),n.withMapValue(o.key)));else if(o.omitEmpty)r.set(o.key,o.valueSchema.defaultValue());else throw new Error(`Missing key: ${o.key}`);return r}prepareJSON(e,n){if(!(e instanceof Map))throw new Error(\"NamedMapSchema data must be a Map\");let r={};for(let o of this.getEntries()){let a=e.get(o.key);o.omitEmpty&&o.valueSchema.isDefaultValue(a)||(r[o.key]=o.valueSchema.prepareJSON(a,n))}return r}fromPreparedJSON(e){if(e==null||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"NamedMapSchema data must be an object\");let n=new Map;for(let r of this.getEntries())if(Object.prototype.hasOwnProperty.call(e,r.key))n.set(r.key,r.valueSchema.fromPreparedJSON(e[r.key]));else if(r.omitEmpty)n.set(r.key,r.valueSchema.defaultValue());else throw new Error(`Missing key: ${r.key}`);return n}};Ed=class extends ni{constructor(e){super(),this.valueSchema=e}defaultValue(){return new Map}isDefaultValue(e){return e instanceof Map&&e.size===0}prepareMsgpack(e){if(!(e instanceof Map))throw new Error(`Uint64MapSchema data must be a Map. Got (${typeof e}) ${e}`);let n=new Map;for(let[r,o]of e){let a=Ro(r);if(n.has(a))throw new Error(`Duplicate key: ${a}`);n.set(a,this.valueSchema.prepareMsgpack(o))}return n}fromPreparedMsgpack(e,n){if(!(e instanceof Map))throw new Error(\"Uint64MapSchema data must be a Map\");let r=new Map;for(let[o,a]of e){let c=Ro(o);if(r.has(c))throw new Error(`Duplicate key: ${c}`);r.set(c,this.valueSchema.fromPreparedMsgpack(a,n.withMapValue(o)))}return r}prepareJSON(e,n){if(!(e instanceof Map))throw new Error(`Uint64MapSchema data must be a Map. Got (${typeof e}) ${e}`);let r=new Map;for(let[a,c]of e){let l=Ro(a);if(r.has(l))throw new Error(`Duplicate key: ${l}`);r.set(l,this.valueSchema.prepareJSON(c,n))}let o={};for(let[a,c]of r)o[a.toString()]=c;return o}fromPreparedJSON(e){if(e==null||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Uint64MapSchema data must be an object\");let n=new Map;for(let[r,o]of Object.entries(e)){let a=BigInt(r);if(n.has(a))throw new Error(`Duplicate key: ${a}`);n.set(a,this.valueSchema.fromPreparedJSON(o))}return n}},d3=class extends ni{constructor(e){super(),this.valueSchema=e}defaultValue(){return new Map}isDefaultValue(e){return e instanceof Map&&e.size===0}prepareMsgpack(e){if(!(e instanceof Map))throw new Error(`ByteArrayMapSchema data must be a Map. Got (${typeof e}) ${e}`);let n=new Map;for(let[r,o]of e){if(!(r instanceof Uint8Array))throw new Error(`Invalid key: ${r} (${typeof r})`);n.set(r,this.valueSchema.prepareMsgpack(o))}return n}fromPreparedMsgpack(e,n){if(!(e instanceof Map))throw new Error(\"ByteArrayMapSchema data must be a Map\");let r=new Map;for(let[o,a]of e){if(!(o instanceof Uint8Array))throw new Error(`Invalid key: ${o} (${typeof o})`);r.set(o,this.valueSchema.fromPreparedMsgpack(a,n.withMapValue(o)))}return r}prepareJSON(e,n){if(!(e instanceof Map))throw new Error(`ByteArrayMapSchema data must be a Map. Got (${typeof e}) ${e}`);let r=new Map;for(let[a,c]of e){if(!(a instanceof Uint8Array))throw new Error(`Invalid key: ${a} (${typeof a})`);let l=ci(a);if(r.has(l))throw new Error(`Duplicate key (base64): ${l}`);r.set(l,this.valueSchema.prepareJSON(c,n))}let o={};for(let[a,c]of r)o[a]=c;return o}fromPreparedJSON(e){if(e==null||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"ByteArrayMapSchema data must be an object\");let n=new Map;for(let[r,o]of Object.entries(e))n.set(Yn(r),this.valueSchema.fromPreparedJSON(o));return n}};Sd=class extends ni{constructor(e){super(),this.valueSchema=e}defaultValue(){return new Map}isDefaultValue(e){return e instanceof Map&&e.size===0}prepareMsgpack(e){if(!(e instanceof Map))throw new Error(`SpecialCaseBinaryStringMapSchema data must be a Map. Got (${typeof e}) ${e}`);let n=new Map;for(let[r,o]of e){if(!(r instanceof Uint8Array))throw new Error(`Invalid key: ${r} (${typeof r})`);n.set(new Qi(r),this.valueSchema.prepareMsgpack(o))}return n}fromPreparedMsgpack(e,n){let r=new Map,o=n.getRawStringKeysAndValuesAtCurrentLocation();for(let[a,c]of o)r.set(a,this.valueSchema.fromPreparedMsgpack(QA(c),n.withMapValue(new Qi(a))));return r}prepareJSON(e,n){if(!(e instanceof Map))throw new Error(`SpecialCaseBinaryStringMapSchema data must be a Map. Got (${typeof e}) ${e}`);let r=new Map;for(let[a,c]of e){if(!(a instanceof Uint8Array))throw new Error(`Invalid key: ${a}`);let l=qh(a);if(!n.lossyBinaryStringConversion&&!Fa(Oa(l),a))throw new Error(`Invalid UTF-8 byte array encountered. Encode with lossyBinaryStringConversion enabled to bypass this check. Base64 value: ${ci(a)}`);r.set(l,this.valueSchema.prepareJSON(c,n))}let o={};for(let[a,c]of r)o[a]=c;return o}fromPreparedJSON(e){if(e==null||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"SpecialCaseBinaryStringMapSchema data must be an object\");let n=new Map;for(let[r,o]of Object.entries(e))n.set(Oa(r),this.valueSchema.fromPreparedJSON(o));return n}}});var be,rJ=Ve(()=>{u();fr();be=class extends ni{constructor(e){super(),this.valueSchema=e}defaultValue(){}isDefaultValue(e){return e===void 0||this.valueSchema.isDefaultValue(e)}prepareMsgpack(e){if(e!==void 0)return this.valueSchema.prepareMsgpack(e)}fromPreparedMsgpack(e,n){if(e!=null)return this.valueSchema.fromPreparedMsgpack(e,n)}prepareJSON(e,n){return e===void 0?null:this.valueSchema.prepareJSON(e,n)}fromPreparedJSON(e){if(e!=null)return this.valueSchema.fromPreparedJSON(e)}}});var p1,oJ=Ve(()=>{u();fr();p1=class extends ni{defaultValue(){}isDefaultValue(e){return e===void 0}prepareMsgpack(e){return e}fromPreparedMsgpack(e,n){return e}prepareJSON(e,n){return YA(e)}fromPreparedJSON(e){return ZA(e)}}});var Il=Ve(()=>{u();qX();WX();YX();ZX();XX();QX();eJ();tJ();nJ();rJ();oJ()});function bCe(t,e,n){let r=BigInt(t.appIndex),o=t.name,a=r===BigInt(0)||r===n,c=e.indexOf(r)+1;if(c===0&&!a)throw new Error(`Box ref with appId ${r} not in foreign-apps`);return new Map([[\"i\",c],[\"n\",o]])}function iJ(t,e,n){let r=BigInt(n),o=e.map(BigInt);return t.map(a=>bCe(a,o,r))}var aJ=Ve(()=>{u()});function sJ(t,e){let n=[];function r(a){for(let c=0;c<n.length;c++){let l=n[c],f=l.get(\"d\");if((!a.address&&!f||a.address&&f&&a.address.equals(f))&&l.get(\"s\")===a.assetIndex&&l.get(\"p\")===a.appIndex)return c+1}return a.address&&n.push(new Map([[\"d\",a.address]])),a.assetIndex&&n.push(new Map([[\"s\",a.assetIndex]])),a.appIndex&&n.push(new Map([[\"p\",a.appIndex]])),n.length}let o=dr.zeroAddress();for(let a of e){if(a.address||a.assetIndex||a.appIndex){r(a);continue}if(a.holding){let c=a.holding,l=0;c.address&&!c.address.equals(o)&&(l=r({address:c.address}));let f=r({assetIndex:c.assetIndex});n.push(new Map([[\"h\",new Map([[\"d\",l],[\"s\",f]])]]));continue}if(a.locals){let c=a.locals,l=0;c.address&&!c.address.equals(o)&&(l=r({address:c.address}));let f=0;c.appIndex&&BigInt(c.appIndex)!==t&&(f=r({appIndex:c.appIndex})),n.push(new Map([[\"l\",new Map([[\"d\",l],[\"p\",f]])]]));continue}if(a.box){let c=a.box,l=0;c.appIndex&&BigInt(c.appIndex)!==t&&(l=r({appIndex:c.appIndex})),n.push(new Map([[\"b\",new Map([[\"i\",l],[\"n\",c.name]])]]))}}return n}function cJ(t){let e=[];for(let n of t){let r=n.get(\"d\"),o=n.get(\"s\"),a=n.get(\"p\");if(r){e.push({address:r});continue}if(o){e.push({assetIndex:o});continue}if(a){e.push({appIndex:a});continue}let c=n.get(\"h\");if(c){let p=ma(c.get(\"d\")??0),m=ma(c.get(\"s\"));if(!m)throw new Error(`Holding missing asset index: ${c}`);let g=p===0?dr.zeroAddress():e[p-1].address,y=e[m-1].assetIndex;e.push({holding:{address:g,assetIndex:y}});continue}let l=n.get(\"l\");if(l){let p=ma(l.get(\"d\")??0),m=ma(l.get(\"p\")??0),g=p===0?dr.zeroAddress():e[p-1].address,y=m===0?BigInt(0):e[m-1].appIndex;e.push({locals:{address:g,appIndex:y}});continue}let f=n.get(\"b\");if(f){let p=ma(f.get(\"i\")??0),m=f.get(\"n\");if(!m)throw new Error(`Box missing name: ${f}`);let g=p===0?BigInt(0):e[p-1].appIndex;e.push({box:{appIndex:g,name:m}})}}return e}function lJ({appIndex:t,accounts:e,foreignAssets:n,foreignApps:r,holdings:o,locals:a,boxes:c}){let l=[];function f(g){let y;if(typeof g==\"string\"){if(g===\"\")return;y=dr.fromString(g)}else y=g;if(y.equals(dr.zeroAddress()))return;let A=!1;for(let T of l){if(!T.address)continue;let R=T.address;if(typeof T.address==\"string\"&&(R=dr.fromString(T.address)),R.equals(y)){A=!0;break}}A||l.push({address:g})}function p(g){let y=!1;for(let A of l)if(A.assetIndex===g){y=!0;break}y||l.push({assetIndex:g})}function m(g){let y=!1;for(let A of l)if(A.appIndex===g){y=!0;break}y||l.push({appIndex:g})}for(let g of e??[])f(g);for(let g of n??[])p(g);for(let g of r??[])m(g);for(let g of o??[])g.address&&f(g.address),p(g.assetIndex),l.push({holding:g});for(let g of a??[])g.address&&f(g.address),g.appIndex&&BigInt(g.appIndex)!==t&&m(g.appIndex),l.push({locals:g});for(let g of c??[])g.appIndex&&BigInt(g.appIndex)!==t&&m(g.appIndex),l.push({box:g});return l}var nF=Ve(()=>{u();Ss();Ai()});function f3(t){return t===mo.pay||t===mo.keyreg||t===mo.acfg||t===mo.axfer||t===mo.afrz||t===mo.appl||t===mo.stpf||t===mo.hb}function e9(t){return t===ga.NoOpOC||t===ga.OptInOC||t===ga.CloseOutOC||t===ga.ClearStateOC||t===ga.UpdateApplicationOC||t===ga.DeleteApplicationOC}var mo,ga,p3=Ve(()=>{u();(function(t){t.pay=\"pay\",t.keyreg=\"keyreg\",t.acfg=\"acfg\",t.axfer=\"axfer\",t.afrz=\"afrz\",t.appl=\"appl\",t.stpf=\"stpf\",t.hb=\"hb\"})(mo||(mo={}));(function(t){t[t.NoOpOC=0]=\"NoOpOC\",t[t.OptInOC=1]=\"OptInOC\",t[t.CloseOutOC=2]=\"CloseOutOC\",t[t.ClearStateOC=3]=\"ClearStateOC\",t[t.UpdateApplicationOC=4]=\"UpdateApplicationOC\",t[t.DeleteApplicationOC=5]=\"DeleteApplicationOC\"})(ga||(ga={}))});var h1,vu,m1,g1,y1,v1,x1,b1,Xh,Jh,rF=Ve(()=>{u();Il();h1=class t{constructor(e){this.hashType=e.hashType}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"t\",this.hashType]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HashFactory: ${e}`);return new t({hashType:Number(e.get(\"t\"))})}};h1.encodingSchema=new wt(hr([{key:\"t\",valueSchema:new Le}]));vu=class t{constructor(e){this.path=e.path,this.hashFactory=e.hashFactory,this.treeDepth=e.treeDepth}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"pth\",this.path],[\"hsh\",this.hashFactory.toEncodingData()],[\"td\",this.treeDepth]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded MerkleArrayProof: ${e}`);return new t({path:e.get(\"pth\"),hashFactory:h1.fromEncodingData(e.get(\"hsh\")),treeDepth:Number(e.get(\"td\"))})}};vu.encodingSchema=new wt(hr([{key:\"pth\",valueSchema:new vn(new An)},{key:\"hsh\",valueSchema:h1.encodingSchema},{key:\"td\",valueSchema:new Le}]));m1=class t{constructor(e){this.commitment=e.commitment,this.keyLifetime=e.keyLifetime}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"cmt\",this.commitment],[\"lf\",this.keyLifetime]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded MerkleSignatureVerifier: ${e}`);return new t({commitment:e.get(\"cmt\"),keyLifetime:e.get(\"lf\")})}};m1.encodingSchema=new wt(hr([{key:\"cmt\",valueSchema:new po(64)},{key:\"lf\",valueSchema:new Le}]));g1=class t{constructor(e){this.pk=e.pk,this.weight=e.weight}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"p\",this.pk.toEncodingData()],[\"w\",this.weight]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Participant: ${e}`);return new t({pk:m1.fromEncodingData(e.get(\"p\")),weight:e.get(\"w\")})}};g1.encodingSchema=new wt(hr([{key:\"p\",valueSchema:m1.encodingSchema},{key:\"w\",valueSchema:new Le}]));y1=class t{constructor(e){this.publicKey=e.publicKey}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"k\",this.publicKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded FalconVerifier: ${e}`);return new t({publicKey:e.get(\"k\")})}};y1.encodingSchema=new wt(hr([{key:\"k\",valueSchema:new po(1793)}]));v1=class t{constructor(e){this.signature=e.signature,this.vectorCommitmentIndex=e.index,this.proof=e.proof,this.verifyingKey=e.verifyingKey}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"sig\",this.signature],[\"idx\",this.vectorCommitmentIndex],[\"prf\",this.proof.toEncodingData()],[\"vkey\",this.verifyingKey.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded FalconSignatureStruct: ${e}`);return new t({signature:e.get(\"sig\"),index:e.get(\"idx\"),proof:vu.fromEncodingData(e.get(\"prf\")),verifyingKey:y1.fromEncodingData(e.get(\"vkey\"))})}};v1.encodingSchema=new wt(hr([{key:\"sig\",valueSchema:new An},{key:\"idx\",valueSchema:new Le},{key:\"prf\",valueSchema:vu.encodingSchema},{key:\"vkey\",valueSchema:y1.encodingSchema}]));x1=class t{constructor(e){this.sig=e.sig,this.l=e.l}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"s\",this.sig.toEncodingData()],[\"l\",this.l]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SigslotCommit: ${e}`);return new t({sig:v1.fromEncodingData(e.get(\"s\")),l:e.get(\"l\")})}};x1.encodingSchema=new wt(hr([{key:\"s\",valueSchema:v1.encodingSchema},{key:\"l\",valueSchema:new Le}]));b1=class t{constructor(e){this.sigslot=e.sigslot,this.participant=e.participant}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"s\",this.sigslot.toEncodingData()],[\"p\",this.participant.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Reveal: ${e}`);return new t({sigslot:x1.fromEncodingData(e.get(\"s\")),participant:g1.fromEncodingData(e.get(\"p\"))})}};b1.encodingSchema=new wt(hr([{key:\"s\",valueSchema:x1.encodingSchema},{key:\"p\",valueSchema:g1.encodingSchema}]));Xh=class t{constructor(e){this.sigCommit=e.sigCommit,this.signedWeight=e.signedWeight,this.sigProofs=e.sigProofs,this.partProofs=e.partProofs,this.merkleSignatureSaltVersion=e.merkleSignatureSaltVersion,this.reveals=e.reveals,this.positionsToReveal=e.positionsToReveal}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"c\",this.sigCommit],[\"w\",this.signedWeight],[\"S\",this.sigProofs.toEncodingData()],[\"P\",this.partProofs.toEncodingData()],[\"v\",this.merkleSignatureSaltVersion],[\"r\",Ri(this.reveals,(e,n)=>[e,n.toEncodingData()])],[\"pr\",this.positionsToReveal]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProof: ${e}`);return new t({sigCommit:e.get(\"c\"),signedWeight:e.get(\"w\"),sigProofs:vu.fromEncodingData(e.get(\"S\")),partProofs:vu.fromEncodingData(e.get(\"P\")),merkleSignatureSaltVersion:Number(e.get(\"v\")),reveals:Ri(e.get(\"r\"),(n,r)=>[n,b1.fromEncodingData(r)]),positionsToReveal:e.get(\"pr\")})}};Xh.encodingSchema=new wt(hr([{key:\"c\",valueSchema:new An},{key:\"w\",valueSchema:new Le},{key:\"S\",valueSchema:vu.encodingSchema},{key:\"P\",valueSchema:vu.encodingSchema},{key:\"v\",valueSchema:new Le},{key:\"r\",valueSchema:new Ed(b1.encodingSchema)},{key:\"pr\",valueSchema:new vn(new Le)}]));Jh=class t{constructor(e){this.blockHeadersCommitment=e.blockHeadersCommitment,this.votersCommitment=e.votersCommitment,this.lnProvenWeight=e.lnProvenWeight,this.firstAttestedRound=e.firstAttestedRound,this.lastAttestedRound=e.lastAttestedRound}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"b\",this.blockHeadersCommitment],[\"v\",this.votersCommitment],[\"P\",this.lnProvenWeight],[\"f\",this.firstAttestedRound],[\"l\",this.lastAttestedRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofMessage: ${e}`);return new t({blockHeadersCommitment:e.get(\"b\"),votersCommitment:e.get(\"v\"),lnProvenWeight:e.get(\"P\"),firstAttestedRound:e.get(\"f\"),lastAttestedRound:e.get(\"l\")})}static fromMap(e){return new t({blockHeadersCommitment:e.get(\"b\"),votersCommitment:e.get(\"v\"),lnProvenWeight:e.get(\"P\"),firstAttestedRound:e.get(\"f\"),lastAttestedRound:e.get(\"l\")})}};Jh.encodingSchema=new wt(hr([{key:\"b\",valueSchema:new An},{key:\"v\",valueSchema:new An},{key:\"P\",valueSchema:new Le},{key:\"f\",valueSchema:new Le},{key:\"l\",valueSchema:new Le}]))});var h3,Qh,uJ=Ve(()=>{u();Il();h3=class t{constructor(e){this.sig=e.sig,this.pk=e.pk,this.pk2=e.pk2,this.pk1Sig=e.pk1Sig,this.pk2Sig=e.pk2Sig}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"s\",this.sig],[\"p\",this.pk],[\"p2\",this.pk2],[\"p1s\",this.pk1Sig],[\"p2s\",this.pk2Sig]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HeartbeatProof: ${e}`);return new t({sig:e.get(\"s\"),pk:e.get(\"p\"),pk2:e.get(\"p2\"),pk1Sig:e.get(\"p1s\"),pk2Sig:e.get(\"p2s\")})}};h3.encodingSchema=new wt(hr([{key:\"s\",valueSchema:new po(64)},{key:\"p\",valueSchema:new po(32)},{key:\"p2\",valueSchema:new po(32)},{key:\"p1s\",valueSchema:new po(64)},{key:\"p2s\",valueSchema:new po(64)}]));Qh=class t{constructor(e){this.address=e.address,this.proof=e.proof,this.seed=e.seed,this.voteID=e.voteID,this.keyDilution=e.keyDilution}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"a\",this.address],[\"prf\",this.proof.toEncodingData()],[\"sd\",this.seed],[\"vid\",this.voteID],[\"kd\",this.keyDilution]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Heartbeat: ${e}`);return new t({address:e.get(\"a\"),proof:h3.fromEncodingData(e.get(\"prf\")),seed:e.get(\"sd\"),voteID:e.get(\"vid\"),keyDilution:e.get(\"kd\")})}};Qh.encodingSchema=new wt(hr([{key:\"a\",valueSchema:new co},{key:\"prf\",valueSchema:h3.encodingSchema},{key:\"sd\",valueSchema:new An},{key:\"vid\",valueSchema:new po(32)},{key:\"kd\",valueSchema:new Le}]))});function hJ(t){return t.every(e=>e===0)}function oF(t,e,n){if(t==null)return;let r;if(t instanceof Uint8Array&&(r=t),r==null||r.byteLength!==n)throw Error(`${e} must be a ${n} byte Uint8Array`);return r}function Gf(t){if(t==null)throw new Error(\"Address must not be null or undefined\");if(typeof t==\"string\")return dr.fromString(t);if(t instanceof dr)return t;throw new Error(`Not an address: ${t}`)}function em(t){if(t==null)return;let e;if(t instanceof dr)e=t;else if(typeof t==\"string\")e=dr.fromString(t);else throw new Error(`Not an address: ${t}`);if(hJ(e.publicKey))throw new Error(\"Invalid use of the zero address. To omit this value, pass in undefined\");return e}function mJ(t){if(!(typeof t>\"u\")){if(t instanceof Uint8Array)return t;throw new Error(`Not a Uint8Array: ${t}`)}}function w1(t){if(t instanceof Uint8Array)return t;throw new Error(`Not a Uint8Array: ${t}`)}function iF(t){if(!(typeof t>\"u\"))return Ro(t)}function t9(t){if(t===!0||t===!1)return t;throw new Error(`Not a boolean: ${t}`)}function cv(t){if(Array.isArray(t))return t.slice();throw new Error(`Not an array: ${t}`)}function dJ(t,e,n){let r=mJ(t);if(!(typeof r>\"u\")){if(r.byteLength!==e)throw new Error(`${n} must be ${e} bytes long, was ${r.byteLength}`);if(!hJ(r))return r}}function gJ(t){if(t!=null&&typeof t==\"object\"){let{appIndex:e,name:n}=t;return{appIndex:Ro(e),name:w1(n)}}throw new Error(`Not a box reference: ${t}`)}function MCe(t){if(t!=null&&typeof t==\"object\"){let{assetIndex:e,address:n}=t;return{assetIndex:Ro(e),address:Gf(n)}}throw new Error(`Not a holding reference: ${t}`)}function ICe(t){if(t!=null&&typeof t==\"object\"){let{appIndex:e,address:n}=t;return{appIndex:Ro(e),address:Gf(n)}}throw new Error(`Not a locals reference: ${t}`)}function RCe(t){if(t!=null&&typeof t==\"object\"){let{address:e,appIndex:n,assetIndex:r,holding:o,locals:a,box:c}=t;if(e!==void 0)return{address:Gf(e)};if(n!==void 0)return{appIndex:Ro(n)};if(r!==void 0)return{assetIndex:Ro(r)};if(o!==void 0)return{holding:MCe(o)};if(a!==void 0)return{locals:ICe(a)};if(c!==void 0)return{box:gJ(c)}}throw new Error(`Not a resource reference: ${t}`)}function yJ(t){return ea(t)}function vJ(t){return fo(t,La)}var pJ,wCe,ECe,SCe,ACe,kCe,CCe,TCe,_Ce,fJ,La,m3=Ve(()=>{u();pJ=br(ev(),1);aJ();nF();Ss();fr();Il();_l();p3();rF();uJ();Ai();wCe=52,ECe=32,SCe=75,ACe=32,kCe=32,CCe=32,TCe=64,_Ce=32;fJ=new TextEncoder().encode(\"TX\"),La=class t{constructor(e){if(!f3(e.type))throw new Error(`Invalid transaction type: ${e.type}`);if(this.type=e.type,this.sender=Gf(e.sender),this.note=w1(e.note??new Uint8Array),this.lease=dJ(e.lease,ECe,\"lease\"),this.rekeyTo=em(e.rekeyTo),this.group=void 0,this.firstValid=Ro(e.suggestedParams.firstValid),this.lastValid=Ro(e.suggestedParams.lastValid),e.suggestedParams.genesisID){if(typeof e.suggestedParams.genesisID!=\"string\")throw new Error(\"Genesis ID must be a string if present\");this.genesisID=e.suggestedParams.genesisID}this.genesisHash=mJ(e.suggestedParams.genesisHash);let n=[];if(e.paymentParams&&n.push(mo.pay),e.keyregParams&&n.push(mo.keyreg),e.assetConfigParams&&n.push(mo.acfg),e.assetTransferParams&&n.push(mo.axfer),e.assetFreezeParams&&n.push(mo.afrz),e.appCallParams&&n.push(mo.appl),e.stateProofParams&&n.push(mo.stpf),e.heartbeatParams&&n.push(mo.hb),n.length!==1)throw new Error(`Transaction has wrong number of type fields present (${n.length}): ${n}`);if(this.type!==n[0])throw new Error(`Transaction has type ${this.type} but fields present for ${n[0]}`);if(e.paymentParams&&(this.payment={receiver:Gf(e.paymentParams.receiver),amount:Ro(e.paymentParams.amount),closeRemainderTo:em(e.paymentParams.closeRemainderTo)}),e.keyregParams){if(this.keyreg={voteKey:oF(e.keyregParams.voteKey,\"voteKey\",kCe),selectionKey:oF(e.keyregParams.selectionKey,\"selectionKey\",CCe),stateProofKey:oF(e.keyregParams.stateProofKey,\"stateProofKey\",TCe),voteFirst:iF(e.keyregParams.voteFirst),voteLast:iF(e.keyregParams.voteLast),voteKeyDilution:iF(e.keyregParams.voteKeyDilution),nonParticipation:t9(e.keyregParams.nonParticipation??!1)},this.keyreg.nonParticipation&&(this.keyreg.voteKey||this.keyreg.selectionKey||this.keyreg.stateProofKey||typeof this.keyreg.voteFirst<\"u\"||typeof this.keyreg.voteLast<\"u\"||typeof this.keyreg.voteKeyDilution<\"u\"))throw new Error(\"nonParticipation is true but participation params are present.\");if(!this.keyreg.nonParticipation&&(this.keyreg.voteKey||this.keyreg.selectionKey||this.keyreg.stateProofKey||typeof this.keyreg.voteFirst<\"u\"||typeof this.keyreg.voteLast<\"u\"||typeof this.keyreg.voteKeyDilution<\"u\")&&!(this.keyreg.voteKey&&this.keyreg.selectionKey&&typeof this.keyreg.voteFirst<\"u\"&&typeof this.keyreg.voteLast<\"u\"&&typeof this.keyreg.voteKeyDilution<\"u\"))throw new Error(\"Online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution\")}if(e.assetConfigParams&&(this.assetConfig={assetIndex:Ro(e.assetConfigParams.assetIndex??0),total:Ro(e.assetConfigParams.total??0),decimals:ma(e.assetConfigParams.decimals??0),defaultFrozen:t9(e.assetConfigParams.defaultFrozen??!1),manager:em(e.assetConfigParams.manager),reserve:em(e.assetConfigParams.reserve),freeze:em(e.assetConfigParams.freeze),clawback:em(e.assetConfigParams.clawback),unitName:e.assetConfigParams.unitName,assetName:e.assetConfigParams.assetName,assetURL:e.assetConfigParams.assetURL,assetMetadataHash:dJ(e.assetConfigParams.assetMetadataHash,ACe,\"assetMetadataHash\")}),e.assetTransferParams&&(this.assetTransfer={assetIndex:Ro(e.assetTransferParams.assetIndex),amount:Ro(e.assetTransferParams.amount),assetSender:em(e.assetTransferParams.assetSender),receiver:Gf(e.assetTransferParams.receiver),closeRemainderTo:em(e.assetTransferParams.closeRemainderTo)}),e.assetFreezeParams&&(this.assetFreeze={assetIndex:Ro(e.assetFreezeParams.assetIndex),freezeAccount:Gf(e.assetFreezeParams.freezeTarget),frozen:t9(e.assetFreezeParams.frozen)}),e.appCallParams){let{onComplete:o}=e.appCallParams;if(!e9(o))throw new Error(`Invalid onCompletion value: ${o}`);this.applicationCall={appIndex:Ro(e.appCallParams.appIndex),onComplete:o,numLocalInts:ma(e.appCallParams.numLocalInts??0),numLocalByteSlices:ma(e.appCallParams.numLocalByteSlices??0),numGlobalInts:ma(e.appCallParams.numGlobalInts??0),numGlobalByteSlices:ma(e.appCallParams.numGlobalByteSlices??0),extraPages:ma(e.appCallParams.extraPages??0),approvalProgram:w1(e.appCallParams.approvalProgram??new Uint8Array),clearProgram:w1(e.appCallParams.clearProgram??new Uint8Array),appArgs:cv(e.appCallParams.appArgs??[]).map(w1),accounts:cv(e.appCallParams.accounts??[]).map(Gf),foreignApps:cv(e.appCallParams.foreignApps??[]).map(Ro),foreignAssets:cv(e.appCallParams.foreignAssets??[]).map(Ro),boxes:cv(e.appCallParams.boxes??[]).map(gJ),access:cv(e.appCallParams.access??[]).map(RCe),rejectVersion:ma(e.appCallParams.rejectVersion??0)}}if(e.stateProofParams&&(this.stateProof={stateProofType:ma(e.stateProofParams.stateProofType??0),stateProof:e.stateProofParams.stateProof,message:e.stateProofParams.message}),e.heartbeatParams&&(this.heartbeat=new Qh({address:e.heartbeatParams.address,proof:e.heartbeatParams.proof,seed:e.heartbeatParams.seed,voteID:e.heartbeatParams.voteID,keyDilution:e.heartbeatParams.keyDilution})),this.fee=Ro(e.suggestedParams.fee),!t9(e.suggestedParams.flatFee??!1)){let o=Ro(e.suggestedParams.minFee);this.fee*=BigInt(this.estimateSize()),this.fee<o&&(this.fee=o)}}getEncodingSchema(){return t.encodingSchema}toEncodingData(){let e=new Map([[\"type\",this.type],[\"fv\",this.firstValid],[\"lv\",this.lastValid],[\"snd\",this.sender],[\"gen\",this.genesisID],[\"gh\",this.genesisHash],[\"fee\",this.fee],[\"note\",this.note],[\"lx\",this.lease],[\"rekey\",this.rekeyTo],[\"grp\",this.group]]);if(this.payment)return e.set(\"amt\",this.payment.amount),e.set(\"rcv\",this.payment.receiver),e.set(\"close\",this.payment.closeRemainderTo),e;if(this.keyreg)return e.set(\"votekey\",this.keyreg.voteKey),e.set(\"selkey\",this.keyreg.selectionKey),e.set(\"sprfkey\",this.keyreg.stateProofKey),e.set(\"votefst\",this.keyreg.voteFirst),e.set(\"votelst\",this.keyreg.voteLast),e.set(\"votekd\",this.keyreg.voteKeyDilution),e.set(\"nonpart\",this.keyreg.nonParticipation),e;if(this.assetConfig){e.set(\"caid\",this.assetConfig.assetIndex);let n=new Map([[\"t\",this.assetConfig.total],[\"dc\",this.assetConfig.decimals],[\"df\",this.assetConfig.defaultFrozen],[\"m\",this.assetConfig.manager],[\"r\",this.assetConfig.reserve],[\"f\",this.assetConfig.freeze],[\"c\",this.assetConfig.clawback],[\"un\",this.assetConfig.unitName],[\"an\",this.assetConfig.assetName],[\"au\",this.assetConfig.assetURL],[\"am\",this.assetConfig.assetMetadataHash]]);return e.set(\"apar\",n),e}if(this.assetTransfer)return e.set(\"xaid\",this.assetTransfer.assetIndex),e.set(\"aamt\",this.assetTransfer.amount),e.set(\"arcv\",this.assetTransfer.receiver),e.set(\"aclose\",this.assetTransfer.closeRemainderTo),e.set(\"asnd\",this.assetTransfer.assetSender),e;if(this.assetFreeze)return e.set(\"faid\",this.assetFreeze.assetIndex),e.set(\"afrz\",this.assetFreeze.frozen),e.set(\"fadd\",this.assetFreeze.freezeAccount),e;if(this.applicationCall)return e.set(\"apid\",this.applicationCall.appIndex),e.set(\"apan\",this.applicationCall.onComplete),e.set(\"apaa\",this.applicationCall.appArgs),e.set(\"apat\",this.applicationCall.accounts),e.set(\"apas\",this.applicationCall.foreignAssets),e.set(\"apfa\",this.applicationCall.foreignApps),e.set(\"apbx\",iJ(this.applicationCall.boxes,this.applicationCall.foreignApps,this.applicationCall.appIndex)),e.set(\"al\",sJ(this.applicationCall.appIndex,this.applicationCall.access)),e.set(\"apap\",this.applicationCall.approvalProgram),e.set(\"apsu\",this.applicationCall.clearProgram),e.set(\"apls\",new Map([[\"nui\",this.applicationCall.numLocalInts],[\"nbs\",this.applicationCall.numLocalByteSlices]])),e.set(\"apgs\",new Map([[\"nui\",this.applicationCall.numGlobalInts],[\"nbs\",this.applicationCall.numGlobalByteSlices]])),e.set(\"apep\",this.applicationCall.extraPages),e.set(\"aprv\",this.applicationCall.rejectVersion),e;if(this.stateProof)return e.set(\"sptype\",this.stateProof.stateProofType),e.set(\"sp\",this.stateProof.stateProof?this.stateProof.stateProof.toEncodingData():void 0),e.set(\"spmsg\",this.stateProof.message?this.stateProof.message.toEncodingData():void 0),e;if(this.heartbeat){let n=new Qh({address:this.heartbeat.address,proof:this.heartbeat.proof,seed:this.heartbeat.seed,voteID:this.heartbeat.voteID,keyDilution:this.heartbeat.keyDilution});return e.set(\"hb\",n.toEncodingData()),e}throw new Error(`Unexpected transaction type: ${this.type}`)}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded logic sig account: ${e}`);let n={minFee:BigInt(0),flatFee:!0,fee:e.get(\"fee\")??0,firstValid:e.get(\"fv\")??0,lastValid:e.get(\"lv\")??0,genesisHash:e.get(\"gh\"),genesisID:e.get(\"gen\")},r=e.get(\"type\");if(!f3(r))throw new Error(`Unrecognized transaction type: ${r}`);let o={type:r,sender:e.get(\"snd\")??dr.zeroAddress(),note:e.get(\"note\"),lease:e.get(\"lx\"),suggestedParams:n};if(e.get(\"rekey\")&&(o.rekeyTo=e.get(\"rekey\")),o.type===mo.pay){let c={amount:e.get(\"amt\")??0,receiver:e.get(\"rcv\")??dr.zeroAddress()};e.get(\"close\")&&(c.closeRemainderTo=e.get(\"close\")),o.paymentParams=c}else if(o.type===mo.keyreg){let c={voteKey:e.get(\"votekey\"),selectionKey:e.get(\"selkey\"),stateProofKey:e.get(\"sprfkey\"),voteFirst:e.get(\"votefst\"),voteLast:e.get(\"votelst\"),voteKeyDilution:e.get(\"votekd\"),nonParticipation:e.get(\"nonpart\")};o.keyregParams=c}else if(o.type===mo.acfg){let c={assetIndex:e.get(\"caid\")};if(e.get(\"apar\")){let l=e.get(\"apar\");c.total=l.get(\"t\"),c.decimals=l.get(\"dc\"),c.defaultFrozen=l.get(\"df\"),c.unitName=l.get(\"un\"),c.assetName=l.get(\"an\"),c.assetURL=l.get(\"au\"),c.assetMetadataHash=l.get(\"am\"),l.get(\"m\")&&(c.manager=l.get(\"m\")),l.get(\"r\")&&(c.reserve=l.get(\"r\")),l.get(\"f\")&&(c.freeze=l.get(\"f\")),l.get(\"c\")&&(c.clawback=l.get(\"c\"))}o.assetConfigParams=c}else if(o.type===mo.axfer){let c={assetIndex:e.get(\"xaid\")??0,amount:e.get(\"aamt\")??0,receiver:e.get(\"arcv\")??dr.zeroAddress()};e.get(\"aclose\")&&(c.closeRemainderTo=e.get(\"aclose\")),e.get(\"asnd\")&&(c.assetSender=e.get(\"asnd\")),o.assetTransferParams=c}else if(o.type===mo.afrz){let c={assetIndex:e.get(\"faid\")??0,freezeTarget:e.get(\"fadd\")??dr.zeroAddress(),frozen:e.get(\"afrz\")??!1};o.assetFreezeParams=c}else if(o.type===mo.appl){let c={appIndex:e.get(\"apid\")??0,onComplete:ma(e.get(\"apan\")??0),appArgs:e.get(\"apaa\"),accounts:e.get(\"apat\"),foreignAssets:e.get(\"apas\"),foreignApps:e.get(\"apfa\"),approvalProgram:e.get(\"apap\"),clearProgram:e.get(\"apsu\"),extraPages:e.get(\"apep\"),rejectVersion:e.get(\"aprv\")??0},l=e.get(\"apls\");l&&(c.numLocalInts=l.get(\"nui\"),c.numLocalByteSlices=l.get(\"nbs\"));let f=e.get(\"apgs\");f&&(c.numGlobalInts=f.get(\"nui\"),c.numGlobalByteSlices=f.get(\"nbs\"));let p=e.get(\"apbx\");p&&(c.boxes=p.map(g=>{let y=ma(g.get(\"i\")??0),A=w1(g.get(\"n\")??new Uint8Array);if(y===0)return{appIndex:0,name:A};if(!c.foreignApps||y>c.foreignApps.length)throw new Error(`Cannot find foreign app index ${y} in ${c.foreignApps}`);return{appIndex:c.foreignApps[y-1],name:A}}));let m=e.get(\"al\");m&&(c.access=cJ(m)),o.appCallParams=c}else if(o.type===mo.stpf){let c={stateProofType:e.get(\"sptype\"),stateProof:e.get(\"sp\")?Xh.fromEncodingData(e.get(\"sp\")):void 0,message:e.get(\"spmsg\")?Jh.fromEncodingData(e.get(\"spmsg\")):void 0};o.stateProofParams=c}else if(o.type===mo.hb){let c=Qh.fromEncodingData(e.get(\"hb\")),l={address:c.address,proof:c.proof,seed:c.seed,voteID:c.voteID,keyDilution:c.keyDilution};o.heartbeatParams=l}else{let c=o.type;throw new Error(`Unexpected transaction type: ${c}`)}let a=new t(o);if(e.get(\"grp\")){let c=w1(e.get(\"grp\"));if(c.byteLength!==_Ce)throw new Error(`Invalid group length: ${c.byteLength}`);a.group=c}return a}estimateSize(){return this.toByte().length+SCe}bytesToSign(){let e=this.toByte();return ti(fJ,e)}toByte(){return ea(this)}rawSignTxn(e){let n=this.bytesToSign();return Gh(n,e)}signTxn(e){let n=u1(e),r=new dr(n.publicKey),o=this.rawSignTxn(e);return this.attachSignature(r,o)}attachSignature(e,n){if(!OA(n.length))throw new Error(\"Invalid signature length\");let r=new Map([[\"sig\",n],[\"txn\",this.toEncodingData()]]),o=Gf(e);this.sender.equals(o)||r.set(\"sgnr\",o);let a=new wt(hr([{key:\"txn\",valueSchema:t.encodingSchema},{key:\"sig\",valueSchema:new po(64)},{key:\"sgnr\",valueSchema:new be(new co)}]));return $f(a.prepareMsgpack(r))}rawTxID(){let e=this.toByte(),n=ti(fJ,e);return Uint8Array.from(ws(n))}txID(){let e=this.rawTxID();return pJ.default.encode(e).slice(0,wCe)}};La.encodingSchema=new wt(hr([{key:\"type\",valueSchema:new on},{key:\"snd\",valueSchema:new co},{key:\"lv\",valueSchema:new Le},{key:\"gen\",valueSchema:new be(new on)},{key:\"gh\",valueSchema:new be(new po(32))},{key:\"fee\",valueSchema:new Le},{key:\"fv\",valueSchema:new Le},{key:\"note\",valueSchema:new An},{key:\"lx\",valueSchema:new be(new po(32))},{key:\"rekey\",valueSchema:new be(new co)},{key:\"grp\",valueSchema:new be(new po(32))},{key:\"amt\",valueSchema:new be(new Le)},{key:\"rcv\",valueSchema:new be(new co)},{key:\"close\",valueSchema:new be(new co)},{key:\"votekey\",valueSchema:new be(new po(32))},{key:\"selkey\",valueSchema:new be(new po(32))},{key:\"sprfkey\",valueSchema:new be(new po(64))},{key:\"votefst\",valueSchema:new be(new Le)},{key:\"votelst\",valueSchema:new be(new Le)},{key:\"votekd\",valueSchema:new be(new Le)},{key:\"nonpart\",valueSchema:new be(new Rr)},{key:\"caid\",valueSchema:new be(new Le)},{key:\"apar\",valueSchema:new be(new wt(hr([{key:\"t\",valueSchema:new Le},{key:\"dc\",valueSchema:new Le},{key:\"df\",valueSchema:new Rr},{key:\"m\",valueSchema:new be(new co)},{key:\"r\",valueSchema:new be(new co)},{key:\"f\",valueSchema:new be(new co)},{key:\"c\",valueSchema:new be(new co)},{key:\"un\",valueSchema:new be(new on)},{key:\"an\",valueSchema:new be(new on)},{key:\"au\",valueSchema:new be(new on)},{key:\"am\",valueSchema:new be(new po(32))}])))},{key:\"xaid\",valueSchema:new be(new Le)},{key:\"aamt\",valueSchema:new be(new Le)},{key:\"arcv\",valueSchema:new be(new co)},{key:\"aclose\",valueSchema:new be(new co)},{key:\"asnd\",valueSchema:new be(new co)},{key:\"faid\",valueSchema:new be(new Le)},{key:\"afrz\",valueSchema:new be(new Rr)},{key:\"fadd\",valueSchema:new be(new co)},{key:\"apid\",valueSchema:new be(new Le)},{key:\"apan\",valueSchema:new be(new Le)},{key:\"apaa\",valueSchema:new be(new vn(new An))},{key:\"apat\",valueSchema:new be(new vn(new co))},{key:\"apas\",valueSchema:new be(new vn(new Le))},{key:\"apfa\",valueSchema:new be(new vn(new Le))},{key:\"apbx\",valueSchema:new be(new vn(new wt(hr([{key:\"i\",valueSchema:new Le},{key:\"n\",valueSchema:new An}]))))},{key:\"al\",valueSchema:new be(new vn(new wt(hr([{key:\"d\",valueSchema:new be(new co)},{key:\"s\",valueSchema:new be(new Le)},{key:\"p\",valueSchema:new be(new Le)},{key:\"h\",valueSchema:new be(new wt(hr([{key:\"d\",valueSchema:new Le},{key:\"s\",valueSchema:new Le}])))},{key:\"l\",valueSchema:new be(new wt(hr([{key:\"d\",valueSchema:new Le},{key:\"p\",valueSchema:new Le}])))},{key:\"b\",valueSchema:new be(new wt(hr([{key:\"i\",valueSchema:new Le},{key:\"n\",valueSchema:new An}])))}]))))},{key:\"apap\",valueSchema:new be(new An)},{key:\"apsu\",valueSchema:new be(new An)},{key:\"apls\",valueSchema:new be(new wt(hr([{key:\"nui\",valueSchema:new Le},{key:\"nbs\",valueSchema:new Le}])))},{key:\"apgs\",valueSchema:new be(new wt(hr([{key:\"nui\",valueSchema:new Le},{key:\"nbs\",valueSchema:new Le}])))},{key:\"apep\",valueSchema:new be(new Le)},{key:\"aprv\",valueSchema:new be(new Le)},{key:\"sptype\",valueSchema:new be(new Le)},{key:\"sp\",valueSchema:new be(Xh.encodingSchema)},{key:\"spmsg\",valueSchema:new be(Jh.encodingSchema)},{key:\"hb\",valueSchema:new be(Qh.encodingSchema)}]))});function tm(t){return t.map(e=>typeof e==\"string\"?dr.fromString(e).publicKey:e.publicKey)}function Rl({version:t,threshold:e,pks:n}){if(t!==1||t>255||t<0)throw new Error(PCe);if(e===0||n.length===0||e>n.length||e>255)throw new Error(BCe);let r=Yh-tv;if(r!==NA)throw new Error(FCe);let o=new Uint8Array(g3.length+2+r*n.length);o.set(g3,0),o.set([t],g3.length),o.set([e],g3.length+1);for(let a=0;a<n.length;a++){if(n[a].length!==r)throw new Error(DCe);o.set(n[a],g3.length+2+a*r)}return new dr(Uint8Array.from(ws(o)))}function OCe({version:t,threshold:e,addrs:n}){let r=tm(n);return Rl({version:t,threshold:e,pks:r})}function lv(t,e,n){let r=e.v,o=e.thr,a=e.subsig,c=a.map(m=>m.pk);if(e.subsig.length<o)return!1;let l;try{l=Rl({version:r,threshold:o,pks:c}).publicKey}catch{return!1}if(!Fa(l,n))return!1;let f=0;for(let m of a)m.s!==void 0&&(f+=1);if(f<o)return!1;let p=0;for(let m of a)m.s!==void 0&&d1(t,m.s,m.pk)&&(p+=1);return!(p<o)}function aF({version:t,threshold:e,addrs:n}){return OCe({version:t,threshold:e,addrs:n})}var g3,PCe,BCe,DCe,FCe,y3=Ve(()=>{u();_l();Ss();Ai();g3=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),PCe=\"invalid multisig version\",BCe=\"bad multisig threshold\",DCe=\"bad multisig public key - wrong length\",FCe=\"nacl public key length is not 32 bytes\"});function cF(t){if(!(t instanceof Map))throw new Error(`Invalid decoded EncodedSubsig: ${t}`);let e={pk:t.get(\"pk\")};return t.get(\"s\")&&(e.s=t.get(\"s\")),e}function lF(t){let e=new Map([[\"pk\",t.pk]]);return t.s&&e.set(\"s\",t.s),e}function S1(t){if(!(t instanceof Map))throw new Error(`Invalid decoded EncodedMultiSig: ${t}`);return{v:ma(t.get(\"v\")),thr:ma(t.get(\"thr\")),subsig:t.get(\"subsig\").map(cF)}}function A1(t){return new Map([[\"v\",t.v],[\"thr\",t.thr],[\"subsig\",t.subsig.map(lF)]])}var sF,E1,uF=Ve(()=>{u();Il();Ai();sF=new wt(hr([{key:\"pk\",valueSchema:new po(32)},{key:\"s\",valueSchema:new be(new po(64))}]));E1=new wt(hr([{key:\"v\",valueSchema:new Le},{key:\"thr\",valueSchema:new Le},{key:\"subsig\",valueSchema:new vn(sF)}]))});function xJ(t){if(!t||t.length===0)throw new Error(\"empty program\");let e=10,n=32,r=126,o=c=>n<=c&&c<=r;if(t.every(c=>c===e||o(c))){let c=new TextDecoder().decode(t);throw t3(c)?new Error(\"requesting program bytes, get Algorand address\"):LCe.test(c)?new Error(\"program should not be b64 encoded\"):new Error(\"program bytes are all ASCII printable characters, not looking like Teal byte code\")}}function fF(t){return fo(t,vc)}function n9(t,e,n){let r=typeof n==\"string\"?dr.fromString(n):n,o=ti(r.publicKey,e),a=ti(wJ,o);return Gh(a,t)}function pF(t,e,n,r){let o=typeof e==\"string\"?dr.fromString(e):e,a=ti(o.publicKey,t),c=ti(wJ,a);return d1(c,n,r)}function hF(t,e,n){let o=new vc(n).address();return n9(t,e,o)}var LCe,dF,bJ,vc,nm,wJ,r9=Ve(()=>{u();_l();Ss();fr();Il();y3();Ai();uF();LCe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;dF=new TextEncoder().encode(\"Program\"),bJ=new TextEncoder().encode(\"MsigProgram\"),vc=class t{constructor(e,n){if(n&&(!Array.isArray(n)||!n.every(o=>o.constructor===Uint8Array)))throw new TypeError(\"Invalid arguments\");let r=[];n!=null&&(r=n.map(o=>new Uint8Array(o))),xJ(e),this.logic=e,this.args=r,this.sig=void 0,this.msig=void 0,this.lmsig=void 0}getEncodingSchema(){return t.encodingSchema}toEncodingData(){let e=new Map([[\"l\",this.logic],[\"arg\",this.args],[\"sig\",this.sig]]);return this.msig&&e.set(\"msig\",A1(this.msig)),this.lmsig&&e.set(\"lmsig\",A1(this.lmsig)),e}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded logic sig: ${e}`);let n=new t(e.get(\"l\"),e.get(\"arg\"));return n.sig=e.get(\"sig\"),e.get(\"msig\")&&(n.msig=S1(e.get(\"msig\"))),e.get(\"lmsig\")&&(n.lmsig=S1(e.get(\"lmsig\"))),n}verify(e){if([this.sig,this.msig,this.lmsig].filter(Boolean).length>1)return!1;try{xJ(this.logic)}catch{return!1}let r=ti(dF,this.logic);if(!this.sig&&!this.msig&&!this.lmsig){let o=ws(r);return Fa(o,e)}if(this.sig)return d1(r,this.sig,e);if(this.lmsig){let o=Rl({version:this.lmsig.v,threshold:this.lmsig.thr,pks:this.lmsig.subsig.map(c=>c.pk)}),a=ti(bJ,o.publicKey,this.logic);return lv(a,this.lmsig,e)}return this.msig?lv(r,this.msig,e):!1}address(){let e=ti(dF,this.logic),n=ws(e);return new dr(Uint8Array.from(n))}sign(e,n){if(n==null)this.sig=this.signProgram(e);else{let r=tm(n.addrs).map(c=>({pk:c}));this.lmsig={v:n.version,thr:n.threshold,subsig:r};let[o,a]=this.singleSignMultisig(e,this.lmsig);this.lmsig.subsig[a].s=o}}appendToMultisig(e){if(this.lmsig===void 0)throw new Error(\"no multisig present\");let[n,r]=this.singleSignMultisig(e,this.lmsig);this.lmsig.subsig[r].s=n}signProgram(e){let n=ti(dF,this.logic);return Gh(n,e)}signProgramMultisig(e,n){let r=Rl({version:n.v,threshold:n.thr,pks:n.subsig.map(c=>c.pk)}),o=ti(bJ,r.publicKey,this.logic);return Gh(o,e)}singleSignMultisig(e,n){let r=-1,o=u1(e).publicKey;for(let c=0;c<n.subsig.length;c++){let{pk:l}=n.subsig[c];if(Fa(l,o)){r=c;break}}if(r===-1)throw new Error(\"invalid secret key\");return[this.signProgramMultisig(e,n),r]}toByte(){return ea(this)}static fromByte(e){return fo(e,t)}};vc.encodingSchema=new wt(hr([{key:\"l\",valueSchema:new An},{key:\"arg\",valueSchema:new vn(new An)},{key:\"sig\",valueSchema:new be(new po(64))},{key:\"msig\",valueSchema:new be(E1)},{key:\"lmsig\",valueSchema:new be(E1)}]));nm=class t{constructor(e,n){this.lsig=new vc(e,n),this.sigkey=void 0}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"lsig\",this.lsig.toEncodingData()],[\"sigkey\",this.sigkey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded logic sig account: ${e}`);let n=e,r=vc.fromEncodingData(n.get(\"lsig\")),o=new t(r.logic,r.args);return o.lsig=r,o.sigkey=n.get(\"sigkey\"),o}toByte(){return ea(this)}static fromByte(e){return fo(e,t)}isDelegated(){return!!(this.lsig.sig||this.lsig.msig||this.lsig.lmsig)}verify(){let e=this.address();return this.lsig.verify(e.publicKey)}address(){if([this.lsig.sig,this.lsig.msig,this.lsig.lmsig].filter(Boolean).length>1)throw new Error(\"LogicSig has too many signatures. At most one of sig, msig, or lmsig may be present\");if(this.lsig.sig){if(!this.sigkey)throw new Error(\"Signing key for delegated account is missing\");return new dr(this.sigkey)}let n=this.lsig.lmsig||this.lsig.msig;if(n){let r={version:n.v,threshold:n.thr,pks:n.subsig.map(o=>o.pk)};return Rl(r)}return this.lsig.address()}signMultisig(e,n){this.lsig.sign(n,e)}appendToMultisig(e){this.lsig.appendToMultisig(e)}sign(e){this.lsig.sign(e),this.sigkey=u1(e).publicKey}};nm.encodingSchema=new wt(hr([{key:\"lsig\",valueSchema:vc.encodingSchema},{key:\"sigkey\",valueSchema:new be(new po(32))}]));wJ=new TextEncoder().encode(\"ProgData\")});var o9=Ve(()=>{u();p3();uF()});function mF(t){return fo(t,So)}function v3(t){let e=new So({txn:t});return ea(e)}var So,qf=Ve(()=>{u();fr();m3();r9();o9();Il();So=class t{constructor({txn:e,sig:n,msig:r,lsig:o,sgnr:a}){this.txn=e,this.sig=n,this.msig=r,this.lsig=o,this.sgnr=a;let c=0;if(n&&(c+=1),r&&(c+=1),o&&(c+=1),c>1)throw new Error(`SignedTransaction must not have more than 1 signature. Got ${c}`)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txn\",this.txn.toEncodingData()],[\"sig\",this.sig],[\"msig\",this.msig?A1(this.msig):void 0],[\"lsig\",this.lsig?this.lsig.toEncodingData():void 0],[\"sgnr\",this.sgnr]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SignedTransaction: ${e}`);return new t({txn:La.fromEncodingData(e.get(\"txn\")),sig:e.get(\"sig\"),msig:e.get(\"msig\")?S1(e.get(\"msig\")):void 0,lsig:e.get(\"lsig\")?vc.fromEncodingData(e.get(\"lsig\")):void 0,sgnr:e.get(\"sgnr\")})}};So.encodingSchema=new wt(hr([{key:\"txn\",valueSchema:La.encodingSchema},{key:\"sig\",valueSchema:new be(new po(64))},{key:\"msig\",valueSchema:new be(E1)},{key:\"lsig\",valueSchema:new be(vc.encodingSchema)},{key:\"sgnr\",valueSchema:new be(new co)}]))});var k1,C1,T1,_1,M1,I1,Ad,Wf,uv,dv,rm,R1,om,i9=Ve(()=>{u();Il();qf();k1=class t{constructor(e){this.stateProofVotersCommitment=e.stateProofVotersCommitment,this.stateProofOnlineTotalWeight=e.stateProofOnlineTotalWeight,this.stateProofNextRound=e.stateProofNextRound}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"v\",this.stateProofVotersCommitment],[\"t\",this.stateProofOnlineTotalWeight],[\"n\",this.stateProofNextRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofTrackingData: ${e}`);return new t({stateProofVotersCommitment:e.get(\"v\"),stateProofOnlineTotalWeight:e.get(\"t\"),stateProofNextRound:e.get(\"n\")})}};k1.encodingSchema=new wt(hr([{key:\"v\",valueSchema:new An},{key:\"t\",valueSchema:new Le},{key:\"n\",valueSchema:new Le}]));C1=class t{constructor(e){this.nativeSha512_256Commitment=e.nativeSha512_256Commitment,this.sha256Commitment=e.sha256Commitment}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txn\",this.nativeSha512_256Commitment],[\"txn256\",this.sha256Commitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TxnCommitments: ${e}`);return new t({nativeSha512_256Commitment:e.get(\"txn\"),sha256Commitment:e.get(\"txn256\")})}};C1.encodingSchema=new wt(hr([{key:\"txn\",valueSchema:new po(32)},{key:\"txn256\",valueSchema:new po(32)}]));T1=class t{constructor(e){this.feeSink=e.feeSink,this.rewardsPool=e.rewardsPool,this.rewardsLevel=e.rewardsLevel,this.rewardsRate=e.rewardsRate,this.rewardsResidue=e.rewardsResidue,this.rewardsRecalculationRound=e.rewardsRecalculationRound}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"fees\",this.feeSink],[\"rwd\",this.rewardsPool],[\"earn\",this.rewardsLevel],[\"rate\",this.rewardsRate],[\"frac\",this.rewardsResidue],[\"rwcalr\",this.rewardsRecalculationRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded RewardState: ${e}`);return new t({feeSink:e.get(\"fees\"),rewardsPool:e.get(\"rwd\"),rewardsLevel:e.get(\"earn\"),rewardsRate:e.get(\"rate\"),rewardsResidue:e.get(\"frac\"),rewardsRecalculationRound:e.get(\"rwcalr\")})}};T1.encodingSchema=new wt(hr([{key:\"fees\",valueSchema:new co},{key:\"rwd\",valueSchema:new co},{key:\"earn\",valueSchema:new Le},{key:\"rate\",valueSchema:new Le},{key:\"frac\",valueSchema:new Le},{key:\"rwcalr\",valueSchema:new Le}]));_1=class t{constructor(e){this.currentProtocol=e.currentProtocol,this.nextProtocol=e.nextProtocol,this.nextProtocolApprovals=e.nextProtocolApprovals,this.nextProtocolVoteBefore=e.nextProtocolVoteBefore,this.nextProtocolSwitchOn=e.nextProtocolSwitchOn}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"proto\",this.currentProtocol],[\"nextproto\",this.nextProtocol],[\"nextyes\",this.nextProtocolApprovals],[\"nextbefore\",this.nextProtocolVoteBefore],[\"nextswitch\",this.nextProtocolSwitchOn]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded UpgradeState: ${e}`);return new t({currentProtocol:e.get(\"proto\"),nextProtocol:e.get(\"nextproto\"),nextProtocolApprovals:e.get(\"nextyes\"),nextProtocolVoteBefore:e.get(\"nextbefore\"),nextProtocolSwitchOn:e.get(\"nextswitch\")})}};_1.encodingSchema=new wt(hr([{key:\"proto\",valueSchema:new on},{key:\"nextproto\",valueSchema:new on},{key:\"nextyes\",valueSchema:new Le},{key:\"nextbefore\",valueSchema:new Le},{key:\"nextswitch\",valueSchema:new Le}]));M1=class t{constructor(e){this.upgradePropose=e.upgradePropose,this.upgradeDelay=e.upgradeDelay,this.upgradeApprove=e.upgradeApprove}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"upgradeprop\",this.upgradePropose],[\"upgradedelay\",this.upgradeDelay],[\"upgradeyes\",this.upgradeApprove]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded UpgradeVote: ${e}`);return new t({upgradePropose:e.get(\"upgradeprop\"),upgradeDelay:e.get(\"upgradedelay\"),upgradeApprove:e.get(\"upgradeyes\")})}};M1.encodingSchema=new wt(hr([{key:\"upgradeprop\",valueSchema:new on},{key:\"upgradedelay\",valueSchema:new Le},{key:\"upgradeyes\",valueSchema:new Rr}]));I1=class t{constructor(e){this.expiredParticipationAccounts=e.expiredParticipationAccounts,this.absentParticipationAccounts=e.absentParticipationAccounts}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"partupdrmv\",this.expiredParticipationAccounts],[\"partupdabs\",this.absentParticipationAccounts]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ParticipationUpdates: ${e}`);return new t({expiredParticipationAccounts:e.get(\"partupdrmv\"),absentParticipationAccounts:e.get(\"partupdabs\")})}};I1.encodingSchema=new wt(hr([{key:\"partupdrmv\",valueSchema:new vn(new co)},{key:\"partupdabs\",valueSchema:new vn(new co)}]));Ad=class t{constructor(e){this.round=e.round,this.branch=e.branch,this.seed=e.seed,this.txnCommitments=e.txnCommitments,this.timestamp=e.timestamp,this.genesisID=e.genesisID,this.genesisHash=e.genesisHash,this.proposer=e.proposer,this.feesCollected=e.feesCollected,this.bonus=e.bonus,this.proposerPayout=e.proposerPayout,this.rewardState=e.rewardState,this.upgradeState=e.upgradeState,this.upgradeVote=e.upgradeVote,this.txnCounter=e.txnCounter,this.stateproofTracking=e.stateproofTracking,this.participationUpdates=e.participationUpdates}getEncodingSchema(){return t.encodingSchema}toEncodingData(){let e=new Map([[\"rnd\",this.round],[\"prev\",this.branch],[\"seed\",this.seed],[\"ts\",this.timestamp],[\"gen\",this.genesisID],[\"gh\",this.genesisHash],[\"prp\",this.proposer],[\"fc\",this.feesCollected],[\"bi\",this.bonus],[\"pp\",this.proposerPayout],[\"tc\",this.txnCounter],[\"spt\",Ri(this.stateproofTracking,(n,r)=>[n,r.toEncodingData()])]]);return Kf(e,this.txnCommitments.toEncodingData(),this.rewardState.toEncodingData(),this.upgradeState.toEncodingData(),this.upgradeVote.toEncodingData(),this.participationUpdates.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockHeader: ${e}`);return new t({round:e.get(\"rnd\"),branch:e.get(\"prev\"),seed:e.get(\"seed\"),txnCommitments:C1.fromEncodingData(e),timestamp:e.get(\"ts\"),genesisID:e.get(\"gen\"),genesisHash:e.get(\"gh\"),proposer:e.get(\"prp\"),feesCollected:e.get(\"fc\"),bonus:e.get(\"bi\"),proposerPayout:e.get(\"pp\"),rewardState:T1.fromEncodingData(e),upgradeState:_1.fromEncodingData(e),upgradeVote:M1.fromEncodingData(e),txnCounter:e.get(\"tc\"),stateproofTracking:Ri(e.get(\"spt\"),(n,r)=>[Number(n),k1.fromEncodingData(r)]),participationUpdates:I1.fromEncodingData(e)})}};Ad.encodingSchema=new wt(hr([{key:\"rnd\",valueSchema:new Le},{key:\"prev\",valueSchema:new u3},{key:\"seed\",valueSchema:new An},{key:\"\",valueSchema:C1.encodingSchema,embedded:!0},{key:\"ts\",valueSchema:new Le},{key:\"gen\",valueSchema:new on},{key:\"gh\",valueSchema:new po(32)},{key:\"prp\",valueSchema:new co},{key:\"fc\",valueSchema:new Le},{key:\"bi\",valueSchema:new Le},{key:\"pp\",valueSchema:new Le},{key:\"\",valueSchema:T1.encodingSchema,embedded:!0},{key:\"\",valueSchema:_1.encodingSchema,embedded:!0},{key:\"\",valueSchema:M1.encodingSchema,embedded:!0},{key:\"tc\",valueSchema:new Le},{key:\"spt\",valueSchema:new Ed(k1.encodingSchema)},{key:\"\",valueSchema:I1.encodingSchema,embedded:!0}]));Wf=class t{constructor(e){this.action=e.action,this.bytes=e.bytes,this.uint=e.uint}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"at\",this.action],[\"bs\",this.bytes],[\"ui\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ValueDelta: ${e}`);return new t({action:Number(e.get(\"at\")),bytes:e.get(\"bs\"),uint:e.get(\"ui\")})}};Wf.encodingSchema=new wt(hr([{key:\"at\",valueSchema:new Le},{key:\"bs\",valueSchema:new yu},{key:\"ui\",valueSchema:new Le}]));uv=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries(...hr([{key:\"gd\",valueSchema:new be(new Sd(Wf.encodingSchema))},{key:\"ld\",valueSchema:new be(new Ed(new Sd(Wf.encodingSchema)))},{key:\"sa\",valueSchema:new be(new vn(new co))},{key:\"lg\",valueSchema:new be(new vn(new yu))},{key:\"itx\",valueSchema:new be(new vn(rm.encodingSchema))}]))),this.encodingSchemaValue}constructor(e){this.globalDelta=e.globalDelta??new Map,this.localDeltas=e.localDeltas??new Map,this.sharedAccts=e.sharedAccts??[],this.logs=e.logs??[],this.innerTxns=e.innerTxns??[]}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"gd\",Ri(this.globalDelta,(e,n)=>[e,n.toEncodingData()])],[\"ld\",Ri(this.localDeltas,(e,n)=>[e,Ri(n,(r,o)=>[r,o.toEncodingData()])])],[\"sa\",this.sharedAccts],[\"lg\",this.logs],[\"itx\",this.innerTxns.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded EvalDelta: ${e}`);return new t({globalDelta:e.get(\"gd\")?Ri(e.get(\"gd\"),(n,r)=>[n,Wf.fromEncodingData(r)]):void 0,localDeltas:e.get(\"ld\")?Ri(e.get(\"ld\"),(n,r)=>[Number(n),Ri(r,(o,a)=>[o,Wf.fromEncodingData(a)])]):void 0,sharedAccts:e.get(\"sa\"),logs:e.get(\"lg\"),innerTxns:(e.get(\"itx\")??[]).map(rm.fromEncodingData)})}},dv=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries(...hr([{key:\"ca\",valueSchema:new be(new Le)},{key:\"aca\",valueSchema:new be(new Le)},{key:\"rs\",valueSchema:new be(new Le)},{key:\"rr\",valueSchema:new be(new Le)},{key:\"rc\",valueSchema:new be(new Le)},{key:\"dt\",valueSchema:new be(uv.encodingSchema)},{key:\"caid\",valueSchema:new be(new Le)},{key:\"apid\",valueSchema:new be(new Le)}]))),this.encodingSchemaValue}constructor(e){this.closingAmount=e.closingAmount,this.assetClosingAmount=e.assetClosingAmount,this.senderRewards=e.senderRewards,this.receiverRewards=e.receiverRewards,this.closeRewards=e.closeRewards,this.evalDelta=e.evalDelta,this.configAsset=e.configAsset,this.applicationID=e.applicationID}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"ca\",this.closingAmount],[\"aca\",this.assetClosingAmount],[\"rs\",this.senderRewards],[\"rr\",this.receiverRewards],[\"rc\",this.closeRewards],[\"dt\",this.evalDelta?this.evalDelta.toEncodingData():void 0],[\"caid\",this.configAsset],[\"apid\",this.applicationID]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplyData: ${e}`);return new t({closingAmount:e.get(\"ca\"),assetClosingAmount:e.get(\"aca\"),senderRewards:e.get(\"rs\"),receiverRewards:e.get(\"rr\"),closeRewards:e.get(\"rc\"),evalDelta:e.get(\"dt\")?uv.fromEncodingData(e.get(\"dt\")):void 0,configAsset:e.get(\"caid\"),applicationID:e.get(\"apid\")})}},rm=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries(...hr([{key:\"\",valueSchema:So.encodingSchema,embedded:!0},{key:\"\",valueSchema:dv.encodingSchema,embedded:!0}]))),this.encodingSchemaValue}constructor(e){this.signedTxn=e.signedTxn,this.applyData=e.applyData}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return Kf(this.signedTxn.toEncodingData(),this.applyData.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SignedTxnWithAD: ${e}`);return new t({signedTxn:So.fromEncodingData(e),applyData:dv.fromEncodingData(e)})}},R1=class t{constructor(e){this.signedTxn=e.signedTxn,this.hasGenesisID=e.hasGenesisID,this.hasGenesisHash=e.hasGenesisHash}getEncodingSchema(){return t.encodingSchema}toEncodingData(){let e=new Map([[\"hgi\",this.hasGenesisID],[\"hgh\",this.hasGenesisHash]]);return Kf(e,this.signedTxn.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SignedTxnInBlock: ${e}`);return new t({signedTxn:rm.fromEncodingData(e),hasGenesisID:e.get(\"hgi\"),hasGenesisHash:e.get(\"hgh\")})}};R1.encodingSchema=new wt(hr([{key:\"\",valueSchema:rm.encodingSchema,embedded:!0},{key:\"hgi\",valueSchema:new Rr},{key:\"hgh\",valueSchema:new Rr}]));om=class t{constructor(e){this.header=e.header,this.payset=e.payset}getEncodingSchema(){return t.encodingSchema}toEncodingData(){let e=new Map([[\"txns\",this.payset.map(n=>n.toEncodingData())]]);return Kf(e,this.header.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockHeader: ${e}`);return new t({header:Ad.fromEncodingData(e),payset:e.get(\"txns\").map(R1.fromEncodingData)})}};om.encodingSchema=new wt(hr([{key:\"\",valueSchema:Ad.encodingSchema,embedded:!0},{key:\"txns\",valueSchema:new vn(R1.encodingSchema)}]))});var ji,x3=Ve(()=>{u();Il();ji=class t{constructor(e){this.data=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return this.data}static fromEncodingData(e){return new t(e)}};ji.encodingSchema=new p1});var Yf,Xc,P1,B1,D1,F1,O1,L1,N1,U1,z1,V1,H1,j1,$1,K1,G1,q1,W1,Y1,xu,Z1,Pl,b3=Ve(()=>{u();Il();i9();x3();Yf=class t{constructor(e){this.type=e.type,this.bytes=e.bytes,this.uint=e.uint}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"tt\",this.type],[\"tb\",this.bytes],[\"ui\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TealValue: ${e}`);return new t({type:Number(e.get(\"tt\")),bytes:e.get(\"tb\"),uint:e.get(\"ui\")})}};Yf.encodingSchema=new wt(hr([{key:\"tt\",valueSchema:new Le},{key:\"tb\",valueSchema:new be(new yu)},{key:\"ui\",valueSchema:new be(new Le)}]));Xc=class t{constructor(e){this.numUints=e.numUints,this.numByteSlices=e.numByteSlices}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"nui\",this.numUints],[\"nbs\",this.numByteSlices]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateSchema: ${e}`);return new t({numUints:Number(e.get(\"nui\")),numByteSlices:Number(e.get(\"nbs\"))})}};Xc.encodingSchema=new wt(hr([{key:\"nui\",valueSchema:new Le},{key:\"nbs\",valueSchema:new Le}]));P1=class t{constructor(e){this.approvalProgram=e.approvalProgram,this.clearStateProgram=e.clearStateProgram,this.globalState=e.globalState,this.localStateSchema=e.localStateSchema,this.globalStateSchema=e.globalStateSchema,this.extraProgramPages=e.extraProgramPages}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"approv\",this.approvalProgram],[\"clearp\",this.clearStateProgram],[\"gs\",Ri(this.globalState,(e,n)=>[e,n.toEncodingData()])],[\"lsch\",this.localStateSchema.toEncodingData()],[\"gsch\",this.globalStateSchema.toEncodingData()],[\"epp\",this.extraProgramPages]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppParams: ${e}`);return new t({approvalProgram:e.get(\"approv\"),clearStateProgram:e.get(\"clearp\"),globalState:Ri(e.get(\"gs\"),(n,r)=>[n,Yf.fromEncodingData(r)]),localStateSchema:Xc.fromEncodingData(e.get(\"lsch\")),globalStateSchema:Xc.fromEncodingData(e.get(\"gsch\")),extraProgramPages:Number(e.get(\"epp\"))})}};P1.encodingSchema=new wt(hr([{key:\"approv\",valueSchema:new An},{key:\"clearp\",valueSchema:new An},{key:\"gs\",valueSchema:new Sd(Yf.encodingSchema)},{key:\"lsch\",valueSchema:Xc.encodingSchema},{key:\"gsch\",valueSchema:Xc.encodingSchema},{key:\"epp\",valueSchema:new Le}]));B1=class t{constructor(e){this.schema=e.schema,this.keyValue=e.keyValue}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hsch\",this.schema.toEncodingData()],[\"tkv\",Ri(this.keyValue,(e,n)=>[e,n.toEncodingData()])]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppLocalState: ${e}`);return new t({schema:Xc.fromEncodingData(e.get(\"hsch\")),keyValue:Ri(e.get(\"tkv\"),(n,r)=>[n,Yf.fromEncodingData(r)])})}};B1.encodingSchema=new wt(hr([{key:\"hsch\",valueSchema:Xc.encodingSchema},{key:\"tkv\",valueSchema:new Sd(Yf.encodingSchema)}]));D1=class t{constructor(e){this.localState=e.localState,this.deleted=e.deleted}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"LocalState\",this.localState?this.localState.toEncodingData():void 0],[\"Deleted\",this.deleted]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppLocalStateDelta: ${e}`);return new t({localState:e.get(\"LocalState\")?B1.fromEncodingData(e.get(\"LocalState\")):void 0,deleted:e.get(\"Deleted\")})}};D1.encodingSchema=new wt(hr([{key:\"LocalState\",valueSchema:new be(B1.encodingSchema)},{key:\"Deleted\",valueSchema:new Rr}]));F1=class t{constructor(e){this.params=e.params,this.deleted=e.deleted}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Params\",this.params?this.params.toEncodingData():void 0],[\"Deleted\",this.deleted]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppParamsDelta: ${e}`);return new t({params:e.get(\"Params\")?P1.fromEncodingData(e.get(\"Params\")):void 0,deleted:e.get(\"Deleted\")})}};F1.encodingSchema=new wt(hr([{key:\"Params\",valueSchema:new be(P1.encodingSchema)},{key:\"Deleted\",valueSchema:new Rr}]));O1=class t{constructor(e){this.id=e.id,this.address=e.address,this.params=e.params,this.state=e.state}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Aidx\",this.id],[\"Addr\",this.address],[\"Params\",this.params.toEncodingData()],[\"State\",this.state.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppResourceRecord: ${e}`);return new t({id:e.get(\"Aidx\"),address:e.get(\"Addr\"),params:F1.fromEncodingData(e.get(\"Params\")),state:D1.fromEncodingData(e.get(\"State\"))})}};O1.encodingSchema=new wt(hr([{key:\"Aidx\",valueSchema:new Le},{key:\"Addr\",valueSchema:new co},{key:\"Params\",valueSchema:F1.encodingSchema},{key:\"State\",valueSchema:D1.encodingSchema}]));L1=class t{constructor(e){this.amount=e.amount,this.frozen=e.frozen}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"a\",this.amount],[\"f\",this.frozen]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHolding: ${e}`);return new t({amount:e.get(\"a\"),frozen:e.get(\"f\")})}};L1.encodingSchema=new wt(hr([{key:\"a\",valueSchema:new Le},{key:\"f\",valueSchema:new Rr}]));N1=class t{constructor(e){this.holding=e.holding,this.deleted=e.deleted}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Holding\",this.holding?this.holding.toEncodingData():void 0],[\"Deleted\",this.deleted]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHoldingDelta: ${e}`);return new t({holding:e.get(\"Holding\")?L1.fromEncodingData(e.get(\"Holding\")):void 0,deleted:e.get(\"Deleted\")})}};N1.encodingSchema=new wt(hr([{key:\"Holding\",valueSchema:new be(L1.encodingSchema)},{key:\"Deleted\",valueSchema:new Rr}]));U1=class t{constructor(e){this.total=e.total,this.decimals=e.decimals,this.defaultFrozen=e.defaultFrozen,this.unitName=e.unitName,this.assetName=e.assetName,this.url=e.url,this.metadataHash=e.metadataHash,this.manager=e.manager,this.reserve=e.reserve,this.freeze=e.freeze,this.clawback=e.clawback}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"t\",this.total],[\"dc\",this.decimals],[\"df\",this.defaultFrozen],[\"un\",this.unitName],[\"an\",this.assetName],[\"au\",this.url],[\"am\",this.metadataHash],[\"m\",this.manager],[\"r\",this.reserve],[\"f\",this.freeze],[\"c\",this.clawback]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetParams: ${e}`);return new t({total:e.get(\"t\"),decimals:e.get(\"dc\"),defaultFrozen:e.get(\"df\"),unitName:e.get(\"un\"),assetName:e.get(\"an\"),url:e.get(\"au\"),metadataHash:e.get(\"am\"),manager:e.get(\"m\"),reserve:e.get(\"r\"),freeze:e.get(\"f\"),clawback:e.get(\"c\")})}};U1.encodingSchema=new wt(hr([{key:\"t\",valueSchema:new Le},{key:\"dc\",valueSchema:new Le},{key:\"df\",valueSchema:new Rr},{key:\"un\",valueSchema:new be(new yu)},{key:\"an\",valueSchema:new be(new yu)},{key:\"au\",valueSchema:new be(new yu)},{key:\"am\",valueSchema:new po(32)},{key:\"m\",valueSchema:new be(new co)},{key:\"r\",valueSchema:new be(new co)},{key:\"f\",valueSchema:new be(new co)},{key:\"c\",valueSchema:new be(new co)}]));z1=class t{constructor(e){this.params=e.params,this.deleted=e.deleted}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Params\",this.params?this.params.toEncodingData():void 0],[\"Deleted\",this.deleted]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetParamsDelta: ${e}`);return new t({params:e.get(\"Params\")?U1.fromEncodingData(e.get(\"Params\")):void 0,deleted:e.get(\"Deleted\")})}};z1.encodingSchema=new wt(hr([{key:\"Params\",valueSchema:new be(U1.encodingSchema)},{key:\"Deleted\",valueSchema:new Rr}]));V1=class t{constructor(e){this.id=e.id,this.address=e.address,this.params=e.params,this.holding=e.holding}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Aidx\",this.id],[\"Addr\",this.address],[\"Params\",this.params.toEncodingData()],[\"Holding\",this.holding.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetResourceRecord: ${e}`);return new t({id:e.get(\"Aidx\"),address:e.get(\"Addr\"),params:z1.fromEncodingData(e.get(\"Params\")),holding:N1.fromEncodingData(e.get(\"Holding\"))})}};V1.encodingSchema=new wt(hr([{key:\"Aidx\",valueSchema:new Le},{key:\"Addr\",valueSchema:new co},{key:\"Params\",valueSchema:z1.encodingSchema},{key:\"Holding\",valueSchema:N1.encodingSchema}]));H1=class t{constructor(e){this.voteID=e.voteID,this.selectionID=e.selectionID,this.stateProofID=e.stateProofID,this.voteFirstValid=e.voteFirstValid,this.voteLastValid=e.voteLastValid,this.voteKeyDilution=e.voteKeyDilution}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"VoteID\",this.voteID],[\"SelectionID\",this.selectionID],[\"StateProofID\",this.stateProofID],[\"VoteFirstValid\",this.voteFirstValid],[\"VoteLastValid\",this.voteLastValid],[\"VoteKeyDilution\",this.voteKeyDilution]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded VotingData: ${e}`);return new t({voteID:e.get(\"VoteID\"),selectionID:e.get(\"SelectionID\"),stateProofID:e.get(\"StateProofID\"),voteFirstValid:e.get(\"VoteFirstValid\"),voteLastValid:e.get(\"VoteLastValid\"),voteKeyDilution:e.get(\"VoteKeyDilution\")})}};H1.encodingSchema=new wt(hr([{key:\"VoteID\",valueSchema:new po(32)},{key:\"SelectionID\",valueSchema:new po(32)},{key:\"StateProofID\",valueSchema:new po(64)},{key:\"VoteFirstValid\",valueSchema:new Le},{key:\"VoteLastValid\",valueSchema:new Le},{key:\"VoteKeyDilution\",valueSchema:new Le}]));j1=class t{constructor(e){this.status=e.status,this.microAlgos=e.microAlgos,this.rewardsBase=e.rewardsBase,this.rewardedMicroAlgos=e.rewardedMicroAlgos,this.authAddr=e.authAddr,this.incentiveEligible=e.incentiveEligible,this.totalAppSchema=e.totalAppSchema,this.totalExtraAppPages=e.totalExtraAppPages,this.totalAppParams=e.totalAppParams,this.totalAppLocalStates=e.totalAppLocalStates,this.totalAssetParams=e.totalAssetParams,this.totalAssets=e.totalAssets,this.totalBoxes=e.totalBoxes,this.totalBoxBytes=e.totalBoxBytes,this.lastProposed=e.lastProposed,this.lastHeartbeat=e.lastHeartbeat}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Status\",this.status],[\"MicroAlgos\",this.microAlgos],[\"RewardsBase\",this.rewardsBase],[\"RewardedMicroAlgos\",this.rewardedMicroAlgos],[\"AuthAddr\",this.authAddr],[\"IncentiveEligible\",this.incentiveEligible],[\"TotalAppSchema\",this.totalAppSchema.toEncodingData()],[\"TotalExtraAppPages\",this.totalExtraAppPages],[\"TotalAppParams\",this.totalAppParams],[\"TotalAppLocalStates\",this.totalAppLocalStates],[\"TotalAssetParams\",this.totalAssetParams],[\"TotalAssets\",this.totalAssets],[\"TotalBoxes\",this.totalBoxes],[\"TotalBoxBytes\",this.totalBoxBytes],[\"LastProposed\",this.lastProposed],[\"LastHeartbeat\",this.lastHeartbeat]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountBaseData: ${e}`);return new t({status:Number(e.get(\"Status\")),microAlgos:e.get(\"MicroAlgos\"),rewardsBase:e.get(\"RewardsBase\"),rewardedMicroAlgos:e.get(\"RewardedMicroAlgos\"),authAddr:e.get(\"AuthAddr\"),incentiveEligible:e.get(\"IncentiveEligible\"),totalAppSchema:Xc.fromEncodingData(e.get(\"TotalAppSchema\")),totalExtraAppPages:Number(e.get(\"TotalExtraAppPages\")),totalAppParams:e.get(\"TotalAppParams\"),totalAppLocalStates:e.get(\"TotalAppLocalStates\"),totalAssetParams:e.get(\"TotalAssetParams\"),totalAssets:e.get(\"TotalAssets\"),totalBoxes:e.get(\"TotalBoxes\"),totalBoxBytes:e.get(\"TotalBoxBytes\"),lastProposed:e.get(\"LastProposed\"),lastHeartbeat:e.get(\"LastHeartbeat\")})}};j1.encodingSchema=new wt(hr([{key:\"Status\",valueSchema:new Le},{key:\"MicroAlgos\",valueSchema:new Le},{key:\"RewardsBase\",valueSchema:new Le},{key:\"RewardedMicroAlgos\",valueSchema:new Le},{key:\"AuthAddr\",valueSchema:new co},{key:\"IncentiveEligible\",valueSchema:new Rr},{key:\"TotalAppSchema\",valueSchema:Xc.encodingSchema},{key:\"TotalExtraAppPages\",valueSchema:new Le},{key:\"TotalAppParams\",valueSchema:new Le},{key:\"TotalAppLocalStates\",valueSchema:new Le},{key:\"TotalAssetParams\",valueSchema:new Le},{key:\"TotalAssets\",valueSchema:new Le},{key:\"TotalBoxes\",valueSchema:new Le},{key:\"TotalBoxBytes\",valueSchema:new Le},{key:\"LastProposed\",valueSchema:new Le},{key:\"LastHeartbeat\",valueSchema:new Le}]));$1=class t{constructor(e){this.accountBaseData=e.accountBaseData,this.votingData=e.votingData}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return Kf(this.accountBaseData.toEncodingData(),this.votingData.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountData: ${e}`);return new t({accountBaseData:j1.fromEncodingData(e),votingData:H1.fromEncodingData(e)})}};$1.encodingSchema=new wt(hr([{key:\"\",valueSchema:j1.encodingSchema,embedded:!0},{key:\"\",valueSchema:H1.encodingSchema,embedded:!0}]));K1=class t{constructor(e){this.addr=e.addr,this.accountData=e.accountData}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return Kf(new Map([[\"Addr\",this.addr]]),this.accountData.toEncodingData())}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BalanceRecord: ${e}`);return new t({addr:e.get(\"Addr\"),accountData:$1.fromEncodingData(e)})}};K1.encodingSchema=new wt(hr([{key:\"Addr\",valueSchema:new co},{key:\"\",valueSchema:$1.encodingSchema,embedded:!0}]));G1=class t{constructor(e){this.accounts=e.accounts,this.appResources=e.appResources,this.assetResources=e.assetResources}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Accts\",this.accounts.map(e=>e.toEncodingData())],[\"AppResources\",this.appResources.length===0?void 0:this.appResources.map(e=>e.toEncodingData())],[\"AssetResources\",this.assetResources.length===0?void 0:this.assetResources.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountDeltas: ${e}`);return new t({accounts:(e.get(\"Accts\")??[]).map(K1.fromEncodingData),appResources:(e.get(\"AppResources\")??[]).map(O1.fromEncodingData),assetResources:(e.get(\"AssetResources\")??[]).map(V1.fromEncodingData)})}};G1.encodingSchema=new wt(hr([{key:\"Accts\",valueSchema:new vn(K1.encodingSchema)},{key:\"AppResources\",valueSchema:new be(new vn(O1.encodingSchema))},{key:\"AssetResources\",valueSchema:new be(new vn(V1.encodingSchema))}]));q1=class t{constructor(e){this.data=e.data,this.oldData=e.oldData}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Data\",this.data],[\"OldData\",this.oldData]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded KvValueDelta: ${e}`);return new t({data:e.get(\"Data\"),oldData:e.get(\"OldData\")})}};q1.encodingSchema=new wt(hr([{key:\"Data\",valueSchema:new be(new An)},{key:\"OldData\",valueSchema:new be(new An)}]));W1=class t{constructor(e){this.lastValid=e.lastValid,this.intra=e.intra}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"LastValid\",this.lastValid],[\"Intra\",this.intra]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded IncludedTransactions: ${e}`);return new t({lastValid:e.get(\"LastValid\"),intra:Number(e.get(\"Intra\"))})}};W1.encodingSchema=new wt(hr([{key:\"LastValid\",valueSchema:new Le},{key:\"Intra\",valueSchema:new Le}]));Y1=class t{constructor(e){this.creatableType=e.creatableType,this.created=e.created,this.creator=e.creator,this.ndeltas=e.ndeltas}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Ctype\",this.creatableType],[\"Created\",this.created],[\"Creator\",this.creator],[\"Ndeltas\",this.ndeltas]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ModifiedCreatable: ${e}`);return new t({creatableType:Number(e.get(\"Ctype\")),created:e.get(\"Created\"),creator:e.get(\"Creator\"),ndeltas:Number(e.get(\"Ndeltas\"))})}};Y1.encodingSchema=new wt(hr([{key:\"Ctype\",valueSchema:new Le},{key:\"Created\",valueSchema:new Rr},{key:\"Creator\",valueSchema:new co},{key:\"Ndeltas\",valueSchema:new Le}]));xu=class t{constructor(e){this.money=e.money,this.rewardUnits=e.rewardUnits}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"mon\",this.money],[\"rwd\",this.rewardUnits]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AlgoCount: ${e}`);return new t({money:e.get(\"mon\"),rewardUnits:e.get(\"rwd\")})}};xu.encodingSchema=new wt(hr([{key:\"mon\",valueSchema:new Le},{key:\"rwd\",valueSchema:new Le}]));Z1=class t{constructor(e){this.online=e.online,this.offline=e.offline,this.notParticipating=e.notParticipating,this.rewardsLevel=e.rewardsLevel}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"online\",this.online.toEncodingData()],[\"offline\",this.offline.toEncodingData()],[\"notpart\",this.notParticipating.toEncodingData()],[\"rwdlvl\",this.rewardsLevel]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountTotals: ${e}`);return new t({online:xu.fromEncodingData(e.get(\"online\")),offline:xu.fromEncodingData(e.get(\"offline\")),notParticipating:xu.fromEncodingData(e.get(\"notpart\")),rewardsLevel:e.get(\"rwdlvl\")})}};Z1.encodingSchema=new wt(hr([{key:\"online\",valueSchema:xu.encodingSchema},{key:\"offline\",valueSchema:xu.encodingSchema},{key:\"notpart\",valueSchema:xu.encodingSchema},{key:\"rwdlvl\",valueSchema:new Le}]));Pl=class t{constructor(e){this.accounts=e.accounts,this.kvMods=e.kvMods,this.txids=e.txids,this.txleases=e.txleases,this.creatables=e.creatables,this.blockHeader=e.blockHeader,this.stateProofNext=e.stateProofNext,this.prevTimestamp=e.prevTimestamp,this.totals=e.totals}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Accts\",this.accounts.toEncodingData()],[\"KvMods\",this.kvMods.size===0?void 0:Ri(this.kvMods,(e,n)=>[e,n.toEncodingData()])],[\"Txids\",Ri(this.txids,(e,n)=>[e,n.toEncodingData()])],[\"Txleases\",this.txleases.toEncodingData()],[\"Creatables\",this.creatables.size===0?void 0:Ri(this.creatables,(e,n)=>[e,n.toEncodingData()])],[\"Hdr\",this.blockHeader.toEncodingData()],[\"StateProofNext\",this.stateProofNext],[\"PrevTimestamp\",this.prevTimestamp],[\"Totals\",this.totals.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded LedgerStateDelta: ${e}`);return new t({accounts:G1.fromEncodingData(e.get(\"Accts\")),kvMods:Ri(e.get(\"KvMods\")??new Map,(n,r)=>[n,q1.fromEncodingData(r)]),txids:Ri(e.get(\"Txids\"),(n,r)=>[n,W1.fromEncodingData(r)]),txleases:ji.fromEncodingData(e.get(\"Txleases\")),creatables:Ri(e.get(\"Creatables\")??new Map,(n,r)=>[n,Y1.fromEncodingData(r)]),blockHeader:Ad.fromEncodingData(e.get(\"Hdr\")),stateProofNext:e.get(\"StateProofNext\"),prevTimestamp:e.get(\"PrevTimestamp\"),totals:Z1.fromEncodingData(e.get(\"Totals\"))})}};Pl.encodingSchema=new wt(hr([{key:\"Accts\",valueSchema:G1.encodingSchema},{key:\"KvMods\",valueSchema:new be(new Sd(q1.encodingSchema))},{key:\"Txids\",valueSchema:new d3(W1.encodingSchema)},{key:\"Txleases\",valueSchema:new be(new p1)},{key:\"Creatables\",valueSchema:new be(new Ed(Y1.encodingSchema))},{key:\"Hdr\",valueSchema:Ad.encodingSchema},{key:\"StateProofNext\",valueSchema:new Le},{key:\"PrevTimestamp\",valueSchema:new Le},{key:\"Totals\",valueSchema:Z1.encodingSchema}]))});var f6={};Oi(f6,{Account:()=>J1,AccountApplicationResponse:()=>w3,AccountAssetHolding:()=>E3,AccountAssetResponse:()=>S3,AccountAssetsInformationResponse:()=>gF,AccountParticipation:()=>A3,AccountStateDelta:()=>Q1,AppCallLogs:()=>k3,Application:()=>bu,ApplicationInitialStates:()=>C3,ApplicationKVStorage:()=>Zf,ApplicationLocalReference:()=>T3,ApplicationLocalState:()=>eg,ApplicationParams:()=>Qf,ApplicationStateOperation:()=>_3,ApplicationStateSchema:()=>xc,Asset:()=>tg,AssetHolding:()=>ep,AssetHoldingReference:()=>M3,AssetParams:()=>tp,AvmKeyValue:()=>I3,AvmValue:()=>wu,BlockHashResponse:()=>R3,BlockLogsResponse:()=>yF,BlockResponse:()=>P3,BlockTxidsResponse:()=>B3,Box:()=>D3,BoxDescriptor:()=>F3,BoxReference:()=>O3,BoxesResponse:()=>L3,BuildVersion:()=>N3,CompileResponse:()=>U3,DisassembleResponse:()=>z3,DryrunRequest:()=>V3,DryrunResponse:()=>H3,DryrunSource:()=>j3,DryrunState:()=>X1,DryrunTxnResult:()=>$3,ErrorResponse:()=>vF,EvalDelta:()=>K3,EvalDeltaKeyValue:()=>np,Genesis:()=>xF,GenesisAllocation:()=>G3,GetBlockTimeStampOffsetResponse:()=>q3,GetSyncRoundResponse:()=>W3,LedgerStateDeltaForTransactionGroup:()=>Y3,LightBlockHeaderProof:()=>Z3,NodeStatusResponse:()=>ng,PendingTransactionResponse:()=>rg,PendingTransactionsResponse:()=>og,PostTransactionsResponse:()=>X3,ScratchChange:()=>J3,SimulateInitialStates:()=>Q3,SimulateRequest:()=>ig,SimulateRequestTransactionGroup:()=>rp,SimulateResponse:()=>e6,SimulateTraceConfig:()=>ag,SimulateTransactionGroupResult:()=>t6,SimulateTransactionResult:()=>n6,SimulateUnnamedResourcesAccessed:()=>sg,SimulationEvalOverrides:()=>r6,SimulationOpcodeTraceUnit:()=>Xf,SimulationTransactionExecTrace:()=>o6,StateProof:()=>i6,StateProofMessage:()=>a6,SupplyResponse:()=>s6,TealKeyValue:()=>cg,TealValue:()=>Jf,TransactionGroupLedgerStateDeltasForRoundResponse:()=>c6,TransactionParametersResponse:()=>l6,TransactionProof:()=>u6,Version:()=>d6});var J1,w3,E3,S3,gF,A3,Q1,k3,bu,C3,Zf,T3,eg,Qf,_3,xc,tg,ep,M3,tp,I3,wu,R3,yF,P3,B3,D3,F3,O3,L3,N3,U3,z3,V3,H3,j3,X1,$3,vF,K3,np,xF,G3,q3,W3,Y3,Z3,ng,rg,og,X3,J3,Q3,ig,rp,e6,ag,t6,n6,sg,r6,Xf,o6,i6,a6,s6,cg,Jf,c6,l6,u6,d6,_o=Ve(()=>{u();Ai();Il();Es();i9();b3();qf();Ss();x3();J1=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"amount-without-pending-rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"min-balance\",valueSchema:new Le,omitEmpty:!0},{key:\"pending-rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"status\",valueSchema:new on,omitEmpty:!0},{key:\"total-apps-opted-in\",valueSchema:new Le,omitEmpty:!0},{key:\"total-assets-opted-in\",valueSchema:new Le,omitEmpty:!0},{key:\"total-created-apps\",valueSchema:new Le,omitEmpty:!0},{key:\"total-created-assets\",valueSchema:new Le,omitEmpty:!0},{key:\"apps-local-state\",valueSchema:new be(new vn(eg.encodingSchema)),omitEmpty:!0},{key:\"apps-total-extra-pages\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"apps-total-schema\",valueSchema:new be(xc.encodingSchema),omitEmpty:!0},{key:\"assets\",valueSchema:new be(new vn(ep.encodingSchema)),omitEmpty:!0},{key:\"auth-addr\",valueSchema:new be(new on),omitEmpty:!0},{key:\"created-apps\",valueSchema:new be(new vn(bu.encodingSchema)),omitEmpty:!0},{key:\"created-assets\",valueSchema:new be(new vn(tg.encodingSchema)),omitEmpty:!0},{key:\"incentive-eligible\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"last-heartbeat\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"last-proposed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"participation\",valueSchema:new be(A3.encodingSchema),omitEmpty:!0},{key:\"reward-base\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sig-type\",valueSchema:new be(new on),omitEmpty:!0},{key:\"total-box-bytes\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"total-boxes\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,amount:n,amountWithoutPendingRewards:r,minBalance:o,pendingRewards:a,rewards:c,round:l,status:f,totalAppsOptedIn:p,totalAssetsOptedIn:m,totalCreatedApps:g,totalCreatedAssets:y,appsLocalState:A,appsTotalExtraPages:T,appsTotalSchema:R,assets:K,authAddr:O,createdApps:V,createdAssets:D,incentiveEligible:G,lastHeartbeat:ee,lastProposed:J,participation:le,rewardBase:se,sigType:te,totalBoxBytes:S,totalBoxes:_}){this.address=e,this.amount=Qt(n),this.amountWithoutPendingRewards=Qt(r),this.minBalance=Qt(o),this.pendingRewards=Qt(a),this.rewards=Qt(c),this.round=Qt(l),this.status=f,this.totalAppsOptedIn=Bn(p),this.totalAssetsOptedIn=Bn(m),this.totalCreatedApps=Bn(g),this.totalCreatedAssets=Bn(y),this.appsLocalState=A,this.appsTotalExtraPages=typeof T>\"u\"?void 0:Bn(T),this.appsTotalSchema=R,this.assets=K,this.authAddr=typeof O==\"string\"?dr.fromString(O):O,this.createdApps=V,this.createdAssets=D,this.incentiveEligible=G,this.lastHeartbeat=typeof ee>\"u\"?void 0:Bn(ee),this.lastProposed=typeof J>\"u\"?void 0:Bn(J),this.participation=le,this.rewardBase=typeof se>\"u\"?void 0:Qt(se),this.sigType=te,this.totalBoxBytes=typeof S>\"u\"?void 0:Bn(S),this.totalBoxes=typeof _>\"u\"?void 0:Bn(_)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"amount\",this.amount],[\"amount-without-pending-rewards\",this.amountWithoutPendingRewards],[\"min-balance\",this.minBalance],[\"pending-rewards\",this.pendingRewards],[\"rewards\",this.rewards],[\"round\",this.round],[\"status\",this.status],[\"total-apps-opted-in\",this.totalAppsOptedIn],[\"total-assets-opted-in\",this.totalAssetsOptedIn],[\"total-created-apps\",this.totalCreatedApps],[\"total-created-assets\",this.totalCreatedAssets],[\"apps-local-state\",typeof this.appsLocalState<\"u\"?this.appsLocalState.map(e=>e.toEncodingData()):void 0],[\"apps-total-extra-pages\",this.appsTotalExtraPages],[\"apps-total-schema\",typeof this.appsTotalSchema<\"u\"?this.appsTotalSchema.toEncodingData():void 0],[\"assets\",typeof this.assets<\"u\"?this.assets.map(e=>e.toEncodingData()):void 0],[\"auth-addr\",typeof this.authAddr<\"u\"?this.authAddr.toString():void 0],[\"created-apps\",typeof this.createdApps<\"u\"?this.createdApps.map(e=>e.toEncodingData()):void 0],[\"created-assets\",typeof this.createdAssets<\"u\"?this.createdAssets.map(e=>e.toEncodingData()):void 0],[\"incentive-eligible\",this.incentiveEligible],[\"last-heartbeat\",this.lastHeartbeat],[\"last-proposed\",this.lastProposed],[\"participation\",typeof this.participation<\"u\"?this.participation.toEncodingData():void 0],[\"reward-base\",this.rewardBase],[\"sig-type\",this.sigType],[\"total-box-bytes\",this.totalBoxBytes],[\"total-boxes\",this.totalBoxes]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Account: ${e}`);return new t({address:e.get(\"address\"),amount:e.get(\"amount\"),amountWithoutPendingRewards:e.get(\"amount-without-pending-rewards\"),minBalance:e.get(\"min-balance\"),pendingRewards:e.get(\"pending-rewards\"),rewards:e.get(\"rewards\"),round:e.get(\"round\"),status:e.get(\"status\"),totalAppsOptedIn:e.get(\"total-apps-opted-in\"),totalAssetsOptedIn:e.get(\"total-assets-opted-in\"),totalCreatedApps:e.get(\"total-created-apps\"),totalCreatedAssets:e.get(\"total-created-assets\"),appsLocalState:typeof e.get(\"apps-local-state\")<\"u\"?e.get(\"apps-local-state\").map(n=>eg.fromEncodingData(n)):void 0,appsTotalExtraPages:e.get(\"apps-total-extra-pages\"),appsTotalSchema:typeof e.get(\"apps-total-schema\")<\"u\"?xc.fromEncodingData(e.get(\"apps-total-schema\")):void 0,assets:typeof e.get(\"assets\")<\"u\"?e.get(\"assets\").map(n=>ep.fromEncodingData(n)):void 0,authAddr:e.get(\"auth-addr\"),createdApps:typeof e.get(\"created-apps\")<\"u\"?e.get(\"created-apps\").map(n=>bu.fromEncodingData(n)):void 0,createdAssets:typeof e.get(\"created-assets\")<\"u\"?e.get(\"created-assets\").map(n=>tg.fromEncodingData(n)):void 0,incentiveEligible:e.get(\"incentive-eligible\"),lastHeartbeat:e.get(\"last-heartbeat\"),lastProposed:e.get(\"last-proposed\"),participation:typeof e.get(\"participation\")<\"u\"?A3.fromEncodingData(e.get(\"participation\")):void 0,rewardBase:e.get(\"reward-base\"),sigType:e.get(\"sig-type\"),totalBoxBytes:e.get(\"total-box-bytes\"),totalBoxes:e.get(\"total-boxes\")})}},w3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"app-local-state\",valueSchema:new be(eg.encodingSchema),omitEmpty:!0},{key:\"created-app\",valueSchema:new be(Qf.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({round:e,appLocalState:n,createdApp:r}){this.round=Qt(e),this.appLocalState=n,this.createdApp=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"round\",this.round],[\"app-local-state\",typeof this.appLocalState<\"u\"?this.appLocalState.toEncodingData():void 0],[\"created-app\",typeof this.createdApp<\"u\"?this.createdApp.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountApplicationResponse: ${e}`);return new t({round:e.get(\"round\"),appLocalState:typeof e.get(\"app-local-state\")<\"u\"?eg.fromEncodingData(e.get(\"app-local-state\")):void 0,createdApp:typeof e.get(\"created-app\")<\"u\"?Qf.fromEncodingData(e.get(\"created-app\")):void 0})}},E3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"asset-holding\",valueSchema:ep.encodingSchema,omitEmpty:!0},{key:\"asset-params\",valueSchema:new be(tp.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({assetHolding:e,assetParams:n}){this.assetHolding=e,this.assetParams=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"asset-holding\",this.assetHolding.toEncodingData()],[\"asset-params\",typeof this.assetParams<\"u\"?this.assetParams.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountAssetHolding: ${e}`);return new t({assetHolding:ep.fromEncodingData(e.get(\"asset-holding\")??new Map),assetParams:typeof e.get(\"asset-params\")<\"u\"?tp.fromEncodingData(e.get(\"asset-params\")):void 0})}},S3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"asset-holding\",valueSchema:new be(ep.encodingSchema),omitEmpty:!0},{key:\"created-asset\",valueSchema:new be(tp.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({round:e,assetHolding:n,createdAsset:r}){this.round=Qt(e),this.assetHolding=n,this.createdAsset=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"round\",this.round],[\"asset-holding\",typeof this.assetHolding<\"u\"?this.assetHolding.toEncodingData():void 0],[\"created-asset\",typeof this.createdAsset<\"u\"?this.createdAsset.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountAssetResponse: ${e}`);return new t({round:e.get(\"round\"),assetHolding:typeof e.get(\"asset-holding\")<\"u\"?ep.fromEncodingData(e.get(\"asset-holding\")):void 0,createdAsset:typeof e.get(\"created-asset\")<\"u\"?tp.fromEncodingData(e.get(\"created-asset\")):void 0})}},gF=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"asset-holdings\",valueSchema:new be(new vn(E3.encodingSchema)),omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({round:e,assetHoldings:n,nextToken:r}){this.round=Bn(e),this.assetHoldings=n,this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"round\",this.round],[\"asset-holdings\",typeof this.assetHoldings<\"u\"?this.assetHoldings.map(e=>e.toEncodingData()):void 0],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountAssetsInformationResponse: ${e}`);return new t({round:e.get(\"round\"),assetHoldings:typeof e.get(\"asset-holdings\")<\"u\"?e.get(\"asset-holdings\").map(n=>E3.fromEncodingData(n)):void 0,nextToken:e.get(\"next-token\")})}},A3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"selection-participation-key\",valueSchema:new An,omitEmpty:!0},{key:\"vote-first-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-key-dilution\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-last-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-participation-key\",valueSchema:new An,omitEmpty:!0},{key:\"state-proof-key\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({selectionParticipationKey:e,voteFirstValid:n,voteKeyDilution:r,voteLastValid:o,voteParticipationKey:a,stateProofKey:c}){this.selectionParticipationKey=typeof e==\"string\"?Yn(e):e,this.voteFirstValid=Qt(n),this.voteKeyDilution=Qt(r),this.voteLastValid=Qt(o),this.voteParticipationKey=typeof a==\"string\"?Yn(a):a,this.stateProofKey=typeof c==\"string\"?Yn(c):c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"selection-participation-key\",this.selectionParticipationKey],[\"vote-first-valid\",this.voteFirstValid],[\"vote-key-dilution\",this.voteKeyDilution],[\"vote-last-valid\",this.voteLastValid],[\"vote-participation-key\",this.voteParticipationKey],[\"state-proof-key\",this.stateProofKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountParticipation: ${e}`);return new t({selectionParticipationKey:e.get(\"selection-participation-key\"),voteFirstValid:e.get(\"vote-first-valid\"),voteKeyDilution:e.get(\"vote-key-dilution\"),voteLastValid:e.get(\"vote-last-valid\"),voteParticipationKey:e.get(\"vote-participation-key\"),stateProofKey:e.get(\"state-proof-key\")})}},Q1=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"delta\",valueSchema:new vn(np.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,delta:n}){this.address=e,this.delta=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"delta\",this.delta.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountStateDelta: ${e}`);return new t({address:e.get(\"address\"),delta:(e.get(\"delta\")??[]).map(n=>np.fromEncodingData(n))})}},k3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"application-index\",valueSchema:new Le,omitEmpty:!0},{key:\"logs\",valueSchema:new vn(new An),omitEmpty:!0},{key:\"txId\",valueSchema:new on,omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationIndex:e,logs:n,txid:r}){this.applicationIndex=Bn(e),this.logs=n,this.txid=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"application-index\",this.applicationIndex],[\"logs\",this.logs],[\"txId\",this.txid]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AppCallLogs: ${e}`);return new t({applicationIndex:e.get(\"application-index\"),logs:e.get(\"logs\"),txid:e.get(\"txId\")})}},bu=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"id\",valueSchema:new Le,omitEmpty:!0},{key:\"params\",valueSchema:Qf.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,params:n}){this.id=Qt(e),this.params=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"id\",this.id],[\"params\",this.params.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Application: ${e}`);return new t({id:e.get(\"id\"),params:Qf.fromEncodingData(e.get(\"params\")??new Map)})}},C3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"id\",valueSchema:new Le,omitEmpty:!0},{key:\"app-boxes\",valueSchema:new be(Zf.encodingSchema),omitEmpty:!0},{key:\"app-globals\",valueSchema:new be(Zf.encodingSchema),omitEmpty:!0},{key:\"app-locals\",valueSchema:new be(new vn(Zf.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,appBoxes:n,appGlobals:r,appLocals:o}){this.id=Qt(e),this.appBoxes=n,this.appGlobals=r,this.appLocals=o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"id\",this.id],[\"app-boxes\",typeof this.appBoxes<\"u\"?this.appBoxes.toEncodingData():void 0],[\"app-globals\",typeof this.appGlobals<\"u\"?this.appGlobals.toEncodingData():void 0],[\"app-locals\",typeof this.appLocals<\"u\"?this.appLocals.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationInitialStates: ${e}`);return new t({id:e.get(\"id\"),appBoxes:typeof e.get(\"app-boxes\")<\"u\"?Zf.fromEncodingData(e.get(\"app-boxes\")):void 0,appGlobals:typeof e.get(\"app-globals\")<\"u\"?Zf.fromEncodingData(e.get(\"app-globals\")):void 0,appLocals:typeof e.get(\"app-locals\")<\"u\"?e.get(\"app-locals\").map(n=>Zf.fromEncodingData(n)):void 0})}},Zf=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"kvs\",valueSchema:new vn(I3.encodingSchema),omitEmpty:!0},{key:\"account\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({kvs:e,account:n}){this.kvs=e,this.account=typeof n==\"string\"?dr.fromString(n):n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"kvs\",this.kvs.map(e=>e.toEncodingData())],[\"account\",typeof this.account<\"u\"?this.account.toString():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationKVStorage: ${e}`);return new t({kvs:(e.get(\"kvs\")??[]).map(n=>I3.fromEncodingData(n)),account:e.get(\"account\")})}},T3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"account\",valueSchema:new on,omitEmpty:!0},{key:\"app\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({account:e,app:n}){this.account=typeof e==\"string\"?dr.fromString(e):e,this.app=Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"account\",this.account.toString()],[\"app\",this.app]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLocalReference: ${e}`);return new t({account:e.get(\"account\"),app:e.get(\"app\")})}},eg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"id\",valueSchema:new Le,omitEmpty:!0},{key:\"schema\",valueSchema:xc.encodingSchema,omitEmpty:!0},{key:\"key-value\",valueSchema:new be(new vn(cg.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,schema:n,keyValue:r}){this.id=Qt(e),this.schema=n,this.keyValue=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"id\",this.id],[\"schema\",this.schema.toEncodingData()],[\"key-value\",typeof this.keyValue<\"u\"?this.keyValue.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLocalState: ${e}`);return new t({id:e.get(\"id\"),schema:xc.fromEncodingData(e.get(\"schema\")??new Map),keyValue:typeof e.get(\"key-value\")<\"u\"?e.get(\"key-value\").map(n=>cg.fromEncodingData(n)):void 0})}},Qf=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"approval-program\",valueSchema:new An,omitEmpty:!0},{key:\"clear-state-program\",valueSchema:new An,omitEmpty:!0},{key:\"creator\",valueSchema:new on,omitEmpty:!0},{key:\"extra-program-pages\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"global-state\",valueSchema:new be(new vn(cg.encodingSchema)),omitEmpty:!0},{key:\"global-state-schema\",valueSchema:new be(xc.encodingSchema),omitEmpty:!0},{key:\"local-state-schema\",valueSchema:new be(xc.encodingSchema),omitEmpty:!0},{key:\"version\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({approvalProgram:e,clearStateProgram:n,creator:r,extraProgramPages:o,globalState:a,globalStateSchema:c,localStateSchema:l,version:f}){this.approvalProgram=typeof e==\"string\"?Yn(e):e,this.clearStateProgram=typeof n==\"string\"?Yn(n):n,this.creator=typeof r==\"string\"?dr.fromString(r):r,this.extraProgramPages=typeof o>\"u\"?void 0:Bn(o),this.globalState=a,this.globalStateSchema=c,this.localStateSchema=l,this.version=typeof f>\"u\"?void 0:Bn(f)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"approval-program\",this.approvalProgram],[\"clear-state-program\",this.clearStateProgram],[\"creator\",this.creator.toString()],[\"extra-program-pages\",this.extraProgramPages],[\"global-state\",typeof this.globalState<\"u\"?this.globalState.map(e=>e.toEncodingData()):void 0],[\"global-state-schema\",typeof this.globalStateSchema<\"u\"?this.globalStateSchema.toEncodingData():void 0],[\"local-state-schema\",typeof this.localStateSchema<\"u\"?this.localStateSchema.toEncodingData():void 0],[\"version\",this.version]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationParams: ${e}`);return new t({approvalProgram:e.get(\"approval-program\"),clearStateProgram:e.get(\"clear-state-program\"),creator:e.get(\"creator\"),extraProgramPages:e.get(\"extra-program-pages\"),globalState:typeof e.get(\"global-state\")<\"u\"?e.get(\"global-state\").map(n=>cg.fromEncodingData(n)):void 0,globalStateSchema:typeof e.get(\"global-state-schema\")<\"u\"?xc.fromEncodingData(e.get(\"global-state-schema\")):void 0,localStateSchema:typeof e.get(\"local-state-schema\")<\"u\"?xc.fromEncodingData(e.get(\"local-state-schema\")):void 0,version:e.get(\"version\")})}},_3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"app-state-type\",valueSchema:new on,omitEmpty:!0},{key:\"key\",valueSchema:new An,omitEmpty:!0},{key:\"operation\",valueSchema:new on,omitEmpty:!0},{key:\"account\",valueSchema:new be(new on),omitEmpty:!0},{key:\"new-value\",valueSchema:new be(wu.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({appStateType:e,key:n,operation:r,account:o,newValue:a}){this.appStateType=e,this.key=typeof n==\"string\"?Yn(n):n,this.operation=r,this.account=typeof o==\"string\"?dr.fromString(o):o,this.newValue=a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"app-state-type\",this.appStateType],[\"key\",this.key],[\"operation\",this.operation],[\"account\",typeof this.account<\"u\"?this.account.toString():void 0],[\"new-value\",typeof this.newValue<\"u\"?this.newValue.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationStateOperation: ${e}`);return new t({appStateType:e.get(\"app-state-type\"),key:e.get(\"key\"),operation:e.get(\"operation\"),account:e.get(\"account\"),newValue:typeof e.get(\"new-value\")<\"u\"?wu.fromEncodingData(e.get(\"new-value\")):void 0})}},xc=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"num-byte-slice\",valueSchema:new Le,omitEmpty:!0},{key:\"num-uint\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({numByteSlice:e,numUint:n}){this.numByteSlice=Bn(e),this.numUint=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"num-byte-slice\",this.numByteSlice],[\"num-uint\",this.numUint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationStateSchema: ${e}`);return new t({numByteSlice:e.get(\"num-byte-slice\"),numUint:e.get(\"num-uint\")})}},tg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"index\",valueSchema:new Le,omitEmpty:!0},{key:\"params\",valueSchema:tp.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({index:e,params:n}){this.index=Qt(e),this.params=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"index\",this.index],[\"params\",this.params.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Asset: ${e}`);return new t({index:e.get(\"index\"),params:tp.fromEncodingData(e.get(\"params\")??new Map)})}},ep=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"asset-id\",valueSchema:new Le,omitEmpty:!0},{key:\"is-frozen\",valueSchema:new Rr,omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,assetId:n,isFrozen:r}){this.amount=Qt(e),this.assetId=Qt(n),this.isFrozen=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"amount\",this.amount],[\"asset-id\",this.assetId],[\"is-frozen\",this.isFrozen]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHolding: ${e}`);return new t({amount:e.get(\"amount\"),assetId:e.get(\"asset-id\"),isFrozen:e.get(\"is-frozen\")})}},M3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"account\",valueSchema:new on,omitEmpty:!0},{key:\"asset\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({account:e,asset:n}){this.account=typeof e==\"string\"?dr.fromString(e):e,this.asset=Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"account\",this.account.toString()],[\"asset\",this.asset]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHoldingReference: ${e}`);return new t({account:e.get(\"account\"),asset:e.get(\"asset\")})}},tp=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"creator\",valueSchema:new on,omitEmpty:!0},{key:\"decimals\",valueSchema:new Le,omitEmpty:!0},{key:\"total\",valueSchema:new Le,omitEmpty:!0},{key:\"clawback\",valueSchema:new be(new on),omitEmpty:!0},{key:\"default-frozen\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"freeze\",valueSchema:new be(new on),omitEmpty:!0},{key:\"manager\",valueSchema:new be(new on),omitEmpty:!0},{key:\"metadata-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"name\",valueSchema:new be(new on),omitEmpty:!0},{key:\"name-b64\",valueSchema:new be(new An),omitEmpty:!0},{key:\"reserve\",valueSchema:new be(new on),omitEmpty:!0},{key:\"unit-name\",valueSchema:new be(new on),omitEmpty:!0},{key:\"unit-name-b64\",valueSchema:new be(new An),omitEmpty:!0},{key:\"url\",valueSchema:new be(new on),omitEmpty:!0},{key:\"url-b64\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({creator:e,decimals:n,total:r,clawback:o,defaultFrozen:a,freeze:c,manager:l,metadataHash:f,name:p,nameB64:m,reserve:g,unitName:y,unitNameB64:A,url:T,urlB64:R}){this.creator=e,this.decimals=Bn(n),this.total=Qt(r),this.clawback=o,this.defaultFrozen=a,this.freeze=c,this.manager=l,this.metadataHash=typeof f==\"string\"?Yn(f):f,this.name=p,this.nameB64=typeof m==\"string\"?Yn(m):m,this.reserve=g,this.unitName=y,this.unitNameB64=typeof A==\"string\"?Yn(A):A,this.url=T,this.urlB64=typeof R==\"string\"?Yn(R):R}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"creator\",this.creator],[\"decimals\",this.decimals],[\"total\",this.total],[\"clawback\",this.clawback],[\"default-frozen\",this.defaultFrozen],[\"freeze\",this.freeze],[\"manager\",this.manager],[\"metadata-hash\",this.metadataHash],[\"name\",this.name],[\"name-b64\",this.nameB64],[\"reserve\",this.reserve],[\"unit-name\",this.unitName],[\"unit-name-b64\",this.unitNameB64],[\"url\",this.url],[\"url-b64\",this.urlB64]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetParams: ${e}`);return new t({creator:e.get(\"creator\"),decimals:e.get(\"decimals\"),total:e.get(\"total\"),clawback:e.get(\"clawback\"),defaultFrozen:e.get(\"default-frozen\"),freeze:e.get(\"freeze\"),manager:e.get(\"manager\"),metadataHash:e.get(\"metadata-hash\"),name:e.get(\"name\"),nameB64:e.get(\"name-b64\"),reserve:e.get(\"reserve\"),unitName:e.get(\"unit-name\"),unitNameB64:e.get(\"unit-name-b64\"),url:e.get(\"url\"),urlB64:e.get(\"url-b64\")})}},I3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"key\",valueSchema:new An,omitEmpty:!0},{key:\"value\",valueSchema:wu.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:n}){this.key=typeof e==\"string\"?Yn(e):e,this.value=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"key\",this.key],[\"value\",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AvmKeyValue: ${e}`);return new t({key:e.get(\"key\"),value:wu.fromEncodingData(e.get(\"value\")??new Map)})}},wu=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"type\",valueSchema:new Le,omitEmpty:!0},{key:\"bytes\",valueSchema:new be(new An),omitEmpty:!0},{key:\"uint\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({type:e,bytes:n,uint:r}){this.type=Bn(e),this.bytes=typeof n==\"string\"?Yn(n):n,this.uint=typeof r>\"u\"?void 0:Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"type\",this.type],[\"bytes\",this.bytes],[\"uint\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AvmValue: ${e}`);return new t({type:e.get(\"type\"),bytes:e.get(\"bytes\"),uint:e.get(\"uint\")})}},R3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"blockHash\",valueSchema:new on,omitEmpty:!0})),this.encodingSchemaValue}constructor({blockhash:e}){this.blockhash=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"blockHash\",this.blockhash]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockHashResponse: ${e}`);return new t({blockhash:e.get(\"blockHash\")})}},yF=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"logs\",valueSchema:new vn(k3.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({logs:e}){this.logs=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"logs\",this.logs.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockLogsResponse: ${e}`);return new t({logs:(e.get(\"logs\")??[]).map(n=>k3.fromEncodingData(n))})}},P3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"block\",valueSchema:om.encodingSchema,omitEmpty:!0},{key:\"cert\",valueSchema:new be(ji.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({block:e,cert:n}){this.block=e,this.cert=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"block\",this.block.toEncodingData()],[\"cert\",typeof this.cert<\"u\"?this.cert.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockResponse: ${e}`);return new t({block:om.fromEncodingData(e.get(\"block\")??new Map),cert:typeof e.get(\"cert\")<\"u\"?ji.fromEncodingData(e.get(\"cert\")):void 0})}},B3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"blockTxids\",valueSchema:new vn(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({blocktxids:e}){this.blocktxids=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"blockTxids\",this.blocktxids]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockTxidsResponse: ${e}`);return new t({blocktxids:e.get(\"blockTxids\")})}},D3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"name\",valueSchema:new An,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"value\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e,round:n,value:r}){this.name=typeof e==\"string\"?Yn(e):e,this.round=Qt(n),this.value=typeof r==\"string\"?Yn(r):r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"name\",this.name],[\"round\",this.round],[\"value\",this.value]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Box: ${e}`);return new t({name:e.get(\"name\"),round:e.get(\"round\"),value:e.get(\"value\")})}},F3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"name\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e}){this.name=typeof e==\"string\"?Yn(e):e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"name\",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxDescriptor: ${e}`);return new t({name:e.get(\"name\")})}},O3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"app\",valueSchema:new Le,omitEmpty:!0},{key:\"name\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({app:e,name:n}){this.app=Qt(e),this.name=typeof n==\"string\"?Yn(n):n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"app\",this.app],[\"name\",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxReference: ${e}`);return new t({app:e.get(\"app\"),name:e.get(\"name\")})}},L3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"boxes\",valueSchema:new vn(F3.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({boxes:e}){this.boxes=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"boxes\",this.boxes.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxesResponse: ${e}`);return new t({boxes:(e.get(\"boxes\")??[]).map(n=>F3.fromEncodingData(n))})}},N3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"branch\",valueSchema:new on,omitEmpty:!0},{key:\"build_number\",valueSchema:new Le,omitEmpty:!0},{key:\"channel\",valueSchema:new on,omitEmpty:!0},{key:\"commit_hash\",valueSchema:new on,omitEmpty:!0},{key:\"major\",valueSchema:new Le,omitEmpty:!0},{key:\"minor\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({branch:e,buildNumber:n,channel:r,commitHash:o,major:a,minor:c}){this.branch=e,this.buildNumber=Bn(n),this.channel=r,this.commitHash=o,this.major=Bn(a),this.minor=Bn(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"branch\",this.branch],[\"build_number\",this.buildNumber],[\"channel\",this.channel],[\"commit_hash\",this.commitHash],[\"major\",this.major],[\"minor\",this.minor]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BuildVersion: ${e}`);return new t({branch:e.get(\"branch\"),buildNumber:e.get(\"build_number\"),channel:e.get(\"channel\"),commitHash:e.get(\"commit_hash\"),major:e.get(\"major\"),minor:e.get(\"minor\")})}},U3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"hash\",valueSchema:new on,omitEmpty:!0},{key:\"result\",valueSchema:new on,omitEmpty:!0},{key:\"sourcemap\",valueSchema:new be(ji.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({hash:e,result:n,sourcemap:r}){this.hash=e,this.result=n,this.sourcemap=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hash\",this.hash],[\"result\",this.result],[\"sourcemap\",typeof this.sourcemap<\"u\"?this.sourcemap.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded CompileResponse: ${e}`);return new t({hash:e.get(\"hash\"),result:e.get(\"result\"),sourcemap:typeof e.get(\"sourcemap\")<\"u\"?ji.fromEncodingData(e.get(\"sourcemap\")):void 0})}},z3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"result\",valueSchema:new on,omitEmpty:!0})),this.encodingSchemaValue}constructor({result:e}){this.result=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"result\",this.result]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DisassembleResponse: ${e}`);return new t({result:e.get(\"result\")})}},V3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"accounts\",valueSchema:new vn(J1.encodingSchema),omitEmpty:!0},{key:\"apps\",valueSchema:new vn(bu.encodingSchema),omitEmpty:!0},{key:\"latest-timestamp\",valueSchema:new Le,omitEmpty:!0},{key:\"protocol-version\",valueSchema:new on,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"sources\",valueSchema:new vn(j3.encodingSchema),omitEmpty:!0},{key:\"txns\",valueSchema:new vn(So.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({accounts:e,apps:n,latestTimestamp:r,protocolVersion:o,round:a,sources:c,txns:l}){this.accounts=e,this.apps=n,this.latestTimestamp=Bn(r),this.protocolVersion=o,this.round=Qt(a),this.sources=c,this.txns=l}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"accounts\",this.accounts.map(e=>e.toEncodingData())],[\"apps\",this.apps.map(e=>e.toEncodingData())],[\"latest-timestamp\",this.latestTimestamp],[\"protocol-version\",this.protocolVersion],[\"round\",this.round],[\"sources\",this.sources.map(e=>e.toEncodingData())],[\"txns\",this.txns.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DryrunRequest: ${e}`);return new t({accounts:(e.get(\"accounts\")??[]).map(n=>J1.fromEncodingData(n)),apps:(e.get(\"apps\")??[]).map(n=>bu.fromEncodingData(n)),latestTimestamp:e.get(\"latest-timestamp\"),protocolVersion:e.get(\"protocol-version\"),round:e.get(\"round\"),sources:(e.get(\"sources\")??[]).map(n=>j3.fromEncodingData(n)),txns:(e.get(\"txns\")??[]).map(n=>So.fromEncodingData(n))})}},H3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"error\",valueSchema:new on,omitEmpty:!0},{key:\"protocol-version\",valueSchema:new on,omitEmpty:!0},{key:\"txns\",valueSchema:new vn($3.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({error:e,protocolVersion:n,txns:r}){this.error=e,this.protocolVersion=n,this.txns=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"error\",this.error],[\"protocol-version\",this.protocolVersion],[\"txns\",this.txns.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DryrunResponse: ${e}`);return new t({error:e.get(\"error\"),protocolVersion:e.get(\"protocol-version\"),txns:(e.get(\"txns\")??[]).map(n=>$3.fromEncodingData(n))})}},j3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"app-index\",valueSchema:new Le,omitEmpty:!0},{key:\"field-name\",valueSchema:new on,omitEmpty:!0},{key:\"source\",valueSchema:new on,omitEmpty:!0},{key:\"txn-index\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({appIndex:e,fieldName:n,source:r,txnIndex:o}){this.appIndex=Qt(e),this.fieldName=n,this.source=r,this.txnIndex=Bn(o)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"app-index\",this.appIndex],[\"field-name\",this.fieldName],[\"source\",this.source],[\"txn-index\",this.txnIndex]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DryrunSource: ${e}`);return new t({appIndex:e.get(\"app-index\"),fieldName:e.get(\"field-name\"),source:e.get(\"source\"),txnIndex:e.get(\"txn-index\")})}},X1=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"line\",valueSchema:new Le,omitEmpty:!0},{key:\"pc\",valueSchema:new Le,omitEmpty:!0},{key:\"stack\",valueSchema:new vn(Jf.encodingSchema),omitEmpty:!0},{key:\"error\",valueSchema:new be(new on),omitEmpty:!0},{key:\"scratch\",valueSchema:new be(new vn(Jf.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({line:e,pc:n,stack:r,error:o,scratch:a}){this.line=Bn(e),this.pc=Bn(n),this.stack=r,this.error=o,this.scratch=a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"line\",this.line],[\"pc\",this.pc],[\"stack\",this.stack.map(e=>e.toEncodingData())],[\"error\",this.error],[\"scratch\",typeof this.scratch<\"u\"?this.scratch.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DryrunState: ${e}`);return new t({line:e.get(\"line\"),pc:e.get(\"pc\"),stack:(e.get(\"stack\")??[]).map(n=>Jf.fromEncodingData(n)),error:e.get(\"error\"),scratch:typeof e.get(\"scratch\")<\"u\"?e.get(\"scratch\").map(n=>Jf.fromEncodingData(n)):void 0})}},$3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"disassembly\",valueSchema:new vn(new on),omitEmpty:!0},{key:\"app-call-messages\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"app-call-trace\",valueSchema:new be(new vn(X1.encodingSchema)),omitEmpty:!0},{key:\"budget-added\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"budget-consumed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"global-delta\",valueSchema:new be(new vn(np.encodingSchema)),omitEmpty:!0},{key:\"local-deltas\",valueSchema:new be(new vn(Q1.encodingSchema)),omitEmpty:!0},{key:\"logic-sig-disassembly\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"logic-sig-messages\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"logic-sig-trace\",valueSchema:new be(new vn(X1.encodingSchema)),omitEmpty:!0},{key:\"logs\",valueSchema:new be(new vn(new An)),omitEmpty:!0})),this.encodingSchemaValue}constructor({disassembly:e,appCallMessages:n,appCallTrace:r,budgetAdded:o,budgetConsumed:a,globalDelta:c,localDeltas:l,logicSigDisassembly:f,logicSigMessages:p,logicSigTrace:m,logs:g}){this.disassembly=e,this.appCallMessages=n,this.appCallTrace=r,this.budgetAdded=typeof o>\"u\"?void 0:Bn(o),this.budgetConsumed=typeof a>\"u\"?void 0:Bn(a),this.globalDelta=c,this.localDeltas=l,this.logicSigDisassembly=f,this.logicSigMessages=p,this.logicSigTrace=m,this.logs=g}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"disassembly\",this.disassembly],[\"app-call-messages\",this.appCallMessages],[\"app-call-trace\",typeof this.appCallTrace<\"u\"?this.appCallTrace.map(e=>e.toEncodingData()):void 0],[\"budget-added\",this.budgetAdded],[\"budget-consumed\",this.budgetConsumed],[\"global-delta\",typeof this.globalDelta<\"u\"?this.globalDelta.map(e=>e.toEncodingData()):void 0],[\"local-deltas\",typeof this.localDeltas<\"u\"?this.localDeltas.map(e=>e.toEncodingData()):void 0],[\"logic-sig-disassembly\",this.logicSigDisassembly],[\"logic-sig-messages\",this.logicSigMessages],[\"logic-sig-trace\",typeof this.logicSigTrace<\"u\"?this.logicSigTrace.map(e=>e.toEncodingData()):void 0],[\"logs\",this.logs]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded DryrunTxnResult: ${e}`);return new t({disassembly:e.get(\"disassembly\"),appCallMessages:e.get(\"app-call-messages\"),appCallTrace:typeof e.get(\"app-call-trace\")<\"u\"?e.get(\"app-call-trace\").map(n=>X1.fromEncodingData(n)):void 0,budgetAdded:e.get(\"budget-added\"),budgetConsumed:e.get(\"budget-consumed\"),globalDelta:typeof e.get(\"global-delta\")<\"u\"?e.get(\"global-delta\").map(n=>np.fromEncodingData(n)):void 0,localDeltas:typeof e.get(\"local-deltas\")<\"u\"?e.get(\"local-deltas\").map(n=>Q1.fromEncodingData(n)):void 0,logicSigDisassembly:e.get(\"logic-sig-disassembly\"),logicSigMessages:e.get(\"logic-sig-messages\"),logicSigTrace:typeof e.get(\"logic-sig-trace\")<\"u\"?e.get(\"logic-sig-trace\").map(n=>X1.fromEncodingData(n)):void 0,logs:e.get(\"logs\")})}},vF=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"message\",valueSchema:new on,omitEmpty:!0},{key:\"data\",valueSchema:new be(ji.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,data:n}){this.message=e,this.data=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"message\",this.message],[\"data\",typeof this.data<\"u\"?this.data.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ErrorResponse: ${e}`);return new t({message:e.get(\"message\"),data:typeof e.get(\"data\")<\"u\"?ji.fromEncodingData(e.get(\"data\")):void 0})}},K3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"action\",valueSchema:new Le,omitEmpty:!0},{key:\"bytes\",valueSchema:new be(new on),omitEmpty:!0},{key:\"uint\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({action:e,bytes:n,uint:r}){this.action=Bn(e),this.bytes=n,this.uint=typeof r>\"u\"?void 0:Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"action\",this.action],[\"bytes\",this.bytes],[\"uint\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded EvalDelta: ${e}`);return new t({action:e.get(\"action\"),bytes:e.get(\"bytes\"),uint:e.get(\"uint\")})}},np=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"key\",valueSchema:new on,omitEmpty:!0},{key:\"value\",valueSchema:K3.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:n}){this.key=e,this.value=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"key\",this.key],[\"value\",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded EvalDeltaKeyValue: ${e}`);return new t({key:e.get(\"key\"),value:K3.fromEncodingData(e.get(\"value\")??new Map)})}},xF=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"alloc\",valueSchema:new vn(G3.encodingSchema),omitEmpty:!0},{key:\"fees\",valueSchema:new on,omitEmpty:!0},{key:\"id\",valueSchema:new on,omitEmpty:!0},{key:\"network\",valueSchema:new on,omitEmpty:!0},{key:\"proto\",valueSchema:new on,omitEmpty:!0},{key:\"rwd\",valueSchema:new on,omitEmpty:!0},{key:\"timestamp\",valueSchema:new Le,omitEmpty:!0},{key:\"comment\",valueSchema:new be(new on),omitEmpty:!0},{key:\"devmode\",valueSchema:new be(new Rr),omitEmpty:!0})),this.encodingSchemaValue}constructor({alloc:e,fees:n,id:r,network:o,proto:a,rwd:c,timestamp:l,comment:f,devmode:p}){this.alloc=e,this.fees=n,this.id=r,this.network=o,this.proto=a,this.rwd=c,this.timestamp=Bn(l),this.comment=f,this.devmode=p}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"alloc\",this.alloc.map(e=>e.toEncodingData())],[\"fees\",this.fees],[\"id\",this.id],[\"network\",this.network],[\"proto\",this.proto],[\"rwd\",this.rwd],[\"timestamp\",this.timestamp],[\"comment\",this.comment],[\"devmode\",this.devmode]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Genesis: ${e}`);return new t({alloc:(e.get(\"alloc\")??[]).map(n=>G3.fromEncodingData(n)),fees:e.get(\"fees\"),id:e.get(\"id\"),network:e.get(\"network\"),proto:e.get(\"proto\"),rwd:e.get(\"rwd\"),timestamp:e.get(\"timestamp\"),comment:e.get(\"comment\"),devmode:e.get(\"devmode\")})}},G3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"addr\",valueSchema:new on,omitEmpty:!0},{key:\"comment\",valueSchema:new on,omitEmpty:!0},{key:\"state\",valueSchema:ji.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({addr:e,comment:n,state:r}){this.addr=e,this.comment=n,this.state=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"addr\",this.addr],[\"comment\",this.comment],[\"state\",this.state.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded GenesisAllocation: ${e}`);return new t({addr:e.get(\"addr\"),comment:e.get(\"comment\"),state:ji.fromEncodingData(e.get(\"state\")??new Map)})}},q3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"offset\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({offset:e}){this.offset=Bn(e)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"offset\",this.offset]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded GetBlockTimeStampOffsetResponse: ${e}`);return new t({offset:e.get(\"offset\")})}},W3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"round\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({round:e}){this.round=Qt(e)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"round\",this.round]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded GetSyncRoundResponse: ${e}`);return new t({round:e.get(\"round\")})}},Y3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"Delta\",valueSchema:Pl.encodingSchema,omitEmpty:!0},{key:\"Ids\",valueSchema:new vn(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({delta:e,ids:n}){this.delta=e,this.ids=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Delta\",this.delta.toEncodingData()],[\"Ids\",this.ids]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded LedgerStateDeltaForTransactionGroup: ${e}`);return new t({delta:Pl.fromEncodingData(e.get(\"Delta\")??new Map),ids:e.get(\"Ids\")})}},Z3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"index\",valueSchema:new Le,omitEmpty:!0},{key:\"proof\",valueSchema:new An,omitEmpty:!0},{key:\"treedepth\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({index:e,proof:n,treedepth:r}){this.index=Bn(e),this.proof=typeof n==\"string\"?Yn(n):n,this.treedepth=Bn(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"index\",this.index],[\"proof\",this.proof],[\"treedepth\",this.treedepth]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded LightBlockHeaderProof: ${e}`);return new t({index:e.get(\"index\"),proof:e.get(\"proof\"),treedepth:e.get(\"treedepth\")})}},ng=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"catchup-time\",valueSchema:new Le,omitEmpty:!0},{key:\"last-round\",valueSchema:new Le,omitEmpty:!0},{key:\"last-version\",valueSchema:new on,omitEmpty:!0},{key:\"next-version\",valueSchema:new on,omitEmpty:!0},{key:\"next-version-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-version-supported\",valueSchema:new Rr,omitEmpty:!0},{key:\"stopped-at-unsupported-round\",valueSchema:new Rr,omitEmpty:!0},{key:\"time-since-last-round\",valueSchema:new Le,omitEmpty:!0},{key:\"catchpoint\",valueSchema:new be(new on),omitEmpty:!0},{key:\"catchpoint-acquired-blocks\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-processed-accounts\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-processed-kvs\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-total-accounts\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-total-blocks\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-total-kvs\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-verified-accounts\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"catchpoint-verified-kvs\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"last-catchpoint\",valueSchema:new be(new on),omitEmpty:!0},{key:\"upgrade-delay\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-next-protocol-vote-before\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-no-votes\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-node-vote\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"upgrade-vote-rounds\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-votes\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-votes-required\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-yes-votes\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({catchupTime:e,lastRound:n,lastVersion:r,nextVersion:o,nextVersionRound:a,nextVersionSupported:c,stoppedAtUnsupportedRound:l,timeSinceLastRound:f,catchpoint:p,catchpointAcquiredBlocks:m,catchpointProcessedAccounts:g,catchpointProcessedKvs:y,catchpointTotalAccounts:A,catchpointTotalBlocks:T,catchpointTotalKvs:R,catchpointVerifiedAccounts:K,catchpointVerifiedKvs:O,lastCatchpoint:V,upgradeDelay:D,upgradeNextProtocolVoteBefore:G,upgradeNoVotes:ee,upgradeNodeVote:J,upgradeVoteRounds:le,upgradeVotes:se,upgradeVotesRequired:te,upgradeYesVotes:S}){this.catchupTime=Qt(e),this.lastRound=Qt(n),this.lastVersion=r,this.nextVersion=o,this.nextVersionRound=Qt(a),this.nextVersionSupported=c,this.stoppedAtUnsupportedRound=l,this.timeSinceLastRound=Qt(f),this.catchpoint=p,this.catchpointAcquiredBlocks=typeof m>\"u\"?void 0:Bn(m),this.catchpointProcessedAccounts=typeof g>\"u\"?void 0:Bn(g),this.catchpointProcessedKvs=typeof y>\"u\"?void 0:Bn(y),this.catchpointTotalAccounts=typeof A>\"u\"?void 0:Bn(A),this.catchpointTotalBlocks=typeof T>\"u\"?void 0:Bn(T),this.catchpointTotalKvs=typeof R>\"u\"?void 0:Bn(R),this.catchpointVerifiedAccounts=typeof K>\"u\"?void 0:Bn(K),this.catchpointVerifiedKvs=typeof O>\"u\"?void 0:Bn(O),this.lastCatchpoint=V,this.upgradeDelay=typeof D>\"u\"?void 0:Qt(D),this.upgradeNextProtocolVoteBefore=typeof G>\"u\"?void 0:Qt(G),this.upgradeNoVotes=typeof ee>\"u\"?void 0:Bn(ee),this.upgradeNodeVote=J,this.upgradeVoteRounds=typeof le>\"u\"?void 0:Bn(le),this.upgradeVotes=typeof se>\"u\"?void 0:Bn(se),this.upgradeVotesRequired=typeof te>\"u\"?void 0:Bn(te),this.upgradeYesVotes=typeof S>\"u\"?void 0:Bn(S)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"catchup-time\",this.catchupTime],[\"last-round\",this.lastRound],[\"last-version\",this.lastVersion],[\"next-version\",this.nextVersion],[\"next-version-round\",this.nextVersionRound],[\"next-version-supported\",this.nextVersionSupported],[\"stopped-at-unsupported-round\",this.stoppedAtUnsupportedRound],[\"time-since-last-round\",this.timeSinceLastRound],[\"catchpoint\",this.catchpoint],[\"catchpoint-acquired-blocks\",this.catchpointAcquiredBlocks],[\"catchpoint-processed-accounts\",this.catchpointProcessedAccounts],[\"catchpoint-processed-kvs\",this.catchpointProcessedKvs],[\"catchpoint-total-accounts\",this.catchpointTotalAccounts],[\"catchpoint-total-blocks\",this.catchpointTotalBlocks],[\"catchpoint-total-kvs\",this.catchpointTotalKvs],[\"catchpoint-verified-accounts\",this.catchpointVerifiedAccounts],[\"catchpoint-verified-kvs\",this.catchpointVerifiedKvs],[\"last-catchpoint\",this.lastCatchpoint],[\"upgrade-delay\",this.upgradeDelay],[\"upgrade-next-protocol-vote-before\",this.upgradeNextProtocolVoteBefore],[\"upgrade-no-votes\",this.upgradeNoVotes],[\"upgrade-node-vote\",this.upgradeNodeVote],[\"upgrade-vote-rounds\",this.upgradeVoteRounds],[\"upgrade-votes\",this.upgradeVotes],[\"upgrade-votes-required\",this.upgradeVotesRequired],[\"upgrade-yes-votes\",this.upgradeYesVotes]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded NodeStatusResponse: ${e}`);return new t({catchupTime:e.get(\"catchup-time\"),lastRound:e.get(\"last-round\"),lastVersion:e.get(\"last-version\"),nextVersion:e.get(\"next-version\"),nextVersionRound:e.get(\"next-version-round\"),nextVersionSupported:e.get(\"next-version-supported\"),stoppedAtUnsupportedRound:e.get(\"stopped-at-unsupported-round\"),timeSinceLastRound:e.get(\"time-since-last-round\"),catchpoint:e.get(\"catchpoint\"),catchpointAcquiredBlocks:e.get(\"catchpoint-acquired-blocks\"),catchpointProcessedAccounts:e.get(\"catchpoint-processed-accounts\"),catchpointProcessedKvs:e.get(\"catchpoint-processed-kvs\"),catchpointTotalAccounts:e.get(\"catchpoint-total-accounts\"),catchpointTotalBlocks:e.get(\"catchpoint-total-blocks\"),catchpointTotalKvs:e.get(\"catchpoint-total-kvs\"),catchpointVerifiedAccounts:e.get(\"catchpoint-verified-accounts\"),catchpointVerifiedKvs:e.get(\"catchpoint-verified-kvs\"),lastCatchpoint:e.get(\"last-catchpoint\"),upgradeDelay:e.get(\"upgrade-delay\"),upgradeNextProtocolVoteBefore:e.get(\"upgrade-next-protocol-vote-before\"),upgradeNoVotes:e.get(\"upgrade-no-votes\"),upgradeNodeVote:e.get(\"upgrade-node-vote\"),upgradeVoteRounds:e.get(\"upgrade-vote-rounds\"),upgradeVotes:e.get(\"upgrade-votes\"),upgradeVotesRequired:e.get(\"upgrade-votes-required\"),upgradeYesVotes:e.get(\"upgrade-yes-votes\")})}},rg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"pool-error\",valueSchema:new on,omitEmpty:!0},{key:\"txn\",valueSchema:So.encodingSchema,omitEmpty:!0},{key:\"application-index\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"asset-closing-amount\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"asset-index\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"close-rewards\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"closing-amount\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"confirmed-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"global-state-delta\",valueSchema:new be(new vn(np.encodingSchema)),omitEmpty:!0},{key:\"inner-txns\",valueSchema:new be(new vn(t.encodingSchema)),omitEmpty:!0},{key:\"local-state-delta\",valueSchema:new be(new vn(Q1.encodingSchema)),omitEmpty:!0},{key:\"logs\",valueSchema:new be(new vn(new An)),omitEmpty:!0},{key:\"receiver-rewards\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sender-rewards\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({poolError:e,txn:n,applicationIndex:r,assetClosingAmount:o,assetIndex:a,closeRewards:c,closingAmount:l,confirmedRound:f,globalStateDelta:p,innerTxns:m,localStateDelta:g,logs:y,receiverRewards:A,senderRewards:T}){this.poolError=e,this.txn=n,this.applicationIndex=typeof r>\"u\"?void 0:Qt(r),this.assetClosingAmount=typeof o>\"u\"?void 0:Qt(o),this.assetIndex=typeof a>\"u\"?void 0:Qt(a),this.closeRewards=typeof c>\"u\"?void 0:Qt(c),this.closingAmount=typeof l>\"u\"?void 0:Qt(l),this.confirmedRound=typeof f>\"u\"?void 0:Qt(f),this.globalStateDelta=p,this.innerTxns=m,this.localStateDelta=g,this.logs=y,this.receiverRewards=typeof A>\"u\"?void 0:Qt(A),this.senderRewards=typeof T>\"u\"?void 0:Qt(T)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"pool-error\",this.poolError],[\"txn\",this.txn.toEncodingData()],[\"application-index\",this.applicationIndex],[\"asset-closing-amount\",this.assetClosingAmount],[\"asset-index\",this.assetIndex],[\"close-rewards\",this.closeRewards],[\"closing-amount\",this.closingAmount],[\"confirmed-round\",this.confirmedRound],[\"global-state-delta\",typeof this.globalStateDelta<\"u\"?this.globalStateDelta.map(e=>e.toEncodingData()):void 0],[\"inner-txns\",typeof this.innerTxns<\"u\"?this.innerTxns.map(e=>e.toEncodingData()):void 0],[\"local-state-delta\",typeof this.localStateDelta<\"u\"?this.localStateDelta.map(e=>e.toEncodingData()):void 0],[\"logs\",this.logs],[\"receiver-rewards\",this.receiverRewards],[\"sender-rewards\",this.senderRewards]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded PendingTransactionResponse: ${e}`);return new t({poolError:e.get(\"pool-error\"),txn:So.fromEncodingData(e.get(\"txn\")??new Map),applicationIndex:e.get(\"application-index\"),assetClosingAmount:e.get(\"asset-closing-amount\"),assetIndex:e.get(\"asset-index\"),closeRewards:e.get(\"close-rewards\"),closingAmount:e.get(\"closing-amount\"),confirmedRound:e.get(\"confirmed-round\"),globalStateDelta:typeof e.get(\"global-state-delta\")<\"u\"?e.get(\"global-state-delta\").map(n=>np.fromEncodingData(n)):void 0,innerTxns:typeof e.get(\"inner-txns\")<\"u\"?e.get(\"inner-txns\").map(n=>t.fromEncodingData(n)):void 0,localStateDelta:typeof e.get(\"local-state-delta\")<\"u\"?e.get(\"local-state-delta\").map(n=>Q1.fromEncodingData(n)):void 0,logs:e.get(\"logs\"),receiverRewards:e.get(\"receiver-rewards\"),senderRewards:e.get(\"sender-rewards\")})}},og=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"top-transactions\",valueSchema:new vn(So.encodingSchema),omitEmpty:!0},{key:\"total-transactions\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({topTransactions:e,totalTransactions:n}){this.topTransactions=e,this.totalTransactions=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"top-transactions\",this.topTransactions.map(e=>e.toEncodingData())],[\"total-transactions\",this.totalTransactions]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded PendingTransactionsResponse: ${e}`);return new t({topTransactions:(e.get(\"top-transactions\")??[]).map(n=>So.fromEncodingData(n)),totalTransactions:e.get(\"total-transactions\")})}},X3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"txId\",valueSchema:new on,omitEmpty:!0})),this.encodingSchemaValue}constructor({txid:e}){this.txid=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txId\",this.txid]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded PostTransactionsResponse: ${e}`);return new t({txid:e.get(\"txId\")})}},J3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"new-value\",valueSchema:wu.encodingSchema,omitEmpty:!0},{key:\"slot\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({newValue:e,slot:n}){this.newValue=e,this.slot=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"new-value\",this.newValue.toEncodingData()],[\"slot\",this.slot]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ScratchChange: ${e}`);return new t({newValue:wu.fromEncodingData(e.get(\"new-value\")??new Map),slot:e.get(\"slot\")})}},Q3=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"app-initial-states\",valueSchema:new be(new vn(C3.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({appInitialStates:e}){this.appInitialStates=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"app-initial-states\",typeof this.appInitialStates<\"u\"?this.appInitialStates.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateInitialStates: ${e}`);return new t({appInitialStates:typeof e.get(\"app-initial-states\")<\"u\"?e.get(\"app-initial-states\").map(n=>C3.fromEncodingData(n)):void 0})}},ig=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"txn-groups\",valueSchema:new vn(rp.encodingSchema),omitEmpty:!0},{key:\"allow-empty-signatures\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"allow-more-logging\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"allow-unnamed-resources\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"exec-trace-config\",valueSchema:new be(ag.encodingSchema),omitEmpty:!0},{key:\"extra-opcode-budget\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"fix-signers\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({txnGroups:e,allowEmptySignatures:n,allowMoreLogging:r,allowUnnamedResources:o,execTraceConfig:a,extraOpcodeBudget:c,fixSigners:l,round:f}){this.txnGroups=e,this.allowEmptySignatures=n,this.allowMoreLogging=r,this.allowUnnamedResources=o,this.execTraceConfig=a,this.extraOpcodeBudget=typeof c>\"u\"?void 0:Bn(c),this.fixSigners=l,this.round=typeof f>\"u\"?void 0:Qt(f)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txn-groups\",this.txnGroups.map(e=>e.toEncodingData())],[\"allow-empty-signatures\",this.allowEmptySignatures],[\"allow-more-logging\",this.allowMoreLogging],[\"allow-unnamed-resources\",this.allowUnnamedResources],[\"exec-trace-config\",typeof this.execTraceConfig<\"u\"?this.execTraceConfig.toEncodingData():void 0],[\"extra-opcode-budget\",this.extraOpcodeBudget],[\"fix-signers\",this.fixSigners],[\"round\",this.round]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateRequest: ${e}`);return new t({txnGroups:(e.get(\"txn-groups\")??[]).map(n=>rp.fromEncodingData(n)),allowEmptySignatures:e.get(\"allow-empty-signatures\"),allowMoreLogging:e.get(\"allow-more-logging\"),allowUnnamedResources:e.get(\"allow-unnamed-resources\"),execTraceConfig:typeof e.get(\"exec-trace-config\")<\"u\"?ag.fromEncodingData(e.get(\"exec-trace-config\")):void 0,extraOpcodeBudget:e.get(\"extra-opcode-budget\"),fixSigners:e.get(\"fix-signers\"),round:e.get(\"round\")})}},rp=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"txns\",valueSchema:new vn(So.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({txns:e}){this.txns=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txns\",this.txns.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateRequestTransactionGroup: ${e}`);return new t({txns:(e.get(\"txns\")??[]).map(n=>So.fromEncodingData(n))})}},e6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"last-round\",valueSchema:new Le,omitEmpty:!0},{key:\"txn-groups\",valueSchema:new vn(t6.encodingSchema),omitEmpty:!0},{key:\"version\",valueSchema:new Le,omitEmpty:!0},{key:\"eval-overrides\",valueSchema:new be(r6.encodingSchema),omitEmpty:!0},{key:\"exec-trace-config\",valueSchema:new be(ag.encodingSchema),omitEmpty:!0},{key:\"initial-states\",valueSchema:new be(Q3.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({lastRound:e,txnGroups:n,version:r,evalOverrides:o,execTraceConfig:a,initialStates:c}){this.lastRound=Qt(e),this.txnGroups=n,this.version=Bn(r),this.evalOverrides=o,this.execTraceConfig=a,this.initialStates=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"last-round\",this.lastRound],[\"txn-groups\",this.txnGroups.map(e=>e.toEncodingData())],[\"version\",this.version],[\"eval-overrides\",typeof this.evalOverrides<\"u\"?this.evalOverrides.toEncodingData():void 0],[\"exec-trace-config\",typeof this.execTraceConfig<\"u\"?this.execTraceConfig.toEncodingData():void 0],[\"initial-states\",typeof this.initialStates<\"u\"?this.initialStates.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateResponse: ${e}`);return new t({lastRound:e.get(\"last-round\"),txnGroups:(e.get(\"txn-groups\")??[]).map(n=>t6.fromEncodingData(n)),version:e.get(\"version\"),evalOverrides:typeof e.get(\"eval-overrides\")<\"u\"?r6.fromEncodingData(e.get(\"eval-overrides\")):void 0,execTraceConfig:typeof e.get(\"exec-trace-config\")<\"u\"?ag.fromEncodingData(e.get(\"exec-trace-config\")):void 0,initialStates:typeof e.get(\"initial-states\")<\"u\"?Q3.fromEncodingData(e.get(\"initial-states\")):void 0})}},ag=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"enable\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"scratch-change\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"stack-change\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"state-change\",valueSchema:new be(new Rr),omitEmpty:!0})),this.encodingSchemaValue}constructor({enable:e,scratchChange:n,stackChange:r,stateChange:o}){this.enable=e,this.scratchChange=n,this.stackChange=r,this.stateChange=o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"enable\",this.enable],[\"scratch-change\",this.scratchChange],[\"stack-change\",this.stackChange],[\"state-change\",this.stateChange]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateTraceConfig: ${e}`);return new t({enable:e.get(\"enable\"),scratchChange:e.get(\"scratch-change\"),stackChange:e.get(\"stack-change\"),stateChange:e.get(\"state-change\")})}},t6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"txn-results\",valueSchema:new vn(n6.encodingSchema),omitEmpty:!0},{key:\"app-budget-added\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"app-budget-consumed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"failed-at\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"failure-message\",valueSchema:new be(new on),omitEmpty:!0},{key:\"unnamed-resources-accessed\",valueSchema:new be(sg.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({txnResults:e,appBudgetAdded:n,appBudgetConsumed:r,failedAt:o,failureMessage:a,unnamedResourcesAccessed:c}){this.txnResults=e,this.appBudgetAdded=typeof n>\"u\"?void 0:Bn(n),this.appBudgetConsumed=typeof r>\"u\"?void 0:Bn(r),this.failedAt=typeof o>\"u\"?void 0:o.map(Bn),this.failureMessage=a,this.unnamedResourcesAccessed=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txn-results\",this.txnResults.map(e=>e.toEncodingData())],[\"app-budget-added\",this.appBudgetAdded],[\"app-budget-consumed\",this.appBudgetConsumed],[\"failed-at\",this.failedAt],[\"failure-message\",this.failureMessage],[\"unnamed-resources-accessed\",typeof this.unnamedResourcesAccessed<\"u\"?this.unnamedResourcesAccessed.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateTransactionGroupResult: ${e}`);return new t({txnResults:(e.get(\"txn-results\")??[]).map(n=>n6.fromEncodingData(n)),appBudgetAdded:e.get(\"app-budget-added\"),appBudgetConsumed:e.get(\"app-budget-consumed\"),failedAt:e.get(\"failed-at\"),failureMessage:e.get(\"failure-message\"),unnamedResourcesAccessed:typeof e.get(\"unnamed-resources-accessed\")<\"u\"?sg.fromEncodingData(e.get(\"unnamed-resources-accessed\")):void 0})}},n6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"txn-result\",valueSchema:rg.encodingSchema,omitEmpty:!0},{key:\"app-budget-consumed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"exec-trace\",valueSchema:new be(o6.encodingSchema),omitEmpty:!0},{key:\"fixed-signer\",valueSchema:new be(new on),omitEmpty:!0},{key:\"logic-sig-budget-consumed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"unnamed-resources-accessed\",valueSchema:new be(sg.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({txnResult:e,appBudgetConsumed:n,execTrace:r,fixedSigner:o,logicSigBudgetConsumed:a,unnamedResourcesAccessed:c}){this.txnResult=e,this.appBudgetConsumed=typeof n>\"u\"?void 0:Bn(n),this.execTrace=r,this.fixedSigner=typeof o==\"string\"?dr.fromString(o):o,this.logicSigBudgetConsumed=typeof a>\"u\"?void 0:Bn(a),this.unnamedResourcesAccessed=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"txn-result\",this.txnResult.toEncodingData()],[\"app-budget-consumed\",this.appBudgetConsumed],[\"exec-trace\",typeof this.execTrace<\"u\"?this.execTrace.toEncodingData():void 0],[\"fixed-signer\",typeof this.fixedSigner<\"u\"?this.fixedSigner.toString():void 0],[\"logic-sig-budget-consumed\",this.logicSigBudgetConsumed],[\"unnamed-resources-accessed\",typeof this.unnamedResourcesAccessed<\"u\"?this.unnamedResourcesAccessed.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateTransactionResult: ${e}`);return new t({txnResult:rg.fromEncodingData(e.get(\"txn-result\")??new Map),appBudgetConsumed:e.get(\"app-budget-consumed\"),execTrace:typeof e.get(\"exec-trace\")<\"u\"?o6.fromEncodingData(e.get(\"exec-trace\")):void 0,fixedSigner:e.get(\"fixed-signer\"),logicSigBudgetConsumed:e.get(\"logic-sig-budget-consumed\"),unnamedResourcesAccessed:typeof e.get(\"unnamed-resources-accessed\")<\"u\"?sg.fromEncodingData(e.get(\"unnamed-resources-accessed\")):void 0})}},sg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"accounts\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"app-locals\",valueSchema:new be(new vn(T3.encodingSchema)),omitEmpty:!0},{key:\"apps\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"asset-holdings\",valueSchema:new be(new vn(M3.encodingSchema)),omitEmpty:!0},{key:\"assets\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"boxes\",valueSchema:new be(new vn(O3.encodingSchema)),omitEmpty:!0},{key:\"extra-box-refs\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({accounts:e,appLocals:n,apps:r,assetHoldings:o,assets:a,boxes:c,extraBoxRefs:l}){this.accounts=typeof e<\"u\"?e.map(f=>typeof f==\"string\"?dr.fromString(f):f):void 0,this.appLocals=n,this.apps=typeof r>\"u\"?void 0:r.map(Qt),this.assetHoldings=o,this.assets=typeof a>\"u\"?void 0:a.map(Qt),this.boxes=c,this.extraBoxRefs=typeof l>\"u\"?void 0:Bn(l)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"accounts\",typeof this.accounts<\"u\"?this.accounts.map(e=>e.toString()):void 0],[\"app-locals\",typeof this.appLocals<\"u\"?this.appLocals.map(e=>e.toEncodingData()):void 0],[\"apps\",this.apps],[\"asset-holdings\",typeof this.assetHoldings<\"u\"?this.assetHoldings.map(e=>e.toEncodingData()):void 0],[\"assets\",this.assets],[\"boxes\",typeof this.boxes<\"u\"?this.boxes.map(e=>e.toEncodingData()):void 0],[\"extra-box-refs\",this.extraBoxRefs]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulateUnnamedResourcesAccessed: ${e}`);return new t({accounts:e.get(\"accounts\"),appLocals:typeof e.get(\"app-locals\")<\"u\"?e.get(\"app-locals\").map(n=>T3.fromEncodingData(n)):void 0,apps:e.get(\"apps\"),assetHoldings:typeof e.get(\"asset-holdings\")<\"u\"?e.get(\"asset-holdings\").map(n=>M3.fromEncodingData(n)):void 0,assets:e.get(\"assets\"),boxes:typeof e.get(\"boxes\")<\"u\"?e.get(\"boxes\").map(n=>O3.fromEncodingData(n)):void 0,extraBoxRefs:e.get(\"extra-box-refs\")})}},r6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"allow-empty-signatures\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"allow-unnamed-resources\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"extra-opcode-budget\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"fix-signers\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"max-log-calls\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"max-log-size\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({allowEmptySignatures:e,allowUnnamedResources:n,extraOpcodeBudget:r,fixSigners:o,maxLogCalls:a,maxLogSize:c}){this.allowEmptySignatures=e,this.allowUnnamedResources=n,this.extraOpcodeBudget=typeof r>\"u\"?void 0:Bn(r),this.fixSigners=o,this.maxLogCalls=typeof a>\"u\"?void 0:Bn(a),this.maxLogSize=typeof c>\"u\"?void 0:Bn(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"allow-empty-signatures\",this.allowEmptySignatures],[\"allow-unnamed-resources\",this.allowUnnamedResources],[\"extra-opcode-budget\",this.extraOpcodeBudget],[\"fix-signers\",this.fixSigners],[\"max-log-calls\",this.maxLogCalls],[\"max-log-size\",this.maxLogSize]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulationEvalOverrides: ${e}`);return new t({allowEmptySignatures:e.get(\"allow-empty-signatures\"),allowUnnamedResources:e.get(\"allow-unnamed-resources\"),extraOpcodeBudget:e.get(\"extra-opcode-budget\"),fixSigners:e.get(\"fix-signers\"),maxLogCalls:e.get(\"max-log-calls\"),maxLogSize:e.get(\"max-log-size\")})}},Xf=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"pc\",valueSchema:new Le,omitEmpty:!0},{key:\"scratch-changes\",valueSchema:new be(new vn(J3.encodingSchema)),omitEmpty:!0},{key:\"spawned-inners\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"stack-additions\",valueSchema:new be(new vn(wu.encodingSchema)),omitEmpty:!0},{key:\"stack-pop-count\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"state-changes\",valueSchema:new be(new vn(_3.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({pc:e,scratchChanges:n,spawnedInners:r,stackAdditions:o,stackPopCount:a,stateChanges:c}){this.pc=Bn(e),this.scratchChanges=n,this.spawnedInners=typeof r>\"u\"?void 0:r.map(Bn),this.stackAdditions=o,this.stackPopCount=typeof a>\"u\"?void 0:Bn(a),this.stateChanges=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"pc\",this.pc],[\"scratch-changes\",typeof this.scratchChanges<\"u\"?this.scratchChanges.map(e=>e.toEncodingData()):void 0],[\"spawned-inners\",this.spawnedInners],[\"stack-additions\",typeof this.stackAdditions<\"u\"?this.stackAdditions.map(e=>e.toEncodingData()):void 0],[\"stack-pop-count\",this.stackPopCount],[\"state-changes\",typeof this.stateChanges<\"u\"?this.stateChanges.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulationOpcodeTraceUnit: ${e}`);return new t({pc:e.get(\"pc\"),scratchChanges:typeof e.get(\"scratch-changes\")<\"u\"?e.get(\"scratch-changes\").map(n=>J3.fromEncodingData(n)):void 0,spawnedInners:e.get(\"spawned-inners\"),stackAdditions:typeof e.get(\"stack-additions\")<\"u\"?e.get(\"stack-additions\").map(n=>wu.fromEncodingData(n)):void 0,stackPopCount:e.get(\"stack-pop-count\"),stateChanges:typeof e.get(\"state-changes\")<\"u\"?e.get(\"state-changes\").map(n=>_3.fromEncodingData(n)):void 0})}},o6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"approval-program-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"approval-program-trace\",valueSchema:new be(new vn(Xf.encodingSchema)),omitEmpty:!0},{key:\"clear-state-program-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"clear-state-program-trace\",valueSchema:new be(new vn(Xf.encodingSchema)),omitEmpty:!0},{key:\"clear-state-rollback\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"clear-state-rollback-error\",valueSchema:new be(new on),omitEmpty:!0},{key:\"inner-trace\",valueSchema:new be(new vn(t.encodingSchema)),omitEmpty:!0},{key:\"logic-sig-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"logic-sig-trace\",valueSchema:new be(new vn(Xf.encodingSchema)),omitEmpty:!0})),this.encodingSchemaValue}constructor({approvalProgramHash:e,approvalProgramTrace:n,clearStateProgramHash:r,clearStateProgramTrace:o,clearStateRollback:a,clearStateRollbackError:c,innerTrace:l,logicSigHash:f,logicSigTrace:p}){this.approvalProgramHash=typeof e==\"string\"?Yn(e):e,this.approvalProgramTrace=n,this.clearStateProgramHash=typeof r==\"string\"?Yn(r):r,this.clearStateProgramTrace=o,this.clearStateRollback=a,this.clearStateRollbackError=c,this.innerTrace=l,this.logicSigHash=typeof f==\"string\"?Yn(f):f,this.logicSigTrace=p}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"approval-program-hash\",this.approvalProgramHash],[\"approval-program-trace\",typeof this.approvalProgramTrace<\"u\"?this.approvalProgramTrace.map(e=>e.toEncodingData()):void 0],[\"clear-state-program-hash\",this.clearStateProgramHash],[\"clear-state-program-trace\",typeof this.clearStateProgramTrace<\"u\"?this.clearStateProgramTrace.map(e=>e.toEncodingData()):void 0],[\"clear-state-rollback\",this.clearStateRollback],[\"clear-state-rollback-error\",this.clearStateRollbackError],[\"inner-trace\",typeof this.innerTrace<\"u\"?this.innerTrace.map(e=>e.toEncodingData()):void 0],[\"logic-sig-hash\",this.logicSigHash],[\"logic-sig-trace\",typeof this.logicSigTrace<\"u\"?this.logicSigTrace.map(e=>e.toEncodingData()):void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SimulationTransactionExecTrace: ${e}`);return new t({approvalProgramHash:e.get(\"approval-program-hash\"),approvalProgramTrace:typeof e.get(\"approval-program-trace\")<\"u\"?e.get(\"approval-program-trace\").map(n=>Xf.fromEncodingData(n)):void 0,clearStateProgramHash:e.get(\"clear-state-program-hash\"),clearStateProgramTrace:typeof e.get(\"clear-state-program-trace\")<\"u\"?e.get(\"clear-state-program-trace\").map(n=>Xf.fromEncodingData(n)):void 0,clearStateRollback:e.get(\"clear-state-rollback\"),clearStateRollbackError:e.get(\"clear-state-rollback-error\"),innerTrace:typeof e.get(\"inner-trace\")<\"u\"?e.get(\"inner-trace\").map(n=>t.fromEncodingData(n)):void 0,logicSigHash:e.get(\"logic-sig-hash\"),logicSigTrace:typeof e.get(\"logic-sig-trace\")<\"u\"?e.get(\"logic-sig-trace\").map(n=>Xf.fromEncodingData(n)):void 0})}},i6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"Message\",valueSchema:a6.encodingSchema,omitEmpty:!0},{key:\"StateProof\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,stateproof:n}){this.message=e,this.stateproof=typeof n==\"string\"?Yn(n):n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Message\",this.message.toEncodingData()],[\"StateProof\",this.stateproof]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProof: ${e}`);return new t({message:a6.fromEncodingData(e.get(\"Message\")??new Map),stateproof:e.get(\"StateProof\")})}},a6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"BlockHeadersCommitment\",valueSchema:new An,omitEmpty:!0},{key:\"FirstAttestedRound\",valueSchema:new Le,omitEmpty:!0},{key:\"LastAttestedRound\",valueSchema:new Le,omitEmpty:!0},{key:\"LnProvenWeight\",valueSchema:new Le,omitEmpty:!0},{key:\"VotersCommitment\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({blockheaderscommitment:e,firstattestedround:n,lastattestedround:r,lnprovenweight:o,voterscommitment:a}){this.blockheaderscommitment=typeof e==\"string\"?Yn(e):e,this.firstattestedround=Qt(n),this.lastattestedround=Qt(r),this.lnprovenweight=Qt(o),this.voterscommitment=typeof a==\"string\"?Yn(a):a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"BlockHeadersCommitment\",this.blockheaderscommitment],[\"FirstAttestedRound\",this.firstattestedround],[\"LastAttestedRound\",this.lastattestedround],[\"LnProvenWeight\",this.lnprovenweight],[\"VotersCommitment\",this.voterscommitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofMessage: ${e}`);return new t({blockheaderscommitment:e.get(\"BlockHeadersCommitment\"),firstattestedround:e.get(\"FirstAttestedRound\"),lastattestedround:e.get(\"LastAttestedRound\"),lnprovenweight:e.get(\"LnProvenWeight\"),voterscommitment:e.get(\"VotersCommitment\")})}},s6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"current_round\",valueSchema:new Le,omitEmpty:!0},{key:\"online-money\",valueSchema:new Le,omitEmpty:!0},{key:\"total-money\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,onlineMoney:n,totalMoney:r}){this.currentRound=Qt(e),this.onlineMoney=Qt(n),this.totalMoney=Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"current_round\",this.currentRound],[\"online-money\",this.onlineMoney],[\"total-money\",this.totalMoney]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded SupplyResponse: ${e}`);return new t({currentRound:e.get(\"current_round\"),onlineMoney:e.get(\"online-money\"),totalMoney:e.get(\"total-money\")})}},cg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"key\",valueSchema:new An,omitEmpty:!0},{key:\"value\",valueSchema:Jf.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:n}){this.key=typeof e==\"string\"?Yn(e):e,this.value=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"key\",this.key],[\"value\",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TealKeyValue: ${e}`);return new t({key:e.get(\"key\"),value:Jf.fromEncodingData(e.get(\"value\")??new Map)})}},Jf=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"bytes\",valueSchema:new An,omitEmpty:!0},{key:\"type\",valueSchema:new Le,omitEmpty:!0},{key:\"uint\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({bytes:e,type:n,uint:r}){this.bytes=typeof e==\"string\"?Yn(e):e,this.type=Bn(n),this.uint=Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"bytes\",this.bytes],[\"type\",this.type],[\"uint\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TealValue: ${e}`);return new t({bytes:e.get(\"bytes\"),type:e.get(\"type\"),uint:e.get(\"uint\")})}},c6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"Deltas\",valueSchema:new vn(Y3.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({deltas:e}){this.deltas=e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"Deltas\",this.deltas.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionGroupLedgerStateDeltasForRoundResponse: ${e}`);return new t({deltas:(e.get(\"Deltas\")??[]).map(n=>Y3.fromEncodingData(n))})}},l6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"consensus-version\",valueSchema:new on,omitEmpty:!0},{key:\"fee\",valueSchema:new Le,omitEmpty:!0},{key:\"genesis-hash\",valueSchema:new An,omitEmpty:!0},{key:\"genesis-id\",valueSchema:new on,omitEmpty:!0},{key:\"last-round\",valueSchema:new Le,omitEmpty:!0},{key:\"min-fee\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({consensusVersion:e,fee:n,genesisHash:r,genesisId:o,lastRound:a,minFee:c}){this.consensusVersion=e,this.fee=Qt(n),this.genesisHash=typeof r==\"string\"?Yn(r):r,this.genesisId=o,this.lastRound=Qt(a),this.minFee=Qt(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"consensus-version\",this.consensusVersion],[\"fee\",this.fee],[\"genesis-hash\",this.genesisHash],[\"genesis-id\",this.genesisId],[\"last-round\",this.lastRound],[\"min-fee\",this.minFee]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionParametersResponse: ${e}`);return new t({consensusVersion:e.get(\"consensus-version\"),fee:e.get(\"fee\"),genesisHash:e.get(\"genesis-hash\"),genesisId:e.get(\"genesis-id\"),lastRound:e.get(\"last-round\"),minFee:e.get(\"min-fee\")})}},u6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"idx\",valueSchema:new Le,omitEmpty:!0},{key:\"proof\",valueSchema:new An,omitEmpty:!0},{key:\"stibhash\",valueSchema:new An,omitEmpty:!0},{key:\"treedepth\",valueSchema:new Le,omitEmpty:!0},{key:\"hashtype\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({idx:e,proof:n,stibhash:r,treedepth:o,hashtype:a}){this.idx=Bn(e),this.proof=typeof n==\"string\"?Yn(n):n,this.stibhash=typeof r==\"string\"?Yn(r):r,this.treedepth=Bn(o),this.hashtype=a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"idx\",this.idx],[\"proof\",this.proof],[\"stibhash\",this.stibhash],[\"treedepth\",this.treedepth],[\"hashtype\",this.hashtype]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionProof: ${e}`);return new t({idx:e.get(\"idx\"),proof:e.get(\"proof\"),stibhash:e.get(\"stibhash\"),treedepth:e.get(\"treedepth\"),hashtype:e.get(\"hashtype\")})}},d6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"build\",valueSchema:N3.encodingSchema,omitEmpty:!0},{key:\"genesis_hash_b64\",valueSchema:new An,omitEmpty:!0},{key:\"genesis_id\",valueSchema:new on,omitEmpty:!0},{key:\"versions\",valueSchema:new vn(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({build:e,genesisHashB64:n,genesisId:r,versions:o}){this.build=e,this.genesisHashB64=typeof n==\"string\"?Yn(n):n,this.genesisId=r,this.versions=o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"build\",this.build.toEncodingData()],[\"genesis_hash_b64\",this.genesisHashB64],[\"genesis_id\",this.genesisId],[\"versions\",this.versions]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Version: ${e}`);return new t({build:N3.fromEncodingData(e.get(\"build\")??new Map),genesisHashB64:e.get(\"genesis_hash_b64\"),genesisId:e.get(\"genesis_id\"),versions:e.get(\"versions\")})}}});var Sn,kr=Ve(()=>{u();Sn=class{constructor(e){this.c=e,this.query={}}executeRequest(e,n){return this.c.get({relativePath:this.path(),query:this.query,requestHeaders:e,customOptions:n})}async do(e,n){let r=await this.executeRequest(e,n);return this.prepare(r)}async doRaw(e,n){return(await this.executeRequest(e,n)).body}}});var p6,EJ=Ve(()=>{u();kr();fr();_o();p6=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}`}exclude(e){return this.query.exclude=e,this}prepare(e){return Zn(e.getJSONText(),J1)}}});var h6,SJ=Ve(()=>{u();kr();fr();_o();h6=class extends Sn{constructor(e,n,r){super(e),this.account=n.toString(),this.assetID=BigInt(r)}path(){return`/v2/accounts/${this.account}/assets/${this.assetID}`}prepare(e){return Zn(e.getJSONText(),S3)}}});var m6,AJ=Ve(()=>{u();kr();fr();_o();m6=class extends Sn{constructor(e,n,r){super(e),this.account=n.toString(),this.applicationID=BigInt(r)}path(){return`/v2/accounts/${this.account}/applications/${this.applicationID}`}prepare(e){return Zn(e.getJSONText(),w3)}}});var g6,kJ=Ve(()=>{u();kr();fr();_o();g6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n),this.query={format:\"msgpack\"}}path(){return`/v2/blocks/${this.round}`}headerOnly(e){return this.query[\"header-only\"]=e,this}prepare(e){return fo(e.body,P3)}}});function bF(t={}){let e=t;return Object.keys(e).every(n=>n.toLowerCase()!==\"content-type\")&&(e={...t},e[\"Content-Type\"]=\"text/plain\"),e}var y6,wF=Ve(()=>{u();Es();fr();_o();kr();y6=class extends Sn{constructor(e,n){super(e),this.source=n}path(){return\"/v2/teal/compile\"}sourcemap(e=!0){return this.query.sourcemap=e,this}executeRequest(e,n){let r=bF(e);return this.c.post({relativePath:this.path(),data:Oa(this.source),query:this.query,requestHeaders:r,customOptions:n})}prepare(e){return Zn(e.getJSONText(),U3)}}});var v6,CJ=Ve(()=>{u();fr();kr();wF();_o();v6=class extends Sn{constructor(e,n){super(e),this.blob=ea(n)}path(){return\"/v2/teal/dryrun\"}executeRequest(e,n){let r=bF(e);return this.c.post({relativePath:this.path(),data:this.blob,requestHeaders:r,customOptions:n})}prepare(e){return Zn(e.getJSONText(),H3)}}});var x6,TJ=Ve(()=>{u();kr();x6=class extends Sn{path(){return\"/genesis\"}prepare(e){return e.getJSONText()}}});var b6,_J=Ve(()=>{u();kr();fr();_o();b6=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/assets/${this.index}`}prepare(e){return Zn(e.getJSONText(),tg)}}});var w6,MJ=Ve(()=>{u();kr();fr();_o();w6=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/applications/${this.index}`}prepare(e){return Zn(e.getJSONText(),bu)}}});var E6,IJ=Ve(()=>{u();kr();fr();_o();E6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/blocks/${this.round}/hash`}prepare(e){return Zn(e.getJSONText(),R3)}}});var S6,RJ=Ve(()=>{u();kr();fr();_o();S6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/blocks/${this.round}/txids`}prepare(e){return Zn(e.getJSONText(),B3)}}});var A6,PJ=Ve(()=>{u();Es();fr();kr();_o();A6=class extends Sn{constructor(e,n,r){super(e),this.index=BigInt(n);let o=ci(r);this.query.name=encodeURI(`b64:${o}`)}path(){return`/v2/applications/${this.index}/box`}prepare(e){return Zn(e.getJSONText(),D3)}}});var k6,BJ=Ve(()=>{u();kr();fr();_o();k6=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n),this.query.max=0}path(){return`/v2/applications/${this.index}/boxes`}max(e){return this.query.max=e,this}prepare(e){return Zn(e.getJSONText(),L3)}}});var C6,DJ=Ve(()=>{u();kr();C6=class extends Sn{path(){return\"/health\"}prepare(e){}}});var T6,FJ=Ve(()=>{u();kr();fr();_o();T6=class extends Sn{constructor(e,n){super(e),this.txid=n,this.query.format=\"msgpack\"}prepare(e){return fo(e.body,rg)}path(){return`/v2/transactions/pending/${this.txid}`}max(e){return this.query.max=e,this}}});var _6,OJ=Ve(()=>{u();kr();fr();_o();_6=class extends Sn{constructor(e){super(e),this.query.format=\"msgpack\"}path(){return\"/v2/transactions/pending\"}prepare(e){return fo(e.body,og)}max(e){return this.query.max=e,this}}});var M6,LJ=Ve(()=>{u();kr();fr();_o();M6=class extends Sn{constructor(e,n){super(e),this.address=n.toString(),this.query.format=\"msgpack\"}prepare(e){return fo(e.body,og)}path(){return`/v2/accounts/${this.address}/transactions/pending`}max(e){return this.query.max=e,this}}});var I6,NJ=Ve(()=>{u();kr();fr();_o();I6=class extends Sn{constructor(e,n,r){super(e),this.txID=r,this.round=BigInt(n)}path(){return`/v2/blocks/${this.round}/transactions/${this.txID}/proof`}hashType(e){return this.query.hashtype=e,this}prepare(e){return Zn(e.getJSONText(),u6)}}});function NCe(t={}){let e=t;return Object.keys(e).every(n=>n.toLowerCase()!==\"content-type\")&&(e={...t},e[\"Content-Type\"]=\"application/x-binary\"),e}function UJ(t){return t&&t.byteLength!==void 0}var R6,zJ=Ve(()=>{u();Ai();_o();fr();kr();R6=class extends Sn{constructor(e,n){super(e);let r=n;if(Array.isArray(n)){if(!n.every(UJ))throw new TypeError(\"Array elements must be byte arrays\");r=ti(...n)}else if(!UJ(r))throw new TypeError(\"Argument must be byte array\");this.txnBytesToPost=r}path(){return\"/v2/transactions\"}executeRequest(e,n){let r=NCe(e);return this.c.post({relativePath:this.path(),data:this.txnBytesToPost,requestHeaders:r,customOptions:n})}prepare(e){return Zn(e.getJSONText(),X3)}}});var P6,VJ=Ve(()=>{u();kr();fr();_o();P6=class extends Sn{path(){return\"/v2/status\"}prepare(e){return Zn(e.getJSONText(),ng)}}});var B6,HJ=Ve(()=>{u();kr();fr();_o();B6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/status/wait-for-block-after/${this.round}`}prepare(e){return Zn(e.getJSONText(),ng)}}});var D6,jJ=Ve(()=>{u();kr();fr();_o();D6=class extends Sn{path(){return\"/v2/transactions/params\"}prepare(e){let n=Zn(e.getJSONText(),l6);return{flatFee:!1,fee:n.fee,firstValid:n.lastRound,lastValid:n.lastRound+BigInt(1e3),genesisID:n.genesisId,genesisHash:n.genesisHash,minFee:n.minFee,consensusVersion:n.consensusVersion}}}});var F6,$J=Ve(()=>{u();kr();fr();_o();F6=class extends Sn{path(){return\"/v2/ledger/supply\"}prepare(e){return Zn(e.getJSONText(),s6)}}});var O6,KJ=Ve(()=>{u();kr();fr();_o();O6=class extends Sn{path(){return\"/versions\"}prepare(e){return Zn(e.getJSONText(),d6)}}});var L6,GJ=Ve(()=>{u();kr();fr();_o();L6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/blocks/${this.round}/lightheader/proof`}prepare(e){return Zn(e.getJSONText(),Z3)}}});var N6,qJ=Ve(()=>{u();kr();fr();_o();N6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/stateproofs/${this.round}`}prepare(e){return Zn(e.getJSONText(),i6)}}});var U6,WJ=Ve(()=>{u();kr();U6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/ledger/sync/${this.round}`}executeRequest(e,n){return this.c.post({relativePath:this.path(),data:null,requestHeaders:e,customOptions:n})}prepare(e){}}});var z6,YJ=Ve(()=>{u();kr();fr();_o();z6=class extends Sn{path(){return\"/v2/ledger/sync\"}prepare(e){return Zn(e.getJSONText(),W3)}}});var V6,ZJ=Ve(()=>{u();kr();V6=class extends Sn{constructor(e,n){super(e),this.offset=BigInt(n)}path(){return`/v2/devmode/blocks/offset/${this.offset}`}executeRequest(e,n){return this.c.post({relativePath:this.path(),data:null,requestHeaders:e,customOptions:n})}prepare(e){}}});var H6,XJ=Ve(()=>{u();kr();fr();_o();H6=class extends Sn{path(){return\"/v2/devmode/blocks/offset\"}prepare(e){return Zn(e.getJSONText(),q3)}}});function UCe(t={}){let e=t;return Object.keys(e).every(n=>n.toLowerCase()!==\"content-type\")&&(e={...t},e[\"Content-Type\"]=\"text/plain\"),e}var j6,JJ=Ve(()=>{u();Es();fr();_o();kr();j6=class extends Sn{constructor(e,n){super(e),this.source=n}path(){return\"/v2/teal/disassemble\"}executeRequest(e,n){let r=UCe(e);return this.c.post({relativePath:this.path(),data:Oa(this.source),query:this.query,requestHeaders:r,customOptions:n})}prepare(e){return Zn(e.getJSONText(),z3)}}});function zCe(t={}){let e=t;return Object.keys(e).every(n=>n.toLowerCase()!==\"content-type\")&&(e={...t},e[\"Content-Type\"]=\"application/msgpack\"),e}var $6,QJ=Ve(()=>{u();fr();kr();_o();$6=class extends Sn{constructor(e,n){super(e),this.query.format=\"msgpack\",this.requestBytes=ea(n)}path(){return\"/v2/transactions/simulate\"}executeRequest(e,n){let r=zCe(e);return this.c.post({relativePath:this.path(),data:this.requestBytes,query:this.query,requestHeaders:r,customOptions:n})}prepare(e){return fo(e.body,e6)}}});var K6,eQ=Ve(()=>{u();kr();K6=class extends Sn{path(){return\"/ready\"}prepare(e){}}});var G6,tQ=Ve(()=>{u();kr();G6=class extends Sn{path(){return\"/v2/ledger/sync\"}executeRequest(e,n){return this.c.delete({relativePath:this.path(),data:void 0,requestHeaders:e,customOptions:n})}prepare(e){}}});var q6,nQ=Ve(()=>{u();kr();fr();b3();q6=class extends Sn{constructor(e,n){super(e),this.id=n,this.query={format:\"msgpack\"}}path(){return`/v2/deltas/txn/group/${this.id}`}prepare(e){return fo(e.body,Pl)}}});var W6,rQ=Ve(()=>{u();kr();fr();b3();W6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n),this.query={format:\"msgpack\"}}path(){return`/v2/deltas/${this.round}`}prepare(e){return fo(e.body,Pl)}}});var Y6,oQ=Ve(()=>{u();kr();_o();fr();Y6=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n),this.query={format:\"msgpack\"}}path(){return`/v2/deltas/${this.round}/txn/group`}prepare(e){return fo(e.body,c6)}}});var Z6,iQ=Ve(()=>{u();HA();_o();EJ();SJ();AJ();kJ();wF();CJ();TJ();_J();MJ();IJ();RJ();PJ();BJ();DJ();FJ();OJ();LJ();NJ();zJ();VJ();HJ();jJ();$J();KJ();GJ();qJ();WJ();YJ();ZJ();XJ();JJ();QJ();qf();fr();eQ();tQ();nQ();rQ();oQ();Z6=class extends jf{constructor(e,n,r,o={}){super(\"X-Algo-API-Token\",e,n,r,o)}healthCheck(){return new C6(this.c)}versionsCheck(){return new O6(this.c)}sendRawTransaction(e){return new R6(this.c,e)}accountInformation(e){return new p6(this.c,e)}accountAssetInformation(e,n){return new h6(this.c,e,n)}accountApplicationInformation(e,n){return new m6(this.c,e,n)}block(e){return new g6(this.c,e)}getBlockHash(e){return new E6(this.c,e)}getBlockTxids(e){return new S6(this.c,e)}pendingTransactionInformation(e){return new T6(this.c,e)}pendingTransactionsInformation(){return new _6(this.c)}pendingTransactionByAddress(e){return new M6(this.c,e)}status(){return new P6(this.c)}statusAfterBlock(e){return new B6(this.c,e)}getTransactionParams(){return new D6(this.c)}supply(){return new F6(this.c)}compile(e){return new y6(this.c,e)}disassemble(e){return new j6(this.c,e)}dryrun(e){return new v6(this.c,e)}getAssetByID(e){return new b6(this.c,e)}getApplicationByID(e){return new w6(this.c,e)}getApplicationBoxByName(e,n){return new A6(this.c,e,n)}getApplicationBoxes(e){return new k6(this.c,e)}genesis(){return new x6(this.c)}getTransactionProof(e,n){return new I6(this.c,e,n)}getLightBlockHeaderProof(e){return new L6(this.c,e)}getStateProof(e){return new N6(this.c,e)}simulateRawTransactions(e){let n=[];if(Array.isArray(e))for(let o of e)n.push(fo(o,So));else n.push(fo(e,So));let r=new ig({txnGroups:[new rp({txns:n})]});return this.simulateTransactions(r)}simulateTransactions(e){return new $6(this.c,e)}setBlockOffsetTimestamp(e){return new V6(this.c,e)}getBlockOffsetTimestamp(){return new H6(this.c)}setSyncRound(e){return new U6(this.c,e)}unsetSyncRound(){return new G6(this.c)}getSyncRound(){return new z6(this.c)}ready(){return new K6(this.c)}getLedgerStateDeltaForTransactionGroup(e){return new q6(this.c,e)}getLedgerStateDelta(e){return new W6(this.c,e)}getTransactionGroupLedgerStateDeltasForRound(e){return new Y6(this.c,e)}}});var X6,aQ=Ve(()=>{u();Es();Zw();HA();X6=class extends jf{constructor(e,n=\"http://127.0.0.1\",r=7833,o={}){super(\"X-KMD-API-Token\",e,n,r,o)}async get(e){return(await this.c.get({relativePath:e})).parseBodyAsJSON({intDecoding:Li.SAFE})}async delete(e,n){return(await this.c.delete({relativePath:e,data:n})).parseBodyAsJSON({intDecoding:Li.SAFE})}async post(e,n){return(await this.c.post({relativePath:e,data:n})).parseBodyAsJSON({intDecoding:Li.SAFE})}async versions(){return this.get(\"/versions\")}async listWallets(){return this.get(\"/v1/wallets\")}async createWallet(e,n,r=new Uint8Array,o=\"sqlite\"){let a={wallet_name:e,wallet_driver_name:o,wallet_password:n,master_derivation_key:ci(r)};return this.post(\"/v1/wallet\",a)}async initWalletHandle(e,n){let r={wallet_id:e,wallet_password:n};return this.post(\"/v1/wallet/init\",r)}async releaseWalletHandle(e){let n={wallet_handle_token:e};return this.post(\"/v1/wallet/release\",n)}async renewWalletHandle(e){let n={wallet_handle_token:e};return this.post(\"/v1/wallet/renew\",n)}async renameWallet(e,n,r){let o={wallet_id:e,wallet_password:n,wallet_name:r};return this.post(\"/v1/wallet/rename\",o)}async getWallet(e){let n={wallet_handle_token:e};return this.post(\"/v1/wallet/info\",n)}async exportMasterDerivationKey(e,n){let r={wallet_handle_token:e,wallet_password:n},o=await this.post(\"/v1/master-key/export\",r);return{master_derivation_key:Yn(o.master_derivation_key)}}async importKey(e,n){let r={wallet_handle_token:e,private_key:ci(n)};return this.post(\"/v1/key/import\",r)}async exportKey(e,n,r){let o={wallet_handle_token:e,address:r,wallet_password:n},a=await this.post(\"/v1/key/export\",o);return{private_key:Yn(a.private_key)}}async generateKey(e){let n={wallet_handle_token:e,display_mnemonic:!1};return this.post(\"/v1/key\",n)}async deleteKey(e,n,r){let o={wallet_handle_token:e,address:r,wallet_password:n};return this.delete(\"/v1/key\",o)}async listKeys(e){let n={wallet_handle_token:e};return this.post(\"/v1/key/list\",n)}async signTransaction(e,n,r){let o={wallet_handle_token:e,wallet_password:n,transaction:ci(r.toByte())},a=await this.post(\"/v1/transaction/sign\",o);return Yn(a.signed_transaction)}async signTransactionWithSpecificPublicKey(e,n,r,o){let a=Oa(o),c={wallet_handle_token:e,wallet_password:n,transaction:ci(r.toByte()),public_key:ci(a)},l=await this.post(\"/v1/transaction/sign\",c);return Yn(l.signed_transaction)}async listMultisig(e){let n={wallet_handle_token:e};return this.post(\"/v1/multisig/list\",n)}async importMultisig(e,n,r,o){let a={wallet_handle_token:e,multisig_version:n,threshold:r,pks:o};return this.post(\"/v1/multisig/import\",a)}async exportMultisig(e,n){let r={wallet_handle_token:e,address:n};return this.post(\"/v1/multisig/export\",r)}async signMultisigTransaction(e,n,r,o,a){let c=Oa(o),l={wallet_handle_token:e,transaction:ci(r.toByte()),public_key:ci(c),partial_multisig:a,wallet_password:n};return this.post(\"/v1/multisig/sign\",l)}async deleteMultisig(e,n,r){let o={wallet_handle_token:e,address:r,wallet_password:n};return this.delete(\"/v1/multisig\",o)}}});var a9={};Oi(a9,{Account:()=>ug,AccountParticipation:()=>J6,AccountResponse:()=>Q6,AccountStateDelta:()=>e5,AccountsResponse:()=>t5,Application:()=>ap,ApplicationLocalState:()=>dg,ApplicationLocalStatesResponse:()=>n5,ApplicationLogData:()=>r5,ApplicationLogsResponse:()=>o5,ApplicationParams:()=>i5,ApplicationResponse:()=>a5,ApplicationStateSchema:()=>Eu,ApplicationsResponse:()=>fg,Asset:()=>sp,AssetBalancesResponse:()=>s5,AssetHolding:()=>pg,AssetHoldingsResponse:()=>c5,AssetParams:()=>hg,AssetResponse:()=>l5,AssetsResponse:()=>mg,Block:()=>gg,BlockHeadersResponse:()=>u5,BlockRewards:()=>d5,BlockUpgradeState:()=>f5,BlockUpgradeVote:()=>p5,Box:()=>h5,BoxDescriptor:()=>m5,BoxReference:()=>yg,BoxesResponse:()=>g5,ErrorResponse:()=>EF,EvalDelta:()=>y5,EvalDeltaKeyValue:()=>vg,HashFactory:()=>v5,HbProofFields:()=>x5,HealthCheck:()=>b5,HoldingRef:()=>w5,IndexerStateProofMessage:()=>E5,LocalsRef:()=>S5,MerkleArrayProof:()=>op,MiniAssetHolding:()=>A5,ParticipationUpdates:()=>k5,ResourceRef:()=>C5,StateProofFields:()=>T5,StateProofParticipant:()=>_5,StateProofReveal:()=>M5,StateProofSigSlot:()=>I5,StateProofSignature:()=>R5,StateProofTracking:()=>P5,StateProofVerifier:()=>B5,StateSchema:()=>lg,TealKeyValue:()=>xg,TealValue:()=>D5,Transaction:()=>cp,TransactionApplication:()=>F5,TransactionAssetConfig:()=>O5,TransactionAssetFreeze:()=>L5,TransactionAssetTransfer:()=>N5,TransactionHeartbeat:()=>U5,TransactionKeyreg:()=>z5,TransactionPayment:()=>V5,TransactionResponse:()=>H5,TransactionSignature:()=>j5,TransactionSignatureLogicsig:()=>$5,TransactionSignatureMultisig:()=>ip,TransactionSignatureMultisigSubsignature:()=>K5,TransactionStateProof:()=>G5,TransactionsResponse:()=>lp});var ug,J6,Q6,e5,t5,ap,dg,n5,r5,o5,i5,a5,Eu,fg,sp,s5,pg,c5,hg,l5,mg,gg,u5,d5,f5,p5,h5,m5,yg,g5,EF,y5,vg,v5,x5,b5,w5,E5,S5,op,A5,k5,C5,T5,_5,M5,I5,R5,P5,B5,lg,xg,D5,cp,F5,O5,L5,N5,U5,z5,V5,H5,j5,$5,ip,K5,G5,lp,Ni=Ve(()=>{u();Ai();Il();Es();Ss();x3();ug=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"amount-without-pending-rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"min-balance\",valueSchema:new Le,omitEmpty:!0},{key:\"pending-rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"rewards\",valueSchema:new Le,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"status\",valueSchema:new on,omitEmpty:!0},{key:\"total-apps-opted-in\",valueSchema:new Le,omitEmpty:!0},{key:\"total-assets-opted-in\",valueSchema:new Le,omitEmpty:!0},{key:\"total-box-bytes\",valueSchema:new Le,omitEmpty:!0},{key:\"total-boxes\",valueSchema:new Le,omitEmpty:!0},{key:\"total-created-apps\",valueSchema:new Le,omitEmpty:!0},{key:\"total-created-assets\",valueSchema:new Le,omitEmpty:!0},{key:\"apps-local-state\",valueSchema:new be(new vn(dg.encodingSchema)),omitEmpty:!0},{key:\"apps-total-extra-pages\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"apps-total-schema\",valueSchema:new be(Eu.encodingSchema),omitEmpty:!0},{key:\"assets\",valueSchema:new be(new vn(pg.encodingSchema)),omitEmpty:!0},{key:\"auth-addr\",valueSchema:new be(new on),omitEmpty:!0},{key:\"closed-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"created-apps\",valueSchema:new be(new vn(ap.encodingSchema)),omitEmpty:!0},{key:\"created-assets\",valueSchema:new be(new vn(sp.encodingSchema)),omitEmpty:!0},{key:\"created-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"incentive-eligible\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"last-heartbeat\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"last-proposed\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"participation\",valueSchema:new be(J6.encodingSchema),omitEmpty:!0},{key:\"reward-base\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sig-type\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,amount:n,amountWithoutPendingRewards:r,minBalance:o,pendingRewards:a,rewards:c,round:l,status:f,totalAppsOptedIn:p,totalAssetsOptedIn:m,totalBoxBytes:g,totalBoxes:y,totalCreatedApps:A,totalCreatedAssets:T,appsLocalState:R,appsTotalExtraPages:K,appsTotalSchema:O,assets:V,authAddr:D,closedAtRound:G,createdApps:ee,createdAssets:J,createdAtRound:le,deleted:se,incentiveEligible:te,lastHeartbeat:S,lastProposed:_,participation:P,rewardBase:z,sigType:Y}){this.address=e,this.amount=Qt(n),this.amountWithoutPendingRewards=Qt(r),this.minBalance=Bn(o),this.pendingRewards=Qt(a),this.rewards=Qt(c),this.round=Qt(l),this.status=f,this.totalAppsOptedIn=Bn(p),this.totalAssetsOptedIn=Bn(m),this.totalBoxBytes=Bn(g),this.totalBoxes=Bn(y),this.totalCreatedApps=Bn(A),this.totalCreatedAssets=Bn(T),this.appsLocalState=R,this.appsTotalExtraPages=typeof K>\"u\"?void 0:Bn(K),this.appsTotalSchema=O,this.assets=V,this.authAddr=typeof D==\"string\"?dr.fromString(D):D,this.closedAtRound=typeof G>\"u\"?void 0:Qt(G),this.createdApps=ee,this.createdAssets=J,this.createdAtRound=typeof le>\"u\"?void 0:Qt(le),this.deleted=se,this.incentiveEligible=te,this.lastHeartbeat=typeof S>\"u\"?void 0:Bn(S),this.lastProposed=typeof _>\"u\"?void 0:Bn(_),this.participation=P,this.rewardBase=typeof z>\"u\"?void 0:Qt(z),this.sigType=Y}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"amount\",this.amount],[\"amount-without-pending-rewards\",this.amountWithoutPendingRewards],[\"min-balance\",this.minBalance],[\"pending-rewards\",this.pendingRewards],[\"rewards\",this.rewards],[\"round\",this.round],[\"status\",this.status],[\"total-apps-opted-in\",this.totalAppsOptedIn],[\"total-assets-opted-in\",this.totalAssetsOptedIn],[\"total-box-bytes\",this.totalBoxBytes],[\"total-boxes\",this.totalBoxes],[\"total-created-apps\",this.totalCreatedApps],[\"total-created-assets\",this.totalCreatedAssets],[\"apps-local-state\",typeof this.appsLocalState<\"u\"?this.appsLocalState.map(e=>e.toEncodingData()):void 0],[\"apps-total-extra-pages\",this.appsTotalExtraPages],[\"apps-total-schema\",typeof this.appsTotalSchema<\"u\"?this.appsTotalSchema.toEncodingData():void 0],[\"assets\",typeof this.assets<\"u\"?this.assets.map(e=>e.toEncodingData()):void 0],[\"auth-addr\",typeof this.authAddr<\"u\"?this.authAddr.toString():void 0],[\"closed-at-round\",this.closedAtRound],[\"created-apps\",typeof this.createdApps<\"u\"?this.createdApps.map(e=>e.toEncodingData()):void 0],[\"created-assets\",typeof this.createdAssets<\"u\"?this.createdAssets.map(e=>e.toEncodingData()):void 0],[\"created-at-round\",this.createdAtRound],[\"deleted\",this.deleted],[\"incentive-eligible\",this.incentiveEligible],[\"last-heartbeat\",this.lastHeartbeat],[\"last-proposed\",this.lastProposed],[\"participation\",typeof this.participation<\"u\"?this.participation.toEncodingData():void 0],[\"reward-base\",this.rewardBase],[\"sig-type\",this.sigType]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Account: ${e}`);return new t({address:e.get(\"address\"),amount:e.get(\"amount\"),amountWithoutPendingRewards:e.get(\"amount-without-pending-rewards\"),minBalance:e.get(\"min-balance\"),pendingRewards:e.get(\"pending-rewards\"),rewards:e.get(\"rewards\"),round:e.get(\"round\"),status:e.get(\"status\"),totalAppsOptedIn:e.get(\"total-apps-opted-in\"),totalAssetsOptedIn:e.get(\"total-assets-opted-in\"),totalBoxBytes:e.get(\"total-box-bytes\"),totalBoxes:e.get(\"total-boxes\"),totalCreatedApps:e.get(\"total-created-apps\"),totalCreatedAssets:e.get(\"total-created-assets\"),appsLocalState:typeof e.get(\"apps-local-state\")<\"u\"?e.get(\"apps-local-state\").map(n=>dg.fromEncodingData(n)):void 0,appsTotalExtraPages:e.get(\"apps-total-extra-pages\"),appsTotalSchema:typeof e.get(\"apps-total-schema\")<\"u\"?Eu.fromEncodingData(e.get(\"apps-total-schema\")):void 0,assets:typeof e.get(\"assets\")<\"u\"?e.get(\"assets\").map(n=>pg.fromEncodingData(n)):void 0,authAddr:e.get(\"auth-addr\"),closedAtRound:e.get(\"closed-at-round\"),createdApps:typeof e.get(\"created-apps\")<\"u\"?e.get(\"created-apps\").map(n=>ap.fromEncodingData(n)):void 0,createdAssets:typeof e.get(\"created-assets\")<\"u\"?e.get(\"created-assets\").map(n=>sp.fromEncodingData(n)):void 0,createdAtRound:e.get(\"created-at-round\"),deleted:e.get(\"deleted\"),incentiveEligible:e.get(\"incentive-eligible\"),lastHeartbeat:e.get(\"last-heartbeat\"),lastProposed:e.get(\"last-proposed\"),participation:typeof e.get(\"participation\")<\"u\"?J6.fromEncodingData(e.get(\"participation\")):void 0,rewardBase:e.get(\"reward-base\"),sigType:e.get(\"sig-type\")})}},J6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"selection-participation-key\",valueSchema:new An,omitEmpty:!0},{key:\"vote-first-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-key-dilution\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-last-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"vote-participation-key\",valueSchema:new An,omitEmpty:!0},{key:\"state-proof-key\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({selectionParticipationKey:e,voteFirstValid:n,voteKeyDilution:r,voteLastValid:o,voteParticipationKey:a,stateProofKey:c}){this.selectionParticipationKey=typeof e==\"string\"?Yn(e):e,this.voteFirstValid=Qt(n),this.voteKeyDilution=Qt(r),this.voteLastValid=Qt(o),this.voteParticipationKey=typeof a==\"string\"?Yn(a):a,this.stateProofKey=typeof c==\"string\"?Yn(c):c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"selection-participation-key\",this.selectionParticipationKey],[\"vote-first-valid\",this.voteFirstValid],[\"vote-key-dilution\",this.voteKeyDilution],[\"vote-last-valid\",this.voteLastValid],[\"vote-participation-key\",this.voteParticipationKey],[\"state-proof-key\",this.stateProofKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountParticipation: ${e}`);return new t({selectionParticipationKey:e.get(\"selection-participation-key\"),voteFirstValid:e.get(\"vote-first-valid\"),voteKeyDilution:e.get(\"vote-key-dilution\"),voteLastValid:e.get(\"vote-last-valid\"),voteParticipationKey:e.get(\"vote-participation-key\"),stateProofKey:e.get(\"state-proof-key\")})}},Q6=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"account\",valueSchema:ug.encodingSchema,omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({account:e,currentRound:n}){this.account=e,this.currentRound=Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"account\",this.account.toEncodingData()],[\"current-round\",this.currentRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountResponse: ${e}`);return new t({account:ug.fromEncodingData(e.get(\"account\")??new Map),currentRound:e.get(\"current-round\")})}},e5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"delta\",valueSchema:new vn(vg.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,delta:n}){this.address=e,this.delta=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"delta\",this.delta.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountStateDelta: ${e}`);return new t({address:e.get(\"address\"),delta:(e.get(\"delta\")??[]).map(n=>vg.fromEncodingData(n))})}},t5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"accounts\",valueSchema:new vn(ug.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({accounts:e,currentRound:n,nextToken:r}){this.accounts=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"accounts\",this.accounts.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AccountsResponse: ${e}`);return new t({accounts:(e.get(\"accounts\")??[]).map(n=>ug.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},ap=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"id\",valueSchema:new Le,omitEmpty:!0},{key:\"params\",valueSchema:i5.encodingSchema,omitEmpty:!0},{key:\"created-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"deleted-at-round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,params:n,createdAtRound:r,deleted:o,deletedAtRound:a}){this.id=Qt(e),this.params=n,this.createdAtRound=typeof r>\"u\"?void 0:Qt(r),this.deleted=o,this.deletedAtRound=typeof a>\"u\"?void 0:Qt(a)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"id\",this.id],[\"params\",this.params.toEncodingData()],[\"created-at-round\",this.createdAtRound],[\"deleted\",this.deleted],[\"deleted-at-round\",this.deletedAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Application: ${e}`);return new t({id:e.get(\"id\"),params:i5.fromEncodingData(e.get(\"params\")??new Map),createdAtRound:e.get(\"created-at-round\"),deleted:e.get(\"deleted\"),deletedAtRound:e.get(\"deleted-at-round\")})}},dg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"id\",valueSchema:new Le,omitEmpty:!0},{key:\"schema\",valueSchema:Eu.encodingSchema,omitEmpty:!0},{key:\"closed-out-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"key-value\",valueSchema:new be(new vn(xg.encodingSchema)),omitEmpty:!0},{key:\"opted-in-at-round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,schema:n,closedOutAtRound:r,deleted:o,keyValue:a,optedInAtRound:c}){this.id=Qt(e),this.schema=n,this.closedOutAtRound=typeof r>\"u\"?void 0:Qt(r),this.deleted=o,this.keyValue=a,this.optedInAtRound=typeof c>\"u\"?void 0:Qt(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"id\",this.id],[\"schema\",this.schema.toEncodingData()],[\"closed-out-at-round\",this.closedOutAtRound],[\"deleted\",this.deleted],[\"key-value\",typeof this.keyValue<\"u\"?this.keyValue.map(e=>e.toEncodingData()):void 0],[\"opted-in-at-round\",this.optedInAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLocalState: ${e}`);return new t({id:e.get(\"id\"),schema:Eu.fromEncodingData(e.get(\"schema\")??new Map),closedOutAtRound:e.get(\"closed-out-at-round\"),deleted:e.get(\"deleted\"),keyValue:typeof e.get(\"key-value\")<\"u\"?e.get(\"key-value\").map(n=>xg.fromEncodingData(n)):void 0,optedInAtRound:e.get(\"opted-in-at-round\")})}},n5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"apps-local-states\",valueSchema:new vn(dg.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({appsLocalStates:e,currentRound:n,nextToken:r}){this.appsLocalStates=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"apps-local-states\",this.appsLocalStates.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLocalStatesResponse: ${e}`);return new t({appsLocalStates:(e.get(\"apps-local-states\")??[]).map(n=>dg.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},r5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"logs\",valueSchema:new vn(new An),omitEmpty:!0},{key:\"txid\",valueSchema:new on,omitEmpty:!0})),this.encodingSchemaValue}constructor({logs:e,txid:n}){this.logs=e,this.txid=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"logs\",this.logs],[\"txid\",this.txid]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLogData: ${e}`);return new t({logs:e.get(\"logs\"),txid:e.get(\"txid\")})}},o5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"application-id\",valueSchema:new Le,omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"log-data\",valueSchema:new be(new vn(r5.encodingSchema)),omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,currentRound:n,logData:r,nextToken:o}){this.applicationId=Qt(e),this.currentRound=Qt(n),this.logData=r,this.nextToken=o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"application-id\",this.applicationId],[\"current-round\",this.currentRound],[\"log-data\",typeof this.logData<\"u\"?this.logData.map(e=>e.toEncodingData()):void 0],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationLogsResponse: ${e}`);return new t({applicationId:e.get(\"application-id\"),currentRound:e.get(\"current-round\"),logData:typeof e.get(\"log-data\")<\"u\"?e.get(\"log-data\").map(n=>r5.fromEncodingData(n)):void 0,nextToken:e.get(\"next-token\")})}},i5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"approval-program\",valueSchema:new An,omitEmpty:!0},{key:\"clear-state-program\",valueSchema:new An,omitEmpty:!0},{key:\"creator\",valueSchema:new be(new on),omitEmpty:!0},{key:\"extra-program-pages\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"global-state\",valueSchema:new be(new vn(xg.encodingSchema)),omitEmpty:!0},{key:\"global-state-schema\",valueSchema:new be(Eu.encodingSchema),omitEmpty:!0},{key:\"local-state-schema\",valueSchema:new be(Eu.encodingSchema),omitEmpty:!0},{key:\"version\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({approvalProgram:e,clearStateProgram:n,creator:r,extraProgramPages:o,globalState:a,globalStateSchema:c,localStateSchema:l,version:f}){this.approvalProgram=typeof e==\"string\"?Yn(e):e,this.clearStateProgram=typeof n==\"string\"?Yn(n):n,this.creator=typeof r==\"string\"?dr.fromString(r):r,this.extraProgramPages=typeof o>\"u\"?void 0:Bn(o),this.globalState=a,this.globalStateSchema=c,this.localStateSchema=l,this.version=typeof f>\"u\"?void 0:Bn(f)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"approval-program\",this.approvalProgram],[\"clear-state-program\",this.clearStateProgram],[\"creator\",typeof this.creator<\"u\"?this.creator.toString():void 0],[\"extra-program-pages\",this.extraProgramPages],[\"global-state\",typeof this.globalState<\"u\"?this.globalState.map(e=>e.toEncodingData()):void 0],[\"global-state-schema\",typeof this.globalStateSchema<\"u\"?this.globalStateSchema.toEncodingData():void 0],[\"local-state-schema\",typeof this.localStateSchema<\"u\"?this.localStateSchema.toEncodingData():void 0],[\"version\",this.version]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationParams: ${e}`);return new t({approvalProgram:e.get(\"approval-program\"),clearStateProgram:e.get(\"clear-state-program\"),creator:e.get(\"creator\"),extraProgramPages:e.get(\"extra-program-pages\"),globalState:typeof e.get(\"global-state\")<\"u\"?e.get(\"global-state\").map(n=>xg.fromEncodingData(n)):void 0,globalStateSchema:typeof e.get(\"global-state-schema\")<\"u\"?Eu.fromEncodingData(e.get(\"global-state-schema\")):void 0,localStateSchema:typeof e.get(\"local-state-schema\")<\"u\"?Eu.fromEncodingData(e.get(\"local-state-schema\")):void 0,version:e.get(\"version\")})}},a5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"application\",valueSchema:new be(ap.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,application:n}){this.currentRound=Qt(e),this.application=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"current-round\",this.currentRound],[\"application\",typeof this.application<\"u\"?this.application.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationResponse: ${e}`);return new t({currentRound:e.get(\"current-round\"),application:typeof e.get(\"application\")<\"u\"?ap.fromEncodingData(e.get(\"application\")):void 0})}},Eu=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"num-byte-slice\",valueSchema:new Le,omitEmpty:!0},{key:\"num-uint\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({numByteSlice:e,numUint:n}){this.numByteSlice=Bn(e),this.numUint=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"num-byte-slice\",this.numByteSlice],[\"num-uint\",this.numUint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationStateSchema: ${e}`);return new t({numByteSlice:e.get(\"num-byte-slice\"),numUint:e.get(\"num-uint\")})}},fg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"applications\",valueSchema:new vn(ap.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({applications:e,currentRound:n,nextToken:r}){this.applications=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"applications\",this.applications.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ApplicationsResponse: ${e}`);return new t({applications:(e.get(\"applications\")??[]).map(n=>ap.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},sp=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"index\",valueSchema:new Le,omitEmpty:!0},{key:\"params\",valueSchema:hg.encodingSchema,omitEmpty:!0},{key:\"created-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"destroyed-at-round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({index:e,params:n,createdAtRound:r,deleted:o,destroyedAtRound:a}){this.index=Qt(e),this.params=n,this.createdAtRound=typeof r>\"u\"?void 0:Qt(r),this.deleted=o,this.destroyedAtRound=typeof a>\"u\"?void 0:Qt(a)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"index\",this.index],[\"params\",this.params.toEncodingData()],[\"created-at-round\",this.createdAtRound],[\"deleted\",this.deleted],[\"destroyed-at-round\",this.destroyedAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Asset: ${e}`);return new t({index:e.get(\"index\"),params:hg.fromEncodingData(e.get(\"params\")??new Map),createdAtRound:e.get(\"created-at-round\"),deleted:e.get(\"deleted\"),destroyedAtRound:e.get(\"destroyed-at-round\")})}},s5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"balances\",valueSchema:new vn(A5.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({balances:e,currentRound:n,nextToken:r}){this.balances=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"balances\",this.balances.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetBalancesResponse: ${e}`);return new t({balances:(e.get(\"balances\")??[]).map(n=>A5.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},pg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"asset-id\",valueSchema:new Le,omitEmpty:!0},{key:\"is-frozen\",valueSchema:new Rr,omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"opted-in-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"opted-out-at-round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,assetId:n,isFrozen:r,deleted:o,optedInAtRound:a,optedOutAtRound:c}){this.amount=Qt(e),this.assetId=Qt(n),this.isFrozen=r,this.deleted=o,this.optedInAtRound=typeof a>\"u\"?void 0:Qt(a),this.optedOutAtRound=typeof c>\"u\"?void 0:Qt(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"amount\",this.amount],[\"asset-id\",this.assetId],[\"is-frozen\",this.isFrozen],[\"deleted\",this.deleted],[\"opted-in-at-round\",this.optedInAtRound],[\"opted-out-at-round\",this.optedOutAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHolding: ${e}`);return new t({amount:e.get(\"amount\"),assetId:e.get(\"asset-id\"),isFrozen:e.get(\"is-frozen\"),deleted:e.get(\"deleted\"),optedInAtRound:e.get(\"opted-in-at-round\"),optedOutAtRound:e.get(\"opted-out-at-round\")})}},c5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"assets\",valueSchema:new vn(pg.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({assets:e,currentRound:n,nextToken:r}){this.assets=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"assets\",this.assets.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetHoldingsResponse: ${e}`);return new t({assets:(e.get(\"assets\")??[]).map(n=>pg.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},hg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"creator\",valueSchema:new on,omitEmpty:!0},{key:\"decimals\",valueSchema:new Le,omitEmpty:!0},{key:\"total\",valueSchema:new Le,omitEmpty:!0},{key:\"clawback\",valueSchema:new be(new on),omitEmpty:!0},{key:\"default-frozen\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"freeze\",valueSchema:new be(new on),omitEmpty:!0},{key:\"manager\",valueSchema:new be(new on),omitEmpty:!0},{key:\"metadata-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"name\",valueSchema:new be(new on),omitEmpty:!0},{key:\"name-b64\",valueSchema:new be(new An),omitEmpty:!0},{key:\"reserve\",valueSchema:new be(new on),omitEmpty:!0},{key:\"unit-name\",valueSchema:new be(new on),omitEmpty:!0},{key:\"unit-name-b64\",valueSchema:new be(new An),omitEmpty:!0},{key:\"url\",valueSchema:new be(new on),omitEmpty:!0},{key:\"url-b64\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({creator:e,decimals:n,total:r,clawback:o,defaultFrozen:a,freeze:c,manager:l,metadataHash:f,name:p,nameB64:m,reserve:g,unitName:y,unitNameB64:A,url:T,urlB64:R}){this.creator=e,this.decimals=Bn(n),this.total=Qt(r),this.clawback=o,this.defaultFrozen=a,this.freeze=c,this.manager=l,this.metadataHash=typeof f==\"string\"?Yn(f):f,this.name=p,this.nameB64=typeof m==\"string\"?Yn(m):m,this.reserve=g,this.unitName=y,this.unitNameB64=typeof A==\"string\"?Yn(A):A,this.url=T,this.urlB64=typeof R==\"string\"?Yn(R):R}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"creator\",this.creator],[\"decimals\",this.decimals],[\"total\",this.total],[\"clawback\",this.clawback],[\"default-frozen\",this.defaultFrozen],[\"freeze\",this.freeze],[\"manager\",this.manager],[\"metadata-hash\",this.metadataHash],[\"name\",this.name],[\"name-b64\",this.nameB64],[\"reserve\",this.reserve],[\"unit-name\",this.unitName],[\"unit-name-b64\",this.unitNameB64],[\"url\",this.url],[\"url-b64\",this.urlB64]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetParams: ${e}`);return new t({creator:e.get(\"creator\"),decimals:e.get(\"decimals\"),total:e.get(\"total\"),clawback:e.get(\"clawback\"),defaultFrozen:e.get(\"default-frozen\"),freeze:e.get(\"freeze\"),manager:e.get(\"manager\"),metadataHash:e.get(\"metadata-hash\"),name:e.get(\"name\"),nameB64:e.get(\"name-b64\"),reserve:e.get(\"reserve\"),unitName:e.get(\"unit-name\"),unitNameB64:e.get(\"unit-name-b64\"),url:e.get(\"url\"),urlB64:e.get(\"url-b64\")})}},l5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"asset\",valueSchema:sp.encodingSchema,omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({asset:e,currentRound:n}){this.asset=e,this.currentRound=Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"asset\",this.asset.toEncodingData()],[\"current-round\",this.currentRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetResponse: ${e}`);return new t({asset:sp.fromEncodingData(e.get(\"asset\")??new Map),currentRound:e.get(\"current-round\")})}},mg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"assets\",valueSchema:new vn(sp.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({assets:e,currentRound:n,nextToken:r}){this.assets=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"assets\",this.assets.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded AssetsResponse: ${e}`);return new t({assets:(e.get(\"assets\")??[]).map(n=>sp.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},gg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"genesis-hash\",valueSchema:new An,omitEmpty:!0},{key:\"genesis-id\",valueSchema:new on,omitEmpty:!0},{key:\"previous-block-hash\",valueSchema:new An,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"seed\",valueSchema:new An,omitEmpty:!0},{key:\"timestamp\",valueSchema:new Le,omitEmpty:!0},{key:\"transactions-root\",valueSchema:new An,omitEmpty:!0},{key:\"transactions-root-sha256\",valueSchema:new An,omitEmpty:!0},{key:\"bonus\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"fees-collected\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"participation-updates\",valueSchema:new be(k5.encodingSchema),omitEmpty:!0},{key:\"previous-block-hash-512\",valueSchema:new be(new An),omitEmpty:!0},{key:\"proposer\",valueSchema:new be(new on),omitEmpty:!0},{key:\"proposer-payout\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"rewards\",valueSchema:new be(d5.encodingSchema),omitEmpty:!0},{key:\"state-proof-tracking\",valueSchema:new be(new vn(P5.encodingSchema)),omitEmpty:!0},{key:\"transactions\",valueSchema:new be(new vn(cp.encodingSchema)),omitEmpty:!0},{key:\"transactions-root-sha512\",valueSchema:new be(new An),omitEmpty:!0},{key:\"txn-counter\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-state\",valueSchema:new be(f5.encodingSchema),omitEmpty:!0},{key:\"upgrade-vote\",valueSchema:new be(p5.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({genesisHash:e,genesisId:n,previousBlockHash:r,round:o,seed:a,timestamp:c,transactionsRoot:l,transactionsRootSha256:f,bonus:p,feesCollected:m,participationUpdates:g,previousBlockHash512:y,proposer:A,proposerPayout:T,rewards:R,stateProofTracking:K,transactions:O,transactionsRootSha512:V,txnCounter:D,upgradeState:G,upgradeVote:ee}){this.genesisHash=typeof e==\"string\"?Yn(e):e,this.genesisId=n,this.previousBlockHash=typeof r==\"string\"?Yn(r):r,this.round=Qt(o),this.seed=typeof a==\"string\"?Yn(a):a,this.timestamp=Bn(c),this.transactionsRoot=typeof l==\"string\"?Yn(l):l,this.transactionsRootSha256=typeof f==\"string\"?Yn(f):f,this.bonus=typeof p>\"u\"?void 0:Bn(p),this.feesCollected=typeof m>\"u\"?void 0:Bn(m),this.participationUpdates=g,this.previousBlockHash512=typeof y==\"string\"?Yn(y):y,this.proposer=typeof A==\"string\"?dr.fromString(A):A,this.proposerPayout=typeof T>\"u\"?void 0:Bn(T),this.rewards=R,this.stateProofTracking=K,this.transactions=O,this.transactionsRootSha512=typeof V==\"string\"?Yn(V):V,this.txnCounter=typeof D>\"u\"?void 0:Bn(D),this.upgradeState=G,this.upgradeVote=ee}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"genesis-hash\",this.genesisHash],[\"genesis-id\",this.genesisId],[\"previous-block-hash\",this.previousBlockHash],[\"round\",this.round],[\"seed\",this.seed],[\"timestamp\",this.timestamp],[\"transactions-root\",this.transactionsRoot],[\"transactions-root-sha256\",this.transactionsRootSha256],[\"bonus\",this.bonus],[\"fees-collected\",this.feesCollected],[\"participation-updates\",typeof this.participationUpdates<\"u\"?this.participationUpdates.toEncodingData():void 0],[\"previous-block-hash-512\",this.previousBlockHash512],[\"proposer\",typeof this.proposer<\"u\"?this.proposer.toString():void 0],[\"proposer-payout\",this.proposerPayout],[\"rewards\",typeof this.rewards<\"u\"?this.rewards.toEncodingData():void 0],[\"state-proof-tracking\",typeof this.stateProofTracking<\"u\"?this.stateProofTracking.map(e=>e.toEncodingData()):void 0],[\"transactions\",typeof this.transactions<\"u\"?this.transactions.map(e=>e.toEncodingData()):void 0],[\"transactions-root-sha512\",this.transactionsRootSha512],[\"txn-counter\",this.txnCounter],[\"upgrade-state\",typeof this.upgradeState<\"u\"?this.upgradeState.toEncodingData():void 0],[\"upgrade-vote\",typeof this.upgradeVote<\"u\"?this.upgradeVote.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Block: ${e}`);return new t({genesisHash:e.get(\"genesis-hash\"),genesisId:e.get(\"genesis-id\"),previousBlockHash:e.get(\"previous-block-hash\"),round:e.get(\"round\"),seed:e.get(\"seed\"),timestamp:e.get(\"timestamp\"),transactionsRoot:e.get(\"transactions-root\"),transactionsRootSha256:e.get(\"transactions-root-sha256\"),bonus:e.get(\"bonus\"),feesCollected:e.get(\"fees-collected\"),participationUpdates:typeof e.get(\"participation-updates\")<\"u\"?k5.fromEncodingData(e.get(\"participation-updates\")):void 0,previousBlockHash512:e.get(\"previous-block-hash-512\"),proposer:e.get(\"proposer\"),proposerPayout:e.get(\"proposer-payout\"),rewards:typeof e.get(\"rewards\")<\"u\"?d5.fromEncodingData(e.get(\"rewards\")):void 0,stateProofTracking:typeof e.get(\"state-proof-tracking\")<\"u\"?e.get(\"state-proof-tracking\").map(n=>P5.fromEncodingData(n)):void 0,transactions:typeof e.get(\"transactions\")<\"u\"?e.get(\"transactions\").map(n=>cp.fromEncodingData(n)):void 0,transactionsRootSha512:e.get(\"transactions-root-sha512\"),txnCounter:e.get(\"txn-counter\"),upgradeState:typeof e.get(\"upgrade-state\")<\"u\"?f5.fromEncodingData(e.get(\"upgrade-state\")):void 0,upgradeVote:typeof e.get(\"upgrade-vote\")<\"u\"?p5.fromEncodingData(e.get(\"upgrade-vote\")):void 0})}},u5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"blocks\",valueSchema:new vn(gg.encodingSchema),omitEmpty:!0},{key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({blocks:e,currentRound:n,nextToken:r}){this.blocks=e,this.currentRound=Qt(n),this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"blocks\",this.blocks.map(e=>e.toEncodingData())],[\"current-round\",this.currentRound],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockHeadersResponse: ${e}`);return new t({blocks:(e.get(\"blocks\")??[]).map(n=>gg.fromEncodingData(n)),currentRound:e.get(\"current-round\"),nextToken:e.get(\"next-token\")})}},d5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"fee-sink\",valueSchema:new on,omitEmpty:!0},{key:\"rewards-calculation-round\",valueSchema:new Le,omitEmpty:!0},{key:\"rewards-level\",valueSchema:new Le,omitEmpty:!0},{key:\"rewards-pool\",valueSchema:new on,omitEmpty:!0},{key:\"rewards-rate\",valueSchema:new Le,omitEmpty:!0},{key:\"rewards-residue\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({feeSink:e,rewardsCalculationRound:n,rewardsLevel:r,rewardsPool:o,rewardsRate:a,rewardsResidue:c}){this.feeSink=e,this.rewardsCalculationRound=Qt(n),this.rewardsLevel=Qt(r),this.rewardsPool=o,this.rewardsRate=Qt(a),this.rewardsResidue=Qt(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"fee-sink\",this.feeSink],[\"rewards-calculation-round\",this.rewardsCalculationRound],[\"rewards-level\",this.rewardsLevel],[\"rewards-pool\",this.rewardsPool],[\"rewards-rate\",this.rewardsRate],[\"rewards-residue\",this.rewardsResidue]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockRewards: ${e}`);return new t({feeSink:e.get(\"fee-sink\"),rewardsCalculationRound:e.get(\"rewards-calculation-round\"),rewardsLevel:e.get(\"rewards-level\"),rewardsPool:e.get(\"rewards-pool\"),rewardsRate:e.get(\"rewards-rate\"),rewardsResidue:e.get(\"rewards-residue\")})}},f5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"current-protocol\",valueSchema:new on,omitEmpty:!0},{key:\"next-protocol\",valueSchema:new be(new on),omitEmpty:!0},{key:\"next-protocol-approvals\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"next-protocol-switch-on\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"next-protocol-vote-before\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentProtocol:e,nextProtocol:n,nextProtocolApprovals:r,nextProtocolSwitchOn:o,nextProtocolVoteBefore:a}){this.currentProtocol=e,this.nextProtocol=n,this.nextProtocolApprovals=typeof r>\"u\"?void 0:Bn(r),this.nextProtocolSwitchOn=typeof o>\"u\"?void 0:Qt(o),this.nextProtocolVoteBefore=typeof a>\"u\"?void 0:Qt(a)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"current-protocol\",this.currentProtocol],[\"next-protocol\",this.nextProtocol],[\"next-protocol-approvals\",this.nextProtocolApprovals],[\"next-protocol-switch-on\",this.nextProtocolSwitchOn],[\"next-protocol-vote-before\",this.nextProtocolVoteBefore]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockUpgradeState: ${e}`);return new t({currentProtocol:e.get(\"current-protocol\"),nextProtocol:e.get(\"next-protocol\"),nextProtocolApprovals:e.get(\"next-protocol-approvals\"),nextProtocolSwitchOn:e.get(\"next-protocol-switch-on\"),nextProtocolVoteBefore:e.get(\"next-protocol-vote-before\")})}},p5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"upgrade-approve\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"upgrade-delay\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"upgrade-propose\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({upgradeApprove:e,upgradeDelay:n,upgradePropose:r}){this.upgradeApprove=e,this.upgradeDelay=typeof n>\"u\"?void 0:Qt(n),this.upgradePropose=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"upgrade-approve\",this.upgradeApprove],[\"upgrade-delay\",this.upgradeDelay],[\"upgrade-propose\",this.upgradePropose]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BlockUpgradeVote: ${e}`);return new t({upgradeApprove:e.get(\"upgrade-approve\"),upgradeDelay:e.get(\"upgrade-delay\"),upgradePropose:e.get(\"upgrade-propose\")})}},h5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"name\",valueSchema:new An,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"value\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e,round:n,value:r}){this.name=typeof e==\"string\"?Yn(e):e,this.round=Qt(n),this.value=typeof r==\"string\"?Yn(r):r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"name\",this.name],[\"round\",this.round],[\"value\",this.value]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Box: ${e}`);return new t({name:e.get(\"name\"),round:e.get(\"round\"),value:e.get(\"value\")})}},m5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"name\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e}){this.name=typeof e==\"string\"?Yn(e):e}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"name\",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxDescriptor: ${e}`);return new t({name:e.get(\"name\")})}},yg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"app\",valueSchema:new Le,omitEmpty:!0},{key:\"name\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({app:e,name:n}){this.app=Bn(e),this.name=typeof n==\"string\"?Yn(n):n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"app\",this.app],[\"name\",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxReference: ${e}`);return new t({app:e.get(\"app\"),name:e.get(\"name\")})}},g5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"application-id\",valueSchema:new Le,omitEmpty:!0},{key:\"boxes\",valueSchema:new vn(m5.encodingSchema),omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,boxes:n,nextToken:r}){this.applicationId=Qt(e),this.boxes=n,this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"application-id\",this.applicationId],[\"boxes\",this.boxes.map(e=>e.toEncodingData())],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded BoxesResponse: ${e}`);return new t({applicationId:e.get(\"application-id\"),boxes:(e.get(\"boxes\")??[]).map(n=>m5.fromEncodingData(n)),nextToken:e.get(\"next-token\")})}},EF=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"message\",valueSchema:new on,omitEmpty:!0},{key:\"data\",valueSchema:new be(ji.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,data:n}){this.message=e,this.data=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"message\",this.message],[\"data\",typeof this.data<\"u\"?this.data.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ErrorResponse: ${e}`);return new t({message:e.get(\"message\"),data:typeof e.get(\"data\")<\"u\"?ji.fromEncodingData(e.get(\"data\")):void 0})}},y5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"action\",valueSchema:new Le,omitEmpty:!0},{key:\"bytes\",valueSchema:new be(new on),omitEmpty:!0},{key:\"uint\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({action:e,bytes:n,uint:r}){this.action=Bn(e),this.bytes=n,this.uint=typeof r>\"u\"?void 0:Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"action\",this.action],[\"bytes\",this.bytes],[\"uint\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded EvalDelta: ${e}`);return new t({action:e.get(\"action\"),bytes:e.get(\"bytes\"),uint:e.get(\"uint\")})}},vg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"key\",valueSchema:new on,omitEmpty:!0},{key:\"value\",valueSchema:y5.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:n}){this.key=e,this.value=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"key\",this.key],[\"value\",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded EvalDeltaKeyValue: ${e}`);return new t({key:e.get(\"key\"),value:y5.fromEncodingData(e.get(\"value\")??new Map)})}},v5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"hash-type\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({hashType:e}){this.hashType=typeof e>\"u\"?void 0:Bn(e)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hash-type\",this.hashType]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HashFactory: ${e}`);return new t({hashType:e.get(\"hash-type\")})}},x5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"hb-pk\",valueSchema:new be(new An),omitEmpty:!0},{key:\"hb-pk1sig\",valueSchema:new be(new An),omitEmpty:!0},{key:\"hb-pk2\",valueSchema:new be(new An),omitEmpty:!0},{key:\"hb-pk2sig\",valueSchema:new be(new An),omitEmpty:!0},{key:\"hb-sig\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({hbPk:e,hbPk1sig:n,hbPk2:r,hbPk2sig:o,hbSig:a}){this.hbPk=typeof e==\"string\"?Yn(e):e,this.hbPk1sig=typeof n==\"string\"?Yn(n):n,this.hbPk2=typeof r==\"string\"?Yn(r):r,this.hbPk2sig=typeof o==\"string\"?Yn(o):o,this.hbSig=typeof a==\"string\"?Yn(a):a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hb-pk\",this.hbPk],[\"hb-pk1sig\",this.hbPk1sig],[\"hb-pk2\",this.hbPk2],[\"hb-pk2sig\",this.hbPk2sig],[\"hb-sig\",this.hbSig]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HbProofFields: ${e}`);return new t({hbPk:e.get(\"hb-pk\"),hbPk1sig:e.get(\"hb-pk1sig\"),hbPk2:e.get(\"hb-pk2\"),hbPk2sig:e.get(\"hb-pk2sig\"),hbSig:e.get(\"hb-sig\")})}},b5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"db-available\",valueSchema:new Rr,omitEmpty:!0},{key:\"is-migrating\",valueSchema:new Rr,omitEmpty:!0},{key:\"message\",valueSchema:new on,omitEmpty:!0},{key:\"round\",valueSchema:new Le,omitEmpty:!0},{key:\"version\",valueSchema:new on,omitEmpty:!0},{key:\"data\",valueSchema:new be(ji.encodingSchema),omitEmpty:!0},{key:\"errors\",valueSchema:new be(new vn(new on)),omitEmpty:!0})),this.encodingSchemaValue}constructor({dbAvailable:e,isMigrating:n,message:r,round:o,version:a,data:c,errors:l}){this.dbAvailable=e,this.isMigrating=n,this.message=r,this.round=Qt(o),this.version=a,this.data=c,this.errors=l}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"db-available\",this.dbAvailable],[\"is-migrating\",this.isMigrating],[\"message\",this.message],[\"round\",this.round],[\"version\",this.version],[\"data\",typeof this.data<\"u\"?this.data.toEncodingData():void 0],[\"errors\",this.errors]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HealthCheck: ${e}`);return new t({dbAvailable:e.get(\"db-available\"),isMigrating:e.get(\"is-migrating\"),message:e.get(\"message\"),round:e.get(\"round\"),version:e.get(\"version\"),data:typeof e.get(\"data\")<\"u\"?ji.fromEncodingData(e.get(\"data\")):void 0,errors:e.get(\"errors\")})}},w5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"asset\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,asset:n}){this.address=typeof e==\"string\"?dr.fromString(e):e,this.asset=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address.toString()],[\"asset\",this.asset]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded HoldingRef: ${e}`);return new t({address:e.get(\"address\"),asset:e.get(\"asset\")})}},E5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"block-headers-commitment\",valueSchema:new be(new An),omitEmpty:!0},{key:\"first-attested-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"latest-attested-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"ln-proven-weight\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"voters-commitment\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({blockHeadersCommitment:e,firstAttestedRound:n,latestAttestedRound:r,lnProvenWeight:o,votersCommitment:a}){this.blockHeadersCommitment=typeof e==\"string\"?Yn(e):e,this.firstAttestedRound=typeof n>\"u\"?void 0:Qt(n),this.latestAttestedRound=typeof r>\"u\"?void 0:Qt(r),this.lnProvenWeight=typeof o>\"u\"?void 0:Qt(o),this.votersCommitment=typeof a==\"string\"?Yn(a):a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"block-headers-commitment\",this.blockHeadersCommitment],[\"first-attested-round\",this.firstAttestedRound],[\"latest-attested-round\",this.latestAttestedRound],[\"ln-proven-weight\",this.lnProvenWeight],[\"voters-commitment\",this.votersCommitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded IndexerStateProofMessage: ${e}`);return new t({blockHeadersCommitment:e.get(\"block-headers-commitment\"),firstAttestedRound:e.get(\"first-attested-round\"),latestAttestedRound:e.get(\"latest-attested-round\"),lnProvenWeight:e.get(\"ln-proven-weight\"),votersCommitment:e.get(\"voters-commitment\")})}},S5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"app\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,app:n}){this.address=typeof e==\"string\"?dr.fromString(e):e,this.app=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address.toString()],[\"app\",this.app]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded LocalsRef: ${e}`);return new t({address:e.get(\"address\"),app:e.get(\"app\")})}},op=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"hash-factory\",valueSchema:new be(v5.encodingSchema),omitEmpty:!0},{key:\"path\",valueSchema:new be(new vn(new An)),omitEmpty:!0},{key:\"tree-depth\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({hashFactory:e,path:n,treeDepth:r}){this.hashFactory=e,this.path=n,this.treeDepth=typeof r>\"u\"?void 0:Bn(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hash-factory\",typeof this.hashFactory<\"u\"?this.hashFactory.toEncodingData():void 0],[\"path\",this.path],[\"tree-depth\",this.treeDepth]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded MerkleArrayProof: ${e}`);return new t({hashFactory:typeof e.get(\"hash-factory\")<\"u\"?v5.fromEncodingData(e.get(\"hash-factory\")):void 0,path:e.get(\"path\"),treeDepth:e.get(\"tree-depth\")})}},A5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"is-frozen\",valueSchema:new Rr,omitEmpty:!0},{key:\"deleted\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"opted-in-at-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"opted-out-at-round\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,amount:n,isFrozen:r,deleted:o,optedInAtRound:a,optedOutAtRound:c}){this.address=e,this.amount=Qt(n),this.isFrozen=r,this.deleted=o,this.optedInAtRound=typeof a>\"u\"?void 0:Qt(a),this.optedOutAtRound=typeof c>\"u\"?void 0:Qt(c)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"amount\",this.amount],[\"is-frozen\",this.isFrozen],[\"deleted\",this.deleted],[\"opted-in-at-round\",this.optedInAtRound],[\"opted-out-at-round\",this.optedOutAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded MiniAssetHolding: ${e}`);return new t({address:e.get(\"address\"),amount:e.get(\"amount\"),isFrozen:e.get(\"is-frozen\"),deleted:e.get(\"deleted\"),optedInAtRound:e.get(\"opted-in-at-round\"),optedOutAtRound:e.get(\"opted-out-at-round\")})}},k5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"absent-participation-accounts\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"expired-participation-accounts\",valueSchema:new be(new vn(new on)),omitEmpty:!0})),this.encodingSchemaValue}constructor({absentParticipationAccounts:e,expiredParticipationAccounts:n}){this.absentParticipationAccounts=e,this.expiredParticipationAccounts=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"absent-participation-accounts\",this.absentParticipationAccounts],[\"expired-participation-accounts\",this.expiredParticipationAccounts]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ParticipationUpdates: ${e}`);return new t({absentParticipationAccounts:e.get(\"absent-participation-accounts\"),expiredParticipationAccounts:e.get(\"expired-participation-accounts\")})}},C5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new be(new on),omitEmpty:!0},{key:\"application-id\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"asset-id\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"box\",valueSchema:new be(yg.encodingSchema),omitEmpty:!0},{key:\"holding\",valueSchema:new be(w5.encodingSchema),omitEmpty:!0},{key:\"local\",valueSchema:new be(S5.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,applicationId:n,assetId:r,box:o,holding:a,local:c}){this.address=typeof e==\"string\"?dr.fromString(e):e,this.applicationId=typeof n>\"u\"?void 0:Bn(n),this.assetId=typeof r>\"u\"?void 0:Bn(r),this.box=o,this.holding=a,this.local=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",typeof this.address<\"u\"?this.address.toString():void 0],[\"application-id\",this.applicationId],[\"asset-id\",this.assetId],[\"box\",typeof this.box<\"u\"?this.box.toEncodingData():void 0],[\"holding\",typeof this.holding<\"u\"?this.holding.toEncodingData():void 0],[\"local\",typeof this.local<\"u\"?this.local.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded ResourceRef: ${e}`);return new t({address:e.get(\"address\"),applicationId:e.get(\"application-id\"),assetId:e.get(\"asset-id\"),box:typeof e.get(\"box\")<\"u\"?yg.fromEncodingData(e.get(\"box\")):void 0,holding:typeof e.get(\"holding\")<\"u\"?w5.fromEncodingData(e.get(\"holding\")):void 0,local:typeof e.get(\"local\")<\"u\"?S5.fromEncodingData(e.get(\"local\")):void 0})}},T5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"part-proofs\",valueSchema:new be(op.encodingSchema),omitEmpty:!0},{key:\"positions-to-reveal\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"reveals\",valueSchema:new be(new vn(M5.encodingSchema)),omitEmpty:!0},{key:\"salt-version\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sig-commit\",valueSchema:new be(new An),omitEmpty:!0},{key:\"sig-proofs\",valueSchema:new be(op.encodingSchema),omitEmpty:!0},{key:\"signed-weight\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({partProofs:e,positionsToReveal:n,reveals:r,saltVersion:o,sigCommit:a,sigProofs:c,signedWeight:l}){this.partProofs=e,this.positionsToReveal=typeof n>\"u\"?void 0:n.map(Qt),this.reveals=r,this.saltVersion=typeof o>\"u\"?void 0:Bn(o),this.sigCommit=typeof a==\"string\"?Yn(a):a,this.sigProofs=c,this.signedWeight=typeof l>\"u\"?void 0:Qt(l)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"part-proofs\",typeof this.partProofs<\"u\"?this.partProofs.toEncodingData():void 0],[\"positions-to-reveal\",this.positionsToReveal],[\"reveals\",typeof this.reveals<\"u\"?this.reveals.map(e=>e.toEncodingData()):void 0],[\"salt-version\",this.saltVersion],[\"sig-commit\",this.sigCommit],[\"sig-proofs\",typeof this.sigProofs<\"u\"?this.sigProofs.toEncodingData():void 0],[\"signed-weight\",this.signedWeight]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofFields: ${e}`);return new t({partProofs:typeof e.get(\"part-proofs\")<\"u\"?op.fromEncodingData(e.get(\"part-proofs\")):void 0,positionsToReveal:e.get(\"positions-to-reveal\"),reveals:typeof e.get(\"reveals\")<\"u\"?e.get(\"reveals\").map(n=>M5.fromEncodingData(n)):void 0,saltVersion:e.get(\"salt-version\"),sigCommit:e.get(\"sig-commit\"),sigProofs:typeof e.get(\"sig-proofs\")<\"u\"?op.fromEncodingData(e.get(\"sig-proofs\")):void 0,signedWeight:e.get(\"signed-weight\")})}},_5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"verifier\",valueSchema:new be(B5.encodingSchema),omitEmpty:!0},{key:\"weight\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({verifier:e,weight:n}){this.verifier=e,this.weight=typeof n>\"u\"?void 0:Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"verifier\",typeof this.verifier<\"u\"?this.verifier.toEncodingData():void 0],[\"weight\",this.weight]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofParticipant: ${e}`);return new t({verifier:typeof e.get(\"verifier\")<\"u\"?B5.fromEncodingData(e.get(\"verifier\")):void 0,weight:e.get(\"weight\")})}},M5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"participant\",valueSchema:new be(_5.encodingSchema),omitEmpty:!0},{key:\"position\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sig-slot\",valueSchema:new be(I5.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({participant:e,position:n,sigSlot:r}){this.participant=e,this.position=typeof n>\"u\"?void 0:Qt(n),this.sigSlot=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"participant\",typeof this.participant<\"u\"?this.participant.toEncodingData():void 0],[\"position\",this.position],[\"sig-slot\",typeof this.sigSlot<\"u\"?this.sigSlot.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofReveal: ${e}`);return new t({participant:typeof e.get(\"participant\")<\"u\"?_5.fromEncodingData(e.get(\"participant\")):void 0,position:e.get(\"position\"),sigSlot:typeof e.get(\"sig-slot\")<\"u\"?I5.fromEncodingData(e.get(\"sig-slot\")):void 0})}},I5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"lower-sig-weight\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"signature\",valueSchema:new be(R5.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({lowerSigWeight:e,signature:n}){this.lowerSigWeight=typeof e>\"u\"?void 0:Qt(e),this.signature=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"lower-sig-weight\",this.lowerSigWeight],[\"signature\",typeof this.signature<\"u\"?this.signature.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofSigSlot: ${e}`);return new t({lowerSigWeight:e.get(\"lower-sig-weight\"),signature:typeof e.get(\"signature\")<\"u\"?R5.fromEncodingData(e.get(\"signature\")):void 0})}},R5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"falcon-signature\",valueSchema:new be(new An),omitEmpty:!0},{key:\"merkle-array-index\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"proof\",valueSchema:new be(op.encodingSchema),omitEmpty:!0},{key:\"verifying-key\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({falconSignature:e,merkleArrayIndex:n,proof:r,verifyingKey:o}){this.falconSignature=typeof e==\"string\"?Yn(e):e,this.merkleArrayIndex=typeof n>\"u\"?void 0:Bn(n),this.proof=r,this.verifyingKey=typeof o==\"string\"?Yn(o):o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"falcon-signature\",this.falconSignature],[\"merkle-array-index\",this.merkleArrayIndex],[\"proof\",typeof this.proof<\"u\"?this.proof.toEncodingData():void 0],[\"verifying-key\",this.verifyingKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofSignature: ${e}`);return new t({falconSignature:e.get(\"falcon-signature\"),merkleArrayIndex:e.get(\"merkle-array-index\"),proof:typeof e.get(\"proof\")<\"u\"?op.fromEncodingData(e.get(\"proof\")):void 0,verifyingKey:e.get(\"verifying-key\")})}},P5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"next-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"online-total-weight\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"type\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"voters-commitment\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({nextRound:e,onlineTotalWeight:n,type:r,votersCommitment:o}){this.nextRound=typeof e>\"u\"?void 0:Qt(e),this.onlineTotalWeight=typeof n>\"u\"?void 0:Qt(n),this.type=typeof r>\"u\"?void 0:Bn(r),this.votersCommitment=typeof o==\"string\"?Yn(o):o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"next-round\",this.nextRound],[\"online-total-weight\",this.onlineTotalWeight],[\"type\",this.type],[\"voters-commitment\",this.votersCommitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofTracking: ${e}`);return new t({nextRound:e.get(\"next-round\"),onlineTotalWeight:e.get(\"online-total-weight\"),type:e.get(\"type\"),votersCommitment:e.get(\"voters-commitment\")})}},B5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"commitment\",valueSchema:new be(new An),omitEmpty:!0},{key:\"key-lifetime\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({commitment:e,keyLifetime:n}){this.commitment=typeof e==\"string\"?Yn(e):e,this.keyLifetime=typeof n>\"u\"?void 0:Qt(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"commitment\",this.commitment],[\"key-lifetime\",this.keyLifetime]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateProofVerifier: ${e}`);return new t({commitment:e.get(\"commitment\"),keyLifetime:e.get(\"key-lifetime\")})}},lg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"num-byte-slice\",valueSchema:new Le,omitEmpty:!0},{key:\"num-uint\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({numByteSlice:e,numUint:n}){this.numByteSlice=Bn(e),this.numUint=Bn(n)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"num-byte-slice\",this.numByteSlice],[\"num-uint\",this.numUint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded StateSchema: ${e}`);return new t({numByteSlice:e.get(\"num-byte-slice\"),numUint:e.get(\"num-uint\")})}},xg=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"key\",valueSchema:new An,omitEmpty:!0},{key:\"value\",valueSchema:D5.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:n}){this.key=typeof e==\"string\"?Yn(e):e,this.value=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"key\",this.key],[\"value\",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TealKeyValue: ${e}`);return new t({key:e.get(\"key\"),value:D5.fromEncodingData(e.get(\"value\")??new Map)})}},D5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"bytes\",valueSchema:new An,omitEmpty:!0},{key:\"type\",valueSchema:new Le,omitEmpty:!0},{key:\"uint\",valueSchema:new Le,omitEmpty:!0})),this.encodingSchemaValue}constructor({bytes:e,type:n,uint:r}){this.bytes=typeof e==\"string\"?Yn(e):e,this.type=Bn(n),this.uint=Qt(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"bytes\",this.bytes],[\"type\",this.type],[\"uint\",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TealValue: ${e}`);return new t({bytes:e.get(\"bytes\"),type:e.get(\"type\"),uint:e.get(\"uint\")})}},cp=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"fee\",valueSchema:new Le,omitEmpty:!0},{key:\"first-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"last-valid\",valueSchema:new Le,omitEmpty:!0},{key:\"sender\",valueSchema:new on,omitEmpty:!0},{key:\"application-transaction\",valueSchema:new be(F5.encodingSchema),omitEmpty:!0},{key:\"asset-config-transaction\",valueSchema:new be(O5.encodingSchema),omitEmpty:!0},{key:\"asset-freeze-transaction\",valueSchema:new be(L5.encodingSchema),omitEmpty:!0},{key:\"asset-transfer-transaction\",valueSchema:new be(N5.encodingSchema),omitEmpty:!0},{key:\"auth-addr\",valueSchema:new be(new on),omitEmpty:!0},{key:\"close-rewards\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"closing-amount\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"confirmed-round\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"created-application-index\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"created-asset-index\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"genesis-hash\",valueSchema:new be(new An),omitEmpty:!0},{key:\"genesis-id\",valueSchema:new be(new on),omitEmpty:!0},{key:\"global-state-delta\",valueSchema:new be(new vn(vg.encodingSchema)),omitEmpty:!0},{key:\"group\",valueSchema:new be(new An),omitEmpty:!0},{key:\"heartbeat-transaction\",valueSchema:new be(U5.encodingSchema),omitEmpty:!0},{key:\"id\",valueSchema:new be(new on),omitEmpty:!0},{key:\"inner-txns\",valueSchema:new be(new vn(t.encodingSchema)),omitEmpty:!0},{key:\"intra-round-offset\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"keyreg-transaction\",valueSchema:new be(z5.encodingSchema),omitEmpty:!0},{key:\"lease\",valueSchema:new be(new An),omitEmpty:!0},{key:\"local-state-delta\",valueSchema:new be(new vn(e5.encodingSchema)),omitEmpty:!0},{key:\"logs\",valueSchema:new be(new vn(new An)),omitEmpty:!0},{key:\"note\",valueSchema:new be(new An),omitEmpty:!0},{key:\"payment-transaction\",valueSchema:new be(V5.encodingSchema),omitEmpty:!0},{key:\"receiver-rewards\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"rekey-to\",valueSchema:new be(new on),omitEmpty:!0},{key:\"round-time\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"sender-rewards\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"signature\",valueSchema:new be(j5.encodingSchema),omitEmpty:!0},{key:\"state-proof-transaction\",valueSchema:new be(G5.encodingSchema),omitEmpty:!0},{key:\"tx-type\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({fee:e,firstValid:n,lastValid:r,sender:o,applicationTransaction:a,assetConfigTransaction:c,assetFreezeTransaction:l,assetTransferTransaction:f,authAddr:p,closeRewards:m,closingAmount:g,confirmedRound:y,createdApplicationIndex:A,createdAssetIndex:T,genesisHash:R,genesisId:K,globalStateDelta:O,group:V,heartbeatTransaction:D,id:G,innerTxns:ee,intraRoundOffset:J,keyregTransaction:le,lease:se,localStateDelta:te,logs:S,note:_,paymentTransaction:P,receiverRewards:z,rekeyTo:Y,roundTime:L,senderRewards:U,signature:W,stateProofTransaction:w,txType:I}){this.fee=Qt(e),this.firstValid=Qt(n),this.lastValid=Qt(r),this.sender=o,this.applicationTransaction=a,this.assetConfigTransaction=c,this.assetFreezeTransaction=l,this.assetTransferTransaction=f,this.authAddr=typeof p==\"string\"?dr.fromString(p):p,this.closeRewards=typeof m>\"u\"?void 0:Qt(m),this.closingAmount=typeof g>\"u\"?void 0:Qt(g),this.confirmedRound=typeof y>\"u\"?void 0:Qt(y),this.createdApplicationIndex=typeof A>\"u\"?void 0:Qt(A),this.createdAssetIndex=typeof T>\"u\"?void 0:Qt(T),this.genesisHash=typeof R==\"string\"?Yn(R):R,this.genesisId=K,this.globalStateDelta=O,this.group=typeof V==\"string\"?Yn(V):V,this.heartbeatTransaction=D,this.id=G,this.innerTxns=ee,this.intraRoundOffset=typeof J>\"u\"?void 0:Bn(J),this.keyregTransaction=le,this.lease=typeof se==\"string\"?Yn(se):se,this.localStateDelta=te,this.logs=S,this.note=typeof _==\"string\"?Yn(_):_,this.paymentTransaction=P,this.receiverRewards=typeof z>\"u\"?void 0:Qt(z),this.rekeyTo=typeof Y==\"string\"?dr.fromString(Y):Y,this.roundTime=typeof L>\"u\"?void 0:Bn(L),this.senderRewards=typeof U>\"u\"?void 0:Qt(U),this.signature=W,this.stateProofTransaction=w,this.txType=I}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"fee\",this.fee],[\"first-valid\",this.firstValid],[\"last-valid\",this.lastValid],[\"sender\",this.sender],[\"application-transaction\",typeof this.applicationTransaction<\"u\"?this.applicationTransaction.toEncodingData():void 0],[\"asset-config-transaction\",typeof this.assetConfigTransaction<\"u\"?this.assetConfigTransaction.toEncodingData():void 0],[\"asset-freeze-transaction\",typeof this.assetFreezeTransaction<\"u\"?this.assetFreezeTransaction.toEncodingData():void 0],[\"asset-transfer-transaction\",typeof this.assetTransferTransaction<\"u\"?this.assetTransferTransaction.toEncodingData():void 0],[\"auth-addr\",typeof this.authAddr<\"u\"?this.authAddr.toString():void 0],[\"close-rewards\",this.closeRewards],[\"closing-amount\",this.closingAmount],[\"confirmed-round\",this.confirmedRound],[\"created-application-index\",this.createdApplicationIndex],[\"created-asset-index\",this.createdAssetIndex],[\"genesis-hash\",this.genesisHash],[\"genesis-id\",this.genesisId],[\"global-state-delta\",typeof this.globalStateDelta<\"u\"?this.globalStateDelta.map(e=>e.toEncodingData()):void 0],[\"group\",this.group],[\"heartbeat-transaction\",typeof this.heartbeatTransaction<\"u\"?this.heartbeatTransaction.toEncodingData():void 0],[\"id\",this.id],[\"inner-txns\",typeof this.innerTxns<\"u\"?this.innerTxns.map(e=>e.toEncodingData()):void 0],[\"intra-round-offset\",this.intraRoundOffset],[\"keyreg-transaction\",typeof this.keyregTransaction<\"u\"?this.keyregTransaction.toEncodingData():void 0],[\"lease\",this.lease],[\"local-state-delta\",typeof this.localStateDelta<\"u\"?this.localStateDelta.map(e=>e.toEncodingData()):void 0],[\"logs\",this.logs],[\"note\",this.note],[\"payment-transaction\",typeof this.paymentTransaction<\"u\"?this.paymentTransaction.toEncodingData():void 0],[\"receiver-rewards\",this.receiverRewards],[\"rekey-to\",typeof this.rekeyTo<\"u\"?this.rekeyTo.toString():void 0],[\"round-time\",this.roundTime],[\"sender-rewards\",this.senderRewards],[\"signature\",typeof this.signature<\"u\"?this.signature.toEncodingData():void 0],[\"state-proof-transaction\",typeof this.stateProofTransaction<\"u\"?this.stateProofTransaction.toEncodingData():void 0],[\"tx-type\",this.txType]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded Transaction: ${e}`);return new t({fee:e.get(\"fee\"),firstValid:e.get(\"first-valid\"),lastValid:e.get(\"last-valid\"),sender:e.get(\"sender\"),applicationTransaction:typeof e.get(\"application-transaction\")<\"u\"?F5.fromEncodingData(e.get(\"application-transaction\")):void 0,assetConfigTransaction:typeof e.get(\"asset-config-transaction\")<\"u\"?O5.fromEncodingData(e.get(\"asset-config-transaction\")):void 0,assetFreezeTransaction:typeof e.get(\"asset-freeze-transaction\")<\"u\"?L5.fromEncodingData(e.get(\"asset-freeze-transaction\")):void 0,assetTransferTransaction:typeof e.get(\"asset-transfer-transaction\")<\"u\"?N5.fromEncodingData(e.get(\"asset-transfer-transaction\")):void 0,authAddr:e.get(\"auth-addr\"),closeRewards:e.get(\"close-rewards\"),closingAmount:e.get(\"closing-amount\"),confirmedRound:e.get(\"confirmed-round\"),createdApplicationIndex:e.get(\"created-application-index\"),createdAssetIndex:e.get(\"created-asset-index\"),genesisHash:e.get(\"genesis-hash\"),genesisId:e.get(\"genesis-id\"),globalStateDelta:typeof e.get(\"global-state-delta\")<\"u\"?e.get(\"global-state-delta\").map(n=>vg.fromEncodingData(n)):void 0,group:e.get(\"group\"),heartbeatTransaction:typeof e.get(\"heartbeat-transaction\")<\"u\"?U5.fromEncodingData(e.get(\"heartbeat-transaction\")):void 0,id:e.get(\"id\"),innerTxns:typeof e.get(\"inner-txns\")<\"u\"?e.get(\"inner-txns\").map(n=>t.fromEncodingData(n)):void 0,intraRoundOffset:e.get(\"intra-round-offset\"),keyregTransaction:typeof e.get(\"keyreg-transaction\")<\"u\"?z5.fromEncodingData(e.get(\"keyreg-transaction\")):void 0,lease:e.get(\"lease\"),localStateDelta:typeof e.get(\"local-state-delta\")<\"u\"?e.get(\"local-state-delta\").map(n=>e5.fromEncodingData(n)):void 0,logs:e.get(\"logs\"),note:e.get(\"note\"),paymentTransaction:typeof e.get(\"payment-transaction\")<\"u\"?V5.fromEncodingData(e.get(\"payment-transaction\")):void 0,receiverRewards:e.get(\"receiver-rewards\"),rekeyTo:e.get(\"rekey-to\"),roundTime:e.get(\"round-time\"),senderRewards:e.get(\"sender-rewards\"),signature:typeof e.get(\"signature\")<\"u\"?j5.fromEncodingData(e.get(\"signature\")):void 0,stateProofTransaction:typeof e.get(\"state-proof-transaction\")<\"u\"?G5.fromEncodingData(e.get(\"state-proof-transaction\")):void 0,txType:e.get(\"tx-type\")})}},F5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"application-id\",valueSchema:new Le,omitEmpty:!0},{key:\"access\",valueSchema:new be(new vn(C5.encodingSchema)),omitEmpty:!0},{key:\"accounts\",valueSchema:new be(new vn(new on)),omitEmpty:!0},{key:\"application-args\",valueSchema:new be(new vn(new An)),omitEmpty:!0},{key:\"approval-program\",valueSchema:new be(new An),omitEmpty:!0},{key:\"box-references\",valueSchema:new be(new vn(yg.encodingSchema)),omitEmpty:!0},{key:\"clear-state-program\",valueSchema:new be(new An),omitEmpty:!0},{key:\"extra-program-pages\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"foreign-apps\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"foreign-assets\",valueSchema:new be(new vn(new Le)),omitEmpty:!0},{key:\"global-state-schema\",valueSchema:new be(lg.encodingSchema),omitEmpty:!0},{key:\"local-state-schema\",valueSchema:new be(lg.encodingSchema),omitEmpty:!0},{key:\"on-completion\",valueSchema:new be(new on),omitEmpty:!0},{key:\"reject-version\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,access:n,accounts:r,applicationArgs:o,approvalProgram:a,boxReferences:c,clearStateProgram:l,extraProgramPages:f,foreignApps:p,foreignAssets:m,globalStateSchema:g,localStateSchema:y,onCompletion:A,rejectVersion:T}){this.applicationId=Qt(e),this.access=n,this.accounts=typeof r<\"u\"?r.map(R=>typeof R==\"string\"?dr.fromString(R):R):void 0,this.applicationArgs=o,this.approvalProgram=typeof a==\"string\"?Yn(a):a,this.boxReferences=c,this.clearStateProgram=typeof l==\"string\"?Yn(l):l,this.extraProgramPages=typeof f>\"u\"?void 0:Bn(f),this.foreignApps=typeof p>\"u\"?void 0:p.map(Qt),this.foreignAssets=typeof m>\"u\"?void 0:m.map(Qt),this.globalStateSchema=g,this.localStateSchema=y,this.onCompletion=A,this.rejectVersion=typeof T>\"u\"?void 0:Bn(T)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"application-id\",this.applicationId],[\"access\",typeof this.access<\"u\"?this.access.map(e=>e.toEncodingData()):void 0],[\"accounts\",typeof this.accounts<\"u\"?this.accounts.map(e=>e.toString()):void 0],[\"application-args\",this.applicationArgs],[\"approval-program\",this.approvalProgram],[\"box-references\",typeof this.boxReferences<\"u\"?this.boxReferences.map(e=>e.toEncodingData()):void 0],[\"clear-state-program\",this.clearStateProgram],[\"extra-program-pages\",this.extraProgramPages],[\"foreign-apps\",this.foreignApps],[\"foreign-assets\",this.foreignAssets],[\"global-state-schema\",typeof this.globalStateSchema<\"u\"?this.globalStateSchema.toEncodingData():void 0],[\"local-state-schema\",typeof this.localStateSchema<\"u\"?this.localStateSchema.toEncodingData():void 0],[\"on-completion\",this.onCompletion],[\"reject-version\",this.rejectVersion]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionApplication: ${e}`);return new t({applicationId:e.get(\"application-id\"),access:typeof e.get(\"access\")<\"u\"?e.get(\"access\").map(n=>C5.fromEncodingData(n)):void 0,accounts:e.get(\"accounts\"),applicationArgs:e.get(\"application-args\"),approvalProgram:e.get(\"approval-program\"),boxReferences:typeof e.get(\"box-references\")<\"u\"?e.get(\"box-references\").map(n=>yg.fromEncodingData(n)):void 0,clearStateProgram:e.get(\"clear-state-program\"),extraProgramPages:e.get(\"extra-program-pages\"),foreignApps:e.get(\"foreign-apps\"),foreignAssets:e.get(\"foreign-assets\"),globalStateSchema:typeof e.get(\"global-state-schema\")<\"u\"?lg.fromEncodingData(e.get(\"global-state-schema\")):void 0,localStateSchema:typeof e.get(\"local-state-schema\")<\"u\"?lg.fromEncodingData(e.get(\"local-state-schema\")):void 0,onCompletion:e.get(\"on-completion\"),rejectVersion:e.get(\"reject-version\")})}},O5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"asset-id\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"params\",valueSchema:new be(hg.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({assetId:e,params:n}){this.assetId=typeof e>\"u\"?void 0:Qt(e),this.params=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"asset-id\",this.assetId],[\"params\",typeof this.params<\"u\"?this.params.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionAssetConfig: ${e}`);return new t({assetId:e.get(\"asset-id\"),params:typeof e.get(\"params\")<\"u\"?hg.fromEncodingData(e.get(\"params\")):void 0})}},L5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"address\",valueSchema:new on,omitEmpty:!0},{key:\"asset-id\",valueSchema:new Le,omitEmpty:!0},{key:\"new-freeze-status\",valueSchema:new Rr,omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,assetId:n,newFreezeStatus:r}){this.address=e,this.assetId=Qt(n),this.newFreezeStatus=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"address\",this.address],[\"asset-id\",this.assetId],[\"new-freeze-status\",this.newFreezeStatus]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionAssetFreeze: ${e}`);return new t({address:e.get(\"address\"),assetId:e.get(\"asset-id\"),newFreezeStatus:e.get(\"new-freeze-status\")})}},N5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"asset-id\",valueSchema:new Le,omitEmpty:!0},{key:\"receiver\",valueSchema:new on,omitEmpty:!0},{key:\"close-amount\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"close-to\",valueSchema:new be(new on),omitEmpty:!0},{key:\"sender\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,assetId:n,receiver:r,closeAmount:o,closeTo:a,sender:c}){this.amount=Qt(e),this.assetId=Qt(n),this.receiver=r,this.closeAmount=typeof o>\"u\"?void 0:Qt(o),this.closeTo=a,this.sender=c}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"amount\",this.amount],[\"asset-id\",this.assetId],[\"receiver\",this.receiver],[\"close-amount\",this.closeAmount],[\"close-to\",this.closeTo],[\"sender\",this.sender]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionAssetTransfer: ${e}`);return new t({amount:e.get(\"amount\"),assetId:e.get(\"asset-id\"),receiver:e.get(\"receiver\"),closeAmount:e.get(\"close-amount\"),closeTo:e.get(\"close-to\"),sender:e.get(\"sender\")})}},U5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"hb-address\",valueSchema:new on,omitEmpty:!0},{key:\"hb-key-dilution\",valueSchema:new Le,omitEmpty:!0},{key:\"hb-proof\",valueSchema:x5.encodingSchema,omitEmpty:!0},{key:\"hb-seed\",valueSchema:new An,omitEmpty:!0},{key:\"hb-vote-id\",valueSchema:new An,omitEmpty:!0})),this.encodingSchemaValue}constructor({hbAddress:e,hbKeyDilution:n,hbProof:r,hbSeed:o,hbVoteId:a}){this.hbAddress=e,this.hbKeyDilution=Qt(n),this.hbProof=r,this.hbSeed=typeof o==\"string\"?Yn(o):o,this.hbVoteId=typeof a==\"string\"?Yn(a):a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"hb-address\",this.hbAddress],[\"hb-key-dilution\",this.hbKeyDilution],[\"hb-proof\",this.hbProof.toEncodingData()],[\"hb-seed\",this.hbSeed],[\"hb-vote-id\",this.hbVoteId]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionHeartbeat: ${e}`);return new t({hbAddress:e.get(\"hb-address\"),hbKeyDilution:e.get(\"hb-key-dilution\"),hbProof:x5.fromEncodingData(e.get(\"hb-proof\")??new Map),hbSeed:e.get(\"hb-seed\"),hbVoteId:e.get(\"hb-vote-id\")})}},z5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"non-participation\",valueSchema:new be(new Rr),omitEmpty:!0},{key:\"selection-participation-key\",valueSchema:new be(new An),omitEmpty:!0},{key:\"state-proof-key\",valueSchema:new be(new An),omitEmpty:!0},{key:\"vote-first-valid\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"vote-key-dilution\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"vote-last-valid\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"vote-participation-key\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({nonParticipation:e,selectionParticipationKey:n,stateProofKey:r,voteFirstValid:o,voteKeyDilution:a,voteLastValid:c,voteParticipationKey:l}){this.nonParticipation=e,this.selectionParticipationKey=typeof n==\"string\"?Yn(n):n,this.stateProofKey=typeof r==\"string\"?Yn(r):r,this.voteFirstValid=typeof o>\"u\"?void 0:Qt(o),this.voteKeyDilution=typeof a>\"u\"?void 0:Qt(a),this.voteLastValid=typeof c>\"u\"?void 0:Qt(c),this.voteParticipationKey=typeof l==\"string\"?Yn(l):l}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"non-participation\",this.nonParticipation],[\"selection-participation-key\",this.selectionParticipationKey],[\"state-proof-key\",this.stateProofKey],[\"vote-first-valid\",this.voteFirstValid],[\"vote-key-dilution\",this.voteKeyDilution],[\"vote-last-valid\",this.voteLastValid],[\"vote-participation-key\",this.voteParticipationKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionKeyreg: ${e}`);return new t({nonParticipation:e.get(\"non-participation\"),selectionParticipationKey:e.get(\"selection-participation-key\"),stateProofKey:e.get(\"state-proof-key\"),voteFirstValid:e.get(\"vote-first-valid\"),voteKeyDilution:e.get(\"vote-key-dilution\"),voteLastValid:e.get(\"vote-last-valid\"),voteParticipationKey:e.get(\"vote-participation-key\")})}},V5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"amount\",valueSchema:new Le,omitEmpty:!0},{key:\"receiver\",valueSchema:new on,omitEmpty:!0},{key:\"close-amount\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"close-remainder-to\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,receiver:n,closeAmount:r,closeRemainderTo:o}){this.amount=Qt(e),this.receiver=n,this.closeAmount=typeof r>\"u\"?void 0:Qt(r),this.closeRemainderTo=o}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"amount\",this.amount],[\"receiver\",this.receiver],[\"close-amount\",this.closeAmount],[\"close-remainder-to\",this.closeRemainderTo]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionPayment: ${e}`);return new t({amount:e.get(\"amount\"),receiver:e.get(\"receiver\"),closeAmount:e.get(\"close-amount\"),closeRemainderTo:e.get(\"close-remainder-to\")})}},H5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"transaction\",valueSchema:cp.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,transaction:n}){this.currentRound=Qt(e),this.transaction=n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"current-round\",this.currentRound],[\"transaction\",this.transaction.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionResponse: ${e}`);return new t({currentRound:e.get(\"current-round\"),transaction:cp.fromEncodingData(e.get(\"transaction\")??new Map)})}},j5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"logicsig\",valueSchema:new be($5.encodingSchema),omitEmpty:!0},{key:\"multisig\",valueSchema:new be(ip.encodingSchema),omitEmpty:!0},{key:\"sig\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({logicsig:e,multisig:n,sig:r}){this.logicsig=e,this.multisig=n,this.sig=typeof r==\"string\"?Yn(r):r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"logicsig\",typeof this.logicsig<\"u\"?this.logicsig.toEncodingData():void 0],[\"multisig\",typeof this.multisig<\"u\"?this.multisig.toEncodingData():void 0],[\"sig\",this.sig]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionSignature: ${e}`);return new t({logicsig:typeof e.get(\"logicsig\")<\"u\"?$5.fromEncodingData(e.get(\"logicsig\")):void 0,multisig:typeof e.get(\"multisig\")<\"u\"?ip.fromEncodingData(e.get(\"multisig\")):void 0,sig:e.get(\"sig\")})}},$5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"logic\",valueSchema:new An,omitEmpty:!0},{key:\"args\",valueSchema:new be(new vn(new An)),omitEmpty:!0},{key:\"logic-multisig-signature\",valueSchema:new be(ip.encodingSchema),omitEmpty:!0},{key:\"multisig-signature\",valueSchema:new be(ip.encodingSchema),omitEmpty:!0},{key:\"signature\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({logic:e,args:n,logicMultisigSignature:r,multisigSignature:o,signature:a}){this.logic=typeof e==\"string\"?Yn(e):e,this.args=n,this.logicMultisigSignature=r,this.multisigSignature=o,this.signature=typeof a==\"string\"?Yn(a):a}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"logic\",this.logic],[\"args\",this.args],[\"logic-multisig-signature\",typeof this.logicMultisigSignature<\"u\"?this.logicMultisigSignature.toEncodingData():void 0],[\"multisig-signature\",typeof this.multisigSignature<\"u\"?this.multisigSignature.toEncodingData():void 0],[\"signature\",this.signature]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionSignatureLogicsig: ${e}`);return new t({logic:e.get(\"logic\"),args:e.get(\"args\"),logicMultisigSignature:typeof e.get(\"logic-multisig-signature\")<\"u\"?ip.fromEncodingData(e.get(\"logic-multisig-signature\")):void 0,multisigSignature:typeof e.get(\"multisig-signature\")<\"u\"?ip.fromEncodingData(e.get(\"multisig-signature\")):void 0,signature:e.get(\"signature\")})}},ip=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"subsignature\",valueSchema:new be(new vn(K5.encodingSchema)),omitEmpty:!0},{key:\"threshold\",valueSchema:new be(new Le),omitEmpty:!0},{key:\"version\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({subsignature:e,threshold:n,version:r}){this.subsignature=e,this.threshold=typeof n>\"u\"?void 0:Bn(n),this.version=typeof r>\"u\"?void 0:Bn(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"subsignature\",typeof this.subsignature<\"u\"?this.subsignature.map(e=>e.toEncodingData()):void 0],[\"threshold\",this.threshold],[\"version\",this.version]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionSignatureMultisig: ${e}`);return new t({subsignature:typeof e.get(\"subsignature\")<\"u\"?e.get(\"subsignature\").map(n=>K5.fromEncodingData(n)):void 0,threshold:e.get(\"threshold\"),version:e.get(\"version\")})}},K5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"public-key\",valueSchema:new be(new An),omitEmpty:!0},{key:\"signature\",valueSchema:new be(new An),omitEmpty:!0})),this.encodingSchemaValue}constructor({publicKey:e,signature:n}){this.publicKey=typeof e==\"string\"?Yn(e):e,this.signature=typeof n==\"string\"?Yn(n):n}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"public-key\",this.publicKey],[\"signature\",this.signature]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionSignatureMultisigSubsignature: ${e}`);return new t({publicKey:e.get(\"public-key\"),signature:e.get(\"signature\")})}},G5=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"message\",valueSchema:new be(E5.encodingSchema),omitEmpty:!0},{key:\"state-proof\",valueSchema:new be(T5.encodingSchema),omitEmpty:!0},{key:\"state-proof-type\",valueSchema:new be(new Le),omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,stateProof:n,stateProofType:r}){this.message=e,this.stateProof=n,this.stateProofType=typeof r>\"u\"?void 0:Bn(r)}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"message\",typeof this.message<\"u\"?this.message.toEncodingData():void 0],[\"state-proof\",typeof this.stateProof<\"u\"?this.stateProof.toEncodingData():void 0],[\"state-proof-type\",this.stateProofType]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionStateProof: ${e}`);return new t({message:typeof e.get(\"message\")<\"u\"?E5.fromEncodingData(e.get(\"message\")):void 0,stateProof:typeof e.get(\"state-proof\")<\"u\"?T5.fromEncodingData(e.get(\"state-proof\")):void 0,stateProofType:e.get(\"state-proof-type\")})}},lp=class t{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new wt([]),this.encodingSchemaValue.pushEntries({key:\"current-round\",valueSchema:new Le,omitEmpty:!0},{key:\"transactions\",valueSchema:new vn(cp.encodingSchema),omitEmpty:!0},{key:\"next-token\",valueSchema:new be(new on),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,transactions:n,nextToken:r}){this.currentRound=Qt(e),this.transactions=n,this.nextToken=r}getEncodingSchema(){return t.encodingSchema}toEncodingData(){return new Map([[\"current-round\",this.currentRound],[\"transactions\",this.transactions.map(e=>e.toEncodingData())],[\"next-token\",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw new Error(`Invalid decoded TransactionsResponse: ${e}`);return new t({currentRound:e.get(\"current-round\"),transactions:(e.get(\"transactions\")??[]).map(n=>cp.fromEncodingData(n)),nextToken:e.get(\"next-token\")})}}});var q5,sQ=Ve(()=>{u();kr();fr();Ni();q5=class extends Sn{path(){return\"/health\"}prepare(e){return Zn(e.getJSONText(),b5)}}});var W5,cQ=Ve(()=>{u();kr();fr();Ni();W5=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/assets/${this.index}/balances`}limit(e){return this.query.limit=e,this}currencyGreaterThan(e){return this.query[\"currency-greater-than\"]=e.toString(),this}currencyLessThan(e){return this.query[\"currency-less-than\"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}prepare(e){return Zn(e.getJSONText(),s5)}}});function fv(t){return typeof t==\"string\"?t:ci(t)}var Y5,s9=Ve(()=>{u();Es();fr();kr();Ni();Y5=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}/transactions`}notePrefix(e){return this.query[\"note-prefix\"]=fv(e),this}txType(e){return this.query[\"tx-type\"]=e,this}sigType(e){return this.query[\"sig-type\"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query[\"min-round\"]=e,this}maxRound(e){return this.query[\"max-round\"]=e,this}assetID(e){return this.query[\"asset-id\"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query[\"before-time\"]=e instanceof Date?e.toISOString():e,this}afterTime(e){return this.query[\"after-time\"]=e instanceof Date?e.toISOString():e,this}currencyGreaterThan(e){return this.query[\"currency-greater-than\"]=e.toString(),this}currencyLessThan(e){return this.query[\"currency-less-than\"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query[\"rekey-to\"]=e,this}prepare(e){return Zn(e.getJSONText(),lp)}}});var Z5,lQ=Ve(()=>{u();kr();fr();s9();Ni();Z5=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/assets/${this.index}/transactions`}notePrefix(e){return this.query[\"note-prefix\"]=fv(e),this}txType(e){return this.query[\"tx-type\"]=e,this}sigType(e){return this.query[\"sig-type\"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query[\"min-round\"]=e,this}maxRound(e){return this.query[\"max-round\"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query[\"before-time\"]=e instanceof Date?e.toISOString():e,this}afterTime(e){return this.query[\"after-time\"]=e instanceof Date?e.toISOString():e,this}currencyGreaterThan(e){return this.query[\"currency-greater-than\"]=e.toString(),this}currencyLessThan(e){return this.query[\"currency-less-than\"]=e,this}addressRole(e){return this.query[\"address-role\"]=e,this}address(e){return this.query.address=e.toString(),this}excludeCloseTo(e){return this.query[\"exclude-close-to\"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query[\"rekey-to\"]=e,this}prepare(e){return Zn(e.getJSONText(),lp)}}});var X5,uQ=Ve(()=>{u();kr();fr();Ni();X5=class extends Sn{constructor(e,n){super(e),this.round=BigInt(n)}path(){return`/v2/blocks/${this.round}`}headerOnly(e){return this.query[\"header-only\"]=e,this}prepare(e){return Zn(e.getJSONText(),gg)}}});var J5,dQ=Ve(()=>{u();kr();fr();Ni();J5=class extends Sn{constructor(e,n){super(e),this.txID=n}path(){return`/v2/transactions/${this.txID}`}prepare(e){return Zn(e.getJSONText(),H5)}}});var Q5,fQ=Ve(()=>{u();kr();fr();Ni();Q5=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}`}round(e){return this.query.round=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}exclude(e){return this.query.exclude=e,this}prepare(e){return Zn(e.getJSONText(),Q6)}}});var e4,pQ=Ve(()=>{u();kr();fr();Ni();e4=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}/assets`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}assetId(e){return this.query[\"asset-id\"]=e,this}prepare(e){return Zn(e.getJSONText(),c5)}}});var t4,hQ=Ve(()=>{u();kr();fr();Ni();t4=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}/created-assets`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}assetID(e){return this.query[\"asset-id\"]=e,this}prepare(e){return Zn(e.getJSONText(),mg)}}});var n4,mQ=Ve(()=>{u();kr();fr();Ni();n4=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}/apps-local-state`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}applicationID(e){return this.query[\"application-id\"]=e,this}prepare(e){return Zn(e.getJSONText(),n5)}}});var r4,gQ=Ve(()=>{u();kr();fr();Ni();r4=class extends Sn{constructor(e,n){super(e),this.account=n.toString()}path(){return`/v2/accounts/${this.account}/created-applications`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}applicationID(e){return this.query[\"application-id\"]=e,this}prepare(e){return Zn(e.getJSONText(),fg)}}});var o4,yQ=Ve(()=>{u();kr();fr();Ni();o4=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/assets/${this.index}`}includeAll(e=!0){return this.query[\"include-all\"]=e,this}prepare(e){return Zn(e.getJSONText(),l5)}}});var i4,vQ=Ve(()=>{u();kr();fr();Ni();i4=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/applications/${this.index}`}includeAll(e=!0){return this.query[\"include-all\"]=e,this}prepare(e){return Zn(e.getJSONText(),a5)}}});var a4,xQ=Ve(()=>{u();kr();fr();Ni();a4=class extends Sn{constructor(e,n){super(e),this.appID=BigInt(n)}path(){return`/v2/applications/${this.appID}/logs`}limit(e){return this.query.limit=e,this}minRound(e){return this.query[\"min-round\"]=e,this}maxRound(e){return this.query[\"max-round\"]=e,this}nextToken(e){return this.query.next=e,this}sender(e){return this.query[\"sender-address\"]=e,this}txid(e){return this.query.txid=e,this}prepare(e){return Zn(e.getJSONText(),o5)}}});var s4,bQ=Ve(()=>{u();Es();fr();kr();Ni();s4=class extends Sn{constructor(e,n,r){super(e),this.index=BigInt(n);let o=ci(r);this.query.name=encodeURI(`b64:${o}`)}path(){return`/v2/applications/${this.index}/box`}prepare(e){return Zn(e.getJSONText(),h5)}}});var c4,wQ=Ve(()=>{u();kr();fr();Ni();c4=class extends Sn{path(){return\"/v2/accounts\"}currencyGreaterThan(e){return this.query[\"currency-greater-than\"]=e.toString(),this}currencyLessThan(e){return this.query[\"currency-less-than\"]=e,this}limit(e){return this.query.limit=e,this}assetID(e){return this.query[\"asset-id\"]=e,this}nextToken(e){return this.query.next=e,this}round(e){return this.query.round=e,this}authAddr(e){return this.query[\"auth-addr\"]=e.toString(),this}applicationID(e){return this.query[\"application-id\"]=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}exclude(e){return this.query.exclude=e,this}onlineOnly(e){return this.query[\"online-only\"]=e,this}prepare(e){return Zn(e.getJSONText(),t5)}}});var l4,EQ=Ve(()=>{u();kr();fr();Ni();l4=class extends Sn{path(){return\"/v2/block-headers\"}absent(e){return this.query.absent=e,this}afterTime(e){return this.query[\"after-time\"]=e instanceof Date?e.toISOString():e,this}beforeTime(e){return this.query[\"before-time\"]=e instanceof Date?e.toISOString():e,this}expired(e){return this.query.expired=e,this}limit(e){return this.query.limit=e,this}maxRound(e){return this.query[\"max-round\"]=e,this}minRound(e){return this.query[\"min-round\"]=e,this}nextToken(e){return this.query.next=e,this}proposers(e){return this.query.proposers=e,this}prepare(e){return Zn(e.getJSONText(),u5)}}});var u4,SQ=Ve(()=>{u();kr();fr();s9();Ni();u4=class extends Sn{path(){return\"/v2/transactions\"}notePrefix(e){return this.query[\"note-prefix\"]=fv(e),this}txType(e){return this.query[\"tx-type\"]=e,this}sigType(e){return this.query[\"sig-type\"]=e,this}txid(e){return this.query.txid=e,this}groupid(e){return this.query[\"group-id\"]=fv(e),this}round(e){return this.query.round=e,this}minRound(e){return this.query[\"min-round\"]=e,this}maxRound(e){return this.query[\"max-round\"]=e,this}assetID(e){return this.query[\"asset-id\"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query[\"before-time\"]=e instanceof Date?e.toISOString():e,this}afterTime(e){return this.query[\"after-time\"]=e instanceof Date?e.toISOString():e,this}addressRole(e){return this.query[\"address-role\"]=e,this}address(e){return this.query.address=e.toString(),this}excludeCloseTo(e){return this.query[\"exclude-close-to\"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query[\"rekey-to\"]=e,this}applicationID(e){return this.query[\"application-id\"]=e,this}currencyGreaterThan(e){return this.query[\"currency-greater-than\"]=e.toString(),this}currencyLessThan(e){return this.query[\"currency-less-than\"]=e,this}prepare(e){return Zn(e.getJSONText(),lp)}}});var d4,AQ=Ve(()=>{u();kr();fr();Ni();d4=class extends Sn{path(){return\"/v2/assets\"}limit(e){return this.query.limit=e,this}creator(e){return this.query.creator=e.toString(),this}name(e){return this.query.name=e,this}unit(e){return this.query.unit=e,this}index(e){return this.query[\"asset-id\"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}prepare(e){return Zn(e.getJSONText(),mg)}}});var f4,kQ=Ve(()=>{u();kr();fr();Ni();f4=class extends Sn{path(){return\"/v2/applications\"}index(e){return this.query[\"application-id\"]=e,this}creator(e){return this.query.creator=e.toString(),this}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}includeAll(e=!0){return this.query[\"include-all\"]=e,this}prepare(e){return Zn(e.getJSONText(),fg)}}});var p4,CQ=Ve(()=>{u();kr();fr();Ni();p4=class extends Sn{constructor(e,n){super(e),this.index=BigInt(n)}path(){return`/v2/applications/${this.index}/boxes`}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}prepare(e){return Zn(e.getJSONText(),g5)}}});var h4,TQ=Ve(()=>{u();HA();sQ();cQ();lQ();s9();uQ();dQ();fQ();pQ();hQ();mQ();gQ();yQ();vQ();xQ();bQ();wQ();EQ();SQ();AQ();kQ();CQ();h4=class extends jf{constructor(e,n=\"http://127.0.0.1\",r=8080,o={}){super(\"X-Indexer-API-Token\",e,n,r,o)}makeHealthCheck(){return new q5(this.c)}lookupAssetBalances(e){return new W5(this.c,e)}lookupAssetTransactions(e){return new Z5(this.c,e)}lookupAccountTransactions(e){return new Y5(this.c,e)}lookupBlock(e){return new X5(this.c,e)}lookupTransactionByID(e){return new J5(this.c,e)}lookupAccountByID(e){return new Q5(this.c,e)}lookupAccountAssets(e){return new e4(this.c,e)}lookupAccountCreatedAssets(e){return new t4(this.c,e)}lookupAccountAppLocalStates(e){return new n4(this.c,e)}lookupAccountCreatedApplications(e){return new r4(this.c,e)}lookupAssetByID(e){return new o4(this.c,e)}lookupApplications(e){return new i4(this.c,e)}lookupApplicationLogs(e){return new a4(this.c,e)}searchAccounts(){return new c4(this.c)}searchForBlockHeaders(){return new l4(this.c)}searchForTransactions(){return new u4(this.c)}searchForAssets(){return new d4(this.c)}searchForApplications(){return new f4(this.c)}searchForApplicationBoxes(e){return new p4(this.c,e)}lookupApplicationBoxByIDandName(e,n){return new s4(this.c,e,n)}}});async function m4(t,e,n){let r=await t.status().do();if(typeof r>\"u\")throw new Error(\"Unable to get node status\");let o=r.lastRound+BigInt(1),a=o+BigInt(n),c=o;for(;c<a;){let l=!1;try{let f=await t.pendingTransactionInformation(e).do();if(f.confirmedRound)return f;if(f.poolError)throw l=!0,new Error(`Transaction Rejected: ${f.poolError}`)}catch(f){if(l)throw f}await t.statusAfterBlock(c).do(),c+=BigInt(1)}throw new Error(`Transaction not confirmed after ${n} rounds`)}var SF=Ve(()=>{u()});function kd(t,e){let n=t.toString(16);n.length!==e*2&&(n=n.padStart(e*2,\"0\"));let r=new Uint8Array(n.length/2);for(let o=0,a=0;o<n.length/2;o++,a+=2)r[o]=parseInt(n.slice(a,a+2),16);return r}function pv(t){let e=BigInt(0),n=new DataView(t.buffer,t.byteOffset);for(let r=0;r<t.length;r++)e=BigInt(Number(n.getUint8(r)))+e*BigInt(256);return e}var AF=Ve(()=>{u()});function c9(){let t=bX();return{addr:new dr(t.publicKey),sk:t.secretKey}}var _Q=Ve(()=>{u();_l();Ss()});var VCe,l9,MQ=Ve(()=>{u();VCe=[\"abandon\",\"ability\",\"able\",\"about\",\"above\",\"absent\",\"absorb\",\"abstract\",\"absurd\",\"abuse\",\"access\",\"accident\",\"account\",\"accuse\",\"achieve\",\"acid\",\"acoustic\",\"acquire\",\"across\",\"act\",\"action\",\"actor\",\"actress\",\"actual\",\"adapt\",\"add\",\"addict\",\"address\",\"adjust\",\"admit\",\"adult\",\"advance\",\"advice\",\"aerobic\",\"affair\",\"afford\",\"afraid\",\"again\",\"age\",\"agent\",\"agree\",\"ahead\",\"aim\",\"air\",\"airport\",\"aisle\",\"alarm\",\"album\",\"alcohol\",\"alert\",\"alien\",\"all\",\"alley\",\"allow\",\"almost\",\"alone\",\"alpha\",\"already\",\"also\",\"alter\",\"always\",\"amateur\",\"amazing\",\"among\",\"amount\",\"amused\",\"analyst\",\"anchor\",\"ancient\",\"anger\",\"angle\",\"angry\",\"animal\",\"ankle\",\"announce\",\"annual\",\"another\",\"answer\",\"antenna\",\"antique\",\"anxiety\",\"any\",\"apart\",\"apology\",\"appear\",\"apple\",\"approve\",\"april\",\"arch\",\"arctic\",\"area\",\"arena\",\"argue\",\"arm\",\"armed\",\"armor\",\"army\",\"around\",\"arrange\",\"arrest\",\"arrive\",\"arrow\",\"art\",\"artefact\",\"artist\",\"artwork\",\"ask\",\"aspect\",\"assault\",\"asset\",\"assist\",\"assume\",\"asthma\",\"athlete\",\"atom\",\"attack\",\"attend\",\"attitude\",\"attract\",\"auction\",\"audit\",\"august\",\"aunt\",\"author\",\"auto\",\"autumn\",\"average\",\"avocado\",\"avoid\",\"awake\",\"aware\",\"away\",\"awesome\",\"awful\",\"awkward\",\"axis\",\"baby\",\"bachelor\",\"bacon\",\"badge\",\"bag\",\"balance\",\"balcony\",\"ball\",\"bamboo\",\"banana\",\"banner\",\"bar\",\"barely\",\"bargain\",\"barrel\",\"base\",\"basic\",\"basket\",\"battle\",\"beach\",\"bean\",\"beauty\",\"because\",\"become\",\"beef\",\"before\",\"begin\",\"behave\",\"behind\",\"believe\",\"below\",\"belt\",\"bench\",\"benefit\",\"best\",\"betray\",\"better\",\"between\",\"beyond\",\"bicycle\",\"bid\",\"bike\",\"bind\",\"biology\",\"bird\",\"birth\",\"bitter\",\"black\",\"blade\",\"blame\",\"blanket\",\"blast\",\"bleak\",\"bless\",\"blind\",\"blood\",\"blossom\",\"blouse\",\"blue\",\"blur\",\"blush\",\"board\",\"boat\",\"body\",\"boil\",\"bomb\",\"bone\",\"bonus\",\"book\",\"boost\",\"border\",\"boring\",\"borrow\",\"boss\",\"bottom\",\"bounce\",\"box\",\"boy\",\"bracket\",\"brain\",\"brand\",\"brass\",\"brave\",\"bread\",\"breeze\",\"brick\",\"bridge\",\"brief\",\"bright\",\"bring\",\"brisk\",\"broccoli\",\"broken\",\"bronze\",\"broom\",\"brother\",\"brown\",\"brush\",\"bubble\",\"buddy\",\"budget\",\"buffalo\",\"build\",\"bulb\",\"bulk\",\"bullet\",\"bundle\",\"bunker\",\"burden\",\"burger\",\"burst\",\"bus\",\"business\",\"busy\",\"butter\",\"buyer\",\"buzz\",\"cabbage\",\"cabin\",\"cable\",\"cactus\",\"cage\",\"cake\",\"call\",\"calm\",\"camera\",\"camp\",\"can\",\"canal\",\"cancel\",\"candy\",\"cannon\",\"canoe\",\"canvas\",\"canyon\",\"capable\",\"capital\",\"captain\",\"car\",\"carbon\",\"card\",\"cargo\",\"carpet\",\"carry\",\"cart\",\"case\",\"cash\",\"casino\",\"castle\",\"casual\",\"cat\",\"catalog\",\"catch\",\"category\",\"cattle\",\"caught\",\"cause\",\"caution\",\"cave\",\"ceiling\",\"celery\",\"cement\",\"census\",\"century\",\"cereal\",\"certain\",\"chair\",\"chalk\",\"champion\",\"change\",\"chaos\",\"chapter\",\"charge\",\"chase\",\"chat\",\"cheap\",\"check\",\"cheese\",\"chef\",\"cherry\",\"chest\",\"chicken\",\"chief\",\"child\",\"chimney\",\"choice\",\"choose\",\"chronic\",\"chuckle\",\"chunk\",\"churn\",\"cigar\",\"cinnamon\",\"circle\",\"citizen\",\"city\",\"civil\",\"claim\",\"clap\",\"clarify\",\"claw\",\"clay\",\"clean\",\"clerk\",\"clever\",\"click\",\"client\",\"cliff\",\"climb\",\"clinic\",\"clip\",\"clock\",\"clog\",\"close\",\"cloth\",\"cloud\",\"clown\",\"club\",\"clump\",\"cluster\",\"clutch\",\"coach\",\"coast\",\"coconut\",\"code\",\"coffee\",\"coil\",\"coin\",\"collect\",\"color\",\"column\",\"combine\",\"come\",\"comfort\",\"comic\",\"common\",\"company\",\"concert\",\"conduct\",\"confirm\",\"congress\",\"connect\",\"consider\",\"control\",\"convince\",\"cook\",\"cool\",\"copper\",\"copy\",\"coral\",\"core\",\"corn\",\"correct\",\"cost\",\"cotton\",\"couch\",\"country\",\"couple\",\"course\",\"cousin\",\"cover\",\"coyote\",\"crack\",\"cradle\",\"craft\",\"cram\",\"crane\",\"crash\",\"crater\",\"crawl\",\"crazy\",\"cream\",\"credit\",\"creek\",\"crew\",\"cricket\",\"crime\",\"crisp\",\"critic\",\"crop\",\"cross\",\"crouch\",\"crowd\",\"crucial\",\"cruel\",\"cruise\",\"crumble\",\"crunch\",\"crush\",\"cry\",\"crystal\",\"cube\",\"culture\",\"cup\",\"cupboard\",\"curious\",\"current\",\"curtain\",\"curve\",\"cushion\",\"custom\",\"cute\",\"cycle\",\"dad\",\"damage\",\"damp\",\"dance\",\"danger\",\"daring\",\"dash\",\"daughter\",\"dawn\",\"day\",\"deal\",\"debate\",\"debris\",\"decade\",\"december\",\"decide\",\"decline\",\"decorate\",\"decrease\",\"deer\",\"defense\",\"define\",\"defy\",\"degree\",\"delay\",\"deliver\",\"demand\",\"demise\",\"denial\",\"dentist\",\"deny\",\"depart\",\"depend\",\"deposit\",\"depth\",\"deputy\",\"derive\",\"describe\",\"desert\",\"design\",\"desk\",\"despair\",\"destroy\",\"detail\",\"detect\",\"develop\",\"device\",\"devote\",\"diagram\",\"dial\",\"diamond\",\"diary\",\"dice\",\"diesel\",\"diet\",\"differ\",\"digital\",\"dignity\",\"dilemma\",\"dinner\",\"dinosaur\",\"direct\",\"dirt\",\"disagree\",\"discover\",\"disease\",\"dish\",\"dismiss\",\"disorder\",\"display\",\"distance\",\"divert\",\"divide\",\"divorce\",\"dizzy\",\"doctor\",\"document\",\"dog\",\"doll\",\"dolphin\",\"domain\",\"donate\",\"donkey\",\"donor\",\"door\",\"dose\",\"double\",\"dove\",\"draft\",\"dragon\",\"drama\",\"drastic\",\"draw\",\"dream\",\"dress\",\"drift\",\"drill\",\"drink\",\"drip\",\"drive\",\"drop\",\"drum\",\"dry\",\"duck\",\"dumb\",\"dune\",\"during\",\"dust\",\"dutch\",\"duty\",\"dwarf\",\"dynamic\",\"eager\",\"eagle\",\"early\",\"earn\",\"earth\",\"easily\",\"east\",\"easy\",\"echo\",\"ecology\",\"economy\",\"edge\",\"edit\",\"educate\",\"effort\",\"egg\",\"eight\",\"either\",\"elbow\",\"elder\",\"electric\",\"elegant\",\"element\",\"elephant\",\"elevator\",\"elite\",\"else\",\"embark\",\"embody\",\"embrace\",\"emerge\",\"emotion\",\"employ\",\"empower\",\"empty\",\"enable\",\"enact\",\"end\",\"endless\",\"endorse\",\"enemy\",\"energy\",\"enforce\",\"engage\",\"engine\",\"enhance\",\"enjoy\",\"enlist\",\"enough\",\"enrich\",\"enroll\",\"ensure\",\"enter\",\"entire\",\"entry\",\"envelope\",\"episode\",\"equal\",\"equip\",\"era\",\"erase\",\"erode\",\"erosion\",\"error\",\"erupt\",\"escape\",\"essay\",\"essence\",\"estate\",\"eternal\",\"ethics\",\"evidence\",\"evil\",\"evoke\",\"evolve\",\"exact\",\"example\",\"excess\",\"exchange\",\"excite\",\"exclude\",\"excuse\",\"execute\",\"exercise\",\"exhaust\",\"exhibit\",\"exile\",\"exist\",\"exit\",\"exotic\",\"expand\",\"expect\",\"expire\",\"explain\",\"expose\",\"express\",\"extend\",\"extra\",\"eye\",\"eyebrow\",\"fabric\",\"face\",\"faculty\",\"fade\",\"faint\",\"faith\",\"fall\",\"false\",\"fame\",\"family\",\"famous\",\"fan\",\"fancy\",\"fantasy\",\"farm\",\"fashion\",\"fat\",\"fatal\",\"father\",\"fatigue\",\"fault\",\"favorite\",\"feature\",\"february\",\"federal\",\"fee\",\"feed\",\"feel\",\"female\",\"fence\",\"festival\",\"fetch\",\"fever\",\"few\",\"fiber\",\"fiction\",\"field\",\"figure\",\"file\",\"film\",\"filter\",\"final\",\"find\",\"fine\",\"finger\",\"finish\",\"fire\",\"firm\",\"first\",\"fiscal\",\"fish\",\"fit\",\"fitness\",\"fix\",\"flag\",\"flame\",\"flash\",\"flat\",\"flavor\",\"flee\",\"flight\",\"flip\",\"float\",\"flock\",\"floor\",\"flower\",\"fluid\",\"flush\",\"fly\",\"foam\",\"focus\",\"fog\",\"foil\",\"fold\",\"follow\",\"food\",\"foot\",\"force\",\"forest\",\"forget\",\"fork\",\"fortune\",\"forum\",\"forward\",\"fossil\",\"foster\",\"found\",\"fox\",\"fragile\",\"frame\",\"frequent\",\"fresh\",\"friend\",\"fringe\",\"frog\",\"front\",\"frost\",\"frown\",\"frozen\",\"fruit\",\"fuel\",\"fun\",\"funny\",\"furnace\",\"fury\",\"future\",\"gadget\",\"gain\",\"galaxy\",\"gallery\",\"game\",\"gap\",\"garage\",\"garbage\",\"garden\",\"garlic\",\"garment\",\"gas\",\"gasp\",\"gate\",\"gather\",\"gauge\",\"gaze\",\"general\",\"genius\",\"genre\",\"gentle\",\"genuine\",\"gesture\",\"ghost\",\"giant\",\"gift\",\"giggle\",\"ginger\",\"giraffe\",\"girl\",\"give\",\"glad\",\"glance\",\"glare\",\"glass\",\"glide\",\"glimpse\",\"globe\",\"gloom\",\"glory\",\"glove\",\"glow\",\"glue\",\"goat\",\"goddess\",\"gold\",\"good\",\"goose\",\"gorilla\",\"gospel\",\"gossip\",\"govern\",\"gown\",\"grab\",\"grace\",\"grain\",\"grant\",\"grape\",\"grass\",\"gravity\",\"great\",\"green\",\"grid\",\"grief\",\"grit\",\"grocery\",\"group\",\"grow\",\"grunt\",\"guard\",\"guess\",\"guide\",\"guilt\",\"guitar\",\"gun\",\"gym\",\"habit\",\"hair\",\"half\",\"hammer\",\"hamster\",\"hand\",\"happy\",\"harbor\",\"hard\",\"harsh\",\"harvest\",\"hat\",\"have\",\"hawk\",\"hazard\",\"head\",\"health\",\"heart\",\"heavy\",\"hedgehog\",\"height\",\"hello\",\"helmet\",\"help\",\"hen\",\"hero\",\"hidden\",\"high\",\"hill\",\"hint\",\"hip\",\"hire\",\"history\",\"hobby\",\"hockey\",\"hold\",\"hole\",\"holiday\",\"hollow\",\"home\",\"honey\",\"hood\",\"hope\",\"horn\",\"horror\",\"horse\",\"hospital\",\"host\",\"hotel\",\"hour\",\"hover\",\"hub\",\"huge\",\"human\",\"humble\",\"humor\",\"hundred\",\"hungry\",\"hunt\",\"hurdle\",\"hurry\",\"hurt\",\"husband\",\"hybrid\",\"ice\",\"icon\",\"idea\",\"identify\",\"idle\",\"ignore\",\"ill\",\"illegal\",\"illness\",\"image\",\"imitate\",\"immense\",\"immune\",\"impact\",\"impose\",\"improve\",\"impulse\",\"inch\",\"include\",\"income\",\"increase\",\"index\",\"indicate\",\"indoor\",\"industry\",\"infant\",\"inflict\",\"inform\",\"inhale\",\"inherit\",\"initial\",\"inject\",\"injury\",\"inmate\",\"inner\",\"innocent\",\"input\",\"inquiry\",\"insane\",\"insect\",\"inside\",\"inspire\",\"install\",\"intact\",\"interest\",\"into\",\"invest\",\"invite\",\"involve\",\"iron\",\"island\",\"isolate\",\"issue\",\"item\",\"ivory\",\"jacket\",\"jaguar\",\"jar\",\"jazz\",\"jealous\",\"jeans\",\"jelly\",\"jewel\",\"job\",\"join\",\"joke\",\"journey\",\"joy\",\"judge\",\"juice\",\"jump\",\"jungle\",\"junior\",\"junk\",\"just\",\"kangaroo\",\"keen\",\"keep\",\"ketchup\",\"key\",\"kick\",\"kid\",\"kidney\",\"kind\",\"kingdom\",\"kiss\",\"kit\",\"kitchen\",\"kite\",\"kitten\",\"kiwi\",\"knee\",\"knife\",\"knock\",\"know\",\"lab\",\"label\",\"labor\",\"ladder\",\"lady\",\"lake\",\"lamp\",\"language\",\"laptop\",\"large\",\"later\",\"latin\",\"laugh\",\"laundry\",\"lava\",\"law\",\"lawn\",\"lawsuit\",\"layer\",\"lazy\",\"leader\",\"leaf\",\"learn\",\"leave\",\"lecture\",\"left\",\"leg\",\"legal\",\"legend\",\"leisure\",\"lemon\",\"lend\",\"length\",\"lens\",\"leopard\",\"lesson\",\"letter\",\"level\",\"liar\",\"liberty\",\"library\",\"license\",\"life\",\"lift\",\"light\",\"like\",\"limb\",\"limit\",\"link\",\"lion\",\"liquid\",\"list\",\"little\",\"live\",\"lizard\",\"load\",\"loan\",\"lobster\",\"local\",\"lock\",\"logic\",\"lonely\",\"long\",\"loop\",\"lottery\",\"loud\",\"lounge\",\"love\",\"loyal\",\"lucky\",\"luggage\",\"lumber\",\"lunar\",\"lunch\",\"luxury\",\"lyrics\",\"machine\",\"mad\",\"magic\",\"magnet\",\"maid\",\"mail\",\"main\",\"major\",\"make\",\"mammal\",\"man\",\"manage\",\"mandate\",\"mango\",\"mansion\",\"manual\",\"maple\",\"marble\",\"march\",\"margin\",\"marine\",\"market\",\"marriage\",\"mask\",\"mass\",\"master\",\"match\",\"material\",\"math\",\"matrix\",\"matter\",\"maximum\",\"maze\",\"meadow\",\"mean\",\"measure\",\"meat\",\"mechanic\",\"medal\",\"media\",\"melody\",\"melt\",\"member\",\"memory\",\"mention\",\"menu\",\"mercy\",\"merge\",\"merit\",\"merry\",\"mesh\",\"message\",\"metal\",\"method\",\"middle\",\"midnight\",\"milk\",\"million\",\"mimic\",\"mind\",\"minimum\",\"minor\",\"minute\",\"miracle\",\"mirror\",\"misery\",\"miss\",\"mistake\",\"mix\",\"mixed\",\"mixture\",\"mobile\",\"model\",\"modify\",\"mom\",\"moment\",\"monitor\",\"monkey\",\"monster\",\"month\",\"moon\",\"moral\",\"more\",\"morning\",\"mosquito\",\"mother\",\"motion\",\"motor\",\"mountain\",\"mouse\",\"move\",\"movie\",\"much\",\"muffin\",\"mule\",\"multiply\",\"muscle\",\"museum\",\"mushroom\",\"music\",\"must\",\"mutual\",\"myself\",\"mystery\",\"myth\",\"naive\",\"name\",\"napkin\",\"narrow\",\"nasty\",\"nation\",\"nature\",\"near\",\"neck\",\"need\",\"negative\",\"neglect\",\"neither\",\"nephew\",\"nerve\",\"nest\",\"net\",\"network\",\"neutral\",\"never\",\"news\",\"next\",\"nice\",\"night\",\"noble\",\"noise\",\"nominee\",\"noodle\",\"normal\",\"north\",\"nose\",\"notable\",\"note\",\"nothing\",\"notice\",\"novel\",\"now\",\"nuclear\",\"number\",\"nurse\",\"nut\",\"oak\",\"obey\",\"object\",\"oblige\",\"obscure\",\"observe\",\"obtain\",\"obvious\",\"occur\",\"ocean\",\"october\",\"odor\",\"off\",\"offer\",\"office\",\"often\",\"oil\",\"okay\",\"old\",\"olive\",\"olympic\",\"omit\",\"once\",\"one\",\"onion\",\"online\",\"only\",\"open\",\"opera\",\"opinion\",\"oppose\",\"option\",\"orange\",\"orbit\",\"orchard\",\"order\",\"ordinary\",\"organ\",\"orient\",\"original\",\"orphan\",\"ostrich\",\"other\",\"outdoor\",\"outer\",\"output\",\"outside\",\"oval\",\"oven\",\"over\",\"own\",\"owner\",\"oxygen\",\"oyster\",\"ozone\",\"pact\",\"paddle\",\"page\",\"pair\",\"palace\",\"palm\",\"panda\",\"panel\",\"panic\",\"panther\",\"paper\",\"parade\",\"parent\",\"park\",\"parrot\",\"party\",\"pass\",\"patch\",\"path\",\"patient\",\"patrol\",\"pattern\",\"pause\",\"pave\",\"payment\",\"peace\",\"peanut\",\"pear\",\"peasant\",\"pelican\",\"pen\",\"penalty\",\"pencil\",\"people\",\"pepper\",\"perfect\",\"permit\",\"person\",\"pet\",\"phone\",\"photo\",\"phrase\",\"physical\",\"piano\",\"picnic\",\"picture\",\"piece\",\"pig\",\"pigeon\",\"pill\",\"pilot\",\"pink\",\"pioneer\",\"pipe\",\"pistol\",\"pitch\",\"pizza\",\"place\",\"planet\",\"plastic\",\"plate\",\"play\",\"please\",\"pledge\",\"pluck\",\"plug\",\"plunge\",\"poem\",\"poet\",\"point\",\"polar\",\"pole\",\"police\",\"pond\",\"pony\",\"pool\",\"popular\",\"portion\",\"position\",\"possible\",\"post\",\"potato\",\"pottery\",\"poverty\",\"powder\",\"power\",\"practice\",\"praise\",\"predict\",\"prefer\",\"prepare\",\"present\",\"pretty\",\"prevent\",\"price\",\"pride\",\"primary\",\"print\",\"priority\",\"prison\",\"private\",\"prize\",\"problem\",\"process\",\"produce\",\"profit\",\"program\",\"project\",\"promote\",\"proof\",\"property\",\"prosper\",\"protect\",\"proud\",\"provide\",\"public\",\"pudding\",\"pull\",\"pulp\",\"pulse\",\"pumpkin\",\"punch\",\"pupil\",\"puppy\",\"purchase\",\"purity\",\"purpose\",\"purse\",\"push\",\"put\",\"puzzle\",\"pyramid\",\"quality\",\"quantum\",\"quarter\",\"question\",\"quick\",\"quit\",\"quiz\",\"quote\",\"rabbit\",\"raccoon\",\"race\",\"rack\",\"radar\",\"radio\",\"rail\",\"rain\",\"raise\",\"rally\",\"ramp\",\"ranch\",\"random\",\"range\",\"rapid\",\"rare\",\"rate\",\"rather\",\"raven\",\"raw\",\"razor\",\"ready\",\"real\",\"reason\",\"rebel\",\"rebuild\",\"recall\",\"receive\",\"recipe\",\"record\",\"recycle\",\"reduce\",\"reflect\",\"reform\",\"refuse\",\"region\",\"regret\",\"regular\",\"reject\",\"relax\",\"release\",\"relief\",\"rely\",\"remain\",\"remember\",\"remind\",\"remove\",\"render\",\"renew\",\"rent\",\"reopen\",\"repair\",\"repeat\",\"replace\",\"report\",\"require\",\"rescue\",\"resemble\",\"resist\",\"resource\",\"response\",\"result\",\"retire\",\"retreat\",\"return\",\"reunion\",\"reveal\",\"review\",\"reward\",\"rhythm\",\"rib\",\"ribbon\",\"rice\",\"rich\",\"ride\",\"ridge\",\"rifle\",\"right\",\"rigid\",\"ring\",\"riot\",\"ripple\",\"risk\",\"ritual\",\"rival\",\"river\",\"road\",\"roast\",\"robot\",\"robust\",\"rocket\",\"romance\",\"roof\",\"rookie\",\"room\",\"rose\",\"rotate\",\"rough\",\"round\",\"route\",\"royal\",\"rubber\",\"rude\",\"rug\",\"rule\",\"run\",\"runway\",\"rural\",\"sad\",\"saddle\",\"sadness\",\"safe\",\"sail\",\"salad\",\"salmon\",\"salon\",\"salt\",\"salute\",\"same\",\"sample\",\"sand\",\"satisfy\",\"satoshi\",\"sauce\",\"sausage\",\"save\",\"say\",\"scale\",\"scan\",\"scare\",\"scatter\",\"scene\",\"scheme\",\"school\",\"science\",\"scissors\",\"scorpion\",\"scout\",\"scrap\",\"screen\",\"script\",\"scrub\",\"sea\",\"search\",\"season\",\"seat\",\"second\",\"secret\",\"section\",\"security\",\"seed\",\"seek\",\"segment\",\"select\",\"sell\",\"seminar\",\"senior\",\"sense\",\"sentence\",\"series\",\"service\",\"session\",\"settle\",\"setup\",\"seven\",\"shadow\",\"shaft\",\"shallow\",\"share\",\"shed\",\"shell\",\"sheriff\",\"shield\",\"shift\",\"shine\",\"ship\",\"shiver\",\"shock\",\"shoe\",\"shoot\",\"shop\",\"short\",\"shoulder\",\"shove\",\"shrimp\",\"shrug\",\"shuffle\",\"shy\",\"sibling\",\"sick\",\"side\",\"siege\",\"sight\",\"sign\",\"silent\",\"silk\",\"silly\",\"silver\",\"similar\",\"simple\",\"since\",\"sing\",\"siren\",\"sister\",\"situate\",\"six\",\"size\",\"skate\",\"sketch\",\"ski\",\"skill\",\"skin\",\"skirt\",\"skull\",\"slab\",\"slam\",\"sleep\",\"slender\",\"slice\",\"slide\",\"slight\",\"slim\",\"slogan\",\"slot\",\"slow\",\"slush\",\"small\",\"smart\",\"smile\",\"smoke\",\"smooth\",\"snack\",\"snake\",\"snap\",\"sniff\",\"snow\",\"soap\",\"soccer\",\"social\",\"sock\",\"soda\",\"soft\",\"solar\",\"soldier\",\"solid\",\"solution\",\"solve\",\"someone\",\"song\",\"soon\",\"sorry\",\"sort\",\"soul\",\"sound\",\"soup\",\"source\",\"south\",\"space\",\"spare\",\"spatial\",\"spawn\",\"speak\",\"special\",\"speed\",\"spell\",\"spend\",\"sphere\",\"spice\",\"spider\",\"spike\",\"spin\",\"spirit\",\"split\",\"spoil\",\"sponsor\",\"spoon\",\"sport\",\"spot\",\"spray\",\"spread\",\"spring\",\"spy\",\"square\",\"squeeze\",\"squirrel\",\"stable\",\"stadium\",\"staff\",\"stage\",\"stairs\",\"stamp\",\"stand\",\"start\",\"state\",\"stay\",\"steak\",\"steel\",\"stem\",\"step\",\"stereo\",\"stick\",\"still\",\"sting\",\"stock\",\"stomach\",\"stone\",\"stool\",\"story\",\"stove\",\"strategy\",\"street\",\"strike\",\"strong\",\"struggle\",\"student\",\"stuff\",\"stumble\",\"style\",\"subject\",\"submit\",\"subway\",\"success\",\"such\",\"sudden\",\"suffer\",\"sugar\",\"suggest\",\"suit\",\"summer\",\"sun\",\"sunny\",\"sunset\",\"super\",\"supply\",\"supreme\",\"sure\",\"surface\",\"surge\",\"surprise\",\"surround\",\"survey\",\"suspect\",\"sustain\",\"swallow\",\"swamp\",\"swap\",\"swarm\",\"swear\",\"sweet\",\"swift\",\"swim\",\"swing\",\"switch\",\"sword\",\"symbol\",\"symptom\",\"syrup\",\"system\",\"table\",\"tackle\",\"tag\",\"tail\",\"talent\",\"talk\",\"tank\",\"tape\",\"target\",\"task\",\"taste\",\"tattoo\",\"taxi\",\"teach\",\"team\",\"tell\",\"ten\",\"tenant\",\"tennis\",\"tent\",\"term\",\"test\",\"text\",\"thank\",\"that\",\"theme\",\"then\",\"theory\",\"there\",\"they\",\"thing\",\"this\",\"thought\",\"three\",\"thrive\",\"throw\",\"thumb\",\"thunder\",\"ticket\",\"tide\",\"tiger\",\"tilt\",\"timber\",\"time\",\"tiny\",\"tip\",\"tired\",\"tissue\",\"title\",\"toast\",\"tobacco\",\"today\",\"toddler\",\"toe\",\"together\",\"toilet\",\"token\",\"tomato\",\"tomorrow\",\"tone\",\"tongue\",\"tonight\",\"tool\",\"tooth\",\"top\",\"topic\",\"topple\",\"torch\",\"tornado\",\"tortoise\",\"toss\",\"total\",\"tourist\",\"toward\",\"tower\",\"town\",\"toy\",\"track\",\"trade\",\"traffic\",\"tragic\",\"train\",\"transfer\",\"trap\",\"trash\",\"travel\",\"tray\",\"treat\",\"tree\",\"trend\",\"trial\",\"tribe\",\"trick\",\"trigger\",\"trim\",\"trip\",\"trophy\",\"trouble\",\"truck\",\"true\",\"truly\",\"trumpet\",\"trust\",\"truth\",\"try\",\"tube\",\"tuition\",\"tumble\",\"tuna\",\"tunnel\",\"turkey\",\"turn\",\"turtle\",\"twelve\",\"twenty\",\"twice\",\"twin\",\"twist\",\"two\",\"type\",\"typical\",\"ugly\",\"umbrella\",\"unable\",\"unaware\",\"uncle\",\"uncover\",\"under\",\"undo\",\"unfair\",\"unfold\",\"unhappy\",\"uniform\",\"unique\",\"unit\",\"universe\",\"unknown\",\"unlock\",\"until\",\"unusual\",\"unveil\",\"update\",\"upgrade\",\"uphold\",\"upon\",\"upper\",\"upset\",\"urban\",\"urge\",\"usage\",\"use\",\"used\",\"useful\",\"useless\",\"usual\",\"utility\",\"vacant\",\"vacuum\",\"vague\",\"valid\",\"valley\",\"valve\",\"van\",\"vanish\",\"vapor\",\"various\",\"vast\",\"vault\",\"vehicle\",\"velvet\",\"vendor\",\"venture\",\"venue\",\"verb\",\"verify\",\"version\",\"very\",\"vessel\",\"veteran\",\"viable\",\"vibrant\",\"vicious\",\"victory\",\"video\",\"view\",\"village\",\"vintage\",\"violin\",\"virtual\",\"virus\",\"visa\",\"visit\",\"visual\",\"vital\",\"vivid\",\"vocal\",\"voice\",\"void\",\"volcano\",\"volume\",\"vote\",\"voyage\",\"wage\",\"wagon\",\"wait\",\"walk\",\"wall\",\"walnut\",\"want\",\"warfare\",\"warm\",\"warrior\",\"wash\",\"wasp\",\"waste\",\"water\",\"wave\",\"way\",\"wealth\",\"weapon\",\"wear\",\"weasel\",\"weather\",\"web\",\"wedding\",\"weekend\",\"weird\",\"welcome\",\"west\",\"wet\",\"whale\",\"what\",\"wheat\",\"wheel\",\"when\",\"where\",\"whip\",\"whisper\",\"wide\",\"width\",\"wife\",\"wild\",\"will\",\"win\",\"window\",\"wine\",\"wing\",\"wink\",\"winner\",\"winter\",\"wire\",\"wisdom\",\"wise\",\"wish\",\"witness\",\"wolf\",\"woman\",\"wonder\",\"wood\",\"wool\",\"word\",\"work\",\"world\",\"worry\",\"worth\",\"wrap\",\"wreck\",\"wrestle\",\"wrist\",\"write\",\"wrong\",\"yard\",\"year\",\"yellow\",\"you\",\"young\",\"youth\",\"zebra\",\"zero\",\"zone\",\"zoo\"],l9=VCe});function IQ(t){let e=[],n=0,r=0;function o(c){n|=c<<r,r+=8,r>=11&&(e.push(n&2047),n>>=11,r-=11)}function a(){r&&e.push(n)}return t.forEach(o),a(),e}function RQ(t){return t.map(e=>l9[e])}function PQ(t){let e=ws(t),n=IQ(e);return RQ(n)[0]}function g4(t){if(t.length!==UA)throw new RangeError(`Seed length must be ${UA}`);let e=IQ(t),n=RQ(e),r=PQ(t);return`${n.join(\" \")} ${r}`}function jCe(t){let e=[],n=0,r=0;function o(c){for(n|=c<<r,r+=11;r>=8;)e.push(n&255),n>>=8,r-=8}function a(){r&&e.push(n)}return t.forEach(o),a(),new Uint8Array(e)}function y4(t){let e=t.split(\" \"),n=e.slice(0,24);for(let l of n)if(l9.indexOf(l)===-1)throw new Error(HCe);let r=e[e.length-1],o=n.map(l=>l9.indexOf(l)),a=jCe(o);if(a.length!==33)throw new Error(kF);if(a[a.length-1]!==0)throw new Error(kF);if(a=a.slice(0,a.length-1),PQ(a)===r)return a;throw new Error(kF)}function CF(t){let e=y4(t),n=MD(e);return{addr:new dr(n.publicKey),sk:n.secretKey}}function TF(t){let e=t.slice(0,UA);return g4(e)}function _F(t){return y4(t)}function MF(t){return g4(t)}var kF,HCe,BQ=Ve(()=>{u();MQ();_l();Ss();kF=\"failed to decode mnemonic\",HCe=\"the mnemonic contains a word that is not in the wordlist\"});function KCe(t){if(t.length>DQ)throw new Error(`${t.length} transactions grouped together but max group size is ${DQ}`);if(t.length===0)throw new Error(\"Cannot compute group ID of zero transactions\");let e=$f({txlist:t});return ti($Ce,e)}function u9(t){let e=[];for(let o of t)e.push(o.rawTxID());let n=KCe(e),r=ws(n);return Uint8Array.from(r)}function v4(t){let e=u9(t);for(let n of t)n.group=e;return t}var DQ,$Ce,IF=Ve(()=>{u();_l();fr();Ai();DQ=16,$Ce=new TextEncoder().encode(\"TG\")});function GCe(t,e,n){if(!e.verify(n.publicKey))throw new Error(\"Logic signature verification failed. Ensure the program and signature are valid.\");let r;LA(n.publicKey,t.sender.publicKey)||(r=n);let o=new So({lsig:e,txn:t,sgnr:r});return{txID:t.txID(),blob:ea(o)}}function hv(t,e){let n,r;if(e instanceof nm)n=e.lsig,r=e.address();else if(n=e,n.sig)r=new dr(t.sender.publicKey);else if(n.lmsig){let o={version:n.lmsig.v,threshold:n.lmsig.thr,pks:n.lmsig.subsig.map(a=>a.pk)};r=Rl(o)}else r=n.address();return GCe(t,n,r)}function RF(t,e){return hv(t,e)}var PF=Ve(()=>{u();_l();Ss();fr();qf();r9();y3()});function d9(t,{version:e,threshold:n,addrs:r}){let o=tm(r),a=o.map(m=>({pk:m})),c={v:e,thr:n,subsig:a},l=Rl({version:e,threshold:n,pks:o}),f;t.sender.equals(l)||(f=l);let p=new So({txn:t,msig:c,sgnr:f});return ea(p)}function OQ(t,{rawSig:e,myPk:n},{version:r,threshold:o,pks:a}){let c=d9(t,{version:r,threshold:o,addrs:a.map(p=>new dr(p))}),l=fo(c,So),f=!1;if(l.msig.subsig.forEach((p,m)=>{LA(p.pk,n)&&(f=!0,l.msig.subsig[m].s=e)}),!f)throw new Error(JCe);return ea(l)}function LQ(t,{version:e,threshold:n,pks:r},o){let a=u1(o).publicKey;return OQ(t,{rawSig:t.rawSignTxn(o),myPk:a},{version:e,threshold:n,pks:r})}function QCe(t,e,n,r){if(!OA(r.length))throw new Error(XCe);let o=typeof n==\"string\"?dr.fromString(n):n;return OQ(t,{rawSig:r,myPk:o.publicKey},e)}function bg(t){if(t.length<2)throw new Error(qCe);let e=fo(t[0],So);if(!e.msig)throw new Error(\"Invalid multisig transaction, multisig structure missing at index 0\");let n=e.txn.txID(),r=e.sgnr?e.sgnr.toString():void 0,o={version:e.msig.v,threshold:e.msig.thr,pks:e.msig.subsig.map(m=>m.pk)},a=Rl(o),c=e.msig.subsig.map(m=>({...m}));for(let m=1;m<t.length;m++){let g=fo(t[m],So);if(!g.msig)throw new Error(`Invalid multisig transaction, multisig structure missing at index ${m}`);if(g.txn.txID()!==n)throw new Error(WCe);let y=g.sgnr?g.sgnr.toString():void 0;if(r!==y)throw new Error(YCe);if(g.msig.subsig.length!==e.msig.subsig.length)throw new Error(FQ);let A={version:g.msig.v,threshold:g.msig.thr,pks:g.msig.subsig.map(R=>R.pk)},T=Rl(A);if(!a.equals(T))throw new Error(FQ);g.msig.subsig.forEach((R,K)=>{if(!R.s)return;let O=c[K];if(O.s&&!Fa(R.s,O.s))throw new Error(ZCe);O.s=R.s})}let l={v:e.msig.v,thr:e.msig.thr,subsig:c},f=typeof r<\"u\"?e.sgnr:void 0,p=new So({msig:l,txn:e.txn,sgnr:f});return ea(p)}function x4(t,{version:e,threshold:n,addrs:r},o){let a=tm(r),c=LQ(t,{version:e,threshold:n,pks:a},o);return{txID:t.txID(),blob:c}}function BF(t,{version:e,threshold:n,addrs:r},o){let a=tm(r),c=fo(t,So),l=LQ(c.txn,{version:e,threshold:n,pks:a},o);return{txID:c.txn.txID(),blob:bg([t,l])}}function DF(t,{version:e,threshold:n,addrs:r},o,a){let c=tm(r),l=fo(t,So),f=QCe(l.txn,{version:e,threshold:n,pks:c},o,a);return{txID:l.txn.txID(),blob:bg([t,f])}}var qCe,WCe,YCe,FQ,ZCe,XCe,JCe,FF=Ve(()=>{u();_l();Ss();fr();Ai();qf();y3();qCe=\"Not enough multisig transactions to merge. Need at least two\",WCe=\"Cannot merge txs. txIDs differ\",YCe=\"Cannot merge txs. Auth addrs differ\",FQ=\"Cannot merge txs. Multisig preimages differ\",ZCe=\"Cannot merge txs. subsigs are mismatched.\",XCe=\"Cannot add multisig signature. Signature is not of the correct length.\",JCe=\"Key does not exist\"});function f9(t){let e=[],n=0,r=0;for(let o=0;o<t.length;o+=1){let a=NQ[t[o]];if(a===void 0)throw new Error(\"Invalid character (\"+t[o]+\")\");let c=a&32;if(a&=31,r+=a<<n,c)n+=5;else{let l=r&1;r>>>=1,l?e.push(r===0?-2147483648:-r):e.push(r),r=n=0}}return e}var NQ,eTe,OF=Ve(()=>{u();NQ={},eTe={};\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".split(\"\").forEach(function(t,e){NQ[t]=e,eTe[e]=t})});var b4,zQ=Ve(()=>{u();OF();b4=class{constructor({version:e,sources:n,names:r,mappings:o}){if(this.version=e,this.sources=n,this.names=r,this.mappings=o,this.version!==3)throw new Error(`Only version 3 is supported, got ${this.version}`);if(this.mappings===void 0)throw new Error(\"mapping undefined, cannot build source map without `mapping`\");let a=this.mappings.split(\";\").map(f9);this.pcToLocation=new Map,this.sourceAndLineToPc=new Map;let c={line:0,column:0,sourceIndex:0,nameIndex:0};for(let[l,f]of a.entries()){if(f.length<4)continue;let p=f.length>4?f[4]:void 0,[,m,g,y]=f;c.sourceIndex+=m,c.line+=g,c.column+=y,typeof p<\"u\"&&(c.nameIndex+=p);let A=`${c.sourceIndex}:${c.line}`,T=this.sourceAndLineToPc.get(A);T===void 0&&(T=[],this.sourceAndLineToPc.set(A,T));let R={pc:l,column:c.column},K={line:c.line,column:c.column,sourceIndex:c.sourceIndex};typeof p<\"u\"&&(R.nameIndex=c.nameIndex,K.nameIndex=c.nameIndex),T.push(R),this.pcToLocation.set(l,K)}}getPcs(){return Array.from(this.pcToLocation.keys())}getLocationForPc(e){return this.pcToLocation.get(e)}getPcsOnSourceLine(e,n){let r=this.sourceAndLineToPc.get(`${e}:${n}`);return r===void 0?[]:r}}});async function VQ({client:t,txns:e,protocolVersion:n,latestTimestamp:r,round:o,sources:a}){let c=[],l=[],f=[],p=[],m=[];for(let T of e)if(T.txn.type===mo.appl)if(m.push(T.txn.sender.toString()),m.push(...T.txn.applicationCall.accounts.map(R=>R.toString())),f.push(...T.txn.applicationCall.foreignApps),m.push(...T.txn.applicationCall.foreignApps.map(nv).map(R=>R.toString())),p.push(...T.txn.applicationCall.foreignAssets),T.txn.applicationCall.appIndex===BigInt(0))c.push(new bu({id:tTe,params:new Qf({creator:T.txn.sender.toString(),approvalProgram:T.txn.applicationCall.approvalProgram,clearStateProgram:T.txn.applicationCall.clearProgram,localStateSchema:new xc({numUint:T.txn.applicationCall.numLocalInts,numByteSlice:T.txn.applicationCall.numLocalByteSlices}),globalStateSchema:new xc({numUint:T.txn.applicationCall.numGlobalInts,numByteSlice:T.txn.applicationCall.numGlobalByteSlices})})}));else{let{appIndex:R}=T.txn.applicationCall;f.push(R),m.push(nv(R).toString())}let g=[];for(let T of new Set(p))g.push(t.getAssetByID(T).do().then(R=>{m.push(R.params.creator)}));await Promise.all(g);let y=[];for(let T of new Set(f))y.push(t.getApplicationByID(T).do().then(R=>{c.push(R),m.push(R.params.creator.toString())}));await Promise.all(y);let A=[];for(let T of new Set(m))A.push(t.accountInformation(T).do().then(R=>{l.push(R)}));return await Promise.all(A),new V3({txns:e.slice(),accounts:l,apps:c,latestTimestamp:r??0,round:o??0,protocolVersion:n??\"\",sources:a??[]})}function LF(t,e){return t.length>e&&e>0?`${t.slice(0,e)}...`:t}function nTe(t,e){if(e.length===0)return\"\";let n=null;for(let o=0;o<e.length;o++){if(o>t.length){n=o;continue}Zc(t[o])!==Zc(e[o])&&(n=o)}if(n==null)return\"\";let r=e[n];return r.bytes.length>0?`${n} = 0x${Wh(r.bytes)}`:`${n} = ${r.uint.toString()}`}function rTe(t,e){return`[${(e?t.reverse():t).map(r=>{switch(r.type){case 1:return`0x${Wh(r.bytes)}`;case 2:return r.uint.toString();default:return\"\"}}).join(\", \")}]`}function HQ(t,e,n){let r=n.maxValueWidth||NF,o=[[\"pc#\",\"ln#\",\"source\",\"scratch\",\"stack\"]];for(let c=0;c<t.length;c++){let{line:l,error:f,pc:p,scratch:m,stack:g}=t[c],y=m!==void 0?m:[],A=c>0&&t[c-1].scratch!==void 0?t[c-1].scratch:[],T=f?`!! ${f} !!`:e[l];o.push([p.toString().padEnd(3,\" \"),l.toString().padEnd(3,\" \"),LF(T,r),LF(nTe(A,y),r),LF(rTe(g,n.topOfStackFirst),r)])}let a=o.reduce((c,l)=>{let f=new Array(o[0].length).fill(0);for(let p=0;p<c.length;p++)f[p]=l[p].length>c[p]?l[p].length:c[p];return f},new Array(o[0].length).fill(0));return`${o.map(c=>c.map((l,f)=>l.padEnd(a[f]+1,\" \")).join(\"|\").trim()).join(`\\n`)}\\n`}function jQ(t,e){if(!t.appCallTrace||!t.disassembly)return\"\";let n=e;return e!==void 0?n=e:n={maxValueWidth:NF,topOfStackFirst:!1},HQ(t.appCallTrace,t.disassembly,n)}function $Q(t,e){if(!t.logicSigTrace||!t.logicSigDisassembly)return\"\";let n;return e!==void 0?n=e:n={maxValueWidth:NF,topOfStackFirst:!0},HQ(t.logicSigTrace,t.logicSigDisassembly,n)}var tTe,NF,KQ=Ve(()=>{u();_o();Ss();Es();o9();Ai();tTe=1380011588,NF=30});function GQ({sender:t,receiver:e,amount:n,closeRemainderTo:r,suggestedParams:o,note:a,lease:c,rekeyTo:l}){return new La({type:mo.pay,sender:t,note:a,lease:c,rekeyTo:l,suggestedParams:o,paymentParams:{receiver:e,amount:n,closeRemainderTo:r}})}function qQ({sender:t,voteKey:e,selectionKey:n,stateProofKey:r,voteFirst:o,voteLast:a,voteKeyDilution:c,nonParticipation:l,suggestedParams:f,note:p,lease:m,rekeyTo:g}){return new La({type:mo.keyreg,sender:t,note:p,lease:m,rekeyTo:g,suggestedParams:f,keyregParams:{voteKey:e,selectionKey:n,stateProofKey:r,voteFirst:o,voteLast:a,voteKeyDilution:c,nonParticipation:l}})}function w4({sender:t,assetIndex:e,total:n,decimals:r,defaultFrozen:o,manager:a,reserve:c,freeze:l,clawback:f,unitName:p,assetName:m,assetURL:g,assetMetadataHash:y,note:A,lease:T,rekeyTo:R,suggestedParams:K}){return new La({type:mo.acfg,sender:t,note:A,lease:T,rekeyTo:R,suggestedParams:K,assetConfigParams:{assetIndex:e,total:n,decimals:r,defaultFrozen:o,manager:a,reserve:c,freeze:l,clawback:f,unitName:p,assetName:m,assetURL:g,assetMetadataHash:y}})}function WQ({sender:t,total:e,decimals:n,defaultFrozen:r,manager:o,reserve:a,freeze:c,clawback:l,unitName:f,assetName:p,assetURL:m,assetMetadataHash:g,note:y,lease:A,rekeyTo:T,suggestedParams:R}){return w4({sender:t,total:e,decimals:n,defaultFrozen:r,manager:o,reserve:a,freeze:c,clawback:l,unitName:f,assetName:p,assetURL:m,assetMetadataHash:g,note:y,lease:A,rekeyTo:T,suggestedParams:R})}function YQ({sender:t,assetIndex:e,manager:n,reserve:r,freeze:o,clawback:a,strictEmptyAddressChecking:c,note:l,lease:f,rekeyTo:p,suggestedParams:m}){if(!e)throw Error(\"assetIndex must be provided\");if((c??!0)&&(n==null||r==null||o==null||a==null))throw Error(\"strictEmptyAddressChecking is enabled, but an address is empty. If this is intentional, set strictEmptyAddressChecking to false.\");return w4({sender:t,assetIndex:e,manager:n,reserve:r,freeze:o,clawback:a,note:l,lease:f,rekeyTo:p,suggestedParams:m})}function ZQ({sender:t,assetIndex:e,note:n,lease:r,rekeyTo:o,suggestedParams:a}){if(!e)throw Error(\"assetIndex must be provided\");return w4({sender:t,assetIndex:e,note:n,lease:r,rekeyTo:o,suggestedParams:a})}function XQ({sender:t,assetIndex:e,freezeTarget:n,frozen:r,suggestedParams:o,note:a,lease:c,rekeyTo:l}){return new La({type:mo.afrz,sender:t,note:a,lease:c,rekeyTo:l,suggestedParams:o,assetFreezeParams:{assetIndex:e,freezeTarget:n,frozen:r}})}function JQ({sender:t,receiver:e,amount:n,closeRemainderTo:r,assetSender:o,note:a,assetIndex:c,suggestedParams:l,rekeyTo:f,lease:p}){if(!c)throw Error(\"assetIndex must be provided\");return new La({type:mo.axfer,sender:t,note:a,lease:p,rekeyTo:f,suggestedParams:l,assetTransferParams:{assetIndex:c,receiver:e,amount:n,assetSender:o,closeRemainderTo:r}})}function Su({sender:t,appIndex:e,onComplete:n,appArgs:r,accounts:o,foreignApps:a,foreignAssets:c,boxes:l,convertToAccess:f,holdings:p,locals:m,access:g,approvalProgram:y,clearProgram:A,numLocalInts:T,numLocalByteSlices:R,numGlobalInts:K,numGlobalByteSlices:O,extraPages:V,rejectVersion:D,note:G,lease:ee,rekeyTo:J,suggestedParams:le}){if(n==null)throw Error(\"onComplete must be provided\");if(g&&(o||a||c||l||p||m))throw Error(\"cannot specify both access and other access fields\");let se=g;return f&&(se=lJ({appIndex:e,accounts:o,foreignApps:a,foreignAssets:c,holdings:p,locals:m,boxes:l})),new La({type:mo.appl,sender:t,note:G,lease:ee,rekeyTo:J,suggestedParams:le,appCallParams:{appIndex:e,onComplete:n,appArgs:r,accounts:se?void 0:o,foreignAssets:se?void 0:c,foreignApps:se?void 0:a,boxes:se?void 0:l,access:se,approvalProgram:y,clearProgram:A,numLocalInts:T,numLocalByteSlices:R,numGlobalInts:K,numGlobalByteSlices:O,extraPages:V,rejectVersion:D}})}function QQ({sender:t,onComplete:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,approvalProgram:g,clearProgram:y,numLocalInts:A,numLocalByteSlices:T,numGlobalInts:R,numGlobalByteSlices:K,extraPages:O,note:V,lease:D,rekeyTo:G,suggestedParams:ee}){if(!g||!y)throw Error(\"approvalProgram and clearProgram must be provided\");if(e==null)throw Error(\"onComplete must be provided\");return Su({sender:t,appIndex:0,onComplete:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,approvalProgram:g,clearProgram:y,numLocalInts:A,numLocalByteSlices:T,numGlobalInts:R,numGlobalByteSlices:K,extraPages:O,note:V,lease:D,rekeyTo:G,suggestedParams:ee})}function eee({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,approvalProgram:g,clearProgram:y,note:A,lease:T,rekeyTo:R,suggestedParams:K}){if(!e)throw Error(\"appIndex must be provided\");if(!g||!y)throw Error(\"approvalProgram and clearProgram must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.UpdateApplicationOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,approvalProgram:g,clearProgram:y,note:A,lease:T,rekeyTo:R,suggestedParams:K})}function tee({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T}){if(!e)throw Error(\"appIndex must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.DeleteApplicationOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T})}function nee({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T}){if(!e)throw Error(\"appIndex must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.OptInOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,note:g,convertToAccess:l,holdings:f,locals:p,access:m,lease:y,rekeyTo:A,suggestedParams:T})}function ree({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T}){if(!e)throw Error(\"appIndex must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.CloseOutOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T})}function oee({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T}){if(!e)throw Error(\"appIndex must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.ClearStateOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T})}function iee({sender:t,appIndex:e,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T}){if(!e)throw Error(\"appIndex must be provided\");return Su({sender:t,appIndex:e,onComplete:ga.NoOpOC,appArgs:n,accounts:r,foreignApps:o,foreignAssets:a,boxes:c,convertToAccess:l,holdings:f,locals:p,access:m,note:g,lease:y,rekeyTo:A,suggestedParams:T})}var UF=Ve(()=>{u();m3();p3();nF()});function aee(t){return(e,n)=>{let r=[];for(let o of n)r.push(e[o].signTxn(t.sk));return Promise.resolve(r)}}function see(t){return(e,n)=>{let r=[];for(let o of n){let{blob:a}=hv(e[o],t);r.push(a)}return Promise.resolve(r)}}function cee(t,e){return(n,r)=>{let o=[];for(let a of r){let c=n[a],l=[];for(let f of e){let{blob:p}=x4(c,t,f);l.push(p)}l.length>1?o.push(bg(l)):o.push(l[0])}return Promise.resolve(o)}}function lee(){return(t,e)=>{let n=[];for(let r of e)n.push(v3(t[r]));return Promise.resolve(n)}}function E4(t){return typeof t==\"object\"&&Object.keys(t).length===2&&typeof t.txn==\"object\"&&typeof t.signer==\"function\"}var zF=Ve(()=>{u();qf();PF();FF()});function aTe(t){let e=0;if(t.length>8)throw new Error(\"value list passed in should be no greater than length 8\");for(let n=0;n<t.length;n++){let r=t[n];if(typeof r!=\"boolean\")throw new Error(\"non-boolean values cannot be compressed into a byte\");r&&(e|=1<<7-n)}return e}function S4(t,e,n){let r=0;for(;;){let o=e+n*r;if(t[o].constructor===Cd)if(o!==t.length-1&&n===1)r+=1;else if(o>0&&n===-1)r+=1;else break;else{r-=1;break}}return r}var im,VF,HF,jF,Gs,oTe,iTe,As,up,A4,wg,Cd,k4,C4,T4,_4,Bl,$F=Ve(()=>{u();Ss();AF();Ai();im=2**16-1,VF=32,HF=1,jF=1,Gs=2,oTe=/^([a-z\\\\d[\\\\](),]+)\\\\[(0|[1-9][\\\\d]*)]$/,iTe=/^ufixed([1-9][\\\\d]*)x([1-9][\\\\d]*)$/,As=class t{static from(e){if(e.endsWith(\"[]\")){let n=t.from(e.slice(0,e.length-2));return new _4(n)}if(e.endsWith(\"]\")){let n=e.match(oTe);if(!n||n.length!==3)throw new Error(`malformed static array string: ${e}`);let r=n[2],o=parseInt(r,10);if(o>im)throw new Error(`array length exceeds limit ${im}`);let a=t.from(n[1]);return new T4(a,o)}if(e.startsWith(\"uint\")){let n=a=>[...a].every(c=>\"0123456789\".includes(c)),r=e.slice(4,e.length);if(!n(r))throw new Error(`malformed uint string: ${r}`);let o=parseInt(r,10);if(o>im)throw new Error(`malformed uint string: ${o}`);return new up(o)}if(e===\"byte\")return new k4;if(e.startsWith(\"ufixed\")){let n=e.match(iTe);if(!n||n.length!==3)throw new Error(`malformed ufixed type: ${e}`);let r=parseInt(n[1],10),o=parseInt(n[2],10);return new A4(r,o)}if(e===\"bool\")return new Cd;if(e===\"address\")return new wg;if(e===\"string\")return new C4;if(e.length>=2&&e[0]===\"(\"&&e[e.length-1]===\")\"){let n=Bl.parseTupleContent(e.slice(1,e.length-1)),r=[];for(let o=0;o<n.length;o++){let a=t.from(n[o]);r.push(a)}return new Bl(r)}throw new Error(`cannot convert a string ${e} to an ABI type`)}},up=class t extends As{constructor(e){if(super(),e%8!==0||e<8||e>512)throw new Error(`unsupported uint type bitSize: ${e}`);this.bitSize=e}toString(){return`uint${this.bitSize}`}equals(e){return e instanceof t&&this.bitSize===e.bitSize}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!=\"bigint\"&&typeof e!=\"number\")throw new Error(`Cannot encode value as uint${this.bitSize}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size uint${this.bitSize}`);if(typeof e==\"number\"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return kd(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`byte string must correspond to a uint${this.bitSize}`);return pv(e)}},A4=class t extends As{constructor(e,n){if(super(),e%8!==0||e<8||e>512)throw new Error(`unsupported ufixed type bitSize: ${e}`);if(n>160||n<1)throw new Error(`unsupported ufixed type precision: ${n}`);this.bitSize=e,this.precision=n}toString(){return`ufixed${this.bitSize}x${this.precision}`}equals(e){return e instanceof t&&this.bitSize===e.bitSize&&this.precision===e.precision}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!=\"bigint\"&&typeof e!=\"number\")throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size ${this.toString()}`);if(typeof e==\"number\"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return kd(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`byte string must correspond to a ${this.toString()}`);return pv(e)}},wg=class t extends As{toString(){return\"address\"}equals(e){return e instanceof t}isDynamic(){return!1}byteLen(){return VF}encode(e){if(typeof e==\"string\")return e3(e).publicKey;if(e instanceof dr)return e.publicKey;if(e instanceof Uint8Array){if(e.byteLength!==32)throw new Error(\"byte string must be 32 bytes long for an address\");return e}throw new Error(`Cannot encode value as ${this.toString()}: ${e}`)}decode(e){if(e.byteLength!==32)throw new Error(\"byte string must be 32 bytes long for an address\");return n3(e)}},Cd=class t extends As{toString(){return\"bool\"}equals(e){return e instanceof t}isDynamic(){return!1}byteLen(){return jF}encode(e){if(typeof e!=\"boolean\")throw new Error(`Cannot encode value as bool: ${e}`);return e?new Uint8Array([128]):new Uint8Array([0])}decode(e){if(e.byteLength!==1)throw new Error(\"bool string must be 1 byte long\");let n=e[0];if(n===128)return!0;if(n===0)return!1;throw new Error(\"boolean could not be decoded from the byte string\")}},k4=class t extends As{toString(){return\"byte\"}equals(e){return e instanceof t}isDynamic(){return!1}byteLen(){return HF}encode(e){if(typeof e!=\"number\"&&typeof e!=\"bigint\")throw new Error(`Cannot encode value as byte: ${e}`);if(typeof e==\"bigint\"&&(e=Number(e)),e<0||e>255)throw new Error(`${e} cannot be encoded into a byte`);return new Uint8Array([e])}decode(e){if(e.byteLength!==1)throw new Error(\"byte string must be 1 byte long\");return e[0]}},C4=class t extends As{toString(){return\"string\"}equals(e){return e instanceof t}isDynamic(){return!0}byteLen(){throw new Error(`${this.toString()} is a dynamic type`)}encode(e){if(typeof e!=\"string\"&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as string: ${e}`);let n;typeof e==\"string\"?n=new TextEncoder().encode(e):n=e;let r=kd(n.length,Gs),o=new Uint8Array(n.length+Gs);return o.set(r),o.set(n,Gs),o}decode(e){if(e.length<Gs)throw new Error(`byte string is too short to be decoded. Actual length is ${e.length}, but expected at least ${Gs}`);let r=new DataView(e.buffer,e.byteOffset,Gs).getUint16(0),o=e.slice(Gs,e.length);if(r!==o.length)throw new Error(`string length bytes do not match the actual length of string. Expected ${r}, got ${o.length}`);return new TextDecoder(\"utf-8\").decode(o)}},T4=class t extends As{constructor(e,n){if(super(),n<0)throw new Error(`static array must have a non negative length: ${n}`);this.childType=e,this.staticLength=n}toString(){return`${this.childType.toString()}[${this.staticLength}]`}equals(e){return e instanceof t&&this.staticLength===e.staticLength&&this.childType.equals(e.childType)}isDynamic(){return this.childType.isDynamic()}byteLen(){return this.childType.constructor===Cd?Math.ceil(this.staticLength/8):this.staticLength*this.childType.byteLen()}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);if(e.length!==this.staticLength)throw new Error(`Value array does not match static array length. Expected ${this.staticLength}, got ${e.length}`);return this.toABITupleType().encode(e)}decode(e){return this.toABITupleType().decode(e)}toABITupleType(){return new Bl(Array(this.staticLength).fill(this.childType))}},_4=class t extends As{constructor(e){super(),this.childType=e}toString(){return`${this.childType.toString()}[]`}equals(e){return e instanceof t&&this.childType.equals(e.childType)}isDynamic(){return!0}byteLen(){throw new Error(`${this.toString()} is a dynamic type`)}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);let n=this.toABITupleType(e.length),r=n.encode(e),o=kd(n.childTypes.length,Gs);return ti(o,r)}decode(e){let r=new DataView(e.buffer,0,Gs).getUint16(0);return this.toABITupleType(r).decode(e.slice(Gs,e.length))}toABITupleType(e){return new Bl(Array(e).fill(this.childType))}},Bl=class t extends As{constructor(e){if(super(),e.length>=im)throw new Error(\"tuple type child type number larger than maximum uint16 error\");this.childTypes=e}toString(){let e=[];for(let n=0;n<this.childTypes.length;n++)e[n]=this.childTypes[n].toString();return`(${e.join(\",\")})`}equals(e){return e instanceof t&&this.childTypes.length===e.childTypes.length&&this.childTypes.every((n,r)=>n.equals(e.childTypes[r]))}isDynamic(){let e=n=>n.isDynamic();return this.childTypes.some(e)}byteLen(){let e=0;for(let n=0;n<this.childTypes.length;n++)if(this.childTypes[n].constructor===Cd){let r=S4(this.childTypes,n,1),o=r+1;n+=r,e+=Math.trunc((o+7)/8)}else{let r=this.childTypes[n].byteLen();e+=r}return e}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);let n=Array.from(e);if(e.length>im)throw new Error(\"length of tuple array should not exceed a uint16\");let r=this.childTypes,o=[],a=[],c=new Map,l=0;for(;l<r.length;){let m=r[l];if(m.isDynamic())c.set(o.length,!0),o.push(new Uint8Array([0,0])),a.push(m.encode(n[l]));else{if(m.constructor===Cd){let g=S4(r,l,-1),y=S4(r,l,1);if(g%8!==0)throw new Error(\"expected before index should have number of bool mod 8 equal 0\");y=Math.min(7,y);let A=aTe(n.slice(l,l+y+1));o.push(kd(A,1)),l+=y}else{let g=m.encode(n[l]);o.push(g)}c.set(l,!1),a.push(new Uint8Array)}l+=1}let f=0;for(let m of o)f+=m.length;let p=0;for(let m=0;m<o.length;m++){if(c.get(m)){let g=f+p;if(g>im)throw new Error(`byte length of ${g} should not exceed a uint16`);o[m]=kd(g,Gs)}p+=a[m].length}return ti(...o,...a)}decode(e){let n=this.childTypes,r=[],o=[],a=0,c=0,l=new DataView(e.buffer);for(;a<n.length;){let m=n[a];if(m.isDynamic()){if(e.slice(c,e.length).length<Gs)throw new Error(\"dynamic type in tuple is too short to be decoded\");let g=l.getUint16(c);if(r.length>0&&(r[r.length-1].right=g,g<r[r.length-1].left))throw new Error(\"dynamic index segment miscalculation: left is greater than right index\");let y={left:g,right:-1};r.push(y),o.push(null),c+=Gs}else if(m.constructor===Cd){let g=S4(this.childTypes,a,-1),y=S4(this.childTypes,a,1);if(g%8!==0)throw new Error(\"expected before bool number mod 8 === 0\");y=Math.min(7,y);for(let A=0;A<=y;A++){let T=128>>A;(e[c]&T)>0?o.push(new Uint8Array([128])):o.push(new Uint8Array([0]))}a+=y,c+=1}else{let g=m.byteLen();o.push(e.slice(c,c+g)),c+=g}if(a!==n.length-1&&c>=e.length)throw new Error(\"input byte not enough to decode\");a+=1}if(r.length>0&&(r[r.length-1].right=e.length,c=e.length),c<e.length)throw new Error(\"input byte not fully consumed\");for(let m=0;m<r.length;m++){let g=r[m];if(g.left>g.right)throw new Error(\"dynamic segment should display a [l, r] space with l <= r\");if(m!==r.length-1&&g.right!==r[m+1].left)throw new Error(\"dynamic segment should be consecutive\")}let f=0;for(let m=0;m<n.length;m++)n[m].isDynamic()&&(o[m]=e.slice(r[f].left,r[f].right),f+=1);let p=[];for(let m=0;m<n.length;m++){let g=n[m].decode(o[m]);p.push(g)}return p}static parseTupleContent(e){if(e.length===0)return[];if(e.endsWith(\",\")||e.startsWith(\",\"))throw new Error(\"tuple string should not start with comma\");if(e.includes(\",,\"))throw new Error(\"tuple string should not have consecutive commas\");let n=[],r=0,o=\"\";for(let a of e)o+=a,a===\"(\"?r+=1:a===\")\"?r-=1:a===\",\"&&r===0&&(n.push(o.slice(0,o.length-1)),o=\"\");if(o.length!==0&&n.push(o),r!==0)throw new Error(\"tuple string has mismatched parentheses\");return n}}});function Eg(t){return t===Dl.any||t===Dl.pay||t===Dl.keyreg||t===Dl.acfg||t===Dl.axfer||t===Dl.afrz||t===Dl.appl}function p9(t,e){return t===Dl.any?!0:e.type?e.type.toString()===t.toString():!1}var Dl,KF=Ve(()=>{u();(function(t){t.any=\"txn\",t.pay=\"pay\",t.keyreg=\"keyreg\",t.acfg=\"acfg\",t.axfer=\"axfer\",t.afrz=\"afrz\",t.appl=\"appl\"})(Dl||(Dl={}))});function mv(t){return t===Au.account||t===Au.application||t===Au.asset}var Au,GF=Ve(()=>{u();(function(t){t.account=\"account\",t.application=\"application\",t.asset=\"asset\"})(Au||(Au={}))});function sTe(t){let e=t.indexOf(\"(\");if(e===-1)throw new Error(`Invalid method signature: ${t}`);let n=-1,r=0;for(let o=e;o<t.length;o++){let a=t[o];if(a===\"(\")r+=1;else if(a===\")\"){if(r===0)break;if(r-=1,r===0){n=o;break}}}if(n===-1)throw new Error(`Invalid method signature: ${t}`);return{name:t.slice(0,e),args:Bl.parseTupleContent(t.slice(e+1,n)),returns:t.slice(n+1)}}function gv(t,e){if(t===null||!Array.isArray(t)||!t.every(r=>r instanceof dp))throw new Error(\"Methods list provided is null or not the correct type\");let n=t.filter(r=>r.name===e);if(n.length>1)throw new Error(`found ${n.length} methods with the same name ${n.map(r=>r.getSignature()).join(\",\")}`);if(n.length===0)throw new Error(`found 0 methods with the name ${e}`);return n[0]}var dp,h9=Ve(()=>{u();_l();$F();KF();GF();dp=class t{constructor(e){if(typeof e.name!=\"string\"||typeof e.returns!=\"object\"||!Array.isArray(e.args))throw new Error(\"Invalid ABIMethod parameters\");this.name=e.name,this.description=e.desc,this.args=e.args.map(({type:n,name:r,desc:o})=>Eg(n)||mv(n)?{type:n,name:r,description:o}:{type:As.from(n),name:r,description:o}),this.returns={type:e.returns.type===\"void\"?e.returns.type:As.from(e.returns.type),description:e.returns.desc},this.events=e.events,this.readonly=e.readonly}getSignature(){let e=this.args.map(r=>r.type.toString()).join(\",\"),n=this.returns.type.toString();return`${this.name}(${e})${n}`}getSelector(){let e=ws(this.getSignature());return new Uint8Array(e.slice(0,4))}txnCount(){let e=1;for(let n of this.args)typeof n.type==\"string\"&&Eg(n.type)&&(e+=1);return e}toJSON(){return{name:this.name,desc:this.description,args:this.args.map(({type:e,name:n,description:r})=>({type:e.toString(),name:n,desc:r})),returns:{type:this.returns.type.toString(),desc:this.returns.description},events:this.events,readonly:this.readonly}}static fromSignature(e){let{name:n,args:r,returns:o}=sTe(e);return new t({name:n,args:r.map(a=>({type:a})),returns:{type:o}})}}});var m9,uee=Ve(()=>{u();h9();m9=class{constructor(e){if(typeof e.name!=\"string\"||!Array.isArray(e.methods)||e.networks&&typeof e.networks!=\"object\")throw new Error(\"Invalid ABIContract parameters\");this.name=e.name,this.description=e.desc,this.networks=e.networks?{...e.networks}:{},this.methods=e.methods.map(n=>new dp(n)),this.events=e.events}toJSON(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map(e=>e.toJSON()),events:this.events}}getMethodByName(e){return gv(this.methods,e)}}});var g9,dee=Ve(()=>{u();h9();g9=class{constructor(e){if(typeof e.name!=\"string\"||!Array.isArray(e.methods))throw new Error(\"Invalid ABIInterface parameters\");this.name=e.name,this.description=e.desc,this.methods=e.methods.map(n=>new dp(n))}toJSON(){return{name:this.name,desc:this.description,methods:this.methods.map(e=>e.toJSON())}}getMethodByName(e){return gv(this.methods,e)}}});var qF=Ve(()=>{u();$F();uee();dee();h9();KF();GF()});function WF(t,e,n){if(n!=null&&t===n)return 0;let r=n==null?0:1;for(let o=0;o<e.length;o++)if(t===e[o])return o+r;return e.push(t),e.length-1+r}var cTe,M4,Ja,I4,fee=Ve(()=>{u();qF();_o();fr();IF();UF();zF();m3();qf();p3();Ai();SF();cTe=new Uint8Array([21,31,124,117]),M4=16;(function(t){t[t.BUILDING=0]=\"BUILDING\",t[t.BUILT=1]=\"BUILT\",t[t.SIGNED=2]=\"SIGNED\",t[t.SUBMITTED=3]=\"SUBMITTED\",t[t.COMMITTED=4]=\"COMMITTED\"})(Ja||(Ja={}));I4=class t{constructor(){this.status=Ja.BUILDING,this.transactions=[],this.methodCalls=new Map,this.signedTxns=[],this.txIDs=[]}getStatus(){return this.status}count(){return this.transactions.length}clone(){let e=new t;return e.transactions=this.transactions.map(({txn:n,signer:r})=>{let o=n.toEncodingData();return o.delete(\"grp\"),{txn:La.fromEncodingData(o),signer:r}}),e.methodCalls=new Map(this.methodCalls),e}addTransaction(e){if(this.status!==Ja.BUILDING)throw new Error(\"Cannot add transactions when composer status is not BUILDING\");if(this.transactions.length===t.MAX_GROUP_SIZE)throw new Error(`Adding an additional transaction exceeds the maximum atomic group size of ${t.MAX_GROUP_SIZE}`);if(e.txn.group&&e.txn.group.some(n=>n!==0))throw new Error(\"Cannot add a transaction with nonzero group ID\");this.transactions.push(e)}addMethodCall({appID:e,method:n,methodArgs:r,sender:o,suggestedParams:a,onComplete:c,approvalProgram:l,clearProgram:f,numGlobalInts:p,numGlobalByteSlices:m,numLocalInts:g,numLocalByteSlices:y,extraPages:A,appAccounts:T,appForeignApps:R,appForeignAssets:K,boxes:O,access:V,note:D,lease:G,rekeyTo:ee,rejectVersion:J,signer:le}){if(this.status!==Ja.BUILDING)throw new Error(\"Cannot add transactions when composer status is not BUILDING\");if(this.transactions.length+n.txnCount()>t.MAX_GROUP_SIZE)throw new Error(`Adding additional transactions exceeds the maximum atomic group size of ${t.MAX_GROUP_SIZE}`);if(BigInt(e)===BigInt(0)){if(l==null||f==null||p==null||m==null||g==null||y==null)throw new Error(\"One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices\")}else if(c===ga.UpdateApplicationOC){if(l==null||f==null)throw new Error(\"One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram\");if(p!=null||m!=null||g!=null||y!=null||A!=null)throw new Error(\"One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages\")}else if(l!=null||f!=null||p!=null||m!=null||g!=null||y!=null||A!=null)throw new Error(\"One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages\");if(V&&(T||R||K||O))throw new Error(\"Cannot specify both access and legacy foreign arrays (appAccounts, appForeignApps, appForeignAssets, boxes)\");if(r==null&&(r=[]),r.length!==n.args.length)throw new Error(`Incorrect number of method arguments. Expected ${n.args.length}, got ${r.length}`);let se=[],te=[],S=[],_=[],P=[],z=new Map,Y=O||[];for(let ne=0;ne<r.length;ne++){let Q=n.args[ne].type,ie=r[ne];if(Eg(Q)){if(!E4(ie)||!p9(Q,ie.txn))throw new Error(`Expected ${Q} TransactionWithSigner for argument at index ${ne}`);if(ie.txn.group&&ie.txn.group.some(ue=>ue!==0))throw new Error(\"Cannot add a transaction with nonzero group ID\");S.push(ie);continue}if(E4(ie))throw new Error(`Expected non-transaction value for argument at index ${ne}`);if(mv(Q)&&(z.set(_.length,se.length),_.push(Q),P.push(ie),Q=new up(8)),typeof Q==\"string\")throw new Error(`Unknown ABI type: ${Q}`);se.push(Q),te.push(ie)}let L=[],U=T==null?[]:T.map(ne=>ne.toString()),W=R==null?[]:R.map(Ro),w=K==null?[]:K.map(Ro);for(let ne=0;ne<_.length;ne++){let Q=_[ne],ie=P[ne],ue=0;switch(Q){case Au.account:{let q=new wg,Ee=q.decode(q.encode(ie));ue=WF(Ee,U,o.toString());break}case Au.application:{let q=new up(64),Ee=q.decode(q.encode(ie));if(Ee>Number.MAX_SAFE_INTEGER)throw new Error(`Expected safe integer for application value, got ${Ee}`);ue=WF(Ee,W,Ro(e));break}case Au.asset:{let q=new up(64),Ee=q.decode(q.encode(ie));if(Ee>Number.MAX_SAFE_INTEGER)throw new Error(`Expected safe integer for asset value, got ${Ee}`);ue=WF(Ee,w);break}default:throw new Error(`Unknown reference type: ${Q}`)}L.push(ue)}for(let ne=0;ne<L.length;ne++){let Q=z.get(ne);te[Q]=L[ne]}if(se.length>M4-1){let ne=se.slice(M4-2),Q=te.slice(M4-2);se=se.slice(0,M4-2),te=te.slice(0,M4-2),se.push(new Bl(ne)),te.push(Q)}let I=[n.getSelector()];for(let ne=0;ne<se.length;ne++)I.push(se[ne].encode(te[ne]));let ye={txn:Su({sender:o,appIndex:e,appArgs:I,accounts:V?void 0:U,foreignApps:V?void 0:W,foreignAssets:V?void 0:w,boxes:V?void 0:Y,access:V,onComplete:c??ga.NoOpOC,approvalProgram:l,clearProgram:f,numGlobalInts:p,numGlobalByteSlices:m,numLocalInts:g,numLocalByteSlices:y,extraPages:A,rejectVersion:J,lease:G,note:D,rekeyTo:ee,suggestedParams:a}),signer:le};this.transactions.push(...S,ye),this.methodCalls.set(this.transactions.length-1,n)}buildGroup(){if(this.status===Ja.BUILDING){if(this.transactions.length===0)throw new Error(\"Cannot build a group with 0 transactions\");this.transactions.length>1&&v4(this.transactions.map(e=>e.txn)),this.status=Ja.BUILT}return this.transactions}async gatherSignatures(){if(this.status>=Ja.SIGNED)return this.signedTxns;let e=this.buildGroup(),n=e.map(p=>p.txn),r=new Map;for(let p=0;p<e.length;p++){let{signer:m}=e[p];r.has(m)||r.set(m,[]),r.get(m).push(p)}let o=Array.from(r),a=await Promise.all(o.map(([p,m])=>p(n,m))),c=e.map(()=>null);for(let p=0;p<o.length;p++){let m=o[p][1],g=a[p];for(let y=0;y<m.length;y++)c[m[y]]=g[y]}function l(p){return p.every(m=>m!=null)}if(!l(c))throw new Error(`Missing signatures. Got ${c}`);let f=c.map((p,m)=>{try{return fo(p,So).txn.txID()}catch(g){throw new Error(`Cannot decode signed transaction at index ${m}. ${g}`)}});return this.signedTxns=c,this.txIDs=f,this.status=Ja.SIGNED,c}async submit(e){if(this.status>Ja.SUBMITTED)throw new Error(\"Transaction group cannot be resubmitted\");let n=await this.gatherSignatures();return await e.sendRawTransaction(n).do(),this.status=Ja.SUBMITTED,this.txIDs}async simulate(e,n){if(this.status>Ja.SUBMITTED)throw new Error(\"Simulated Transaction group has already been submitted to the network\");let o=(await this.gatherSignatures()).map(f=>fo(f,So)),a=n??new ig({txnGroups:[]});a.txnGroups=[new rp({txns:o})];let c=await e.simulateTransactions(a).do(),l=[];for(let[f,p]of this.methodCalls){let m=this.txIDs[f],g=c.txnGroups[0].txnResults[f].txnResult,y={txID:m,rawReturnValue:new Uint8Array,method:p};l.push(t.parseMethodResponse(p,y,g))}return{methodResults:l,simulateResponse:c}}async execute(e,n){if(this.status===Ja.COMMITTED)throw new Error(\"Transaction group has already been executed successfully\");let r=await this.submit(e);this.status=Ja.SUBMITTED;let o=this.transactions.findIndex((p,m)=>this.methodCalls.has(m)),c=await m4(e,r[o===-1?0:o],n);this.status=Ja.COMMITTED;let l=c.confirmedRound,f=[];for(let[p,m]of this.methodCalls){let g=r[p],y={txID:g,rawReturnValue:new Uint8Array,method:m};try{let A=p===o?c:await e.pendingTransactionInformation(g).do();y=t.parseMethodResponse(m,y,A)}catch(A){y.decodeError=A}f.push(y)}return{confirmedRound:l,txIDs:r,methodResults:f}}static parseMethodResponse(e,n,r){let o=n;try{if(o.txInfo=r,e.returns.type!==\"void\"){let a=r.logs||[];if(a.length===0)throw new Error(`App call transaction did not log a return value ${Zc(r)}`);let c=a[a.length-1];if(c.byteLength<4||!Fa(c.slice(0,4),cTe))throw new Error(`App call transaction did not log a ABI return value ${Zc(r)}`);o.rawReturnValue=new Uint8Array(c.slice(4)),o.returnValue=e.returns.type.decode(n.rawReturnValue)}}catch(a){o.decodeError=a}return o}};I4.MAX_GROUP_SIZE=16});var ZF={};Oi(ZF,{ABIAddressType:()=>wg,ABIArrayDynamicType:()=>_4,ABIArrayStaticType:()=>T4,ABIBoolType:()=>Cd,ABIByteType:()=>k4,ABIContract:()=>m9,ABIInterface:()=>g9,ABIMethod:()=>dp,ABIReferenceType:()=>Au,ABIStringType:()=>C4,ABITransactionType:()=>Dl,ABITupleType:()=>Bl,ABIType:()=>As,ABIUfixedType:()=>A4,ABIUintType:()=>up,ADDR_BYTE_SIZE:()=>VF,ALGORAND_ZERO_ADDRESS_STRING:()=>OD,AccountBaseData:()=>j1,AccountData:()=>$1,AccountDeltas:()=>G1,AccountTotals:()=>Z1,Address:()=>dr,AlgoCount:()=>xu,Algodv2:()=>Z6,AppLocalState:()=>B1,AppLocalStateDelta:()=>D1,AppParams:()=>P1,AppParamsDelta:()=>F1,AppResourceRecord:()=>O1,ApplyData:()=>dv,AssetHolding:()=>L1,AssetHoldingDelta:()=>N1,AssetParams:()=>U1,AssetParamsDelta:()=>z1,AssetResourceRecord:()=>V1,AtomicTransactionComposer:()=>I4,AtomicTransactionComposerStatus:()=>Ja,BalanceRecord:()=>K1,Block:()=>om,BlockHeader:()=>Ad,ENCODED_MULTISIG_SCHEMA:()=>E1,ENCODED_SUBSIG_SCHEMA:()=>sF,ERROR_INVALID_MICROALGOS:()=>vee,ERROR_MULTISIG_BAD_SENDER:()=>yee,EvalDelta:()=>uv,FalconSignatureStruct:()=>v1,FalconVerifier:()=>y1,HashFactory:()=>h1,INVALID_MICROALGOS_ERROR_MSG:()=>rv,IncludedTransactions:()=>W1,Indexer:()=>h4,IntDecoding:()=>Li,Kmd:()=>X6,KvValueDelta:()=>q1,LENGTH_ENCODE_BYTE_SIZE:()=>Gs,LedgerStateDelta:()=>Pl,LogicSig:()=>vc,LogicSigAccount:()=>nm,MAX_LEN:()=>im,MULTISIG_BAD_SENDER_ERROR_MSG:()=>YF,MerkleArrayProof:()=>vu,MerkleSignatureVerifier:()=>m1,ModifiedCreatable:()=>Y1,OnApplicationComplete:()=>ga,Participant:()=>g1,ParticipationUpdates:()=>I1,ProgramSourceMap:()=>b4,Reveal:()=>b1,RewardState:()=>T1,SINGLE_BOOL_SIZE:()=>jF,SINGLE_BYTE_SIZE:()=>HF,SignedTransaction:()=>So,SignedTxnInBlock:()=>R1,SignedTxnWithAD:()=>rm,SigslotCommit:()=>x1,StateProof:()=>Xh,StateProofMessage:()=>Jh,StateProofTrackingData:()=>k1,StateSchema:()=>Xc,TealValue:()=>Yf,Transaction:()=>La,TransactionType:()=>mo,TxnCommitments:()=>C1,UntypedValue:()=>ji,UpgradeState:()=>_1,UpgradeVote:()=>M1,ValueDelta:()=>Wf,VotingData:()=>H1,abiCheckTransactionType:()=>p9,abiTypeIsReference:()=>mv,abiTypeIsTransaction:()=>Eg,algosToMicroalgos:()=>ND,appendSignMultisigTransaction:()=>BF,appendSignRawMultisigSignature:()=>DF,assignGroupID:()=>v4,base64ToBytes:()=>Yn,bigIntToBytes:()=>kd,bytesToBase64:()=>ci,bytesToBigInt:()=>pv,bytesToHex:()=>Wh,bytesToString:()=>qh,coerceToBytes:()=>Oa,computeGroupID:()=>u9,createDryrun:()=>VQ,createMultisigTransaction:()=>d9,decodeAddress:()=>e3,decodeJSON:()=>Zn,decodeMsgpack:()=>fo,decodeObj:()=>QD,decodeSignedTransaction:()=>mF,decodeUint64:()=>RD,decodeUnsignedTransaction:()=>vJ,dryrunTxnResultAppTrace:()=>jQ,dryrunTxnResultLogicSigTrace:()=>$Q,encodeAddress:()=>n3,encodeJSON:()=>eF,encodeMsgpack:()=>ea,encodeObj:()=>XD,encodeUint64:()=>Jw,encodeUnsignedSimulateTransaction:()=>v3,encodeUnsignedTransaction:()=>yJ,encodedMultiSigFromEncodingData:()=>S1,encodedMultiSigToEncodingData:()=>A1,encodedSubsigFromEncodingData:()=>cF,encodedSubsigToEncodingData:()=>lF,generateAccount:()=>c9,getApplicationAddress:()=>nv,getMethodByName:()=>gv,hexToBytes:()=>BD,indexerModels:()=>a9,isOnApplicationComplete:()=>e9,isTransactionType:()=>f3,isTransactionWithSigner:()=>E4,isValidAddress:()=>t3,logicSigFromByte:()=>fF,makeApplicationCallTxnFromObject:()=>Su,makeApplicationClearStateTxnFromObject:()=>oee,makeApplicationCloseOutTxnFromObject:()=>ree,makeApplicationCreateTxnFromObject:()=>QQ,makeApplicationDeleteTxnFromObject:()=>tee,makeApplicationNoOpTxnFromObject:()=>iee,makeApplicationOptInTxnFromObject:()=>nee,makeApplicationUpdateTxnFromObject:()=>eee,makeAssetConfigTxnWithSuggestedParamsFromObject:()=>YQ,makeAssetCreateTxnWithSuggestedParamsFromObject:()=>WQ,makeAssetDestroyTxnWithSuggestedParamsFromObject:()=>ZQ,makeAssetFreezeTxnWithSuggestedParamsFromObject:()=>XQ,makeAssetTransferTxnWithSuggestedParamsFromObject:()=>JQ,makeBaseAssetConfigTxn:()=>w4,makeBasicAccountTransactionSigner:()=>aee,makeEmptyTransactionSigner:()=>lee,makeKeyRegistrationTxnWithSuggestedParamsFromObject:()=>qQ,makeLogicSigAccountTransactionSigner:()=>see,makeMultiSigAccountTransactionSigner:()=>cee,makePaymentTxnWithSuggestedParamsFromObject:()=>GQ,masterDerivationKeyToMnemonic:()=>MF,mergeMultisigTransactions:()=>bg,microalgosToAlgos:()=>LD,mnemonicFromSeed:()=>g4,mnemonicToMasterDerivationKey:()=>_F,mnemonicToSecretKey:()=>CF,modelsv2:()=>f6,msgpackRawDecode:()=>XA,msgpackRawDecodeAsMap:()=>JA,msgpackRawEncode:()=>$f,multisigAddress:()=>aF,parseJSON:()=>l1,secretKeyToMnemonic:()=>TF,seedFromMnemonic:()=>y4,signBytes:()=>mee,signLogicSigTransaction:()=>RF,signLogicSigTransactionObject:()=>hv,signMultisigTransaction:()=>x4,signTransaction:()=>hee,stringifyJSON:()=>Zc,tealSign:()=>n9,tealSignFromProgram:()=>hF,verifyBytes:()=>gee,verifyMultisig:()=>lv,verifyTealSign:()=>pF,waitForConfirmation:()=>m4});function hee(t,e){return{txID:t.txID(),blob:t.signTxn(e)}}function mee(t,e){let n=ti(pee,t);return Gh(n,e)}function gee(t,e,n){let r=ti(pee,t),o=typeof n==\"string\"?dr.fromString(n):n;return d1(r,e,o.publicKey)}var pee,YF,yee,vee,XF=Ve(()=>{u();_l();Ss();UD();Ai();iQ();aQ();Zw();TQ();SF();fr();Ss();AF();Es();PD();Ai();_Q();i9();b3();rF();x3();_o();Ni();BQ();UD();IF();qf();PF();r9();y3();FF();zQ();KQ();UF();m3();zF();fee();o9();qF();pee=Uint8Array.from([77,88]),YF=\"The transaction sender address and multisig preimage do not match.\";yee=new Error(YF),vee=new Error(rv)});var xee={};Oi(xee,{ABIAddressType:()=>wg,ABIArrayDynamicType:()=>_4,ABIArrayStaticType:()=>T4,ABIBoolType:()=>Cd,ABIByteType:()=>k4,ABIContract:()=>m9,ABIInterface:()=>g9,ABIMethod:()=>dp,ABIReferenceType:()=>Au,ABIStringType:()=>C4,ABITransactionType:()=>Dl,ABITupleType:()=>Bl,ABIType:()=>As,ABIUfixedType:()=>A4,ABIUintType:()=>up,ADDR_BYTE_SIZE:()=>VF,ALGORAND_ZERO_ADDRESS_STRING:()=>OD,AccountBaseData:()=>j1,AccountData:()=>$1,AccountDeltas:()=>G1,AccountTotals:()=>Z1,Address:()=>dr,AlgoCount:()=>xu,Algodv2:()=>Z6,AppLocalState:()=>B1,AppLocalStateDelta:()=>D1,AppParams:()=>P1,AppParamsDelta:()=>F1,AppResourceRecord:()=>O1,ApplyData:()=>dv,AssetHolding:()=>L1,AssetHoldingDelta:()=>N1,AssetParams:()=>U1,AssetParamsDelta:()=>z1,AssetResourceRecord:()=>V1,AtomicTransactionComposer:()=>I4,AtomicTransactionComposerStatus:()=>Ja,BalanceRecord:()=>K1,Block:()=>om,BlockHeader:()=>Ad,ENCODED_MULTISIG_SCHEMA:()=>E1,ENCODED_SUBSIG_SCHEMA:()=>sF,ERROR_INVALID_MICROALGOS:()=>vee,ERROR_MULTISIG_BAD_SENDER:()=>yee,EvalDelta:()=>uv,FalconSignatureStruct:()=>v1,FalconVerifier:()=>y1,HashFactory:()=>h1,INVALID_MICROALGOS_ERROR_MSG:()=>rv,IncludedTransactions:()=>W1,Indexer:()=>h4,IntDecoding:()=>Li,Kmd:()=>X6,KvValueDelta:()=>q1,LENGTH_ENCODE_BYTE_SIZE:()=>Gs,LedgerStateDelta:()=>Pl,LogicSig:()=>vc,LogicSigAccount:()=>nm,MAX_LEN:()=>im,MULTISIG_BAD_SENDER_ERROR_MSG:()=>YF,MerkleArrayProof:()=>vu,MerkleSignatureVerifier:()=>m1,ModifiedCreatable:()=>Y1,OnApplicationComplete:()=>ga,Participant:()=>g1,ParticipationUpdates:()=>I1,ProgramSourceMap:()=>b4,Reveal:()=>b1,RewardState:()=>T1,SINGLE_BOOL_SIZE:()=>jF,SINGLE_BYTE_SIZE:()=>HF,SignedTransaction:()=>So,SignedTxnInBlock:()=>R1,SignedTxnWithAD:()=>rm,SigslotCommit:()=>x1,StateProof:()=>Xh,StateProofMessage:()=>Jh,StateProofTrackingData:()=>k1,StateSchema:()=>Xc,TealValue:()=>Yf,Transaction:()=>La,TransactionType:()=>mo,TxnCommitments:()=>C1,UntypedValue:()=>ji,UpgradeState:()=>_1,UpgradeVote:()=>M1,ValueDelta:()=>Wf,VotingData:()=>H1,abiCheckTransactionType:()=>p9,abiTypeIsReference:()=>mv,abiTypeIsTransaction:()=>Eg,algosToMicroalgos:()=>ND,appendSignMultisigTransaction:()=>BF,appendSignRawMultisigSignature:()=>DF,assignGroupID:()=>v4,base64ToBytes:()=>Yn,bigIntToBytes:()=>kd,bytesToBase64:()=>ci,bytesToBigInt:()=>pv,bytesToHex:()=>Wh,bytesToString:()=>qh,coerceToBytes:()=>Oa,computeGroupID:()=>u9,createDryrun:()=>VQ,createMultisigTransaction:()=>d9,decodeAddress:()=>e3,decodeJSON:()=>Zn,decodeMsgpack:()=>fo,decodeObj:()=>QD,decodeSignedTransaction:()=>mF,decodeUint64:()=>RD,decodeUnsignedTransaction:()=>vJ,default:()=>xr,dryrunTxnResultAppTrace:()=>jQ,dryrunTxnResultLogicSigTrace:()=>$Q,encodeAddress:()=>n3,encodeJSON:()=>eF,encodeMsgpack:()=>ea,encodeObj:()=>XD,encodeUint64:()=>Jw,encodeUnsignedSimulateTransaction:()=>v3,encodeUnsignedTransaction:()=>yJ,encodedMultiSigFromEncodingData:()=>S1,encodedMultiSigToEncodingData:()=>A1,encodedSubsigFromEncodingData:()=>cF,encodedSubsigToEncodingData:()=>lF,generateAccount:()=>c9,getApplicationAddress:()=>nv,getMethodByName:()=>gv,hexToBytes:()=>BD,indexerModels:()=>a9,isOnApplicationComplete:()=>e9,isTransactionType:()=>f3,isTransactionWithSigner:()=>E4,isValidAddress:()=>t3,logicSigFromByte:()=>fF,makeApplicationCallTxnFromObject:()=>Su,makeApplicationClearStateTxnFromObject:()=>oee,makeApplicationCloseOutTxnFromObject:()=>ree,makeApplicationCreateTxnFromObject:()=>QQ,makeApplicationDeleteTxnFromObject:()=>tee,makeApplicationNoOpTxnFromObject:()=>iee,makeApplicationOptInTxnFromObject:()=>nee,makeApplicationUpdateTxnFromObject:()=>eee,makeAssetConfigTxnWithSuggestedParamsFromObject:()=>YQ,makeAssetCreateTxnWithSuggestedParamsFromObject:()=>WQ,makeAssetDestroyTxnWithSuggestedParamsFromObject:()=>ZQ,makeAssetFreezeTxnWithSuggestedParamsFromObject:()=>XQ,makeAssetTransferTxnWithSuggestedParamsFromObject:()=>JQ,makeBaseAssetConfigTxn:()=>w4,makeBasicAccountTransactionSigner:()=>aee,makeEmptyTransactionSigner:()=>lee,makeKeyRegistrationTxnWithSuggestedParamsFromObject:()=>qQ,makeLogicSigAccountTransactionSigner:()=>see,makeMultiSigAccountTransactionSigner:()=>cee,makePaymentTxnWithSuggestedParamsFromObject:()=>GQ,masterDerivationKeyToMnemonic:()=>MF,mergeMultisigTransactions:()=>bg,microalgosToAlgos:()=>LD,mnemonicFromSeed:()=>g4,mnemonicToMasterDerivationKey:()=>_F,mnemonicToSecretKey:()=>CF,modelsv2:()=>f6,msgpackRawDecode:()=>XA,msgpackRawDecodeAsMap:()=>JA,msgpackRawEncode:()=>$f,multisigAddress:()=>aF,parseJSON:()=>l1,secretKeyToMnemonic:()=>TF,seedFromMnemonic:()=>y4,signBytes:()=>mee,signLogicSigTransaction:()=>RF,signLogicSigTransactionObject:()=>hv,signMultisigTransaction:()=>x4,signTransaction:()=>hee,stringifyJSON:()=>Zc,tealSign:()=>n9,tealSignFromProgram:()=>hF,verifyBytes:()=>gee,verifyMultisig:()=>lv,verifyTealSign:()=>pF,waitForConfirmation:()=>m4});var xr,$i=Ve(()=>{u();XF();XF();xr=ZF});var bee=Qr(mi=>{\"use strict\";u();Object.defineProperty(mi,\"__esModule\",{value:!0});mi.getLocalStorage=mi.getLocalStorageOrThrow=mi.getCrypto=mi.getCryptoOrThrow=mi.getLocation=mi.getLocationOrThrow=mi.getNavigator=mi.getNavigatorOrThrow=mi.getDocument=mi.getDocumentOrThrow=mi.getFromWindowOrThrow=mi.getFromWindow=void 0;function Sg(t){let e;return typeof window<\"u\"&&typeof window[t]<\"u\"&&(e=window[t]),e}mi.getFromWindow=Sg;function yv(t){let e=Sg(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}mi.getFromWindowOrThrow=yv;function lTe(){return yv(\"document\")}mi.getDocumentOrThrow=lTe;function uTe(){return Sg(\"document\")}mi.getDocument=uTe;function dTe(){return yv(\"navigator\")}mi.getNavigatorOrThrow=dTe;function fTe(){return Sg(\"navigator\")}mi.getNavigator=fTe;function pTe(){return yv(\"location\")}mi.getLocationOrThrow=pTe;function hTe(){return Sg(\"location\")}mi.getLocation=hTe;function mTe(){return yv(\"crypto\")}mi.getCryptoOrThrow=mTe;function gTe(){return Sg(\"crypto\")}mi.getCrypto=gTe;function yTe(){return yv(\"localStorage\")}mi.getLocalStorageOrThrow=yTe;function vTe(){return Sg(\"localStorage\")}mi.getLocalStorage=vTe});var Eee=Qr(y9=>{\"use strict\";u();Object.defineProperty(y9,\"__esModule\",{value:!0});y9.getWindowMetadata=void 0;var wee=bee();function xTe(){let t,e;try{t=wee.getDocumentOrThrow(),e=wee.getLocationOrThrow()}catch{return null}function n(){let g=t.getElementsByTagName(\"link\"),y=[];for(let A=0;A<g.length;A++){let T=g[A],R=T.getAttribute(\"rel\");if(R&&R.toLowerCase().indexOf(\"icon\")>-1){let K=T.getAttribute(\"href\");if(K)if(K.toLowerCase().indexOf(\"https:\")===-1&&K.toLowerCase().indexOf(\"http:\")===-1&&K.indexOf(\"//\")!==0){let O=e.protocol+\"//\"+e.host;if(K.indexOf(\"/\")===0)O+=K;else{let V=e.pathname.split(\"/\");V.pop();let D=V.join(\"/\");O+=D+\"/\"+K}y.push(O)}else if(K.indexOf(\"//\")===0){let O=e.protocol+K;y.push(O)}else y.push(K)}}return y}function r(...g){let y=t.getElementsByTagName(\"meta\");for(let A=0;A<y.length;A++){let T=y[A],R=[\"itemprop\",\"property\",\"name\"].map(K=>T.getAttribute(K)).filter(K=>K?g.includes(K):!1);if(R.length&&R){let K=T.getAttribute(\"content\");if(K)return K}}return\"\"}function o(){let g=r(\"name\",\"og:site_name\",\"og:title\",\"twitter:title\");return g||(g=t.title),g}function a(){return r(\"description\",\"og:description\",\"twitter:description\",\"keywords\")}let c=o(),l=a(),f=e.origin,p=n();return{description:l,url:f,icons:p,name:c}}y9.getWindowMetadata=xTe});var See=Qr(gi=>{\"use strict\";u();Object.defineProperty(gi,\"__esModule\",{value:!0});gi.getLocalStorage=gi.getLocalStorageOrThrow=gi.getCrypto=gi.getCryptoOrThrow=gi.getLocation=gi.getLocationOrThrow=gi.getNavigator=gi.getNavigatorOrThrow=gi.getDocument=gi.getDocumentOrThrow=gi.getFromWindowOrThrow=gi.getFromWindow=void 0;function Ag(t){let e;return typeof window<\"u\"&&typeof window[t]<\"u\"&&(e=window[t]),e}gi.getFromWindow=Ag;function vv(t){let e=Ag(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}gi.getFromWindowOrThrow=vv;function bTe(){return vv(\"document\")}gi.getDocumentOrThrow=bTe;function wTe(){return Ag(\"document\")}gi.getDocument=wTe;function ETe(){return vv(\"navigator\")}gi.getNavigatorOrThrow=ETe;function STe(){return Ag(\"navigator\")}gi.getNavigator=STe;function ATe(){return vv(\"location\")}gi.getLocationOrThrow=ATe;function kTe(){return Ag(\"location\")}gi.getLocation=kTe;function CTe(){return vv(\"crypto\")}gi.getCryptoOrThrow=CTe;function TTe(){return Ag(\"crypto\")}gi.getCrypto=TTe;function _Te(){return vv(\"localStorage\")}gi.getLocalStorageOrThrow=_Te;function MTe(){return Ag(\"localStorage\")}gi.getLocalStorage=MTe});function Tee(t){return t?Cee(t):typeof document>\"u\"&&typeof navigator<\"u\"&&navigator.product===\"ReactNative\"?new FTe:typeof navigator<\"u\"?Cee(navigator.userAgent):VTe()}function UTe(t){return t!==\"\"&&NTe.reduce(function(e,n){var r=n[0],o=n[1];if(e)return e;var a=o.exec(t);return!!a&&[r,a]},!1)}function Cee(t){var e=UTe(t);if(!e)return null;var n=e[0],r=e[1];if(n===\"searchbot\")return new DTe;var o=r[1]&&r[1].split(/[._]/).slice(0,3);o?o.length<Aee&&(o=ITe(o,HTe(Aee-o.length))):o=[];var a=o.join(\".\"),c=zTe(t),l=LTe.exec(t);return l&&l[1]?new BTe(n,a,c,l[1]):new RTe(n,a,c)}function zTe(t){for(var e=0,n=kee.length;e<n;e++){var r=kee[e],o=r[0],a=r[1],c=a.exec(t);if(c)return o}return null}function VTe(){var t=typeof process<\"u\"&&process.version;return t?new PTe(process.version.slice(1)):null}function HTe(t){for(var e=[],n=0;n<t;n++)e.push(\"0\");return e}var ITe,RTe,PTe,BTe,DTe,FTe,OTe,LTe,Aee,NTe,kee,_ee=Ve(()=>{u();ITe=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),o=0,e=0;e<n;e++)for(var a=arguments[e],c=0,l=a.length;c<l;c++,o++)r[o]=a[c];return r},RTe=(function(){function t(e,n,r){this.name=e,this.version=n,this.os=r,this.type=\"browser\"}return t})(),PTe=(function(){function t(e){this.version=e,this.type=\"node\",this.name=\"node\",this.os=process.platform}return t})(),BTe=(function(){function t(e,n,r,o){this.name=e,this.version=n,this.os=r,this.bot=o,this.type=\"bot-device\"}return t})(),DTe=(function(){function t(){this.type=\"bot\",this.bot=!0,this.name=\"bot\",this.version=null,this.os=null}return t})(),FTe=(function(){function t(){this.type=\"react-native\",this.name=\"react-native\",this.version=null,this.os=null}return t})(),OTe=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,LTe=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\\\\ Jeeves\\\\/Teoma|ia_archiver)/,Aee=3,NTe=[[\"aol\",/AOLShield\\\\/([0-9\\\\._]+)/],[\"edge\",/Edge\\\\/([0-9\\\\._]+)/],[\"edge-ios\",/EdgiOS\\\\/([0-9\\\\._]+)/],[\"yandexbrowser\",/YaBrowser\\\\/([0-9\\\\._]+)/],[\"kakaotalk\",/KAKAOTALK\\\\s([0-9\\\\.]+)/],[\"samsung\",/SamsungBrowser\\\\/([0-9\\\\.]+)/],[\"silk\",/\\\\bSilk\\\\/([0-9._-]+)\\\\b/],[\"miui\",/MiuiBrowser\\\\/([0-9\\\\.]+)$/],[\"beaker\",/BeakerBrowser\\\\/([0-9\\\\.]+)/],[\"edge-chromium\",/EdgA?\\\\/([0-9\\\\.]+)/],[\"chromium-webview\",/(?!Chrom.*OPR)wv\\\\).*Chrom(?:e|ium)\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\"chrome\",/(?!Chrom.*OPR)Chrom(?:e|ium)\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\"phantomjs\",/PhantomJS\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\"crios\",/CriOS\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\"firefox\",/Firefox\\\\/([0-9\\\\.]+)(?:\\\\s|$)/],[\"fxios\",/FxiOS\\\\/([0-9\\\\.]+)/],[\"opera-mini\",/Opera Mini.*Version\\\\/([0-9\\\\.]+)/],[\"opera\",/Opera\\\\/([0-9\\\\.]+)(?:\\\\s|$)/],[\"opera\",/OPR\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\"ie\",/Trident\\\\/7\\\\.0.*rv\\\\:([0-9\\\\.]+).*\\\\).*Gecko$/],[\"ie\",/MSIE\\\\s([0-9\\\\.]+);.*Trident\\\\/[4-7].0/],[\"ie\",/MSIE\\\\s(7\\\\.0)/],[\"bb10\",/BB10;\\\\sTouch.*Version\\\\/([0-9\\\\.]+)/],[\"android\",/Android\\\\s([0-9\\\\.]+)/],[\"ios\",/Version\\\\/([0-9\\\\._]+).*Mobile.*Safari.*/],[\"safari\",/Version\\\\/([0-9\\\\._]+).*Safari/],[\"facebook\",/FBAV\\\\/([0-9\\\\.]+)/],[\"instagram\",/Instagram\\\\s([0-9\\\\.]+)/],[\"ios-webview\",/AppleWebKit\\\\/([0-9\\\\.]+).*Mobile/],[\"ios-webview\",/AppleWebKit\\\\/([0-9\\\\.]+).*Gecko\\\\)$/],[\"searchbot\",OTe]],kee=[[\"iOS\",/iP(hone|od|ad)/],[\"Android OS\",/Android/],[\"BlackBerry OS\",/BlackBerry|BB10/],[\"Windows Mobile\",/IEMobile/],[\"Amazon OS\",/Kindle/],[\"Windows 3.11\",/Win16/],[\"Windows 95\",/(Windows 95)|(Win95)|(Windows_95)/],[\"Windows 98\",/(Windows 98)|(Win98)/],[\"Windows 2000\",/(Windows NT 5.0)|(Windows 2000)/],[\"Windows XP\",/(Windows NT 5.1)|(Windows XP)/],[\"Windows Server 2003\",/(Windows NT 5.2)/],[\"Windows Vista\",/(Windows NT 6.0)/],[\"Windows 7\",/(Windows NT 6.1)/],[\"Windows 8\",/(Windows NT 6.2)/],[\"Windows 8.1\",/(Windows NT 6.3)/],[\"Windows 10\",/(Windows NT 10.0)/],[\"Windows ME\",/Windows ME/],[\"Open BSD\",/OpenBSD/],[\"Sun OS\",/SunOS/],[\"Chrome OS\",/CrOS/],[\"Linux\",/(Linux)|(X11)/],[\"Mac OS\",/(Mac_PowerPC)|(Macintosh)/],[\"QNX\",/QNX/],[\"BeOS\",/BeOS/],[\"OS/2\",/OS\\\\/2/]]});function v9(t){return Tee(t)}function JF(){let t=v9();return t&&t.os?t.os:void 0}function jTe(){let t=JF();return t?t.toLowerCase().includes(\"android\"):!1}function $Te(){let t=JF();return t?t.toLowerCase().includes(\"ios\")||t.toLowerCase().includes(\"mac\")&&navigator.maxTouchPoints>1:!1}function Iee(){return JF()?jTe()||$Te():!1}function KTe(){let t=v9();return t&&t.name?t.name.toLowerCase()===\"node\":!1}function Ree(){return!KTe()&&!!GTe()}function QF(){return Mee.getWindowMetadata()}var Mee,qs,GTe,Pee,x9,eO=Ve(()=>{u();Mee=br(Eee()),qs=br(See());_ee();GTe=qs.getNavigator,Pee=qs.getLocation,x9=qs.getLocalStorage});function Bee(t){if(typeof t!=\"string\")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Dee(t){return typeof t==\"string\"?t:JSON.stringify(t)}var Fee=Ve(()=>{u()});var Oee,Lee,tO=Ve(()=>{u();Fee();Oee=Bee,Lee=Dee});function nO(t,e){let n=Lee(e),r=x9();r&&r.setItem(t,n)}function b9(t){let e=null,n=null,r=x9();return r&&(n=r.getItem(t)),e=n&&Oee(n),e}function w9(t){let e=x9();e&&e.removeItem(t)}var rO=Ve(()=>{u();tO();eO()});var oO,Nee=Ve(()=>{u();rO();oO=\"WALLETCONNECT_DEEPLINK_CHOICE\"});var Uee=Ve(()=>{u()});var zee=Ve(()=>{u();eO();tO();rO();Nee();Uee()});var Vee,E9,S9=Ve(()=>{u();Vee=[\"session_request\",\"session_update\",\"exchange_key\",\"connect\",\"disconnect\",\"display_uri\",\"modal_closed\",\"transport_open\",\"transport_close\",\"transport_error\"],E9=[\"eth_sendTransaction\",\"eth_signTransaction\",\"eth_sign\",\"eth_signTypedData\",\"eth_signTypedData_v1\",\"eth_signTypedData_v2\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"personal_sign\",\"wallet_addEthereumChain\",\"wallet_switchEthereumChain\",\"wallet_getPermissions\",\"wallet_requestPermissions\",\"wallet_registerOnboarding\",\"wallet_watchAsset\",\"wallet_scanQRCode\"]});var Hee=Qr(()=>{u()});var $ee=Qr((jee,iO)=>{u();(function(t,e){\"use strict\";function n(te,S){if(!te)throw new Error(S||\"Assertion failed\")}function r(te,S){te.super_=S;var _=function(){};_.prototype=S.prototype,te.prototype=new _,te.prototype.constructor=te}function o(te,S,_){if(o.isBN(te))return te;this.negative=0,this.words=null,this.length=0,this.red=null,te!==null&&((S===\"le\"||S===\"be\")&&(_=S,S=10),this._init(te||0,S||10,_||\"be\"))}typeof t==\"object\"?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var a;try{a=Hee().Buffer}catch{}o.isBN=function(S){return S instanceof o?!0:S!==null&&typeof S==\"object\"&&S.constructor.wordSize===o.wordSize&&Array.isArray(S.words)},o.max=function(S,_){return S.cmp(_)>0?S:_},o.min=function(S,_){return S.cmp(_)<0?S:_},o.prototype._init=function(S,_,P){if(typeof S==\"number\")return this._initNumber(S,_,P);if(typeof S==\"object\")return this._initArray(S,_,P);_===\"hex\"&&(_=16),n(_===(_|0)&&_>=2&&_<=36),S=S.toString().replace(/\\\\s+/g,\"\");var z=0;S[0]===\"-\"&&z++,_===16?this._parseHex(S,z):this._parseBase(S,_,z),S[0]===\"-\"&&(this.negative=1),this.strip(),P===\"le\"&&this._initArray(this.toArray(),_,P)},o.prototype._initNumber=function(S,_,P){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[S&67108863],this.length=1):S<4503599627370496?(this.words=[S&67108863,S/67108864&67108863],this.length=2):(n(S<9007199254740992),this.words=[S&67108863,S/67108864&67108863,1],this.length=3),P===\"le\"&&this._initArray(this.toArray(),_,P)},o.prototype._initArray=function(S,_,P){if(n(typeof S.length==\"number\"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var Y,L,U=0;if(P===\"be\")for(z=S.length-1,Y=0;z>=0;z-=3)L=S[z]|S[z-1]<<8|S[z-2]<<16,this.words[Y]|=L<<U&67108863,this.words[Y+1]=L>>>26-U&67108863,U+=24,U>=26&&(U-=26,Y++);else if(P===\"le\")for(z=0,Y=0;z<S.length;z+=3)L=S[z]|S[z+1]<<8|S[z+2]<<16,this.words[Y]|=L<<U&67108863,this.words[Y+1]=L>>>26-U&67108863,U+=24,U>=26&&(U-=26,Y++);return this.strip()};function c(te,S,_){for(var P=0,z=Math.min(te.length,_),Y=S;Y<z;Y++){var L=te.charCodeAt(Y)-48;P<<=4,L>=49&&L<=54?P|=L-49+10:L>=17&&L<=22?P|=L-17+10:P|=L&15}return P}o.prototype._parseHex=function(S,_){this.length=Math.ceil((S.length-_)/6),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var z,Y,L=0;for(P=S.length-6,z=0;P>=_;P-=6)Y=c(S,P,P+6),this.words[z]|=Y<<L&67108863,this.words[z+1]|=Y>>>26-L&4194303,L+=24,L>=26&&(L-=26,z++);P+6!==_&&(Y=c(S,_,P+6),this.words[z]|=Y<<L&67108863,this.words[z+1]|=Y>>>26-L&4194303),this.strip()};function l(te,S,_,P){for(var z=0,Y=Math.min(te.length,_),L=S;L<Y;L++){var U=te.charCodeAt(L)-48;z*=P,U>=49?z+=U-49+10:U>=17?z+=U-17+10:z+=U}return z}o.prototype._parseBase=function(S,_,P){this.words=[0],this.length=1;for(var z=0,Y=1;Y<=67108863;Y*=_)z++;z--,Y=Y/_|0;for(var L=S.length-P,U=L%z,W=Math.min(L,L-U)+P,w=0,I=P;I<W;I+=z)w=l(S,I,I+z,_),this.imuln(Y),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(U!==0){var ye=1;for(w=l(S,I,S.length,_),I=0;I<U;I++)ye*=_;this.imuln(ye),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}},o.prototype.copy=function(S){S.words=new Array(this.length);for(var _=0;_<this.length;_++)S.words[_]=this.words[_];S.length=this.length,S.negative=this.negative,S.red=this.red},o.prototype.clone=function(){var S=new o(null);return this.copy(S),S},o.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"};var f=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(S,_){S=S||10,_=_|0||1;var P;if(S===16||S===\"hex\"){P=\"\";for(var z=0,Y=0,L=0;L<this.length;L++){var U=this.words[L],W=((U<<z|Y)&16777215).toString(16);Y=U>>>24-z&16777215,Y!==0||L!==this.length-1?P=f[6-W.length]+W+P:P=W+P,z+=2,z>=26&&(z-=26,L--)}for(Y!==0&&(P=Y.toString(16)+P);P.length%_!==0;)P=\"0\"+P;return this.negative!==0&&(P=\"-\"+P),P}if(S===(S|0)&&S>=2&&S<=36){var w=p[S],I=m[S];P=\"\";var ye=this.clone();for(ye.negative=0;!ye.isZero();){var ne=ye.modn(I).toString(S);ye=ye.idivn(I),ye.isZero()?P=ne+P:P=f[w-ne.length]+ne+P}for(this.isZero()&&(P=\"0\"+P);P.length%_!==0;)P=\"0\"+P;return this.negative!==0&&(P=\"-\"+P),P}n(!1,\"Base should be between 2 and 36\")},o.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=this.words[1]*67108864:this.length===3&&this.words[2]===1?S+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-S:S},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(S,_){return n(typeof a<\"u\"),this.toArrayLike(a,S,_)},o.prototype.toArray=function(S,_){return this.toArrayLike(Array,S,_)},o.prototype.toArrayLike=function(S,_,P){var z=this.byteLength(),Y=P||Math.max(1,z);n(z<=Y,\"byte array longer than desired length\"),n(Y>0,\"Requested array length <= 0\"),this.strip();var L=_===\"le\",U=new S(Y),W,w,I=this.clone();if(L){for(w=0;!I.isZero();w++)W=I.andln(255),I.iushrn(8),U[w]=W;for(;w<Y;w++)U[w]=0}else{for(w=0;w<Y-z;w++)U[w]=0;for(w=0;!I.isZero();w++)W=I.andln(255),I.iushrn(8),U[Y-w-1]=W}return U},Math.clz32?o.prototype._countBits=function(S){return 32-Math.clz32(S)}:o.prototype._countBits=function(S){var _=S,P=0;return _>=4096&&(P+=13,_>>>=13),_>=64&&(P+=7,_>>>=7),_>=8&&(P+=4,_>>>=4),_>=2&&(P+=2,_>>>=2),P+_},o.prototype._zeroBits=function(S){if(S===0)return 26;var _=S,P=0;return(_&8191)===0&&(P+=13,_>>>=13),(_&127)===0&&(P+=7,_>>>=7),(_&15)===0&&(P+=4,_>>>=4),(_&3)===0&&(P+=2,_>>>=2),(_&1)===0&&P++,P},o.prototype.bitLength=function(){var S=this.words[this.length-1],_=this._countBits(S);return(this.length-1)*26+_};function g(te){for(var S=new Array(te.bitLength()),_=0;_<S.length;_++){var P=_/26|0,z=_%26;S[_]=(te.words[P]&1<<z)>>>z}return S}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,_=0;_<this.length;_++){var P=this._zeroBits(this.words[_]);if(S+=P,P!==26)break}return S},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},o.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var _=0;_<S.length;_++)this.words[_]=this.words[_]|S.words[_];return this.strip()},o.prototype.ior=function(S){return n((this.negative|S.negative)===0),this.iuor(S)},o.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},o.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},o.prototype.iuand=function(S){var _;this.length>S.length?_=S:_=this;for(var P=0;P<_.length;P++)this.words[P]=this.words[P]&S.words[P];return this.length=_.length,this.strip()},o.prototype.iand=function(S){return n((this.negative|S.negative)===0),this.iuand(S)},o.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},o.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},o.prototype.iuxor=function(S){var _,P;this.length>S.length?(_=this,P=S):(_=S,P=this);for(var z=0;z<P.length;z++)this.words[z]=_.words[z]^P.words[z];if(this!==_)for(;z<_.length;z++)this.words[z]=_.words[z];return this.length=_.length,this.strip()},o.prototype.ixor=function(S){return n((this.negative|S.negative)===0),this.iuxor(S)},o.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},o.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},o.prototype.inotn=function(S){n(typeof S==\"number\"&&S>=0);var _=Math.ceil(S/26)|0,P=S%26;this._expand(_),P>0&&_--;for(var z=0;z<_;z++)this.words[z]=~this.words[z]&67108863;return P>0&&(this.words[z]=~this.words[z]&67108863>>26-P),this.strip()},o.prototype.notn=function(S){return this.clone().inotn(S)},o.prototype.setn=function(S,_){n(typeof S==\"number\"&&S>=0);var P=S/26|0,z=S%26;return this._expand(P+1),_?this.words[P]=this.words[P]|1<<z:this.words[P]=this.words[P]&~(1<<z),this.strip()},o.prototype.iadd=function(S){var _;if(this.negative!==0&&S.negative===0)return this.negative=0,_=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,_=this.isub(S),S.negative=1,_._normSign();var P,z;this.length>S.length?(P=this,z=S):(P=S,z=this);for(var Y=0,L=0;L<z.length;L++)_=(P.words[L]|0)+(z.words[L]|0)+Y,this.words[L]=_&67108863,Y=_>>>26;for(;Y!==0&&L<P.length;L++)_=(P.words[L]|0)+Y,this.words[L]=_&67108863,Y=_>>>26;if(this.length=P.length,Y!==0)this.words[this.length]=Y,this.length++;else if(P!==this)for(;L<P.length;L++)this.words[L]=P.words[L];return this},o.prototype.add=function(S){var _;return S.negative!==0&&this.negative===0?(S.negative=0,_=this.sub(S),S.negative^=1,_):S.negative===0&&this.negative!==0?(this.negative=0,_=S.sub(this),this.negative=1,_):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},o.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var _=this.iadd(S);return S.negative=1,_._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var P=this.cmp(S);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var z,Y;P>0?(z=this,Y=S):(z=S,Y=this);for(var L=0,U=0;U<Y.length;U++)_=(z.words[U]|0)-(Y.words[U]|0)+L,L=_>>26,this.words[U]=_&67108863;for(;L!==0&&U<z.length;U++)_=(z.words[U]|0)+L,L=_>>26,this.words[U]=_&67108863;if(L===0&&U<z.length&&z!==this)for(;U<z.length;U++)this.words[U]=z.words[U];return this.length=Math.max(this.length,U),z!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(S){return this.clone().isub(S)};function y(te,S,_){_.negative=S.negative^te.negative;var P=te.length+S.length|0;_.length=P,P=P-1|0;var z=te.words[0]|0,Y=S.words[0]|0,L=z*Y,U=L&67108863,W=L/67108864|0;_.words[0]=U;for(var w=1;w<P;w++){for(var I=W>>>26,ye=W&67108863,ne=Math.min(w,S.length-1),Q=Math.max(0,w-te.length+1);Q<=ne;Q++){var ie=w-Q|0;z=te.words[ie]|0,Y=S.words[Q]|0,L=z*Y+ye,I+=L/67108864|0,ye=L&67108863}_.words[w]=ye|0,W=I|0}return W!==0?_.words[w]=W|0:_.length--,_.strip()}var A=function(S,_,P){var z=S.words,Y=_.words,L=P.words,U=0,W,w,I,ye=z[0]|0,ne=ye&8191,Q=ye>>>13,ie=z[1]|0,ue=ie&8191,q=ie>>>13,Ee=z[2]|0,we=Ee&8191,_e=Ee>>>13,B=z[3]|0,k=B&8191,C=B>>>13,Z=z[4]|0,X=Z&8191,ae=Z>>>13,de=z[5]|0,me=de&8191,Pe=de>>>13,De=z[6]|0,Re=De&8191,qe=De>>>13,et=z[7]|0,ot=et&8191,Qe=et>>>13,xt=z[8]|0,Wt=xt&8191,Vt=xt>>>13,Bt=z[9]|0,nn=Bt&8191,Yt=Bt>>>13,hn=Y[0]|0,Pn=hn&8191,Mn=hn>>>13,Un=Y[1]|0,Wn=Un&8191,Kn=Un>>>13,Se=Y[2]|0,it=Se&8191,Nt=Se>>>13,tn=Y[3]|0,pn=tn&8191,kn=tn>>>13,zn=Y[4]|0,_n=zn&8191,Dn=zn>>>13,_r=Y[5]|0,pr=_r&8191,vr=_r>>>13,vo=Y[6]|0,jr=vo&8191,Mr=vo>>>13,wi=Y[7]|0,fe=wi&8191,Be=wi>>>13,$=Y[8]|0,M=$&8191,re=$>>>13,H=Y[9]|0,he=H&8191,He=H>>>13;P.negative=S.negative^_.negative,P.length=19,W=Math.imul(ne,Pn),w=Math.imul(ne,Mn),w=w+Math.imul(Q,Pn)|0,I=Math.imul(Q,Mn);var nt=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(nt>>>26)|0,nt&=67108863,W=Math.imul(ue,Pn),w=Math.imul(ue,Mn),w=w+Math.imul(q,Pn)|0,I=Math.imul(q,Mn),W=W+Math.imul(ne,Wn)|0,w=w+Math.imul(ne,Kn)|0,w=w+Math.imul(Q,Wn)|0,I=I+Math.imul(Q,Kn)|0;var Rt=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,W=Math.imul(we,Pn),w=Math.imul(we,Mn),w=w+Math.imul(_e,Pn)|0,I=Math.imul(_e,Mn),W=W+Math.imul(ue,Wn)|0,w=w+Math.imul(ue,Kn)|0,w=w+Math.imul(q,Wn)|0,I=I+Math.imul(q,Kn)|0,W=W+Math.imul(ne,it)|0,w=w+Math.imul(ne,Nt)|0,w=w+Math.imul(Q,it)|0,I=I+Math.imul(Q,Nt)|0;var Ft=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,W=Math.imul(k,Pn),w=Math.imul(k,Mn),w=w+Math.imul(C,Pn)|0,I=Math.imul(C,Mn),W=W+Math.imul(we,Wn)|0,w=w+Math.imul(we,Kn)|0,w=w+Math.imul(_e,Wn)|0,I=I+Math.imul(_e,Kn)|0,W=W+Math.imul(ue,it)|0,w=w+Math.imul(ue,Nt)|0,w=w+Math.imul(q,it)|0,I=I+Math.imul(q,Nt)|0,W=W+Math.imul(ne,pn)|0,w=w+Math.imul(ne,kn)|0,w=w+Math.imul(Q,pn)|0,I=I+Math.imul(Q,kn)|0;var Tn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,W=Math.imul(X,Pn),w=Math.imul(X,Mn),w=w+Math.imul(ae,Pn)|0,I=Math.imul(ae,Mn),W=W+Math.imul(k,Wn)|0,w=w+Math.imul(k,Kn)|0,w=w+Math.imul(C,Wn)|0,I=I+Math.imul(C,Kn)|0,W=W+Math.imul(we,it)|0,w=w+Math.imul(we,Nt)|0,w=w+Math.imul(_e,it)|0,I=I+Math.imul(_e,Nt)|0,W=W+Math.imul(ue,pn)|0,w=w+Math.imul(ue,kn)|0,w=w+Math.imul(q,pn)|0,I=I+Math.imul(q,kn)|0,W=W+Math.imul(ne,_n)|0,w=w+Math.imul(ne,Dn)|0,w=w+Math.imul(Q,_n)|0,I=I+Math.imul(Q,Dn)|0;var $t=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+($t>>>26)|0,$t&=67108863,W=Math.imul(me,Pn),w=Math.imul(me,Mn),w=w+Math.imul(Pe,Pn)|0,I=Math.imul(Pe,Mn),W=W+Math.imul(X,Wn)|0,w=w+Math.imul(X,Kn)|0,w=w+Math.imul(ae,Wn)|0,I=I+Math.imul(ae,Kn)|0,W=W+Math.imul(k,it)|0,w=w+Math.imul(k,Nt)|0,w=w+Math.imul(C,it)|0,I=I+Math.imul(C,Nt)|0,W=W+Math.imul(we,pn)|0,w=w+Math.imul(we,kn)|0,w=w+Math.imul(_e,pn)|0,I=I+Math.imul(_e,kn)|0,W=W+Math.imul(ue,_n)|0,w=w+Math.imul(ue,Dn)|0,w=w+Math.imul(q,_n)|0,I=I+Math.imul(q,Dn)|0,W=W+Math.imul(ne,pr)|0,w=w+Math.imul(ne,vr)|0,w=w+Math.imul(Q,pr)|0,I=I+Math.imul(Q,vr)|0;var Gn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,W=Math.imul(Re,Pn),w=Math.imul(Re,Mn),w=w+Math.imul(qe,Pn)|0,I=Math.imul(qe,Mn),W=W+Math.imul(me,Wn)|0,w=w+Math.imul(me,Kn)|0,w=w+Math.imul(Pe,Wn)|0,I=I+Math.imul(Pe,Kn)|0,W=W+Math.imul(X,it)|0,w=w+Math.imul(X,Nt)|0,w=w+Math.imul(ae,it)|0,I=I+Math.imul(ae,Nt)|0,W=W+Math.imul(k,pn)|0,w=w+Math.imul(k,kn)|0,w=w+Math.imul(C,pn)|0,I=I+Math.imul(C,kn)|0,W=W+Math.imul(we,_n)|0,w=w+Math.imul(we,Dn)|0,w=w+Math.imul(_e,_n)|0,I=I+Math.imul(_e,Dn)|0,W=W+Math.imul(ue,pr)|0,w=w+Math.imul(ue,vr)|0,w=w+Math.imul(q,pr)|0,I=I+Math.imul(q,vr)|0,W=W+Math.imul(ne,jr)|0,w=w+Math.imul(ne,Mr)|0,w=w+Math.imul(Q,jr)|0,I=I+Math.imul(Q,Mr)|0;var cn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(cn>>>26)|0,cn&=67108863,W=Math.imul(ot,Pn),w=Math.imul(ot,Mn),w=w+Math.imul(Qe,Pn)|0,I=Math.imul(Qe,Mn),W=W+Math.imul(Re,Wn)|0,w=w+Math.imul(Re,Kn)|0,w=w+Math.imul(qe,Wn)|0,I=I+Math.imul(qe,Kn)|0,W=W+Math.imul(me,it)|0,w=w+Math.imul(me,Nt)|0,w=w+Math.imul(Pe,it)|0,I=I+Math.imul(Pe,Nt)|0,W=W+Math.imul(X,pn)|0,w=w+Math.imul(X,kn)|0,w=w+Math.imul(ae,pn)|0,I=I+Math.imul(ae,kn)|0,W=W+Math.imul(k,_n)|0,w=w+Math.imul(k,Dn)|0,w=w+Math.imul(C,_n)|0,I=I+Math.imul(C,Dn)|0,W=W+Math.imul(we,pr)|0,w=w+Math.imul(we,vr)|0,w=w+Math.imul(_e,pr)|0,I=I+Math.imul(_e,vr)|0,W=W+Math.imul(ue,jr)|0,w=w+Math.imul(ue,Mr)|0,w=w+Math.imul(q,jr)|0,I=I+Math.imul(q,Mr)|0,W=W+Math.imul(ne,fe)|0,w=w+Math.imul(ne,Be)|0,w=w+Math.imul(Q,fe)|0,I=I+Math.imul(Q,Be)|0;var Fn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,W=Math.imul(Wt,Pn),w=Math.imul(Wt,Mn),w=w+Math.imul(Vt,Pn)|0,I=Math.imul(Vt,Mn),W=W+Math.imul(ot,Wn)|0,w=w+Math.imul(ot,Kn)|0,w=w+Math.imul(Qe,Wn)|0,I=I+Math.imul(Qe,Kn)|0,W=W+Math.imul(Re,it)|0,w=w+Math.imul(Re,Nt)|0,w=w+Math.imul(qe,it)|0,I=I+Math.imul(qe,Nt)|0,W=W+Math.imul(me,pn)|0,w=w+Math.imul(me,kn)|0,w=w+Math.imul(Pe,pn)|0,I=I+Math.imul(Pe,kn)|0,W=W+Math.imul(X,_n)|0,w=w+Math.imul(X,Dn)|0,w=w+Math.imul(ae,_n)|0,I=I+Math.imul(ae,Dn)|0,W=W+Math.imul(k,pr)|0,w=w+Math.imul(k,vr)|0,w=w+Math.imul(C,pr)|0,I=I+Math.imul(C,vr)|0,W=W+Math.imul(we,jr)|0,w=w+Math.imul(we,Mr)|0,w=w+Math.imul(_e,jr)|0,I=I+Math.imul(_e,Mr)|0,W=W+Math.imul(ue,fe)|0,w=w+Math.imul(ue,Be)|0,w=w+Math.imul(q,fe)|0,I=I+Math.imul(q,Be)|0,W=W+Math.imul(ne,M)|0,w=w+Math.imul(ne,re)|0,w=w+Math.imul(Q,M)|0,I=I+Math.imul(Q,re)|0;var Nn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,W=Math.imul(nn,Pn),w=Math.imul(nn,Mn),w=w+Math.imul(Yt,Pn)|0,I=Math.imul(Yt,Mn),W=W+Math.imul(Wt,Wn)|0,w=w+Math.imul(Wt,Kn)|0,w=w+Math.imul(Vt,Wn)|0,I=I+Math.imul(Vt,Kn)|0,W=W+Math.imul(ot,it)|0,w=w+Math.imul(ot,Nt)|0,w=w+Math.imul(Qe,it)|0,I=I+Math.imul(Qe,Nt)|0,W=W+Math.imul(Re,pn)|0,w=w+Math.imul(Re,kn)|0,w=w+Math.imul(qe,pn)|0,I=I+Math.imul(qe,kn)|0,W=W+Math.imul(me,_n)|0,w=w+Math.imul(me,Dn)|0,w=w+Math.imul(Pe,_n)|0,I=I+Math.imul(Pe,Dn)|0,W=W+Math.imul(X,pr)|0,w=w+Math.imul(X,vr)|0,w=w+Math.imul(ae,pr)|0,I=I+Math.imul(ae,vr)|0,W=W+Math.imul(k,jr)|0,w=w+Math.imul(k,Mr)|0,w=w+Math.imul(C,jr)|0,I=I+Math.imul(C,Mr)|0,W=W+Math.imul(we,fe)|0,w=w+Math.imul(we,Be)|0,w=w+Math.imul(_e,fe)|0,I=I+Math.imul(_e,Be)|0,W=W+Math.imul(ue,M)|0,w=w+Math.imul(ue,re)|0,w=w+Math.imul(q,M)|0,I=I+Math.imul(q,re)|0,W=W+Math.imul(ne,he)|0,w=w+Math.imul(ne,He)|0,w=w+Math.imul(Q,he)|0,I=I+Math.imul(Q,He)|0;var Hn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,W=Math.imul(nn,Wn),w=Math.imul(nn,Kn),w=w+Math.imul(Yt,Wn)|0,I=Math.imul(Yt,Kn),W=W+Math.imul(Wt,it)|0,w=w+Math.imul(Wt,Nt)|0,w=w+Math.imul(Vt,it)|0,I=I+Math.imul(Vt,Nt)|0,W=W+Math.imul(ot,pn)|0,w=w+Math.imul(ot,kn)|0,w=w+Math.imul(Qe,pn)|0,I=I+Math.imul(Qe,kn)|0,W=W+Math.imul(Re,_n)|0,w=w+Math.imul(Re,Dn)|0,w=w+Math.imul(qe,_n)|0,I=I+Math.imul(qe,Dn)|0,W=W+Math.imul(me,pr)|0,w=w+Math.imul(me,vr)|0,w=w+Math.imul(Pe,pr)|0,I=I+Math.imul(Pe,vr)|0,W=W+Math.imul(X,jr)|0,w=w+Math.imul(X,Mr)|0,w=w+Math.imul(ae,jr)|0,I=I+Math.imul(ae,Mr)|0,W=W+Math.imul(k,fe)|0,w=w+Math.imul(k,Be)|0,w=w+Math.imul(C,fe)|0,I=I+Math.imul(C,Be)|0,W=W+Math.imul(we,M)|0,w=w+Math.imul(we,re)|0,w=w+Math.imul(_e,M)|0,I=I+Math.imul(_e,re)|0,W=W+Math.imul(ue,he)|0,w=w+Math.imul(ue,He)|0,w=w+Math.imul(q,he)|0,I=I+Math.imul(q,He)|0;var jn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(jn>>>26)|0,jn&=67108863,W=Math.imul(nn,it),w=Math.imul(nn,Nt),w=w+Math.imul(Yt,it)|0,I=Math.imul(Yt,Nt),W=W+Math.imul(Wt,pn)|0,w=w+Math.imul(Wt,kn)|0,w=w+Math.imul(Vt,pn)|0,I=I+Math.imul(Vt,kn)|0,W=W+Math.imul(ot,_n)|0,w=w+Math.imul(ot,Dn)|0,w=w+Math.imul(Qe,_n)|0,I=I+Math.imul(Qe,Dn)|0,W=W+Math.imul(Re,pr)|0,w=w+Math.imul(Re,vr)|0,w=w+Math.imul(qe,pr)|0,I=I+Math.imul(qe,vr)|0,W=W+Math.imul(me,jr)|0,w=w+Math.imul(me,Mr)|0,w=w+Math.imul(Pe,jr)|0,I=I+Math.imul(Pe,Mr)|0,W=W+Math.imul(X,fe)|0,w=w+Math.imul(X,Be)|0,w=w+Math.imul(ae,fe)|0,I=I+Math.imul(ae,Be)|0,W=W+Math.imul(k,M)|0,w=w+Math.imul(k,re)|0,w=w+Math.imul(C,M)|0,I=I+Math.imul(C,re)|0,W=W+Math.imul(we,he)|0,w=w+Math.imul(we,He)|0,w=w+Math.imul(_e,he)|0,I=I+Math.imul(_e,He)|0;var In=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(In>>>26)|0,In&=67108863,W=Math.imul(nn,pn),w=Math.imul(nn,kn),w=w+Math.imul(Yt,pn)|0,I=Math.imul(Yt,kn),W=W+Math.imul(Wt,_n)|0,w=w+Math.imul(Wt,Dn)|0,w=w+Math.imul(Vt,_n)|0,I=I+Math.imul(Vt,Dn)|0,W=W+Math.imul(ot,pr)|0,w=w+Math.imul(ot,vr)|0,w=w+Math.imul(Qe,pr)|0,I=I+Math.imul(Qe,vr)|0,W=W+Math.imul(Re,jr)|0,w=w+Math.imul(Re,Mr)|0,w=w+Math.imul(qe,jr)|0,I=I+Math.imul(qe,Mr)|0,W=W+Math.imul(me,fe)|0,w=w+Math.imul(me,Be)|0,w=w+Math.imul(Pe,fe)|0,I=I+Math.imul(Pe,Be)|0,W=W+Math.imul(X,M)|0,w=w+Math.imul(X,re)|0,w=w+Math.imul(ae,M)|0,I=I+Math.imul(ae,re)|0,W=W+Math.imul(k,he)|0,w=w+Math.imul(k,He)|0,w=w+Math.imul(C,he)|0,I=I+Math.imul(C,He)|0;var sn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(sn>>>26)|0,sn&=67108863,W=Math.imul(nn,_n),w=Math.imul(nn,Dn),w=w+Math.imul(Yt,_n)|0,I=Math.imul(Yt,Dn),W=W+Math.imul(Wt,pr)|0,w=w+Math.imul(Wt,vr)|0,w=w+Math.imul(Vt,pr)|0,I=I+Math.imul(Vt,vr)|0,W=W+Math.imul(ot,jr)|0,w=w+Math.imul(ot,Mr)|0,w=w+Math.imul(Qe,jr)|0,I=I+Math.imul(Qe,Mr)|0,W=W+Math.imul(Re,fe)|0,w=w+Math.imul(Re,Be)|0,w=w+Math.imul(qe,fe)|0,I=I+Math.imul(qe,Be)|0,W=W+Math.imul(me,M)|0,w=w+Math.imul(me,re)|0,w=w+Math.imul(Pe,M)|0,I=I+Math.imul(Pe,re)|0,W=W+Math.imul(X,he)|0,w=w+Math.imul(X,He)|0,w=w+Math.imul(ae,he)|0,I=I+Math.imul(ae,He)|0;var xn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(xn>>>26)|0,xn&=67108863,W=Math.imul(nn,pr),w=Math.imul(nn,vr),w=w+Math.imul(Yt,pr)|0,I=Math.imul(Yt,vr),W=W+Math.imul(Wt,jr)|0,w=w+Math.imul(Wt,Mr)|0,w=w+Math.imul(Vt,jr)|0,I=I+Math.imul(Vt,Mr)|0,W=W+Math.imul(ot,fe)|0,w=w+Math.imul(ot,Be)|0,w=w+Math.imul(Qe,fe)|0,I=I+Math.imul(Qe,Be)|0,W=W+Math.imul(Re,M)|0,w=w+Math.imul(Re,re)|0,w=w+Math.imul(qe,M)|0,I=I+Math.imul(qe,re)|0,W=W+Math.imul(me,he)|0,w=w+Math.imul(me,He)|0,w=w+Math.imul(Pe,he)|0,I=I+Math.imul(Pe,He)|0;var Kt=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,W=Math.imul(nn,jr),w=Math.imul(nn,Mr),w=w+Math.imul(Yt,jr)|0,I=Math.imul(Yt,Mr),W=W+Math.imul(Wt,fe)|0,w=w+Math.imul(Wt,Be)|0,w=w+Math.imul(Vt,fe)|0,I=I+Math.imul(Vt,Be)|0,W=W+Math.imul(ot,M)|0,w=w+Math.imul(ot,re)|0,w=w+Math.imul(Qe,M)|0,I=I+Math.imul(Qe,re)|0,W=W+Math.imul(Re,he)|0,w=w+Math.imul(Re,He)|0,w=w+Math.imul(qe,he)|0,I=I+Math.imul(qe,He)|0;var rn=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(rn>>>26)|0,rn&=67108863,W=Math.imul(nn,fe),w=Math.imul(nn,Be),w=w+Math.imul(Yt,fe)|0,I=Math.imul(Yt,Be),W=W+Math.imul(Wt,M)|0,w=w+Math.imul(Wt,re)|0,w=w+Math.imul(Vt,M)|0,I=I+Math.imul(Vt,re)|0,W=W+Math.imul(ot,he)|0,w=w+Math.imul(ot,He)|0,w=w+Math.imul(Qe,he)|0,I=I+Math.imul(Qe,He)|0;var Ht=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,W=Math.imul(nn,M),w=Math.imul(nn,re),w=w+Math.imul(Yt,M)|0,I=Math.imul(Yt,re),W=W+Math.imul(Wt,he)|0,w=w+Math.imul(Wt,He)|0,w=w+Math.imul(Vt,he)|0,I=I+Math.imul(Vt,He)|0;var Gt=(U+W|0)+((w&8191)<<13)|0;U=(I+(w>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,W=Math.imul(nn,he),w=Math.imul(nn,He),w=w+Math.imul(Yt,he)|0,I=Math.imul(Yt,He);var vt=(U+W|0)+((w&8191)<<13)|0;return U=(I+(w>>>13)|0)+(vt>>>26)|0,vt&=67108863,L[0]=nt,L[1]=Rt,L[2]=Ft,L[3]=Tn,L[4]=$t,L[5]=Gn,L[6]=cn,L[7]=Fn,L[8]=Nn,L[9]=Hn,L[10]=jn,L[11]=In,L[12]=sn,L[13]=xn,L[14]=Kt,L[15]=rn,L[16]=Ht,L[17]=Gt,L[18]=vt,U!==0&&(L[19]=U,P.length++),P};Math.imul||(A=y);function T(te,S,_){_.negative=S.negative^te.negative,_.length=te.length+S.length;for(var P=0,z=0,Y=0;Y<_.length-1;Y++){var L=z;z=0;for(var U=P&67108863,W=Math.min(Y,S.length-1),w=Math.max(0,Y-te.length+1);w<=W;w++){var I=Y-w,ye=te.words[I]|0,ne=S.words[w]|0,Q=ye*ne,ie=Q&67108863;L=L+(Q/67108864|0)|0,ie=ie+U|0,U=ie&67108863,L=L+(ie>>>26)|0,z+=L>>>26,L&=67108863}_.words[Y]=U,P=L,L=z}return P!==0?_.words[Y]=P:_.length--,_.strip()}function R(te,S,_){var P=new K;return P.mulp(te,S,_)}o.prototype.mulTo=function(S,_){var P,z=this.length+S.length;return this.length===10&&S.length===10?P=A(this,S,_):z<63?P=y(this,S,_):z<1024?P=T(this,S,_):P=R(this,S,_),P};function K(te,S){this.x=te,this.y=S}K.prototype.makeRBT=function(S){for(var _=new Array(S),P=o.prototype._countBits(S)-1,z=0;z<S;z++)_[z]=this.revBin(z,P,S);return _},K.prototype.revBin=function(S,_,P){if(S===0||S===P-1)return S;for(var z=0,Y=0;Y<_;Y++)z|=(S&1)<<_-Y-1,S>>=1;return z},K.prototype.permute=function(S,_,P,z,Y,L){for(var U=0;U<L;U++)z[U]=_[S[U]],Y[U]=P[S[U]]},K.prototype.transform=function(S,_,P,z,Y,L){this.permute(L,S,_,P,z,Y);for(var U=1;U<Y;U<<=1)for(var W=U<<1,w=Math.cos(2*Math.PI/W),I=Math.sin(2*Math.PI/W),ye=0;ye<Y;ye+=W)for(var ne=w,Q=I,ie=0;ie<U;ie++){var ue=P[ye+ie],q=z[ye+ie],Ee=P[ye+ie+U],we=z[ye+ie+U],_e=ne*Ee-Q*we;we=ne*we+Q*Ee,Ee=_e,P[ye+ie]=ue+Ee,z[ye+ie]=q+we,P[ye+ie+U]=ue-Ee,z[ye+ie+U]=q-we,ie!==W&&(_e=w*ne-I*Q,Q=w*Q+I*ne,ne=_e)}},K.prototype.guessLen13b=function(S,_){var P=Math.max(_,S)|1,z=P&1,Y=0;for(P=P/2|0;P;P=P>>>1)Y++;return 1<<Y+1+z},K.prototype.conjugate=function(S,_,P){if(!(P<=1))for(var z=0;z<P/2;z++){var Y=S[z];S[z]=S[P-z-1],S[P-z-1]=Y,Y=_[z],_[z]=-_[P-z-1],_[P-z-1]=-Y}},K.prototype.normalize13b=function(S,_){for(var P=0,z=0;z<_/2;z++){var Y=Math.round(S[2*z+1]/_)*8192+Math.round(S[2*z]/_)+P;S[z]=Y&67108863,Y<67108864?P=0:P=Y/67108864|0}return S},K.prototype.convert13b=function(S,_,P,z){for(var Y=0,L=0;L<_;L++)Y=Y+(S[L]|0),P[2*L]=Y&8191,Y=Y>>>13,P[2*L+1]=Y&8191,Y=Y>>>13;for(L=2*_;L<z;++L)P[L]=0;n(Y===0),n((Y&-8192)===0)},K.prototype.stub=function(S){for(var _=new Array(S),P=0;P<S;P++)_[P]=0;return _},K.prototype.mulp=function(S,_,P){var z=2*this.guessLen13b(S.length,_.length),Y=this.makeRBT(z),L=this.stub(z),U=new Array(z),W=new Array(z),w=new Array(z),I=new Array(z),ye=new Array(z),ne=new Array(z),Q=P.words;Q.length=z,this.convert13b(S.words,S.length,U,z),this.convert13b(_.words,_.length,I,z),this.transform(U,L,W,w,z,Y),this.transform(I,L,ye,ne,z,Y);for(var ie=0;ie<z;ie++){var ue=W[ie]*ye[ie]-w[ie]*ne[ie];w[ie]=W[ie]*ne[ie]+w[ie]*ye[ie],W[ie]=ue}return this.conjugate(W,w,z),this.transform(W,w,Q,L,z,Y),this.conjugate(Q,L,z),this.normalize13b(Q,z),P.negative=S.negative^_.negative,P.length=S.length+_.length,P.strip()},o.prototype.mul=function(S){var _=new o(null);return _.words=new Array(this.length+S.length),this.mulTo(S,_)},o.prototype.mulf=function(S){var _=new o(null);return _.words=new Array(this.length+S.length),R(this,S,_)},o.prototype.imul=function(S){return this.clone().mulTo(S,this)},o.prototype.imuln=function(S){n(typeof S==\"number\"),n(S<67108864);for(var _=0,P=0;P<this.length;P++){var z=(this.words[P]|0)*S,Y=(z&67108863)+(_&67108863);_>>=26,_+=z/67108864|0,_+=Y>>>26,this.words[P]=Y&67108863}return _!==0&&(this.words[P]=_,this.length++),this},o.prototype.muln=function(S){return this.clone().imuln(S)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(S){var _=g(S);if(_.length===0)return new o(1);for(var P=this,z=0;z<_.length&&_[z]===0;z++,P=P.sqr());if(++z<_.length)for(var Y=P.sqr();z<_.length;z++,Y=Y.sqr())_[z]!==0&&(P=P.mul(Y));return P},o.prototype.iushln=function(S){n(typeof S==\"number\"&&S>=0);var _=S%26,P=(S-_)/26,z=67108863>>>26-_<<26-_,Y;if(_!==0){var L=0;for(Y=0;Y<this.length;Y++){var U=this.words[Y]&z,W=(this.words[Y]|0)-U<<_;this.words[Y]=W|L,L=U>>>26-_}L&&(this.words[Y]=L,this.length++)}if(P!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+P]=this.words[Y];for(Y=0;Y<P;Y++)this.words[Y]=0;this.length+=P}return this.strip()},o.prototype.ishln=function(S){return n(this.negative===0),this.iushln(S)},o.prototype.iushrn=function(S,_,P){n(typeof S==\"number\"&&S>=0);var z;_?z=(_-_%26)/26:z=0;var Y=S%26,L=Math.min((S-Y)/26,this.length),U=67108863^67108863>>>Y<<Y,W=P;if(z-=L,z=Math.max(0,z),W){for(var w=0;w<L;w++)W.words[w]=this.words[w];W.length=L}if(L!==0)if(this.length>L)for(this.length-=L,w=0;w<this.length;w++)this.words[w]=this.words[w+L];else this.words[0]=0,this.length=1;var I=0;for(w=this.length-1;w>=0&&(I!==0||w>=z);w--){var ye=this.words[w]|0;this.words[w]=I<<26-Y|ye>>>Y,I=ye&U}return W&&I!==0&&(W.words[W.length++]=I),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(S,_,P){return n(this.negative===0),this.iushrn(S,_,P)},o.prototype.shln=function(S){return this.clone().ishln(S)},o.prototype.ushln=function(S){return this.clone().iushln(S)},o.prototype.shrn=function(S){return this.clone().ishrn(S)},o.prototype.ushrn=function(S){return this.clone().iushrn(S)},o.prototype.testn=function(S){n(typeof S==\"number\"&&S>=0);var _=S%26,P=(S-_)/26,z=1<<_;if(this.length<=P)return!1;var Y=this.words[P];return!!(Y&z)},o.prototype.imaskn=function(S){n(typeof S==\"number\"&&S>=0);var _=S%26,P=(S-_)/26;if(n(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=P)return this;if(_!==0&&P++,this.length=Math.min(P,this.length),_!==0){var z=67108863^67108863>>>_<<_;this.words[this.length-1]&=z}return this.strip()},o.prototype.maskn=function(S){return this.clone().imaskn(S)},o.prototype.iaddn=function(S){return n(typeof S==\"number\"),n(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(this.words[0]|0)<S?(this.words[0]=S-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},o.prototype._iaddn=function(S){this.words[0]+=S;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},o.prototype.isubn=function(S){if(n(typeof S==\"number\"),n(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},o.prototype.addn=function(S){return this.clone().iaddn(S)},o.prototype.subn=function(S){return this.clone().isubn(S)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(S,_,P){var z=S.length+P,Y;this._expand(z);var L,U=0;for(Y=0;Y<S.length;Y++){L=(this.words[Y+P]|0)+U;var W=(S.words[Y]|0)*_;L-=W&67108863,U=(L>>26)-(W/67108864|0),this.words[Y+P]=L&67108863}for(;Y<this.length-P;Y++)L=(this.words[Y+P]|0)+U,U=L>>26,this.words[Y+P]=L&67108863;if(U===0)return this.strip();for(n(U===-1),U=0,Y=0;Y<this.length;Y++)L=-(this.words[Y]|0)+U,U=L>>26,this.words[Y]=L&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(S,_){var P=this.length-S.length,z=this.clone(),Y=S,L=Y.words[Y.length-1]|0,U=this._countBits(L);P=26-U,P!==0&&(Y=Y.ushln(P),z.iushln(P),L=Y.words[Y.length-1]|0);var W=z.length-Y.length,w;if(_!==\"mod\"){w=new o(null),w.length=W+1,w.words=new Array(w.length);for(var I=0;I<w.length;I++)w.words[I]=0}var ye=z.clone()._ishlnsubmul(Y,1,W);ye.negative===0&&(z=ye,w&&(w.words[W]=1));for(var ne=W-1;ne>=0;ne--){var Q=(z.words[Y.length+ne]|0)*67108864+(z.words[Y.length+ne-1]|0);for(Q=Math.min(Q/L|0,67108863),z._ishlnsubmul(Y,Q,ne);z.negative!==0;)Q--,z.negative=0,z._ishlnsubmul(Y,1,ne),z.isZero()||(z.negative^=1);w&&(w.words[ne]=Q)}return w&&w.strip(),z.strip(),_!==\"div\"&&P!==0&&z.iushrn(P),{div:w||null,mod:z}},o.prototype.divmod=function(S,_,P){if(n(!S.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var z,Y,L;return this.negative!==0&&S.negative===0?(L=this.neg().divmod(S,_),_!==\"mod\"&&(z=L.div.neg()),_!==\"div\"&&(Y=L.mod.neg(),P&&Y.negative!==0&&Y.iadd(S)),{div:z,mod:Y}):this.negative===0&&S.negative!==0?(L=this.divmod(S.neg(),_),_!==\"mod\"&&(z=L.div.neg()),{div:z,mod:L.mod}):(this.negative&S.negative)!==0?(L=this.neg().divmod(S.neg(),_),_!==\"div\"&&(Y=L.mod.neg(),P&&Y.negative!==0&&Y.isub(S)),{div:L.div,mod:Y}):S.length>this.length||this.cmp(S)<0?{div:new o(0),mod:this}:S.length===1?_===\"div\"?{div:this.divn(S.words[0]),mod:null}:_===\"mod\"?{div:null,mod:new o(this.modn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new o(this.modn(S.words[0]))}:this._wordDiv(S,_)},o.prototype.div=function(S){return this.divmod(S,\"div\",!1).div},o.prototype.mod=function(S){return this.divmod(S,\"mod\",!1).mod},o.prototype.umod=function(S){return this.divmod(S,\"mod\",!0).mod},o.prototype.divRound=function(S){var _=this.divmod(S);if(_.mod.isZero())return _.div;var P=_.div.negative!==0?_.mod.isub(S):_.mod,z=S.ushrn(1),Y=S.andln(1),L=P.cmp(z);return L<0||Y===1&&L===0?_.div:_.div.negative!==0?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modn=function(S){n(S<=67108863);for(var _=(1<<26)%S,P=0,z=this.length-1;z>=0;z--)P=(_*P+(this.words[z]|0))%S;return P},o.prototype.idivn=function(S){n(S<=67108863);for(var _=0,P=this.length-1;P>=0;P--){var z=(this.words[P]|0)+_*67108864;this.words[P]=z/S|0,_=z%S}return this.strip()},o.prototype.divn=function(S){return this.clone().idivn(S)},o.prototype.egcd=function(S){n(S.negative===0),n(!S.isZero());var _=this,P=S.clone();_.negative!==0?_=_.umod(S):_=_.clone();for(var z=new o(1),Y=new o(0),L=new o(0),U=new o(1),W=0;_.isEven()&&P.isEven();)_.iushrn(1),P.iushrn(1),++W;for(var w=P.clone(),I=_.clone();!_.isZero();){for(var ye=0,ne=1;(_.words[0]&ne)===0&&ye<26;++ye,ne<<=1);if(ye>0)for(_.iushrn(ye);ye-- >0;)(z.isOdd()||Y.isOdd())&&(z.iadd(w),Y.isub(I)),z.iushrn(1),Y.iushrn(1);for(var Q=0,ie=1;(P.words[0]&ie)===0&&Q<26;++Q,ie<<=1);if(Q>0)for(P.iushrn(Q);Q-- >0;)(L.isOdd()||U.isOdd())&&(L.iadd(w),U.isub(I)),L.iushrn(1),U.iushrn(1);_.cmp(P)>=0?(_.isub(P),z.isub(L),Y.isub(U)):(P.isub(_),L.isub(z),U.isub(Y))}return{a:L,b:U,gcd:P.iushln(W)}},o.prototype._invmp=function(S){n(S.negative===0),n(!S.isZero());var _=this,P=S.clone();_.negative!==0?_=_.umod(S):_=_.clone();for(var z=new o(1),Y=new o(0),L=P.clone();_.cmpn(1)>0&&P.cmpn(1)>0;){for(var U=0,W=1;(_.words[0]&W)===0&&U<26;++U,W<<=1);if(U>0)for(_.iushrn(U);U-- >0;)z.isOdd()&&z.iadd(L),z.iushrn(1);for(var w=0,I=1;(P.words[0]&I)===0&&w<26;++w,I<<=1);if(w>0)for(P.iushrn(w);w-- >0;)Y.isOdd()&&Y.iadd(L),Y.iushrn(1);_.cmp(P)>=0?(_.isub(P),z.isub(Y)):(P.isub(_),Y.isub(z))}var ye;return _.cmpn(1)===0?ye=z:ye=Y,ye.cmpn(0)<0&&ye.iadd(S),ye},o.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var _=this.clone(),P=S.clone();_.negative=0,P.negative=0;for(var z=0;_.isEven()&&P.isEven();z++)_.iushrn(1),P.iushrn(1);do{for(;_.isEven();)_.iushrn(1);for(;P.isEven();)P.iushrn(1);var Y=_.cmp(P);if(Y<0){var L=_;_=P,P=L}else if(Y===0||P.cmpn(1)===0)break;_.isub(P)}while(!0);return P.iushln(z)},o.prototype.invm=function(S){return this.egcd(S).a.umod(S)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(S){return this.words[0]&S},o.prototype.bincn=function(S){n(typeof S==\"number\");var _=S%26,P=(S-_)/26,z=1<<_;if(this.length<=P)return this._expand(P+1),this.words[P]|=z,this;for(var Y=z,L=P;Y!==0&&L<this.length;L++){var U=this.words[L]|0;U+=Y,Y=U>>>26,U&=67108863,this.words[L]=U}return Y!==0&&(this.words[L]=Y,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(S){var _=S<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;this.strip();var P;if(this.length>1)P=1;else{_&&(S=-S),n(S<=67108863,\"Number is too big\");var z=this.words[0]|0;P=z===S?0:z<S?-1:1}return this.negative!==0?-P|0:P},o.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var _=this.ucmp(S);return this.negative!==0?-_|0:_},o.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var _=0,P=this.length-1;P>=0;P--){var z=this.words[P]|0,Y=S.words[P]|0;if(z!==Y){z<Y?_=-1:z>Y&&(_=1);break}}return _},o.prototype.gtn=function(S){return this.cmpn(S)===1},o.prototype.gt=function(S){return this.cmp(S)===1},o.prototype.gten=function(S){return this.cmpn(S)>=0},o.prototype.gte=function(S){return this.cmp(S)>=0},o.prototype.ltn=function(S){return this.cmpn(S)===-1},o.prototype.lt=function(S){return this.cmp(S)===-1},o.prototype.lten=function(S){return this.cmpn(S)<=0},o.prototype.lte=function(S){return this.cmp(S)<=0},o.prototype.eqn=function(S){return this.cmpn(S)===0},o.prototype.eq=function(S){return this.cmp(S)===0},o.red=function(S){return new le(S)},o.prototype.toRed=function(S){return n(!this.red,\"Already a number in reduction context\"),n(this.negative===0,\"red works only with positives\"),S.convertTo(this)._forceRed(S)},o.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},o.prototype._forceRed=function(S){return this.red=S,this},o.prototype.forceRed=function(S){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(S)},o.prototype.redAdd=function(S){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,S)},o.prototype.redIAdd=function(S){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,S)},o.prototype.redSub=function(S){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,S)},o.prototype.redISub=function(S){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,S)},o.prototype.redShl=function(S){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,S)},o.prototype.redMul=function(S){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,S),this.red.mul(this,S)},o.prototype.redIMul=function(S){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,S),this.red.imul(this,S)},o.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(S){return n(this.red&&!S.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,S)};var O={k256:null,p224:null,p192:null,p25519:null};function V(te,S){this.name=te,this.p=new o(S,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var S=new o(null);return S.words=new Array(Math.ceil(this.n/13)),S},V.prototype.ireduce=function(S){var _=S,P;do this.split(_,this.tmp),_=this.imulK(_),_=_.iadd(this.tmp),P=_.bitLength();while(P>this.n);var z=P<this.n?-1:_.ucmp(this.p);return z===0?(_.words[0]=0,_.length=1):z>0?_.isub(this.p):_.strip(),_},V.prototype.split=function(S,_){S.iushrn(this.n,0,_)},V.prototype.imulK=function(S){return S.imul(this.k)};function D(){V.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}r(D,V),D.prototype.split=function(S,_){for(var P=4194303,z=Math.min(S.length,9),Y=0;Y<z;Y++)_.words[Y]=S.words[Y];if(_.length=z,S.length<=9){S.words[0]=0,S.length=1;return}var L=S.words[9];for(_.words[_.length++]=L&P,Y=10;Y<S.length;Y++){var U=S.words[Y]|0;S.words[Y-10]=(U&P)<<4|L>>>22,L=U}L>>>=22,S.words[Y-10]=L,L===0&&S.length>10?S.length-=10:S.length-=9},D.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var _=0,P=0;P<S.length;P++){var z=S.words[P]|0;_+=z*977,S.words[P]=_&67108863,_=z*64+(_/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S};function G(){V.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}r(G,V);function ee(){V.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}r(ee,V);function J(){V.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}r(J,V),J.prototype.imulK=function(S){for(var _=0,P=0;P<S.length;P++){var z=(S.words[P]|0)*19+_,Y=z&67108863;z>>>=26,S.words[P]=Y,_=z}return _!==0&&(S.words[S.length++]=_),S},o._prime=function(S){if(O[S])return O[S];var _;if(S===\"k256\")_=new D;else if(S===\"p224\")_=new G;else if(S===\"p192\")_=new ee;else if(S===\"p25519\")_=new J;else throw new Error(\"Unknown prime \"+S);return O[S]=_,_};function le(te){if(typeof te==\"string\"){var S=o._prime(te);this.m=S.p,this.prime=S}else n(te.gtn(1),\"modulus must be greater than 1\"),this.m=te,this.prime=null}le.prototype._verify1=function(S){n(S.negative===0,\"red works only with positives\"),n(S.red,\"red works only with red numbers\")},le.prototype._verify2=function(S,_){n((S.negative|_.negative)===0,\"red works only with positives\"),n(S.red&&S.red===_.red,\"red works only with red numbers\")},le.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):S.umod(this.m)._forceRed(this)},le.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},le.prototype.add=function(S,_){this._verify2(S,_);var P=S.add(_);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},le.prototype.iadd=function(S,_){this._verify2(S,_);var P=S.iadd(_);return P.cmp(this.m)>=0&&P.isub(this.m),P},le.prototype.sub=function(S,_){this._verify2(S,_);var P=S.sub(_);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},le.prototype.isub=function(S,_){this._verify2(S,_);var P=S.isub(_);return P.cmpn(0)<0&&P.iadd(this.m),P},le.prototype.shl=function(S,_){return this._verify1(S),this.imod(S.ushln(_))},le.prototype.imul=function(S,_){return this._verify2(S,_),this.imod(S.imul(_))},le.prototype.mul=function(S,_){return this._verify2(S,_),this.imod(S.mul(_))},le.prototype.isqr=function(S){return this.imul(S,S.clone())},le.prototype.sqr=function(S){return this.mul(S,S)},le.prototype.sqrt=function(S){if(S.isZero())return S.clone();var _=this.m.andln(3);if(n(_%2===1),_===3){var P=this.m.add(new o(1)).iushrn(2);return this.pow(S,P)}for(var z=this.m.subn(1),Y=0;!z.isZero()&&z.andln(1)===0;)Y++,z.iushrn(1);n(!z.isZero());var L=new o(1).toRed(this),U=L.redNeg(),W=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new o(2*w*w).toRed(this);this.pow(w,W).cmp(U)!==0;)w.redIAdd(U);for(var I=this.pow(w,z),ye=this.pow(S,z.addn(1).iushrn(1)),ne=this.pow(S,z),Q=Y;ne.cmp(L)!==0;){for(var ie=ne,ue=0;ie.cmp(L)!==0;ue++)ie=ie.redSqr();n(ue<Q);var q=this.pow(I,new o(1).iushln(Q-ue-1));ye=ye.redMul(q),I=q.redSqr(),ne=ne.redMul(I),Q=ue}return ye},le.prototype.invm=function(S){var _=S._invmp(this.m);return _.negative!==0?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},le.prototype.pow=function(S,_){if(_.isZero())return new o(1).toRed(this);if(_.cmpn(1)===0)return S.clone();var P=4,z=new Array(1<<P);z[0]=new o(1).toRed(this),z[1]=S;for(var Y=2;Y<z.length;Y++)z[Y]=this.mul(z[Y-1],S);var L=z[0],U=0,W=0,w=_.bitLength()%26;for(w===0&&(w=26),Y=_.length-1;Y>=0;Y--){for(var I=_.words[Y],ye=w-1;ye>=0;ye--){var ne=I>>ye&1;if(L!==z[0]&&(L=this.sqr(L)),ne===0&&U===0){W=0;continue}U<<=1,U|=ne,W++,!(W!==P&&(Y!==0||ye!==0))&&(L=this.mul(L,z[U]),W=0,U=0)}w=26}return L},le.prototype.convertTo=function(S){var _=S.umod(this.m);return _===S?_.clone():_},le.prototype.convertFrom=function(S){var _=S.clone();return _.red=null,_},o.mont=function(S){return new se(S)};function se(te){le.call(this,te),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(se,le),se.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},se.prototype.convertFrom=function(S){var _=this.imod(S.mul(this.rinv));return _.red=null,_},se.prototype.imul=function(S,_){if(S.isZero()||_.isZero())return S.words[0]=0,S.length=1,S;var P=S.imul(_),z=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=P.isub(z).iushrn(this.shift),L=Y;return Y.cmp(this.m)>=0?L=Y.isub(this.m):Y.cmpn(0)<0&&(L=Y.iadd(this.m)),L._forceRed(this)},se.prototype.mul=function(S,_){if(S.isZero()||_.isZero())return new o(0)._forceRed(this);var P=S.mul(_),z=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=P.isub(z).iushrn(this.shift),L=Y;return Y.cmp(this.m)>=0?L=Y.isub(this.m):Y.cmpn(0)<0&&(L=Y.iadd(this.m)),L._forceRed(this)},se.prototype.invm=function(S){var _=this.imod(S._invmp(this.m).mul(this.r2));return _._forceRed(this)}})(typeof iO>\"u\"||iO,jee)});var sO=Qr((gnt,qee)=>{u();qee.exports=aO;aO.strict=Kee;aO.loose=Gee;var WTe=Object.prototype.toString,YTe={\"[object Int8Array]\":!0,\"[object Int16Array]\":!0,\"[object Int32Array]\":!0,\"[object Uint8Array]\":!0,\"[object Uint8ClampedArray]\":!0,\"[object Uint16Array]\":!0,\"[object Uint32Array]\":!0,\"[object Float32Array]\":!0,\"[object Float64Array]\":!0};function aO(t){return Kee(t)||Gee(t)}function Kee(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function Gee(t){return YTe[WTe.call(t)]}});var Yee=Qr((vnt,Wee)=>{u();var ZTe=sO().strict;Wee.exports=function(e){if(ZTe(e)){var n=globalThis.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return globalThis.Buffer.from(e)}});function am(t){return new Uint8Array(t)}function cO(t,e=!1){let n=t.toString(Xee);return e?fp(n):n}function Qee(t){return t.toString(Jee)}function xv(t){return(0,Zee.default)(t)}function sm(t,e=!1){return cO(xv(t),e)}function lO(t){return Qee(xv(t))}function ete(t){return globalThis.Buffer.from(Fl(t),Xee)}function cm(t){return am(ete(t))}function k9(t){return globalThis.Buffer.from(t,Jee)}function uO(t){return am(k9(t))}function tte(t,e=!1){return cO(k9(t),e)}function nte(t,e){return!(typeof t!=\"string\"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function dO(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function JTe(t,e=8){let n=t%e;return n?(t-n)/e*e+e:t}function QTe(t,e=8,n=A9){return e_e(t,JTe(t.length,e),n)}function e_e(t,e,n=A9){return t_e(t,e,!0,n)}function Fl(t){return t.replace(/^0x/,\"\")}function fp(t){return t.startsWith(\"0x\")?t:`0x${t}`}function C9(t){return t=Fl(t),t=QTe(t,2),t&&(t=fp(t)),t}function rte(t){let e=t.startsWith(\"0x\");return t=Fl(t),t=t.startsWith(A9)?t.substring(1):t,e?fp(t):t}function t_e(t,e,n,r=A9){let o=e-t.length,a=t;if(o>0){let c=r.repeat(o);a=n?c+t:t+c}return a}var XTe,Zee,Xee,Jee,A9,bv=Ve(()=>{u();XTe=br(sO()),Zee=br(Yee()),Xee=\"hex\",Jee=\"utf8\",A9=\"0\"});function _9(t){return xv(new Uint8Array(t))}function ite(t,e){return sm(new Uint8Array(t),!e)}function ate(t){return am(t).buffer}function ste(t){return k9(t)}function cte(t,e){return tte(t,!e)}function lte(t){return cm(t).buffer}function M9(t,e){let n=Fl(C9(new ote.default(t).toString(16)));return e?n:fp(n)}var ote,fO=Ve(()=>{u();ote=br($ee());bv()});var ute=Qr((Mnt,I9)=>{u();(function(){\"use strict\";var t=\"input is invalid type\",e=\"finalize already called\",n=typeof window==\"object\",r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&typeof self==\"object\",a=!r.JS_SHA3_NO_NODE_JS&&typeof process==\"object\"&&process.versions&&process.versions.node;a?r=globalThis:o&&(r=self);var c=!r.JS_SHA3_NO_COMMON_JS&&typeof I9==\"object\"&&I9.exports,l=typeof define==\"function\"&&define.amd,f=!r.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<\"u\",p=\"0123456789abcdef\".split(\"\"),m=[31,7936,2031616,520093696],g=[4,1024,262144,67108864],y=[1,256,65536,16777216],A=[6,1536,393216,100663296],T=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],K=[224,256,384,512],O=[128,256],V=[\"hex\",\"buffer\",\"arrayBuffer\",\"array\",\"digest\"],D={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(q){return Object.prototype.toString.call(q)===\"[object Array]\"}),f&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(q){return typeof q==\"object\"&&q.buffer&&q.buffer.constructor===ArrayBuffer});for(var G=function(q,Ee,we){return function(_e){return new Q(q,Ee,q).update(_e)[we]()}},ee=function(q,Ee,we){return function(_e,B){return new Q(q,Ee,B).update(_e)[we]()}},J=function(q,Ee,we){return function(_e,B,k,C){return Y[\"cshake\"+q].update(_e,B,k,C)[we]()}},le=function(q,Ee,we){return function(_e,B,k,C){return Y[\"kmac\"+q].update(_e,B,k,C)[we]()}},se=function(q,Ee,we,_e){for(var B=0;B<V.length;++B){var k=V[B];q[k]=Ee(we,_e,k)}return q},te=function(q,Ee){var we=G(q,Ee,\"hex\");return we.create=function(){return new Q(q,Ee,q)},we.update=function(_e){return we.create().update(_e)},se(we,G,q,Ee)},S=function(q,Ee){var we=ee(q,Ee,\"hex\");return we.create=function(_e){return new Q(q,Ee,_e)},we.update=function(_e,B){return we.create(B).update(_e)},se(we,ee,q,Ee)},_=function(q,Ee){var we=D[q],_e=J(q,Ee,\"hex\");return _e.create=function(B,k,C){return!k&&!C?Y[\"shake\"+q].create(B):new Q(q,Ee,B).bytepad([k,C],we)},_e.update=function(B,k,C,Z){return _e.create(k,C,Z).update(B)},se(_e,J,q,Ee)},P=function(q,Ee){var we=D[q],_e=le(q,Ee,\"hex\");return _e.create=function(B,k,C){return new ie(q,Ee,k).bytepad([\"KMAC\",C],we).bytepad([B],we)},_e.update=function(B,k,C,Z){return _e.create(B,C,Z).update(k)},se(_e,le,q,Ee)},z=[{name:\"keccak\",padding:y,bits:K,createMethod:te},{name:\"sha3\",padding:A,bits:K,createMethod:te},{name:\"shake\",padding:m,bits:O,createMethod:S},{name:\"cshake\",padding:g,bits:O,createMethod:_},{name:\"kmac\",padding:g,bits:O,createMethod:P}],Y={},L=[],U=0;U<z.length;++U)for(var W=z[U],w=W.bits,I=0;I<w.length;++I){var ye=W.name+\"_\"+w[I];if(L.push(ye),Y[ye]=W.createMethod(w[I],W.padding),W.name!==\"sha3\"){var ne=W.name+w[I];L.push(ne),Y[ne]=Y[ye]}}function Q(q,Ee,we){this.blocks=[],this.s=[],this.padding=Ee,this.outputBits=we,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(q<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=we>>5,this.extraBytes=(we&31)>>3;for(var _e=0;_e<50;++_e)this.s[_e]=0}Q.prototype.update=function(q){if(this.finalized)throw new Error(e);var Ee,we=typeof q;if(we!==\"string\"){if(we===\"object\"){if(q===null)throw new Error(t);if(f&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!f||!ArrayBuffer.isView(q)))throw new Error(t)}else throw new Error(t);Ee=!0}for(var _e=this.blocks,B=this.byteCount,k=q.length,C=this.blockCount,Z=0,X=this.s,ae,de;Z<k;){if(this.reset)for(this.reset=!1,_e[0]=this.block,ae=1;ae<C+1;++ae)_e[ae]=0;if(Ee)for(ae=this.start;Z<k&&ae<B;++Z)_e[ae>>2]|=q[Z]<<T[ae++&3];else for(ae=this.start;Z<k&&ae<B;++Z)de=q.charCodeAt(Z),de<128?_e[ae>>2]|=de<<T[ae++&3]:de<2048?(_e[ae>>2]|=(192|de>>6)<<T[ae++&3],_e[ae>>2]|=(128|de&63)<<T[ae++&3]):de<55296||de>=57344?(_e[ae>>2]|=(224|de>>12)<<T[ae++&3],_e[ae>>2]|=(128|de>>6&63)<<T[ae++&3],_e[ae>>2]|=(128|de&63)<<T[ae++&3]):(de=65536+((de&1023)<<10|q.charCodeAt(++Z)&1023),_e[ae>>2]|=(240|de>>18)<<T[ae++&3],_e[ae>>2]|=(128|de>>12&63)<<T[ae++&3],_e[ae>>2]|=(128|de>>6&63)<<T[ae++&3],_e[ae>>2]|=(128|de&63)<<T[ae++&3]);if(this.lastByteIndex=ae,ae>=B){for(this.start=ae-B,this.block=_e[C],ae=0;ae<C;++ae)X[ae]^=_e[ae];ue(X),this.reset=!0}else this.start=ae}return this},Q.prototype.encode=function(q,Ee){var we=q&255,_e=1,B=[we];for(q=q>>8,we=q&255;we>0;)B.unshift(we),q=q>>8,we=q&255,++_e;return Ee?B.push(_e):B.unshift(_e),this.update(B),B.length},Q.prototype.encodeString=function(q){var Ee,we=typeof q;if(we!==\"string\"){if(we===\"object\"){if(q===null)throw new Error(t);if(f&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!f||!ArrayBuffer.isView(q)))throw new Error(t)}else throw new Error(t);Ee=!0}var _e=0,B=q.length;if(Ee)_e=B;else for(var k=0;k<q.length;++k){var C=q.charCodeAt(k);C<128?_e+=1:C<2048?_e+=2:C<55296||C>=57344?_e+=3:(C=65536+((C&1023)<<10|q.charCodeAt(++k)&1023),_e+=4)}return _e+=this.encode(_e*8),this.update(q),_e},Q.prototype.bytepad=function(q,Ee){for(var we=this.encode(Ee),_e=0;_e<q.length;++_e)we+=this.encodeString(q[_e]);var B=Ee-we%Ee,k=[];return k.length=B,this.update(k),this},Q.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var q=this.blocks,Ee=this.lastByteIndex,we=this.blockCount,_e=this.s;if(q[Ee>>2]|=this.padding[Ee&3],this.lastByteIndex===this.byteCount)for(q[0]=q[we],Ee=1;Ee<we+1;++Ee)q[Ee]=0;for(q[we-1]|=2147483648,Ee=0;Ee<we;++Ee)_e[Ee]^=q[Ee];ue(_e)}},Q.prototype.toString=Q.prototype.hex=function(){this.finalize();for(var q=this.blockCount,Ee=this.s,we=this.outputBlocks,_e=this.extraBytes,B=0,k=0,C=\"\",Z;k<we;){for(B=0;B<q&&k<we;++B,++k)Z=Ee[B],C+=p[Z>>4&15]+p[Z&15]+p[Z>>12&15]+p[Z>>8&15]+p[Z>>20&15]+p[Z>>16&15]+p[Z>>28&15]+p[Z>>24&15];k%q===0&&(ue(Ee),B=0)}return _e&&(Z=Ee[B],C+=p[Z>>4&15]+p[Z&15],_e>1&&(C+=p[Z>>12&15]+p[Z>>8&15]),_e>2&&(C+=p[Z>>20&15]+p[Z>>16&15])),C},Q.prototype.arrayBuffer=function(){this.finalize();var q=this.blockCount,Ee=this.s,we=this.outputBlocks,_e=this.extraBytes,B=0,k=0,C=this.outputBits>>3,Z;_e?Z=new ArrayBuffer(we+1<<2):Z=new ArrayBuffer(C);for(var X=new Uint32Array(Z);k<we;){for(B=0;B<q&&k<we;++B,++k)X[k]=Ee[B];k%q===0&&ue(Ee)}return _e&&(X[B]=Ee[B],Z=Z.slice(0,C)),Z},Q.prototype.buffer=Q.prototype.arrayBuffer,Q.prototype.digest=Q.prototype.array=function(){this.finalize();for(var q=this.blockCount,Ee=this.s,we=this.outputBlocks,_e=this.extraBytes,B=0,k=0,C=[],Z,X;k<we;){for(B=0;B<q&&k<we;++B,++k)Z=k<<2,X=Ee[B],C[Z]=X&255,C[Z+1]=X>>8&255,C[Z+2]=X>>16&255,C[Z+3]=X>>24&255;k%q===0&&ue(Ee)}return _e&&(Z=k<<2,X=Ee[B],C[Z]=X&255,_e>1&&(C[Z+1]=X>>8&255),_e>2&&(C[Z+2]=X>>16&255)),C};function ie(q,Ee,we){Q.call(this,q,Ee,we)}ie.prototype=new Q,ie.prototype.finalize=function(){return this.encode(this.outputBits,!0),Q.prototype.finalize.call(this)};var ue=function(q){var Ee,we,_e,B,k,C,Z,X,ae,de,me,Pe,De,Re,qe,et,ot,Qe,xt,Wt,Vt,Bt,nn,Yt,hn,Pn,Mn,Un,Wn,Kn,Se,it,Nt,tn,pn,kn,zn,_n,Dn,_r,pr,vr,vo,jr,Mr,wi,fe,Be,$,M,re,H,he,He,nt,Rt,Ft,Tn,$t,Gn,cn,Fn,Nn;for(_e=0;_e<48;_e+=2)B=q[0]^q[10]^q[20]^q[30]^q[40],k=q[1]^q[11]^q[21]^q[31]^q[41],C=q[2]^q[12]^q[22]^q[32]^q[42],Z=q[3]^q[13]^q[23]^q[33]^q[43],X=q[4]^q[14]^q[24]^q[34]^q[44],ae=q[5]^q[15]^q[25]^q[35]^q[45],de=q[6]^q[16]^q[26]^q[36]^q[46],me=q[7]^q[17]^q[27]^q[37]^q[47],Pe=q[8]^q[18]^q[28]^q[38]^q[48],De=q[9]^q[19]^q[29]^q[39]^q[49],Ee=Pe^(C<<1|Z>>>31),we=De^(Z<<1|C>>>31),q[0]^=Ee,q[1]^=we,q[10]^=Ee,q[11]^=we,q[20]^=Ee,q[21]^=we,q[30]^=Ee,q[31]^=we,q[40]^=Ee,q[41]^=we,Ee=B^(X<<1|ae>>>31),we=k^(ae<<1|X>>>31),q[2]^=Ee,q[3]^=we,q[12]^=Ee,q[13]^=we,q[22]^=Ee,q[23]^=we,q[32]^=Ee,q[33]^=we,q[42]^=Ee,q[43]^=we,Ee=C^(de<<1|me>>>31),we=Z^(me<<1|de>>>31),q[4]^=Ee,q[5]^=we,q[14]^=Ee,q[15]^=we,q[24]^=Ee,q[25]^=we,q[34]^=Ee,q[35]^=we,q[44]^=Ee,q[45]^=we,Ee=X^(Pe<<1|De>>>31),we=ae^(De<<1|Pe>>>31),q[6]^=Ee,q[7]^=we,q[16]^=Ee,q[17]^=we,q[26]^=Ee,q[27]^=we,q[36]^=Ee,q[37]^=we,q[46]^=Ee,q[47]^=we,Ee=de^(B<<1|k>>>31),we=me^(k<<1|B>>>31),q[8]^=Ee,q[9]^=we,q[18]^=Ee,q[19]^=we,q[28]^=Ee,q[29]^=we,q[38]^=Ee,q[39]^=we,q[48]^=Ee,q[49]^=we,Re=q[0],qe=q[1],wi=q[11]<<4|q[10]>>>28,fe=q[10]<<4|q[11]>>>28,Un=q[20]<<3|q[21]>>>29,Wn=q[21]<<3|q[20]>>>29,Gn=q[31]<<9|q[30]>>>23,cn=q[30]<<9|q[31]>>>23,vr=q[40]<<18|q[41]>>>14,vo=q[41]<<18|q[40]>>>14,tn=q[2]<<1|q[3]>>>31,pn=q[3]<<1|q[2]>>>31,et=q[13]<<12|q[12]>>>20,ot=q[12]<<12|q[13]>>>20,Be=q[22]<<10|q[23]>>>22,$=q[23]<<10|q[22]>>>22,Kn=q[33]<<13|q[32]>>>19,Se=q[32]<<13|q[33]>>>19,Fn=q[42]<<2|q[43]>>>30,Nn=q[43]<<2|q[42]>>>30,He=q[5]<<30|q[4]>>>2,nt=q[4]<<30|q[5]>>>2,kn=q[14]<<6|q[15]>>>26,zn=q[15]<<6|q[14]>>>26,Qe=q[25]<<11|q[24]>>>21,xt=q[24]<<11|q[25]>>>21,M=q[34]<<15|q[35]>>>17,re=q[35]<<15|q[34]>>>17,it=q[45]<<29|q[44]>>>3,Nt=q[44]<<29|q[45]>>>3,Yt=q[6]<<28|q[7]>>>4,hn=q[7]<<28|q[6]>>>4,Rt=q[17]<<23|q[16]>>>9,Ft=q[16]<<23|q[17]>>>9,_n=q[26]<<25|q[27]>>>7,Dn=q[27]<<25|q[26]>>>7,Wt=q[36]<<21|q[37]>>>11,Vt=q[37]<<21|q[36]>>>11,H=q[47]<<24|q[46]>>>8,he=q[46]<<24|q[47]>>>8,jr=q[8]<<27|q[9]>>>5,Mr=q[9]<<27|q[8]>>>5,Pn=q[18]<<20|q[19]>>>12,Mn=q[19]<<20|q[18]>>>12,Tn=q[29]<<7|q[28]>>>25,$t=q[28]<<7|q[29]>>>25,_r=q[38]<<8|q[39]>>>24,pr=q[39]<<8|q[38]>>>24,Bt=q[48]<<14|q[49]>>>18,nn=q[49]<<14|q[48]>>>18,q[0]=Re^~et&Qe,q[1]=qe^~ot&xt,q[10]=Yt^~Pn&Un,q[11]=hn^~Mn&Wn,q[20]=tn^~kn&_n,q[21]=pn^~zn&Dn,q[30]=jr^~wi&Be,q[31]=Mr^~fe&$,q[40]=He^~Rt&Tn,q[41]=nt^~Ft&$t,q[2]=et^~Qe&Wt,q[3]=ot^~xt&Vt,q[12]=Pn^~Un&Kn,q[13]=Mn^~Wn&Se,q[22]=kn^~_n&_r,q[23]=zn^~Dn&pr,q[32]=wi^~Be&M,q[33]=fe^~$&re,q[42]=Rt^~Tn&Gn,q[43]=Ft^~$t&cn,q[4]=Qe^~Wt&Bt,q[5]=xt^~Vt&nn,q[14]=Un^~Kn&it,q[15]=Wn^~Se&Nt,q[24]=_n^~_r&vr,q[25]=Dn^~pr&vo,q[34]=Be^~M&H,q[35]=$^~re&he,q[44]=Tn^~Gn&Fn,q[45]=$t^~cn&Nn,q[6]=Wt^~Bt&Re,q[7]=Vt^~nn&qe,q[16]=Kn^~it&Yt,q[17]=Se^~Nt&hn,q[26]=_r^~vr&tn,q[27]=pr^~vo&pn,q[36]=M^~H&jr,q[37]=re^~he&Mr,q[46]=Gn^~Fn&He,q[47]=cn^~Nn&nt,q[8]=Bt^~Re&et,q[9]=nn^~qe&ot,q[18]=it^~Yt&Pn,q[19]=Nt^~hn&Mn,q[28]=vr^~tn&kn,q[29]=vo^~pn&zn,q[38]=H^~jr&wi,q[39]=he^~Mr&fe,q[48]=Fn^~He&Rt,q[49]=Nn^~nt&Ft,q[0]^=R[_e],q[1]^=R[_e+1]};if(c)I9.exports=Y;else{for(U=0;U<L.length;++U)r[L[U]]=Y[L[U]];l&&define(function(){return Y})}})()});var dte,fte,pte,hte,R9,R4,pO,P9,lm,P4,B9=Ve(()=>{u();dte=\"PARSE_ERROR\",fte=\"INVALID_REQUEST\",pte=\"METHOD_NOT_FOUND\",hte=\"INVALID_PARAMS\",R9=\"INTERNAL_ERROR\",R4=\"SERVER_ERROR\",pO=[-32700,-32600,-32601,-32602,-32603],P9=[-32e3,-32099],lm={[dte]:{code:-32700,message:\"Parse error\"},[fte]:{code:-32600,message:\"Invalid Request\"},[pte]:{code:-32601,message:\"Method not found\"},[hte]:{code:-32602,message:\"Invalid params\"},[R9]:{code:-32603,message:\"Internal error\"},[R4]:{code:-32e3,message:\"Server error\"}},P4=R4});function n_e(t){return t<=P9[0]&&t>=P9[1]}function D9(t){return pO.includes(t)}function mte(t){return typeof t==\"number\"}function F9(t){return Object.keys(lm).includes(t)?lm[t]:lm[P4]}function O9(t){let e=Object.values(lm).find(n=>n.code===t);return e||lm[P4]}function r_e(t){if(typeof t.error.code>\"u\")return{valid:!1,error:\"Missing code for JSON-RPC error\"};if(typeof t.error.message>\"u\")return{valid:!1,error:\"Missing message for JSON-RPC error\"};if(!mte(t.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${t.error.code}`};if(D9(t.error.code)){let e=O9(t.error.code);if(e.message!==lm[P4].message&&t.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${t.error.code}`}}return{valid:!0}}function o_e(t,e,n){return t.message.includes(\"getaddrinfo ENOTFOUND\")||t.message.includes(\"connect ECONNREFUSED\")?new Error(`Unavailable ${n} RPC url at ${e}`):t}var hO=Ve(()=>{u();B9()});var Ote=Qr((Ont,N9)=>{u();var gte,yte,vte,xte,bte,wte,Ete,Ste,Ate,L9,mO,kte,Cte,wv,Tte,_te,Mte,Ite,Rte,Pte,Bte,Dte,Fte;(function(t){var e=typeof globalThis==\"object\"?globalThis:typeof self==\"object\"?self:typeof this==\"object\"?this:{};typeof define==\"function\"&&define.amd?define(\"tslib\",[\"exports\"],function(r){t(n(e,n(r)))}):typeof N9==\"object\"&&typeof N9.exports==\"object\"?t(n(e,n(N9.exports))):t(n(e));function n(r,o){return r!==e&&(typeof Object.create==\"function\"?Object.defineProperty(r,\"__esModule\",{value:!0}):r.__esModule=!0),function(a,c){return r[a]=o?o(a,c):c}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])};gte=function(n,r){e(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)},yte=Object.assign||function(n){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},vte=function(n,r){var o={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&r.indexOf(a)<0&&(o[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)r.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(o[a[c]]=n[a[c]]);return o},xte=function(n,r,o,a){var c=arguments.length,l=c<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,o):a,f;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")l=Reflect.decorate(n,r,o,a);else for(var p=n.length-1;p>=0;p--)(f=n[p])&&(l=(c<3?f(l):c>3?f(r,o,l):f(r,o))||l);return c>3&&l&&Object.defineProperty(r,o,l),l},bte=function(n,r){return function(o,a){r(o,a,n)}},wte=function(n,r){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(n,r)},Ete=function(n,r,o,a){function c(l){return l instanceof o?l:new o(function(f){f(l)})}return new(o||(o=Promise))(function(l,f){function p(y){try{g(a.next(y))}catch(A){f(A)}}function m(y){try{g(a.throw(y))}catch(A){f(A)}}function g(y){y.done?l(y.value):c(y.value).then(p,m)}g((a=a.apply(n,r||[])).next())})},Ste=function(n,r){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,f;return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol==\"function\"&&(f[Symbol.iterator]=function(){return this}),f;function p(g){return function(y){return m([g,y])}}function m(g){if(a)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(a=1,c&&(l=g[0]&2?c.return:g[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,g[1])).done)return l;switch(c=0,l&&(g=[g[0]&2,l.value]),g[0]){case 0:case 1:l=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,c=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]<l[3])){o.label=g[1];break}if(g[0]===6&&o.label<l[1]){o.label=l[1],l=g;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(g);break}l[2]&&o.ops.pop(),o.trys.pop();continue}g=r.call(n,o)}catch(y){g=[6,y],c=0}finally{a=l=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},Fte=function(n,r,o,a){a===void 0&&(a=o),n[a]=r[o]},Ate=function(n,r){for(var o in n)o!==\"default\"&&!r.hasOwnProperty(o)&&(r[o]=n[o])},L9=function(n){var r=typeof Symbol==\"function\"&&Symbol.iterator,o=r&&n[r],a=0;if(o)return o.call(n);if(n&&typeof n.length==\"number\")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(r?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},mO=function(n,r){var o=typeof Symbol==\"function\"&&n[Symbol.iterator];if(!o)return n;var a=o.call(n),c,l=[],f;try{for(;(r===void 0||r-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(f)throw f.error}}return l},kte=function(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(mO(arguments[r]));return n},Cte=function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;for(var a=Array(n),c=0,r=0;r<o;r++)for(var l=arguments[r],f=0,p=l.length;f<p;f++,c++)a[c]=l[f];return a},wv=function(n){return this instanceof wv?(this.v=n,this):new wv(n)},Tte=function(n,r,o){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var a=o.apply(n,r||[]),c,l=[];return c={},f(\"next\"),f(\"throw\"),f(\"return\"),c[Symbol.asyncIterator]=function(){return this},c;function f(T){a[T]&&(c[T]=function(R){return new Promise(function(K,O){l.push([T,R,K,O])>1||p(T,R)})})}function p(T,R){try{m(a[T](R))}catch(K){A(l[0][3],K)}}function m(T){T.value instanceof wv?Promise.resolve(T.value.v).then(g,y):A(l[0][2],T)}function g(T){p(\"next\",T)}function y(T){p(\"throw\",T)}function A(T,R){T(R),l.shift(),l.length&&p(l[0][0],l[0][1])}},_te=function(n){var r,o;return r={},a(\"next\"),a(\"throw\",function(c){throw c}),a(\"return\"),r[Symbol.iterator]=function(){return this},r;function a(c,l){r[c]=n[c]?function(f){return(o=!o)?{value:wv(n[c](f)),done:c===\"return\"}:l?l(f):f}:l}},Mte=function(n){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=n[Symbol.asyncIterator],o;return r?r.call(n):(n=typeof L9==\"function\"?L9(n):n[Symbol.iterator](),o={},a(\"next\"),a(\"throw\"),a(\"return\"),o[Symbol.asyncIterator]=function(){return this},o);function a(l){o[l]=n[l]&&function(f){return new Promise(function(p,m){f=n[l](f),c(p,m,f.done,f.value)})}}function c(l,f,p,m){Promise.resolve(m).then(function(g){l({value:g,done:p})},f)}},Ite=function(n,r){return Object.defineProperty?Object.defineProperty(n,\"raw\",{value:r}):n.raw=r,n},Rte=function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var o in n)Object.hasOwnProperty.call(n,o)&&(r[o]=n[o]);return r.default=n,r},Pte=function(n){return n&&n.__esModule?n:{default:n}},Bte=function(n,r){if(!r.has(n))throw new TypeError(\"attempted to get private field on non-instance\");return r.get(n)},Dte=function(n,r,o){if(!r.has(n))throw new TypeError(\"attempted to set private field on non-instance\");return r.set(n,o),o},t(\"__extends\",gte),t(\"__assign\",yte),t(\"__rest\",vte),t(\"__decorate\",xte),t(\"__param\",bte),t(\"__metadata\",wte),t(\"__awaiter\",Ete),t(\"__generator\",Ste),t(\"__exportStar\",Ate),t(\"__createBinding\",Fte),t(\"__values\",L9),t(\"__read\",mO),t(\"__spread\",kte),t(\"__spreadArrays\",Cte),t(\"__await\",wv),t(\"__asyncGenerator\",Tte),t(\"__asyncDelegator\",_te),t(\"__asyncValues\",Mte),t(\"__makeTemplateObject\",Ite),t(\"__importStar\",Rte),t(\"__importDefault\",Pte),t(\"__classPrivateFieldGet\",Bte),t(\"__classPrivateFieldSet\",Dte)})});var Nte=Qr(um=>{\"use strict\";u();Object.defineProperty(um,\"__esModule\",{value:!0});um.isBrowserCryptoAvailable=um.getSubtleCrypto=um.getBrowerCrypto=void 0;function gO(){return globalThis?.crypto||globalThis?.msCrypto||{}}um.getBrowerCrypto=gO;function Lte(){let t=gO();return t.subtle||t.webkitSubtle}um.getSubtleCrypto=Lte;function i_e(){return!!gO()&&!!Lte()}um.isBrowserCryptoAvailable=i_e});var Vte=Qr(dm=>{\"use strict\";u();Object.defineProperty(dm,\"__esModule\",{value:!0});dm.isBrowser=dm.isNode=dm.isReactNative=void 0;function Ute(){return typeof document>\"u\"&&typeof navigator<\"u\"&&navigator.product===\"ReactNative\"}dm.isReactNative=Ute;function zte(){return typeof process<\"u\"&&typeof process.versions<\"u\"&&typeof process.versions.node<\"u\"}dm.isNode=zte;function a_e(){return!Ute()&&!zte()}dm.isBrowser=a_e});var Ev=Qr(U9=>{\"use strict\";u();Object.defineProperty(U9,\"__esModule\",{value:!0});var Hte=Ote();Hte.__exportStar(Nte(),U9);Hte.__exportStar(Vte(),U9)});var Na={};Oi(Na,{isNodeJs:()=>$te});var jte,$te,Kte=Ve(()=>{u();jte=br(Ev());wo(Na,br(Ev()));$te=jte.isNode});function B4(t=3){let e=Date.now()*Math.pow(10,t),n=Math.floor(Math.random()*Math.pow(10,t));return e+n}function s_e(t=6){return BigInt(B4(t))}function c_e(t,e,n){return{id:n||B4(),jsonrpc:\"2.0\",method:t,params:e}}function l_e(t,e){return{id:t,jsonrpc:\"2.0\",result:e}}function u_e(t,e,n){return{id:t,jsonrpc:\"2.0\",error:Gte(e,n)}}function Gte(t,e){return typeof t>\"u\"?F9(R9):(typeof t==\"string\"&&(t=Object.assign(Object.assign({},F9(R4)),{message:t})),typeof e<\"u\"&&(t.data=e),D9(t.code)&&(t=O9(t.code)),t)}var qte=Ve(()=>{u();hO();B9()});function d_e(t){return t.includes(\"*\")?V9(t):!/\\\\W/g.test(t)}function z9(t){return t===\"*\"}function V9(t){return z9(t)?!0:!(!t.includes(\"*\")||t.split(\"*\").length!==2||t.split(\"*\").filter(e=>e.trim()===\"\").length!==1)}function f_e(t){return!z9(t)&&V9(t)&&!t.split(\"*\")[0].trim()}function p_e(t){return!z9(t)&&V9(t)&&!t.split(\"*\")[1].trim()}var Wte=Ve(()=>{u()});var D4,yO,H9,vO,Yte=Ve(()=>{u();D4=class{},yO=class extends D4{constructor(e){super()}},H9=class extends D4{constructor(){super()}},vO=class extends H9{constructor(e){super()}}});var Zte=Ve(()=>{u();Yte()});function g_e(t){let e=t.match(new RegExp(/^\\\\w+:/,\"gi\"));if(!(!e||!e.length))return e[0]}function Xte(t,e){let n=g_e(t);return typeof n>\"u\"?!1:new RegExp(e).test(n)}function y_e(t){return Xte(t,h_e)}function v_e(t){return Xte(t,m_e)}function x_e(t){return new RegExp(\"wss?://localhost(:d{2,5})?\").test(t)}var h_e,m_e,Jte=Ve(()=>{u();h_e=\"^https?:\",m_e=\"^wss?:\"});function xO(t){return typeof t==\"object\"&&\"id\"in t&&\"jsonrpc\"in t&&t.jsonrpc===\"2.0\"}function b_e(t){return xO(t)&&\"method\"in t}function w_e(t){return xO(t)&&(Qte(t)||ene(t))}function Qte(t){return\"result\"in t}function ene(t){return\"error\"in t}function E_e(t){return\"error\"in t&&t.valid===!1}var tne=Ve(()=>{u()});var Jc={};Oi(Jc,{DEFAULT_ERROR:()=>P4,IBaseJsonRpcProvider:()=>H9,IEvents:()=>D4,IJsonRpcConnection:()=>yO,IJsonRpcProvider:()=>vO,INTERNAL_ERROR:()=>R9,INVALID_PARAMS:()=>hte,INVALID_REQUEST:()=>fte,METHOD_NOT_FOUND:()=>pte,PARSE_ERROR:()=>dte,RESERVED_ERROR_CODES:()=>pO,SERVER_ERROR:()=>R4,SERVER_ERROR_CODE_RANGE:()=>P9,STANDARD_ERROR_MAP:()=>lm,formatErrorMessage:()=>Gte,formatJsonRpcError:()=>u_e,formatJsonRpcRequest:()=>c_e,formatJsonRpcResult:()=>l_e,getBigIntRpcId:()=>s_e,getError:()=>F9,getErrorByCode:()=>O9,isHttpUrl:()=>y_e,isJsonRpcError:()=>ene,isJsonRpcPayload:()=>xO,isJsonRpcRequest:()=>b_e,isJsonRpcResponse:()=>w_e,isJsonRpcResult:()=>Qte,isJsonRpcValidationInvalid:()=>E_e,isLocalhostUrl:()=>x_e,isNodeJs:()=>$te,isReservedErrorCode:()=>D9,isServerErrorCode:()=>n_e,isValidDefaultRoute:()=>z9,isValidErrorCode:()=>mte,isValidLeadingWildcardRoute:()=>f_e,isValidRoute:()=>d_e,isValidTrailingWildcardRoute:()=>p_e,isValidWildcardRoute:()=>V9,isWsUrl:()=>v_e,parseConnectionError:()=>o_e,payloadId:()=>B4,validateJsonRpcError:()=>r_e});var nne=Ve(()=>{u();B9();hO();Kte();wo(Jc,Na);qte();Wte();Zte();Jte();tne()});function F4(t){return C9(t)}function rne(t){return rte(fp(t))}function j9(){return((e,n)=>{for(n=e=\"\";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):\"-\");return n})()}var one,bO=Ve(()=>{u();bv();nne();S9();one=B4});function ine(t){return t===\"\"||typeof t==\"string\"&&t.trim()===\"\"}function ane(t){return!(t&&t.length)}function wO(t,e){return nte(t,e)}function sne(t){return typeof t.method<\"u\"}function kg(t){return typeof t.result<\"u\"}function Sv(t){return typeof t.error<\"u\"}function EO(t){return typeof t.event<\"u\"}function cne(t){return Vee.includes(t)||t.startsWith(\"wc_\")}function lne(t){return t.method.startsWith(\"wc_\")?!0:!E9.includes(t.method)}var SO=Ve(()=>{u();bv();S9()});function S_e(t){t=Fl(t.toLowerCase());let e=Fl((0,une.keccak_256)(ste(t))),n=\"\";for(let r=0;r<t.length;r++)parseInt(e[r],16)>7?n+=t[r].toUpperCase():n+=t[r];return fp(n)}function AO(t){return!ane(t)&&!wO(t[0])&&(t[0]=cte(t[0])),t}function $9(t){if(typeof t.type<\"u\"&&t.type!==\"0\")return t;if(typeof t.from>\"u\"||!A_e(t.from))throw new Error(\"Transaction object must include a valid \\'from\\' value.\");function e(o){let a=o;return(typeof o==\"number\"||typeof o==\"string\"&&!ine(o))&&(wO(o)?typeof o==\"string\"&&(a=F4(o)):a=M9(o)),typeof a==\"string\"&&(a=rne(a)),a}let n={from:F4(t.from),to:typeof t.to>\"u\"?void 0:F4(t.to),gasPrice:typeof t.gasPrice>\"u\"?\"\":e(t.gasPrice),gas:typeof t.gas>\"u\"?typeof t.gasLimit>\"u\"?\"\":e(t.gasLimit):e(t.gas),value:typeof t.value>\"u\"?\"\":e(t.value),nonce:typeof t.nonce>\"u\"?\"\":e(t.nonce),data:typeof t.data>\"u\"?\"\":F4(t.data)||\"0x\"},r=[\"gasPrice\",\"gas\",\"value\",\"nonce\"];return Object.keys(n).forEach(o=>{(typeof n[o]>\"u\"||typeof n[o]==\"string\"&&!n[o].trim().length)&&r.includes(o)&&delete n[o]}),n}var une,A_e,dne=Ve(()=>{u();une=br(ute());bv();fO();bO();SO();A_e=t=>t?t.toLowerCase().substring(0,2)!==\"0x\"?!1:/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x)?[0-9a-f]{40}$/.test(t)||/^(0x)?[0-9A-F]{40}$/.test(t)?!0:t===S_e(t):!1:!1});function fne(t){let e=t.message||\"Failed or Rejected Request\",n=-32e3;if(t&&!t.code)switch(e){case\"Parse error\":n=-32700;break;case\"Invalid request\":n=-32600;break;case\"Method not found\":n=-32601;break;case\"Invalid params\":n=-32602;break;case\"Internal error\":n=-32603;break;default:n=-32e3;break}let r={code:n,message:e};return t.data&&(r.data=t.data),r}var pne=Ve(()=>{u()});var mne=Qr((Ort,hne)=>{\"use strict\";u();hne.exports=t=>encodeURIComponent(t).replace(/[!\\'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var bne=Qr((Nrt,xne)=>{\"use strict\";u();var vne=\"%[a-f0-9]{2}\",gne=new RegExp(\"(\"+vne+\")|([^%]+?)\",\"gi\"),yne=new RegExp(\"(\"+vne+\")+\",\"gi\");function kO(t,e){try{return[decodeURIComponent(t.join(\"\"))]}catch{}if(t.length===1)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],kO(n),kO(r))}function k_e(t){try{return decodeURIComponent(t)}catch{for(var e=t.match(gne)||[],n=1;n<e.length;n++)t=kO(e,n).join(\"\"),e=t.match(gne)||[];return t}}function C_e(t){for(var e={\"%FE%FF\":\"\\\\uFFFD\\\\uFFFD\",\"%FF%FE\":\"\\\\uFFFD\\\\uFFFD\"},n=yne.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{var r=k_e(n[0]);r!==n[0]&&(e[n[0]]=r)}n=yne.exec(t)}e[\"%C2\"]=\"\\\\uFFFD\";for(var o=Object.keys(e),a=0;a<o.length;a++){var c=o[a];t=t.replace(new RegExp(c,\"g\"),e[c])}return t}xne.exports=function(t){if(typeof t!=\"string\")throw new TypeError(\"Expected `encodedURI` to be of type `string`, got `\"+typeof t+\"`\");try{return t=t.replace(/\\\\+/g,\" \"),decodeURIComponent(t)}catch{return C_e(t)}}});var Ene=Qr((zrt,wne)=>{\"use strict\";u();wne.exports=(t,e)=>{if(!(typeof t==\"string\"&&typeof e==\"string\"))throw new TypeError(\"Expected the arguments to be of type `string`\");if(e===\"\")return[t];let n=t.indexOf(e);return n===-1?[t]:[t.slice(0,n),t.slice(n+e.length)]}});var Ine=Qr(pp=>{\"use strict\";u();var T_e=mne(),__e=bne(),Ane=Ene(),M_e=t=>t==null;function I_e(t){switch(t.arrayFormat){case\"index\":return e=>(n,r)=>{let o=n.length;return r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===\"\"?n:r===null?[...n,[Qa(e,t),\"[\",o,\"]\"].join(\"\")]:[...n,[Qa(e,t),\"[\",Qa(o,t),\"]=\",Qa(r,t)].join(\"\")]};case\"bracket\":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===\"\"?n:r===null?[...n,[Qa(e,t),\"[]\"].join(\"\")]:[...n,[Qa(e,t),\"[]=\",Qa(r,t)].join(\"\")];case\"comma\":case\"separator\":return e=>(n,r)=>r==null||r.length===0?n:n.length===0?[[Qa(e,t),\"=\",Qa(r,t)].join(\"\")]:[[n,Qa(r,t)].join(t.arrayFormatSeparator)];default:return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===\"\"?n:r===null?[...n,Qa(e,t)]:[...n,[Qa(e,t),\"=\",Qa(r,t)].join(\"\")]}}function R_e(t){let e;switch(t.arrayFormat){case\"index\":return(n,r,o)=>{if(e=/\\\\[(\\\\d*)\\\\]$/.exec(n),n=n.replace(/\\\\[\\\\d*\\\\]$/,\"\"),!e){o[n]=r;return}o[n]===void 0&&(o[n]={}),o[n][e[1]]=r};case\"bracket\":return(n,r,o)=>{if(e=/(\\\\[\\\\])$/.exec(n),n=n.replace(/\\\\[\\\\]$/,\"\"),!e){o[n]=r;return}if(o[n]===void 0){o[n]=[r];return}o[n]=[].concat(o[n],r)};case\"comma\":case\"separator\":return(n,r,o)=>{let c=typeof r==\"string\"&&r.split(\"\").indexOf(t.arrayFormatSeparator)>-1?r.split(t.arrayFormatSeparator).map(l=>O4(l,t)):r===null?r:O4(r,t);o[n]=c};default:return(n,r,o)=>{if(o[n]===void 0){o[n]=r;return}o[n]=[].concat(o[n],r)}}}function kne(t){if(typeof t!=\"string\"||t.length!==1)throw new TypeError(\"arrayFormatSeparator must be single character string\")}function Qa(t,e){return e.encode?e.strict?T_e(t):encodeURIComponent(t):t}function O4(t,e){return e.decode?__e(t):t}function Cne(t){return Array.isArray(t)?t.sort():typeof t==\"object\"?Cne(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function Tne(t){let e=t.indexOf(\"#\");return e!==-1&&(t=t.slice(0,e)),t}function P_e(t){let e=\"\",n=t.indexOf(\"#\");return n!==-1&&(e=t.slice(n)),e}function _ne(t){t=Tne(t);let e=t.indexOf(\"?\");return e===-1?\"\":t.slice(e+1)}function Sne(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t==\"string\"&&t.trim()!==\"\"?t=Number(t):e.parseBooleans&&t!==null&&(t.toLowerCase()===\"true\"||t.toLowerCase()===\"false\")&&(t=t.toLowerCase()===\"true\"),t}function Mne(t,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\",parseNumbers:!1,parseBooleans:!1},e),kne(e.arrayFormatSeparator);let n=R_e(e),r=Object.create(null);if(typeof t!=\"string\"||(t=t.trim().replace(/^[?#&]/,\"\"),!t))return r;for(let o of t.split(\"&\")){let[a,c]=Ane(e.decode?o.replace(/\\\\+/g,\" \"):o,\"=\");c=c===void 0?null:[\"comma\",\"separator\"].includes(e.arrayFormat)?c:O4(c,e),n(O4(a,e),c,r)}for(let o of Object.keys(r)){let a=r[o];if(typeof a==\"object\"&&a!==null)for(let c of Object.keys(a))a[c]=Sne(a[c],e);else r[o]=Sne(a,e)}return e.sort===!1?r:(e.sort===!0?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((o,a)=>{let c=r[a];return c&&typeof c==\"object\"&&!Array.isArray(c)?o[a]=Cne(c):o[a]=c,o},Object.create(null))}pp.extract=_ne;pp.parse=Mne;pp.stringify=(t,e)=>{if(!t)return\"\";e=Object.assign({encode:!0,strict:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\"},e),kne(e.arrayFormatSeparator);let n=c=>e.skipNull&&M_e(t[c])||e.skipEmptyString&&t[c]===\"\",r=I_e(e),o={};for(let c of Object.keys(t))n(c)||(o[c]=t[c]);let a=Object.keys(o);return e.sort!==!1&&a.sort(e.sort),a.map(c=>{let l=t[c];return l===void 0?\"\":l===null?Qa(c,e):Array.isArray(l)?l.reduce(r(c),[]).join(\"&\"):Qa(c,e)+\"=\"+Qa(l,e)}).filter(c=>c.length>0).join(\"&\")};pp.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);let[n,r]=Ane(t,\"#\");return Object.assign({url:n.split(\"?\")[0]||\"\",query:Mne(_ne(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:O4(r,e)}:{})};pp.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);let n=Tne(t.url).split(\"?\")[0]||\"\",r=pp.extract(t.url),o=pp.parse(r,{sort:!1}),a=Object.assign(o,t.query),c=pp.stringify(a,e);c&&(c=`?${c}`);let l=P_e(t.url);return t.fragmentIdentifier&&(l=`#${Qa(t.fragmentIdentifier,e)}`),`${n}${c}${l}`}});function Rne(t){let e=t.indexOf(\"?\")!==-1?t.indexOf(\"?\"):void 0;return typeof e<\"u\"?t.substr(e):\"\"}function Pne(t,e){let n=CO(t);return n=Object.assign(Object.assign({},n),e),t=B_e(n),t}function CO(t){return K9.parse(t)}function B_e(t){return K9.stringify(t)}var K9,TO=Ve(()=>{u();K9=br(Ine())});function Bne(t){return typeof t.bridge<\"u\"}function Dne(t){let e=t.indexOf(\":\"),n=t.indexOf(\"?\")!==-1?t.indexOf(\"?\"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function a(g){let A=g.split(\"@\");return{handshakeTopic:A[0],version:parseInt(A[1],10)}}let c=a(o),l=typeof n<\"u\"?t.substr(n):\"\";function f(g){let y=CO(g);return{key:y.key||\"\",bridge:y.bridge||\"\"}}let p=f(l);return Object.assign(Object.assign({protocol:r},c),p)}var Fne=Ve(()=>{u();TO()});var Av=Ve(()=>{u();zee();S9();fO();dne();bO();pne();Fne();TO();SO()});var _O,One,Lne=Ve(()=>{u();_O=class{constructor(){this._eventEmitters=[],typeof window<\"u\"&&typeof window.addEventListener<\"u\"&&(window.addEventListener(\"online\",()=>this.trigger(\"online\")),window.addEventListener(\"offline\",()=>this.trigger(\"offline\")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}},One=_O});var Une=Qr((cot,Nne)=>{\"use strict\";u();Nne.exports=function(){throw new Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}});function F_e(t,e,n){var r,o;let c=(t.startsWith(\"https\")?t.replace(\"https\",\"wss\"):t.startsWith(\"http\")?t.replace(\"http\",\"ws\"):t).split(\"?\"),l=Ree()?{protocol:e,version:n,env:\"browser\",host:((r=Pee())===null||r===void 0?void 0:r.host)||\"\"}:{protocol:e,version:n,env:((o=v9())===null||o===void 0?void 0:o.name)||\"\"},f=Pne(Rne(c[1]||\"\"),l);return c[0]+\"?\"+f}var D_e,MO,zne,Vne=Ve(()=>{u();Av();Lne();D_e=typeof globalThis.WebSocket<\"u\"?globalThis.WebSocket:Une(),MO=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url=\"\",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new One,!e.url||typeof e.url!=\"string\")throw new Error(\"Missing or invalid WebSocket url\");this._url=e.url,this._netMonitor.on(\"online\",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!=\"string\")throw new Error(\"Missing or invalid topic field\");this._socketSend({topic:n,type:\"pub\",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:\"sub\",payload:\"\",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;let e=F_e(this._url,this._protocol,this._version);if(this._nextSocket=new D_e(e),!this._nextSocket)throw new Error(\"Failed to create socket\");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:\"ack\",payload:\"\",silent:!0}),this._socket&&this._socket.readyState===1){let r=this._events.filter(o=>o.event===\"message\");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){let n=this._events.filter(r=>r.event===\"error\");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:\"sub\",payload:\"\",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}};zne=MO});var G9,fm,Hne,jne,$ne,Kne,Gne,qne,Wne,IO,Yne,Zne,RO,Xne=Ve(()=>{u();G9=\"Session currently connected\",fm=\"Session currently disconnected\",Hne=\"Session Rejected\",jne=\"Missing JSON RPC response\",$ne=\\'JSON-RPC success response must include \"result\" field\\',Kne=\\'JSON-RPC error response must include \"error\" field\\',Gne=\\'JSON RPC request must have valid \"method\" value\\',qne=\\'JSON RPC request must have valid \"id\" value\\',Wne=\"Missing one of the required parameters: bridge / uri / session\",IO=\"JSON RPC response format is invalid\",Yne=\"URI format is invalid\",Zne=\"QRCode Modal not provided\",RO=\"User close QRCode Modal\"});var PO,Jne,Qne=Ve(()=>{u();Av();PO=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;sne(e)?r=e.method:kg(e)||Sv(e)?r=`response:${e.id}`:EO(e)?r=e.event:r=\"\",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!cne(r)&&!EO(r)&&(n=this._eventEmitters.filter(o=>o.event===\"call_request\")),n.forEach(o=>{if(Sv(e)){let a=new Error(e.error.message);o.callback(a,null)}else o.callback(null,e)})}},Jne=PO});var BO,ere,tre=Ve(()=>{u();Av();BO=class{constructor(e=\"walletconnect\"){this.storageId=e}getSession(){let e=null,n=b9(this.storageId);return n&&Bne(n)&&(e=n),e}setSession(e){return nO(this.storageId,e),e}removeSession(){w9(this.storageId)}},ere=BO});function N_e(t){let e=t.indexOf(\"//\")>-1?t.split(\"/\")[2]:t.split(\"/\")[0];return e=e.split(\":\")[0],e=e.split(\"?\")[0],e}function U_e(t){return N_e(t).split(\".\").slice(-2).join(\".\")}function z_e(){return Math.floor(Math.random()*nre.length)}function V_e(){return nre[z_e()]}function H_e(t){return U_e(t)===O_e}function rre(t){return H_e(t)?V_e():t}var O_e,L_e,nre,ore=Ve(()=>{u();O_e=\"walletconnect.org\",L_e=\"abcdefghijklmnopqrstuvwxyz0123456789\",nre=L_e.split(\"\").map(t=>`https://${t}.bridge.walletconnect.org`)});var DO,ire,are=Ve(()=>{u();Av();Vne();Xne();Qne();tre();ore();DO=class{constructor(e){if(this.protocol=\"wc\",this.version=1,this._bridge=\"\",this._key=null,this._clientId=\"\",this._clientMeta=null,this._peerId=\"\",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic=\"\",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl=\"\",this._eventManager=new Jne,this._clientMeta=QF()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new ere(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...E9,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Wne);e.connectorOpts.bridge&&(this.bridge=rre(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,\"Session request rejected\"),this._transport=e.transport||new zne({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let n=lte(e);this._key=n}get key(){return this._key?ite(this._key,!0):\"\"}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=j9()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=QF()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){let r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let n=this._formatRequest({method:\"wc_instantRequest\",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=j9(),this._eventManager.trigger({event:\"display_uri\",params:[this.uri]}),this.on(\"modal_closed\",()=>{throw new Error(RO)});let r=()=>{this.killSession()};try{let o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Zne);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on(\"modal_closed\",()=>r(new Error(RO))),this.on(\"connect\",(o,a)=>{if(o)return r(o);n(a.params[0])})}))}async createSession(e){if(this._connected)throw new Error(G9);if(this.pending)return;this._key=await this._generateKey();let n=this._formatRequest({method:\"wc_sessionRequest\",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=j9(),this._sendSessionRequest(n,\"Session update rejected\",{topic:this.handshakeTopic}),this._eventManager.trigger({event:\"display_uri\",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(G9);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||\"\";let n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:\"2.0\",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:\"connect\",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(G9);let n=e&&e.message?e.message:Hne,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:\"disconnect\",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(fm);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||\"\";let n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:\"wc_sessionUpdate\",params:[n]});this._sendSessionRequest(r,\"Session update rejected\"),this._eventManager.trigger({event:\"session_update\",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let n=e?e.message:\"Session Disconnected\",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:\"wc_sessionUpdate\",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(fm);let n=$9(e),r=this._formatRequest({method:\"eth_sendTransaction\",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(fm);let n=$9(e),r=this._formatRequest({method:\"eth_signTransaction\",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(fm);let n=this._formatRequest({method:\"eth_sign\",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(fm);e=AO(e);let n=this._formatRequest({method:\"personal_sign\",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(fm);let n=this._formatRequest({method:\"eth_signTypedData\",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error(\"Session currently disconnected\");let n=this._formatRequest({method:\"wallet_updateChain\",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:\"call_request_sent\",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(a,c)=>{if(a){o(a);return}if(!c)throw new Error(jne);r(c)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(fm);switch(e.method){case\"eth_accounts\":return this.accounts;case\"eth_chainId\":return M9(this.chainId);case\"eth_sendTransaction\":case\"eth_signTransaction\":e.params&&(e.params[0]=$9(e.params[0]));break;case\"personal_sign\":e.params&&(e.params=AO(e.params));break;default:break}let r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(kg(e)){let n=this._formatResponse(e);this._sendResponse(n)}else throw new Error($ne)}rejectRequest(e){if(Sv(e)){let n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(Kne)}transportClose(){this._transport.close()}async _sendRequest(e,n){let r=this._formatRequest(e),o=await this._encrypt(r),a=typeof n?.topic<\"u\"?n.topic:this.peerId,c=JSON.stringify(o),l=typeof n?.forcePushNotification<\"u\"?!n.forcePushNotification:lne(r);this._transport.send(c,a,l)}async _sendResponse(e){let n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n);this._transport.send(o,r,!0)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:\"call_request_sent\",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>\"u\")throw new Error(Gne);return{id:typeof e.id>\"u\"?one():e.id,jsonrpc:\"2.0\",method:e.method,params:typeof e.params>\"u\"?[]:e.params}}_formatResponse(e){if(typeof e.id>\"u\")throw new Error(qne);let n={id:e.id,jsonrpc:\"2.0\"};if(Sv(e)){let r=fne(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(kg(e))return Object.assign(Object.assign({},n),e);throw new Error(IO)}_handleSessionDisconnect(e){let n=e||\"Session Disconnected\";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),w9(oO)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=\"\"),this._peerId&&(this._peerId=\"\"),this._eventManager.trigger({event:\"disconnect\",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:\"session_update\",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:\"connect\",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}let o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}kg(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,a)=>{if(o){r(o);return}kg(a)?n(a.result):a.error&&a.error.message?r(a.error):r(new Error(IO))})})}_subscribeToInternalEvents(){this.on(\"display_uri\",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:\"modal_closed\",params:[]})},this._qrcodeModalOptions)}),this.on(\"connect\",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on(\"call_request_sent\",(e,n)=>{let{request:r}=n.params[0];if(Iee()&&this._signingMethods.includes(r.method)){let o=b9(oO);o&&(window.location.href=o.href)}}),this.on(\"wc_sessionRequest\",(e,n)=>{e&&this._eventManager.trigger({event:\"error\",params:[{code:\"SESSION_REQUEST_ERROR\",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;let r=Object.assign(Object.assign({},n),{method:\"session_request\"});this._eventManager.trigger(r)}),this.on(\"wc_sessionUpdate\",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse(\"Session disconnected\",n.params[0])})}_initTransport(){this._transport.on(\"message\",e=>this._handleIncomingMessages(e)),this._transport.on(\"open\",()=>this._eventManager.trigger({event:\"transport_open\",params:[]})),this._transport.on(\"close\",()=>this._eventManager.trigger({event:\"transport_close\",params:[]})),this._transport.on(\"error\",()=>this._eventManager.trigger({event:\"transport_error\",params:[\"Websocket connection failed\"]})),this._transport.open()}_formatUri(){let e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),a=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${a}`}_parseUri(e){let n=Dne(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error(\"Invalid or missing handshakeTopic parameter value\");let r=n.handshakeTopic;if(!n.bridge)throw Error(\"Invalid or missing bridge url parameter value\");let o=decodeURIComponent(n.bridge);if(!n.key)throw Error(\"Invalid or missing key parameter value\");let a=n.key;return{handshakeTopic:r,bridge:o,key:a}}else throw new Error(Yne)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){let n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!=\"string\")throw Error(\"Invalid or missing pushServerOpts.url parameter value\");if(!e.type||typeof e.type!=\"string\")throw Error(\"Invalid or missing pushServerOpts.type parameter value\");if(!e.token||typeof e.token!=\"string\")throw Error(\"Invalid or missing pushServerOpts.token parameter value\");let n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:\"\",language:e.language||\"\"};this.on(\"connect\",async(r,o)=>{if(r)throw r;if(e.peerMeta){let a=o.params[0].peerMeta.name;n.peerName=a}try{if(!(await(await fetch(`${e.url}/new`,{method:\"POST\",headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},body:JSON.stringify(n)})).json()).success)throw Error(\"Failed to register in Push Server\")}catch{throw Error(\"Failed to register in Push Server\")}})}},ire=DO});function FO(t){return sre.getBrowerCrypto().getRandomValues(new Uint8Array(t))}var sre,cre=Ve(()=>{u();sre=br(Ev())});var j_e,OO,LO,q9,$_e,K_e,W9,NO,G_e,UO=Ve(()=>{u();j_e=0,OO=1,LO=16,q9=32,$_e=64,K_e=128,W9=256,NO=512,G_e=1024});var L4,Y9,Td,zO,Cg,VO,HO,q_e,W_e,Y_e,Z_e,X_e,J_e,Q_e,eMe,tMe,lre=Ve(()=>{u();UO();L4=256,Y9=256,Td=\"AES-CBC\",zO=`SHA-${L4}`,Cg=\"HMAC\",VO=\"SHA-256\",HO=\"SHA-512\",q_e=`aes-${L4}-cbc`,W_e=`sha${Y9}`,Y_e=\"sha256\",Z_e=\"sha512\",X_e=\"ripemd160\",J_e=1,Q_e=32,eMe=16,tMe=32});var nMe,rMe,ure=Ve(()=>{u();nMe=\"hex\",rMe=\"utf8\"});var oMe,dre=Ve(()=>{u();oMe=\"Bad MAC\"});var jO,$O,KO,GO,fre=Ve(()=>{u();jO=\"encrypt\",$O=\"decrypt\",KO=\"sign\",GO=\"verify\"});var qO=Ve(()=>{u();lre();ure();dre();UO();fre()});function iMe(t){return t===Td?{length:L4,name:Td}:{hash:{name:zO},name:Cg}}function aMe(t){return t===Td?[jO,$O]:[KO,GO]}async function Z9(t,e=Td){return pm.getSubtleCrypto().importKey(\"raw\",t,iMe(e),!0,aMe(e))}async function pre(t,e,n){let r=pm.getSubtleCrypto(),o=await Z9(e,Td),a=await r.encrypt({iv:t,name:Td},o,n);return new Uint8Array(a)}async function hre(t,e,n){let r=pm.getSubtleCrypto(),o=await Z9(e,Td),a=await r.decrypt({iv:t,name:Td},o,n);return new Uint8Array(a)}async function WO(t,e){let n=pm.getSubtleCrypto(),r=await Z9(t,Cg),o=await n.sign({length:Y9,name:Cg},r,e);return new Uint8Array(o)}async function YO(t,e){let n=pm.getSubtleCrypto(),r=await Z9(t,Cg),o=await n.sign({length:512,name:Cg},r,e);return new Uint8Array(o)}async function mre(t){let n=await pm.getSubtleCrypto().digest({name:VO},t);return new Uint8Array(n)}async function gre(t){let n=await pm.getSubtleCrypto().digest({name:HO},t);return new Uint8Array(n)}var pm,X9=Ve(()=>{u();pm=br(Ev());qO()});function ZO(t,e,n){return pre(t,e,n)}function XO(t,e,n){return hre(t,e,n)}var yre=Ve(()=>{u();X9()});var Ol={};var vre=Ve(()=>{u();wo(Ol,br(Ev()))});var sMe,xre,bre=Ve(()=>{u();sMe=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],xre={pad(t){let e=sMe[t.byteLength%16||0],n=new Uint8Array(t.byteLength+e.length);return n.set(t),n.set(e,t.byteLength),n},unpad(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}}});var wre=Ve(()=>{u()});function Ere(t,e){if(!t)throw new Error(e||\"Assertion failed\")}function N4(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return n===0}var Sre=Ve(()=>{u()});var es={};Oi(es,{assert:()=>Ere,isConstantTime:()=>N4,pkcs7:()=>xre});var JO=Ve(()=>{u();vre();wo(es,Ol);bre();wre();Sre()});async function J9(t,e){return await WO(t,e)}async function cMe(t,e,n){let r=await WO(t,e);return N4(r,n)}async function lMe(t,e){return await YO(t,e)}async function uMe(t,e,n){let r=await YO(t,e);return N4(r,n)}var Are=Ve(()=>{u();X9();JO()});async function dMe(t){return await mre(t)}async function fMe(t){return await gre(t)}async function pMe(t){throw new Error(\"Not supported for Browser async methods, use sync instead!\")}var kre=Ve(()=>{u();X9()});var ku={};Oi(ku,{AES_BROWSER_ALGO:()=>Td,AES_LENGTH:()=>L4,AES_NODE_ALGO:()=>q_e,DECRYPT_OP:()=>$O,ENCRYPT_OP:()=>jO,ERROR_BAD_MAC:()=>oMe,HEX_ENC:()=>nMe,HMAC_BROWSER:()=>Cg,HMAC_BROWSER_ALGO:()=>zO,HMAC_LENGTH:()=>Y9,HMAC_NODE_ALGO:()=>W_e,IV_LENGTH:()=>eMe,KEY_LENGTH:()=>Q_e,LENGTH_0:()=>j_e,LENGTH_1:()=>OO,LENGTH_1024:()=>G_e,LENGTH_128:()=>K_e,LENGTH_16:()=>LO,LENGTH_256:()=>W9,LENGTH_32:()=>q9,LENGTH_512:()=>NO,LENGTH_64:()=>$_e,MAC_LENGTH:()=>tMe,PREFIX_LENGTH:()=>J_e,RIPEMD160_NODE_ALGO:()=>X_e,SHA256_BROWSER_ALGO:()=>VO,SHA256_NODE_ALGO:()=>Y_e,SHA512_BROWSER_ALGO:()=>HO,SHA512_NODE_ALGO:()=>Z_e,SIGN_OP:()=>KO,UTF8_ENC:()=>rMe,VERIFY_OP:()=>GO,aesCbcDecrypt:()=>XO,aesCbcEncrypt:()=>ZO,assert:()=>Ere,hmacSha256Sign:()=>J9,hmacSha256Verify:()=>cMe,hmacSha512Sign:()=>lMe,hmacSha512Verify:()=>uMe,isConstantTime:()=>N4,pkcs7:()=>xre,randomBytes:()=>FO,ripemd160:()=>pMe,sha256:()=>dMe,sha512:()=>fMe});var Cre=Ve(()=>{u();cre();yre();Are();kre();JO();wo(ku,es);qO()});var QO={};Oi(QO,{decrypt:()=>mMe,encrypt:()=>hMe,generateKey:()=>Tre,verifyHmac:()=>_re});async function Tre(t){let e=(t||256)/8,n=FO(e);return ate(xv(n))}async function _re(t,e){let n=cm(t.data),r=cm(t.iv),o=cm(t.hmac),a=sm(o,!1),c=dO(n,r),l=await J9(e,c),f=sm(l,!1);return Fl(a)===Fl(f)}async function hMe(t,e,n){let r=am(_9(e)),o=n||await Tre(128),a=am(_9(o)),c=sm(a,!1),l=JSON.stringify(t),f=uO(l),p=await ZO(a,r,f),m=sm(p,!1),g=dO(p,a),y=await J9(r,g),A=sm(y,!1);return{data:m,hmac:A,iv:c}}async function mMe(t,e){let n=am(_9(e));if(!n)throw new Error(\"Missing key: required for decryption\");if(!await _re(t,n))return null;let o=cm(t.data),a=cm(t.iv),c=await XO(a,n,o),l=lO(c),f;try{f=JSON.parse(l)}catch{return null}return f}var Mre=Ve(()=>{u();Cre();bv();Av()});var eL,kv,Tg=Ve(()=>{u();are();Mre();eL=class extends ire{constructor(e,n){super({cryptoLib:QO,connectorOpts:e,pushServerOpts:n})}},kv=eL});var _g=Qr((U4,tL)=>{u();(function(t,e){typeof U4==\"object\"&&typeof tL==\"object\"?tL.exports=e():typeof define==\"function\"&&define.amd?define([],e):typeof U4==\"object\"?U4.bowser=e():t.bowser=e()})(U4,(function(){return(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<\"u\"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(r,\"__esModule\",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r==\"object\"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,\"default\",{enumerable:!0,value:r}),2&o&&typeof r!=\"string\")for(var c in r)n.d(a,c,function(l){return r[l]}.bind(null,c));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,\"a\",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p=\"\",n(n.s=90)})({17:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r=n(18),o=(function(){function a(){}return a.getFirstMatch=function(c,l){var f=l.match(c);return f&&f.length>0&&f[1]||\"\"},a.getSecondMatch=function(c,l){var f=l.match(c);return f&&f.length>1&&f[2]||\"\"},a.matchAndReturnConst=function(c,l,f){if(c.test(l))return f},a.getWindowsVersionName=function(c){switch(c){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}},a.getMacOSVersionName=function(c){var l=c.split(\".\").splice(0,2).map((function(f){return parseInt(f,10)||0}));if(l.push(0),l[0]===10)switch(l[1]){case 5:return\"Leopard\";case 6:return\"Snow Leopard\";case 7:return\"Lion\";case 8:return\"Mountain Lion\";case 9:return\"Mavericks\";case 10:return\"Yosemite\";case 11:return\"El Capitan\";case 12:return\"Sierra\";case 13:return\"High Sierra\";case 14:return\"Mojave\";case 15:return\"Catalina\";default:return}},a.getAndroidVersionName=function(c){var l=c.split(\".\").splice(0,2).map((function(f){return parseInt(f,10)||0}));if(l.push(0),!(l[0]===1&&l[1]<5))return l[0]===1&&l[1]<6?\"Cupcake\":l[0]===1&&l[1]>=6?\"Donut\":l[0]===2&&l[1]<2?\"Eclair\":l[0]===2&&l[1]===2?\"Froyo\":l[0]===2&&l[1]>2?\"Gingerbread\":l[0]===3?\"Honeycomb\":l[0]===4&&l[1]<1?\"Ice Cream Sandwich\":l[0]===4&&l[1]<4?\"Jelly Bean\":l[0]===4&&l[1]>=4?\"KitKat\":l[0]===5?\"Lollipop\":l[0]===6?\"Marshmallow\":l[0]===7?\"Nougat\":l[0]===8?\"Oreo\":l[0]===9?\"Pie\":void 0},a.getVersionPrecision=function(c){return c.split(\".\").length},a.compareVersions=function(c,l,f){f===void 0&&(f=!1);var p=a.getVersionPrecision(c),m=a.getVersionPrecision(l),g=Math.max(p,m),y=0,A=a.map([c,l],(function(T){var R=g-a.getVersionPrecision(T),K=T+new Array(R+1).join(\".0\");return a.map(K.split(\".\"),(function(O){return new Array(20-O.length).join(\"0\")+O})).reverse()}));for(f&&(y=g-Math.min(p,m)),g-=1;g>=y;){if(A[0][g]>A[1][g])return 1;if(A[0][g]===A[1][g]){if(g===y)return 0;g-=1}else if(A[0][g]<A[1][g])return-1}},a.map=function(c,l){var f,p=[];if(Array.prototype.map)return Array.prototype.map.call(c,l);for(f=0;f<c.length;f+=1)p.push(l(c[f]));return p},a.find=function(c,l){var f,p;if(Array.prototype.find)return Array.prototype.find.call(c,l);for(f=0,p=c.length;f<p;f+=1){var m=c[f];if(l(m,f))return m}},a.assign=function(c){for(var l,f,p=c,m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[c].concat(g));var A=function(){var T=g[l];typeof T==\"object\"&&T!==null&&Object.keys(T).forEach((function(R){p[R]=T[R]}))};for(l=0,f=g.length;l<f;l+=1)A();return c},a.getBrowserAlias=function(c){return r.BROWSER_ALIASES_MAP[c]},a.getBrowserTypeByAlias=function(c){return r.BROWSER_MAP[c]||\"\"},a})();e.default=o,t.exports=e.default},18:function(t,e,n){\"use strict\";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={\"Amazon Silk\":\"amazon_silk\",\"Android Browser\":\"android\",Bada:\"bada\",BlackBerry:\"blackberry\",Chrome:\"chrome\",Chromium:\"chromium\",Electron:\"electron\",Epiphany:\"epiphany\",Firefox:\"firefox\",Focus:\"focus\",Generic:\"generic\",\"Google Search\":\"google_search\",Googlebot:\"googlebot\",\"Internet Explorer\":\"ie\",\"K-Meleon\":\"k_meleon\",Maxthon:\"maxthon\",\"Microsoft Edge\":\"edge\",\"MZ Browser\":\"mz\",\"NAVER Whale Browser\":\"naver\",Opera:\"opera\",\"Opera Coast\":\"opera_coast\",PhantomJS:\"phantomjs\",Puffin:\"puffin\",QupZilla:\"qupzilla\",QQ:\"qq\",QQLite:\"qqlite\",Safari:\"safari\",Sailfish:\"sailfish\",\"Samsung Internet for Android\":\"samsung_internet\",SeaMonkey:\"seamonkey\",Sleipnir:\"sleipnir\",Swing:\"swing\",Tizen:\"tizen\",\"UC Browser\":\"uc\",Vivaldi:\"vivaldi\",\"WebOS Browser\":\"webos\",WeChat:\"wechat\",\"Yandex Browser\":\"yandex\",Roku:\"roku\"},e.BROWSER_MAP={amazon_silk:\"Amazon Silk\",android:\"Android Browser\",bada:\"Bada\",blackberry:\"BlackBerry\",chrome:\"Chrome\",chromium:\"Chromium\",electron:\"Electron\",epiphany:\"Epiphany\",firefox:\"Firefox\",focus:\"Focus\",generic:\"Generic\",googlebot:\"Googlebot\",google_search:\"Google Search\",ie:\"Internet Explorer\",k_meleon:\"K-Meleon\",maxthon:\"Maxthon\",edge:\"Microsoft Edge\",mz:\"MZ Browser\",naver:\"NAVER Whale Browser\",opera:\"Opera\",opera_coast:\"Opera Coast\",phantomjs:\"PhantomJS\",puffin:\"Puffin\",qupzilla:\"QupZilla\",qq:\"QQ Browser\",qqlite:\"QQ Browser Lite\",safari:\"Safari\",sailfish:\"Sailfish\",samsung_internet:\"Samsung Internet for Android\",seamonkey:\"SeaMonkey\",sleipnir:\"Sleipnir\",swing:\"Swing\",tizen:\"Tizen\",uc:\"UC Browser\",vivaldi:\"Vivaldi\",webos:\"WebOS Browser\",wechat:\"WeChat\",yandex:\"Yandex Browser\"},e.PLATFORMS_MAP={tablet:\"tablet\",mobile:\"mobile\",desktop:\"desktop\",tv:\"tv\"},e.OS_MAP={WindowsPhone:\"Windows Phone\",Windows:\"Windows\",MacOS:\"macOS\",iOS:\"iOS\",Android:\"Android\",WebOS:\"WebOS\",BlackBerry:\"BlackBerry\",Bada:\"Bada\",Tizen:\"Tizen\",Linux:\"Linux\",ChromeOS:\"Chrome OS\",PlayStation4:\"PlayStation 4\",Roku:\"Roku\"},e.ENGINE_MAP={EdgeHTML:\"EdgeHTML\",Blink:\"Blink\",Trident:\"Trident\",Presto:\"Presto\",Gecko:\"Gecko\",WebKit:\"WebKit\"}},90:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},a=n(18);function c(f,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,\"value\"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}var l=(function(){function f(){}var p,m,g;return f.getParser=function(y,A){if(A===void 0&&(A=!1),typeof y!=\"string\")throw new Error(\"UserAgent should be a string\");return new o.default(y,A)},f.parse=function(y){return new o.default(y).getResult()},p=f,g=[{key:\"BROWSER_MAP\",get:function(){return a.BROWSER_MAP}},{key:\"ENGINE_MAP\",get:function(){return a.ENGINE_MAP}},{key:\"OS_MAP\",get:function(){return a.OS_MAP}},{key:\"PLATFORMS_MAP\",get:function(){return a.PLATFORMS_MAP}}],(m=null)&&c(p.prototype,m),g&&c(p,g),f})();e.default=l,t.exports=e.default},91:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r=f(n(92)),o=f(n(93)),a=f(n(94)),c=f(n(95)),l=f(n(17));function f(m){return m&&m.__esModule?m:{default:m}}var p=(function(){function m(y,A){if(A===void 0&&(A=!1),y==null||y===\"\")throw new Error(\"UserAgent parameter can\\'t be empty\");this._ua=y,this.parsedResult={},A!==!0&&this.parse()}var g=m.prototype;return g.getUA=function(){return this._ua},g.test=function(y){return y.test(this._ua)},g.parseBrowser=function(){var y=this;this.parsedResult.browser={};var A=l.default.find(r.default,(function(T){if(typeof T.test==\"function\")return T.test(y);if(T.test instanceof Array)return T.test.some((function(R){return y.test(R)}));throw new Error(\"Browser\\'s test function is not valid\")}));return A&&(this.parsedResult.browser=A.describe(this.getUA())),this.parsedResult.browser},g.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},g.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||\"\":this.getBrowser().name||\"\"},g.getBrowserVersion=function(){return this.getBrowser().version},g.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},g.parseOS=function(){var y=this;this.parsedResult.os={};var A=l.default.find(o.default,(function(T){if(typeof T.test==\"function\")return T.test(y);if(T.test instanceof Array)return T.test.some((function(R){return y.test(R)}));throw new Error(\"Browser\\'s test function is not valid\")}));return A&&(this.parsedResult.os=A.describe(this.getUA())),this.parsedResult.os},g.getOSName=function(y){var A=this.getOS().name;return y?String(A).toLowerCase()||\"\":A||\"\"},g.getOSVersion=function(){return this.getOS().version},g.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},g.getPlatformType=function(y){y===void 0&&(y=!1);var A=this.getPlatform().type;return y?String(A).toLowerCase()||\"\":A||\"\"},g.parsePlatform=function(){var y=this;this.parsedResult.platform={};var A=l.default.find(a.default,(function(T){if(typeof T.test==\"function\")return T.test(y);if(T.test instanceof Array)return T.test.some((function(R){return y.test(R)}));throw new Error(\"Browser\\'s test function is not valid\")}));return A&&(this.parsedResult.platform=A.describe(this.getUA())),this.parsedResult.platform},g.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},g.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||\"\":this.getEngine().name||\"\"},g.parseEngine=function(){var y=this;this.parsedResult.engine={};var A=l.default.find(c.default,(function(T){if(typeof T.test==\"function\")return T.test(y);if(T.test instanceof Array)return T.test.some((function(R){return y.test(R)}));throw new Error(\"Browser\\'s test function is not valid\")}));return A&&(this.parsedResult.engine=A.describe(this.getUA())),this.parsedResult.engine},g.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},g.getResult=function(){return l.default.assign({},this.parsedResult)},g.satisfies=function(y){var A=this,T={},R=0,K={},O=0;if(Object.keys(y).forEach((function(te){var S=y[te];typeof S==\"string\"?(K[te]=S,O+=1):typeof S==\"object\"&&(T[te]=S,R+=1)})),R>0){var V=Object.keys(T),D=l.default.find(V,(function(te){return A.isOS(te)}));if(D){var G=this.satisfies(T[D]);if(G!==void 0)return G}var ee=l.default.find(V,(function(te){return A.isPlatform(te)}));if(ee){var J=this.satisfies(T[ee]);if(J!==void 0)return J}}if(O>0){var le=Object.keys(K),se=l.default.find(le,(function(te){return A.isBrowser(te,!0)}));if(se!==void 0)return this.compareVersion(K[se])}},g.isBrowser=function(y,A){A===void 0&&(A=!1);var T=this.getBrowserName().toLowerCase(),R=y.toLowerCase(),K=l.default.getBrowserTypeByAlias(R);return A&&K&&(R=K.toLowerCase()),R===T},g.compareVersion=function(y){var A=[0],T=y,R=!1,K=this.getBrowserVersion();if(typeof K==\"string\")return y[0]===\">\"||y[0]===\"<\"?(T=y.substr(1),y[1]===\"=\"?(R=!0,T=y.substr(2)):A=[],y[0]===\">\"?A.push(1):A.push(-1)):y[0]===\"=\"?T=y.substr(1):y[0]===\"~\"&&(R=!0,T=y.substr(1)),A.indexOf(l.default.compareVersions(K,T,R))>-1},g.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},g.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},g.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},g.is=function(y,A){return A===void 0&&(A=!1),this.isBrowser(y,A)||this.isOS(y)||this.isPlatform(y)},g.some=function(y){var A=this;return y===void 0&&(y=[]),y.some((function(T){return A.is(T)}))},m})();e.default=p,t.exports=e.default},92:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},a=/version\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c=[{test:[/googlebot/i],describe:function(l){var f={name:\"Googlebot\"},p=o.default.getFirstMatch(/googlebot\\\\/(\\\\d+(\\\\.\\\\d+))/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/opera/i],describe:function(l){var f={name:\"Opera\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:opera)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/opr\\\\/|opios/i],describe:function(l){var f={name:\"Opera\"},p=o.default.getFirstMatch(/(?:opr|opios)[\\\\s/](\\\\S+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/SamsungBrowser/i],describe:function(l){var f={name:\"Samsung Internet for Android\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:SamsungBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/Whale/i],describe:function(l){var f={name:\"NAVER Whale Browser\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:whale)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/MZBrowser/i],describe:function(l){var f={name:\"MZ Browser\"},p=o.default.getFirstMatch(/(?:MZBrowser)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/focus/i],describe:function(l){var f={name:\"Focus\"},p=o.default.getFirstMatch(/(?:focus)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/swing/i],describe:function(l){var f={name:\"Swing\"},p=o.default.getFirstMatch(/(?:swing)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/coast/i],describe:function(l){var f={name:\"Opera Coast\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:coast)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/opt\\\\/\\\\d+(?:.?_?\\\\d+)+/i],describe:function(l){var f={name:\"Opera Touch\"},p=o.default.getFirstMatch(/(?:opt)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/yabrowser/i],describe:function(l){var f={name:\"Yandex Browser\"},p=o.default.getFirstMatch(/(?:yabrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/ucbrowser/i],describe:function(l){var f={name:\"UC Browser\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:ucbrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/Maxthon|mxios/i],describe:function(l){var f={name:\"Maxthon\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/epiphany/i],describe:function(l){var f={name:\"Epiphany\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:epiphany)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/puffin/i],describe:function(l){var f={name:\"Puffin\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:puffin)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/sleipnir/i],describe:function(l){var f={name:\"Sleipnir\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:sleipnir)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/k-meleon/i],describe:function(l){var f={name:\"K-Meleon\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/(?:k-meleon)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/micromessenger/i],describe:function(l){var f={name:\"WeChat\"},p=o.default.getFirstMatch(/(?:micromessenger)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/qqbrowser/i],describe:function(l){var f={name:/qqbrowserlite/i.test(l)?\"QQ Browser Lite\":\"QQ Browser\"},p=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/msie|trident/i],describe:function(l){var f={name:\"Internet Explorer\"},p=o.default.getFirstMatch(/(?:msie |rv:)(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/\\\\sedg\\\\//i],describe:function(l){var f={name:\"Microsoft Edge\"},p=o.default.getFirstMatch(/\\\\sedg\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/edg([ea]|ios)/i],describe:function(l){var f={name:\"Microsoft Edge\"},p=o.default.getSecondMatch(/edg([ea]|ios)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/vivaldi/i],describe:function(l){var f={name:\"Vivaldi\"},p=o.default.getFirstMatch(/vivaldi\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/seamonkey/i],describe:function(l){var f={name:\"SeaMonkey\"},p=o.default.getFirstMatch(/seamonkey\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/sailfish/i],describe:function(l){var f={name:\"Sailfish\"},p=o.default.getFirstMatch(/sailfish\\\\s?browser\\\\/(\\\\d+(\\\\.\\\\d+)?)/i,l);return p&&(f.version=p),f}},{test:[/silk/i],describe:function(l){var f={name:\"Amazon Silk\"},p=o.default.getFirstMatch(/silk\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/phantom/i],describe:function(l){var f={name:\"PhantomJS\"},p=o.default.getFirstMatch(/phantomjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/slimerjs/i],describe:function(l){var f={name:\"SlimerJS\"},p=o.default.getFirstMatch(/slimerjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(l){var f={name:\"BlackBerry\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/blackberry[\\\\d]+\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/(web|hpw)[o0]s/i],describe:function(l){var f={name:\"WebOS Browser\"},p=o.default.getFirstMatch(a,l)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/bada/i],describe:function(l){var f={name:\"Bada\"},p=o.default.getFirstMatch(/dolfin\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/tizen/i],describe:function(l){var f={name:\"Tizen\"},p=o.default.getFirstMatch(/(?:tizen\\\\s?)?browser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/qupzilla/i],describe:function(l){var f={name:\"QupZilla\"},p=o.default.getFirstMatch(/(?:qupzilla)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/firefox|iceweasel|fxios/i],describe:function(l){var f={name:\"Firefox\"},p=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/electron/i],describe:function(l){var f={name:\"Electron\"},p=o.default.getFirstMatch(/(?:electron)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/MiuiBrowser/i],describe:function(l){var f={name:\"Miui\"},p=o.default.getFirstMatch(/(?:MiuiBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/chromium/i],describe:function(l){var f={name:\"Chromium\"},p=o.default.getFirstMatch(/(?:chromium)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,l)||o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/chrome|crios|crmo/i],describe:function(l){var f={name:\"Chrome\"},p=o.default.getFirstMatch(/(?:chrome|crios|crmo)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/GSA/i],describe:function(l){var f={name:\"Google Search\"},p=o.default.getFirstMatch(/(?:GSA)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:function(l){var f=!l.test(/like android/i),p=l.test(/android/i);return f&&p},describe:function(l){var f={name:\"Android Browser\"},p=o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/playstation 4/i],describe:function(l){var f={name:\"PlayStation 4\"},p=o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/safari|applewebkit/i],describe:function(l){var f={name:\"Safari\"},p=o.default.getFirstMatch(a,l);return p&&(f.version=p),f}},{test:[/.*/i],describe:function(l){var f=l.search(\"\\\\\\\\(\")!==-1?/^(.*)\\\\/(.*)[ \\\\t]\\\\((.*)/:/^(.*)\\\\/(.*) /;return{name:o.default.getFirstMatch(f,l),version:o.default.getSecondMatch(f,l)}}}];e.default=c,t.exports=e.default},93:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),c=[{test:[/Roku\\\\/DVP/],describe:function(l){var f=o.default.getFirstMatch(/Roku\\\\/DVP-(\\\\d+\\\\.\\\\d+)/i,l);return{name:a.OS_MAP.Roku,version:f}}},{test:[/windows phone/i],describe:function(l){var f=o.default.getFirstMatch(/windows phone (?:os)?\\\\s?(\\\\d+(\\\\.\\\\d+)*)/i,l);return{name:a.OS_MAP.WindowsPhone,version:f}}},{test:[/windows /i],describe:function(l){var f=o.default.getFirstMatch(/Windows ((NT|XP)( \\\\d\\\\d?.\\\\d)?)/i,l),p=o.default.getWindowsVersionName(f);return{name:a.OS_MAP.Windows,version:f,versionName:p}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(l){var f={name:a.OS_MAP.iOS},p=o.default.getSecondMatch(/(Version\\\\/)(\\\\d[\\\\d.]+)/,l);return p&&(f.version=p),f}},{test:[/macintosh/i],describe:function(l){var f=o.default.getFirstMatch(/mac os x (\\\\d+(\\\\.?_?\\\\d+)+)/i,l).replace(/[_\\\\s]/g,\".\"),p=o.default.getMacOSVersionName(f),m={name:a.OS_MAP.MacOS,version:f};return p&&(m.versionName=p),m}},{test:[/(ipod|iphone|ipad)/i],describe:function(l){var f=o.default.getFirstMatch(/os (\\\\d+([_\\\\s]\\\\d+)*) like mac os x/i,l).replace(/[_\\\\s]/g,\".\");return{name:a.OS_MAP.iOS,version:f}}},{test:function(l){var f=!l.test(/like android/i),p=l.test(/android/i);return f&&p},describe:function(l){var f=o.default.getFirstMatch(/android[\\\\s/-](\\\\d+(\\\\.\\\\d+)*)/i,l),p=o.default.getAndroidVersionName(f),m={name:a.OS_MAP.Android,version:f};return p&&(m.versionName=p),m}},{test:[/(web|hpw)[o0]s/i],describe:function(l){var f=o.default.getFirstMatch(/(?:web|hpw)[o0]s\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,l),p={name:a.OS_MAP.WebOS};return f&&f.length&&(p.version=f),p}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(l){var f=o.default.getFirstMatch(/rim\\\\stablet\\\\sos\\\\s(\\\\d+(\\\\.\\\\d+)*)/i,l)||o.default.getFirstMatch(/blackberry\\\\d+\\\\/(\\\\d+([_\\\\s]\\\\d+)*)/i,l)||o.default.getFirstMatch(/\\\\bbb(\\\\d+)/i,l);return{name:a.OS_MAP.BlackBerry,version:f}}},{test:[/bada/i],describe:function(l){var f=o.default.getFirstMatch(/bada\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,l);return{name:a.OS_MAP.Bada,version:f}}},{test:[/tizen/i],describe:function(l){var f=o.default.getFirstMatch(/tizen[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,l);return{name:a.OS_MAP.Tizen,version:f}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(l){var f=o.default.getFirstMatch(/PlayStation 4[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,l);return{name:a.OS_MAP.PlayStation4,version:f}}}];e.default=c,t.exports=e.default},94:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),c=[{test:[/googlebot/i],describe:function(){return{type:\"bot\",vendor:\"Google\"}}},{test:[/huawei/i],describe:function(l){var f=o.default.getFirstMatch(/(can-l01)/i,l)&&\"Nova\",p={type:a.PLATFORMS_MAP.mobile,vendor:\"Huawei\"};return f&&(p.model=f),p}},{test:[/nexus\\\\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:\"Nexus\"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:\"Amazon\",model:\"Kindle Fire HD 7\"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:\"Amazon\"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(l){var f=l.test(/ipod|iphone/i),p=l.test(/like (ipod|iphone)/i);return f&&!p},describe:function(l){var f=o.default.getFirstMatch(/(ipod|iphone)/i,l);return{type:a.PLATFORMS_MAP.mobile,vendor:\"Apple\",model:f}}},{test:[/nexus\\\\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:\"Nexus\"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(l){return l.getBrowserName(!0)===\"blackberry\"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:\"BlackBerry\"}}},{test:function(l){return l.getBrowserName(!0)===\"bada\"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(l){return l.getBrowserName()===\"windows phone\"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:\"Microsoft\"}}},{test:function(l){var f=Number(String(l.getOSVersion()).split(\".\")[0]);return l.getOSName(!0)===\"android\"&&f>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(l){return l.getOSName(!0)===\"android\"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(l){return l.getOSName(!0)===\"macos\"},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:\"Apple\"}}},{test:function(l){return l.getOSName(!0)===\"windows\"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(l){return l.getOSName(!0)===\"linux\"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(l){return l.getOSName(!0)===\"playstation 4\"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(l){return l.getOSName(!0)===\"roku\"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];e.default=c,t.exports=e.default},95:function(t,e,n){\"use strict\";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),c=[{test:function(l){return l.getBrowserName(!0)===\"microsoft edge\"},describe:function(l){if(/\\\\sedg\\\\//i.test(l))return{name:a.ENGINE_MAP.Blink};var f=o.default.getFirstMatch(/edge\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return{name:a.ENGINE_MAP.EdgeHTML,version:f}}},{test:[/trident/i],describe:function(l){var f={name:a.ENGINE_MAP.Trident},p=o.default.getFirstMatch(/trident\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:function(l){return l.test(/presto/i)},describe:function(l){var f={name:a.ENGINE_MAP.Presto},p=o.default.getFirstMatch(/presto\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:function(l){var f=l.test(/gecko/i),p=l.test(/like gecko/i);return f&&!p},describe:function(l){var f={name:a.ENGINE_MAP.Gecko},p=o.default.getFirstMatch(/gecko\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}},{test:[/(apple)?webkit\\\\/537\\\\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(l){var f={name:a.ENGINE_MAP.WebKit},p=o.default.getFirstMatch(/webkit\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,l);return p&&(f.version=p),f}}];e.default=c,t.exports=e.default}})}))});var Ire=Qr((z4,nL)=>{u();(function(t,e){typeof z4==\"object\"&&typeof nL==\"object\"?nL.exports=e():typeof define==\"function\"&&define.amd?define([],e):typeof z4==\"object\"?z4.QRCodeStyling=e():t.QRCodeStyling=e()})(z4,(function(){return(()=>{var t={192:(r,o)=>{var a,c,l=(function(){var f=function(_,P){var z=_,Y=T[P],L=null,U=0,W=null,w=[],I={},ye=function(B,k){L=(function(C){for(var Z=new Array(C),X=0;X<C;X+=1){Z[X]=new Array(C);for(var ae=0;ae<C;ae+=1)Z[X][ae]=null}return Z})(U=4*z+17),ne(0,0),ne(U-7,0),ne(0,U-7),ie(),Q(),q(B,k),z>=7&&ue(B),W==null&&(W=we(z,Y,w)),Ee(W,k)},ne=function(B,k){for(var C=-1;C<=7;C+=1)if(!(B+C<=-1||U<=B+C))for(var Z=-1;Z<=7;Z+=1)k+Z<=-1||U<=k+Z||(L[B+C][k+Z]=0<=C&&C<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(C==0||C==6)||2<=C&&C<=4&&2<=Z&&Z<=4)},Q=function(){for(var B=8;B<U-8;B+=1)L[B][6]==null&&(L[B][6]=B%2==0);for(var k=8;k<U-8;k+=1)L[6][k]==null&&(L[6][k]=k%2==0)},ie=function(){for(var B=R.getPatternPosition(z),k=0;k<B.length;k+=1)for(var C=0;C<B.length;C+=1){var Z=B[k],X=B[C];if(L[Z][X]==null)for(var ae=-2;ae<=2;ae+=1)for(var de=-2;de<=2;de+=1)L[Z+ae][X+de]=ae==-2||ae==2||de==-2||de==2||ae==0&&de==0}},ue=function(B){for(var k=R.getBCHTypeNumber(z),C=0;C<18;C+=1){var Z=!B&&(k>>C&1)==1;L[Math.floor(C/3)][C%3+U-8-3]=Z}for(C=0;C<18;C+=1)Z=!B&&(k>>C&1)==1,L[C%3+U-8-3][Math.floor(C/3)]=Z},q=function(B,k){for(var C=Y<<3|k,Z=R.getBCHTypeInfo(C),X=0;X<15;X+=1){var ae=!B&&(Z>>X&1)==1;X<6?L[X][8]=ae:X<8?L[X+1][8]=ae:L[U-15+X][8]=ae}for(X=0;X<15;X+=1)ae=!B&&(Z>>X&1)==1,X<8?L[8][U-X-1]=ae:X<9?L[8][15-X-1+1]=ae:L[8][15-X-1]=ae;L[U-8][8]=!B},Ee=function(B,k){for(var C=-1,Z=U-1,X=7,ae=0,de=R.getMaskFunction(k),me=U-1;me>0;me-=2)for(me==6&&(me-=1);;){for(var Pe=0;Pe<2;Pe+=1)if(L[Z][me-Pe]==null){var De=!1;ae<B.length&&(De=(B[ae]>>>X&1)==1),de(Z,me-Pe)&&(De=!De),L[Z][me-Pe]=De,(X-=1)==-1&&(ae+=1,X=7)}if((Z+=C)<0||U<=Z){Z-=C,C=-C;break}}},we=function(B,k,C){for(var Z=V.getRSBlocks(B,k),X=D(),ae=0;ae<C.length;ae+=1){var de=C[ae];X.put(de.getMode(),4),X.put(de.getLength(),R.getLengthInBits(de.getMode(),B)),de.write(X)}var me=0;for(ae=0;ae<Z.length;ae+=1)me+=Z[ae].dataCount;if(X.getLengthInBits()>8*me)throw\"code length overflow. (\"+X.getLengthInBits()+\">\"+8*me+\")\";for(X.getLengthInBits()+4<=8*me&&X.put(0,4);X.getLengthInBits()%8!=0;)X.putBit(!1);for(;!(X.getLengthInBits()>=8*me||(X.put(236,8),X.getLengthInBits()>=8*me));)X.put(17,8);return(function(Pe,De){for(var Re=0,qe=0,et=0,ot=new Array(De.length),Qe=new Array(De.length),xt=0;xt<De.length;xt+=1){var Wt=De[xt].dataCount,Vt=De[xt].totalCount-Wt;qe=Math.max(qe,Wt),et=Math.max(et,Vt),ot[xt]=new Array(Wt);for(var Bt=0;Bt<ot[xt].length;Bt+=1)ot[xt][Bt]=255&Pe.getBuffer()[Bt+Re];Re+=Wt;var nn=R.getErrorCorrectPolynomial(Vt),Yt=O(ot[xt],nn.getLength()-1).mod(nn);for(Qe[xt]=new Array(nn.getLength()-1),Bt=0;Bt<Qe[xt].length;Bt+=1){var hn=Bt+Yt.getLength()-Qe[xt].length;Qe[xt][Bt]=hn>=0?Yt.getAt(hn):0}}var Pn=0;for(Bt=0;Bt<De.length;Bt+=1)Pn+=De[Bt].totalCount;var Mn=new Array(Pn),Un=0;for(Bt=0;Bt<qe;Bt+=1)for(xt=0;xt<De.length;xt+=1)Bt<ot[xt].length&&(Mn[Un]=ot[xt][Bt],Un+=1);for(Bt=0;Bt<et;Bt+=1)for(xt=0;xt<De.length;xt+=1)Bt<Qe[xt].length&&(Mn[Un]=Qe[xt][Bt],Un+=1);return Mn})(X,Z)};I.addData=function(B,k){var C=null;switch(k=k||\"Byte\"){case\"Numeric\":C=G(B);break;case\"Alphanumeric\":C=ee(B);break;case\"Byte\":C=J(B);break;case\"Kanji\":C=le(B);break;default:throw\"mode:\"+k}w.push(C),W=null},I.isDark=function(B,k){if(B<0||U<=B||k<0||U<=k)throw B+\",\"+k;return L[B][k]},I.getModuleCount=function(){return U},I.make=function(){if(z<1){for(var B=1;B<40;B++){for(var k=V.getRSBlocks(B,Y),C=D(),Z=0;Z<w.length;Z++){var X=w[Z];C.put(X.getMode(),4),C.put(X.getLength(),R.getLengthInBits(X.getMode(),B)),X.write(C)}var ae=0;for(Z=0;Z<k.length;Z++)ae+=k[Z].dataCount;if(C.getLengthInBits()<=8*ae)break}z=B}ye(!1,(function(){for(var de=0,me=0,Pe=0;Pe<8;Pe+=1){ye(!0,Pe);var De=R.getLostPoint(I);(Pe==0||de>De)&&(de=De,me=Pe)}return me})())},I.createTableTag=function(B,k){B=B||2;var C=\"\";C+=\\'<table style=\"\\',C+=\" border-width: 0px; border-style: none;\",C+=\" border-collapse: collapse;\",C+=\" padding: 0px; margin: \"+(k=k===void 0?4*B:k)+\"px;\",C+=\\'\">\\',C+=\"<tbody>\";for(var Z=0;Z<I.getModuleCount();Z+=1){C+=\"<tr>\";for(var X=0;X<I.getModuleCount();X+=1)C+=\\'<td style=\"\\',C+=\" border-width: 0px; border-style: none;\",C+=\" border-collapse: collapse;\",C+=\" padding: 0px; margin: 0px;\",C+=\" width: \"+B+\"px;\",C+=\" height: \"+B+\"px;\",C+=\" background-color: \",C+=I.isDark(Z,X)?\"#000000\":\"#ffffff\",C+=\";\",C+=\\'\"/>\\';C+=\"</tr>\"}return(C+=\"</tbody>\")+\"</table>\"},I.createSvgTag=function(B,k,C,Z){var X={};typeof arguments[0]==\"object\"&&(B=(X=arguments[0]).cellSize,k=X.margin,C=X.alt,Z=X.title),B=B||2,k=k===void 0?4*B:k,(C=typeof C==\"string\"?{text:C}:C||{}).text=C.text||null,C.id=C.text?C.id||\"qrcode-description\":null,(Z=typeof Z==\"string\"?{text:Z}:Z||{}).text=Z.text||null,Z.id=Z.text?Z.id||\"qrcode-title\":null;var ae,de,me,Pe,De=I.getModuleCount()*B+2*k,Re=\"\";for(Pe=\"l\"+B+\",0 0,\"+B+\" -\"+B+\",0 0,-\"+B+\"z \",Re+=\\'<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"\\',Re+=X.scalable?\"\":\\' width=\"\\'+De+\\'px\" height=\"\\'+De+\\'px\"\\',Re+=\\' viewBox=\"0 0 \\'+De+\" \"+De+\\'\" \\',Re+=\\' preserveAspectRatio=\"xMinYMin meet\"\\',Re+=Z.text||C.text?\\' role=\"img\" aria-labelledby=\"\\'+_e([Z.id,C.id].join(\" \").trim())+\\'\"\\':\"\",Re+=\">\",Re+=Z.text?\\'<title id=\"\\'+_e(Z.id)+\\'\">\\'+_e(Z.text)+\"</title>\":\"\",Re+=C.text?\\'<description id=\"\\'+_e(C.id)+\\'\">\\'+_e(C.text)+\"</description>\":\"\",Re+=\\'<rect width=\"100%\" height=\"100%\" fill=\"white\" cx=\"0\" cy=\"0\"/>\\',Re+=\\'<path d=\"\\',de=0;de<I.getModuleCount();de+=1)for(me=de*B+k,ae=0;ae<I.getModuleCount();ae+=1)I.isDark(de,ae)&&(Re+=\"M\"+(ae*B+k)+\",\"+me+Pe);return(Re+=\\'\" stroke=\"transparent\" fill=\"black\"/>\\')+\"</svg>\"},I.createDataURL=function(B,k){B=B||2,k=k===void 0?4*B:k;var C=I.getModuleCount()*B+2*k,Z=k,X=C-k;return S(C,C,(function(ae,de){if(Z<=ae&&ae<X&&Z<=de&&de<X){var me=Math.floor((ae-Z)/B),Pe=Math.floor((de-Z)/B);return I.isDark(Pe,me)?0:1}return 1}))},I.createImgTag=function(B,k,C){B=B||2,k=k===void 0?4*B:k;var Z=I.getModuleCount()*B+2*k,X=\"\";return X+=\"<img\",X+=\\' src=\"\\',X+=I.createDataURL(B,k),X+=\\'\"\\',X+=\\' width=\"\\',X+=Z,X+=\\'\"\\',X+=\\' height=\"\\',X+=Z,X+=\\'\"\\',C&&(X+=\\' alt=\"\\',X+=_e(C),X+=\\'\"\\'),X+\"/>\"};var _e=function(B){for(var k=\"\",C=0;C<B.length;C+=1){var Z=B.charAt(C);switch(Z){case\"<\":k+=\"&lt;\";break;case\">\":k+=\"&gt;\";break;case\"&\":k+=\"&amp;\";break;case\\'\"\\':k+=\"&quot;\";break;default:k+=Z}}return k};return I.createASCII=function(B,k){if((B=B||1)<2)return(function(ot){ot=ot===void 0?2:ot;var Qe,xt,Wt,Vt,Bt,nn=1*I.getModuleCount()+2*ot,Yt=ot,hn=nn-ot,Pn={\"\\\\u2588\\\\u2588\":\"\\\\u2588\",\"\\\\u2588 \":\"\\\\u2580\",\" \\\\u2588\":\"\\\\u2584\",\"  \":\" \"},Mn={\"\\\\u2588\\\\u2588\":\"\\\\u2580\",\"\\\\u2588 \":\"\\\\u2580\",\" \\\\u2588\":\" \",\"  \":\" \"},Un=\"\";for(Qe=0;Qe<nn;Qe+=2){for(Wt=Math.floor((Qe-Yt)/1),Vt=Math.floor((Qe+1-Yt)/1),xt=0;xt<nn;xt+=1)Bt=\"\\\\u2588\",Yt<=xt&&xt<hn&&Yt<=Qe&&Qe<hn&&I.isDark(Wt,Math.floor((xt-Yt)/1))&&(Bt=\" \"),Yt<=xt&&xt<hn&&Yt<=Qe+1&&Qe+1<hn&&I.isDark(Vt,Math.floor((xt-Yt)/1))?Bt+=\" \":Bt+=\"\\\\u2588\",Un+=ot<1&&Qe+1>=hn?Mn[Bt]:Pn[Bt];Un+=`\\n`}return nn%2&&ot>0?Un.substring(0,Un.length-nn-1)+Array(nn+1).join(\"\\\\u2580\"):Un.substring(0,Un.length-1)})(k);B-=1,k=k===void 0?2*B:k;var C,Z,X,ae,de=I.getModuleCount()*B+2*k,me=k,Pe=de-k,De=Array(B+1).join(\"\\\\u2588\\\\u2588\"),Re=Array(B+1).join(\"  \"),qe=\"\",et=\"\";for(C=0;C<de;C+=1){for(X=Math.floor((C-me)/B),et=\"\",Z=0;Z<de;Z+=1)ae=1,me<=Z&&Z<Pe&&me<=C&&C<Pe&&I.isDark(X,Math.floor((Z-me)/B))&&(ae=0),et+=ae?De:Re;for(X=0;X<B;X+=1)qe+=et+`\\n`}return qe.substring(0,qe.length-1)},I.renderTo2dContext=function(B,k){k=k||2;for(var C=I.getModuleCount(),Z=0;Z<C;Z++)for(var X=0;X<C;X++)B.fillStyle=I.isDark(Z,X)?\"black\":\"white\",B.fillRect(Z*k,X*k,k,k)},I};f.stringToBytes=(f.stringToBytesFuncs={default:function(_){for(var P=[],z=0;z<_.length;z+=1){var Y=_.charCodeAt(z);P.push(255&Y)}return P}}).default,f.createStringToBytes=function(_,P){var z=(function(){for(var L=te(_),U=function(){var Q=L.read();if(Q==-1)throw\"eof\";return Q},W=0,w={};;){var I=L.read();if(I==-1)break;var ye=U(),ne=U()<<8|U();w[String.fromCharCode(I<<8|ye)]=ne,W+=1}if(W!=P)throw W+\" != \"+P;return w})(),Y=63;return function(L){for(var U=[],W=0;W<L.length;W+=1){var w=L.charCodeAt(W);if(w<128)U.push(w);else{var I=z[L.charAt(W)];typeof I==\"number\"?(255&I)==I?U.push(I):(U.push(I>>>8),U.push(255&I)):U.push(Y)}}return U}};var p,m,g,y,A,T={L:1,M:0,Q:3,H:2},R=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m=1335,g=7973,A=function(_){for(var P=0;_!=0;)P+=1,_>>>=1;return P},(y={}).getBCHTypeInfo=function(_){for(var P=_<<10;A(P)-A(m)>=0;)P^=m<<A(P)-A(m);return 21522^(_<<10|P)},y.getBCHTypeNumber=function(_){for(var P=_<<12;A(P)-A(g)>=0;)P^=g<<A(P)-A(g);return _<<12|P},y.getPatternPosition=function(_){return p[_-1]},y.getMaskFunction=function(_){switch(_){case 0:return function(P,z){return(P+z)%2==0};case 1:return function(P,z){return P%2==0};case 2:return function(P,z){return z%3==0};case 3:return function(P,z){return(P+z)%3==0};case 4:return function(P,z){return(Math.floor(P/2)+Math.floor(z/3))%2==0};case 5:return function(P,z){return P*z%2+P*z%3==0};case 6:return function(P,z){return(P*z%2+P*z%3)%2==0};case 7:return function(P,z){return(P*z%3+(P+z)%2)%2==0};default:throw\"bad maskPattern:\"+_}},y.getErrorCorrectPolynomial=function(_){for(var P=O([1],0),z=0;z<_;z+=1)P=P.multiply(O([1,K.gexp(z)],0));return P},y.getLengthInBits=function(_,P){if(1<=P&&P<10)switch(_){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw\"mode:\"+_}else if(P<27)switch(_){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw\"mode:\"+_}else{if(!(P<41))throw\"type:\"+P;switch(_){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw\"mode:\"+_}}},y.getLostPoint=function(_){for(var P=_.getModuleCount(),z=0,Y=0;Y<P;Y+=1)for(var L=0;L<P;L+=1){for(var U=0,W=_.isDark(Y,L),w=-1;w<=1;w+=1)if(!(Y+w<0||P<=Y+w))for(var I=-1;I<=1;I+=1)L+I<0||P<=L+I||w==0&&I==0||W==_.isDark(Y+w,L+I)&&(U+=1);U>5&&(z+=3+U-5)}for(Y=0;Y<P-1;Y+=1)for(L=0;L<P-1;L+=1){var ye=0;_.isDark(Y,L)&&(ye+=1),_.isDark(Y+1,L)&&(ye+=1),_.isDark(Y,L+1)&&(ye+=1),_.isDark(Y+1,L+1)&&(ye+=1),ye!=0&&ye!=4||(z+=3)}for(Y=0;Y<P;Y+=1)for(L=0;L<P-6;L+=1)_.isDark(Y,L)&&!_.isDark(Y,L+1)&&_.isDark(Y,L+2)&&_.isDark(Y,L+3)&&_.isDark(Y,L+4)&&!_.isDark(Y,L+5)&&_.isDark(Y,L+6)&&(z+=40);for(L=0;L<P;L+=1)for(Y=0;Y<P-6;Y+=1)_.isDark(Y,L)&&!_.isDark(Y+1,L)&&_.isDark(Y+2,L)&&_.isDark(Y+3,L)&&_.isDark(Y+4,L)&&!_.isDark(Y+5,L)&&_.isDark(Y+6,L)&&(z+=40);var ne=0;for(L=0;L<P;L+=1)for(Y=0;Y<P;Y+=1)_.isDark(Y,L)&&(ne+=1);return z+Math.abs(100*ne/P/P-50)/5*10},y),K=(function(){for(var _=new Array(256),P=new Array(256),z=0;z<8;z+=1)_[z]=1<<z;for(z=8;z<256;z+=1)_[z]=_[z-4]^_[z-5]^_[z-6]^_[z-8];for(z=0;z<255;z+=1)P[_[z]]=z;return{glog:function(Y){if(Y<1)throw\"glog(\"+Y+\")\";return P[Y]},gexp:function(Y){for(;Y<0;)Y+=255;for(;Y>=256;)Y-=255;return _[Y]}}})();function O(_,P){if(_.length===void 0)throw _.length+\"/\"+P;var z=(function(){for(var L=0;L<_.length&&_[L]==0;)L+=1;for(var U=new Array(_.length-L+P),W=0;W<_.length-L;W+=1)U[W]=_[W+L];return U})(),Y={getAt:function(L){return z[L]},getLength:function(){return z.length},multiply:function(L){for(var U=new Array(Y.getLength()+L.getLength()-1),W=0;W<Y.getLength();W+=1)for(var w=0;w<L.getLength();w+=1)U[W+w]^=K.gexp(K.glog(Y.getAt(W))+K.glog(L.getAt(w)));return O(U,0)},mod:function(L){if(Y.getLength()-L.getLength()<0)return Y;for(var U=K.glog(Y.getAt(0))-K.glog(L.getAt(0)),W=new Array(Y.getLength()),w=0;w<Y.getLength();w+=1)W[w]=Y.getAt(w);for(w=0;w<L.getLength();w+=1)W[w]^=K.gexp(K.glog(L.getAt(w))+U);return O(W,0).mod(L)}};return Y}var V=(function(){var _=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],P=function(Y,L){var U={};return U.totalCount=Y,U.dataCount=L,U},z={getRSBlocks:function(Y,L){var U=(function(ue,q){switch(q){case T.L:return _[4*(ue-1)+0];case T.M:return _[4*(ue-1)+1];case T.Q:return _[4*(ue-1)+2];case T.H:return _[4*(ue-1)+3];default:return}})(Y,L);if(U===void 0)throw\"bad rs block @ typeNumber:\"+Y+\"/errorCorrectionLevel:\"+L;for(var W=U.length/3,w=[],I=0;I<W;I+=1)for(var ye=U[3*I+0],ne=U[3*I+1],Q=U[3*I+2],ie=0;ie<ye;ie+=1)w.push(P(ne,Q));return w}};return z})(),D=function(){var _=[],P=0,z={getBuffer:function(){return _},getAt:function(Y){var L=Math.floor(Y/8);return(_[L]>>>7-Y%8&1)==1},put:function(Y,L){for(var U=0;U<L;U+=1)z.putBit((Y>>>L-U-1&1)==1)},getLengthInBits:function(){return P},putBit:function(Y){var L=Math.floor(P/8);_.length<=L&&_.push(0),Y&&(_[L]|=128>>>P%8),P+=1}};return z},G=function(_){var P=_,z={getMode:function(){return 1},getLength:function(U){return P.length},write:function(U){for(var W=P,w=0;w+2<W.length;)U.put(Y(W.substring(w,w+3)),10),w+=3;w<W.length&&(W.length-w==1?U.put(Y(W.substring(w,w+1)),4):W.length-w==2&&U.put(Y(W.substring(w,w+2)),7))}},Y=function(U){for(var W=0,w=0;w<U.length;w+=1)W=10*W+L(U.charAt(w));return W},L=function(U){if(\"0\"<=U&&U<=\"9\")return U.charCodeAt(0)-48;throw\"illegal char :\"+U};return z},ee=function(_){var P=_,z={getMode:function(){return 2},getLength:function(L){return P.length},write:function(L){for(var U=P,W=0;W+1<U.length;)L.put(45*Y(U.charAt(W))+Y(U.charAt(W+1)),11),W+=2;W<U.length&&L.put(Y(U.charAt(W)),6)}},Y=function(L){if(\"0\"<=L&&L<=\"9\")return L.charCodeAt(0)-48;if(\"A\"<=L&&L<=\"Z\")return L.charCodeAt(0)-65+10;switch(L){case\" \":return 36;case\"$\":return 37;case\"%\":return 38;case\"*\":return 39;case\"+\":return 40;case\"-\":return 41;case\".\":return 42;case\"/\":return 43;case\":\":return 44;default:throw\"illegal char :\"+L}};return z},J=function(_){var P=f.stringToBytes(_);return{getMode:function(){return 4},getLength:function(z){return P.length},write:function(z){for(var Y=0;Y<P.length;Y+=1)z.put(P[Y],8)}}},le=function(_){var P=f.stringToBytesFuncs.SJIS;if(!P)throw\"sjis not supported.\";(function(L,U){var W=P(\"\\\\u53CB\");if(W.length!=2||(W[0]<<8|W[1])!=38726)throw\"sjis not supported.\"})();var z=P(_),Y={getMode:function(){return 8},getLength:function(L){return~~(z.length/2)},write:function(L){for(var U=z,W=0;W+1<U.length;){var w=(255&U[W])<<8|255&U[W+1];if(33088<=w&&w<=40956)w-=33088;else{if(!(57408<=w&&w<=60351))throw\"illegal char at \"+(W+1)+\"/\"+w;w-=49472}w=192*(w>>>8&255)+(255&w),L.put(w,13),W+=2}if(W<U.length)throw\"illegal char at \"+(W+1)}};return Y},se=function(){var _=[],P={writeByte:function(z){_.push(255&z)},writeShort:function(z){P.writeByte(z),P.writeByte(z>>>8)},writeBytes:function(z,Y,L){Y=Y||0,L=L||z.length;for(var U=0;U<L;U+=1)P.writeByte(z[U+Y])},writeString:function(z){for(var Y=0;Y<z.length;Y+=1)P.writeByte(z.charCodeAt(Y))},toByteArray:function(){return _},toString:function(){var z=\"\";z+=\"[\";for(var Y=0;Y<_.length;Y+=1)Y>0&&(z+=\",\"),z+=_[Y];return z+\"]\"}};return P},te=function(_){var P=_,z=0,Y=0,L=0,U={read:function(){for(;L<8;){if(z>=P.length){if(L==0)return-1;throw\"unexpected end of file./\"+L}var w=P.charAt(z);if(z+=1,w==\"=\")return L=0,-1;w.match(/^\\\\s$/)||(Y=Y<<6|W(w.charCodeAt(0)),L+=6)}var I=Y>>>L-8&255;return L-=8,I}},W=function(w){if(65<=w&&w<=90)return w-65;if(97<=w&&w<=122)return w-97+26;if(48<=w&&w<=57)return w-48+52;if(w==43)return 62;if(w==47)return 63;throw\"c:\"+w};return U},S=function(_,P,z){for(var Y=(function(ne,Q){var ie=ne,ue=Q,q=new Array(ne*Q),Ee={setPixel:function(B,k,C){q[k*ie+B]=C},write:function(B){B.writeString(\"GIF87a\"),B.writeShort(ie),B.writeShort(ue),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(\",\"),B.writeShort(0),B.writeShort(0),B.writeShort(ie),B.writeShort(ue),B.writeByte(0);var k=we(2);B.writeByte(2);for(var C=0;k.length-C>255;)B.writeByte(255),B.writeBytes(k,C,255),C+=255;B.writeByte(k.length-C),B.writeBytes(k,C,k.length-C),B.writeByte(0),B.writeString(\";\")}},we=function(B){for(var k=1<<B,C=1+(1<<B),Z=B+1,X=_e(),ae=0;ae<k;ae+=1)X.add(String.fromCharCode(ae));X.add(String.fromCharCode(k)),X.add(String.fromCharCode(C));var de,me,Pe,De=se(),Re=(de=De,me=0,Pe=0,{write:function(Qe,xt){if(Qe>>>xt)throw\"length over\";for(;me+xt>=8;)de.writeByte(255&(Qe<<me|Pe)),xt-=8-me,Qe>>>=8-me,Pe=0,me=0;Pe|=Qe<<me,me+=xt},flush:function(){me>0&&de.writeByte(Pe)}});Re.write(k,Z);var qe=0,et=String.fromCharCode(q[qe]);for(qe+=1;qe<q.length;){var ot=String.fromCharCode(q[qe]);qe+=1,X.contains(et+ot)?et+=ot:(Re.write(X.indexOf(et),Z),X.size()<4095&&(X.size()==1<<Z&&(Z+=1),X.add(et+ot)),et=ot)}return Re.write(X.indexOf(et),Z),Re.write(C,Z),Re.flush(),De.toByteArray()},_e=function(){var B={},k=0,C={add:function(Z){if(C.contains(Z))throw\"dup key:\"+Z;B[Z]=k,k+=1},size:function(){return k},indexOf:function(Z){return B[Z]},contains:function(Z){return B[Z]!==void 0}};return C};return Ee})(_,P),L=0;L<P;L+=1)for(var U=0;U<_;U+=1)Y.setPixel(U,L,z(U,L));var W=se();Y.write(W);for(var w=(function(){var ne=0,Q=0,ie=0,ue=\"\",q={},Ee=function(_e){ue+=String.fromCharCode(we(63&_e))},we=function(_e){if(!(_e<0)){if(_e<26)return 65+_e;if(_e<52)return _e-26+97;if(_e<62)return _e-52+48;if(_e==62)return 43;if(_e==63)return 47}throw\"n:\"+_e};return q.writeByte=function(_e){for(ne=ne<<8|255&_e,Q+=8,ie+=1;Q>=6;)Ee(ne>>>Q-6),Q-=6},q.flush=function(){if(Q>0&&(Ee(ne<<6-Q),ne=0,Q=0),ie%3!=0)for(var _e=3-ie%3,B=0;B<_e;B+=1)ue+=\"=\"},q.toString=function(){return ue},q})(),I=W.toByteArray(),ye=0;ye<I.length;ye+=1)w.writeByte(I[ye]);return w.flush(),\"data:image/gif;base64,\"+w};return f})();l.stringToBytesFuncs[\"UTF-8\"]=function(f){return(function(p){for(var m=[],g=0;g<p.length;g++){var y=p.charCodeAt(g);y<128?m.push(y):y<2048?m.push(192|y>>6,128|63&y):y<55296||y>=57344?m.push(224|y>>12,128|y>>6&63,128|63&y):(g++,y=65536+((1023&y)<<10|1023&p.charCodeAt(g)),m.push(240|y>>18,128|y>>12&63,128|y>>6&63,128|63&y))}return m})(f)},(c=typeof(a=function(){return l})==\"function\"?a.apply(o,[]):a)===void 0||(r.exports=c)},676:(r,o,a)=>{\"use strict\";a.d(o,{default:()=>_e});let c=\"Numeric\",l=\"Alphanumeric\",f=\"Byte\";var p=function(){return p=Object.assign||function(B){for(var k,C=1,Z=arguments.length;C<Z;C++)for(var X in k=arguments[C])Object.prototype.hasOwnProperty.call(k,X)&&(B[X]=k[X]);return B},p.apply(this,arguments)},m=function(){for(var B=0,k=0,C=arguments.length;k<C;k++)B+=arguments[k].length;var Z=Array(B),X=0;for(k=0;k<C;k++)for(var ae=arguments[k],de=0,me=ae.length;de<me;de++,X++)Z[X]=ae[de];return Z},g=function(B){return!!B&&typeof B==\"object\"&&!Array.isArray(B)};function y(B){for(var k=[],C=1;C<arguments.length;C++)k[C-1]=arguments[C];if(!k.length)return B;var Z=k.shift();return Z!==void 0&&g(B)&&g(Z)?(B=p({},B),Object.keys(Z).forEach((function(X){var ae=B[X],de=Z[X];Array.isArray(ae)&&Array.isArray(de)?B[X]=de:g(ae)&&g(de)?B[X]=y(Object.assign({},ae),de):B[X]=de})),y.apply(void 0,m([B],k))):B}function A(B,k){var C=document.createElement(\"a\");C.download=k,C.href=B,document.body.appendChild(C),C.click(),document.body.removeChild(C)}var T=function(B,k,C,Z){return new(C||(C=Promise))((function(X,ae){function de(De){try{Pe(Z.next(De))}catch(Re){ae(Re)}}function me(De){try{Pe(Z.throw(De))}catch(Re){ae(Re)}}function Pe(De){var Re;De.done?X(De.value):(Re=De.value,Re instanceof C?Re:new C((function(qe){qe(Re)}))).then(de,me)}Pe((Z=Z.apply(B,k||[])).next())}))},R=function(B,k){var C,Z,X,ae,de={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return ae={next:me(0),throw:me(1),return:me(2)},typeof Symbol==\"function\"&&(ae[Symbol.iterator]=function(){return this}),ae;function me(Pe){return function(De){return(function(Re){if(C)throw new TypeError(\"Generator is already executing.\");for(;de;)try{if(C=1,Z&&(X=2&Re[0]?Z.return:Re[0]?Z.throw||((X=Z.return)&&X.call(Z),0):Z.next)&&!(X=X.call(Z,Re[1])).done)return X;switch(Z=0,X&&(Re=[2&Re[0],X.value]),Re[0]){case 0:case 1:X=Re;break;case 4:return de.label++,{value:Re[1],done:!1};case 5:de.label++,Z=Re[1],Re=[0];continue;case 7:Re=de.ops.pop(),de.trys.pop();continue;default:if(!((X=(X=de.trys).length>0&&X[X.length-1])||Re[0]!==6&&Re[0]!==2)){de=0;continue}if(Re[0]===3&&(!X||Re[1]>X[0]&&Re[1]<X[3])){de.label=Re[1];break}if(Re[0]===6&&de.label<X[1]){de.label=X[1],X=Re;break}if(X&&de.label<X[2]){de.label=X[2],de.ops.push(Re);break}X[2]&&de.ops.pop(),de.trys.pop();continue}Re=k.call(B,de)}catch(qe){Re=[6,qe],Z=0}finally{C=X=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}})([Pe,De])}}};function K(B){return T(this,void 0,void 0,(function(){return R(this,(function(k){return[2,new Promise((function(C){var Z=new XMLHttpRequest;Z.onload=function(){var X=new FileReader;X.onloadend=function(){C(X.result)},X.readAsDataURL(Z.response)},Z.open(\"GET\",B),Z.responseType=\"blob\",Z.send()}))]}))}))}let O={L:.07,M:.15,Q:.25,H:.3};var V=function(){return V=Object.assign||function(B){for(var k,C=1,Z=arguments.length;C<Z;C++)for(var X in k=arguments[C])Object.prototype.hasOwnProperty.call(k,X)&&(B[X]=k[X]);return B},V.apply(this,arguments)},D=(function(){function B(k){var C=k.svg,Z=k.type;this._svg=C,this._type=Z}return B.prototype.draw=function(k,C,Z,X){var ae;switch(this._type){case\"dots\":ae=this._drawDot;break;case\"classy\":ae=this._drawClassy;break;case\"classy-rounded\":ae=this._drawClassyRounded;break;case\"rounded\":ae=this._drawRounded;break;case\"extra-rounded\":ae=this._drawExtraRounded;break;default:ae=this._drawSquare}ae.call(this,{x:k,y:C,size:Z,getNeighbor:X})},B.prototype._rotateFigure=function(k){var C,Z=k.x,X=k.y,ae=k.size,de=k.rotation,me=de===void 0?0:de,Pe=Z+ae/2,De=X+ae/2;(0,k.draw)(),(C=this._element)===null||C===void 0||C.setAttribute(\"transform\",\"rotate(\"+180*me/Math.PI+\",\"+Pe+\",\"+De+\")\")},B.prototype._basicDot=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\"),C._element.setAttribute(\"cx\",String(X+Z/2)),C._element.setAttribute(\"cy\",String(ae+Z/2)),C._element.setAttribute(\"r\",String(Z/2))}}))},B.prototype._basicSquare=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"),C._element.setAttribute(\"x\",String(X)),C._element.setAttribute(\"y\",String(ae)),C._element.setAttribute(\"width\",String(Z)),C._element.setAttribute(\"height\",String(Z))}}))},B.prototype._basicSideRounded=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+ae+\"v \"+Z+\"h \"+Z/2+\"a \"+Z/2+\" \"+Z/2+\", 0, 0, 0, 0 \"+-Z)}}))},B.prototype._basicCornerRounded=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+ae+\"v \"+Z+\"h \"+Z+\"v \"+-Z/2+\"a \"+Z/2+\" \"+Z/2+\", 0, 0, 0, \"+-Z/2+\" \"+-Z/2)}}))},B.prototype._basicCornerExtraRounded=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+ae+\"v \"+Z+\"h \"+Z+\"a \"+Z+\" \"+Z+\", 0, 0, 0, \"+-Z+\" \"+-Z)}}))},B.prototype._basicCornersRounded=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(V(V({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+ae+\"v \"+Z/2+\"a \"+Z/2+\" \"+Z/2+\", 0, 0, 0, \"+Z/2+\" \"+Z/2+\"h \"+Z/2+\"v \"+-Z/2+\"a \"+Z/2+\" \"+Z/2+\", 0, 0, 0, \"+-Z/2+\" \"+-Z/2)}}))},B.prototype._drawDot=function(k){var C=k.x,Z=k.y,X=k.size;this._basicDot({x:C,y:Z,size:X,rotation:0})},B.prototype._drawSquare=function(k){var C=k.x,Z=k.y,X=k.size;this._basicSquare({x:C,y:Z,size:X,rotation:0})},B.prototype._drawRounded=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.getNeighbor,de=ae?+ae(-1,0):0,me=ae?+ae(1,0):0,Pe=ae?+ae(0,-1):0,De=ae?+ae(0,1):0,Re=de+me+Pe+De;if(Re!==0)if(Re>2||de&&me||Pe&&De)this._basicSquare({x:C,y:Z,size:X,rotation:0});else{if(Re===2){var qe=0;return de&&Pe?qe=Math.PI/2:Pe&&me?qe=Math.PI:me&&De&&(qe=-Math.PI/2),void this._basicCornerRounded({x:C,y:Z,size:X,rotation:qe})}if(Re===1)return qe=0,Pe?qe=Math.PI/2:me?qe=Math.PI:De&&(qe=-Math.PI/2),void this._basicSideRounded({x:C,y:Z,size:X,rotation:qe})}else this._basicDot({x:C,y:Z,size:X,rotation:0})},B.prototype._drawExtraRounded=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.getNeighbor,de=ae?+ae(-1,0):0,me=ae?+ae(1,0):0,Pe=ae?+ae(0,-1):0,De=ae?+ae(0,1):0,Re=de+me+Pe+De;if(Re!==0)if(Re>2||de&&me||Pe&&De)this._basicSquare({x:C,y:Z,size:X,rotation:0});else{if(Re===2){var qe=0;return de&&Pe?qe=Math.PI/2:Pe&&me?qe=Math.PI:me&&De&&(qe=-Math.PI/2),void this._basicCornerExtraRounded({x:C,y:Z,size:X,rotation:qe})}if(Re===1)return qe=0,Pe?qe=Math.PI/2:me?qe=Math.PI:De&&(qe=-Math.PI/2),void this._basicSideRounded({x:C,y:Z,size:X,rotation:qe})}else this._basicDot({x:C,y:Z,size:X,rotation:0})},B.prototype._drawClassy=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.getNeighbor,de=ae?+ae(-1,0):0,me=ae?+ae(1,0):0,Pe=ae?+ae(0,-1):0,De=ae?+ae(0,1):0;de+me+Pe+De!==0?de||Pe?me||De?this._basicSquare({x:C,y:Z,size:X,rotation:0}):this._basicCornerRounded({x:C,y:Z,size:X,rotation:Math.PI/2}):this._basicCornerRounded({x:C,y:Z,size:X,rotation:-Math.PI/2}):this._basicCornersRounded({x:C,y:Z,size:X,rotation:Math.PI/2})},B.prototype._drawClassyRounded=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.getNeighbor,de=ae?+ae(-1,0):0,me=ae?+ae(1,0):0,Pe=ae?+ae(0,-1):0,De=ae?+ae(0,1):0;de+me+Pe+De!==0?de||Pe?me||De?this._basicSquare({x:C,y:Z,size:X,rotation:0}):this._basicCornerExtraRounded({x:C,y:Z,size:X,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:C,y:Z,size:X,rotation:-Math.PI/2}):this._basicCornersRounded({x:C,y:Z,size:X,rotation:Math.PI/2})},B})();let G=D;var ee=function(){return ee=Object.assign||function(B){for(var k,C=1,Z=arguments.length;C<Z;C++)for(var X in k=arguments[C])Object.prototype.hasOwnProperty.call(k,X)&&(B[X]=k[X]);return B},ee.apply(this,arguments)},J=(function(){function B(k){var C=k.svg,Z=k.type;this._svg=C,this._type=Z}return B.prototype.draw=function(k,C,Z,X){var ae;switch(this._type){case\"square\":ae=this._drawSquare;break;case\"extra-rounded\":ae=this._drawExtraRounded;break;default:ae=this._drawDot}ae.call(this,{x:k,y:C,size:Z,rotation:X})},B.prototype._rotateFigure=function(k){var C,Z=k.x,X=k.y,ae=k.size,de=k.rotation,me=de===void 0?0:de,Pe=Z+ae/2,De=X+ae/2;(0,k.draw)(),(C=this._element)===null||C===void 0||C.setAttribute(\"transform\",\"rotate(\"+180*me/Math.PI+\",\"+Pe+\",\"+De+\")\")},B.prototype._basicDot=function(k){var C=this,Z=k.size,X=k.x,ae=k.y,de=Z/7;this._rotateFigure(ee(ee({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"clip-rule\",\"evenodd\"),C._element.setAttribute(\"d\",\"M \"+(X+Z/2)+\" \"+ae+\"a \"+Z/2+\" \"+Z/2+\" 0 1 0 0.1 0zm 0 \"+de+\"a \"+(Z/2-de)+\" \"+(Z/2-de)+\" 0 1 1 -0.1 0Z\")}}))},B.prototype._basicSquare=function(k){var C=this,Z=k.size,X=k.x,ae=k.y,de=Z/7;this._rotateFigure(ee(ee({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"clip-rule\",\"evenodd\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+ae+\"v \"+Z+\"h \"+Z+\"v \"+-Z+\"zM \"+(X+de)+\" \"+(ae+de)+\"h \"+(Z-2*de)+\"v \"+(Z-2*de)+\"h \"+(2*de-Z)+\"z\")}}))},B.prototype._basicExtraRounded=function(k){var C=this,Z=k.size,X=k.x,ae=k.y,de=Z/7;this._rotateFigure(ee(ee({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),C._element.setAttribute(\"clip-rule\",\"evenodd\"),C._element.setAttribute(\"d\",\"M \"+X+\" \"+(ae+2.5*de)+\"v \"+2*de+\"a \"+2.5*de+\" \"+2.5*de+\", 0, 0, 0, \"+2.5*de+\" \"+2.5*de+\"h \"+2*de+\"a \"+2.5*de+\" \"+2.5*de+\", 0, 0, 0, \"+2.5*de+\" \"+2.5*-de+\"v \"+-2*de+\"a \"+2.5*de+\" \"+2.5*de+\", 0, 0, 0, \"+2.5*-de+\" \"+2.5*-de+\"h \"+-2*de+\"a \"+2.5*de+\" \"+2.5*de+\", 0, 0, 0, \"+2.5*-de+\" \"+2.5*de+\"M \"+(X+2.5*de)+\" \"+(ae+de)+\"h \"+2*de+\"a \"+1.5*de+\" \"+1.5*de+\", 0, 0, 1, \"+1.5*de+\" \"+1.5*de+\"v \"+2*de+\"a \"+1.5*de+\" \"+1.5*de+\", 0, 0, 1, \"+1.5*-de+\" \"+1.5*de+\"h \"+-2*de+\"a \"+1.5*de+\" \"+1.5*de+\", 0, 0, 1, \"+1.5*-de+\" \"+1.5*-de+\"v \"+-2*de+\"a \"+1.5*de+\" \"+1.5*de+\", 0, 0, 1, \"+1.5*de+\" \"+1.5*-de)}}))},B.prototype._drawDot=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.rotation;this._basicDot({x:C,y:Z,size:X,rotation:ae})},B.prototype._drawSquare=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.rotation;this._basicSquare({x:C,y:Z,size:X,rotation:ae})},B.prototype._drawExtraRounded=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.rotation;this._basicExtraRounded({x:C,y:Z,size:X,rotation:ae})},B})();let le=J;var se=function(){return se=Object.assign||function(B){for(var k,C=1,Z=arguments.length;C<Z;C++)for(var X in k=arguments[C])Object.prototype.hasOwnProperty.call(k,X)&&(B[X]=k[X]);return B},se.apply(this,arguments)},te=(function(){function B(k){var C=k.svg,Z=k.type;this._svg=C,this._type=Z}return B.prototype.draw=function(k,C,Z,X){(this._type===\"square\"?this._drawSquare:this._drawDot).call(this,{x:k,y:C,size:Z,rotation:X})},B.prototype._rotateFigure=function(k){var C,Z=k.x,X=k.y,ae=k.size,de=k.rotation,me=de===void 0?0:de,Pe=Z+ae/2,De=X+ae/2;(0,k.draw)(),(C=this._element)===null||C===void 0||C.setAttribute(\"transform\",\"rotate(\"+180*me/Math.PI+\",\"+Pe+\",\"+De+\")\")},B.prototype._basicDot=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(se(se({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\"),C._element.setAttribute(\"cx\",String(X+Z/2)),C._element.setAttribute(\"cy\",String(ae+Z/2)),C._element.setAttribute(\"r\",String(Z/2))}}))},B.prototype._basicSquare=function(k){var C=this,Z=k.size,X=k.x,ae=k.y;this._rotateFigure(se(se({},k),{draw:function(){C._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"),C._element.setAttribute(\"x\",String(X)),C._element.setAttribute(\"y\",String(ae)),C._element.setAttribute(\"width\",String(Z)),C._element.setAttribute(\"height\",String(Z))}}))},B.prototype._drawDot=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.rotation;this._basicDot({x:C,y:Z,size:X,rotation:ae})},B.prototype._drawSquare=function(k){var C=k.x,Z=k.y,X=k.size,ae=k.rotation;this._basicSquare({x:C,y:Z,size:X,rotation:ae})},B})();let S=te,_=\"circle\";var P=function(B,k,C,Z){return new(C||(C=Promise))((function(X,ae){function de(De){try{Pe(Z.next(De))}catch(Re){ae(Re)}}function me(De){try{Pe(Z.throw(De))}catch(Re){ae(Re)}}function Pe(De){var Re;De.done?X(De.value):(Re=De.value,Re instanceof C?Re:new C((function(qe){qe(Re)}))).then(de,me)}Pe((Z=Z.apply(B,k||[])).next())}))},z=function(B,k){var C,Z,X,ae,de={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return ae={next:me(0),throw:me(1),return:me(2)},typeof Symbol==\"function\"&&(ae[Symbol.iterator]=function(){return this}),ae;function me(Pe){return function(De){return(function(Re){if(C)throw new TypeError(\"Generator is already executing.\");for(;de;)try{if(C=1,Z&&(X=2&Re[0]?Z.return:Re[0]?Z.throw||((X=Z.return)&&X.call(Z),0):Z.next)&&!(X=X.call(Z,Re[1])).done)return X;switch(Z=0,X&&(Re=[2&Re[0],X.value]),Re[0]){case 0:case 1:X=Re;break;case 4:return de.label++,{value:Re[1],done:!1};case 5:de.label++,Z=Re[1],Re=[0];continue;case 7:Re=de.ops.pop(),de.trys.pop();continue;default:if(!((X=(X=de.trys).length>0&&X[X.length-1])||Re[0]!==6&&Re[0]!==2)){de=0;continue}if(Re[0]===3&&(!X||Re[1]>X[0]&&Re[1]<X[3])){de.label=Re[1];break}if(Re[0]===6&&de.label<X[1]){de.label=X[1],X=Re;break}if(X&&de.label<X[2]){de.label=X[2],de.ops.push(Re);break}X[2]&&de.ops.pop(),de.trys.pop();continue}Re=k.call(B,de)}catch(qe){Re=[6,qe],Z=0}finally{C=X=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}})([Pe,De])}}},Y=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],L=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let U=(function(){function B(k){this._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this._element.setAttribute(\"width\",String(k.width)),this._element.setAttribute(\"height\",String(k.height)),this._element.setAttribute(\"viewBox\",\"0 0 \"+k.width+\" \"+k.height),this._defs=document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),this._element.appendChild(this._defs),this._instanceId=B.instanceCount++,this._options=k}return Object.defineProperty(B.prototype,\"width\",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,\"height\",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),B.prototype.getElement=function(){return this._element},B.prototype.drawQR=function(k){return P(this,void 0,void 0,(function(){var C,Z,X,ae,de,me,Pe,De,Re,qe,et=this;return z(this,(function(ot){switch(ot.label){case 0:return C=k.getModuleCount(),Z=Math.min(this._options.width,this._options.height)-2*this._options.margin,X=this._options.shape===_?Z/Math.sqrt(2):Z,ae=X/C,de={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=k,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ot.sent(),!this._image)return[2];me=this._options,Pe=me.imageOptions,De=me.qrOptions,Re=Pe.imageSize*O[De.errorCorrectionLevel],qe=Math.floor(Re*C*C),de=(function(Qe){var xt=Qe.originalHeight,Wt=Qe.originalWidth,Vt=Qe.maxHiddenDots,Bt=Qe.maxHiddenAxisDots,nn=Qe.dotSize,Yt={x:0,y:0},hn={x:0,y:0};if(xt<=0||Wt<=0||Vt<=0||nn<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var Pn=xt/Wt;return Yt.x=Math.floor(Math.sqrt(Vt/Pn)),Yt.x<=0&&(Yt.x=1),Bt&&Bt<Yt.x&&(Yt.x=Bt),Yt.x%2==0&&Yt.x--,hn.x=Yt.x*nn,Yt.y=1+2*Math.ceil((Yt.x*Pn-1)/2),hn.y=Math.round(hn.x*Pn),(Yt.y*Yt.x>Vt||Bt&&Bt<Yt.y)&&(Bt&&Bt<Yt.y?(Yt.y=Bt,Yt.y%2==0&&Yt.x--):Yt.y-=2,hn.y=Yt.y*nn,Yt.x=1+2*Math.ceil((Yt.y/Pn-1)/2),hn.x=Math.round(hn.y/Pn)),{height:hn.y,width:hn.x,hideYDots:Yt.y,hideXDots:Yt.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:qe,maxHiddenAxisDots:C-14,dotSize:ae}),ot.label=2;case 2:return this.drawBackground(),this.drawDots((function(Qe,xt){var Wt,Vt,Bt,nn,Yt,hn;return!(et._options.imageOptions.hideBackgroundDots&&Qe>=(C-de.hideXDots)/2&&Qe<(C+de.hideXDots)/2&&xt>=(C-de.hideYDots)/2&&xt<(C+de.hideYDots)/2||!((Wt=Y[Qe])===null||Wt===void 0)&&Wt[xt]||!((Vt=Y[Qe-C+7])===null||Vt===void 0)&&Vt[xt]||!((Bt=Y[Qe])===null||Bt===void 0)&&Bt[xt-C+7]||!((nn=L[Qe])===null||nn===void 0)&&nn[xt]||!((Yt=L[Qe-C+7])===null||Yt===void 0)&&Yt[xt]||!((hn=L[Qe])===null||hn===void 0)&&hn[xt-C+7])})),this.drawCorners(),this._options.image?[4,this.drawImage({width:de.width,height:de.height,count:C,dotSize:ae})]:[3,4];case 3:ot.sent(),ot.label=4;case 4:return[2]}}))}))},B.prototype.drawBackground=function(){var k,C,Z,X=this._element,ae=this._options;if(X){var de=(k=ae.backgroundOptions)===null||k===void 0?void 0:k.gradient,me=(C=ae.backgroundOptions)===null||C===void 0?void 0:C.color;if((de||me)&&this._createColor({options:de,color:me,additionalRotation:0,x:0,y:0,height:ae.height,width:ae.width,name:\"background-color\"}),(Z=ae.backgroundOptions)===null||Z===void 0?void 0:Z.round){var Pe=Math.min(ae.width,ae.height),De=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");this._backgroundClipPath=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\"),this._backgroundClipPath.setAttribute(\"id\",\"clip-path-background-color\"),this._defs.appendChild(this._backgroundClipPath),De.setAttribute(\"x\",String((ae.width-Pe)/2)),De.setAttribute(\"y\",String((ae.height-Pe)/2)),De.setAttribute(\"width\",String(Pe)),De.setAttribute(\"height\",String(Pe)),De.setAttribute(\"rx\",String(Pe/2*ae.backgroundOptions.round)),this._backgroundClipPath.appendChild(De)}}},B.prototype.drawDots=function(k){var C,Z,X=this;if(!this._qr)throw\"QR code is not defined\";var ae=this._options,de=this._qr.getModuleCount();if(de>ae.width||de>ae.height)throw\"The canvas is too small.\";var me=Math.min(ae.width,ae.height)-2*ae.margin,Pe=(ae.shape===_?me/Math.sqrt(2):me)/de,De=(ae.width-de*Pe)/2,Re=(ae.height-de*Pe)/2,qe=new G({svg:this._element,type:ae.dotsOptions.type});this._dotsClipPath=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\"),this._dotsClipPath.setAttribute(\"id\",\"clip-path-dot-color-\"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(C=ae.dotsOptions)===null||C===void 0?void 0:C.gradient,color:ae.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ae.height,width:ae.width,name:\"dot-color-\"+this._instanceId});for(var et=function(Un){for(var Wn=function(Se){return k&&!k(Un,Se)?\"continue\":!((Z=ot._qr)===null||Z===void 0)&&Z.isDark(Un,Se)?(qe.draw(De+Un*Pe,Re+Se*Pe,Pe,(function(it,Nt){return!(Un+it<0||Se+Nt<0||Un+it>=de||Se+Nt>=de)&&!(k&&!k(Un+it,Se+Nt))&&!!X._qr&&X._qr.isDark(Un+it,Se+Nt)})),void(qe._element&&ot._dotsClipPath&&ot._dotsClipPath.appendChild(qe._element))):\"continue\"},Kn=0;Kn<de;Kn++)Wn(Kn)},ot=this,Qe=0;Qe<de;Qe++)et(Qe);if(ae.shape===_){var xt=Math.floor((me/Pe-de)/2),Wt=de+2*xt,Vt=De-xt*Pe,Bt=Re-xt*Pe,nn=[],Yt=Math.floor(Wt/2);for(Qe=0;Qe<Wt;Qe++){nn[Qe]=[];for(var hn=0;hn<Wt;hn++)Qe>=xt-1&&Qe<=Wt-xt&&hn>=xt-1&&hn<=Wt-xt||Math.sqrt((Qe-Yt)*(Qe-Yt)+(hn-Yt)*(hn-Yt))>Yt?nn[Qe][hn]=0:nn[Qe][hn]=this._qr.isDark(hn-2*xt<0?hn:hn>=de?hn-2*xt:hn-xt,Qe-2*xt<0?Qe:Qe>=de?Qe-2*xt:Qe-xt)?1:0}var Pn=function(Un){for(var Wn=function(Se){if(!nn[Un][Se])return\"continue\";qe.draw(Vt+Un*Pe,Bt+Se*Pe,Pe,(function(it,Nt){var tn;return!!(!((tn=nn[Un+it])===null||tn===void 0)&&tn[Se+Nt])})),qe._element&&Mn._dotsClipPath&&Mn._dotsClipPath.appendChild(qe._element)},Kn=0;Kn<Wt;Kn++)Wn(Kn)},Mn=this;for(Qe=0;Qe<Wt;Qe++)Pn(Qe)}},B.prototype.drawCorners=function(){var k=this;if(!this._qr)throw\"QR code is not defined\";var C=this._element,Z=this._options;if(!C)throw\"Element code is not defined\";var X=this._qr.getModuleCount(),ae=Math.min(Z.width,Z.height)-2*Z.margin,de=(Z.shape===_?ae/Math.sqrt(2):ae)/X,me=7*de,Pe=3*de,De=(Z.width-X*de)/2,Re=(Z.height-X*de)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(qe){var et,ot,Qe,xt,Wt,Vt,Bt,nn,Yt,hn,Pn,Mn,Un=qe[0],Wn=qe[1],Kn=qe[2],Se=De+Un*de*(X-7),it=Re+Wn*de*(X-7),Nt=k._dotsClipPath,tn=k._dotsClipPath;if((!((et=Z.cornersSquareOptions)===null||et===void 0)&&et.gradient||!((ot=Z.cornersSquareOptions)===null||ot===void 0)&&ot.color)&&((Nt=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\")).setAttribute(\"id\",\"clip-path-corners-square-color-\"+Un+\"-\"+Wn+\"-\"+k._instanceId),k._defs.appendChild(Nt),k._cornersSquareClipPath=k._cornersDotClipPath=tn=Nt,k._createColor({options:(Qe=Z.cornersSquareOptions)===null||Qe===void 0?void 0:Qe.gradient,color:(xt=Z.cornersSquareOptions)===null||xt===void 0?void 0:xt.color,additionalRotation:Kn,x:Se,y:it,height:me,width:me,name:\"corners-square-color-\"+Un+\"-\"+Wn+\"-\"+k._instanceId})),(Wt=Z.cornersSquareOptions)===null||Wt===void 0?void 0:Wt.type){var pn=new le({svg:k._element,type:Z.cornersSquareOptions.type});pn.draw(Se,it,me,Kn),pn._element&&Nt&&Nt.appendChild(pn._element)}else for(var kn=new G({svg:k._element,type:Z.dotsOptions.type}),zn=function(pr){for(var vr=function(jr){if(!(!((Vt=Y[pr])===null||Vt===void 0)&&Vt[jr]))return\"continue\";kn.draw(Se+pr*de,it+jr*de,de,(function(Mr,wi){var fe;return!!(!((fe=Y[pr+Mr])===null||fe===void 0)&&fe[jr+wi])})),kn._element&&Nt&&Nt.appendChild(kn._element)},vo=0;vo<Y[pr].length;vo++)vr(vo)},_n=0;_n<Y.length;_n++)zn(_n);if((!((Bt=Z.cornersDotOptions)===null||Bt===void 0)&&Bt.gradient||!((nn=Z.cornersDotOptions)===null||nn===void 0)&&nn.color)&&((tn=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\")).setAttribute(\"id\",\"clip-path-corners-dot-color-\"+Un+\"-\"+Wn+\"-\"+k._instanceId),k._defs.appendChild(tn),k._cornersDotClipPath=tn,k._createColor({options:(Yt=Z.cornersDotOptions)===null||Yt===void 0?void 0:Yt.gradient,color:(hn=Z.cornersDotOptions)===null||hn===void 0?void 0:hn.color,additionalRotation:Kn,x:Se+2*de,y:it+2*de,height:Pe,width:Pe,name:\"corners-dot-color-\"+Un+\"-\"+Wn+\"-\"+k._instanceId})),(Pn=Z.cornersDotOptions)===null||Pn===void 0?void 0:Pn.type){var Dn=new S({svg:k._element,type:Z.cornersDotOptions.type});Dn.draw(Se+2*de,it+2*de,Pe,Kn),Dn._element&&tn&&tn.appendChild(Dn._element)}else{kn=new G({svg:k._element,type:Z.dotsOptions.type});var _r=function(pr){for(var vr=function(jr){if(!(!((Mn=L[pr])===null||Mn===void 0)&&Mn[jr]))return\"continue\";kn.draw(Se+pr*de,it+jr*de,de,(function(Mr,wi){var fe;return!!(!((fe=L[pr+Mr])===null||fe===void 0)&&fe[jr+wi])})),kn._element&&tn&&tn.appendChild(kn._element)},vo=0;vo<L[pr].length;vo++)vr(vo)};for(_n=0;_n<L.length;_n++)_r(_n)}}))},B.prototype.loadImage=function(){var k=this;return new Promise((function(C,Z){var X=k._options,ae=new Image;if(!X.image)return Z(\"Image is not defined\");typeof X.imageOptions.crossOrigin==\"string\"&&(ae.crossOrigin=X.imageOptions.crossOrigin),k._image=ae,ae.onload=function(){C()},ae.src=X.image}))},B.prototype.drawImage=function(k){var C=k.width,Z=k.height,X=k.count,ae=k.dotSize;return P(this,void 0,void 0,(function(){var de,me,Pe,De,Re,qe,et,ot,Qe;return z(this,(function(xt){switch(xt.label){case 0:return de=this._options,me=(de.width-X*ae)/2,Pe=(de.height-X*ae)/2,De=me+de.imageOptions.margin+(X*ae-C)/2,Re=Pe+de.imageOptions.margin+(X*ae-Z)/2,qe=C-2*de.imageOptions.margin,et=Z-2*de.imageOptions.margin,(ot=document.createElementNS(\"http://www.w3.org/2000/svg\",\"image\")).setAttribute(\"x\",String(De)),ot.setAttribute(\"y\",String(Re)),ot.setAttribute(\"width\",qe+\"px\"),ot.setAttribute(\"height\",et+\"px\"),[4,K(de.image||\"\")];case 1:return Qe=xt.sent(),ot.setAttribute(\"href\",Qe||\"\"),this._element.appendChild(ot),[2]}}))}))},B.prototype._createColor=function(k){var C=k.options,Z=k.color,X=k.additionalRotation,ae=k.x,de=k.y,me=k.height,Pe=k.width,De=k.name,Re=Pe>me?Pe:me,qe=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");if(qe.setAttribute(\"x\",String(ae)),qe.setAttribute(\"y\",String(de)),qe.setAttribute(\"height\",String(me)),qe.setAttribute(\"width\",String(Pe)),qe.setAttribute(\"clip-path\",\"url(\\'#clip-path-\"+De+\"\\')\"),C){var et;if(C.type===\"radial\")(et=document.createElementNS(\"http://www.w3.org/2000/svg\",\"radialGradient\")).setAttribute(\"id\",De),et.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),et.setAttribute(\"fx\",String(ae+Pe/2)),et.setAttribute(\"fy\",String(de+me/2)),et.setAttribute(\"cx\",String(ae+Pe/2)),et.setAttribute(\"cy\",String(de+me/2)),et.setAttribute(\"r\",String(Re/2));else{var ot=((C.rotation||0)+X)%(2*Math.PI),Qe=(ot+2*Math.PI)%(2*Math.PI),xt=ae+Pe/2,Wt=de+me/2,Vt=ae+Pe/2,Bt=de+me/2;Qe>=0&&Qe<=.25*Math.PI||Qe>1.75*Math.PI&&Qe<=2*Math.PI?(xt-=Pe/2,Wt-=me/2*Math.tan(ot),Vt+=Pe/2,Bt+=me/2*Math.tan(ot)):Qe>.25*Math.PI&&Qe<=.75*Math.PI?(Wt-=me/2,xt-=Pe/2/Math.tan(ot),Bt+=me/2,Vt+=Pe/2/Math.tan(ot)):Qe>.75*Math.PI&&Qe<=1.25*Math.PI?(xt+=Pe/2,Wt+=me/2*Math.tan(ot),Vt-=Pe/2,Bt-=me/2*Math.tan(ot)):Qe>1.25*Math.PI&&Qe<=1.75*Math.PI&&(Wt+=me/2,xt+=Pe/2/Math.tan(ot),Bt-=me/2,Vt-=Pe/2/Math.tan(ot)),(et=document.createElementNS(\"http://www.w3.org/2000/svg\",\"linearGradient\")).setAttribute(\"id\",De),et.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),et.setAttribute(\"x1\",String(Math.round(xt))),et.setAttribute(\"y1\",String(Math.round(Wt))),et.setAttribute(\"x2\",String(Math.round(Vt))),et.setAttribute(\"y2\",String(Math.round(Bt)))}C.colorStops.forEach((function(nn){var Yt=nn.offset,hn=nn.color,Pn=document.createElementNS(\"http://www.w3.org/2000/svg\",\"stop\");Pn.setAttribute(\"offset\",100*Yt+\"%\"),Pn.setAttribute(\"stop-color\",hn),et.appendChild(Pn)})),qe.setAttribute(\"fill\",\"url(\\'#\"+De+\"\\')\"),this._defs.appendChild(et)}else Z&&qe.setAttribute(\"fill\",Z);this._element.appendChild(qe)},B.instanceCount=0,B})(),W=\"canvas\";for(var w={},I=0;I<=40;I++)w[I]=I;let ye={type:W,shape:\"square\",width:300,height:300,data:\"\",margin:0,qrOptions:{typeNumber:w[0],mode:void 0,errorCorrectionLevel:\"Q\"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:\"square\",color:\"#000\"},backgroundOptions:{round:0,color:\"#fff\"}};var ne=function(){return ne=Object.assign||function(B){for(var k,C=1,Z=arguments.length;C<Z;C++)for(var X in k=arguments[C])Object.prototype.hasOwnProperty.call(k,X)&&(B[X]=k[X]);return B},ne.apply(this,arguments)};function Q(B){var k=ne({},B);if(!k.colorStops||!k.colorStops.length)throw\"Field \\'colorStops\\' is required in gradient\";return k.rotation?k.rotation=Number(k.rotation):k.rotation=0,k.colorStops=k.colorStops.map((function(C){return ne(ne({},C),{offset:Number(C.offset)})})),k}function ie(B){var k=ne({},B);return k.width=Number(k.width),k.height=Number(k.height),k.margin=Number(k.margin),k.imageOptions=ne(ne({},k.imageOptions),{hideBackgroundDots:!!k.imageOptions.hideBackgroundDots,imageSize:Number(k.imageOptions.imageSize),margin:Number(k.imageOptions.margin)}),k.margin>Math.min(k.width,k.height)&&(k.margin=Math.min(k.width,k.height)),k.dotsOptions=ne({},k.dotsOptions),k.dotsOptions.gradient&&(k.dotsOptions.gradient=Q(k.dotsOptions.gradient)),k.cornersSquareOptions&&(k.cornersSquareOptions=ne({},k.cornersSquareOptions),k.cornersSquareOptions.gradient&&(k.cornersSquareOptions.gradient=Q(k.cornersSquareOptions.gradient))),k.cornersDotOptions&&(k.cornersDotOptions=ne({},k.cornersDotOptions),k.cornersDotOptions.gradient&&(k.cornersDotOptions.gradient=Q(k.cornersDotOptions.gradient))),k.backgroundOptions&&(k.backgroundOptions=ne({},k.backgroundOptions),k.backgroundOptions.gradient&&(k.backgroundOptions.gradient=Q(k.backgroundOptions.gradient))),k}var ue=a(192),q=a.n(ue),Ee=function(B,k,C,Z){return new(C||(C=Promise))((function(X,ae){function de(De){try{Pe(Z.next(De))}catch(Re){ae(Re)}}function me(De){try{Pe(Z.throw(De))}catch(Re){ae(Re)}}function Pe(De){var Re;De.done?X(De.value):(Re=De.value,Re instanceof C?Re:new C((function(qe){qe(Re)}))).then(de,me)}Pe((Z=Z.apply(B,k||[])).next())}))},we=function(B,k){var C,Z,X,ae,de={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return ae={next:me(0),throw:me(1),return:me(2)},typeof Symbol==\"function\"&&(ae[Symbol.iterator]=function(){return this}),ae;function me(Pe){return function(De){return(function(Re){if(C)throw new TypeError(\"Generator is already executing.\");for(;de;)try{if(C=1,Z&&(X=2&Re[0]?Z.return:Re[0]?Z.throw||((X=Z.return)&&X.call(Z),0):Z.next)&&!(X=X.call(Z,Re[1])).done)return X;switch(Z=0,X&&(Re=[2&Re[0],X.value]),Re[0]){case 0:case 1:X=Re;break;case 4:return de.label++,{value:Re[1],done:!1};case 5:de.label++,Z=Re[1],Re=[0];continue;case 7:Re=de.ops.pop(),de.trys.pop();continue;default:if(!((X=(X=de.trys).length>0&&X[X.length-1])||Re[0]!==6&&Re[0]!==2)){de=0;continue}if(Re[0]===3&&(!X||Re[1]>X[0]&&Re[1]<X[3])){de.label=Re[1];break}if(Re[0]===6&&de.label<X[1]){de.label=X[1],X=Re;break}if(X&&de.label<X[2]){de.label=X[2],de.ops.push(Re);break}X[2]&&de.ops.pop(),de.trys.pop();continue}Re=k.call(B,de)}catch(qe){Re=[6,qe],Z=0}finally{C=X=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}})([Pe,De])}}};let _e=(function(){function B(k){this._options=k?ie(y(ye,k)):ye,this.update()}return B._clearContainer=function(k){k&&(k.innerHTML=\"\")},B.prototype._setupSvg=function(){var k=this;if(this._qr){var C=new U(this._options);this._svg=C.getElement(),this._svgDrawingPromise=C.drawQR(this._qr).then((function(){var Z;k._svg&&((Z=k._extension)===null||Z===void 0||Z.call(k,C.getElement(),k._options))}))}},B.prototype._setupCanvas=function(){var k,C=this;this._qr&&(this._canvas=document.createElement(\"canvas\"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(k=this._svgDrawingPromise)===null||k===void 0?void 0:k.then((function(){if(C._svg){var Z=C._svg,X=new XMLSerializer().serializeToString(Z),ae=\"data:image/svg+xml;base64,\"+btoa(X),de=new Image;return new Promise((function(me){de.onload=function(){var Pe,De;(De=(Pe=C._canvas)===null||Pe===void 0?void 0:Pe.getContext(\"2d\"))===null||De===void 0||De.drawImage(de,0,0),me()},de.src=ae}))}})))},B.prototype._getElement=function(k){return k===void 0&&(k=\"png\"),Ee(this,void 0,void 0,(function(){return we(this,(function(C){switch(C.label){case 0:if(!this._qr)throw\"QR code is empty\";return k.toLowerCase()!==\"svg\"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return C.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return C.sent(),[2,this._canvas]}}))}))},B.prototype.update=function(k){B._clearContainer(this._container),this._options=k?ie(y(this._options,k)):this._options,this._options.data&&(this._qr=q()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(C){switch(!0){case/^[0-9]*$/.test(C):return c;case/^[0-9A-Z $%*+\\\\-./:]*$/.test(C):return l;default:return f}})(this._options.data)),this._qr.make(),this._options.type===W?this._setupCanvas():this._setupSvg(),this.append(this._container))},B.prototype.append=function(k){if(k){if(typeof k.appendChild!=\"function\")throw\"Container should be a single DOM node\";this._options.type===W?this._canvas&&k.appendChild(this._canvas):this._svg&&k.appendChild(this._svg),this._container=k}},B.prototype.applyExtension=function(k){if(!k)throw\"Extension function should be defined.\";this._extension=k,this.update()},B.prototype.deleteExtension=function(){this._extension=void 0,this.update()},B.prototype.getRawData=function(k){return k===void 0&&(k=\"png\"),Ee(this,void 0,void 0,(function(){var C,Z,X;return we(this,(function(ae){switch(ae.label){case 0:if(!this._qr)throw\"QR code is empty\";return[4,this._getElement(k)];case 1:return(C=ae.sent())?k.toLowerCase()===\"svg\"?(Z=new XMLSerializer,X=Z.serializeToString(C),[2,new Blob([`<?xml version=\"1.0\" standalone=\"no\"?>\\\\r\\n`+X],{type:\"image/svg+xml\"})]):[2,new Promise((function(de){return C.toBlob(de,\"image/\"+k,1)}))]:[2,null]}}))}))},B.prototype.download=function(k){return Ee(this,void 0,void 0,(function(){var C,Z,X,ae,de;return we(this,(function(me){switch(me.label){case 0:if(!this._qr)throw\"QR code is empty\";return C=\"png\",Z=\"qr\",typeof k==\"string\"?(C=k,console.warn(\"Extension is deprecated as argument for \\'download\\' method, please pass object { name: \\'...\\', extension: \\'...\\' } as argument\")):typeof k==\"object\"&&k!==null&&(k.name&&(Z=k.name),k.extension&&(C=k.extension)),[4,this._getElement(C)];case 1:return(X=me.sent())?(C.toLowerCase()===\"svg\"?(ae=new XMLSerializer,de=`<?xml version=\"1.0\" standalone=\"no\"?>\\\\r\\n`+(de=ae.serializeToString(X)),A(\"data:image/svg+xml;charset=utf-8,\"+encodeURIComponent(de),Z+\".svg\")):A(X.toDataURL(\"image/\"+C),Z+\".\"+C),[2]):[2]}}))}))},B})()}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.n=r=>{var o=r&&r.__esModule?()=>r.default:()=>r;return n.d(o,{a:o}),o},n.d=(r,o)=>{for(var a in o)n.o(o,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:o[a]})},n.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),n(676)})().default}))});var Rre=Qr((exports,module)=>{u();typeof document<\"u\"&&typeof navigator<\"u\"&&(function(t,e){typeof exports==\"object\"&&typeof module<\"u\"?module.exports=e():typeof define==\"function\"&&define.amd?define(e):(t=typeof globalThis<\"u\"?globalThis:t||self,t.lottie=e())})(exports,(function(){\"use strict\";var svgNS=\"http://www.w3.org/2000/svg\",locationHref=\"\",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var n,r=t.length,o;for(n=0;n<r;n+=1){o=t[n].prototype;for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e.prototype[a]=o[a])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=(function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].pause()},resume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].resume()},setRate:function(n){var r,o=this.audios.length;for(r=0;r<o;r+=1)this.audios[r].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}})(),createTypedArray=(function(){function t(n,r){var o=0,a=[],c;switch(n){case\"int16\":case\"uint8c\":c=1;break;default:c=1.1;break}for(o=0;o<r;o+=1)a.push(c);return a}function e(n,r){return n===\"float32\"?new Float32Array(r):n===\"int16\"?new Int16Array(r):n===\"uint8c\"?new Uint8ClampedArray(r):t(n,r)}return typeof Uint8ClampedArray==\"function\"&&typeof Float32Array==\"function\"?e:t})();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){\"@babel/helpers - typeof\";return _typeof$6=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1=\"\",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var t=[\"abs\",\"acos\",\"acosh\",\"asin\",\"asinh\",\"atan\",\"atanh\",\"atan2\",\"ceil\",\"cbrt\",\"expm1\",\"clz32\",\"cos\",\"cosh\",\"exp\",\"floor\",\"fround\",\"hypot\",\"imul\",\"log\",\"log1p\",\"log2\",\"log10\",\"max\",\"min\",\"pow\",\"random\",\"round\",\"sign\",\"sin\",\"sinh\",\"sqrt\",\"tan\",\"tanh\",\"trunc\",\"E\",\"LN10\",\"LN2\",\"LOG10E\",\"LOG2E\",\"PI\",\"SQRT1_2\",\"SQRT2\"],e,n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(t){var e=_typeof$6(t);if(e===\"object\"&&t.length){var n=createSizedArray(t.length),r,o=t.length;for(r=0;r<o;r+=1)n[r]=Math.abs(t[r]);return n}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position=\"absolute\",t.style.top=0,t.style.left=0,t.style.display=\"block\",t.style.transformOrigin=\"0 0\",t.style.webkitTransformOrigin=\"0 0\",t.style.backfaceVisibility=\"visible\",t.style.webkitBackfaceVisibility=\"visible\",t.style.transformStyle=\"preserve-3d\",t.style.webkitTransformStyle=\"preserve-3d\",t.style.mozTransformStyle=\"preserve-3d\"}function BMEnterFrameEvent(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type=\"renderFrameError\",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type=\"configError\",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(function(){var t=0;return function(){return t+=1,idPrefix$1+\"__lottie_element_\"+t}})();function HSVtoRGB(t,e,n){var r,o,a,c,l,f,p,m;switch(c=Math.floor(t*6),l=t*6-c,f=n*(1-e),p=n*(1-l*e),m=n*(1-(1-l)*e),c%6){case 0:r=n,o=m,a=f;break;case 1:r=p,o=n,a=f;break;case 2:r=f,o=n,a=m;break;case 3:r=f,o=p,a=n;break;case 4:r=m,o=f,a=n;break;case 5:r=n,o=f,a=p;break;default:break}return[r,o,a]}function RGBtoHSV(t,e,n){var r=Math.max(t,e,n),o=Math.min(t,e,n),a=r-o,c,l=r===0?0:a/r,f=r/255;switch(r){case o:c=0;break;case t:c=e-n+a*(e<n?6:0),c/=6*a;break;case e:c=n-t+a*2,c/=6*a;break;case n:c=t-e+a*4,c/=6*a;break;default:break}return[c,l,f]}function addSaturationToRGB(t,e){var n=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=(function(){var t=[],e,n;for(e=0;e<256;e+=1)n=e.toString(16),t[e]=n.length===1?\"0\"+n:n;return function(r,o,a){return r<0&&(r=0),o<0&&(o=0),a<0&&(a=0),\"#\"+t[r]+t[o]+t[a]}})(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){\"@babel/helpers - typeof\";return _typeof$5=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$5(t)}var dataManager=(function(){var t=1,e=[],n,r,o={onmessage:function(){},postMessage:function(A){n({data:A})}},a={postMessage:function(A){o.onmessage({data:A})}};function c(y){if(window.Worker&&window.Blob&&getWebWorker()){var A=new Blob([\"var _workerSelf = self; self.onmessage = \",y.toString()],{type:\"text/javascript\"}),T=URL.createObjectURL(A);return new Worker(T)}return n=y,o}function l(){r||(r=c(function(A){function T(){function K(L,U){var W,w,I=L.length,ye,ne,Q,ie;for(w=0;w<I;w+=1)if(W=L[w],\"ks\"in W&&!W.completed){if(W.completed=!0,W.hasMask){var ue=W.masksProperties;for(ne=ue.length,ye=0;ye<ne;ye+=1)if(ue[ye].pt.k.i)ee(ue[ye].pt.k);else for(ie=ue[ye].pt.k.length,Q=0;Q<ie;Q+=1)ue[ye].pt.k[Q].s&&ee(ue[ye].pt.k[Q].s[0]),ue[ye].pt.k[Q].e&&ee(ue[ye].pt.k[Q].e[0])}W.ty===0?(W.layers=D(W.refId,U),K(W.layers,U)):W.ty===4?G(W.shapes):W.ty===5&&z(W)}}function O(L,U){if(L){var W=0,w=L.length;for(W=0;W<w;W+=1)L[W].t===1&&(L[W].data.layers=D(L[W].data.refId,U),K(L[W].data.layers,U))}}function V(L,U){for(var W=0,w=U.length;W<w;){if(U[W].id===L)return U[W];W+=1}return null}function D(L,U){var W=V(L,U);return W?W.layers.__used?JSON.parse(JSON.stringify(W.layers)):(W.layers.__used=!0,W.layers):null}function G(L){var U,W=L.length,w,I;for(U=W-1;U>=0;U-=1)if(L[U].ty===\"sh\")if(L[U].ks.k.i)ee(L[U].ks.k);else for(I=L[U].ks.k.length,w=0;w<I;w+=1)L[U].ks.k[w].s&&ee(L[U].ks.k[w].s[0]),L[U].ks.k[w].e&&ee(L[U].ks.k[w].e[0]);else L[U].ty===\"gr\"&&G(L[U].it)}function ee(L){var U,W=L.i.length;for(U=0;U<W;U+=1)L.i[U][0]+=L.v[U][0],L.i[U][1]+=L.v[U][1],L.o[U][0]+=L.v[U][0],L.o[U][1]+=L.v[U][1]}function J(L,U){var W=U?U.split(\".\"):[100,100,100];return L[0]>W[0]?!0:W[0]>L[0]?!1:L[1]>W[1]?!0:W[1]>L[1]?!1:L[2]>W[2]?!0:W[2]>L[2]?!1:null}var le=(function(){var L=[4,4,14];function U(w){var I=w.t.d;w.t.d={k:[{s:I,t:0}]}}function W(w){var I,ye=w.length;for(I=0;I<ye;I+=1)w[I].ty===5&&U(w[I])}return function(w){if(J(L,w.v)&&(W(w.layers),w.assets)){var I,ye=w.assets.length;for(I=0;I<ye;I+=1)w.assets[I].layers&&W(w.assets[I].layers)}}})(),se=(function(){var L=[4,7,99];return function(U){if(U.chars&&!J(L,U.v)){var W,w=U.chars.length;for(W=0;W<w;W+=1){var I=U.chars[W];I.data&&I.data.shapes&&(G(I.data.shapes),I.data.ip=0,I.data.op=99999,I.data.st=0,I.data.sr=1,I.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},U.chars[W].t||(I.data.shapes.push({ty:\"no\"}),I.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:\"tr\"})))}}}})(),te=(function(){var L=[5,7,15];function U(w){var I=w.t.p;typeof I.a==\"number\"&&(I.a={a:0,k:I.a}),typeof I.p==\"number\"&&(I.p={a:0,k:I.p}),typeof I.r==\"number\"&&(I.r={a:0,k:I.r})}function W(w){var I,ye=w.length;for(I=0;I<ye;I+=1)w[I].ty===5&&U(w[I])}return function(w){if(J(L,w.v)&&(W(w.layers),w.assets)){var I,ye=w.assets.length;for(I=0;I<ye;I+=1)w.assets[I].layers&&W(w.assets[I].layers)}}})(),S=(function(){var L=[4,1,9];function U(w){var I,ye=w.length,ne,Q;for(I=0;I<ye;I+=1)if(w[I].ty===\"gr\")U(w[I].it);else if(w[I].ty===\"fl\"||w[I].ty===\"st\")if(w[I].c.k&&w[I].c.k[0].i)for(Q=w[I].c.k.length,ne=0;ne<Q;ne+=1)w[I].c.k[ne].s&&(w[I].c.k[ne].s[0]/=255,w[I].c.k[ne].s[1]/=255,w[I].c.k[ne].s[2]/=255,w[I].c.k[ne].s[3]/=255),w[I].c.k[ne].e&&(w[I].c.k[ne].e[0]/=255,w[I].c.k[ne].e[1]/=255,w[I].c.k[ne].e[2]/=255,w[I].c.k[ne].e[3]/=255);else w[I].c.k[0]/=255,w[I].c.k[1]/=255,w[I].c.k[2]/=255,w[I].c.k[3]/=255}function W(w){var I,ye=w.length;for(I=0;I<ye;I+=1)w[I].ty===4&&U(w[I].shapes)}return function(w){if(J(L,w.v)&&(W(w.layers),w.assets)){var I,ye=w.assets.length;for(I=0;I<ye;I+=1)w.assets[I].layers&&W(w.assets[I].layers)}}})(),_=(function(){var L=[4,4,18];function U(w){var I,ye=w.length,ne,Q;for(I=ye-1;I>=0;I-=1)if(w[I].ty===\"sh\")if(w[I].ks.k.i)w[I].ks.k.c=w[I].closed;else for(Q=w[I].ks.k.length,ne=0;ne<Q;ne+=1)w[I].ks.k[ne].s&&(w[I].ks.k[ne].s[0].c=w[I].closed),w[I].ks.k[ne].e&&(w[I].ks.k[ne].e[0].c=w[I].closed);else w[I].ty===\"gr\"&&U(w[I].it)}function W(w){var I,ye,ne=w.length,Q,ie,ue,q;for(ye=0;ye<ne;ye+=1){if(I=w[ye],I.hasMask){var Ee=I.masksProperties;for(ie=Ee.length,Q=0;Q<ie;Q+=1)if(Ee[Q].pt.k.i)Ee[Q].pt.k.c=Ee[Q].cl;else for(q=Ee[Q].pt.k.length,ue=0;ue<q;ue+=1)Ee[Q].pt.k[ue].s&&(Ee[Q].pt.k[ue].s[0].c=Ee[Q].cl),Ee[Q].pt.k[ue].e&&(Ee[Q].pt.k[ue].e[0].c=Ee[Q].cl)}I.ty===4&&U(I.shapes)}}return function(w){if(J(L,w.v)&&(W(w.layers),w.assets)){var I,ye=w.assets.length;for(I=0;I<ye;I+=1)w.assets[I].layers&&W(w.assets[I].layers)}}})();function P(L){L.__complete||(S(L),le(L),se(L),te(L),_(L),K(L.layers,L.assets),O(L.chars,L.assets),L.__complete=!0)}function z(L){L.t.a.length===0&&\"m\"in L.t.p}var Y={};return Y.completeData=P,Y.checkColors=S,Y.checkChars=se,Y.checkPathProperties=te,Y.checkShapes=_,Y.completeLayers=K,Y}if(a.dataManager||(a.dataManager=T()),a.assetLoader||(a.assetLoader=(function(){function K(V){var D=V.getResponseHeader(\"content-type\");return D&&V.responseType===\"json\"&&D.indexOf(\"json\")!==-1||V.response&&_typeof$5(V.response)===\"object\"?V.response:V.response&&typeof V.response==\"string\"?JSON.parse(V.response):V.responseText?JSON.parse(V.responseText):null}function O(V,D,G,ee){var J,le=new XMLHttpRequest;try{le.responseType=\"json\"}catch{}le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200)J=K(le),G(J);else try{J=K(le),G(J)}catch(se){ee&&ee(se)}};try{le.open([\"G\",\"E\",\"T\"].join(\"\"),V,!0)}catch{le.open([\"G\",\"E\",\"T\"].join(\"\"),D+\"/\"+V,!0)}le.send()}return{load:O}})()),A.data.type===\"loadAnimation\")a.assetLoader.load(A.data.path,A.data.fullPath,function(K){a.dataManager.completeData(K),a.postMessage({id:A.data.id,payload:K,status:\"success\"})},function(){a.postMessage({id:A.data.id,status:\"error\"})});else if(A.data.type===\"complete\"){var R=A.data.animation;a.dataManager.completeData(R),a.postMessage({id:A.data.id,payload:R,status:\"success\"})}else A.data.type===\"loadData\"&&a.assetLoader.load(A.data.path,A.data.fullPath,function(K){a.postMessage({id:A.data.id,payload:K,status:\"success\"})},function(){a.postMessage({id:A.data.id,status:\"error\"})})}),r.onmessage=function(y){var A=y.data,T=A.id,R=e[T];e[T]=null,A.status===\"success\"?R.onComplete(A.payload):R.onError&&R.onError()})}function f(y,A){t+=1;var T=\"processId_\"+t;return e[T]={onComplete:y,onError:A},T}function p(y,A,T){l();var R=f(A,T);r.postMessage({type:\"loadAnimation\",path:y,fullPath:window.location.origin+window.location.pathname,id:R})}function m(y,A,T){l();var R=f(A,T);r.postMessage({type:\"loadData\",path:y,fullPath:window.location.origin+window.location.pathname,id:R})}function g(y,A,T){l();var R=f(A,T);r.postMessage({type:\"complete\",animation:y,id:R})}return{loadAnimation:p,loadData:m,completeAnimation:g}})(),ImagePreloader=(function(){var t=(function(){var O=createTag(\"canvas\");O.width=1,O.height=1;var V=O.getContext(\"2d\");return V.fillStyle=\"rgba(0,0,0,0)\",V.fillRect(0,0,1,1),O})();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(O,V,D){var G=\"\";if(O.e)G=O.p;else if(V){var ee=O.p;ee.indexOf(\"images/\")!==-1&&(ee=ee.split(\"/\")[1]),G=V+ee}else G=D,G+=O.u?O.u:\"\",G+=O.p;return G}function o(O){var V=0,D=setInterval(function(){var G=O.getBBox();(G.width||V>500)&&(this._imageLoaded(),clearInterval(D)),V+=1}.bind(this),50)}function a(O){var V=r(O,this.assetsPath,this.path),D=createNS(\"image\");isSafari?this.testImageLoaded(D):D.addEventListener(\"load\",this._imageLoaded,!1),D.addEventListener(\"error\",function(){G.img=t,this._imageLoaded()}.bind(this),!1),D.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",V),this._elementHelper.append?this._elementHelper.append(D):this._elementHelper.appendChild(D);var G={img:D,assetData:O};return G}function c(O){var V=r(O,this.assetsPath,this.path),D=createTag(\"img\");D.crossOrigin=\"anonymous\",D.addEventListener(\"load\",this._imageLoaded,!1),D.addEventListener(\"error\",function(){G.img=t,this._imageLoaded()}.bind(this),!1),D.src=V;var G={img:D,assetData:O};return G}function l(O){var V={assetData:O},D=r(O,this.assetsPath,this.path);return dataManager.loadData(D,function(G){V.img=G,this._footageLoaded()}.bind(this),function(){V.img={},this._footageLoaded()}.bind(this)),V}function f(O,V){this.imagesLoadedCb=V;var D,G=O.length;for(D=0;D<G;D+=1)O[D].layers||(!O[D].t||O[D].t===\"seq\"?(this.totalImages+=1,this.images.push(this._createImageData(O[D]))):O[D].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(O[D]))))}function p(O){this.path=O||\"\"}function m(O){this.assetsPath=O||\"\"}function g(O){for(var V=0,D=this.images.length;V<D;){if(this.images[V].assetData===O)return this.images[V].img;V+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function A(){return this.totalImages===this.loadedAssets}function T(){return this.totalFootages===this.loadedFootagesCount}function R(O,V){O===\"svg\"?(this._elementHelper=V,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function K(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=l.bind(this),this.assetsPath=\"\",this.path=\"\",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return K.prototype={loadAssets:f,setAssetsPath:m,setPath:p,loadedImages:A,loadedFootages:T,destroy:y,getAsset:g,createImgData:c,createImageData:a,imageLoaded:e,footageLoaded:n,setCacheType:R},K})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,n){if(this._cbs[e])for(var r=this._cbs[e],o=0;o<r.length;o+=1)r[o](n)},addEventListener:function(e,n){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(n),function(){this.removeEventListener(e,n)}.bind(this)},removeEventListener:function(e,n){if(!n)this._cbs[e]=null;else if(this._cbs[e]){for(var r=0,o=this._cbs[e].length;r<o;)this._cbs[e][r]===n&&(this._cbs[e].splice(r,1),r-=1,o-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}};var markerParser=(function(){function t(e){for(var n=e.split(`\\\\r\\n`),r={},o,a=0,c=0;c<n.length;c+=1)o=n[c].split(\":\"),o.length===2&&(r[o[0]]=o[1].trim(),a+=1);if(a===0)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var o=e[r],a={time:o.tm,duration:o.dr};try{a.payload=JSON.parse(e[r].cm)}catch{try{a.payload=t(e[r].cm)}catch{a.payload={name:e[r].cm}}}n.push(a)}return n}})(),ProjectInterface=(function(){function t(e){this.compositions.push(e)}return function(){function e(n){for(var r=0,o=this.compositions.length;r<o;){if(this.compositions[r].data&&this.compositions[r].data.nm===n)return this.compositions[r].prepareFrame&&this.compositions[r].data.xt&&this.compositions[r].prepareFrame(this.currentFrame),this.compositions[r].compInterface;r+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}})(),renderers={},registerRenderer=function(e,n){renderers[e]=n};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return\"canvas\";for(var t in renderers)if(renderers[t])return t;return\"\"}function _typeof$4(t){\"@babel/helpers - typeof\";return _typeof$4=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name=\"\",this.path=\"\",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath=\"\",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent(\"drawnFrame\",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=\"svg\";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=getRenderer(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===\"\"||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=\"autoplay\"in t?t.autoplay:!0,this.name=t.name?t.name:\"\",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,\"autoloadSegments\")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf(\"\\\\\\\\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf(\"\\\\\\\\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf(\"/\")+1),this.fileName=t.path.substr(t.path.lastIndexOf(\"/\")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(\".json\")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger(\"data_failed\")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!==\"object\"&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem(\"data-animation-path\")?r.getNamedItem(\"data-animation-path\").value:r.getNamedItem(\"data-bm-path\")?r.getNamedItem(\"data-bm-path\").value:r.getNamedItem(\"bm-path\")?r.getNamedItem(\"bm-path\").value:\"\",n.animType=r.getNamedItem(\"data-anim-type\")?r.getNamedItem(\"data-anim-type\").value:r.getNamedItem(\"data-bm-type\")?r.getNamedItem(\"data-bm-type\").value:r.getNamedItem(\"bm-type\")?r.getNamedItem(\"bm-type\").value:r.getNamedItem(\"data-bm-renderer\")?r.getNamedItem(\"data-bm-renderer\").value:r.getNamedItem(\"bm-renderer\")?r.getNamedItem(\"bm-renderer\").value:getRegisteredRenderer()||\"canvas\";var o=r.getNamedItem(\"data-anim-loop\")?r.getNamedItem(\"data-anim-loop\").value:r.getNamedItem(\"data-bm-loop\")?r.getNamedItem(\"data-bm-loop\").value:r.getNamedItem(\"bm-loop\")?r.getNamedItem(\"bm-loop\").value:\"\";o===\"false\"?n.loop=!1:o===\"true\"?n.loop=!0:o!==\"\"&&(n.loop=parseInt(o,10));var a=r.getNamedItem(\"data-anim-autoplay\")?r.getNamedItem(\"data-anim-autoplay\").value:r.getNamedItem(\"data-bm-autoplay\")?r.getNamedItem(\"data-bm-autoplay\").value:r.getNamedItem(\"bm-autoplay\")?r.getNamedItem(\"bm-autoplay\").value:!0;n.autoplay=a!==\"false\",n.name=r.getNamedItem(\"data-name\")?r.getNamedItem(\"data-name\").value:r.getNamedItem(\"data-bm-name\")?r.getNamedItem(\"data-bm-name\").value:r.getNamedItem(\"bm-name\")?r.getNamedItem(\"bm-name\").value:\"\";var c=r.getNamedItem(\"data-anim-prerender\")?r.getNamedItem(\"data-anim-prerender\").value:r.getNamedItem(\"data-bm-prerender\")?r.getNamedItem(\"data-bm-prerender\").value:r.getNamedItem(\"bm-prerender\")?r.getNamedItem(\"bm-prerender\").value:\"\";c===\"false\"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger(\"destroy\")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,n,r=e.length,o=t.layers,a,c=o.length;for(a=0;a<c;a+=1)for(n=0;n<r;){if(e[n].id===o[a].id){e[n]=o[a];break}n+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,n=0;n<r;n+=1)this.animationData.assets.push(t.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger(\"data_ready\"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+\"_\"+this.segmentPos+\".json\";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger(\"data_failed\")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger(\"loaded_images\"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger(\"config_ready\"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!==\"canvas\")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger(\"DOMLoaded\")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var n=typeof t==\"number\"?t:void 0,r=typeof e==\"number\"?e:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(\"enterFrame\"),this.renderFrame(),this.trigger(\"drawnFrame\")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger(\"_play\"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger(\"_active\")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger(\"_pause\"),this._idle=!0,this.trigger(\"_idle\"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if(e=this.markers[n],e.payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,n){if(!(n&&this.name!==n)){var r=Number(t);if(isNaN(r)){var o=this.getMarkerData(t);o&&this.goToAndStop(o.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,n){if(!(n&&this.name!==n)){var r=Number(t);if(isNaN(r)){var o=this.getMarkerData(t);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(r,e,n);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger(\"loopComplete\"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(\"loopComplete\"):this._completedLoop=!0):(n=!0,e=0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(\"complete\"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger(\"segmentStart\")},AnimationItem.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])===\"object\"){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(\"destroy\"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e=\"\";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;n.indexOf(\"images/\")!==-1&&(n=n.split(\"/\")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:\"\",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,n){try{var r=this.renderer.getElementByPath(t);r.updateDocumentData(e,n)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case\"enterFrame\":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case\"drawnFrame\":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case\"loopComplete\":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case\"complete\":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case\"segmentStart\":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case\"destroy\":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t===\"enterFrame\"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t===\"loopComplete\"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t===\"complete\"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t===\"segmentStart\"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t===\"destroy\"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)};var animationManager=(function(){var t={},e=[],n=0,r=0,o=0,a=!0,c=!1;function l(U){for(var W=0,w=U.target;W<r;)e[W].animation===w&&(e.splice(W,1),W-=1,r-=1,w.isPaused||g()),W+=1}function f(U,W){if(!U)return null;for(var w=0;w<r;){if(e[w].elem===U&&e[w].elem!==null)return e[w].animation;w+=1}var I=new AnimationItem;return y(I,U),I.setData(U,W),I}function p(){var U,W=e.length,w=[];for(U=0;U<W;U+=1)w.push(e[U].animation);return w}function m(){o+=1,S()}function g(){o-=1}function y(U,W){U.addEventListener(\"destroy\",l),U.addEventListener(\"_active\",m),U.addEventListener(\"_idle\",g),e.push({elem:W,animation:U}),r+=1}function A(U){var W=new AnimationItem;return y(W,null),W.setParams(U),W}function T(U,W){var w;for(w=0;w<r;w+=1)e[w].animation.setSpeed(U,W)}function R(U,W){var w;for(w=0;w<r;w+=1)e[w].animation.setDirection(U,W)}function K(U){var W;for(W=0;W<r;W+=1)e[W].animation.play(U)}function O(U){var W=U-n,w;for(w=0;w<r;w+=1)e[w].animation.advanceTime(W);n=U,o&&!c?window.requestAnimationFrame(O):a=!0}function V(U){n=U,window.requestAnimationFrame(O)}function D(U){var W;for(W=0;W<r;W+=1)e[W].animation.pause(U)}function G(U,W,w){var I;for(I=0;I<r;I+=1)e[I].animation.goToAndStop(U,W,w)}function ee(U){var W;for(W=0;W<r;W+=1)e[W].animation.stop(U)}function J(U){var W;for(W=0;W<r;W+=1)e[W].animation.togglePause(U)}function le(U){var W;for(W=r-1;W>=0;W-=1)e[W].animation.destroy(U)}function se(U,W,w){var I=[].concat([].slice.call(document.getElementsByClassName(\"lottie\")),[].slice.call(document.getElementsByClassName(\"bodymovin\"))),ye,ne=I.length;for(ye=0;ye<ne;ye+=1)w&&I[ye].setAttribute(\"data-bm-type\",w),f(I[ye],U);if(W&&ne===0){w||(w=\"svg\");var Q=document.getElementsByTagName(\"body\")[0];Q.innerText=\"\";var ie=createTag(\"div\");ie.style.width=\"100%\",ie.style.height=\"100%\",ie.setAttribute(\"data-bm-type\",w),Q.appendChild(ie),f(ie,U)}}function te(){var U;for(U=0;U<r;U+=1)e[U].animation.resize()}function S(){!c&&o&&a&&(window.requestAnimationFrame(V),a=!1)}function _(){c=!0}function P(){c=!1,S()}function z(U,W){var w;for(w=0;w<r;w+=1)e[w].animation.setVolume(U,W)}function Y(U){var W;for(W=0;W<r;W+=1)e[W].animation.mute(U)}function L(U){var W;for(W=0;W<r;W+=1)e[W].animation.unmute(U)}return t.registerAnimation=f,t.loadAnimation=A,t.setSpeed=T,t.setDirection=R,t.play=K,t.pause=D,t.stop=ee,t.togglePause=J,t.searchAnimations=se,t.resize=te,t.goToAndStop=G,t.destroy=le,t.freeze=_,t.unfreeze=P,t.setVolume=z,t.mute=Y,t.unmute=L,t.getRegisteredAnimations=p,t})(),BezierFactory=(function(){var t={};t.getBezierEasing=n;var e={};function n(V,D,G,ee,J){var le=J||(\"bez_\"+V+\"_\"+D+\"_\"+G+\"_\"+ee).replace(/\\\\./g,\"p\");if(e[le])return e[le];var se=new O([V,D,G,ee]);return e[le]=se,se}var r=4,o=.001,a=1e-7,c=10,l=11,f=1/(l-1),p=typeof Float32Array==\"function\";function m(V,D){return 1-3*D+3*V}function g(V,D){return 3*D-6*V}function y(V){return 3*V}function A(V,D,G){return((m(D,G)*V+g(D,G))*V+y(D))*V}function T(V,D,G){return 3*m(D,G)*V*V+2*g(D,G)*V+y(D)}function R(V,D,G,ee,J){var le,se,te=0;do se=D+(G-D)/2,le=A(se,ee,J)-V,le>0?G=se:D=se;while(Math.abs(le)>a&&++te<c);return se}function K(V,D,G,ee){for(var J=0;J<r;++J){var le=T(D,G,ee);if(le===0)return D;var se=A(D,G,ee)-V;D-=se/le}return D}function O(V){this._p=V,this._mSampleValues=p?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return O.prototype={get:function(D){var G=this._p[0],ee=this._p[1],J=this._p[2],le=this._p[3];return this._precomputed||this._precompute(),G===ee&&J===le?D:D===0?0:D===1?1:A(this._getTForX(D),ee,le)},_precompute:function(){var D=this._p[0],G=this._p[1],ee=this._p[2],J=this._p[3];this._precomputed=!0,(D!==G||ee!==J)&&this._calcSampleValues()},_calcSampleValues:function(){for(var D=this._p[0],G=this._p[2],ee=0;ee<l;++ee)this._mSampleValues[ee]=A(ee*f,D,G)},_getTForX:function(D){for(var G=this._p[0],ee=this._p[2],J=this._mSampleValues,le=0,se=1,te=l-1;se!==te&&J[se]<=D;++se)le+=f;--se;var S=(D-J[se])/(J[se+1]-J[se]),_=le+S*f,P=T(_,G,ee);return P>=o?K(D,_,G,ee):P===0?_:R(D,le,le+f,G,ee)}},t})(),pooling=(function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}})(),poolFactory=(function(){return function(t,e,n){var r=0,o=t,a=createSizedArray(o),c={newElement:l,release:f};function l(){var p;return r?(r-=1,p=a[r]):p=e(),p}function f(p){r===o&&(a=pooling.double(a),o*=2),n&&n(p),a[r]=p,r+=1}return c}})(),bezierLengthPool=(function(){function t(){return{addedLength:0,percents:createTypedArray(\"float32\",getDefaultCurveSegments()),lengths:createTypedArray(\"float32\",getDefaultCurveSegments())}}return poolFactory(8,t)})(),segmentsLengthPool=(function(){function t(){return{lengths:[],totalLength:0}}function e(n){var r,o=n.lengths.length;for(r=0;r<o;r+=1)bezierLengthPool.release(n.lengths[r]);n.lengths.length=0}return poolFactory(8,t,e)})();function bezFunction(){var t=Math;function e(y,A,T,R,K,O){var V=y*R+A*K+T*O-K*R-O*y-T*A;return V>-.001&&V<.001}function n(y,A,T,R,K,O,V,D,G){if(T===0&&O===0&&G===0)return e(y,A,R,K,V,D);var ee=t.sqrt(t.pow(R-y,2)+t.pow(K-A,2)+t.pow(O-T,2)),J=t.sqrt(t.pow(V-y,2)+t.pow(D-A,2)+t.pow(G-T,2)),le=t.sqrt(t.pow(V-R,2)+t.pow(D-K,2)+t.pow(G-O,2)),se;return ee>J?ee>le?se=ee-J-le:se=le-J-ee:le>J?se=le-J-ee:se=J-ee-le,se>-1e-4&&se<1e-4}var r=(function(){return function(y,A,T,R){var K=getDefaultCurveSegments(),O,V,D,G,ee,J=0,le,se=[],te=[],S=bezierLengthPool.newElement();for(D=T.length,O=0;O<K;O+=1){for(ee=O/(K-1),le=0,V=0;V<D;V+=1)G=bmPow(1-ee,3)*y[V]+3*bmPow(1-ee,2)*ee*T[V]+3*(1-ee)*bmPow(ee,2)*R[V]+bmPow(ee,3)*A[V],se[V]=G,te[V]!==null&&(le+=bmPow(se[V]-te[V],2)),te[V]=se[V];le&&(le=bmSqrt(le),J+=le),S.percents[O]=ee,S.lengths[O]=J}return S.addedLength=J,S}})();function o(y){var A=segmentsLengthPool.newElement(),T=y.c,R=y.v,K=y.o,O=y.i,V,D=y._length,G=A.lengths,ee=0;for(V=0;V<D-1;V+=1)G[V]=r(R[V],R[V+1],K[V],O[V+1]),ee+=G[V].addedLength;return T&&D&&(G[V]=r(R[V],R[0],K[V],O[0]),ee+=G[V].addedLength),A.totalLength=ee,A}function a(y){this.segmentLength=0,this.points=new Array(y)}function c(y,A){this.partialLength=y,this.point=A}var l=(function(){var y={};return function(A,T,R,K){var O=(A[0]+\"_\"+A[1]+\"_\"+T[0]+\"_\"+T[1]+\"_\"+R[0]+\"_\"+R[1]+\"_\"+K[0]+\"_\"+K[1]).replace(/\\\\./g,\"p\");if(!y[O]){var V=getDefaultCurveSegments(),D,G,ee,J,le,se=0,te,S,_=null;A.length===2&&(A[0]!==T[0]||A[1]!==T[1])&&e(A[0],A[1],T[0],T[1],A[0]+R[0],A[1]+R[1])&&e(A[0],A[1],T[0],T[1],T[0]+K[0],T[1]+K[1])&&(V=2);var P=new a(V);for(ee=R.length,D=0;D<V;D+=1){for(S=createSizedArray(ee),le=D/(V-1),te=0,G=0;G<ee;G+=1)J=bmPow(1-le,3)*A[G]+3*bmPow(1-le,2)*le*(A[G]+R[G])+3*(1-le)*bmPow(le,2)*(T[G]+K[G])+bmPow(le,3)*T[G],S[G]=J,_!==null&&(te+=bmPow(S[G]-_[G],2));te=bmSqrt(te),se+=te,P.points[D]=new c(te,S),_=S}P.segmentLength=se,y[O]=P}return y[O]}})();function f(y,A){var T=A.percents,R=A.lengths,K=T.length,O=bmFloor((K-1)*y),V=y*A.addedLength,D=0;if(O===K-1||O===0||V===R[O])return T[O];for(var G=R[O]>V?-1:1,ee=!0;ee;)if(R[O]<=V&&R[O+1]>V?(D=(V-R[O])/(R[O+1]-R[O]),ee=!1):O+=G,O<0||O>=K-1){if(O===K-1)return T[O];ee=!1}return T[O]+(T[O+1]-T[O])*D}function p(y,A,T,R,K,O){var V=f(K,O),D=1-V,G=t.round((D*D*D*y[0]+(V*D*D+D*V*D+D*D*V)*T[0]+(V*V*D+D*V*V+V*D*V)*R[0]+V*V*V*A[0])*1e3)/1e3,ee=t.round((D*D*D*y[1]+(V*D*D+D*V*D+D*D*V)*T[1]+(V*V*D+D*V*V+V*D*V)*R[1]+V*V*V*A[1])*1e3)/1e3;return[G,ee]}var m=createTypedArray(\"float32\",8);function g(y,A,T,R,K,O,V){K<0?K=0:K>1&&(K=1);var D=f(K,V);O=O>1?1:O;var G=f(O,V),ee,J=y.length,le=1-D,se=1-G,te=le*le*le,S=D*le*le*3,_=D*D*le*3,P=D*D*D,z=le*le*se,Y=D*le*se+le*D*se+le*le*G,L=D*D*se+le*D*G+D*le*G,U=D*D*G,W=le*se*se,w=D*se*se+le*G*se+le*se*G,I=D*G*se+le*G*G+D*se*G,ye=D*G*G,ne=se*se*se,Q=G*se*se+se*G*se+se*se*G,ie=G*G*se+se*G*G+G*se*G,ue=G*G*G;for(ee=0;ee<J;ee+=1)m[ee*4]=t.round((te*y[ee]+S*T[ee]+_*R[ee]+P*A[ee])*1e3)/1e3,m[ee*4+1]=t.round((z*y[ee]+Y*T[ee]+L*R[ee]+U*A[ee])*1e3)/1e3,m[ee*4+2]=t.round((W*y[ee]+w*T[ee]+I*R[ee]+ye*A[ee])*1e3)/1e3,m[ee*4+3]=t.round((ne*y[ee]+Q*T[ee]+ie*R[ee]+ue*A[ee])*1e3)/1e3;return m}return{getSegmentsLength:o,getNewSegment:g,getPointInSegment:p,buildBezierData:l,pointOnLine2D:e,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var n=this.offsetTime,r;this.propType===\"multidimensional\"&&(r=createTypedArray(\"float32\",this.pv.length));for(var o=e.lastIndex,a=o,c=this.keyframes.length-1,l=!0,f,p,m;l;){if(f=this.keyframes[a],p=this.keyframes[a+1],a===c-1&&t>=p.t-n){f.h&&(f=p),o=0;break}if(p.t-n>t){o=a;break}a<c-1?a+=1:(o=0,l=!1)}m=this.keyframesMetadata[a]||{};var g,y,A,T,R,K,O=p.t-n,V=f.t-n,D;if(f.to){m.bezierData||(m.bezierData=bez.buildBezierData(f.s,p.s||f.e,f.to,f.ti));var G=m.bezierData;if(t>=O||t<V){var ee=t>=O?G.points.length-1:0;for(y=G.points[ee].point.length,g=0;g<y;g+=1)r[g]=G.points[ee].point[g]}else{m.__fnct?K=m.__fnct:(K=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,m.__fnct=K),A=K((t-V)/(O-V));var J=G.segmentLength*A,le,se=e.lastFrame<t&&e._lastKeyframeIndex===a?e._lastAddedLength:0;for(R=e.lastFrame<t&&e._lastKeyframeIndex===a?e._lastPoint:0,l=!0,T=G.points.length;l;){if(se+=G.points[R].partialLength,J===0||A===0||R===G.points.length-1){for(y=G.points[R].point.length,g=0;g<y;g+=1)r[g]=G.points[R].point[g];break}else if(J>=se&&J<se+G.points[R+1].partialLength){for(le=(J-se)/G.points[R+1].partialLength,y=G.points[R].point.length,g=0;g<y;g+=1)r[g]=G.points[R].point[g]+(G.points[R+1].point[g]-G.points[R].point[g])*le;break}R<T-1?R+=1:l=!1}e._lastPoint=R,e._lastAddedLength=se-G.points[R].partialLength,e._lastKeyframeIndex=a}}else{var te,S,_,P,z;if(c=f.s.length,D=p.s||f.e,this.sh&&f.h!==1)if(t>=O)r[0]=D[0],r[1]=D[1],r[2]=D[2];else if(t<=V)r[0]=f.s[0],r[1]=f.s[1],r[2]=f.s[2];else{var Y=createQuaternion(f.s),L=createQuaternion(D),U=(t-V)/(O-V);quaternionToEuler(r,slerp(Y,L,U))}else for(a=0;a<c;a+=1)f.h!==1&&(t>=O?A=1:t<V?A=0:(f.o.x.constructor===Array?(m.__fnct||(m.__fnct=[]),m.__fnct[a]?K=m.__fnct[a]:(te=f.o.x[a]===void 0?f.o.x[0]:f.o.x[a],S=f.o.y[a]===void 0?f.o.y[0]:f.o.y[a],_=f.i.x[a]===void 0?f.i.x[0]:f.i.x[a],P=f.i.y[a]===void 0?f.i.y[0]:f.i.y[a],K=BezierFactory.getBezierEasing(te,S,_,P).get,m.__fnct[a]=K)):m.__fnct?K=m.__fnct:(te=f.o.x,S=f.o.y,_=f.i.x,P=f.i.y,K=BezierFactory.getBezierEasing(te,S,_,P).get,f.keyframeMetadata=K),A=K((t-V)/(O-V)))),D=p.s||f.e,z=f.h===1?f.s[a]:f.s[a]+(D[a]-f.s[a])*A,this.propType===\"multidimensional\"?r[a]=z:r=z}return e.lastIndex=o,r}function slerp(t,e,n){var r=[],o=t[0],a=t[1],c=t[2],l=t[3],f=e[0],p=e[1],m=e[2],g=e[3],y,A,T,R,K;return A=o*f+a*p+c*m+l*g,A<0&&(A=-A,f=-f,p=-p,m=-m,g=-g),1-A>1e-6?(y=Math.acos(A),T=Math.sin(y),R=Math.sin((1-n)*y)/T,K=Math.sin(n*y)/T):(R=1-n,K=n),r[0]=R*o+K*f,r[1]=R*a+K*p,r[2]=R*c+K*m,r[3]=R*l+K*g,r}function quaternionToEuler(t,e){var n=e[0],r=e[1],o=e[2],a=e[3],c=Math.atan2(2*r*a-2*n*o,1-2*r*r-2*o*o),l=Math.asin(2*n*r+2*o*a),f=Math.atan2(2*n*a-2*r*o,1-2*n*n-2*o*o);t[0]=c/degToRads,t[1]=l/degToRads,t[2]=f/degToRads}function createQuaternion(t){var e=t[0]*degToRads,n=t[1]*degToRads,r=t[2]*degToRads,o=Math.cos(e/2),a=Math.cos(n/2),c=Math.cos(r/2),l=Math.sin(e/2),f=Math.sin(n/2),p=Math.sin(r/2),m=o*a*c-l*f*p,g=l*f*c+o*a*p,y=l*a*c+o*f*p,A=o*f*c-l*a*p;return[g,y,A,m]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType===\"unidimensional\")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)e=t[n]*this.mult,mathAbs(this.v[n]-e)>1e-5&&(this.v[n]=e,this._mdf=!0),n+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,n,r){this.propType=\"unidimensional\",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,n,r){this.propType=\"multidimensional\",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,a=e.k.length;for(this.v=createTypedArray(\"float32\",a),this.pv=createTypedArray(\"float32\",a),this.vel=createTypedArray(\"float32\",a),o=0;o<a;o+=1)this.v[o]=e.k[o]*this.mult,this.pv[o]=e.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,n,r){this.propType=\"unidimensional\",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=n||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,n,r){this.propType=\"multidimensional\";var o,a=e.k.length,c,l,f,p;for(o=0;o<a-1;o+=1)e.k[o].to&&e.k[o].s&&e.k[o+1]&&e.k[o+1].s&&(c=e.k[o].s,l=e.k[o+1].s,f=e.k[o].to,p=e.k[o].ti,(c.length===2&&!(c[0]===l[0]&&c[1]===l[1])&&bez.pointOnLine2D(c[0],c[1],l[0],l[1],c[0]+f[0],c[1]+f[1])&&bez.pointOnLine2D(c[0],c[1],l[0],l[1],l[0]+p[0],l[1]+p[1])||c.length===3&&!(c[0]===l[0]&&c[1]===l[1]&&c[2]===l[2])&&bez.pointOnLine3D(c[0],c[1],c[2],l[0],l[1],l[2],c[0]+f[0],c[1]+f[1],c[2]+f[2])&&bez.pointOnLine3D(c[0],c[1],c[2],l[0],l[1],l[2],l[0]+p[0],l[1]+p[1],l[2]+p[2]))&&(e.k[o].to=null,e.k[o].ti=null),c[0]===l[0]&&c[1]===l[1]&&f[0]===0&&f[1]===0&&p[0]===0&&p[1]===0&&(c.length===2||c[2]===l[2]&&f[2]===0&&p[2]===0)&&(e.k[o].to=null,e.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var m=e.k[0].s.length;for(this.v=createTypedArray(\"float32\",m),this.pv=createTypedArray(\"float32\",m),o=0;o<m;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray(\"float32\",m)},this.addEffect=addEffect}var PropertyFactory=(function(){function t(n,r,o,a,c){r.sid&&(r=n.globalData.slotManager.getProp(r));var l;if(!r.k.length)l=new ValueProperty(n,r,a,c);else if(typeof r.k[0]==\"number\")l=new MultiDimensionalProperty(n,r,a,c);else switch(o){case 0:l=new KeyframedValueProperty(n,r,a,c);break;case 1:l=new KeyframedMultidimensionalProperty(n,r,a,c);break;default:break}return l.effectsSequence.length&&c.addDynamicProperty(l),l}var e={getProp:t};return e})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,n=this.dynamicProperties.length;for(e=0;e<n;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function t(){return createTypedArray(\"float32\",2)}return poolFactory(8,t)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,n,r,o){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case\"v\":a=this.v;break;case\"i\":a=this.i;break;case\"o\":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!o)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,r,o,a,c,l){this.setXYAt(t,e,\"v\",c,l),this.setXYAt(n,r,\"o\",c,l),this.setXYAt(o,a,\"i\",c,l)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var a=this._length-1,c=this._length,l;for(l=o;l<c;l+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],n[a][0],n[a][1],l,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function t(){return new ShapePath}function e(o){var a=o._length,c;for(c=0;c<a;c+=1)pointPool.release(o.v[c]),pointPool.release(o.i[c]),pointPool.release(o.o[c]),o.v[c]=null,o.i[c]=null,o.o[c]=null;o._length=0,o.c=!1}function n(o){var a=r.newElement(),c,l=o._length===void 0?o.v.length:o._length;for(a.setLength(l),a.c=o.c,c=0;c<l;c+=1)a.setTripleAt(o.v[c][0],o.v[c][1],o.o[c][0],o.o[c][1],o.i[c][0],o.i[c][1],c);return a}var r=poolFactory(4,t,e);return r.clone=n,r})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(function(){var t={newShapeCollection:o,release:a},e=0,n=4,r=createSizedArray(n);function o(){var c;return e?(e-=1,c=r[e]):c=new ShapeCollection,c}function a(c){var l,f=c._length;for(l=0;l<f;l+=1)shapePool.release(c.shapes[l]);c._length=0,e===n&&(r=pooling.double(r),n*=2),r[e]=c,e+=1}return t})(),ShapePropertyFactory=(function(){var t=-999999;function e(O,V,D){var G=D.lastIndex,ee,J,le,se,te,S,_,P,z,Y=this.keyframes;if(O<Y[0].t-this.offsetTime)ee=Y[0].s[0],le=!0,G=0;else if(O>=Y[Y.length-1].t-this.offsetTime)ee=Y[Y.length-1].s?Y[Y.length-1].s[0]:Y[Y.length-2].e[0],le=!0;else{for(var L=G,U=Y.length-1,W=!0,w,I,ye;W&&(w=Y[L],I=Y[L+1],!(I.t-this.offsetTime>O));)L<U-1?L+=1:W=!1;if(ye=this.keyframesMetadata[L]||{},le=w.h===1,G=L,!le){if(O>=I.t-this.offsetTime)P=1;else if(O<w.t-this.offsetTime)P=0;else{var ne;ye.__fnct?ne=ye.__fnct:(ne=BezierFactory.getBezierEasing(w.o.x,w.o.y,w.i.x,w.i.y).get,ye.__fnct=ne),P=ne((O-(w.t-this.offsetTime))/(I.t-this.offsetTime-(w.t-this.offsetTime)))}J=I.s?I.s[0]:w.e[0]}ee=w.s[0]}for(S=V._length,_=ee.i[0].length,D.lastIndex=G,se=0;se<S;se+=1)for(te=0;te<_;te+=1)z=le?ee.i[se][te]:ee.i[se][te]+(J.i[se][te]-ee.i[se][te])*P,V.i[se][te]=z,z=le?ee.o[se][te]:ee.o[se][te]+(J.o[se][te]-ee.o[se][te])*P,V.o[se][te]=z,z=le?ee.v[se][te]:ee.v[se][te]+(J.v[se][te]-ee.v[se][te])*P,V.v[se][te]=z}function n(){var O=this.comp.renderedFrame-this.offsetTime,V=this.keyframes[0].t-this.offsetTime,D=this.keyframes[this.keyframes.length-1].t-this.offsetTime,G=this._caching.lastFrame;return G!==t&&(G<V&&O<V||G>D&&O>D)||(this._caching.lastIndex=G<O?this._caching.lastIndex:0,this.interpolateShape(O,this.pv,this._caching)),this._caching.lastFrame=O,this.pv}function r(){this.paths=this.localShapeCollection}function o(O,V){if(O._length!==V._length||O.c!==V.c)return!1;var D,G=O._length;for(D=0;D<G;D+=1)if(O.v[D][0]!==V.v[D][0]||O.v[D][1]!==V.v[D][1]||O.o[D][0]!==V.o[D][0]||O.o[D][1]!==V.o[D][1]||O.i[D][0]!==V.i[D][0]||O.i[D][1]!==V.i[D][1])return!1;return!0}function a(O){o(this.v,O)||(this.v=shapePool.clone(O),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function c(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var O;this.kf?O=this.pv:this.data.ks?O=this.data.ks.k:O=this.data.pt.k;var V,D=this.effectsSequence.length;for(V=0;V<D;V+=1)O=this.effectsSequence[V](O);this.setVValue(O),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(O,V,D){this.propType=\"shape\",this.comp=O.comp,this.container=O,this.elem=O,this.data=V,this.k=!1,this.kf=!1,this._mdf=!1;var G=D===3?V.pt.k:V.ks.k;this.v=shapePool.clone(G),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function f(O){this.effectsSequence.push(O),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=e,l.prototype.getValue=c,l.prototype.setVValue=a,l.prototype.addEffect=f;function p(O,V,D){this.propType=\"shape\",this.comp=O.comp,this.elem=O,this.container=O,this.offsetTime=O.data.st,this.keyframes=D===3?V.pt.k:V.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var G=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,G),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}p.prototype.getValue=c,p.prototype.interpolateShape=e,p.prototype.setVValue=a,p.prototype.addEffect=f;var m=(function(){var O=roundCorner;function V(D,G){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=G.d,this.elem=D,this.comp=D.comp,this.frameId=-1,this.initDynamicPropertyContainer(D),this.p=PropertyFactory.getProp(D,G.p,1,0,this),this.s=PropertyFactory.getProp(D,G.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return V.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var G=this.p.v[0],ee=this.p.v[1],J=this.s.v[0]/2,le=this.s.v[1]/2,se=this.d!==3,te=this.v;te.v[0][0]=G,te.v[0][1]=ee-le,te.v[1][0]=se?G+J:G-J,te.v[1][1]=ee,te.v[2][0]=G,te.v[2][1]=ee+le,te.v[3][0]=se?G-J:G+J,te.v[3][1]=ee,te.i[0][0]=se?G-J*O:G+J*O,te.i[0][1]=ee-le,te.i[1][0]=se?G+J:G-J,te.i[1][1]=ee-le*O,te.i[2][0]=se?G+J*O:G-J*O,te.i[2][1]=ee+le,te.i[3][0]=se?G-J:G+J,te.i[3][1]=ee+le*O,te.o[0][0]=se?G+J*O:G-J*O,te.o[0][1]=ee-le,te.o[1][0]=se?G+J:G-J,te.o[1][1]=ee+le*O,te.o[2][0]=se?G-J*O:G+J*O,te.o[2][1]=ee+le,te.o[3][0]=se?G-J:G+J,te.o[3][1]=ee-le*O}},extendPrototype([DynamicPropertyContainer],V),V})(),g=(function(){function O(V,D){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=V,this.comp=V.comp,this.data=D,this.frameId=-1,this.d=D.d,this.initDynamicPropertyContainer(V),D.sy===1?(this.ir=PropertyFactory.getProp(V,D.ir,0,0,this),this.is=PropertyFactory.getProp(V,D.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(V,D.pt,0,0,this),this.p=PropertyFactory.getProp(V,D.p,1,0,this),this.r=PropertyFactory.getProp(V,D.r,0,degToRads,this),this.or=PropertyFactory.getProp(V,D.or,0,0,this),this.os=PropertyFactory.getProp(V,D.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return O.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var D=Math.floor(this.pt.v)*2,G=Math.PI*2/D,ee=!0,J=this.or.v,le=this.ir.v,se=this.os.v,te=this.is.v,S=2*Math.PI*J/(D*2),_=2*Math.PI*le/(D*2),P,z,Y,L,U=-Math.PI/2;U+=this.r.v;var W=this.data.d===3?-1:1;for(this.v._length=0,P=0;P<D;P+=1){z=ee?J:le,Y=ee?se:te,L=ee?S:_;var w=z*Math.cos(U),I=z*Math.sin(U),ye=w===0&&I===0?0:I/Math.sqrt(w*w+I*I),ne=w===0&&I===0?0:-w/Math.sqrt(w*w+I*I);w+=+this.p.v[0],I+=+this.p.v[1],this.v.setTripleAt(w,I,w-ye*L*Y*W,I-ne*L*Y*W,w+ye*L*Y*W,I+ne*L*Y*W,P,!0),ee=!ee,U+=G*W}},convertPolygonToPath:function(){var D=Math.floor(this.pt.v),G=Math.PI*2/D,ee=this.or.v,J=this.os.v,le=2*Math.PI*ee/(D*4),se,te=-Math.PI*.5,S=this.data.d===3?-1:1;for(te+=this.r.v,this.v._length=0,se=0;se<D;se+=1){var _=ee*Math.cos(te),P=ee*Math.sin(te),z=_===0&&P===0?0:P/Math.sqrt(_*_+P*P),Y=_===0&&P===0?0:-_/Math.sqrt(_*_+P*P);_+=+this.p.v[0],P+=+this.p.v[1],this.v.setTripleAt(_,P,_-z*le*J*S,P-Y*le*J*S,_+z*le*J*S,P+Y*le*J*S,se,!0),te+=G*S}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],O),O})(),y=(function(){function O(V,D){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=V,this.comp=V.comp,this.frameId=-1,this.d=D.d,this.initDynamicPropertyContainer(V),this.p=PropertyFactory.getProp(V,D.p,1,0,this),this.s=PropertyFactory.getProp(V,D.s,1,0,this),this.r=PropertyFactory.getProp(V,D.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return O.prototype={convertRectToPath:function(){var D=this.p.v[0],G=this.p.v[1],ee=this.s.v[0]/2,J=this.s.v[1]/2,le=bmMin(ee,J,this.r.v),se=le*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(D+ee,G-J+le,D+ee,G-J+le,D+ee,G-J+se,0,!0),this.v.setTripleAt(D+ee,G+J-le,D+ee,G+J-se,D+ee,G+J-le,1,!0),le!==0?(this.v.setTripleAt(D+ee-le,G+J,D+ee-le,G+J,D+ee-se,G+J,2,!0),this.v.setTripleAt(D-ee+le,G+J,D-ee+se,G+J,D-ee+le,G+J,3,!0),this.v.setTripleAt(D-ee,G+J-le,D-ee,G+J-le,D-ee,G+J-se,4,!0),this.v.setTripleAt(D-ee,G-J+le,D-ee,G-J+se,D-ee,G-J+le,5,!0),this.v.setTripleAt(D-ee+le,G-J,D-ee+le,G-J,D-ee+se,G-J,6,!0),this.v.setTripleAt(D+ee-le,G-J,D+ee-se,G-J,D+ee-le,G-J,7,!0)):(this.v.setTripleAt(D-ee,G+J,D-ee+se,G+J,D-ee,G+J,2),this.v.setTripleAt(D-ee,G-J,D-ee,G-J+se,D-ee,G-J,3))):(this.v.setTripleAt(D+ee,G-J+le,D+ee,G-J+se,D+ee,G-J+le,0,!0),le!==0?(this.v.setTripleAt(D+ee-le,G-J,D+ee-le,G-J,D+ee-se,G-J,1,!0),this.v.setTripleAt(D-ee+le,G-J,D-ee+se,G-J,D-ee+le,G-J,2,!0),this.v.setTripleAt(D-ee,G-J+le,D-ee,G-J+le,D-ee,G-J+se,3,!0),this.v.setTripleAt(D-ee,G+J-le,D-ee,G+J-se,D-ee,G+J-le,4,!0),this.v.setTripleAt(D-ee+le,G+J,D-ee+le,G+J,D-ee+se,G+J,5,!0),this.v.setTripleAt(D+ee-le,G+J,D+ee-se,G+J,D+ee-le,G+J,6,!0),this.v.setTripleAt(D+ee,G+J-le,D+ee,G+J-le,D+ee,G+J-se,7,!0)):(this.v.setTripleAt(D-ee,G-J,D-ee+se,G-J,D-ee,G-J,1,!0),this.v.setTripleAt(D-ee,G+J,D-ee,G+J-se,D-ee,G+J,2,!0),this.v.setTripleAt(D+ee,G+J,D+ee-se,G+J,D+ee,G+J,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],O),O})();function A(O,V,D){var G;if(D===3||D===4){var ee=D===3?V.pt:V.ks,J=ee.k;J.length?G=new p(O,V,D):G=new l(O,V,D)}else D===5?G=new y(O,V):D===6?G=new m(O,V):D===7&&(G=new g(O,V));return G.k&&O.addDynamicProperty(G),G}function T(){return l}function R(){return p}var K={};return K.getShapeProp=A,K.getConstructorFunction=T,K.getKeyframedConstructorFunction=R,K})();var Matrix=(function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(w){if(w===0)return this;var I=t(w),ye=e(w);return this._t(I,-ye,0,0,ye,I,0,0,0,0,1,0,0,0,0,1)}function c(w){if(w===0)return this;var I=t(w),ye=e(w);return this._t(1,0,0,0,0,I,-ye,0,0,ye,I,0,0,0,0,1)}function l(w){if(w===0)return this;var I=t(w),ye=e(w);return this._t(I,0,ye,0,0,1,0,0,-ye,0,I,0,0,0,0,1)}function f(w){if(w===0)return this;var I=t(w),ye=e(w);return this._t(I,-ye,0,0,ye,I,0,0,0,0,1,0,0,0,0,1)}function p(w,I){return this._t(1,I,w,1,0,0)}function m(w,I){return this.shear(n(w),n(I))}function g(w,I){var ye=t(I),ne=e(I);return this._t(ye,ne,0,0,-ne,ye,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(w),1,0,0,0,0,1,0,0,0,0,1)._t(ye,-ne,0,0,ne,ye,0,0,0,0,1,0,0,0,0,1)}function y(w,I,ye){return!ye&&ye!==0&&(ye=1),w===1&&I===1&&ye===1?this:this._t(w,0,0,0,0,I,0,0,0,0,ye,0,0,0,0,1)}function A(w,I,ye,ne,Q,ie,ue,q,Ee,we,_e,B,k,C,Z,X){return this.props[0]=w,this.props[1]=I,this.props[2]=ye,this.props[3]=ne,this.props[4]=Q,this.props[5]=ie,this.props[6]=ue,this.props[7]=q,this.props[8]=Ee,this.props[9]=we,this.props[10]=_e,this.props[11]=B,this.props[12]=k,this.props[13]=C,this.props[14]=Z,this.props[15]=X,this}function T(w,I,ye){return ye=ye||0,w!==0||I!==0||ye!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,w,I,ye,1):this}function R(w,I,ye,ne,Q,ie,ue,q,Ee,we,_e,B,k,C,Z,X){var ae=this.props;if(w===1&&I===0&&ye===0&&ne===0&&Q===0&&ie===1&&ue===0&&q===0&&Ee===0&&we===0&&_e===1&&B===0)return ae[12]=ae[12]*w+ae[15]*k,ae[13]=ae[13]*ie+ae[15]*C,ae[14]=ae[14]*_e+ae[15]*Z,ae[15]*=X,this._identityCalculated=!1,this;var de=ae[0],me=ae[1],Pe=ae[2],De=ae[3],Re=ae[4],qe=ae[5],et=ae[6],ot=ae[7],Qe=ae[8],xt=ae[9],Wt=ae[10],Vt=ae[11],Bt=ae[12],nn=ae[13],Yt=ae[14],hn=ae[15];return ae[0]=de*w+me*Q+Pe*Ee+De*k,ae[1]=de*I+me*ie+Pe*we+De*C,ae[2]=de*ye+me*ue+Pe*_e+De*Z,ae[3]=de*ne+me*q+Pe*B+De*X,ae[4]=Re*w+qe*Q+et*Ee+ot*k,ae[5]=Re*I+qe*ie+et*we+ot*C,ae[6]=Re*ye+qe*ue+et*_e+ot*Z,ae[7]=Re*ne+qe*q+et*B+ot*X,ae[8]=Qe*w+xt*Q+Wt*Ee+Vt*k,ae[9]=Qe*I+xt*ie+Wt*we+Vt*C,ae[10]=Qe*ye+xt*ue+Wt*_e+Vt*Z,ae[11]=Qe*ne+xt*q+Wt*B+Vt*X,ae[12]=Bt*w+nn*Q+Yt*Ee+hn*k,ae[13]=Bt*I+nn*ie+Yt*we+hn*C,ae[14]=Bt*ye+nn*ue+Yt*_e+hn*Z,ae[15]=Bt*ne+nn*q+Yt*B+hn*X,this._identityCalculated=!1,this}function K(w){var I=w.props;return this.transform(I[0],I[1],I[2],I[3],I[4],I[5],I[6],I[7],I[8],I[9],I[10],I[11],I[12],I[13],I[14],I[15])}function O(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function V(w){for(var I=0;I<16;){if(w.props[I]!==this.props[I])return!1;I+=1}return!0}function D(w){var I;for(I=0;I<16;I+=1)w.props[I]=this.props[I];return w}function G(w){var I;for(I=0;I<16;I+=1)this.props[I]=w[I]}function ee(w,I,ye){return{x:w*this.props[0]+I*this.props[4]+ye*this.props[8]+this.props[12],y:w*this.props[1]+I*this.props[5]+ye*this.props[9]+this.props[13],z:w*this.props[2]+I*this.props[6]+ye*this.props[10]+this.props[14]}}function J(w,I,ye){return w*this.props[0]+I*this.props[4]+ye*this.props[8]+this.props[12]}function le(w,I,ye){return w*this.props[1]+I*this.props[5]+ye*this.props[9]+this.props[13]}function se(w,I,ye){return w*this.props[2]+I*this.props[6]+ye*this.props[10]+this.props[14]}function te(){var w=this.props[0]*this.props[5]-this.props[1]*this.props[4],I=this.props[5]/w,ye=-this.props[1]/w,ne=-this.props[4]/w,Q=this.props[0]/w,ie=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/w,ue=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/w,q=new Matrix;return q.props[0]=I,q.props[1]=ye,q.props[4]=ne,q.props[5]=Q,q.props[12]=ie,q.props[13]=ue,q}function S(w){var I=this.getInverseMatrix();return I.applyToPointArray(w[0],w[1],w[2]||0)}function _(w){var I,ye=w.length,ne=[];for(I=0;I<ye;I+=1)ne[I]=S(w[I]);return ne}function P(w,I,ye){var ne=createTypedArray(\"float32\",6);if(this.isIdentity())ne[0]=w[0],ne[1]=w[1],ne[2]=I[0],ne[3]=I[1],ne[4]=ye[0],ne[5]=ye[1];else{var Q=this.props[0],ie=this.props[1],ue=this.props[4],q=this.props[5],Ee=this.props[12],we=this.props[13];ne[0]=w[0]*Q+w[1]*ue+Ee,ne[1]=w[0]*ie+w[1]*q+we,ne[2]=I[0]*Q+I[1]*ue+Ee,ne[3]=I[0]*ie+I[1]*q+we,ne[4]=ye[0]*Q+ye[1]*ue+Ee,ne[5]=ye[0]*ie+ye[1]*q+we}return ne}function z(w,I,ye){var ne;return this.isIdentity()?ne=[w,I,ye]:ne=[w*this.props[0]+I*this.props[4]+ye*this.props[8]+this.props[12],w*this.props[1]+I*this.props[5]+ye*this.props[9]+this.props[13],w*this.props[2]+I*this.props[6]+ye*this.props[10]+this.props[14]],ne}function Y(w,I){if(this.isIdentity())return w+\",\"+I;var ye=this.props;return Math.round((w*ye[0]+I*ye[4]+ye[12])*100)/100+\",\"+Math.round((w*ye[1]+I*ye[5]+ye[13])*100)/100}function L(){for(var w=0,I=this.props,ye=\"matrix3d(\",ne=1e4;w<16;)ye+=r(I[w]*ne)/ne,ye+=w===15?\")\":\",\",w+=1;return ye}function U(w){var I=1e4;return w<1e-6&&w>0||w>-1e-6&&w<0?r(w*I)/I:w}function W(){var w=this.props,I=U(w[0]),ye=U(w[1]),ne=U(w[4]),Q=U(w[5]),ie=U(w[12]),ue=U(w[13]);return\"matrix(\"+I+\",\"+ye+\",\"+ne+\",\"+Q+\",\"+ie+\",\"+ue+\")\"}return function(){this.reset=o,this.rotate=a,this.rotateX=c,this.rotateY=l,this.rotateZ=f,this.skew=m,this.skewFromAxis=g,this.shear=p,this.scale=y,this.setTransform=A,this.translate=T,this.transform=R,this.multiply=K,this.applyToPoint=ee,this.applyToX=J,this.applyToY=le,this.applyToZ=se,this.applyToPointArray=z,this.applyToTriplePoints=P,this.applyToPointStringified=Y,this.toCSS=L,this.to2dCSS=W,this.clone=D,this.cloneFromProps=G,this.equals=V,this.inversePoints=_,this.inversePoint=S,this.getInverseMatrix=te,this._t=this.transform,this.isIdentity=O,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray(\"float32\",16),this.reset()}})();function _typeof$3(t){\"@babel/helpers - typeof\";return _typeof$3=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$3(t)}var lottie={},standalone=\"__[STANDALONE]__\",animationData=\"__[ANIMATIONDATA]__\",renderer=\"\";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t==\"string\")switch(t){case\"high\":setDefaultCurveSegments(200);break;default:case\"medium\":setDefaultCurveSegments(50);break;case\"low\":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<\"u\"}function installPlugin(t,e){t===\"expressions\"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case\"propertyFactory\":return PropertyFactory;case\"shapePropertyFactory\":return ShapePropertyFactory;case\"matrix\":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version=\"5.13.0\";function checkReady(){document.readyState===\"complete\"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split(\"&\"),n=0;n<e.length;n+=1){var r=e[n].split(\"=\");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}var queryString=\"\";if(standalone){var scripts=document.getElementsByTagName(\"script\"),index=scripts.length-1,myScript=scripts[index]||{src:\"\"};queryString=myScript.src?myScript.src.replace(/^[^\\\\?]+\\\\??/,\"\"):\"\",renderer=getQueryVariable(\"renderer\")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>\"u\"?\"undefined\":_typeof$3(exports))===\"object\"&&typeof module<\"u\")&&!(typeof define==\"function\"&&define.amd)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(function(){var t={},e={};t.registerModifier=n,t.getModifier=r;function n(o,a){e[o]||(e[o]=a)}function r(o,a,c){return new e[o](a,c)}return t})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,n,r,o){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var c=[],l,f=a.length,p;for(l=0;l<f;l+=1)if(p=a[l],!(p.e*o<r||p.s*o>r+n)){var m,g;p.s*o<=r?m=0:m=(p.s*o-r)/n,p.e*o>=r+n?g=1:g=(p.e*o-r)/n,c.push([m,g])}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),this.s.v>1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?n=1+r:this.e.v<0?n=0+r:n=this.e.v+r,e>n){var o=e;e=n,n=o}e=Math.round(e*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,c,l=this.shapes.length,f,p,m,g,y,A=0;if(n===e)for(c=0;c<l;c+=1)this.shapes[c].localShapeCollection.releaseShapes(),this.shapes[c].shape._mdf=!0,this.shapes[c].shape.paths=this.shapes[c].localShapeCollection,this._mdf&&(this.shapes[c].pathsData.length=0);else if(n===1&&e===0||n===0&&e===1){if(this._mdf)for(c=0;c<l;c+=1)this.shapes[c].pathsData.length=0,this.shapes[c].shape._mdf=!0}else{var T=[],R,K;for(c=0;c<l;c+=1)if(R=this.shapes[c],!R.shape._mdf&&!this._mdf&&!t&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(a=R.shape.paths,p=a._length,y=0,!R.shape._mdf&&R.pathsData.length)y=R.totalShapeLength;else{for(m=this.releasePathsData(R.pathsData),f=0;f<p;f+=1)g=bez.getSegmentsLength(a.shapes[f]),m.push(g),y+=g.totalLength;R.totalShapeLength=y,R.pathsData=m}A+=y,R.shape._mdf=!0}var O=e,V=n,D=0,G;for(c=l-1;c>=0;c-=1)if(R=this.shapes[c],R.shape._mdf){for(K=R.localShapeCollection,K.releaseShapes(),this.m===2&&l>1?(G=this.calculateShapeEdges(e,n,R.totalShapeLength,D,A),D+=R.totalShapeLength):G=[[O,V]],p=G.length,f=0;f<p;f+=1){O=G[f][0],V=G[f][1],T.length=0,V<=1?T.push({s:R.totalShapeLength*O,e:R.totalShapeLength*V}):O>=1?T.push({s:R.totalShapeLength*(O-1),e:R.totalShapeLength*(V-1)}):(T.push({s:R.totalShapeLength*O,e:R.totalShapeLength}),T.push({s:0,e:R.totalShapeLength*(V-1)}));var ee=this.addShapes(R,T[0]);if(T[0].s!==T[0].e){if(T.length>1){var J=R.shape.paths.shapes[R.shape.paths._length-1];if(J.c){var le=ee.pop();this.addPaths(ee,K),ee=this.addShapes(R,T[1],le)}else this.addPaths(ee,K),ee=this.addShapes(R,T[1])}this.addPaths(ee,K)}}R.shape.paths=K}}},TrimModifier.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},TrimModifier.prototype.addSegment=function(t,e,n,r,o,a,c){o.setXYAt(e[0],e[1],\"o\",a),o.setXYAt(n[0],n[1],\"i\",a+1),c&&o.setXYAt(t[0],t[1],\"v\",a),o.setXYAt(r[0],r[1],\"v\",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],\"o\",n),e.setXYAt(t[2],t[6],\"i\",n+1),r&&e.setXYAt(t[0],t[4],\"v\",n),e.setXYAt(t[3],t[7],\"v\",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var r=t.pathsData,o=t.shape.paths.shapes,a,c=t.shape.paths._length,l,f,p=0,m,g,y,A,T=[],R,K=!0;for(n?(g=n._length,R=n._length):(n=shapePool.newElement(),g=0,R=0),T.push(n),a=0;a<c;a+=1){for(y=r[a].lengths,n.c=o[a].c,f=o[a].c?y.length:y.length+1,l=1;l<f;l+=1)if(m=y[l-1],p+m.addedLength<e.s)p+=m.addedLength,n.c=!1;else if(p>e.e){n.c=!1;break}else e.s<=p&&e.e>=p+m.addedLength?(this.addSegment(o[a].v[l-1],o[a].o[l-1],o[a].i[l],o[a].v[l],n,g,K),K=!1):(A=bez.getNewSegment(o[a].v[l-1],o[a].v[l],o[a].o[l-1],o[a].i[l],(e.s-p)/m.addedLength,(e.e-p)/m.addedLength,y[l-1]),this.addSegmentFromArray(A,n,g,K),K=!1,n.c=!1),p+=m.addedLength,g+=1;if(o[a].c&&y.length){if(m=y[l-1],p<=e.e){var O=y[l-1].addedLength;e.s<=p&&e.e>=p+O?(this.addSegment(o[a].v[l-1],o[a].o[l-1],o[a].i[0],o[a].v[0],n,g,K),K=!1):(A=bez.getNewSegment(o[a].v[l-1],o[a].v[0],o[a].o[l-1],o[a].i[0],(e.s-p)/O,(e.e-p)/O,y[l-1]),this.addSegmentFromArray(A,n,g,K),K=!1,n.c=!1)}else n.c=!1;p+=m.addedLength,g+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],\"i\",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],\"o\",n._length-1)),p>e.e)break;a<c-1&&(n=shapePool.newElement(),K=!0,T.push(n),g=0)}return T};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var n=e/100,r=[0,0],o=t._length,a=0;for(a=0;a<o;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=o,r[1]/=o;var c=shapePool.newElement();c.c=t.c;var l,f,p,m,g,y;for(a=0;a<o;a+=1)l=t.v[a][0]+(r[0]-t.v[a][0])*n,f=t.v[a][1]+(r[1]-t.v[a][1])*n,p=t.o[a][0]+(r[0]-t.o[a][0])*-n,m=t.o[a][1]+(r[1]-t.o[a][1])*-n,g=t.i[a][0]+(r[0]-t.i[a][0])*-n,y=t.i[a][1]+(r[1]-t.i[a][1])*-n,c.setTripleAt(l,f,p,m,g,y,a);return c},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,n,r=this.shapes.length,o,a,c=this.amount.v;if(c!==0){var l,f;for(n=0;n<r;n+=1){if(l=this.shapes[n],f=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),l.shape._mdf=!0,e=l.shape.paths.shapes,a=l.shape.paths._length,o=0;o<a;o+=1)f.addShape(this.processPath(e[o],c));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var t=[0,0];function e(f){var p=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||p,this.a&&f.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&f.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&f.skewFromAxis(-this.sk.v,this.sa.v),this.r?f.rotate(-this.r.v):f.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?f.translate(this.px.v,this.py.v,-this.pz.v):f.translate(this.px.v,this.py.v,0):f.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(f){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||f){var p;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var m,g;if(p=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(m=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/p,0),g=this.p.getValueAtTime(this.p.keyframes[0].t/p,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(m=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/p,0),g=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(m=this.p.pv,g=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){m=[],g=[];var y=this.px,A=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(m[0]=y.getValueAtTime((y.keyframes[0].t+.01)/p,0),m[1]=A.getValueAtTime((A.keyframes[0].t+.01)/p,0),g[0]=y.getValueAtTime(y.keyframes[0].t/p,0),g[1]=A.getValueAtTime(A.keyframes[0].t/p,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(m[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/p,0),m[1]=A.getValueAtTime(A.keyframes[A.keyframes.length-1].t/p,0),g[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/p,0),g[1]=A.getValueAtTime((A.keyframes[A.keyframes.length-1].t-.01)/p,0)):(m=[y.pv,A.pv],g[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/p,y.offsetTime),g[1]=A.getValueAtTime((A._caching.lastFrame+A.offsetTime-.01)/p,A.offsetTime))}else g=t,m=g;this.v.rotate(-Math.atan2(m[1]-g[1],m[0]-g[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function o(){}function a(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function c(f,p,m){if(this.elem=f,this.frameId=-1,this.propType=\"transform\",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(m||f),p.p&&p.p.s?(this.px=PropertyFactory.getProp(f,p.p.x,0,0,this),this.py=PropertyFactory.getProp(f,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(f,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(f,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(f,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(f,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(f,p.rz,0,degToRads,this),p.or.k[0].ti){var g,y=p.or.k.length;for(g=0;g<y;g+=1)p.or.k[g].to=null,p.or.k[g].ti=null}this.or=PropertyFactory.getProp(f,p.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(f,p.r||{k:0},0,degToRads,this);p.sk&&(this.sk=PropertyFactory.getProp(f,p.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(f,p.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(f,p.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(f,p.s||{k:[100,100,100]},1,.01,this),p.o?this.o=PropertyFactory.getProp(f,p.o,0,.01,f):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}c.prototype={applyToMatrix:e,getValue:n,precalculateMatrix:r,autoOrient:o},extendPrototype([DynamicPropertyContainer],c),c.prototype.addDynamicProperty=a,c.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(f,p,m){return new c(f,p,m)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,n,r,o,a){var c=a?-1:1,l=r.s.v[0]+(1-r.s.v[0])*(1-o),f=r.s.v[1]+(1-r.s.v[1])*(1-o);t.translate(r.p.v[0]*c*o,r.p.v[1]*c*o,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*c*o),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/l:l,a?1/f:f),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,t[e].ty===\"gr\"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,t[n].ty===\"gr\"&&this.changeGroupRender(t[n].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,r,o,a,c=!1;if(this._mdf||t){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var f={it:this.cloneElements(this._elements),ty:\"gr\"};f.it.push({a:{a:0,ix:1,k:[0,0]},nm:\"Transform\",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:\"tr\"}),this.arr.splice(0,0,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),c=!0}a=0;var p;for(r=0;r<=this._groups.length-1;r+=1){if(p=a<l,this._groups[r]._render=p,this.changeGroupRender(this._groups[r].it,p),!p){var m=this.elemsData[r].it,g=m[m.length-1];g.transform.op.v!==0?(g.transform.op._mdf=!0,g.transform.op.v=0):g.transform.op._mdf=!1}a+=1}this._currentCopies=l;var y=this.o.v,A=y%1,T=y>0?Math.floor(y):Math.ceil(y),R=this.pMatrix.props,K=this.rMatrix.props,O=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var V=0;if(y>0){for(;V<T;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),V+=1;A&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,A,!1),V+=A)}else if(y<0){for(;V>T;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),V-=1;A&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-A,!0),V-=A)}r=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,a=this._currentCopies;for(var D,G;a;){if(e=this.elemsData[r].it,n=e[e.length-1].transform.mProps.v.props,G=n.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),V!==0){for((r!==0&&o===1||r!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15]),this.matrix.transform(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14],O[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),D=0;D<G;D+=1)n[D]=this.matrix.props[D];this.matrix.reset()}else for(this.matrix.reset(),D=0;D<G;D+=1)n[D]=this.matrix.props[D];V+=1,a-=1,r+=o}}else for(a=this._currentCopies,r=0,o=1;a;)e=this.elemsData[r].it,n=e[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,r+=o;return c},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var n=shapePool.newElement();n.c=t.c;var r,o=t._length,a,c,l,f,p,m,g=0,y,A,T,R,K,O;for(r=0;r<o;r+=1)a=t.v[r],l=t.o[r],c=t.i[r],a[0]===l[0]&&a[1]===l[1]&&a[0]===c[0]&&a[1]===c[1]?(r===0||r===o-1)&&!t.c?(n.setTripleAt(a[0],a[1],l[0],l[1],c[0],c[1],g),g+=1):(r===0?f=t.v[o-1]:f=t.v[r-1],p=Math.sqrt(Math.pow(a[0]-f[0],2)+Math.pow(a[1]-f[1],2)),m=p?Math.min(p/2,e)/p:0,K=a[0]+(f[0]-a[0])*m,y=K,O=a[1]-(a[1]-f[1])*m,A=O,T=y-(y-a[0])*roundCorner,R=A-(A-a[1])*roundCorner,n.setTripleAt(y,A,T,R,K,O,g),g+=1,r===o-1?f=t.v[0]:f=t.v[r+1],p=Math.sqrt(Math.pow(a[0]-f[0],2)+Math.pow(a[1]-f[1],2)),m=p?Math.min(p/2,e)/p:0,T=a[0]+(f[0]-a[0])*m,y=T,R=a[1]+(f[1]-a[1])*m,A=R,K=y-(y-a[0])*roundCorner,O=A-(A-a[1])*roundCorner,n.setTripleAt(y,A,T,R,K,O,g),g+=1):(n.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],g),g+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,n,r=this.shapes.length,o,a,c=this.rd.v;if(c!==0){var l,f;for(n=0;n<r;n+=1){if(l=this.shapes[n],f=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),l.shape._mdf=!0,e=l.shape.paths.shapes,a=l.shape.paths._length,o=0;o<a;o+=1)f.addShape(this.processPath(e[o],c));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(t,e){return Math.abs(t-e)*1e5<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,n){return t*(1-n)+e*n}function lerpPoint(t,e,n){return[lerp(t[0],e[0],n),lerp(t[1],e[1],n)]}function quadRoots(t,e,n){if(t===0)return[];var r=e*e-4*t*n;if(r<0)return[];var o=-e/(2*t);if(r===0)return[o];var a=Math.sqrt(r)/(2*t);return[o-a,o+a]}function polynomialCoefficients(t,e,n,r){return[-t+3*e-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,n,r,o){o&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),o&&pointEqual(n,r)&&(n=lerpPoint(t,r,2/3));var a=polynomialCoefficients(t[0],e[0],n[0],r[0]),c=polynomialCoefficients(t[1],e[1],n[1],r[1]);this.a=[a[0],c[0]],this.b=[a[1],c[1]],this.c=[a[2],c[2]],this.d=[a[3],c[3]],this.points=[t,e,n,r]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),n=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),o=lerpPoint(e,n,t),a=lerpPoint(n,r,t),c=lerpPoint(o,a,t);return[new PolynomialBezier(this.points[0],e,o,c,!0),new PolynomialBezier(c,a,r,this.points[3],!0)]};function extrema(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var o=r;r=n,n=o}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),c=0;c<a.length;c+=1)if(a[c]>0&&a[c]<1){var l=t.point(a[c])[e];l<n?n=l:l>r&&(r=l)}return{min:n,max:r}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2<t.width+e.width&&Math.abs(t.cy-e.cy)*2<t.height+e.height}function intersectsImpl(t,e,n,r,o,a){if(boxIntersect(t,e)){if(n>=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){o.push([t.t,e.t]);return}var c=splitData(t),l=splitData(e);intersectsImpl(c[0],l[0],n+1,r,o,a),intersectsImpl(c[0],l[1],n+1,r,o,a),intersectsImpl(c[1],l[0],n+1,r,o,a),intersectsImpl(c[1],l[1],n+1,r,o,a)}}PolynomialBezier.prototype.intersections=function(t,e,n){e===void 0&&(e=2),n===void 0&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,n),r},PolynomialBezier.shapeSegment=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[n],t.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[n],t.i[n],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,n,r){var o=[t[0],t[1],1],a=[e[0],e[1],1],c=[n[0],n[1],1],l=[r[0],r[1],1],f=crossProduct(crossProduct(o,a),crossProduct(c,l));return floatZero(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function polarOffset(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,n,r,o,a,c){var l=n-Math.PI/2,f=n+Math.PI/2,p=e[0]+Math.cos(n)*r*o,m=e[1]-Math.sin(n)*r*o;t.setTripleAt(p,m,p+Math.cos(l)*a,m-Math.sin(l)*a,p+Math.cos(f)*c,m-Math.sin(f)*c,t.length())}function getPerpendicularVector(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,o=[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]];return o}function getProjectingAngle(t,e){var n=e===0?t.length()-1:e-1,r=(e+1)%t.length(),o=t.v[n],a=t.v[r],c=getPerpendicularVector(o,a);return Math.atan2(0,1)-Math.atan2(c[1],c[0])}function zigZagCorner(t,e,n,r,o,a,c){var l=getProjectingAngle(e,n),f=e.v[n%e._length],p=e.v[n===0?e._length-1:n-1],m=e.v[(n+1)%e._length],g=a===2?Math.sqrt(Math.pow(f[0]-p[0],2)+Math.pow(f[1]-p[1],2)):0,y=a===2?Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)):0;setPoint(t,e.v[n%e._length],l,c,r,y/((o+1)*2),g/((o+1)*2),a)}function zigZagSegment(t,e,n,r,o,a){for(var c=0;c<r;c+=1){var l=(c+1)/(r+1),f=o===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,p=e.normalAngle(l),m=e.point(l);setPoint(t,m,p,a,n,f/((r+1)*2),f/((r+1)*2),o),a=-a}return a}ZigZagModifier.prototype.processPath=function(t,e,n,r){var o=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(o-=1),o===0)return a;var c=-1,l=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,n,r,c);for(var f=0;f<o;f+=1)c=zigZagSegment(a,l,e,n,r,-c),f===o-1&&!t.c?l=null:l=PolynomialBezier.shapeSegment(t,(f+1)%o),zigZagCorner(a,t,f+1,e,n,r,c);return a},ZigZagModifier.prototype.processShapes=function(t){var e,n,r=this.shapes.length,o,a,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(c!==0){var p,m;for(n=0;n<r;n+=1){if(p=this.shapes[n],m=p.localShapeCollection,!(!p.shape._mdf&&!this._mdf&&!t))for(m.releaseShapes(),p.shape._mdf=!0,e=p.shape.paths.shapes,a=p.shape.paths._length,o=0;o<a;o+=1)m.addShape(this.processPath(e[o],c,l,f));p.shape.paths=p.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,n),polarOffset(e,r,n)]}function offsetSegment(t,e){var n,r,o,a,c,l,f;f=linearOffset(t.points[0],t.points[1],e),n=f[0],r=f[1],f=linearOffset(t.points[1],t.points[2],e),o=f[0],a=f[1],f=linearOffset(t.points[2],t.points[3],e),c=f[0],l=f[1];var p=lineIntersection(n,r,o,a);p===null&&(p=r);var m=lineIntersection(c,l,o,a);return m===null&&(m=c),new PolynomialBezier(n,p,m,l)}function joinLines(t,e,n,r,o){var a=e.points[3],c=n.points[0];if(r===3||pointEqual(a,c))return a;if(r===2){var l=-e.tangentAngle(1),f=-n.tangentAngle(0)+Math.PI,p=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),c,polarOffset(c,l+Math.PI/2,100)),m=p?pointDistance(p,a):pointDistance(a,c)/2,g=polarOffset(a,l,2*m*roundCorner);return t.setXYAt(g[0],g[1],\"o\",t.length()-1),g=polarOffset(c,f,2*m*roundCorner),t.setTripleAt(c[0],c[1],c[0],c[1],g[0],g[1],t.length()),c}var y=pointEqual(a,e.points[2])?e.points[0]:e.points[2],A=pointEqual(c,n.points[1])?n.points[3]:n.points[1],T=lineIntersection(y,a,c,A);return T&&pointDistance(T,a)<o?(t.setTripleAt(T[0],T[1],T[0],T[1],T[0],T[1],t.length()),T):a}function getIntersection(t,e){var n=t.intersections(e);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(t,e){var n=t.slice(),r=e.slice(),o=getIntersection(t[t.length-1],e[0]);return o&&(n[t.length-1]=t[t.length-1].split(o[0])[0],r[0]=e[0].split(o[1])[1]),t.length>1&&e.length>1&&(o=getIntersection(t[0],e[e.length-1]),o)?[[t[0].split(o[0])[0]],[e[e.length-1].split(o[1])[1]]]:[n,r]}function pruneIntersections(t){for(var e,n=1;n<t.length;n+=1)e=pruneSegmentIntersection(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var n=t.inflectionPoints(),r,o,a,c;if(n.length===0)return[offsetSegment(t,e)];if(n.length===1||floatEqual(n[1],1))return a=t.split(n[0]),r=a[0],o=a[1],[offsetSegment(r,e),offsetSegment(o,e)];a=t.split(n[0]),r=a[0];var l=(n[1]-n[0])/(1-n[0]);return a=a[1].split(l),c=a[0],o=a[1],[offsetSegment(r,e),offsetSegment(c,e),offsetSegment(o,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,n,r){var o=shapePool.newElement();o.c=t.c;var a=t.length();t.c||(a-=1);var c,l,f,p=[];for(c=0;c<a;c+=1)f=PolynomialBezier.shapeSegment(t,c),p.push(offsetSegmentSplit(f,e));if(!t.c)for(c=a-1;c>=0;c-=1)f=PolynomialBezier.shapeSegmentInverted(t,c),p.push(offsetSegmentSplit(f,e));p=pruneIntersections(p);var m=null,g=null;for(c=0;c<p.length;c+=1){var y=p[c];for(g&&(m=joinLines(o,g,y[0],n,r)),g=y[y.length-1],l=0;l<y.length;l+=1)f=y[l],m&&pointEqual(f.points[0],m)?o.setXYAt(f.points[1][0],f.points[1][1],\"o\",o.length()-1):o.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],o.length()),o.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],o.length()),m=f.points[3]}return p.length&&joinLines(o,g,p[0][0],n,r),o},OffsetPathModifier.prototype.processShapes=function(t){var e,n,r=this.shapes.length,o,a,c=this.amount.v,l=this.miterLimit.v,f=this.lineJoin;if(c!==0){var p,m;for(n=0;n<r;n+=1){if(p=this.shapes[n],m=p.localShapeCollection,!(!p.shape._mdf&&!this._mdf&&!t))for(m.releaseShapes(),p.shape._mdf=!0,e=p.shape.paths.shapes,a=p.shape.paths._length,o=0;o<a;o+=1)m.addShape(this.processPath(e[o],c,f,l));p.shape.paths=p.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(\" \"):[],n=\"normal\",r=\"normal\",o=e.length,a,c=0;c<o;c+=1)switch(a=e[c].toLowerCase(),a){case\"italic\":r=\"italic\";break;case\"bold\":n=\"700\";break;case\"black\":n=\"900\";break;case\"medium\":n=\"500\";break;case\"regular\":case\"normal\":n=\"400\";break;case\"light\":case\"thin\":n=\"200\";break;default:break}return{style:r,weight:t.fWeight||n}}var FontManager=(function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,o=917631,a=917601,c=917626,l=65039,f=8205,p=127462,m=127487,g=[\"d83cdffb\",\"d83cdffc\",\"d83cdffd\",\"d83cdffe\",\"d83cdfff\"];function y(U){var W=U.split(\",\"),w,I=W.length,ye=[];for(w=0;w<I;w+=1)W[w]!==\"sans-serif\"&&W[w]!==\"monospace\"&&ye.push(W[w]);return ye.join(\",\")}function A(U,W){var w=createTag(\"span\");w.setAttribute(\"aria-hidden\",!0),w.style.fontFamily=W;var I=createTag(\"span\");I.innerText=\"giItT1WQy@!-/#\",w.style.position=\"absolute\",w.style.left=\"-10000px\",w.style.top=\"-10000px\",w.style.fontSize=\"300px\",w.style.fontVariant=\"normal\",w.style.fontStyle=\"normal\",w.style.fontWeight=\"normal\",w.style.letterSpacing=\"0\",w.appendChild(I),document.body.appendChild(w);var ye=I.offsetWidth;return I.style.fontFamily=y(U)+\", \"+W,{node:I,w:ye,parent:w}}function T(){var U,W=this.fonts.length,w,I,ye=W;for(U=0;U<W;U+=1)this.fonts[U].loaded?ye-=1:this.fonts[U].fOrigin===\"n\"||this.fonts[U].origin===0?this.fonts[U].loaded=!0:(w=this.fonts[U].monoCase.node,I=this.fonts[U].monoCase.w,w.offsetWidth!==I?(ye-=1,this.fonts[U].loaded=!0):(w=this.fonts[U].sansCase.node,I=this.fonts[U].sansCase.w,w.offsetWidth!==I&&(ye-=1,this.fonts[U].loaded=!0)),this.fonts[U].loaded&&(this.fonts[U].sansCase.parent.parentNode.removeChild(this.fonts[U].sansCase.parent),this.fonts[U].monoCase.parent.parentNode.removeChild(this.fonts[U].monoCase.parent)));ye!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(U,W){var w=document.body&&W?\"svg\":\"canvas\",I,ye=getFontProperties(U);if(w===\"svg\"){var ne=createNS(\"text\");ne.style.fontSize=\"100px\",ne.setAttribute(\"font-family\",U.fFamily),ne.setAttribute(\"font-style\",ye.style),ne.setAttribute(\"font-weight\",ye.weight),ne.textContent=\"1\",U.fClass?(ne.style.fontFamily=\"inherit\",ne.setAttribute(\"class\",U.fClass)):ne.style.fontFamily=U.fFamily,W.appendChild(ne),I=ne}else{var Q=new OffscreenCanvas(500,500).getContext(\"2d\");Q.font=ye.style+\" \"+ye.weight+\" 100px \"+U.fFamily,I=Q}function ie(ue){return w===\"svg\"?(I.textContent=ue,I.getComputedTextLength()):I.measureText(ue).width}return{measureText:ie}}function K(U,W){if(!U){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=U.list;return}if(!document.body){this.isLoaded=!0,U.list.forEach(function(_e){_e.helper=R(_e),_e.cache={}}),this.fonts=U.list;return}var w=U.list,I,ye=w.length,ne=ye;for(I=0;I<ye;I+=1){var Q=!0,ie,ue;if(w[I].loaded=!1,w[I].monoCase=A(w[I].fFamily,\"monospace\"),w[I].sansCase=A(w[I].fFamily,\"sans-serif\"),!w[I].fPath)w[I].loaded=!0,ne-=1;else if(w[I].fOrigin===\"p\"||w[I].origin===3){if(ie=document.querySelectorAll(\\'style[f-forigin=\"p\"][f-family=\"\\'+w[I].fFamily+\\'\"], style[f-origin=\"3\"][f-family=\"\\'+w[I].fFamily+\\'\"]\\'),ie.length>0&&(Q=!1),Q){var q=createTag(\"style\");q.setAttribute(\"f-forigin\",w[I].fOrigin),q.setAttribute(\"f-origin\",w[I].origin),q.setAttribute(\"f-family\",w[I].fFamily),q.type=\"text/css\",q.innerText=\"@font-face {font-family: \"+w[I].fFamily+\"; font-style: normal; src: url(\\'\"+w[I].fPath+\"\\');}\",W.appendChild(q)}}else if(w[I].fOrigin===\"g\"||w[I].origin===1){for(ie=document.querySelectorAll(\\'link[f-forigin=\"g\"], link[f-origin=\"1\"]\\'),ue=0;ue<ie.length;ue+=1)ie[ue].href.indexOf(w[I].fPath)!==-1&&(Q=!1);if(Q){var Ee=createTag(\"link\");Ee.setAttribute(\"f-forigin\",w[I].fOrigin),Ee.setAttribute(\"f-origin\",w[I].origin),Ee.type=\"text/css\",Ee.rel=\"stylesheet\",Ee.href=w[I].fPath,document.body.appendChild(Ee)}}else if(w[I].fOrigin===\"t\"||w[I].origin===2){for(ie=document.querySelectorAll(\\'script[f-forigin=\"t\"], script[f-origin=\"2\"]\\'),ue=0;ue<ie.length;ue+=1)w[I].fPath===ie[ue].src&&(Q=!1);if(Q){var we=createTag(\"link\");we.setAttribute(\"f-forigin\",w[I].fOrigin),we.setAttribute(\"f-origin\",w[I].origin),we.setAttribute(\"rel\",\"stylesheet\"),we.setAttribute(\"href\",w[I].fPath),W.appendChild(we)}}w[I].helper=R(w[I],W),w[I].cache={},this.fonts.push(w[I])}ne===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function O(U){if(U){this.chars||(this.chars=[]);var W,w=U.length,I,ye=this.chars.length,ne;for(W=0;W<w;W+=1){for(I=0,ne=!1;I<ye;)this.chars[I].style===U[W].style&&this.chars[I].fFamily===U[W].fFamily&&this.chars[I].ch===U[W].ch&&(ne=!0),I+=1;ne||(this.chars.push(U[W]),ye+=1)}}}function V(U,W,w){for(var I=0,ye=this.chars.length;I<ye;){if(this.chars[I].ch===U&&this.chars[I].style===W&&this.chars[I].fFamily===w)return this.chars[I];I+=1}return(typeof U==\"string\"&&U.charCodeAt(0)!==13||!U)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn(\"Missing character from exported characters list: \",U,W,w)),e}function D(U,W,w){var I=this.getFontByName(W),ye=U;if(!I.cache[ye]){var ne=I.helper;if(U===\" \"){var Q=ne.measureText(\"|\"+U+\"|\"),ie=ne.measureText(\"||\");I.cache[ye]=(Q-ie)/100}else I.cache[ye]=ne.measureText(U)/100}return I.cache[ye]*w}function G(U){for(var W=0,w=this.fonts.length;W<w;){if(this.fonts[W].fName===U)return this.fonts[W];W+=1}return this.fonts[0]}function ee(U){var W=0,w=U.charCodeAt(0);if(w>=55296&&w<=56319){var I=U.charCodeAt(1);I>=56320&&I<=57343&&(W=(w-55296)*1024+I-56320+65536)}return W}function J(U,W){var w=U.toString(16)+W.toString(16);return g.indexOf(w)!==-1}function le(U){return U===f}function se(U){return U===l}function te(U){var W=ee(U);return W>=p&&W<=m}function S(U){return te(U.substr(0,2))&&te(U.substr(2,2))}function _(U){return n.indexOf(U)!==-1}function P(U,W){var w=ee(U.substr(W,2));if(w!==r)return!1;var I=0;for(W+=2;I<5;){if(w=ee(U.substr(W,2)),w<a||w>c)return!1;I+=1,W+=2}return ee(U.substr(W,2))===o}function z(){this.isLoaded=!0}var Y=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Y.isModifier=J,Y.isZeroWidthJoiner=le,Y.isFlagEmoji=S,Y.isRegionalCode=te,Y.isCombinedCharacter=_,Y.isRegionalFlag=P,Y.isVariationSelector=se,Y.BLACK_FLAG_CODE_POINT=r;var L={addChars:O,addFonts:K,getCharData:V,getFontByName:G,measureText:D,checkLoadedFonts:T,setIsLoaded:z};return Y.prototype=L,Y})();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,n=this.renderableComponents.length;for(e=0;e<n;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var t={0:\"source-over\",1:\"multiply\",2:\"screen\",3:\"overlay\",4:\"darken\",5:\"lighten\",6:\"color-dodge\",7:\"color-burn\",8:\"hard-light\",9:\"soft-light\",10:\"difference\",11:\"exclusion\",12:\"hue\",13:\"saturation\",14:\"color\",15:\"luminosity\"};return function(e){return t[e]||\"\"}})();function SliderEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function AngleEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function ColorEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function PointEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function LayerIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function MaskIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function CheckboxEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var n=t.ef||[];this.effectElements=[];var r,o=n.length,a;for(r=0;r<o;r+=1)a=new GroupEffect(n[r],e),this.effectElements.push(a)}function GroupEffect(t,e){this.init(t,e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,r=this.data.ef.length,o,a=this.data.ef;for(n=0;n<r;n+=1){switch(o=null,a[n].ty){case 0:o=new SliderEffect(a[n],e,this);break;case 1:o=new AngleEffect(a[n],e,this);break;case 2:o=new ColorEffect(a[n],e,this);break;case 3:o=new PointEffect(a[n],e,this);break;case 4:case 7:o=new CheckboxEffect(a[n],e,this);break;case 10:o=new LayerIndexEffect(a[n],e,this);break;case 11:o=new MaskIndexEffect(a[n],e,this);break;case 5:o=new EffectsManager(a[n],e,this);break;default:o=new NoValueEffect(a[n],e,this);break}o&&this.effectElements.push(o)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,n=this.data.masksProperties.length;e<n;){if(this.data.masksProperties[e].mode!==\"n\"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var n=e(\"layer\"),r=e(\"effects\"),o=e(\"shape\"),a=e(\"text\"),c=e(\"comp\");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=c(this):this.data.ty===4?(this.layerInterface.shapeInterface=o(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style[\"mix-blend-mode\"]=e},initBaseData:function(e,n,r){this.globalData=n,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,n){var r,o=this.dynamicProperties.length;for(r=0;r<o;r+=1)(n||this._isParent&&this.dynamicProperties[r].propType===\"transform\")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}};function FootageElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t(\"footage\");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,n=this.layers.length,r;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error(\"You\\'re using a 3d camera. Try the html renderer.\")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,n=t.length,r,o=this.layers.length;for(e=0;e<n;e+=1)for(r=0;r<o;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,n){for(var r=this.elements,o=this.layers,a=0,c=o.length;a<c;)o[a].ind==e&&(!r[a]||r[a]===!0?(this.buildItem(a),this.addPendingElement(t)):(n.push(r[a]),r[a].setAsParent(),o[a].parent!==void 0?this.buildElementParenting(t,o[a].parent,n):t.setHierarchy(n))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift(),n;if(typeof e==\"number\")n=this.elements[e];else{var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.nm===e){n=this.elements[r];break}}return t.length===0?n:n.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:\"transformEFfect\"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,n=this.finalTransform.mat,r=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<o;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,n.cloneFromProps(e),r=0;r<o;r+=1)n.multiply(this.hierarchy[r].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<n;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<n;e+=1){var o=this.localTransforms[e].matrix;r.multiply(o)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(e=0;e<n;e+=1)a*=this.localTransforms[e].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,r=e.length;for(n=0;n<r;n+=1)this.localTransforms.push(e[n])}}},globalToLocal:function(e){var n=[];n.push(this.finalTransform);for(var r=!0,o=this.comp;r;)o.finalTransform?(o.data.hasMask&&n.splice(0,0,o.finalTransform),o=o.comp):r=!1;var a,c=n.length,l;for(a=0;a<c;a+=1)l=n[a].mat.applyToPointArray(0,0,0),e=[e[0]-l[0],e[1]-l[1],0];return e},mHelper:new Matrix};function MaskElement(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,o,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath=\"\";var c,l=this.masksProperties,f=0,p=[],m,g,y=createElementID(),A,T,R,K,O=\"clipPath\",V=\"clip-path\";for(o=0;o<a;o+=1)if((l[o].mode!==\"a\"&&l[o].mode!==\"n\"||l[o].inv||l[o].o.k!==100||l[o].o.x)&&(O=\"mask\",V=\"mask\"),(l[o].mode===\"s\"||l[o].mode===\"i\")&&f===0?(A=createNS(\"rect\"),A.setAttribute(\"fill\",\"#ffffff\"),A.setAttribute(\"width\",this.element.comp.data.w||0),A.setAttribute(\"height\",this.element.comp.data.h||0),p.push(A)):A=null,c=createNS(\"path\"),l[o].mode===\"n\")this.viewData[o]={op:PropertyFactory.getProp(this.element,l[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[o],3),elem:c,lastPath:\"\"},r.appendChild(c);else{f+=1,c.setAttribute(\"fill\",l[o].mode===\"s\"?\"#000000\":\"#ffffff\"),c.setAttribute(\"clip-rule\",\"nonzero\");var D;if(l[o].x.k!==0?(O=\"mask\",V=\"mask\",K=PropertyFactory.getProp(this.element,l[o].x,0,null,this.element),D=createElementID(),T=createNS(\"filter\"),T.setAttribute(\"id\",D),R=createNS(\"feMorphology\"),R.setAttribute(\"operator\",\"erode\"),R.setAttribute(\"in\",\"SourceGraphic\"),R.setAttribute(\"radius\",\"0\"),T.appendChild(R),r.appendChild(T),c.setAttribute(\"stroke\",l[o].mode===\"s\"?\"#000000\":\"#ffffff\")):(R=null,K=null),this.storedData[o]={elem:c,x:K,expan:R,lastPath:\"\",lastOperator:\"\",filterId:D,lastRadius:0},l[o].mode===\"i\"){g=p.length;var G=createNS(\"g\");for(m=0;m<g;m+=1)G.appendChild(p[m]);var ee=createNS(\"mask\");ee.setAttribute(\"mask-type\",\"alpha\"),ee.setAttribute(\"id\",y+\"_\"+f),ee.appendChild(c),r.appendChild(ee),G.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+y+\"_\"+f+\")\"),p.length=0,p.push(G)}else p.push(c);l[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:c,lastPath:\"\",op:PropertyFactory.getProp(this.element,l[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[o],3),invRect:A},this.viewData[o].prop.k||this.drawPath(l[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS(O),a=p.length,o=0;o<a;o+=1)this.maskElement.appendChild(p[o]);f>0&&(this.maskElement.setAttribute(\"id\",y),this.element.maskedElement.setAttribute(V,\"url(\"+getLocationHref()+\"#\"+y+\")\"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,n,r=this.masksProperties.length;for(n=0;n<r;n+=1)if((this.viewData[n].prop._mdf||t)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||t)&&this.viewData[n].elem.setAttribute(\"fill-opacity\",this.viewData[n].op.v),this.masksProperties[n].mode!==\"n\"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[n].invRect.setAttribute(\"transform\",e.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||t))){var o=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!==\"erode\"&&(this.storedData[n].lastOperator=\"erode\",this.storedData[n].elem.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+this.storedData[n].filterId+\")\")),o.setAttribute(\"radius\",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!==\"dilate\"&&(this.storedData[n].lastOperator=\"dilate\",this.storedData[n].elem.setAttribute(\"filter\",null)),this.storedData[n].elem.setAttribute(\"stroke-width\",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t=\"M0,0 \";return t+=\" h\"+this.globalData.compSize.w,t+=\" v\"+this.globalData.compSize.h,t+=\" h-\"+this.globalData.compSize.w,t+=\" v-\"+this.globalData.compSize.h+\" \",t},MaskElement.prototype.drawPath=function(t,e,n){var r=\" M\"+e.v[0][0]+\",\"+e.v[0][1],o,a;for(a=e._length,o=1;o<a;o+=1)r+=\" C\"+e.o[o-1][0]+\",\"+e.o[o-1][1]+\" \"+e.i[o][0]+\",\"+e.i[o][1]+\" \"+e.v[o][0]+\",\"+e.v[o][1];if(e.c&&a>1&&(r+=\" C\"+e.o[o-1][0]+\",\"+e.o[o-1][1]+\" \"+e.i[0][0]+\",\"+e.i[0][1]+\" \"+e.v[0][0]+\",\"+e.v[0][1]),n.lastPath!==r){var c=\"\";n.elem&&(e.c&&(c=t.inv?this.solidPath+r:r),n.elem.setAttribute(\"d\",c)),n.lastPath=r}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=n;function e(r,o){var a=createNS(\"filter\");return a.setAttribute(\"id\",r),o!==!0&&(a.setAttribute(\"filterUnits\",\"objectBoundingBox\"),a.setAttribute(\"x\",\"0%\"),a.setAttribute(\"y\",\"0%\"),a.setAttribute(\"width\",\"100%\"),a.setAttribute(\"height\",\"100%\")),a}function n(){var r=createNS(\"feColorMatrix\");return r.setAttribute(\"type\",\"matrix\"),r.setAttribute(\"color-interpolation-filters\",\"sRGB\"),r.setAttribute(\"values\",\"0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1\"),r}return t})(),featureSupport=(function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<\"u\"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\\\\/\\\\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),registeredEffects$1={},idPrefix=\"filter_result_\";function SVGEffects(t){var e,n=\"SourceGraphic\",r=t.data.ef?t.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),c=0;this.filters=[];var l;for(e=0;e<r;e+=1){l=null;var f=t.data.ef[e].ty;if(registeredEffects$1[f]){var p=registeredEffects$1[f].effect;l=new p(a,t.effectsManager.effectElements[e],t,idPrefix+c,n),n=idPrefix+c,registeredEffects$1[f].countsAsEffect&&(c+=1)}l&&this.filters.push(l)}c&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+o+\")\")),this.filters.length&&t.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r};function registerEffect$1(t,e,n){registeredEffects$1[t]={effect:e,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS(\"g\")},createContainerElements:function(){this.matteElement=createNS(\"g\"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var n=createNS(\"g\");n.setAttribute(\"id\",this.layerId),n.appendChild(this.layerElement),e=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS(\"clipPath\"),o=createNS(\"path\");o.setAttribute(\"d\",\"M0,0 L\"+this.data.w+\",0 L\"+this.data.w+\",\"+this.data.h+\" L0,\"+this.data.h+\"z\");var a=createElementID();if(r.setAttribute(\"id\",a),r.appendChild(o),this.globalData.defs.appendChild(r),this.checkMasks()){var c=createNS(\"g\");c.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+a+\")\"),c.appendChild(this.layerElement),this.transformedElement=c,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+a+\")\")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute(\"transform\",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute(\"opacity\",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var n=this.layerId+\"_\"+e,r,o,a,c;if(e===1||e===3){var l=createNS(\"mask\");l.setAttribute(\"id\",n),l.setAttribute(\"mask-type\",e===3?\"luminance\":\"alpha\"),a=createNS(\"use\"),a.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&e===1&&(l.setAttribute(\"mask-type\",\"luminance\"),r=createElementID(),o=filtersFactory.createFilter(r),this.globalData.defs.appendChild(o),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),c=createNS(\"g\"),c.appendChild(a),l.appendChild(c),c.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+r+\")\"))}else if(e===2){var f=createNS(\"mask\");f.setAttribute(\"id\",n),f.setAttribute(\"mask-type\",\"alpha\");var p=createNS(\"g\");f.appendChild(p),r=createElementID(),o=filtersFactory.createFilter(r);var m=createNS(\"feComponentTransfer\");m.setAttribute(\"in\",\"SourceGraphic\"),o.appendChild(m);var g=createNS(\"feFuncA\");g.setAttribute(\"type\",\"table\"),g.setAttribute(\"tableValues\",\"1.0 0.0\"),m.appendChild(g),this.globalData.defs.appendChild(o);var y=createNS(\"rect\");y.setAttribute(\"width\",this.comp.data.w),y.setAttribute(\"height\",this.comp.data.h),y.setAttribute(\"x\",\"0\"),y.setAttribute(\"y\",\"0\"),y.setAttribute(\"fill\",\"#ffffff\"),y.setAttribute(\"opacity\",\"0\"),p.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+r+\")\"),p.appendChild(y),a=createNS(\"use\"),a.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),p.appendChild(a),featureSupport.maskType||(f.setAttribute(\"mask-type\",\"luminance\"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),c=createNS(\"g\"),p.appendChild(y),c.appendChild(this.layerElement),p.appendChild(c)),this.globalData.defs.appendChild(f)}this.matteMasks[e]=n}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+e+\")\")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var t={initElement:function(n,r,o){this.initFrame(),this.initBaseData(n,r,o),this.initTransform(n,r,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display=\"none\",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display=\"block\"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS(\"image\"),this.innerElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.innerElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.innerElem.setAttribute(\"preserveAspectRatio\",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(e){var n,r=this.shapeModifiers.length;for(n=0;n<r;n+=1)this.shapeModifiers[n].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var n=0,r=this.shapeModifiers.length;n<r;)if(this.shapeModifiers[n].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,n=this.shapes.length;for(e=0;e<n;e+=1)this.shapes[e].sh.reset();n=this.shapeModifiers.length;var r;for(e=n-1;e>=0&&(r=this.shapeModifiers[e].processShapes(this._isFirstFrame),!r);e-=1);}},searchProcessedElement:function(e){for(var n=this.processedElements,r=0,o=n.length;r<o;){if(n[r].elem===e)return n[r].pos;r+=1}return 0},addProcessedElement:function(e,n){for(var r=this.processedElements,o=r.length;o;)if(o-=1,r[o].elem===e){r[o].pos=n;return}r.push(new ProcessedElement(e,n))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:\"butt\",2:\"round\",3:\"square\"},lineJoinEnum={1:\"miter\",2:\"round\",3:\"bevel\"};function SVGShapeData(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr=\"\",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,o=t.length;r<o;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d=\"\",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS(\"path\"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d=\"\",this._mdf=!1};function DashProperty(t,e,n,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=n,this.k=!1,this.dashStr=\"\",this.dashArray=createTypedArray(\"float32\",e.length?e.length-1:0),this.dashoffset=createTypedArray(\"float32\",1),this.initDynamicPropertyContainer(r);var o,a=e.length||0,c;for(o=0;o<a;o+=1)c=PropertyFactory.getProp(t,e[o].v,0,0,this),this.k=c.k||this.k,this.dataProps[o]={n:e[o].n,p:c};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for(this.renderer===\"svg\"&&(this.dashStr=\"\"),e=0;e<n;e+=1)this.dataProps[e].n!==\"o\"?this.renderer===\"svg\"?this.dashStr+=\" \"+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,e,n){this.data=e,this.c=createTypedArray(\"uint8c\",e.p*4);var r=e.k.k[0].s?e.k.k[0].s.length-e.p*4:e.k.k.length-e.p*4;this.o=createTypedArray(\"float32\",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(t,e){for(var n=0,r=this.o.length/2,o;n<r;){if(o=Math.abs(t[n*4]-t[e*4+n*2]),o>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n=this.data.p*4,r,o;for(e=0;e<n;e+=1)r=e%4===0?100:255,o=Math.round(this.prop.v[e]*r),this.c[e]!==o&&(this.c[e]=o,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=this.data.p*4;e<n;e+=1)r=e%2===0?100:1,o=e%2===0?Math.round(this.prop.v[e]*100):this.prop.v[e],this.o[e-this.data.p*4]!==o&&(this.o[e-this.data.p*4]=o,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}SVGGradientFillStyleData.prototype.initGradientData=function(t,e,n){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var n=createElementID(),r=createNS(e.t===1?\"linearGradient\":\"radialGradient\");r.setAttribute(\"id\",n),r.setAttribute(\"spreadMethod\",\"pad\"),r.setAttribute(\"gradientUnits\",\"userSpaceOnUse\");var o=[],a,c,l;for(l=e.g.p*4,c=0;c<l;c+=4)a=createNS(\"stop\"),r.appendChild(a),o.push(a);t.setAttribute(e.ty===\"gf\"?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+n+\")\"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,o,a=createNS(\"mask\"),c=createNS(\"path\");a.appendChild(c);var l=createElementID(),f=createElementID();a.setAttribute(\"id\",f);var p=createNS(t.t===1?\"linearGradient\":\"radialGradient\");p.setAttribute(\"id\",l),p.setAttribute(\"spreadMethod\",\"pad\"),p.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),o=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var m=this.stops;for(r=t.g.p*4;r<o;r+=2)n=createNS(\"stop\"),n.setAttribute(\"stop-color\",\"rgb(255,255,255)\"),p.appendChild(n),m.push(n);c.setAttribute(t.ty===\"gf\"?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+l+\")\"),t.ty===\"gs\"&&(c.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),c.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),t.lj===1&&c.setAttribute(\"stroke-miterlimit\",t.ml)),this.of=p,this.ms=a,this.ost=m,this.maskId=f,e.msElem=c}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS(\"g\")}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(e,n,r,o){if(n===0)return\"\";var a=e.o,c=e.i,l=e.v,f,p=\" M\"+o.applyToPointStringified(l[0][0],l[0][1]);for(f=1;f<n;f+=1)p+=\" C\"+o.applyToPointStringified(a[f-1][0],a[f-1][1])+\" \"+o.applyToPointStringified(c[f][0],c[f][1])+\" \"+o.applyToPointStringified(l[f][0],l[f][1]);return r&&n&&(p+=\" C\"+o.applyToPointStringified(a[f-1][0],a[f-1][1])+\" \"+o.applyToPointStringified(c[0][0],c[0][1])+\" \"+o.applyToPointStringified(l[0][0],l[0][1]),p+=\"z\"),p},SVGElementsRenderer=(function(){var t=new Matrix,e=new Matrix,n={createRenderFunction:r};function r(g){switch(g.ty){case\"fl\":return l;case\"gf\":return p;case\"gs\":return f;case\"st\":return m;case\"sh\":case\"el\":case\"rc\":case\"sr\":return c;case\"tr\":return o;case\"no\":return a;default:return null}}function o(g,y,A){(A||y.transform.op._mdf)&&y.transform.container.setAttribute(\"opacity\",y.transform.op.v),(A||y.transform.mProps._mdf)&&y.transform.container.setAttribute(\"transform\",y.transform.mProps.v.to2dCSS())}function a(){}function c(g,y,A){var T,R,K,O,V,D,G=y.styles.length,ee=y.lvl,J,le,se,te;for(D=0;D<G;D+=1){if(O=y.sh._mdf||A,y.styles[D].lvl<ee){for(le=e.reset(),se=ee-y.styles[D].lvl,te=y.transformers.length-1;!O&&se>0;)O=y.transformers[te].mProps._mdf||O,se-=1,te-=1;if(O)for(se=ee-y.styles[D].lvl,te=y.transformers.length-1;se>0;)le.multiply(y.transformers[te].mProps.v),se-=1,te-=1}else le=t;if(J=y.sh.paths,R=J._length,O){for(K=\"\",T=0;T<R;T+=1)V=J.shapes[T],V&&V._length&&(K+=buildShapeString(V,V._length,V.c,le));y.caches[D]=K}else K=y.caches[D];y.styles[D].d+=g.hd===!0?\"\":K,y.styles[D]._mdf=O||y.styles[D]._mdf}}function l(g,y,A){var T=y.style;(y.c._mdf||A)&&T.pElem.setAttribute(\"fill\",\"rgb(\"+bmFloor(y.c.v[0])+\",\"+bmFloor(y.c.v[1])+\",\"+bmFloor(y.c.v[2])+\")\"),(y.o._mdf||A)&&T.pElem.setAttribute(\"fill-opacity\",y.o.v)}function f(g,y,A){p(g,y,A),m(g,y,A)}function p(g,y,A){var T=y.gf,R=y.g._hasOpacity,K=y.s.v,O=y.e.v;if(y.o._mdf||A){var V=g.ty===\"gf\"?\"fill-opacity\":\"stroke-opacity\";y.style.pElem.setAttribute(V,y.o.v)}if(y.s._mdf||A){var D=g.t===1?\"x1\":\"cx\",G=D===\"x1\"?\"y1\":\"cy\";T.setAttribute(D,K[0]),T.setAttribute(G,K[1]),R&&!y.g._collapsable&&(y.of.setAttribute(D,K[0]),y.of.setAttribute(G,K[1]))}var ee,J,le,se;if(y.g._cmdf||A){ee=y.cst;var te=y.g.c;for(le=ee.length,J=0;J<le;J+=1)se=ee[J],se.setAttribute(\"offset\",te[J*4]+\"%\"),se.setAttribute(\"stop-color\",\"rgb(\"+te[J*4+1]+\",\"+te[J*4+2]+\",\"+te[J*4+3]+\")\")}if(R&&(y.g._omdf||A)){var S=y.g.o;for(y.g._collapsable?ee=y.cst:ee=y.ost,le=ee.length,J=0;J<le;J+=1)se=ee[J],y.g._collapsable||se.setAttribute(\"offset\",S[J*2]+\"%\"),se.setAttribute(\"stop-opacity\",S[J*2+1])}if(g.t===1)(y.e._mdf||A)&&(T.setAttribute(\"x2\",O[0]),T.setAttribute(\"y2\",O[1]),R&&!y.g._collapsable&&(y.of.setAttribute(\"x2\",O[0]),y.of.setAttribute(\"y2\",O[1])));else{var _;if((y.s._mdf||y.e._mdf||A)&&(_=Math.sqrt(Math.pow(K[0]-O[0],2)+Math.pow(K[1]-O[1],2)),T.setAttribute(\"r\",_),R&&!y.g._collapsable&&y.of.setAttribute(\"r\",_)),y.s._mdf||y.e._mdf||y.h._mdf||y.a._mdf||A){_||(_=Math.sqrt(Math.pow(K[0]-O[0],2)+Math.pow(K[1]-O[1],2)));var P=Math.atan2(O[1]-K[1],O[0]-K[0]),z=y.h.v;z>=1?z=.99:z<=-1&&(z=-.99);var Y=_*z,L=Math.cos(P+y.a.v)*Y+K[0],U=Math.sin(P+y.a.v)*Y+K[1];T.setAttribute(\"fx\",L),T.setAttribute(\"fy\",U),R&&!y.g._collapsable&&(y.of.setAttribute(\"fx\",L),y.of.setAttribute(\"fy\",U))}}}function m(g,y,A){var T=y.style,R=y.d;R&&(R._mdf||A)&&R.dashStr&&(T.pElem.setAttribute(\"stroke-dasharray\",R.dashStr),T.pElem.setAttribute(\"stroke-dashoffset\",R.dashoffset[0])),y.c&&(y.c._mdf||A)&&T.pElem.setAttribute(\"stroke\",\"rgb(\"+bmFloor(y.c.v[0])+\",\"+bmFloor(y.c.v[1])+\",\"+bmFloor(y.c.v[2])+\")\"),(y.o._mdf||A)&&T.pElem.setAttribute(\"stroke-opacity\",y.o.v),(y.w._mdf||A)&&(T.pElem.setAttribute(\"stroke-width\",y.w.v),T.msElem&&T.msElem.setAttribute(\"stroke-width\",y.w.v))}return n})();function SVGShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,n,r,o=this.stylesList.length,a,c=[],l=!1;for(r=0;r<o;r+=1){for(a=this.stylesList[r],l=!1,c.length=0,t=0;t<e;t+=1)n=this.shapes[t],n.styles.indexOf(a)!==-1&&(c.push(n),l=n._isAnimated||l);c.length>1&&l&&this.setShapesAsAnimated(c)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var n,r=new SVGStyleData(t,e),o=r.pElem;if(t.ty===\"st\")n=new SVGStrokeStyleData(this,t,r);else if(t.ty===\"fl\")n=new SVGFillStyleData(this,t,r);else if(t.ty===\"gf\"||t.ty===\"gs\"){var a=t.ty===\"gf\"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new a(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+n.maskId+\")\"))}else t.ty===\"no\"&&(n=new SVGNoStyleData(this,t,r));return(t.ty===\"st\"||t.ty===\"gs\")&&(o.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),o.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),o.setAttribute(\"fill-opacity\",\"0\"),t.lj===1&&o.setAttribute(\"stroke-miterlimit\",t.ml)),t.r===2&&o.setAttribute(\"fill-rule\",\"evenodd\"),t.ln&&o.setAttribute(\"id\",t.ln),t.cl&&o.setAttribute(\"class\",t.cl),t.bm&&(o.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute(\"id\",t.ln),t.cl&&e.gr.setAttribute(\"class\",t.cl),t.bm&&(e.gr.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var n=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(n,n.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,n){var r=4;t.ty===\"rc\"?r=5:t.ty===\"el\"?r=6:t.ty===\"sr\"&&(r=7);var o=ShapePropertyFactory.getShapeProp(this,t,r,this),a=new SVGShapeData(e,n,o);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(t,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e=t.styles,n,r=this.stylesList.length;for(n=0;n<r;n+=1)e.indexOf(this.stylesList[n])===-1&&!this.stylesList[n].closed&&e.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,n,r,o,a,c){var l=[].concat(a),f,p=t.length-1,m,g,y=[],A=[],T,R,K;for(f=p;f>=0;f-=1){if(K=this.searchProcessedElement(t[f]),K?e[f]=n[K-1]:t[f]._render=c,t[f].ty===\"fl\"||t[f].ty===\"st\"||t[f].ty===\"gf\"||t[f].ty===\"gs\"||t[f].ty===\"no\")K?e[f].style.closed=t[f].hd:e[f]=this.createStyleElement(t[f],o),t[f]._render&&e[f].style.pElem.parentNode!==r&&r.appendChild(e[f].style.pElem),y.push(e[f].style);else if(t[f].ty===\"gr\"){if(!K)e[f]=this.createGroupElement(t[f]);else for(g=e[f].it.length,m=0;m<g;m+=1)e[f].prevViewData[m]=e[f].it[m];this.searchShapes(t[f].it,e[f].it,e[f].prevViewData,e[f].gr,o+1,l,c),t[f]._render&&e[f].gr.parentNode!==r&&r.appendChild(e[f].gr)}else t[f].ty===\"tr\"?(K||(e[f]=this.createTransformElement(t[f],r)),T=e[f].transform,l.push(T)):t[f].ty===\"sh\"||t[f].ty===\"rc\"||t[f].ty===\"el\"||t[f].ty===\"sr\"?(K||(e[f]=this.createShapeElement(t[f],l,o)),this.setElementStyles(e[f])):t[f].ty===\"tm\"||t[f].ty===\"rd\"||t[f].ty===\"ms\"||t[f].ty===\"pb\"||t[f].ty===\"zz\"||t[f].ty===\"op\"?(K?(R=e[f],R.closed=!1):(R=ShapeModifiers.getModifier(t[f].ty),R.init(this,t[f]),e[f]=R,this.shapeModifiers.push(R)),A.push(R)):t[f].ty===\"rp\"&&(K?(R=e[f],R.closed=!0):(R=ShapeModifiers.getModifier(t[f].ty),e[f]=R,R.init(this,t,f,e),this.shapeModifiers.push(R),c=!1),A.push(R));this.addProcessedElement(t[f],f+1)}for(p=y.length,f=0;f<p;f+=1)y[f].closed=!0;for(p=A.length,f=0;f<p;f+=1)A[f].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute(\"d\",this.stylesList[t].d),this.stylesList[t].d=\"M0 0\"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute(\"d\",this.stylesList[t].d||\"M0 0\"))},SVGShapeElement.prototype.renderShape=function(){var t,e=this.animatedContents.length,n;for(t=0;t<e;t+=1)n=this.animatedContents[t],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(t,e,n,r,o,a){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=o,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}LetterProps.prototype.update=function(t,e,n,r,o,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var c=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,c=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,c=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,c=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,c=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,c=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,c=!0),c};function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv=\"\",this.v=\"\",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:\"\",fStyle:\"\",fWeight:\"\",fc:\"\",j:\"\",justifyOffset:\"\",l:[],lh:0,lineWidths:[],ls:\"\",of:\"\",s:\"\",sc:\"\",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,o=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;r<o;r+=1)n!==this.keysIndex?a=this.effectsSequence[r](a,a.t):a=this.effectsSequence[r](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],n=0,r=t.length,o,a,c=!1,l=!1,f=\"\";n<r;)c=l,l=!1,o=t.charCodeAt(n),f=t.charAt(n),FontManager.isCombinedCharacter(o)?c=!0:o>=55296&&o<=56319?FontManager.isRegionalFlag(t,n)?f=t.substr(n,14):(a=t.charCodeAt(n+1),a>=56320&&a<=57343&&(FontManager.isModifier(o,a)?(f=t.substr(n,2),c=!0):FontManager.isFlagEmoji(t.substr(n,4))?f=t.substr(n,4):f=t.substr(n,2))):o>56319?(a=t.charCodeAt(n+1),FontManager.isVariationSelector(o)&&(c=!0)):FontManager.isZeroWidthJoiner(o)&&(c=!0,l=!0),c?(e[e.length-1]+=f,c=!1):e.push(f),n+=f.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,n=this.data,r=[],o,a,c,l=0,f,p=n.m.g,m=0,g=0,y=0,A=[],T=0,R=0,K,O,V=e.getFontByName(t.f),D,G=0,ee=getFontProperties(V);t.fWeight=ee.weight,t.fStyle=ee.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var J=t.tr/1e3*t.finalSize,le;if(t.sz)for(var se=!0,te=t.sz[0],S=t.sz[1],_,P;se;){P=this.buildFinalText(t.t),_=0,T=0,a=P.length,J=t.tr/1e3*t.finalSize;var z=-1;for(o=0;o<a;o+=1)le=P[o].charCodeAt(0),c=!1,P[o]===\" \"?z=o:(le===13||le===3)&&(T=0,c=!0,_+=t.finalLineHeight||t.finalSize*1.2),e.chars?(D=e.getCharData(P[o],V.fStyle,V.fFamily),G=c?0:D.w*t.finalSize/100):G=e.measureText(P[o],t.f,t.finalSize),T+G>te&&P[o]!==\" \"?(z===-1?a+=1:o=z,_+=t.finalLineHeight||t.finalSize*1.2,P.splice(o,z===o?1:0,\"\\\\r\"),z=-1,T=0):(T+=G,T+=J);_+=V.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&S<_?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,a=t.finalText.length,se=!1)}T=-J,G=0;var Y=0,L;for(o=0;o<a;o+=1)if(c=!1,L=t.finalText[o],le=L.charCodeAt(0),le===13||le===3?(Y=0,A.push(T),R=T>R?T:R,T=-2*J,f=\"\",c=!0,y+=1):f=L,e.chars?(D=e.getCharData(L,V.fStyle,e.getFontByName(t.f).fFamily),G=c?0:D.w*t.finalSize/100):G=e.measureText(f,t.f,t.finalSize),L===\" \"?Y+=G+J:(T+=G+J+Y,Y=0),r.push({l:G,an:G,add:m,n:c,anIndexes:[],val:f,line:y,animatorJustifyOffset:0}),p==2){if(m+=G,f===\"\"||f===\" \"||o===a-1){for((f===\"\"||f===\" \")&&(m-=G);g<=o;)r[g].an=m,r[g].ind=l,r[g].extra=G,g+=1;l+=1,m=0}}else if(p==3){if(m+=G,f===\"\"||o===a-1){for(f===\"\"&&(m-=G);g<=o;)r[g].an=m,r[g].ind=l,r[g].extra=G,g+=1;m=0,l+=1}}else r[l].ind=l,r[l].extra=0,l+=1;if(t.l=r,R=T>R?T:R,A.push(T),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=R,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=A;var U=n.a,W,w;O=U.length;var I,ye,ne=[];for(K=0;K<O;K+=1){for(W=U[K],W.a.sc&&(t.strokeColorAnim=!0),W.a.sw&&(t.strokeWidthAnim=!0),(W.a.fc||W.a.fh||W.a.fs||W.a.fb)&&(t.fillColorAnim=!0),ye=0,I=W.s.b,o=0;o<a;o+=1)w=r[o],w.anIndexes[K]=ye,(I==1&&w.val!==\"\"||I==2&&w.val!==\"\"&&w.val!==\" \"||I==3&&(w.n||w.val==\" \"||o==a-1)||I==4&&(w.n||o==a-1))&&(W.s.rn===1&&ne.push(ye),ye+=1);n.a[K].s.totalChars=ye;var Q=-1,ie;if(W.s.rn===1)for(o=0;o<a;o+=1)w=r[o],Q!=w.anIndexes[K]&&(Q=w.anIndexes[K],ie=ne.splice(Math.floor(Math.random()*ne.length),1)[0]),w.anIndexes[K]=ie}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=V.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var t=Math.max,e=Math.min,n=Math.floor;function r(a,c){this._currentTextLength=-1,this.k=!1,this.data=c,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,c.s||{k:0},0,0,this),\"e\"in c?this.e=PropertyFactory.getProp(a,c.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,c.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,c.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,c.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,c.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,c.a,0,.01,this),this.dynamicProperties.length||this.getValue()}r.prototype={getMult:function(c){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,f=0,p=1,m=1;this.ne.v>0?l=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?p=1-this.xe.v/100:m=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(l,f,p,m).get,y=0,A=this.finalS,T=this.finalE,R=this.data.sh;if(R===2)T===A?y=c>=T?1:0:y=t(0,e(.5/(T-A)+(c-A)/(T-A),1)),y=g(y);else if(R===3)T===A?y=c>=T?0:1:y=1-t(0,e(.5/(T-A)+(c-A)/(T-A),1)),y=g(y);else if(R===4)T===A?y=0:(y=t(0,e(.5/(T-A)+(c-A)/(T-A),1)),y<.5?y*=2:y=1-2*(y-.5)),y=g(y);else if(R===5){if(T===A)y=0;else{var K=T-A;c=e(t(0,c+.5-A),T-A);var O=-K/2+c,V=K/2;y=Math.sqrt(1-O*O/(V*V))}y=g(y)}else R===6?(T===A?y=0:(c=e(t(0,c+.5-A),T-A),y=(1+Math.cos(Math.PI+Math.PI*2*c/(T-A)))/2),y=g(y)):(c>=n(A)&&(c-A<0?y=t(0,e(e(T,1)-(A-c),1)):y=t(0,e(T-c,1))),y=g(y));if(this.sm.v!==100){var D=this.sm.v*.01;D===0&&(D=1e-8);var G=.5-D*.5;y<G?y=0:(y=(y-G)/D,y>1&&(y=1))}return y*this.a.v},getValue:function(c){this.iterateDynamicProperties(),this._mdf=c||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,c&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/l,p=this.s.v/l+f,m=this.e.v/l+f;if(p>m){var g=p;p=m,m=g}this.finalS=p,this.finalE=m}},extendPrototype([DynamicPropertyContainer],r);function o(a,c,l){return new r(a,c,l)}return{getTextSelectorProp:o}})();function TextAnimatorDataProperty(t,e,n){var r={propType:!1},o=PropertyFactory.getProp,a=e.a;this.a={r:a.r?o(t,a.r,0,degToRads,n):r,rx:a.rx?o(t,a.rx,0,degToRads,n):r,ry:a.ry?o(t,a.ry,0,degToRads,n):r,sk:a.sk?o(t,a.sk,0,degToRads,n):r,sa:a.sa?o(t,a.sa,0,degToRads,n):r,s:a.s?o(t,a.s,1,.01,n):r,a:a.a?o(t,a.a,1,0,n):r,o:a.o?o(t,a.o,0,.01,n):r,p:a.p?o(t,a.p,1,0,n):r,sw:a.sw?o(t,a.sw,0,0,n):r,sc:a.sc?o(t,a.sc,1,0,n):r,fc:a.fc?o(t,a.fc,1,0,n):r,fh:a.fh?o(t,a.fh,0,0,n):r,fs:a.fs?o(t,a.fs,0,.01,n):r,fb:a.fb?o(t,a.fb,0,.01,n):r,t:a.t?o(t,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,n,r=PropertyFactory.getProp;for(t=0;t<e;t+=1)n=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&\"m\"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,!(!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,r=this._animatorsData,o=this._textData,a=this.mHelper,c=this._renderType,l=this.renderedLetters.length,f,p,m,g,y=t.l,A,T,R,K,O,V,D,G,ee,J,le,se,te,S,_;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P=_.v;this._pathData.r.v&&(P=P.reverse()),A={tLength:0,segments:[]},g=P._length-1;var z;for(se=0,m=0;m<g;m+=1)z=bez.buildBezierData(P.v[m],P.v[m+1],[P.o[m][0]-P.v[m][0],P.o[m][1]-P.v[m][1]],[P.i[m+1][0]-P.v[m+1][0],P.i[m+1][1]-P.v[m+1][1]]),A.tLength+=z.segmentLength,A.segments.push(z),se+=z.segmentLength;m=g,_.v.c&&(z=bez.buildBezierData(P.v[m],P.v[0],[P.o[m][0]-P.v[m][0],P.o[m][1]-P.v[m][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),A.tLength+=z.segmentLength,A.segments.push(z),se+=z.segmentLength),this._pathData.pi=A}if(A=this._pathData.pi,T=this._pathData.f.v,D=0,V=1,K=0,O=!0,J=A.segments,T<0&&_.v.c)for(A.tLength<Math.abs(T)&&(T=-Math.abs(T)%A.tLength),D=J.length-1,ee=J[D].points,V=ee.length-1;T<0;)T+=ee[V].partialLength,V-=1,V<0&&(D-=1,ee=J[D].points,V=ee.length-1);ee=J[D].points,G=ee[V-1],R=ee[V],le=R.partialLength}g=y.length,f=0,p=0;var Y=t.finalSize*1.2*.714,L=!0,U,W,w,I,ye;I=r.length;var ne,Q=-1,ie,ue,q,Ee=T,we=D,_e=V,B=-1,k,C,Z,X,ae,de,me,Pe,De=\"\",Re=this.defaultPropsArray,qe;if(t.j===2||t.j===1){var et=0,ot=0,Qe=t.j===2?-.5:-1,xt=0,Wt=!0;for(m=0;m<g;m+=1)if(y[m].n){for(et&&(et+=ot);xt<m;)y[xt].animatorJustifyOffset=et,xt+=1;et=0,Wt=!0}else{for(w=0;w<I;w+=1)U=r[w].a,U.t.propType&&(Wt&&t.j===2&&(ot+=U.t.v*Qe),W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),ne.length?et+=U.t.v*ne[0]*Qe:et+=U.t.v*ne*Qe);Wt=!1}for(et&&(et+=ot);xt<m;)y[xt].animatorJustifyOffset=et,xt+=1}for(m=0;m<g;m+=1){if(a.reset(),k=1,y[m].n)f=0,p+=t.yOffset,p+=L?1:0,T=Ee,L=!1,this._hasMaskedPath&&(D=we,V=_e,ee=J[D].points,G=ee[V-1],R=ee[V],le=R.partialLength,K=0),De=\"\",Pe=\"\",de=\"\",qe=\"\",Re=this.defaultPropsArray;else{if(this._hasMaskedPath){if(B!==y[m].line){switch(t.j){case 1:T+=se-t.lineWidths[y[m].line];break;case 2:T+=(se-t.lineWidths[y[m].line])/2;break;default:break}B=y[m].line}Q!==y[m].ind&&(y[Q]&&(T+=y[Q].extra),T+=y[m].an/2,Q=y[m].ind),T+=n[0]*y[m].an*.005;var Vt=0;for(w=0;w<I;w+=1)U=r[w].a,U.p.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),ne.length?Vt+=U.p.v[0]*ne[0]:Vt+=U.p.v[0]*ne),U.a.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),ne.length?Vt+=U.a.v[0]*ne[0]:Vt+=U.a.v[0]*ne);for(O=!0,this._pathData.a.v&&(T=y[0].an*.5+(se-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*Q/(g-1),T+=this._pathData.f.v);O;)K+le>=T+Vt||!ee?(te=(T+Vt-K)/R.partialLength,ue=G.point[0]+(R.point[0]-G.point[0])*te,q=G.point[1]+(R.point[1]-G.point[1])*te,a.translate(-n[0]*y[m].an*.005,-(n[1]*Y)*.01),O=!1):ee&&(K+=R.partialLength,V+=1,V>=ee.length&&(V=0,D+=1,J[D]?ee=J[D].points:_.v.c?(V=0,D=0,ee=J[D].points):(K-=R.partialLength,ee=null)),ee&&(G=R,R=ee[V],le=R.partialLength));ie=y[m].an/2-y[m].add,a.translate(-ie,0,0)}else ie=y[m].an/2-y[m].add,a.translate(-ie,0,0),a.translate(-n[0]*y[m].an*.005,-n[1]*Y*.01,0);for(w=0;w<I;w+=1)U=r[w].a,U.t.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?ne.length?T+=U.t.v*ne[0]:T+=U.t.v*ne:ne.length?f+=U.t.v*ne[0]:f+=U.t.v*ne));for(t.strokeWidthAnim&&(Z=t.sw||0),t.strokeColorAnim&&(t.sc?C=[t.sc[0],t.sc[1],t.sc[2]]:C=[0,0,0]),t.fillColorAnim&&t.fc&&(X=[t.fc[0],t.fc[1],t.fc[2]]),w=0;w<I;w+=1)U=r[w].a,U.a.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),ne.length?a.translate(-U.a.v[0]*ne[0],-U.a.v[1]*ne[1],U.a.v[2]*ne[2]):a.translate(-U.a.v[0]*ne,-U.a.v[1]*ne,U.a.v[2]*ne));for(w=0;w<I;w+=1)U=r[w].a,U.s.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),ne.length?a.scale(1+(U.s.v[0]-1)*ne[0],1+(U.s.v[1]-1)*ne[1],1):a.scale(1+(U.s.v[0]-1)*ne,1+(U.s.v[1]-1)*ne,1));for(w=0;w<I;w+=1){if(U=r[w].a,W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),U.sk.propType&&(ne.length?a.skewFromAxis(-U.sk.v*ne[0],U.sa.v*ne[1]):a.skewFromAxis(-U.sk.v*ne,U.sa.v*ne)),U.r.propType&&(ne.length?a.rotateZ(-U.r.v*ne[2]):a.rotateZ(-U.r.v*ne)),U.ry.propType&&(ne.length?a.rotateY(U.ry.v*ne[1]):a.rotateY(U.ry.v*ne)),U.rx.propType&&(ne.length?a.rotateX(U.rx.v*ne[0]):a.rotateX(U.rx.v*ne)),U.o.propType&&(ne.length?k+=(U.o.v*ne[0]-k)*ne[0]:k+=(U.o.v*ne-k)*ne),t.strokeWidthAnim&&U.sw.propType&&(ne.length?Z+=U.sw.v*ne[0]:Z+=U.sw.v*ne),t.strokeColorAnim&&U.sc.propType)for(ae=0;ae<3;ae+=1)ne.length?C[ae]+=(U.sc.v[ae]-C[ae])*ne[0]:C[ae]+=(U.sc.v[ae]-C[ae])*ne;if(t.fillColorAnim&&t.fc){if(U.fc.propType)for(ae=0;ae<3;ae+=1)ne.length?X[ae]+=(U.fc.v[ae]-X[ae])*ne[0]:X[ae]+=(U.fc.v[ae]-X[ae])*ne;U.fh.propType&&(ne.length?X=addHueToRGB(X,U.fh.v*ne[0]):X=addHueToRGB(X,U.fh.v*ne)),U.fs.propType&&(ne.length?X=addSaturationToRGB(X,U.fs.v*ne[0]):X=addSaturationToRGB(X,U.fs.v*ne)),U.fb.propType&&(ne.length?X=addBrightnessToRGB(X,U.fb.v*ne[0]):X=addBrightnessToRGB(X,U.fb.v*ne))}}for(w=0;w<I;w+=1)U=r[w].a,U.p.propType&&(W=r[w].s,ne=W.getMult(y[m].anIndexes[w],o.a[w].s.totalChars),this._hasMaskedPath?ne.length?a.translate(0,U.p.v[1]*ne[0],-U.p.v[2]*ne[1]):a.translate(0,U.p.v[1]*ne,-U.p.v[2]*ne):ne.length?a.translate(U.p.v[0]*ne[0],U.p.v[1]*ne[1],-U.p.v[2]*ne[2]):a.translate(U.p.v[0]*ne,U.p.v[1]*ne,-U.p.v[2]*ne));if(t.strokeWidthAnim&&(de=Z<0?0:Z),t.strokeColorAnim&&(me=\"rgb(\"+Math.round(C[0]*255)+\",\"+Math.round(C[1]*255)+\",\"+Math.round(C[2]*255)+\")\"),t.fillColorAnim&&t.fc&&(Pe=\"rgb(\"+Math.round(X[0]*255)+\",\"+Math.round(X[1]*255)+\",\"+Math.round(X[2]*255)+\")\"),this._hasMaskedPath){if(a.translate(0,-t.ls),a.translate(0,n[1]*Y*.01+p,0),this._pathData.p.v){S=(R.point[1]-G.point[1])/(R.point[0]-G.point[0]);var Bt=Math.atan(S)*180/Math.PI;R.point[0]<G.point[0]&&(Bt+=180),a.rotate(-Bt*Math.PI/180)}a.translate(ue,q,0),T-=n[0]*y[m].an*.005,y[m+1]&&Q!==y[m+1].ind&&(T+=y[m].an/2,T+=t.tr*.001*t.finalSize)}else{switch(a.translate(f,p,0),t.ps&&a.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:a.translate(y[m].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[m].line]),0,0);break;case 2:a.translate(y[m].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[m].line])/2,0,0);break;default:break}a.translate(0,-t.ls),a.translate(ie,0,0),a.translate(n[0]*y[m].an*.005,n[1]*Y*.01,0),f+=y[m].l+t.tr*.001*t.finalSize}c===\"html\"?De=a.toCSS():c===\"svg\"?De=a.to2dCSS():Re=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],qe=k}l<=m?(ye=new LetterProps(qe,de,me,Pe,De,Re),this.renderedLetters.push(ye),l+=1,this.lettersChangedFlag=!0):(ye=this.renderedLetters[m],this.lettersChangedFlag=ye.update(qe,de,me,Pe,De,Re)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var n,r=e.length,o,a=\"\";for(n=0;n<r;n+=1)e[n].ty===\"sh\"&&(o=e[n].ks.k,a+=buildShapeString(o,o.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,o){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0);break;default:break}e.translate(r,o,0)},ITextElement.prototype.buildColor=function(t){return\"rgb(\"+Math.round(t[0]*255)+\",\"+Math.round(t[1]*255)+\",\"+Math.round(t[2]*255)+\")\"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,n){this.textSpans=[],this.renderType=\"svg\",this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS(\"text\"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,n=t.length,r=[],o=\"\";e<n;)t[e]===\"\\\\r\"||t[e]===\"\\u0003\"?(r.push(o),o=\"\"):o+=t[e],e+=1;return r.push(o),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute(\"fill\",this.buildColor(n.fc)):this.layerElement.setAttribute(\"fill\",\"rgba(0,0,0,0)\"),n.sc&&(this.layerElement.setAttribute(\"stroke\",this.buildColor(n.sc)),this.layerElement.setAttribute(\"stroke-width\",n.sw)),this.layerElement.setAttribute(\"font-size\",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute(\"class\",r.fClass);else{this.layerElement.setAttribute(\"font-family\",r.fFamily);var o=n.fWeight,a=n.fStyle;this.layerElement.setAttribute(\"font-style\",a),this.layerElement.setAttribute(\"font-weight\",o)}this.layerElement.setAttribute(\"aria-label\",n.t);var c=n.l||[],l=!!this.globalData.fontManager.chars;e=c.length;var f,p=this.mHelper,m=\"\",g=this.data.singleShape,y=0,A=0,T=!0,R=n.tr*.001*n.finalSize;if(g&&!l&&!n.sz){var K=this.textContainer,O=\"start\";switch(n.j){case 1:O=\"end\";break;case 2:O=\"middle\";break;default:O=\"start\";break}K.setAttribute(\"text-anchor\",O),K.setAttribute(\"letter-spacing\",R);var V=this.buildTextContents(n.finalText);for(e=V.length,A=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)f=this.textSpans[t].span||createNS(\"tspan\"),f.textContent=V[t],f.setAttribute(\"x\",0),f.setAttribute(\"y\",A),f.style.display=\"inherit\",K.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,A+=n.finalLineHeight;this.layerElement.appendChild(K)}else{var D=this.textSpans.length,G;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!g||t===0){if(f=D>t?this.textSpans[t].span:createNS(l?\"g\":\"text\"),D<=t){if(f.setAttribute(\"stroke-linecap\",\"butt\"),f.setAttribute(\"stroke-linejoin\",\"round\"),f.setAttribute(\"stroke-miterlimit\",\"4\"),this.textSpans[t].span=f,l){var ee=createNS(\"g\");f.appendChild(ee),this.textSpans[t].childSpan=ee}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display=\"inherit\"}if(p.reset(),g&&(c[t].n&&(y=-R,A+=n.yOffset,A+=T?1:0,T=!1),this.applyTextPropertiesToMatrix(n,p,c[t].line,y,A),y+=c[t].l||0,y+=R),l){G=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var J;if(G.t===1)J=new SVGCompElement(G.data,this.globalData,this);else{var le=emptyShapeData;G.data&&G.data.shapes&&(le=this.buildShapeData(G.data,n.finalSize)),J=new SVGShapeElement(le,this.globalData,this)}if(this.textSpans[t].glyph){var se=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(se.layerElement),se.destroy()}this.textSpans[t].glyph=J,J._debug=!0,J.prepareFrame(0),J.renderFrame(),this.textSpans[t].childSpan.appendChild(J.layerElement),G.t===1&&this.textSpans[t].childSpan.setAttribute(\"transform\",\"scale(\"+n.finalSize/100+\",\"+n.finalSize/100+\")\")}else g&&f.setAttribute(\"transform\",\"translate(\"+p.props[12]+\",\"+p.props[13]+\")\"),f.textContent=c[t].val,f.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\")}g&&f&&f.setAttribute(\"d\",m)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display=\"none\",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<e;t+=1)n=this.textSpans[t].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,n=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;e=r.length;var o,a,c;for(t=0;t<e;t+=1)r[t].n||(o=n[t],a=this.textSpans[t].span,c=this.textSpans[t].glyph,c&&c.renderFrame(),o._mdf.m&&a.setAttribute(\"transform\",o.m),o._mdf.o&&a.setAttribute(\"opacity\",o.o),o._mdf.sw&&a.setAttribute(\"stroke-width\",o.sw),o._mdf.sc&&a.setAttribute(\"stroke\",o.sc),o._mdf.fc&&a.setAttribute(\"fill\",o.fc))}};function ISolidElement(t,e,n){this.initElement(t,e,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS(\"rect\");t.setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.layerElement.appendChild(t)};function NullElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),this.svgElement.setAttribute(\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute(\"viewBox\",this.renderConfig.viewBoxSize):this.svgElement.setAttribute(\"viewBox\",\"0 0 \"+t.w+\" \"+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute(\"width\",t.w),this.svgElement.setAttribute(\"height\",t.h),this.svgElement.style.width=\"100%\",this.svgElement.style.height=\"100%\",this.svgElement.style.transform=\"translate3d(0,0,0)\",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute(\"width\",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute(\"height\",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute(\"id\",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute(\"focusable\",this.renderConfig.focusable),this.svgElement.setAttribute(\"preserveAspectRatio\",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=createNS(\"clipPath\"),r=createNS(\"rect\");r.setAttribute(\"width\",t.w),r.setAttribute(\"height\",t.h),r.setAttribute(\"x\",0),r.setAttribute(\"y\",0);var o=createElementID();n.setAttribute(\"id\",o),n.appendChild(r),this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+o+\")\"),e.appendChild(n),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r=\"tp\"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(r===-1)return;if(!this.elements[r]||this.elements[r]===!0)this.buildItem(r),this.addPendingElement(n);else{var o=e[r],a=o.getMatte(this.layers[t].tt);n.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r=\"tp\"in t.data?this.findIndexByInd(t.data.tp):e-1,o=this.elements[r],a=o.getMatte(this.layers[e].tt);t.setMatte(a);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r=0,o;r<e;)this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement()&&(o=this.elements[r].getBaseElement()),r+=1;o?this.layerElement.insertBefore(n,o):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display=\"none\"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display=\"block\"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS(\"svg\");var n=\"\";if(e&&e.title){var r=createNS(\"title\"),o=createElementID();r.setAttribute(\"id\",o),r.textContent=e.title,this.svgElement.appendChild(r),n+=o}if(e&&e.description){var a=createNS(\"desc\"),c=createElementID();a.setAttribute(\"id\",c),a.textContent=e.description,this.svgElement.appendChild(a),n+=\" \"+c}n&&this.svgElement.setAttribute(\"aria-labelledby\",n);var l=createNS(\"defs\");this.svgElement.appendChild(l);var f=createNS(\"g\");this.svgElement.appendChild(f),this.layerElement=f,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||\"\",id:e&&e.id||\"\",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"100%\",height:e&&e.filterSize&&e.filterSize.height||\"100%\",x:e&&e.filterSize&&e.filterSize.x||\"0%\",y:e&&e.filterSize&&e.filterSize.y||\"0%\"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType=\"svg\"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(e){var n,r=e.length,o=\"_\";for(n=0;n<r;n+=1)o+=e[n].transform.key+\"_\";var a=this.sequences[o];return a||(a={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[o]=a,this.sequenceList.push(a)),a},processSequence:function(e,n){for(var r=0,o=e.transforms.length,a=n;r<o&&!n;){if(e.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(e.finalTransform.reset(),r=o-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=a},processSequences:function(e){var n,r=this.sequenceList.length;for(n=0;n<r;n+=1)this.processSequence(this.sequenceList[n],e)},getNewKey:function(){return this.transform_key_count+=1,\"_\"+this.transform_key_count}};var lumaLoader=function(){var e=\"__lottie_element_luma_buffer\",n=null,r=null,o=null;function a(){var f=createNS(\"svg\"),p=createNS(\"filter\"),m=createNS(\"feColorMatrix\");return p.setAttribute(\"id\",e),m.setAttribute(\"type\",\"matrix\"),m.setAttribute(\"color-interpolation-filters\",\"sRGB\"),m.setAttribute(\"values\",\"0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0\"),p.appendChild(m),f.appendChild(p),f.setAttribute(\"id\",e+\"_svg\"),featureSupport.svgLumaHidden&&(f.style.display=\"none\"),f}function c(){n||(o=a(),document.body.appendChild(o),n=createTag(\"canvas\"),r=n.getContext(\"2d\"),r.filter=\"url(#\"+e+\")\",r.fillStyle=\"rgba(0,0,0,0)\",r.fillRect(0,0,1,1))}function l(f){return n||c(),n.width=f.width,n.height=f.height,r.filter=\"url(#\"+e+\")\",n}return{load:c,get:l}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var n=createTag(\"canvas\");return n.width=t,n.height=e,n}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(t){var e,n=t.data.ef?t.data.ef.length:0;this.filters=[];var r;for(e=0;e<n;e+=1){r=null;var o=t.data.ef[e].ty;if(registeredEffects[o]){var a=registeredEffects[o].effect;r=new a(t.effectsManager.effectElements[e],t)}r&&this.filters.push(r)}this.filters.length&&t.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r};function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,r=this.masksProperties.length,o=!1;for(n=0;n<r;n+=1)this.masksProperties[n].mode!==\"n\"&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,n,r=this.masksProperties.length,o,a,c;for(e.beginPath(),n=0;n<r;n+=1)if(this.masksProperties[n].mode!==\"n\"){this.masksProperties[n].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),c=this.viewData[n].v,o=t.applyToPointArray(c.v[0][0],c.v[0][1],0),e.moveTo(o[0],o[1]);var l,f=c._length;for(l=1;l<f;l+=1)a=t.applyToTriplePoints(c.o[l-1],c.i[l],c.v[l]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=t.applyToTriplePoints(c.o[l-1],c.i[0],c.v[0]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:\"source-in\",2:\"source-out\",3:\"source-in\",4:\"source-out\"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0],n=e.getContext(\"2d\");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],n=e.getContext(\"2d\");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var r=this.comp.getElementById(\"tp\"in this.data?this.data.tp:this.data.ind-1);if(r.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=o.getContext(\"2d\");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation=\"destination-over\",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation=\"source-over\"}},renderFrame:function(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;e.ty===\"rc\"?o=5:e.ty===\"el\"?o=6:e.ty===\"sr\"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var a,c=n.length,l;for(a=0;a<c;a+=1)n[a].closed||(l={transforms:r.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(l),n[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var n={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},r={};if(t.ty===\"fl\"||t.ty===\"st\"?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(n.co=\"rgb(\"+bmFloor(r.c.v[0])+\",\"+bmFloor(r.c.v[1])+\",\"+bmFloor(r.c.v[2])+\")\")):(t.ty===\"gf\"||t.ty===\"gs\")&&(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty===\"st\"||t.ty===\"gs\"){if(n.lc=lineCapEnum[t.lc||2],n.lj=lineJoinEnum[t.lj||2],t.lj==1&&(n.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(n.wi=r.w.v),t.d){var o=new DashProperty(this,t.d,\"canvas\",this);r.d=o,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=t.r===2?\"evenodd\":\"nonzero\";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t},CVShapeElement.prototype.createTransformElement=function(t){var e={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return e},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,r,o){var a,c=t.length-1,l,f,p=[],m=[],g,y,A,T=[].concat(o);for(a=c;a>=0;a-=1){if(g=this.searchProcessedElement(t[a]),g?e[a]=n[g-1]:t[a]._shouldRender=r,t[a].ty===\"fl\"||t[a].ty===\"st\"||t[a].ty===\"gf\"||t[a].ty===\"gs\")g?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],T),p.push(e[a].style);else if(t[a].ty===\"gr\"){if(!g)e[a]=this.createGroupElement(t[a]);else for(f=e[a].it.length,l=0;l<f;l+=1)e[a].prevViewData[l]=e[a].it[l];this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,r,T)}else t[a].ty===\"tr\"?(g||(A=this.createTransformElement(t[a]),e[a]=A),T.push(e[a]),this.addTransformToStyleList(e[a])):t[a].ty===\"sh\"||t[a].ty===\"rc\"||t[a].ty===\"el\"||t[a].ty===\"sr\"?g||(e[a]=this.createShapeElement(t[a])):t[a].ty===\"tm\"||t[a].ty===\"rd\"||t[a].ty===\"pb\"||t[a].ty===\"zz\"||t[a].ty===\"op\"?(g?(y=e[a],y.closed=!1):(y=ShapeModifiers.getModifier(t[a].ty),y.init(this,t[a]),e[a]=y,this.shapeModifiers.push(y)),m.push(y)):t[a].ty===\"rp\"&&(g?(y=e[a],y.closed=!0):(y=ShapeModifiers.getModifier(t[a].ty),e[a]=y,y.init(this,t,a,e),this.shapeModifiers.push(y),r=!1),m.push(y));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),c=m.length,a=0;a<c;a+=1)m[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e=this.stylesList.length,n,r,o,a,c,l,f=this.globalData.renderer,p=this.globalData.canvasContext,m,g;for(t=0;t<e;t+=1)if(g=this.stylesList[t],m=g.type,!((m===\"st\"||m===\"gs\")&&g.wi===0||!g.data._shouldRender||g.coOp===0||this.globalData.currentGlobalAlpha===0)){for(f.save(),c=g.elements,m===\"st\"||m===\"gs\"?(f.ctxStrokeStyle(m===\"st\"?g.co:g.grd),f.ctxLineWidth(g.wi),f.ctxLineCap(g.lc),f.ctxLineJoin(g.lj),f.ctxMiterLimit(g.ml||0)):f.ctxFillStyle(m===\"fl\"?g.co:g.grd),f.ctxOpacity(g.coOp),m!==\"st\"&&m!==\"gs\"&&p.beginPath(),f.ctxTransform(g.preTransforms.finalTransform.props),r=c.length,n=0;n<r;n+=1){for((m===\"st\"||m===\"gs\")&&(p.beginPath(),g.da&&(p.setLineDash(g.da),p.lineDashOffset=g.do)),l=c[n].trNodes,a=l.length,o=0;o<a;o+=1)l[o].t===\"m\"?p.moveTo(l[o].p[0],l[o].p[1]):l[o].t===\"c\"?p.bezierCurveTo(l[o].pts[0],l[o].pts[1],l[o].pts[2],l[o].pts[3],l[o].pts[4],l[o].pts[5]):p.closePath();(m===\"st\"||m===\"gs\")&&(f.ctxStroke(),g.da&&p.setLineDash(this.dashResetter))}m!==\"st\"&&m!==\"gs\"&&this.globalData.renderer.ctxFill(g.r),f.restore()}},CVShapeElement.prototype.renderShape=function(t,e,n,r){var o,a=e.length-1,c;for(c=t,o=a;o>=0;o-=1)e[o].ty===\"tr\"?(c=n[o].transform,this.renderShapeTransform(t,c)):e[o].ty===\"sh\"||e[o].ty===\"el\"||e[o].ty===\"rc\"||e[o].ty===\"sr\"?this.renderPath(e[o],n[o]):e[o].ty===\"fl\"?this.renderFill(e[o],n[o],c):e[o].ty===\"st\"?this.renderStroke(e[o],n[o],c):e[o].ty===\"gf\"||e[o].ty===\"gs\"?this.renderGradientFill(e[o],n[o],c):e[o].ty===\"gr\"?this.renderShape(c,e[o].it,n[o].it):e[o].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var n=t.trNodes,r=e.paths,o,a,c,l=r._length;n.length=0;var f=t.transforms.finalTransform;for(c=0;c<l;c+=1){var p=r.shapes[c];if(p&&p.v){for(a=p._length,o=1;o<a;o+=1)o===1&&n.push({t:\"m\",p:f.applyToPointArray(p.v[0][0],p.v[0][1],0)}),n.push({t:\"c\",pts:f.applyToTriplePoints(p.o[o-1],p.i[o],p.v[o])});a===1&&n.push({t:\"m\",p:f.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&a&&(n.push({t:\"c\",pts:f.applyToTriplePoints(p.o[o-1],p.i[0],p.v[0])}),n.push({t:\"z\"}))}}t.trNodes=n}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var n,r=e.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(e.styledShapes[n],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var r=e.style,o;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var a=this.globalData.canvasContext,c=e.s.v,l=e.e.v;if(t.t===1)o=a.createLinearGradient(c[0],c[1],l[0],l[1]);else{var f=Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)),p=Math.atan2(l[1]-c[1],l[0]-c[0]),m=e.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var g=f*m,y=Math.cos(p+e.a.v)*g+c[0],A=Math.sin(p+e.a.v)*g+c[1];o=a.createRadialGradient(y,A,0,c[0],c[1],f)}var T,R=t.g.p,K=e.g.c,O=1;for(T=0;T<R;T+=1)e.g._hasOpacity&&e.g._collapsable&&(O=e.g.o[T*2+1]),o.addColorStop(K[T*4]/100,\"rgba(\"+K[T*4+1]+\",\"+K[T*4+2]+\",\"+K[T*4+3]+\",\"+O+\")\");r.grd=o}r.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(t,e,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType=\"canvas\",this.values={fill:\"rgba(0,0,0,0)\",stroke:\"rgba(0,0,0,0)\",sWidth:0,fValue:\"\"},this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag(\"canvas\").getContext(\"2d\"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill=\"rgba(0,0,0,0)\",this.fill=e;var n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r=this.globalData.fontManager.getFontByName(t.f),o,a,c=t.l,l=this.mHelper;this.stroke=n,this.values.fValue=t.finalSize+\"px \"+this.globalData.fontManager.getFontByName(t.f).fFamily,a=t.finalText.length;var f,p,m,g,y,A,T,R,K,O,V=this.data.singleShape,D=t.tr*.001*t.finalSize,G=0,ee=0,J=!0,le=0;for(o=0;o<a;o+=1){f=this.globalData.fontManager.getCharData(t.finalText[o],r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),p=f&&f.data||{},l.reset(),V&&c[o].n&&(G=-D,ee+=t.yOffset,ee+=J?1:0,J=!1),y=p.shapes?p.shapes[0].it:[],T=y.length,l.scale(t.finalSize/100,t.finalSize/100),V&&this.applyTextPropertiesToMatrix(t,l,c[o].line,G,ee),K=createSizedArray(T-1);var se=0;for(A=0;A<T;A+=1)if(y[A].ty===\"sh\"){for(g=y[A].ks.k.i.length,R=y[A].ks.k,O=[],m=1;m<g;m+=1)m===1&&O.push(l.applyToX(R.v[0][0],R.v[0][1],0),l.applyToY(R.v[0][0],R.v[0][1],0)),O.push(l.applyToX(R.o[m-1][0],R.o[m-1][1],0),l.applyToY(R.o[m-1][0],R.o[m-1][1],0),l.applyToX(R.i[m][0],R.i[m][1],0),l.applyToY(R.i[m][0],R.i[m][1],0),l.applyToX(R.v[m][0],R.v[m][1],0),l.applyToY(R.v[m][0],R.v[m][1],0));O.push(l.applyToX(R.o[m-1][0],R.o[m-1][1],0),l.applyToY(R.o[m-1][0],R.o[m-1][1],0),l.applyToX(R.i[0][0],R.i[0][1],0),l.applyToY(R.i[0][0],R.i[0][1],0),l.applyToX(R.v[0][0],R.v[0][1],0),l.applyToY(R.v[0][0],R.v[0][1],0)),K[se]=O,se+=1}V&&(G+=c[o].l,G+=D),this.textSpans[le]?this.textSpans[le].elem=K:this.textSpans[le]={elem:K},le+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.font=this.values.fValue,this.globalData.renderer.ctxLineCap(\"butt\"),this.globalData.renderer.ctxLineJoin(\"miter\"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var e,n,r,o,a,c,l=this.textAnimator.renderedLetters,f=this.textProperty.currentData.l;n=f.length;var p,m=null,g=null,y=null,A,T,R=this.globalData.renderer;for(e=0;e<n;e+=1)if(!f[e].n){if(p=l[e],p&&(R.save(),R.ctxTransform(p.p),R.ctxOpacity(p.o)),this.fill){for(p&&p.fc?m!==p.fc&&(R.ctxFillStyle(p.fc),m=p.fc):m!==this.values.fill&&(m=this.values.fill,R.ctxFillStyle(this.values.fill)),A=this.textSpans[e].elem,o=A.length,this.globalData.canvasContext.beginPath(),r=0;r<o;r+=1)for(T=A[r],c=T.length,this.globalData.canvasContext.moveTo(T[0],T[1]),a=2;a<c;a+=6)this.globalData.canvasContext.bezierCurveTo(T[a],T[a+1],T[a+2],T[a+3],T[a+4],T[a+5]);this.globalData.canvasContext.closePath(),R.ctxFill()}if(this.stroke){for(p&&p.sw?y!==p.sw&&(y=p.sw,R.ctxLineWidth(p.sw)):y!==this.values.sWidth&&(y=this.values.sWidth,R.ctxLineWidth(this.values.sWidth)),p&&p.sc?g!==p.sc&&(g=p.sc,R.ctxStrokeStyle(p.sc)):g!==this.values.stroke&&(g=this.values.stroke,R.ctxStrokeStyle(this.values.stroke)),A=this.textSpans[e].elem,o=A.length,this.globalData.canvasContext.beginPath(),r=0;r<o;r+=1)for(T=A[r],c=T.length,this.globalData.canvasContext.moveTo(T[0],T[1]),a=2;a<c;a+=6)this.globalData.canvasContext.bezierCurveTo(T[a],T[a+1],T[a+2],T[a+3],T[a+4],T[a+5]);this.globalData.canvasContext.closePath(),R.ctxStroke()}p&&this.globalData.renderer.restore()}};function CVImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag(\"canvas\");t.width=this.assetData.w,t.height=this.assetData.h;var e=t.getContext(\"2d\"),n=this.img.width,r=this.img.height,o=n/r,a=this.assetData.w/this.assetData.h,c,l,f=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&f===\"xMidYMid slice\"||o<a&&f!==\"xMidYMid slice\"?(l=r,c=l*a):(c=n,l=c/a),e.drawImage(this.img,(n-c)/2,(r-l)/2,c,l,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,e,n){this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,n,r){this.canvasContext.fillRect(t,e,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode=\"source-over\"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag(\"canvas\");var e=this.animationItem.container.style;e.width=\"100%\",e.height=\"100%\";var n=\"0px 0px 0px\";e.transformOrigin=n,e.mozTransformOrigin=n,e.webkitTransformOrigin=n,e[\"-webkit-transform\"]=n,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext(\"2d\"),this.renderConfig.className&&this.animationItem.container.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute(\"id\",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){this.reset();var n,r;t?(n=t,r=e,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr);var o,a;if(this.renderConfig.preserveAspectRatio.indexOf(\"meet\")!==-1||this.renderConfig.preserveAspectRatio.indexOf(\"slice\")!==-1){var c=this.renderConfig.preserveAspectRatio.split(\" \"),l=c[1]||\"meet\",f=c[0]||\"xMidYMid\",p=f.substr(0,4),m=f.substr(4);o=n/r,a=this.transformCanvas.w/this.transformCanvas.h,a>o&&l===\"meet\"||a<o&&l===\"slice\"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),p===\"xMid\"&&(a<o&&l===\"meet\"||a>o&&l===\"slice\")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:p===\"xMax\"&&(a<o&&l===\"meet\"||a>o&&l===\"slice\")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,m===\"YMid\"&&(a>o&&l===\"meet\"||a<o&&l===\"slice\")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:m===\"YMax\"&&(a>o&&l===\"meet\"||a<o&&l===\"slice\")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio===\"none\"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\");var t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var n=this.createItem(this.layers[t],this,this.globalData);e[t]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display=\"none\"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display=\"block\"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray(\"float32\",16),this.fillStyle=\"\",this.strokeStyle=\"\",this.lineWidth=\"\",this.lineCap=\"\",this.lineJoin=\"\",this.miterLimit=\"\",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t<e;t+=1){var n=new CanvasContext;this.stack[t]=n}this._length=e,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle=\"\",this.appliedFillStyle=\"\",this.currentStrokeStyle=\"\",this.appliedStrokeStyle=\"\",this.currentLineWidth=\"\",this.appliedLineWidth=\"\",this.currentLineCap=\"\",this.appliedLineCap=\"\",this.currentLineJoin=\"\",this.appliedLineJoin=\"\",this.appliedMiterLimit=\"\",this.currentMiterLimit=\"\"}CVContextData.prototype.duplicate=function(){var t=this._length*2,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e=this.stack[this.cArrPos],n=e.transform,r,o=this.cTr.props;for(r=0;r<16;r+=1)o[r]=n[r];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(t||e.opacity!==-1&&this.currentOpacity!==e.opacity)&&(this.nativeContext.globalAlpha=e.opacity,this.currentOpacity=e.opacity),this.currentFillStyle=e.fillStyle,this.currentStrokeStyle=e.strokeStyle,this.currentLineWidth=e.lineWidth,this.currentLineCap=e.lineCap,this.currentLineJoin=e.lineJoin,this.currentMiterLimit=e.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],r;for(r=0;r<16;r+=1)n.transform[r]=e[r];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=n.opacity,o.fillStyle=n.fillStyle,o.strokeStyle=n.strokeStyle,o.lineWidth=n.lineWidth,o.lineCap=n.lineCap,o.lineJoin=n.lineJoin,o.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var n=e.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(t,e,n){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,n=this.layers.length;for(e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",className:e&&e.className||\"\",id:e&&e.id||\"\",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType=\"canvas\",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||\"div\"),this.data.hasMask?(this.svgElement=createNS(\"svg\"),this.layerElement=createNS(\"g\"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();e.transform=n,e.webkitTransform=n}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,n){this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS(\"rect\"),t.setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.svgElement.setAttribute(\"width\",this.data.sw),this.svgElement.setAttribute(\"height\",this.data.sh)):(t=createTag(\"div\"),t.style.width=this.data.sw+\"px\",t.style.height=this.data.sh+\"px\",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS(\"g\"),this.initElement(t,e,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS(\"svg\");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute(\"width\",e.w),t.setAttribute(\"height\",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e=t[n].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var n=t.sh.v,r=t.transformers,o,a=n._length,c,l,f,p;if(!(a<=1)){for(o=0;o<a-1;o+=1)c=this.getTransformedPoint(r,n.v[o]),l=this.getTransformedPoint(r,n.o[o]),f=this.getTransformedPoint(r,n.i[o+1]),p=this.getTransformedPoint(r,n.v[o+1]),this.checkBounds(c,l,f,p,e);n.c&&(c=this.getTransformedPoint(r,n.v[o]),l=this.getTransformedPoint(r,n.o[o]),f=this.getTransformedPoint(r,n.i[0]),p=this.getTransformedPoint(r,n.v[0]),this.checkBounds(c,l,f,p,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,r,o){this.getBoundsOfCurve(t,e,n,r);var a=this.shapeBoundingBox;o.x=bmMin(a.left,o.x),o.xMax=bmMax(a.right,o.xMax),o.y=bmMin(a.top,o.y),o.yMax=bmMax(a.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,n,r){for(var o=[[t[0],r[0]],[t[1],r[1]]],a,c,l,f,p,m,g,y=0;y<2;++y)c=6*t[y]-12*e[y]+6*n[y],a=-3*t[y]+9*e[y]-9*n[y]+3*r[y],l=3*e[y]-3*t[y],c|=0,a|=0,l|=0,a===0&&c===0||(a===0?(f=-l/c,f>0&&f<1&&o[y].push(this.calculateF(f,t,e,n,r,y))):(p=c*c-4*l*a,p>=0&&(m=(-c+bmSqrt(p))/(2*a),m>0&&m<1&&o[y].push(this.calculateF(m,t,e,n,r,y)),g=(-c-bmSqrt(p))/(2*a),g>0&&g<1&&o[y].push(this.calculateF(g,t,e,n,r,y)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(t,e,n,r,o,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*n[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*o[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]&&t[n].sh?this.calculateShapeBoundingBox(t[n],e):t[n]&&t[n].it?this.calculateBoundingBox(t[n].it,e):t[n]&&t[n].style&&t[n].w&&this.expandStrokeBoundingBox(t[n].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var n=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var o=t.keyframes[r].s;o>n&&(n=o)}n*=t.mult}else n=t.v*t.mult;e.x-=n,e.xMax+=n,e.y-=n,e.yMax+=n},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var n=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute(\"width\",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute(\"height\",t.height),n=!0),n||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h);var r=this.shapeCont.style,o=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";r.transform=o,r.webkitTransform=o}}};function HTextElement(t,e,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType=\"svg\",this.isMasked=!1,this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType=\"svg\",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute(\"width\",this.compW),this.svgElement.setAttribute(\"height\",this.compH);var t=createNS(\"g\");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType=\"html\",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,n=t.fc?this.buildColor(t.fc):\"rgba(0,0,0,0)\";e.fill=n,e.color=n,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+\"px\");var r=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+\"px\",e.lineHeight=t.finalSize+\"px\",r.fClass)this.innerElem.className=r.fClass;else{e.fontFamily=r.fFamily;var o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var c,l,f=t.l;l=f.length;var p,m,g,y=this.mHelper,A,T=\"\",R=0;for(c=0;c<l;c+=1){if(this.globalData.fontManager.chars?(this.textPaths[R]?p=this.textPaths[R]:(p=createNS(\"path\"),p.setAttribute(\"stroke-linecap\",lineCapEnum[1]),p.setAttribute(\"stroke-linejoin\",lineJoinEnum[2]),p.setAttribute(\"stroke-miterlimit\",\"4\")),this.isMasked||(this.textSpans[R]?(m=this.textSpans[R],g=m.children[0]):(m=createTag(\"div\"),m.style.lineHeight=0,g=createNS(\"svg\"),g.appendChild(p),styleDiv(m)))):this.isMasked?p=this.textPaths[R]?this.textPaths[R]:createNS(\"text\"):this.textSpans[R]?(m=this.textSpans[R],p=this.textPaths[R]):(m=createTag(\"span\"),styleDiv(m),p=createTag(\"span\"),styleDiv(p),m.appendChild(p)),this.globalData.fontManager.chars){var K=this.globalData.fontManager.getCharData(t.finalText[c],r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),O;if(K?O=K.data:O=null,y.reset(),O&&O.shapes&&O.shapes.length&&(A=O.shapes[0].it,y.scale(t.finalSize/100,t.finalSize/100),T=this.createPathShape(y,A),p.setAttribute(\"d\",T)),this.isMasked)this.innerElem.appendChild(p);else{if(this.innerElem.appendChild(m),O&&O.shapes){document.body.appendChild(g);var V=g.getBBox();g.setAttribute(\"width\",V.width+2),g.setAttribute(\"height\",V.height+2),g.setAttribute(\"viewBox\",V.x-1+\" \"+(V.y-1)+\" \"+(V.width+2)+\" \"+(V.height+2));var D=g.style,G=\"translate(\"+(V.x-1)+\"px,\"+(V.y-1)+\"px)\";D.transform=G,D.webkitTransform=G,f[c].yOffset=V.y-1}else g.setAttribute(\"width\",1),g.setAttribute(\"height\",1);m.appendChild(g)}}else if(p.textContent=f[c].val,p.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"),this.isMasked)this.innerElem.appendChild(p);else{this.innerElem.appendChild(m);var ee=p.style,J=\"translate3d(0,\"+-t.finalSize/1.2+\"px,0)\";ee.transform=J,ee.webkitTransform=J}this.isMasked?this.textSpans[R]=p:this.textSpans[R]=m,this.textSpans[R].style.display=\"block\",this.textPaths[R]=p,R+=1}for(;R<this.textSpans.length;)this.textSpans[R].style.display=\"none\",R+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute(\"viewBox\",-this.finalTransform.mProp.p.v[0]+\" \"+-this.finalTransform.mProp.p.v[1]+\" \"+this.compW+\" \"+this.compH),t=this.svgElement.style;var e=\"translate(\"+-this.finalTransform.mProp.p.v[0]+\"px,\"+-this.finalTransform.mProp.p.v[1]+\"px)\";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,r,o=0,a=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;r=c.length;var l,f,p;for(n=0;n<r;n+=1)c[n].n?o+=1:(f=this.textSpans[n],p=this.textPaths[n],l=a[o],o+=1,l._mdf.m&&(this.isMasked?f.setAttribute(\"transform\",l.m):(f.style.webkitTransform=l.m,f.style.transform=l.m)),f.style.opacity=l.o,l.sw&&l._mdf.sw&&p.setAttribute(\"stroke-width\",l.sw),l.sc&&l._mdf.sc&&p.setAttribute(\"stroke\",l.sc),l.fc&&l._mdf.fc&&(p.setAttribute(\"fill\",l.fc),p.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.innerElem.getBBox();this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.svgElement.setAttribute(\"width\",m.width)),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.svgElement.setAttribute(\"height\",m.height));var g=1;if(this.currentBBox.w!==m.width+g*2||this.currentBBox.h!==m.height+g*2||this.currentBBox.x!==m.x-g||this.currentBBox.y!==m.y-g){this.currentBBox.w=m.width+g*2,this.currentBBox.h=m.height+g*2,this.currentBBox.x=m.x-g,this.currentBBox.y=m.y-g,this.svgElement.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h),t=this.svgElement.style;var y=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";t.transform=y,t.webkitTransform=y}}}};function HCameraElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var o,a=t.ks.or.k.length;for(o=0;o<a;o+=1)t.ks.or.k[o].to=null,t.ks.or.k[o].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e=this.comp.threeDElements.length,n,r,o;for(t=0;t<e;t+=1)if(n=this.comp.threeDElements[t],n.type===\"3d\"){r=n.perspectiveElem.style,o=n.container.style;var a=this.pe.v+\"px\",c=\"0px 0px 0px\",l=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";r.perspective=a,r.webkitPerspective=a,o.transformOrigin=c,o.mozTransformOrigin=c,o.webkitTransformOrigin=c,r.transform=l,r.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame,e,n;if(this.hierarchy)for(n=this.hierarchy.length,e=0;e<n;e+=1)t=this.hierarchy[e].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,e=n;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),c=[o[0]/a,o[1]/a,o[2]/a],l=Math.sqrt(c[2]*c[2]+c[0]*c[0]),f=Math.atan2(c[1],l),p=Math.atan2(c[0],-c[2]);this.mat.rotateY(p).rotateX(-f)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var g,y,A;for(e=0;e<n;e+=1)if(g=this.comp.threeDElements[e],g.type===\"3d\"){if(m){var T=this.mat.toCSS();A=g.container.style,A.transform=T,A.webkitTransform=T}this.pe._mdf&&(y=g.perspectiveElem.style,y.perspective=this.pe.v+\"px\",y.webkitPerspective=this.pe.v+\"px\")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS(\"image\"),this.imageElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.imageElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.imageElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute(\"width\",this.assetData.w),this.baseElement.setAttribute(\"height\",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin=\"anonymous\",e.src=t,this.data.ln&&this.baseElement.setAttribute(\"id\",this.data.ln)};function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){var r=this.layers[e];if(!r.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,e);else{for(var o=0,a,c,l;o<e;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(c=this.elements[o],l=this.layers[o].ddd?this.getThreeDContainerByPos(o):c.getBaseElement(),a=l||a),o+=1;a?(!r.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,a):(!r.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,e)}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,n=this.threeDElements.length;e<n;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var n=createTag(\"div\"),r,o;styleDiv(n);var a=createTag(\"div\");if(styleDiv(a),e===\"3d\"){r=n.style,r.width=this.globalData.compSize.w+\"px\",r.height=this.globalData.compSize.h+\"px\";var c=\"50% 50%\";r.webkitTransformOrigin=c,r.mozTransformOrigin=c,r.transformOrigin=c,o=a.style;var l=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";o.transform=l,o.webkitTransform=l}n.appendChild(a);var f={container:a,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,n,r=\"\";for(t=0;t<e;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(r!==\"3d\"&&(r=\"3d\",n=this.createThreeDContainer(t,\"3d\")),n.endPos=Math.max(n.endPos,t)):(r!==\"2d\"&&(r=\"2d\",n=this.createThreeDContainer(t,\"2d\")),n.endPos=Math.max(n.endPos,t));for(e=this.threeDElements.length,t=e-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var n=0,r=this.threeDElements.length;n<r;){if(e<=this.threeDElements[n].endPos){for(var o=this.threeDElements[n].startPos,a;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o].getBaseElement()),o+=1;a?this.threeDElements[n].container.insertBefore(t,a):this.threeDElements[n].container.appendChild(t);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag(\"div\"),n=this.animationItem.wrapper,r=e.style;r.width=t.w+\"px\",r.height=t.h+\"px\",this.resizerElem=e,styleDiv(e),r.transformStyle=\"flat\",r.mozTransformStyle=\"flat\",r.webkitTransformStyle=\"flat\",this.renderConfig.className&&e.setAttribute(\"class\",this.renderConfig.className),n.appendChild(e),r.overflow=\"hidden\";var o=createNS(\"svg\");o.setAttribute(\"width\",\"1\"),o.setAttribute(\"height\",\"1\"),styleDiv(o),this.resizerElem.appendChild(o);var a=createNS(\"defs\");o.appendChild(a),this.data=t,this.setupGlobalData(t,o),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,n=t/e,r=this.globalData.compSize.w/this.globalData.compSize.h,o,a,c,l;r>n?(o=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,c=0,l=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(o=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,c=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,l=0);var f=this.resizerElem.style;f.webkitTransform=\"matrix3d(\"+o+\",0,0,0,0,\"+a+\",0,0,0,0,1,0,\"+c+\",\"+l+\",0,1)\",f.transform=f.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display=\"none\"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display=\"block\"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,e=this.globalData.compSize.h,n,r=this.threeDElements.length;for(n=0;n<r;n+=1){var o=this.threeDElements[n].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+\"px\",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,n=t.length,r=createTag(\"div\");for(e=0;e<n;e+=1)if(t[e].xt){var o=this.createComp(t[e],r,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}};function HCompElement(t,e,n){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute(\"width\",this.data.w),this.svgElement.setAttribute(\"height\",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var n=0,r;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"},runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=(function(){return function(t){function e(n){for(var r=0,o=t.layers.length;r<o;){if(t.layers[r].nm===n||t.layers[r].ind===n)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,\"_name\",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}})();function _typeof$2(t){\"@babel/helpers - typeof\";return _typeof$2=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$2(t)}function seedRandom(t,e){var n=this,r=256,o=6,a=52,c=\"random\",l=e.pow(r,o),f=e.pow(2,a),p=f*2,m=r-1,g;function y(D,G,ee){var J=[];G=G===!0?{entropy:!0}:G||{};var le=K(R(G.entropy?[D,V(t)]:D===null?O():D,3),J),se=new A(J),te=function(){for(var _=se.g(o),P=l,z=0;_<f;)_=(_+z)*r,P*=r,z=se.g(1);for(;_>=p;)_/=2,P/=2,z>>>=1;return(_+z)/P};return te.int32=function(){return se.g(4)|0},te.quick=function(){return se.g(4)/4294967296},te.double=te,K(V(se.S),t),(G.pass||ee||function(S,_,P,z){return z&&(z.S&&T(z,se),S.state=function(){return T(se,{})}),P?(e[c]=S,_):S})(te,le,\"global\"in G?G.global:this==e,G.state)}e[\"seed\"+c]=y;function A(D){var G,ee=D.length,J=this,le=0,se=J.i=J.j=0,te=J.S=[];for(ee||(D=[ee++]);le<r;)te[le]=le++;for(le=0;le<r;le++)te[le]=te[se=m&se+D[le%ee]+(G=te[le])],te[se]=G;J.g=function(S){for(var _,P=0,z=J.i,Y=J.j,L=J.S;S--;)_=L[z=m&z+1],P=P*r+L[m&(L[z]=L[Y=m&Y+_])+(L[Y]=_)];return J.i=z,J.j=Y,P}}function T(D,G){return G.i=D.i,G.j=D.j,G.S=D.S.slice(),G}function R(D,G){var ee=[],J=_typeof$2(D),le;if(G&&J==\"object\")for(le in D)try{ee.push(R(D[le],G-1))}catch{}return ee.length?ee:J==\"string\"?D:D+\"\\\\0\"}function K(D,G){for(var ee=D+\"\",J,le=0;le<ee.length;)G[m&le]=m&(J^=G[m&le]*19)+ee.charCodeAt(le++);return V(G)}function O(){try{if(g)return V(g.randomBytes(r));var D=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(D),V(D)}catch{var G=n.navigator,ee=G&&G.plugins;return[+new Date,n,ee,n.screen,V(t)]}}function V(D){return String.fromCharCode.apply(0,D)}K(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:\"shape\"};function _typeof$1(t){\"@babel/helpers - typeof\";return _typeof$1=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof$1(t)}var ExpressionManager=(function(){\"use strict\";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t===\"number\"||e instanceof Number||t===\"boolean\"||t===\"string\"}function $bm_neg(t){var e=_typeof$1(t);if(e===\"number\"||t instanceof Number||e===\"boolean\")return-t;if($bm_isInstanceOfArray(t)){var n,r=t.length,o=[];for(n=0;n<r;n+=1)o[n]=-t[n];return o}return t.propType?t.v:-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,\"easeIn\").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,\"easeOut\").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,\"easeInOut\").get;function sum(t,e){var n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e)||n===\"string\"||r===\"string\")return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,a=t.length,c=e.length,l=[];o<a||o<c;)(typeof t[o]==\"number\"||t[o]instanceof Number)&&(typeof e[o]==\"number\"||e[o]instanceof Number)?l[o]=t[o]+e[o]:l[o]=e[o]===void 0?t[o]:t[o]||e[o],o+=1;return l}return 0}var add=sum;function sub(t,e){var n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e))return n===\"string\"&&(t=parseInt(t,10)),r===\"string\"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,a=t.length,c=e.length,l=[];o<a||o<c;)(typeof t[o]==\"number\"||t[o]instanceof Number)&&(typeof e[o]==\"number\"||e[o]instanceof Number)?l[o]=t[o]-e[o]:l[o]=e[o]===void 0?t[o]:t[o]||e[o],o+=1;return l}return 0}function mul(t,e){var n=_typeof$1(t),r=_typeof$1(e),o;if(isNumerable(n,t)&&isNumerable(r,e))return t*e;var a,c;if($bm_isInstanceOfArray(t)&&isNumerable(r,e)){for(c=t.length,o=createTypedArray(\"float32\",c),a=0;a<c;a+=1)o[a]=t[a]*e;return o}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(c=e.length,o=createTypedArray(\"float32\",c),a=0;a<c;a+=1)o[a]=t*e[a];return o}return 0}function div(t,e){var n=_typeof$1(t),r=_typeof$1(e),o;if(isNumerable(n,t)&&isNumerable(r,e))return t/e;var a,c;if($bm_isInstanceOfArray(t)&&isNumerable(r,e)){for(c=t.length,o=createTypedArray(\"float32\",c),a=0;a<c;a+=1)o[a]=t[a]/e;return o}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(c=e.length,o=createTypedArray(\"float32\",c),a=0;a<c;a+=1)o[a]=t/e[a];return o}return 0}function mod(t,e){return typeof t==\"string\"&&(t=parseInt(t,10)),typeof e==\"string\"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,n){if(e>n){var r=n;n=e,e=r}return Math.min(Math.max(t,e),n)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t==\"number\"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var n,r=Math.min(t.length,e.length),o=0;for(n=0;n<r;n+=1)o+=Math.pow(e[n]-t[n],2);return Math.sqrt(o)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e=t[0],n=t[1],r=t[2],o=Math.max(e,n,r),a=Math.min(e,n,r),c,l,f=(o+a)/2;if(o===a)c=0,l=0;else{var p=o-a;switch(l=f>.5?p/(2-o-a):p/(o+a),o){case e:c=(n-r)/p+(n<r?6:0);break;case n:c=(r-e)/p+2;break;case r:c=(e-n)/p+4;break;default:break}c/=6}return[c,l,f,t[3]]}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t){var e=t[0],n=t[1],r=t[2],o,a,c;if(n===0)o=r,c=r,a=r;else{var l=r<.5?r*(1+n):r+n-r*n,f=2*r-l;o=hue2rgb(f,l,e+1/3),a=hue2rgb(f,l,e),c=hue2rgb(f,l,e-1/3)}return[o,a,c,t[3]]}function linear(t,e,n,r,o){if((r===void 0||o===void 0)&&(r=e,o=n,e=0,n=1),n<e){var a=n;n=e,e=a}if(t<=e)return r;if(t>=n)return o;var c=n===e?0:(t-e)/(n-e);if(!r.length)return r+(o-r)*c;var l,f=r.length,p=createTypedArray(\"float32\",f);for(l=0;l<f;l+=1)p[l]=r[l]+(o[l]-r[l])*c;return p}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var n,r=e.length;t||(t=createTypedArray(\"float32\",r));var o=createTypedArray(\"float32\",r),a=BMMath.random();for(n=0;n<r;n+=1)o[n]=t[n]+a*(e[n]-t[n]);return o}t===void 0&&(t=0);var c=BMMath.random();return t+c*(e-t)}function createPath(t,e,n,r){var o,a=t.length,c=shapePool.newElement();c.setPathData(!!r,a);var l=[0,0],f,p;for(o=0;o<a;o+=1)f=e&&e[o]?e[o]:l,p=n&&n[o]?n[o]:l,c.setTripleAt(t[o][0],t[o][1],p[0]+t[o][0],p[1]+t[o][1],f[0]+t[o][0],f[1]+t[o][1],o,!0);return c}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\\\\w\\\\d])/.test(val),_needsRandom=val.indexOf(\"random\")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,\"value\",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval(\"[function _expression_function(){\"+val+\";scoped_bm_rt=$bm_rt}]\")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function t(e,n){var r,o,a=this.pv.length?this.pv.length:1,c=createTypedArray(\"float32\",a);e=5;var l=Math.floor(time*e);for(r=0,o=0;r<l;){for(o=0;o<a;o+=1)c[o]+=-n+n*2*BMMath.random();r+=1}var f=time*e,p=f-Math.floor(f),m=createTypedArray(\"float32\",a);if(a>1){for(o=0;o<a;o+=1)m[o]=this.pv[o]+c[o]+(-n+n*2*BMMath.random())*p;return m}return this.pv+c[0]+(-n+n*2*BMMath.random())*p}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,o=-Math.atan2(n[1],n[2])/degToRads;return[o,r,0]}function easeOut(t,e,n,r,o){return applyEase(easeOutBez,t,e,n,r,o)}function easeIn(t,e,n,r,o){return applyEase(easeInBez,t,e,n,r,o)}function ease(t,e,n,r,o){return applyEase(easeInOutBez,t,e,n,r,o)}function applyEase(t,e,n,r,o,a){o===void 0?(o=n,a=r):e=(e-n)/(r-n),e>1?e=1:e<0&&(e=0);var c=t(e);if($bm_isInstanceOfArray(o)){var l,f=o.length,p=createTypedArray(\"float32\",f);for(l=0;l<f;l+=1)p[l]=(a[l]-o[l])*c+o[l];return p}return(a-o)*c+o}function nearestKey(t){var e,n=data.k.length,r,o;if(!data.k.length||typeof data.k[0]==\"number\")r=0,o=0;else if(r=-1,t*=elem.comp.globalData.frameRate,t<data.k[0].t)r=1,o=data.k[0].t;else{for(e=0;e<n-1;e+=1)if(t===data.k[e].t){r=e+1,o=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,o=data.k[e+1].t):(r=e+1,o=data.k[e].t);break}r===-1&&(r=e+1,o=data.k[e].t)}var a={};return a.index=r,a.time=o/elem.comp.globalData.frameRate,a}function key(t){var e,n,r;if(!data.k.length||typeof data.k[0]==\"number\")throw new Error(\"The property has no keyframe at index \"+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[t],\"s\")?data.k[t].s:data.k[t-1].e;for(r=o.length,n=0;n<r;n+=1)e[n]=o[n],e.value[n]=o[n];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return!t&&t!==0&&(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value==\"string\"?e===void 0?value.substring(t):value.substring(t,e):\"\"}function substr(t,e){return typeof value==\"string\"?e===void 0?value.substr(t):value.substr(t,e):\"\"}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!==\"textSelector\"?value:(this.propType===\"textSelector\"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface(\"ADBE Transform Group\"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer(\"ADBE Root Vectors Group\")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var t={};t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame;function e(n){var r=0,o=[];function a(){r+=1}function c(){r-=1,r===0&&f()}function l(p){o.indexOf(p)===-1&&o.push(p)}function f(){var p,m=o.length;for(p=0;p<m;p+=1)o[p].release();o.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=a,n.renderer.globalData.popExpression=c,n.renderer.globalData.registerExpressionProperty=l}return t})(),MaskManagerInterface=(function(){function t(n,r){this._mask=n,this._data=r}Object.defineProperty(t.prototype,\"maskPath\",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,\"maskOpacity\",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var e=function(r){var o=createSizedArray(r.viewData.length),a,c=r.viewData.length;for(a=0;a<c;a+=1)o[a]=new t(r.viewData[a],r.masksProperties[a]);var l=function(p){for(a=0;a<c;){if(r.masksProperties[a].nm===p)return o[a];a+=1}return null};return l};return e})(),ExpressionPropertyInterface=(function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function n(c,l,f){Object.defineProperty(c,\"velocity\",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),c.numKeys=l.keyframes?l.keyframes.length:0,c.key=function(p){if(!c.numKeys)return 0;var m=\"\";\"s\"in l.keyframes[p-1]?m=l.keyframes[p-1].s:\"e\"in l.keyframes[p-2]?m=l.keyframes[p-2].e:m=l.keyframes[p-2].s;var g=f===\"unidimensional\"?new Number(m):Object.assign({},m);return g.time=l.keyframes[p-1].t/l.elem.comp.globalData.frameRate,g.value=f===\"unidimensional\"?m[0]:m,g},c.valueAtTime=l.getValueAtTime,c.speedAtTime=l.getSpeedAtTime,c.velocityAtTime=l.getVelocityAtTime,c.propertyGroup=l.propertyGroup}function r(c){(!c||!(\"pv\"in c))&&(c=t);var l=1/c.mult,f=c.pv*l,p=new Number(f);return p.value=f,n(p,c,\"unidimensional\"),function(){return c.k&&c.getValue(),f=c.v*l,p.value!==f&&(p=new Number(f),p.value=f,p[0]=f,n(p,c,\"unidimensional\")),p}}function o(c){(!c||!(\"pv\"in c))&&(c=e);var l=1/c.mult,f=c.data&&c.data.l||c.pv.length,p=createTypedArray(\"float32\",f),m=createTypedArray(\"float32\",f);return p.value=m,n(p,c,\"multidimensional\"),function(){c.k&&c.getValue();for(var g=0;g<f;g+=1)m[g]=c.v[g]*l,p[g]=m[g];return p}}function a(){return t}return function(c){return c?c.propType===\"unidimensional\"?r(c):o(c):a}})(),TransformExpressionInterface=(function(){return function(t){function e(c){switch(c){case\"scale\":case\"Scale\":case\"ADBE Scale\":case 6:return e.scale;case\"rotation\":case\"Rotation\":case\"ADBE Rotation\":case\"ADBE Rotate Z\":case 10:return e.rotation;case\"ADBE Rotate X\":return e.xRotation;case\"ADBE Rotate Y\":return e.yRotation;case\"position\":case\"Position\":case\"ADBE Position\":case 2:return e.position;case\"ADBE Position_0\":return e.xPosition;case\"ADBE Position_1\":return e.yPosition;case\"ADBE Position_2\":return e.zPosition;case\"anchorPoint\":case\"AnchorPoint\":case\"Anchor Point\":case\"ADBE AnchorPoint\":case 1:return e.anchorPoint;case\"opacity\":case\"Opacity\":case 11:return e.opacity;default:return null}}Object.defineProperty(e,\"rotation\",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,\"zRotation\",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,\"xRotation\",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,\"yRotation\",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,\"scale\",{get:ExpressionPropertyInterface(t.s)});var n,r,o,a;return t.p?a=ExpressionPropertyInterface(t.p):(n=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(o=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,\"position\",{get:function(){return t.p?a():[n(),r(),o?o():0]}}),Object.defineProperty(e,\"xPosition\",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,\"yPosition\",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,\"zPosition\",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,\"anchorPoint\",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,\"opacity\",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,\"skew\",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,\"skewAxis\",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,\"orientation\",{get:ExpressionPropertyInterface(t.or)}),e}})(),LayerExpressionInterface=(function(){function t(p){var m=new Matrix;if(p!==void 0){var g=this._elem.finalTransform.mProp.getValueAtTime(p);g.clone(m)}else{var y=this._elem.finalTransform.mProp;y.applyToMatrix(m)}return m}function e(p,m){var g=this.getMatrix(m);return g.props[12]=0,g.props[13]=0,g.props[14]=0,this.applyPoint(g,p)}function n(p,m){var g=this.getMatrix(m);return this.applyPoint(g,p)}function r(p,m){var g=this.getMatrix(m);return g.props[12]=0,g.props[13]=0,g.props[14]=0,this.invertPoint(g,p)}function o(p,m){var g=this.getMatrix(m);return this.invertPoint(g,p)}function a(p,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var g,y=this._elem.hierarchy.length;for(g=0;g<y;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(p)}return p.applyToPointArray(m[0],m[1],m[2]||0)}function c(p,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var g,y=this._elem.hierarchy.length;for(g=0;g<y;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(p)}return p.inversePoint(m)}function l(p){var m=new Matrix;if(m.reset(),this._elem.finalTransform.mProp.applyToMatrix(m),this._elem.hierarchy&&this._elem.hierarchy.length){var g,y=this._elem.hierarchy.length;for(g=0;g<y;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(m);return m.inversePoint(p)}return m.inversePoint(p)}function f(){return[1,1,1,1]}return function(p){var m;function g(R){A.mask=new MaskManagerInterface(R,p)}function y(R){A.effect=R}function A(R){switch(R){case\"ADBE Root Vectors Group\":case\"Contents\":case 2:return A.shapeInterface;case 1:case 6:case\"Transform\":case\"transform\":case\"ADBE Transform Group\":return m;case 4:case\"ADBE Effect Parade\":case\"effects\":case\"Effects\":return A.effect;case\"ADBE Text Properties\":return A.textInterface;default:return null}}A.getMatrix=t,A.invertPoint=c,A.applyPoint=a,A.toWorld=n,A.toWorldVec=e,A.fromWorld=o,A.fromWorldVec=r,A.toComp=n,A.fromComp=l,A.sampleImage=f,A.sourceRectAtTime=p.sourceRectAtTime.bind(p),A._elem=p,m=TransformExpressionInterface(p.finalTransform.mProp);var T=getDescriptor(m,\"anchorPoint\");return Object.defineProperties(A,{hasParent:{get:function(){return p.hierarchy.length}},parent:{get:function(){return p.hierarchy[0].layerInterface}},rotation:getDescriptor(m,\"rotation\"),scale:getDescriptor(m,\"scale\"),position:getDescriptor(m,\"position\"),opacity:getDescriptor(m,\"opacity\"),anchorPoint:T,anchor_point:T,transform:{get:function(){return m}},active:{get:function(){return p.isInRange}}}),A.startTime=p.data.st,A.index=p.data.ind,A.source=p.data.refId,A.height=p.data.ty===0?p.data.h:100,A.width=p.data.ty===0?p.data.w:100,A.inPoint=p.data.ip/p.comp.globalData.frameRate,A.outPoint=p.data.op/p.comp.globalData.frameRate,A._name=p.data.nm,A.registerMaskInterface=g,A.registerEffectsInterface=y,A}})(),propertyGroupFactory=(function(){return function(t,e){return function(n){return n=n===void 0?1:n,n<=0?t:e(n-1)}}})(),PropertyInterface=(function(){return function(t,e){var n={_name:t};function r(o){return o=o===void 0?1:o,o<=0?n:e(o-1)}return r}})(),EffectsExpressionInterface=(function(){var t={createEffectsInterface:e};function e(o,a){if(o.effectsManager){var c=[],l=o.data.ef,f,p=o.effectsManager.effectElements.length;for(f=0;f<p;f+=1)c.push(n(l[f],o.effectsManager.effectElements[f],a,o));var m=o.data.ef||[],g=function(A){for(f=0,p=m.length;f<p;){if(A===m[f].nm||A===m[f].mn||A===m[f].ix)return c[f];f+=1}return null};return Object.defineProperty(g,\"numProperties\",{get:function(){return m.length}}),g}return null}function n(o,a,c,l){function f(A){for(var T=o.ef,R=0,K=T.length;R<K;){if(A===T[R].nm||A===T[R].mn||A===T[R].ix)return T[R].ty===5?m[R]:m[R]();R+=1}throw new Error}var p=propertyGroupFactory(f,c),m=[],g,y=o.ef.length;for(g=0;g<y;g+=1)o.ef[g].ty===5?m.push(n(o.ef[g],a.effectElements[g],a.effectElements[g].propertyGroup,l)):m.push(r(a.effectElements[g],o.ef[g].ty,l,p));return o.mn===\"ADBE Color Control\"&&Object.defineProperty(f,\"color\",{get:function(){return m[0]()}}),Object.defineProperties(f,{numProperties:{get:function(){return o.np}},_name:{value:o.nm},propertyGroup:{value:p}}),f.enabled=o.en!==0,f.active=f.enabled,f}function r(o,a,c,l){var f=ExpressionPropertyInterface(o.p);function p(){return a===10?c.comp.compInterface(o.p.v):f()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface(\"\",l)),p}return t})(),ShapePathInterface=(function(){return function(e,n,r){var o=n.sh;function a(l){return l===\"Shape\"||l===\"shape\"||l===\"Path\"||l===\"path\"||l===\"ADBE Vector Shape\"||l===2?a.path:null}var c=propertyGroupFactory(a,r);return o.setGroupProperty(PropertyInterface(\"Path\",c)),Object.defineProperties(a,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),a}})(),ShapeExpressionInterface=(function(){function t(T,R,K){var O=[],V,D=T?T.length:0;for(V=0;V<D;V+=1)T[V].ty===\"gr\"?O.push(n(T[V],R[V],K)):T[V].ty===\"fl\"?O.push(r(T[V],R[V],K)):T[V].ty===\"st\"?O.push(c(T[V],R[V],K)):T[V].ty===\"tm\"?O.push(l(T[V],R[V],K)):T[V].ty===\"tr\"||(T[V].ty===\"el\"?O.push(p(T[V],R[V],K)):T[V].ty===\"sr\"?O.push(m(T[V],R[V],K)):T[V].ty===\"sh\"?O.push(ShapePathInterface(T[V],R[V],K)):T[V].ty===\"rc\"?O.push(g(T[V],R[V],K)):T[V].ty===\"rd\"?O.push(y(T[V],R[V],K)):T[V].ty===\"rp\"?O.push(A(T[V],R[V],K)):T[V].ty===\"gf\"?O.push(o(T[V],R[V],K)):O.push(a(T[V],R[V],K)));return O}function e(T,R,K){var O,V=function(ee){for(var J=0,le=O.length;J<le;){if(O[J]._name===ee||O[J].mn===ee||O[J].propertyIndex===ee||O[J].ix===ee||O[J].ind===ee)return O[J];J+=1}return typeof ee==\"number\"?O[ee-1]:null};V.propertyGroup=propertyGroupFactory(V,K),O=t(T.it,R.it,V.propertyGroup),V.numProperties=O.length;var D=f(T.it[T.it.length-1],R.it[R.it.length-1],V.propertyGroup);return V.transform=D,V.propertyIndex=T.cix,V._name=T.nm,V}function n(T,R,K){var O=function(ee){switch(ee){case\"ADBE Vectors Group\":case\"Contents\":case 2:return O.content;default:return O.transform}};O.propertyGroup=propertyGroupFactory(O,K);var V=e(T,R,O.propertyGroup),D=f(T.it[T.it.length-1],R.it[R.it.length-1],O.propertyGroup);return O.content=V,O.transform=D,Object.defineProperty(O,\"_name\",{get:function(){return T.nm}}),O.numProperties=T.np,O.propertyIndex=T.ix,O.nm=T.nm,O.mn=T.mn,O}function r(T,R,K){function O(V){return V===\"Color\"||V===\"color\"?O.color:V===\"Opacity\"||V===\"opacity\"?O.opacity:null}return Object.defineProperties(O,{color:{get:ExpressionPropertyInterface(R.c)},opacity:{get:ExpressionPropertyInterface(R.o)},_name:{value:T.nm},mn:{value:T.mn}}),R.c.setGroupProperty(PropertyInterface(\"Color\",K)),R.o.setGroupProperty(PropertyInterface(\"Opacity\",K)),O}function o(T,R,K){function O(V){return V===\"Start Point\"||V===\"start point\"?O.startPoint:V===\"End Point\"||V===\"end point\"?O.endPoint:V===\"Opacity\"||V===\"opacity\"?O.opacity:null}return Object.defineProperties(O,{startPoint:{get:ExpressionPropertyInterface(R.s)},endPoint:{get:ExpressionPropertyInterface(R.e)},opacity:{get:ExpressionPropertyInterface(R.o)},type:{get:function(){return\"a\"}},_name:{value:T.nm},mn:{value:T.mn}}),R.s.setGroupProperty(PropertyInterface(\"Start Point\",K)),R.e.setGroupProperty(PropertyInterface(\"End Point\",K)),R.o.setGroupProperty(PropertyInterface(\"Opacity\",K)),O}function a(){function T(){return null}return T}function c(T,R,K){var O=propertyGroupFactory(le,K),V=propertyGroupFactory(J,O);function D(se){Object.defineProperty(J,T.d[se].nm,{get:ExpressionPropertyInterface(R.d.dataProps[se].p)})}var G,ee=T.d?T.d.length:0,J={};for(G=0;G<ee;G+=1)D(G),R.d.dataProps[G].p.setGroupProperty(V);function le(se){return se===\"Color\"||se===\"color\"?le.color:se===\"Opacity\"||se===\"opacity\"?le.opacity:se===\"Stroke Width\"||se===\"stroke width\"?le.strokeWidth:null}return Object.defineProperties(le,{color:{get:ExpressionPropertyInterface(R.c)},opacity:{get:ExpressionPropertyInterface(R.o)},strokeWidth:{get:ExpressionPropertyInterface(R.w)},dash:{get:function(){return J}},_name:{value:T.nm},mn:{value:T.mn}}),R.c.setGroupProperty(PropertyInterface(\"Color\",O)),R.o.setGroupProperty(PropertyInterface(\"Opacity\",O)),R.w.setGroupProperty(PropertyInterface(\"Stroke Width\",O)),le}function l(T,R,K){function O(D){return D===T.e.ix||D===\"End\"||D===\"end\"?O.end:D===T.s.ix?O.start:D===T.o.ix?O.offset:null}var V=propertyGroupFactory(O,K);return O.propertyIndex=T.ix,R.s.setGroupProperty(PropertyInterface(\"Start\",V)),R.e.setGroupProperty(PropertyInterface(\"End\",V)),R.o.setGroupProperty(PropertyInterface(\"Offset\",V)),O.propertyIndex=T.ix,O.propertyGroup=K,Object.defineProperties(O,{start:{get:ExpressionPropertyInterface(R.s)},end:{get:ExpressionPropertyInterface(R.e)},offset:{get:ExpressionPropertyInterface(R.o)},_name:{value:T.nm}}),O.mn=T.mn,O}function f(T,R,K){function O(D){return T.a.ix===D||D===\"Anchor Point\"?O.anchorPoint:T.o.ix===D||D===\"Opacity\"?O.opacity:T.p.ix===D||D===\"Position\"?O.position:T.r.ix===D||D===\"Rotation\"||D===\"ADBE Vector Rotation\"?O.rotation:T.s.ix===D||D===\"Scale\"?O.scale:T.sk&&T.sk.ix===D||D===\"Skew\"?O.skew:T.sa&&T.sa.ix===D||D===\"Skew Axis\"?O.skewAxis:null}var V=propertyGroupFactory(O,K);return R.transform.mProps.o.setGroupProperty(PropertyInterface(\"Opacity\",V)),R.transform.mProps.p.setGroupProperty(PropertyInterface(\"Position\",V)),R.transform.mProps.a.setGroupProperty(PropertyInterface(\"Anchor Point\",V)),R.transform.mProps.s.setGroupProperty(PropertyInterface(\"Scale\",V)),R.transform.mProps.r.setGroupProperty(PropertyInterface(\"Rotation\",V)),R.transform.mProps.sk&&(R.transform.mProps.sk.setGroupProperty(PropertyInterface(\"Skew\",V)),R.transform.mProps.sa.setGroupProperty(PropertyInterface(\"Skew Angle\",V))),R.transform.op.setGroupProperty(PropertyInterface(\"Opacity\",V)),Object.defineProperties(O,{opacity:{get:ExpressionPropertyInterface(R.transform.mProps.o)},position:{get:ExpressionPropertyInterface(R.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(R.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(R.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(R.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(R.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(R.transform.mProps.sa)},_name:{value:T.nm}}),O.ty=\"tr\",O.mn=T.mn,O.propertyGroup=K,O}function p(T,R,K){function O(G){return T.p.ix===G?O.position:T.s.ix===G?O.size:null}var V=propertyGroupFactory(O,K);O.propertyIndex=T.ix;var D=R.sh.ty===\"tm\"?R.sh.prop:R.sh;return D.s.setGroupProperty(PropertyInterface(\"Size\",V)),D.p.setGroupProperty(PropertyInterface(\"Position\",V)),Object.defineProperties(O,{size:{get:ExpressionPropertyInterface(D.s)},position:{get:ExpressionPropertyInterface(D.p)},_name:{value:T.nm}}),O.mn=T.mn,O}function m(T,R,K){function O(G){return T.p.ix===G?O.position:T.r.ix===G?O.rotation:T.pt.ix===G?O.points:T.or.ix===G||G===\"ADBE Vector Star Outer Radius\"?O.outerRadius:T.os.ix===G?O.outerRoundness:T.ir&&(T.ir.ix===G||G===\"ADBE Vector Star Inner Radius\")?O.innerRadius:T.is&&T.is.ix===G?O.innerRoundness:null}var V=propertyGroupFactory(O,K),D=R.sh.ty===\"tm\"?R.sh.prop:R.sh;return O.propertyIndex=T.ix,D.or.setGroupProperty(PropertyInterface(\"Outer Radius\",V)),D.os.setGroupProperty(PropertyInterface(\"Outer Roundness\",V)),D.pt.setGroupProperty(PropertyInterface(\"Points\",V)),D.p.setGroupProperty(PropertyInterface(\"Position\",V)),D.r.setGroupProperty(PropertyInterface(\"Rotation\",V)),T.ir&&(D.ir.setGroupProperty(PropertyInterface(\"Inner Radius\",V)),D.is.setGroupProperty(PropertyInterface(\"Inner Roundness\",V))),Object.defineProperties(O,{position:{get:ExpressionPropertyInterface(D.p)},rotation:{get:ExpressionPropertyInterface(D.r)},points:{get:ExpressionPropertyInterface(D.pt)},outerRadius:{get:ExpressionPropertyInterface(D.or)},outerRoundness:{get:ExpressionPropertyInterface(D.os)},innerRadius:{get:ExpressionPropertyInterface(D.ir)},innerRoundness:{get:ExpressionPropertyInterface(D.is)},_name:{value:T.nm}}),O.mn=T.mn,O}function g(T,R,K){function O(G){return T.p.ix===G?O.position:T.r.ix===G?O.roundness:T.s.ix===G||G===\"Size\"||G===\"ADBE Vector Rect Size\"?O.size:null}var V=propertyGroupFactory(O,K),D=R.sh.ty===\"tm\"?R.sh.prop:R.sh;return O.propertyIndex=T.ix,D.p.setGroupProperty(PropertyInterface(\"Position\",V)),D.s.setGroupProperty(PropertyInterface(\"Size\",V)),D.r.setGroupProperty(PropertyInterface(\"Rotation\",V)),Object.defineProperties(O,{position:{get:ExpressionPropertyInterface(D.p)},roundness:{get:ExpressionPropertyInterface(D.r)},size:{get:ExpressionPropertyInterface(D.s)},_name:{value:T.nm}}),O.mn=T.mn,O}function y(T,R,K){function O(G){return T.r.ix===G||G===\"Round Corners 1\"?O.radius:null}var V=propertyGroupFactory(O,K),D=R;return O.propertyIndex=T.ix,D.rd.setGroupProperty(PropertyInterface(\"Radius\",V)),Object.defineProperties(O,{radius:{get:ExpressionPropertyInterface(D.rd)},_name:{value:T.nm}}),O.mn=T.mn,O}function A(T,R,K){function O(G){return T.c.ix===G||G===\"Copies\"?O.copies:T.o.ix===G||G===\"Offset\"?O.offset:null}var V=propertyGroupFactory(O,K),D=R;return O.propertyIndex=T.ix,D.c.setGroupProperty(PropertyInterface(\"Copies\",V)),D.o.setGroupProperty(PropertyInterface(\"Offset\",V)),Object.defineProperties(O,{copies:{get:ExpressionPropertyInterface(D.c)},offset:{get:ExpressionPropertyInterface(D.o)},_name:{value:T.nm}}),O.mn=T.mn,O}return function(T,R,K){var O;function V(G){if(typeof G==\"number\")return G=G===void 0?1:G,G===0?K:O[G-1];for(var ee=0,J=O.length;ee<J;){if(O[ee]._name===G)return O[ee];ee+=1}return null}function D(){return K}return V.propertyGroup=propertyGroupFactory(V,D),O=t(T,R,V.propertyGroup),V.numProperties=O.length,V._name=\"Contents\",V}})(),TextExpressionInterface=(function(){return function(t){var e;function n(r){return r===\"ADBE Text Document\"?n.sourceText:null}return Object.defineProperty(n,\"sourceText\",{get:function(){t.textProperty.getValue();var o=t.textProperty.currentData.t;return(!e||o!==e.value)&&(e=new String(o),e.value=o||new String(o),Object.defineProperty(e,\"style\",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),n}})();function _typeof(t){\"@babel/helpers - typeof\";return _typeof=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof(t)}var FootageInterface=(function(){var t=function(r){var o=\"\",a=r.getFootageData();function c(){return o=\"\",a=r.getFootageData(),l}function l(f){if(a[f])return o=f,a=a[f],_typeof(a)===\"object\"?l:a;var p=f.indexOf(o);if(p!==-1){var m=parseInt(f.substr(p+o.length),10);return a=a[m],_typeof(a)===\"object\"?l:a}return\"\"}return c},e=function(r){function o(a){return a===\"Outline\"?o.outlineInterface():null}return o._name=\"Outline\",o.outlineInterface=t(r),o};return function(n){function r(o){return o===\"Data\"?r.dataInterface:null}return r._name=\"Data\",r.dataInterface=e(n),r}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=(function(){function t(c,l,f){l.x&&(f.k=!0,f.x=!0,f.initiateExpression=ExpressionManager.initiateExpression,f.effectsSequence.push(f.initiateExpression(c,l,f).bind(f)))}function e(c){return c*=this.elem.globalData.frameRate,c-=this.offsetTime,c!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<c?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(c,this._cachingAtTime),this._cachingAtTime.lastFrame=c),this._cachingAtTime.value}function n(c){var l=-.01,f=this.getValueAtTime(c),p=this.getValueAtTime(c+l),m=0;if(f.length){var g;for(g=0;g<f.length;g+=1)m+=Math.pow(p[g]-f[g],2);m=Math.sqrt(m)*100}else m=0;return m}function r(c){if(this.vel!==void 0)return this.vel;var l=-.001,f=this.getValueAtTime(c),p=this.getValueAtTime(c+l),m;if(f.length){m=createTypedArray(\"float32\",f.length);var g;for(g=0;g<f.length;g+=1)m[g]=(p[g]-f[g])/l}else m=(p-f)/l;return m}function o(){return this.pv}function a(c){this.propertyGroup=c}return{searchExpressions:t,getSpeedAtTime:n,getVelocityAtTime:r,getValueAtTime:e,getStaticValueAtTime:o,setGroupProperty:a}})();function addPropertyDecorator(){function t(y,A,T){if(!this.k||!this.keyframes)return this.pv;y=y?y.toLowerCase():\"\";var R=this.comp.renderedFrame,K=this.keyframes,O=K[K.length-1].t;if(R<=O)return this.pv;var V,D;T?(A?V=Math.abs(O-this.elem.comp.globalData.frameRate*A):V=Math.max(0,O-this.elem.data.ip),D=O-V):((!A||A>K.length-1)&&(A=K.length-1),D=K[K.length-1-A].t,V=O-D);var G,ee,J;if(y===\"pingpong\"){var le=Math.floor((R-D)/V);if(le%2!==0)return this.getValueAtTime((V-(R-D)%V+D)/this.comp.globalData.frameRate,0)}else if(y===\"offset\"){var se=this.getValueAtTime(D/this.comp.globalData.frameRate,0),te=this.getValueAtTime(O/this.comp.globalData.frameRate,0),S=this.getValueAtTime(((R-D)%V+D)/this.comp.globalData.frameRate,0),_=Math.floor((R-D)/V);if(this.pv.length){for(J=new Array(se.length),ee=J.length,G=0;G<ee;G+=1)J[G]=(te[G]-se[G])*_+S[G];return J}return(te-se)*_+S}else if(y===\"continue\"){var P=this.getValueAtTime(O/this.comp.globalData.frameRate,0),z=this.getValueAtTime((O-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(J=new Array(P.length),ee=J.length,G=0;G<ee;G+=1)J[G]=P[G]+(P[G]-z[G])*((R-O)/this.comp.globalData.frameRate)/5e-4;return J}return P+(P-z)*((R-O)/.001)}return this.getValueAtTime(((R-D)%V+D)/this.comp.globalData.frameRate,0)}function e(y,A,T){if(!this.k)return this.pv;y=y?y.toLowerCase():\"\";var R=this.comp.renderedFrame,K=this.keyframes,O=K[0].t;if(R>=O)return this.pv;var V,D;T?(A?V=Math.abs(this.elem.comp.globalData.frameRate*A):V=Math.max(0,this.elem.data.op-O),D=O+V):((!A||A>K.length-1)&&(A=K.length-1),D=K[A].t,V=D-O);var G,ee,J;if(y===\"pingpong\"){var le=Math.floor((O-R)/V);if(le%2===0)return this.getValueAtTime(((O-R)%V+O)/this.comp.globalData.frameRate,0)}else if(y===\"offset\"){var se=this.getValueAtTime(O/this.comp.globalData.frameRate,0),te=this.getValueAtTime(D/this.comp.globalData.frameRate,0),S=this.getValueAtTime((V-(O-R)%V+O)/this.comp.globalData.frameRate,0),_=Math.floor((O-R)/V)+1;if(this.pv.length){for(J=new Array(se.length),ee=J.length,G=0;G<ee;G+=1)J[G]=S[G]-(te[G]-se[G])*_;return J}return S-(te-se)*_}else if(y===\"continue\"){var P=this.getValueAtTime(O/this.comp.globalData.frameRate,0),z=this.getValueAtTime((O+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(J=new Array(P.length),ee=J.length,G=0;G<ee;G+=1)J[G]=P[G]+(P[G]-z[G])*(O-R)/.001;return J}return P+(P-z)*(O-R)/.001}return this.getValueAtTime((V-((O-R)%V+O))/this.comp.globalData.frameRate,0)}function n(y,A){if(!this.k)return this.pv;if(y=(y||.4)*.5,A=Math.floor(A||5),A<=1)return this.pv;var T=this.comp.renderedFrame/this.comp.globalData.frameRate,R=T-y,K=T+y,O=A>1?(K-R)/(A-1):1,V=0,D=0,G;this.pv.length?G=createTypedArray(\"float32\",this.pv.length):G=0;for(var ee;V<A;){if(ee=this.getValueAtTime(R+V*O),this.pv.length)for(D=0;D<this.pv.length;D+=1)G[D]+=ee[D];else G+=ee;V+=1}if(this.pv.length)for(D=0;D<this.pv.length;D+=1)G[D]/=A;else G/=A;return G}function r(y){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var A=this._transformCachingAtTime.v;if(A.cloneFromProps(this.pre.props),this.appliedTransformations<1){var T=this.a.getValueAtTime(y);A.translate(-T[0]*this.a.mult,-T[1]*this.a.mult,T[2]*this.a.mult)}if(this.appliedTransformations<2){var R=this.s.getValueAtTime(y);A.scale(R[0]*this.s.mult,R[1]*this.s.mult,R[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var K=this.sk.getValueAtTime(y),O=this.sa.getValueAtTime(y);A.skewFromAxis(-K*this.sk.mult,O*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var V=this.r.getValueAtTime(y);A.rotate(-V*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var D=this.rz.getValueAtTime(y),G=this.ry.getValueAtTime(y),ee=this.rx.getValueAtTime(y),J=this.or.getValueAtTime(y);A.rotateZ(-D*this.rz.mult).rotateY(G*this.ry.mult).rotateX(ee*this.rx.mult).rotateZ(-J[2]*this.or.mult).rotateY(J[1]*this.or.mult).rotateX(J[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var le=this.px.getValueAtTime(y),se=this.py.getValueAtTime(y);if(this.data.p.z){var te=this.pz.getValueAtTime(y);A.translate(le*this.px.mult,se*this.py.mult,-te*this.pz.mult)}else A.translate(le*this.px.mult,se*this.py.mult,0)}else{var S=this.p.getValueAtTime(y);A.translate(S[0]*this.p.mult,S[1]*this.p.mult,-S[2]*this.p.mult)}return A}function o(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(y,A,T){var R=a(y,A,T);return R.dynamicProperties.length?R.getValueAtTime=r.bind(R):R.getValueAtTime=o.bind(R),R.setGroupProperty=expressionHelpers.setGroupProperty,R};var c=PropertyFactory.getProp;PropertyFactory.getProp=function(y,A,T,R,K){var O=c(y,A,T,R,K);O.kf?O.getValueAtTime=expressionHelpers.getValueAtTime.bind(O):O.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(O),O.setGroupProperty=expressionHelpers.setGroupProperty,O.loopOut=t,O.loopIn=e,O.smooth=n,O.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(O),O.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(O),O.numKeys=A.a===1?A.k.length:0,O.propertyIndex=A.ix;var V=0;return T!==0&&(V=createTypedArray(\"float32\",A.a===1?A.k[0].s.length:A.k.length)),O._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:V},expressionHelpers.searchExpressions(y,A,O),O.k&&K.addDynamicProperty(O),O};function l(y){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),y*=this.elem.globalData.frameRate,y-=this.offsetTime,y!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<y?this._caching.lastIndex:0,this._cachingAtTime.lastTime=y,this.interpolateShape(y,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var f=ShapePropertyFactory.getConstructorFunction(),p=ShapePropertyFactory.getKeyframedConstructorFunction();function m(){}m.prototype={vertices:function(A,T){this.k&&this.getValue();var R=this.v;T!==void 0&&(R=this.getValueAtTime(T,0));var K,O=R._length,V=R[A],D=R.v,G=createSizedArray(O);for(K=0;K<O;K+=1)A===\"i\"||A===\"o\"?G[K]=[V[K][0]-D[K][0],V[K][1]-D[K][1]]:G[K]=[V[K][0],V[K][1]];return G},points:function(A){return this.vertices(\"v\",A)},inTangents:function(A){return this.vertices(\"i\",A)},outTangents:function(A){return this.vertices(\"o\",A)},isClosed:function(){return this.v.c},pointOnPath:function(A,T){var R=this.v;T!==void 0&&(R=this.getValueAtTime(T,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(R));for(var K=this._segmentsLength,O=K.lengths,V=K.totalLength*A,D=0,G=O.length,ee=0,J;D<G;){if(ee+O[D].addedLength>V){var le=D,se=R.c&&D===G-1?0:D+1,te=(V-ee)/O[D].addedLength;J=bez.getPointInSegment(R.v[le],R.v[se],R.o[le],R.i[se],te,O[D]);break}else ee+=O[D].addedLength;D+=1}return J||(J=R.c?[R.v[0][0],R.v[0][1]]:[R.v[R._length-1][0],R.v[R._length-1][1]]),J},vectorOnPath:function(A,T,R){A==1?A=this.v.c:A==0&&(A=.999);var K=this.pointOnPath(A,T),O=this.pointOnPath(A+.001,T),V=O[0]-K[0],D=O[1]-K[1],G=Math.sqrt(Math.pow(V,2)+Math.pow(D,2));if(G===0)return[0,0];var ee=R===\"tangent\"?[V/G,D/G]:[-D/G,V/G];return ee},tangentOnPath:function(A,T){return this.vectorOnPath(A,T,\"tangent\")},normalOnPath:function(A,T){return this.vectorOnPath(A,T,\"normal\")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([m],f),extendPrototype([m],p),p.prototype.getValueAtTime=l,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var g=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(y,A,T,R,K){var O=g(y,A,T,R,K);return O.propertyIndex=A.ix,O.lock=!1,T===3?expressionHelpers.searchExpressions(y,A.pt,O):T===4&&expressionHelpers.searchExpressions(y,A.ks,O),O.k&&y.addDynamicProperty(O),O}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,n){var r=this.calculateExpression(n);if(e.t!==r){var o={};return this.copyData(o,e),o.t=r.toString(),o.__complete=!1,o}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),n=this.searchExpressions();return this.kf=e||n,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,n){var r=createNS(\"feMerge\");r.setAttribute(\"result\",e);var o,a;for(a=0;a<n.length;a+=1)o=createNS(\"feMergeNode\"),o.setAttribute(\"in\",n[a]),r.appendChild(o),r.appendChild(o);return r}};var linearFilterValue=\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0\";function SVGTintFilter(t,e,n,r,o){this.filterManager=e;var a=createNS(\"feColorMatrix\");a.setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),a.setAttribute(\"values\",linearFilterValue+\" 1 0\"),this.linearFilter=a,a.setAttribute(\"result\",r+\"_tint_1\"),t.appendChild(a),a=createNS(\"feColorMatrix\"),a.setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),a.setAttribute(\"result\",r+\"_tint_2\"),t.appendChild(a),this.matrixFilter=a;var c=this.createMergeNode(r,[o,r+\"_tint_1\",r+\"_tint_2\"]);t.appendChild(c)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute(\"values\",linearFilterValue+\" \"+r+\" 0\"),this.matrixFilter.setAttribute(\"values\",n[0]-e[0]+\" 0 0 0 \"+e[0]+\" \"+(n[1]-e[1])+\" 0 0 0 \"+e[1]+\" \"+(n[2]-e[2])+\" 0 0 0 \"+e[2]+\" 0 0 0 1 0\")}};function SVGFillFilter(t,e,n,r){this.filterManager=e;var o=createNS(\"feColorMatrix\");o.setAttribute(\"type\",\"matrix\"),o.setAttribute(\"color-interpolation-filters\",\"sRGB\"),o.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),o.setAttribute(\"result\",r),t.appendChild(o),this.matrixFilter=o}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute(\"values\",\"0 0 0 0 \"+e[0]+\" 0 0 0 0 \"+e[1]+\" 0 0 0 0 \"+e[2]+\" 0 0 0 \"+n+\" 0\")}};function SVGStrokeEffect(t,e,n){this.initialized=!1,this.filterManager=e,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,e,n,r,o;for(this.filterManager.effectElements[1].p.v===1?(o=this.elem.maskManager.masksProperties.length,r=0):(r=this.filterManager.effectElements[0].p.v-1,o=r+1),n=createNS(\"g\"),n.setAttribute(\"fill\",\"none\"),n.setAttribute(\"stroke-linecap\",\"round\"),n.setAttribute(\"stroke-dashoffset\",1),r;r<o;r+=1)e=createNS(\"path\"),n.appendChild(e),this.paths.push({p:e,m:r});if(this.filterManager.effectElements[10].p.v===3){var a=createNS(\"mask\"),c=createElementID();a.setAttribute(\"id\",c),a.setAttribute(\"mask-type\",\"alpha\"),a.appendChild(n),this.elem.globalData.defs.appendChild(a);var l=createNS(\"g\");for(l.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+c+\")\");t[0];)l.appendChild(t[0]);this.elem.layerElement.appendChild(l),this.masker=a,n.setAttribute(\"stroke\",\"#fff\")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(t=this.elem.layerElement.children||this.elem.layerElement.childNodes;t.length;)this.elem.layerElement.removeChild(t[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute(\"mask\"),n.setAttribute(\"stroke\",\"#fff\")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,n=this.paths.length,r,o;for(e=0;e<n;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],o=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&o.setAttribute(\"d\",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var c=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,f=o.getTotalLength();a=\"0 0 0 \"+f*c+\" \";var p=f*(l-c),m=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,g=Math.floor(p/m),y;for(y=0;y<g;y+=1)a+=\"1 \"+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+\" \";a+=\"0 \"+f*10+\" 0 0\"}else a=\"1 \"+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;o.setAttribute(\"stroke-dasharray\",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute(\"stroke-width\",this.filterManager.effectElements[4].p.v*2),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute(\"opacity\",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var A=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute(\"stroke\",\"rgb(\"+bmFloor(A[0]*255)+\",\"+bmFloor(A[1]*255)+\",\"+bmFloor(A[2]*255)+\")\")}};function SVGTritoneFilter(t,e,n,r){this.filterManager=e;var o=createNS(\"feColorMatrix\");o.setAttribute(\"type\",\"matrix\"),o.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),o.setAttribute(\"values\",\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"),t.appendChild(o);var a=createNS(\"feComponentTransfer\");a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",r),this.matrixFilter=a;var c=createNS(\"feFuncR\");c.setAttribute(\"type\",\"table\"),a.appendChild(c),this.feFuncR=c;var l=createNS(\"feFuncG\");l.setAttribute(\"type\",\"table\"),a.appendChild(l),this.feFuncG=l;var f=createNS(\"feFuncB\");f.setAttribute(\"type\",\"table\"),a.appendChild(f),this.feFuncB=f,t.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+\" \"+n[0]+\" \"+e[0],a=r[1]+\" \"+n[1]+\" \"+e[1],c=r[2]+\" \"+n[2]+\" \"+e[2];this.feFuncR.setAttribute(\"tableValues\",o),this.feFuncG.setAttribute(\"tableValues\",a),this.feFuncB.setAttribute(\"tableValues\",c)}};function SVGProLevelsFilter(t,e,n,r){this.filterManager=e;var o=this.filterManager.effectElements,a=createNS(\"feComponentTransfer\");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc(\"feFuncR\",a)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc(\"feFuncG\",a)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc(\"feFuncB\",a)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc(\"feFuncA\",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),t.appendChild(a)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&(a=createNS(\"feComponentTransfer\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",r),t.appendChild(a),this.feFuncRComposed=this.createFeFunc(\"feFuncR\",a),this.feFuncGComposed=this.createFeFunc(\"feFuncG\",a),this.feFuncBComposed=this.createFeFunc(\"feFuncB\",a))}SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute(\"type\",\"table\"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,r,o){for(var a=0,c=256,l,f=Math.min(t,e),p=Math.max(t,e),m=Array.call(null,{length:c}),g,y=0,A=o-r,T=e-t;a<=256;)l=a/256,l<=f?g=T<0?o:r:l>=p?g=T<0?r:o:g=r+A*Math.pow((l-t)/T,1/n),m[y]=g,y+=1,a+=256/(c-1);return m.join(\" \")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute(\"tableValues\",e),this.feFuncGComposed.setAttribute(\"tableValues\",e),this.feFuncBComposed.setAttribute(\"tableValues\",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute(\"tableValues\",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute(\"tableValues\",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute(\"tableValues\",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute(\"tableValues\",e))}};function SVGDropShadowEffect(t,e,n,r,o){var a=e.container.globalData.renderConfig.filterSize,c=e.data.fs||a;t.setAttribute(\"x\",c.x||a.x),t.setAttribute(\"y\",c.y||a.y),t.setAttribute(\"width\",c.width||a.width),t.setAttribute(\"height\",c.height||a.height),this.filterManager=e;var l=createNS(\"feGaussianBlur\");l.setAttribute(\"in\",\"SourceAlpha\"),l.setAttribute(\"result\",r+\"_drop_shadow_1\"),l.setAttribute(\"stdDeviation\",\"0\"),this.feGaussianBlur=l,t.appendChild(l);var f=createNS(\"feOffset\");f.setAttribute(\"dx\",\"25\"),f.setAttribute(\"dy\",\"0\"),f.setAttribute(\"in\",r+\"_drop_shadow_1\"),f.setAttribute(\"result\",r+\"_drop_shadow_2\"),this.feOffset=f,t.appendChild(f);var p=createNS(\"feFlood\");p.setAttribute(\"flood-color\",\"#00ff00\"),p.setAttribute(\"flood-opacity\",\"1\"),p.setAttribute(\"result\",r+\"_drop_shadow_3\"),this.feFlood=p,t.appendChild(p);var m=createNS(\"feComposite\");m.setAttribute(\"in\",r+\"_drop_shadow_3\"),m.setAttribute(\"in2\",r+\"_drop_shadow_2\"),m.setAttribute(\"operator\",\"in\"),m.setAttribute(\"result\",r+\"_drop_shadow_4\"),t.appendChild(m);var g=this.createMergeNode(r,[r+\"_drop_shadow_4\",o]);t.appendChild(g)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute(\"stdDeviation\",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute(\"flood-color\",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute(\"flood-opacity\",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute(\"dx\",o),this.feOffset.setAttribute(\"dy\",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS(\"g\"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,n=_svgMatteSymbols.length;e<n;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var r=n.children,o=0,a=r.length;o<a&&r[o]!==t.layerElement;)o+=1;var c;o<=a-2&&(c=r[o+1]);var l=createNS(\"use\");l.setAttribute(\"href\",\"#\"+e),c?n.insertBefore(l,c):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=createElementID(),r=createNS(\"mask\");r.setAttribute(\"id\",e.layerId),r.setAttribute(\"mask-type\",\"alpha\"),_svgMatteSymbols.push(e);var o=t.globalData.defs;o.appendChild(r);var a=createNS(\"symbol\");a.setAttribute(\"id\",n),this.replaceInParent(e,n),a.appendChild(e.layerElement),o.appendChild(a);var c=createNS(\"use\");c.setAttribute(\"href\",\"#\"+n),r.appendChild(c),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,n=0,r=e.length;n<r;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(t,e,n,r){t.setAttribute(\"x\",\"-100%\"),t.setAttribute(\"y\",\"-100%\"),t.setAttribute(\"width\",\"300%\"),t.setAttribute(\"height\",\"300%\"),this.filterManager=e;var o=createNS(\"feGaussianBlur\");o.setAttribute(\"result\",r),t.appendChild(o),this.feGaussianBlur=o}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,n=this.filterManager.effectElements[0].p.v*e,r=this.filterManager.effectElements[1].p.v,o=r==3?0:n,a=r==2?0:n;this.feGaussianBlur.setAttribute(\"stdDeviation\",o+\" \"+a);var c=this.filterManager.effectElements[2].p.v==1?\"wrap\":\"duplicate\";this.feGaussianBlur.setAttribute(\"edgeMode\",c)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,n=e[0].p.v,r=e[1].p.v,o=e[2].p.v===1,a=e[3].p.v,c=o?a:e[4].p.v,l=e[5].p.v,f=e[6].p.v,p=e[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(c*.01,a*.01,1),this.matrix.rotate(-p*degToRads),this.matrix.skewFromAxis(-l*degToRads,(f+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(t,e){this.init(e)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer(\"canvas\",CanvasRenderer),registerRenderer(\"html\",HybridRenderer),registerRenderer(\"svg\",SVGRenderer),ShapeModifiers.registerModifier(\"tm\",TrimModifier),ShapeModifiers.registerModifier(\"pb\",PuckerAndBloatModifier),ShapeModifiers.registerModifier(\"rp\",RepeaterModifier),ShapeModifiers.registerModifier(\"rd\",RoundCornersModifier),ShapeModifiers.registerModifier(\"zz\",ZigZagModifier),ShapeModifiers.registerModifier(\"op\",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))});var EMe={};function Cu(t,e){e===void 0&&(e={});var n=e.insertAt;if(t&&typeof document<\"u\"){var r=document.head||document.getElementsByTagName(\"head\")[0],o=document.createElement(\"style\");o.type=\"text/css\",n===\"top\"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}function Pre(){return document.documentElement.clientWidth<=gMe}function Bre(){document.documentElement.style.setProperty(\"--defly-wallet-vh\",.01*window.innerHeight+\"px\")}function aL(t=!0){let e=vMe,n=bL();return t&&n&&(e=`${e}?browser=${encodeURIComponent(n)}`),e}var gL,Fre,Uit,Hit,Ore,gMe,Lre,yMe,rL,Nre,Ure,vMe,zre,oL,Vre,Hre,jre,$re,Kre,iL,sL,Q9,cL,Gre,ek,Dre,lL,qre,Wre,uL,yL,Yre,Zre,xMe,dL,fL,tk,bMe,pL,wMe,Xre,Jre,hL,Qre,eoe,mL,toe=Ve(()=>{u();wL();gL=br(Ire(),1),Fre=br(Rre(),1),Uit=br($s(),1);Tg();$i();Hit=br(_g(),1);Ore=`.defly-wallet-modal-header {\\n  position: absolute;\\n  top: -44px;\\n  right: 0px;\\n  left: 0;\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n}\\n.defly-wallet-modal-header--mobile {\\n  position: static;\\n}\\n.defly-wallet-modal-header--mobile .defly-wallet-modal-header__close-button {\\n  width: 24px;\\n  height: 24px;\\n  margin: 0;\\n  padding: 0;\\n  background: transparent;\\n  border: unset;\\n  box-shadow: unset;\\n}\\n\\n.defly-wallet-modal-header__brand {\\n  display: flex;\\n  align-items: center;\\n  gap: 10px;\\n  font-size: 15px;\\n  font-weight: 600;\\n  line-height: 18px;\\n  letter-spacing: -0.13px;\\n  color: #ffffff;\\n}\\n\\n.defly-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.defly-wallet-modal-header__close-button {\\n  width: 40px;\\n  height: 40px;\\n  margin: 0;\\n  padding: 0;\\n  background: #333333;\\n  border: 1.5px solid rgba(255, 255, 255, 0.08);\\n  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\\n  border-radius: 100%;\\n}\\n\\n.defly-wallet-modal-header__close-button__close-icon {\\n  width: 20px;\\n  height: 20px;\\n}`;Cu(Ore);gMe=935;Lre=document.createElement(\"template\"),yMe=mp()?\"defly-wallet-modal-header defly-wallet-modal-header--mobile\":\"defly-wallet-modal-header defly-wallet-modal-header--desktop\";Lre.innerHTML=`\\n  <div class=\"${yMe}\">\\n      ${Pre()&&mp()?\"\":`<div class=\"defly-wallet-modal-header__brand\">\\n              <img src=\"data:image/svg+xml,%3csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'36\\' height=\\'36\\' viewBox=\\'0 0 36 36\\'%3e %3cg transform=\\'translate(18090 -8429)\\'%3e %3cg transform=\\'translate(-18227.732 8408.374)\\'%3e %3cpath d=\\'M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z\\' transform=\\'translate(0)\\' fill=\\'white\\'/%3e %3cpath d=\\'M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z\\' transform=\\'translate(-25.252 -207.321)\\' fill=\\'white\\'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e\" />\\n\\n              Defly Connect\\n            </div>\\n            `} \\n\\n      <button\\n        id=\"defly-wallet-modal-header-close-button\"\\n        class=\"defly-wallet-button defly-wallet-modal-header__close-button\">\\n        <img\\n          class=\"defly-wallet-modal-header__close-button__close-icon\"\\n          src=\"${Pre()&&mp()?\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6\\' stroke=\\'%23999999\\' stroke-width=\\'2\\'/%3e%3c/svg%3e\":\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6\\' stroke=\\'white\\' stroke-width=\\'2\\'/%3e%3c/svg%3e\"}\"\\n        />\\n      </button>\\n    </div>\\n`;rL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Ore,this.shadowRoot.append(Lre.content.cloneNode(!0),e),this.onClose()}}onClose(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-modal-header-close-button\"),r=this.getAttribute(\"modal-id\");n&&r===Ig&&n.addEventListener(\"click\",(()=>{_d(Ig)}))}},Nre=\"data:image/svg+xml,%3csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'36\\' height=\\'36\\' viewBox=\\'0 0 36 36\\'%3e%3cg transform=\\'translate(18090 -8429)\\'%3e%3cg transform=\\'translate(-18090 8428)\\'%3e%3crect width=\\'36\\' height=\\'36\\' rx=\\'18\\' transform=\\'translate(0 1)\\'/%3e%3c/g%3e%3cg transform=\\'translate(-18227.732 8408.374)\\'%3e%3cpath d=\\'M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z\\' transform=\\'translate(0)\\' fill=\\'white\\'/%3e%3cpath d=\\'M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z\\' transform=\\'translate(-25.252 -207.321)\\' fill=\\'white\\'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e\",Ure=`.defly-wallet-download-qr-code-wrapper {\\n  width: fit-content;\\n  margin: 0 auto;\\n  display: flex;\\n  background-color: #ffffff;\\n  box-shadow: 0 12px 32px rgba(26, 35, 91, 0.1);\\n  border-radius: 30px;\\n  align-items: center;\\n  justify-content: center;\\n  padding: 15px;\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-download-qr-code-wrapper {\\n    margin-top: 32px;\\n  }\\n}`;Cu(Ure);vMe=vL()?\"algorand://\":\"defly-wc://\",zre=document.createElement(\"template\");zre.innerHTML=`\\n  <div id=\"defly-wallet-download-qr-code-wrapper\" class=\"defly-wallet-download-qr-code-wrapper\"></div>  \\n`;oL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Ure,this.shadowRoot.append(zre.content.cloneNode(!0),e)}}connectedCallback(){var e;let n=new gL.default({width:250,height:250,type:\"svg\",data:\"https://defly.app/\",image:Nre,dotsOptions:{color:\"#000\",type:\"dots\"},imageOptions:{crossOrigin:\"anonymous\",margin:10},cornersSquareOptions:{type:\"extra-rounded\"},cornersDotOptions:{type:\"dot\"}}),r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-download-qr-code-wrapper\");r&&n.append(r)}},Vre=`.defly-wallet-connect-modal-desktop-mode {\\n  display: grid;\\n  grid-template-columns: 50% auto;\\n  gap: 24px;\\n  align-items: center;\\n}\\n.defly-wallet-connect-modal-desktop-mode--default .defly-wallet-connect-modal-desktop-mode__default-view {\\n  display: block;\\n}\\n.defly-wallet-connect-modal-desktop-mode--default .defly-wallet-connect-modal-desktop-mode__download-view {\\n  display: none;\\n}\\n.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__default-view {\\n  display: none;\\n}\\n.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__download-view {\\n  display: block;\\n}\\n.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__download-view .defly-wallet-connect-modal-download-defly-view__footer a {\\n  display: flex;\\n  cursor: pointer;\\n}\\n.defly-wallet-connect-modal-desktop-mode--select-account {\\n  width: 100%;\\n  height: 100%;\\n}\\n.defly-wallet-connect-modal-desktop-mode--select-account.defly-wallet-connect-modal-desktop-mode--default {\\n  overflow: hidden;\\n}\\n.defly-wallet-connect-modal-desktop-mode--select-account .defly-wallet-accordion {\\n  overflow: hidden;\\n}\\n.defly-wallet-connect-modal-desktop-mode--select-account #defly-wallet-iframe {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  z-index: 3;\\n  width: 100%;\\n  height: 100%;\\n  border-radius: 16px;\\n}\\n\\n.defly-wallet-connect-modal-desktop-mode__accordion__description,\\n.defly-wallet-connect-modal-desktop-mode__connect-button-wrapper {\\n  padding: 0 40px 20px 64px;\\n}\\n\\n.defly-wallet-connect-modal-desktop-mode__connect-button {\\n  display: block;\\n  width: 100%;\\n  height: 48px;\\n  border: unset;\\n  border-radius: 6px;\\n  background-color: #333333;\\n  color: white;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 13px;\\n}\\n\\n.defly-wallet-connect-qr-code-wrapper {\\n  width: fit-content;\\n  padding: 10px;\\n  margin: 0 auto;\\n  display: flex;\\n  background-color: #ffffff;\\n  box-shadow: 0 12px 32px rgba(26, 35, 91, 0.1);\\n  border-radius: 30px;\\n}\\n\\n.defly-wallet-connect-qr-code-wrapper {\\n  margin-top: 30px;\\n  cursor: pointer;\\n}\\n\\n.defly-wallet-download-qr-code__image {\\n  width: 300px;\\n  height: 300px;\\n}\\n\\n.defly-wallet-accordion-copy-button {\\n  display: block;\\n  width: 100%;\\n  color: #696868;\\n  text-align: center;\\n  margin-top: 15px;\\n  cursor: pointer;\\n  font-size: 12px;\\n  line-height: 16px;\\n  letter-spacing: -0.1px;\\n  font-weight: 400;\\n  transition: all ease-in 0.2s;\\n}\\n.defly-wallet-accordion-copy-button:hover {\\n  color: #999999;\\n}\\n\\n.defly-wallet-connect-modal-desktop-mode__scan-defly-description {\\n  color: #999999;\\n  text-align: center;\\n  margin: 15px 0 12px;\\n  font-size: 22px;\\n  font-weight: 600;\\n  line-height: 26px;\\n  letter-spacing: 0.2px;\\n}\\n.defly-wallet-connect-modal-desktop-mode__scan-defly-description a {\\n  color: #999999;\\n}\\n.defly-wallet-connect-modal-desktop-mode__scan-defly-description a:hover {\\n  color: #696868;\\n}\\n\\n.defly-wallet-connect-modal-desktop-mode__download-defly-description {\\n  color: #696868;\\n  text-align: center;\\n  margin: 32px 0 12px;\\n  font-size: 13px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.04px;\\n}\\n\\n.defly-wallet-connect-modal-download-defly-view__back-button {\\n  display: flex;\\n  align-items: center;\\n  gap: 16px;\\n  margin-bottom: 14px;\\n  padding: 12px 24px;\\n  color: #3c3c49;\\n  background-color: #ffffff;\\n  outline: none;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border: unset;\\n  border-radius: 24px;\\n  font-size: 14px;\\n  font-weight: 600;\\n  line-height: 24px;\\n  letter-spacing: -0.1px;\\n  cursor: pointer;\\n}\\n\\n.defly-wallet-connect-modal-download-defly-view {\\n  padding: 20px;\\n  background-color: #333333;\\n  border-radius: 30px;\\n}\\n\\n.defly-wallet-connect-modal-download-defly-view__title {\\n  margin-bottom: 15px;\\n  color: #999999;\\n  font-weight: 600;\\n  font-size: 22px;\\n  line-height: 24px;\\n  text-align: center;\\n  letter-spacing: 0.2px;\\n}\\n\\n.defly-wallet-connect-modal-download-defly-view__footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 12px;\\n  margin-top: 20px;\\n}\\n\\n.defly-wallet-connect-modal-download-defly-view__footer__button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 8px;\\n  padding: 8px 16px;\\n  color: #6a6a81;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  text-decoration: none;\\n  border-radius: 12px;\\n  font-weight: 500;\\n  font-size: 13px;\\n  line-height: 200%;\\n  letter-spacing: -0.04px;\\n  cursor: pointer;\\n}\\n\\n#defly-wallet-iframe {\\n  width: 285px;\\n  height: 376px;\\n  margin: 0 auto;\\n  border: none;\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-connect-modal-desktop-mode {\\n    grid-template-columns: 1fr;\\n    gap: 24px;\\n  }\\n  .defly-wallet-connect-qr-code-wrapper {\\n    margin-top: 16px;\\n  }\\n  .defly-wallet-connect-modal-download-defly-view {\\n    padding: 24px;\\n  }\\n  .defly-wallet-connect-modal-download-defly-view__footer {\\n    margin-top: 40px;\\n  }\\n}`;Cu(Vre);Hre=`.defly-wallet-accordion-item:not(:last-of-type) {\\n  margin-bottom: 20px;\\n}\\n.defly-wallet-accordion-item:not(:last-of-type) .defly-wallet-accordion-panel {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n}\\n.defly-wallet-accordion-item .defly-wallet-accordion-item__content {\\n  height: 0;\\n  overflow: hidden;\\n  color: #696868;\\n  font-size: 12px;\\n  font-weight: 500;\\n  line-height: 16px;\\n  letter-spacing: -0.1px;\\n  transition: height ease-in 0.2s;\\n}\\n.defly-wallet-accordion-item--active .defly-wallet-accordion-item__content {\\n  height: 494px;\\n  transition: height ease-in 0.2s;\\n}\\n\\n.defly-wallet-accordion-toggle {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n  gap: 16px;\\n  padding: 12px 24px;\\n  color: #2c3559;\\n  background-color: #ffffff;\\n  border: none;\\n  border-radius: 24px;\\n  outline: none;\\n  cursor: pointer;\\n  font-size: 16px;\\n  line-height: 18px;\\n  letter-spacing: -0.1px;\\n  font-weight: 600;\\n  transition: all ease-in 0.2s;\\n}\\n.defly-wallet-accordion-toggle__text, .defly-wallet-accordion-toggle__content-with-label__text {\\n  color: #6a6a81;\\n}\\n\\n.defly-wallet-accordion-toggle__bold-color {\\n  color: #3c3c49;\\n  font-weight: 600;\\n}\\n\\n.defly-wallet-accordion-toggle__content-with-label {\\n  display: flex;\\n  align-items: center;\\n  gap: 12px;\\n}\\n\\n.defly-wallet-accordion-toggle__label {\\n  padding: 4px 9px;\\n  color: #00b19e;\\n  background: rgba(0, 177, 158, 0.08);\\n  border-radius: 12px;\\n  font-size: 11px;\\n  font-weight: 600;\\n  line-height: 18px;\\n  letter-spacing: 0.01px;\\n}\\n\\n.defly-wallet-accordion-toggle__button {\\n  position: absolute;\\n  z-index: 2;\\n  width: 100%;\\n  height: 100%;\\n  background: transparent;\\n  box-shadow: none;\\n  outline: none;\\n  border: none;\\n  cursor: pointer;\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-accordion-toggle {\\n    font-size: 14px;\\n    font-weight: 500;\\n    line-height: 24px;\\n    letter-spacing: -0.1px;\\n  }\\n}`;Cu(Hre);jre=document.createElement(\"template\"),$re=document.createElement(\"style\"),Kre=document.createElement(\"style\");$re.textContent=Vre,Kre.textContent=Hre;jre.innerHTML=`\\n  <div id=\"defly-wallet-connect-modal-desktop-mode\" class=\"defly-wallet-connect-modal-desktop-mode defly-wallet-connect-modal-desktop-mode--default\">\\n      <defly-wallet-connect-modal-information-section></defly-wallet-connect-modal-information-section>\\n\\n      <div class=\"defly-wallet-connect-modal-desktop-mode__default-view\">\\n\\n        <div class=\"defly-wallet-accordion-item defly-wallet-accordion-item--active\">\\n\\n          <div class=\"defly-wallet-accordion-item__content\">\\n            <div id=\"defly-wallet-connect-modal-connect-qr-code\" class=\"defly-wallet-connect-qr-code-wrapper f_copy-button\"></div>\\n\\n            <div class=\"defly-wallet-accordion-copy-button f_copy-button\">Tap to copy</div>\\n            <p class=\"defly-wallet-connect-modal-desktop-mode__scan-defly-description\">\\n                Scan with <a href=\"https://defly.app/\">Defly Wallet</a>\\n            </p>\\n\\n            \\n          </div>\\n        </div>\\n      </div>\\n\\n      <div class=\"defly-wallet-connect-modal-desktop-mode__download-view\">\\n        <button id=\"defly-wallet-connect-modal-download-defly-view-back-button\" class=\"defly-wallet-connect-modal-download-defly-view__back-button\">\\n          <img src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M10.7071 6.29387C11.0976 6.68439 11.0976 7.31756 10.7071 7.70808L7.41421 11.001L19 11.001C19.5523 11.001 20 11.4487 20 12.001C20 12.5533 19.5523 13.001 19 13.001L7.41421 13.001L10.7071 16.2939C11.0976 16.6844 11.0976 17.3176 10.7071 17.7081C10.3166 18.0986 9.68342 18.0986 9.29289 17.7081L4.29289 12.7081C4.10536 12.5205 4 12.2662 4 12.001C4 11.7358 4.10536 11.4814 4.29289 11.2939L9.29289 6.29387C9.68342 5.90335 10.3166 5.90335 10.7071 6.29387Z\\' fill=\\'%233C3C49\\'/%3e%3c/svg%3e\" alt=\"Back Arrow\" /> Back\\n        </button>\\n\\n        <div class=\"defly-wallet-connect-modal-download-defly-view\">\\n          <h1 class=\"defly-wallet-connect-modal-download-defly-view__title\">\\n            Download Defly Wallet\\n          </h1>\\n\\n          <defly-wallet-download-qr-code></defly-wallet-download-qr-code>\\n\\n          <div class=\"defly-wallet-connect-modal-download-defly-view__footer\">\\n            <a\\n              href=\"https://apps.apple.com/us/app/defly/id1602672723\"\\n              target=\"_blank\"\\n              rel=\"noopener noreferrer\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'40\\' height=\\'40\\' viewBox=\\'0 0 40 40\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect width=\\'40\\' height=\\'40\\' rx=\\'12\\' fill=\\'black\\'/%3e%3cpath d=\\'M25.6308 20.3011C25.6416 19.4664 25.8633 18.6481 26.2753 17.9221C26.6873 17.1962 27.2763 16.5863 27.9873 16.1491C27.5356 15.5039 26.9397 14.973 26.2469 14.5984C25.554 14.2239 24.7834 14.016 23.9963 13.9914C22.317 13.8151 20.6891 14.9962 19.8333 14.9962C18.9611 14.9962 17.6436 14.0089 16.2249 14.0381C15.3072 14.0677 14.4128 14.3346 13.6289 14.8126C12.8451 15.2906 12.1984 15.9636 11.7519 16.7659C9.81789 20.1144 11.2605 25.0354 13.1132 27.742C14.0401 29.0674 15.1233 30.5478 16.5408 30.4953C17.9278 30.4378 18.4458 29.6108 20.1202 29.6108C21.779 29.6108 22.265 30.4953 23.7112 30.4619C25.1995 30.4378 26.1372 29.1307 27.0316 27.7928C27.6976 26.8484 28.2101 25.8047 28.55 24.7003C27.6853 24.3345 26.9474 23.7224 26.4283 22.9401C25.9092 22.1578 25.6318 21.2399 25.6308 20.3011ZM22.8993 12.2113C23.7108 11.2371 24.1106 9.98492 24.0138 8.7207C22.7739 8.85092 21.6287 9.44347 20.8062 10.3803C20.404 10.838 20.096 11.3704 19.8998 11.9472C19.7035 12.5239 19.6229 13.1337 19.6625 13.7417C20.2826 13.7481 20.8961 13.6137 21.4568 13.3486C22.0175 13.0835 22.5107 12.6946 22.8993 12.2113Z\\' fill=\\'white\\'/%3e%3c/svg%3e\" alt=\"App Store icon\" />\\n            </a>\\n\\n            <a\\n              href=\"https://play.google.com/store/apps/details?id=io.blockshake.defly.app\"\\n              target=\"_blank\"\\n              rel=\"noopener noreferrer\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'40\\' height=\\'40\\' viewBox=\\'0 0 40 40\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect width=\\'40\\' height=\\'40\\' rx=\\'12\\' fill=\\'black\\'/%3e%3cpath d=\\'M12.41 9.7719C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922V10.8671V29.1294V29.0091C11.9683 29.5202 12.1099 29.9149 12.3497 30.169L12.4109 30.2277V30.228C12.6051 30.4035 12.854 30.4966 13.1393 30.4963C13.418 30.4963 13.7316 30.4073 14.0626 30.2194L26.0264 23.4107L30.1359 21.0717C30.6578 20.7748 30.9508 20.3917 30.9998 20.0014V19.9998C30.9508 19.6087 30.6578 19.2259 30.1359 18.9289L26.0261 16.5902L14.0627 9.78154C13.731 9.59325 13.4171 9.50391 13.1376 9.50391C12.8527 9.50391 12.6041 9.59677 12.41 9.7719H12.41Z\\' fill=\\'%2300C1FF\\'/%3e%3cpath d=\\'M12.411 30.2285L12.3497 30.1698C12.1099 29.9157 11.9683 29.5209 11.9683 29.0098V29.1301V10.8724V10.993C11.9683 10.4396 12.1334 10.0226 12.41 9.77268L22.622 20.0009L12.411 30.2285Z\\' fill=\\'url(%23paint0_linear_173_14441)\\'/%3e%3cpath d=\\'M26.0256 23.4102L22.6211 19.9996L26.0253 16.5896L30.1351 18.9283C30.657 19.2253 30.95 19.6081 30.9989 19.9993V20.0008C30.95 20.3911 30.657 20.7742 30.1351 21.0712L26.0256 23.4101\\' fill=\\'url(%23paint1_linear_173_14441)\\'/%3e%3cpath d=\\'M13.1374 30.4961C12.8522 30.4964 12.6033 30.4032 12.4092 30.2277V30.2275L22.6202 19.9999L26.0246 23.4104L14.0608 30.2191C13.7298 30.4071 13.4162 30.4961 13.1374 30.4961Z\\' fill=\\'url(%23paint2_linear_173_14441)\\'/%3e%3cpath d=\\'M22.6212 20.002L12.4092 9.7737C12.6033 9.59858 12.8519 9.50571 13.1368 9.50571C13.4163 9.50571 13.7302 9.59501 14.0618 9.78335L26.0253 16.592L22.6212 20.002\\' fill=\\'url(%23paint3_linear_173_14441)\\'/%3e%3cpath d=\\'M13.1394 30.6172C12.8542 30.6172 12.6049 30.524 12.4108 30.3486L12.4105 30.3489C12.4097 30.3481 12.4088 30.3473 12.4079 30.3466L12.3548 30.2947C12.3531 30.2931 12.3516 30.2912 12.3496 30.2893L12.4108 30.2279C12.6049 30.4034 12.8538 30.4966 13.1392 30.4962C13.4179 30.4962 13.7315 30.4073 14.0625 30.2193L26.0263 23.4106L26.1029 23.4874L26.0253 23.5316L14.0625 30.3398C13.7608 30.5111 13.4739 30.6004 13.2147 30.6153C13.1896 30.6165 13.1645 30.6171 13.1394 30.6172\\' fill=\\'url(%23paint4_linear_173_14441)\\'/%3e%3cpath d=\\'M12.3497 30.2891C12.1099 30.0349 11.9683 29.6406 11.9683 29.1292V29.0089C11.9683 29.52 12.1099 29.9146 12.3497 30.1688L12.4109 30.2275L12.3497 30.2891Z\\' fill=\\'url(%23paint5_linear_173_14441)\\'/%3e%3cpath d=\\'M26.1025 23.4882L26.0259 23.4114L30.1349 21.0727C30.6568 20.7758 30.9498 20.3927 30.9987 20.0025C30.9987 20.1457 30.9668 20.2889 30.9035 20.4282C30.7756 20.7091 30.5194 20.9744 30.135 21.1934L26.1025 23.4883\\' fill=\\'url(%23paint6_linear_173_14441)\\'/%3e%3cpath d=\\'M30.9991 20C30.9501 19.6089 30.6571 19.2261 30.1353 18.9291L26.0259 16.5907L26.1025 16.5139H26.1029L30.1353 18.8088C30.7106 19.1365 30.9987 19.5682 30.9991 20Z\\' fill=\\'url(%23paint7_linear_173_14441)\\'/%3e%3cpath d=\\'M11.9683 10.9922V10.8661C11.9683 10.8206 11.9695 10.7761 11.9718 10.7329V10.7309C11.9718 10.7303 11.9718 10.7297 11.972 10.729V10.7242C11.9969 10.284 12.1334 9.94066 12.3497 9.71139L12.4099 9.77198C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922Z\\' fill=\\'url(%23paint8_linear_173_14441)\\'/%3e%3cpath d=\\'M26.026 16.5898L14.0625 9.78115C13.7308 9.59285 13.417 9.50355 13.1375 9.50355C12.8525 9.50355 12.6039 9.59642 12.4099 9.77154L12.3496 9.71091C12.3684 9.69096 12.388 9.67172 12.4082 9.65322C12.4089 9.65255 12.4099 9.65188 12.4105 9.65125C12.6031 9.47747 12.849 9.3846 13.1314 9.38293H13.1375C13.417 9.38293 13.7308 9.47227 14.0625 9.66064L26.1029 16.5128L26.1026 16.513L26.026 16.5898Z\\' fill=\\'url(%23paint9_linear_173_14441)\\'/%3e%3cdefs%3e%3clinearGradient id=\\'paint0_linear_173_14441\\' x1=\\'18.4943\\' y1=\\'10.6794\\' x2=\\'9.69389\\' y2=\\'19.494\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2300A0FF\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%2300A1FF\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2300BEFF\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2300D2FF\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2300DFFF\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300E3FF\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint1_linear_173_14441\\' x1=\\'31.6348\\' y1=\\'19.9407\\' x2=\\'11.691\\' y2=\\'19.9407\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FFE000\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23FFBD00\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'orange\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23FF9C00\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint2_linear_173_14441\\' x1=\\'24.2172\\' y1=\\'23.2425\\' x2=\\'9.30414\\' y2=\\'38.0705\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FF3A44\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23C31162\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint3_linear_173_14441\\' x1=\\'9.77725\\' y1=\\'8.25731\\' x2=\\'16.4237\\' y2=\\'14.876\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2332A071\\'/%3e%3cstop offset=\\'0.0685\\' stop-color=\\'%232DA771\\'/%3e%3cstop offset=\\'0.4762\\' stop-color=\\'%2315CF74\\'/%3e%3cstop offset=\\'0.8009\\' stop-color=\\'%2306E775\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300F076\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint4_linear_173_14441\\' x1=\\'24.2114\\' y1=\\'25.6084\\' x2=\\'12.2683\\' y2=\\'37.5709\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23CC2E36\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%239C0E4E\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint5_linear_173_14441\\' x1=\\'13.3285\\' y1=\\'10.6804\\' x2=\\'5.57625\\' y2=\\'18.4453\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23008DE0\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%23008DE0\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2300A7E0\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2300B8E0\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2300C4E0\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300C7E0\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint6_linear_173_14441\\' x1=\\'31.6346\\' y1=\\'20.0018\\' x2=\\'11.6929\\' y2=\\'20.0018\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23E0C500\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23E0A600\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'%23E09100\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23E08900\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint7_linear_173_14441\\' x1=\\'31.6349\\' y1=\\'20.0008\\' x2=\\'11.6933\\' y2=\\'20.0008\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FFE840\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23FFCE40\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'%23FFBC40\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23FFB540\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint8_linear_173_14441\\' x1=\\'13.3201\\' y1=\\'10.6927\\' x2=\\'5.8533\\' y2=\\'17.8475\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2340B8FF\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%2340B9FF\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2340CEFF\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2340DDFF\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2340E7FF\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2340EAFF\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint9_linear_173_14441\\' x1=\\'9.76302\\' y1=\\'10.4182\\' x2=\\'15.0961\\' y2=\\'15.76\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2365B895\\'/%3e%3cstop offset=\\'0.0685\\' stop-color=\\'%2362BD95\\'/%3e%3cstop offset=\\'0.4762\\' stop-color=\\'%2350DB97\\'/%3e%3cstop offset=\\'0.8009\\' stop-color=\\'%2344ED98\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2340F498\\'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\" alt=\"Play Store icon\" />\\n            </a>\\n\\n          </div>\\n        </div>\\n      </div>\\n    </div>\\n  `;iL=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:\"open\"}),this.shadowRoot&&(this.shadowRoot.append(jre.content.cloneNode(!0),$re,Kre),this.shadowRoot.addEventListener(\"click\",(e=>{this.handleAccordion(e)})))}connectedCallback(){this.handleChangeView()}handleChangeView(){var e,n,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-desktop-mode-download-defly-button\"),a=(n=this.shadowRoot)===null||n===void 0?void 0:n.getElementById(\"defly-wallet-connect-modal-download-defly-view-back-button\"),c=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(\".f_copy-button\");o&&o.addEventListener(\"click\",(()=>{this.onClickDownload()})),a&&a.addEventListener(\"click\",(()=>{this.onClickBack()})),c&&c.length&&c.forEach((l=>{l.addEventListener(\"click\",(()=>{this.onClickCopy()}))})),this.renderQRCode()}handleAccordion(e){var n,r;if(e.target instanceof Element){if(!e.target.classList.contains(\"defly-wallet-accordion-toggle__button\"))return;if(this.shadowRoot&&(!((n=e.target.parentElement)===null||n===void 0)&&n.parentElement)){let o=(r=e.target.parentElement)===null||r===void 0?void 0:r.parentElement;if(!o||o.classList.contains(\"defly-wallet-accordion-item--active\"))return;let a=this.shadowRoot.querySelectorAll(\".defly-wallet-accordion-item.defly-wallet-accordion-item--active\");for(let c=0;c<a.length;c++)a[c].classList.remove(\"defly-wallet-accordion-item--active\");o.classList.toggle(\"defly-wallet-accordion-item--active\")}}}renderQRCode(){var e;let n=this.getAttribute(\"uri\");if(n){let r=new gL.default({width:330,height:330,type:\"svg\",data:n,image:Nre,dotsOptions:{color:\"#000\",type:\"dots\"},imageOptions:{imageSize:.21,crossOrigin:\"anonymous\"},cornersSquareOptions:{type:\"extra-rounded\"},cornersDotOptions:{type:\"dot\"}}),o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-connect-qr-code\");o&&r.append(o)}}onClickDownload(){if(this.shadowRoot){let e=this.shadowRoot.getElementById(\"defly-wallet-connect-modal-desktop-mode\");e&&(e.classList.remove(\"defly-wallet-connect-modal-desktop-mode--default\"),e.classList.add(\"defly-wallet-connect-modal-desktop-mode--download\"))}}onClickCopy(){if(this.shadowRoot){let e=this.getAttribute(\"uri\");if(e){let n=document.createElement(\"textarea\");n.style.position=\"fixed\",n.style.left=\"0\",n.style.top=\"0\",n.style.opacity=\"0\",n.value=e,document.body.appendChild(n),n.focus(),n.select(),document.execCommand(\"copy\"),document.body.removeChild(n)}}}onClickBack(){if(this.shadowRoot){let e=this.shadowRoot.getElementById(\"defly-wallet-connect-modal-desktop-mode\");e&&(e.classList.add(\"defly-wallet-connect-modal-desktop-mode--default\"),e.classList.remove(\"defly-wallet-connect-modal-desktop-mode--download\"))}}};sL=`.defly-wallet-connect-modal-touch-screen-mode {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  gap: 46px;\\n  padding: 4px;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode--pending-message-view {\\n  gap: 56px;\\n  grid-template-rows: auto 48px;\\n  height: 100%;\\n  padding-bottom: 70px;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button,\\n.defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button {\\n  display: block;\\n  padding: 14px;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 15px;\\n  line-height: 26px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n  margin: 0 40px;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button {\\n  margin-bottom: 45px;\\n  background: linear-gradient(90deg, #3E38B9, #413AAA);\\n  color: #ffffff;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button {\\n  margin-bottom: 20px;\\n  background-color: #494949;\\n  color: #ffffff;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box {\\n  position: relative;\\n  margin-bottom: 5px;\\n}\\n\\n.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text {\\n  color: #999999;\\n  font-size: 16px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.04px;\\n  text-align: center;\\n}\\n.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text a {\\n  color: inherit;\\n}`;Cu(sL);Q9=document.createElement(\"template\"),cL=class extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:\"open\"}),Q9.innerHTML=`\\n  <div class=\"defly-wallet-connect-modal-touch-screen-mode\">\\n    <defly-wallet-connect-modal-information-section></defly-wallet-connect-modal-information-section>\\n\\n    <div>\\n      <a\\n        id=\"defly-wallet-connect-modal-touch-screen-mode-launch-defly-wallet-button\"\\n        class=\"defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button\"\\n        rel=\"noopener noreferrer\"\\n        target=\"_blank\">\\n        Launch Defly Wallet\\n      </a>\\n\\n      <div\\n        class=\"defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box\">\\n        <p class=\"defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text\">\\n          New to <a href=\"https://defly.app/\">Defly Wallet</a>?\\n        </p>\\n      </div>\\n\\n      <a\\n        href=\"https://defly.app/download.html\"\\n        class=\"defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button\"\\n        rel=\"noopener noreferrer\"\\n        target=\"_blank\">\\n        Install Defly Wallet\\n      </a>\\n    </div>\\n  </div>\\n`,this.shadowRoot){let n=document.createElement(\"style\");n.textContent=sL,this.shadowRoot.append(Q9.content.cloneNode(!0),n);let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-touch-screen-mode-launch-defly-wallet-button\"),o=this.getAttribute(\"uri\");r&&o&&(r.setAttribute(\"href\",(function(a){let c=aL(!1);xL()&&!c.includes(\"-wc\")&&(c=c.replace(\"://\",\"-wc://\"));let l=`${c}wc?uri=${encodeURIComponent(a)}`,f=bL();return vL()&&(l=a),f&&(l=`${l}&browser=${encodeURIComponent(f)}`),l})(o)),r.addEventListener(\"click\",(()=>{this.onClickLaunch()})))}}onClickLaunch(){if(Q9.innerHTML=`\\n    <div class=\"defly-wallet-connect-modal-touch-screen-mode defly-wallet-connect-modal-touch-screen-mode--pending-message-view\">\\n      <defly-wallet-connect-modal-pending-message-section should-use-sound=\"${this.getAttribute(\"should-use-sound\")}\"></defly-wallet-connect-modal-pending-message-section>\\n    </div>\\n  `,this.shadowRoot){let e=document.createElement(\"style\");e.textContent=sL,this.shadowRoot.innerHTML=\"\",this.shadowRoot.append(Q9.content.cloneNode(!0),e)}}},Gre=`@import url(\"https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap\");\\n@import url(\"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap\");\\n.defly-wallet-modal {\\n  --defly-wallet-modal-font-family: \"Spline Sans\", sans-serif;\\n  --defly-wallet-connect-modal-headline-family: \"Hanken Grotesk\", sans-serif;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.defly-wallet-modal--select-account .defly-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body {\\n  top: 40px;\\n  bottom: 0;\\n  left: 20px;\\n  width: calc(100% - 40px);\\n  max-width: unset;\\n  height: calc(100 * var(--defly-wallet-vh));\\n  padding: 20px;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.defly-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.defly-wallet-modal ul,\\n.defly-wallet-modal ol,\\n.defly-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.defly-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.defly-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.defly-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 979px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #131313;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 40px;\\n  animation: 0.3s DeflyWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-modal--desktop .defly-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes DeflyWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes DeflyWalletConnectMobileSlideIn {\\n  0% {\\n    top: 30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    top: 40px;\\n    opacity: 1;\\n  }\\n}`;Cu(Gre);ek=document.createElement(\"template\"),Dre=mp()?`${Mg} ${Mg}--mobile`:`${Mg} ${Mg}--desktop`,lL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Gre,mp()?(ek.innerHTML=`\\n        <div class=\"${Dre}\">\\n          <div class=\"defly-wallet-modal__body\" part=\"body\">\\n            <defly-wallet-modal-header modal-id=\"${hp}\"></defly-wallet-modal-header/>\\n      \\n            <defly-wallet-modal-touch-screen-mode uri=\"${this.getAttribute(\"uri\")}\" should-use-sound=\"${this.getAttribute(\"should-use-sound\")}\"></defly-wallet-modal-touch-screen-mode>\\n          </div>\\n        </div>\\n      `,this.shadowRoot.append(ek.content.cloneNode(!0),e)):(ek.innerHTML=`\\n          <div class=\"${Dre}\">\\n            <div class=\"defly-wallet-modal__body\">\\n              <defly-wallet-modal-header modal-id=\"${hp}\"></defly-wallet-modal-header/>\\n        \\n              <defly-wallet-modal-desktop-mode id=\"defly-wallet-modal-desktop-mode\" uri=\"${this.getAttribute(\"uri\")}\">\\n              </defly-wallet-modal-desktop-mode>\\n            </div>\\n          </div>\\n        `,this.shadowRoot.append(ek.content.cloneNode(!0),e))}}},qre=`@import url(\"https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap\");\\n@import url(\"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap\");\\n.defly-wallet-modal {\\n  --defly-wallet-modal-font-family: \"Spline Sans\", sans-serif;\\n  --defly-wallet-connect-modal-headline-family: \"Hanken Grotesk\", sans-serif;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.defly-wallet-modal--select-account .defly-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body {\\n  top: 40px;\\n  bottom: 0;\\n  left: 20px;\\n  width: calc(100% - 40px);\\n  max-width: unset;\\n  height: calc(100 * var(--defly-wallet-vh));\\n  padding: 20px;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.defly-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.defly-wallet-modal ul,\\n.defly-wallet-modal ol,\\n.defly-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.defly-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.defly-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.defly-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 979px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #131313;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 40px;\\n  animation: 0.3s DeflyWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-modal--desktop .defly-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes DeflyWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes DeflyWalletConnectMobileSlideIn {\\n  0% {\\n    top: 30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    top: 40px;\\n    opacity: 1;\\n  }\\n}\\n.defly-wallet-redirect-modal {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  gap: 56px;\\n  grid-template-rows: auto 48px;\\n  height: 100%;\\n  padding: 4px;\\n  padding-bottom: 70px;\\n}\\n\\n.defly-wallet-redirect-modal__content {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  flex-direction: column;\\n}\\n\\n.defly-wallet-redirect-modal__content__title {\\n  margin: 20px 0 8px;\\n  color: #3c3c49;\\n  font-size: 18px;\\n  font-weight: 600;\\n  line-height: 22px;\\n  letter-spacing: -0.26px;\\n}\\n\\n.defly-wallet-redirect-modal__content__description,\\n.defly-wallet-redirect-modal__content__install-defly-text {\\n  color: #3c3c49;\\n  max-width: 271px;\\n  font-size: 14px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n  text-align: center;\\n}\\n\\n.defly-wallet-redirect-modal__content__description {\\n  margin-bottom: 24px;\\n}\\n\\n.defly-wallet-redirect-modal__content__install-defly-text__link {\\n  color: #6b46fe;\\n  font-size: 14px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n  text-align: center;\\n}\\n\\n.defly-wallet-redirect-modal__launch-defly-wallet-button {\\n  display: block;\\n  padding: 14px;\\n  color: #ffffff;\\n  background-color: #6b46fe;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n}`;Cu(qre);Wre=document.createElement(\"template\");Wre.innerHTML=`\\n  <div class=\"defly-wallet-modal defly-wallet-modal--mobile\">\\n    <div class=\"defly-wallet-modal__body\">\\n    <defly-wallet-modal-header modal-id=\"${Ig}\"></pera-wallet-modal-header/>\\n      <div class=\"defly-wallet-redirect-modal\">\\n        <div class=\"defly-wallet-redirect-modal__content\">\\n          <img src=\"data:image/svg+xml,%3csvg xmlns=\\'http://www.w3.org/2000/svg\\' xmlns:xlink=\\'http://www.w3.org/1999/xlink\\' width=\\'120\\' height=\\'38\\' viewBox=\\'0 0 120 38\\'%3e %3cdefs%3e %3cclipPath id=\\'a\\'%3e %3crect width=\\'120\\' height=\\'38\\' fill=\\'white\\'/%3e %3c/clipPath%3e %3c/defs%3e %3cg transform=\\'translate(18090 -8428)\\'%3e %3cg transform=\\'translate(-18090 8428)\\' clip-path=\\'url(%23a)\\'%3e %3crect width=\\'36\\' height=\\'36\\' rx=\\'7.768\\' transform=\\'translate(0 1)\\' fill=\\'%23222222\\'/%3e %3cpath d=\\'M112.25%2c37h-11.5A5.976%2c5.976%2c0%2c0%2c1%2c95%2c30.818V9.182A5.976%2c5.976%2c0%2c0%2c1%2c100.75%2c3h11.5A5.976%2c5.976%2c0%2c0%2c1%2c118%2c9.182V30.818A5.976%2c5.976%2c0%2c0%2c1%2c112.25%2c37Z\\' transform=\\'translate(0 -1)\\' fill=\\'rgba(107%2c70%2c254%2c0.1)\\'/%3e %3cpath d=\\'M112.25%2c38.5h-11.5a7.484%2c7.484%2c0%2c0%2c1-7.25-7.682V9.182A7.484%2c7.484%2c0%2c0%2c1%2c100.75%2c1.5h11.5a7.484%2c7.484%2c0%2c0%2c1%2c7.25%2c7.682V30.818A7.484%2c7.484%2c0%2c0%2c1%2c112.25%2c38.5Zm-11.5-34A4.487%2c4.487%2c0%2c0%2c0%2c96.5%2c9.182V30.818a4.487%2c4.487%2c0%2c0%2c0%2c4.25%2c4.682h11.5a4.487%2c4.487%2c0%2c0%2c0%2c4.25-4.682V9.182A4.487%2c4.487%2c0%2c0%2c0%2c112.25%2c4.5Z\\' transform=\\'translate(0 -1)\\' fill=\\'white\\'/%3e %3cpath d=\\'M78.927%2c16.594H52v-3H71.683l-2.534-2.534L71.27%2c8.939Z\\' fill=\\'white\\'/%3e %3cpath d=\\'M59.73%2c30.655%2c52.073%2c23H79v3H59.317l2.534%2c2.534Z\\' fill=\\'white\\'/%3e %3cpath d=\\'M109.565%2c30.175h-5.826a1.5%2c1.5%2c0%2c1%2c1%2c0-3h5.826a1.5%2c1.5%2c0%2c0%2c1%2c0%2c3Z\\' fill=\\'white\\'/%3e %3c/g%3e %3cg transform=\\'translate(-18227.544 8408.866)\\'%3e %3cpath d=\\'M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z\\' transform=\\'translate(0)\\' fill=\\'white\\'/%3e %3cpath d=\\'M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z\\' transform=\\'translate(-25.252 -207.321)\\' fill=\\'white\\'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e\" />\\n\\n          <h1 class=\"defly-wallet-redirect-modal__content__title\">\\n            Can\\'t Launch Defly\\n          </h1>\\n\\n          <p class=\"defly-wallet-redirect-modal__content__description\">\\n            We couldn\\'t redirect you to Defly Wallet automatically. Please try again.\\n          </p>\\n\\n          <p class=\"defly-wallet-redirect-modal__content__install-defly-text\">\\n            Don\\'t have Defly Wallet installed yet?\\n            <br />\\n            \\n            <a\\n              id=\"defly-wallet-redirect-modal-download-defly-link\"\\n              class=\"defly-wallet-redirect-modal__content__install-defly-text__link\"\\n              href=\"https://defly.app/ \"\\n              rel=\"noopener noreferrer\"\\n              target=\"_blank\">\\n              Tap here to install.\\n            </a>\\n          </p>\\n        </div>\\n\\n        <a\\n          id=\"defly-wallet-redirect-modal-launch-defly-link\"\\n          class=\"defly-wallet-redirect-modal__launch-defly-wallet-button\"\\n          rel=\"noopener noreferrer\"\\n          target=\"_blank\">\\n          Launch Defly Wallet\\n        </a>\\n      </div>\\n    </div>\\n  </div>\\n`;uL=class extends HTMLElement{constructor(){var e,n;if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let r=document.createElement(\"style\");r.textContent=qre,this.shadowRoot.append(Wre.content.cloneNode(!0),r);let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-redirect-modal-download-defly-link\");o?.addEventListener(\"click\",(()=>{this.onClose()}));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.getElementById(\"defly-wallet-redirect-modal-launch-defly-link\");a?.addEventListener(\"click\",(()=>{this.onClose(),window.open(aL(),\"_blank\")}))}}connectedCallback(){let e=window.open(aL(),\"_blank\");e&&!e.closed&&this.onClose()}onClose(){_d(Ig)}},yL=\"data:image/svg+xml,%3csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'101.962\\' height=\\'90.114\\' viewBox=\\'0 0 101.962 90.114\\'%3e %3cg transform=\\'translate(0.004)\\'%3e %3cpath d=\\'M244.81%2c107.44%2c193.834%2c26l-50.986%2c81.44%2c50.986-27.77Z\\' transform=\\'translate(-142.852 -26)\\' fill=\\'white\\'/%3e %3cpath d=\\'M254.505%2c273.648l-42.072-22.175-42.076%2c22.175%2c42.076-13.7Z\\' transform=\\'translate(-161.446 -183.534)\\' fill=\\'white\\'/%3e %3c/g%3e%3c/svg%3e\",Yre=`.defly-wallet-connect-modal-information-section {\\n  padding: 12px;\\n  display: flex;\\n  align-items: center;\\n  flex-flow: column;\\n  justify-content: center;\\n}\\n.defly-wallet-connect-modal-information-section--mobile {\\n  padding: 0;\\n  margin-top: 20px;\\n}\\n.defly-wallet-connect-modal-information-section--mobile .defly-wallet-connect-modal-information-section__defly-icon {\\n  margin-bottom: 21px;\\n  max-width: 70px;\\n}\\n.defly-wallet-connect-modal-information-section--mobile .defly-wallet-connect-modal-information-section__title {\\n  font-size: 34px;\\n  line-height: 32px;\\n}\\n\\n.defly-wallet-connect-modal-information-section__defly-icon {\\n  margin-bottom: 32px;\\n}\\n\\n.defly-wallet-connect-modal-information-section__title {\\n  margin-top: 0;\\n  margin-bottom: 0;\\n  color: #fff;\\n  font-size: 52px;\\n  line-height: 48px;\\n  font-weight: 900;\\n  white-space: pre-line;\\n  text-align: center;\\n  letter-spacing: 0;\\n  font-family: var(--defly-wallet-connect-modal-headline-family), sans-serif;\\n}\\n\\n.defly-wallet-connect-modal-information-section__download-defly-button {\\n  display: flex;\\n  align-items: center;\\n  gap: 8px;\\n  margin: 20px auto 0;\\n  padding: 0;\\n  color: #999999;\\n  background-color: transparent;\\n  outline: none;\\n  border: none;\\n  font-weight: 600;\\n  font-size: 13px;\\n  line-height: 20px;\\n  letter-spacing: 0.01px;\\n  cursor: pointer;\\n}\\n.defly-wallet-connect-modal-information-section__download-defly-button:hover {\\n  opacity: 0.8;\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-connect-modal-information-section--desktop {\\n    padding: 0;\\n  }\\n  .defly-wallet-connect-modal-information-section--desktop .defly-wallet-connect-modal-information-section__defly-icon {\\n    max-width: 70px;\\n    margin-bottom: 21px;\\n  }\\n  .defly-wallet-connect-modal-information-section--desktop .defly-wallet-connect-modal-information-section__title {\\n    font-size: 34px;\\n    line-height: 32px;\\n  }\\n  .defly-wallet-connect-modal-information-section__download-defly-button {\\n    display: none;\\n  }\\n}`;Cu(Yre);Zre=document.createElement(\"template\"),xMe=mp()?\"defly-wallet-connect-modal-information-section defly-wallet-connect-modal-information-section--mobile\":\"defly-wallet-connect-modal-information-section defly-wallet-connect-modal-information-section--desktop\";Zre.innerHTML=`\\n  <section class=\"${xMe}\">\\n    <img src=\"${yL}\" class=\"defly-wallet-connect-modal-information-section__defly-icon\" alt=\"Defly Wallet\" />\\n    <h1 class=\"defly-wallet-connect-modal-information-section__title\">Secure \\n wallet & \\n trading</h1>\\n \\n    <button\\n        id=\"defly-wallet-connect-modal-information-section-download-defly-button\"\\n        class=\"defly-wallet-connect-modal-information-section__download-defly-button\">\\n        <img src=\"data:image/svg+xml,%3csvg width=\\'16\\' height=\\'16\\' viewBox=\\'0 0 16 16\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect x=\\'2\\' y=\\'2\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%23999999\\' stroke-width=\\'1.5\\'/%3e%3crect x=\\'2\\' y=\\'9.33203\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%23999999\\' stroke-width=\\'1.5\\'/%3e%3crect x=\\'9.33325\\' y=\\'2\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%23999999\\' stroke-width=\\'1.5\\'/%3e%3cpath d=\\'M8.70581 9.5293H10.9411\\' stroke=\\'%23999999\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M13.1765 12.668L14.6667 12.668\\' stroke=\\'%23999999\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M13.1765 14L14.6667 14\\' stroke=\\'%23999999\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M11.686 14L13.1762 14\\' stroke=\\'%23999999\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M12.4314 9.5293H14.6667\\' stroke=\\'%23999999\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 10.2754H12.4313\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 11.7656H11.6862\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 12.5117H11.6862\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 13.2539H10.196\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 14H10.196\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 11.0195H12.4313\\' stroke=\\'%23999999\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3c/svg%3e\" alt=\"QR Icon\" />\\n        Download\\n      </button>\\n  </section>\\n`;dL=class extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let n=document.createElement(\"style\");n.textContent=Yre,this.shadowRoot.append(Zre.content.cloneNode(!0),n);let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-information-section-download-defly-button\");r&&r.addEventListener(\"click\",(()=>{this.onClickDownload()}))}}onClickDownload(){if(this.shadowRoot){let e=this.shadowRoot.host.parentElement;e&&(e.classList.remove(\"defly-wallet-connect-modal-desktop-mode--default\"),e.classList.add(\"defly-wallet-connect-modal-desktop-mode--download\"))}}},fL=`@import url(\"https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap\");\\n@import url(\"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap\");\\n.defly-wallet-modal {\\n  --defly-wallet-modal-font-family: \"Spline Sans\", sans-serif;\\n  --defly-wallet-connect-modal-headline-family: \"Hanken Grotesk\", sans-serif;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.defly-wallet-modal--select-account .defly-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body {\\n  top: 40px;\\n  bottom: 0;\\n  left: 20px;\\n  width: calc(100% - 40px);\\n  max-width: unset;\\n  height: calc(100 * var(--defly-wallet-vh));\\n  padding: 20px;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.defly-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.defly-wallet-modal ul,\\n.defly-wallet-modal ol,\\n.defly-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.defly-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.defly-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.defly-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 979px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #131313;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 40px;\\n  animation: 0.3s DeflyWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-modal--desktop .defly-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes DeflyWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes DeflyWalletConnectMobileSlideIn {\\n  0% {\\n    top: 30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    top: 40px;\\n    opacity: 1;\\n  }\\n}\\n.defly-wallet-connect-modal-pending-message-section {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  grid-template-rows: auto 48px;\\n  gap: 56px;\\n  height: 100%;\\n  padding: 4px;\\n  padding-bottom: 70px;\\n}\\n\\n.defly-wallet-connect-modal-pending-message {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  flex-direction: column;\\n  text-align: center;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view {\\n  display: flex;\\n  justify-content: space-between;\\n  flex-direction: column;\\n  height: 100%;\\n  margin-top: 10px;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__image {\\n  margin: 0 auto;\\n  display: block;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__title {\\n  margin: 16px 0 12px;\\n  color: #ffffff;\\n  text-align: center;\\n  font-size: 18px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.26px;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__description {\\n  color: #999999;\\n  font-size: 14px;\\n  text-align: center;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.01px;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__button {\\n  display: block;\\n  width: 100%;\\n  padding: 14px;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n  color: #ffffff;\\n  background-color: #6b46fe;\\n  border: none;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor {\\n  display: flex;\\n  gap: 12px;\\n  margin-bottom: 20px;\\n  padding: 16px;\\n  background: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border-radius: 12px;\\n  text-decoration: none;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image {\\n  width: 24px;\\n  height: 24px;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  margin-bottom: 4px;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title {\\n  margin: 0;\\n  font-size: 14px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.1px;\\n  color: #3c3c49;\\n}\\n.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description {\\n  /* stylelint-disable value-no-vendor-prefix */\\n  /* stylelint-disable  property-no-vendor-prefix */\\n  display: -webkit-box;\\n  max-width: 100%;\\n  -webkit-line-clamp: 2;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n  overflow: hidden;\\n  /* stylelint-enable value-no-vendor-prefix */\\n  /* stylelint-enable property-no-vendor-prefix */\\n  margin: 0;\\n  font-size: 12px;\\n  font-weight: 400;\\n  line-height: 18px;\\n  letter-spacing: 0.01px;\\n  color: #9d9dae;\\n}\\n\\n.defly-wallet-connect-modal-pending-message__animation-wrapper {\\n  width: 56px;\\n  height: 56px;\\n  background-color: #6b46fe;\\n  border-radius: 50%;\\n}\\n\\n.defly-wallet-connect-modal-pending-message__text {\\n  max-width: 271px;\\n  margin-top: 20px;\\n  color: #ffffff;\\n  font-size: 18px;\\n  font-weight: 500;\\n  line-height: 28px;\\n  letter-spacing: -0.26px;\\n}\\n\\n.defly-wallet-connect-modal-pending-message__cancel-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: 100%;\\n  padding: 14px;\\n  color: #6a6a81;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n  border: none;\\n}`;Cu(fL);tk=document.createElement(\"template\");tk.innerHTML=`\\n  <div class=\"defly-wallet-connect-modal-pending-message-section\">\\n    <div class=\"defly-wallet-connect-modal-pending-message\">\\n      <img src=\"${yL}\" alt=\"Defly Wallet Logo\" />\\n\\n      <div class=\"defly-wallet-connect-modal-pending-message__text\">\\n        Please wait while we connect you to Defly Wallet...\\n      </div>\\n    </div>\\n\\n    <button\\n      id=\"defly-wallet-connect-modal-pending-message-cancel-button\"\\n      class=\"defly-wallet-button defly-wallet-connect-modal-pending-message__cancel-button\">\\n        Cancel\\n    </button>\\n  </div>\\n\\n  <div id=\"defly-wallet-connect-modal-pending-message-audio-wrapper\"></div>\\n`;bMe=`\\n  <div class=\"defly-wallet-connect-modal-pending-message--try-again-view\">\\n    <div>\\n      <img class=\"defly-wallet-connect-modal-pending-message--try-again-view__image\" src=\"${yL}\" alt=\"Defly Wallet\" />\\n\\n      <h1 class=\"defly-wallet-connect-modal-pending-message--try-again-view__title\">\\n        Couldn\\\\u2019t establish connection\\n      </h1>\\n\\n      <p class=\"defly-wallet-connect-modal-pending-message--try-again-view__description\">\\n        Having issues? Before trying again, make sure to read the support article below and apply the possible solutions.\\n      </p>\\n    </div>\\n\\n    <div>\\n      <a\\n        href=\" https://docs.defly.app/app/dapp-browser\"\\n        target=\"_blank\"\\n        rel=\"noopener noreferrer\"\\n        class=\"defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor\">\\n        <img\\n          class=\"defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image\"\\n          src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.75 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7ZM11.9998 12.11C11.5898 12.11 11.2498 11.77 11.2498 11.36V11.15C11.2498 10.0038 12.0798 9.4336 12.4082 9.20798L12.4198 9.20001C12.7898 8.95001 12.9098 8.78002 12.9098 8.52002C12.9098 8.02002 12.4998 7.60999 11.9998 7.60999C11.4998 7.60999 11.0898 8.02002 11.0898 8.52002C11.0898 8.93002 10.7498 9.27002 10.3398 9.27002C9.92984 9.27002 9.58984 8.93002 9.58984 8.52002C9.58984 7.19002 10.6698 6.10999 11.9998 6.10999C13.3298 6.10999 14.4098 7.19002 14.4098 8.52002C14.4098 9.66002 13.5698 10.23 13.2598 10.44C12.8698 10.7 12.7498 10.87 12.7498 11.15V11.36C12.7498 11.78 12.4098 12.11 11.9998 12.11ZM11.25 13.85C11.25 14.26 11.58 14.6 12 14.6C12.42 14.6 12.75 14.26 12.75 13.85C12.75 13.44 12.41 13.1 12 13.1C11.59 13.1 11.25 13.44 11.25 13.85Z\\' fill=\\'%236B46FE\\'/%3e%3c/svg%3e\"\\n          alt=\"Help Icon\"\\n        />\\n\\n        <div>\\n          <div\\n            class=\"defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper\">\\n            <h1\\n              class=\"defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title\">\\n                Resolving WalletConnect issues\\n            </h1>\\n\\n            <img src=\"data:image/svg+xml,%3csvg width=\\'16\\' height=\\'16\\' viewBox=\\'0 0 16 16\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M11.3287 10.0983C10.9574 10.0983 10.6564 9.79734 10.6564 9.42604L10.6564 6.29525L5.14866 11.803C4.88611 12.0655 4.46044 12.0655 4.19789 11.803C3.93534 11.5404 3.93534 11.1147 4.19789 10.8522L9.70561 5.34447L6.57482 5.34447C6.20352 5.34447 5.90252 5.04347 5.90252 4.67218C5.90252 4.30088 6.20352 3.99988 6.57482 3.99988L11.3287 3.99988C11.507 3.99988 11.678 4.07071 11.8041 4.19679C11.9301 4.32287 12.001 4.49387 12.001 4.67218L12.001 9.42604C12.001 9.79734 11.7 10.0983 11.3287 10.0983Z\\' fill=\\'%239D9DAE\\'/%3e%3c/svg%3e\" alt=\"Send Icon\"/>\\n          </div>\\n\\n          <p\\n            class=\"defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description\">\\n            Unfortunately there are several known issues related to WalletConnect that our team is working on. Some of these issues are related to the WalletConnect JavaScript implementation on the dApp ...\\n          </p>\\n        </div>\\n      </a>\\n\\n      <button id=\"defly-wallet-connect-modal-pending-message-try-again-button\" class=\"defly-wallet-connect-button defly-wallet-connect-modal-pending-message--try-again-view__button\">\\n        Close & Try Again\\n      </button>\\n    </div>\\n  </div>\\n  `,pL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=fL,this.shadowRoot.append(tk.content.cloneNode(!0),e)}}connectedCallback(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-pending-message-cancel-button\");n?.addEventListener(\"click\",(()=>{this.onClose()})),this.addAudioForConnection(),setTimeout((()=>{var r;if(tk.innerHTML=bMe,this.shadowRoot){let o=document.createElement(\"style\");o.textContent=fL,this.shadowRoot.innerHTML=\"\",this.shadowRoot.append(tk.content.cloneNode(!0),o);let a=(r=this.shadowRoot)===null||r===void 0?void 0:r.getElementById(\"defly-wallet-connect-modal-pending-message-try-again-button\");a?.addEventListener(\"click\",(()=>{this.onClose()}))}}),3e4)}onClose(){_d(hp)}addAudioForConnection(){var e;if(this.getAttribute(\"should-use-sound\")===\"true\"&&xL()){let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-connect-modal-pending-message-audio-wrapper\"),r=document.createElement(\"audio\");r.src=\"https://defly-walletconnect.s3.eu-central-1.amazonaws.com/audio.mp3\",r.autoplay=!0,r.loop=!0,n?.appendChild(r)}}},wMe={v:\"5.7.1\",fr:25,ip:0,op:100,w:1e3,h:1e3,nm:\"Animation\",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:1,nm:\"Circle\",sr:1,ks:{o:{a:0,k:73,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:18,s:[724,614,0],to:[-35,2.333,0],ti:[35,-2.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:25,s:[514,628,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:53,s:[514,628,0],to:[35,-2.333,0],ti:[-35,2.333,0]},{t:62,s:[724,614,0]}],ix:2},a:{a:0,k:[608.861,710.127,0],ix:1},s:{a:0,k:[79,79,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:\"a\",pt:{a:0,k:{i:[[27.614,0],[0,-27.614],[-27.614,0],[0,27.614]],o:[[-27.614,0],[0,27.614],[27.614,0],[0,-27.614]],v:[[608,662],[558,712],[608,762],[658,712]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:\"Mask 1\"}],ef:[{ty:21,nm:\"Fill\",np:9,mn:\"ADBE Fill\",ix:1,en:1,ef:[{ty:10,nm:\"Fill Mask\",mn:\"ADBE Fill-0001\",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Fill-0007\",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:\"Color\",mn:\"ADBE Fill-0002\",ix:3,v:{a:0,k:[.748628020287,.656362950802,.86274510622,1],ix:3}},{ty:7,nm:\"Invert\",mn:\"ADBE Fill-0006\",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:\"Horizontal Feather\",mn:\"ADBE Fill-0003\",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:\"Vertical Feather\",mn:\"ADBE Fill-0004\",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Fill-0005\",ix:7,v:{a:0,k:1,ix:7}}]}],sw:1e3,sh:1e3,sc:\"#ffffff\",ip:0,op:754,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:\"Layer 1 Outlines 2\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[511.524,444,0],ix:2},a:{a:0,k:[157.775,147.25,0],ix:1},s:{a:0,k:[46,46,100],ix:6}},ao:0,ef:[{ty:21,nm:\"Fill\",np:9,mn:\"ADBE Fill\",ix:1,en:1,ef:[{ty:10,nm:\"Fill Mask\",mn:\"ADBE Fill-0001\",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Fill-0007\",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:\"Color\",mn:\"ADBE Fill-0002\",ix:3,v:{a:0,k:[.054901964962,.050980396569,.06274510175,1],ix:3}},{ty:7,nm:\"Invert\",mn:\"ADBE Fill-0006\",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:\"Horizontal Feather\",mn:\"ADBE Fill-0003\",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:\"Vertical Feather\",mn:\"ADBE Fill-0004\",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Fill-0005\",ix:7,v:{a:0,k:1,ix:7}}]}],shapes:[{ty:\"gr\",it:[{ind:0,ty:\"sh\",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[157.525,133.595],[0,-133.596],[-157.525,133.595],[0,42.488]],c:!0},ix:2},nm:\"Path 1\",mn:\"ADBE Vector Shape - Group\",hd:!1},{ty:\"fl\",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:\"Fill 1\",mn:\"ADBE Vector Graphic - Fill\",hd:!1},{ty:\"tr\",p:{a:0,k:[157.775,133.846],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:\"Transform\"}],nm:\"Group 2\",np:2,cix:2,bm:0,ix:1,mn:\"ADBE Vector Group\",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:\"Layer 1 Outlines\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[511.524,444,0],ix:2},a:{a:0,k:[157.775,147.25,0],ix:1},s:{a:0,k:[46,46,100],ix:6}},ao:0,ef:[{ty:21,nm:\"Fill\",np:9,mn:\"ADBE Fill\",ix:1,en:1,ef:[{ty:10,nm:\"Fill Mask\",mn:\"ADBE Fill-0001\",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Fill-0007\",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:\"Color\",mn:\"ADBE Fill-0002\",ix:3,v:{a:0,k:[.058823533356,.054901964962,.06274510175,1],ix:3}},{ty:7,nm:\"Invert\",mn:\"ADBE Fill-0006\",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:\"Horizontal Feather\",mn:\"ADBE Fill-0003\",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:\"Vertical Feather\",mn:\"ADBE Fill-0004\",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Fill-0005\",ix:7,v:{a:0,k:1,ix:7}}]}],shapes:[{ty:\"gr\",it:[{ind:0,ty:\"sh\",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[130.021,34.263],[0,-34.264],[-130.021,34.263],[0,-8.067]],c:!0},ix:2},nm:\"Path 1\",mn:\"ADBE Vector Shape - Group\",hd:!1},{ty:\"fl\",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:\"Fill 1\",mn:\"ADBE Vector Graphic - Fill\",hd:!1},{ty:\"tr\",p:{a:0,k:[157.775,259.986],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:\"Transform\"}],nm:\"Group 1\",np:2,cix:2,bm:0,ix:1,mn:\"ADBE Vector Group\",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:4,ty:1,nm:\"White Solid 2\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[512,508,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:\"a\",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,546],[344,566],[648,566],[668,546],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:\"Mask 1\"}],ef:[{ty:22,nm:\"Stroke\",np:13,mn:\"ADBE Stroke\",ix:1,en:1,ef:[{ty:10,nm:\"Path\",mn:\"ADBE Stroke-0001\",ix:1,v:{a:0,k:1,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Stroke-0010\",ix:2,v:{a:0,k:0,ix:2}},{ty:7,nm:\"Stroke Sequentially\",mn:\"ADBE Stroke-0011\",ix:3,v:{a:0,k:1,ix:3}},{ty:2,nm:\"Color\",mn:\"ADBE Stroke-0002\",ix:4,v:{a:0,k:[.525490224361,.231372565031,.972549080849,1],ix:4}},{ty:0,nm:\"Brush Size\",mn:\"ADBE Stroke-0003\",ix:5,v:{a:0,k:2,ix:5}},{ty:0,nm:\"Brush Hardness\",mn:\"ADBE Stroke-0004\",ix:6,v:{a:0,k:.75,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Stroke-0005\",ix:7,v:{a:0,k:1,ix:7}},{ty:0,nm:\"Start\",mn:\"ADBE Stroke-0008\",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:\"End\",mn:\"ADBE Stroke-0009\",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:\"Spacing\",mn:\"ADBE Stroke-0006\",ix:10,v:{a:0,k:15,ix:10}},{ty:7,nm:\"Paint Style\",mn:\"ADBE Stroke-0007\",ix:11,v:{a:0,k:1,ix:11}}]}],sw:1e3,sh:1e3,sc:\"#ffffff\",ip:0,op:754,st:0,bm:0},{ddd:0,ind:5,ty:1,nm:\"White Solid 2\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[512,388,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:\"a\",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,386],[344,406],[648,406],[668,386],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:\"Mask 1\"}],ef:[{ty:22,nm:\"Stroke\",np:13,mn:\"ADBE Stroke\",ix:1,en:1,ef:[{ty:10,nm:\"Path\",mn:\"ADBE Stroke-0001\",ix:1,v:{a:0,k:1,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Stroke-0010\",ix:2,v:{a:0,k:0,ix:2}},{ty:7,nm:\"Stroke Sequentially\",mn:\"ADBE Stroke-0011\",ix:3,v:{a:0,k:1,ix:3}},{ty:2,nm:\"Color\",mn:\"ADBE Stroke-0002\",ix:4,v:{a:0,k:[.525490224361,.231372565031,.972549080849,1],ix:4}},{ty:0,nm:\"Brush Size\",mn:\"ADBE Stroke-0003\",ix:5,v:{a:0,k:2,ix:5}},{ty:0,nm:\"Brush Hardness\",mn:\"ADBE Stroke-0004\",ix:6,v:{a:0,k:.75,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Stroke-0005\",ix:7,v:{a:0,k:1,ix:7}},{ty:0,nm:\"Start\",mn:\"ADBE Stroke-0008\",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:\"End\",mn:\"ADBE Stroke-0009\",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:\"Spacing\",mn:\"ADBE Stroke-0006\",ix:10,v:{a:0,k:15,ix:10}},{ty:7,nm:\"Paint Style\",mn:\"ADBE Stroke-0007\",ix:11,v:{a:0,k:1,ix:11}}]}],sw:1e3,sh:1e3,sc:\"#ffffff\",ip:0,op:754,st:0,bm:0},{ddd:0,ind:7,ty:1,nm:\"Button\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[510,736,0],ix:2},a:{a:0,k:[497.468,353.165,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:32,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:35,s:[79,79,100]},{t:43,s:[100,100,100]}],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:\"a\",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,386],[344,406],[648,406],[668,386],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:\"Mask 1\"}],ef:[{ty:21,nm:\"Fill\",np:9,mn:\"ADBE Fill\",ix:1,en:1,ef:[{ty:10,nm:\"Fill Mask\",mn:\"ADBE Fill-0001\",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:\"All Masks\",mn:\"ADBE Fill-0007\",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:\"Color\",mn:\"ADBE Fill-0002\",ix:3,v:{a:0,k:[.686274528503,.290196090937,.937254965305,1],ix:3}},{ty:7,nm:\"Invert\",mn:\"ADBE Fill-0006\",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:\"Horizontal Feather\",mn:\"ADBE Fill-0003\",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:\"Vertical Feather\",mn:\"ADBE Fill-0004\",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:\"Opacity\",mn:\"ADBE Fill-0005\",ix:7,v:{a:0,k:1,ix:7}}]}],sw:1e3,sh:1e3,sc:\"#ffffff\",ip:0,op:754,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:\"Shape Layer 1\",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[500,493.102,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:25,nm:\"Drop Shadow\",np:8,mn:\"ADBE Drop Shadow\",ix:1,en:1,ef:[{ty:2,nm:\"Shadow Color\",mn:\"ADBE Drop Shadow-0001\",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:\"Opacity\",mn:\"ADBE Drop Shadow-0002\",ix:2,v:{a:0,k:87.5,ix:2}},{ty:0,nm:\"Direction\",mn:\"ADBE Drop Shadow-0003\",ix:3,v:{a:0,k:173,ix:3}},{ty:0,nm:\"Distance\",mn:\"ADBE Drop Shadow-0004\",ix:4,v:{a:0,k:8,ix:4}},{ty:0,nm:\"Softness\",mn:\"ADBE Drop Shadow-0005\",ix:5,v:{a:0,k:125,ix:5}},{ty:7,nm:\"Shadow Only\",mn:\"ADBE Drop Shadow-0006\",ix:6,v:{a:0,k:0,ix:6}}]}],shapes:[{ty:\"gr\",it:[{ty:\"rc\",d:1,s:{a:0,k:[452,730],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:20,ix:4},nm:\"Rectangle Path 1\",mn:\"ADBE Vector Shape - Rect\",hd:!1},{ty:\"st\",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:\"Stroke 1\",mn:\"ADBE Vector Graphic - Stroke\",hd:!1},{ty:\"fl\",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:\"Fill 1\",mn:\"ADBE Vector Graphic - Fill\",hd:!1},{ty:\"tr\",p:{a:0,k:[6,-7],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:\"Transform\"}],nm:\"Rectangle 1\",np:3,cix:2,bm:0,ix:1,mn:\"ADBE Vector Group\",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:9,ty:1,nm:\"White Solid 1\",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:1,s:[500,562,0],to:[0,-23.333,0],ti:[0,23.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:13,s:[500,422,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:65,s:[500,422,0],to:[0,23.333,0],ti:[0,-23.333,0]},{t:79,s:[500,562,0]}],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:\"a\",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[712,122],[302,122],[282,142],[282,830],[302,850],[712,850],[732,830],[732,142]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:\"Mask 1\"}],ef:[{ty:25,nm:\"Drop Shadow\",np:8,mn:\"ADBE Drop Shadow\",ix:1,en:1,ef:[{ty:2,nm:\"Shadow Color\",mn:\"ADBE Drop Shadow-0001\",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:\"Opacity\",mn:\"ADBE Drop Shadow-0002\",ix:2,v:{a:0,k:87.5,ix:2}},{ty:0,nm:\"Direction\",mn:\"ADBE Drop Shadow-0003\",ix:3,v:{a:0,k:173,ix:3}},{ty:0,nm:\"Distance\",mn:\"ADBE Drop Shadow-0004\",ix:4,v:{a:0,k:8,ix:4}},{ty:0,nm:\"Softness\",mn:\"ADBE Drop Shadow-0005\",ix:5,v:{a:0,k:125,ix:5}},{ty:7,nm:\"Shadow Only\",mn:\"ADBE Drop Shadow-0006\",ix:6,v:{a:0,k:0,ix:6}}]}],sw:1e3,sh:1e3,sc:\"#ffffff\",ip:0,op:754,st:0,bm:0}],markers:[]},Xre=`.defly-wallet-sign-txn-toast {\\n  --defly-wallet-sign-txn-toast-width: 422px;\\n  --defly-wallet-sign-txn-toast-height: 134px;\\n  --defly-wallet-sign-txn-toast-font-family: \"Inter\", sans-serif;\\n  position: fixed;\\n  bottom: 28px;\\n  right: 35px;\\n  z-index: 11;\\n  overflow: hidden;\\n  width: var(--defly-wallet-sign-txn-toast-width);\\n  height: var(--defly-wallet-sign-txn-toast-height);\\n  background: #edeffb;\\n  border-radius: 8px;\\n  animation: 0.2s DeflyWalletSignTxnToastSlideIn ease-out;\\n}\\n.defly-wallet-sign-txn-toast * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--defly-wallet-sign-txn-toast-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.defly-wallet-sign-txn-toast ul,\\n.defly-wallet-sign-txn-toast ol,\\n.defly-wallet-sign-txn-toast li {\\n  list-style-type: none;\\n}\\n\\n.defly-wallet-sign-txn-toast__header__close-button {\\n  position: absolute;\\n  top: 10px;\\n  right: 10px;\\n  width: 20px;\\n  height: 20px;\\n  margin: 0;\\n  padding: 0;\\n  background: transparent;\\n  border: none;\\n  cursor: pointer;\\n}\\n\\n.defly-wallet-sign-txn-toast__content__lottie-animation {\\n  position: absolute;\\n  top: -75px;\\n  left: -100px;\\n  width: 368px;\\n  height: 368px;\\n}\\n\\n.defly-wallet-sign-txn-toast__content__description {\\n  position: absolute;\\n  top: 40px;\\n  right: 48px;\\n  max-width: 197px;\\n  color: #3c3c49;\\n  font-size: 14px;\\n  line-height: 22px;\\n  letter-spacing: -0.1px;\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-sign-txn-toast {\\n    display: none;\\n  }\\n}\\n@keyframes DeflyWalletSignTxnToastSlideIn {\\n  0% {\\n    bottom: 12px;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 26px;\\n    opacity: 1;\\n  }\\n}`;Cu(Xre);Jre=document.createElement(\"template\");Jre.innerHTML=`\\n  <div class=\"defly-wallet-sign-txn-toast\">\\n    <div class=\"defly-wallet-sign-txn-toast__header\">\\n      <button\\n        id=\"defly-wallet-sign-txn-toast-close-button\"\\n        class=\"defly-wallet-sign-txn-toast__header__close-button\">\\n        <img src=\"data:image/svg+xml,%3csvg width=\\'20\\' height=\\'20\\' viewBox=\\'0 0 20 20\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M14.4107 4.41074L9.41074 9.41074L10.5893 10.5893L15.5893 5.58926L14.4107 4.41074ZM9.41074 9.41074L4.41074 14.4107L5.58926 15.5893L10.5893 10.5893L9.41074 9.41074ZM15.5893 14.4107L10.5893 9.41074L9.41074 10.5893L14.4107 15.5893L15.5893 14.4107ZM10.5893 9.41074L5.58926 4.41074L4.41074 5.58926L9.41074 10.5893L10.5893 9.41074Z\\' fill=\\'%239099BD\\'/%3e%3c/svg%3e\" />\\n      </button>\\n    </div>\\n    <div class=\"defly-wallet-sign-txn-toast__content\">\\n      <div id=\"defly-wallet-sign-txn-toast-lottie-animation\" style=\"width:368;height:368\" class=\"defly-wallet-sign-txn-toast__content__lottie-animation\"></div>\\n      <p class=\"defly-wallet-sign-txn-toast__content__description\">\\n        Please launch <b>Defly Wallet</b> on your iOS or Android device to sign this transaction.\\n      </p>\\n    </div>\\n  </div>\\n`;hL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Xre,this.shadowRoot.append(Jre.content.cloneNode(!0),e);let n=this.shadowRoot.getElementById(\"defly-wallet-sign-txn-toast-close-button\");n?.addEventListener(\"click\",(()=>{_d(V4)})),this.renderLottieAnimation()}}renderLottieAnimation(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"defly-wallet-sign-txn-toast-lottie-animation\");n&&Fre.default.loadAnimation({container:n,renderer:\"svg\",loop:!0,autoplay:!0,animationData:wMe})}},Qre=`@import url(\"https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap\");\\n@import url(\"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap\");\\n.defly-wallet-modal {\\n  --defly-wallet-modal-font-family: \"Spline Sans\", sans-serif;\\n  --defly-wallet-connect-modal-headline-family: \"Hanken Grotesk\", sans-serif;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.defly-wallet-modal--select-account .defly-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body {\\n  top: 40px;\\n  bottom: 0;\\n  left: 20px;\\n  width: calc(100% - 40px);\\n  max-width: unset;\\n  height: calc(100 * var(--defly-wallet-vh));\\n  padding: 20px;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.defly-wallet-modal--mobile .defly-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.defly-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.defly-wallet-modal ul,\\n.defly-wallet-modal ol,\\n.defly-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.defly-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--defly-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.defly-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.defly-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 979px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #131313;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 40px;\\n  animation: 0.3s DeflyWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n\\n@media (max-width: 935px) {\\n  .defly-wallet-modal--desktop .defly-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes DeflyWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes DeflyWalletConnectMobileSlideIn {\\n  0% {\\n    top: 30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    top: 40px;\\n    opacity: 1;\\n  }\\n}\\n.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-image: unset;\\n  padding: 0;\\n}\\n.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body .defly-wallet-sign-txn-modal__body__content {\\n  width: 100%;\\n  height: 100%;\\n}\\n.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body #defly-wallet-iframe {\\n  width: 100%;\\n  height: 100%;\\n  border-radius: 16px;\\n  margin: 0 auto;\\n  border: none;\\n}`;Cu(Qre);eoe=document.createElement(\"template\");eoe.innerHTML=`\\n  <div class=\"${Mg} defly-wallet-sign-txn-modal\">\\n    <div class=\"defly-wallet-modal__body\">\\n      <defly-wallet-modal-header modal-id=\"${noe}\"></defly-wallet-modal-header/>\\n\\n      <div class=\"defly-wallet-sign-txn-modal__body__content\" />\\n    </div>\\n  </div>\\n`;mL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Qre,this.shadowRoot.append(eoe.content.cloneNode(!0),e)}}};window.addEventListener(\"DOMContentLoaded\",(()=>{Bre()})),window.addEventListener(\"resize\",(()=>{Bre()})),window.customElements.define(\"defly-wallet-connect-modal\",lL),window.customElements.define(\"defly-wallet-modal-desktop-mode\",iL),window.customElements.define(\"defly-wallet-modal-header\",rL),window.customElements.define(\"defly-wallet-modal-touch-screen-mode\",cL),window.customElements.define(\"defly-wallet-redirect-modal\",uL),window.customElements.define(\"defly-wallet-connect-modal-information-section\",dL),window.customElements.define(\"defly-wallet-connect-modal-pending-message-section\",pL),window.customElements.define(\"defly-wallet-sign-txn-toast\",hL),window.customElements.define(\"defly-wallet-sign-txn-modal\",mL),window.customElements.define(\"defly-wallet-download-qr-code\",oL)});function Cv(t,e,n,r){return new(n||(n=Promise))((function(o,a){function c(p){try{f(r.next(p))}catch(m){a(m)}}function l(p){try{f(r.throw(p))}catch(m){a(m)}}function f(p){var m;p.done?o(p.value):(m=p.value,m instanceof n?m:new n((function(g){g(m)}))).then(c,l)}f((r=r.apply(t,e||[])).next())}))}function EL(t){let e=document.createElement(\"div\");return e.setAttribute(\"id\",t),document.body.appendChild(e),e}function aoe(){_d(V4)}function _d(t){let e=document.getElementById(t);e&&e.remove()}function j4(){return typeof localStorage>\"u\"?void 0:localStorage}function SMe(){let t=(function(){var n;let r=(n=j4())===null||n===void 0?void 0:n.getItem(H4.WALLET);return r?JSON.parse(r):null})(),e=null;return t?.type===\"defly-wallet\"&&(e=\"mobile\"),e}function AMe(t){let e=t.slice();for(let n=e.length-1;n>0;n--){let r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}return e}function CMe(){return(function(t,e={}){return fetch(t,e).then((n=>n.json())).then((n=>n))})(kMe,{cache:\"no-store\"})}function roe(){return Cv(this,void 0,void 0,(function*(){let t={bridgeURL:\"\",shouldUseSound:!0,silent:!1};try{let e=yield CMe();e.use_sound!==void 0&&(t.shouldUseSound=e.use_sound),e.silent!==void 0&&(t.silent=e.silent),t=Object.assign(Object.assign({},t),{bridgeURL:AMe(e.servers||[])[0]||\"\"})}catch(e){console.log(e)}return t}))}function TMe(t){return Uint8Array.from(window.atob(t),(e=>e.charCodeAt(0)))}function rk(){return typeof navigator<\"u\"}function vL(){return rk()&&/Android/i.test(navigator.userAgent)}function xL(){return rk()&&/iPhone|iPad|iPod/i.test(navigator.userAgent)}function mp(){return rk()&&/iPhone|iPod|iPad|Android/i.test(navigator.userAgent)}function bL(){if(!rk())return null;let{userAgent:t}=navigator,e;return e=t.match(/DuckDuckGo/i)?\"DuckDuckGo\":t.match(/OPX/i)?\"Opera GX\":navigator.brave?\"Brave\":ioe.default.getParser(navigator.userAgent).getBrowserName(),e}function _Me({shouldUseSound:t}){return{open:(e={shouldUseSound:t},n=>{if(!document.getElementById(hp)){let r=EL(hp),o=`${n}&algorand=true`,{shouldUseSound:a}=e;r.innerHTML=`<defly-wallet-connect-modal uri=\"${o}\" should-use-sound=\"${a}\"></defly-wallet-connect-modal>`}}),close:()=>_d(hp)};var e}var ooe,ioe,Tv,hp,Ig,V4,noe,Mg,H4,kMe,nk,wL=Ve(()=>{u();ooe=br($s(),1);Tg();$i();ioe=br(_g(),1);Tv=class t extends Error{constructor(e,n,...r){super(...r),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.name=\"DeflyWalletConnectError\",this.data=e,this.message=n}},hp=\"defly-wallet-connect-modal-wrapper\",Ig=\"defly-wallet-redirect-modal-wrapper\",V4=\"defly-wallet-sign-txn-toast-wrapper\",noe=\"defly-wallet-sign-txn-modal-wrapper\",Mg=\"defly-wallet-modal\";H4={WALLET:\"DeflyWallet.Wallet\",WALLETCONNECT:\"walletconnect\"};kMe=\"https://static.defly.app/wc-bridge-servers.json\";nk=class{constructor(e){this.bridge=e?.bridge||\"\",this.connector=null,this.shouldShowSignTxnToast=e?.shouldShowSignTxnToast===void 0||e.shouldShowSignTxnToast,this.chainId=e?.chainId}get platform(){return SMe()}get isConnected(){return this.platform===\"mobile\"&&!!this.connector}connect(){return new Promise(((e,n)=>Cv(this,void 0,void 0,(function*(){var r;try{if(!((r=this.connector)===null||r===void 0)&&r.connected)try{yield this.connector.killSession()}catch{}let{bridgeURL:o,shouldUseSound:a}=yield roe();this.connector=new kv({bridge:this.bridge||o||\"https://bridge.walletconnect.org\",qrcodeModal:_Me({shouldUseSound:a})}),yield this.connector.createSession({chainId:this.chainId||4160}),(function(c){var l,f,p,m;let g=document.getElementById(hp),y=(f=(l=g?.querySelector(\"defly-wallet-connect-modal\"))===null||l===void 0?void 0:l.shadowRoot)===null||f===void 0?void 0:f.querySelector(`.${Mg}`),A=(m=(p=y?.querySelector(\"defly-wallet-modal-header\"))===null||p===void 0?void 0:p.shadowRoot)===null||m===void 0?void 0:m.getElementById(\"defly-wallet-modal-header-close-button\");A?.addEventListener(\"click\",(()=>{c(),_d(hp)}))})((()=>n(new Tv({type:\"CONNECT_MODAL_CLOSED\"},\"Connect modal is closed by user\")))),this.connector.on(\"connect\",((c,l)=>{var f,p;c&&n(c),e(((f=this.connector)===null||f===void 0?void 0:f.accounts)||[]),(function(m,g){var y;(y=j4())===null||y===void 0||y.setItem(H4.WALLET,JSON.stringify({type:g||\"defly-wallet\",accounts:m,selectedAccount:m[0]}))})(((p=this.connector)===null||p===void 0?void 0:p.accounts)||[])}))}catch(o){n(new Tv({type:\"SESSION_CONNECT\",detail:o},o.message||\"There was an error while connecting to Defly Wallet\"))}}))))}reconnectSession(){return new Promise(((e,n)=>Cv(this,void 0,void 0,(function*(){var r,o;try{this.connector&&e(this.connector.accounts||[]),this.bridge=((r=(function(){var a;let c=(a=j4())===null||a===void 0?void 0:a.getItem(H4.WALLETCONNECT);return c?JSON.parse(c):null})())===null||r===void 0?void 0:r.bridge)||\"\",this.bridge&&(this.connector=new kv({bridge:this.bridge}),e(((o=this.connector)===null||o===void 0?void 0:o.accounts)||[])),this.isConnected||e([])}catch(a){yield this.disconnect(),n(new Tv({type:\"SESSION_RECONNECT\",detail:a},a.message||\"There was an error while reconnecting to Defly Wallet\"))}}))))}disconnect(){var e;return Cv(this,void 0,void 0,(function*(){let n;this.isConnected&&this.platform===\"mobile\"&&(n=(e=this.connector)===null||e===void 0?void 0:e.killSession(),n?.then((()=>{this.connector=null}))),yield new Promise(((r,o)=>{var a,c;try{(a=j4())===null||a===void 0||a.removeItem(H4.WALLETCONNECT),(c=j4())===null||c===void 0||c.removeItem(H4.WALLET),r(void 0)}catch(l){o(l)}}))}))}signTransactionWithMobile(e){return Cv(this,void 0,void 0,(function*(){let n=(r=\"algo_signTxn\",o=[e],{id:Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3)),jsonrpc:\"2.0\",method:r,params:o});var r,o;try{try{let{silent:a}=yield roe(),c=(yield this.connector.sendCustomRequest(n,{forcePushNotification:!a})).filter(Boolean);return typeof c[0]==\"string\"?c.map(TMe):c.map((l=>Uint8Array.from(l)))}catch(a){return yield Promise.reject(new Tv({type:\"SIGN_TRANSACTIONS\",detail:a},a.message||\"Failed to sign transaction\"))}}finally{_d(Ig),_d(V4)}}))}signTransaction(e,n){return Cv(this,void 0,void 0,(function*(){if(this.platform===\"mobile\"&&(mp()?EL(Ig).innerHTML=\"<defly-wallet-redirect-modal></defly-wallet-redirect-modal>\":!mp()&&this.shouldShowSignTxnToast&&(EL(V4).innerHTML=\"<defly-wallet-sign-txn-toast></defly-wallet-sign-txn-toast>\"),!this.connector))throw new Error(\"DeflyWalletConnect was not initialized correctly.\");let r=e.flatMap((o=>o.map((a=>(function(c,l){let f;l&&!(c.signers||[]).includes(l)&&(f=[]);let p={txn:(m=c.txn,globalThis.Buffer.from(xr.encodeUnsignedTransaction(m)).toString(\"base64\"))};var m;return Array.isArray(f)&&(p.signers=f),c.authAddr&&(p.authAddr=c.authAddr),c.message&&(p.message=c.message),c.msig&&(p.msig=c.msig),p})(a,n)))));return this.signTransactionWithMobile(r)}))}};typeof window<\"u\"&&(window.global=window,window.Buffer=window.Buffer||ooe.Buffer,Promise.resolve().then(()=>(toe(),EMe)))});var soe={};Oi(soe,{DeflyWalletConnect:()=>nk,closeDeflyWalletSignTxnToast:()=>aoe});var Wit,Xit,coe=Ve(()=>{u();Wit=br($s(),1);wL();Tg();$i();Xit=br(_g(),1)});var uoe={};Oi(uoe,{BASE_URL:()=>gp,default:()=>SL});var ik,loe,ak,sk,MMe,IMe,ok,gp,SL,doe=Ve(()=>{u();ik=class extends Error{constructor(n,r,o){super(n);ge(this,\"code\");ge(this,\"data\");this.name=\"SignTxnsError\",this.code=r,this.data=o}};(function(t){t[t.UNKNOWN=-1]=\"UNKNOWN\",t[t.AUTH=1]=\"AUTH\"})(loe||(loe={}));ak=class extends Error{constructor(n,r,o){super(n);ge(this,\"code\");ge(this,\"data\");this.name=\"SignDataError\",this.code=r,this.data=o}},sk=class extends Error{constructor(n,r,o){super(n);ge(this,\"code\");ge(this,\"data\");this.name=\"AddNetworkError\",this.code=r,this.data=o}},MMe=100+window.screenX,IMe=100+window.screenY,ok=`width=500,height=750,left=${MMe},top=${IMe}`,gp=\"https://lute.app\",SL=class{constructor(e){ge(this,\"siteName\");ge(this,\"forceWeb\",!1);this.siteName=e||document.title||\"Unknown site\"}connect(e){return new Promise(async(n,r)=>{let o=this.forceWeb?!1:window.lute,a;o?window.dispatchEvent(new CustomEvent(\"lute-connect\",{detail:{action:\"connect\",genesisID:e}})):a=open(`${gp}/connect`,this.siteName,ok);let c=o?\"connect-response\":\"message\";window.addEventListener(c,l);function l(f){if(!o&&f.origin!==gp)return;let p=f.data||f.detail;switch(p.debug&&console.log(\"[Lute Debug]\",p),p.action){case\"ready\":a?.postMessage({action:\"network\",genesisID:e},\"*\");break;case\"connect\":window.removeEventListener(c,l),n(p.addrs);break;case\"error\":window.removeEventListener(c,l),r(new Error(p.message));break;case\"close\":window.removeEventListener(c,l),r(new Error(\"Operation Cancelled\"));break}}})}signTxns(e){return new Promise(async(n,r)=>{let o=this.forceWeb?!1:window.lute,a;o?window.dispatchEvent(new CustomEvent(\"lute-connect\",{detail:{action:\"sign\",txns:e}})):a=open(`${gp}/sign`,this.siteName,ok);let c=o?\"sign-txns-response\":\"message\";window.addEventListener(c,l);function l(f){if(!o&&f.origin!==gp)return;let p=f.data||f.detail;switch(p.debug&&console.log(\"[Lute Debug]\",p),p.action){case\"ready\":a?.postMessage({action:\"sign\",txns:e},\"*\");break;case\"signed\":window.removeEventListener(c,l),n(p.txns);break;case\"error\":window.removeEventListener(c,l),r(new ik(p.message,p.code||4300));break;case\"close\":window.removeEventListener(c,l),r(new ik(\"User Rejected Request\",4100));break}}})}signData(e,n){return new Promise(async(r,o)=>{let a=this.forceWeb?!1:window.lute,c;a?window.dispatchEvent(new CustomEvent(\"lute-connect\",{detail:{action:\"data\",data:e,metadata:n}})):c=open(`${gp}/auth`,this.siteName,ok);let l=a?\"sign-data-response\":\"message\";window.addEventListener(l,f);function f(p){if(!a&&p.origin!==gp)return;let m=p.data||p.detail;switch(m.debug&&console.log(\"[Lute Debug]\",m),m.action){case\"ready\":c?.postMessage({action:\"data\",data:e,metadata:n},\"*\");break;case\"signed\":window.removeEventListener(l,f),r(m.signerResponse);break;case\"error\":window.removeEventListener(l,f),o(new ak(m.message,m.code||4300));break;case\"close\":window.removeEventListener(l,f),o(new ak(\"User Rejected Request\",4100));break}}})}addNetwork(e){return new Promise(async(n,r)=>{let o=this.forceWeb?!1:window.lute,a,c=o?\"add-network-response\":\"message\";window.addEventListener(c,l);function l(f){if(!o&&f.origin!==gp)return;let p=f.data||f.detail;switch(p.debug&&console.log(\"[Lute Debug]\",p),p.action){case\"ready\":a?.postMessage({action:\"network\",network:e},\"*\");break;case\"added\":window.removeEventListener(c,l),n(void 0);break;case\"error\":window.removeEventListener(c,l),r(new sk(p.message,p.code||4300));break;case\"close\":window.removeEventListener(c,l),r(new sk(\"User Rejected Request\",4100));break}}o?window.dispatchEvent(new CustomEvent(\"lute-connect\",{detail:{action:\"network\",network:e}})):a=open(`${gp}/network`,this.siteName,ok)})}}});function ri(t){return new Uint8Array(t)}function hm(t){return new Uint32Array(t)}function $4(t){return new Int32Array(t)}function _v(t){return new Float64Array(t)}var ts=Ve(()=>{u()});var AL=Ve(()=>{u()});var uat,foe=Ve(()=>{u();ts();AL();uat=String.fromCharCode});var poe=Ve(()=>{u();foe()});function Rg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t;n<r.length;n++){var o=r[n];if(!(o instanceof Uint8Array))throw new TypeError(\"unexpected type, use ByteArray\")}}var Pg=Ve(()=>{u()});function RMe(t,e,n,r,o){var a,c=0;for(a=0;a<o;a++)c|=t[e+a]^n[r+a];return(1&c-1>>>8)-1}function ck(t,e,n,r){return RMe(t,e,n,r,32)}var K4=Ve(()=>{u();Pg()});var hoe=Ve(()=>{u()});var lk=Ve(()=>{u();ts();hoe()});function Kr(t){var e=_v(16);if(t)for(var n=0;n<t.length;n++)e[n]=t[n];return e}function mm(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function gm(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function jo(t,e,n){var r,o,a=0,c=0,l=0,f=0,p=0,m=0,g=0,y=0,A=0,T=0,R=0,K=0,O=0,V=0,D=0,G=0,ee=0,J=0,le=0,se=0,te=0,S=0,_=0,P=0,z=0,Y=0,L=0,U=0,W=0,w=0,I=0,ye=n[0],ne=n[1],Q=n[2],ie=n[3],ue=n[4],q=n[5],Ee=n[6],we=n[7],_e=n[8],B=n[9],k=n[10],C=n[11],Z=n[12],X=n[13],ae=n[14],de=n[15];r=e[0],a+=r*ye,c+=r*ne,l+=r*Q,f+=r*ie,p+=r*ue,m+=r*q,g+=r*Ee,y+=r*we,A+=r*_e,T+=r*B,R+=r*k,K+=r*C,O+=r*Z,V+=r*X,D+=r*ae,G+=r*de,r=e[1],c+=r*ye,l+=r*ne,f+=r*Q,p+=r*ie,m+=r*ue,g+=r*q,y+=r*Ee,A+=r*we,T+=r*_e,R+=r*B,K+=r*k,O+=r*C,V+=r*Z,D+=r*X,G+=r*ae,ee+=r*de,r=e[2],l+=r*ye,f+=r*ne,p+=r*Q,m+=r*ie,g+=r*ue,y+=r*q,A+=r*Ee,T+=r*we,R+=r*_e,K+=r*B,O+=r*k,V+=r*C,D+=r*Z,G+=r*X,ee+=r*ae,J+=r*de,r=e[3],f+=r*ye,p+=r*ne,m+=r*Q,g+=r*ie,y+=r*ue,A+=r*q,T+=r*Ee,R+=r*we,K+=r*_e,O+=r*B,V+=r*k,D+=r*C,G+=r*Z,ee+=r*X,J+=r*ae,le+=r*de,r=e[4],p+=r*ye,m+=r*ne,g+=r*Q,y+=r*ie,A+=r*ue,T+=r*q,R+=r*Ee,K+=r*we,O+=r*_e,V+=r*B,D+=r*k,G+=r*C,ee+=r*Z,J+=r*X,le+=r*ae,se+=r*de,r=e[5],m+=r*ye,g+=r*ne,y+=r*Q,A+=r*ie,T+=r*ue,R+=r*q,K+=r*Ee,O+=r*we,V+=r*_e,D+=r*B,G+=r*k,ee+=r*C,J+=r*Z,le+=r*X,se+=r*ae,te+=r*de,r=e[6],g+=r*ye,y+=r*ne,A+=r*Q,T+=r*ie,R+=r*ue,K+=r*q,O+=r*Ee,V+=r*we,D+=r*_e,G+=r*B,ee+=r*k,J+=r*C,le+=r*Z,se+=r*X,te+=r*ae,S+=r*de,r=e[7],y+=r*ye,A+=r*ne,T+=r*Q,R+=r*ie,K+=r*ue,O+=r*q,V+=r*Ee,D+=r*we,G+=r*_e,ee+=r*B,J+=r*k,le+=r*C,se+=r*Z,te+=r*X,S+=r*ae,_+=r*de,r=e[8],A+=r*ye,T+=r*ne,R+=r*Q,K+=r*ie,O+=r*ue,V+=r*q,D+=r*Ee,G+=r*we,ee+=r*_e,J+=r*B,le+=r*k,se+=r*C,te+=r*Z,S+=r*X,_+=r*ae,P+=r*de,r=e[9],T+=r*ye,R+=r*ne,K+=r*Q,O+=r*ie,V+=r*ue,D+=r*q,G+=r*Ee,ee+=r*we,J+=r*_e,le+=r*B,se+=r*k,te+=r*C,S+=r*Z,_+=r*X,P+=r*ae,z+=r*de,r=e[10],R+=r*ye,K+=r*ne,O+=r*Q,V+=r*ie,D+=r*ue,G+=r*q,ee+=r*Ee,J+=r*we,le+=r*_e,se+=r*B,te+=r*k,S+=r*C,_+=r*Z,P+=r*X,z+=r*ae,Y+=r*de,r=e[11],K+=r*ye,O+=r*ne,V+=r*Q,D+=r*ie,G+=r*ue,ee+=r*q,J+=r*Ee,le+=r*we,se+=r*_e,te+=r*B,S+=r*k,_+=r*C,P+=r*Z,z+=r*X,Y+=r*ae,L+=r*de,r=e[12],O+=r*ye,V+=r*ne,D+=r*Q,G+=r*ie,ee+=r*ue,J+=r*q,le+=r*Ee,se+=r*we,te+=r*_e,S+=r*B,_+=r*k,P+=r*C,z+=r*Z,Y+=r*X,L+=r*ae,U+=r*de,r=e[13],V+=r*ye,D+=r*ne,G+=r*Q,ee+=r*ie,J+=r*ue,le+=r*q,se+=r*Ee,te+=r*we,S+=r*_e,_+=r*B,P+=r*k,z+=r*C,Y+=r*Z,L+=r*X,U+=r*ae,W+=r*de,r=e[14],D+=r*ye,G+=r*ne,ee+=r*Q,J+=r*ie,le+=r*ue,se+=r*q,te+=r*Ee,S+=r*we,_+=r*_e,P+=r*B,z+=r*k,Y+=r*C,L+=r*Z,U+=r*X,W+=r*ae,w+=r*de,r=e[15],G+=r*ye,ee+=r*ne,J+=r*Q,le+=r*ie,se+=r*ue,te+=r*q,S+=r*Ee,_+=r*we,P+=r*_e,z+=r*B,Y+=r*k,L+=r*C,U+=r*Z,W+=r*X,w+=r*ae,I+=r*de,a+=38*ee,c+=38*J,l+=38*le,f+=38*se,p+=38*te,m+=38*S,g+=38*_,y+=38*P,A+=38*z,T+=38*Y,R+=38*L,K+=38*U,O+=38*W,V+=38*w,D+=38*I,o=1,r=a+o+65535,o=Math.floor(r/65536),a=r-o*65536,r=c+o+65535,o=Math.floor(r/65536),c=r-o*65536,r=l+o+65535,o=Math.floor(r/65536),l=r-o*65536,r=f+o+65535,o=Math.floor(r/65536),f=r-o*65536,r=p+o+65535,o=Math.floor(r/65536),p=r-o*65536,r=m+o+65535,o=Math.floor(r/65536),m=r-o*65536,r=g+o+65535,o=Math.floor(r/65536),g=r-o*65536,r=y+o+65535,o=Math.floor(r/65536),y=r-o*65536,r=A+o+65535,o=Math.floor(r/65536),A=r-o*65536,r=T+o+65535,o=Math.floor(r/65536),T=r-o*65536,r=R+o+65535,o=Math.floor(r/65536),R=r-o*65536,r=K+o+65535,o=Math.floor(r/65536),K=r-o*65536,r=O+o+65535,o=Math.floor(r/65536),O=r-o*65536,r=V+o+65535,o=Math.floor(r/65536),V=r-o*65536,r=D+o+65535,o=Math.floor(r/65536),D=r-o*65536,r=G+o+65535,o=Math.floor(r/65536),G=r-o*65536,a+=o-1+37*(o-1),o=1,r=a+o+65535,o=Math.floor(r/65536),a=r-o*65536,r=c+o+65535,o=Math.floor(r/65536),c=r-o*65536,r=l+o+65535,o=Math.floor(r/65536),l=r-o*65536,r=f+o+65535,o=Math.floor(r/65536),f=r-o*65536,r=p+o+65535,o=Math.floor(r/65536),p=r-o*65536,r=m+o+65535,o=Math.floor(r/65536),m=r-o*65536,r=g+o+65535,o=Math.floor(r/65536),g=r-o*65536,r=y+o+65535,o=Math.floor(r/65536),y=r-o*65536,r=A+o+65535,o=Math.floor(r/65536),A=r-o*65536,r=T+o+65535,o=Math.floor(r/65536),T=r-o*65536,r=R+o+65535,o=Math.floor(r/65536),R=r-o*65536,r=K+o+65535,o=Math.floor(r/65536),K=r-o*65536,r=O+o+65535,o=Math.floor(r/65536),O=r-o*65536,r=V+o+65535,o=Math.floor(r/65536),V=r-o*65536,r=D+o+65535,o=Math.floor(r/65536),D=r-o*65536,r=G+o+65535,o=Math.floor(r/65536),G=r-o*65536,a+=o-1+37*(o-1),t[0]=a,t[1]=c,t[2]=l,t[3]=f,t[4]=p,t[5]=m,t[6]=g,t[7]=y,t[8]=A,t[9]=T,t[10]=R,t[11]=K,t[12]=O,t[13]=V,t[14]=D,t[15]=G}function Md(t,e){jo(t,e,e)}var PMe,goe,uk,G4,BMe,yoe,voe,kL,CL,xoe,q4=Ve(()=>{u();ts();PMe=ri(16),goe=ri(32);goe[0]=9;uk=Kr(),G4=Kr([1]),BMe=Kr([56129,1]),yoe=Kr([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),voe=Kr([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),kL=Kr([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),CL=Kr([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),xoe=Kr([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139])});function yp(t,e){for(var n=0;n<16;n++)t[n]=e[n]|0}function TL(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-r*65536;t[0]+=r-1+37*(r-1)}function dk(t,e,n){for(var r,o=~(n-1),a=0;a<16;a++)r=o&(t[a]^e[a]),t[a]^=r,e[a]^=r}function Mv(t,e){var n=Kr(),r=Kr(),o,a,c;for(o=0;o<16;o++)r[o]=e[o];for(TL(r),TL(r),TL(r),a=0;a<2;a++){for(n[0]=r[0]-65517,o=1;o<15;o++)n[o]=r[o]-65535-(n[o-1]>>16&1),n[o-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1),c=n[15]>>16&1,n[14]&=65535,dk(r,n,1-c)}for(o=0;o<16;o++)t[2*o]=r[o]&255,t[2*o+1]=r[o]>>8}function _L(t,e){var n=ri(32),r=ri(32);return Mv(n,t),Mv(r,e),ck(n,0,r,0)}function ML(t){var e=ri(32);return Mv(e,t),e[0]&1}function IL(t,e){for(var n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function RL(t,e){var n=Kr(),r;for(r=0;r<16;r++)n[r]=e[r];for(r=253;r>=0;r--)Md(n,n),r!==2&&r!==4&&jo(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}var PL=Ve(()=>{u();ts();K4();q4()});var BL=Ve(()=>{u();ts();q4();PL();Pg()});var DMe,DL=Ve(()=>{u();ts();DMe=ri([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107])});var boe=Ve(()=>{u();ts()});var FL=Ve(()=>{u();ts();K4();DL();boe();Pg()});var OL=Ve(()=>{u();ts();q4();lk();DL();BL();FL();Pg()});function Aoe(t,e,n){var r=$4(8),o=$4(8),a=ri(256),c,l=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Eoe(r,o,e,n),n%=128,c=0;c<n;c++)a[c]=e[l-n+c];for(a[n]=128,n=256-128*(n<112?1:0),a[n-9]=0,Soe(a,n-8,l/536870912|0,l<<3),Eoe(r,o,a,n),c=0;c<8;c++)Soe(t,8*c,r[c],o[c]);return 0}function Eoe(t,e,n,r){for(var o=$4(16),a=$4(16),c,l,f,p,m,g,y,A,T,R,K,O,V,D,G,ee,J,le,se,te,S,_,P,z,Y,L,U=t[0],W=t[1],w=t[2],I=t[3],ye=t[4],ne=t[5],Q=t[6],ie=t[7],ue=e[0],q=e[1],Ee=e[2],we=e[3],_e=e[4],B=e[5],k=e[6],C=e[7],Z=0;r>=128;){for(se=0;se<16;se++)te=8*se+Z,o[se]=n[te+0]<<24|n[te+1]<<16|n[te+2]<<8|n[te+3],a[se]=n[te+4]<<24|n[te+5]<<16|n[te+6]<<8|n[te+7];for(se=0;se<80;se++)if(c=U,l=W,f=w,p=I,m=ye,g=ne,y=Q,A=ie,T=ue,R=q,K=Ee,O=we,V=_e,D=B,G=k,ee=C,S=ie,_=C,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=(ye>>>14|_e<<18)^(ye>>>18|_e<<14)^(_e>>>9|ye<<23),_=(_e>>>14|ye<<18)^(_e>>>18|ye<<14)^(ye>>>9|_e<<23),P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,S=ye&ne^~ye&Q,_=_e&B^~_e&k,P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,S=woe[se*2],_=woe[se*2+1],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,S=o[se%16],_=a[se%16],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,J=Y&65535|L<<16,le=P&65535|z<<16,S=J,_=le,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=(U>>>28|ue<<4)^(ue>>>2|U<<30)^(ue>>>7|U<<25),_=(ue>>>28|U<<4)^(U>>>2|ue<<30)^(U>>>7|ue<<25),P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,S=U&W^U&w^W&w,_=ue&q^ue&Ee^q&Ee,P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,A=Y&65535|L<<16,ee=P&65535|z<<16,S=p,_=O,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=J,_=le,P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,p=Y&65535|L<<16,O=P&65535|z<<16,W=c,w=l,I=f,ye=p,ne=m,Q=g,ie=y,U=A,q=T,Ee=R,we=K,_e=O,B=V,k=D,C=G,ue=ee,se%16===15)for(te=0;te<16;te++)S=o[te],_=a[te],P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=o[(te+9)%16],_=a[(te+9)%16],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,J=o[(te+1)%16],le=a[(te+1)%16],S=(J>>>1|le<<31)^(J>>>8|le<<24)^J>>>7,_=(le>>>1|J<<31)^(le>>>8|J<<24)^(le>>>7|J<<25),P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,J=o[(te+14)%16],le=a[(te+14)%16],S=(J>>>19|le<<13)^(le>>>29|J<<3)^J>>>6,_=(le>>>19|J<<13)^(J>>>29|le<<3)^(le>>>6|J<<26),P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,o[te]=Y&65535|L<<16,a[te]=P&65535|z<<16;S=U,_=ue,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[0],_=e[0],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[0]=U=Y&65535|L<<16,e[0]=ue=P&65535|z<<16,S=W,_=q,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[1],_=e[1],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[1]=W=Y&65535|L<<16,e[1]=q=P&65535|z<<16,S=w,_=Ee,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[2],_=e[2],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[2]=w=Y&65535|L<<16,e[2]=Ee=P&65535|z<<16,S=I,_=we,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[3],_=e[3],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[3]=I=Y&65535|L<<16,e[3]=we=P&65535|z<<16,S=ye,_=_e,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[4],_=e[4],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[4]=ye=Y&65535|L<<16,e[4]=_e=P&65535|z<<16,S=ne,_=B,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[5],_=e[5],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[5]=ne=Y&65535|L<<16,e[5]=B=P&65535|z<<16,S=Q,_=k,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[6],_=e[6],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[6]=Q=Y&65535|L<<16,e[6]=k=P&65535|z<<16,S=ie,_=C,P=_&65535,z=_>>>16,Y=S&65535,L=S>>>16,S=t[7],_=e[7],P+=_&65535,z+=_>>>16,Y+=S&65535,L+=S>>>16,z+=P>>>16,Y+=z>>>16,L+=Y>>>16,t[7]=ie=Y&65535|L<<16,e[7]=C=P&65535|z<<16,Z+=128,r-=128}return r}function Soe(t,e,n,r){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n&255,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=r&255}var woe,fk=Ve(()=>{u();ts();Pg();woe=[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 Coe(t,e,n){if(Rg(t,e,n),e.length!==64)throw new Error(\"bad signature size\");if(n.length!==32)throw new Error(\"bad public key size\");var r=ri(64+t.length),o=ri(64+t.length),a;for(a=0;a<64;a++)r[a]=e[a];for(a=0;a<t.length;a++)r[a+64]=t[a];return FMe(o,r,r.length,n)>=0}function FMe(t,e,n,r){var o=ri(32),a=ri(64),c=[Kr(),Kr(),Kr(),Kr()],l=[Kr(),Kr(),Kr(),Kr()],f,p;if(p=-1,n<64||NMe(l,r))return-1;for(f=0;f<n;f++)t[f]=e[f];for(f=0;f<32;f++)t[f+32]=r[f];if(Aoe(a,t,n),UMe(a),Toe(c,l,a),OMe(l,e.subarray(32)),NL(c,l),LMe(o,c),n-=64,ck(e,0,o,0)){for(f=0;f<n;f++)t[f]=0;return-1}for(f=0;f<n;f++)t[f]=e[f+64];return p=n,p}function OMe(t,e){var n=[Kr(),Kr(),Kr(),Kr()];yp(n[0],kL),yp(n[1],CL),yp(n[2],G4),jo(n[3],kL,CL),Toe(t,n,e)}function Toe(t,e,n){var r,o;for(yp(t[0],uk),yp(t[1],G4),yp(t[2],G4),yp(t[3],uk),o=255;o>=0;--o)r=n[o/8|0]>>(o&7)&1,koe(t,e,r),NL(e,t),NL(t,t),koe(t,e,r)}function LMe(t,e){var n=Kr(),r=Kr(),o=Kr();RL(o,e[2]),jo(n,e[0],o),jo(r,e[1],o),Mv(t,r),t[31]^=ML(n)<<7}function NMe(t,e){var n=Kr(),r=Kr(),o=Kr(),a=Kr(),c=Kr(),l=Kr(),f=Kr();return yp(t[2],G4),IL(t[1],e),Md(o,t[1]),jo(a,o,yoe),gm(o,o,t[2]),mm(a,t[2],a),Md(c,a),Md(l,c),jo(f,l,c),jo(n,f,o),jo(n,n,a),VMe(n,n),jo(n,n,o),jo(n,n,a),jo(n,n,a),jo(t[0],n,a),Md(r,t[0]),jo(r,r,a),_L(r,o)&&jo(t[0],t[0],xoe),Md(r,t[0]),jo(r,r,a),_L(r,o)?-1:(ML(t[0])===e[31]>>7&&gm(t[0],uk,t[0]),jo(t[3],t[0],t[1]),0)}function UMe(t){var e=_v(64),n;for(n=0;n<64;n++)e[n]=t[n];for(n=0;n<64;n++)t[n]=0;zMe(t,e)}function zMe(t,e){var n,r,o,a;for(r=63;r>=32;--r){for(n=0,o=r-32,a=r-12;o<a;++o)e[o]+=n-16*e[r]*LL[o-(r-32)],n=e[o]+128>>8,e[o]-=n*256;e[o]+=n,e[r]=0}for(n=0,o=0;o<32;o++)e[o]+=n-(e[31]>>4)*LL[o],n=e[o]>>8,e[o]&=255;for(o=0;o<32;o++)e[o]-=n*LL[o];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=e[r]&255}function NL(t,e){var n=Kr(),r=Kr(),o=Kr(),a=Kr(),c=Kr(),l=Kr(),f=Kr(),p=Kr(),m=Kr();gm(n,t[1],t[0]),gm(m,e[1],e[0]),jo(n,n,m),mm(r,t[0],t[1]),mm(m,e[0],e[1]),jo(r,r,m),jo(o,t[3],e[3]),jo(o,o,voe),jo(a,t[2],e[2]),mm(a,a,a),gm(c,r,n),gm(l,a,o),mm(f,a,o),mm(p,r,n),jo(t[0],c,l),jo(t[1],p,f),jo(t[2],f,l),jo(t[3],c,p)}function koe(t,e,n){for(var r=0;r<4;r++)dk(t[r],e[r],n)}function VMe(t,e){var n=Kr(),r;for(r=0;r<16;r++)n[r]=e[r];for(r=250;r>=0;r--)Md(n,n),r!==1&&jo(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}var LL,_oe=Ve(()=>{u();ts();K4();q4();lk();PL();fk();Pg();LL=_v([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16])});var Moe=Ve(()=>{u();ts();fk()});var Hst,jst,$st,Kst,Ioe=Ve(()=>{u();ts();Hst=hm([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),jst=ri([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),$st=hm(16),Kst=hm(16)});var Yst,HMe,Zst,Xst,Jst,UL=Ve(()=>{u();ts();Yst=hm([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),HMe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Zst=ri(HMe.map(function(t){return t*2})),Xst=hm(32),Jst=hm(32)});var Roe=Ve(()=>{u();ts();OL();UL()});var pk=Ve(()=>{u();ts();AL();poe();K4();lk();BL();FL();OL();_oe();fk();Moe();Ioe();UL();Roe()});var Poe=Qr((hk,zL)=>{u();(function(t,e){typeof hk==\"object\"&&typeof zL==\"object\"?zL.exports=e():typeof define==\"function\"&&define.amd?define([],e):typeof hk==\"object\"?hk.QRCodeStyling=e():t.QRCodeStyling=e()})(self,(function(){return(()=>{var t={192:(r,o)=>{var a,c,l=(function(){var f=function(_,P){var z=_,Y=T[P],L=null,U=0,W=null,w=[],I={},ye=function(B,k){L=(function(C){for(var Z=new Array(C),X=0;X<C;X+=1){Z[X]=new Array(C);for(var ae=0;ae<C;ae+=1)Z[X][ae]=null}return Z})(U=4*z+17),ne(0,0),ne(U-7,0),ne(0,U-7),ie(),Q(),q(B,k),z>=7&&ue(B),W==null&&(W=we(z,Y,w)),Ee(W,k)},ne=function(B,k){for(var C=-1;C<=7;C+=1)if(!(B+C<=-1||U<=B+C))for(var Z=-1;Z<=7;Z+=1)k+Z<=-1||U<=k+Z||(L[B+C][k+Z]=0<=C&&C<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(C==0||C==6)||2<=C&&C<=4&&2<=Z&&Z<=4)},Q=function(){for(var B=8;B<U-8;B+=1)L[B][6]==null&&(L[B][6]=B%2==0);for(var k=8;k<U-8;k+=1)L[6][k]==null&&(L[6][k]=k%2==0)},ie=function(){for(var B=R.getPatternPosition(z),k=0;k<B.length;k+=1)for(var C=0;C<B.length;C+=1){var Z=B[k],X=B[C];if(L[Z][X]==null)for(var ae=-2;ae<=2;ae+=1)for(var de=-2;de<=2;de+=1)L[Z+ae][X+de]=ae==-2||ae==2||de==-2||de==2||ae==0&&de==0}},ue=function(B){for(var k=R.getBCHTypeNumber(z),C=0;C<18;C+=1){var Z=!B&&(k>>C&1)==1;L[Math.floor(C/3)][C%3+U-8-3]=Z}for(C=0;C<18;C+=1)Z=!B&&(k>>C&1)==1,L[C%3+U-8-3][Math.floor(C/3)]=Z},q=function(B,k){for(var C=Y<<3|k,Z=R.getBCHTypeInfo(C),X=0;X<15;X+=1){var ae=!B&&(Z>>X&1)==1;X<6?L[X][8]=ae:X<8?L[X+1][8]=ae:L[U-15+X][8]=ae}for(X=0;X<15;X+=1)ae=!B&&(Z>>X&1)==1,X<8?L[8][U-X-1]=ae:X<9?L[8][15-X-1+1]=ae:L[8][15-X-1]=ae;L[U-8][8]=!B},Ee=function(B,k){for(var C=-1,Z=U-1,X=7,ae=0,de=R.getMaskFunction(k),me=U-1;me>0;me-=2)for(me==6&&(me-=1);;){for(var Pe=0;Pe<2;Pe+=1)if(L[Z][me-Pe]==null){var De=!1;ae<B.length&&(De=(B[ae]>>>X&1)==1),de(Z,me-Pe)&&(De=!De),L[Z][me-Pe]=De,(X-=1)==-1&&(ae+=1,X=7)}if((Z+=C)<0||U<=Z){Z-=C,C=-C;break}}},we=function(B,k,C){for(var Z=V.getRSBlocks(B,k),X=D(),ae=0;ae<C.length;ae+=1){var de=C[ae];X.put(de.getMode(),4),X.put(de.getLength(),R.getLengthInBits(de.getMode(),B)),de.write(X)}var me=0;for(ae=0;ae<Z.length;ae+=1)me+=Z[ae].dataCount;if(X.getLengthInBits()>8*me)throw\"code length overflow. (\"+X.getLengthInBits()+\">\"+8*me+\")\";for(X.getLengthInBits()+4<=8*me&&X.put(0,4);X.getLengthInBits()%8!=0;)X.putBit(!1);for(;!(X.getLengthInBits()>=8*me||(X.put(236,8),X.getLengthInBits()>=8*me));)X.put(17,8);return(function(Pe,De){for(var Re=0,qe=0,et=0,ot=new Array(De.length),Qe=new Array(De.length),xt=0;xt<De.length;xt+=1){var Wt=De[xt].dataCount,Vt=De[xt].totalCount-Wt;qe=Math.max(qe,Wt),et=Math.max(et,Vt),ot[xt]=new Array(Wt);for(var Bt=0;Bt<ot[xt].length;Bt+=1)ot[xt][Bt]=255&Pe.getBuffer()[Bt+Re];Re+=Wt;var nn=R.getErrorCorrectPolynomial(Vt),Yt=O(ot[xt],nn.getLength()-1).mod(nn);for(Qe[xt]=new Array(nn.getLength()-1),Bt=0;Bt<Qe[xt].length;Bt+=1){var hn=Bt+Yt.getLength()-Qe[xt].length;Qe[xt][Bt]=hn>=0?Yt.getAt(hn):0}}var Pn=0;for(Bt=0;Bt<De.length;Bt+=1)Pn+=De[Bt].totalCount;var Mn=new Array(Pn),Un=0;for(Bt=0;Bt<qe;Bt+=1)for(xt=0;xt<De.length;xt+=1)Bt<ot[xt].length&&(Mn[Un]=ot[xt][Bt],Un+=1);for(Bt=0;Bt<et;Bt+=1)for(xt=0;xt<De.length;xt+=1)Bt<Qe[xt].length&&(Mn[Un]=Qe[xt][Bt],Un+=1);return Mn})(X,Z)};I.addData=function(B,k){var C=null;switch(k=k||\"Byte\"){case\"Numeric\":C=G(B);break;case\"Alphanumeric\":C=ee(B);break;case\"Byte\":C=J(B);break;case\"Kanji\":C=le(B);break;default:throw\"mode:\"+k}w.push(C),W=null},I.isDark=function(B,k){if(B<0||U<=B||k<0||U<=k)throw B+\",\"+k;return L[B][k]},I.getModuleCount=function(){return U},I.make=function(){if(z<1){for(var B=1;B<40;B++){for(var k=V.getRSBlocks(B,Y),C=D(),Z=0;Z<w.length;Z++){var X=w[Z];C.put(X.getMode(),4),C.put(X.getLength(),R.getLengthInBits(X.getMode(),B)),X.write(C)}var ae=0;for(Z=0;Z<k.length;Z++)ae+=k[Z].dataCount;if(C.getLengthInBits()<=8*ae)break}z=B}ye(!1,(function(){for(var de=0,me=0,Pe=0;Pe<8;Pe+=1){ye(!0,Pe);var De=R.getLostPoint(I);(Pe==0||de>De)&&(de=De,me=Pe)}return me})())},I.createTableTag=function(B,k){B=B||2;var C=\"\";C+=\\'<table style=\"\\',C+=\" border-width: 0px; border-style: none;\",C+=\" border-collapse: collapse;\",C+=\" padding: 0px; margin: \"+(k=k===void 0?4*B:k)+\"px;\",C+=\\'\">\\',C+=\"<tbody>\";for(var Z=0;Z<I.getModuleCount();Z+=1){C+=\"<tr>\";for(var X=0;X<I.getModuleCount();X+=1)C+=\\'<td style=\"\\',C+=\" border-width: 0px; border-style: none;\",C+=\" border-collapse: collapse;\",C+=\" padding: 0px; margin: 0px;\",C+=\" width: \"+B+\"px;\",C+=\" height: \"+B+\"px;\",C+=\" background-color: \",C+=I.isDark(Z,X)?\"#000000\":\"#ffffff\",C+=\";\",C+=\\'\"/>\\';C+=\"</tr>\"}return(C+=\"</tbody>\")+\"</table>\"},I.createSvgTag=function(B,k,C,Z){var X={};typeof arguments[0]==\"object\"&&(B=(X=arguments[0]).cellSize,k=X.margin,C=X.alt,Z=X.title),B=B||2,k=k===void 0?4*B:k,(C=typeof C==\"string\"?{text:C}:C||{}).text=C.text||null,C.id=C.text?C.id||\"qrcode-description\":null,(Z=typeof Z==\"string\"?{text:Z}:Z||{}).text=Z.text||null,Z.id=Z.text?Z.id||\"qrcode-title\":null;var ae,de,me,Pe,De=I.getModuleCount()*B+2*k,Re=\"\";for(Pe=\"l\"+B+\",0 0,\"+B+\" -\"+B+\",0 0,-\"+B+\"z \",Re+=\\'<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"\\',Re+=X.scalable?\"\":\\' width=\"\\'+De+\\'px\" height=\"\\'+De+\\'px\"\\',Re+=\\' viewBox=\"0 0 \\'+De+\" \"+De+\\'\" \\',Re+=\\' preserveAspectRatio=\"xMinYMin meet\"\\',Re+=Z.text||C.text?\\' role=\"img\" aria-labelledby=\"\\'+_e([Z.id,C.id].join(\" \").trim())+\\'\"\\':\"\",Re+=\">\",Re+=Z.text?\\'<title id=\"\\'+_e(Z.id)+\\'\">\\'+_e(Z.text)+\"</title>\":\"\",Re+=C.text?\\'<description id=\"\\'+_e(C.id)+\\'\">\\'+_e(C.text)+\"</description>\":\"\",Re+=\\'<rect width=\"100%\" height=\"100%\" fill=\"white\" cx=\"0\" cy=\"0\"/>\\',Re+=\\'<path d=\"\\',de=0;de<I.getModuleCount();de+=1)for(me=de*B+k,ae=0;ae<I.getModuleCount();ae+=1)I.isDark(de,ae)&&(Re+=\"M\"+(ae*B+k)+\",\"+me+Pe);return(Re+=\\'\" stroke=\"transparent\" fill=\"black\"/>\\')+\"</svg>\"},I.createDataURL=function(B,k){B=B||2,k=k===void 0?4*B:k;var C=I.getModuleCount()*B+2*k,Z=k,X=C-k;return S(C,C,(function(ae,de){if(Z<=ae&&ae<X&&Z<=de&&de<X){var me=Math.floor((ae-Z)/B),Pe=Math.floor((de-Z)/B);return I.isDark(Pe,me)?0:1}return 1}))},I.createImgTag=function(B,k,C){B=B||2,k=k===void 0?4*B:k;var Z=I.getModuleCount()*B+2*k,X=\"\";return X+=\"<img\",X+=\\' src=\"\\',X+=I.createDataURL(B,k),X+=\\'\"\\',X+=\\' width=\"\\',X+=Z,X+=\\'\"\\',X+=\\' height=\"\\',X+=Z,X+=\\'\"\\',C&&(X+=\\' alt=\"\\',X+=_e(C),X+=\\'\"\\'),X+\"/>\"};var _e=function(B){for(var k=\"\",C=0;C<B.length;C+=1){var Z=B.charAt(C);switch(Z){case\"<\":k+=\"&lt;\";break;case\">\":k+=\"&gt;\";break;case\"&\":k+=\"&amp;\";break;case\\'\"\\':k+=\"&quot;\";break;default:k+=Z}}return k};return I.createASCII=function(B,k){if((B=B||1)<2)return(function(ot){ot=ot===void 0?2:ot;var Qe,xt,Wt,Vt,Bt,nn=1*I.getModuleCount()+2*ot,Yt=ot,hn=nn-ot,Pn={\"\\\\u2588\\\\u2588\":\"\\\\u2588\",\"\\\\u2588 \":\"\\\\u2580\",\" \\\\u2588\":\"\\\\u2584\",\"  \":\" \"},Mn={\"\\\\u2588\\\\u2588\":\"\\\\u2580\",\"\\\\u2588 \":\"\\\\u2580\",\" \\\\u2588\":\" \",\"  \":\" \"},Un=\"\";for(Qe=0;Qe<nn;Qe+=2){for(Wt=Math.floor((Qe-Yt)/1),Vt=Math.floor((Qe+1-Yt)/1),xt=0;xt<nn;xt+=1)Bt=\"\\\\u2588\",Yt<=xt&&xt<hn&&Yt<=Qe&&Qe<hn&&I.isDark(Wt,Math.floor((xt-Yt)/1))&&(Bt=\" \"),Yt<=xt&&xt<hn&&Yt<=Qe+1&&Qe+1<hn&&I.isDark(Vt,Math.floor((xt-Yt)/1))?Bt+=\" \":Bt+=\"\\\\u2588\",Un+=ot<1&&Qe+1>=hn?Mn[Bt]:Pn[Bt];Un+=`\\n`}return nn%2&&ot>0?Un.substring(0,Un.length-nn-1)+Array(nn+1).join(\"\\\\u2580\"):Un.substring(0,Un.length-1)})(k);B-=1,k=k===void 0?2*B:k;var C,Z,X,ae,de=I.getModuleCount()*B+2*k,me=k,Pe=de-k,De=Array(B+1).join(\"\\\\u2588\\\\u2588\"),Re=Array(B+1).join(\"  \"),qe=\"\",et=\"\";for(C=0;C<de;C+=1){for(X=Math.floor((C-me)/B),et=\"\",Z=0;Z<de;Z+=1)ae=1,me<=Z&&Z<Pe&&me<=C&&C<Pe&&I.isDark(X,Math.floor((Z-me)/B))&&(ae=0),et+=ae?De:Re;for(X=0;X<B;X+=1)qe+=et+`\\n`}return qe.substring(0,qe.length-1)},I.renderTo2dContext=function(B,k){k=k||2;for(var C=I.getModuleCount(),Z=0;Z<C;Z++)for(var X=0;X<C;X++)B.fillStyle=I.isDark(Z,X)?\"black\":\"white\",B.fillRect(Z*k,X*k,k,k)},I};f.stringToBytes=(f.stringToBytesFuncs={default:function(_){for(var P=[],z=0;z<_.length;z+=1){var Y=_.charCodeAt(z);P.push(255&Y)}return P}}).default,f.createStringToBytes=function(_,P){var z=(function(){for(var L=te(_),U=function(){var Q=L.read();if(Q==-1)throw\"eof\";return Q},W=0,w={};;){var I=L.read();if(I==-1)break;var ye=U(),ne=U()<<8|U();w[String.fromCharCode(I<<8|ye)]=ne,W+=1}if(W!=P)throw W+\" != \"+P;return w})(),Y=63;return function(L){for(var U=[],W=0;W<L.length;W+=1){var w=L.charCodeAt(W);if(w<128)U.push(w);else{var I=z[L.charAt(W)];typeof I==\"number\"?(255&I)==I?U.push(I):(U.push(I>>>8),U.push(255&I)):U.push(Y)}}return U}};var p,m,g,y,A,T={L:1,M:0,Q:3,H:2},R=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m=1335,g=7973,A=function(_){for(var P=0;_!=0;)P+=1,_>>>=1;return P},(y={}).getBCHTypeInfo=function(_){for(var P=_<<10;A(P)-A(m)>=0;)P^=m<<A(P)-A(m);return 21522^(_<<10|P)},y.getBCHTypeNumber=function(_){for(var P=_<<12;A(P)-A(g)>=0;)P^=g<<A(P)-A(g);return _<<12|P},y.getPatternPosition=function(_){return p[_-1]},y.getMaskFunction=function(_){switch(_){case 0:return function(P,z){return(P+z)%2==0};case 1:return function(P,z){return P%2==0};case 2:return function(P,z){return z%3==0};case 3:return function(P,z){return(P+z)%3==0};case 4:return function(P,z){return(Math.floor(P/2)+Math.floor(z/3))%2==0};case 5:return function(P,z){return P*z%2+P*z%3==0};case 6:return function(P,z){return(P*z%2+P*z%3)%2==0};case 7:return function(P,z){return(P*z%3+(P+z)%2)%2==0};default:throw\"bad maskPattern:\"+_}},y.getErrorCorrectPolynomial=function(_){for(var P=O([1],0),z=0;z<_;z+=1)P=P.multiply(O([1,K.gexp(z)],0));return P},y.getLengthInBits=function(_,P){if(1<=P&&P<10)switch(_){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw\"mode:\"+_}else if(P<27)switch(_){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw\"mode:\"+_}else{if(!(P<41))throw\"type:\"+P;switch(_){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw\"mode:\"+_}}},y.getLostPoint=function(_){for(var P=_.getModuleCount(),z=0,Y=0;Y<P;Y+=1)for(var L=0;L<P;L+=1){for(var U=0,W=_.isDark(Y,L),w=-1;w<=1;w+=1)if(!(Y+w<0||P<=Y+w))for(var I=-1;I<=1;I+=1)L+I<0||P<=L+I||w==0&&I==0||W==_.isDark(Y+w,L+I)&&(U+=1);U>5&&(z+=3+U-5)}for(Y=0;Y<P-1;Y+=1)for(L=0;L<P-1;L+=1){var ye=0;_.isDark(Y,L)&&(ye+=1),_.isDark(Y+1,L)&&(ye+=1),_.isDark(Y,L+1)&&(ye+=1),_.isDark(Y+1,L+1)&&(ye+=1),ye!=0&&ye!=4||(z+=3)}for(Y=0;Y<P;Y+=1)for(L=0;L<P-6;L+=1)_.isDark(Y,L)&&!_.isDark(Y,L+1)&&_.isDark(Y,L+2)&&_.isDark(Y,L+3)&&_.isDark(Y,L+4)&&!_.isDark(Y,L+5)&&_.isDark(Y,L+6)&&(z+=40);for(L=0;L<P;L+=1)for(Y=0;Y<P-6;Y+=1)_.isDark(Y,L)&&!_.isDark(Y+1,L)&&_.isDark(Y+2,L)&&_.isDark(Y+3,L)&&_.isDark(Y+4,L)&&!_.isDark(Y+5,L)&&_.isDark(Y+6,L)&&(z+=40);var ne=0;for(L=0;L<P;L+=1)for(Y=0;Y<P;Y+=1)_.isDark(Y,L)&&(ne+=1);return z+Math.abs(100*ne/P/P-50)/5*10},y),K=(function(){for(var _=new Array(256),P=new Array(256),z=0;z<8;z+=1)_[z]=1<<z;for(z=8;z<256;z+=1)_[z]=_[z-4]^_[z-5]^_[z-6]^_[z-8];for(z=0;z<255;z+=1)P[_[z]]=z;return{glog:function(Y){if(Y<1)throw\"glog(\"+Y+\")\";return P[Y]},gexp:function(Y){for(;Y<0;)Y+=255;for(;Y>=256;)Y-=255;return _[Y]}}})();function O(_,P){if(_.length===void 0)throw _.length+\"/\"+P;var z=(function(){for(var L=0;L<_.length&&_[L]==0;)L+=1;for(var U=new Array(_.length-L+P),W=0;W<_.length-L;W+=1)U[W]=_[W+L];return U})(),Y={getAt:function(L){return z[L]},getLength:function(){return z.length},multiply:function(L){for(var U=new Array(Y.getLength()+L.getLength()-1),W=0;W<Y.getLength();W+=1)for(var w=0;w<L.getLength();w+=1)U[W+w]^=K.gexp(K.glog(Y.getAt(W))+K.glog(L.getAt(w)));return O(U,0)},mod:function(L){if(Y.getLength()-L.getLength()<0)return Y;for(var U=K.glog(Y.getAt(0))-K.glog(L.getAt(0)),W=new Array(Y.getLength()),w=0;w<Y.getLength();w+=1)W[w]=Y.getAt(w);for(w=0;w<L.getLength();w+=1)W[w]^=K.gexp(K.glog(L.getAt(w))+U);return O(W,0).mod(L)}};return Y}var V=(function(){var _=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],P=function(Y,L){var U={};return U.totalCount=Y,U.dataCount=L,U},z={getRSBlocks:function(Y,L){var U=(function(ue,q){switch(q){case T.L:return _[4*(ue-1)+0];case T.M:return _[4*(ue-1)+1];case T.Q:return _[4*(ue-1)+2];case T.H:return _[4*(ue-1)+3];default:return}})(Y,L);if(U===void 0)throw\"bad rs block @ typeNumber:\"+Y+\"/errorCorrectionLevel:\"+L;for(var W=U.length/3,w=[],I=0;I<W;I+=1)for(var ye=U[3*I+0],ne=U[3*I+1],Q=U[3*I+2],ie=0;ie<ye;ie+=1)w.push(P(ne,Q));return w}};return z})(),D=function(){var _=[],P=0,z={getBuffer:function(){return _},getAt:function(Y){var L=Math.floor(Y/8);return(_[L]>>>7-Y%8&1)==1},put:function(Y,L){for(var U=0;U<L;U+=1)z.putBit((Y>>>L-U-1&1)==1)},getLengthInBits:function(){return P},putBit:function(Y){var L=Math.floor(P/8);_.length<=L&&_.push(0),Y&&(_[L]|=128>>>P%8),P+=1}};return z},G=function(_){var P=_,z={getMode:function(){return 1},getLength:function(U){return P.length},write:function(U){for(var W=P,w=0;w+2<W.length;)U.put(Y(W.substring(w,w+3)),10),w+=3;w<W.length&&(W.length-w==1?U.put(Y(W.substring(w,w+1)),4):W.length-w==2&&U.put(Y(W.substring(w,w+2)),7))}},Y=function(U){for(var W=0,w=0;w<U.length;w+=1)W=10*W+L(U.charAt(w));return W},L=function(U){if(\"0\"<=U&&U<=\"9\")return U.charCodeAt(0)-48;throw\"illegal char :\"+U};return z},ee=function(_){var P=_,z={getMode:function(){return 2},getLength:function(L){return P.length},write:function(L){for(var U=P,W=0;W+1<U.length;)L.put(45*Y(U.charAt(W))+Y(U.charAt(W+1)),11),W+=2;W<U.length&&L.put(Y(U.charAt(W)),6)}},Y=function(L){if(\"0\"<=L&&L<=\"9\")return L.charCodeAt(0)-48;if(\"A\"<=L&&L<=\"Z\")return L.charCodeAt(0)-65+10;switch(L){case\" \":return 36;case\"$\":return 37;case\"%\":return 38;case\"*\":return 39;case\"+\":return 40;case\"-\":return 41;case\".\":return 42;case\"/\":return 43;case\":\":return 44;default:throw\"illegal char :\"+L}};return z},J=function(_){var P=f.stringToBytes(_);return{getMode:function(){return 4},getLength:function(z){return P.length},write:function(z){for(var Y=0;Y<P.length;Y+=1)z.put(P[Y],8)}}},le=function(_){var P=f.stringToBytesFuncs.SJIS;if(!P)throw\"sjis not supported.\";(function(Y,L){var U=P(\"\\\\u53CB\");if(U.length!=2||(U[0]<<8|U[1])!=38726)throw\"sjis not supported.\"})();var z=P(_);return{getMode:function(){return 8},getLength:function(Y){return~~(z.length/2)},write:function(Y){for(var L=z,U=0;U+1<L.length;){var W=(255&L[U])<<8|255&L[U+1];if(33088<=W&&W<=40956)W-=33088;else{if(!(57408<=W&&W<=60351))throw\"illegal char at \"+(U+1)+\"/\"+W;W-=49472}W=192*(W>>>8&255)+(255&W),Y.put(W,13),U+=2}if(U<L.length)throw\"illegal char at \"+(U+1)}}},se=function(){var _=[],P={writeByte:function(z){_.push(255&z)},writeShort:function(z){P.writeByte(z),P.writeByte(z>>>8)},writeBytes:function(z,Y,L){Y=Y||0,L=L||z.length;for(var U=0;U<L;U+=1)P.writeByte(z[U+Y])},writeString:function(z){for(var Y=0;Y<z.length;Y+=1)P.writeByte(z.charCodeAt(Y))},toByteArray:function(){return _},toString:function(){var z=\"\";z+=\"[\";for(var Y=0;Y<_.length;Y+=1)Y>0&&(z+=\",\"),z+=_[Y];return z+\"]\"}};return P},te=function(_){var P=_,z=0,Y=0,L=0,U={read:function(){for(;L<8;){if(z>=P.length){if(L==0)return-1;throw\"unexpected end of file./\"+L}var w=P.charAt(z);if(z+=1,w==\"=\")return L=0,-1;w.match(/^\\\\s$/)||(Y=Y<<6|W(w.charCodeAt(0)),L+=6)}var I=Y>>>L-8&255;return L-=8,I}},W=function(w){if(65<=w&&w<=90)return w-65;if(97<=w&&w<=122)return w-97+26;if(48<=w&&w<=57)return w-48+52;if(w==43)return 62;if(w==47)return 63;throw\"c:\"+w};return U},S=function(_,P,z){for(var Y=(function(ne,Q){var ie=ne,ue=Q,q=new Array(ne*Q),Ee={setPixel:function(B,k,C){q[k*ie+B]=C},write:function(B){B.writeString(\"GIF87a\"),B.writeShort(ie),B.writeShort(ue),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(\",\"),B.writeShort(0),B.writeShort(0),B.writeShort(ie),B.writeShort(ue),B.writeByte(0);var k=we(2);B.writeByte(2);for(var C=0;k.length-C>255;)B.writeByte(255),B.writeBytes(k,C,255),C+=255;B.writeByte(k.length-C),B.writeBytes(k,C,k.length-C),B.writeByte(0),B.writeString(\";\")}},we=function(B){for(var k=1<<B,C=1+(1<<B),Z=B+1,X=_e(),ae=0;ae<k;ae+=1)X.add(String.fromCharCode(ae));X.add(String.fromCharCode(k)),X.add(String.fromCharCode(C));var de,me,Pe,De=se(),Re=(de=De,me=0,Pe=0,{write:function(Qe,xt){if(Qe>>>xt)throw\"length over\";for(;me+xt>=8;)de.writeByte(255&(Qe<<me|Pe)),xt-=8-me,Qe>>>=8-me,Pe=0,me=0;Pe|=Qe<<me,me+=xt},flush:function(){me>0&&de.writeByte(Pe)}});Re.write(k,Z);var qe=0,et=String.fromCharCode(q[qe]);for(qe+=1;qe<q.length;){var ot=String.fromCharCode(q[qe]);qe+=1,X.contains(et+ot)?et+=ot:(Re.write(X.indexOf(et),Z),X.size()<4095&&(X.size()==1<<Z&&(Z+=1),X.add(et+ot)),et=ot)}return Re.write(X.indexOf(et),Z),Re.write(C,Z),Re.flush(),De.toByteArray()},_e=function(){var B={},k=0,C={add:function(Z){if(C.contains(Z))throw\"dup key:\"+Z;B[Z]=k,k+=1},size:function(){return k},indexOf:function(Z){return B[Z]},contains:function(Z){return B[Z]!==void 0}};return C};return Ee})(_,P),L=0;L<P;L+=1)for(var U=0;U<_;U+=1)Y.setPixel(U,L,z(U,L));var W=se();Y.write(W);for(var w=(function(){var ne=0,Q=0,ie=0,ue=\"\",q={},Ee=function(_e){ue+=String.fromCharCode(we(63&_e))},we=function(_e){if(!(_e<0)){if(_e<26)return 65+_e;if(_e<52)return _e-26+97;if(_e<62)return _e-52+48;if(_e==62)return 43;if(_e==63)return 47}throw\"n:\"+_e};return q.writeByte=function(_e){for(ne=ne<<8|255&_e,Q+=8,ie+=1;Q>=6;)Ee(ne>>>Q-6),Q-=6},q.flush=function(){if(Q>0&&(Ee(ne<<6-Q),ne=0,Q=0),ie%3!=0)for(var _e=3-ie%3,B=0;B<_e;B+=1)ue+=\"=\"},q.toString=function(){return ue},q})(),I=W.toByteArray(),ye=0;ye<I.length;ye+=1)w.writeByte(I[ye]);return w.flush(),\"data:image/gif;base64,\"+w};return f})();l.stringToBytesFuncs[\"UTF-8\"]=function(f){return(function(p){for(var m=[],g=0;g<p.length;g++){var y=p.charCodeAt(g);y<128?m.push(y):y<2048?m.push(192|y>>6,128|63&y):y<55296||y>=57344?m.push(224|y>>12,128|y>>6&63,128|63&y):(g++,y=65536+((1023&y)<<10|1023&p.charCodeAt(g)),m.push(240|y>>18,128|y>>12&63,128|y>>6&63,128|63&y))}return m})(f)},(c=typeof(a=function(){return l})==\"function\"?a.apply(o,[]):a)===void 0||(r.exports=c)},676:(r,o,a)=>{\"use strict\";a.d(o,{default:()=>ye});var c=function(){return(c=Object.assign||function(ne){for(var Q,ie=1,ue=arguments.length;ie<ue;ie++)for(var q in Q=arguments[ie])Object.prototype.hasOwnProperty.call(Q,q)&&(ne[q]=Q[q]);return ne}).apply(this,arguments)},l=function(){for(var ne=0,Q=0,ie=arguments.length;Q<ie;Q++)ne+=arguments[Q].length;var ue=Array(ne),q=0;for(Q=0;Q<ie;Q++)for(var Ee=arguments[Q],we=0,_e=Ee.length;we<_e;we++,q++)ue[q]=Ee[we];return ue},f=function(ne){return!!ne&&typeof ne==\"object\"&&!Array.isArray(ne)};function p(ne){for(var Q=[],ie=1;ie<arguments.length;ie++)Q[ie-1]=arguments[ie];if(!Q.length)return ne;var ue=Q.shift();return ue!==void 0&&f(ne)&&f(ue)?(ne=c({},ne),Object.keys(ue).forEach((function(q){var Ee=ne[q],we=ue[q];Array.isArray(Ee)&&Array.isArray(we)?ne[q]=we:f(Ee)&&f(we)?ne[q]=p(Object.assign({},Ee),we):ne[q]=we})),p.apply(void 0,l([ne],Q))):ne}function m(ne,Q){var ie=document.createElement(\"a\");ie.download=Q,ie.href=ne,document.body.appendChild(ie),ie.click(),document.body.removeChild(ie)}function g(ne){return Q=this,ie=void 0,q=function(){return(function(Ee,we){var _e,B,k,C,Z={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return C={next:X(0),throw:X(1),return:X(2)},typeof Symbol==\"function\"&&(C[Symbol.iterator]=function(){return this}),C;function X(ae){return function(de){return(function(me){if(_e)throw new TypeError(\"Generator is already executing.\");for(;Z;)try{if(_e=1,B&&(k=2&me[0]?B.return:me[0]?B.throw||((k=B.return)&&k.call(B),0):B.next)&&!(k=k.call(B,me[1])).done)return k;switch(B=0,k&&(me=[2&me[0],k.value]),me[0]){case 0:case 1:k=me;break;case 4:return Z.label++,{value:me[1],done:!1};case 5:Z.label++,B=me[1],me=[0];continue;case 7:me=Z.ops.pop(),Z.trys.pop();continue;default:if(!((k=(k=Z.trys).length>0&&k[k.length-1])||me[0]!==6&&me[0]!==2)){Z=0;continue}if(me[0]===3&&(!k||me[1]>k[0]&&me[1]<k[3])){Z.label=me[1];break}if(me[0]===6&&Z.label<k[1]){Z.label=k[1],k=me;break}if(k&&Z.label<k[2]){Z.label=k[2],Z.ops.push(me);break}k[2]&&Z.ops.pop(),Z.trys.pop();continue}me=we.call(Ee,Z)}catch(Pe){me=[6,Pe],B=0}finally{_e=k=0}if(5&me[0])throw me[1];return{value:me[0]?me[1]:void 0,done:!0}})([ae,de])}}})(this,(function(Ee){return[2,new Promise((function(we){var _e=new XMLHttpRequest;_e.onload=function(){var B=new FileReader;B.onloadend=function(){we(B.result)},B.readAsDataURL(_e.response)},_e.open(\"GET\",ne),_e.responseType=\"blob\",_e.send()}))]}))},new((ue=void 0)||(ue=Promise))((function(Ee,we){function _e(C){try{k(q.next(C))}catch(Z){we(Z)}}function B(C){try{k(q.throw(C))}catch(Z){we(Z)}}function k(C){var Z;C.done?Ee(C.value):(Z=C.value,Z instanceof ue?Z:new ue((function(X){X(Z)}))).then(_e,B)}k((q=q.apply(Q,ie||[])).next())}));var Q,ie,ue,q}let y={L:.07,M:.15,Q:.25,H:.3};var A=function(){return(A=Object.assign||function(ne){for(var Q,ie=1,ue=arguments.length;ie<ue;ie++)for(var q in Q=arguments[ie])Object.prototype.hasOwnProperty.call(Q,q)&&(ne[q]=Q[q]);return ne}).apply(this,arguments)};let T=(function(){function ne(Q){var ie=Q.svg,ue=Q.type;this._svg=ie,this._type=ue}return ne.prototype.draw=function(Q,ie,ue,q){var Ee;switch(this._type){case\"dots\":Ee=this._drawDot;break;case\"classy\":Ee=this._drawClassy;break;case\"classy-rounded\":Ee=this._drawClassyRounded;break;case\"rounded\":Ee=this._drawRounded;break;case\"extra-rounded\":Ee=this._drawExtraRounded;break;default:Ee=this._drawSquare}Ee.call(this,{x:Q,y:ie,size:ue,getNeighbor:q})},ne.prototype._rotateFigure=function(Q){var ie,ue=Q.x,q=Q.y,Ee=Q.size,we=Q.rotation,_e=we===void 0?0:we,B=ue+Ee/2,k=q+Ee/2;(0,Q.draw)(),(ie=this._element)===null||ie===void 0||ie.setAttribute(\"transform\",\"rotate(\"+180*_e/Math.PI+\",\"+B+\",\"+k+\")\")},ne.prototype._basicDot=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\"),ie._element.setAttribute(\"cx\",String(q+ue/2)),ie._element.setAttribute(\"cy\",String(Ee+ue/2)),ie._element.setAttribute(\"r\",String(ue/2))}}))},ne.prototype._basicSquare=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"),ie._element.setAttribute(\"x\",String(q)),ie._element.setAttribute(\"y\",String(Ee)),ie._element.setAttribute(\"width\",String(ue)),ie._element.setAttribute(\"height\",String(ue))}}))},ne.prototype._basicSideRounded=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+Ee+\"v \"+ue+\"h \"+ue/2+\"a \"+ue/2+\" \"+ue/2+\", 0, 0, 0, 0 \"+-ue)}}))},ne.prototype._basicCornerRounded=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+Ee+\"v \"+ue+\"h \"+ue+\"v \"+-ue/2+\"a \"+ue/2+\" \"+ue/2+\", 0, 0, 0, \"+-ue/2+\" \"+-ue/2)}}))},ne.prototype._basicCornerExtraRounded=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+Ee+\"v \"+ue+\"h \"+ue+\"a \"+ue+\" \"+ue+\", 0, 0, 0, \"+-ue+\" \"+-ue)}}))},ne.prototype._basicCornersRounded=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(A(A({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+Ee+\"v \"+ue/2+\"a \"+ue/2+\" \"+ue/2+\", 0, 0, 0, \"+ue/2+\" \"+ue/2+\"h \"+ue/2+\"v \"+-ue/2+\"a \"+ue/2+\" \"+ue/2+\", 0, 0, 0, \"+-ue/2+\" \"+-ue/2)}}))},ne.prototype._drawDot=function(Q){var ie=Q.x,ue=Q.y,q=Q.size;this._basicDot({x:ie,y:ue,size:q,rotation:0})},ne.prototype._drawSquare=function(Q){var ie=Q.x,ue=Q.y,q=Q.size;this._basicSquare({x:ie,y:ue,size:q,rotation:0})},ne.prototype._drawRounded=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.getNeighbor,we=Ee?+Ee(-1,0):0,_e=Ee?+Ee(1,0):0,B=Ee?+Ee(0,-1):0,k=Ee?+Ee(0,1):0,C=we+_e+B+k;if(C!==0)if(C>2||we&&_e||B&&k)this._basicSquare({x:ie,y:ue,size:q,rotation:0});else{if(C===2){var Z=0;return we&&B?Z=Math.PI/2:B&&_e?Z=Math.PI:_e&&k&&(Z=-Math.PI/2),void this._basicCornerRounded({x:ie,y:ue,size:q,rotation:Z})}if(C===1)return Z=0,B?Z=Math.PI/2:_e?Z=Math.PI:k&&(Z=-Math.PI/2),void this._basicSideRounded({x:ie,y:ue,size:q,rotation:Z})}else this._basicDot({x:ie,y:ue,size:q,rotation:0})},ne.prototype._drawExtraRounded=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.getNeighbor,we=Ee?+Ee(-1,0):0,_e=Ee?+Ee(1,0):0,B=Ee?+Ee(0,-1):0,k=Ee?+Ee(0,1):0,C=we+_e+B+k;if(C!==0)if(C>2||we&&_e||B&&k)this._basicSquare({x:ie,y:ue,size:q,rotation:0});else{if(C===2){var Z=0;return we&&B?Z=Math.PI/2:B&&_e?Z=Math.PI:_e&&k&&(Z=-Math.PI/2),void this._basicCornerExtraRounded({x:ie,y:ue,size:q,rotation:Z})}if(C===1)return Z=0,B?Z=Math.PI/2:_e?Z=Math.PI:k&&(Z=-Math.PI/2),void this._basicSideRounded({x:ie,y:ue,size:q,rotation:Z})}else this._basicDot({x:ie,y:ue,size:q,rotation:0})},ne.prototype._drawClassy=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.getNeighbor,we=Ee?+Ee(-1,0):0,_e=Ee?+Ee(1,0):0,B=Ee?+Ee(0,-1):0,k=Ee?+Ee(0,1):0;we+_e+B+k!==0?we||B?_e||k?this._basicSquare({x:ie,y:ue,size:q,rotation:0}):this._basicCornerRounded({x:ie,y:ue,size:q,rotation:Math.PI/2}):this._basicCornerRounded({x:ie,y:ue,size:q,rotation:-Math.PI/2}):this._basicCornersRounded({x:ie,y:ue,size:q,rotation:Math.PI/2})},ne.prototype._drawClassyRounded=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.getNeighbor,we=Ee?+Ee(-1,0):0,_e=Ee?+Ee(1,0):0,B=Ee?+Ee(0,-1):0,k=Ee?+Ee(0,1):0;we+_e+B+k!==0?we||B?_e||k?this._basicSquare({x:ie,y:ue,size:q,rotation:0}):this._basicCornerExtraRounded({x:ie,y:ue,size:q,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:ie,y:ue,size:q,rotation:-Math.PI/2}):this._basicCornersRounded({x:ie,y:ue,size:q,rotation:Math.PI/2})},ne})();var R=function(){return(R=Object.assign||function(ne){for(var Q,ie=1,ue=arguments.length;ie<ue;ie++)for(var q in Q=arguments[ie])Object.prototype.hasOwnProperty.call(Q,q)&&(ne[q]=Q[q]);return ne}).apply(this,arguments)};let K=(function(){function ne(Q){var ie=Q.svg,ue=Q.type;this._svg=ie,this._type=ue}return ne.prototype.draw=function(Q,ie,ue,q){var Ee;switch(this._type){case\"square\":Ee=this._drawSquare;break;case\"extra-rounded\":Ee=this._drawExtraRounded;break;default:Ee=this._drawDot}Ee.call(this,{x:Q,y:ie,size:ue,rotation:q})},ne.prototype._rotateFigure=function(Q){var ie,ue=Q.x,q=Q.y,Ee=Q.size,we=Q.rotation,_e=we===void 0?0:we,B=ue+Ee/2,k=q+Ee/2;(0,Q.draw)(),(ie=this._element)===null||ie===void 0||ie.setAttribute(\"transform\",\"rotate(\"+180*_e/Math.PI+\",\"+B+\",\"+k+\")\")},ne.prototype._basicDot=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y,we=ue/7;this._rotateFigure(R(R({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"clip-rule\",\"evenodd\"),ie._element.setAttribute(\"d\",\"M \"+(q+ue/2)+\" \"+Ee+\"a \"+ue/2+\" \"+ue/2+\" 0 1 0 0.1 0zm 0 \"+we+\"a \"+(ue/2-we)+\" \"+(ue/2-we)+\" 0 1 1 -0.1 0Z\")}}))},ne.prototype._basicSquare=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y,we=ue/7;this._rotateFigure(R(R({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"clip-rule\",\"evenodd\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+Ee+\"v \"+ue+\"h \"+ue+\"v \"+-ue+\"zM \"+(q+we)+\" \"+(Ee+we)+\"h \"+(ue-2*we)+\"v \"+(ue-2*we)+\"h \"+(2*we-ue)+\"z\")}}))},ne.prototype._basicExtraRounded=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y,we=ue/7;this._rotateFigure(R(R({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),ie._element.setAttribute(\"clip-rule\",\"evenodd\"),ie._element.setAttribute(\"d\",\"M \"+q+\" \"+(Ee+2.5*we)+\"v \"+2*we+\"a \"+2.5*we+\" \"+2.5*we+\", 0, 0, 0, \"+2.5*we+\" \"+2.5*we+\"h \"+2*we+\"a \"+2.5*we+\" \"+2.5*we+\", 0, 0, 0, \"+2.5*we+\" \"+2.5*-we+\"v \"+-2*we+\"a \"+2.5*we+\" \"+2.5*we+\", 0, 0, 0, \"+2.5*-we+\" \"+2.5*-we+\"h \"+-2*we+\"a \"+2.5*we+\" \"+2.5*we+\", 0, 0, 0, \"+2.5*-we+\" \"+2.5*we+\"M \"+(q+2.5*we)+\" \"+(Ee+we)+\"h \"+2*we+\"a \"+1.5*we+\" \"+1.5*we+\", 0, 0, 1, \"+1.5*we+\" \"+1.5*we+\"v \"+2*we+\"a \"+1.5*we+\" \"+1.5*we+\", 0, 0, 1, \"+1.5*-we+\" \"+1.5*we+\"h \"+-2*we+\"a \"+1.5*we+\" \"+1.5*we+\", 0, 0, 1, \"+1.5*-we+\" \"+1.5*-we+\"v \"+-2*we+\"a \"+1.5*we+\" \"+1.5*we+\", 0, 0, 1, \"+1.5*we+\" \"+1.5*-we)}}))},ne.prototype._drawDot=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.rotation;this._basicDot({x:ie,y:ue,size:q,rotation:Ee})},ne.prototype._drawSquare=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.rotation;this._basicSquare({x:ie,y:ue,size:q,rotation:Ee})},ne.prototype._drawExtraRounded=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.rotation;this._basicExtraRounded({x:ie,y:ue,size:q,rotation:Ee})},ne})();var O=function(){return(O=Object.assign||function(ne){for(var Q,ie=1,ue=arguments.length;ie<ue;ie++)for(var q in Q=arguments[ie])Object.prototype.hasOwnProperty.call(Q,q)&&(ne[q]=Q[q]);return ne}).apply(this,arguments)};let V=(function(){function ne(Q){var ie=Q.svg,ue=Q.type;this._svg=ie,this._type=ue}return ne.prototype.draw=function(Q,ie,ue,q){var Ee;this._type===\"square\"?Ee=this._drawSquare:Ee=this._drawDot,Ee.call(this,{x:Q,y:ie,size:ue,rotation:q})},ne.prototype._rotateFigure=function(Q){var ie,ue=Q.x,q=Q.y,Ee=Q.size,we=Q.rotation,_e=we===void 0?0:we,B=ue+Ee/2,k=q+Ee/2;(0,Q.draw)(),(ie=this._element)===null||ie===void 0||ie.setAttribute(\"transform\",\"rotate(\"+180*_e/Math.PI+\",\"+B+\",\"+k+\")\")},ne.prototype._basicDot=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(O(O({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\"),ie._element.setAttribute(\"cx\",String(q+ue/2)),ie._element.setAttribute(\"cy\",String(Ee+ue/2)),ie._element.setAttribute(\"r\",String(ue/2))}}))},ne.prototype._basicSquare=function(Q){var ie=this,ue=Q.size,q=Q.x,Ee=Q.y;this._rotateFigure(O(O({},Q),{draw:function(){ie._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"),ie._element.setAttribute(\"x\",String(q)),ie._element.setAttribute(\"y\",String(Ee)),ie._element.setAttribute(\"width\",String(ue)),ie._element.setAttribute(\"height\",String(ue))}}))},ne.prototype._drawDot=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.rotation;this._basicDot({x:ie,y:ue,size:q,rotation:Ee})},ne.prototype._drawSquare=function(Q){var ie=Q.x,ue=Q.y,q=Q.size,Ee=Q.rotation;this._basicSquare({x:ie,y:ue,size:q,rotation:Ee})},ne})(),D=\"circle\";var G=function(ne,Q,ie,ue){return new(ie||(ie=Promise))((function(q,Ee){function we(k){try{B(ue.next(k))}catch(C){Ee(C)}}function _e(k){try{B(ue.throw(k))}catch(C){Ee(C)}}function B(k){var C;k.done?q(k.value):(C=k.value,C instanceof ie?C:new ie((function(Z){Z(C)}))).then(we,_e)}B((ue=ue.apply(ne,Q||[])).next())}))},ee=function(ne,Q){var ie,ue,q,Ee,we={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return Ee={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol==\"function\"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function _e(B){return function(k){return(function(C){if(ie)throw new TypeError(\"Generator is already executing.\");for(;we;)try{if(ie=1,ue&&(q=2&C[0]?ue.return:C[0]?ue.throw||((q=ue.return)&&q.call(ue),0):ue.next)&&!(q=q.call(ue,C[1])).done)return q;switch(ue=0,q&&(C=[2&C[0],q.value]),C[0]){case 0:case 1:q=C;break;case 4:return we.label++,{value:C[1],done:!1};case 5:we.label++,ue=C[1],C=[0];continue;case 7:C=we.ops.pop(),we.trys.pop();continue;default:if(!((q=(q=we.trys).length>0&&q[q.length-1])||C[0]!==6&&C[0]!==2)){we=0;continue}if(C[0]===3&&(!q||C[1]>q[0]&&C[1]<q[3])){we.label=C[1];break}if(C[0]===6&&we.label<q[1]){we.label=q[1],q=C;break}if(q&&we.label<q[2]){we.label=q[2],we.ops.push(C);break}q[2]&&we.ops.pop(),we.trys.pop();continue}C=Q.call(ne,we)}catch(Z){C=[6,Z],ue=0}finally{ie=q=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}})([B,k])}}},J=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],le=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let se=(function(){function ne(Q){this._element=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this._element.setAttribute(\"width\",String(Q.width)),this._element.setAttribute(\"height\",String(Q.height)),this._defs=document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),this._element.appendChild(this._defs),this._options=Q}return Object.defineProperty(ne.prototype,\"width\",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,\"height\",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),ne.prototype.getElement=function(){return this._element},ne.prototype.drawQR=function(Q){return G(this,void 0,void 0,(function(){var ie,ue,q,Ee,we,_e,B,k,C,Z,X=this;return ee(this,(function(ae){switch(ae.label){case 0:return ie=Q.getModuleCount(),ue=Math.min(this._options.width,this._options.height)-2*this._options.margin,q=this._options.shape===D?ue/Math.sqrt(2):ue,Ee=Math.floor(q/ie),we={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=Q,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ae.sent(),!this._image)return[2];_e=this._options,B=_e.imageOptions,k=_e.qrOptions,C=B.imageSize*y[k.errorCorrectionLevel],Z=Math.floor(C*ie*ie),we=(function(de){var me=de.originalHeight,Pe=de.originalWidth,De=de.maxHiddenDots,Re=de.maxHiddenAxisDots,qe=de.dotSize,et={x:0,y:0},ot={x:0,y:0};if(me<=0||Pe<=0||De<=0||qe<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var Qe=me/Pe;return et.x=Math.floor(Math.sqrt(De/Qe)),et.x<=0&&(et.x=1),Re&&Re<et.x&&(et.x=Re),et.x%2==0&&et.x--,ot.x=et.x*qe,et.y=1+2*Math.ceil((et.x*Qe-1)/2),ot.y=Math.round(ot.x*Qe),(et.y*et.x>De||Re&&Re<et.y)&&(Re&&Re<et.y?(et.y=Re,et.y%2==0&&et.x--):et.y-=2,ot.y=et.y*qe,et.x=1+2*Math.ceil((et.y/Qe-1)/2),ot.x=Math.round(ot.y/Qe)),{height:ot.y,width:ot.x,hideYDots:et.y,hideXDots:et.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Z,maxHiddenAxisDots:ie-14,dotSize:Ee}),ae.label=2;case 2:return this.drawBackground(),this.drawDots((function(de,me){var Pe,De,Re,qe,et,ot;return!(X._options.imageOptions.hideBackgroundDots&&de>=(ie-we.hideXDots)/2&&de<(ie+we.hideXDots)/2&&me>=(ie-we.hideYDots)/2&&me<(ie+we.hideYDots)/2||!((Pe=J[de])===null||Pe===void 0)&&Pe[me]||!((De=J[de-ie+7])===null||De===void 0)&&De[me]||!((Re=J[de])===null||Re===void 0)&&Re[me-ie+7]||!((qe=le[de])===null||qe===void 0)&&qe[me]||!((et=le[de-ie+7])===null||et===void 0)&&et[me]||!((ot=le[de])===null||ot===void 0)&&ot[me-ie+7])})),this.drawCorners(),this._options.image?[4,this.drawImage({width:we.width,height:we.height,count:ie,dotSize:Ee})]:[3,4];case 3:ae.sent(),ae.label=4;case 4:return[2]}}))}))},ne.prototype.drawBackground=function(){var Q,ie,ue,q=this._element,Ee=this._options;if(q){var we=(Q=Ee.backgroundOptions)===null||Q===void 0?void 0:Q.gradient,_e=(ie=Ee.backgroundOptions)===null||ie===void 0?void 0:ie.color;if((we||_e)&&this._createColor({options:we,color:_e,additionalRotation:0,x:0,y:0,height:Ee.height,width:Ee.width,name:\"background-color\"}),(ue=Ee.backgroundOptions)===null||ue===void 0?void 0:ue.round){var B=Math.min(Ee.width,Ee.height),k=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");this._backgroundClipPath=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\"),this._backgroundClipPath.setAttribute(\"id\",\"clip-path-background-color\"),this._defs.appendChild(this._backgroundClipPath),k.setAttribute(\"x\",String((Ee.width-B)/2)),k.setAttribute(\"y\",String((Ee.height-B)/2)),k.setAttribute(\"width\",String(B)),k.setAttribute(\"height\",String(B)),k.setAttribute(\"rx\",String(B/2*Ee.backgroundOptions.round)),this._backgroundClipPath.appendChild(k)}}},ne.prototype.drawDots=function(Q){var ie,ue,q=this;if(!this._qr)throw\"QR code is not defined\";var Ee=this._options,we=this._qr.getModuleCount();if(we>Ee.width||we>Ee.height)throw\"The canvas is too small.\";var _e=Math.min(Ee.width,Ee.height)-2*Ee.margin,B=Ee.shape===D?_e/Math.sqrt(2):_e,k=Math.floor(B/we),C=Math.floor((Ee.width-we*k)/2),Z=Math.floor((Ee.height-we*k)/2),X=new T({svg:this._element,type:Ee.dotsOptions.type});this._dotsClipPath=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\"),this._dotsClipPath.setAttribute(\"id\",\"clip-path-dot-color\"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(ie=Ee.dotsOptions)===null||ie===void 0?void 0:ie.gradient,color:Ee.dotsOptions.color,additionalRotation:0,x:0,y:0,height:Ee.height,width:Ee.width,name:\"dot-color\"});for(var ae=function(Vt){for(var Bt=function(Yt){return Q&&!Q(Vt,Yt)?\"continue\":!((ue=de._qr)===null||ue===void 0)&&ue.isDark(Vt,Yt)?(X.draw(C+Vt*k,Z+Yt*k,k,(function(hn,Pn){return!(Vt+hn<0||Yt+Pn<0||Vt+hn>=we||Yt+Pn>=we)&&!(Q&&!Q(Vt+hn,Yt+Pn))&&!!q._qr&&q._qr.isDark(Vt+hn,Yt+Pn)})),void(X._element&&de._dotsClipPath&&de._dotsClipPath.appendChild(X._element))):\"continue\"},nn=0;nn<we;nn++)Bt(nn)},de=this,me=0;me<we;me++)ae(me);if(Ee.shape===D){var Pe=Math.floor((_e/k-we)/2),De=we+2*Pe,Re=C-Pe*k,qe=Z-Pe*k,et=[],ot=Math.floor(De/2);for(me=0;me<De;me++){et[me]=[];for(var Qe=0;Qe<De;Qe++)me>=Pe-1&&me<=De-Pe&&Qe>=Pe-1&&Qe<=De-Pe||Math.sqrt((me-ot)*(me-ot)+(Qe-ot)*(Qe-ot))>ot?et[me][Qe]=0:et[me][Qe]=this._qr.isDark(Qe-2*Pe<0?Qe:Qe>=we?Qe-2*Pe:Qe-Pe,me-2*Pe<0?me:me>=we?me-2*Pe:me-Pe)?1:0}var xt=function(Vt){for(var Bt=function(Yt){if(!et[Vt][Yt])return\"continue\";X.draw(Re+Vt*k,qe+Yt*k,k,(function(hn,Pn){var Mn;return!!(!((Mn=et[Vt+hn])===null||Mn===void 0)&&Mn[Yt+Pn])})),X._element&&Wt._dotsClipPath&&Wt._dotsClipPath.appendChild(X._element)},nn=0;nn<De;nn++)Bt(nn)},Wt=this;for(me=0;me<De;me++)xt(me)}},ne.prototype.drawCorners=function(){var Q=this;if(!this._qr)throw\"QR code is not defined\";var ie=this._element,ue=this._options;if(!ie)throw\"Element code is not defined\";var q=this._qr.getModuleCount(),Ee=Math.min(ue.width,ue.height)-2*ue.margin,we=ue.shape===D?Ee/Math.sqrt(2):Ee,_e=Math.floor(we/q),B=7*_e,k=3*_e,C=Math.floor((ue.width-q*_e)/2),Z=Math.floor((ue.height-q*_e)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(X){var ae,de,me,Pe,De,Re,qe,et,ot,Qe,xt,Wt,Vt=X[0],Bt=X[1],nn=X[2],Yt=C+Vt*_e*(q-7),hn=Z+Bt*_e*(q-7),Pn=Q._dotsClipPath,Mn=Q._dotsClipPath;if((!((ae=ue.cornersSquareOptions)===null||ae===void 0)&&ae.gradient||!((de=ue.cornersSquareOptions)===null||de===void 0)&&de.color)&&((Pn=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\")).setAttribute(\"id\",\"clip-path-corners-square-color-\"+Vt+\"-\"+Bt),Q._defs.appendChild(Pn),Q._cornersSquareClipPath=Q._cornersDotClipPath=Mn=Pn,Q._createColor({options:(me=ue.cornersSquareOptions)===null||me===void 0?void 0:me.gradient,color:(Pe=ue.cornersSquareOptions)===null||Pe===void 0?void 0:Pe.color,additionalRotation:nn,x:Yt,y:hn,height:B,width:B,name:\"corners-square-color-\"+Vt+\"-\"+Bt})),(De=ue.cornersSquareOptions)===null||De===void 0?void 0:De.type){var Un=new K({svg:Q._element,type:ue.cornersSquareOptions.type});Un.draw(Yt,hn,B,nn),Un._element&&Pn&&Pn.appendChild(Un._element)}else for(var Wn=new T({svg:Q._element,type:ue.dotsOptions.type}),Kn=function(tn){for(var pn=function(zn){if(!(!((Re=J[tn])===null||Re===void 0)&&Re[zn]))return\"continue\";Wn.draw(Yt+tn*_e,hn+zn*_e,_e,(function(_n,Dn){var _r;return!!(!((_r=J[tn+_n])===null||_r===void 0)&&_r[zn+Dn])})),Wn._element&&Pn&&Pn.appendChild(Wn._element)},kn=0;kn<J[tn].length;kn++)pn(kn)},Se=0;Se<J.length;Se++)Kn(Se);if((!((qe=ue.cornersDotOptions)===null||qe===void 0)&&qe.gradient||!((et=ue.cornersDotOptions)===null||et===void 0)&&et.color)&&((Mn=document.createElementNS(\"http://www.w3.org/2000/svg\",\"clipPath\")).setAttribute(\"id\",\"clip-path-corners-dot-color-\"+Vt+\"-\"+Bt),Q._defs.appendChild(Mn),Q._cornersDotClipPath=Mn,Q._createColor({options:(ot=ue.cornersDotOptions)===null||ot===void 0?void 0:ot.gradient,color:(Qe=ue.cornersDotOptions)===null||Qe===void 0?void 0:Qe.color,additionalRotation:nn,x:Yt+2*_e,y:hn+2*_e,height:k,width:k,name:\"corners-dot-color-\"+Vt+\"-\"+Bt})),(xt=ue.cornersDotOptions)===null||xt===void 0?void 0:xt.type){var it=new V({svg:Q._element,type:ue.cornersDotOptions.type});it.draw(Yt+2*_e,hn+2*_e,k,nn),it._element&&Mn&&Mn.appendChild(it._element)}else{Wn=new T({svg:Q._element,type:ue.dotsOptions.type});var Nt=function(tn){for(var pn=function(zn){if(!(!((Wt=le[tn])===null||Wt===void 0)&&Wt[zn]))return\"continue\";Wn.draw(Yt+tn*_e,hn+zn*_e,_e,(function(_n,Dn){var _r;return!!(!((_r=le[tn+_n])===null||_r===void 0)&&_r[zn+Dn])})),Wn._element&&Mn&&Mn.appendChild(Wn._element)},kn=0;kn<le[tn].length;kn++)pn(kn)};for(Se=0;Se<le.length;Se++)Nt(Se)}}))},ne.prototype.loadImage=function(){var Q=this;return new Promise((function(ie,ue){var q=Q._options,Ee=new Image;if(!q.image)return ue(\"Image is not defined\");typeof q.imageOptions.crossOrigin==\"string\"&&(Ee.crossOrigin=q.imageOptions.crossOrigin),Q._image=Ee,Ee.onload=function(){ie()},Ee.src=q.image}))},ne.prototype.drawImage=function(Q){var ie=Q.width,ue=Q.height,q=Q.count,Ee=Q.dotSize;return G(this,void 0,void 0,(function(){var we,_e,B,k,C,Z,X,ae,de;return ee(this,(function(me){switch(me.label){case 0:return we=this._options,_e=Math.floor((we.width-q*Ee)/2),B=Math.floor((we.height-q*Ee)/2),k=_e+we.imageOptions.margin+(q*Ee-ie)/2,C=B+we.imageOptions.margin+(q*Ee-ue)/2,Z=ie-2*we.imageOptions.margin,X=ue-2*we.imageOptions.margin,(ae=document.createElementNS(\"http://www.w3.org/2000/svg\",\"image\")).setAttribute(\"x\",String(k)),ae.setAttribute(\"y\",String(C)),ae.setAttribute(\"width\",Z+\"px\"),ae.setAttribute(\"height\",X+\"px\"),[4,g(we.image||\"\")];case 1:return de=me.sent(),ae.setAttribute(\"href\",de||\"\"),this._element.appendChild(ae),[2]}}))}))},ne.prototype._createColor=function(Q){var ie=Q.options,ue=Q.color,q=Q.additionalRotation,Ee=Q.x,we=Q.y,_e=Q.height,B=Q.width,k=Q.name,C=B>_e?B:_e,Z=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");if(Z.setAttribute(\"x\",String(Ee)),Z.setAttribute(\"y\",String(we)),Z.setAttribute(\"height\",String(_e)),Z.setAttribute(\"width\",String(B)),Z.setAttribute(\"clip-path\",\"url(\\'#clip-path-\"+k+\"\\')\"),ie){var X;if(ie.type===\"radial\")(X=document.createElementNS(\"http://www.w3.org/2000/svg\",\"radialGradient\")).setAttribute(\"id\",k),X.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),X.setAttribute(\"fx\",String(Ee+B/2)),X.setAttribute(\"fy\",String(we+_e/2)),X.setAttribute(\"cx\",String(Ee+B/2)),X.setAttribute(\"cy\",String(we+_e/2)),X.setAttribute(\"r\",String(C/2));else{var ae=((ie.rotation||0)+q)%(2*Math.PI),de=(ae+2*Math.PI)%(2*Math.PI),me=Ee+B/2,Pe=we+_e/2,De=Ee+B/2,Re=we+_e/2;de>=0&&de<=.25*Math.PI||de>1.75*Math.PI&&de<=2*Math.PI?(me-=B/2,Pe-=_e/2*Math.tan(ae),De+=B/2,Re+=_e/2*Math.tan(ae)):de>.25*Math.PI&&de<=.75*Math.PI?(Pe-=_e/2,me-=B/2/Math.tan(ae),Re+=_e/2,De+=B/2/Math.tan(ae)):de>.75*Math.PI&&de<=1.25*Math.PI?(me+=B/2,Pe+=_e/2*Math.tan(ae),De-=B/2,Re-=_e/2*Math.tan(ae)):de>1.25*Math.PI&&de<=1.75*Math.PI&&(Pe+=_e/2,me+=B/2/Math.tan(ae),Re-=_e/2,De-=B/2/Math.tan(ae)),(X=document.createElementNS(\"http://www.w3.org/2000/svg\",\"linearGradient\")).setAttribute(\"id\",k),X.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),X.setAttribute(\"x1\",String(Math.round(me))),X.setAttribute(\"y1\",String(Math.round(Pe))),X.setAttribute(\"x2\",String(Math.round(De))),X.setAttribute(\"y2\",String(Math.round(Re)))}ie.colorStops.forEach((function(qe){var et=qe.offset,ot=qe.color,Qe=document.createElementNS(\"http://www.w3.org/2000/svg\",\"stop\");Qe.setAttribute(\"offset\",100*et+\"%\"),Qe.setAttribute(\"stop-color\",ot),X.appendChild(Qe)})),Z.setAttribute(\"fill\",\"url(\\'#\"+k+\"\\')\"),this._defs.appendChild(X)}else ue&&Z.setAttribute(\"fill\",ue);this._element.appendChild(Z)},ne})(),te=\"canvas\";for(var S={},_=0;_<=40;_++)S[_]=_;let P={type:te,shape:\"square\",width:300,height:300,data:\"\",margin:0,qrOptions:{typeNumber:S[0],mode:void 0,errorCorrectionLevel:\"Q\"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:\"square\",color:\"#000\"},backgroundOptions:{round:0,color:\"#fff\"}};var z=function(){return(z=Object.assign||function(ne){for(var Q,ie=1,ue=arguments.length;ie<ue;ie++)for(var q in Q=arguments[ie])Object.prototype.hasOwnProperty.call(Q,q)&&(ne[q]=Q[q]);return ne}).apply(this,arguments)};function Y(ne){var Q=z({},ne);if(!Q.colorStops||!Q.colorStops.length)throw\"Field \\'colorStops\\' is required in gradient\";return Q.rotation?Q.rotation=Number(Q.rotation):Q.rotation=0,Q.colorStops=Q.colorStops.map((function(ie){return z(z({},ie),{offset:Number(ie.offset)})})),Q}function L(ne){var Q=z({},ne);return Q.width=Number(Q.width),Q.height=Number(Q.height),Q.margin=Number(Q.margin),Q.imageOptions=z(z({},Q.imageOptions),{hideBackgroundDots:!!Q.imageOptions.hideBackgroundDots,imageSize:Number(Q.imageOptions.imageSize),margin:Number(Q.imageOptions.margin)}),Q.margin>Math.min(Q.width,Q.height)&&(Q.margin=Math.min(Q.width,Q.height)),Q.dotsOptions=z({},Q.dotsOptions),Q.dotsOptions.gradient&&(Q.dotsOptions.gradient=Y(Q.dotsOptions.gradient)),Q.cornersSquareOptions&&(Q.cornersSquareOptions=z({},Q.cornersSquareOptions),Q.cornersSquareOptions.gradient&&(Q.cornersSquareOptions.gradient=Y(Q.cornersSquareOptions.gradient))),Q.cornersDotOptions&&(Q.cornersDotOptions=z({},Q.cornersDotOptions),Q.cornersDotOptions.gradient&&(Q.cornersDotOptions.gradient=Y(Q.cornersDotOptions.gradient))),Q.backgroundOptions&&(Q.backgroundOptions=z({},Q.backgroundOptions),Q.backgroundOptions.gradient&&(Q.backgroundOptions.gradient=Y(Q.backgroundOptions.gradient))),Q}var U=a(192),W=a.n(U),w=function(ne,Q,ie,ue){return new(ie||(ie=Promise))((function(q,Ee){function we(k){try{B(ue.next(k))}catch(C){Ee(C)}}function _e(k){try{B(ue.throw(k))}catch(C){Ee(C)}}function B(k){var C;k.done?q(k.value):(C=k.value,C instanceof ie?C:new ie((function(Z){Z(C)}))).then(we,_e)}B((ue=ue.apply(ne,Q||[])).next())}))},I=function(ne,Q){var ie,ue,q,Ee,we={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return Ee={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol==\"function\"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function _e(B){return function(k){return(function(C){if(ie)throw new TypeError(\"Generator is already executing.\");for(;we;)try{if(ie=1,ue&&(q=2&C[0]?ue.return:C[0]?ue.throw||((q=ue.return)&&q.call(ue),0):ue.next)&&!(q=q.call(ue,C[1])).done)return q;switch(ue=0,q&&(C=[2&C[0],q.value]),C[0]){case 0:case 1:q=C;break;case 4:return we.label++,{value:C[1],done:!1};case 5:we.label++,ue=C[1],C=[0];continue;case 7:C=we.ops.pop(),we.trys.pop();continue;default:if(!((q=(q=we.trys).length>0&&q[q.length-1])||C[0]!==6&&C[0]!==2)){we=0;continue}if(C[0]===3&&(!q||C[1]>q[0]&&C[1]<q[3])){we.label=C[1];break}if(C[0]===6&&we.label<q[1]){we.label=q[1],q=C;break}if(q&&we.label<q[2]){we.label=q[2],we.ops.push(C);break}q[2]&&we.ops.pop(),we.trys.pop();continue}C=Q.call(ne,we)}catch(Z){C=[6,Z],ue=0}finally{ie=q=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}})([B,k])}}};let ye=(function(){function ne(Q){this._options=Q?L(p(P,Q)):P,this.update()}return ne._clearContainer=function(Q){Q&&(Q.innerHTML=\"\")},ne.prototype._setupSvg=function(){var Q=this;if(this._qr){var ie=new se(this._options);this._svg=ie.getElement(),this._svgDrawingPromise=ie.drawQR(this._qr).then((function(){var ue;Q._svg&&((ue=Q._extension)===null||ue===void 0||ue.call(Q,ie.getElement(),Q._options))}))}},ne.prototype._setupCanvas=function(){var Q,ie=this;this._qr&&(this._canvas=document.createElement(\"canvas\"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(Q=this._svgDrawingPromise)===null||Q===void 0?void 0:Q.then((function(){if(ie._svg){var ue=ie._svg,q=new XMLSerializer().serializeToString(ue),Ee=\"data:image/svg+xml;base64,\"+btoa(q),we=new Image;return new Promise((function(_e){we.onload=function(){var B,k;(k=(B=ie._canvas)===null||B===void 0?void 0:B.getContext(\"2d\"))===null||k===void 0||k.drawImage(we,0,0),_e()},we.src=Ee}))}})))},ne.prototype._getElement=function(Q){return Q===void 0&&(Q=\"png\"),w(this,void 0,void 0,(function(){return I(this,(function(ie){switch(ie.label){case 0:if(!this._qr)throw\"QR code is empty\";return Q.toLowerCase()!==\"svg\"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return ie.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return ie.sent(),[2,this._canvas]}}))}))},ne.prototype.update=function(Q){ne._clearContainer(this._container),this._options=Q?L(p(this._options,Q)):this._options,this._options.data&&(this._qr=W()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(ie){switch(!0){case/^[0-9]*$/.test(ie):return\"Numeric\";case/^[0-9A-Z $%*+\\\\-./:]*$/.test(ie):return\"Alphanumeric\";default:return\"Byte\"}})(this._options.data)),this._qr.make(),this._options.type===te?this._setupCanvas():this._setupSvg(),this.append(this._container))},ne.prototype.append=function(Q){if(Q){if(typeof Q.appendChild!=\"function\")throw\"Container should be a single DOM node\";this._options.type===te?this._canvas&&Q.appendChild(this._canvas):this._svg&&Q.appendChild(this._svg),this._container=Q}},ne.prototype.applyExtension=function(Q){if(!Q)throw\"Extension function should be defined.\";this._extension=Q,this.update()},ne.prototype.deleteExtension=function(){this._extension=void 0,this.update()},ne.prototype.getRawData=function(Q){return Q===void 0&&(Q=\"png\"),w(this,void 0,void 0,(function(){var ie,ue,q;return I(this,(function(Ee){switch(Ee.label){case 0:if(!this._qr)throw\"QR code is empty\";return[4,this._getElement(Q)];case 1:return(ie=Ee.sent())?Q.toLowerCase()===\"svg\"?(ue=new XMLSerializer,q=ue.serializeToString(ie),[2,new Blob([`<?xml version=\"1.0\" standalone=\"no\"?>\\\\r\\n`+q],{type:\"image/svg+xml\"})]):[2,new Promise((function(we){return ie.toBlob(we,\"image/\"+Q,1)}))]:[2,null]}}))}))},ne.prototype.download=function(Q){return w(this,void 0,void 0,(function(){var ie,ue,q,Ee,we;return I(this,(function(_e){switch(_e.label){case 0:if(!this._qr)throw\"QR code is empty\";return ie=\"png\",ue=\"qr\",typeof Q==\"string\"?(ie=Q,console.warn(\"Extension is deprecated as argument for \\'download\\' method, please pass object { name: \\'...\\', extension: \\'...\\' } as argument\")):typeof Q==\"object\"&&Q!==null&&(Q.name&&(ue=Q.name),Q.extension&&(ie=Q.extension)),[4,this._getElement(ie)];case 1:return(q=_e.sent())?(ie.toLowerCase()===\"svg\"?(Ee=new XMLSerializer,we=`<?xml version=\"1.0\" standalone=\"no\"?>\\\\r\\n`+(we=Ee.serializeToString(q)),m(\"data:image/svg+xml;charset=utf-8,\"+encodeURIComponent(we),ue+\".svg\")):m(q.toDataURL(\"image/\"+ie),ue+\".\"+ie),[2]):[2]}}))}))},ne})()}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.n=r=>{var o=r&&r.__esModule?()=>r.default:()=>r;return n.d(o,{a:o}),o},n.d=(r,o)=>{for(var a in o)n.o(o,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:o[a]})},n.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),n(676)})().default}))});var Boe=Qr((Mct,mk)=>{u();typeof navigator<\"u\"&&(function(t,e){typeof define==\"function\"&&define.amd?define(function(){return e(t)}):typeof mk==\"object\"&&mk.exports?mk.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)})(window||{},function(t){\"use strict\";var e=\"http://www.w3.org/2000/svg\",n=\"\",r=-999999,o=!1,a=!0,c=\"\",l,f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),p={},m,g=Math.pow,y=Math.sqrt,A=Math.floor,T=Math.max,R=Math.min,K={};(function(){var b=[\"abs\",\"acos\",\"acosh\",\"asin\",\"asinh\",\"atan\",\"atanh\",\"atan2\",\"ceil\",\"cbrt\",\"expm1\",\"clz32\",\"cos\",\"cosh\",\"exp\",\"floor\",\"fround\",\"hypot\",\"imul\",\"log\",\"log1p\",\"log2\",\"log10\",\"max\",\"min\",\"pow\",\"random\",\"round\",\"sign\",\"sin\",\"sinh\",\"sqrt\",\"tan\",\"tanh\",\"trunc\",\"E\",\"LN10\",\"LN2\",\"LOG10E\",\"LOG2E\",\"PI\",\"SQRT1_2\",\"SQRT2\"],F,N=b.length;for(F=0;F<N;F+=1)K[b[F]]=Math[b[F]]})();function O(){return{}}K.random=Math.random,K.abs=function(b){var F=typeof b;if(F===\"object\"&&b.length){var N=ue(b.length),ce,ve=b.length;for(ce=0;ce<ve;ce+=1)N[ce]=Math.abs(b[ce]);return N}return Math.abs(b)};var V=150,D=Math.PI/180,G=.5519;function ee(b){b?m=Math.round:m=function(F){return F}}ee(!1);function J(b){b.style.position=\"absolute\",b.style.top=0,b.style.left=0,b.style.display=\"block\",b.style.transformOrigin=\"0 0\",b.style.webkitTransformOrigin=\"0 0\",b.style.backfaceVisibility=\"visible\",b.style.webkitBackfaceVisibility=\"visible\",b.style.transformStyle=\"preserve-3d\",b.style.webkitTransformStyle=\"preserve-3d\",b.style.mozTransformStyle=\"preserve-3d\"}function le(b,F,N,ce){this.type=b,this.currentTime=F,this.totalTime=N,this.direction=ce<0?-1:1}function se(b,F){this.type=b,this.direction=F<0?-1:1}function te(b,F,N,ce){this.type=b,this.currentLoop=N,this.totalLoops=F,this.direction=ce<0?-1:1}function S(b,F,N){this.type=b,this.firstFrame=F,this.totalFrames=N}function _(b,F){this.type=b,this.target=F}function P(b,F){this.type=\"renderFrameError\",this.nativeError=b,this.currentTime=F}function z(b){this.type=\"configError\",this.nativeError=b}function Y(b,F){this.type=b,this.nativeError=F}var L=(function(){var b=0;return function(){return b+=1,c+\"__lottie_element_\"+b}})();function U(b,F,N){var ce,ve,pe,Ge,ht,Xe,It,kt;switch(Ge=Math.floor(b*6),ht=b*6-Ge,Xe=N*(1-F),It=N*(1-ht*F),kt=N*(1-(1-ht)*F),Ge%6){case 0:ce=N,ve=kt,pe=Xe;break;case 1:ce=It,ve=N,pe=Xe;break;case 2:ce=Xe,ve=N,pe=kt;break;case 3:ce=Xe,ve=It,pe=N;break;case 4:ce=kt,ve=Xe,pe=N;break;case 5:ce=N,ve=Xe,pe=It;break;default:break}return[ce,ve,pe]}function W(b,F,N){var ce=Math.max(b,F,N),ve=Math.min(b,F,N),pe=ce-ve,Ge,ht=ce===0?0:pe/ce,Xe=ce/255;switch(ce){case ve:Ge=0;break;case b:Ge=F-N+pe*(F<N?6:0),Ge/=6*pe;break;case F:Ge=N-b+pe*2,Ge/=6*pe;break;case N:Ge=b-F+pe*4,Ge/=6*pe;break;default:break}return[Ge,ht,Xe]}function w(b,F){var N=W(b[0]*255,b[1]*255,b[2]*255);return N[1]+=F,N[1]>1?N[1]=1:N[1]<=0&&(N[1]=0),U(N[0],N[1],N[2])}function I(b,F){var N=W(b[0]*255,b[1]*255,b[2]*255);return N[2]+=F,N[2]>1?N[2]=1:N[2]<0&&(N[2]=0),U(N[0],N[1],N[2])}function ye(b,F){var N=W(b[0]*255,b[1]*255,b[2]*255);return N[0]+=F/360,N[0]>1?N[0]-=1:N[0]<0&&(N[0]+=1),U(N[0],N[1],N[2])}var ne=(function(){var b=[],F,N;for(F=0;F<256;F+=1)N=F.toString(16),b[F]=N.length===1?\"0\"+N:N;return function(ce,ve,pe){return ce<0&&(ce=0),ve<0&&(ve=0),pe<0&&(pe=0),\"#\"+b[ce]+b[ve]+b[pe]}})();function Q(){}Q.prototype={triggerEvent:function(b,F){if(this._cbs[b])for(var N=this._cbs[b],ce=0;ce<N.length;ce+=1)N[ce](F)},addEventListener:function(b,F){return this._cbs[b]||(this._cbs[b]=[]),this._cbs[b].push(F),function(){this.removeEventListener(b,F)}.bind(this)},removeEventListener:function(b,F){if(!F)this._cbs[b]=null;else if(this._cbs[b]){for(var N=0,ce=this._cbs[b].length;N<ce;)this._cbs[b][N]===F&&(this._cbs[b].splice(N,1),N-=1,ce-=1),N+=1;this._cbs[b].length||(this._cbs[b]=null)}}};var ie=(function(){function b(N,ce){var ve=0,pe=[],Ge;switch(N){case\"int16\":case\"uint8c\":Ge=1;break;default:Ge=1.1;break}for(ve=0;ve<ce;ve+=1)pe.push(Ge);return pe}function F(N,ce){return N===\"float32\"?new Float32Array(ce):N===\"int16\"?new Int16Array(ce):N===\"uint8c\"?new Uint8ClampedArray(ce):b(N,ce)}return typeof Uint8ClampedArray==\"function\"&&typeof Float32Array==\"function\"?F:b})();function ue(b){return Array.apply(null,{length:b})}function q(b){return document.createElementNS(e,b)}function Ee(b){return document.createElement(b)}function we(){}we.prototype={addDynamicProperty:function(b){this.dynamicProperties.indexOf(b)===-1&&(this.dynamicProperties.push(b),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var b,F=this.dynamicProperties.length;for(b=0;b<F;b+=1)this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(b){this.container=b,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var _e=(function(){var b={0:\"source-over\",1:\"multiply\",2:\"screen\",3:\"overlay\",4:\"darken\",5:\"lighten\",6:\"color-dodge\",7:\"color-burn\",8:\"hard-light\",9:\"soft-light\",10:\"difference\",11:\"exclusion\",12:\"hue\",13:\"saturation\",14:\"color\",15:\"luminosity\"};return function(F){return b[F]||\"\"}})(),B={1:\"butt\",2:\"round\",3:\"square\"},k={1:\"miter\",2:\"round\",3:\"bevel\"};var C=(function(){var b=Math.cos,F=Math.sin,N=Math.tan,ce=Math.round;function ve(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function pe(Ue){if(Ue===0)return this;var Je=b(Ue),jt=F(Ue);return this._t(Je,-jt,0,0,jt,Je,0,0,0,0,1,0,0,0,0,1)}function Ge(Ue){if(Ue===0)return this;var Je=b(Ue),jt=F(Ue);return this._t(1,0,0,0,0,Je,-jt,0,0,jt,Je,0,0,0,0,1)}function ht(Ue){if(Ue===0)return this;var Je=b(Ue),jt=F(Ue);return this._t(Je,0,jt,0,0,1,0,0,-jt,0,Je,0,0,0,0,1)}function Xe(Ue){if(Ue===0)return this;var Je=b(Ue),jt=F(Ue);return this._t(Je,-jt,0,0,jt,Je,0,0,0,0,1,0,0,0,0,1)}function It(Ue,Je){return this._t(1,Je,Ue,1,0,0)}function kt(Ue,Je){return this.shear(N(Ue),N(Je))}function ut(Ue,Je){var jt=b(Je),wn=F(Je);return this._t(jt,wn,0,0,-wn,jt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,N(Ue),1,0,0,0,0,1,0,0,0,0,1)._t(jt,-wn,0,0,wn,jt,0,0,0,0,1,0,0,0,0,1)}function st(Ue,Je,jt){return!jt&&jt!==0&&(jt=1),Ue===1&&Je===1&&jt===1?this:this._t(Ue,0,0,0,0,Je,0,0,0,0,jt,0,0,0,0,1)}function bt(Ue,Je,jt,wn,dn,Pr,ro,Gr,Yi,zi,Ka,Ga,ia,Zi,Ti,ba){return this.props[0]=Ue,this.props[1]=Je,this.props[2]=jt,this.props[3]=wn,this.props[4]=dn,this.props[5]=Pr,this.props[6]=ro,this.props[7]=Gr,this.props[8]=Yi,this.props[9]=zi,this.props[10]=Ka,this.props[11]=Ga,this.props[12]=ia,this.props[13]=Zi,this.props[14]=Ti,this.props[15]=ba,this}function Ot(Ue,Je,jt){return jt=jt||0,Ue!==0||Je!==0||jt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Ue,Je,jt,1):this}function Mt(Ue,Je,jt,wn,dn,Pr,ro,Gr,Yi,zi,Ka,Ga,ia,Zi,Ti,ba){var nr=this.props;if(Ue===1&&Je===0&&jt===0&&wn===0&&dn===0&&Pr===1&&ro===0&&Gr===0&&Yi===0&&zi===0&&Ka===1&&Ga===0)return nr[12]=nr[12]*Ue+nr[15]*ia,nr[13]=nr[13]*Pr+nr[15]*Zi,nr[14]=nr[14]*Ka+nr[15]*Ti,nr[15]*=ba,this._identityCalculated=!1,this;var di=nr[0],lc=nr[1],gs=nr[2],Dc=nr[3],Fc=nr[4],ul=nr[5],dl=nr[6],ys=nr[7],fl=nr[8],_a=nr[9],uc=nr[10],pl=nr[11],vs=nr[12],Ds=nr[13],rh=nr[14],T0=nr[15];return nr[0]=di*Ue+lc*dn+gs*Yi+Dc*ia,nr[1]=di*Je+lc*Pr+gs*zi+Dc*Zi,nr[2]=di*jt+lc*ro+gs*Ka+Dc*Ti,nr[3]=di*wn+lc*Gr+gs*Ga+Dc*ba,nr[4]=Fc*Ue+ul*dn+dl*Yi+ys*ia,nr[5]=Fc*Je+ul*Pr+dl*zi+ys*Zi,nr[6]=Fc*jt+ul*ro+dl*Ka+ys*Ti,nr[7]=Fc*wn+ul*Gr+dl*Ga+ys*ba,nr[8]=fl*Ue+_a*dn+uc*Yi+pl*ia,nr[9]=fl*Je+_a*Pr+uc*zi+pl*Zi,nr[10]=fl*jt+_a*ro+uc*Ka+pl*Ti,nr[11]=fl*wn+_a*Gr+uc*Ga+pl*ba,nr[12]=vs*Ue+Ds*dn+rh*Yi+T0*ia,nr[13]=vs*Je+Ds*Pr+rh*zi+T0*Zi,nr[14]=vs*jt+Ds*ro+rh*Ka+T0*Ti,nr[15]=vs*wn+Ds*Gr+rh*Ga+T0*ba,this._identityCalculated=!1,this}function gt(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function $e(Ue){for(var Je=0;Je<16;){if(Ue.props[Je]!==this.props[Je])return!1;Je+=1}return!0}function Me(Ue){var Je;for(Je=0;Je<16;Je+=1)Ue.props[Je]=this.props[Je];return Ue}function Ie(Ue){var Je;for(Je=0;Je<16;Je+=1)this.props[Je]=Ue[Je]}function Te(Ue,Je,jt){return{x:Ue*this.props[0]+Je*this.props[4]+jt*this.props[8]+this.props[12],y:Ue*this.props[1]+Je*this.props[5]+jt*this.props[9]+this.props[13],z:Ue*this.props[2]+Je*this.props[6]+jt*this.props[10]+this.props[14]}}function Oe(Ue,Je,jt){return Ue*this.props[0]+Je*this.props[4]+jt*this.props[8]+this.props[12]}function Ze(Ue,Je,jt){return Ue*this.props[1]+Je*this.props[5]+jt*this.props[9]+this.props[13]}function We(Ue,Je,jt){return Ue*this.props[2]+Je*this.props[6]+jt*this.props[10]+this.props[14]}function ct(){var Ue=this.props[0]*this.props[5]-this.props[1]*this.props[4],Je=this.props[5]/Ue,jt=-this.props[1]/Ue,wn=-this.props[4]/Ue,dn=this.props[0]/Ue,Pr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Ue,ro=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Ue,Gr=new C;return Gr.props[0]=Je,Gr.props[1]=jt,Gr.props[4]=wn,Gr.props[5]=dn,Gr.props[12]=Pr,Gr.props[13]=ro,Gr}function fn(Ue){var Je=this.getInverseMatrix();return Je.applyToPointArray(Ue[0],Ue[1],Ue[2]||0)}function Rn(Ue){var Je,jt=Ue.length,wn=[];for(Je=0;Je<jt;Je+=1)wn[Je]=fn(Ue[Je]);return wn}function On(Ue,Je,jt){var wn=ie(\"float32\",6);if(this.isIdentity())wn[0]=Ue[0],wn[1]=Ue[1],wn[2]=Je[0],wn[3]=Je[1],wn[4]=jt[0],wn[5]=jt[1];else{var dn=this.props[0],Pr=this.props[1],ro=this.props[4],Gr=this.props[5],Yi=this.props[12],zi=this.props[13];wn[0]=Ue[0]*dn+Ue[1]*ro+Yi,wn[1]=Ue[0]*Pr+Ue[1]*Gr+zi,wn[2]=Je[0]*dn+Je[1]*ro+Yi,wn[3]=Je[0]*Pr+Je[1]*Gr+zi,wn[4]=jt[0]*dn+jt[1]*ro+Yi,wn[5]=jt[0]*Pr+jt[1]*Gr+zi}return wn}function Ln(Ue,Je,jt){var wn;return this.isIdentity()?wn=[Ue,Je,jt]:wn=[Ue*this.props[0]+Je*this.props[4]+jt*this.props[8]+this.props[12],Ue*this.props[1]+Je*this.props[5]+jt*this.props[9]+this.props[13],Ue*this.props[2]+Je*this.props[6]+jt*this.props[10]+this.props[14]],wn}function un(Ue,Je){if(this.isIdentity())return Ue+\",\"+Je;var jt=this.props;return Math.round((Ue*jt[0]+Je*jt[4]+jt[12])*100)/100+\",\"+Math.round((Ue*jt[1]+Je*jt[5]+jt[13])*100)/100}function bn(){for(var Ue=0,Je=this.props,jt=\"matrix3d(\",wn=1e4;Ue<16;)jt+=ce(Je[Ue]*wn)/wn,jt+=Ue===15?\")\":\",\",Ue+=1;return jt}function mn(Ue){var Je=1e4;return Ue<1e-6&&Ue>0||Ue>-1e-6&&Ue<0?ce(Ue*Je)/Je:Ue}function Ye(){var Ue=this.props,Je=mn(Ue[0]),jt=mn(Ue[1]),wn=mn(Ue[4]),dn=mn(Ue[5]),Pr=mn(Ue[12]),ro=mn(Ue[13]);return\"matrix(\"+Je+\",\"+jt+\",\"+wn+\",\"+dn+\",\"+Pr+\",\"+ro+\")\"}return function(){this.reset=ve,this.rotate=pe,this.rotateX=Ge,this.rotateY=ht,this.rotateZ=Xe,this.skew=kt,this.skewFromAxis=ut,this.shear=It,this.scale=st,this.setTransform=bt,this.translate=Ot,this.transform=Mt,this.applyToPoint=Te,this.applyToX=Oe,this.applyToY=Ze,this.applyToZ=We,this.applyToPointArray=Ln,this.applyToTriplePoints=On,this.applyToPointStringified=un,this.toCSS=bn,this.to2dCSS=Ye,this.clone=Me,this.cloneFromProps=Ie,this.equals=$e,this.inversePoints=Rn,this.inversePoint=fn,this.getInverseMatrix=ct,this._t=this.transform,this.isIdentity=gt,this._identity=!0,this._identityCalculated=!1,this.props=ie(\"float32\",16),this.reset()}})();(function(b,F){var N=this,ce=256,ve=6,pe=52,Ge=\"random\",ht=F.pow(ce,ve),Xe=F.pow(2,pe),It=Xe*2,kt=ce-1,ut;function st(Ie,Te,Oe){var Ze=[];Te=Te===!0?{entropy:!0}:Te||{};var We=gt(Mt(Te.entropy?[Ie,Me(b)]:Ie===null?$e():Ie,3),Ze),ct=new bt(Ze),fn=function(){for(var Rn=ct.g(ve),On=ht,Ln=0;Rn<Xe;)Rn=(Rn+Ln)*ce,On*=ce,Ln=ct.g(1);for(;Rn>=It;)Rn/=2,On/=2,Ln>>>=1;return(Rn+Ln)/On};return fn.int32=function(){return ct.g(4)|0},fn.quick=function(){return ct.g(4)/4294967296},fn.double=fn,gt(Me(ct.S),b),(Te.pass||Oe||function(Rn,On,Ln,un){return un&&(un.S&&Ot(un,ct),Rn.state=function(){return Ot(ct,{})}),Ln?(F[Ge]=Rn,On):Rn})(fn,We,\"global\"in Te?Te.global:this==F,Te.state)}F[\"seed\"+Ge]=st;function bt(Ie){var Te,Oe=Ie.length,Ze=this,We=0,ct=Ze.i=Ze.j=0,fn=Ze.S=[];for(Oe||(Ie=[Oe++]);We<ce;)fn[We]=We++;for(We=0;We<ce;We++)fn[We]=fn[ct=kt&ct+Ie[We%Oe]+(Te=fn[We])],fn[ct]=Te;Ze.g=function(Rn){for(var On,Ln=0,un=Ze.i,bn=Ze.j,mn=Ze.S;Rn--;)On=mn[un=kt&un+1],Ln=Ln*ce+mn[kt&(mn[un]=mn[bn=kt&bn+On])+(mn[bn]=On)];return Ze.i=un,Ze.j=bn,Ln}}function Ot(Ie,Te){return Te.i=Ie.i,Te.j=Ie.j,Te.S=Ie.S.slice(),Te}function Mt(Ie,Te){var Oe=[],Ze=typeof Ie,We;if(Te&&Ze==\"object\")for(We in Ie)try{Oe.push(Mt(Ie[We],Te-1))}catch{}return Oe.length?Oe:Ze==\"string\"?Ie:Ie+\"\\\\0\"}function gt(Ie,Te){for(var Oe=Ie+\"\",Ze,We=0;We<Oe.length;)Te[kt&We]=kt&(Ze^=Te[kt&We]*19)+Oe.charCodeAt(We++);return Me(Te)}function $e(){try{if(ut)return Me(ut.randomBytes(ce));var Ie=new Uint8Array(ce);return(N.crypto||N.msCrypto).getRandomValues(Ie),Me(Ie)}catch{var Te=N.navigator,Oe=Te&&Te.plugins;return[+new Date,N,Oe,N.screen,Me(b)]}}function Me(Ie){return String.fromCharCode.apply(0,Ie)}gt(F.random(),b)})([],K);var Z=(function(){var b={};b.getBezierEasing=N;var F={};function N(Me,Ie,Te,Oe,Ze){var We=Ze||(\"bez_\"+Me+\"_\"+Ie+\"_\"+Te+\"_\"+Oe).replace(/\\\\./g,\"p\");if(F[We])return F[We];var ct=new $e([Me,Ie,Te,Oe]);return F[We]=ct,ct}var ce=4,ve=.001,pe=1e-7,Ge=10,ht=11,Xe=1/(ht-1),It=typeof Float32Array==\"function\";function kt(Me,Ie){return 1-3*Ie+3*Me}function ut(Me,Ie){return 3*Ie-6*Me}function st(Me){return 3*Me}function bt(Me,Ie,Te){return((kt(Ie,Te)*Me+ut(Ie,Te))*Me+st(Ie))*Me}function Ot(Me,Ie,Te){return 3*kt(Ie,Te)*Me*Me+2*ut(Ie,Te)*Me+st(Ie)}function Mt(Me,Ie,Te,Oe,Ze){var We,ct,fn=0;do ct=Ie+(Te-Ie)/2,We=bt(ct,Oe,Ze)-Me,We>0?Te=ct:Ie=ct;while(Math.abs(We)>pe&&++fn<Ge);return ct}function gt(Me,Ie,Te,Oe){for(var Ze=0;Ze<ce;++Ze){var We=Ot(Ie,Te,Oe);if(We===0)return Ie;var ct=bt(Ie,Te,Oe)-Me;Ie-=ct/We}return Ie}function $e(Me){this._p=Me,this._mSampleValues=It?new Float32Array(ht):new Array(ht),this._precomputed=!1,this.get=this.get.bind(this)}return $e.prototype={get:function(Me){var Ie=this._p[0],Te=this._p[1],Oe=this._p[2],Ze=this._p[3];return this._precomputed||this._precompute(),Ie===Te&&Oe===Ze?Me:Me===0?0:Me===1?1:bt(this._getTForX(Me),Te,Ze)},_precompute:function(){var Me=this._p[0],Ie=this._p[1],Te=this._p[2],Oe=this._p[3];this._precomputed=!0,(Me!==Ie||Te!==Oe)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Me=this._p[0],Ie=this._p[2],Te=0;Te<ht;++Te)this._mSampleValues[Te]=bt(Te*Xe,Me,Ie)},_getTForX:function(Me){for(var Ie=this._p[0],Te=this._p[2],Oe=this._mSampleValues,Ze=0,We=1,ct=ht-1;We!==ct&&Oe[We]<=Me;++We)Ze+=Xe;--We;var fn=(Me-Oe[We])/(Oe[We+1]-Oe[We]),Rn=Ze+fn*Xe,On=Ot(Rn,Ie,Te);return On>=ve?gt(Me,Rn,Ie,Te):On===0?Rn:Mt(Me,Ze,Ze+Xe,Ie,Te)}},b})();(function(){for(var b=0,F=[\"ms\",\"moz\",\"webkit\",\"o\"],N=0;N<F.length&&!t.requestAnimationFrame;++N)t.requestAnimationFrame=t[F[N]+\"RequestAnimationFrame\"],t.cancelAnimationFrame=t[F[N]+\"CancelAnimationFrame\"]||t[F[N]+\"CancelRequestAnimationFrame\"];t.requestAnimationFrame||(t.requestAnimationFrame=function(ce){var ve=new Date().getTime(),pe=Math.max(0,16-(ve-b)),Ge=setTimeout(function(){ce(ve+pe)},pe);return b=ve+pe,Ge}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(ce){clearTimeout(ce)})})();function X(b,F){var N,ce=b.length,ve;for(N=0;N<ce;N+=1){ve=b[N].prototype;for(var pe in ve)Object.prototype.hasOwnProperty.call(ve,pe)&&(F.prototype[pe]=ve[pe])}}function ae(b,F){return Object.getOwnPropertyDescriptor(b,F)}function de(b){function F(){}return F.prototype=b,F}function me(){var b=Math;function F(st,bt,Ot,Mt,gt,$e){var Me=st*Mt+bt*gt+Ot*$e-gt*Mt-$e*st-Ot*bt;return Me>-.001&&Me<.001}function N(st,bt,Ot,Mt,gt,$e,Me,Ie,Te){if(Ot===0&&$e===0&&Te===0)return F(st,bt,Mt,gt,Me,Ie);var Oe=b.sqrt(b.pow(Mt-st,2)+b.pow(gt-bt,2)+b.pow($e-Ot,2)),Ze=b.sqrt(b.pow(Me-st,2)+b.pow(Ie-bt,2)+b.pow(Te-Ot,2)),We=b.sqrt(b.pow(Me-Mt,2)+b.pow(Ie-gt,2)+b.pow(Te-$e,2)),ct;return Oe>Ze?Oe>We?ct=Oe-Ze-We:ct=We-Ze-Oe:We>Ze?ct=We-Ze-Oe:ct=Ze-Oe-We,ct>-1e-4&&ct<1e-4}var ce=(function(){return function(st,bt,Ot,Mt){var gt=V,$e,Me,Ie,Te,Oe,Ze=0,We,ct=[],fn=[],Rn=Mr.newElement();for(Ie=Ot.length,$e=0;$e<gt;$e+=1){for(Oe=$e/(gt-1),We=0,Me=0;Me<Ie;Me+=1)Te=g(1-Oe,3)*st[Me]+3*g(1-Oe,2)*Oe*Ot[Me]+3*(1-Oe)*g(Oe,2)*Mt[Me]+g(Oe,3)*bt[Me],ct[Me]=Te,fn[Me]!==null&&(We+=g(ct[Me]-fn[Me],2)),fn[Me]=ct[Me];We&&(We=y(We),Ze+=We),Rn.percents[$e]=Oe,Rn.lengths[$e]=Ze}return Rn.addedLength=Ze,Rn}})();function ve(st){var bt=jr.newElement(),Ot=st.c,Mt=st.v,gt=st.o,$e=st.i,Me,Ie=st._length,Te=bt.lengths,Oe=0;for(Me=0;Me<Ie-1;Me+=1)Te[Me]=ce(Mt[Me],Mt[Me+1],gt[Me],$e[Me+1]),Oe+=Te[Me].addedLength;return Ot&&Ie&&(Te[Me]=ce(Mt[Me],Mt[0],gt[Me],$e[0]),Oe+=Te[Me].addedLength),bt.totalLength=Oe,bt}function pe(st){this.segmentLength=0,this.points=new Array(st)}function Ge(st,bt){this.partialLength=st,this.point=bt}var ht=(function(){var st={};return function(bt,Ot,Mt,gt){var $e=(bt[0]+\"_\"+bt[1]+\"_\"+Ot[0]+\"_\"+Ot[1]+\"_\"+Mt[0]+\"_\"+Mt[1]+\"_\"+gt[0]+\"_\"+gt[1]).replace(/\\\\./g,\"p\");if(!st[$e]){var Me=V,Ie,Te,Oe,Ze,We,ct=0,fn,Rn,On=null;bt.length===2&&(bt[0]!==Ot[0]||bt[1]!==Ot[1])&&F(bt[0],bt[1],Ot[0],Ot[1],bt[0]+Mt[0],bt[1]+Mt[1])&&F(bt[0],bt[1],Ot[0],Ot[1],Ot[0]+gt[0],Ot[1]+gt[1])&&(Me=2);var Ln=new pe(Me);for(Oe=Mt.length,Ie=0;Ie<Me;Ie+=1){for(Rn=ue(Oe),We=Ie/(Me-1),fn=0,Te=0;Te<Oe;Te+=1)Ze=g(1-We,3)*bt[Te]+3*g(1-We,2)*We*(bt[Te]+Mt[Te])+3*(1-We)*g(We,2)*(Ot[Te]+gt[Te])+g(We,3)*Ot[Te],Rn[Te]=Ze,On!==null&&(fn+=g(Rn[Te]-On[Te],2));fn=y(fn),ct+=fn,Ln.points[Ie]=new Ge(fn,Rn),On=Rn}Ln.segmentLength=ct,st[$e]=Ln}return st[$e]}})();function Xe(st,bt){var Ot=bt.percents,Mt=bt.lengths,gt=Ot.length,$e=A((gt-1)*st),Me=st*bt.addedLength,Ie=0;if($e===gt-1||$e===0||Me===Mt[$e])return Ot[$e];for(var Te=Mt[$e]>Me?-1:1,Oe=!0;Oe;)if(Mt[$e]<=Me&&Mt[$e+1]>Me?(Ie=(Me-Mt[$e])/(Mt[$e+1]-Mt[$e]),Oe=!1):$e+=Te,$e<0||$e>=gt-1){if($e===gt-1)return Ot[$e];Oe=!1}return Ot[$e]+(Ot[$e+1]-Ot[$e])*Ie}function It(st,bt,Ot,Mt,gt,$e){var Me=Xe(gt,$e),Ie=1-Me,Te=b.round((Ie*Ie*Ie*st[0]+(Me*Ie*Ie+Ie*Me*Ie+Ie*Ie*Me)*Ot[0]+(Me*Me*Ie+Ie*Me*Me+Me*Ie*Me)*Mt[0]+Me*Me*Me*bt[0])*1e3)/1e3,Oe=b.round((Ie*Ie*Ie*st[1]+(Me*Ie*Ie+Ie*Me*Ie+Ie*Ie*Me)*Ot[1]+(Me*Me*Ie+Ie*Me*Me+Me*Ie*Me)*Mt[1]+Me*Me*Me*bt[1])*1e3)/1e3;return[Te,Oe]}var kt=ie(\"float32\",8);function ut(st,bt,Ot,Mt,gt,$e,Me){gt<0?gt=0:gt>1&&(gt=1);var Ie=Xe(gt,Me);$e=$e>1?1:$e;var Te=Xe($e,Me),Oe,Ze=st.length,We=1-Ie,ct=1-Te,fn=We*We*We,Rn=Ie*We*We*3,On=Ie*Ie*We*3,Ln=Ie*Ie*Ie,un=We*We*ct,bn=Ie*We*ct+We*Ie*ct+We*We*Te,mn=Ie*Ie*ct+We*Ie*Te+Ie*We*Te,Ye=Ie*Ie*Te,Ue=We*ct*ct,Je=Ie*ct*ct+We*Te*ct+We*ct*Te,jt=Ie*Te*ct+We*Te*Te+Ie*ct*Te,wn=Ie*Te*Te,dn=ct*ct*ct,Pr=Te*ct*ct+ct*Te*ct+ct*ct*Te,ro=Te*Te*ct+ct*Te*Te+Te*ct*Te,Gr=Te*Te*Te;for(Oe=0;Oe<Ze;Oe+=1)kt[Oe*4]=b.round((fn*st[Oe]+Rn*Ot[Oe]+On*Mt[Oe]+Ln*bt[Oe])*1e3)/1e3,kt[Oe*4+1]=b.round((un*st[Oe]+bn*Ot[Oe]+mn*Mt[Oe]+Ye*bt[Oe])*1e3)/1e3,kt[Oe*4+2]=b.round((Ue*st[Oe]+Je*Ot[Oe]+jt*Mt[Oe]+wn*bt[Oe])*1e3)/1e3,kt[Oe*4+3]=b.round((dn*st[Oe]+Pr*Ot[Oe]+ro*Mt[Oe]+Gr*bt[Oe])*1e3)/1e3;return kt}return{getSegmentsLength:ve,getNewSegment:ut,getPointInSegment:It,buildBezierData:ht,pointOnLine2D:F,pointOnLine3D:N}}var Pe=me(),De=(function(){var b=1,F=[],N,ce,ve={onmessage:function(){},postMessage:function(st){N({data:st})}},pe={postMessage:function(st){ve.onmessage({data:st})}};function Ge(st){if(t.Worker&&t.Blob&&o){var bt=new Blob([\"var _workerSelf = self; self.onmessage = \",st.toString()],{type:\"text/javascript\"}),Ot=URL.createObjectURL(bt);return new Worker(Ot)}return N=st,ve}function ht(){ce||(ce=Ge(function(bt){function Ot(){function gt(un,bn){var mn,Ye,Ue=un.length,Je,jt,wn,dn;for(Ye=0;Ye<Ue;Ye+=1)if(mn=un[Ye],\"ks\"in mn&&!mn.completed){if(mn.completed=!0,mn.tt&&(un[Ye-1].td=mn.tt),mn.hasMask){var Pr=mn.masksProperties;for(jt=Pr.length,Je=0;Je<jt;Je+=1)if(Pr[Je].pt.k.i)Ie(Pr[Je].pt.k);else for(dn=Pr[Je].pt.k.length,wn=0;wn<dn;wn+=1)Pr[Je].pt.k[wn].s&&Ie(Pr[Je].pt.k[wn].s[0]),Pr[Je].pt.k[wn].e&&Ie(Pr[Je].pt.k[wn].e[0])}mn.ty===0?(mn.layers=$e(mn.refId,bn),gt(mn.layers,bn)):mn.ty===4?Me(mn.shapes):mn.ty===5&&On(mn)}}function $e(un,bn){for(var mn=0,Ye=bn.length;mn<Ye;){if(bn[mn].id===un)return bn[mn].layers.__used?JSON.parse(JSON.stringify(bn[mn].layers)):(bn[mn].layers.__used=!0,bn[mn].layers);mn+=1}return null}function Me(un){var bn,mn=un.length,Ye,Ue;for(bn=mn-1;bn>=0;bn-=1)if(un[bn].ty===\"sh\")if(un[bn].ks.k.i)Ie(un[bn].ks.k);else for(Ue=un[bn].ks.k.length,Ye=0;Ye<Ue;Ye+=1)un[bn].ks.k[Ye].s&&Ie(un[bn].ks.k[Ye].s[0]),un[bn].ks.k[Ye].e&&Ie(un[bn].ks.k[Ye].e[0]);else un[bn].ty===\"gr\"&&Me(un[bn].it)}function Ie(un){var bn,mn=un.i.length;for(bn=0;bn<mn;bn+=1)un.i[bn][0]+=un.v[bn][0],un.i[bn][1]+=un.v[bn][1],un.o[bn][0]+=un.v[bn][0],un.o[bn][1]+=un.v[bn][1]}function Te(un,bn){var mn=bn?bn.split(\".\"):[100,100,100];return un[0]>mn[0]?!0:mn[0]>un[0]?!1:un[1]>mn[1]?!0:mn[1]>un[1]?!1:un[2]>mn[2]?!0:mn[2]>un[2]?!1:null}var Oe=(function(){var un=[4,4,14];function bn(Ye){var Ue=Ye.t.d;Ye.t.d={k:[{s:Ue,t:0}]}}function mn(Ye){var Ue,Je=Ye.length;for(Ue=0;Ue<Je;Ue+=1)Ye[Ue].ty===5&&bn(Ye[Ue])}return function(Ye){if(Te(un,Ye.v)&&(mn(Ye.layers),Ye.assets)){var Ue,Je=Ye.assets.length;for(Ue=0;Ue<Je;Ue+=1)Ye.assets[Ue].layers&&mn(Ye.assets[Ue].layers)}}})(),Ze=(function(){var un=[4,7,99];return function(bn){if(bn.chars&&!Te(un,bn.v)){var mn,Ye=bn.chars.length,Ue,Je,jt,wn;for(mn=0;mn<Ye;mn+=1)if(bn.chars[mn].data&&bn.chars[mn].data.shapes)for(wn=bn.chars[mn].data.shapes[0].it,Je=wn.length,Ue=0;Ue<Je;Ue+=1)jt=wn[Ue].ks.k,jt.__converted||(Ie(wn[Ue].ks.k),jt.__converted=!0)}}})(),We=(function(){var un=[5,7,15];function bn(Ye){var Ue=Ye.t.p;typeof Ue.a==\"number\"&&(Ue.a={a:0,k:Ue.a}),typeof Ue.p==\"number\"&&(Ue.p={a:0,k:Ue.p}),typeof Ue.r==\"number\"&&(Ue.r={a:0,k:Ue.r})}function mn(Ye){var Ue,Je=Ye.length;for(Ue=0;Ue<Je;Ue+=1)Ye[Ue].ty===5&&bn(Ye[Ue])}return function(Ye){if(Te(un,Ye.v)&&(mn(Ye.layers),Ye.assets)){var Ue,Je=Ye.assets.length;for(Ue=0;Ue<Je;Ue+=1)Ye.assets[Ue].layers&&mn(Ye.assets[Ue].layers)}}})(),ct=(function(){var un=[4,1,9];function bn(Ye){var Ue,Je=Ye.length,jt,wn;for(Ue=0;Ue<Je;Ue+=1)if(Ye[Ue].ty===\"gr\")bn(Ye[Ue].it);else if(Ye[Ue].ty===\"fl\"||Ye[Ue].ty===\"st\")if(Ye[Ue].c.k&&Ye[Ue].c.k[0].i)for(wn=Ye[Ue].c.k.length,jt=0;jt<wn;jt+=1)Ye[Ue].c.k[jt].s&&(Ye[Ue].c.k[jt].s[0]/=255,Ye[Ue].c.k[jt].s[1]/=255,Ye[Ue].c.k[jt].s[2]/=255,Ye[Ue].c.k[jt].s[3]/=255),Ye[Ue].c.k[jt].e&&(Ye[Ue].c.k[jt].e[0]/=255,Ye[Ue].c.k[jt].e[1]/=255,Ye[Ue].c.k[jt].e[2]/=255,Ye[Ue].c.k[jt].e[3]/=255);else Ye[Ue].c.k[0]/=255,Ye[Ue].c.k[1]/=255,Ye[Ue].c.k[2]/=255,Ye[Ue].c.k[3]/=255}function mn(Ye){var Ue,Je=Ye.length;for(Ue=0;Ue<Je;Ue+=1)Ye[Ue].ty===4&&bn(Ye[Ue].shapes)}return function(Ye){if(Te(un,Ye.v)&&(mn(Ye.layers),Ye.assets)){var Ue,Je=Ye.assets.length;for(Ue=0;Ue<Je;Ue+=1)Ye.assets[Ue].layers&&mn(Ye.assets[Ue].layers)}}})(),fn=(function(){var un=[4,4,18];function bn(Ye){var Ue,Je=Ye.length,jt,wn;for(Ue=Je-1;Ue>=0;Ue-=1)if(Ye[Ue].ty===\"sh\")if(Ye[Ue].ks.k.i)Ye[Ue].ks.k.c=Ye[Ue].closed;else for(wn=Ye[Ue].ks.k.length,jt=0;jt<wn;jt+=1)Ye[Ue].ks.k[jt].s&&(Ye[Ue].ks.k[jt].s[0].c=Ye[Ue].closed),Ye[Ue].ks.k[jt].e&&(Ye[Ue].ks.k[jt].e[0].c=Ye[Ue].closed);else Ye[Ue].ty===\"gr\"&&bn(Ye[Ue].it)}function mn(Ye){var Ue,Je,jt=Ye.length,wn,dn,Pr,ro;for(Je=0;Je<jt;Je+=1){if(Ue=Ye[Je],Ue.hasMask){var Gr=Ue.masksProperties;for(dn=Gr.length,wn=0;wn<dn;wn+=1)if(Gr[wn].pt.k.i)Gr[wn].pt.k.c=Gr[wn].cl;else for(ro=Gr[wn].pt.k.length,Pr=0;Pr<ro;Pr+=1)Gr[wn].pt.k[Pr].s&&(Gr[wn].pt.k[Pr].s[0].c=Gr[wn].cl),Gr[wn].pt.k[Pr].e&&(Gr[wn].pt.k[Pr].e[0].c=Gr[wn].cl)}Ue.ty===4&&bn(Ue.shapes)}}return function(Ye){if(Te(un,Ye.v)&&(mn(Ye.layers),Ye.assets)){var Ue,Je=Ye.assets.length;for(Ue=0;Ue<Je;Ue+=1)Ye.assets[Ue].layers&&mn(Ye.assets[Ue].layers)}}})();function Rn(un){un.__complete||(ct(un),Oe(un),Ze(un),We(un),fn(un),gt(un.layers,un.assets),un.__complete=!0)}function On(un){un.t.a.length===0&&!(\"m\"in un.t.p)&&(un.singleShape=!0)}var Ln={};return Ln.completeData=Rn,Ln.checkColors=ct,Ln.checkChars=Ze,Ln.checkPathProperties=We,Ln.checkShapes=fn,Ln.completeLayers=gt,Ln}if(pe.dataManager||(pe.dataManager=Ot()),pe.assetLoader||(pe.assetLoader=(function(){function gt(Me){var Ie=Me.getResponseHeader(\"content-type\");return Ie&&Me.responseType===\"json\"&&Ie.indexOf(\"json\")!==-1||Me.response&&typeof Me.response==\"object\"?Me.response:Me.response&&typeof Me.response==\"string\"?JSON.parse(Me.response):Me.responseText?JSON.parse(Me.responseText):null}function $e(Me,Ie,Te,Oe){var Ze,We=new XMLHttpRequest;try{We.responseType=\"json\"}catch{}We.onreadystatechange=function(){if(We.readyState===4)if(We.status===200)Ze=gt(We),Te(Ze);else try{Ze=gt(We),Te(Ze)}catch(ct){Oe&&Oe(ct)}};try{We.open(\"GET\",Me,!0)}catch{We.open(\"GET\",Ie+\"/\"+Me,!0)}We.send()}return{load:$e}})()),bt.data.type===\"loadAnimation\")pe.assetLoader.load(bt.data.path,bt.data.fullPath,function(gt){pe.dataManager.completeData(gt),pe.postMessage({id:bt.data.id,payload:gt,status:\"success\"})},function(){pe.postMessage({id:bt.data.id,status:\"error\"})});else if(bt.data.type===\"complete\"){var Mt=bt.data.animation;pe.dataManager.completeData(Mt),pe.postMessage({id:bt.data.id,payload:Mt,status:\"success\"})}else bt.data.type===\"loadData\"&&pe.assetLoader.load(bt.data.path,bt.data.fullPath,function(gt){pe.postMessage({id:bt.data.id,payload:gt,status:\"success\"})},function(){pe.postMessage({id:bt.data.id,status:\"error\"})})}),ce.onmessage=function(st){var bt=st.data,Ot=bt.id,Mt=F[Ot];F[Ot]=null,bt.status===\"success\"?Mt.onComplete(bt.payload):Mt.onError&&Mt.onError()})}function Xe(st,bt){b+=1;var Ot=\"processId_\"+b;return F[Ot]={onComplete:st,onError:bt},Ot}function It(st,bt,Ot){ht();var Mt=Xe(bt,Ot);ce.postMessage({type:\"loadAnimation\",path:st,fullPath:t.location.origin+t.location.pathname,id:Mt})}function kt(st,bt,Ot){ht();var Mt=Xe(bt,Ot);ce.postMessage({type:\"loadData\",path:st,fullPath:t.location.origin+t.location.pathname,id:Mt})}function ut(st,bt,Ot){ht();var Mt=Xe(bt,Ot);ce.postMessage({type:\"complete\",animation:st,id:Mt})}return{loadAnimation:It,loadData:kt,completeAnimation:ut}})();function Re(b){for(var F=b.fStyle?b.fStyle.split(\" \"):[],N=\"normal\",ce=\"normal\",ve=F.length,pe,Ge=0;Ge<ve;Ge+=1)switch(pe=F[Ge].toLowerCase(),pe){case\"italic\":ce=\"italic\";break;case\"bold\":N=\"700\";break;case\"black\":N=\"900\";break;case\"medium\":N=\"500\";break;case\"regular\":case\"normal\":N=\"400\";break;case\"light\":case\"thin\":N=\"200\";break;default:break}return{style:ce,weight:b.fWeight||N}}var qe=(function(){var b=5e3,F={w:0,size:0,shapes:[]},N=[];N=N.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var ce=[\"d83cdffb\",\"d83cdffc\",\"d83cdffd\",\"d83cdffe\",\"d83cdfff\"],ve=[65039,8205];function pe(Te){var Oe=Te.split(\",\"),Ze,We=Oe.length,ct=[];for(Ze=0;Ze<We;Ze+=1)Oe[Ze]!==\"sans-serif\"&&Oe[Ze]!==\"monospace\"&&ct.push(Oe[Ze]);return ct.join(\",\")}function Ge(Te,Oe){var Ze=Ee(\"span\");Ze.setAttribute(\"aria-hidden\",!0),Ze.style.fontFamily=Oe;var We=Ee(\"span\");We.innerText=\"giItT1WQy@!-/#\",Ze.style.position=\"absolute\",Ze.style.left=\"-10000px\",Ze.style.top=\"-10000px\",Ze.style.fontSize=\"300px\",Ze.style.fontVariant=\"normal\",Ze.style.fontStyle=\"normal\",Ze.style.fontWeight=\"normal\",Ze.style.letterSpacing=\"0\",Ze.appendChild(We),document.body.appendChild(Ze);var ct=We.offsetWidth;return We.style.fontFamily=pe(Te)+\", \"+Oe,{node:We,w:ct,parent:Ze}}function ht(){var Te,Oe=this.fonts.length,Ze,We,ct=Oe;for(Te=0;Te<Oe;Te+=1)this.fonts[Te].loaded?ct-=1:this.fonts[Te].fOrigin===\"n\"||this.fonts[Te].origin===0?this.fonts[Te].loaded=!0:(Ze=this.fonts[Te].monoCase.node,We=this.fonts[Te].monoCase.w,Ze.offsetWidth!==We?(ct-=1,this.fonts[Te].loaded=!0):(Ze=this.fonts[Te].sansCase.node,We=this.fonts[Te].sansCase.w,Ze.offsetWidth!==We&&(ct-=1,this.fonts[Te].loaded=!0)),this.fonts[Te].loaded&&(this.fonts[Te].sansCase.parent.parentNode.removeChild(this.fonts[Te].sansCase.parent),this.fonts[Te].monoCase.parent.parentNode.removeChild(this.fonts[Te].monoCase.parent)));ct!==0&&Date.now()-this.initTime<b?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Xe(Te,Oe){var Ze=q(\"text\");Ze.style.fontSize=\"100px\";var We=Re(Oe);Ze.setAttribute(\"font-family\",Oe.fFamily),Ze.setAttribute(\"font-style\",We.style),Ze.setAttribute(\"font-weight\",We.weight),Ze.textContent=\"1\",Oe.fClass?(Ze.style.fontFamily=\"inherit\",Ze.setAttribute(\"class\",Oe.fClass)):Ze.style.fontFamily=Oe.fFamily,Te.appendChild(Ze);var ct=Ee(\"canvas\").getContext(\"2d\");return ct.font=Oe.fWeight+\" \"+Oe.fStyle+\" 100px \"+Oe.fFamily,Ze}function It(Te,Oe){if(!Te){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Te.list;return}var Ze=Te.list,We,ct=Ze.length,fn=ct;for(We=0;We<ct;We+=1){var Rn=!0,On,Ln;if(Ze[We].loaded=!1,Ze[We].monoCase=Ge(Ze[We].fFamily,\"monospace\"),Ze[We].sansCase=Ge(Ze[We].fFamily,\"sans-serif\"),!Ze[We].fPath)Ze[We].loaded=!0,fn-=1;else if(Ze[We].fOrigin===\"p\"||Ze[We].origin===3){if(On=document.querySelectorAll(\\'style[f-forigin=\"p\"][f-family=\"\\'+Ze[We].fFamily+\\'\"], style[f-origin=\"3\"][f-family=\"\\'+Ze[We].fFamily+\\'\"]\\'),On.length>0&&(Rn=!1),Rn){var un=Ee(\"style\");un.setAttribute(\"f-forigin\",Ze[We].fOrigin),un.setAttribute(\"f-origin\",Ze[We].origin),un.setAttribute(\"f-family\",Ze[We].fFamily),un.type=\"text/css\",un.innerText=\"@font-face {font-family: \"+Ze[We].fFamily+\"; font-style: normal; src: url(\\'\"+Ze[We].fPath+\"\\');}\",Oe.appendChild(un)}}else if(Ze[We].fOrigin===\"g\"||Ze[We].origin===1){for(On=document.querySelectorAll(\\'link[f-forigin=\"g\"], link[f-origin=\"1\"]\\'),Ln=0;Ln<On.length;Ln+=1)On[Ln].href.indexOf(Ze[We].fPath)!==-1&&(Rn=!1);if(Rn){var bn=Ee(\"link\");bn.setAttribute(\"f-forigin\",Ze[We].fOrigin),bn.setAttribute(\"f-origin\",Ze[We].origin),bn.type=\"text/css\",bn.rel=\"stylesheet\",bn.href=Ze[We].fPath,document.body.appendChild(bn)}}else if(Ze[We].fOrigin===\"t\"||Ze[We].origin===2){for(On=document.querySelectorAll(\\'script[f-forigin=\"t\"], script[f-origin=\"2\"]\\'),Ln=0;Ln<On.length;Ln+=1)Ze[We].fPath===On[Ln].src&&(Rn=!1);if(Rn){var mn=Ee(\"link\");mn.setAttribute(\"f-forigin\",Ze[We].fOrigin),mn.setAttribute(\"f-origin\",Ze[We].origin),mn.setAttribute(\"rel\",\"stylesheet\"),mn.setAttribute(\"href\",Ze[We].fPath),Oe.appendChild(mn)}}Ze[We].helper=Xe(Oe,Ze[We]),Ze[We].cache={},this.fonts.push(Ze[We])}fn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function kt(Te){if(Te){this.chars||(this.chars=[]);var Oe,Ze=Te.length,We,ct=this.chars.length,fn;for(Oe=0;Oe<Ze;Oe+=1){for(We=0,fn=!1;We<ct;)this.chars[We].style===Te[Oe].style&&this.chars[We].fFamily===Te[Oe].fFamily&&this.chars[We].ch===Te[Oe].ch&&(fn=!0),We+=1;fn||(this.chars.push(Te[Oe]),ct+=1)}}}function ut(Te,Oe,Ze){for(var We=0,ct=this.chars.length;We<ct;){if(this.chars[We].ch===Te&&this.chars[We].style===Oe&&this.chars[We].fFamily===Ze)return this.chars[We];We+=1}return(typeof Te==\"string\"&&Te.charCodeAt(0)!==13||!Te)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn(\"Missing character from exported characters list: \",Te,Oe,Ze)),F}function st(Te,Oe,Ze){var We=this.getFontByName(Oe),ct=Te.charCodeAt(0);if(!We.cache[ct+1]){var fn=We.helper;if(Te===\" \"){fn.textContent=\"|\"+Te+\"|\";var Rn=fn.getComputedTextLength();fn.textContent=\"||\";var On=fn.getComputedTextLength();We.cache[ct+1]=(Rn-On)/100}else fn.textContent=Te,We.cache[ct+1]=fn.getComputedTextLength()/100}return We.cache[ct+1]*Ze}function bt(Te){for(var Oe=0,Ze=this.fonts.length;Oe<Ze;){if(this.fonts[Oe].fName===Te)return this.fonts[Oe];Oe+=1}return this.fonts[0]}function Ot(Te,Oe){var Ze=Te.toString(16)+Oe.toString(16);return ce.indexOf(Ze)!==-1}function Mt(Te,Oe){return Oe?Te===ve[0]&&Oe===ve[1]:Te===ve[1]}function gt(Te){return N.indexOf(Te)!==-1}function $e(){this.isLoaded=!0}var Me=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Me.isModifier=Ot,Me.isZeroWidthJoiner=Mt,Me.isCombinedCharacter=gt;var Ie={addChars:kt,addFonts:It,getCharData:ut,getFontByName:bt,measureText:st,checkLoadedFonts:ht,setIsLoaded:$e};return Me.prototype=Ie,Me})(),et=(function(){var b=r,F=Math.abs;function N(gt,$e){var Me=this.offsetTime,Ie;this.propType===\"multidimensional\"&&(Ie=ie(\"float32\",this.pv.length));for(var Te=$e.lastIndex,Oe=Te,Ze=this.keyframes.length-1,We=!0,ct,fn,Rn;We;){if(ct=this.keyframes[Oe],fn=this.keyframes[Oe+1],Oe===Ze-1&&gt>=fn.t-Me){ct.h&&(ct=fn),Te=0;break}if(fn.t-Me>gt){Te=Oe;break}Oe<Ze-1?Oe+=1:(Te=0,We=!1)}Rn=this.keyframesMetadata[Oe]||{};var On,Ln,un,bn,mn,Ye,Ue=fn.t-Me,Je=ct.t-Me,jt;if(ct.to){Rn.bezierData||(Rn.bezierData=Pe.buildBezierData(ct.s,fn.s||ct.e,ct.to,ct.ti));var wn=Rn.bezierData;if(gt>=Ue||gt<Je){var dn=gt>=Ue?wn.points.length-1:0;for(Ln=wn.points[dn].point.length,On=0;On<Ln;On+=1)Ie[On]=wn.points[dn].point[On]}else{Rn.__fnct?Ye=Rn.__fnct:(Ye=Z.getBezierEasing(ct.o.x,ct.o.y,ct.i.x,ct.i.y,ct.n).get,Rn.__fnct=Ye),un=Ye((gt-Je)/(Ue-Je));var Pr=wn.segmentLength*un,ro,Gr=$e.lastFrame<gt&&$e._lastKeyframeIndex===Oe?$e._lastAddedLength:0;for(mn=$e.lastFrame<gt&&$e._lastKeyframeIndex===Oe?$e._lastPoint:0,We=!0,bn=wn.points.length;We;){if(Gr+=wn.points[mn].partialLength,Pr===0||un===0||mn===wn.points.length-1){for(Ln=wn.points[mn].point.length,On=0;On<Ln;On+=1)Ie[On]=wn.points[mn].point[On];break}else if(Pr>=Gr&&Pr<Gr+wn.points[mn+1].partialLength){for(ro=(Pr-Gr)/wn.points[mn+1].partialLength,Ln=wn.points[mn].point.length,On=0;On<Ln;On+=1)Ie[On]=wn.points[mn].point[On]+(wn.points[mn+1].point[On]-wn.points[mn].point[On])*ro;break}mn<bn-1?mn+=1:We=!1}$e._lastPoint=mn,$e._lastAddedLength=Gr-wn.points[mn].partialLength,$e._lastKeyframeIndex=Oe}}else{var Yi,zi,Ka,Ga,ia;if(Ze=ct.s.length,jt=fn.s||ct.e,this.sh&&ct.h!==1)if(gt>=Ue)Ie[0]=jt[0],Ie[1]=jt[1],Ie[2]=jt[2];else if(gt<=Je)Ie[0]=ct.s[0],Ie[1]=ct.s[1],Ie[2]=ct.s[2];else{var Zi=pe(ct.s),Ti=pe(jt),ba=(gt-Je)/(Ue-Je);ve(Ie,ce(Zi,Ti,ba))}else for(Oe=0;Oe<Ze;Oe+=1)ct.h!==1&&(gt>=Ue?un=1:gt<Je?un=0:(ct.o.x.constructor===Array?(Rn.__fnct||(Rn.__fnct=[]),Rn.__fnct[Oe]?Ye=Rn.__fnct[Oe]:(Yi=ct.o.x[Oe]===void 0?ct.o.x[0]:ct.o.x[Oe],zi=ct.o.y[Oe]===void 0?ct.o.y[0]:ct.o.y[Oe],Ka=ct.i.x[Oe]===void 0?ct.i.x[0]:ct.i.x[Oe],Ga=ct.i.y[Oe]===void 0?ct.i.y[0]:ct.i.y[Oe],Ye=Z.getBezierEasing(Yi,zi,Ka,Ga).get,Rn.__fnct[Oe]=Ye)):Rn.__fnct?Ye=Rn.__fnct:(Yi=ct.o.x,zi=ct.o.y,Ka=ct.i.x,Ga=ct.i.y,Ye=Z.getBezierEasing(Yi,zi,Ka,Ga).get,ct.keyframeMetadata=Ye),un=Ye((gt-Je)/(Ue-Je)))),jt=fn.s||ct.e,ia=ct.h===1?ct.s[Oe]:ct.s[Oe]+(jt[Oe]-ct.s[Oe])*un,this.propType===\"multidimensional\"?Ie[Oe]=ia:Ie=ia}return $e.lastIndex=Te,Ie}function ce(gt,$e,Me){var Ie=[],Te=gt[0],Oe=gt[1],Ze=gt[2],We=gt[3],ct=$e[0],fn=$e[1],Rn=$e[2],On=$e[3],Ln,un,bn,mn,Ye;return un=Te*ct+Oe*fn+Ze*Rn+We*On,un<0&&(un=-un,ct=-ct,fn=-fn,Rn=-Rn,On=-On),1-un>1e-6?(Ln=Math.acos(un),bn=Math.sin(Ln),mn=Math.sin((1-Me)*Ln)/bn,Ye=Math.sin(Me*Ln)/bn):(mn=1-Me,Ye=Me),Ie[0]=mn*Te+Ye*ct,Ie[1]=mn*Oe+Ye*fn,Ie[2]=mn*Ze+Ye*Rn,Ie[3]=mn*We+Ye*On,Ie}function ve(gt,$e){var Me=$e[0],Ie=$e[1],Te=$e[2],Oe=$e[3],Ze=Math.atan2(2*Ie*Oe-2*Me*Te,1-2*Ie*Ie-2*Te*Te),We=Math.asin(2*Me*Ie+2*Te*Oe),ct=Math.atan2(2*Me*Oe-2*Ie*Te,1-2*Me*Me-2*Te*Te);gt[0]=Ze/D,gt[1]=We/D,gt[2]=ct/D}function pe(gt){var $e=gt[0]*D,Me=gt[1]*D,Ie=gt[2]*D,Te=Math.cos($e/2),Oe=Math.cos(Me/2),Ze=Math.cos(Ie/2),We=Math.sin($e/2),ct=Math.sin(Me/2),fn=Math.sin(Ie/2),Rn=Te*Oe*Ze-We*ct*fn,On=We*ct*Ze+Te*Oe*fn,Ln=We*Oe*Ze+Te*ct*fn,un=Te*ct*Ze-We*Oe*fn;return[On,Ln,un,Rn]}function Ge(){var gt=this.comp.renderedFrame-this.offsetTime,$e=this.keyframes[0].t-this.offsetTime,Me=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(gt===this._caching.lastFrame||this._caching.lastFrame!==b&&(this._caching.lastFrame>=Me&&gt>=Me||this._caching.lastFrame<$e&&gt<$e))){this._caching.lastFrame>=gt&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var Ie=this.interpolateValue(gt,this._caching);this.pv=Ie}return this._caching.lastFrame=gt,this.pv}function ht(gt){var $e;if(this.propType===\"unidimensional\")$e=gt*this.mult,F(this.v-$e)>1e-5&&(this.v=$e,this._mdf=!0);else for(var Me=0,Ie=this.v.length;Me<Ie;)$e=gt[Me]*this.mult,F(this.v[Me]-$e)>1e-5&&(this.v[Me]=$e,this._mdf=!0),Me+=1}function Xe(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var gt,$e=this.effectsSequence.length,Me=this.kf?this.pv:this.data.k;for(gt=0;gt<$e;gt+=1)Me=this.effectsSequence[gt](Me);this.setVValue(Me),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function It(gt){this.effectsSequence.push(gt),this.container.addDynamicProperty(this)}function kt(gt,$e,Me,Ie){this.propType=\"unidimensional\",this.mult=Me||1,this.data=$e,this.v=Me?$e.k*Me:$e.k,this.pv=$e.k,this._mdf=!1,this.elem=gt,this.container=Ie,this.comp=gt.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Xe,this.setVValue=ht,this.addEffect=It}function ut(gt,$e,Me,Ie){this.propType=\"multidimensional\",this.mult=Me||1,this.data=$e,this._mdf=!1,this.elem=gt,this.container=Ie,this.comp=gt.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Te,Oe=$e.k.length;for(this.v=ie(\"float32\",Oe),this.pv=ie(\"float32\",Oe),this.vel=ie(\"float32\",Oe),Te=0;Te<Oe;Te+=1)this.v[Te]=$e.k[Te]*this.mult,this.pv[Te]=$e.k[Te];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Xe,this.setVValue=ht,this.addEffect=It}function st(gt,$e,Me,Ie){this.propType=\"unidimensional\",this.keyframes=$e.k,this.keyframesMetadata=[],this.offsetTime=gt.data.st,this.frameId=-1,this._caching={lastFrame:b,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=$e,this.mult=Me||1,this.elem=gt,this.container=Ie,this.comp=gt.comp,this.v=b,this.pv=b,this._isFirstFrame=!0,this.getValue=Xe,this.setVValue=ht,this.interpolateValue=N,this.effectsSequence=[Ge.bind(this)],this.addEffect=It}function bt(gt,$e,Me,Ie){this.propType=\"multidimensional\";var Te,Oe=$e.k.length,Ze,We,ct,fn;for(Te=0;Te<Oe-1;Te+=1)$e.k[Te].to&&$e.k[Te].s&&$e.k[Te+1]&&$e.k[Te+1].s&&(Ze=$e.k[Te].s,We=$e.k[Te+1].s,ct=$e.k[Te].to,fn=$e.k[Te].ti,(Ze.length===2&&!(Ze[0]===We[0]&&Ze[1]===We[1])&&Pe.pointOnLine2D(Ze[0],Ze[1],We[0],We[1],Ze[0]+ct[0],Ze[1]+ct[1])&&Pe.pointOnLine2D(Ze[0],Ze[1],We[0],We[1],We[0]+fn[0],We[1]+fn[1])||Ze.length===3&&!(Ze[0]===We[0]&&Ze[1]===We[1]&&Ze[2]===We[2])&&Pe.pointOnLine3D(Ze[0],Ze[1],Ze[2],We[0],We[1],We[2],Ze[0]+ct[0],Ze[1]+ct[1],Ze[2]+ct[2])&&Pe.pointOnLine3D(Ze[0],Ze[1],Ze[2],We[0],We[1],We[2],We[0]+fn[0],We[1]+fn[1],We[2]+fn[2]))&&($e.k[Te].to=null,$e.k[Te].ti=null),Ze[0]===We[0]&&Ze[1]===We[1]&&ct[0]===0&&ct[1]===0&&fn[0]===0&&fn[1]===0&&(Ze.length===2||Ze[2]===We[2]&&ct[2]===0&&fn[2]===0)&&($e.k[Te].to=null,$e.k[Te].ti=null));this.effectsSequence=[Ge.bind(this)],this.data=$e,this.keyframes=$e.k,this.keyframesMetadata=[],this.offsetTime=gt.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Me||1,this.elem=gt,this.container=Ie,this.comp=gt.comp,this.getValue=Xe,this.setVValue=ht,this.interpolateValue=N,this.frameId=-1;var Rn=$e.k[0].s.length;for(this.v=ie(\"float32\",Rn),this.pv=ie(\"float32\",Rn),Te=0;Te<Rn;Te+=1)this.v[Te]=b,this.pv[Te]=b;this._caching={lastFrame:b,lastIndex:0,value:ie(\"float32\",Rn)},this.addEffect=It}function Ot(gt,$e,Me,Ie,Te){var Oe;if(!$e.k.length)Oe=new kt(gt,$e,Ie,Te);else if(typeof $e.k[0]==\"number\")Oe=new ut(gt,$e,Ie,Te);else switch(Me){case 0:Oe=new st(gt,$e,Ie,Te);break;case 1:Oe=new bt(gt,$e,Ie,Te);break;default:break}return Oe.effectsSequence.length&&Te.addDynamicProperty(Oe),Oe}var Mt={getProp:Ot};return Mt})(),ot=(function(){var b=[0,0];function F(Xe){var It=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||It,this.a&&Xe.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Xe.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Xe.skewFromAxis(-this.sk.v,this.sa.v),this.r?Xe.rotate(-this.r.v):Xe.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Xe.translate(this.px.v,this.py.v,-this.pz.v):Xe.translate(this.px.v,this.py.v,0):Xe.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function N(Xe){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Xe){var It;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var kt,ut;if(It=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(kt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/It,0),ut=this.p.getValueAtTime(this.p.keyframes[0].t/It,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(kt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/It,0),ut=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/It,0)):(kt=this.p.pv,ut=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/It,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){kt=[],ut=[];var st=this.px,bt=this.py;st._caching.lastFrame+st.offsetTime<=st.keyframes[0].t?(kt[0]=st.getValueAtTime((st.keyframes[0].t+.01)/It,0),kt[1]=bt.getValueAtTime((bt.keyframes[0].t+.01)/It,0),ut[0]=st.getValueAtTime(st.keyframes[0].t/It,0),ut[1]=bt.getValueAtTime(bt.keyframes[0].t/It,0)):st._caching.lastFrame+st.offsetTime>=st.keyframes[st.keyframes.length-1].t?(kt[0]=st.getValueAtTime(st.keyframes[st.keyframes.length-1].t/It,0),kt[1]=bt.getValueAtTime(bt.keyframes[bt.keyframes.length-1].t/It,0),ut[0]=st.getValueAtTime((st.keyframes[st.keyframes.length-1].t-.01)/It,0),ut[1]=bt.getValueAtTime((bt.keyframes[bt.keyframes.length-1].t-.01)/It,0)):(kt=[st.pv,bt.pv],ut[0]=st.getValueAtTime((st._caching.lastFrame+st.offsetTime-.01)/It,st.offsetTime),ut[1]=bt.getValueAtTime((bt._caching.lastFrame+bt.offsetTime-.01)/It,bt.offsetTime))}else ut=b,kt=ut;this.v.rotate(-Math.atan2(kt[1]-ut[1],kt[0]-ut[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function ce(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function ve(){}function pe(Xe){this._addDynamicProperty(Xe),this.elem.addDynamicProperty(Xe),this._isDirty=!0}function Ge(Xe,It,kt){if(this.elem=Xe,this.frameId=-1,this.propType=\"transform\",this.data=It,this.v=new C,this.pre=new C,this.appliedTransformations=0,this.initDynamicPropertyContainer(kt||Xe),It.p&&It.p.s?(this.px=et.getProp(Xe,It.p.x,0,0,this),this.py=et.getProp(Xe,It.p.y,0,0,this),It.p.z&&(this.pz=et.getProp(Xe,It.p.z,0,0,this))):this.p=et.getProp(Xe,It.p||{k:[0,0,0]},1,0,this),It.rx){if(this.rx=et.getProp(Xe,It.rx,0,D,this),this.ry=et.getProp(Xe,It.ry,0,D,this),this.rz=et.getProp(Xe,It.rz,0,D,this),It.or.k[0].ti){var ut,st=It.or.k.length;for(ut=0;ut<st;ut+=1)It.or.k[ut].to=null,It.or.k[ut].ti=null}this.or=et.getProp(Xe,It.or,1,D,this),this.or.sh=!0}else this.r=et.getProp(Xe,It.r||{k:0},0,D,this);It.sk&&(this.sk=et.getProp(Xe,It.sk,0,D,this),this.sa=et.getProp(Xe,It.sa,0,D,this)),this.a=et.getProp(Xe,It.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(Xe,It.s||{k:[100,100,100]},1,.01,this),It.o?this.o=et.getProp(Xe,It.o,0,.01,Xe):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}Ge.prototype={applyToMatrix:F,getValue:N,precalculateMatrix:ce,autoOrient:ve},X([we],Ge),Ge.prototype.addDynamicProperty=pe,Ge.prototype._addDynamicProperty=we.prototype.addDynamicProperty;function ht(Xe,It,kt){return new Ge(Xe,It,kt)}return{getTransformProperty:ht}})();function Qe(){this.c=!1,this._length=0,this._maxLength=8,this.v=ue(this._maxLength),this.o=ue(this._maxLength),this.i=ue(this._maxLength)}Qe.prototype.setPathData=function(b,F){this.c=b,this.setLength(F);for(var N=0;N<F;)this.v[N]=pr.newElement(),this.o[N]=pr.newElement(),this.i[N]=pr.newElement(),N+=1},Qe.prototype.setLength=function(b){for(;this._maxLength<b;)this.doubleArrayLength();this._length=b},Qe.prototype.doubleArrayLength=function(){this.v=this.v.concat(ue(this._maxLength)),this.i=this.i.concat(ue(this._maxLength)),this.o=this.o.concat(ue(this._maxLength)),this._maxLength*=2},Qe.prototype.setXYAt=function(b,F,N,ce,ve){var pe;switch(this._length=Math.max(this._length,ce+1),this._length>=this._maxLength&&this.doubleArrayLength(),N){case\"v\":pe=this.v;break;case\"i\":pe=this.i;break;case\"o\":pe=this.o;break;default:pe=[];break}(!pe[ce]||pe[ce]&&!ve)&&(pe[ce]=pr.newElement()),pe[ce][0]=b,pe[ce][1]=F},Qe.prototype.setTripleAt=function(b,F,N,ce,ve,pe,Ge,ht){this.setXYAt(b,F,\"v\",Ge,ht),this.setXYAt(N,ce,\"o\",Ge,ht),this.setXYAt(ve,pe,\"i\",Ge,ht)},Qe.prototype.reverse=function(){var b=new Qe;b.setPathData(this.c,this._length);var F=this.v,N=this.o,ce=this.i,ve=0;this.c&&(b.setTripleAt(F[0][0],F[0][1],ce[0][0],ce[0][1],N[0][0],N[0][1],0,!1),ve=1);var pe=this._length-1,Ge=this._length,ht;for(ht=ve;ht<Ge;ht+=1)b.setTripleAt(F[pe][0],F[pe][1],ce[pe][0],ce[pe][1],N[pe][0],N[pe][1],ht,!1),pe-=1;return b};var xt=(function(){var b=-999999;function F($e,Me,Ie){var Te=Ie.lastIndex,Oe,Ze,We,ct,fn,Rn,On,Ln,un,bn=this.keyframes;if($e<bn[0].t-this.offsetTime)Oe=bn[0].s[0],We=!0,Te=0;else if($e>=bn[bn.length-1].t-this.offsetTime)Oe=bn[bn.length-1].s?bn[bn.length-1].s[0]:bn[bn.length-2].e[0],We=!0;else{for(var mn=Te,Ye=bn.length-1,Ue=!0,Je,jt,wn;Ue&&(Je=bn[mn],jt=bn[mn+1],!(jt.t-this.offsetTime>$e));)mn<Ye-1?mn+=1:Ue=!1;if(wn=this.keyframesMetadata[mn]||{},We=Je.h===1,Te=mn,!We){if($e>=jt.t-this.offsetTime)Ln=1;else if($e<Je.t-this.offsetTime)Ln=0;else{var dn;wn.__fnct?dn=wn.__fnct:(dn=Z.getBezierEasing(Je.o.x,Je.o.y,Je.i.x,Je.i.y).get,wn.__fnct=dn),Ln=dn(($e-(Je.t-this.offsetTime))/(jt.t-this.offsetTime-(Je.t-this.offsetTime)))}Ze=jt.s?jt.s[0]:Je.e[0]}Oe=Je.s[0]}for(Rn=Me._length,On=Oe.i[0].length,Ie.lastIndex=Te,ct=0;ct<Rn;ct+=1)for(fn=0;fn<On;fn+=1)un=We?Oe.i[ct][fn]:Oe.i[ct][fn]+(Ze.i[ct][fn]-Oe.i[ct][fn])*Ln,Me.i[ct][fn]=un,un=We?Oe.o[ct][fn]:Oe.o[ct][fn]+(Ze.o[ct][fn]-Oe.o[ct][fn])*Ln,Me.o[ct][fn]=un,un=We?Oe.v[ct][fn]:Oe.v[ct][fn]+(Ze.v[ct][fn]-Oe.v[ct][fn])*Ln,Me.v[ct][fn]=un}function N(){var $e=this.comp.renderedFrame-this.offsetTime,Me=this.keyframes[0].t-this.offsetTime,Ie=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Te=this._caching.lastFrame;return Te!==b&&(Te<Me&&$e<Me||Te>Ie&&$e>Ie)||(this._caching.lastIndex=Te<$e?this._caching.lastIndex:0,this.interpolateShape($e,this.pv,this._caching)),this._caching.lastFrame=$e,this.pv}function ce(){this.paths=this.localShapeCollection}function ve($e,Me){if($e._length!==Me._length||$e.c!==Me.c)return!1;var Ie,Te=$e._length;for(Ie=0;Ie<Te;Ie+=1)if($e.v[Ie][0]!==Me.v[Ie][0]||$e.v[Ie][1]!==Me.v[Ie][1]||$e.o[Ie][0]!==Me.o[Ie][0]||$e.o[Ie][1]!==Me.o[Ie][1]||$e.i[Ie][0]!==Me.i[Ie][0]||$e.i[Ie][1]!==Me.i[Ie][1])return!1;return!0}function pe($e){ve(this.v,$e)||(this.v=vr.clone($e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Ge(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var $e;this.kf?$e=this.pv:this.data.ks?$e=this.data.ks.k:$e=this.data.pt.k;var Me,Ie=this.effectsSequence.length;for(Me=0;Me<Ie;Me+=1)$e=this.effectsSequence[Me]($e);this.setVValue($e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ht($e,Me,Ie){this.propType=\"shape\",this.comp=$e.comp,this.container=$e,this.elem=$e,this.data=Me,this.k=!1,this.kf=!1,this._mdf=!1;var Te=Ie===3?Me.pt.k:Me.ks.k;this.v=vr.clone(Te),this.pv=vr.clone(this.v),this.localShapeCollection=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=ce,this.effectsSequence=[]}function Xe($e){this.effectsSequence.push($e),this.container.addDynamicProperty(this)}ht.prototype.interpolateShape=F,ht.prototype.getValue=Ge,ht.prototype.setVValue=pe,ht.prototype.addEffect=Xe;function It($e,Me,Ie){this.propType=\"shape\",this.comp=$e.comp,this.elem=$e,this.container=$e,this.offsetTime=$e.data.st,this.keyframes=Ie===3?Me.pt.k:Me.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Te=this.keyframes[0].s[0].i.length;this.v=vr.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Te),this.pv=vr.clone(this.v),this.localShapeCollection=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=b,this.reset=ce,this._caching={lastFrame:b,lastIndex:0},this.effectsSequence=[N.bind(this)]}It.prototype.getValue=Ge,It.prototype.interpolateShape=F,It.prototype.setVValue=pe,It.prototype.addEffect=Xe;var kt=(function(){var $e=G;function Me(Ie,Te){this.v=vr.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Te.d,this.elem=Ie,this.comp=Ie.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ie),this.p=et.getProp(Ie,Te.p,1,0,this),this.s=et.getProp(Ie,Te.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Me.prototype={reset:ce,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ie=this.p.v[0],Te=this.p.v[1],Oe=this.s.v[0]/2,Ze=this.s.v[1]/2,We=this.d!==3,ct=this.v;ct.v[0][0]=Ie,ct.v[0][1]=Te-Ze,ct.v[1][0]=We?Ie+Oe:Ie-Oe,ct.v[1][1]=Te,ct.v[2][0]=Ie,ct.v[2][1]=Te+Ze,ct.v[3][0]=We?Ie-Oe:Ie+Oe,ct.v[3][1]=Te,ct.i[0][0]=We?Ie-Oe*$e:Ie+Oe*$e,ct.i[0][1]=Te-Ze,ct.i[1][0]=We?Ie+Oe:Ie-Oe,ct.i[1][1]=Te-Ze*$e,ct.i[2][0]=We?Ie+Oe*$e:Ie-Oe*$e,ct.i[2][1]=Te+Ze,ct.i[3][0]=We?Ie-Oe:Ie+Oe,ct.i[3][1]=Te+Ze*$e,ct.o[0][0]=We?Ie+Oe*$e:Ie-Oe*$e,ct.o[0][1]=Te-Ze,ct.o[1][0]=We?Ie+Oe:Ie-Oe,ct.o[1][1]=Te+Ze*$e,ct.o[2][0]=We?Ie-Oe*$e:Ie+Oe*$e,ct.o[2][1]=Te+Ze,ct.o[3][0]=We?Ie-Oe:Ie+Oe,ct.o[3][1]=Te-Ze*$e}},X([we],Me),Me})(),ut=(function(){function $e(Me,Ie){this.v=vr.newElement(),this.v.setPathData(!0,0),this.elem=Me,this.comp=Me.comp,this.data=Ie,this.frameId=-1,this.d=Ie.d,this.initDynamicPropertyContainer(Me),Ie.sy===1?(this.ir=et.getProp(Me,Ie.ir,0,0,this),this.is=et.getProp(Me,Ie.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(Me,Ie.pt,0,0,this),this.p=et.getProp(Me,Ie.p,1,0,this),this.r=et.getProp(Me,Ie.r,0,D,this),this.or=et.getProp(Me,Ie.or,0,0,this),this.os=et.getProp(Me,Ie.os,0,.01,this),this.localShapeCollection=vo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return $e.prototype={reset:ce,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Me=Math.floor(this.pt.v)*2,Ie=Math.PI*2/Me,Te=!0,Oe=this.or.v,Ze=this.ir.v,We=this.os.v,ct=this.is.v,fn=2*Math.PI*Oe/(Me*2),Rn=2*Math.PI*Ze/(Me*2),On,Ln,un,bn,mn=-Math.PI/2;mn+=this.r.v;var Ye=this.data.d===3?-1:1;for(this.v._length=0,On=0;On<Me;On+=1){Ln=Te?Oe:Ze,un=Te?We:ct,bn=Te?fn:Rn;var Ue=Ln*Math.cos(mn),Je=Ln*Math.sin(mn),jt=Ue===0&&Je===0?0:Je/Math.sqrt(Ue*Ue+Je*Je),wn=Ue===0&&Je===0?0:-Ue/Math.sqrt(Ue*Ue+Je*Je);Ue+=+this.p.v[0],Je+=+this.p.v[1],this.v.setTripleAt(Ue,Je,Ue-jt*bn*un*Ye,Je-wn*bn*un*Ye,Ue+jt*bn*un*Ye,Je+wn*bn*un*Ye,On,!0),Te=!Te,mn+=Ie*Ye}},convertPolygonToPath:function(){var Me=Math.floor(this.pt.v),Ie=Math.PI*2/Me,Te=this.or.v,Oe=this.os.v,Ze=2*Math.PI*Te/(Me*4),We,ct=-Math.PI*.5,fn=this.data.d===3?-1:1;for(ct+=this.r.v,this.v._length=0,We=0;We<Me;We+=1){var Rn=Te*Math.cos(ct),On=Te*Math.sin(ct),Ln=Rn===0&&On===0?0:On/Math.sqrt(Rn*Rn+On*On),un=Rn===0&&On===0?0:-Rn/Math.sqrt(Rn*Rn+On*On);Rn+=+this.p.v[0],On+=+this.p.v[1],this.v.setTripleAt(Rn,On,Rn-Ln*Ze*Oe*fn,On-un*Ze*Oe*fn,Rn+Ln*Ze*Oe*fn,On+un*Ze*Oe*fn,We,!0),ct+=Ie*fn}this.paths.length=0,this.paths[0]=this.v}},X([we],$e),$e})(),st=(function(){function $e(Me,Ie){this.v=vr.newElement(),this.v.c=!0,this.localShapeCollection=vo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Me,this.comp=Me.comp,this.frameId=-1,this.d=Ie.d,this.initDynamicPropertyContainer(Me),this.p=et.getProp(Me,Ie.p,1,0,this),this.s=et.getProp(Me,Ie.s,1,0,this),this.r=et.getProp(Me,Ie.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return $e.prototype={convertRectToPath:function(){var Me=this.p.v[0],Ie=this.p.v[1],Te=this.s.v[0]/2,Oe=this.s.v[1]/2,Ze=R(Te,Oe,this.r.v),We=Ze*(1-G);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Me+Te,Ie-Oe+Ze,Me+Te,Ie-Oe+Ze,Me+Te,Ie-Oe+We,0,!0),this.v.setTripleAt(Me+Te,Ie+Oe-Ze,Me+Te,Ie+Oe-We,Me+Te,Ie+Oe-Ze,1,!0),Ze!==0?(this.v.setTripleAt(Me+Te-Ze,Ie+Oe,Me+Te-Ze,Ie+Oe,Me+Te-We,Ie+Oe,2,!0),this.v.setTripleAt(Me-Te+Ze,Ie+Oe,Me-Te+We,Ie+Oe,Me-Te+Ze,Ie+Oe,3,!0),this.v.setTripleAt(Me-Te,Ie+Oe-Ze,Me-Te,Ie+Oe-Ze,Me-Te,Ie+Oe-We,4,!0),this.v.setTripleAt(Me-Te,Ie-Oe+Ze,Me-Te,Ie-Oe+We,Me-Te,Ie-Oe+Ze,5,!0),this.v.setTripleAt(Me-Te+Ze,Ie-Oe,Me-Te+Ze,Ie-Oe,Me-Te+We,Ie-Oe,6,!0),this.v.setTripleAt(Me+Te-Ze,Ie-Oe,Me+Te-We,Ie-Oe,Me+Te-Ze,Ie-Oe,7,!0)):(this.v.setTripleAt(Me-Te,Ie+Oe,Me-Te+We,Ie+Oe,Me-Te,Ie+Oe,2),this.v.setTripleAt(Me-Te,Ie-Oe,Me-Te,Ie-Oe+We,Me-Te,Ie-Oe,3))):(this.v.setTripleAt(Me+Te,Ie-Oe+Ze,Me+Te,Ie-Oe+We,Me+Te,Ie-Oe+Ze,0,!0),Ze!==0?(this.v.setTripleAt(Me+Te-Ze,Ie-Oe,Me+Te-Ze,Ie-Oe,Me+Te-We,Ie-Oe,1,!0),this.v.setTripleAt(Me-Te+Ze,Ie-Oe,Me-Te+We,Ie-Oe,Me-Te+Ze,Ie-Oe,2,!0),this.v.setTripleAt(Me-Te,Ie-Oe+Ze,Me-Te,Ie-Oe+Ze,Me-Te,Ie-Oe+We,3,!0),this.v.setTripleAt(Me-Te,Ie+Oe-Ze,Me-Te,Ie+Oe-We,Me-Te,Ie+Oe-Ze,4,!0),this.v.setTripleAt(Me-Te+Ze,Ie+Oe,Me-Te+Ze,Ie+Oe,Me-Te+We,Ie+Oe,5,!0),this.v.setTripleAt(Me+Te-Ze,Ie+Oe,Me+Te-We,Ie+Oe,Me+Te-Ze,Ie+Oe,6,!0),this.v.setTripleAt(Me+Te,Ie+Oe-Ze,Me+Te,Ie+Oe-Ze,Me+Te,Ie+Oe-We,7,!0)):(this.v.setTripleAt(Me-Te,Ie-Oe,Me-Te+We,Ie-Oe,Me-Te,Ie-Oe,1,!0),this.v.setTripleAt(Me-Te,Ie+Oe,Me-Te,Ie+Oe-We,Me-Te,Ie+Oe,2,!0),this.v.setTripleAt(Me+Te,Ie+Oe,Me+Te-We,Ie+Oe,Me+Te,Ie+Oe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:ce},X([we],$e),$e})();function bt($e,Me,Ie){var Te;if(Ie===3||Ie===4){var Oe=Ie===3?Me.pt:Me.ks,Ze=Oe.k;Ze.length?Te=new It($e,Me,Ie):Te=new ht($e,Me,Ie)}else Ie===5?Te=new st($e,Me):Ie===6?Te=new kt($e,Me):Ie===7&&(Te=new ut($e,Me));return Te.k&&$e.addDynamicProperty(Te),Te}function Ot(){return ht}function Mt(){return It}var gt={};return gt.getShapeProp=bt,gt.getConstructorFunction=Ot,gt.getKeyframedConstructorFunction=Mt,gt})(),Wt=(function(){var b={},F={};b.registerModifier=N,b.getModifier=ce;function N(ve,pe){F[ve]||(F[ve]=pe)}function ce(ve,pe,Ge){return new F[ve](pe,Ge)}return b})();function Vt(){}Vt.prototype.initModifierProperties=function(){},Vt.prototype.addShapeToModifier=function(){},Vt.prototype.addShape=function(b){if(!this.closed){b.sh.container.addDynamicProperty(b.sh);var F={shape:b.sh,data:b,localShapeCollection:vo.newShapeCollection()};this.shapes.push(F),this.addShapeToModifier(F),this._isAnimated&&b.setAsAnimated()}},Vt.prototype.init=function(b,F){this.shapes=[],this.elem=b,this.initDynamicPropertyContainer(b),this.initModifierProperties(b,F),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Vt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},X([we],Vt);function Bt(){}X([Vt],Bt),Bt.prototype.initModifierProperties=function(b,F){this.s=et.getProp(b,F.s,0,.01,this),this.e=et.getProp(b,F.e,0,.01,this),this.o=et.getProp(b,F.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=F.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Bt.prototype.addShapeToModifier=function(b){b.pathsData=[]},Bt.prototype.calculateShapeEdges=function(b,F,N,ce,ve){var pe=[];F<=1?pe.push({s:b,e:F}):b>=1?pe.push({s:b-1,e:F-1}):(pe.push({s:b,e:1}),pe.push({s:0,e:F-1}));var Ge=[],ht,Xe=pe.length,It;for(ht=0;ht<Xe;ht+=1)if(It=pe[ht],!(It.e*ve<ce||It.s*ve>ce+N)){var kt,ut;It.s*ve<=ce?kt=0:kt=(It.s*ve-ce)/N,It.e*ve>=ce+N?ut=1:ut=(It.e*ve-ce)/N,Ge.push([kt,ut])}return Ge.length||Ge.push([0,0]),Ge},Bt.prototype.releasePathsData=function(b){var F,N=b.length;for(F=0;F<N;F+=1)jr.release(b[F]);return b.length=0,b},Bt.prototype.processShapes=function(b){var F,N;if(this._mdf||b){var ce=this.o.v%360/360;if(ce<0&&(ce+=1),this.s.v>1?F=1+ce:this.s.v<0?F=0+ce:F=this.s.v+ce,this.e.v>1?N=1+ce:this.e.v<0?N=0+ce:N=this.e.v+ce,F>N){var ve=F;F=N,N=ve}F=Math.round(F*1e4)*1e-4,N=Math.round(N*1e4)*1e-4,this.sValue=F,this.eValue=N}else F=this.sValue,N=this.eValue;var pe,Ge,ht=this.shapes.length,Xe,It,kt,ut,st,bt=0;if(N===F)for(Ge=0;Ge<ht;Ge+=1)this.shapes[Ge].localShapeCollection.releaseShapes(),this.shapes[Ge].shape._mdf=!0,this.shapes[Ge].shape.paths=this.shapes[Ge].localShapeCollection,this._mdf&&(this.shapes[Ge].pathsData.length=0);else if(N===1&&F===0||N===0&&F===1){if(this._mdf)for(Ge=0;Ge<ht;Ge+=1)this.shapes[Ge].pathsData.length=0,this.shapes[Ge].shape._mdf=!0}else{var Ot=[],Mt,gt;for(Ge=0;Ge<ht;Ge+=1)if(Mt=this.shapes[Ge],!Mt.shape._mdf&&!this._mdf&&!b&&this.m!==2)Mt.shape.paths=Mt.localShapeCollection;else{if(pe=Mt.shape.paths,It=pe._length,st=0,!Mt.shape._mdf&&Mt.pathsData.length)st=Mt.totalShapeLength;else{for(kt=this.releasePathsData(Mt.pathsData),Xe=0;Xe<It;Xe+=1)ut=Pe.getSegmentsLength(pe.shapes[Xe]),kt.push(ut),st+=ut.totalLength;Mt.totalShapeLength=st,Mt.pathsData=kt}bt+=st,Mt.shape._mdf=!0}var $e=F,Me=N,Ie=0,Te;for(Ge=ht-1;Ge>=0;Ge-=1)if(Mt=this.shapes[Ge],Mt.shape._mdf){for(gt=Mt.localShapeCollection,gt.releaseShapes(),this.m===2&&ht>1?(Te=this.calculateShapeEdges(F,N,Mt.totalShapeLength,Ie,bt),Ie+=Mt.totalShapeLength):Te=[[$e,Me]],It=Te.length,Xe=0;Xe<It;Xe+=1){$e=Te[Xe][0],Me=Te[Xe][1],Ot.length=0,Me<=1?Ot.push({s:Mt.totalShapeLength*$e,e:Mt.totalShapeLength*Me}):$e>=1?Ot.push({s:Mt.totalShapeLength*($e-1),e:Mt.totalShapeLength*(Me-1)}):(Ot.push({s:Mt.totalShapeLength*$e,e:Mt.totalShapeLength}),Ot.push({s:0,e:Mt.totalShapeLength*(Me-1)}));var Oe=this.addShapes(Mt,Ot[0]);if(Ot[0].s!==Ot[0].e){if(Ot.length>1){var Ze=Mt.shape.paths.shapes[Mt.shape.paths._length-1];if(Ze.c){var We=Oe.pop();this.addPaths(Oe,gt),Oe=this.addShapes(Mt,Ot[1],We)}else this.addPaths(Oe,gt),Oe=this.addShapes(Mt,Ot[1])}this.addPaths(Oe,gt)}}Mt.shape.paths=gt}}},Bt.prototype.addPaths=function(b,F){var N,ce=b.length;for(N=0;N<ce;N+=1)F.addShape(b[N])},Bt.prototype.addSegment=function(b,F,N,ce,ve,pe,Ge){ve.setXYAt(F[0],F[1],\"o\",pe),ve.setXYAt(N[0],N[1],\"i\",pe+1),Ge&&ve.setXYAt(b[0],b[1],\"v\",pe),ve.setXYAt(ce[0],ce[1],\"v\",pe+1)},Bt.prototype.addSegmentFromArray=function(b,F,N,ce){F.setXYAt(b[1],b[5],\"o\",N),F.setXYAt(b[2],b[6],\"i\",N+1),ce&&F.setXYAt(b[0],b[4],\"v\",N),F.setXYAt(b[3],b[7],\"v\",N+1)},Bt.prototype.addShapes=function(b,F,N){var ce=b.pathsData,ve=b.shape.paths.shapes,pe,Ge=b.shape.paths._length,ht,Xe,It=0,kt,ut,st,bt,Ot=[],Mt,gt=!0;for(N?(ut=N._length,Mt=N._length):(N=vr.newElement(),ut=0,Mt=0),Ot.push(N),pe=0;pe<Ge;pe+=1){for(st=ce[pe].lengths,N.c=ve[pe].c,Xe=ve[pe].c?st.length:st.length+1,ht=1;ht<Xe;ht+=1)if(kt=st[ht-1],It+kt.addedLength<F.s)It+=kt.addedLength,N.c=!1;else if(It>F.e){N.c=!1;break}else F.s<=It&&F.e>=It+kt.addedLength?(this.addSegment(ve[pe].v[ht-1],ve[pe].o[ht-1],ve[pe].i[ht],ve[pe].v[ht],N,ut,gt),gt=!1):(bt=Pe.getNewSegment(ve[pe].v[ht-1],ve[pe].v[ht],ve[pe].o[ht-1],ve[pe].i[ht],(F.s-It)/kt.addedLength,(F.e-It)/kt.addedLength,st[ht-1]),this.addSegmentFromArray(bt,N,ut,gt),gt=!1,N.c=!1),It+=kt.addedLength,ut+=1;if(ve[pe].c&&st.length){if(kt=st[ht-1],It<=F.e){var $e=st[ht-1].addedLength;F.s<=It&&F.e>=It+$e?(this.addSegment(ve[pe].v[ht-1],ve[pe].o[ht-1],ve[pe].i[0],ve[pe].v[0],N,ut,gt),gt=!1):(bt=Pe.getNewSegment(ve[pe].v[ht-1],ve[pe].v[0],ve[pe].o[ht-1],ve[pe].i[0],(F.s-It)/$e,(F.e-It)/$e,st[ht-1]),this.addSegmentFromArray(bt,N,ut,gt),gt=!1,N.c=!1)}else N.c=!1;It+=kt.addedLength,ut+=1}if(N._length&&(N.setXYAt(N.v[Mt][0],N.v[Mt][1],\"i\",Mt),N.setXYAt(N.v[N._length-1][0],N.v[N._length-1][1],\"o\",N._length-1)),It>F.e)break;pe<Ge-1&&(N=vr.newElement(),gt=!0,Ot.push(N),ut=0)}return Ot},Wt.registerModifier(\"tm\",Bt);function nn(){}X([Vt],nn),nn.prototype.initModifierProperties=function(b,F){this.getValue=this.processKeys,this.rd=et.getProp(b,F.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},nn.prototype.processPath=function(b,F){var N=vr.newElement();N.c=b.c;var ce,ve=b._length,pe,Ge,ht,Xe,It,kt,ut=0,st,bt,Ot,Mt,gt,$e;for(ce=0;ce<ve;ce+=1)pe=b.v[ce],ht=b.o[ce],Ge=b.i[ce],pe[0]===ht[0]&&pe[1]===ht[1]&&pe[0]===Ge[0]&&pe[1]===Ge[1]?(ce===0||ce===ve-1)&&!b.c?(N.setTripleAt(pe[0],pe[1],ht[0],ht[1],Ge[0],Ge[1],ut),ut+=1):(ce===0?Xe=b.v[ve-1]:Xe=b.v[ce-1],It=Math.sqrt(Math.pow(pe[0]-Xe[0],2)+Math.pow(pe[1]-Xe[1],2)),kt=It?Math.min(It/2,F)/It:0,gt=pe[0]+(Xe[0]-pe[0])*kt,st=gt,$e=pe[1]-(pe[1]-Xe[1])*kt,bt=$e,Ot=st-(st-pe[0])*G,Mt=bt-(bt-pe[1])*G,N.setTripleAt(st,bt,Ot,Mt,gt,$e,ut),ut+=1,ce===ve-1?Xe=b.v[0]:Xe=b.v[ce+1],It=Math.sqrt(Math.pow(pe[0]-Xe[0],2)+Math.pow(pe[1]-Xe[1],2)),kt=It?Math.min(It/2,F)/It:0,Ot=pe[0]+(Xe[0]-pe[0])*kt,st=Ot,Mt=pe[1]+(Xe[1]-pe[1])*kt,bt=Mt,gt=st-(st-pe[0])*G,$e=bt-(bt-pe[1])*G,N.setTripleAt(st,bt,Ot,Mt,gt,$e,ut),ut+=1):(N.setTripleAt(b.v[ce][0],b.v[ce][1],b.o[ce][0],b.o[ce][1],b.i[ce][0],b.i[ce][1],ut),ut+=1);return N},nn.prototype.processShapes=function(b){var F,N,ce=this.shapes.length,ve,pe,Ge=this.rd.v;if(Ge!==0){var ht,Xe;for(N=0;N<ce;N+=1){if(ht=this.shapes[N],Xe=ht.localShapeCollection,!(!ht.shape._mdf&&!this._mdf&&!b))for(Xe.releaseShapes(),ht.shape._mdf=!0,F=ht.shape.paths.shapes,pe=ht.shape.paths._length,ve=0;ve<pe;ve+=1)Xe.addShape(this.processPath(F[ve],Ge));ht.shape.paths=ht.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)},Wt.registerModifier(\"rd\",nn);function Yt(){}X([Vt],Yt),Yt.prototype.initModifierProperties=function(b,F){this.getValue=this.processKeys,this.amount=et.getProp(b,F.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Yt.prototype.processPath=function(b,F){var N=F/100,ce=[0,0],ve=b._length,pe=0;for(pe=0;pe<ve;pe+=1)ce[0]+=b.v[pe][0],ce[1]+=b.v[pe][1];ce[0]/=ve,ce[1]/=ve;var Ge=vr.newElement();Ge.c=b.c;var ht,Xe,It,kt,ut,st;for(pe=0;pe<ve;pe+=1)ht=b.v[pe][0]+(ce[0]-b.v[pe][0])*N,Xe=b.v[pe][1]+(ce[1]-b.v[pe][1])*N,It=b.o[pe][0]+(ce[0]-b.o[pe][0])*-N,kt=b.o[pe][1]+(ce[1]-b.o[pe][1])*-N,ut=b.i[pe][0]+(ce[0]-b.i[pe][0])*-N,st=b.i[pe][1]+(ce[1]-b.i[pe][1])*-N,Ge.setTripleAt(ht,Xe,It,kt,ut,st,pe);return Ge},Yt.prototype.processShapes=function(b){var F,N,ce=this.shapes.length,ve,pe,Ge=this.amount.v;if(Ge!==0){var ht,Xe;for(N=0;N<ce;N+=1){if(ht=this.shapes[N],Xe=ht.localShapeCollection,!(!ht.shape._mdf&&!this._mdf&&!b))for(Xe.releaseShapes(),ht.shape._mdf=!0,F=ht.shape.paths.shapes,pe=ht.shape.paths._length,ve=0;ve<pe;ve+=1)Xe.addShape(this.processPath(F[ve],Ge));ht.shape.paths=ht.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)},Wt.registerModifier(\"pb\",Yt);function hn(){}X([Vt],hn),hn.prototype.initModifierProperties=function(b,F){this.getValue=this.processKeys,this.c=et.getProp(b,F.c,0,null,this),this.o=et.getProp(b,F.o,0,null,this),this.tr=ot.getTransformProperty(b,F.tr,this),this.so=et.getProp(b,F.tr.so,0,.01,this),this.eo=et.getProp(b,F.tr.eo,0,.01,this),this.data=F,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new C,this.rMatrix=new C,this.sMatrix=new C,this.tMatrix=new C,this.matrix=new C},hn.prototype.applyTransforms=function(b,F,N,ce,ve,pe){var Ge=pe?-1:1,ht=ce.s.v[0]+(1-ce.s.v[0])*(1-ve),Xe=ce.s.v[1]+(1-ce.s.v[1])*(1-ve);b.translate(ce.p.v[0]*Ge*ve,ce.p.v[1]*Ge*ve,ce.p.v[2]),F.translate(-ce.a.v[0],-ce.a.v[1],ce.a.v[2]),F.rotate(-ce.r.v*Ge*ve),F.translate(ce.a.v[0],ce.a.v[1],ce.a.v[2]),N.translate(-ce.a.v[0],-ce.a.v[1],ce.a.v[2]),N.scale(pe?1/ht:ht,pe?1/Xe:Xe),N.translate(ce.a.v[0],ce.a.v[1],ce.a.v[2])},hn.prototype.init=function(b,F,N,ce){for(this.elem=b,this.arr=F,this.pos=N,this.elemsData=ce,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(b),this.initModifierProperties(b,F[N]);N>0;)N-=1,this._elements.unshift(F[N]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},hn.prototype.resetElements=function(b){var F,N=b.length;for(F=0;F<N;F+=1)b[F]._processed=!1,b[F].ty===\"gr\"&&this.resetElements(b[F].it)},hn.prototype.cloneElements=function(b){var F=JSON.parse(JSON.stringify(b));return this.resetElements(F),F},hn.prototype.changeGroupRender=function(b,F){var N,ce=b.length;for(N=0;N<ce;N+=1)b[N]._render=F,b[N].ty===\"gr\"&&this.changeGroupRender(b[N].it,F)},hn.prototype.processShapes=function(b){var F,N,ce,ve,pe,Ge=!1;if(this._mdf||b){var ht=Math.ceil(this.c.v);if(this._groups.length<ht){for(;this._groups.length<ht;){var Xe={it:this.cloneElements(this._elements),ty:\"gr\"};Xe.it.push({a:{a:0,ix:1,k:[0,0]},nm:\"Transform\",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:\"tr\"}),this.arr.splice(0,0,Xe),this._groups.splice(0,0,Xe),this._currentCopies+=1}this.elem.reloadShapes(),Ge=!0}pe=0;var It;for(ce=0;ce<=this._groups.length-1;ce+=1){if(It=pe<ht,this._groups[ce]._render=It,this.changeGroupRender(this._groups[ce].it,It),!It){var kt=this.elemsData[ce].it,ut=kt[kt.length-1];ut.transform.op.v!==0?(ut.transform.op._mdf=!0,ut.transform.op.v=0):ut.transform.op._mdf=!1}pe+=1}this._currentCopies=ht;var st=this.o.v,bt=st%1,Ot=st>0?Math.floor(st):Math.ceil(st),Mt=this.pMatrix.props,gt=this.rMatrix.props,$e=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Me=0;if(st>0){for(;Me<Ot;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Me+=1;bt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,bt,!1),Me+=bt)}else if(st<0){for(;Me>Ot;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Me-=1;bt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-bt,!0),Me-=bt)}ce=this.data.m===1?0:this._currentCopies-1,ve=this.data.m===1?1:-1,pe=this._currentCopies;for(var Ie,Te;pe;){if(F=this.elemsData[ce].it,N=F[F.length-1].transform.mProps.v.props,Te=N.length,F[F.length-1].transform.mProps._mdf=!0,F[F.length-1].transform.op._mdf=!0,F[F.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(ce/(this._currentCopies-1)),Me!==0){for((ce!==0&&ve===1||ce!==this._currentCopies-1&&ve===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],gt[8],gt[9],gt[10],gt[11],gt[12],gt[13],gt[14],gt[15]),this.matrix.transform($e[0],$e[1],$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],$e[8],$e[9],$e[10],$e[11],$e[12],$e[13],$e[14],$e[15]),this.matrix.transform(Mt[0],Mt[1],Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],Mt[8],Mt[9],Mt[10],Mt[11],Mt[12],Mt[13],Mt[14],Mt[15]),Ie=0;Ie<Te;Ie+=1)N[Ie]=this.matrix.props[Ie];this.matrix.reset()}else for(this.matrix.reset(),Ie=0;Ie<Te;Ie+=1)N[Ie]=this.matrix.props[Ie];Me+=1,pe-=1,ce+=ve}}else for(pe=this._currentCopies,ce=0,ve=1;pe;)F=this.elemsData[ce].it,N=F[F.length-1].transform.mProps.v.props,F[F.length-1].transform.mProps._mdf=!1,F[F.length-1].transform.op._mdf=!1,pe-=1,ce+=ve;return Ge},hn.prototype.addShape=function(){},Wt.registerModifier(\"rp\",hn);function Pn(){this._length=0,this._maxLength=4,this.shapes=ue(this._maxLength)}Pn.prototype.addShape=function(b){this._length===this._maxLength&&(this.shapes=this.shapes.concat(ue(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=b,this._length+=1},Pn.prototype.releaseShapes=function(){var b;for(b=0;b<this._length;b+=1)vr.release(this.shapes[b]);this._length=0};function Mn(b,F,N,ce){this.elem=b,this.frameId=-1,this.dataProps=ue(F.length),this.renderer=N,this.k=!1,this.dashStr=\"\",this.dashArray=ie(\"float32\",F.length?F.length-1:0),this.dashoffset=ie(\"float32\",1),this.initDynamicPropertyContainer(ce);var ve,pe=F.length||0,Ge;for(ve=0;ve<pe;ve+=1)Ge=et.getProp(b,F[ve].v,0,0,this),this.k=Ge.k||this.k,this.dataProps[ve]={n:F[ve].n,p:Ge};this.k||this.getValue(!0),this._isAnimated=this.k}Mn.prototype.getValue=function(b){if(!(this.elem.globalData.frameId===this.frameId&&!b)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||b,this._mdf)){var F=0,N=this.dataProps.length;for(this.renderer===\"svg\"&&(this.dashStr=\"\"),F=0;F<N;F+=1)this.dataProps[F].n!==\"o\"?this.renderer===\"svg\"?this.dashStr+=\" \"+this.dataProps[F].p.v:this.dashArray[F]=this.dataProps[F].p.v:this.dashoffset[0]=this.dataProps[F].p.v}},X([we],Mn);function Un(b,F,N){this.data=F,this.c=ie(\"uint8c\",F.p*4);var ce=F.k.k[0].s?F.k.k[0].s.length-F.p*4:F.k.k.length-F.p*4;this.o=ie(\"float32\",ce),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=ce,this.initDynamicPropertyContainer(N),this.prop=et.getProp(b,F.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Un.prototype.comparePoints=function(b,F){for(var N=0,ce=this.o.length/2,ve;N<ce;){if(ve=Math.abs(b[N*4]-b[F*4+N*2]),ve>.01)return!1;N+=1}return!0},Un.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var b=0,F=this.data.k.k.length;b<F;){if(!this.comparePoints(this.data.k.k[b].s,this.data.p))return!1;b+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Un.prototype.getValue=function(b){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||b){var F,N=this.data.p*4,ce,ve;for(F=0;F<N;F+=1)ce=F%4===0?100:255,ve=Math.round(this.prop.v[F]*ce),this.c[F]!==ve&&(this.c[F]=ve,this._cmdf=!b);if(this.o.length)for(N=this.prop.v.length,F=this.data.p*4;F<N;F+=1)ce=F%2===0?100:1,ve=F%2===0?Math.round(this.prop.v[F]*100):this.prop.v[F],this.o[F-this.data.p*4]!==ve&&(this.o[F-this.data.p*4]=ve,this._omdf=!b);this._mdf=!b}},X([we],Un);var Wn=function(b,F,N,ce){if(F===0)return\"\";var ve=b.o,pe=b.i,Ge=b.v,ht,Xe=\" M\"+ce.applyToPointStringified(Ge[0][0],Ge[0][1]);for(ht=1;ht<F;ht+=1)Xe+=\" C\"+ce.applyToPointStringified(ve[ht-1][0],ve[ht-1][1])+\" \"+ce.applyToPointStringified(pe[ht][0],pe[ht][1])+\" \"+ce.applyToPointStringified(Ge[ht][0],Ge[ht][1]);return N&&F&&(Xe+=\" C\"+ce.applyToPointStringified(ve[ht-1][0],ve[ht-1][1])+\" \"+ce.applyToPointStringified(pe[0][0],pe[0][1])+\" \"+ce.applyToPointStringified(Ge[0][0],Ge[0][1]),Xe+=\"z\"),Xe},Kn=(function(){function b(F){this.audios=[],this.audioFactory=F,this._volume=1,this._isMuted=!1}return b.prototype={addAudio:function(F){this.audios.push(F)},pause:function(){var F,N=this.audios.length;for(F=0;F<N;F+=1)this.audios[F].pause()},resume:function(){var F,N=this.audios.length;for(F=0;F<N;F+=1)this.audios[F].resume()},setRate:function(F){var N,ce=this.audios.length;for(N=0;N<ce;N+=1)this.audios[N].setRate(F)},createAudio:function(F){return this.audioFactory?this.audioFactory(F):Howl?new Howl({src:[F]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(F){this.audioFactory=F},setVolume:function(F){this._volume=F,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var F,N=this.audios.length;for(F=0;F<N;F+=1)this.audios[F].volume(this._volume*(this._isMuted?0:1))}},function(){return new b}})(),Se=(function(){var b=(function(){var $e=Ee(\"canvas\");$e.width=1,$e.height=1;var Me=$e.getContext(\"2d\");return Me.fillStyle=\"rgba(0,0,0,0)\",Me.fillRect(0,0,1,1),$e})();function F(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function N(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function ce($e,Me,Ie){var Te=\"\";if($e.e)Te=$e.p;else if(Me){var Oe=$e.p;Oe.indexOf(\"images/\")!==-1&&(Oe=Oe.split(\"/\")[1]),Te=Me+Oe}else Te=Ie,Te+=$e.u?$e.u:\"\",Te+=$e.p;return Te}function ve($e){var Me=0,Ie=setInterval(function(){var Te=$e.getBBox();(Te.width||Me>500)&&(this._imageLoaded(),clearInterval(Ie)),Me+=1}.bind(this),50)}function pe($e){var Me=ce($e,this.assetsPath,this.path),Ie=q(\"image\");f?this.testImageLoaded(Ie):Ie.addEventListener(\"load\",this._imageLoaded,!1),Ie.addEventListener(\"error\",function(){Te.img=b,this._imageLoaded()}.bind(this),!1),Ie.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",Me),this._elementHelper.append?this._elementHelper.append(Ie):this._elementHelper.appendChild(Ie);var Te={img:Ie,assetData:$e};return Te}function Ge($e){var Me=ce($e,this.assetsPath,this.path),Ie=Ee(\"img\");Ie.crossOrigin=\"anonymous\",Ie.addEventListener(\"load\",this._imageLoaded,!1),Ie.addEventListener(\"error\",function(){Te.img=b,this._imageLoaded()}.bind(this),!1),Ie.src=Me;var Te={img:Ie,assetData:$e};return Te}function ht($e){var Me={assetData:$e},Ie=ce($e,this.assetsPath,this.path);return De.loadData(Ie,function(Te){Me.img=Te,this._footageLoaded()}.bind(this),function(){Me.img={},this._footageLoaded()}.bind(this)),Me}function Xe($e,Me){this.imagesLoadedCb=Me;var Ie,Te=$e.length;for(Ie=0;Ie<Te;Ie+=1)$e[Ie].layers||(!$e[Ie].t||$e[Ie].t===\"seq\"?(this.totalImages+=1,this.images.push(this._createImageData($e[Ie]))):$e[Ie].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData($e[Ie]))))}function It($e){this.path=$e||\"\"}function kt($e){this.assetsPath=$e||\"\"}function ut($e){for(var Me=0,Ie=this.images.length;Me<Ie;){if(this.images[Me].assetData===$e)return this.images[Me].img;Me+=1}return null}function st(){this.imagesLoadedCb=null,this.images.length=0}function bt(){return this.totalImages===this.loadedAssets}function Ot(){return this.totalFootages===this.loadedFootagesCount}function Mt($e,Me){$e===\"svg\"?(this._elementHelper=Me,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function gt(){this._imageLoaded=F.bind(this),this._footageLoaded=N.bind(this),this.testImageLoaded=ve.bind(this),this.createFootageData=ht.bind(this),this.assetsPath=\"\",this.path=\"\",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return gt.prototype={loadAssets:Xe,setAssetsPath:kt,setPath:It,loadedImages:bt,loadedFootages:Ot,destroy:st,getAsset:ut,createImgData:Ge,createImageData:pe,imageLoaded:F,footageLoaded:N,setCacheType:Mt},gt})(),it=(function(){var b={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\\\\/\\\\d./i.test(navigator.userAgent))&&(b.maskType=!1),b})(),Nt=(function(){var b={};b.createFilter=F,b.createAlphaToLuminanceFilter=N;function F(ce,ve){var pe=q(\"filter\");return pe.setAttribute(\"id\",ce),ve!==!0&&(pe.setAttribute(\"filterUnits\",\"objectBoundingBox\"),pe.setAttribute(\"x\",\"0%\"),pe.setAttribute(\"y\",\"0%\"),pe.setAttribute(\"width\",\"100%\"),pe.setAttribute(\"height\",\"100%\")),pe}function N(){var ce=q(\"feColorMatrix\");return ce.setAttribute(\"type\",\"matrix\"),ce.setAttribute(\"color-interpolation-filters\",\"sRGB\"),ce.setAttribute(\"values\",\"0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1\"),ce}return b})();function tn(b,F,N){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=b,this._renderType=F,this._elem=N,this._animatorsData=ue(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(N)}tn.prototype.searchProperties=function(){var b,F=this._textData.a.length,N,ce=et.getProp;for(b=0;b<F;b+=1)N=this._textData.a[b],this._animatorsData[b]=new pn(this._elem,N,this);this._textData.p&&\"m\"in this._textData.p?(this._pathData={a:ce(this._elem,this._textData.p.a,0,0,this),f:ce(this._elem,this._textData.p.f,0,0,this),l:ce(this._elem,this._textData.p.l,0,0,this),r:ce(this._elem,this._textData.p.r,0,0,this),p:ce(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=ce(this._elem,this._textData.m.a,1,0,this)},tn.prototype.getMeasures=function(b,F){if(this.lettersChangedFlag=F,!(!this._mdf&&!this._isFirstFrame&&!F&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var N=this._moreOptions.alignment.v,ce=this._animatorsData,ve=this._textData,pe=this.mHelper,Ge=this._renderType,ht=this.renderedLetters.length,Xe,It,kt,ut,st=b.l,bt,Ot,Mt,gt,$e,Me,Ie,Te,Oe,Ze,We,ct,fn,Rn,On;if(this._hasMaskedPath){if(On=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ln=On.v;this._pathData.r.v&&(Ln=Ln.reverse()),bt={tLength:0,segments:[]},ut=Ln._length-1;var un;for(ct=0,kt=0;kt<ut;kt+=1)un=Pe.buildBezierData(Ln.v[kt],Ln.v[kt+1],[Ln.o[kt][0]-Ln.v[kt][0],Ln.o[kt][1]-Ln.v[kt][1]],[Ln.i[kt+1][0]-Ln.v[kt+1][0],Ln.i[kt+1][1]-Ln.v[kt+1][1]]),bt.tLength+=un.segmentLength,bt.segments.push(un),ct+=un.segmentLength;kt=ut,On.v.c&&(un=Pe.buildBezierData(Ln.v[kt],Ln.v[0],[Ln.o[kt][0]-Ln.v[kt][0],Ln.o[kt][1]-Ln.v[kt][1]],[Ln.i[0][0]-Ln.v[0][0],Ln.i[0][1]-Ln.v[0][1]]),bt.tLength+=un.segmentLength,bt.segments.push(un),ct+=un.segmentLength),this._pathData.pi=bt}if(bt=this._pathData.pi,Ot=this._pathData.f.v,Ie=0,Me=1,gt=0,$e=!0,Ze=bt.segments,Ot<0&&On.v.c)for(bt.tLength<Math.abs(Ot)&&(Ot=-Math.abs(Ot)%bt.tLength),Ie=Ze.length-1,Oe=Ze[Ie].points,Me=Oe.length-1;Ot<0;)Ot+=Oe[Me].partialLength,Me-=1,Me<0&&(Ie-=1,Oe=Ze[Ie].points,Me=Oe.length-1);Oe=Ze[Ie].points,Te=Oe[Me-1],Mt=Oe[Me],We=Mt.partialLength}ut=st.length,Xe=0,It=0;var bn=b.finalSize*1.2*.714,mn=!0,Ye,Ue,Je,jt,wn;jt=ce.length;var dn,Pr=-1,ro,Gr,Yi,zi=Ot,Ka=Ie,Ga=Me,ia=-1,Zi,Ti,ba,nr,di,lc,gs,Dc,Fc=\"\",ul=this.defaultPropsArray,dl;if(b.j===2||b.j===1){var ys=0,fl=0,_a=b.j===2?-.5:-1,uc=0,pl=!0;for(kt=0;kt<ut;kt+=1)if(st[kt].n){for(ys&&(ys+=fl);uc<kt;)st[uc].animatorJustifyOffset=ys,uc+=1;ys=0,pl=!0}else{for(Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.t.propType&&(pl&&b.j===2&&(fl+=Ye.t.v*_a),Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),dn.length?ys+=Ye.t.v*dn[0]*_a:ys+=Ye.t.v*dn*_a);pl=!1}for(ys&&(ys+=fl);uc<kt;)st[uc].animatorJustifyOffset=ys,uc+=1}for(kt=0;kt<ut;kt+=1){if(pe.reset(),Zi=1,st[kt].n)Xe=0,It+=b.yOffset,It+=mn?1:0,Ot=zi,mn=!1,this._hasMaskedPath&&(Ie=Ka,Me=Ga,Oe=Ze[Ie].points,Te=Oe[Me-1],Mt=Oe[Me],We=Mt.partialLength,gt=0),Fc=\"\",Dc=\"\",lc=\"\",dl=\"\",ul=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ia!==st[kt].line){switch(b.j){case 1:Ot+=ct-b.lineWidths[st[kt].line];break;case 2:Ot+=(ct-b.lineWidths[st[kt].line])/2;break;default:break}ia=st[kt].line}Pr!==st[kt].ind&&(st[Pr]&&(Ot+=st[Pr].extra),Ot+=st[kt].an/2,Pr=st[kt].ind),Ot+=N[0]*st[kt].an*.005;var vs=0;for(Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.p.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),dn.length?vs+=Ye.p.v[0]*dn[0]:vs+=Ye.p.v[0]*dn),Ye.a.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),dn.length?vs+=Ye.a.v[0]*dn[0]:vs+=Ye.a.v[0]*dn);for($e=!0,this._pathData.a.v&&(Ot=st[0].an*.5+(ct-this._pathData.f.v-st[0].an*.5-st[st.length-1].an*.5)*Pr/(ut-1),Ot+=this._pathData.f.v);$e;)gt+We>=Ot+vs||!Oe?(fn=(Ot+vs-gt)/Mt.partialLength,Gr=Te.point[0]+(Mt.point[0]-Te.point[0])*fn,Yi=Te.point[1]+(Mt.point[1]-Te.point[1])*fn,pe.translate(-N[0]*st[kt].an*.005,-(N[1]*bn)*.01),$e=!1):Oe&&(gt+=Mt.partialLength,Me+=1,Me>=Oe.length&&(Me=0,Ie+=1,Ze[Ie]?Oe=Ze[Ie].points:On.v.c?(Me=0,Ie=0,Oe=Ze[Ie].points):(gt-=Mt.partialLength,Oe=null)),Oe&&(Te=Mt,Mt=Oe[Me],We=Mt.partialLength));ro=st[kt].an/2-st[kt].add,pe.translate(-ro,0,0)}else ro=st[kt].an/2-st[kt].add,pe.translate(-ro,0,0),pe.translate(-N[0]*st[kt].an*.005,-N[1]*bn*.01,0);for(Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.t.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),(Xe!==0||b.j!==0)&&(this._hasMaskedPath?dn.length?Ot+=Ye.t.v*dn[0]:Ot+=Ye.t.v*dn:dn.length?Xe+=Ye.t.v*dn[0]:Xe+=Ye.t.v*dn));for(b.strokeWidthAnim&&(ba=b.sw||0),b.strokeColorAnim&&(b.sc?Ti=[b.sc[0],b.sc[1],b.sc[2]]:Ti=[0,0,0]),b.fillColorAnim&&b.fc&&(nr=[b.fc[0],b.fc[1],b.fc[2]]),Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.a.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),dn.length?pe.translate(-Ye.a.v[0]*dn[0],-Ye.a.v[1]*dn[1],Ye.a.v[2]*dn[2]):pe.translate(-Ye.a.v[0]*dn,-Ye.a.v[1]*dn,Ye.a.v[2]*dn));for(Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.s.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),dn.length?pe.scale(1+(Ye.s.v[0]-1)*dn[0],1+(Ye.s.v[1]-1)*dn[1],1):pe.scale(1+(Ye.s.v[0]-1)*dn,1+(Ye.s.v[1]-1)*dn,1));for(Je=0;Je<jt;Je+=1){if(Ye=ce[Je].a,Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),Ye.sk.propType&&(dn.length?pe.skewFromAxis(-Ye.sk.v*dn[0],Ye.sa.v*dn[1]):pe.skewFromAxis(-Ye.sk.v*dn,Ye.sa.v*dn)),Ye.r.propType&&(dn.length?pe.rotateZ(-Ye.r.v*dn[2]):pe.rotateZ(-Ye.r.v*dn)),Ye.ry.propType&&(dn.length?pe.rotateY(Ye.ry.v*dn[1]):pe.rotateY(Ye.ry.v*dn)),Ye.rx.propType&&(dn.length?pe.rotateX(Ye.rx.v*dn[0]):pe.rotateX(Ye.rx.v*dn)),Ye.o.propType&&(dn.length?Zi+=(Ye.o.v*dn[0]-Zi)*dn[0]:Zi+=(Ye.o.v*dn-Zi)*dn),b.strokeWidthAnim&&Ye.sw.propType&&(dn.length?ba+=Ye.sw.v*dn[0]:ba+=Ye.sw.v*dn),b.strokeColorAnim&&Ye.sc.propType)for(di=0;di<3;di+=1)dn.length?Ti[di]+=(Ye.sc.v[di]-Ti[di])*dn[0]:Ti[di]+=(Ye.sc.v[di]-Ti[di])*dn;if(b.fillColorAnim&&b.fc){if(Ye.fc.propType)for(di=0;di<3;di+=1)dn.length?nr[di]+=(Ye.fc.v[di]-nr[di])*dn[0]:nr[di]+=(Ye.fc.v[di]-nr[di])*dn;Ye.fh.propType&&(dn.length?nr=ye(nr,Ye.fh.v*dn[0]):nr=ye(nr,Ye.fh.v*dn)),Ye.fs.propType&&(dn.length?nr=w(nr,Ye.fs.v*dn[0]):nr=w(nr,Ye.fs.v*dn)),Ye.fb.propType&&(dn.length?nr=I(nr,Ye.fb.v*dn[0]):nr=I(nr,Ye.fb.v*dn))}}for(Je=0;Je<jt;Je+=1)Ye=ce[Je].a,Ye.p.propType&&(Ue=ce[Je].s,dn=Ue.getMult(st[kt].anIndexes[Je],ve.a[Je].s.totalChars),this._hasMaskedPath?dn.length?pe.translate(0,Ye.p.v[1]*dn[0],-Ye.p.v[2]*dn[1]):pe.translate(0,Ye.p.v[1]*dn,-Ye.p.v[2]*dn):dn.length?pe.translate(Ye.p.v[0]*dn[0],Ye.p.v[1]*dn[1],-Ye.p.v[2]*dn[2]):pe.translate(Ye.p.v[0]*dn,Ye.p.v[1]*dn,-Ye.p.v[2]*dn));if(b.strokeWidthAnim&&(lc=ba<0?0:ba),b.strokeColorAnim&&(gs=\"rgb(\"+Math.round(Ti[0]*255)+\",\"+Math.round(Ti[1]*255)+\",\"+Math.round(Ti[2]*255)+\")\"),b.fillColorAnim&&b.fc&&(Dc=\"rgb(\"+Math.round(nr[0]*255)+\",\"+Math.round(nr[1]*255)+\",\"+Math.round(nr[2]*255)+\")\"),this._hasMaskedPath){if(pe.translate(0,-b.ls),pe.translate(0,N[1]*bn*.01+It,0),this._pathData.p.v){Rn=(Mt.point[1]-Te.point[1])/(Mt.point[0]-Te.point[0]);var Ds=Math.atan(Rn)*180/Math.PI;Mt.point[0]<Te.point[0]&&(Ds+=180),pe.rotate(-Ds*Math.PI/180)}pe.translate(Gr,Yi,0),Ot-=N[0]*st[kt].an*.005,st[kt+1]&&Pr!==st[kt+1].ind&&(Ot+=st[kt].an/2,Ot+=b.tr*.001*b.finalSize)}else{switch(pe.translate(Xe,It,0),b.ps&&pe.translate(b.ps[0],b.ps[1]+b.ascent,0),b.j){case 1:pe.translate(st[kt].animatorJustifyOffset+b.justifyOffset+(b.boxWidth-b.lineWidths[st[kt].line]),0,0);break;case 2:pe.translate(st[kt].animatorJustifyOffset+b.justifyOffset+(b.boxWidth-b.lineWidths[st[kt].line])/2,0,0);break;default:break}pe.translate(0,-b.ls),pe.translate(ro,0,0),pe.translate(N[0]*st[kt].an*.005,N[1]*bn*.01,0),Xe+=st[kt].l+b.tr*.001*b.finalSize}Ge===\"html\"?Fc=pe.toCSS():Ge===\"svg\"?Fc=pe.to2dCSS():ul=[pe.props[0],pe.props[1],pe.props[2],pe.props[3],pe.props[4],pe.props[5],pe.props[6],pe.props[7],pe.props[8],pe.props[9],pe.props[10],pe.props[11],pe.props[12],pe.props[13],pe.props[14],pe.props[15]],dl=Zi}ht<=kt?(wn=new kn(dl,lc,gs,Dc,Fc,ul),this.renderedLetters.push(wn),ht+=1,this.lettersChangedFlag=!0):(wn=this.renderedLetters[kt],this.lettersChangedFlag=wn.update(dl,lc,gs,Dc,Fc,ul)||this.lettersChangedFlag)}}},tn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},tn.prototype.mHelper=new C,tn.prototype.defaultPropsArray=[],X([we],tn);function pn(b,F,N){var ce={propType:!1},ve=et.getProp,pe=F.a;this.a={r:pe.r?ve(b,pe.r,0,D,N):ce,rx:pe.rx?ve(b,pe.rx,0,D,N):ce,ry:pe.ry?ve(b,pe.ry,0,D,N):ce,sk:pe.sk?ve(b,pe.sk,0,D,N):ce,sa:pe.sa?ve(b,pe.sa,0,D,N):ce,s:pe.s?ve(b,pe.s,1,.01,N):ce,a:pe.a?ve(b,pe.a,1,0,N):ce,o:pe.o?ve(b,pe.o,0,.01,N):ce,p:pe.p?ve(b,pe.p,1,0,N):ce,sw:pe.sw?ve(b,pe.sw,0,0,N):ce,sc:pe.sc?ve(b,pe.sc,1,0,N):ce,fc:pe.fc?ve(b,pe.fc,1,0,N):ce,fh:pe.fh?ve(b,pe.fh,0,0,N):ce,fs:pe.fs?ve(b,pe.fs,0,.01,N):ce,fb:pe.fb?ve(b,pe.fb,0,.01,N):ce,t:pe.t?ve(b,pe.t,0,0,N):ce},this.s=_n.getTextSelectorProp(b,F.s,N),this.s.t=F.s.t}function kn(b,F,N,ce,ve,pe){this.o=b,this.sw=F,this.sc=N,this.fc=ce,this.m=ve,this.p=pe,this._mdf={o:!0,sw:!!F,sc:!!N,fc:!!ce,m:!0,p:!0}}kn.prototype.update=function(b,F,N,ce,ve,pe){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Ge=!1;return this.o!==b&&(this.o=b,this._mdf.o=!0,Ge=!0),this.sw!==F&&(this.sw=F,this._mdf.sw=!0,Ge=!0),this.sc!==N&&(this.sc=N,this._mdf.sc=!0,Ge=!0),this.fc!==ce&&(this.fc=ce,this._mdf.fc=!0,Ge=!0),this.m!==ve&&(this.m=ve,this._mdf.m=!0,Ge=!0),pe.length&&(this.p[0]!==pe[0]||this.p[1]!==pe[1]||this.p[4]!==pe[4]||this.p[5]!==pe[5]||this.p[12]!==pe[12]||this.p[13]!==pe[13])&&(this.p=pe,this._mdf.p=!0,Ge=!0),Ge};function zn(b,F){this._frameId=r,this.pv=\"\",this.v=\"\",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=F,this.elem=b,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:\"\",fStyle:\"\",fWeight:\"\",fc:\"\",j:\"\",justifyOffset:\"\",l:[],lh:0,lineWidths:[],ls:\"\",of:\"\",s:\"\",sc:\"\",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}zn.prototype.defaultBoxWidth=[0,0],zn.prototype.copyData=function(b,F){for(var N in F)Object.prototype.hasOwnProperty.call(F,N)&&(b[N]=F[N]);return b},zn.prototype.setCurrentData=function(b){b.__complete||this.completeTextData(b),this.currentData=b,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},zn.prototype.searchProperty=function(){return this.searchKeyframes()},zn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},zn.prototype.addEffect=function(b){this.effectsSequence.push(b),this.elem.addDynamicProperty(this)},zn.prototype.getValue=function(b){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!b)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var F=this.currentData,N=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var ce,ve=this.effectsSequence.length,pe=b||this.data.d.k[this.keysIndex].s;for(ce=0;ce<ve;ce+=1)N!==this.keysIndex?pe=this.effectsSequence[ce](pe,pe.t):pe=this.effectsSequence[ce](this.currentData,pe.t);F!==pe&&this.setCurrentData(pe),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},zn.prototype.getKeyframeValue=function(){for(var b=this.data.d.k,F=this.elem.comp.renderedFrame,N=0,ce=b.length;N<=ce-1&&!(N===ce-1||b[N+1].t>F);)N+=1;return this.keysIndex!==N&&(this.keysIndex=N),this.data.d.k[this.keysIndex].s},zn.prototype.buildFinalText=function(b){for(var F=[],N=0,ce=b.length,ve,pe,Ge=!1;N<ce;)ve=b.charCodeAt(N),qe.isCombinedCharacter(ve)?F[F.length-1]+=b.charAt(N):ve>=55296&&ve<=56319?(pe=b.charCodeAt(N+1),pe>=56320&&pe<=57343?(Ge||qe.isModifier(ve,pe)?(F[F.length-1]+=b.substr(N,2),Ge=!1):F.push(b.substr(N,2)),N+=1):F.push(b.charAt(N))):ve>56319?(pe=b.charCodeAt(N+1),qe.isZeroWidthJoiner(ve,pe)?(Ge=!0,F[F.length-1]+=b.substr(N,2),N+=1):F.push(b.charAt(N))):qe.isZeroWidthJoiner(ve)?(F[F.length-1]+=b.charAt(N),Ge=!0):F.push(b.charAt(N)),N+=1;return F},zn.prototype.completeTextData=function(b){b.__complete=!0;var F=this.elem.globalData.fontManager,N=this.data,ce=[],ve,pe,Ge,ht=0,Xe,It=N.m.g,kt=0,ut=0,st=0,bt=[],Ot=0,Mt=0,gt,$e,Me=F.getFontByName(b.f),Ie,Te=0,Oe=Re(Me);b.fWeight=Oe.weight,b.fStyle=Oe.style,b.finalSize=b.s,b.finalText=this.buildFinalText(b.t),pe=b.finalText.length,b.finalLineHeight=b.lh;var Ze=b.tr/1e3*b.finalSize,We;if(b.sz)for(var ct=!0,fn=b.sz[0],Rn=b.sz[1],On,Ln;ct;){Ln=this.buildFinalText(b.t),On=0,Ot=0,pe=Ln.length,Ze=b.tr/1e3*b.finalSize;var un=-1;for(ve=0;ve<pe;ve+=1)We=Ln[ve].charCodeAt(0),Ge=!1,Ln[ve]===\" \"?un=ve:(We===13||We===3)&&(Ot=0,Ge=!0,On+=b.finalLineHeight||b.finalSize*1.2),F.chars?(Ie=F.getCharData(Ln[ve],Me.fStyle,Me.fFamily),Te=Ge?0:Ie.w*b.finalSize/100):Te=F.measureText(Ln[ve],b.f,b.finalSize),Ot+Te>fn&&Ln[ve]!==\" \"?(un===-1?pe+=1:ve=un,On+=b.finalLineHeight||b.finalSize*1.2,Ln.splice(ve,un===ve?1:0,\"\\\\r\"),un=-1,Ot=0):(Ot+=Te,Ot+=Ze);On+=Me.ascent*b.finalSize/100,this.canResize&&b.finalSize>this.minimumFontSize&&Rn<On?(b.finalSize-=1,b.finalLineHeight=b.finalSize*b.lh/b.s):(b.finalText=Ln,pe=b.finalText.length,ct=!1)}Ot=-Ze,Te=0;var bn=0,mn;for(ve=0;ve<pe;ve+=1)if(Ge=!1,mn=b.finalText[ve],We=mn.charCodeAt(0),We===13||We===3?(bn=0,bt.push(Ot),Mt=Ot>Mt?Ot:Mt,Ot=-2*Ze,Xe=\"\",Ge=!0,st+=1):Xe=mn,F.chars?(Ie=F.getCharData(mn,Me.fStyle,F.getFontByName(b.f).fFamily),Te=Ge?0:Ie.w*b.finalSize/100):Te=F.measureText(Xe,b.f,b.finalSize),mn===\" \"?bn+=Te+Ze:(Ot+=Te+Ze+bn,bn=0),ce.push({l:Te,an:Te,add:kt,n:Ge,anIndexes:[],val:Xe,line:st,animatorJustifyOffset:0}),It==2){if(kt+=Te,Xe===\"\"||Xe===\" \"||ve===pe-1){for((Xe===\"\"||Xe===\" \")&&(kt-=Te);ut<=ve;)ce[ut].an=kt,ce[ut].ind=ht,ce[ut].extra=Te,ut+=1;ht+=1,kt=0}}else if(It==3){if(kt+=Te,Xe===\"\"||ve===pe-1){for(Xe===\"\"&&(kt-=Te);ut<=ve;)ce[ut].an=kt,ce[ut].ind=ht,ce[ut].extra=Te,ut+=1;kt=0,ht+=1}}else ce[ht].ind=ht,ce[ht].extra=0,ht+=1;if(b.l=ce,Mt=Ot>Mt?Ot:Mt,bt.push(Ot),b.sz)b.boxWidth=b.sz[0],b.justifyOffset=0;else switch(b.boxWidth=Mt,b.j){case 1:b.justifyOffset=-b.boxWidth;break;case 2:b.justifyOffset=-b.boxWidth/2;break;default:b.justifyOffset=0}b.lineWidths=bt;var Ye=N.a,Ue,Je;$e=Ye.length;var jt,wn,dn=[];for(gt=0;gt<$e;gt+=1){for(Ue=Ye[gt],Ue.a.sc&&(b.strokeColorAnim=!0),Ue.a.sw&&(b.strokeWidthAnim=!0),(Ue.a.fc||Ue.a.fh||Ue.a.fs||Ue.a.fb)&&(b.fillColorAnim=!0),wn=0,jt=Ue.s.b,ve=0;ve<pe;ve+=1)Je=ce[ve],Je.anIndexes[gt]=wn,(jt==1&&Je.val!==\"\"||jt==2&&Je.val!==\"\"&&Je.val!==\" \"||jt==3&&(Je.n||Je.val==\" \"||ve==pe-1)||jt==4&&(Je.n||ve==pe-1))&&(Ue.s.rn===1&&dn.push(wn),wn+=1);N.a[gt].s.totalChars=wn;var Pr=-1,ro;if(Ue.s.rn===1)for(ve=0;ve<pe;ve+=1)Je=ce[ve],Pr!=Je.anIndexes[gt]&&(Pr=Je.anIndexes[gt],ro=dn.splice(Math.floor(Math.random()*dn.length),1)[0]),Je.anIndexes[gt]=ro}b.yOffset=b.finalLineHeight||b.finalSize*1.2,b.ls=b.ls||0,b.ascent=Me.ascent*b.finalSize/100},zn.prototype.updateDocumentData=function(b,F){F=F===void 0?this.keysIndex:F;var N=this.copyData({},this.data.d.k[F].s);N=this.copyData(N,b),this.data.d.k[F].s=N,this.recalculate(F),this.elem.addDynamicProperty(this)},zn.prototype.recalculate=function(b){var F=this.data.d.k[b].s;F.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(F)},zn.prototype.canResizeFont=function(b){this.canResize=b,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},zn.prototype.setMinimumFontSize=function(b){this.minimumFontSize=Math.floor(b)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var _n=(function(){var b=Math.max,F=Math.min,N=Math.floor;function ce(pe,Ge){this._currentTextLength=-1,this.k=!1,this.data=Ge,this.elem=pe,this.comp=pe.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(pe),this.s=et.getProp(pe,Ge.s||{k:0},0,0,this),\"e\"in Ge?this.e=et.getProp(pe,Ge.e,0,0,this):this.e={v:100},this.o=et.getProp(pe,Ge.o||{k:0},0,0,this),this.xe=et.getProp(pe,Ge.xe||{k:0},0,0,this),this.ne=et.getProp(pe,Ge.ne||{k:0},0,0,this),this.sm=et.getProp(pe,Ge.sm||{k:100},0,0,this),this.a=et.getProp(pe,Ge.a,0,.01,this),this.dynamicProperties.length||this.getValue()}ce.prototype={getMult:function(pe){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Ge=0,ht=0,Xe=1,It=1;this.ne.v>0?Ge=this.ne.v/100:ht=-this.ne.v/100,this.xe.v>0?Xe=1-this.xe.v/100:It=1+this.xe.v/100;var kt=Z.getBezierEasing(Ge,ht,Xe,It).get,ut=0,st=this.finalS,bt=this.finalE,Ot=this.data.sh;if(Ot===2)bt===st?ut=pe>=bt?1:0:ut=b(0,F(.5/(bt-st)+(pe-st)/(bt-st),1)),ut=kt(ut);else if(Ot===3)bt===st?ut=pe>=bt?0:1:ut=1-b(0,F(.5/(bt-st)+(pe-st)/(bt-st),1)),ut=kt(ut);else if(Ot===4)bt===st?ut=0:(ut=b(0,F(.5/(bt-st)+(pe-st)/(bt-st),1)),ut<.5?ut*=2:ut=1-2*(ut-.5)),ut=kt(ut);else if(Ot===5){if(bt===st)ut=0;else{var Mt=bt-st;pe=F(b(0,pe+.5-st),bt-st);var gt=-Mt/2+pe,$e=Mt/2;ut=Math.sqrt(1-gt*gt/($e*$e))}ut=kt(ut)}else Ot===6?(bt===st?ut=0:(pe=F(b(0,pe+.5-st),bt-st),ut=(1+Math.cos(Math.PI+Math.PI*2*pe/(bt-st)))/2),ut=kt(ut)):(pe>=N(st)&&(pe-st<0?ut=b(0,F(F(bt,1)-(st-pe),1)):ut=b(0,F(bt-pe,1))),ut=kt(ut));if(this.sm.v!==100){var Me=this.sm.v*.01;Me===0&&(Me=1e-8);var Ie=.5-Me*.5;ut<Ie?ut=0:(ut=(ut-Ie)/Me,ut>1&&(ut=1))}return ut*this.a.v},getValue:function(pe){this.iterateDynamicProperties(),this._mdf=pe||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,pe&&this.data.r===2&&(this.e.v=this._currentTextLength);var Ge=this.data.r===2?1:100/this.data.totalChars,ht=this.o.v/Ge,Xe=this.s.v/Ge+ht,It=this.e.v/Ge+ht;if(Xe>It){var kt=Xe;Xe=It,It=kt}this.finalS=Xe,this.finalE=It}},X([we],ce);function ve(pe,Ge,ht){return new ce(pe,Ge,ht)}return{getTextSelectorProp:ve}})(),Dn=(function(){return function(b,F,N){var ce=0,ve=b,pe=ue(ve),Ge={newElement:ht,release:Xe};function ht(){var It;return ce?(ce-=1,It=pe[ce]):It=F(),It}function Xe(It){ce===ve&&(pe=_r.double(pe),ve*=2),N&&N(It),pe[ce]=It,ce+=1}return Ge}})(),_r=(function(){function b(F){return F.concat(ue(F.length))}return{double:b}})(),pr=(function(){function b(){return ie(\"float32\",2)}return Dn(8,b)})(),vr=(function(){function b(){return new Qe}function F(ve){var pe=ve._length,Ge;for(Ge=0;Ge<pe;Ge+=1)pr.release(ve.v[Ge]),pr.release(ve.i[Ge]),pr.release(ve.o[Ge]),ve.v[Ge]=null,ve.i[Ge]=null,ve.o[Ge]=null;ve._length=0,ve.c=!1}function N(ve){var pe=ce.newElement(),Ge,ht=ve._length===void 0?ve.v.length:ve._length;for(pe.setLength(ht),pe.c=ve.c,Ge=0;Ge<ht;Ge+=1)pe.setTripleAt(ve.v[Ge][0],ve.v[Ge][1],ve.o[Ge][0],ve.o[Ge][1],ve.i[Ge][0],ve.i[Ge][1],Ge);return pe}var ce=Dn(4,b,F);return ce.clone=N,ce})(),vo=(function(){var b={newShapeCollection:ve,release:pe},F=0,N=4,ce=ue(N);function ve(){var Ge;return F?(F-=1,Ge=ce[F]):Ge=new Pn,Ge}function pe(Ge){var ht,Xe=Ge._length;for(ht=0;ht<Xe;ht+=1)vr.release(Ge.shapes[ht]);Ge._length=0,F===N&&(ce=_r.double(ce),N*=2),ce[F]=Ge,F+=1}return b})(),jr=(function(){function b(){return{lengths:[],totalLength:0}}function F(N){var ce,ve=N.lengths.length;for(ce=0;ce<ve;ce+=1)Mr.release(N.lengths[ce]);N.lengths.length=0}return Dn(8,b,F)})(),Mr=(function(){function b(){return{addedLength:0,percents:ie(\"float32\",V),lengths:ie(\"float32\",V)}}return Dn(8,b)})(),wi=(function(){function b(F){for(var N=F.split(`\\\\r\\n`),ce={},ve,pe=0,Ge=0;Ge<N.length;Ge+=1)ve=N[Ge].split(\":\"),ve.length===2&&(ce[ve[0]]=ve[1].trim(),pe+=1);if(pe===0)throw new Error;return ce}return function(F){for(var N=[],ce=0;ce<F.length;ce+=1){var ve=F[ce],pe={time:ve.tm,duration:ve.dr};try{pe.payload=JSON.parse(F[ce].cm)}catch{try{pe.payload=b(F[ce].cm)}catch{pe.payload={name:F[ce]}}}N.push(pe)}return N}})();function fe(){}fe.prototype.checkLayers=function(b){var F,N=this.layers.length,ce;for(this.completeLayers=!0,F=N-1;F>=0;F-=1)this.elements[F]||(ce=this.layers[F],ce.ip-ce.st<=b-this.layers[F].st&&ce.op-ce.st>b-this.layers[F].st&&this.buildItem(F)),this.completeLayers=this.elements[F]?this.completeLayers:!1;this.checkPendingElements()},fe.prototype.createItem=function(b){switch(b.ty){case 2:return this.createImage(b);case 0:return this.createComp(b);case 1:return this.createSolid(b);case 3:return this.createNull(b);case 4:return this.createShape(b);case 5:return this.createText(b);case 6:return this.createAudio(b);case 13:return this.createCamera(b);case 15:return this.createFootage(b);default:return this.createNull(b)}},fe.prototype.createCamera=function(){throw new Error(\"You\\'re using a 3d camera. Try the html renderer.\")},fe.prototype.createAudio=function(b){return new ft(b,this.globalData,this)},fe.prototype.createFootage=function(b){return new FootageElement(b,this.globalData,this)},fe.prototype.buildAllItems=function(){var b,F=this.layers.length;for(b=0;b<F;b+=1)this.buildItem(b);this.checkPendingElements()},fe.prototype.includeLayers=function(b){this.completeLayers=!1;var F,N=b.length,ce,ve=this.layers.length;for(F=0;F<N;F+=1)for(ce=0;ce<ve;){if(this.layers[ce].id===b[F].id){this.layers[ce]=b[F];break}ce+=1}},fe.prototype.setProjectInterface=function(b){this.globalData.projectInterface=b},fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},fe.prototype.buildElementParenting=function(b,F,N){for(var ce=this.elements,ve=this.layers,pe=0,Ge=ve.length;pe<Ge;)ve[pe].ind==F&&(!ce[pe]||ce[pe]===!0?(this.buildItem(pe),this.addPendingElement(b)):(N.push(ce[pe]),ce[pe].setAsParent(),ve[pe].parent!==void 0?this.buildElementParenting(b,ve[pe].parent,N):b.setHierarchy(N))),pe+=1},fe.prototype.addPendingElement=function(b){this.pendingElements.push(b)},fe.prototype.searchExtraCompositions=function(b){var F,N=b.length;for(F=0;F<N;F+=1)if(b[F].xt){var ce=this.createComp(b[F]);ce.initExpressions(),this.globalData.projectInterface.registerComposition(ce)}},fe.prototype.setupGlobalData=function(b,F){this.globalData.fontManager=new qe,this.globalData.fontManager.addChars(b.chars),this.globalData.fontManager.addFonts(b.fonts,F),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=b.fr,this.globalData.nm=b.nm,this.globalData.compSize={w:b.w,h:b.h}};function Be(b,F){this.animationItem=b,this.layers=null,this.renderedFrame=-1,this.svgElement=q(\"svg\");var N=\"\";if(F&&F.title){var ce=q(\"title\"),ve=L();ce.setAttribute(\"id\",ve),ce.textContent=F.title,this.svgElement.appendChild(ce),N+=ve}if(F&&F.description){var pe=q(\"desc\"),Ge=L();pe.setAttribute(\"id\",Ge),pe.textContent=F.description,this.svgElement.appendChild(pe),N+=\" \"+Ge}N&&this.svgElement.setAttribute(\"aria-labelledby\",N);var ht=q(\"defs\");this.svgElement.appendChild(ht);var Xe=q(\"g\");this.svgElement.appendChild(Xe),this.layerElement=Xe,this.renderConfig={preserveAspectRatio:F&&F.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:F&&F.contentVisibility||\"visible\",progressiveLoad:F&&F.progressiveLoad||!1,hideOnTransparent:!(F&&F.hideOnTransparent===!1),viewBoxOnly:F&&F.viewBoxOnly||!1,viewBoxSize:F&&F.viewBoxSize||!1,className:F&&F.className||\"\",id:F&&F.id||\"\",focusable:F&&F.focusable,filterSize:{width:F&&F.filterSize&&F.filterSize.width||\"100%\",height:F&&F.filterSize&&F.filterSize.height||\"100%\",x:F&&F.filterSize&&F.filterSize.x||\"0%\",y:F&&F.filterSize&&F.filterSize.y||\"0%\"}},this.globalData={_mdf:!1,frameNum:-1,defs:ht,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType=\"svg\"}X([fe],Be),Be.prototype.createNull=function(b){return new sn(b,this.globalData,this)},Be.prototype.createShape=function(b){return new lt(b,this.globalData,this)},Be.prototype.createText=function(b){return new rt(b,this.globalData,this)},Be.prototype.createImage=function(b){return new Gt(b,this.globalData,this)},Be.prototype.createComp=function(b){return new at(b,this.globalData,this)},Be.prototype.createSolid=function(b){return new vt(b,this.globalData,this)},Be.prototype.configAnimation=function(b){this.svgElement.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute(\"viewBox\",this.renderConfig.viewBoxSize):this.svgElement.setAttribute(\"viewBox\",\"0 0 \"+b.w+\" \"+b.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute(\"width\",b.w),this.svgElement.setAttribute(\"height\",b.h),this.svgElement.style.width=\"100%\",this.svgElement.style.height=\"100%\",this.svgElement.style.transform=\"translate3d(0,0,0)\",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.className&&this.svgElement.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute(\"id\",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute(\"focusable\",this.renderConfig.focusable),this.svgElement.setAttribute(\"preserveAspectRatio\",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var F=this.globalData.defs;this.setupGlobalData(b,F),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=b;var N=q(\"clipPath\"),ce=q(\"rect\");ce.setAttribute(\"width\",b.w),ce.setAttribute(\"height\",b.h),ce.setAttribute(\"x\",0),ce.setAttribute(\"y\",0);var ve=L();N.setAttribute(\"id\",ve),N.appendChild(ce),this.layerElement.setAttribute(\"clip-path\",\"url(\"+n+\"#\"+ve+\")\"),F.appendChild(N),this.layers=b.layers,this.elements=ue(b.layers.length)},Be.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.layerElement=null,this.globalData.defs=null;var b,F=this.layers?this.layers.length:0;for(b=0;b<F;b+=1)this.elements[b]&&this.elements[b].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Be.prototype.updateContainerSize=function(){},Be.prototype.buildItem=function(b){var F=this.elements;if(!(F[b]||this.layers[b].ty===99)){F[b]=!0;var N=this.createItem(this.layers[b]);F[b]=N,l&&(this.layers[b].ty===0&&this.globalData.projectInterface.registerComposition(N),N.initExpressions()),this.appendElementInPos(N,b),this.layers[b].tt&&(!this.elements[b-1]||this.elements[b-1]===!0?(this.buildItem(b-1),this.addPendingElement(N)):N.setMatte(F[b-1].layerId))}},Be.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var b=this.pendingElements.pop();if(b.checkParenting(),b.data.tt)for(var F=0,N=this.elements.length;F<N;){if(this.elements[F]===b){b.setMatte(this.elements[F-1].layerId);break}F+=1}}},Be.prototype.renderFrame=function(b){if(!(this.renderedFrame===b||this.destroyed)){b===null?b=this.renderedFrame:this.renderedFrame=b,this.globalData.frameNum=b,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=b,this.globalData._mdf=!1;var F,N=this.layers.length;for(this.completeLayers||this.checkLayers(b),F=N-1;F>=0;F-=1)(this.completeLayers||this.elements[F])&&this.elements[F].prepareFrame(b-this.layers[F].st);if(this.globalData._mdf)for(F=0;F<N;F+=1)(this.completeLayers||this.elements[F])&&this.elements[F].renderFrame()}},Be.prototype.appendElementInPos=function(b,F){var N=b.getBaseElement();if(N){for(var ce=0,ve;ce<F;)this.elements[ce]&&this.elements[ce]!==!0&&this.elements[ce].getBaseElement()&&(ve=this.elements[ce].getBaseElement()),ce+=1;ve?this.layerElement.insertBefore(N,ve):this.layerElement.appendChild(N)}},Be.prototype.hide=function(){this.layerElement.style.display=\"none\"},Be.prototype.show=function(){this.layerElement.style.display=\"block\"};function $(b,F,N){this.data=b,this.element=F,this.globalData=N,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var ce=this.globalData.defs,ve,pe=this.masksProperties?this.masksProperties.length:0;this.viewData=ue(pe),this.solidPath=\"\";var Ge,ht=this.masksProperties,Xe=0,It=[],kt,ut,st=L(),bt,Ot,Mt,gt,$e=\"clipPath\",Me=\"clip-path\";for(ve=0;ve<pe;ve+=1)if((ht[ve].mode!==\"a\"&&ht[ve].mode!==\"n\"||ht[ve].inv||ht[ve].o.k!==100||ht[ve].o.x)&&($e=\"mask\",Me=\"mask\"),(ht[ve].mode===\"s\"||ht[ve].mode===\"i\")&&Xe===0?(bt=q(\"rect\"),bt.setAttribute(\"fill\",\"#ffffff\"),bt.setAttribute(\"width\",this.element.comp.data.w||0),bt.setAttribute(\"height\",this.element.comp.data.h||0),It.push(bt)):bt=null,Ge=q(\"path\"),ht[ve].mode===\"n\")this.viewData[ve]={op:et.getProp(this.element,ht[ve].o,0,.01,this.element),prop:xt.getShapeProp(this.element,ht[ve],3),elem:Ge,lastPath:\"\"},ce.appendChild(Ge);else{Xe+=1,Ge.setAttribute(\"fill\",ht[ve].mode===\"s\"?\"#000000\":\"#ffffff\"),Ge.setAttribute(\"clip-rule\",\"nonzero\");var Ie;if(ht[ve].x.k!==0?($e=\"mask\",Me=\"mask\",gt=et.getProp(this.element,ht[ve].x,0,null,this.element),Ie=L(),Ot=q(\"filter\"),Ot.setAttribute(\"id\",Ie),Mt=q(\"feMorphology\"),Mt.setAttribute(\"operator\",\"erode\"),Mt.setAttribute(\"in\",\"SourceGraphic\"),Mt.setAttribute(\"radius\",\"0\"),Ot.appendChild(Mt),ce.appendChild(Ot),Ge.setAttribute(\"stroke\",ht[ve].mode===\"s\"?\"#000000\":\"#ffffff\")):(Mt=null,gt=null),this.storedData[ve]={elem:Ge,x:gt,expan:Mt,lastPath:\"\",lastOperator:\"\",filterId:Ie,lastRadius:0},ht[ve].mode===\"i\"){ut=It.length;var Te=q(\"g\");for(kt=0;kt<ut;kt+=1)Te.appendChild(It[kt]);var Oe=q(\"mask\");Oe.setAttribute(\"mask-type\",\"alpha\"),Oe.setAttribute(\"id\",st+\"_\"+Xe),Oe.appendChild(Ge),ce.appendChild(Oe),Te.setAttribute(\"mask\",\"url(\"+n+\"#\"+st+\"_\"+Xe+\")\"),It.length=0,It.push(Te)}else It.push(Ge);ht[ve].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[ve]={elem:Ge,lastPath:\"\",op:et.getProp(this.element,ht[ve].o,0,.01,this.element),prop:xt.getShapeProp(this.element,ht[ve],3),invRect:bt},this.viewData[ve].prop.k||this.drawPath(ht[ve],this.viewData[ve].prop.v,this.viewData[ve])}for(this.maskElement=q($e),pe=It.length,ve=0;ve<pe;ve+=1)this.maskElement.appendChild(It[ve]);Xe>0&&(this.maskElement.setAttribute(\"id\",st),this.element.maskedElement.setAttribute(Me,\"url(\"+n+\"#\"+st+\")\"),ce.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}$.prototype.getMaskProperty=function(b){return this.viewData[b].prop},$.prototype.renderFrame=function(b){var F=this.element.finalTransform.mat,N,ce=this.masksProperties.length;for(N=0;N<ce;N+=1)if((this.viewData[N].prop._mdf||b)&&this.drawPath(this.masksProperties[N],this.viewData[N].prop.v,this.viewData[N]),(this.viewData[N].op._mdf||b)&&this.viewData[N].elem.setAttribute(\"fill-opacity\",this.viewData[N].op.v),this.masksProperties[N].mode!==\"n\"&&(this.viewData[N].invRect&&(this.element.finalTransform.mProp._mdf||b)&&this.viewData[N].invRect.setAttribute(\"transform\",F.getInverseMatrix().to2dCSS()),this.storedData[N].x&&(this.storedData[N].x._mdf||b))){var ve=this.storedData[N].expan;this.storedData[N].x.v<0?(this.storedData[N].lastOperator!==\"erode\"&&(this.storedData[N].lastOperator=\"erode\",this.storedData[N].elem.setAttribute(\"filter\",\"url(\"+n+\"#\"+this.storedData[N].filterId+\")\")),ve.setAttribute(\"radius\",-this.storedData[N].x.v)):(this.storedData[N].lastOperator!==\"dilate\"&&(this.storedData[N].lastOperator=\"dilate\",this.storedData[N].elem.setAttribute(\"filter\",null)),this.storedData[N].elem.setAttribute(\"stroke-width\",this.storedData[N].x.v*2))}},$.prototype.getMaskelement=function(){return this.maskElement},$.prototype.createLayerSolidPath=function(){var b=\"M0,0 \";return b+=\" h\"+this.globalData.compSize.w,b+=\" v\"+this.globalData.compSize.h,b+=\" h-\"+this.globalData.compSize.w,b+=\" v-\"+this.globalData.compSize.h+\" \",b},$.prototype.drawPath=function(b,F,N){var ce=\" M\"+F.v[0][0]+\",\"+F.v[0][1],ve,pe;for(pe=F._length,ve=1;ve<pe;ve+=1)ce+=\" C\"+F.o[ve-1][0]+\",\"+F.o[ve-1][1]+\" \"+F.i[ve][0]+\",\"+F.i[ve][1]+\" \"+F.v[ve][0]+\",\"+F.v[ve][1];if(F.c&&pe>1&&(ce+=\" C\"+F.o[ve-1][0]+\",\"+F.o[ve-1][1]+\" \"+F.i[0][0]+\",\"+F.i[0][1]+\" \"+F.v[0][0]+\",\"+F.v[0][1]),N.lastPath!==ce){var Ge=\"\";N.elem&&(F.c&&(Ge=b.inv?this.solidPath+ce:ce),N.elem.setAttribute(\"d\",Ge)),N.lastPath=ce}},$.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};function M(){}M.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(b){this.hierarchy=b},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function re(){}re.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(b,F){var N,ce=this.dynamicProperties.length;for(N=0;N<ce;N+=1)(F||this._isParent&&this.dynamicProperties[N].propType===\"transform\")&&(this.dynamicProperties[N].getValue(),this.dynamicProperties[N]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(b){this.dynamicProperties.indexOf(b)===-1&&this.dynamicProperties.push(b)}};function H(){}H.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?ot.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new C},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var b,F=this.finalTransform.mat,N=0,ce=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;N<ce;){if(this.hierarchy[N].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}N+=1}if(this.finalTransform._matMdf)for(b=this.finalTransform.mProp.v.props,F.cloneFromProps(b),N=0;N<ce;N+=1)b=this.hierarchy[N].finalTransform.mProp.v.props,F.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15])}},globalToLocal:function(b){var F=[];F.push(this.finalTransform);for(var N=!0,ce=this.comp;N;)ce.finalTransform?(ce.data.hasMask&&F.splice(0,0,ce.finalTransform),ce=ce.comp):N=!1;var ve,pe=F.length,Ge;for(ve=0;ve<pe;ve+=1)Ge=F[ve].mat.applyToPointArray(0,0,0),b=[b[0]-Ge[0],b[1]-Ge[1],0];return b},mHelper:new C};function he(){}he.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(b){this.renderableComponents.indexOf(b)===-1&&this.renderableComponents.push(b)},removeRenderableComponent:function(b){this.renderableComponents.indexOf(b)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(b),1)},prepareRenderableFrame:function(b){this.checkLayerLimits(b)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(b){this.data.ip-this.data.st<=b&&this.data.op-this.data.st>b?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var b,F=this.renderableComponents.length;for(b=0;b<F;b+=1)this.renderableComponents[b].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};function He(){}(function(){var b={initElement:function(F,N,ce){this.initFrame(),this.initBaseData(F,N,ce),this.initTransform(F,N,ce),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var F=this.baseElement||this.layerElement;F.style.display=\"none\",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var F=this.baseElement||this.layerElement;F.style.display=\"block\"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(F){this._mdf=!1,this.prepareRenderableFrame(F),this.prepareProperties(F,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};X([he,de(b)],He)})();function nt(b,F){this.elem=b,this.pos=F}function Rt(b,F){this.data=b,this.type=b.ty,this.d=\"\",this.lvl=F,this._mdf=!1,this.closed=b.hd===!0,this.pElem=q(\"path\"),this.msElem=null}Rt.prototype.reset=function(){this.d=\"\",this._mdf=!1};function Ft(b,F,N){this.caches=[],this.styles=[],this.transformers=b,this.lStr=\"\",this.sh=N,this.lvl=F,this._isAnimated=!!N.k;for(var ce=0,ve=b.length;ce<ve;){if(b[ce].mProps.dynamicProperties.length){this._isAnimated=!0;break}ce+=1}}Ft.prototype.setAsAnimated=function(){this._isAnimated=!0};function Tn(b,F,N){this.transform={mProps:b,op:F,container:N},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function $t(b,F,N){this.initDynamicPropertyContainer(b),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(b,F.o,0,.01,this),this.w=et.getProp(b,F.w,0,null,this),this.d=new Mn(b,F.d||{},\"svg\",this),this.c=et.getProp(b,F.c,1,255,this),this.style=N,this._isAnimated=!!this._isAnimated}X([we],$t);function Gn(b,F,N){this.initDynamicPropertyContainer(b),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(b,F.o,0,.01,this),this.c=et.getProp(b,F.c,1,255,this),this.style=N}X([we],Gn);function cn(b,F,N){this.initDynamicPropertyContainer(b),this.getValue=this.iterateDynamicProperties,this.initGradientData(b,F,N)}cn.prototype.initGradientData=function(b,F,N){this.o=et.getProp(b,F.o,0,.01,this),this.s=et.getProp(b,F.s,1,null,this),this.e=et.getProp(b,F.e,1,null,this),this.h=et.getProp(b,F.h||{k:0},0,.01,this),this.a=et.getProp(b,F.a||{k:0},0,D,this),this.g=new Un(b,F.g,this),this.style=N,this.stops=[],this.setGradientData(N.pElem,F),this.setGradientOpacity(F,N),this._isAnimated=!!this._isAnimated},cn.prototype.setGradientData=function(b,F){var N=L(),ce=q(F.t===1?\"linearGradient\":\"radialGradient\");ce.setAttribute(\"id\",N),ce.setAttribute(\"spreadMethod\",\"pad\"),ce.setAttribute(\"gradientUnits\",\"userSpaceOnUse\");var ve=[],pe,Ge,ht;for(ht=F.g.p*4,Ge=0;Ge<ht;Ge+=4)pe=q(\"stop\"),ce.appendChild(pe),ve.push(pe);b.setAttribute(F.ty===\"gf\"?\"fill\":\"stroke\",\"url(\"+n+\"#\"+N+\")\"),this.gf=ce,this.cst=ve},cn.prototype.setGradientOpacity=function(b,F){if(this.g._hasOpacity&&!this.g._collapsable){var N,ce,ve,pe=q(\"mask\"),Ge=q(\"path\");pe.appendChild(Ge);var ht=L(),Xe=L();pe.setAttribute(\"id\",Xe);var It=q(b.t===1?\"linearGradient\":\"radialGradient\");It.setAttribute(\"id\",ht),It.setAttribute(\"spreadMethod\",\"pad\"),It.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),ve=b.g.k.k[0].s?b.g.k.k[0].s.length:b.g.k.k.length;var kt=this.stops;for(ce=b.g.p*4;ce<ve;ce+=2)N=q(\"stop\"),N.setAttribute(\"stop-color\",\"rgb(255,255,255)\"),It.appendChild(N),kt.push(N);Ge.setAttribute(b.ty===\"gf\"?\"fill\":\"stroke\",\"url(\"+n+\"#\"+ht+\")\"),b.ty===\"gs\"&&(Ge.setAttribute(\"stroke-linecap\",B[b.lc||2]),Ge.setAttribute(\"stroke-linejoin\",k[b.lj||2]),b.lj===1&&Ge.setAttribute(\"stroke-miterlimit\",b.ml)),this.of=It,this.ms=pe,this.ost=kt,this.maskId=Xe,F.msElem=Ge}},X([we],cn);function Fn(b,F,N){this.initDynamicPropertyContainer(b),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(b,F.w,0,null,this),this.d=new Mn(b,F.d||{},\"svg\",this),this.initGradientData(b,F,N),this._isAnimated=!!this._isAnimated}X([cn,we],Fn);function Nn(){this.it=[],this.prevViewData=[],this.gr=q(\"g\")}var Hn=(function(){var b=new C,F=new C,N={createRenderFunction:ce};function ce(kt){switch(kt.ty){case\"fl\":return Ge;case\"gf\":return Xe;case\"gs\":return ht;case\"st\":return It;case\"sh\":case\"el\":case\"rc\":case\"sr\":return pe;case\"tr\":return ve;default:return null}}function ve(kt,ut,st){(st||ut.transform.op._mdf)&&ut.transform.container.setAttribute(\"opacity\",ut.transform.op.v),(st||ut.transform.mProps._mdf)&&ut.transform.container.setAttribute(\"transform\",ut.transform.mProps.v.to2dCSS())}function pe(kt,ut,st){var bt,Ot,Mt,gt,$e,Me,Ie=ut.styles.length,Te=ut.lvl,Oe,Ze,We,ct,fn;for(Me=0;Me<Ie;Me+=1){if(gt=ut.sh._mdf||st,ut.styles[Me].lvl<Te){for(Ze=F.reset(),ct=Te-ut.styles[Me].lvl,fn=ut.transformers.length-1;!gt&&ct>0;)gt=ut.transformers[fn].mProps._mdf||gt,ct-=1,fn-=1;if(gt)for(ct=Te-ut.styles[Me].lvl,fn=ut.transformers.length-1;ct>0;)We=ut.transformers[fn].mProps.v.props,Ze.transform(We[0],We[1],We[2],We[3],We[4],We[5],We[6],We[7],We[8],We[9],We[10],We[11],We[12],We[13],We[14],We[15]),ct-=1,fn-=1}else Ze=b;if(Oe=ut.sh.paths,Ot=Oe._length,gt){for(Mt=\"\",bt=0;bt<Ot;bt+=1)$e=Oe.shapes[bt],$e&&$e._length&&(Mt+=Wn($e,$e._length,$e.c,Ze));ut.caches[Me]=Mt}else Mt=ut.caches[Me];ut.styles[Me].d+=kt.hd===!0?\"\":Mt,ut.styles[Me]._mdf=gt||ut.styles[Me]._mdf}}function Ge(kt,ut,st){var bt=ut.style;(ut.c._mdf||st)&&bt.pElem.setAttribute(\"fill\",\"rgb(\"+A(ut.c.v[0])+\",\"+A(ut.c.v[1])+\",\"+A(ut.c.v[2])+\")\"),(ut.o._mdf||st)&&bt.pElem.setAttribute(\"fill-opacity\",ut.o.v)}function ht(kt,ut,st){Xe(kt,ut,st),It(kt,ut,st)}function Xe(kt,ut,st){var bt=ut.gf,Ot=ut.g._hasOpacity,Mt=ut.s.v,gt=ut.e.v;if(ut.o._mdf||st){var $e=kt.ty===\"gf\"?\"fill-opacity\":\"stroke-opacity\";ut.style.pElem.setAttribute($e,ut.o.v)}if(ut.s._mdf||st){var Me=kt.t===1?\"x1\":\"cx\",Ie=Me===\"x1\"?\"y1\":\"cy\";bt.setAttribute(Me,Mt[0]),bt.setAttribute(Ie,Mt[1]),Ot&&!ut.g._collapsable&&(ut.of.setAttribute(Me,Mt[0]),ut.of.setAttribute(Ie,Mt[1]))}var Te,Oe,Ze,We;if(ut.g._cmdf||st){Te=ut.cst;var ct=ut.g.c;for(Ze=Te.length,Oe=0;Oe<Ze;Oe+=1)We=Te[Oe],We.setAttribute(\"offset\",ct[Oe*4]+\"%\"),We.setAttribute(\"stop-color\",\"rgb(\"+ct[Oe*4+1]+\",\"+ct[Oe*4+2]+\",\"+ct[Oe*4+3]+\")\")}if(Ot&&(ut.g._omdf||st)){var fn=ut.g.o;for(ut.g._collapsable?Te=ut.cst:Te=ut.ost,Ze=Te.length,Oe=0;Oe<Ze;Oe+=1)We=Te[Oe],ut.g._collapsable||We.setAttribute(\"offset\",fn[Oe*2]+\"%\"),We.setAttribute(\"stop-opacity\",fn[Oe*2+1])}if(kt.t===1)(ut.e._mdf||st)&&(bt.setAttribute(\"x2\",gt[0]),bt.setAttribute(\"y2\",gt[1]),Ot&&!ut.g._collapsable&&(ut.of.setAttribute(\"x2\",gt[0]),ut.of.setAttribute(\"y2\",gt[1])));else{var Rn;if((ut.s._mdf||ut.e._mdf||st)&&(Rn=Math.sqrt(Math.pow(Mt[0]-gt[0],2)+Math.pow(Mt[1]-gt[1],2)),bt.setAttribute(\"r\",Rn),Ot&&!ut.g._collapsable&&ut.of.setAttribute(\"r\",Rn)),ut.e._mdf||ut.h._mdf||ut.a._mdf||st){Rn||(Rn=Math.sqrt(Math.pow(Mt[0]-gt[0],2)+Math.pow(Mt[1]-gt[1],2)));var On=Math.atan2(gt[1]-Mt[1],gt[0]-Mt[0]),Ln=ut.h.v;Ln>=1?Ln=.99:Ln<=-1&&(Ln=-.99);var un=Rn*Ln,bn=Math.cos(On+ut.a.v)*un+Mt[0],mn=Math.sin(On+ut.a.v)*un+Mt[1];bt.setAttribute(\"fx\",bn),bt.setAttribute(\"fy\",mn),Ot&&!ut.g._collapsable&&(ut.of.setAttribute(\"fx\",bn),ut.of.setAttribute(\"fy\",mn))}}}function It(kt,ut,st){var bt=ut.style,Ot=ut.d;Ot&&(Ot._mdf||st)&&Ot.dashStr&&(bt.pElem.setAttribute(\"stroke-dasharray\",Ot.dashStr),bt.pElem.setAttribute(\"stroke-dashoffset\",Ot.dashoffset[0])),ut.c&&(ut.c._mdf||st)&&bt.pElem.setAttribute(\"stroke\",\"rgb(\"+A(ut.c.v[0])+\",\"+A(ut.c.v[1])+\",\"+A(ut.c.v[2])+\")\"),(ut.o._mdf||st)&&bt.pElem.setAttribute(\"stroke-opacity\",ut.o.v),(ut.w._mdf||st)&&(bt.pElem.setAttribute(\"stroke-width\",ut.w.v),bt.msElem&&bt.msElem.setAttribute(\"stroke-width\",ut.w.v))}return N})();function jn(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}jn.prototype={addTransformSequence:function(b){var F,N=b.length,ce=\"_\";for(F=0;F<N;F+=1)ce+=b[F].transform.key+\"_\";var ve=this.sequences[ce];return ve||(ve={transforms:[].concat(b),finalTransform:new C,_mdf:!1},this.sequences[ce]=ve,this.sequenceList.push(ve)),ve},processSequence:function(b,F){for(var N=0,ce=b.transforms.length,ve=F;N<ce&&!F;){if(b.transforms[N].transform.mProps._mdf){ve=!0;break}N+=1}if(ve){var pe;for(b.finalTransform.reset(),N=ce-1;N>=0;N-=1)pe=b.transforms[N].transform.mProps.v.props,b.finalTransform.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15])}b._mdf=ve},processSequences:function(b){var F,N=this.sequenceList.length;for(F=0;F<N;F+=1)this.processSequence(this.sequenceList[F],b)},getNewKey:function(){return this.transform_key_count+=1,\"_\"+this.transform_key_count}};function In(){}In.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var b=0,F=this.data.masksProperties.length;b<F;){if(this.data.masksProperties[b].mode!==\"n\"&&this.data.masksProperties[b].cl!==!1)return!0;b+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var b=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(b),this.data.ty===0||this.data.xt?this.compInterface=CompExpressionInterface(this):this.data.ty===4?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var b=_e(this.data.bm),F=this.baseElement||this.layerElement;F.style[\"mix-blend-mode\"]=b},initBaseData:function(b,F,N){this.globalData=F,this.comp=N,this.data=b,this.layerId=L(),this.data.sr||(this.data.sr=1),this.effectsManager=new Zt(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function sn(b,F,N){this.initFrame(),this.initBaseData(b,F,N),this.initFrame(),this.initTransform(b,F,N),this.initHierarchy()}sn.prototype.prepareFrame=function(b){this.prepareProperties(b,!0)},sn.prototype.renderFrame=function(){},sn.prototype.getBaseElement=function(){return null},sn.prototype.destroy=function(){},sn.prototype.sourceRectAtTime=function(){},sn.prototype.hide=function(){},X([In,H,M,re],sn);function xn(){}xn.prototype={initRendererElement:function(){this.layerElement=q(\"g\")},createContainerElements:function(){this.matteElement=q(\"g\"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var b=null,F,N,ce;if(this.data.td){if(this.data.td==3||this.data.td==1){var ve=q(\"mask\");ve.setAttribute(\"id\",this.layerId),ve.setAttribute(\"mask-type\",this.data.td==3?\"luminance\":\"alpha\"),ve.appendChild(this.layerElement),b=ve,this.globalData.defs.appendChild(ve),!it.maskType&&this.data.td==1&&(ve.setAttribute(\"mask-type\",\"luminance\"),F=L(),N=Nt.createFilter(F),this.globalData.defs.appendChild(N),N.appendChild(Nt.createAlphaToLuminanceFilter()),ce=q(\"g\"),ce.appendChild(this.layerElement),b=ce,ve.appendChild(ce),ce.setAttribute(\"filter\",\"url(\"+n+\"#\"+F+\")\"))}else if(this.data.td==2){var pe=q(\"mask\");pe.setAttribute(\"id\",this.layerId),pe.setAttribute(\"mask-type\",\"alpha\");var Ge=q(\"g\");pe.appendChild(Ge),F=L(),N=Nt.createFilter(F);var ht=q(\"feComponentTransfer\");ht.setAttribute(\"in\",\"SourceGraphic\"),N.appendChild(ht);var Xe=q(\"feFuncA\");Xe.setAttribute(\"type\",\"table\"),Xe.setAttribute(\"tableValues\",\"1.0 0.0\"),ht.appendChild(Xe),this.globalData.defs.appendChild(N);var It=q(\"rect\");It.setAttribute(\"width\",this.comp.data.w),It.setAttribute(\"height\",this.comp.data.h),It.setAttribute(\"x\",\"0\"),It.setAttribute(\"y\",\"0\"),It.setAttribute(\"fill\",\"#ffffff\"),It.setAttribute(\"opacity\",\"0\"),Ge.setAttribute(\"filter\",\"url(\"+n+\"#\"+F+\")\"),Ge.appendChild(It),Ge.appendChild(this.layerElement),b=Ge,it.maskType||(pe.setAttribute(\"mask-type\",\"luminance\"),N.appendChild(Nt.createAlphaToLuminanceFilter()),ce=q(\"g\"),Ge.appendChild(It),ce.appendChild(this.layerElement),b=ce,Ge.appendChild(ce)),this.globalData.defs.appendChild(pe)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),b=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),this.data.ty===0&&!this.data.hd){var kt=q(\"clipPath\"),ut=q(\"path\");ut.setAttribute(\"d\",\"M0,0 L\"+this.data.w+\",0 L\"+this.data.w+\",\"+this.data.h+\" L0,\"+this.data.h+\"z\");var st=L();if(kt.setAttribute(\"id\",st),kt.appendChild(ut),this.globalData.defs.appendChild(kt),this.checkMasks()){var bt=q(\"g\");bt.setAttribute(\"clip-path\",\"url(\"+n+\"#\"+st+\")\"),bt.appendChild(this.layerElement),this.transformedElement=bt,b?b.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute(\"clip-path\",\"url(\"+n+\"#\"+st+\")\")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute(\"transform\",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute(\"opacity\",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new $(this.data,this,this.globalData),this.renderableEffectsManager=new Lt(this)},setMatte:function(b){this.matteElement&&this.matteElement.setAttribute(\"mask\",\"url(\"+n+\"#\"+b+\")\")}};function Kt(){}Kt.prototype={addShapeToModifiers:function(b){var F,N=this.shapeModifiers.length;for(F=0;F<N;F+=1)this.shapeModifiers[F].addShape(b)},isShapeInAnimatedModifiers:function(b){for(var F=0,N=this.shapeModifiers.length;F<N;)if(this.shapeModifiers[F].isAnimatedWithShape(b))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var b,F=this.shapes.length;for(b=0;b<F;b+=1)this.shapes[b].sh.reset();F=this.shapeModifiers.length;var N;for(b=F-1;b>=0&&(N=this.shapeModifiers[b].processShapes(this._isFirstFrame),!N);b-=1);}},searchProcessedElement:function(b){for(var F=this.processedElements,N=0,ce=F.length;N<ce;){if(F[N].elem===b)return F[N].pos;N+=1}return 0},addProcessedElement:function(b,F){for(var N=this.processedElements,ce=N.length;ce;)if(ce-=1,N[ce].elem===b){N[ce].pos=F;return}N.push(new nt(b,F))},prepareFrame:function(b){this.prepareRenderableFrame(b),this.prepareProperties(b,this.isInRange)}};function rn(){}rn.prototype.initElement=function(b,F,N){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(b,F,N),this.textProperty=new zn(this,b.t,this.dynamicProperties),this.textAnimator=new tn(b.t,this.renderType,this),this.initTransform(b,F,N),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},rn.prototype.prepareFrame=function(b){this._mdf=!1,this.prepareRenderableFrame(b),this.prepareProperties(b,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},rn.prototype.createPathShape=function(b,F){var N,ce=F.length,ve,pe=\"\";for(N=0;N<ce;N+=1)ve=F[N].ks.k,pe+=Wn(ve,ve.i.length,!0,b);return pe},rn.prototype.updateDocumentData=function(b,F){this.textProperty.updateDocumentData(b,F)},rn.prototype.canResizeFont=function(b){this.textProperty.canResizeFont(b)},rn.prototype.setMinimumFontSize=function(b){this.textProperty.setMinimumFontSize(b)},rn.prototype.applyTextPropertiesToMatrix=function(b,F,N,ce,ve){switch(b.ps&&F.translate(b.ps[0],b.ps[1]+b.ascent,0),F.translate(0,-b.ls,0),b.j){case 1:F.translate(b.justifyOffset+(b.boxWidth-b.lineWidths[N]),0,0);break;case 2:F.translate(b.justifyOffset+(b.boxWidth-b.lineWidths[N])/2,0,0);break;default:break}F.translate(ce,ve,0)},rn.prototype.buildColor=function(b){return\"rgb(\"+Math.round(b[0]*255)+\",\"+Math.round(b[1]*255)+\",\"+Math.round(b[2]*255)+\")\"},rn.prototype.emptyProp=new kn,rn.prototype.destroy=function(){};function Ht(){}X([In,H,M,re,He],Ht),Ht.prototype.initElement=function(b,F,N){this.initFrame(),this.initBaseData(b,F,N),this.initTransform(b,F,N),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!F.progressiveLoad)&&this.buildAllItems(),this.hide()},Ht.prototype.prepareFrame=function(b){if(this._mdf=!1,this.prepareRenderableFrame(b),this.prepareProperties(b,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=b/this.data.sr;else{var F=this.tm.v;F===this.data.op&&(F=this.data.op-1),this.renderedFrame=F}var N,ce=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),N=ce-1;N>=0;N-=1)(this.completeLayers||this.elements[N])&&(this.elements[N].prepareFrame(this.renderedFrame-this.layers[N].st),this.elements[N]._mdf&&(this._mdf=!0))}},Ht.prototype.renderInnerContent=function(){var b,F=this.layers.length;for(b=0;b<F;b+=1)(this.completeLayers||this.elements[b])&&this.elements[b].renderFrame()},Ht.prototype.setElements=function(b){this.elements=b},Ht.prototype.getElements=function(){return this.elements},Ht.prototype.destroyElements=function(){var b,F=this.layers.length;for(b=0;b<F;b+=1)this.elements[b]&&this.elements[b].destroy()},Ht.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Gt(b,F,N){this.assetData=F.getAssetData(b.refId),this.initElement(b,F,N),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}X([In,H,xn,M,re,He],Gt),Gt.prototype.createContent=function(){var b=this.globalData.getAssetsPath(this.assetData);this.innerElem=q(\"image\"),this.innerElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.innerElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.innerElem.setAttribute(\"preserveAspectRatio\",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",b),this.layerElement.appendChild(this.innerElem)},Gt.prototype.sourceRectAtTime=function(){return this.sourceRect};function vt(b,F,N){this.initElement(b,F,N)}X([Gt],vt),vt.prototype.createContent=function(){var b=q(\"rect\");b.setAttribute(\"width\",this.data.sw),b.setAttribute(\"height\",this.data.sh),b.setAttribute(\"fill\",this.data.sc),this.layerElement.appendChild(b)};function ft(b,F,N){this.initFrame(),this.initRenderable(),this.assetData=F.getAssetData(b.refId),this.initBaseData(b,F,N),this._isPlaying=!1,this._canPlay=!1;var ce=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(ce),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=b.tm?et.getProp(this,b.tm,0,F.frameRate,this):{_placeholder:!0}}ft.prototype.prepareFrame=function(b){if(this.prepareRenderableFrame(b,!0),this.prepareProperties(b,!0),this.tm._placeholder)this._currentTime=b/this.data.sr;else{var F=this.tm.v;this._currentTime=F}},X([he,In,re],ft),ft.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ft.prototype.show=function(){},ft.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ft.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ft.prototype.resume=function(){this._canPlay=!0},ft.prototype.setRate=function(b){this.audio.rate(b)},ft.prototype.volume=function(b){this.audio.volume(b)},ft.prototype.getBaseElement=function(){return null},ft.prototype.destroy=function(){},ft.prototype.sourceRectAtTime=function(){},ft.prototype.initExpressions=function(){};function at(b,F,N){this.layers=b.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?ue(this.layers.length):[],this.initElement(b,F,N),this.tm=b.tm?et.getProp(this,b.tm,0,F.frameRate,this):{_placeholder:!0}}X([Be,Ht,xn],at);function rt(b,F,N){this.textSpans=[],this.renderType=\"svg\",this.initElement(b,F,N)}X([In,H,xn,M,re,He,rn],rt),rt.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=q(\"text\"))},rt.prototype.buildTextContents=function(b){for(var F=0,N=b.length,ce=[],ve=\"\";F<N;)b[F]===\"\\\\r\"||b[F]===\"\\u0003\"?(ce.push(ve),ve=\"\"):ve+=b[F],F+=1;return ce.push(ve),ce},rt.prototype.buildNewText=function(){var b,F,N=this.textProperty.currentData;this.renderedLetters=ue(N?N.l.length:0),N.fc?this.layerElement.setAttribute(\"fill\",this.buildColor(N.fc)):this.layerElement.setAttribute(\"fill\",\"rgba(0,0,0,0)\"),N.sc&&(this.layerElement.setAttribute(\"stroke\",this.buildColor(N.sc)),this.layerElement.setAttribute(\"stroke-width\",N.sw)),this.layerElement.setAttribute(\"font-size\",N.finalSize);var ce=this.globalData.fontManager.getFontByName(N.f);if(ce.fClass)this.layerElement.setAttribute(\"class\",ce.fClass);else{this.layerElement.setAttribute(\"font-family\",ce.fFamily);var ve=N.fWeight,pe=N.fStyle;this.layerElement.setAttribute(\"font-style\",pe),this.layerElement.setAttribute(\"font-weight\",ve)}this.layerElement.setAttribute(\"aria-label\",N.t);var Ge=N.l||[],ht=!!this.globalData.fontManager.chars;F=Ge.length;var Xe,It=this.mHelper,kt,ut=\"\",st=this.data.singleShape,bt=0,Ot=0,Mt=!0,gt=N.tr*.001*N.finalSize;if(st&&!ht&&!N.sz){var $e=this.textContainer,Me=\"start\";switch(N.j){case 1:Me=\"end\";break;case 2:Me=\"middle\";break;default:Me=\"start\";break}$e.setAttribute(\"text-anchor\",Me),$e.setAttribute(\"letter-spacing\",gt);var Ie=this.buildTextContents(N.finalText);for(F=Ie.length,Ot=N.ps?N.ps[1]+N.ascent:0,b=0;b<F;b+=1)Xe=this.textSpans[b]||q(\"tspan\"),Xe.textContent=Ie[b],Xe.setAttribute(\"x\",0),Xe.setAttribute(\"y\",Ot),Xe.style.display=\"inherit\",$e.appendChild(Xe),this.textSpans[b]=Xe,Ot+=N.finalLineHeight;this.layerElement.appendChild($e)}else{var Te=this.textSpans.length,Oe,Ze;for(b=0;b<F;b+=1)(!ht||!st||b===0)&&(Xe=Te>b?this.textSpans[b]:q(ht?\"path\":\"text\"),Te<=b&&(Xe.setAttribute(\"stroke-linecap\",\"butt\"),Xe.setAttribute(\"stroke-linejoin\",\"round\"),Xe.setAttribute(\"stroke-miterlimit\",\"4\"),this.textSpans[b]=Xe,this.layerElement.appendChild(Xe)),Xe.style.display=\"inherit\"),It.reset(),It.scale(N.finalSize/100,N.finalSize/100),st&&(Ge[b].n&&(bt=-gt,Ot+=N.yOffset,Ot+=Mt?1:0,Mt=!1),this.applyTextPropertiesToMatrix(N,It,Ge[b].line,bt,Ot),bt+=Ge[b].l||0,bt+=gt),ht?(Ze=this.globalData.fontManager.getCharData(N.finalText[b],ce.fStyle,this.globalData.fontManager.getFontByName(N.f).fFamily),Oe=Ze&&Ze.data||{},kt=Oe.shapes?Oe.shapes[0].it:[],st?ut+=this.createPathShape(It,kt):Xe.setAttribute(\"d\",this.createPathShape(It,kt))):(st&&Xe.setAttribute(\"transform\",\"translate(\"+It.props[12]+\",\"+It.props[13]+\")\"),Xe.textContent=Ge[b].val,Xe.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"));st&&Xe&&Xe.setAttribute(\"d\",ut)}for(;b<this.textSpans.length;)this.textSpans[b].style.display=\"none\",b+=1;this._sizeChanged=!0},rt.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var b=this.layerElement.getBBox();this.bbox={top:b.y,left:b.x,width:b.width,height:b.height}}return this.bbox},rt.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var b,F,N=this.textAnimator.renderedLetters,ce=this.textProperty.currentData.l;F=ce.length;var ve,pe;for(b=0;b<F;b+=1)ce[b].n||(ve=N[b],pe=this.textSpans[b],ve._mdf.m&&pe.setAttribute(\"transform\",ve.m),ve._mdf.o&&pe.setAttribute(\"opacity\",ve.o),ve._mdf.sw&&pe.setAttribute(\"stroke-width\",ve.sw),ve._mdf.sc&&pe.setAttribute(\"stroke\",ve.sc),ve._mdf.fc&&pe.setAttribute(\"fill\",ve.fc))}};function lt(b,F,N){this.shapes=[],this.shapesData=b.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(b,F,N),this.prevViewData=[]}X([In,H,xn,Kt,M,re,He],lt),lt.prototype.initSecondaryElement=function(){},lt.prototype.identityMatrix=new C,lt.prototype.buildExpressionInterface=function(){},lt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},lt.prototype.filterUniqueShapes=function(){var b,F=this.shapes.length,N,ce,ve=this.stylesList.length,pe,Ge=[],ht=!1;for(ce=0;ce<ve;ce+=1){for(pe=this.stylesList[ce],ht=!1,Ge.length=0,b=0;b<F;b+=1)N=this.shapes[b],N.styles.indexOf(pe)!==-1&&(Ge.push(N),ht=N._isAnimated||ht);Ge.length>1&&ht&&this.setShapesAsAnimated(Ge)}},lt.prototype.setShapesAsAnimated=function(b){var F,N=b.length;for(F=0;F<N;F+=1)b[F].setAsAnimated()},lt.prototype.createStyleElement=function(b,F){var N,ce=new Rt(b,F),ve=ce.pElem;if(b.ty===\"st\")N=new $t(this,b,ce);else if(b.ty===\"fl\")N=new Gn(this,b,ce);else if(b.ty===\"gf\"||b.ty===\"gs\"){var pe=b.ty===\"gf\"?cn:Fn;N=new pe(this,b,ce),this.globalData.defs.appendChild(N.gf),N.maskId&&(this.globalData.defs.appendChild(N.ms),this.globalData.defs.appendChild(N.of),ve.setAttribute(\"mask\",\"url(\"+n+\"#\"+N.maskId+\")\"))}return(b.ty===\"st\"||b.ty===\"gs\")&&(ve.setAttribute(\"stroke-linecap\",B[b.lc||2]),ve.setAttribute(\"stroke-linejoin\",k[b.lj||2]),ve.setAttribute(\"fill-opacity\",\"0\"),b.lj===1&&ve.setAttribute(\"stroke-miterlimit\",b.ml)),b.r===2&&ve.setAttribute(\"fill-rule\",\"evenodd\"),b.ln&&ve.setAttribute(\"id\",b.ln),b.cl&&ve.setAttribute(\"class\",b.cl),b.bm&&(ve.style[\"mix-blend-mode\"]=_e(b.bm)),this.stylesList.push(ce),this.addToAnimatedContents(b,N),N},lt.prototype.createGroupElement=function(b){var F=new Nn;return b.ln&&F.gr.setAttribute(\"id\",b.ln),b.cl&&F.gr.setAttribute(\"class\",b.cl),b.bm&&(F.gr.style[\"mix-blend-mode\"]=_e(b.bm)),F},lt.prototype.createTransformElement=function(b,F){var N=ot.getTransformProperty(this,b,this),ce=new Tn(N,N.o,F);return this.addToAnimatedContents(b,ce),ce},lt.prototype.createShapeElement=function(b,F,N){var ce=4;b.ty===\"rc\"?ce=5:b.ty===\"el\"?ce=6:b.ty===\"sr\"&&(ce=7);var ve=xt.getShapeProp(this,b,ce,this),pe=new Ft(F,N,ve);return this.shapes.push(pe),this.addShapeToModifiers(pe),this.addToAnimatedContents(b,pe),pe},lt.prototype.addToAnimatedContents=function(b,F){for(var N=0,ce=this.animatedContents.length;N<ce;){if(this.animatedContents[N].element===F)return;N+=1}this.animatedContents.push({fn:Hn.createRenderFunction(b),element:F,data:b})},lt.prototype.setElementStyles=function(b){var F=b.styles,N,ce=this.stylesList.length;for(N=0;N<ce;N+=1)this.stylesList[N].closed||F.push(this.stylesList[N])},lt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var b,F=this.itemsData.length;for(b=0;b<F;b+=1)this.prevViewData[b]=this.itemsData[b];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),F=this.dynamicProperties.length,b=0;b<F;b+=1)this.dynamicProperties[b].getValue();this.renderModifiers()},lt.prototype.searchShapes=function(b,F,N,ce,ve,pe,Ge){var ht=[].concat(pe),Xe,It=b.length-1,kt,ut,st=[],bt=[],Ot,Mt,gt;for(Xe=It;Xe>=0;Xe-=1){if(gt=this.searchProcessedElement(b[Xe]),gt?F[Xe]=N[gt-1]:b[Xe]._render=Ge,b[Xe].ty===\"fl\"||b[Xe].ty===\"st\"||b[Xe].ty===\"gf\"||b[Xe].ty===\"gs\")gt?F[Xe].style.closed=!1:F[Xe]=this.createStyleElement(b[Xe],ve),b[Xe]._render&&F[Xe].style.pElem.parentNode!==ce&&ce.appendChild(F[Xe].style.pElem),st.push(F[Xe].style);else if(b[Xe].ty===\"gr\"){if(!gt)F[Xe]=this.createGroupElement(b[Xe]);else for(ut=F[Xe].it.length,kt=0;kt<ut;kt+=1)F[Xe].prevViewData[kt]=F[Xe].it[kt];this.searchShapes(b[Xe].it,F[Xe].it,F[Xe].prevViewData,F[Xe].gr,ve+1,ht,Ge),b[Xe]._render&&F[Xe].gr.parentNode!==ce&&ce.appendChild(F[Xe].gr)}else b[Xe].ty===\"tr\"?(gt||(F[Xe]=this.createTransformElement(b[Xe],ce)),Ot=F[Xe].transform,ht.push(Ot)):b[Xe].ty===\"sh\"||b[Xe].ty===\"rc\"||b[Xe].ty===\"el\"||b[Xe].ty===\"sr\"?(gt||(F[Xe]=this.createShapeElement(b[Xe],ht,ve)),this.setElementStyles(F[Xe])):b[Xe].ty===\"tm\"||b[Xe].ty===\"rd\"||b[Xe].ty===\"ms\"||b[Xe].ty===\"pb\"?(gt?(Mt=F[Xe],Mt.closed=!1):(Mt=Wt.getModifier(b[Xe].ty),Mt.init(this,b[Xe]),F[Xe]=Mt,this.shapeModifiers.push(Mt)),bt.push(Mt)):b[Xe].ty===\"rp\"&&(gt?(Mt=F[Xe],Mt.closed=!0):(Mt=Wt.getModifier(b[Xe].ty),F[Xe]=Mt,Mt.init(this,b,Xe,F),this.shapeModifiers.push(Mt),Ge=!1),bt.push(Mt));this.addProcessedElement(b[Xe],Xe+1)}for(It=st.length,Xe=0;Xe<It;Xe+=1)st[Xe].closed=!0;for(It=bt.length,Xe=0;Xe<It;Xe+=1)bt[Xe].closed=!0},lt.prototype.renderInnerContent=function(){this.renderModifiers();var b,F=this.stylesList.length;for(b=0;b<F;b+=1)this.stylesList[b].reset();for(this.renderShape(),b=0;b<F;b+=1)(this.stylesList[b]._mdf||this._isFirstFrame)&&(this.stylesList[b].msElem&&(this.stylesList[b].msElem.setAttribute(\"d\",this.stylesList[b].d),this.stylesList[b].d=\"M0 0\"+this.stylesList[b].d),this.stylesList[b].pElem.setAttribute(\"d\",this.stylesList[b].d||\"M0 0\"))},lt.prototype.renderShape=function(){var b,F=this.animatedContents.length,N;for(b=0;b<F;b+=1)N=this.animatedContents[b],(this._isFirstFrame||N.element._isAnimated)&&N.data!==!0&&N.fn(N.data,N.element,this._isFirstFrame)},lt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Et(b,F){this.filterManager=F;var N=q(\"feColorMatrix\");if(N.setAttribute(\"type\",\"matrix\"),N.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),N.setAttribute(\"values\",\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"),N.setAttribute(\"result\",\"f1\"),b.appendChild(N),N=q(\"feColorMatrix\"),N.setAttribute(\"type\",\"matrix\"),N.setAttribute(\"color-interpolation-filters\",\"sRGB\"),N.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),N.setAttribute(\"result\",\"f2\"),b.appendChild(N),this.matrixFilter=N,F.effectElements[2].p.v!==100||F.effectElements[2].p.k){var ce=q(\"feMerge\");b.appendChild(ce);var ve;ve=q(\"feMergeNode\"),ve.setAttribute(\"in\",\"SourceGraphic\"),ce.appendChild(ve),ve=q(\"feMergeNode\"),ve.setAttribute(\"in\",\"f2\"),ce.appendChild(ve)}}Et.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){var F=this.filterManager.effectElements[0].p.v,N=this.filterManager.effectElements[1].p.v,ce=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute(\"values\",N[0]-F[0]+\" 0 0 0 \"+F[0]+\" \"+(N[1]-F[1])+\" 0 0 0 \"+F[1]+\" \"+(N[2]-F[2])+\" 0 0 0 \"+F[2]+\" 0 0 0 \"+ce+\" 0\")}};function Ut(b,F){this.filterManager=F;var N=q(\"feColorMatrix\");N.setAttribute(\"type\",\"matrix\"),N.setAttribute(\"color-interpolation-filters\",\"sRGB\"),N.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),b.appendChild(N),this.matrixFilter=N}Ut.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){var F=this.filterManager.effectElements[2].p.v,N=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute(\"values\",\"0 0 0 0 \"+F[0]+\" 0 0 0 0 \"+F[1]+\" 0 0 0 0 \"+F[2]+\" 0 0 0 \"+N+\" 0\")}};function xe(b,F){b.setAttribute(\"x\",\"-100%\"),b.setAttribute(\"y\",\"-100%\"),b.setAttribute(\"width\",\"300%\"),b.setAttribute(\"height\",\"300%\"),this.filterManager=F;var N=q(\"feGaussianBlur\");b.appendChild(N),this.feGaussianBlur=N}xe.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){var F=.3,N=this.filterManager.effectElements[0].p.v*F,ce=this.filterManager.effectElements[1].p.v,ve=ce==3?0:N,pe=ce==2?0:N;this.feGaussianBlur.setAttribute(\"stdDeviation\",ve+\" \"+pe);var Ge=this.filterManager.effectElements[2].p.v==1?\"wrap\":\"duplicate\";this.feGaussianBlur.setAttribute(\"edgeMode\",Ge)}};function Ne(b,F){this.initialized=!1,this.filterManager=F,this.elem=b,this.paths=[]}Ne.prototype.initialize=function(){var b=this.elem.layerElement.children||this.elem.layerElement.childNodes,F,N,ce,ve;for(this.filterManager.effectElements[1].p.v===1?(ve=this.elem.maskManager.masksProperties.length,ce=0):(ce=this.filterManager.effectElements[0].p.v-1,ve=ce+1),N=q(\"g\"),N.setAttribute(\"fill\",\"none\"),N.setAttribute(\"stroke-linecap\",\"round\"),N.setAttribute(\"stroke-dashoffset\",1),ce;ce<ve;ce+=1)F=q(\"path\"),N.appendChild(F),this.paths.push({p:F,m:ce});if(this.filterManager.effectElements[10].p.v===3){var pe=q(\"mask\"),Ge=L();pe.setAttribute(\"id\",Ge),pe.setAttribute(\"mask-type\",\"alpha\"),pe.appendChild(N),this.elem.globalData.defs.appendChild(pe);var ht=q(\"g\");for(ht.setAttribute(\"mask\",\"url(\"+n+\"#\"+Ge+\")\");b[0];)ht.appendChild(b[0]);this.elem.layerElement.appendChild(ht),this.masker=pe,N.setAttribute(\"stroke\",\"#fff\")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(b=this.elem.layerElement.children||this.elem.layerElement.childNodes;b.length;)this.elem.layerElement.removeChild(b[0]);this.elem.layerElement.appendChild(N),this.elem.layerElement.removeAttribute(\"mask\"),N.setAttribute(\"stroke\",\"#fff\")}this.initialized=!0,this.pathMasker=N},Ne.prototype.renderFrame=function(b){this.initialized||this.initialize();var F,N=this.paths.length,ce,ve;for(F=0;F<N;F+=1)if(this.paths[F].m!==-1&&(ce=this.elem.maskManager.viewData[this.paths[F].m],ve=this.paths[F].p,(b||this.filterManager._mdf||ce.prop._mdf)&&ve.setAttribute(\"d\",ce.lastPath),b||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||ce.prop._mdf)){var pe;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var Ge=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,ht=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,Xe=ve.getTotalLength();pe=\"0 0 0 \"+Xe*Ge+\" \";var It=Xe*(ht-Ge),kt=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,ut=Math.floor(It/kt),st;for(st=0;st<ut;st+=1)pe+=\"1 \"+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+\" \";pe+=\"0 \"+Xe*10+\" 0 0\"}else pe=\"1 \"+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;ve.setAttribute(\"stroke-dasharray\",pe)}if((b||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute(\"stroke-width\",this.filterManager.effectElements[4].p.v*2),(b||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute(\"opacity\",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(b||this.filterManager.effectElements[3].p._mdf)){var bt=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute(\"stroke\",\"rgb(\"+A(bt[0]*255)+\",\"+A(bt[1]*255)+\",\"+A(bt[2]*255)+\")\")}};function ze(b,F){this.filterManager=F;var N=q(\"feColorMatrix\");N.setAttribute(\"type\",\"matrix\"),N.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),N.setAttribute(\"values\",\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"),N.setAttribute(\"result\",\"f1\"),b.appendChild(N);var ce=q(\"feComponentTransfer\");ce.setAttribute(\"color-interpolation-filters\",\"sRGB\"),b.appendChild(ce),this.matrixFilter=ce;var ve=q(\"feFuncR\");ve.setAttribute(\"type\",\"table\"),ce.appendChild(ve),this.feFuncR=ve;var pe=q(\"feFuncG\");pe.setAttribute(\"type\",\"table\"),ce.appendChild(pe),this.feFuncG=pe;var Ge=q(\"feFuncB\");Ge.setAttribute(\"type\",\"table\"),ce.appendChild(Ge),this.feFuncB=Ge}ze.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){var F=this.filterManager.effectElements[0].p.v,N=this.filterManager.effectElements[1].p.v,ce=this.filterManager.effectElements[2].p.v,ve=ce[0]+\" \"+N[0]+\" \"+F[0],pe=ce[1]+\" \"+N[1]+\" \"+F[1],Ge=ce[2]+\" \"+N[2]+\" \"+F[2];this.feFuncR.setAttribute(\"tableValues\",ve),this.feFuncG.setAttribute(\"tableValues\",pe),this.feFuncB.setAttribute(\"tableValues\",Ge)}};function Ae(b,F){this.filterManager=F;var N=this.filterManager.effectElements,ce=q(\"feComponentTransfer\");(N[10].p.k||N[10].p.v!==0||N[11].p.k||N[11].p.v!==1||N[12].p.k||N[12].p.v!==1||N[13].p.k||N[13].p.v!==0||N[14].p.k||N[14].p.v!==1)&&(this.feFuncR=this.createFeFunc(\"feFuncR\",ce)),(N[17].p.k||N[17].p.v!==0||N[18].p.k||N[18].p.v!==1||N[19].p.k||N[19].p.v!==1||N[20].p.k||N[20].p.v!==0||N[21].p.k||N[21].p.v!==1)&&(this.feFuncG=this.createFeFunc(\"feFuncG\",ce)),(N[24].p.k||N[24].p.v!==0||N[25].p.k||N[25].p.v!==1||N[26].p.k||N[26].p.v!==1||N[27].p.k||N[27].p.v!==0||N[28].p.k||N[28].p.v!==1)&&(this.feFuncB=this.createFeFunc(\"feFuncB\",ce)),(N[31].p.k||N[31].p.v!==0||N[32].p.k||N[32].p.v!==1||N[33].p.k||N[33].p.v!==1||N[34].p.k||N[34].p.v!==0||N[35].p.k||N[35].p.v!==1)&&(this.feFuncA=this.createFeFunc(\"feFuncA\",ce)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(ce.setAttribute(\"color-interpolation-filters\",\"sRGB\"),b.appendChild(ce),ce=q(\"feComponentTransfer\")),(N[3].p.k||N[3].p.v!==0||N[4].p.k||N[4].p.v!==1||N[5].p.k||N[5].p.v!==1||N[6].p.k||N[6].p.v!==0||N[7].p.k||N[7].p.v!==1)&&(ce.setAttribute(\"color-interpolation-filters\",\"sRGB\"),b.appendChild(ce),this.feFuncRComposed=this.createFeFunc(\"feFuncR\",ce),this.feFuncGComposed=this.createFeFunc(\"feFuncG\",ce),this.feFuncBComposed=this.createFeFunc(\"feFuncB\",ce))}Ae.prototype.createFeFunc=function(b,F){var N=q(b);return N.setAttribute(\"type\",\"table\"),F.appendChild(N),N},Ae.prototype.getTableValue=function(b,F,N,ce,ve){for(var pe=0,Ge=256,ht,Xe=Math.min(b,F),It=Math.max(b,F),kt=Array.call(null,{length:Ge}),ut,st=0,bt=ve-ce,Ot=F-b;pe<=256;)ht=pe/256,ht<=Xe?ut=Ot<0?ve:ce:ht>=It?ut=Ot<0?ce:ve:ut=ce+bt*Math.pow((ht-b)/Ot,1/N),kt[st]=ut,st+=1,pe+=256/(Ge-1);return kt.join(\" \")},Ae.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){var F,N=this.filterManager.effectElements;this.feFuncRComposed&&(b||N[3].p._mdf||N[4].p._mdf||N[5].p._mdf||N[6].p._mdf||N[7].p._mdf)&&(F=this.getTableValue(N[3].p.v,N[4].p.v,N[5].p.v,N[6].p.v,N[7].p.v),this.feFuncRComposed.setAttribute(\"tableValues\",F),this.feFuncGComposed.setAttribute(\"tableValues\",F),this.feFuncBComposed.setAttribute(\"tableValues\",F)),this.feFuncR&&(b||N[10].p._mdf||N[11].p._mdf||N[12].p._mdf||N[13].p._mdf||N[14].p._mdf)&&(F=this.getTableValue(N[10].p.v,N[11].p.v,N[12].p.v,N[13].p.v,N[14].p.v),this.feFuncR.setAttribute(\"tableValues\",F)),this.feFuncG&&(b||N[17].p._mdf||N[18].p._mdf||N[19].p._mdf||N[20].p._mdf||N[21].p._mdf)&&(F=this.getTableValue(N[17].p.v,N[18].p.v,N[19].p.v,N[20].p.v,N[21].p.v),this.feFuncG.setAttribute(\"tableValues\",F)),this.feFuncB&&(b||N[24].p._mdf||N[25].p._mdf||N[26].p._mdf||N[27].p._mdf||N[28].p._mdf)&&(F=this.getTableValue(N[24].p.v,N[25].p.v,N[26].p.v,N[27].p.v,N[28].p.v),this.feFuncB.setAttribute(\"tableValues\",F)),this.feFuncA&&(b||N[31].p._mdf||N[32].p._mdf||N[33].p._mdf||N[34].p._mdf||N[35].p._mdf)&&(F=this.getTableValue(N[31].p.v,N[32].p.v,N[33].p.v,N[34].p.v,N[35].p.v),this.feFuncA.setAttribute(\"tableValues\",F))}};function tt(b,F){var N=F.container.globalData.renderConfig.filterSize;b.setAttribute(\"x\",N.x),b.setAttribute(\"y\",N.y),b.setAttribute(\"width\",N.width),b.setAttribute(\"height\",N.height),this.filterManager=F;var ce=q(\"feGaussianBlur\");ce.setAttribute(\"in\",\"SourceAlpha\"),ce.setAttribute(\"result\",\"drop_shadow_1\"),ce.setAttribute(\"stdDeviation\",\"0\"),this.feGaussianBlur=ce,b.appendChild(ce);var ve=q(\"feOffset\");ve.setAttribute(\"dx\",\"25\"),ve.setAttribute(\"dy\",\"0\"),ve.setAttribute(\"in\",\"drop_shadow_1\"),ve.setAttribute(\"result\",\"drop_shadow_2\"),this.feOffset=ve,b.appendChild(ve);var pe=q(\"feFlood\");pe.setAttribute(\"flood-color\",\"#00ff00\"),pe.setAttribute(\"flood-opacity\",\"1\"),pe.setAttribute(\"result\",\"drop_shadow_3\"),this.feFlood=pe,b.appendChild(pe);var Ge=q(\"feComposite\");Ge.setAttribute(\"in\",\"drop_shadow_3\"),Ge.setAttribute(\"in2\",\"drop_shadow_2\"),Ge.setAttribute(\"operator\",\"in\"),Ge.setAttribute(\"result\",\"drop_shadow_4\"),b.appendChild(Ge);var ht=q(\"feMerge\");b.appendChild(ht);var Xe;Xe=q(\"feMergeNode\"),ht.appendChild(Xe),Xe=q(\"feMergeNode\"),Xe.setAttribute(\"in\",\"SourceGraphic\"),this.feMergeNode=Xe,this.feMerge=ht,this.originalNodeAdded=!1,ht.appendChild(Xe)}tt.prototype.renderFrame=function(b){if(b||this.filterManager._mdf){if((b||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute(\"stdDeviation\",this.filterManager.effectElements[4].p.v/4),b||this.filterManager.effectElements[0].p._mdf){var F=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute(\"flood-color\",ne(Math.round(F[0]*255),Math.round(F[1]*255),Math.round(F[2]*255)))}if((b||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute(\"flood-opacity\",this.filterManager.effectElements[1].p.v/255),b||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var N=this.filterManager.effectElements[3].p.v,ce=(this.filterManager.effectElements[2].p.v-90)*D,ve=N*Math.cos(ce),pe=N*Math.sin(ce);this.feOffset.setAttribute(\"dx\",ve),this.feOffset.setAttribute(\"dy\",pe)}}};var Ce=[];function _t(b,F,N){this.initialized=!1,this.filterManager=F,this.filterElem=b,this.elem=N,N.matteElement=q(\"g\"),N.matteElement.appendChild(N.layerElement),N.matteElement.appendChild(N.transformedElement),N.baseElement=N.matteElement}_t.prototype.findSymbol=function(b){for(var F=0,N=Ce.length;F<N;){if(Ce[F]===b)return Ce[F];F+=1}return null},_t.prototype.replaceInParent=function(b,F){var N=b.layerElement.parentNode;if(N){for(var ce=N.children,ve=0,pe=ce.length;ve<pe&&ce[ve]!==b.layerElement;)ve+=1;var Ge;ve<=pe-2&&(Ge=ce[ve+1]);var ht=q(\"use\");ht.setAttribute(\"href\",\"#\"+F),Ge?N.insertBefore(ht,Ge):N.appendChild(ht)}},_t.prototype.setElementAsMask=function(b,F){if(!this.findSymbol(F)){var N=L(),ce=q(\"mask\");ce.setAttribute(\"id\",F.layerId),ce.setAttribute(\"mask-type\",\"alpha\"),Ce.push(F);var ve=b.globalData.defs;ve.appendChild(ce);var pe=q(\"symbol\");pe.setAttribute(\"id\",N),this.replaceInParent(F,N),pe.appendChild(F.layerElement),ve.appendChild(pe);var Ge=q(\"use\");Ge.setAttribute(\"href\",\"#\"+N),ce.appendChild(Ge),F.data.hd=!1,F.show()}b.setMatte(F.layerId)},_t.prototype.initialize=function(){for(var b=this.filterManager.effectElements[0].p.v,F=this.elem.comp.elements,N=0,ce=F.length;N<ce;)F[N]&&F[N].data.ind===b&&this.setElementAsMask(this.elem,F[N]),N+=1;this.initialized=!0},_t.prototype.renderFrame=function(){this.initialized||this.initialize()};function Lt(){}var Dt=(function(){var b={},F=[],N=0,ce=0,ve=0,pe=!0,Ge=!1;function ht(Ye){for(var Ue=0,Je=Ye.target;Ue<ce;)F[Ue].animation===Je&&(F.splice(Ue,1),Ue-=1,ce-=1,Je.isPaused||ut()),Ue+=1}function Xe(Ye,Ue){if(!Ye)return null;for(var Je=0;Je<ce;){if(F[Je].elem===Ye&&F[Je].elem!==null)return F[Je].animation;Je+=1}var jt=new yt;return st(jt,Ye),jt.setData(Ye,Ue),jt}function It(){var Ye,Ue=F.length,Je=[];for(Ye=0;Ye<Ue;Ye+=1)Je.push(F[Ye].animation);return Je}function kt(){ve+=1,Rn()}function ut(){ve-=1}function st(Ye,Ue){Ye.addEventListener(\"destroy\",ht),Ye.addEventListener(\"_active\",kt),Ye.addEventListener(\"_idle\",ut),F.push({elem:Ue,animation:Ye}),ce+=1}function bt(Ye){var Ue=new yt;return st(Ue,null),Ue.setParams(Ye),Ue}function Ot(Ye,Ue){var Je;for(Je=0;Je<ce;Je+=1)F[Je].animation.setSpeed(Ye,Ue)}function Mt(Ye,Ue){var Je;for(Je=0;Je<ce;Je+=1)F[Je].animation.setDirection(Ye,Ue)}function gt(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.play(Ye)}function $e(Ye){var Ue=Ye-N,Je;for(Je=0;Je<ce;Je+=1)F[Je].animation.advanceTime(Ue);N=Ye,ve&&!Ge?t.requestAnimationFrame($e):pe=!0}function Me(Ye){N=Ye,t.requestAnimationFrame($e)}function Ie(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.pause(Ye)}function Te(Ye,Ue,Je){var jt;for(jt=0;jt<ce;jt+=1)F[jt].animation.goToAndStop(Ye,Ue,Je)}function Oe(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.stop(Ye)}function Ze(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.togglePause(Ye)}function We(Ye){var Ue;for(Ue=ce-1;Ue>=0;Ue-=1)F[Ue].animation.destroy(Ye)}function ct(Ye,Ue,Je){var jt=[].concat([].slice.call(document.getElementsByClassName(\"lottie\")),[].slice.call(document.getElementsByClassName(\"bodymovin\"))),wn,dn=jt.length;for(wn=0;wn<dn;wn+=1)Je&&jt[wn].setAttribute(\"data-bm-type\",Je),Xe(jt[wn],Ye);if(Ue&&dn===0){Je||(Je=\"svg\");var Pr=document.getElementsByTagName(\"body\")[0];Pr.innerText=\"\";var ro=Ee(\"div\");ro.style.width=\"100%\",ro.style.height=\"100%\",ro.setAttribute(\"data-bm-type\",Je),Pr.appendChild(ro),Xe(ro,Ye)}}function fn(){var Ye;for(Ye=0;Ye<ce;Ye+=1)F[Ye].animation.resize()}function Rn(){!Ge&&ve&&pe&&(t.requestAnimationFrame(Me),pe=!1)}function On(){Ge=!0}function Ln(){Ge=!1,Rn()}function un(Ye,Ue){var Je;for(Je=0;Je<ce;Je+=1)F[Je].animation.setVolume(Ye,Ue)}function bn(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.mute(Ye)}function mn(Ye){var Ue;for(Ue=0;Ue<ce;Ue+=1)F[Ue].animation.unmute(Ye)}return b.registerAnimation=Xe,b.loadAnimation=bt,b.setSpeed=Ot,b.setDirection=Mt,b.play=gt,b.pause=Ie,b.stop=Oe,b.togglePause=Ze,b.searchAnimations=ct,b.resize=fn,b.goToAndStop=Te,b.destroy=We,b.freeze=On,b.unfreeze=Ln,b.setVolume=un,b.mute=bn,b.unmute=mn,b.getRegisteredAnimations=It,b})(),yt=function(){this._cbs=[],this.name=\"\",this.path=\"\",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=L(),this.assetsPath=\"\",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=a,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=O(),this.imagePreloader=new Se,this.audioController=Kn(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};X([Q],yt),yt.prototype.setParams=function(b){(b.wrapper||b.container)&&(this.wrapper=b.wrapper||b.container);var F=\"svg\";switch(b.animType?F=b.animType:b.renderer&&(F=b.renderer),F){case\"canvas\":this.renderer=new CanvasRenderer(this,b.rendererSettings);break;case\"svg\":this.renderer=new Be(this,b.rendererSettings);break;default:this.renderer=new HybridRenderer(this,b.rendererSettings);break}this.imagePreloader.setCacheType(F,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=F,b.loop===\"\"||b.loop===null||b.loop===void 0||b.loop===!0?this.loop=!0:b.loop===!1?this.loop=!1:this.loop=parseInt(b.loop,10),this.autoplay=\"autoplay\"in b?b.autoplay:!0,this.name=b.name?b.name:\"\",this.autoloadSegments=Object.prototype.hasOwnProperty.call(b,\"autoloadSegments\")?b.autoloadSegments:!0,this.assetsPath=b.assetsPath,this.initialSegment=b.initialSegment,b.audioFactory&&this.audioController.setAudioFactory(b.audioFactory),b.animationData?this.setupAnimation(b.animationData):b.path&&(b.path.lastIndexOf(\"\\\\\\\\\")!==-1?this.path=b.path.substr(0,b.path.lastIndexOf(\"\\\\\\\\\")+1):this.path=b.path.substr(0,b.path.lastIndexOf(\"/\")+1),this.fileName=b.path.substr(b.path.lastIndexOf(\"/\")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(\".json\")),De.loadAnimation(b.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger(\"data_failed\")},yt.prototype.setupAnimation=function(b){De.completeAnimation(b,this.configAnimation)},yt.prototype.setData=function(b,F){F&&typeof F!=\"object\"&&(F=JSON.parse(F));var N={wrapper:b,animationData:F},ce=b.attributes;N.path=ce.getNamedItem(\"data-animation-path\")?ce.getNamedItem(\"data-animation-path\").value:ce.getNamedItem(\"data-bm-path\")?ce.getNamedItem(\"data-bm-path\").value:ce.getNamedItem(\"bm-path\")?ce.getNamedItem(\"bm-path\").value:\"\",N.animType=ce.getNamedItem(\"data-anim-type\")?ce.getNamedItem(\"data-anim-type\").value:ce.getNamedItem(\"data-bm-type\")?ce.getNamedItem(\"data-bm-type\").value:ce.getNamedItem(\"bm-type\")?ce.getNamedItem(\"bm-type\").value:ce.getNamedItem(\"data-bm-renderer\")?ce.getNamedItem(\"data-bm-renderer\").value:ce.getNamedItem(\"bm-renderer\")?ce.getNamedItem(\"bm-renderer\").value:\"canvas\";var ve=ce.getNamedItem(\"data-anim-loop\")?ce.getNamedItem(\"data-anim-loop\").value:ce.getNamedItem(\"data-bm-loop\")?ce.getNamedItem(\"data-bm-loop\").value:ce.getNamedItem(\"bm-loop\")?ce.getNamedItem(\"bm-loop\").value:\"\";ve===\"false\"?N.loop=!1:ve===\"true\"?N.loop=!0:ve!==\"\"&&(N.loop=parseInt(ve,10));var pe=ce.getNamedItem(\"data-anim-autoplay\")?ce.getNamedItem(\"data-anim-autoplay\").value:ce.getNamedItem(\"data-bm-autoplay\")?ce.getNamedItem(\"data-bm-autoplay\").value:ce.getNamedItem(\"bm-autoplay\")?ce.getNamedItem(\"bm-autoplay\").value:!0;N.autoplay=pe!==\"false\",N.name=ce.getNamedItem(\"data-name\")?ce.getNamedItem(\"data-name\").value:ce.getNamedItem(\"data-bm-name\")?ce.getNamedItem(\"data-bm-name\").value:ce.getNamedItem(\"bm-name\")?ce.getNamedItem(\"bm-name\").value:\"\";var Ge=ce.getNamedItem(\"data-anim-prerender\")?ce.getNamedItem(\"data-anim-prerender\").value:ce.getNamedItem(\"data-bm-prerender\")?ce.getNamedItem(\"data-bm-prerender\").value:ce.getNamedItem(\"bm-prerender\")?ce.getNamedItem(\"bm-prerender\").value:\"\";Ge===\"false\"&&(N.prerender=!1),this.setParams(N)},yt.prototype.includeLayers=function(b){b.op>this.animationData.op&&(this.animationData.op=b.op,this.totalFrames=Math.floor(b.op-this.animationData.ip));var F=this.animationData.layers,N,ce=F.length,ve=b.layers,pe,Ge=ve.length;for(pe=0;pe<Ge;pe+=1)for(N=0;N<ce;){if(F[N].id===ve[pe].id){F[N]=ve[pe];break}N+=1}if((b.chars||b.fonts)&&(this.renderer.globalData.fontManager.addChars(b.chars),this.renderer.globalData.fontManager.addFonts(b.fonts,this.renderer.globalData.defs)),b.assets)for(ce=b.assets.length,N=0;N<ce;N+=1)this.animationData.assets.push(b.assets[N]);this.animationData.__complete=!1,De.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(b){this.animationData=b,l&&l.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var b=this.animationData.segments;if(!b||b.length===0||!this.autoloadSegments){this.trigger(\"data_ready\"),this.timeCompleted=this.totalFrames;return}var F=b.shift();this.timeCompleted=F.time*this.frameRate;var N=this.path+this.fileName+\"_\"+this.segmentPos+\".json\";this.segmentPos+=1,De.loadData(N,this.includeLayers.bind(this),function(){this.trigger(\"data_failed\")}.bind(this))},yt.prototype.loadSegments=function(){var b=this.animationData.segments;b||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger(\"loaded_images\"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(b){if(this.renderer)try{this.animationData=b,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(b),b.assets||(b.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(b.assets),this.markers=wi(b.markers||[]),this.trigger(\"config_ready\"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(F){this.triggerConfigError(F)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!==\"canvas\")&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,l&&l.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger(\"DOMLoaded\")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},yt.prototype.resize=function(){this.renderer.updateContainerSize()},yt.prototype.setSubframe=function(b){this.isSubframeEnabled=!!b},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(\"enterFrame\"),this.renderFrame(),this.trigger(\"drawnFrame\")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(b){this.triggerRenderFrameError(b)}},yt.prototype.play=function(b){b&&this.name!==b||this.isPaused===!0&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger(\"_active\")))},yt.prototype.pause=function(b){b&&this.name!==b||this.isPaused===!1&&(this.isPaused=!0,this._idle=!0,this.trigger(\"_idle\"),this.audioController.pause())},yt.prototype.togglePause=function(b){b&&this.name!==b||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(b){b&&this.name!==b||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(b){for(var F,N=0;N<this.markers.length;N+=1)if(F=this.markers[N],F.payload&&F.payload.name===b)return F;return null},yt.prototype.goToAndStop=function(b,F,N){if(!(N&&this.name!==N)){var ce=Number(b);if(isNaN(ce)){var ve=this.getMarkerData(b);ve&&this.goToAndStop(ve.time,!0)}else F?this.setCurrentRawFrameValue(b):this.setCurrentRawFrameValue(b*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(b,F,N){if(!(N&&this.name!==N)){var ce=Number(b);if(isNaN(ce)){var ve=this.getMarkerData(b);ve&&(ve.duration?this.playSegments([ve.time,ve.time+ve.duration],!0):this.goToAndStop(ve.time,!0))}else this.goToAndStop(ce,F,N);this.play()}},yt.prototype.advanceTime=function(b){if(!(this.isPaused===!0||this.isLoaded===!1)){var F=this.currentRawFrame+b*this.frameModifier,N=!1;F>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(F>this.totalFrames?F%this.totalFrames:0)||(N=!0,F=this.totalFrames-1):F>=this.totalFrames?(this.playCount+=1,this.checkSegments(F%this.totalFrames)||(this.setCurrentRawFrameValue(F%this.totalFrames),this._completedLoop=!0,this.trigger(\"loopComplete\"))):this.setCurrentRawFrameValue(F):F<0?this.checkSegments(F%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+F%this.totalFrames),this._completedLoop?this.trigger(\"loopComplete\"):this._completedLoop=!0):(N=!0,F=0)):this.setCurrentRawFrameValue(F),N&&(this.setCurrentRawFrameValue(F),this.pause(),this.trigger(\"complete\"))}},yt.prototype.adjustSegment=function(b,F){this.playCount=0,b[1]<b[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=b[0]-b[1],this.timeCompleted=this.totalFrames,this.firstFrame=b[1],this.setCurrentRawFrameValue(this.totalFrames-.001-F)):b[1]>b[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=b[1]-b[0],this.timeCompleted=this.totalFrames,this.firstFrame=b[0],this.setCurrentRawFrameValue(.001+F)),this.trigger(\"segmentStart\")},yt.prototype.setSegment=function(b,F){var N=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<b?N=b:this.currentRawFrame+this.firstFrame>F&&(N=F-b)),this.firstFrame=b,this.totalFrames=F-b,this.timeCompleted=this.totalFrames,N!==-1&&this.goToAndStop(N,!0)},yt.prototype.playSegments=function(b,F){if(F&&(this.segments.length=0),typeof b[0]==\"object\"){var N,ce=b.length;for(N=0;N<ce;N+=1)this.segments.push(b[N])}else this.segments.push(b);this.segments.length&&F&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(b){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),b&&this.checkSegments(0)},yt.prototype.checkSegments=function(b){return this.segments.length?(this.adjustSegment(this.segments.shift(),b),!0):!1},yt.prototype.destroy=function(b){b&&this.name!==b||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(\"destroy\"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(b){this.currentRawFrame=b,this.gotoFrame()},yt.prototype.setSpeed=function(b){this.playSpeed=b,this.updaFrameModifier()},yt.prototype.setDirection=function(b){this.playDirection=b<0?-1:1,this.updaFrameModifier()},yt.prototype.setVolume=function(b,F){F&&this.name!==F||this.audioController.setVolume(b)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(b){b&&this.name!==b||this.audioController.mute()},yt.prototype.unmute=function(b){b&&this.name!==b||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(b){var F=\"\";if(b.e)F=b.p;else if(this.assetsPath){var N=b.p;N.indexOf(\"images/\")!==-1&&(N=N.split(\"/\")[1]),F=this.assetsPath+N}else F=this.path,F+=b.u?b.u:\"\",F+=b.p;return F},yt.prototype.getAssetData=function(b){for(var F=0,N=this.assets.length;F<N;){if(b===this.assets[F].id)return this.assets[F];F+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(b){return b?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.trigger=function(b){if(this._cbs&&this._cbs[b])switch(b){case\"enterFrame\":case\"drawnFrame\":this.triggerEvent(b,new le(b,this.currentFrame,this.totalFrames,this.frameModifier));break;case\"loopComplete\":this.triggerEvent(b,new te(b,this.loop,this.playCount,this.frameMult));break;case\"complete\":this.triggerEvent(b,new se(b,this.frameMult));break;case\"segmentStart\":this.triggerEvent(b,new S(b,this.firstFrame,this.totalFrames));break;case\"destroy\":this.triggerEvent(b,new _(b,this));break;default:this.triggerEvent(b)}b===\"enterFrame\"&&this.onEnterFrame&&this.onEnterFrame.call(this,new le(b,this.currentFrame,this.totalFrames,this.frameMult)),b===\"loopComplete\"&&this.onLoopComplete&&this.onLoopComplete.call(this,new te(b,this.loop,this.playCount,this.frameMult)),b===\"complete\"&&this.onComplete&&this.onComplete.call(this,new se(b,this.frameMult)),b===\"segmentStart\"&&this.onSegmentStart&&this.onSegmentStart.call(this,new S(b,this.firstFrame,this.totalFrames)),b===\"destroy\"&&this.onDestroy&&this.onDestroy.call(this,new _(b,this))},yt.prototype.triggerRenderFrameError=function(b){var F=new P(b,this.currentFrame);this.triggerEvent(\"error\",F),this.onError&&this.onError.call(this,F)},yt.prototype.triggerConfigError=function(b){var F=new z(b,this.currentFrame);this.triggerEvent(\"error\",F),this.onError&&this.onError.call(this,F)};function Zt(){this.effectElements=[]}var Jt={};function Qn(b){n=b}function Xn(){A0===!0?Dt.searchAnimations(nh,A0,Ab):Dt.searchAnimations()}function tr(b){a=b}function gr(b){c=b}function yr(b){return A0===!0&&(b.animationData=JSON.parse(nh)),Dt.loadAnimation(b)}function Br(b){if(typeof b==\"string\")switch(b){case\"high\":V=200;break;default:case\"medium\":V=50;break;case\"low\":V=10;break}else!isNaN(b)&&b>1&&(V=b);V>=50?ee(!1):ee(!0)}function no(){return typeof navigator<\"u\"}function Xo(b,F){b===\"expressions\"&&(l=F)}function zo(b){switch(b){case\"propertyFactory\":return et;case\"shapePropertyFactory\":return xt;case\"matrix\":return C;default:return null}}Jt.play=Dt.play,Jt.pause=Dt.pause,Jt.setLocationHref=Qn,Jt.togglePause=Dt.togglePause,Jt.setSpeed=Dt.setSpeed,Jt.setDirection=Dt.setDirection,Jt.stop=Dt.stop,Jt.searchAnimations=Xn,Jt.registerAnimation=Dt.registerAnimation,Jt.loadAnimation=yr,Jt.setSubframeRendering=tr,Jt.resize=Dt.resize,Jt.goToAndStop=Dt.goToAndStop,Jt.destroy=Dt.destroy,Jt.setQuality=Br,Jt.inBrowser=no,Jt.installPlugin=Xo,Jt.freeze=Dt.freeze,Jt.unfreeze=Dt.unfreeze,Jt.setVolume=Dt.setVolume,Jt.mute=Dt.mute,Jt.unmute=Dt.unmute,Jt.getRegisteredAnimations=Dt.getRegisteredAnimations,Jt.useWebWorker=function(b){o=b},Jt.setIDPrefix=gr,Jt.__getFactory=zo,Jt.version=\"5.8.1\";function E0(){document.readyState===\"complete\"&&(clearInterval(XI),Xn())}function S0(b){for(var F=k0.split(\"&\"),N=0;N<F.length;N+=1){var ce=F[N].split(\"=\");if(decodeURIComponent(ce[0])==b)return decodeURIComponent(ce[1])}return null}var A0=\"__[STANDALONE]__\",nh=\"__[ANIMATIONDATA]__\",Ab=\"\",k0;if(A0){var C0=document.getElementsByTagName(\"script\"),bS=C0.length-1,ms=C0[bS]||{src:\"\"};k0=ms.src.replace(/^[^\\\\?]+\\\\??/,\"\"),Ab=S0(\"renderer\")}var XI=setInterval(E0,100);return Jt})});var GMe={};function _u(t,e){e===void 0&&(e={});var n=e.insertAt;if(t&&typeof document<\"u\"){var r=document.head||document.getElementsByTagName(\"head\")[0],o=document.createElement(\"style\");o.type=\"text/css\",n===\"top\"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}function VL(){document.documentElement.style.setProperty(\"--pera-wallet-vh\",.01*window.innerHeight+\"px\")}function Id(t,e){window.customElements.get(t)||window.customElements.define(t,e)}var eN,tN,Fct,Foe,Ooe,jMe,HL,Loe,Noe,Uoe,jL,Doe,zoe,Voe,Hoe,joe,$oe,$L,KL,gk,GL,Koe,yk,vk,qL,Goe,qoe,WL,Woe,Yoe,Zoe,$Me,YL,ZL,xk,KMe,XL,Xoe,Joe,JL,Qoe,eie,QL,tie=Ve(()=>{u();oN();eN=br(Poe(),1),tN=br(Boe(),1);Tg();$i();pk();Fct=br(_g(),1);Foe=`.pera-wallet-modal-header {\\n  position: absolute;\\n  top: -44px;\\n  right: 0px;\\n  left: 0;\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n}\\n.pera-wallet-modal-header--mobile {\\n  display: flex;\\n  align-items: center;\\n  justify-content: flex-end;\\n  position: static;\\n}\\n.pera-wallet-modal-header--mobile .pera-wallet-modal-header__close-button {\\n  width: 24px;\\n  height: 24px;\\n  margin: 0;\\n  padding: 0;\\n  background: transparent;\\n  border: unset;\\n  box-shadow: unset;\\n}\\n\\n.pera-wallet-modal-header__brand {\\n  display: flex;\\n  align-items: center;\\n  gap: 10px;\\n  font-size: 14px;\\n  font-weight: 600;\\n  line-height: 24px;\\n  letter-spacing: -0.1px;\\n  color: #ffffff;\\n}\\n\\n.pera-wallet-modal-header__brand-text {\\n  display: flex;\\n  align-items: center;\\n  gap: 6px;\\n}\\n\\n.pera-wallet-modal-header__version-number {\\n  color: #9d9dae;\\n  font-size: 12px;\\n  font-weight: 400;\\n  line-height: 18px;\\n  letter-spacing: 0.01;\\n}\\n\\n.pera-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.pera-wallet-modal-header__close-button {\\n  width: 32px;\\n  height: 32px;\\n  margin: 0;\\n  padding: 0;\\n  background: rgba(44, 53, 89, 0.1);\\n  border-radius: 8px;\\n}\\n\\n.pera-wallet-modal-header__close-button__close-icon {\\n  width: 20px;\\n  height: 20px;\\n}`;_u(Foe);Ooe=document.createElement(\"template\"),jMe=Ws()?\"pera-wallet-modal-header pera-wallet-modal-header--mobile\":\"pera-wallet-modal-header pera-wallet-modal-header--desktop\";Ooe.innerHTML=`\\n  <div class=\"${jMe}\">\\n      ${Ws()?\"\":`<div class=\"pera-wallet-modal-header__brand\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect width=\\'24\\' height=\\'24\\' rx=\\'4.8\\' fill=\\'%23FFEE55\\'/%3e%3cpath d=\\'M13.0408 5.92462C13.413 7.46693 13.2872 8.8236 12.7597 8.95482C12.2322 9.08605 11.5028 7.94214 11.1306 6.39983C10.7583 4.85752 10.8842 3.50085 11.4117 3.36963C11.9391 3.2384 12.6685 4.38231 13.0408 5.92462Z\\' fill=\\'black\\'/%3e%3cpath d=\\'M19.1876 7.25063C18.3632 6.37689 16.7231 6.61371 15.5243 7.77959C14.3254 8.94547 14.0219 10.5989 14.8463 11.4727C15.6707 12.3464 17.3108 12.1096 18.5097 10.9437C19.7085 9.77781 20.012 8.12438 19.1876 7.25063Z\\' fill=\\'black\\'/%3e%3cpath d=\\'M12.6308 20.6297C13.1583 20.4985 13.2656 19.0651 12.8705 17.4281C12.4754 15.7911 11.7275 14.5705 11.2 14.7017C10.6725 14.8329 10.5652 16.2663 10.9603 17.9033C11.3554 19.5403 12.1033 20.7609 12.6308 20.6297Z\\' fill=\\'black\\'/%3e%3cpath d=\\'M7.25371 8.05056C8.77551 8.49933 9.8875 9.28664 9.73741 9.80906C9.58731 10.3315 8.23197 10.3912 6.71016 9.94242C5.18836 9.49364 4.07637 8.70633 4.22646 8.18391C4.37656 7.66149 5.7319 7.60178 7.25371 8.05056Z\\' fill=\\'black\\'/%3e%3cpath d=\\'M17.1309 13.9497C18.7461 14.4261 19.9338 15.2357 19.7837 15.7581C19.6336 16.2806 18.2025 16.3179 16.5873 15.8416C14.9721 15.3653 13.7844 14.5556 13.9345 14.0332C14.0846 13.5108 15.5157 13.4734 17.1309 13.9497Z\\' fill=\\'black\\'/%3e%3cpath d=\\'M8.96609 12.8536C8.5887 12.4624 7.35088 13.0318 6.20133 14.1253C5.05177 15.2188 4.42581 16.4225 4.80319 16.8137C5.18058 17.2048 6.4184 16.6355 7.56796 15.542C8.71751 14.4484 9.34347 13.2448 8.96609 12.8536Z\\' fill=\\'black\\'/%3e%3c/svg%3e\" />\\n\\n              <div class=\"pera-wallet-modal-header__brand-text\">\\n                <span>Pera Connect</span>\\n\\n                <span class=\"pera-wallet-modal-header__version-number\">v1.5.2</span>\\n              </div>\\n            </div>\\n            `} \\n\\n      <button\\n        id=\"pera-wallet-modal-header-close-button\"\\n        class=\"pera-wallet-button pera-wallet-modal-header__close-button\">\\n        <img\\n          class=\"pera-wallet-modal-header__close-button__close-icon\"\\n          src=\"${Ws()?\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6\\' stroke=\\'%232C3559\\' stroke-width=\\'2\\'/%3e%3c/svg%3e\":\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6\\' stroke=\\'white\\' stroke-width=\\'2\\'/%3e%3c/svg%3e\"}\"\\n        />\\n      </button>\\n    </div>\\n`;HL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Foe,this.shadowRoot.append(Ooe.content.cloneNode(!0),e),this.onClose()}}onClose(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-modal-header-close-button\"),r=this.getAttribute(\"modal-id\");n&&r===vm&&n.addEventListener(\"click\",(()=>{Ys(vm)}))}},Loe=\"data:image/svg+xml,%3csvg fill=\\'none\\' height=\\'80\\' width=\\'80\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath clip-rule=\\'evenodd\\' d=\\'M39.9 80V68.99h-9.8V80h-.2V68.99h-3.5a6.503 6.503 0 0 1-6.247-4.7 6.514 6.514 0 0 1-4.445-4.444 6.503 6.503 0 0 1-4.695-6.246v-3.5H0v-.2h11.013v-9.8H0v-.2h11.013v-9.8H0v-.2h11.013v-3.5a6.503 6.503 0 0 1 4.694-6.246 6.513 6.513 0 0 1 4.447-4.447 6.503 6.503 0 0 1 6.246-4.696h3.5V0h.2v11.011h9.8V0h.2v11.011h9.8V0h.2v11.011h3.5a6.503 6.503 0 0 1 6.247 4.697 6.514 6.514 0 0 1 4.443 4.444 6.503 6.503 0 0 1 4.701 6.248v3.5H80v.2H68.991v9.8H80v.2H68.991v9.8H80v.2H68.991v3.5a6.503 6.503 0 0 1-4.701 6.248 6.514 6.514 0 0 1-4.443 4.442 6.503 6.503 0 0 1-6.247 4.7h-3.5V80h-.2V68.99h-9.8V80zm28.89-40.1a28.728 28.728 0 0 0-1.746-9.8h-2.5v9.8h4.247zm-4.246.2h4.247a28.729 28.729 0 0 1-1.747 9.8h-2.5zm-.2-.2v-9.8H60.1v9.8zm-4.244.2h4.244v9.8H60.1zm-.2-.2a19.807 19.807 0 0 0-2.633-9.8H50.1v9.8zm-9.8.2h9.8a19.807 19.807 0 0 1-2.633 9.8H50.1zm-.2-.2v-9.8h-9.8v9.8zm-9.8.2h9.8v9.8h-9.8zm-.2-.2v-9.8h-9.8v9.8zm-9.8.2h9.8v9.8h-9.8zm-.2-.2v-9.8h-7.167a19.807 19.807 0 0 0-2.633 9.8zm-9.8.2h9.8v9.8h-7.167a19.807 19.807 0 0 1-2.633-9.8zm-.2-.2v-9.8h-4.245v9.8zm-4.245.2H19.9v9.8h-4.245zm-.2-.2v-9.8H12.96a28.726 28.726 0 0 0-1.748 9.8h4.242zm-4.242.2h4.242v9.8H12.96a28.726 28.726 0 0 1-1.748-9.8zm0 13.5v-3.5h1.608a28.876 28.876 0 0 0 2.634 5.327v2.617c0 .543.066 1.07.192 1.575a6.303 6.303 0 0 1-4.434-6.019zm4.242 1.449a28.674 28.674 0 0 1-2.42-4.949h2.42zm.2.32V50.1H19.9v9.8h-.702a28.915 28.915 0 0 1-3.543-4.53zM20.1 59.9v-9.8h2.518a20.2 20.2 0 0 0 7.282 7.282V59.9zm0-10h2.403a19.966 19.966 0 0 1-2.403-7.053zm9.8 7.25a20 20 0 0 1-7.05-7.05h7.05zm.2.117V50.1h9.8v9.8a19.807 19.807 0 0 1-9.8-2.633zm10 2.633v-9.8h9.8v7.167a19.807 19.807 0 0 1-9.8 2.633zm10-2.75V50.1h7.05a20 20 0 0 1-7.05 7.05zm0 .232a20.2 20.2 0 0 0 7.282-7.282H59.9v9.8h-9.8zm7.397-7.482H59.9v-7.053a19.966 19.966 0 0 1-2.403 7.053zm2.603 10v-9.8h4.244v5.28a28.91 28.91 0 0 1-3.538 4.52zm4.444-4.841V50.1h2.426a28.67 28.67 0 0 1-2.426 4.959zm0 .378a28.881 28.881 0 0 0 2.64-5.337h1.607v3.5a6.303 6.303 0 0 1-4.44 6.021 6.514 6.514 0 0 0 .193-1.577zm2.713-5.537h1.534v-6.477a28.817 28.817 0 0 1-1.534 6.477zm-56.044 0h1.535a28.807 28.807 0 0 1-1.535-6.477zm57.578-20v-3.5a6.303 6.303 0 0 0-4.44-6.02c.126.504.193 1.031.193 1.575v2.608a28.877 28.877 0 0 1 2.639 5.337zm-1.534.2h1.534v6.477a28.815 28.815 0 0 0-1.534-6.477zm-.288-.2a28.673 28.673 0 0 0-2.425-4.958V29.9zm-2.625 0v-5.279a28.911 28.911 0 0 0-3.538-4.521H60.1v9.8zm-4.444 0v-9.8h-9.8v2.518a20.2 20.2 0 0 1 7.282 7.282zm-2.403.2H59.9v7.053a19.966 19.966 0 0 0-2.403-7.053zm-.347-.2a20 20 0 0 0-7.05-7.05v7.05zm-7.25 0v-7.167a19.807 19.807 0 0 0-9.8-2.633v9.8zm-10 0v-9.8a19.807 19.807 0 0 0-9.8 2.633V29.9zm-10 0v-7.05a20 20 0 0 0-7.05 7.05zm-7.282 0a20.2 20.2 0 0 1 7.282-7.282V20.1h-9.8v9.8zm-2.518.2h2.403a19.966 19.966 0 0 0-2.403 7.053zm-.2-.2v-9.8h-.701a28.915 28.915 0 0 0-3.544 4.53v5.27zm-4.445 0v-4.948a28.665 28.665 0 0 0-2.42 4.948zm-2.634 0a28.874 28.874 0 0 1 2.634-5.327v-2.618c0-.543.066-1.07.191-1.574a6.303 6.303 0 0 0-4.433 6.019v3.5zm-1.608.2h1.535a28.81 28.81 0 0 0-1.535 6.477zM36.58 68.79H30.1v-1.536c2.06.749 4.23 1.27 6.479 1.535zm3.321-.001a28.726 28.726 0 0 1-9.8-1.748v-2.497h9.8zm-10-1.822v-2.423h-4.953a28.678 28.678 0 0 0 4.953 2.423zm10-2.623h-9.8V60.1h9.8zm-10 0V60.1h-9.8v.702a28.915 28.915 0 0 0 4.526 3.542H29.9zm7.254-4.444H30.1v-2.403a19.966 19.966 0 0 0 7.053 2.403zm0-39.8a19.966 19.966 0 0 0-7.054 2.403V20.1h7.053zm2.746-.2h-9.8v-4.245h9.8zm-10 0v-4.245h-5.27a28.907 28.907 0 0 0-4.53 3.544v.701zm10-4.445h-9.8V12.96a28.729 28.729 0 0 1 9.8-1.749zm-10 0v-2.421a28.668 28.668 0 0 0-4.95 2.42h4.95zm6.679-4.244a28.81 28.81 0 0 0-6.479 1.536V11.21h6.479zm-6.679 1.61v-1.61h-3.5a6.303 6.303 0 0 0-6.02 4.436 6.514 6.514 0 0 1 1.575-.192h2.617A28.877 28.877 0 0 1 29.9 12.82zm0 55.968V67.18a28.878 28.878 0 0 1-5.331-2.636h-2.614c-.543 0-1.07-.067-1.575-.192a6.303 6.303 0 0 0 6.02 4.437zm20.2 0h3.5a6.303 6.303 0 0 0 6.02-4.438 6.513 6.513 0 0 1-1.576.193h-2.608a28.879 28.879 0 0 1-5.336 2.638zm-.2-1.534v1.534h-6.475a28.808 28.808 0 0 0 6.475-1.534zm.2-.287a28.671 28.671 0 0 0 4.957-2.424H50.1v2.424zm-.2-2.424v2.499a28.728 28.728 0 0 1-9.8 1.746v-4.245zm.2-.2h5.278a28.914 28.914 0 0 0 4.522-3.538V60.1h-9.8zm-.2-4.244v4.244h-9.8V60.1zm0-2.603V59.9h-7.053a19.966 19.966 0 0 0 7.053-2.403zm0-37.397v2.403a19.966 19.966 0 0 0-7.053-2.403H49.9zm.2-.2h9.8v-.705a28.911 28.911 0 0 0-4.526-3.54H50.1V19.9zm-.2-4.245V19.9h-9.8v-4.245h9.8zm.2-.2h4.954a28.676 28.676 0 0 0-4.954-2.423zm-.2-2.497v2.497h-9.8V11.21a28.75 28.75 0 0 1 9.8 1.747zm.2-.14a28.877 28.877 0 0 1 5.332 2.637h2.612c.543 0 1.071.066 1.576.192a6.303 6.303 0 0 0-6.02-4.436h-3.5zm-.2-1.607v1.534a28.812 28.812 0 0 0-6.475-1.534H49.9zm-34.245 44.53v2.303c0 .567.075 1.117.215 1.64a6.309 6.309 0 0 0 1.643.216h1.41a29.118 29.118 0 0 1-3.268-4.16zm3.458 4.359h-1.6a6.513 6.513 0 0 1-1.578-.193 6.315 6.315 0 0 0 4.157 4.157 6.517 6.517 0 0 1-.192-1.575v-1.602a29.35 29.35 0 0 1-.787-.787zm.787.509a29.029 29.029 0 0 1-.508-.509h.508zm.2.469v1.411c0 .567.075 1.117.215 1.64.523.14 1.073.215 1.64.215h2.3a29.118 29.118 0 0 1-4.155-3.266zm35.649 3.266h2.295c.567 0 1.117-.075 1.64-.216a6.286 6.286 0 0 0 .216-1.639v-1.407a29.116 29.116 0 0 1-4.151 3.262zm4.35-3.454v1.598a6.53 6.53 0 0 1-.192 1.574 6.314 6.314 0 0 0 4.155-4.154 6.509 6.509 0 0 1-1.572.191h-1.6a29.08 29.08 0 0 1-.791.791zm.982-.991h1.41c.565 0 1.114-.075 1.636-.215a6.31 6.31 0 0 0 .216-1.641V55.75a29.113 29.113 0 0 1-3.262 4.15zm3.262-35.65v-2.295c0-.568-.075-1.117-.216-1.64a6.307 6.307 0 0 0-1.637-.215h-1.41a29.112 29.112 0 0 1 3.263 4.15zM60.89 19.9h1.6c.542 0 1.069.066 1.573.192a6.314 6.314 0 0 0-4.156-4.157 6.51 6.51 0 0 1 .192 1.576v1.598c.269.259.532.522.79.791zm-.991-.981V17.51a6.31 6.31 0 0 0-.216-1.64 6.308 6.308 0 0 0-1.64-.216h-2.299a29.108 29.108 0 0 1 4.155 3.264zm-35.641-3.264h-2.304a6.31 6.31 0 0 0-1.639.215 6.306 6.306 0 0 0-.216 1.641v1.412a29.115 29.115 0 0 1 4.159-3.268zM19.9 19.113v-1.602c0-.543.067-1.072.193-1.577a6.315 6.315 0 0 0-4.159 4.16 6.518 6.518 0 0 1 1.58-.194h1.6c.257-.267.519-.53.786-.787zm-.508.787h.508v-.508c-.171.167-.34.337-.508.508zm-.47.2h-1.409a6.31 6.31 0 0 0-1.643.216 6.308 6.308 0 0 0-.215 1.639v2.305a29.107 29.107 0 0 1 3.268-4.16zm41.178-.712c.173.168.344.34.512.512H60.1zm.513 40.712c-.169.173-.34.344-.513.513V60.1z\\' fill=\\'%2394a3b8\\' fill-rule=\\'evenodd\\'/%3e%3crect fill=\\'black\\' height=\\'80\\' rx=\\'16\\' width=\\'80\\'/%3e%3cpath d=\\'M43.47 19.752c1.24 5.14.821 9.663-.937 10.1-1.758.438-4.19-3.375-5.43-8.517-1.241-5.14-.822-9.663.936-10.1 1.759-.438 4.19 3.376 5.43 8.517zm20.49 4.42c-2.749-2.913-8.216-2.123-12.212 1.763s-5.008 9.398-2.26 12.31 8.215 2.123 12.211-1.763 5.008-9.398 2.26-12.31zM42.102 68.769c1.758-.438 2.116-5.216.8-10.673-1.318-5.456-3.81-9.525-5.57-9.088-1.757.438-2.115 5.216-.798 10.672 1.317 5.457 3.81 9.526 5.568 9.089zM24.18 26.838c5.073 1.496 8.78 4.12 8.28 5.862-.5 1.741-5.019 1.94-10.091.444-5.073-1.496-8.78-4.12-8.28-5.861.501-1.742 5.019-1.941 10.092-.445zm32.924 19.664c5.384 1.588 9.343 4.286 8.843 6.028-.5 1.741-5.27 1.866-10.654.278-5.385-1.588-9.343-4.286-8.843-6.028.5-1.741 5.27-1.866 10.654-.278zm-27.216-3.654c-1.258-1.304-5.384.594-9.215 4.24-3.832 3.644-5.919 7.656-4.66 8.96 1.257 1.304 5.383-.594 9.215-4.239s5.918-7.657 4.66-8.96z\\' fill=\\'%23fe5\\'/%3e%3c/svg%3e\",Noe=`.pera-wallet-download-qr-code-wrapper {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: fit-content;\\n  margin: 26px auto 0;\\n  padding: 10px;\\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\\n  border-radius: 24px;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-download-qr-code-wrapper {\\n    margin-top: 51px;\\n  }\\n}`;_u(Noe);Uoe=document.createElement(\"template\");Uoe.innerHTML=`\\n  <div id=\"pera-wallet-download-qr-code-wrapper\" class=\"pera-wallet-download-qr-code-wrapper\"></div>  \\n`;jL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Noe,this.shadowRoot.append(Uoe.content.cloneNode(!0),e)}}connectedCallback(){var e;let n=new eN.default({width:205,height:205,type:\"svg\",data:nie,image:Loe,dotsOptions:{color:\"#000\",type:\"extra-rounded\"},imageOptions:{crossOrigin:\"anonymous\",margin:10},cornersSquareOptions:{type:\"extra-rounded\"},cornersDotOptions:{type:\"dot\"}}),r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-download-qr-code-wrapper\");r&&n.append(r)}},Doe=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M8.5 19L15.5 12L8.5 5\\' stroke=\\'%233C3C49\\' stroke-width=\\'2\\'/%3e%3c/svg%3e\",zoe=`.pera-wallet-connect-modal-desktop-mode {\\n  display: grid;\\n  grid-template-columns: 205px auto;\\n  gap: 70px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view {\\n  display: block;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\\n  height: 364px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item--web-wallet {\\n  display: none;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-toggle {\\n  padding: 26px 24px 12px;\\n  border-radius: 24px 24px 0 0;\\n  transition: all ease-in 0.2s;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-item__content {\\n  height: 434px;\\n  border-radius: 0 0 24px 24px;\\n  transition: height ease-in 0.2s;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-icon {\\n  transform: rotate(90deg);\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-connect-modal-desktop-mode__download-pera-description {\\n  margin-top: 50px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__download-view {\\n  display: none;\\n}\\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__default-view {\\n  display: none;\\n}\\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__download-view {\\n  display: block;\\n}\\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__download-view .pera-wallet-connect-modal-download-pera-view__footer a {\\n  display: flex;\\n  cursor: pointer;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact {\\n  grid-template-columns: unset;\\n  gap: unset;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet {\\n  padding: 28px 40px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper {\\n  box-shadow: unset;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__description {\\n  margin-bottom: 16px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button {\\n  width: 172px;\\n  height: 40px;\\n  margin: 0 auto;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\\n  height: 100%;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view {\\n  overflow: hidden;\\n  border-radius: 24px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item {\\n  margin-bottom: 0;\\n  border-radius: 0;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item:not(:last-child) {\\n  border-bottom: 1px solid #e6e8ee;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item #pera-wallet-iframe {\\n  height: 100%;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle {\\n  padding: 20px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__text, .pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__content-with-label__text {\\n  color: #626268;\\n  font-size: 14px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__bold-color {\\n  font-weight: 600;\\n  color: #1a1a1a;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\\n  height: 265px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-container {\\n  display: flex;\\n  justify-content: space-between;\\n  margin-top: 14px;\\n  padding: 0 20px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-description,\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-button {\\n  margin: 0;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-button {\\n  font-weight: 500;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-qr-code-wrapper {\\n  margin: 4px auto 0;\\n  padding: 0;\\n  box-shadow: unset;\\n}\\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-qr-code-wrapper svg {\\n  padding: 8px;\\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\\n  border-radius: 12px;\\n}\\n.pera-wallet-connect-modal-desktop-mode--select-account {\\n  width: 100%;\\n  height: 100%;\\n}\\n.pera-wallet-connect-modal-desktop-mode--select-account.pera-wallet-connect-modal-desktop-mode--default {\\n  overflow: hidden;\\n}\\n.pera-wallet-connect-modal-desktop-mode--select-account .pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\\n  position: unset;\\n}\\n.pera-wallet-connect-modal-desktop-mode--select-account .pera-wallet-accordion {\\n  overflow: hidden;\\n}\\n.pera-wallet-connect-modal-desktop-mode--select-account #pera-wallet-iframe {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  z-index: 3;\\n  width: 100%;\\n  height: 100%;\\n  border-radius: 16px;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__accordion__description,\\n.pera-wallet-connect-modal-desktop-mode__connect-button-wrapper {\\n  padding: 0 40px 20px 64px;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__web-wallet {\\n  display: flex;\\n  flex-direction: column;\\n  justify-content: space-between;\\n  height: calc(100% - 88px);\\n  padding: 48px 52px 40px;\\n  margin: 0 auto;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: 72px;\\n  height: 72px;\\n  margin: 0 auto 16px;\\n  background: #ffffff;\\n  border-radius: 50%;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.1), 0px 10px 16px rgba(20, 37, 63, 0.06);\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__web-wallet__description {\\n  margin: 0 auto 32px;\\n  font-size: 14px;\\n  line-height: 24px;\\n  letter-spacing: -0.1px;\\n  text-align: center;\\n  color: #6a6a81;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 8px;\\n  width: 100%;\\n  padding: 14px 0;\\n  color: #ffffff;\\n  background-color: #6b46fe;\\n  border-radius: 12px;\\n  font-size: 14px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.1;\\n  border: none;\\n  outline: none;\\n  cursor: pointer;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\\n  position: relative;\\n  width: fit-content;\\n  margin: 0 auto;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__connect-button {\\n  display: block;\\n  width: 100%;\\n  height: 48px;\\n  border: unset;\\n  border-radius: 6px;\\n  background-color: #333333;\\n  color: white;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 13px;\\n}\\n\\n.pera-wallet-connect-qr-code-wrapper {\\n  width: fit-content;\\n  margin: 24px auto 0;\\n  padding: 10px;\\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\\n  border-radius: 24px;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__download-pera-description {\\n  color: #838aa6;\\n  text-align: center;\\n  margin: 32px 0 12px;\\n  font-size: 13px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.04px;\\n}\\n\\n.pera-wallet-connect-modal-desktop-mode__download-pera-button {\\n  display: flex;\\n  align-items: center;\\n  gap: 8px;\\n  margin: 0 auto;\\n  padding: 0;\\n  color: #6b46fe;\\n  background-color: transparent;\\n  outline: none;\\n  border: none;\\n  font-weight: 600;\\n  font-size: 13px;\\n  line-height: 20px;\\n  letter-spacing: 0.01px;\\n  cursor: pointer;\\n}\\n\\n.pera-wallet-connect-modal-download-pera-view__back-button {\\n  display: flex;\\n  align-items: center;\\n  gap: 16px;\\n  margin-bottom: 14px;\\n  padding: 12px 24px;\\n  color: #3c3c49;\\n  background-color: #ffffff;\\n  outline: none;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border: unset;\\n  border-radius: 24px;\\n  font-size: 14px;\\n  font-weight: 600;\\n  line-height: 24px;\\n  letter-spacing: -0.1px;\\n  cursor: pointer;\\n}\\n\\n.pera-wallet-connect-modal-download-pera-view {\\n  padding: 32px 37px 28px;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border-radius: 24px;\\n}\\n\\n.pera-wallet-connect-modal-download-pera-view__title {\\n  margin-bottom: 8px;\\n  color: #3c3c49;\\n  font-weight: 600;\\n  font-size: 15px;\\n  line-height: 18px;\\n  text-align: center;\\n  letter-spacing: -0.13px;\\n}\\n\\n.pera-wallet-connect-modal-download-pera-view__footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 12px;\\n  margin-top: 53px;\\n}\\n\\n.pera-wallet-connect-modal-download-pera-view__footer__button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 8px;\\n  padding: 8px 16px;\\n  color: #6a6a81;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  text-decoration: none;\\n  border-radius: 12px;\\n  font-weight: 500;\\n  font-size: 13px;\\n  line-height: 200%;\\n  letter-spacing: -0.04px;\\n  cursor: pointer;\\n}\\n\\n#pera-wallet-iframe {\\n  width: 285px;\\n  height: 376px;\\n  margin: 0 auto;\\n  border: none;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-connect-modal-desktop-mode {\\n    grid-template-columns: 1fr;\\n    gap: 24px;\\n  }\\n  .pera-wallet-connect-qr-code-wrapper {\\n    margin-top: 16px;\\n  }\\n  .pera-wallet-connect-modal-download-pera-view {\\n    padding: 24px;\\n  }\\n  .pera-wallet-download-qr-code-wrapper {\\n    margin-top: 32px;\\n  }\\n  .pera-wallet-connect-modal-download-pera-view__footer {\\n    margin-top: 40px;\\n  }\\n}`;_u(zoe);Voe=`.pera-wallet-accordion-item {\\n  background-color: #ffffff;\\n  border-radius: 24px;\\n  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.02), 0px 4px 12px rgba(0, 0, 0, 0.03);\\n}\\n.pera-wallet-accordion-item:not(:last-of-type) {\\n  margin-bottom: 20px;\\n}\\n.pera-wallet-accordion-item:not(:last-of-type) .pera-wallet-accordion-panel {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n}\\n.pera-wallet-accordion-item .pera-wallet-accordion-item__content {\\n  height: 0;\\n  overflow: hidden;\\n  color: #69708d;\\n  background-color: #ffffff;\\n  font-size: 13px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.04px;\\n  transition: height ease-in 0.2s;\\n}\\n.pera-wallet-accordion-item--active .pera-wallet-accordion-toggle {\\n  padding: 26px 24px 12px;\\n  border-radius: 24px 24px 0 0;\\n  transition: all ease-in 0.2s;\\n}\\n.pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\\n  border-radius: 0 0 24px 24px;\\n  transition: height ease-in 0.2s;\\n}\\n.pera-wallet-accordion-item--active .pera-wallet-accordion-icon {\\n  transform: rotate(90deg);\\n}\\n\\n.pera-wallet-accordion-toggle {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n  gap: 16px;\\n  padding: 12px 24px;\\n  color: #2c3559;\\n  background-color: #ffffff;\\n  border: none;\\n  border-radius: 24px;\\n  outline: none;\\n  cursor: pointer;\\n  font-size: 16px;\\n  line-height: 18px;\\n  letter-spacing: -0.1px;\\n  font-weight: 600;\\n  transition: all ease-in 0.2s;\\n}\\n.pera-wallet-accordion-toggle__text, .pera-wallet-accordion-toggle__content-with-label__text {\\n  color: #626268;\\n}\\n\\n.pera-wallet-accordion-icon {\\n  transition: all ease-in 0.2s;\\n}\\n\\n.pera-wallet-accordion-toggle__bold-color {\\n  color: #1A1A1A;\\n  font-weight: 600;\\n}\\n\\n.pera-wallet-accordion-toggle__content-with-label {\\n  display: flex;\\n  align-items: center;\\n  gap: 12px;\\n}\\n\\n.pera-wallet-accordion-toggle__label {\\n  padding: 4px 9px;\\n  color: #1C786C;\\n  background: #E0FAEE;\\n  border-radius: 12px;\\n  font-size: 11px;\\n  font-weight: 600;\\n  line-height: 18px;\\n  letter-spacing: 0.01px;\\n}\\n\\n.pera-wallet-accordion-toggle__button {\\n  position: absolute;\\n  z-index: 2;\\n  width: 100%;\\n  height: 100%;\\n  background: transparent;\\n  box-shadow: none;\\n  outline: none;\\n  border: none;\\n  cursor: pointer;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-accordion-toggle {\\n    font-size: 14px;\\n    font-weight: 500;\\n    line-height: 24px;\\n    letter-spacing: -0.1px;\\n  }\\n}`;_u(Voe);Hoe=document.createElement(\"template\"),joe=document.createElement(\"style\"),$oe=document.createElement(\"style\");joe.textContent=zoe,$oe.textContent=Voe;Hoe.innerHTML=`\\n  <div id=\"pera-wallet-connect-modal-desktop-mode\" class=\"pera-wallet-connect-modal-desktop-mode pera-wallet-connect-modal-desktop-mode--default\">\\n      <pera-wallet-connect-modal-information-section></pera-wallet-connect-modal-information-section>\\n\\n      <div class=\"pera-wallet-connect-modal-desktop-mode__default-view\"></div>\\n       \\n\\n      <div class=\"pera-wallet-connect-modal-desktop-mode__download-view\">\\n        <button\\n          id=\"pera-wallet-connect-modal-download-pera-view-back-button\"\\n          class=\"pera-wallet-connect-modal-download-pera-view__back-button\">\\n          <img\\n            src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M10.7071 6.29387C11.0976 6.68439 11.0976 7.31756 10.7071 7.70808L7.41421 11.001L19 11.001C19.5523 11.001 20 11.4487 20 12.001C20 12.5533 19.5523 13.001 19 13.001L7.41421 13.001L10.7071 16.2939C11.0976 16.6844 11.0976 17.3176 10.7071 17.7081C10.3166 18.0986 9.68342 18.0986 9.29289 17.7081L4.29289 12.7081C4.10536 12.5205 4 12.2662 4 12.001C4 11.7358 4.10536 11.4814 4.29289 11.2939L9.29289 6.29387C9.68342 5.90335 10.3166 5.90335 10.7071 6.29387Z\\' fill=\\'%233C3C49\\'/%3e%3c/svg%3e\"\\n            alt=\"Back Arrow\"\\n          />\\n\\n          Back\\n        </button>\\n\\n        <div class=\"pera-wallet-connect-modal-download-pera-view\">\\n          <h1 class=\"pera-wallet-connect-modal-download-pera-view__title\">\\n            Download Pera Wallet\\n          </h1>\\n\\n          <pera-wallet-download-qr-code></pera-wallet-download-qr-code>\\n\\n          <div class=\"pera-wallet-connect-modal-download-pera-view__footer\">\\n            <a\\n              href=\"https://apps.apple.com/us/app/algorand-wallet/id1459898525\"\\n              target=\"_blank\"\\n              rel=\"noopener noreferrer\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'40\\' height=\\'40\\' viewBox=\\'0 0 40 40\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect width=\\'40\\' height=\\'40\\' rx=\\'12\\' fill=\\'black\\'/%3e%3cpath d=\\'M25.6308 20.3011C25.6416 19.4664 25.8633 18.6481 26.2753 17.9221C26.6873 17.1962 27.2763 16.5863 27.9873 16.1491C27.5356 15.5039 26.9397 14.973 26.2469 14.5984C25.554 14.2239 24.7834 14.016 23.9963 13.9914C22.317 13.8151 20.6891 14.9962 19.8333 14.9962C18.9611 14.9962 17.6436 14.0089 16.2249 14.0381C15.3072 14.0677 14.4128 14.3346 13.6289 14.8126C12.8451 15.2906 12.1984 15.9636 11.7519 16.7659C9.81789 20.1144 11.2605 25.0354 13.1132 27.742C14.0401 29.0674 15.1233 30.5478 16.5408 30.4953C17.9278 30.4378 18.4458 29.6108 20.1202 29.6108C21.779 29.6108 22.265 30.4953 23.7112 30.4619C25.1995 30.4378 26.1372 29.1307 27.0316 27.7928C27.6976 26.8484 28.2101 25.8047 28.55 24.7003C27.6853 24.3345 26.9474 23.7224 26.4283 22.9401C25.9092 22.1578 25.6318 21.2399 25.6308 20.3011ZM22.8993 12.2113C23.7108 11.2371 24.1106 9.98492 24.0138 8.7207C22.7739 8.85092 21.6287 9.44347 20.8062 10.3803C20.404 10.838 20.096 11.3704 19.8998 11.9472C19.7035 12.5239 19.6229 13.1337 19.6625 13.7417C20.2826 13.7481 20.8961 13.6137 21.4568 13.3486C22.0175 13.0835 22.5107 12.6946 22.8993 12.2113Z\\' fill=\\'white\\'/%3e%3c/svg%3e\" alt=\"App Store icon\" />\\n            </a>\\n\\n            <a\\n              href=\"https://play.google.com/store/apps/details?id=com.algorand.android\"\\n              target=\"_blank\"\\n              rel=\"noopener noreferrer\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'40\\' height=\\'40\\' viewBox=\\'0 0 40 40\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect width=\\'40\\' height=\\'40\\' rx=\\'12\\' fill=\\'black\\'/%3e%3cpath d=\\'M12.41 9.7719C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922V10.8671V29.1294V29.0091C11.9683 29.5202 12.1099 29.9149 12.3497 30.169L12.4109 30.2277V30.228C12.6051 30.4035 12.854 30.4966 13.1393 30.4963C13.418 30.4963 13.7316 30.4073 14.0626 30.2194L26.0264 23.4107L30.1359 21.0717C30.6578 20.7748 30.9508 20.3917 30.9998 20.0014V19.9998C30.9508 19.6087 30.6578 19.2259 30.1359 18.9289L26.0261 16.5902L14.0627 9.78154C13.731 9.59325 13.4171 9.50391 13.1376 9.50391C12.8527 9.50391 12.6041 9.59677 12.41 9.7719H12.41Z\\' fill=\\'%2300C1FF\\'/%3e%3cpath d=\\'M12.411 30.2285L12.3497 30.1698C12.1099 29.9157 11.9683 29.5209 11.9683 29.0098V29.1301V10.8724V10.993C11.9683 10.4396 12.1334 10.0226 12.41 9.77268L22.622 20.0009L12.411 30.2285Z\\' fill=\\'url(%23paint0_linear_173_14441)\\'/%3e%3cpath d=\\'M26.0256 23.4102L22.6211 19.9996L26.0253 16.5896L30.1351 18.9283C30.657 19.2253 30.95 19.6081 30.9989 19.9993V20.0008C30.95 20.3911 30.657 20.7742 30.1351 21.0712L26.0256 23.4101\\' fill=\\'url(%23paint1_linear_173_14441)\\'/%3e%3cpath d=\\'M13.1374 30.4961C12.8522 30.4964 12.6033 30.4032 12.4092 30.2277V30.2275L22.6202 19.9999L26.0246 23.4104L14.0608 30.2191C13.7298 30.4071 13.4162 30.4961 13.1374 30.4961Z\\' fill=\\'url(%23paint2_linear_173_14441)\\'/%3e%3cpath d=\\'M22.6212 20.002L12.4092 9.7737C12.6033 9.59858 12.8519 9.50571 13.1368 9.50571C13.4163 9.50571 13.7302 9.59501 14.0618 9.78335L26.0253 16.592L22.6212 20.002\\' fill=\\'url(%23paint3_linear_173_14441)\\'/%3e%3cpath d=\\'M13.1394 30.6172C12.8542 30.6172 12.6049 30.524 12.4108 30.3486L12.4105 30.3489C12.4097 30.3481 12.4088 30.3473 12.4079 30.3466L12.3548 30.2947C12.3531 30.2931 12.3516 30.2912 12.3496 30.2893L12.4108 30.2279C12.6049 30.4034 12.8538 30.4966 13.1392 30.4962C13.4179 30.4962 13.7315 30.4073 14.0625 30.2193L26.0263 23.4106L26.1029 23.4874L26.0253 23.5316L14.0625 30.3398C13.7608 30.5111 13.4739 30.6004 13.2147 30.6153C13.1896 30.6165 13.1645 30.6171 13.1394 30.6172\\' fill=\\'url(%23paint4_linear_173_14441)\\'/%3e%3cpath d=\\'M12.3497 30.2891C12.1099 30.0349 11.9683 29.6406 11.9683 29.1292V29.0089C11.9683 29.52 12.1099 29.9146 12.3497 30.1688L12.4109 30.2275L12.3497 30.2891Z\\' fill=\\'url(%23paint5_linear_173_14441)\\'/%3e%3cpath d=\\'M26.1025 23.4882L26.0259 23.4114L30.1349 21.0727C30.6568 20.7758 30.9498 20.3927 30.9987 20.0025C30.9987 20.1457 30.9668 20.2889 30.9035 20.4282C30.7756 20.7091 30.5194 20.9744 30.135 21.1934L26.1025 23.4883\\' fill=\\'url(%23paint6_linear_173_14441)\\'/%3e%3cpath d=\\'M30.9991 20C30.9501 19.6089 30.6571 19.2261 30.1353 18.9291L26.0259 16.5907L26.1025 16.5139H26.1029L30.1353 18.8088C30.7106 19.1365 30.9987 19.5682 30.9991 20Z\\' fill=\\'url(%23paint7_linear_173_14441)\\'/%3e%3cpath d=\\'M11.9683 10.9922V10.8661C11.9683 10.8206 11.9695 10.7761 11.9718 10.7329V10.7309C11.9718 10.7303 11.9718 10.7297 11.972 10.729V10.7242C11.9969 10.284 12.1334 9.94066 12.3497 9.71139L12.4099 9.77198C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922Z\\' fill=\\'url(%23paint8_linear_173_14441)\\'/%3e%3cpath d=\\'M26.026 16.5898L14.0625 9.78115C13.7308 9.59285 13.417 9.50355 13.1375 9.50355C12.8525 9.50355 12.6039 9.59642 12.4099 9.77154L12.3496 9.71091C12.3684 9.69096 12.388 9.67172 12.4082 9.65322C12.4089 9.65255 12.4099 9.65188 12.4105 9.65125C12.6031 9.47747 12.849 9.3846 13.1314 9.38293H13.1375C13.417 9.38293 13.7308 9.47227 14.0625 9.66064L26.1029 16.5128L26.1026 16.513L26.026 16.5898Z\\' fill=\\'url(%23paint9_linear_173_14441)\\'/%3e%3cdefs%3e%3clinearGradient id=\\'paint0_linear_173_14441\\' x1=\\'18.4943\\' y1=\\'10.6794\\' x2=\\'9.69389\\' y2=\\'19.494\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2300A0FF\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%2300A1FF\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2300BEFF\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2300D2FF\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2300DFFF\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300E3FF\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint1_linear_173_14441\\' x1=\\'31.6348\\' y1=\\'19.9407\\' x2=\\'11.691\\' y2=\\'19.9407\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FFE000\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23FFBD00\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'orange\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23FF9C00\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint2_linear_173_14441\\' x1=\\'24.2172\\' y1=\\'23.2425\\' x2=\\'9.30414\\' y2=\\'38.0705\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FF3A44\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23C31162\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint3_linear_173_14441\\' x1=\\'9.77725\\' y1=\\'8.25731\\' x2=\\'16.4237\\' y2=\\'14.876\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2332A071\\'/%3e%3cstop offset=\\'0.0685\\' stop-color=\\'%232DA771\\'/%3e%3cstop offset=\\'0.4762\\' stop-color=\\'%2315CF74\\'/%3e%3cstop offset=\\'0.8009\\' stop-color=\\'%2306E775\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300F076\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint4_linear_173_14441\\' x1=\\'24.2114\\' y1=\\'25.6084\\' x2=\\'12.2683\\' y2=\\'37.5709\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23CC2E36\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%239C0E4E\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint5_linear_173_14441\\' x1=\\'13.3285\\' y1=\\'10.6804\\' x2=\\'5.57625\\' y2=\\'18.4453\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23008DE0\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%23008DE0\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2300A7E0\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2300B8E0\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2300C4E0\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2300C7E0\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint6_linear_173_14441\\' x1=\\'31.6346\\' y1=\\'20.0018\\' x2=\\'11.6929\\' y2=\\'20.0018\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23E0C500\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23E0A600\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'%23E09100\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23E08900\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint7_linear_173_14441\\' x1=\\'31.6349\\' y1=\\'20.0008\\' x2=\\'11.6933\\' y2=\\'20.0008\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%23FFE840\\'/%3e%3cstop offset=\\'0.4087\\' stop-color=\\'%23FFCE40\\'/%3e%3cstop offset=\\'0.7754\\' stop-color=\\'%23FFBC40\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%23FFB540\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint8_linear_173_14441\\' x1=\\'13.3201\\' y1=\\'10.6927\\' x2=\\'5.8533\\' y2=\\'17.8475\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2340B8FF\\'/%3e%3cstop offset=\\'0.00657\\' stop-color=\\'%2340B9FF\\'/%3e%3cstop offset=\\'0.2601\\' stop-color=\\'%2340CEFF\\'/%3e%3cstop offset=\\'0.5122\\' stop-color=\\'%2340DDFF\\'/%3e%3cstop offset=\\'0.7604\\' stop-color=\\'%2340E7FF\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2340EAFF\\'/%3e%3c/linearGradient%3e%3clinearGradient id=\\'paint9_linear_173_14441\\' x1=\\'9.76302\\' y1=\\'10.4182\\' x2=\\'15.0961\\' y2=\\'15.76\\' gradientUnits=\\'userSpaceOnUse\\'%3e%3cstop stop-color=\\'%2365B895\\'/%3e%3cstop offset=\\'0.0685\\' stop-color=\\'%2362BD95\\'/%3e%3cstop offset=\\'0.4762\\' stop-color=\\'%2350DB97\\'/%3e%3cstop offset=\\'0.8009\\' stop-color=\\'%2344ED98\\'/%3e%3cstop offset=\\'1\\' stop-color=\\'%2340F498\\'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\" alt=\"Play Store icon\" />\\n            </a>\\n\\n            <a\\n              class=\"pera-wallet-connect-modal-download-pera-view__footer__button\"\\n              href=\"https://perawallet.s3-eu-west-3.amazonaws.com/android-releases/app-pera-prod-release-bitrise-signed.apk\"\\n              target=\"_blank\"\\n              rel=\"noopener noreferrer\">\\n              <img src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M3 14V20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20V14\\' stroke=\\'%232C3559\\' stroke-width=\\'1.5\\'/%3e%3cpath d=\\'M11.9998 16V3M11.9998 16L7.47803 11.4783M11.9998 16L16.5215 11.4783\\' stroke=\\'%232C3559\\' stroke-width=\\'1.5\\'/%3e%3c/svg%3e\" alt=\"Download icon\" />\\n\\n              Download APK File\\n            </a>\\n          </div>\\n        </div>\\n      </div>\\n    </div>\\n  `;$L=class extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){if(this.shadowRoot.append(Hoe.content.cloneNode(!0),joe,$oe),this.shadowRoot.addEventListener(\"click\",(c=>{this.handleAccordion(c)})),this.getAttribute(\"compact-mode\")===\"true\"){let c=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-desktop-mode\");c?.classList.add(\"pera-wallet-connect-modal-desktop-mode--compact\")}let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelector(\".pera-wallet-connect-modal-desktop-mode__default-view\"),r=this.getAttribute(\"promote-mobile\")===\"true\",{webWalletOption:o,mobileWalletOption:a}=(function(c){let l=`\\n  <div id=\"web-wallet-option\" class=\"pera-wallet-accordion-item ${c?\"\":\"pera-wallet-accordion-item--active\"}  pera-wallet-accordion-item--web-wallet\">\\n            <a class=\"pera-wallet-accordion-toggle\">\\n              <button class=\"pera-wallet-accordion-toggle__button\"></button>\\n  \\n              <img src=\"${Doe}\" class=\"pera-wallet-accordion-icon\" />\\n  \\n              <div class=\"pera-wallet-accordion-toggle__content-with-label\">\\n                <div class=\"pera-wallet-accordion-toggle__content-with-label__text\">\\n                  Connect With\\n  \\n                  <span class=\"pera-wallet-accordion-toggle__bold-color\">\\n                    Pera Web\\n                  </span>\\n                </div>\\n  \\n                <span id=\"pera-web-new-label\" class=\"pera-wallet-accordion-toggle__label\">NEW</span>\\n              </div>\\n            </a>\\n  \\n            <div class=\"pera-wallet-accordion-item__content\">\\n              <div class=\"pera-wallet-connect-modal-desktop-mode__web-wallet\"><div>\\n              \\n              <div\\n                class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper\">\\n                <img src=\"data:image/svg+xml,%3csvg width=\\'44\\' height=\\'44\\' viewBox=\\'0 0 44 44\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect x=\\'3.5\\' y=\\'7.5\\' width=\\'36\\' height=\\'26\\' rx=\\'5.5\\' stroke=\\'%236B46FE\\' stroke-width=\\'3\\'/%3e%3cpath d=\\'M22.4973 14.5237C22.8556 16.041 22.7344 17.3757 22.2267 17.5048C21.719 17.6339 21.0169 16.5085 20.6586 14.9912C20.3003 13.4739 20.4214 12.1392 20.9292 12.0101C21.4369 11.881 22.1389 13.0064 22.4973 14.5237Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M28.4139 15.8282C27.6204 14.9686 26.0417 15.2016 24.8877 16.3486C23.7338 17.4956 23.4417 19.1222 24.2352 19.9818C25.0287 20.8414 26.6074 20.6084 27.7613 19.4614C28.9153 18.3144 29.2074 16.6878 28.4139 15.8282Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M22.1027 28.9905C22.6104 28.8614 22.7137 27.4512 22.3334 25.8407C21.9531 24.2303 21.2332 23.0294 20.7254 23.1585C20.2177 23.2876 20.1144 24.6978 20.4947 26.3083C20.875 27.9187 21.5949 29.1196 22.1027 28.9905Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M16.9269 16.6152C18.3917 17.0567 19.4621 17.8312 19.3176 18.3452C19.1731 18.8591 17.8686 18.9179 16.4037 18.4764C14.9389 18.0349 13.8686 17.2603 14.0131 16.7464C14.1575 16.2324 15.4621 16.1737 16.9269 16.6152Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M26.4342 22.4188C27.9889 22.8874 29.1322 23.6839 28.9877 24.1979C28.8432 24.7118 27.4657 24.7486 25.911 24.28C24.3563 23.8114 23.213 23.0148 23.3575 22.5009C23.502 21.9869 24.8795 21.9502 26.4342 22.4188Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M18.5752 21.3404C18.2119 20.9555 17.0205 21.5157 15.914 22.5915C14.8075 23.6673 14.2049 24.8514 14.5682 25.2363C14.9314 25.6211 16.1229 25.061 17.2294 23.9852C18.3359 22.9094 18.9384 21.7253 18.5752 21.3404Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M16 39C21 39.0001 23.5 39.0001 28 39\\' stroke=\\'%236B46FE\\' stroke-width=\\'3\\' stroke-linecap=\\'round\\'/%3e%3c/svg%3e\" />\\n              </div>\\n  \\n              <p\\n                class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__description\">\\n                Connect with Pera Web to continue\\n              </p>\\n            </div>\\n  \\n            <button\\n              id=\"pera-wallet-connect-web-wallet-launch-button\"\\n              class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button\">\\n              Launch Pera Web\\n  \\n              <img src=\"data:image/svg+xml,%3csvg width=\\'20\\' height=\\'20\\' viewBox=\\'0 0 20 20\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M13.0892 9.41009C13.4147 9.73553 13.4147 10.2632 13.0892 10.5886L8.08924 15.5886C7.7638 15.914 7.23616 15.914 6.91072 15.5886C6.58529 15.2632 6.58529 14.7355 6.91072 14.4101L11.3215 9.99935L6.91073 5.5886C6.58529 5.26317 6.58529 4.73553 6.91073 4.41009C7.23616 4.08466 7.7638 4.08466 8.08924 4.41009L13.0892 9.41009Z\\' fill=\\'white\\'/%3e%3c/svg%3e\" />\\n            </button>\\n          </div>`,f=`\\n  <div id=\"mobile-wallet-option\" class=\"pera-wallet-accordion-item ${c?\"pera-wallet-accordion-item--active\":\"\"}\">\\n            <a class=\"pera-wallet-accordion-toggle\">\\n            <button class=\"pera-wallet-accordion-toggle__button\"></button>\\n  \\n              <img src=\"${Doe}\" class=\"pera-wallet-accordion-icon\" />\\n  \\n              <div class=\"pera-wallet-accordion-toggle__text\">\\n                Connect with\\n  \\n                <span class=\"pera-wallet-accordion-toggle__bold-color\">\\n                  Pera Mobile\\n                </span>\\n              </div>\\n            </a>\\n  \\n            <div class=\"pera-wallet-accordion-item__content\">\\n              <div id=\"pera-wallet-connect-modal-connect-qr-code\" class=\"pera-wallet-connect-qr-code-wrapper\"></div>\\n  \\n              <div class=\"pera-wallet-connect-modal-desktop-mode__download-pera-container\">\\n                <p\\n                  class=\"pera-wallet-connect-modal-desktop-mode__download-pera-description\">\\n                    Don\\\\u2019t have Pera Wallet app?\\n                </p>\\n  \\n                <button\\n                  id=\"pera-wallet-connect-modal-desktop-mode-download-pera-button\"\\n                  class=\"pera-wallet-connect-modal-desktop-mode__download-pera-button\">\\n                  <img src=\"data:image/svg+xml,%3csvg width=\\'16\\' height=\\'16\\' viewBox=\\'0 0 16 16\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3crect x=\\'2\\' y=\\'2\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.5\\'/%3e%3crect x=\\'2\\' y=\\'9.33203\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.5\\'/%3e%3crect x=\\'9.33325\\' y=\\'2\\' width=\\'4.66667\\' height=\\'4.66667\\' rx=\\'1.2\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.5\\'/%3e%3cpath d=\\'M8.70581 9.5293H10.9411\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M13.1765 12.668L14.6667 12.668\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M13.1765 14L14.6667 14\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M11.686 14L13.1762 14\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M12.4314 9.5293H14.6667\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.66667\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 10.2754H12.4313\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 11.7656H11.6862\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 12.5117H11.6862\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 13.2539H10.196\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M8.70581 14H10.196\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M10.196 11.0195H12.4313\\' stroke=\\'%236B46FE\\' stroke-width=\\'1.25\\' stroke-linejoin=\\'round\\'/%3e%3c/svg%3e\" alt=\"QR Icon\" />\\n  \\n                  Download Pera Wallet\\n                </button>\\n              </div>\\n            </div>\\n          </div>`;return{mobileWalletOption:document.createRange().createContextualFragment(f),webWalletOption:document.createRange().createContextualFragment(l)}})(r);r?(n?.appendChild(a),n?.appendChild(o)):(n?.appendChild(o),n?.appendChild(a))}}connectedCallback(){var e;let n=this.getAttribute(\"should-display-new-badge\"),r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-web-new-label\");n===\"false\"&&r?.setAttribute(\"style\",\"display:none\"),this.handleChangeView()}handleChangeView(){var e,n,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-desktop-mode-download-pera-button\"),a=(n=this.shadowRoot)===null||n===void 0?void 0:n.getElementById(\"pera-wallet-connect-modal-download-pera-view-back-button\"),c=(r=this.shadowRoot)===null||r===void 0?void 0:r.getElementById(\"pera-wallet-connect-web-wallet-launch-button\");o&&o.addEventListener(\"click\",(()=>{this.onClickDownload()})),a&&a.addEventListener(\"click\",(()=>{this.onClickBack()})),c&&c.addEventListener(\"click\",(()=>{this.webWalletConnect()})),this.renderQRCode(),this.checkWebWalletAvaliability()}webWalletConnect(){this.getAttribute(\"is-web-wallet-avaliable\")===\"true\"&&window.onWebWalletConnect()}handleAccordion(e){var n,r;if(e.target instanceof Element){if(!e.target.classList.contains(\"pera-wallet-accordion-toggle__button\"))return;if(this.shadowRoot&&(!((n=e.target.parentElement)===null||n===void 0)&&n.parentElement)){let o=(r=e.target.parentElement)===null||r===void 0?void 0:r.parentElement;if(!o||o.classList.contains(\"pera-wallet-accordion-item--active\"))return;let a=this.shadowRoot.querySelectorAll(\".pera-wallet-accordion-item.pera-wallet-accordion-item--active\");for(let c=0;c<a.length;c++)a[c].classList.remove(\"pera-wallet-accordion-item--active\");o.classList.toggle(\"pera-wallet-accordion-item--active\")}}}renderQRCode(){var e;let n=this.getAttribute(\"is-web-wallet-avaliable\"),r=this.getAttribute(\"compact-mode\")===\"true\",o=this.getAttribute(\"single-account\")===\"true\",a=this.getAttribute(\"uri\");o&&(a=`${a}&singleAccount=true`);let c=n===\"false\"?250:205;if(r&&(c=190),a){let l=new eN.default({width:c,height:c,type:\"svg\",data:a,image:Loe,dotsOptions:{color:\"#000\",type:\"extra-rounded\"},imageOptions:{crossOrigin:\"anonymous\",margin:8},cornersSquareOptions:{type:\"extra-rounded\"},cornersDotOptions:{type:\"dot\"}}),f=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-connect-qr-code\");f&&l.append(f)}}onClickDownload(){if(this.shadowRoot){let e=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-desktop-mode\");e&&(e.classList.remove(\"pera-wallet-connect-modal-desktop-mode--default\"),e.classList.add(\"pera-wallet-connect-modal-desktop-mode--download\"))}}onClickBack(){if(this.shadowRoot){let e=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-desktop-mode\");e&&(e.classList.add(\"pera-wallet-connect-modal-desktop-mode--default\"),e.classList.remove(\"pera-wallet-connect-modal-desktop-mode--download\"))}}checkWebWalletAvaliability(){var e;if(this.getAttribute(\"is-web-wallet-avaliable\")===\"false\"){let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelector(\".pera-wallet-connect-modal-desktop-mode__default-view\");n?.classList.add(\"pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable\")}}},KL=`.pera-wallet-connect-modal-touch-screen-mode {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  gap: 46px;\\n  padding: 4px;\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode--pending-message-view {\\n  gap: 56px;\\n  grid-template-rows: auto 48px;\\n  height: 100%;\\n  padding-bottom: 70px;\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button,\\n.pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button {\\n  display: block;\\n  padding: 14px;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button {\\n  margin-bottom: 32px;\\n  background-color: #6b46fe;\\n  color: #ffffff;\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button {\\n  margin-bottom: 20px;\\n  color: #6a6a81;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box {\\n  position: relative;\\n  margin-bottom: 32px;\\n  border-top: 1px solid #e6e8ee;\\n}\\n\\n.pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box__text {\\n  position: absolute;\\n  top: -25px;\\n  right: calc(50% - 56px);\\n  width: 116px;\\n  color: #69708d;\\n  background-color: #ffffff;\\n  font-size: 13px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.04px;\\n  text-align: center;\\n}`;_u(KL);gk=document.createElement(\"template\"),GL=class extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:\"open\"}),gk.innerHTML=`\\n  <div class=\"pera-wallet-connect-modal-touch-screen-mode\">\\n    <pera-wallet-connect-modal-information-section></pera-wallet-connect-modal-information-section>\\n\\n    <div>\\n      <a\\n        id=\"pera-wallet-connect-modal-touch-screen-mode-launch-pera-wallet-button\"\\n        class=\"pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button\"\\n        rel=\"noopener noreferrer\"\\n        target=\"_blank\">\\n        Launch Pera Wallet\\n      </a>\\n\\n      <div\\n        class=\"pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box\">\\n        <p\\n          class=\"pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box__text\"\\n          >\\n          New to Pera?\\n        </p>\\n      </div>\\n\\n      <a\\n        href=\"https://perawallet.app/download/\"\\n        class=\"pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button\"\\n        rel=\"noopener noreferrer\"\\n        target=\"_blank\">\\n        Install Pera Wallet\\n      </a>\\n    </div>\\n  </div>\\n`,this.shadowRoot){let n=document.createElement(\"style\");n.textContent=KL,this.shadowRoot.append(gk.content.cloneNode(!0),n);let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-touch-screen-mode-launch-pera-wallet-button\"),o=this.getAttribute(\"uri\"),a=this.getAttribute(\"single-account\")===\"true\",c=this.getAttribute(\"selected-account\")||void 0;r&&o&&(r.setAttribute(\"href\",rN(o,{singleAccount:a,selectedAccount:c})),r.addEventListener(\"click\",(()=>{this.onClickLaunch()})))}}onClickLaunch(){if(gk.innerHTML=`\\n    <div class=\"pera-wallet-connect-modal-touch-screen-mode pera-wallet-connect-modal-touch-screen-mode--pending-message-view\">\\n      <pera-wallet-connect-modal-pending-message-section should-use-sound=\"${this.getAttribute(\"should-use-sound\")}\"></pera-wallet-connect-modal-pending-message-section>\\n    </div>\\n  `,this.shadowRoot){let e=document.createElement(\"style\");e.textContent=KL,this.shadowRoot.innerHTML=\"\",this.shadowRoot.append(gk.content.cloneNode(!0),e)}}},Koe=`@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\");\\n.pera-wallet-modal {\\n  --pera-wallet-modal-font-family: \"Inter\", sans-serif;\\n  --pera-wallet-modal-compact-width: 380px;\\n  --pera-wallet-modal-compact-height: 396px;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-color: #ffffff;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\\n  position: absolute;\\n  top: unset;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  max-width: unset;\\n  padding: 20px;\\n  background-color: #ffffff;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\\n  width: var(--pera-wallet-modal-compact-width);\\n  height: var(--pera-wallet-modal-compact-height);\\n  padding: 0;\\n}\\n.pera-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.pera-wallet-modal ul,\\n.pera-wallet-modal ol,\\n.pera-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.pera-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.pera-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.pera-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 700px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #f3f3f7;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 24px;\\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n.pera-wallet-modal__body::before {\\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: -1;\\n  content: \"\";\\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\\n  background-size: 116px 116px;\\n  mix-blend-mode: overlay;\\n  border-radius: 24px;\\n  opacity: 0.8;\\n  pointer-events: none;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes PeraWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes PeraWalletConnectMobileSlideIn {\\n  0% {\\n    bottom: -30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 0;\\n    opacity: 1;\\n  }\\n}`;_u(Koe);yk=document.createElement(\"template\"),vk=Ws()?`${ym} ${ym}--mobile`:`${ym} ${ym}--desktop`,qL=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:\"open\"})}connectedCallback(){this.shadowRoot&&this.render()}render(){if(!this.shadowRoot)return;let e=document.createElement(\"style\");e.textContent=Koe,this.getAttribute(\"compact-mode\")===\"true\"&&(vk=`${vk} ${ym}--compact`);let n=this.getAttribute(\"single-account\")===\"true\",r=this.getAttribute(\"selected-account\")||void 0;Ws()?(yk.innerHTML=`\\n          <div class=\"${vk}\">\\n            <div class=\"pera-wallet-modal__body\" part=\"body\">\\n              <pera-wallet-modal-header modal-id=\"${Tu}\"></pera-wallet-modal-header/>\\n        \\n              <pera-wallet-modal-touch-screen-mode uri=\"${this.getAttribute(\"uri\")}\" should-use-sound=\"${this.getAttribute(\"should-use-sound\")}\" single-account=\"${n}\" selected-account=\"${r}\"></pera-wallet-modal-touch-screen-mode>\\n            </div>\\n          </div>\\n        `,this.shadowRoot.append(yk.content.cloneNode(!0),e)):(yk.innerHTML=`\\n        <div class=\"${vk}\">\\n          <div class=\"pera-wallet-modal__body\">\\n            <pera-wallet-modal-header modal-id=\"${Tu}\"></pera-wallet-modal-header/>\\n      \\n            <pera-wallet-modal-desktop-mode id=\"pera-wallet-modal-desktop-mode\" uri=\"${this.getAttribute(\"uri\")}\" is-web-wallet-avaliable=\"${this.getAttribute(\"is-web-wallet-avaliable\")}\" should-display-new-badge=\"${this.getAttribute(\"should-display-new-badge\")}\" compact-mode=\"${this.getAttribute(\"compact-mode\")}\" promote-mobile=\"${this.getAttribute(\"promote-mobile\")}\" single-account=\"${n}\"\\n        ></pera-wallet-modal-desktop-mode>\\n          </div>\\n        </div>\\n      `,this.shadowRoot.append(yk.content.cloneNode(!0),e))}},Goe=`@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\");\\n.pera-wallet-modal {\\n  --pera-wallet-modal-font-family: \"Inter\", sans-serif;\\n  --pera-wallet-modal-compact-width: 380px;\\n  --pera-wallet-modal-compact-height: 396px;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-color: #ffffff;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\\n  position: absolute;\\n  top: unset;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  max-width: unset;\\n  padding: 20px;\\n  background-color: #ffffff;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\\n  width: var(--pera-wallet-modal-compact-width);\\n  height: var(--pera-wallet-modal-compact-height);\\n  padding: 0;\\n}\\n.pera-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.pera-wallet-modal ul,\\n.pera-wallet-modal ol,\\n.pera-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.pera-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.pera-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.pera-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 700px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #f3f3f7;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 24px;\\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n.pera-wallet-modal__body::before {\\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: -1;\\n  content: \"\";\\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\\n  background-size: 116px 116px;\\n  mix-blend-mode: overlay;\\n  border-radius: 24px;\\n  opacity: 0.8;\\n  pointer-events: none;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes PeraWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes PeraWalletConnectMobileSlideIn {\\n  0% {\\n    bottom: -30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 0;\\n    opacity: 1;\\n  }\\n}\\n.pera-wallet-redirect-modal {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  gap: 56px;\\n  grid-template-rows: auto 48px;\\n  height: 100%;\\n  padding: 4px;\\n  padding-bottom: 70px;\\n}\\n\\n.pera-wallet-redirect-modal__content {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  flex-direction: column;\\n}\\n\\n.pera-wallet-redirect-modal__content__title {\\n  margin: 20px 0 8px;\\n  color: #3c3c49;\\n  font-size: 18px;\\n  font-weight: 600;\\n  line-height: 22px;\\n  letter-spacing: -0.26px;\\n}\\n\\n.pera-wallet-redirect-modal__content__description,\\n.pera-wallet-redirect-modal__content__install-pera-text {\\n  color: #3c3c49;\\n  max-width: 271px;\\n  font-size: 14px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n  text-align: center;\\n}\\n\\n.pera-wallet-redirect-modal__content__description {\\n  margin-bottom: 24px;\\n}\\n\\n.pera-wallet-redirect-modal__content__install-pera-text__link {\\n  color: #6b46fe;\\n  font-size: 14px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n  text-align: center;\\n}\\n\\n.pera-wallet-redirect-modal__launch-pera-wallet-button {\\n  display: block;\\n  padding: 14px;\\n  color: #ffffff;\\n  background-color: #6b46fe;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n}`;_u(Goe);qoe=document.createElement(\"template\");qoe.innerHTML=`\\n  <div class=\"pera-wallet-modal pera-wallet-modal--mobile\">\\n    <div class=\"pera-wallet-modal__body\">\\n      <pera-wallet-modal-header modal-id=\"${vm}\"></pera-wallet-modal-header/>\\n\\n      <div class=\"pera-wallet-redirect-modal\">\\n        <div class=\"pera-wallet-redirect-modal__content\">\\n          <img src=\"data:image/svg+xml,%3csvg width=\\'120\\' height=\\'38\\' viewBox=\\'0 0 120 38\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cg clip-path=\\'url(%23clip0_38844_290434)\\'%3e%3cpath d=\\'M103.739 28.6746H109.565\\' stroke=\\'%236B46FE\\' stroke-width=\\'3\\' stroke-linecap=\\'round\\' stroke-linejoin=\\'round\\'/%3e%3cpath d=\\'M112.25 37H100.75C97.5731 37 95 34.2336 95 30.8182V9.18182C95 5.76636 97.5731 3 100.75 3H112.25C115.427 3 118 5.76636 118 9.18182V30.8182C118 34.2336 115.427 37 112.25 37Z\\' fill=\\'%236B46FE\\' fill-opacity=\\'0.1\\' stroke=\\'%236B46FE\\' stroke-width=\\'3\\' stroke-linecap=\\'round\\' stroke-linejoin=\\'round\\'/%3e%3crect y=\\'1\\' width=\\'36\\' height=\\'36\\' rx=\\'7.76829\\' fill=\\'%236B46FE\\' fill-opacity=\\'0.1\\'/%3e%3cpath d=\\'M19.6057 9.47351C20.1851 11.8819 19.9967 14.0022 19.1848 14.2093C18.373 14.4164 17.2452 12.6319 16.6658 10.2235C16.0864 7.81514 16.2748 5.69486 17.0867 5.48775C17.8985 5.28063 19.0263 7.06512 19.6057 9.47351Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M29.0775 11.5213C27.8045 10.1593 25.2795 10.5358 23.4378 12.3621C21.5961 14.1885 21.1352 16.7732 22.4083 18.1352C23.6814 19.4972 26.2064 19.1207 28.048 17.2943C29.8897 15.4679 30.3506 12.8832 29.0775 11.5213Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M19.0324 32.4518C19.8443 32.2446 20.0039 30.0045 19.3889 27.4483C18.774 24.8921 17.6173 22.9877 16.8055 23.1948C15.9937 23.402 15.834 25.6421 16.449 28.1983C17.064 30.7545 18.2206 32.6589 19.0324 32.4518Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M10.7016 12.818C13.0471 13.5132 14.7627 14.739 14.5336 15.5559C14.3045 16.3728 12.2175 16.4714 9.87199 15.7762C7.52653 15.0809 5.81087 13.8551 6.03996 13.0383C6.26906 12.2214 8.35615 12.1228 10.7016 12.818Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M25.9365 21.9967C28.4259 22.7346 30.2583 23.995 30.0292 24.8119C29.8001 25.6287 27.5963 25.6927 25.1069 24.9548C22.6174 24.2169 20.7851 22.9565 21.0141 22.1397C21.2432 21.3228 23.447 21.2588 25.9365 21.9967Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M13.3578 20.316C12.775 19.7063 10.8709 20.6007 9.10487 22.3139C7.33879 24.0271 6.37952 25.9102 6.96226 26.5199C7.54501 27.1297 9.4491 26.2352 11.2152 24.522C12.9813 22.8089 13.9405 20.9258 13.3578 20.316Z\\' fill=\\'%236B46FE\\'/%3e%3cpath d=\\'M70.2098 10L75.3049 15.0945L52 15.0945\\' stroke=\\'%23D0CAE7\\' stroke-width=\\'3\\'/%3e%3cpath d=\\'M60.7902 29.5945L55.6951 24.5L79 24.5\\' stroke=\\'%23D0CAE7\\' stroke-width=\\'3\\'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id=\\'clip0_38844_290434\\'%3e%3crect width=\\'120\\' height=\\'38\\' fill=\\'white\\'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\" />\\n\\n          <h1 class=\"pera-wallet-redirect-modal__content__title\">\\n            Can\\'t Launch Pera\\n          </h1>\\n\\n          <p class=\"pera-wallet-redirect-modal__content__description\">\\n            We couldn\\'t redirect you to Pera Wallet automatically. Please try again.\\n          </p>\\n\\n          <p class=\"pera-wallet-redirect-modal__content__install-pera-text\">\\n            Don\\'t have Pera Wallet installed yet?\\n            <br />\\n            \\n            <a\\n              id=\"pera-wallet-redirect-modal-download-pera-link\"\\n              class=\"pera-wallet-redirect-modal__content__install-pera-text__link\"\\n              href=\"https://perawallet.app/download/\"\\n              rel=\"noopener noreferrer\"\\n              target=\"_blank\">\\n              Tap here to install.\\n            </a>\\n          </p>\\n        </div>\\n\\n        <a\\n          id=\"pera-wallet-redirect-modal-launch-pera-link\"\\n          class=\"pera-wallet-redirect-modal__launch-pera-wallet-button\"\\n          rel=\"noopener noreferrer\"\\n          target=\"_blank\">\\n          Launch Pera Wallet\\n        </a>\\n      </div>\\n    </div>\\n  </div>\\n`;WL=class extends HTMLElement{constructor(){var e,n;if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let r=document.createElement(\"style\");r.textContent=Goe,this.shadowRoot.append(qoe.content.cloneNode(!0),r);let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-redirect-modal-download-pera-link\");o?.addEventListener(\"click\",(()=>{this.onClose()}));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.getElementById(\"pera-wallet-redirect-modal-launch-pera-link\");a?.addEventListener(\"click\",(()=>{this.onClose(),window.open(bk(),\"_blank\")}))}}connectedCallback(){let e=window.open(bk(),\"_blank\");e&&!e.closed&&this.onClose()}onClose(){Ys(vm)}},Woe=\"data:image/svg+xml,%3csvg width=\\'32\\' height=\\'35\\' viewBox=\\'0 0 32 35\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18.2837 5.09271C19.0234 8.12325 18.7827 10.7913 17.7463 11.0519C16.7098 11.3126 15.27 9.06712 14.5304 6.03657C13.7908 3.00603 14.0315 0.337996 15.0679 0.0773547C16.1044 -0.183287 17.5441 2.06216 18.2837 5.09271Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M30.376 7.66915C28.7507 5.95537 25.5271 6.42918 23.1759 8.72745C20.8247 11.0257 20.2361 14.2781 21.8614 15.9919C23.4866 17.7057 26.7102 17.2319 29.0614 14.9336C31.4127 12.6354 32.0012 9.38294 30.376 7.66915Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M17.5511 34.0071C18.5876 33.7465 18.7914 30.9276 18.0064 27.711C17.2214 24.4945 15.7448 22.0982 14.7084 22.3589C13.6719 22.6195 13.4681 25.4383 14.2531 28.6549C15.0381 31.8715 16.5147 34.2677 17.5511 34.0071Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M6.91617 9.3015C9.9105 10.1763 12.1008 11.7187 11.8083 12.7466C11.5158 13.7745 8.85126 13.8986 5.85693 13.0239C2.8626 12.1491 0.672334 10.6067 0.964835 9.57881C1.25734 8.5509 3.92184 8.42674 6.91617 9.3015Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M26.3656 20.8508C29.5437 21.7793 31.883 23.3652 31.5905 24.3932C31.298 25.4211 28.4845 25.5017 25.3063 24.5732C22.1282 23.6448 19.7889 22.0588 20.0814 21.0309C20.3739 20.003 23.1874 19.9224 26.3656 20.8508Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M10.3069 18.7365C9.56299 17.9692 7.13209 19.0948 4.87736 21.2506C2.62264 23.4064 1.39791 25.776 2.14185 26.5432C2.8858 27.3105 5.3167 26.1849 7.57143 24.0291C9.82615 21.8733 11.0509 19.5037 10.3069 18.7365Z\\' fill=\\'%233C3C49\\'/%3e%3c/svg%3e\",Yoe=`.pera-wallet-connect-modal-information-section {\\n  padding: 12px;\\n  padding-right: 0;\\n}\\n.pera-wallet-connect-modal-information-section--mobile {\\n  padding: 0;\\n}\\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__pera-icon {\\n  margin-bottom: 16px;\\n}\\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__connect-pera-title {\\n  margin-bottom: 8px;\\n  color: #3c3c49;\\n  font-size: 18px;\\n  font-weight: 600;\\n  line-height: 22px;\\n  letter-spacing: -0.2px;\\n}\\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__title {\\n  margin-bottom: 24px;\\n  color: #3c3c49;\\n  font-size: 14px;\\n  line-height: 24px;\\n  letter-spacing: -0.09px;\\n  font-weight: 400;\\n}\\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__features-item__icon-wrapper {\\n  background-color: #f2f3f8;\\n}\\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__features-item__description {\\n  color: #6a6a81;\\n}\\n.pera-wallet-connect-modal-information-section * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.pera-wallet-connect-modal-information-section__pera-icon {\\n  margin-bottom: 32px;\\n}\\n\\n.pera-wallet-connect-modal-information-section__title {\\n  margin-bottom: 148px;\\n  color: #3c3c49;\\n  font-size: 20px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.5px;\\n}\\n\\n.pera-wallet-connect-modal-information-section__secondary-title {\\n  margin-bottom: 20px;\\n  color: #9d9dae;\\n  font-size: 11px;\\n  font-weight: 600;\\n  line-height: 18px;\\n  letter-spacing: 0.06px;\\n  text-transform: uppercase;\\n}\\n\\n.pera-wallet-connect-modal-information-section__features-item {\\n  display: grid;\\n  align-items: center;\\n  grid-template-columns: 36px auto;\\n  gap: 16px;\\n}\\n.pera-wallet-connect-modal-information-section__features-item:not(:last-of-type) {\\n  margin-bottom: 24px;\\n}\\n\\n.pera-wallet-connect-modal-information-section__features-item__icon-wrapper {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: 36px;\\n  height: 36px;\\n  background-color: #ffffff;\\n  border-radius: 50%;\\n}\\n\\n.pera-wallet-connect-modal-information-section__features-item__description {\\n  color: #6a6a81;\\n  font-size: 12px;\\n  font-weight: 500;\\n  line-height: 18px;\\n  letter-spacing: 0.01px;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-connect-modal-information-section--desktop {\\n    padding: 0;\\n  }\\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__pera-icon {\\n    margin-bottom: 12px;\\n  }\\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__title {\\n    margin-bottom: 24px;\\n    font-size: 16px;\\n    font-weight: 500;\\n    line-height: 24px;\\n    letter-spacing: -0.26px;\\n  }\\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__features-item {\\n    display: none;\\n  }\\n  .pera-wallet-connect-modal-information-section__secondary-title {\\n    display: none;\\n  }\\n}`;_u(Yoe);Zoe=document.createElement(\"template\"),$Me=Ws()?\"pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--mobile\":\"pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--desktop\";Zoe.innerHTML=`\\n  <section class=\"${$Me}\">\\n    <img\\n      id=\"pera-wallet-connect-modal-information-section-pera-icon\"\\n      src=\"${Woe}\"\\n      class=\"pera-wallet-connect-modal-information-section__pera-icon\"\\n      alt=\"Pera Wallet Logo\"\\n    />\\n\\n    <h1 id=\"pera-wallet-connect-modal-information-section-connect-pera-mobile\" class=\"pera-wallet-connect-modal-information-section__connect-pera-title\">\\n        Connect to Pera Wallet\\n    </h1>\\n\\n    <h1 class=\"pera-wallet-connect-modal-information-section__title\">\\n      Simply the best Algorand wallet.\\n    </h1>\\n\\n    <h2 id=\"pera-wallet-connect-modal-information-section-secondary-title\" class=\"pera-wallet-connect-modal-information-section__secondary-title\">\\n      Features\\n    </h2>\\n\\n    <ul>\\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\\n        <div class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\\n          <img src=\"data:image/svg+xml,%3csvg width=\\'20\\' height=\\'21\\' viewBox=\\'0 0 20 21\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M2.5 10.1378C2.5 10.8378 3.025 11.6461 3.66667 11.9294L9.325 14.4461C9.75833 14.6378 10.25 14.6378 10.675 14.4461L16.3333 11.9294C16.975 11.6461 17.5 10.8378 17.5 10.1378M2.5 14.3044C2.5 15.0794 2.95833 15.7794 3.66667 16.0961L9.325 18.6128C9.75833 18.8044 10.25 18.8044 10.675 18.6128L16.3333 16.0961C17.0417 15.7794 17.5 15.0794 17.5 14.3044M10.8417 3.4043L15.7583 5.58763C17.175 6.21263 17.175 7.24596 15.7583 7.87096L10.8417 10.0543C10.2833 10.3043 9.36668 10.3043 8.80835 10.0543L3.89168 7.87096C2.47502 7.24596 2.47502 6.21263 3.89168 5.58763L8.80835 3.4043C9.36668 3.1543 10.2833 3.1543 10.8417 3.4043Z\\' stroke=\\'%239D9DAE\\' stroke-width=\\'1.5\\' stroke-linecap=\\'round\\' stroke-linejoin=\\'round\\'/%3e%3c/svg%3e\" alt=\"Layer Icon\" />\\n        </div>\\n        \\n        <p\\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\\n          Connect to any Algorand dApp securely\\n        </p>\\n      </li>\\n\\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\\n        <div\\n          class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\\n          <img src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'25\\' viewBox=\\'0 0 24 25\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M9.58033 12.3109C9.28744 12.018 8.81257 12.018 8.51967 12.3109C8.22678 12.6038 8.22678 13.0787 8.51967 13.3716L9.58033 12.3109ZM10.66 14.4512L10.1297 14.9816C10.4226 15.2745 10.8974 15.2745 11.1903 14.9816L10.66 14.4512ZM15.4903 10.6816C15.7832 10.3887 15.7832 9.91381 15.4903 9.62092C15.1974 9.32803 14.7226 9.32803 14.4297 9.62092L15.4903 10.6816ZM19.84 8.09125C19.84 8.50546 20.1758 8.84125 20.59 8.84125C21.0042 8.84125 21.34 8.50546 21.34 8.09125H19.84ZM18.5 5.07125L18.2368 5.77355L18.2373 5.77375L18.5 5.07125ZM13.51 3.20125L13.7732 2.49894L13.7724 2.49866L13.51 3.20125ZM10.49 3.20125L10.2276 2.49865L10.2256 2.49941L10.49 3.20125ZM5.5 5.08125L5.76268 5.78375L5.76442 5.78309L5.5 5.08125ZM5.14 18.9612L4.69102 19.562L4.69135 19.5623L5.14 18.9612ZM9.44 22.1713L9.89069 21.5718L9.88866 21.5702L9.44 22.1713ZM14.58 22.1713L14.1313 21.5702L14.1293 21.5718L14.58 22.1713ZM18.88 18.9612L19.3287 19.5623L19.329 19.562L18.88 18.9612ZM21.36 8.09125C21.36 7.67704 21.0242 7.34125 20.61 7.34125C20.1958 7.34125 19.86 7.67704 19.86 8.09125H21.36ZM8.51967 13.3716L10.1297 14.9816L11.1903 13.9209L9.58033 12.3109L8.51967 13.3716ZM11.1903 14.9816L15.4903 10.6816L14.4297 9.62092L10.1297 13.9209L11.1903 14.9816ZM21.34 8.09125C21.34 7.29392 21.0398 6.50041 20.5931 5.85456C20.1463 5.20881 19.5097 4.64807 18.7627 4.36875L18.2373 5.77375C18.6403 5.92443 19.0487 6.25869 19.3595 6.70794C19.6702 7.15709 19.84 7.65858 19.84 8.09125H21.34ZM18.7632 4.36895L13.7732 2.49895L13.2468 3.90355L18.2368 5.77355L18.7632 4.36895ZM13.7724 2.49866C13.2479 2.30277 12.6051 2.21875 12 2.21875C11.3949 2.21875 10.7521 2.30277 10.2276 2.49866L10.7524 3.90384C11.0579 3.78973 11.5101 3.71875 12 3.71875C12.4899 3.71875 12.9421 3.78973 13.2476 3.90384L13.7724 2.49866ZM10.2256 2.49941L5.23558 4.37941L5.76442 5.78309L10.7544 3.90309L10.2256 2.49941ZM5.23733 4.37875C4.49043 4.65803 3.85398 5.2186 3.40741 5.86265C2.96095 6.50656 2.66 7.2978 2.66 8.09125H4.16C4.16 7.6647 4.32906 7.16594 4.64009 6.71735C4.95103 6.2689 5.35957 5.93447 5.76268 5.78375L5.23733 4.37875ZM2.66 8.09125V15.5212H4.16V8.09125H2.66ZM2.66 15.5212C2.66 16.2602 2.8989 17.059 3.24874 17.7545C3.59871 18.4503 4.09802 19.1188 4.69102 19.562L5.58899 18.3605C5.23198 18.0937 4.86629 17.6322 4.58877 17.0805C4.31111 16.5285 4.16 15.9623 4.16 15.5212H2.66ZM4.69135 19.5623L8.99135 22.7723L9.88866 21.5702L5.58866 18.3602L4.69135 19.5623ZM8.98932 22.7707C9.84721 23.4157 10.9462 23.7163 12.01 23.7163C13.0738 23.7163 14.1728 23.4157 15.0307 22.7707L14.1293 21.5718C13.5772 21.9868 12.8112 22.2163 12.01 22.2163C11.2088 22.2163 10.4428 21.9868 9.89068 21.5718L8.98932 22.7707ZM15.0287 22.7723L19.3287 19.5623L18.4313 18.3602L14.1313 21.5702L15.0287 22.7723ZM19.329 19.562C19.922 19.1188 20.4213 18.4503 20.7713 17.7545C21.1211 17.059 21.36 16.2602 21.36 15.5212H19.86C19.86 15.9623 19.7089 16.5285 19.4312 17.0805C19.1537 17.6322 18.788 18.0937 18.431 18.3605L19.329 19.562ZM21.36 15.5212V8.09125H19.86V15.5212H21.36Z\\' fill=\\'%239D9DAE\\'/%3e%3c/svg%3e\" alt=\"Tick Icon\" />\\n        </div>\\n\\n        <p\\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\\n          Your private keys are safely stored locally\\n        </p>\\n      </li>\\n\\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\\n        <div\\n          class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\\n          <img src=\"data:image/svg+xml,%3csvg width=\\'20\\' height=\\'21\\' viewBox=\\'0 0 20 21\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M18.05 9.67014L17.3198 9.49894L18.05 9.67014ZM17.2333 13.1535L16.5031 12.9823L16.5029 12.9835L17.2333 13.1535ZM12.55 17.1285L12.6218 16.3818L12.6098 16.3809L12.55 17.1285ZM11.2 16.9035L11.376 16.1744L11.3737 16.1739L11.2 16.9035ZM9.8 16.5701L9.97372 15.8405L9.97324 15.8404L9.8 16.5701ZM6.06667 10.5451L6.79687 10.7163L6.79696 10.7159L6.06667 10.5451ZM6.88334 7.05347L6.15327 6.88169L6.15304 6.88267L6.88334 7.05347ZM7.5 5.22014L8.17303 5.55114L8.17523 5.54659L7.5 5.22014ZM12.9167 3.32014L12.744 4.05L12.7461 4.05049L12.9167 3.32014ZM14.3083 3.64514L14.4791 2.91485L14.4789 2.91479L14.3083 3.64514ZM10.5917 18.0285L10.359 17.3155L10.3572 17.3161L10.5917 18.0285ZM9.27501 18.4618L9.50516 19.1756L9.50947 19.1742L9.27501 18.4618ZM3.15001 15.3285L2.43654 15.5597L2.43672 15.5603L3.15001 15.3285ZM2.08334 12.0368L1.36953 12.267L1.36987 12.268L2.08334 12.0368ZM5.20834 5.91182L5.43849 6.62565L5.44281 6.62423L5.20834 5.91182ZM6.52501 5.47848L6.29831 4.76352L6.29055 4.76608L6.52501 5.47848ZM10.7177 7.35149C10.3162 7.24967 9.90818 7.49261 9.80635 7.89411C9.70453 8.29561 9.94746 8.70364 10.349 8.80546L10.7177 7.35149ZM14.3906 9.83046C14.7921 9.93229 15.2002 9.68935 15.302 9.28785C15.4038 8.88635 15.1609 8.47832 14.7594 8.37649L14.3906 9.83046ZM9.90211 10.5768C9.50076 10.4743 9.09238 10.7167 8.98996 11.118C8.88755 11.5194 9.12988 11.9278 9.53124 12.0302L9.90211 10.5768ZM11.9479 12.6469C12.3493 12.7493 12.7576 12.5069 12.8601 12.1056C12.9625 11.7042 12.7201 11.2958 12.3188 11.1934L11.9479 12.6469ZM17.3198 9.49894L16.5031 12.9823L17.9635 13.3247L18.7802 9.84133L17.3198 9.49894ZM16.5029 12.9835C16.168 14.4224 15.6979 15.2955 15.1165 15.793C14.5605 16.2688 13.7912 16.4944 12.6218 16.3819L12.4782 17.875C13.9088 18.0126 15.1312 17.7548 16.0918 16.9327C17.0271 16.1323 17.5986 14.8928 17.9638 13.3234L16.5029 12.9835ZM12.6098 16.3809C12.2388 16.3512 11.8281 16.2835 11.376 16.1744L11.024 17.6325C11.5386 17.7567 12.0279 17.8391 12.4902 17.8761L12.6098 16.3809ZM11.3737 16.1739L9.97372 15.8405L9.62629 17.2997L11.0263 17.6331L11.3737 16.1739ZM9.97324 15.8404C8.30732 15.4449 7.40652 14.876 6.96107 14.1588C6.51616 13.4425 6.40566 12.385 6.79687 10.7163L5.33647 10.3739C4.91101 12.1887 4.92968 13.7311 5.68685 14.9502C6.44349 16.1685 7.81769 16.8704 9.62676 17.2999L9.97324 15.8404ZM6.79696 10.7159L7.61363 7.22428L6.15304 6.88267L5.33638 10.3743L6.79696 10.7159ZM7.6134 7.22525C7.77277 6.54795 7.95691 5.99053 8.17301 5.55113L6.82699 4.88915C6.54309 5.46641 6.32724 6.14234 6.15327 6.88169L7.6134 7.22525ZM8.17523 5.54659C8.59604 4.67619 9.11898 4.20234 9.77488 3.97598C10.4657 3.73759 11.4133 3.73525 12.744 4.05L13.0893 2.59028C11.6367 2.2467 10.3635 2.18603 9.28554 2.55805C8.17269 2.94211 7.37896 3.74743 6.82478 4.89369L8.17523 5.54659ZM12.7461 4.05049L14.1378 4.37549L14.4789 2.91479L13.0872 2.58979L12.7461 4.05049ZM14.1375 4.37543C15.8111 4.76687 16.7126 5.33603 17.1575 6.05304C17.6023 6.77006 17.7112 7.82942 17.3198 9.49894L18.7802 9.84133C19.2054 8.02753 19.1893 6.48272 18.4321 5.26224C17.6749 4.04175 16.2972 3.34008 14.4791 2.91485L14.1375 4.37543ZM12.1294 16.5075C11.6911 16.8045 11.1123 17.0697 10.359 17.3155L10.8243 18.7415C11.6544 18.4706 12.3756 18.1525 12.9706 17.7494L12.1294 16.5075ZM10.3572 17.3161L9.04055 17.7494L9.50947 19.1742L10.8261 18.7409L10.3572 17.3161ZM9.04486 17.748C7.46037 18.2589 6.43607 18.2362 5.71663 17.8681C4.99693 17.4999 4.37829 16.6816 3.8633 15.0967L2.43672 15.5603C2.99673 17.2837 3.78642 18.5654 5.03339 19.2035C6.28062 19.8416 7.78131 19.7314 9.50516 19.1756L9.04486 17.748ZM3.86348 15.0973L2.79682 11.8056L1.36987 12.268L2.43654 15.5597L3.86348 15.0973ZM2.79716 11.8067C2.28607 10.2215 2.3068 9.19457 2.67362 8.4739C3.03983 7.75443 3.85506 7.13616 5.43849 6.62563L4.9782 5.198C3.25329 5.75414 1.97269 6.54421 1.33682 7.79348C0.701551 9.04157 0.813948 10.5438 1.36953 12.267L2.79716 11.8067ZM5.44281 6.62423L6.75947 6.19089L6.29055 4.76608L4.97388 5.19941L5.44281 6.62423ZM6.75169 6.19341C7.08205 6.08866 7.37424 6.00724 7.63942 5.95707L7.36058 4.48321C7.00909 4.54971 6.6513 4.65164 6.29833 4.76356L6.75169 6.19341ZM10.349 8.80546L14.3906 9.83046L14.7594 8.37649L10.7177 7.35149L10.349 8.80546ZM9.53124 12.0302L11.9479 12.6469L12.3188 11.1934L9.90211 10.5768L9.53124 12.0302Z\\' fill=\\'%239D9DAE\\'/%3e%3c/svg%3e\" alt=\"Note Icon\" />\\n        </div>\\n\\n        <p\\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\\n          View NFTs, buy and swap crypto and more\\n        </p>\\n      </li>\\n    </ul>\\n  </section>\\n`;YL=class extends HTMLElement{constructor(){var e,n,r,o;super(),this.attachShadow({mode:\"open\"});let a=((e=document.querySelector(\"pera-wallet-connect-modal\"))===null||e===void 0?void 0:e.getAttribute(\"compact-mode\"))===\"true\";if(this.shadowRoot&&(!a&&!Ws()||Ws())){let c=document.createElement(\"style\");c.textContent=Yoe,this.shadowRoot.append(Zoe.content.cloneNode(!0),c),Ws()?(n=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-information-section-title\"))===null||n===void 0||n.setAttribute(\"style\",\"display: none;\"):((r=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-information-section-pera-icon\"))===null||r===void 0||r.setAttribute(\"src\",\"data:image/svg+xml,%3csvg width=\\'84\\' height=\\'38\\' viewBox=\\'0 0 84 38\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M19.806 8.62773C20.4416 11.2609 20.2268 13.5772 19.3262 13.8012C18.4256 14.0253 17.1803 12.0723 16.5448 9.43906C15.9092 6.80585 16.1241 4.48959 17.0246 4.26555C17.9252 4.04151 19.1705 5.99452 19.806 8.62773Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M30.3007 10.8917C28.8932 9.3999 26.0929 9.80424 24.0461 11.7948C21.9994 13.7853 21.4812 16.6082 22.8887 18.1C24.2962 19.5917 27.0964 19.1874 29.1432 17.1969C31.1899 15.2064 31.7082 12.3834 30.3007 10.8917Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M19.1061 33.734C20.0067 33.5099 20.1899 31.0627 19.5153 28.2678C18.8408 25.473 17.5639 23.3889 16.6633 23.613C15.7627 23.837 15.5795 26.2843 16.2541 29.0791C16.9286 31.874 18.2056 33.958 19.1061 33.734Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M9.92571 12.2574C12.5239 13.0236 14.4224 14.3678 14.1662 15.2597C13.9099 16.1517 11.5959 16.2536 8.99771 15.4874C6.3995 14.7212 4.50098 13.377 4.75724 12.4851C5.0135 11.5931 7.3275 11.4912 9.92571 12.2574Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M26.7892 22.3292C29.5469 23.1424 31.5747 24.5247 31.3184 25.4167C31.0621 26.3086 28.6189 26.3724 25.8612 25.5592C23.1035 24.7459 21.0757 23.3636 21.3319 22.4717C21.5882 21.5797 24.0315 21.5159 26.7892 22.3292Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M12.8493 20.4577C12.205 19.7898 10.0916 20.7619 8.12896 22.6289C6.16631 24.4959 5.09759 26.5509 5.7419 27.2188C6.38622 27.8867 8.49958 26.9146 10.4622 25.0476C12.4249 23.1806 13.4936 21.1256 12.8493 20.4577Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M41.691 12.5347V11.9635H39.3366V27.1957H41.691V23.0915C41.691 22.6472 41.691 22.2876 41.6482 21.801H41.691C42.5471 23.1973 44.0026 23.9377 45.7148 23.9377C48.6043 23.9377 51.1299 21.7587 51.1299 17.7179C51.1299 13.7617 48.6043 11.625 45.7148 11.625C44.0668 11.625 42.6113 12.3443 41.691 13.7617H41.6482C41.691 13.2963 41.691 12.9578 41.691 12.5347ZM45.1155 21.9279C42.9324 21.9068 41.6696 20.0662 41.6696 17.6967C41.6696 15.4542 42.9324 13.656 45.1155 13.6348C47.2559 13.6137 48.6685 15.2638 48.6685 17.7179C48.6685 20.2354 47.2559 21.9491 45.1155 21.9279Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M63.4932 16.7236C63.4932 13.8041 61.1388 11.625 57.9283 11.625C54.5037 11.625 52.1279 13.931 52.1279 17.7814C52.1279 21.4836 54.4609 23.9377 57.9283 23.9377C60.7749 23.9377 62.8939 22.2876 63.3862 20.0239H60.8177C60.4111 21.1663 59.2981 21.9279 57.9283 21.9279C56.1732 21.9279 54.889 20.6797 54.6107 18.6064H63.4932V16.7236ZM57.9283 13.6348C59.662 13.6348 60.8606 14.8195 61.1174 16.5332H54.6321C54.9318 14.883 56.1518 13.6348 57.9283 13.6348Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M65.224 23.5992H67.5784V17.0409C67.5784 14.7984 68.8198 13.6348 70.7462 13.6348H72.009V11.625H71.003C69.2693 11.625 68.1991 12.7674 67.5784 13.7617H67.5356V11.9635H65.224V23.5992Z\\' fill=\\'%233C3C49\\'/%3e%3cpath d=\\'M83.0154 21.5683C82.6944 21.5683 82.5445 21.3779 82.5445 20.9971V15.8773C82.5445 13.4233 81.3459 11.625 77.8144 11.625C74.3898 11.625 72.8273 13.3175 72.6561 15.7292H75.0105C75.1603 14.4176 76.2091 13.6348 77.8144 13.6348C79.1842 13.6348 80.1259 14.2272 80.1259 15.158C80.1259 15.9196 79.5909 16.3851 77.8358 16.3851H76.894C74.0901 16.3851 72.2066 17.5063 72.2066 20.0662C72.2066 22.753 74.1972 23.98 76.5301 23.98C78.2638 23.98 79.7407 23.2184 80.3186 21.5894C80.3828 22.7742 81.1747 23.5992 82.673 23.5992H84V21.5683H83.0154ZM80.1902 18.1833C80.1902 20.8067 78.7561 21.9491 76.9154 21.9491C75.3101 21.9491 74.668 21.0182 74.668 20.0662C74.668 19.1565 75.2245 18.416 76.9368 18.416H77.2793C78.9273 18.416 79.9547 17.8448 80.1688 16.8505H80.1902V18.1833Z\\' fill=\\'%233C3C49\\'/%3e%3c/svg%3e\"),(o=this.shadowRoot.getElementById(\"pera-wallet-connect-modal-information-section-connect-pera-mobile\"))===null||o===void 0||o.setAttribute(\"style\",\"display: none;\"))}}},ZL=`@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\");\\n.pera-wallet-modal {\\n  --pera-wallet-modal-font-family: \"Inter\", sans-serif;\\n  --pera-wallet-modal-compact-width: 380px;\\n  --pera-wallet-modal-compact-height: 396px;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-color: #ffffff;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\\n  position: absolute;\\n  top: unset;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  max-width: unset;\\n  padding: 20px;\\n  background-color: #ffffff;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\\n  width: var(--pera-wallet-modal-compact-width);\\n  height: var(--pera-wallet-modal-compact-height);\\n  padding: 0;\\n}\\n.pera-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.pera-wallet-modal ul,\\n.pera-wallet-modal ol,\\n.pera-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.pera-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.pera-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.pera-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 700px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #f3f3f7;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 24px;\\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n.pera-wallet-modal__body::before {\\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: -1;\\n  content: \"\";\\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\\n  background-size: 116px 116px;\\n  mix-blend-mode: overlay;\\n  border-radius: 24px;\\n  opacity: 0.8;\\n  pointer-events: none;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes PeraWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes PeraWalletConnectMobileSlideIn {\\n  0% {\\n    bottom: -30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 0;\\n    opacity: 1;\\n  }\\n}\\n.pera-wallet-connect-modal-pending-message-section {\\n  display: grid;\\n  grid-template-columns: 1fr;\\n  grid-template-rows: auto 48px;\\n  gap: 56px;\\n  height: 100%;\\n  padding: 4px;\\n  padding-bottom: 70px;\\n}\\n\\n.pera-wallet-connect-modal-pending-message {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  flex-direction: column;\\n  text-align: center;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view {\\n  display: flex;\\n  justify-content: space-between;\\n  flex-direction: column;\\n  height: 100%;\\n  margin-top: 10px;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__title {\\n  margin: 16px 0 12px;\\n  color: #3c3c49;\\n  font-size: 18px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  letter-spacing: -0.26px;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__description {\\n  color: #6a6a81;\\n  font-size: 14px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  letter-spacing: -0.01px;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__button {\\n  display: block;\\n  width: 100%;\\n  padding: 14px;\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n  color: #ffffff;\\n  background-color: #6b46fe;\\n  border: none;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor {\\n  display: flex;\\n  gap: 12px;\\n  margin-bottom: 20px;\\n  padding: 16px;\\n  background: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border-radius: 12px;\\n  text-decoration: none;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image {\\n  width: 24px;\\n  height: 24px;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  margin-bottom: 4px;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title {\\n  margin: 0;\\n  font-size: 14px;\\n  font-weight: 500;\\n  line-height: 20px;\\n  letter-spacing: -0.1px;\\n  color: #3c3c49;\\n}\\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description {\\n  /* stylelint-disable value-no-vendor-prefix */\\n  /* stylelint-disable  property-no-vendor-prefix */\\n  display: -webkit-box;\\n  max-width: 100%;\\n  -webkit-line-clamp: 2;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n  overflow: hidden;\\n  /* stylelint-enable value-no-vendor-prefix */\\n  /* stylelint-enable property-no-vendor-prefix */\\n  margin: 0;\\n  font-size: 12px;\\n  font-weight: 400;\\n  line-height: 18px;\\n  letter-spacing: 0.01px;\\n  color: #9d9dae;\\n}\\n\\n.pera-wallet-connect-modal-pending-message__animation-wrapper {\\n  width: 56px;\\n  height: 56px;\\n  background-color: #6b46fe;\\n  border-radius: 50%;\\n}\\n\\n.pera-wallet-connect-modal-pending-message__text {\\n  max-width: 271px;\\n  margin-top: 24px;\\n  color: #3c3c49;\\n  font-size: 18px;\\n  font-weight: 500;\\n  line-height: 28px;\\n  letter-spacing: -0.26px;\\n}\\n\\n.pera-wallet-connect-modal-pending-message__cancel-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: 100%;\\n  padding: 14px;\\n  color: #6a6a81;\\n  background-color: #ffffff;\\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\\n  border-radius: 12px;\\n  text-decoration: none;\\n  text-align: center;\\n  font-size: 14px;\\n  line-height: 20px;\\n  letter-spacing: -0.09px;\\n  font-weight: 500;\\n  border: none;\\n}`;_u(ZL);xk=document.createElement(\"template\");xk.innerHTML=`\\n  <div class=\"pera-wallet-connect-modal-pending-message-section\">\\n    <div class=\"pera-wallet-connect-modal-pending-message\">\\n      <div id=\"pera-wallet-connect-modal-pending-message-animation-wrapper\" class=\"pera-wallet-connect-modal-pending-message__animation-wrapper\"></div>\\n\\n      <div class=\"pera-wallet-connect-modal-pending-message__text\">\\n        Please wait while we connect you to Pera Wallet\\n      </div>\\n    </div>\\n\\n    <button\\n      id=\"pera-wallet-connect-modal-pending-message-cancel-button\"\\n      class=\"pera-wallet-button pera-wallet-connect-modal-pending-message__cancel-button\">\\n        Cancel\\n    </button>\\n  </div>\\n\\n  <div id=\"pera-wallet-connect-modal-pending-message-audio-wrapper\"></div>\\n`;KMe=`\\n  <div class=\"pera-wallet-connect-modal-pending-message--try-again-view\">\\n    <div>\\n      <img src=\"${Woe}\" alt=\"Pera Wallet Logo\" />\\n\\n      <h1 class=\"pera-wallet-connect-modal-pending-message--try-again-view__title\">\\n        Couldn\\\\u2019t establish connection\\n      </h1>\\n\\n      <p class=\"pera-wallet-connect-modal-pending-message--try-again-view__description\">\\n        Having issues? Before trying again, make sure to read the support article below and apply the possible solutions.\\n      </p>\\n    </div>\\n\\n    <div>\\n      <a\\n        href=\"https://support.perawallet.app/en/article/resolving-walletconnect-issues-1tolptm/\"\\n        target=\"_blank\"\\n        rel=\"noopener noreferrer\"\\n        class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor\">\\n        <img\\n          class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image\"\\n          src=\"data:image/svg+xml,%3csvg width=\\'24\\' height=\\'24\\' viewBox=\\'0 0 24 24\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.75 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7ZM11.9998 12.11C11.5898 12.11 11.2498 11.77 11.2498 11.36V11.15C11.2498 10.0038 12.0798 9.4336 12.4082 9.20798L12.4198 9.20001C12.7898 8.95001 12.9098 8.78002 12.9098 8.52002C12.9098 8.02002 12.4998 7.60999 11.9998 7.60999C11.4998 7.60999 11.0898 8.02002 11.0898 8.52002C11.0898 8.93002 10.7498 9.27002 10.3398 9.27002C9.92984 9.27002 9.58984 8.93002 9.58984 8.52002C9.58984 7.19002 10.6698 6.10999 11.9998 6.10999C13.3298 6.10999 14.4098 7.19002 14.4098 8.52002C14.4098 9.66002 13.5698 10.23 13.2598 10.44C12.8698 10.7 12.7498 10.87 12.7498 11.15V11.36C12.7498 11.78 12.4098 12.11 11.9998 12.11ZM11.25 13.85C11.25 14.26 11.58 14.6 12 14.6C12.42 14.6 12.75 14.26 12.75 13.85C12.75 13.44 12.41 13.1 12 13.1C11.59 13.1 11.25 13.44 11.25 13.85Z\\' fill=\\'%236B46FE\\'/%3e%3c/svg%3e\"\\n          alt=\"Help Icon\"\\n        />\\n\\n        <div>\\n          <div\\n            class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper\">\\n            <h1\\n              class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title\">\\n                Resolving WalletConnect issues\\n            </h1>\\n\\n            <img src=\"data:image/svg+xml,%3csvg width=\\'16\\' height=\\'16\\' viewBox=\\'0 0 16 16\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M11.3287 10.0983C10.9574 10.0983 10.6564 9.79734 10.6564 9.42604L10.6564 6.29525L5.14866 11.803C4.88611 12.0655 4.46044 12.0655 4.19789 11.803C3.93534 11.5404 3.93534 11.1147 4.19789 10.8522L9.70561 5.34447L6.57482 5.34447C6.20352 5.34447 5.90252 5.04347 5.90252 4.67218C5.90252 4.30088 6.20352 3.99988 6.57482 3.99988L11.3287 3.99988C11.507 3.99988 11.678 4.07071 11.8041 4.19679C11.9301 4.32287 12.001 4.49387 12.001 4.67218L12.001 9.42604C12.001 9.79734 11.7 10.0983 11.3287 10.0983Z\\' fill=\\'%239D9DAE\\'/%3e%3c/svg%3e\" alt=\"Send Icon\"/>\\n          </div>\\n\\n          <p\\n            class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description\">\\n            Unfortunately there are several known issues related to WalletConnect that our team is working on. Some of these issues are related to the WalletConnect JavaScript implementation on the dApp ...\\n          </p>\\n        </div>\\n      </a>\\n\\n      <button id=\"pera-wallet-connect-modal-pending-message-try-again-button\" class=\"pera-wallet-connect-button pera-wallet-connect-modal-pending-message--try-again-view__button\">\\n        Close & Try Again\\n      </button>\\n    </div>\\n  </div>\\n  `,XL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=ZL,this.shadowRoot.append(xk.content.cloneNode(!0),e)}}connectedCallback(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-pending-message-cancel-button\");n?.addEventListener(\"click\",(()=>{this.onClose()})),this.addAudioForConnection(),this.renderLottieAnimation(),setTimeout((()=>{var r;if(xk.innerHTML=KMe,this.shadowRoot){let o=document.createElement(\"style\");o.textContent=ZL,this.shadowRoot.innerHTML=\"\",this.shadowRoot.append(xk.content.cloneNode(!0),o);let a=(r=this.shadowRoot)===null||r===void 0?void 0:r.getElementById(\"pera-wallet-connect-modal-pending-message-try-again-button\");a?.addEventListener(\"click\",(()=>{this.onClose()}))}}),3e4)}onClose(){Ys(Tu)}addAudioForConnection(){var e;if(this.getAttribute(\"should-use-sound\")===\"true\"&&nN()){let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-pending-message-audio-wrapper\"),r=document.createElement(\"audio\");r.src=\"https://s3.amazonaws.com/wc.perawallet.app/audio.mp3\",r.autoplay=!0,r.loop=!0,n?.appendChild(r)}}renderLottieAnimation(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-connect-modal-pending-message-animation-wrapper\");n&&tN.default.loadAnimation({container:n,renderer:\"svg\",loop:!0,autoplay:!0,path:\"https://s3.amazonaws.com/wc.perawallet.app/static/pera-loader-animation.json\"})}},Xoe=`.pera-wallet-sign-txn-toast {\\n  --pera-wallet-sign-txn-toast-width: 422px;\\n  --pera-wallet-sign-txn-toast-height: 134px;\\n  --pera-wallet-sign-txn-toast-font-family: \"Inter\", sans-serif;\\n  position: fixed;\\n  bottom: 28px;\\n  right: 35px;\\n  z-index: 11;\\n  overflow: hidden;\\n  width: var(--pera-wallet-sign-txn-toast-width);\\n  height: var(--pera-wallet-sign-txn-toast-height);\\n  background: #edeffb;\\n  border-radius: 8px;\\n  animation: 0.2s PeraWalletSignTxnToastSlideIn ease-out;\\n}\\n.pera-wallet-sign-txn-toast * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-sign-txn-toast-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.pera-wallet-sign-txn-toast ul,\\n.pera-wallet-sign-txn-toast ol,\\n.pera-wallet-sign-txn-toast li {\\n  list-style-type: none;\\n}\\n\\n.pera-wallet-sign-txn-toast__header__close-button {\\n  position: absolute;\\n  top: 10px;\\n  right: 10px;\\n  width: 20px;\\n  height: 20px;\\n  margin: 0;\\n  padding: 0;\\n  background: transparent;\\n  border: none;\\n  cursor: pointer;\\n}\\n\\n.pera-wallet-sign-txn-toast__content__lottie-animation {\\n  position: absolute;\\n  top: -75px;\\n  left: -100px;\\n  width: 368px;\\n  height: 368px;\\n}\\n\\n.pera-wallet-sign-txn-toast__content__description {\\n  position: absolute;\\n  top: 40px;\\n  right: 48px;\\n  max-width: 197px;\\n  color: #3c3c49;\\n  font-size: 14px;\\n  line-height: 22px;\\n  letter-spacing: -0.1px;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-sign-txn-toast {\\n    display: none;\\n  }\\n}\\n@keyframes PeraWalletSignTxnToastSlideIn {\\n  0% {\\n    bottom: 12px;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 26px;\\n    opacity: 1;\\n  }\\n}`;_u(Xoe);Joe=document.createElement(\"template\");Joe.innerHTML=`\\n  <div class=\"pera-wallet-sign-txn-toast\">\\n    <div class=\"pera-wallet-sign-txn-toast__header\">\\n      <button\\n        id=\"pera-wallet-sign-txn-toast-close-button\"\\n        class=\"pera-wallet-sign-txn-toast__header__close-button\">\\n        <img src=\"data:image/svg+xml,%3csvg width=\\'20\\' height=\\'20\\' viewBox=\\'0 0 20 20\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3e%3cpath d=\\'M14.4107 4.41074L9.41074 9.41074L10.5893 10.5893L15.5893 5.58926L14.4107 4.41074ZM9.41074 9.41074L4.41074 14.4107L5.58926 15.5893L10.5893 10.5893L9.41074 9.41074ZM15.5893 14.4107L10.5893 9.41074L9.41074 10.5893L14.4107 15.5893L15.5893 14.4107ZM10.5893 9.41074L5.58926 4.41074L4.41074 5.58926L9.41074 10.5893L10.5893 9.41074Z\\' fill=\\'%239099BD\\'/%3e%3c/svg%3e\" />\\n      </button>\\n    </div>\\n    <div class=\"pera-wallet-sign-txn-toast__content\">\\n      <div id=\"pera-wallet-sign-txn-toast-lottie-animation\" style=\"width:368;height:368\" class=\"pera-wallet-sign-txn-toast__content__lottie-animation\"></div>\\n      <p class=\"pera-wallet-sign-txn-toast__content__description\">\\n        Please launch <b>Pera Wallet</b> on your iOS or Android device to sign this transaction.\\n      </p>\\n    </div>\\n  </div>\\n`;JL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");e.textContent=Xoe,this.shadowRoot.append(Joe.content.cloneNode(!0),e);let n=this.shadowRoot.getElementById(\"pera-wallet-sign-txn-toast-close-button\");n?.addEventListener(\"click\",(()=>{Ys(Iv)})),this.renderLottieAnimation()}}renderLottieAnimation(){var e;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(\"pera-wallet-sign-txn-toast-lottie-animation\");n&&tN.default.loadAnimation({container:n,renderer:\"svg\",loop:!0,autoplay:!0,path:\"https://s3.amazonaws.com/wc.perawallet.app/static/sign-toast-animation.json\"})}},Qoe=`@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\");\\n.pera-wallet-modal {\\n  --pera-wallet-modal-font-family: \"Inter\", sans-serif;\\n  --pera-wallet-modal-compact-width: 380px;\\n  --pera-wallet-modal-compact-height: 396px;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  bottom: 0;\\n  z-index: 999999;\\n  width: 100vw;\\n  height: 100vh;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-color: #ffffff;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\\n  position: absolute;\\n  top: unset;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  max-width: unset;\\n  padding: 20px;\\n  background-color: #ffffff;\\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\\n  border-radius: 20px 20px 0px 0px;\\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\\n  overflow-y: auto;\\n  transform: unset;\\n}\\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\\n  background-image: unset;\\n}\\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\\n  width: var(--pera-wallet-modal-compact-width);\\n  height: var(--pera-wallet-modal-compact-height);\\n  padding: 0;\\n}\\n.pera-wallet-modal * {\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-smooth: antialiased;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.pera-wallet-modal ul,\\n.pera-wallet-modal ol,\\n.pera-wallet-modal li {\\n  list-style-type: none;\\n}\\n\\n.pera-wallet-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  width: auto;\\n  height: 48px;\\n  padding: 14px;\\n  border: none;\\n  border-radius: 12px;\\n  outline: none;\\n  cursor: pointer;\\n  font-family: var(--pera-wallet-modal-font-family);\\n  font-size: 14px;\\n}\\n\\n.pera-wallet-modal__logo img {\\n  display: block;\\n  width: 32px;\\n}\\n\\n.pera-wallet-modal__body {\\n  position: relative;\\n  top: 50%;\\n  left: 50%;\\n  width: 700px;\\n  max-width: calc(100vw - 80px);\\n  padding: 28px;\\n  background-color: #f3f3f7;\\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\\n  border-radius: 24px;\\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\\n  transform: translate(-50%, -50%);\\n}\\n.pera-wallet-modal__body::before {\\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: -1;\\n  content: \"\";\\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\\n  background-size: 116px 116px;\\n  mix-blend-mode: overlay;\\n  border-radius: 24px;\\n  opacity: 0.8;\\n  pointer-events: none;\\n}\\n\\n@media (max-width: 767px) {\\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\\n    width: 100%;\\n    max-width: calc(100vw - 32px);\\n    padding: 24px;\\n  }\\n}\\n@keyframes PeraWalletConnectSlideIn {\\n  0% {\\n    opacity: 0;\\n    transform: translate(-50%, calc(-50% + 24px));\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: translate(-50%, -50%);\\n  }\\n}\\n@keyframes PeraWalletConnectMobileSlideIn {\\n  0% {\\n    bottom: -30%;\\n    opacity: 0;\\n  }\\n  100% {\\n    bottom: 0;\\n    opacity: 1;\\n  }\\n}\\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body {\\n  width: 480px;\\n  height: 578px;\\n  background-color: #ffffff;\\n  background-image: unset;\\n  padding: 0;\\n}\\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body .pera-wallet-sign-txn-modal__body__content {\\n  width: 100%;\\n  height: 100%;\\n}\\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body #pera-wallet-iframe {\\n  width: 100%;\\n  height: 100%;\\n  border-radius: 16px;\\n  margin: 0 auto;\\n  border: none;\\n}\\n\\n.pera-wallet-sign-txn-modal--compact.pera-wallet-modal .pera-wallet-modal__body {\\n  width: var(--pera-wallet-modal-compact-width);\\n  height: var(--pera-wallet-modal-compact-height);\\n}`;_u(Qoe);eie=document.createElement(\"template\");eie.innerHTML=`\\n  <div id=\"pera-wallet-sign-txn-modal\" class=\"${ym} pera-wallet-sign-txn-modal\">\\n    <div class=\"pera-wallet-modal__body\">\\n      <pera-wallet-modal-header modal-id=\"${rie}\"></pera-wallet-modal-header/>\\n\\n      <div class=\"pera-wallet-sign-txn-modal__body__content\" />\\n    </div>\\n  </div>\\n`;QL=class extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:\"open\"}),this.shadowRoot){let e=document.createElement(\"style\");if(e.textContent=Qoe,this.shadowRoot.append(eie.content.cloneNode(!0),e),this.getAttribute(\"compact-mode\")===\"true\"){let n=this.shadowRoot.getElementById(\"pera-wallet-sign-txn-modal\");n?.classList.add(\"pera-wallet-sign-txn-modal--compact\")}}}};document.readyState===\"complete\"||document.readyState===\"interactive\"?VL():window.addEventListener(\"DOMContentLoaded\",(()=>{VL()})),window.addEventListener(\"resize\",(()=>{VL()})),Id(\"pera-wallet-connect-modal\",qL),Id(\"pera-wallet-modal-desktop-mode\",$L),Id(\"pera-wallet-modal-header\",HL),Id(\"pera-wallet-modal-touch-screen-mode\",GL),Id(\"pera-wallet-redirect-modal\",WL),Id(\"pera-wallet-connect-modal-information-section\",YL),Id(\"pera-wallet-connect-modal-pending-message-section\",XL),Id(\"pera-wallet-sign-txn-toast\",JL),Id(\"pera-wallet-sign-txn-modal\",QL),Id(\"pera-wallet-download-qr-code\",jL)});function wie(){lN=!0;for(var t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",e=0;e<64;++e)Rd[e]=t[e],Ll[t.charCodeAt(e)]=e;Ll[45]=62,Ll[95]=63}function WMe(t,e,n){for(var r,o,a=[],c=e;c<n;c+=3)r=(t[c]<<16)+(t[c+1]<<8)+t[c+2],a.push(Rd[(o=r)>>18&63]+Rd[o>>12&63]+Rd[o>>6&63]+Rd[63&o]);return a.join(\"\")}function iie(t){var e;lN||wie();for(var n=t.length,r=n%3,o=\"\",a=[],c=16383,l=0,f=n-r;l<f;l+=c)a.push(WMe(t,l,l+c>f?f:l+c));return r===1?(e=t[n-1],o+=Rd[e>>2],o+=Rd[e<<4&63],o+=\"==\"):r===2&&(e=(t[n-2]<<8)+t[n-1],o+=Rd[e>>10],o+=Rd[e>>4&63],o+=Rd[e<<2&63],o+=\"=\"),a.push(o),a.join(\"\")}function wk(t,e,n,r,o){var a,c,l=8*o-r-1,f=(1<<l)-1,p=f>>1,m=-7,g=n?o-1:0,y=n?-1:1,A=t[e+g];for(g+=y,a=A&(1<<-m)-1,A>>=-m,m+=l;m>0;a=256*a+t[e+g],g+=y,m-=8);for(c=a&(1<<-m)-1,a>>=-m,m+=r;m>0;c=256*c+t[e+g],g+=y,m-=8);if(a===0)a=1-p;else{if(a===f)return c?NaN:1/0*(A?-1:1);c+=Math.pow(2,r),a-=p}return(A?-1:1)*c*Math.pow(2,a-r)}function Eie(t,e,n,r,o,a){var c,l,f,p=8*a-o-1,m=(1<<p)-1,g=m>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=r?0:a-1,T=r?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-c))<1&&(c--,f*=2),(e+=c+g>=1?y/f:y*Math.pow(2,1-g))*f>=2&&(c++,f/=2),c+g>=m?(l=0,c=m):c+g>=1?(l=(e*f-1)*Math.pow(2,o),c+=g):(l=e*Math.pow(2,g-1)*Math.pow(2,o),c=0));o>=8;t[n+A]=255&l,A+=T,l/=256,o-=8);for(c=c<<o|l,p+=o;p>0;t[n+A]=255&c,A+=T,c/=256,p-=8);t[n+A-T]|=128*R}function Ak(){return Vn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function vp(t,e){if(Ak()<e)throw new RangeError(\"Invalid typed array length\");return Vn.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Vn.prototype:(t===null&&(t=new Vn(e)),t.length=e),t}function Vn(t,e,n){if(!(Vn.TYPED_ARRAY_SUPPORT||this instanceof Vn))return new Vn(t,e,n);if(typeof t==\"number\"){if(typeof e==\"string\")throw new Error(\"If encoding is specified then the first argument must be a string\");return sN(this,t)}return Aie(this,t,e,n)}function Aie(t,e,n,r){if(typeof e==\"number\")throw new TypeError(\\'\"value\" argument must not be a number\\');return typeof ArrayBuffer<\"u\"&&e instanceof ArrayBuffer?(function(o,a,c,l){if(a.byteLength,c<0||a.byteLength<c)throw new RangeError(\"\\'offset\\' is out of bounds\");if(a.byteLength<c+(l||0))throw new RangeError(\"\\'length\\' is out of bounds\");return a=c===void 0&&l===void 0?new Uint8Array(a):l===void 0?new Uint8Array(a,c):new Uint8Array(a,c,l),Vn.TYPED_ARRAY_SUPPORT?(o=a).__proto__=Vn.prototype:o=iN(o,a),o})(t,e,n,r):typeof e==\"string\"?(function(o,a,c){if(typeof c==\"string\"&&c!==\"\"||(c=\"utf8\"),!Vn.isEncoding(c))throw new TypeError(\\'\"encoding\" must be a valid string encoding\\');var l=0|Cie(a,c);o=vp(o,l);var f=o.write(a,c);return f!==l&&(o=o.slice(0,f)),o})(t,e,n):(function(o,a){if(Pd(a)){var c=0|uN(a.length);return(o=vp(o,c)).length===0||a.copy(o,0,0,c),o}if(a){if(typeof ArrayBuffer<\"u\"&&a.buffer instanceof ArrayBuffer||\"length\"in a)return typeof a.length!=\"number\"||(l=a.length)!=l?vp(o,0):iN(o,a);if(a.type===\"Buffer\"&&Sie(a.data))return iN(o,a.data)}var l;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")})(t,e)}function kie(t){if(typeof t!=\"number\")throw new TypeError(\\'\"size\" argument must be a number\\');if(t<0)throw new RangeError(\\'\"size\" argument must not be negative\\')}function sN(t,e){if(kie(e),t=vp(t,e<0?0:0|uN(e)),!Vn.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function iN(t,e){var n=e.length<0?0:0|uN(e.length);t=vp(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function uN(t){if(t>=Ak())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+Ak().toString(16)+\" bytes\");return 0|t}function Pd(t){return!(t==null||!t._isBuffer)}function Cie(t,e){if(Pd(t))return t.length;if(typeof ArrayBuffer<\"u\"&&typeof ArrayBuffer.isView==\"function\"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!=\"string\"&&(t=\"\"+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return kk(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return Iie(t).length;default:if(r)return kk(t).length;e=(\"\"+e).toLowerCase(),r=!0}}function ZMe(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return iIe(this,e,n);case\"utf8\":case\"utf-8\":return _ie(this,e,n);case\"ascii\":return rIe(this,e,n);case\"latin1\":case\"binary\":return oIe(this,e,n);case\"base64\":return nIe(this,e,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return aIe(this,e,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),r=!0}}function Bg(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function aie(t,e,n,r,o){if(t.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof e==\"string\"&&(e=Vn.from(e,r)),Pd(e))return e.length===0?-1:sie(t,e,n,r,o);if(typeof e==\"number\")return e&=255,Vn.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):sie(t,[e],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function sie(t,e,n,r,o){var a,c=1,l=t.length,f=e.length;if(r!==void 0&&((r=String(r).toLowerCase())===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(t.length<2||e.length<2)return-1;c=2,l/=2,f/=2,n/=2}function p(A,T){return c===1?A[T]:A.readUInt16BE(T*c)}if(o){var m=-1;for(a=n;a<l;a++)if(p(t,a)===p(e,m===-1?0:a-m)){if(m===-1&&(m=a),a-m+1===f)return m*c}else m!==-1&&(a-=a-m),m=-1}else for(n+f>l&&(n=l-f),a=n;a>=0;a--){for(var g=!0,y=0;y<f;y++)if(p(t,a+y)!==p(e,y)){g=!1;break}if(g)return a}return-1}function XMe(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=e.length;if(a%2!=0)throw new TypeError(\"Invalid hex string\");r>a/2&&(r=a/2);for(var c=0;c<r;++c){var l=parseInt(e.substr(2*c,2),16);if(isNaN(l))return c;t[n+c]=l}return c}function JMe(t,e,n,r){return _k(kk(e,t.length-n),t,n,r)}function Tie(t,e,n,r){return _k((function(o){for(var a=[],c=0;c<o.length;++c)a.push(255&o.charCodeAt(c));return a})(e),t,n,r)}function QMe(t,e,n,r){return Tie(t,e,n,r)}function eIe(t,e,n,r){return _k(Iie(e),t,n,r)}function tIe(t,e,n,r){return _k((function(o,a){for(var c,l,f,p=[],m=0;m<o.length&&!((a-=2)<0);++m)l=(c=o.charCodeAt(m))>>8,f=c%256,p.push(f),p.push(l);return p})(e,t.length-n),t,n,r)}function nIe(t,e,n){return e===0&&n===t.length?iie(t):iie(t.slice(e,n))}function _ie(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var a,c,l,f,p=t[o],m=null,g=p>239?4:p>223?3:p>191?2:1;if(o+g<=n)switch(g){case 1:p<128&&(m=p);break;case 2:(192&(a=t[o+1]))==128&&(f=(31&p)<<6|63&a)>127&&(m=f);break;case 3:a=t[o+1],c=t[o+2],(192&a)==128&&(192&c)==128&&(f=(15&p)<<12|(63&a)<<6|63&c)>2047&&(f<55296||f>57343)&&(m=f);break;case 4:a=t[o+1],c=t[o+2],l=t[o+3],(192&a)==128&&(192&c)==128&&(192&l)==128&&(f=(15&p)<<18|(63&a)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(m=f)}m===null?(m=65533,g=1):m>65535&&(m-=65536,r.push(m>>>10&1023|55296),m=56320|1023&m),r.push(m),o+=g}return(function(y){var A=y.length;if(A<=cie)return String.fromCharCode.apply(String,y);for(var T=\"\",R=0;R<A;)T+=String.fromCharCode.apply(String,y.slice(R,R+=cie));return T})(r)}function rIe(t,e,n){var r=\"\";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function oIe(t,e,n){var r=\"\";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function iIe(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",a=e;a<n;++a)o+=cIe(t[a]);return o}function aIe(t,e,n){for(var r=t.slice(e,n),o=\"\",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function Ua(t,e,n){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>n)throw new RangeError(\"Trying to access beyond buffer length\")}function bc(t,e,n,r,o,a){if(!Pd(t))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(e>o||e<a)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>t.length)throw new RangeError(\"Index out of range\")}function Ek(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,a=Math.min(t.length-n,2);o<a;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Sk(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,a=Math.min(t.length-n,4);o<a;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function Mie(t,e,n,r,o,a){if(n+r>t.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function lie(t,e,n,r,o){return o||Mie(t,0,n,4),Eie(t,e,n,r,23,4),n+4}function uie(t,e,n,r,o){return o||Mie(t,0,n,8),Eie(t,e,n,r,52,8),n+8}function cIe(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function kk(t,e){var n;e=e||1/0;for(var r=t.length,o=null,a=[],c=0;c<r;++c){if((n=t.charCodeAt(c))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(c+1===r){(e-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Iie(t){return(function(e){var n,r,o,a,c,l;lN||wie();var f=e.length;if(f%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");c=e[f-2]===\"=\"?2:e[f-1]===\"=\"?1:0,l=new qMe(3*f/4-c),o=c>0?f-4:f;var p=0;for(n=0,r=0;n<o;n+=4,r+=3)a=Ll[e.charCodeAt(n)]<<18|Ll[e.charCodeAt(n+1)]<<12|Ll[e.charCodeAt(n+2)]<<6|Ll[e.charCodeAt(n+3)],l[p++]=a>>16&255,l[p++]=a>>8&255,l[p++]=255&a;return c===2?(a=Ll[e.charCodeAt(n)]<<2|Ll[e.charCodeAt(n+1)]>>4,l[p++]=255&a):c===1&&(a=Ll[e.charCodeAt(n)]<<10|Ll[e.charCodeAt(n+1)]<<4|Ll[e.charCodeAt(n+2)]>>2,l[p++]=a>>8&255,l[p++]=255&a),l})((function(e){if((e=(function(n){return n.trim?n.trim():n.replace(/^\\\\s+|\\\\s+$/g,\"\")})(e).replace(sIe,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e})(t))}function _k(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function die(t){return!!t.constructor&&typeof t.constructor.isBuffer==\"function\"&&t.constructor.isBuffer(t)}function Nl(t,e,n,r){return new(n||(n=Promise))((function(o,a){function c(p){try{f(r.next(p))}catch(m){a(m)}}function l(p){try{f(r.throw(p))}catch(m){a(m)}}function f(p){var m;p.done?o(p.value):(m=p.value,m instanceof n?m:new n((function(g){g(m)}))).then(c,l)}f((r=r.apply(t,e||[])).next())}))}function dIe(){let t=document.querySelector(\\'meta[name=\"name\"]\\'),e=document.querySelector(\\'meta[name=\"description\"]\\'),{title:n}=document,r=\"\";return t instanceof HTMLMetaElement&&(n=t.content),e instanceof HTMLMetaElement&&(r=e.content),{title:n,description:r,url:window.location.origin,favicon:fIe()[0]}}function fIe(){let t=document.getElementsByTagName(\"link\"),e=[];for(let n=0;n<t.length;n++){let r=t[n],o=r.getAttribute(\"rel\");if(o&&o.toLowerCase().indexOf(\"icon\")>-1){let a=r.getAttribute(\"href\");if(a&&a.toLowerCase().indexOf(\"https:\")===-1&&a.toLowerCase().indexOf(\"http:\")===-1&&a.indexOf(\"//\")!==0){let c=`${window.location.protocol}//${window.location.host}`;if(a.indexOf(\"/\")===0)c+=a;else{let l=window.location.pathname.split(\"/\");l.pop(),c+=`${l.join(\"/\")}/${a}`}e.push(c)}else if(a?.indexOf(\"//\")===0){let c=window.location.protocol+a;e.push(c)}else a&&e.push(a)}}return e}function Rie(t){return new Promise(((e,n)=>{try{let r=window.open(t,\"_blank\"),o=0,a=setInterval((()=>{if(o+=1,o===uIe)return clearInterval(a),void n(new ns({type:\"MESSAGE_NOT_RECEIVED\"},\"Couldn\\'t open Pera Wallet, please try again.\"));r&&(r.closed===!0&&(clearInterval(a),n(new ns({type:\"OPERATION_CANCELLED\"},\"Operation cancelled by user\"))),Rv.sendMessage({message:{type:\"TAB_OPEN\"},origin:t,targetWindow:r}))}),lIe);Rv.setupListener({onReceiveMessage:c=>{c.data.message.type===\"TAB_OPEN_RECEIVED\"&&(clearInterval(a),e(r))}})}catch(r){n(r)}}))}function Mk(){return typeof navigator<\"u\"}function nN(){return Mk()&&/iPhone|iPad|iPod/i.test(navigator.userAgent)}function Ws(){return Mk()&&/iPhone|iPod|Android/i.test(navigator.userAgent)}function Pie(){if(!Mk())return null;let{userAgent:t}=navigator,e;return e=t.match(/DuckDuckGo/i)?\"DuckDuckGo\":t.match(/OPX/i)?\"Opera GX\":navigator.brave?\"Brave\":bie.default.getParser(navigator.userAgent).getBrowserName(),e}function Bie(t){return{ROOT:`https://${t}`,CONNECT:`https://${t}/connect`,TRANSACTION_SIGN:`https://${t}/transaction/sign`}}function bk(t=!0){let e=pIe,n=Pie();return t&&n&&(e=`${e}?browser=${encodeURIComponent(n)}`),e}function rN(t,e){let n=bk(!1);nN()&&!n.includes(\"-wc\")&&(n=n.replace(\"://\",\"-wc://\"));let r=`${n}wc?uri=${encodeURIComponent(t)}`,o=Pie();return Mk()&&/Android/i.test(navigator.userAgent)&&(r=t),o&&(r=`${r}&browser=${encodeURIComponent(o)}`),e?.singleAccount&&(r=`${r}&singleAccount=true`),e?.selectedAccount&&e.selectedAccount!==\"undefined\"&&(r=`${r}&selectedAccount=${e.selectedAccount}`),r}function dN(t){let e=document.createElement(\"div\");return e.setAttribute(\"id\",t),document.body.appendChild(e),e}function fie(){dN(vm).innerHTML=\"<pera-wallet-redirect-modal></pera-wallet-redirect-modal>\"}function pie(){dN(Iv).innerHTML=\"<pera-wallet-sign-txn-toast></pera-wallet-sign-txn-toast>\"}function Die(){Ys(Iv)}function Ys(t){let e=document.getElementById(t);e&&e.remove()}function Y4(){return typeof localStorage>\"u\"?void 0:localStorage}function Fie(t,e){var n;(n=Y4())===null||n===void 0||n.setItem(W4.WALLET,JSON.stringify({type:e||\"pera-wallet\",accounts:t,selectedAccount:t[0]}))}function aN(){var t;let e=(t=Y4())===null||t===void 0?void 0:t.getItem(W4.WALLET);return e?JSON.parse(e):null}function Oie(){return new Promise(((t,e)=>{var n,r;try{(n=Y4())===null||n===void 0||n.removeItem(W4.WALLETCONNECT),(r=Y4())===null||r===void 0||r.removeItem(W4.WALLET),t(void 0)}catch(o){e(o)}}))}function mIe(t){let e=t.slice();for(let n=e.length-1;n>0;n--){let r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}return e}function yIe(){return(function(t,e={}){return fetch(t,e).then((n=>n.json())).then((n=>n))})(gIe,{cache:\"no-store\"})}function xm(){return Nl(this,void 0,void 0,(function*(){let t={bridgeURL:\"\",webWalletURL:\"\",isWebWalletAvailable:!1,shouldDisplayNewBadge:!1,shouldUseSound:!0,silent:!1,promoteMobile:!1};try{let e=yield yIe();e.web_wallet!==void 0&&e.web_wallet_url&&(t.isWebWalletAvailable=e.web_wallet),e.display_new_badge!==void 0&&(t.shouldDisplayNewBadge=e.display_new_badge),e.use_sound!==void 0&&(t.shouldUseSound=e.use_sound),e.silent!==void 0&&(t.silent=e.silent),e.promote_mobile!==void 0&&(t.promoteMobile=e.promote_mobile),t=Object.assign(Object.assign({},t),{bridgeURL:mIe(e.servers||[])[0]||\"\",webWalletURL:e.web_wallet_url||\"\"})}catch(e){console.log(e)}return t}))}function Ck(t){return Uint8Array.from(window.atob(t),(e=>e.charCodeAt(0)))}function hie(t,e){return{id:Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3)),jsonrpc:\"2.0\",method:t,params:e}}function mie({method:t,signTxnRequestParams:e,signer:n,chainId:r,webWalletURL:o,resolve:a,reject:c}){let l=Bie(o);(function(){Nl(this,void 0,void 0,(function*(){try{let f=yield Rie(l.TRANSACTION_SIGN);if(f){let m;t===\"SIGN_TXN\"?m={type:\"SIGN_TXN\",txn:e}:t===\"SIGN_DATA\"&&n&&r&&(m={type:\"SIGN_DATA\",data:e,signer:n,chainId:r}),m&&Rv.sendMessage({message:m,origin:l.TRANSACTION_SIGN,targetWindow:f})}let p=setInterval((()=>{f?.closed===!0&&(c(new ns({type:`${t}_CANCELLED`},\"Transaction signing is cancelled by user.\")),clearInterval(p))}),2e3);Rv.setupListener({onReceiveMessage:m=>(function({event:g,newPeraWalletTab:y,method:A,resolve:T,reject:R}){switch(g.data.message.type){case\"SIGN_TXN_CALLBACK\":y?.close(),T(g.data.message.signedTxns.map((K=>Ck(K.signedTxn))));break;case\"SIGN_DATA_CALLBACK\":y?.close(),T(g.data.message.signedData.map((K=>Ck(K.signedData))));break;case\"SIGN_TXN_NETWORK_MISMATCH\":R(new ns({type:`${A}_NETWORK_MISMATCH`,detail:g.data.message.error},g.data.message.error||\"Network mismatch\"));break;case\"SIGN_TXN_CALLBACK_ERROR\":y?.close(),R(new ns({type:`${A}_CANCELLED`},g.data.message.error));break;case\"SESSION_DISCONNECTED\":y?.close(),Oie(),R(new ns({type:\"SESSION_DISCONNECTED\",detail:g.data.message.error},g.data.message.error))}})({event:m,newPeraWalletTab:f,method:t,resolve:a,reject:c})})}catch(f){c(f)}}))})()}function vIe({webWalletURL:t,chainId:e,resolve:n,reject:r}){let o=Bie(t);return function(){return Nl(this,void 0,void 0,(function*(){try{let c=yield Rie(o.CONNECT);c&&Rv.sendMessage({message:{type:\"CONNECT\",data:Object.assign(Object.assign({},dIe()),{chainId:e})},origin:o.CONNECT,targetWindow:c});let l=setInterval((()=>{c?.closed===!0&&(r(new ns({type:\"CONNECT_CANCELLED\"},\"Connect is cancelled by user\")),clearInterval(l),a())}),2e3);Rv.setupListener({onReceiveMessage:f=>(function({event:p,newPeraWalletTab:m,resolve:g,reject:y}){if(g&&p.data.message.type===\"CONNECT_CALLBACK\"){let A=p.data.message.data.addresses;Fie(A,\"pera-wallet-web\"),g(A),Ys(Tu),m?.close()}else p.data.message.type===\"CONNECT_NETWORK_MISMATCH\"&&(y(new ns({type:\"CONNECT_NETWORK_MISMATCH\",detail:p.data.message.error},p.data.message.error||\"Your wallet is connected to a different network to this dApp. Update your wallet to the correct network (MainNet or TestNet) to continue.\")),Ys(Tu),m?.close())})({event:f,newPeraWalletTab:c,resolve:n,reject:r})})}catch(c){a(),r(c)}}))};function a(){Ys(Tu)}}function yie(t,e){let{mainnet:n,testnet:r}=xIe,o=t===\"mainnet\"?n:r;return{tokens:{client:o[e].clientToken,indexer:o[e].indexerToken},server:{client:o[e].clientServer,indexer:o[e].indexerServer},port:o[e].port}}function vie(){let t=Date.now(),e=bIe++,n=t.toString().slice(-8),r=e.toString().padStart(4,\"0\");return parseInt(`${n}${r}`,10)}function xie(t){if(!t||typeof t!=\"object\")return!1;let e=t;return e.jsonrpc===\"2.0\"&&(\"result\"in e||\"error\"in e)&&(e.id===null||typeof e.id==\"string\"||typeof e.id==\"number\")}function EIe(t){var e;let n=window.peraMobileInterface,r=(function(){var a;return(a=window.webkit)===null||a===void 0?void 0:a.messageHandlers})(),o=JSON.stringify(t);n?.handleRequest&&n.handleRequest(o),!((e=r?.handleRequest)===null||e===void 0)&&e.postMessage&&r.handleRequest.postMessage(o)}function SIe(t,e=5e3,n){let r=vie(),o=wIe.waitForResponse(r,t,e),a=(function(c,l,f){let p=f??vie();return Object.assign(Object.assign({jsonrpc:\"2.0\",method:c},l!==void 0&&{params:l}),{id:p})})(t,n,r);return EIe(a),o}function AIe({isWebWalletAvailable:t,shouldDisplayNewBadge:e,shouldUseSound:n,compactMode:r,promoteMobile:o,singleAccount:a,selectedAccount:c,isInWebview:l}){return{open:(f={isWebWalletAvailable:t,shouldDisplayNewBadge:e,shouldUseSound:n,compactMode:r,promoteMobile:o,singleAccount:a,selectedAccount:c,isInWebview:l},p=>{let{isWebWalletAvailable:m,shouldDisplayNewBadge:g,shouldUseSound:y,compactMode:A,promoteMobile:T,singleAccount:R,selectedAccount:K,isInWebview:O}=f;if(O){let V=rN(p,{singleAccount:R,selectedAccount:K});window.open(V,\"_blank\")}else if(!document.getElementById(Tu)){let V=`${p}&algorand=true`;dN(Tu).innerHTML=`<pera-wallet-connect-modal uri=\"${V}\" is-web-wallet-avaliable=\"${m}\" should-display-new-badge=\"${g}\" should-use-sound=\"${y}\" compact-mode=\"${A}\" promote-mobile=\"${T}\" single-account=\"${R}\" selected-account=\"${K||\"\"}\" is-in-webview=\"${O||!1}\"></pera-wallet-connect-modal>`}}),close:()=>Ys(Tu)};var f}var bie,oie,Rd,Ll,qMe,lN,YMe,Sie,cie,sIe,ns,Rv,lIe,uIe,pIe,nie,hIe,Tu,vm,Iv,rie,ym,W4,gIe,Lie,Nie,gie,xIe,cN,wc,bIe,bm,wIe,Tk,oN=Ve(()=>{u();Tg();$i();pk();bie=br(_g(),1),oie=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:{},Rd=[],Ll=[],qMe=typeof Uint8Array<\"u\"?Uint8Array:Array,lN=!1;YMe={}.toString,Sie=Array.isArray||function(t){return YMe.call(t)==\"[object Array]\"};Vn.TYPED_ARRAY_SUPPORT=oie.TYPED_ARRAY_SUPPORT===void 0||oie.TYPED_ARRAY_SUPPORT,Ak(),Vn.poolSize=8192,Vn._augment=function(t){return t.__proto__=Vn.prototype,t},Vn.from=function(t,e,n){return Aie(null,t,e,n)},Vn.TYPED_ARRAY_SUPPORT&&(Vn.prototype.__proto__=Uint8Array.prototype,Vn.__proto__=Uint8Array),Vn.alloc=function(t,e,n){return(function(r,o,a,c){return kie(o),o<=0?vp(r,o):a!==void 0?typeof c==\"string\"?vp(r,o).fill(a,c):vp(r,o).fill(a):vp(r,o)})(null,t,e,n)},Vn.allocUnsafe=function(t){return sN(null,t)},Vn.allocUnsafeSlow=function(t){return sN(null,t)},Vn.isBuffer=function(t){return t!=null&&(!!t._isBuffer||die(t)||(function(e){return typeof e.readFloatLE==\"function\"&&typeof e.slice==\"function\"&&die(e.slice(0,0))})(t))},Vn.compare=function(t,e){if(!Pd(t)||!Pd(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,a=Math.min(n,r);o<a;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},Vn.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},Vn.concat=function(t,e){if(!Sie(t))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(t.length===0)return Vn.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=Vn.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!Pd(a))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');a.copy(r,o),o+=a.length}return r},Vn.byteLength=Cie,Vn.prototype._isBuffer=!0,Vn.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)Bg(this,e,e+1);return this},Vn.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)Bg(this,e,e+3),Bg(this,e+1,e+2);return this},Vn.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)Bg(this,e,e+7),Bg(this,e+1,e+6),Bg(this,e+2,e+5),Bg(this,e+3,e+4);return this},Vn.prototype.toString=function(){var t=0|this.length;return t===0?\"\":arguments.length===0?_ie(this,0,t):ZMe.apply(this,arguments)},Vn.prototype.equals=function(t){if(!Pd(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||Vn.compare(this,t)===0},Vn.prototype.inspect=function(){var t=\"\";return this.length>0&&(t=this.toString(\"hex\",0,50).match(/.{2}/g).join(\" \"),this.length>50&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},Vn.prototype.compare=function(t,e,n,r,o){if(!Pd(t))throw new TypeError(\"Argument must be a Buffer\");if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(e>>>=0),l=Math.min(a,c),f=this.slice(r,o),p=t.slice(e,n),m=0;m<l;++m)if(f[m]!==p[m]){a=f[m],c=p[m];break}return a<c?-1:c<a?1:0},Vn.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},Vn.prototype.indexOf=function(t,e,n){return aie(this,t,e,n,!0)},Vn.prototype.lastIndexOf=function(t,e,n){return aie(this,t,e,n,!1)},Vn.prototype.write=function(t,e,n,r){if(e===void 0)r=\"utf8\",n=this.length,e=0;else if(n===void 0&&typeof e==\"string\")r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(n)?(n|=0,r===void 0&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var a=!1;;)switch(r){case\"hex\":return XMe(this,t,e,n);case\"utf8\":case\"utf-8\":return JMe(this,t,e,n);case\"ascii\":return Tie(this,t,e,n);case\"latin1\":case\"binary\":return QMe(this,t,e,n);case\"base64\":return eIe(this,t,e,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return tIe(this,t,e,n);default:if(a)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),a=!0}},Vn.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};cie=4096;Vn.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),Vn.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=Vn.prototype;else{var o=e-t;n=new Vn(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},Vn.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||Ua(t,e,this.length);for(var r=this[t],o=1,a=0;++a<e&&(o*=256);)r+=this[t+a]*o;return r},Vn.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||Ua(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},Vn.prototype.readUInt8=function(t,e){return e||Ua(t,1,this.length),this[t]},Vn.prototype.readUInt16LE=function(t,e){return e||Ua(t,2,this.length),this[t]|this[t+1]<<8},Vn.prototype.readUInt16BE=function(t,e){return e||Ua(t,2,this.length),this[t]<<8|this[t+1]},Vn.prototype.readUInt32LE=function(t,e){return e||Ua(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Vn.prototype.readUInt32BE=function(t,e){return e||Ua(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Vn.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||Ua(t,e,this.length);for(var r=this[t],o=1,a=0;++a<e&&(o*=256);)r+=this[t+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},Vn.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||Ua(t,e,this.length);for(var r=e,o=1,a=this[t+--r];r>0&&(o*=256);)a+=this[t+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*e)),a},Vn.prototype.readInt8=function(t,e){return e||Ua(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Vn.prototype.readInt16LE=function(t,e){e||Ua(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Vn.prototype.readInt16BE=function(t,e){e||Ua(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Vn.prototype.readInt32LE=function(t,e){return e||Ua(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Vn.prototype.readInt32BE=function(t,e){return e||Ua(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Vn.prototype.readFloatLE=function(t,e){return e||Ua(t,4,this.length),wk(this,t,!0,23,4)},Vn.prototype.readFloatBE=function(t,e){return e||Ua(t,4,this.length),wk(this,t,!1,23,4)},Vn.prototype.readDoubleLE=function(t,e){return e||Ua(t,8,this.length),wk(this,t,!0,52,8)},Vn.prototype.readDoubleBE=function(t,e){return e||Ua(t,8,this.length),wk(this,t,!1,52,8)},Vn.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||bc(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[e]=255&t;++a<n&&(o*=256);)this[e+a]=t/o&255;return e+n},Vn.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||bc(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+n},Vn.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,1,255,0),Vn.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Vn.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,2,65535,0),Vn.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ek(this,t,e,!0),e+2},Vn.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,2,65535,0),Vn.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ek(this,t,e,!1),e+2},Vn.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,4,4294967295,0),Vn.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Sk(this,t,e,!0),e+4},Vn.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,4,4294967295,0),Vn.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Sk(this,t,e,!1),e+4},Vn.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);bc(this,t,e,n,o-1,-o)}var a=0,c=1,l=0;for(this[e]=255&t;++a<n&&(c*=256);)t<0&&l===0&&this[e+a-1]!==0&&(l=1),this[e+a]=(t/c|0)-l&255;return e+n},Vn.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);bc(this,t,e,n,o-1,-o)}var a=n-1,c=1,l=0;for(this[e+a]=255&t;--a>=0&&(c*=256);)t<0&&l===0&&this[e+a+1]!==0&&(l=1),this[e+a]=(t/c|0)-l&255;return e+n},Vn.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,1,127,-128),Vn.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Vn.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,2,32767,-32768),Vn.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ek(this,t,e,!0),e+2},Vn.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,2,32767,-32768),Vn.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ek(this,t,e,!1),e+2},Vn.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,4,2147483647,-2147483648),Vn.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Sk(this,t,e,!0),e+4},Vn.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||bc(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Vn.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Sk(this,t,e,!1),e+4},Vn.prototype.writeFloatLE=function(t,e,n){return lie(this,t,e,!0,n)},Vn.prototype.writeFloatBE=function(t,e,n){return lie(this,t,e,!1,n)},Vn.prototype.writeDoubleLE=function(t,e,n){return uie(this,t,e,!0,n)},Vn.prototype.writeDoubleBE=function(t,e,n){return uie(this,t,e,!1,n)},Vn.prototype.copy=function(t,e,n,r){if(n||(n=0),r||r===0||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,a=r-n;if(this===t&&n<e&&e<r)for(o=a-1;o>=0;--o)t[o+e]=this[o+n];else if(a<1e3||!Vn.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},Vn.prototype.fill=function(t,e,n,r){if(typeof t==\"string\"){if(typeof e==\"string\"?(r=e,e=0,n=this.length):typeof n==\"string\"&&(r=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(r!==void 0&&typeof r!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof r==\"string\"&&!Vn.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else typeof t==\"number\"&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError(\"Out of range index\");if(n<=e)return this;var a;if(e>>>=0,n=n===void 0?this.length:n>>>0,t||(t=0),typeof t==\"number\")for(a=e;a<n;++a)this[a]=t;else{var c=Pd(t)?t:kk(new Vn(t,r).toString()),l=c.length;for(a=0;a<n-e;++a)this[a+e]=c[a%l]}return this};sIe=/[^+\\\\/0-9A-Za-z-_]/g;ns=class t extends Error{constructor(e,n,...r){super(...r),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.name=\"PeraWalletConnectError\",this.data=e,this.message=n}},Rv=new class{constructor(t){this.listener=void 0,this.channel=t.channel}setupListener({onReceiveMessage:t}){this.close(),this.listener=e=>{if(typeof e.data==\"object\")try{e.data.channel===this.channel&&t(e)}catch(n){console.error(n)}},window.addEventListener(\"message\",this.listener)}sendMessage({message:t,targetWindow:e,origin:n,timeout:r=1e3}){setTimeout((()=>{let o={channel:this.channel,message:t};e.postMessage(o,{targetOrigin:n||\"*\"})}),r)}close(){this.listener&&(window.removeEventListener(\"message\",this.listener),this.listener=void 0)}}({channel:\"pera-web-wallet\"}),lIe=700,uIe=50;pIe=\"perawallet-wc://\",nie=\"https://perawallet.app/download/\",hIe=[77,88];Tu=\"pera-wallet-connect-modal-wrapper\",vm=\"pera-wallet-redirect-modal-wrapper\",Iv=\"pera-wallet-sign-txn-toast-wrapper\",rie=\"pera-wallet-sign-txn-modal-wrapper\",ym=\"pera-wallet-modal\";W4={WALLET:\"PeraWallet.Wallet\",WALLETCONNECT:\"walletconnect\"};gIe=\"https://wc.perawallet.app/config.json\";Lie=416001,Nie=416002,gie={clientToken:\"0dw4Qu6ckPJTQY540Z0sEokH910KUWKjsf312fxNtTcVjw5UUhhlK4s4odcXIoEz\",indexerToken:\"KegWFLYQnBNVeP4oHCX64dObBk8VemzYdNqsnAOIxYQ8aqJLQTYeVDQyZNnx1PZA\",port:443},xIe={mainnet:{algodev:Object.assign(Object.assign({},gie),{clientServer:\"https://node-mainnet.chain.perawallet.app/\",indexerServer:\"https://indexer-mainnet.chain.perawallet.app/\",chainId:Lie})},testnet:{algodev:Object.assign(Object.assign({},gie),{clientServer:\"https://node-testnet.chain.perawallet.app/\",indexerServer:\"https://indexer-testnet.chain.perawallet.app/\",chainId:Nie})}};cN=class{constructor({network:e,providerType:n}){let r=yie(e,n);this.providerType=n,this.client=new xr.Algodv2(r.tokens.client,r.server.client,r.port),this.indexer=new xr.Indexer(r.tokens.indexer,r.server.indexer,r.port)}updateClient(e,n){let r=yie(e,n);this.providerType=n,this.client=new xr.Algodv2(r.tokens.client,r.server.client,r.port),this.indexer=new xr.Indexer(r.tokens.indexer,r.server.indexer,r.port)}};(function(t){t[t.ParseError=-32700]=\"ParseError\",t[t.InvalidRequest=-32600]=\"InvalidRequest\",t[t.MethodNotFound=-32601]=\"MethodNotFound\",t[t.InvalidParams=-32602]=\"InvalidParams\",t[t.InternalError=-32603]=\"InternalError\",t[t.ServerErrorStart=-32e3]=\"ServerErrorStart\",t[t.ServerErrorEnd=-32099]=\"ServerErrorEnd\"})(wc||(wc={}));bIe=0;bm=class t extends Error{constructor(e){super(e.message),this.name=\"JsonRpcError\",this.code=e.code,this.data=e.data,Error.captureStackTrace&&Error.captureStackTrace(this,t)}getMessage(){return`[${this.code}] ${this.message}`}},wIe=new class{constructor(){this.listeners=new Map,this.pendingRequests=new Map,this.isListening=!1}startListening(){this.isListening||(window.addEventListener(\"message\",this.handleMessage.bind(this)),this.isListening=!0)}handleMessage(t){try{let n=typeof t.data==\"string\"?JSON.parse(t.data):t.data;if(!n||typeof n!=\"object\")return;if(e=n,Array.isArray(e)&&e.every((r=>xie(r))))return void this.handleBatchResponse(n);if(xie(n))return void this.handleJsonRpcResponse(n);(function(r){if(!r||typeof r!=\"object\")return!1;let o=r;return o.jsonrpc===\"2.0\"&&typeof o.method==\"string\"&&!(\"id\"in o)})(n)&&this.handleJsonRpcNotification(n)}catch{}var e}handleBatchResponse(t){t.forEach((e=>{this.handleJsonRpcResponse(e)}))}handleJsonRpcResponse(t){let{id:e}=t;if(e===null)return;let n=this.pendingRequests.get(e);if(n){if(clearTimeout(n.timeoutHandle),this.pendingRequests.delete(e),\"error\"in t){let r=(function(o){switch(o.code){case wc.ParseError:return new bm({code:wc.ParseError,message:\"Parse error\",data:o.data});case wc.InvalidRequest:return new bm({code:wc.InvalidRequest,message:\"Invalid Request\",data:o.data});case wc.MethodNotFound:return new bm({code:wc.MethodNotFound,message:o.message||\"Method not found\",data:o.data});case wc.InvalidParams:return new bm({code:wc.InvalidParams,message:\"Invalid params\",data:o.data});case wc.InternalError:return new bm({code:wc.InternalError,message:\"Internal error\",data:o.data});default:return o.code>=wc.ServerErrorStart&&(o.code,wc.ServerErrorEnd),new bm(o)}})(t.error);n.reject(r)}else if(\"result\"in t)try{let r=this.parsePayload(t.result);n.resolve(r)}catch(r){n.reject(r instanceof Error?r:new Error(`Failed to parse result for method ${n.method}`))}}}handleJsonRpcNotification(t){let{method:e,params:n}=t,r=this.listeners.get(e);if(r){let o=this.parsePayload(n);r.forEach((a=>{try{a(o)}catch(c){console.error(`Error in handler for method ${e}:`,c)}}))}}parsePayload(t){if(typeof t==\"string\")try{let e=window.atob(t);return JSON.parse(e)}catch{try{return JSON.parse(t)}catch{return t}}return t}waitForResponse(t,e,n=5e3){return this.startListening(),new Promise(((r,o)=>{let a=this.pendingRequests.get(t);a&&(clearTimeout(a.timeoutHandle),a.reject(new Error(`New request for ${e} (id: ${t}) cancelled previous request`)));let c=setTimeout((()=>{this.pendingRequests.delete(t),o(new Error(`Timeout waiting for response from ${e} (id: ${t})`))}),n);this.pendingRequests.set(t,{resolve:r,reject:o,timeoutHandle:c,method:e})}))}onAction(t,e){this.startListening(),this.listeners.has(t)||this.listeners.set(t,new Set);let n=this.listeners.get(t);return n.add(e),()=>{n.delete(e),n.size===0&&this.listeners.delete(t)}}cleanup(){this.pendingRequests.forEach((t=>{clearTimeout(t.timeoutHandle),t.reject(new Error(\"Message listener cleaned up\"))})),this.pendingRequests.clear(),this.listeners.clear(),this.isListening&&(window.removeEventListener(\"message\",this.handleMessage.bind(this)),this.isListening=!1)}};Tk=class{constructor(e){this._configPromise=null,this._webviewCheckPromise=null,this.bridge=e?.bridge||\"\",this.connector=null,this.shouldShowSignTxnToast=e?.shouldShowSignTxnToast===void 0||e.shouldShowSignTxnToast,this.chainId=e?.chainId,this.isInWebview=!1,this.compactMode=e?.compactMode||!1,this.singleAccount=e?.singleAccount||!1,this.algodClients=new Map,this._configPromise=xm(),this._webviewCheckPromise=this.checkIsInWebview()}get platform(){return(function(){let e=aN(),n=null;return e?.type===\"pera-wallet\"?n=\"mobile\":e?.type===\"pera-wallet-web\"&&(n=\"web\"),n})()}get isConnected(){var e;return this.platform===\"mobile\"?!!this.connector:this.platform===\"web\"&&!!(!((e=aN())===null||e===void 0)&&e.accounts.length)}get isPeraDiscoverBrowser(){return this.checkIsPeraDiscoverBrowser()}checkIsInWebview(){return Nl(this,void 0,void 0,(function*(){if(Ws())try{return(yield(function(e=2e3){return SIe(\"getPublicSettings\",e)})())!==null}catch{return!1}return!1}))}connect(e){return new Promise(((n,r)=>Nl(this,void 0,void 0,(function*(){var o,a,c;try{if(!((o=this.connector)===null||o===void 0)&&o.connected)try{yield this.connector.killSession()}catch{}let{isWebWalletAvailable:l,bridgeURL:f,webWalletURL:p,shouldDisplayNewBadge:m,shouldUseSound:g,promoteMobile:y}=yield(a=this._configPromise)!==null&&a!==void 0?a:xm();this._configPromise=xm(),this.isInWebview=yield(c=this._webviewCheckPromise)!==null&&c!==void 0?c:this.checkIsInWebview(),this._webviewCheckPromise=this.checkIsInWebview();let A=vIe({resolve:n,reject:r,webWalletURL:p,chainId:this.chainId,isCompactMode:this.compactMode});l&&(window.onWebWalletConnect=A),this.connector=new kv({bridge:this.bridge||f||\"https://bridge.walletconnect.org\",qrcodeModal:AIe({isWebWalletAvailable:l,shouldDisplayNewBadge:m,shouldUseSound:g,compactMode:this.compactMode,promoteMobile:y,singleAccount:this.singleAccount,selectedAccount:e?.selectedAccount,isInWebview:this.isInWebview})}),yield this.connector.createSession({chainId:this.chainId||4160}),(function(T,R){var K,O,V,D;let G=document.getElementById(T),ee=(O=(K=G?.querySelector(T.replace(\"-wrapper\",\"\")))===null||K===void 0?void 0:K.shadowRoot)===null||O===void 0?void 0:O.querySelector(`.${ym}`),J=(D=(V=ee?.querySelector(\"pera-wallet-modal-header\"))===null||V===void 0?void 0:V.shadowRoot)===null||D===void 0?void 0:D.getElementById(\"pera-wallet-modal-header-close-button\");J?.addEventListener(\"click\",(()=>{R(),Ys(T)}))})(Tu,(()=>r(new ns({type:\"CONNECT_MODAL_CLOSED\"},\"Connect modal is closed by user\")))),this.connector.on(\"connect\",((T,R)=>{var K,O;T&&r(T),n(((K=this.connector)===null||K===void 0?void 0:K.accounts)||[]),Fie(((O=this.connector)===null||O===void 0?void 0:O.accounts)||[])}))}catch(l){console.log(l),r(new ns({type:\"SESSION_CONNECT\",detail:l},l.message||\"There was an error while connecting to Pera Wallet\"))}}))))}reconnectSession(){return new Promise(((e,n)=>Nl(this,void 0,void 0,(function*(){var r,o;try{let a=aN();if(!a)return void e([]);if(a?.type===\"pera-wallet-web\"){let{isWebWalletAvailable:c}=yield xm();c?e(a.accounts||[]):n(new ns({type:\"SESSION_RECONNECT\",detail:\"Pera Web is not available\"},\"Pera Web is not available\"))}this.isInWebview=yield this.checkIsInWebview(),this.connector&&e(this.connector.accounts||[]),this.bridge=((r=(function(){var c;let l=(c=Y4())===null||c===void 0?void 0:c.getItem(W4.WALLETCONNECT);return l?JSON.parse(l):null})())===null||r===void 0?void 0:r.bridge)||\"\",this.bridge&&(this.connector=new kv({bridge:this.bridge}),e(((o=this.connector)===null||o===void 0?void 0:o.accounts)||[])),this.isConnected||e([])}catch(a){yield this.disconnect(),n(new ns({type:\"SESSION_RECONNECT\",detail:a},a.message||\"There was an error while reconnecting to Pera Wallet\"))}}))))}disconnect(){var e;return Nl(this,void 0,void 0,(function*(){let n;this.isConnected&&this.platform===\"mobile\"&&(n=(e=this.connector)===null||e===void 0?void 0:e.killSession(),n?.then((()=>{this.connector=null}))),yield Oie()}))}verifySignature(e,n,r){try{let{publicKey:o}=xr.decodeAddress(r),a=(function(...c){let l=c.reduce(((m,g)=>m+g.length),0),f=new Uint8Array(l),p=0;for(let m=0;m<c.length;m++)f.set(c[m],p),p+=c[m].length;return f})(hIe,e);return Coe(a,n,o)}catch{return!1}}signTransactionWithMobile(e){return Nl(this,void 0,void 0,(function*(){let n=hie(\"algo_signTxn\",[e]);try{try{let{silent:r}=yield xm(),o=(yield this.connector.sendCustomRequest(n,{forcePushNotification:!r})).filter(Boolean);return typeof o[0]==\"string\"?o.map(Ck):o.map((a=>Uint8Array.from(a)))}catch(r){return yield Promise.reject(new ns({type:\"SIGN_TRANSACTIONS\",detail:r},r.message||\"Failed to sign transaction\"))}}finally{Ys(vm),Ys(Iv)}}))}signTransactionWithWeb(e,n){return new Promise(((r,o)=>mie({signTxnRequestParams:e,webWalletURL:n,method:\"SIGN_TXN\",resolve:r,reject:o})))}signDataWithMobile({data:e,signer:n,chainId:r}){return Nl(this,void 0,void 0,(function*(){let o=hie(\"algo_signData\",e.map((a=>Object.assign(Object.assign({},a),{signer:n,chainId:r}))));try{try{let{silent:a}=yield xm(),c=yield this.connector.sendCustomRequest(o,{forcePushNotification:!a});return typeof c[0]==\"string\"?c.map(Ck):c.map((l=>Uint8Array.from(l)))}catch(a){return yield Promise.reject(new ns({type:\"SIGN_TRANSACTIONS\",detail:a},a.message||\"Failed to sign transaction\"))}}finally{Ys(vm),Ys(Iv)}}))}signDataWithWeb({data:e,signer:n,chainId:r,webWalletURL:o}){return new Promise(((a,c)=>mie({method:\"SIGN_DATA\",signTxnRequestParams:e,signer:n,chainId:r,webWalletURL:o,resolve:a,reject:c})))}checkIsPeraDiscoverBrowser(){return window.navigator.userAgent.includes(\"pera\")}getAlgodClient(e){if(!this.algodClients.has(e)){let n=new cN({network:e,providerType:\"algodev\"});this.algodClients.set(e,n)}return this.algodClients.get(e)}getAccountAuthAddr(e,n){return Nl(this,void 0,void 0,(function*(){try{let r=(function(c){return c===Lie||c===4160?\"mainnet\":c===Nie?\"testnet\":\"mainnet\"})(n),o=this.getAlgodClient(r),a=yield o.client.accountInformation(e).do();return a.authAddr?String(a.authAddr):null}catch{return null}}))}signTransaction(e,n){return Nl(this,void 0,void 0,(function*(){if(this.platform===\"mobile\"&&(Ws()&&!this.isInWebview?fie():!Ws()&&this.shouldShowSignTxnToast&&pie(),!this.connector))throw new Error(\"PeraWalletConnect was not initialized correctly.\");let r=e.flatMap((o=>o.map((a=>(function(c,l){let f;l&&!(c.signers||[]).includes(l)&&(f=[]);let p={txn:(m=c.txn,globalThis.Buffer.from(xr.encodeUnsignedTransaction(m)).toString(\"base64\"))};var m;return Array.isArray(f)&&(p.signers=f),c.authAddr&&(p.authAddr=c.authAddr),c.message&&(p.message=c.message),c.msig&&(p.msig=c.msig),p})(a,n)))));if(this.platform===\"web\"){let{webWalletURL:o}=yield xm();return this.signTransactionWithWeb(r,o)}return this.signTransactionWithMobile(r)}))}signData(e,n,r){return Nl(this,void 0,void 0,(function*(){let o=this.chainId||4160;if(this.platform===\"mobile\"&&(Ws()&&!this.isInWebview?fie():!Ws()&&this.shouldShowSignTxnToast&&pie(),!this.connector))throw new Error(\"PeraWalletConnect was not initialized correctly.\");let a;if(this.platform===\"web\"){let{webWalletURL:c}=yield xm();a=yield this.signDataWithWeb({data:e,signer:n,chainId:o,webWalletURL:c})}else{let c=e.map((l=>Object.assign(Object.assign({},l),{data:globalThis.Buffer.from(l.data).toString(\"base64\")})));a=yield this.signDataWithMobile({data:c,signer:n,chainId:o})}if(r){let c=(yield this.getAccountAuthAddr(n,o))||n;for(let l=0;l<a.length;l++){let f=a[l],p=e[l].data;if(!this.verifySignature(p,f,c))throw new ns({type:\"SIGN_DATA_VERIFICATION_FAILED\"},`Signature verification failed for data item at index ${l}`)}}return a}))}};typeof window<\"u\"&&(window.global=window,window.Buffer=window.Buffer||Vn,Promise.resolve().then(()=>(tie(),GMe)))});var Uie={};Oi(Uie,{PeraWalletConnect:()=>Tk,closePeraWalletSignTxnToast:()=>Die});var qct,zie=Ve(()=>{u();oN();Tg();$i();pk();qct=br(_g(),1)});var Bpe=Qr(dT=>{\"use strict\";u();(function(){function t(ne){if(ne==null)return null;if(typeof ne==\"function\")return ne.$$typeof===_?null:ne.displayName||ne.name||null;if(typeof ne==\"string\")return ne;switch(ne){case K:return\"Fragment\";case V:return\"Profiler\";case O:return\"StrictMode\";case J:return\"Suspense\";case le:return\"SuspenseList\";case S:return\"Activity\"}if(typeof ne==\"object\")switch(typeof ne.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),ne.$$typeof){case R:return\"Portal\";case G:return ne.displayName||\"Context\";case D:return(ne._context.displayName||\"Context\")+\".Consumer\";case ee:var Q=ne.render;return ne=ne.displayName,ne||(ne=Q.displayName||Q.name||\"\",ne=ne!==\"\"?\"ForwardRef(\"+ne+\")\":\"ForwardRef\"),ne;case se:return Q=ne.displayName||null,Q!==null?Q:t(ne.type)||\"Memo\";case te:Q=ne._payload,ne=ne._init;try{return t(ne(Q))}catch{}}return null}function e(ne){return\"\"+ne}function n(ne){try{e(ne);var Q=!1}catch{Q=!0}if(Q){Q=console;var ie=Q.error,ue=typeof Symbol==\"function\"&&Symbol.toStringTag&&ne[Symbol.toStringTag]||ne.constructor.name||\"Object\";return ie.call(Q,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",ue),e(ne)}}function r(ne){if(ne===K)return\"<>\";if(typeof ne==\"object\"&&ne!==null&&ne.$$typeof===te)return\"<...>\";try{var Q=t(ne);return Q?\"<\"+Q+\">\":\"<...>\"}catch{return\"<...>\"}}function o(){var ne=P.A;return ne===null?null:ne.getOwner()}function a(){return Error(\"react-stack-top-frame\")}function c(ne){if(z.call(ne,\"key\")){var Q=Object.getOwnPropertyDescriptor(ne,\"key\").get;if(Q&&Q.isReactWarning)return!1}return ne.key!==void 0}function l(ne,Q){function ie(){U||(U=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",Q))}ie.isReactWarning=!0,Object.defineProperty(ne,\"key\",{get:ie,configurable:!0})}function f(){var ne=t(this.type);return W[ne]||(W[ne]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),ne=this.props.ref,ne!==void 0?ne:null}function p(ne,Q,ie,ue,q,Ee){var we=ie.ref;return ne={$$typeof:T,type:ne,key:Q,props:ie,_owner:ue},(we!==void 0?we:null)!==null?Object.defineProperty(ne,\"ref\",{enumerable:!1,get:f}):Object.defineProperty(ne,\"ref\",{enumerable:!1,value:null}),ne._store={},Object.defineProperty(ne._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ne,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ne,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(ne,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.freeze&&(Object.freeze(ne.props),Object.freeze(ne)),ne}function m(ne,Q,ie,ue,q,Ee){var we=Q.children;if(we!==void 0)if(ue)if(Y(we)){for(ue=0;ue<we.length;ue++)g(we[ue]);Object.freeze&&Object.freeze(we)}else console.error(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else g(we);if(z.call(Q,\"key\")){we=t(ne);var _e=Object.keys(Q).filter(function(k){return k!==\"key\"});ue=0<_e.length?\"{key: someKey, \"+_e.join(\": ..., \")+\": ...}\":\"{key: someKey}\",ye[we+ue]||(_e=0<_e.length?\"{\"+_e.join(\": ..., \")+\": ...}\":\"{}\",console.error(`A props object containing a \"key\" prop is being spread into JSX:\\n  let props = %s;\\n  <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n  let props = %s;\\n  <%s key={someKey} {...props} />`,ue,we,_e,we),ye[we+ue]=!0)}if(we=null,ie!==void 0&&(n(ie),we=\"\"+ie),c(Q)&&(n(Q.key),we=\"\"+Q.key),\"key\"in Q){ie={};for(var B in Q)B!==\"key\"&&(ie[B]=Q[B])}else ie=Q;return we&&l(ie,typeof ne==\"function\"?ne.displayName||ne.name||\"Unknown\":ne),p(ne,we,ie,o(),q,Ee)}function g(ne){y(ne)?ne._store&&(ne._store.validated=1):typeof ne==\"object\"&&ne!==null&&ne.$$typeof===te&&(ne._payload.status===\"fulfilled\"?y(ne._payload.value)&&ne._payload.value._store&&(ne._payload.value._store.validated=1):ne._store&&(ne._store.validated=1))}function y(ne){return typeof ne==\"object\"&&ne!==null&&ne.$$typeof===T}var A=Ww(),T=Symbol.for(\"react.transitional.element\"),R=Symbol.for(\"react.portal\"),K=Symbol.for(\"react.fragment\"),O=Symbol.for(\"react.strict_mode\"),V=Symbol.for(\"react.profiler\"),D=Symbol.for(\"react.consumer\"),G=Symbol.for(\"react.context\"),ee=Symbol.for(\"react.forward_ref\"),J=Symbol.for(\"react.suspense\"),le=Symbol.for(\"react.suspense_list\"),se=Symbol.for(\"react.memo\"),te=Symbol.for(\"react.lazy\"),S=Symbol.for(\"react.activity\"),_=Symbol.for(\"react.client.reference\"),P=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,Y=Array.isArray,L=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(ne){return ne()}};var U,W={},w=A.react_stack_bottom_frame.bind(A,a)(),I=L(r(a)),ye={};dT.Fragment=K,dT.jsx=function(ne,Q,ie){var ue=1e4>P.recentlyCreatedOwnerStacks++;return m(ne,Q,ie,!1,ue?Error(\"react-stack-top-frame\"):w,ue?L(r(ne)):I)},dT.jsxs=function(ne,Q,ie){var ue=1e4>P.recentlyCreatedOwnerStacks++;return m(ne,Q,ie,!0,ue?Error(\"react-stack-top-frame\"):w,ue?L(r(ne)):I)}})()});var xy=Qr((QBt,Dpe)=>{\"use strict\";u();Dpe.exports=Bpe()});var oV,jpe=Ve(()=>{u();oV=\"2.48.11\"});function $pe(t,e){return e?.(t)?t:t&&typeof t==\"object\"&&\"cause\"in t&&t.cause!==void 0?$pe(t.cause,e):e?null:t}var iV,ln,Bo=Ve(()=>{u();jpe();iV={getDocsUrl:({docsBaseUrl:t,docsPath:e=\"\",docsSlug:n})=>e?`${t??\"https://viem.sh\"}${e}${n?`#${n}`:\"\"}`:void 0,version:`viem@${oV}`},ln=class t extends Error{constructor(e,n={}){let r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof t&&n.cause.docsPath||n.docsPath,a=iV.getDocsUrl?.({...n,docsPath:o}),c=[e||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...iV.version?[`Version: ${iV.version}`]:[]].join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=oV}walk(e){return $pe(this,e)}}});var Gm,fT,pT,hT,K8=Ve(()=>{u();Bo();Gm=class extends ln{constructor({max:e,min:n,signed:r,size:o,value:a}){super(`Number \"${a}\" is not in safe ${o?`${o*8}-bit ${r?\"signed\":\"unsigned\"} `:\"\"}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:\"IntegerOutOfRangeError\"})}},fT=class extends ln{constructor(e){super(`Bytes value \"${e}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}},pT=class extends ln{constructor(e){super(`Hex value \"${e}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}},hT=class extends ln{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:\"SizeOverflowError\"})}}});function Aa(t,{strict:e=!0}={}){return!t||typeof t!=\"string\"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith(\"0x\")}var Xd=Ve(()=>{u()});function Yo(t){return Aa(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}var Jd=Ve(()=>{u();Xd()});function ls(t,{dir:e=\"left\"}={}){let n=typeof t==\"string\"?t.replace(\"0x\",\"\"):t,r=0;for(let o=0;o<n.length-1&&n[e===\"left\"?o:n.length-o-1].toString()===\"0\";o++)r++;return n=e===\"left\"?n.slice(r):n.slice(0,n.length-r),typeof t==\"string\"?(n.length===1&&e===\"right\"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}var rx=Ve(()=>{u()});var G8,q8,W8,mT=Ve(()=>{u();Bo();G8=class extends ln{constructor({offset:e,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \"${e}\" is out-of-bounds (size: ${r}).`,{name:\"SliceOffsetOutOfBoundsError\"})}},q8=class extends ln{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:\"SizeExceedsPaddingSizeError\"})}},W8=class extends ln{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${e} ${r} long.`,{name:\"InvalidBytesLengthError\"})}}});function Qd(t,{dir:e,size:n=32}={}){return typeof t==\"string\"?Fp(t,{dir:e,size:n}):aLe(t,{dir:e,size:n})}function Fp(t,{dir:e,size:n=32}={}){if(n===null)return t;let r=t.replace(\"0x\",\"\");if(r.length>n*2)throw new q8({size:Math.ceil(r.length/2),targetSize:n,type:\"hex\"});return`0x${r[e===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function aLe(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new q8({size:t.length,targetSize:n,type:\"bytes\"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let a=e===\"right\";r[a?o:n-o-1]=t[a?o:t.length-o-1]}return r}var Y8=Ve(()=>{u();mT()});function yo(t,e={}){return typeof t==\"number\"||typeof t==\"bigint\"?sr(t,e):typeof t==\"string\"?sV(t,e):typeof t==\"boolean\"?aV(t,e):xi(t,e)}function aV(t,e={}){let n=`0x${Number(t)}`;return typeof e.size==\"number\"?(_c(n,{size:e.size}),Qd(n,{size:e.size})):n}function xi(t,e={}){let n=\"\";for(let o=0;o<t.length;o++)n+=sLe[t[o]];let r=`0x${n}`;return typeof e.size==\"number\"?(_c(r,{size:e.size}),Qd(r,{dir:\"right\",size:e.size})):r}function sr(t,e={}){let{signed:n,size:r}=e,o=BigInt(t),a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof t==\"number\"&&(a=BigInt(Number.MAX_SAFE_INTEGER));let c=typeof a==\"bigint\"&&n?-a-1n:0;if(a&&o>a||o<c){let f=typeof t==\"bigint\"?\"n\":\"\";throw new Gm({max:a?`${a}${f}`:void 0,min:`${c}${f}`,signed:n,size:r,value:`${t}${f}`})}let l=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Qd(l,{size:r}):l}function sV(t,e={}){let n=cLe.encode(t);return xi(n,e)}var sLe,cLe,Ko=Ve(()=>{u();K8();Y8();Is();sLe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\"0\"));cLe=new TextEncoder});function Wl(t,e={}){return typeof t==\"number\"||typeof t==\"bigint\"?dLe(t,e):typeof t==\"boolean\"?uLe(t,e):Aa(t)?ra(t,e):cV(t,e)}function uLe(t,e={}){let n=new Uint8Array(1);return n[0]=Number(t),typeof e.size==\"number\"?(_c(n,{size:e.size}),Qd(n,{size:e.size})):n}function Kpe(t){if(t>=Op.zero&&t<=Op.nine)return t-Op.zero;if(t>=Op.A&&t<=Op.F)return t-(Op.A-10);if(t>=Op.a&&t<=Op.f)return t-(Op.a-10)}function ra(t,e={}){let n=t;e.size&&(_c(n,{size:e.size}),n=Qd(n,{dir:\"right\",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let o=r.length/2,a=new Uint8Array(o);for(let c=0,l=0;c<o;c++){let f=Kpe(r.charCodeAt(l++)),p=Kpe(r.charCodeAt(l++));if(f===void 0||p===void 0)throw new ln(`Invalid byte sequence (\"${r[l-2]}${r[l-1]}\" in \"${r}\").`);a[c]=f*16+p}return a}function dLe(t,e){let n=sr(t,e);return ra(n)}function cV(t,e={}){let n=lLe.encode(t);return typeof e.size==\"number\"?(_c(n,{size:e.size}),Qd(n,{dir:\"right\",size:e.size})):n}var lLe,Op,tc=Ve(()=>{u();Bo();Xd();Y8();Is();Ko();lLe=new TextEncoder;Op={zero:48,nine:57,A:65,F:70,a:97,f:102}});function _c(t,{size:e}){if(Yo(t)>e)throw new hT({givenSize:Yo(t),maxSize:e})}function Io(t,e={}){let{signed:n}=e;e.size&&_c(t,{size:e.size});let r=BigInt(t);if(!n)return r;let o=(t.length-2)/2,a=(1n<<BigInt(o)*8n-1n)-1n;return r<=a?r:r-BigInt(`0x${\"f\".padStart(o*2,\"f\")}`)-1n}function Gpe(t,e={}){let n=t;if(e.size&&(_c(n,{size:e.size}),n=ls(n)),ls(n)===\"0x00\")return!1;if(ls(n)===\"0x01\")return!0;throw new pT(n)}function us(t,e={}){let n=Io(t,e),r=Number(n);if(!Number.isSafeInteger(r))throw new Gm({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${n}n`});return r}var Is=Ve(()=>{u();K8();Jd();rx()});function qm(t,e){return({exclude:n,format:r})=>({exclude:n,format:(o,a)=>{let c=e(o,a);if(n)for(let l of n)delete c[l];return{...c,...r(o,a)}},type:t})}var Z8=Ve(()=>{u()});function ol(t,e){let n={};return typeof t.authorizationList<\"u\"&&(n.authorizationList=mLe(t.authorizationList)),typeof t.accessList<\"u\"&&(n.accessList=t.accessList),typeof t.blobVersionedHashes<\"u\"&&(n.blobVersionedHashes=t.blobVersionedHashes),typeof t.blobs<\"u\"&&(typeof t.blobs[0]!=\"string\"?n.blobs=t.blobs.map(r=>xi(r)):n.blobs=t.blobs),typeof t.data<\"u\"&&(n.data=t.data),t.account&&(n.from=t.account.address),typeof t.from<\"u\"&&(n.from=t.from),typeof t.gas<\"u\"&&(n.gas=sr(t.gas)),typeof t.gasPrice<\"u\"&&(n.gasPrice=sr(t.gasPrice)),typeof t.maxFeePerBlobGas<\"u\"&&(n.maxFeePerBlobGas=sr(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<\"u\"&&(n.maxFeePerGas=sr(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<\"u\"&&(n.maxPriorityFeePerGas=sr(t.maxPriorityFeePerGas)),typeof t.nonce<\"u\"&&(n.nonce=sr(t.nonce)),typeof t.to<\"u\"&&(n.to=t.to),typeof t.type<\"u\"&&(n.type=hLe[t.type]),typeof t.value<\"u\"&&(n.value=sr(t.value)),n}function mLe(t){return t.map(e=>({address:e.address,r:e.r?sr(BigInt(e.r)):e.r,s:e.s?sr(BigInt(e.s)):e.s,chainId:sr(e.chainId),nonce:sr(e.nonce),...typeof e.yParity<\"u\"?{yParity:sr(e.yParity)}:{},...typeof e.v<\"u\"&&typeof e.yParity>\"u\"?{v:sr(e.v)}:{}}))}var hLe,sx,ef=Ve(()=>{u();Ko();Z8();hLe={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"};sx=qm(\"transactionRequest\",ol)});var MFt,IFt,RFt,PFt,BFt,DFt,FFt,OFt,LFt,NFt,UFt,zFt,VFt,HFt,jFt,$Ft,KFt,GFt,qFt,WFt,YFt,ZFt,XFt,JFt,QFt,eOt,tOt,nOt,rOt,oOt,iOt,aOt,sOt,cOt,lOt,uOt,dOt,fOt,pOt,hOt,mOt,gOt,yOt,vOt,xOt,bOt,wOt,EOt,SOt,AOt,kOt,COt,TOt,_Ot,MOt,IOt,ROt,POt,BOt,DOt,FOt,OOt,LOt,NOt,UOt,qpe,zOt,VOt,HOt,jOt,$Ot,KOt,GOt,qOt,WOt,YOt,ZOt,XOt,JOt,QOt,eLt,tLt,nLt,rLt,oLt,iLt,aLt,sLt,cLt,lLt,uLt,dLt,fLt,pLt,hLt,tf,cx=Ve(()=>{u();MFt=2n**(8n-1n)-1n,IFt=2n**(16n-1n)-1n,RFt=2n**(24n-1n)-1n,PFt=2n**(32n-1n)-1n,BFt=2n**(40n-1n)-1n,DFt=2n**(48n-1n)-1n,FFt=2n**(56n-1n)-1n,OFt=2n**(64n-1n)-1n,LFt=2n**(72n-1n)-1n,NFt=2n**(80n-1n)-1n,UFt=2n**(88n-1n)-1n,zFt=2n**(96n-1n)-1n,VFt=2n**(104n-1n)-1n,HFt=2n**(112n-1n)-1n,jFt=2n**(120n-1n)-1n,$Ft=2n**(128n-1n)-1n,KFt=2n**(136n-1n)-1n,GFt=2n**(144n-1n)-1n,qFt=2n**(152n-1n)-1n,WFt=2n**(160n-1n)-1n,YFt=2n**(168n-1n)-1n,ZFt=2n**(176n-1n)-1n,XFt=2n**(184n-1n)-1n,JFt=2n**(192n-1n)-1n,QFt=2n**(200n-1n)-1n,eOt=2n**(208n-1n)-1n,tOt=2n**(216n-1n)-1n,nOt=2n**(224n-1n)-1n,rOt=2n**(232n-1n)-1n,oOt=2n**(240n-1n)-1n,iOt=2n**(248n-1n)-1n,aOt=2n**(256n-1n)-1n,sOt=-(2n**(8n-1n)),cOt=-(2n**(16n-1n)),lOt=-(2n**(24n-1n)),uOt=-(2n**(32n-1n)),dOt=-(2n**(40n-1n)),fOt=-(2n**(48n-1n)),pOt=-(2n**(56n-1n)),hOt=-(2n**(64n-1n)),mOt=-(2n**(72n-1n)),gOt=-(2n**(80n-1n)),yOt=-(2n**(88n-1n)),vOt=-(2n**(96n-1n)),xOt=-(2n**(104n-1n)),bOt=-(2n**(112n-1n)),wOt=-(2n**(120n-1n)),EOt=-(2n**(128n-1n)),SOt=-(2n**(136n-1n)),AOt=-(2n**(144n-1n)),kOt=-(2n**(152n-1n)),COt=-(2n**(160n-1n)),TOt=-(2n**(168n-1n)),_Ot=-(2n**(176n-1n)),MOt=-(2n**(184n-1n)),IOt=-(2n**(192n-1n)),ROt=-(2n**(200n-1n)),POt=-(2n**(208n-1n)),BOt=-(2n**(216n-1n)),DOt=-(2n**(224n-1n)),FOt=-(2n**(232n-1n)),OOt=-(2n**(240n-1n)),LOt=-(2n**(248n-1n)),NOt=-(2n**(256n-1n)),UOt=2n**8n-1n,qpe=2n**16n-1n,zOt=2n**24n-1n,VOt=2n**32n-1n,HOt=2n**40n-1n,jOt=2n**48n-1n,$Ot=2n**56n-1n,KOt=2n**64n-1n,GOt=2n**72n-1n,qOt=2n**80n-1n,WOt=2n**88n-1n,YOt=2n**96n-1n,ZOt=2n**104n-1n,XOt=2n**112n-1n,JOt=2n**120n-1n,QOt=2n**128n-1n,eLt=2n**136n-1n,tLt=2n**144n-1n,nLt=2n**152n-1n,rLt=2n**160n-1n,oLt=2n**168n-1n,iLt=2n**176n-1n,aLt=2n**184n-1n,sLt=2n**192n-1n,cLt=2n**200n-1n,lLt=2n**208n-1n,uLt=2n**216n-1n,dLt=2n**224n-1n,fLt=2n**232n-1n,pLt=2n**240n-1n,hLt=2n**248n-1n,tf=2n**256n-1n});function Yl(t){return typeof t[0]==\"string\"?Wi(t):gLe(t)}function gLe(t){let e=0;for(let o of t)e+=o.length;let n=new Uint8Array(e),r=0;for(let o of t)n.set(o,r),r+=o.length;return n}function Wi(t){return`0x${t.reduce((e,n)=>e+n.replace(\"0x\",\"\"),\"\")}`}var il=Ve(()=>{u()});var X8,ux,gT,hV=Ve(()=>{u();Bo();X8=class extends ln{constructor({offset:e}){super(`Offset \\\\`${e}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},ux=class extends ln{constructor({length:e,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${e}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},gT=class extends ln{constructor({count:e,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${e}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function dx(t,{recursiveReadLimit:e=8192}={}){let n=Object.create(yLe);return n.bytes=t,n.dataView=new DataView(t.buffer??t,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}var yLe,yT=Ve(()=>{u();hV();yLe={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new gT({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new ux({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new X8({offset:t});let e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new X8({offset:t});let e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){let n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){let e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){let e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){let e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();let n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();let t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();let t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();let t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();let t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){let e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}}});var Zpe,Xpe,mV=Ve(()=>{u();Zpe={gwei:9,wei:18},Xpe={ether:-9,wei:9}});function vT(t,e){let n=t.toString(),r=n.startsWith(\"-\");r&&(n=n.slice(1)),n=n.padStart(e,\"0\");let[o,a]=[n.slice(0,n.length-e),n.slice(n.length-e)];return a=a.replace(/(0+)$/,\"\"),`${r?\"-\":\"\"}${o||\"0\"}${a?`.${a}`:\"\"}`}var gV=Ve(()=>{u()});function fx(t,e=\"wei\"){return vT(t,Zpe[e])}var xT=Ve(()=>{u();mV();gV()});function ka(t,e=\"wei\"){return vT(t,Xpe[e])}var px=Ve(()=>{u();mV();gV()});function by(t){let e=Object.entries(t).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=e.reduce((r,[o])=>Math.max(r,o.length),0);return e.map(([r,o])=>`  ${`${r}:`.padEnd(n+1)}  ${o}`).join(`\\n`)}var bT,wT,ET,ST,wy=Ve(()=>{u();xT();px();Bo();bT=class extends ln{constructor({v:e}){super(`Invalid \\\\`v\\\\` value \"${e}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}},wT=class extends ln{constructor({transaction:e}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",by(e),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}},ET=class extends ln{constructor({storageKey:e}){super(`Size for storage key \"${e}\" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:\"InvalidStorageKeySizeError\"})}},ST=class extends ln{constructor(e,{account:n,docsPath:r,chain:o,data:a,gas:c,gasPrice:l,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:m,to:g,value:y}){let A=by({chain:o&&`${o?.name} (id: ${o?.id})`,from:n?.address,to:g,value:typeof y<\"u\"&&`${fx(y)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:a,gas:c,gasPrice:typeof l<\"u\"&&`${ka(l)} gwei`,maxFeePerGas:typeof f<\"u\"&&`${ka(f)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${ka(p)} gwei`,nonce:m});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Request Arguments:\",A].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}});var Ey,Qpe=Ve(()=>{u();Ey=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});function bLe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\"Uint8Array\"}function Sy(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\"positive integer expected, got \"+t)}function nf(t,...e){if(!bLe(t))throw new Error(\"Uint8Array expected\");if(e.length>0&&!e.includes(t.length))throw new Error(\"Uint8Array expected of length \"+e+\", got length=\"+t.length)}function ehe(t){if(typeof t!=\"function\"||typeof t.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.createHasher\");Sy(t.outputLen),Sy(t.blockLen)}function Lp(t,e=!0){if(t.destroyed)throw new Error(\"Hash instance has been destroyed\");if(e&&t.finished)throw new Error(\"Hash#digest() has already been called\")}function AT(t,e){nf(t);let n=e.outputLen;if(t.length<n)throw new Error(\"digestInto() expects output buffer of length at least \"+n)}function the(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Zl(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function kT(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Lu(t,e){return t<<32-e|t>>>e}function ELe(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function SLe(t){for(let e=0;e<t.length;e++)t[e]=ELe(t[e]);return t}function ALe(t){if(typeof t!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(t))}function Ay(t){return typeof t==\"string\"&&(t=ALe(t)),nf(t),t}function nhe(...t){let e=0;for(let r=0;r<t.length;r++){let o=t[r];nf(o),e+=o.length}let n=new Uint8Array(e);for(let r=0,o=0;r<t.length;r++){let a=t[r];n.set(a,o),o+=a.length}return n}function gx(t){let e=r=>t().update(Ay(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function CT(t=32){if(Ey&&typeof Ey.getRandomValues==\"function\")return Ey.getRandomValues(new Uint8Array(t));if(Ey&&typeof Ey.randomBytes==\"function\")return Uint8Array.from(Ey.randomBytes(t));throw new Error(\"crypto.getRandomValues must be defined\")}var wLe,yV,Zm,Xm=Ve(()=>{u();Qpe();wLe=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;yV=wLe?t=>t:SLe;Zm=class{}});function kLe(t,e,n,r){if(typeof t.setBigUint64==\"function\")return t.setBigUint64(e,n,r);let o=BigInt(32),a=BigInt(4294967295),c=Number(n>>o&a),l=Number(n&a),f=r?4:0,p=r?0:4;t.setUint32(e+f,c,r),t.setUint32(e+p,l,r)}function rhe(t,e,n){return t&e^~t&n}function ohe(t,e,n){return t&e^t&n^e&n}var J8,Np,ds,fs,ihe=Ve(()=>{u();Xm();J8=class extends Zm{constructor(e,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(e),this.view=kT(this.buffer)}update(e){Lp(this),e=Ay(e),nf(e);let{view:n,buffer:r,blockLen:o}=this,a=e.length;for(let c=0;c<a;){let l=Math.min(o-this.pos,a-c);if(l===o){let f=kT(e);for(;o<=a-c;c+=o)this.process(f,c);continue}r.set(e.subarray(c,c+l),this.pos),this.pos+=l,c+=l,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Lp(this),AT(e,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:a}=this,{pos:c}=this;n[c++]=128,Zl(this.buffer.subarray(c)),this.padOffset>o-c&&(this.process(r,0),c=0);for(let g=c;g<o;g++)n[g]=0;kLe(r,o-8,BigInt(this.length*8),a),this.process(r,0);let l=kT(e),f=this.outputLen;if(f%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let p=f/4,m=this.get();if(p>m.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let g=0;g<p;g++)l.setUint32(4*g,m[g],a)}digest(){let{buffer:e,outputLen:n}=this;this.digestInto(e);let r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:a,destroyed:c,pos:l}=this;return e.destroyed=c,e.finished=a,e.length=o,e.pos=l,o%n&&e.buffer.set(r),e}clone(){return this._cloneInto()}},Np=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ds=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),fs=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function CLe(t,e=!1){return e?{h:Number(t&TT),l:Number(t>>ahe&TT)}:{h:Number(t>>ahe&TT)|0,l:Number(t&TT)|0}}function _T(t,e=!1){let n=t.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let a=0;a<n;a++){let{h:c,l}=CLe(t[a],e);[r[a],o[a]]=[c,l]}return[r,o]}function rf(t,e,n,r){let o=(e>>>0)+(r>>>0);return{h:t+n+(o/2**32|0)|0,l:o|0}}var TT,ahe,vV,xV,ky,Cy,Q8,eE,she,che,lhe,uhe,dhe,fhe,phe,hhe,mhe,ghe,bV=Ve(()=>{u();TT=BigInt(4294967295),ahe=BigInt(32);vV=(t,e,n)=>t>>>n,xV=(t,e,n)=>t<<32-n|e>>>n,ky=(t,e,n)=>t>>>n|e<<32-n,Cy=(t,e,n)=>t<<32-n|e>>>n,Q8=(t,e,n)=>t<<64-n|e>>>n-32,eE=(t,e,n)=>t>>>n-32|e<<64-n,she=(t,e,n)=>t<<n|e>>>32-n,che=(t,e,n)=>e<<n|t>>>32-n,lhe=(t,e,n)=>e<<n-32|t>>>64-n,uhe=(t,e,n)=>t<<n-32|e>>>64-n;dhe=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),fhe=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,phe=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),hhe=(t,e,n,r,o)=>e+n+r+o+(t/2**32|0)|0,mhe=(t,e,n,r,o)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(o>>>0),ghe=(t,e,n,r,o,a)=>e+n+r+o+a+(t/2**32|0)|0});var _Le,Jm,MT,yhe,MLe,ILe,Qm,e0,IT,wV,Up,vhe,xhe,RT=Ve(()=>{u();ihe();bV();Xm();_Le=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Jm=new Uint32Array(64),MT=class extends J8{constructor(e=32){super(64,e,8,!1),this.A=Np[0]|0,this.B=Np[1]|0,this.C=Np[2]|0,this.D=Np[3]|0,this.E=Np[4]|0,this.F=Np[5]|0,this.G=Np[6]|0,this.H=Np[7]|0}get(){let{A:e,B:n,C:r,D:o,E:a,F:c,G:l,H:f}=this;return[e,n,r,o,a,c,l,f]}set(e,n,r,o,a,c,l,f){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=a|0,this.F=c|0,this.G=l|0,this.H=f|0}process(e,n){for(let g=0;g<16;g++,n+=4)Jm[g]=e.getUint32(n,!1);for(let g=16;g<64;g++){let y=Jm[g-15],A=Jm[g-2],T=Lu(y,7)^Lu(y,18)^y>>>3,R=Lu(A,17)^Lu(A,19)^A>>>10;Jm[g]=R+Jm[g-7]+T+Jm[g-16]|0}let{A:r,B:o,C:a,D:c,E:l,F:f,G:p,H:m}=this;for(let g=0;g<64;g++){let y=Lu(l,6)^Lu(l,11)^Lu(l,25),A=m+y+rhe(l,f,p)+_Le[g]+Jm[g]|0,R=(Lu(r,2)^Lu(r,13)^Lu(r,22))+ohe(r,o,a)|0;m=p,p=f,f=l,l=c+A|0,c=a,a=o,o=r,r=A+R|0}r=r+this.A|0,o=o+this.B|0,a=a+this.C|0,c=c+this.D|0,l=l+this.E|0,f=f+this.F|0,p=p+this.G|0,m=m+this.H|0,this.set(r,o,a,c,l,f,p,m)}roundClean(){Zl(Jm)}destroy(){this.set(0,0,0,0,0,0,0,0),Zl(this.buffer)}},yhe=_T([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(t=>BigInt(t))),MLe=yhe[0],ILe=yhe[1],Qm=new Uint32Array(80),e0=new Uint32Array(80),IT=class extends J8{constructor(e=64){super(128,e,16,!1),this.Ah=fs[0]|0,this.Al=fs[1]|0,this.Bh=fs[2]|0,this.Bl=fs[3]|0,this.Ch=fs[4]|0,this.Cl=fs[5]|0,this.Dh=fs[6]|0,this.Dl=fs[7]|0,this.Eh=fs[8]|0,this.El=fs[9]|0,this.Fh=fs[10]|0,this.Fl=fs[11]|0,this.Gh=fs[12]|0,this.Gl=fs[13]|0,this.Hh=fs[14]|0,this.Hl=fs[15]|0}get(){let{Ah:e,Al:n,Bh:r,Bl:o,Ch:a,Cl:c,Dh:l,Dl:f,Eh:p,El:m,Fh:g,Fl:y,Gh:A,Gl:T,Hh:R,Hl:K}=this;return[e,n,r,o,a,c,l,f,p,m,g,y,A,T,R,K]}set(e,n,r,o,a,c,l,f,p,m,g,y,A,T,R,K){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=a|0,this.Cl=c|0,this.Dh=l|0,this.Dl=f|0,this.Eh=p|0,this.El=m|0,this.Fh=g|0,this.Fl=y|0,this.Gh=A|0,this.Gl=T|0,this.Hh=R|0,this.Hl=K|0}process(e,n){for(let D=0;D<16;D++,n+=4)Qm[D]=e.getUint32(n),e0[D]=e.getUint32(n+=4);for(let D=16;D<80;D++){let G=Qm[D-15]|0,ee=e0[D-15]|0,J=ky(G,ee,1)^ky(G,ee,8)^vV(G,ee,7),le=Cy(G,ee,1)^Cy(G,ee,8)^xV(G,ee,7),se=Qm[D-2]|0,te=e0[D-2]|0,S=ky(se,te,19)^Q8(se,te,61)^vV(se,te,6),_=Cy(se,te,19)^eE(se,te,61)^xV(se,te,6),P=phe(le,_,e0[D-7],e0[D-16]),z=hhe(P,J,S,Qm[D-7],Qm[D-16]);Qm[D]=z|0,e0[D]=P|0}let{Ah:r,Al:o,Bh:a,Bl:c,Ch:l,Cl:f,Dh:p,Dl:m,Eh:g,El:y,Fh:A,Fl:T,Gh:R,Gl:K,Hh:O,Hl:V}=this;for(let D=0;D<80;D++){let G=ky(g,y,14)^ky(g,y,18)^Q8(g,y,41),ee=Cy(g,y,14)^Cy(g,y,18)^eE(g,y,41),J=g&A^~g&R,le=y&T^~y&K,se=mhe(V,ee,le,ILe[D],e0[D]),te=ghe(se,O,G,J,MLe[D],Qm[D]),S=se|0,_=ky(r,o,28)^Q8(r,o,34)^Q8(r,o,39),P=Cy(r,o,28)^eE(r,o,34)^eE(r,o,39),z=r&a^r&l^a&l,Y=o&c^o&f^c&f;O=R|0,V=K|0,R=A|0,K=T|0,A=g|0,T=y|0,{h:g,l:y}=rf(p|0,m|0,te|0,S|0),p=l|0,m=f|0,l=a|0,f=c|0,a=r|0,c=o|0;let L=dhe(S,P,Y);r=fhe(L,te,_,z),o=L|0}({h:r,l:o}=rf(this.Ah|0,this.Al|0,r|0,o|0)),{h:a,l:c}=rf(this.Bh|0,this.Bl|0,a|0,c|0),{h:l,l:f}=rf(this.Ch|0,this.Cl|0,l|0,f|0),{h:p,l:m}=rf(this.Dh|0,this.Dl|0,p|0,m|0),{h:g,l:y}=rf(this.Eh|0,this.El|0,g|0,y|0),{h:A,l:T}=rf(this.Fh|0,this.Fl|0,A|0,T|0),{h:R,l:K}=rf(this.Gh|0,this.Gl|0,R|0,K|0),{h:O,l:V}=rf(this.Hh|0,this.Hl|0,O|0,V|0),this.set(r,o,a,c,l,f,p,m,g,y,A,T,R,K,O,V)}roundClean(){Zl(Qm,e0)}destroy(){Zl(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},wV=class extends IT{constructor(){super(48),this.Ah=ds[0]|0,this.Al=ds[1]|0,this.Bh=ds[2]|0,this.Bl=ds[3]|0,this.Ch=ds[4]|0,this.Cl=ds[5]|0,this.Dh=ds[6]|0,this.Dl=ds[7]|0,this.Eh=ds[8]|0,this.El=ds[9]|0,this.Fh=ds[10]|0,this.Fl=ds[11]|0,this.Gh=ds[12]|0,this.Gl=ds[13]|0,this.Hh=ds[14]|0,this.Hl=ds[15]|0}},Up=gx(()=>new MT),vhe=gx(()=>new IT),xhe=gx(()=>new wV)});var Go,Nu=Ve(()=>{u();Bo();Go=class extends ln{constructor({address:e}){super(`Address \"${e}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}});var Ty,UT,zT,tE,Uu,_y=Ve(()=>{u();Bo();Ty=class extends ln{constructor({blockNumber:e,chain:n,contract:r}){super(`Chain \"${n.name}\" does not support contract \"${r.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract \"${r.name}\" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract \"${r.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}},UT=class extends ln{constructor({chain:e,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${e.id} \\\\u2013 ${e.name}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${e.id} \\\\u2013 ${e.name}`],name:\"ChainMismatchError\"})}},zT=class extends ln{constructor(){super([\"No chain was provided to the request.\",\"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.\"].join(`\\n`),{name:\"ChainNotFoundError\"})}},tE=class extends ln{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}},Uu=class extends ln{constructor({chainId:e}){super(typeof e==\"number\"?`Chain ID \"${e}\" is invalid.`:\"Chain ID is invalid.\",{name:\"InvalidChainIdError\"})}}});var zp,Mc,vx,xx,bx,wx,Ex,Sx,Ax,kx,Xl,of,t0=Ve(()=>{u();px();Bo();zp=class extends ln{constructor({cause:e,message:n}={}){let r=n?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${r?`with reason: ${r}`:\"for an unknown reason\"}.`,{cause:e,name:\"ExecutionRevertedError\"})}};Object.defineProperty(zp,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(zp,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});Mc=class extends ln{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${ka(n)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:\"FeeCapTooHighError\"})}};Object.defineProperty(Mc,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});vx=class extends ln{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${ka(n)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:e,name:\"FeeCapTooLowError\"})}};Object.defineProperty(vx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});xx=class extends ln{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is higher than the next one expected.`,{cause:e,name:\"NonceTooHighError\"})}};Object.defineProperty(xx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});bx=class extends ln{constructor({cause:e,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(`\\n`),{cause:e,name:\"NonceTooLowError\"})}};Object.defineProperty(bx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});wx=class extends ln{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:e,name:\"NonceMaxValueError\"})}};Object.defineProperty(wx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});Ex=class extends ln{constructor({cause:e}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\\n`),{cause:e,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}};Object.defineProperty(Ex,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});Sx=class extends ln{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:\"IntrinsicGasTooHighError\"})}};Object.defineProperty(Sx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});Ax=class extends ln{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction is too low.`,{cause:e,name:\"IntrinsicGasTooLowError\"})}};Object.defineProperty(Ax,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});kx=class extends ln{constructor({cause:e}){super(\"The transaction type is not supported for this chain.\",{cause:e,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(kx,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});Xl=class extends ln{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${n?` = ${ka(n)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${ka(r)} gwei`:\"\"}).`].join(`\\n`),{cause:e,name:\"TipAboveFeeCapError\"})}};Object.defineProperty(Xl,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});of=class extends ln{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:\"UnknownNodeError\"})}}});var af,nE=Ve(()=>{u();af=class extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let n=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,n)),n}set(e,n){if(super.has(e)&&super.delete(e),super.set(e,n),this.maxSize&&this.size>this.maxSize){let r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}}});function zLe(t,e=24){let n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let c=0;c<10;c++)n[c]=t[c]^t[c+10]^t[c+20]^t[c+30]^t[c+40];for(let c=0;c<10;c+=2){let l=(c+8)%10,f=(c+2)%10,p=n[f],m=n[f+1],g=Ehe(p,m,1)^n[l],y=She(p,m,1)^n[l+1];for(let A=0;A<50;A+=10)t[c+A]^=g,t[c+A+1]^=y}let o=t[2],a=t[3];for(let c=0;c<24;c++){let l=khe[c],f=Ehe(o,a,l),p=She(o,a,l),m=Ahe[c];o=t[m],a=t[m+1],t[m]=f,t[m+1]=p}for(let c=0;c<50;c+=10){for(let l=0;l<10;l++)n[l]=t[c+l];for(let l=0;l<10;l++)t[c+l]^=~n[(l+2)%10]&n[(l+4)%10]}t[0]^=NLe[r],t[1]^=ULe[r]}Zl(n)}var BLe,rE,DLe,FLe,OLe,LLe,Ahe,khe,Che,The,NLe,ULe,Ehe,She,EV,VLe,VT,SV=Ve(()=>{u();bV();Xm();BLe=BigInt(0),rE=BigInt(1),DLe=BigInt(2),FLe=BigInt(7),OLe=BigInt(256),LLe=BigInt(113),Ahe=[],khe=[],Che=[];for(let t=0,e=rE,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Ahe.push(2*(5*r+n)),khe.push((t+1)*(t+2)/2%64);let o=BLe;for(let a=0;a<7;a++)e=(e<<rE^(e>>FLe)*LLe)%OLe,e&DLe&&(o^=rE<<(rE<<BigInt(a))-rE);Che.push(o)}The=_T(Che,!0),NLe=The[0],ULe=The[1],Ehe=(t,e,n)=>n>32?lhe(t,e,n):she(t,e,n),She=(t,e,n)=>n>32?uhe(t,e,n):che(t,e,n);EV=class t extends Zm{constructor(e,n,r,o=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=a,Sy(r),!(0<e&&e<200))throw new Error(\"only keccak-f1600 function is supported\");this.state=new Uint8Array(200),this.state32=the(this.state)}clone(){return this._cloneInto()}keccak(){yV(this.state32),zLe(this.state32,this.rounds),yV(this.state32),this.posOut=0,this.pos=0}update(e){Lp(this),e=Ay(e),nf(e);let{blockLen:n,state:r}=this,o=e.length;for(let a=0;a<o;){let c=Math.min(n-this.pos,o-a);for(let l=0;l<c;l++)r[this.pos++]^=e[a++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:n,pos:r,blockLen:o}=this;e[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),e[o-1]^=128,this.keccak()}writeInto(e){Lp(this,!1),nf(e),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,a=e.length;o<a;){this.posOut>=r&&this.keccak();let c=Math.min(r-this.posOut,a-o);e.set(n.subarray(this.posOut,this.posOut+c),o),this.posOut+=c,o+=c}return e}xofInto(e){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(e)}xof(e){return Sy(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(AT(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,Zl(this.state)}_cloneInto(e){let{blockLen:n,suffix:r,outputLen:o,rounds:a,enableXOF:c}=this;return e||(e=new t(n,r,o,c,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=o,e.enableXOF=c,e.destroyed=this.destroyed,e}},VLe=(t,e,n)=>gx(()=>new EV(e,t,n)),VT=VLe(1,136,256/8)});function Jl(t,e){let n=e||\"hex\",r=VT(Aa(t,{strict:!1})?Wl(t):t);return n===\"bytes\"?r:yo(r)}var My=Ve(()=>{u();SV();Xd();tc();Ko()});function Iy(t,e){if(AV.has(`${t}.${e}`))return AV.get(`${t}.${e}`);let n=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),r=Jl(cV(n),\"bytes\"),o=(e?n.substring(`${e}0x`.length):n).split(\"\");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&o[c]&&(o[c]=o[c].toUpperCase()),(r[c>>1]&15)>=8&&o[c+1]&&(o[c+1]=o[c+1].toUpperCase());let a=`0x${o.join(\"\")}`;return AV.set(`${t}.${e}`,a),a}function oE(t,e){if(!Do(t,{strict:!1}))throw new Go({address:t});return Iy(t,e)}var AV,Cx=Ve(()=>{u();Nu();tc();My();nE();Ql();AV=new af(8192)});function Do(t,e){let{strict:n=!0}=e??{},r=`${t}.${n}`;if(kV.has(r))return kV.get(r);let o=HLe.test(t)?t.toLowerCase()===t?!0:n?Iy(t)===t:!0:!1;return kV.set(r,o),o}var HLe,kV,Ql=Ve(()=>{u();nE();Cx();HLe=/^0x[a-fA-F0-9]{40}$/,kV=new af(8192)});function eu(t,e,n,{strict:r}={}){return Aa(t,{strict:!1})?jLe(t,e,n,{strict:r}):CV(t,e,n,{strict:r})}function _he(t,e){if(typeof e==\"number\"&&e>0&&e>Yo(t)-1)throw new G8({offset:e,position:\"start\",size:Yo(t)})}function Mhe(t,e,n){if(typeof e==\"number\"&&typeof n==\"number\"&&Yo(t)!==n-e)throw new G8({offset:n,position:\"end\",size:Yo(t)})}function CV(t,e,n,{strict:r}={}){_he(t,e);let o=t.slice(e,n);return r&&Mhe(o,e,n),o}function jLe(t,e,n,{strict:r}={}){_he(t,e);let o=`0x${t.replace(\"0x\",\"\").slice((e??0)*2,(n??t.length)*2)}`;return r&&Mhe(o,e,n),o}var Ry=Ve(()=>{u();mT();Xd();Jd()});function M1e({blockNumber:t,chain:e,contract:n}){let r=e?.contracts?.[n];if(!r)throw new Ty({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new Ty({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}var I1e=Ve(()=>{u();_y()});function bi(t){return typeof t==\"string\"?{address:t,type:\"json-rpc\"}:t}var tu=Ve(()=>{u()});var tve,u_,nve,d_=Ve(()=>{u();tve={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},u_={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},nve={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});function ps(t,{includeName:e=!1}={}){if(t.type!==\"function\"&&t.type!==\"event\"&&t.type!==\"error\")throw new f_(t.type);return`${t.name}(${sE(t.inputs,{includeName:e})})`}function sE(t,{includeName:e=!1}={}){return t?t.map(n=>vNe(n,{includeName:e})).join(e?\", \":\",\"):\"\"}function vNe(t,{includeName:e}){return t.type.startsWith(\"tuple\")?`(${sE(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:\"\")}var o0=Ve(()=>{u();rc()});var p_,cE,Bx,i0,h_,m_,g_,y_,lE,Dx,v_,x_,zu,Fx,b_,w_,uE,E_,S_,A_,Ox,f_,rc=Ve(()=>{u();o0();Jd();Bo();p_=class extends ln{constructor({docsPath:e}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(`\\n`),{docsPath:e,name:\"AbiConstructorNotFoundError\"})}},cE=class extends ln{constructor({docsPath:e}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(`\\n`),{docsPath:e,name:\"AbiConstructorParamsNotFoundError\"})}},Bx=class extends ln{constructor({data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${sE(n,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=n,this.size=r}},i0=class extends ln{constructor({cause:e}={}){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\',{name:\"AbiDecodingZeroDataError\",cause:e})}},h_=class extends ln{constructor({expectedLength:e,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${n}`].join(`\\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}},m_=class extends ln{constructor({expectedSize:e,value:n}){super(`Size of bytes \"${n}\" (bytes${Yo(n)}) does not match expected size (bytes${e}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}},g_=class extends ln{constructor({expectedLength:e,givenLength:n}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${e}`,`Given length (values): ${n}`].join(`\\n`),{name:\"AbiEncodingLengthMismatchError\"})}},y_=class extends ln{constructor(e,{docsPath:n}){super([`Arguments (\\\\`args\\\\`) were provided to \"${e}\", but \"${e}\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorInputsNotFoundError\"})}},lE=class extends ln{constructor(e,{docsPath:n}={}){super([`Error ${e?`\"${e}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorNotFoundError\"})}},Dx=class extends ln{constructor(e,{docsPath:n,cause:r}){super([`Encoded error signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:n,name:\"AbiErrorSignatureNotFoundError\",cause:r}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}},v_=class extends ln{constructor({docsPath:e}){super(\"Cannot extract event signature from empty topics.\",{docsPath:e,name:\"AbiEventSignatureEmptyTopicsError\"})}},x_=class extends ln{constructor(e,{docsPath:n}){super([`Encoded event signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:n,name:\"AbiEventSignatureNotFoundError\"})}},zu=class extends ln{constructor(e,{docsPath:n}={}){super([`Function ${e?`\"${e}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionNotFoundError\"})}},Fx=class extends ln{constructor(e,{docsPath:n}){super([`Function \"${e}\" does not contain any \\\\`outputs\\\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionOutputsNotFoundError\"})}},b_=class extends ln{constructor(e,{docsPath:n}){super([`Encoded function signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:n,name:\"AbiFunctionSignatureNotFoundError\"})}},w_=class extends ln{constructor(e,n){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\\\`${e.type}\\\\` in \\\\`${ps(e.abiItem)}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${ps(n.abiItem)}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}},uE=class extends ln{constructor({abiItem:e,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${sE(r,{includeName:!0})})`,`Data:   ${n} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=n,this.params=r,this.size=o}},E_=class extends ln{constructor({abiItem:e,param:n}){super([`Expected a topic for indexed event parameter${n.name?` \"${n.name}\"`:\"\"} on event \"${ps(e,{includeName:!0})}\".`].join(`\\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}},S_=class extends ln{constructor(e,{docsPath:n}){super([`Type \"${e}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiEncodingType\"})}},A_=class extends ln{constructor(e,{docsPath:n}){super([`Type \"${e}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiDecodingType\"})}},Ox=class extends ln{constructor(e){super([`Value \"${e}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},f_=class extends ln{constructor(e){super([`\"${e}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}}});function rve(t){return xNe(t)}var xNe,ove=Ve(()=>{u();tc();My();xNe=t=>Jl(Wl(t))});var ive,ave=Ve(()=>{u();ive=\"1.2.3\"});var va,Lx=Ve(()=>{u();ave();va=class t extends Error{constructor(e,n={}){let r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof t&&n.cause.docsPath||n.docsPath,a=[e||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${ive}`].join(`\\n`);super(a),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=e}}});function al(t,e){return t.exec(e)?.groups}var OV,LV,k_,dE=Ve(()=>{u();OV=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,LV=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,k_=/^\\\\(.+?\\\\).*?$/});function C_(t){let e=t.type;if(sve.test(t.type)&&\"components\"in t){e=\"(\";let n=t.components.length;for(let o=0;o<n;o++){let a=t.components[o];e+=C_(a),o<n-1&&(e+=\", \")}let r=al(sve,t.type);return e+=`)${r?.array||\"\"}`,C_({...t,type:e})}return\"indexed\"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}var sve,cve=Ve(()=>{u();dE();sve=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function Vp(t){let e=\"\",n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=C_(o),r!==n-1&&(e+=\", \")}return e}var NV=Ve(()=>{u();cve()});function Dy(t){return t.type===\"function\"?`function ${t.name}(${Vp(t.inputs)})${t.stateMutability&&t.stateMutability!==\"nonpayable\"?` ${t.stateMutability}`:\"\"}${t.outputs?.length?` returns (${Vp(t.outputs)})`:\"\"}`:t.type===\"event\"?`event ${t.name}(${Vp(t.inputs)})`:t.type===\"error\"?`error ${t.name}(${Vp(t.inputs)})`:t.type===\"constructor\"?`constructor(${Vp(t.inputs)})${t.stateMutability===\"payable\"?\" payable\":\"\"}`:t.type===\"fallback\"?`fallback() external${t.stateMutability===\"payable\"?\" payable\":\"\"}`:\"receive() external payable\"}var lve=Ve(()=>{u();NV()});function dve(t){return uve.test(t)}function fve(t){return al(uve,t)}function hve(t){return pve.test(t)}function mve(t){return al(pve,t)}function yve(t){return gve.test(t)}function vve(t){return al(gve,t)}function Nx(t){return xve.test(t)}function bve(t){return al(xve,t)}function Eve(t){return wve.test(t)}function Sve(t){return al(wve,t)}function kve(t){return Ave.test(t)}function Cve(t){return al(Ave,t)}function Tve(t){return bNe.test(t)}var uve,pve,gve,xve,wve,Ave,bNe,UV,_ve,T_,fE=Ve(()=>{u();dE();uve=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;pve=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;gve=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;xve=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;wve=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;Ave=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;bNe=/^receive\\\\(\\\\) external payable$/;UV=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),_ve=new Set([\"indexed\"]),T_=new Set([\"calldata\",\"memory\",\"storage\"])});var __,M_,zV=Ve(()=>{u();Lx();__=class extends va{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}},M_=class extends va{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}});var I_,R_,P_,B_,D_,F_,O_=Ve(()=>{u();Lx();I_=class extends va{constructor({params:e}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}},R_=class extends va{constructor({param:e}){super(\"Invalid ABI parameter.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},P_=class extends va{constructor({param:e,name:n}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`\"${n}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}},B_=class extends va{constructor({param:e,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},D_=class extends va{constructor({param:e,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${r}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},F_=class extends va{constructor({abiParameter:e}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(e,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}});var sf,L_,N_,VV=Ve(()=>{u();Lx();sf=class extends va{constructor({signature:e,type:n}){super(`Invalid ${n} signature.`,{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},L_=class extends va{constructor({signature:e}){super(\"Unknown signature.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},N_=class extends va{constructor({signature:e}){super(\"Invalid struct signature.\",{details:e,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}});var U_,Mve=Ve(()=>{u();Lx();U_=class extends va{constructor({type:e}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${e}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}});var z_,Ive=Ve(()=>{u();Lx();z_=class extends va{constructor({current:e,depth:n}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${e.trim()}\" has too many ${n>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${n}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}});function Rve(t,e,n){let r=\"\";if(n)for(let o of Object.entries(n)){if(!o)continue;let a=\"\";for(let c of o[1])a+=`[${c.type}${c.name?`:${c.name}`:\"\"}]`;r+=`(${o[0]}{${a}})`}return e?`${e}:${t}${r}`:`${t}${r}`}var V_,Pve=Ve(()=>{u();V_=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]])});function Bve(t,e={}){if(yve(t))return wNe(t,e);if(hve(t))return ENe(t,e);if(dve(t))return SNe(t,e);if(Eve(t))return ANe(t,e);if(kve(t))return kNe(t);if(Tve(t))return{type:\"receive\",stateMutability:\"payable\"};throw new L_({signature:t})}function wNe(t,e={}){let n=vve(t);if(!n)throw new sf({signature:t,type:\"function\"});let r=Ic(n.parameters),o=[],a=r.length;for(let l=0;l<a;l++)o.push(Vu(r[l],{modifiers:T_,structs:e,type:\"function\"}));let c=[];if(n.returns){let l=Ic(n.returns),f=l.length;for(let p=0;p<f;p++)c.push(Vu(l[p],{modifiers:T_,structs:e,type:\"function\"}))}return{name:n.name,type:\"function\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o,outputs:c}}function ENe(t,e={}){let n=mve(t);if(!n)throw new sf({signature:t,type:\"event\"});let r=Ic(n.parameters),o=[],a=r.length;for(let c=0;c<a;c++)o.push(Vu(r[c],{modifiers:_ve,structs:e,type:\"event\"}));return{name:n.name,type:\"event\",inputs:o}}function SNe(t,e={}){let n=fve(t);if(!n)throw new sf({signature:t,type:\"error\"});let r=Ic(n.parameters),o=[],a=r.length;for(let c=0;c<a;c++)o.push(Vu(r[c],{structs:e,type:\"error\"}));return{name:n.name,type:\"error\",inputs:o}}function ANe(t,e={}){let n=Sve(t);if(!n)throw new sf({signature:t,type:\"constructor\"});let r=Ic(n.parameters),o=[],a=r.length;for(let c=0;c<a;c++)o.push(Vu(r[c],{structs:e,type:\"constructor\"}));return{type:\"constructor\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o}}function kNe(t){let e=Cve(t);if(!e)throw new sf({signature:t,type:\"fallback\"});return{type:\"fallback\",stateMutability:e.stateMutability??\"nonpayable\"}}function Vu(t,e){let n=Rve(t,e?.type,e?.structs);if(V_.has(n))return V_.get(n);let r=k_.test(t),o=al(r?TNe:CNe,t);if(!o)throw new R_({param:t});if(o.name&&INe(o.name))throw new P_({param:t,name:o.name});let a=o.name?{name:o.name}:{},c=o.modifier===\"indexed\"?{indexed:!0}:{},l=e?.structs??{},f,p={};if(r){f=\"tuple\";let g=Ic(o.type),y=[],A=g.length;for(let T=0;T<A;T++)y.push(Vu(g[T],{structs:l}));p={components:y}}else if(o.type in l)f=\"tuple\",p={components:l[o.type]};else if(_Ne.test(o.type))f=`${o.type}256`;else if(o.type===\"address payable\")f=\"address\";else if(f=o.type,e?.type!==\"struct\"&&!HV(f))throw new M_({type:f});if(o.modifier){if(!e?.modifiers?.has?.(o.modifier))throw new B_({param:t,type:e?.type,modifier:o.modifier});if(T_.has(o.modifier)&&!RNe(f,!!o.array))throw new D_({param:t,type:e?.type,modifier:o.modifier})}let m={type:`${f}${o.array??\"\"}`,...a,...c,...p};return V_.set(n,m),m}function Ic(t,e=[],n=\"\",r=0){let o=t.trim().length;for(let a=0;a<o;a++){let c=t[a],l=t.slice(a+1);switch(c){case\",\":return r===0?Ic(l,[...e,n.trim()]):Ic(l,e,`${n}${c}`,r);case\"(\":return Ic(l,e,`${n}${c}`,r+1);case\")\":return Ic(l,e,`${n}${c}`,r-1);default:return Ic(l,e,`${n}${c}`,r)}}if(n===\"\")return e;if(r!==0)throw new z_({current:n,depth:r});return e.push(n.trim()),e}function HV(t){return t===\"address\"||t===\"bool\"||t===\"function\"||t===\"string\"||OV.test(t)||LV.test(t)}function INe(t){return t===\"address\"||t===\"bool\"||t===\"function\"||t===\"string\"||t===\"tuple\"||OV.test(t)||LV.test(t)||MNe.test(t)}function RNe(t,e){return e||t===\"bytes\"||t===\"string\"||t===\"tuple\"}var CNe,TNe,_Ne,MNe,pE=Ve(()=>{u();dE();zV();O_();VV();Ive();Pve();fE();CNe=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,TNe=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,_Ne=/^u?int$/;MNe=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function H_(t){let e={},n=t.length;for(let c=0;c<n;c++){let l=t[c];if(!Nx(l))continue;let f=bve(l);if(!f)throw new sf({signature:l,type:\"struct\"});let p=f.properties.split(\";\"),m=[],g=p.length;for(let y=0;y<g;y++){let T=p[y].trim();if(!T)continue;let R=Vu(T,{type:\"struct\"});m.push(R)}if(!m.length)throw new N_({signature:l});e[f.name]=m}let r={},o=Object.entries(e),a=o.length;for(let c=0;c<a;c++){let[l,f]=o[c];r[l]=Dve(f,e)}return r}function Dve(t=[],e={},n=new Set){let r=[],o=t.length;for(let a=0;a<o;a++){let c=t[a];if(k_.test(c.type))r.push(c);else{let f=al(PNe,c.type);if(!f?.type)throw new F_({abiParameter:c});let{array:p,type:m}=f;if(m in e){if(n.has(m))throw new U_({type:m});r.push({...c,type:`tuple${p??\"\"}`,components:Dve(e[m],e,new Set([...n,m]))})}else if(HV(m))r.push(c);else throw new __({type:m})}}return r}var PNe,jV=Ve(()=>{u();dE();zV();O_();VV();Mve();fE();pE();PNe=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function j_(t){let e=H_(t),n=[],r=t.length;for(let o=0;o<r;o++){let a=t[o];Nx(a)||n.push(Bve(a,e))}return n}var Fve=Ve(()=>{u();fE();jV();pE()});function $_(t){let e=[];if(typeof t==\"string\"){let n=Ic(t),r=n.length;for(let o=0;o<r;o++)e.push(Vu(n[o],{modifiers:UV}))}else{let n=H_(t),r=t.length;for(let o=0;o<r;o++){let a=t[o];if(Nx(a))continue;let c=Ic(a),l=c.length;for(let f=0;f<l;f++)e.push(Vu(c[f],{modifiers:UV,structs:n}))}}if(e.length===0)throw new I_({params:t});return e}var Ove=Ve(()=>{u();O_();fE();jV();pE();pE()});var hE=Ve(()=>{u();lve();NV();Fve();Ove()});function Nve(t){let e=!0,n=\"\",r=0,o=\"\",a=!1;for(let c=0;c<t.length;c++){let l=t[c];if([\"(\",\")\",\",\"].includes(l)&&(e=!0),l===\"(\"&&r++,l===\")\"&&r--,!!e){if(r===0){if(l===\" \"&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=l,l===\")\"){a=!0;break}continue}if(l===\" \"){t[c-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",e=!1);continue}o+=l,n+=l}}if(!a)throw new ln(\"Unable to normalize signature.\");return o}var Uve=Ve(()=>{u();Bo()});var zve,Vve=Ve(()=>{u();hE();Uve();zve=t=>{let e=typeof t==\"string\"?t:Dy(t);return Nve(e)}});function K_(t){return rve(zve(t))}var $V=Ve(()=>{u();ove();Vve()});var cf,Ux=Ve(()=>{u();Ry();$V();cf=t=>eu(K_(t),0,4)});function Hve(t,e={}){typeof e.size<\"u\"&&_c(t,{size:e.size});let n=xi(t,e);return Io(n,e)}function jve(t,e={}){let n=t;if(typeof e.size<\"u\"&&(_c(n,{size:e.size}),n=ls(n)),n.length>1||n[0]>1)throw new fT(n);return!!n[0]}function lf(t,e={}){typeof e.size<\"u\"&&_c(t,{size:e.size});let n=xi(t,e);return us(n,e)}function $ve(t,e={}){let n=t;return typeof e.size<\"u\"&&(_c(n,{size:e.size}),n=ls(n,{dir:\"right\"})),new TextDecoder().decode(n)}var Kve=Ve(()=>{u();K8();rx();Is();Ko()});var Gve,qve=Ve(()=>{u();Gve=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function uf(t,e){if(t.length!==e.length)throw new g_({expectedLength:t.length,givenLength:e.length});let n=BNe({params:t,values:e}),r=GV(n);return r.length===0?\"0x\":r}function BNe({params:t,values:e}){let n=[];for(let r=0;r<t.length;r++)n.push(KV({param:t[r],value:e[r]}));return n}function KV({param:t,value:e}){let n=G_(t.type);if(n){let[r,o]=n;return FNe(e,{length:r,param:{...t,type:o}})}if(t.type===\"tuple\")return zNe(e,{param:t});if(t.type===\"address\")return DNe(e);if(t.type===\"bool\")return LNe(e);if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\")){let r=t.type.startsWith(\"int\"),[,,o=\"256\"]=Gve.exec(t.type)??[];return NNe(e,{signed:r,size:Number(o)})}if(t.type.startsWith(\"bytes\"))return ONe(e,{param:t});if(t.type===\"string\")return UNe(e);throw new S_(t.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function GV(t){let e=0;for(let a=0;a<t.length;a++){let{dynamic:c,encoded:l}=t[a];c?e+=32:e+=Yo(l)}let n=[],r=[],o=0;for(let a=0;a<t.length;a++){let{dynamic:c,encoded:l}=t[a];c?(n.push(sr(e+o,{size:32})),r.push(l),o+=Yo(l)):n.push(l)}return Yl([...n,...r])}function DNe(t){if(!Do(t))throw new Go({address:t});return{dynamic:!1,encoded:Fp(t.toLowerCase())}}function FNe(t,{length:e,param:n}){let r=e===null;if(!Array.isArray(t))throw new Ox(t);if(!r&&t.length!==e)throw new h_({expectedLength:e,givenLength:t.length,type:`${n.type}[${e}]`});let o=!1,a=[];for(let c=0;c<t.length;c++){let l=KV({param:n,value:t[c]});l.dynamic&&(o=!0),a.push(l)}if(r||o){let c=GV(a);if(r){let l=sr(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?Yl([l,c]):l}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:Yl(a.map(({encoded:c})=>c))}}function ONe(t,{param:e}){let[,n]=e.type.split(\"bytes\"),r=Yo(t);if(!n){let o=t;return r%32!==0&&(o=Fp(o,{dir:\"right\",size:Math.ceil((t.length-2)/2/32)*32})),{dynamic:!0,encoded:Yl([Fp(sr(r,{size:32})),o])}}if(r!==Number.parseInt(n,10))throw new m_({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:Fp(t,{dir:\"right\"})}}function LNe(t){if(typeof t!=\"boolean\")throw new ln(`Invalid boolean value: \"${t}\" (type: ${typeof t}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Fp(aV(t))}}function NNe(t,{signed:e,size:n=256}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(e?1n:0n))-1n,o=e?-r-1n:0n;if(t>r||t<o)throw new Gm({max:r.toString(),min:o.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:sr(t,{size:32,signed:e})}}function UNe(t){let e=sV(t),n=Math.ceil(Yo(e)/32),r=[];for(let o=0;o<n;o++)r.push(Fp(eu(e,o*32,(o+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:Yl([Fp(sr(Yo(e),{size:32})),...r])}}function zNe(t,{param:e}){let n=!1,r=[];for(let o=0;o<e.components.length;o++){let a=e.components[o],c=Array.isArray(t)?o:a.name,l=KV({param:a,value:t[c]});r.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?GV(r):Yl(r.map(({encoded:o})=>o))}}function G_(t){let e=t.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}var Fy=Ve(()=>{u();rc();Nu();Bo();K8();Ql();il();Y8();Jd();Ry();Ko();qve()});function Hp(t,e){let n=typeof e==\"string\"?ra(e):e,r=dx(n);if(Yo(n)===0&&t.length>0)throw new i0;if(Yo(e)&&Yo(e)<32)throw new Bx({data:typeof e==\"string\"?e:xi(e),params:t,size:Yo(e)});let o=0,a=[];for(let c=0;c<t.length;++c){let l=t[c];r.setPosition(o);let[f,p]=zx(r,l,{staticPosition:0});o+=p,a.push(f)}return a}function zx(t,e,{staticPosition:n}){let r=G_(e.type);if(r){let[o,a]=r;return HNe(t,{...e,type:a},{length:o,staticPosition:n})}if(e.type===\"tuple\")return GNe(t,e,{staticPosition:n});if(e.type===\"address\")return VNe(t);if(e.type===\"bool\")return jNe(t);if(e.type.startsWith(\"bytes\"))return $Ne(t,e,{staticPosition:n});if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\"))return KNe(t,e);if(e.type===\"string\")return qNe(t,{staticPosition:n});throw new A_(e.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function VNe(t){let e=t.readBytes(32);return[Iy(xi(CV(e,-20))),32]}function HNe(t,e,{length:n,staticPosition:r}){if(!n){let c=lf(t.readBytes(qV)),l=r+c,f=l+Wve;t.setPosition(l);let p=lf(t.readBytes(Wve)),m=mE(e),g=0,y=[];for(let A=0;A<p;++A){t.setPosition(f+(m?A*32:g));let[T,R]=zx(t,e,{staticPosition:f});g+=R,y.push(T)}return t.setPosition(r+32),[y,32]}if(mE(e)){let c=lf(t.readBytes(qV)),l=r+c,f=[];for(let p=0;p<n;++p){t.setPosition(l+p*32);let[m]=zx(t,e,{staticPosition:l});f.push(m)}return t.setPosition(r+32),[f,32]}let o=0,a=[];for(let c=0;c<n;++c){let[l,f]=zx(t,e,{staticPosition:r+o});o+=f,a.push(l)}return[a,o]}function jNe(t){return[jve(t.readBytes(32),{size:32}),32]}function $Ne(t,e,{staticPosition:n}){let[r,o]=e.type.split(\"bytes\");if(!o){let c=lf(t.readBytes(32));t.setPosition(n+c);let l=lf(t.readBytes(32));if(l===0)return t.setPosition(n+32),[\"0x\",32];let f=t.readBytes(l);return t.setPosition(n+32),[xi(f),32]}return[xi(t.readBytes(Number.parseInt(o,10),32)),32]}function KNe(t,e){let n=e.type.startsWith(\"int\"),r=Number.parseInt(e.type.split(\"int\")[1]||\"256\",10),o=t.readBytes(32);return[r>48?Hve(o,{signed:n}):lf(o,{signed:n}),32]}function GNe(t,e,{staticPosition:n}){let r=e.components.length===0||e.components.some(({name:c})=>!c),o=r?[]:{},a=0;if(mE(e)){let c=lf(t.readBytes(qV)),l=n+c;for(let f=0;f<e.components.length;++f){let p=e.components[f];t.setPosition(l+a);let[m,g]=zx(t,p,{staticPosition:l});a+=g,o[r?f:p?.name]=m}return t.setPosition(n+32),[o,32]}for(let c=0;c<e.components.length;++c){let l=e.components[c],[f,p]=zx(t,l,{staticPosition:n});o[r?c:l?.name]=f,a+=p}return[o,a]}function qNe(t,{staticPosition:e}){let n=lf(t.readBytes(32)),r=e+n;t.setPosition(r);let o=lf(t.readBytes(32));if(o===0)return t.setPosition(e+32),[\"\",32];let a=t.readBytes(o,32),c=$ve(ls(a));return t.setPosition(e+32),[c,32]}function mE(t){let{type:e}=t;if(e===\"string\"||e===\"bytes\"||e.endsWith(\"[]\"))return!0;if(e===\"tuple\")return t.components?.some(mE);let n=G_(t.type);return!!(n&&mE({...t,type:n[1]}))}var Wve,qV,gE=Ve(()=>{u();rc();Cx();yT();Jd();Ry();rx();Kve();tc();Ko();Fy();Wve=32,qV=32});function q_(t){let{abi:e,data:n,cause:r}=t,o=eu(n,0,4);if(o===\"0x\")throw new i0({cause:r});let c=[...e||[],u_,nve].find(l=>l.type===\"error\"&&o===cf(ps(l)));if(!c)throw new Dx(o,{docsPath:\"/docs/contract/decodeErrorResult\",cause:r});return{abiItem:c,args:\"inputs\"in c&&c.inputs&&c.inputs.length>0?Hp(c.inputs,eu(n,4)):void 0,errorName:c.name}}var WV=Ve(()=>{u();d_();rc();Ry();Ux();gE();o0()});var jp,yE=Ve(()=>{u();jp=(t,e,n)=>JSON.stringify(t,(r,o)=>{let a=typeof o==\"bigint\"?o.toString():o;return typeof e==\"function\"?e(r,a):a},n)});function YV({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if(\"name\"in t&&\"inputs\"in t&&t.inputs)return`${n?t.name:\"\"}(${t.inputs.map((o,a)=>`${r&&o.name?`${o.name}: `:\"\"}${typeof e[a]==\"object\"?jp(e[a]):e[a]}`).join(\", \")})`}var Yve=Ve(()=>{u();yE()});var Vx,W_=Ve(()=>{u();$V();Vx=K_});function df(t){let{abi:e,args:n=[],name:r}=t,o=Aa(r,{strict:!1}),a=e.filter(l=>o?l.type===\"function\"?cf(l)===r:l.type===\"event\"?Vx(l)===r:!1:\"name\"in l&&l.name===r);if(a.length===0)return;if(a.length===1)return a[0];let c;for(let l of a){if(!(\"inputs\"in l))continue;if(!n||n.length===0){if(!l.inputs||l.inputs.length===0)return l;continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==n.length)continue;if(n.every((p,m)=>{let g=\"inputs\"in l&&l.inputs[m];return g?ZV(p,g):!1})){if(c&&\"inputs\"in c&&c.inputs){let p=Zve(l.inputs,c.inputs,n);if(p)throw new w_({abiItem:l,type:p[0]},{abiItem:c,type:p[1]})}c=l}}return c||a[0]}function ZV(t,e){let n=typeof t,r=e.type;switch(r){case\"address\":return Do(t,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in e?Object.values(e.components).every((o,a)=>n===\"object\"&&ZV(Object.values(t)[a],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||t instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(t)&&t.every(o=>ZV(o,{...e,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function Zve(t,e,n){for(let r in t){let o=t[r],a=e[r];if(o.type===\"tuple\"&&a.type===\"tuple\"&&\"components\"in o&&\"components\"in a)return Zve(o.components,a.components,n[r]);let c=[o.type,a.type];if(c.includes(\"address\")&&c.includes(\"bytes20\")?!0:c.includes(\"address\")&&c.includes(\"string\")?Do(n[r],{strict:!1}):c.includes(\"address\")&&c.includes(\"bytes\")?Do(n[r],{strict:!1}):!1)return c}}var Hx=Ve(()=>{u();rc();Xd();Ql();W_();Ux()});function Xve(t){return t.reduce((e,{slot:n,value:r})=>`${e}        ${n}: ${r}\\n`,\"\")}function Jve(t){return t.reduce((e,{address:n,...r})=>{let o=`${e}    ${n}:\\n`;return r.nonce&&(o+=`      nonce: ${r.nonce}\\n`),r.balance&&(o+=`      balance: ${r.balance}\\n`),r.code&&(o+=`      code: ${r.code}\\n`),r.state&&(o+=`      state:\\n`,o+=Xve(r.state)),r.stateDiff&&(o+=`      stateDiff:\\n`,o+=Xve(r.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var Y_,Z_,XV=Ve(()=>{u();Bo();Y_=class extends ln{constructor({address:e}){super(`State for account \"${e}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},Z_=class extends ln{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}});var Qve,jx,X_=Ve(()=>{u();Qve=t=>t,jx=t=>{try{let e=new URL(t);return!e.username&&!e.password?t:(e.username=\"\",e.password=\"\",e.toString())}catch{return t}}});var $x,Kx,J_,Q_,eM,Gx,vE=Ve(()=>{u();tu();d_();WV();o0();Yve();Hx();xT();px();rc();Bo();XV();wy();X_();$x=class extends ln{constructor(e,{account:n,docsPath:r,chain:o,data:a,gas:c,gasPrice:l,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:m,to:g,value:y,stateOverride:A}){let T=n?bi(n):void 0,R=by({from:T?.address,to:g,value:typeof y<\"u\"&&`${fx(y)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:a,gas:c,gasPrice:typeof l<\"u\"&&`${ka(l)} gwei`,maxFeePerGas:typeof f<\"u\"&&`${ka(f)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${ka(p)} gwei`,nonce:m});A&&(R+=`\\n${Jve(A)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Raw Call Arguments:\",R].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}},Kx=class extends ln{constructor(e,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:c,sender:l}){let f=df({abi:n,args:r,name:c}),p=f?YV({abiItem:f,args:r,includeFunctionName:!1,includeName:!1}):void 0,m=f?ps(f,{includeName:!0}):void 0,g=by({address:o&&Qve(o),function:m,args:p&&p!==\"()\"&&`${[...Array(c?.length??0).keys()].map(()=>\" \").join(\"\")}${p}`,sender:l});super(e.shortMessage||`An unknown error occurred while executing the contract function \"${c}\".`,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],g&&\"Contract Call:\",g].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=e,this.contractAddress=o,this.functionName=c,this.sender=l}},J_=class extends ln{constructor({abi:e,data:n,functionName:r,message:o,cause:a}){let c,l,f,p;if(n&&n!==\"0x\")try{l=q_({abi:e,data:n,cause:a});let{abiItem:g,errorName:y,args:A}=l;if(y===\"Error\")p=A[0];else if(y===\"Panic\"){let[T]=A;p=tve[T]}else{let T=g?ps(g,{includeName:!0}):void 0,R=g&&A?YV({abiItem:g,args:A,includeFunctionName:!1,includeName:!1}):void 0;f=[T?`Error: ${T}`:\"\",R&&R!==\"()\"?`       ${[...Array(y?.length??0).keys()].map(()=>\" \").join(\"\")}${R}`:\"\"]}}catch(g){c=g}else o&&(p=o);let m;c instanceof Dx&&(m=c.signature,f=[`Unable to decode signature \"${m}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${m}.`]),super(p&&p!==\"execution reverted\"||m?[`The contract function \"${r}\" reverted with the following ${m?\"signature\":\"reason\"}:`,p||m].join(`\\n`):`The contract function \"${r}\" reverted.`,{cause:c??a,metaMessages:f,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=n,this.reason=p,this.signature=m}},Q_=class extends ln{constructor({functionName:e,cause:n}){super(`The contract function \"${e}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${e}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\",cause:n})}},eM=class extends ln{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory \"${e}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}},Gx=class extends ln{constructor({data:e,message:n}){super(n||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}});var xE,qx,tM=Ve(()=>{u();yE();Bo();X_();xE=class extends ln{constructor({body:e,cause:n,details:r,headers:o,status:a,url:c}){super(\"HTTP request failed.\",{cause:n,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${jx(c)}`,e&&`Request body: ${jp(e)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=a,this.url=c}},qx=class extends ln{constructor({body:e,error:n,url:r}){super(\"RPC Request failed.\",{cause:n,details:n.message,metaMessages:[`URL: ${jx(r)}`,`Request body: ${jp(e)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=r}}});var WNe,oc,Rs,JV,QV,eH,tH,bE,wE,nH,rH,oH,iH,aH,sH,cH,lH,uH,dH,fH,pH,hH,mH,gH,yH,vH,xH,bH,wH,exe=Ve(()=>{u();Bo();tM();WNe=-1,oc=class extends ln{constructor(e,{code:n,docsPath:r,metaMessages:o,name:a,shortMessage:c}){super(c,{cause:e,docsPath:r,metaMessages:o||e?.metaMessages,name:a||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof qx?e.code:n??WNe}},Rs=class extends oc{constructor(e,n){super(e,n),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},JV=class t extends oc{constructor(e){super(e,{code:t.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}};Object.defineProperty(JV,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});QV=class t extends oc{constructor(e){super(e,{code:t.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(QV,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});eH=class t extends oc{constructor(e,{method:n}={}){super(e,{code:t.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${n?` \"${n}\"`:\"\"} does not exist / is not available.`})}};Object.defineProperty(eH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});tH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(tH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});bE=class t extends oc{constructor(e){super(e,{code:t.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(bE,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});wE=class t extends oc{constructor(e){super(e,{code:t.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(wE,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});nH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}};Object.defineProperty(nH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});rH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(rH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});oH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(oH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});iH=class t extends oc{constructor(e,{method:n}={}){super(e,{code:t.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${n?` \"${n}\"`:\"\"} is not supported.`})}};Object.defineProperty(iH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});aH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}};Object.defineProperty(aH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});sH=class t extends oc{constructor(e){super(e,{code:t.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(sH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});cH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(cH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});lH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}};Object.defineProperty(lH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});uH=class t extends Rs{constructor(e,{method:n}={}){super(e,{code:t.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${n?` \" ${n}\"`:\"\"}.`})}};Object.defineProperty(uH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});dH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(dH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});fH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}};Object.defineProperty(fH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});pH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(pH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});hH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}};Object.defineProperty(hH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});mH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}};Object.defineProperty(mH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});gH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}};Object.defineProperty(gH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});yH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}};Object.defineProperty(yH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});vH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}};Object.defineProperty(vH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});xH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}};Object.defineProperty(xH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});bH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}};Object.defineProperty(bH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});wH=class t extends Rs{constructor(e){super(e,{code:t.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}};Object.defineProperty(wH,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3})});function Wx(t,e){let n=(t.details||\"\").toLowerCase(),r=t instanceof ln?t.walk(o=>o?.code===zp.code):t;return r instanceof ln?new zp({cause:t,message:r.details}):zp.nodeMessage.test(n)?new zp({cause:t,message:t.details}):Mc.nodeMessage.test(n)?new Mc({cause:t,maxFeePerGas:e?.maxFeePerGas}):vx.nodeMessage.test(n)?new vx({cause:t,maxFeePerGas:e?.maxFeePerGas}):xx.nodeMessage.test(n)?new xx({cause:t,nonce:e?.nonce}):bx.nodeMessage.test(n)?new bx({cause:t,nonce:e?.nonce}):wx.nodeMessage.test(n)?new wx({cause:t,nonce:e?.nonce}):Ex.nodeMessage.test(n)?new Ex({cause:t}):Sx.nodeMessage.test(n)?new Sx({cause:t,gas:e?.gas}):Ax.nodeMessage.test(n)?new Ax({cause:t,gas:e?.gas}):kx.nodeMessage.test(n)?new kx({cause:t}):Xl.nodeMessage.test(n)?new Xl({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new of({cause:t})}var nM=Ve(()=>{u();Bo();t0()});function rM(t,{docsPath:e,...n}){let r=(()=>{let o=Wx(t,n);return o instanceof of?t:o})();return new $x(r,{docsPath:e,...n})}var EH=Ve(()=>{u();vE();t0();nM()});function ff(t,{format:e}){if(!e)return{};let n={};function r(a){let c=Object.keys(a);for(let l of c)l in t&&(n[l]=t[l]),a[l]&&typeof a[l]==\"object\"&&!Array.isArray(a[l])&&r(a[l])}let o=e(t||{});return r(o),n}var Yx=Ve(()=>{u()});function nu(t){let{account:e,maxFeePerGas:n,maxPriorityFeePerGas:r,to:o}=t,a=e?bi(e):void 0;if(a&&!Do(a.address))throw new Go({address:a.address});if(o&&!Do(o))throw new Go({address:o});if(n&&n>tf)throw new Mc({maxFeePerGas:n});if(r&&n&&r>n)throw new Xl({maxFeePerGas:n,maxPriorityFeePerGas:r})}var Oy=Ve(()=>{u();tu();cx();Nu();t0();Ql()});function Xx(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\"Uint8Array\"}function Kp(t){if(!Xx(t))throw new Error(\"Uint8Array expected\")}function Jx(t,e){if(typeof e!=\"boolean\")throw new Error(t+\" boolean expected, got \"+e)}function RE(t){let e=t.toString(16);return e.length&1?\"0\"+e:e}function Z6e(t){if(typeof t!=\"string\")throw new Error(\"hex string expected, got \"+typeof t);return t===\"\"?_H:BigInt(\"0x\"+t)}function Qx(t){if(Kp(t),X6e)return t.toHex();let e=\"\";for(let n=0;n<t.length;n++)e+=tUe[t[n]];return e}function W6e(t){if(t>=$p._0&&t<=$p._9)return t-$p._0;if(t>=$p.A&&t<=$p.F)return t-($p.A-10);if(t>=$p.a&&t<=$p.f)return t-($p.a-10)}function PE(t){if(typeof t!=\"string\")throw new Error(\"hex string expected, got \"+typeof t);if(X6e)return Uint8Array.fromHex(t);let e=t.length,n=e/2;if(e%2)throw new Error(\"hex string expected, got unpadded hex of length \"+e);let r=new Uint8Array(n);for(let o=0,a=0;o<n;o++,a+=2){let c=W6e(t.charCodeAt(a)),l=W6e(t.charCodeAt(a+1));if(c===void 0||l===void 0){let f=t[a]+t[a+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+f+\\'\" at index \\'+a)}r[o]=c*16+l}return r}function Rc(t){return Z6e(Qx(t))}function MH(t){return Kp(t),Z6e(Qx(Uint8Array.from(t).reverse()))}function pf(t,e){return PE(t.toString(16).padStart(e*2,\"0\"))}function IH(t,e){return pf(t,e).reverse()}function xa(t,e,n){let r;if(typeof e==\"string\")try{r=PE(e)}catch(a){throw new Error(t+\" must be hex string or Uint8Array, cause: \"+a)}else if(Xx(e))r=Uint8Array.from(e);else throw new Error(t+\" must be hex string or Uint8Array\");let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(t+\" of length \"+n+\" expected, got \"+o);return r}function ic(...t){let e=0;for(let r=0;r<t.length;r++){let o=t[r];Kp(o),e+=o.length}let n=new Uint8Array(e);for(let r=0,o=0;r<t.length;r++){let a=t[r];n.set(a,o),o+=a.length}return n}function J6e(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return n===0}function yM(t){if(typeof t!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(t))}function Ly(t,e,n){return kH(t)&&kH(e)&&kH(n)&&e<=t&&t<n}function Gp(t,e,n,r){if(!Ly(e,n,r))throw new Error(\"expected valid \"+t+\": \"+n+\" <= n < \"+r+\", got \"+e)}function Q6e(t){let e;for(e=0;t>_H;t>>=TH,e+=1);return e}function e5e(t,e,n){if(typeof t!=\"number\"||t<2)throw new Error(\"hashLen must be a number\");if(typeof e!=\"number\"||e<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=CH(t),o=CH(t),a=0,c=()=>{r.fill(1),o.fill(0),a=0},l=(...g)=>n(o,r,...g),f=(g=CH(0))=>{o=l(Y6e([0]),g),r=l(),g.length!==0&&(o=l(Y6e([1]),g),r=l())},p=()=>{if(a++>=1e3)throw new Error(\"drbg: tried 1000 values\");let g=0,y=[];for(;g<e;){r=l();let A=r.slice();y.push(A),g+=r.length}return ic(...y)};return(g,y)=>{c(),f(g);let A;for(;!(A=y(p()));)f();return c(),A}}function qp(t,e,n={}){let r=(o,a,c)=>{let l=nUe[a];if(typeof l!=\"function\")throw new Error(\"invalid validator function\");let f=t[o];if(!(c&&f===void 0)&&!l(f,t))throw new Error(\"param \"+String(o)+\" is invalid. Expected \"+a+\", got \"+f)};for(let[o,a]of Object.entries(e))r(o,a,!1);for(let[o,a]of Object.entries(n))r(o,a,!0);return t}function RH(t){let e=new WeakMap;return(n,...r)=>{let o=e.get(n);if(o!==void 0)return o;let a=t(n,...r);return e.set(n,a),a}}var _H,TH,X6e,tUe,$p,kH,Ny,CH,Y6e,nUe,Uy=Ve(()=>{u();_H=BigInt(0),TH=BigInt(1);X6e=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",tUe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\"0\"));$p={_0:48,_9:57,A:65,F:70,a:97,f:102};kH=t=>typeof t==\"bigint\"&&_H<=t;Ny=t=>(TH<<BigInt(t))-TH,CH=t=>new Uint8Array(t),Y6e=t=>Uint8Array.from(t);nUe={bigint:t=>typeof t==\"bigint\",function:t=>typeof t==\"function\",boolean:t=>typeof t==\"boolean\",string:t=>typeof t==\"string\",stringOrUint8Array:t=>typeof t==\"string\"||Xx(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t==\"function\"&&Number.isSafeInteger(t.outputLen)}});var t5e,n5e=Ve(()=>{u();t5e=\"0.1.1\"});function r5e(){return t5e}var o5e=Ve(()=>{u();n5e()});function i5e(t,e){return e?.(t)?t:t&&typeof t==\"object\"&&\"cause\"in t&&t.cause?i5e(t.cause,e):e?null:t}var ir,Ca=Ve(()=>{u();o5e();ir=class t extends Error{static setStaticOptions(e){t.prototype.docsOrigin=e.docsOrigin,t.prototype.showVersion=e.showVersion,t.prototype.version=e.version}constructor(e,n={}){let r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&\"details\"in n.cause&&typeof n.cause.details==\"string\"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof t&&n.cause.docsPath||n.docsPath,a=n.docsOrigin??t.prototype.docsOrigin,c=`${a}${o??\"\"}`,l=!!(n.version??t.prototype.showVersion),f=n.version??t.prototype.version,p=[e||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o||l?[\"\",r?`Details: ${r}`:void 0,o?`See: ${c}`:void 0,l?`Version: ${f}`:void 0]:[]].filter(m=>typeof m==\"string\").join(`\\n`);super(p,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsOrigin\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"showVersion\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.cause=n.cause,this.details=r,this.docs=c,this.docsOrigin=a,this.docsPath=o,this.shortMessage=e,this.showVersion=l,this.version=f}walk(e){return i5e(this,e)}};Object.defineProperty(ir,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${r5e()}`}});ir.setStaticOptions(ir.defaultStaticOptions)});function a0(t,e){if(ru(t)>e)throw new vM({givenSize:ru(t),maxSize:e})}function a5e(t,e){if(typeof e==\"number\"&&e>0&&e>ru(t)-1)throw new BE({offset:e,position:\"start\",size:ru(t)})}function s5e(t,e,n){if(typeof e==\"number\"&&typeof n==\"number\"&&ru(t)!==n-e)throw new BE({offset:n,position:\"end\",size:ru(t)})}function PH(t){if(t>=Wp.zero&&t<=Wp.nine)return t-Wp.zero;if(t>=Wp.A&&t<=Wp.F)return t-(Wp.A-10);if(t>=Wp.a&&t<=Wp.f)return t-(Wp.a-10)}function c5e(t,e={}){let{dir:n,size:r=32}=e;if(r===0)return t;if(t.length>r)throw new xM({size:t.length,targetSize:r,type:\"Bytes\"});let o=new Uint8Array(r);for(let a=0;a<r;a++){let c=n===\"right\";o[c?a:r-a-1]=t[c?a:t.length-a-1]}return o}function BH(t,e={}){let{dir:n=\"left\"}=e,r=t,o=0;for(let a=0;a<r.length-1&&r[n===\"left\"?a:r.length-a-1].toString()===\"0\";a++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r}var Wp,DH=Ve(()=>{u();ou();Wp={zero:48,nine:57,A:65,F:70,a:97,f:102}});function eb(t,e){if(Oo(t)>e)throw new bM({givenSize:Oo(t),maxSize:e})}function u5e(t,e){if(typeof e==\"number\"&&e>0&&e>Oo(t)-1)throw new DE({offset:e,position:\"start\",size:Oo(t)})}function d5e(t,e,n){if(typeof e==\"number\"&&typeof n==\"number\"&&Oo(t)!==n-e)throw new DE({offset:n,position:\"end\",size:Oo(t)})}function FH(t,e={}){let{dir:n,size:r=32}=e;if(r===0)return t;let o=t.replace(\"0x\",\"\");if(o.length>r*2)throw new wM({size:Math.ceil(o.length/2),targetSize:r,type:\"Hex\"});return`0x${o[n===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function f5e(t,e={}){let{dir:n=\"left\"}=e,r=t.replace(\"0x\",\"\"),o=0;for(let a=0;a<r.length-1&&r[n===\"left\"?a:r.length-a-1].toString()===\"0\";a++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r===\"0\"?\"0x\":n===\"right\"&&r.length%2===1?`0x${r}0`:`0x${r}`}var OH=Ve(()=>{u();Uo()});function ju(t,e,n){return JSON.stringify(t,(r,o)=>typeof e==\"function\"?e(r,o):typeof o==\"bigint\"?o.toString()+rUe:o,n)}var rUe,tb=Ve(()=>{u();rUe=\"#__bigint\"});function LH(t,e={}){let{strict:n=!1}=e;if(!t)throw new EM(t);if(typeof t!=\"string\")throw new EM(t);if(n&&!/^0x[0-9a-fA-F]*$/.test(t))throw new SM(t);if(!t.startsWith(\"0x\"))throw new SM(t)}function Ao(...t){return`0x${t.reduce((e,n)=>e+n.replace(\"0x\",\"\"),\"\")}`}function s0(t){return t instanceof Uint8Array?Zo(t):Array.isArray(t)?Zo(new Uint8Array(t)):t}function kM(t,e={}){let n=`0x${Number(t)}`;return typeof e.size==\"number\"?(eb(n,e.size),Yp(n,e.size)):n}function Zo(t,e={}){let n=\"\";for(let o=0;o<t.length;o++)n+=iUe[t[o]];let r=`0x${n}`;return typeof e.size==\"number\"?(eb(r,e.size),hf(r,e.size)):r}function En(t,e={}){let{signed:n,size:r}=e,o=BigInt(t),a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof t==\"number\"&&(a=BigInt(Number.MAX_SAFE_INTEGER));let c=typeof a==\"bigint\"&&n?-a-1n:0;if(a&&o>a||o<c){let p=typeof t==\"bigint\"?\"n\":\"\";throw new OE({max:a?`${a}${p}`:void 0,min:`${c}${p}`,signed:n,size:r,value:`${t}${p}`})}let f=`0x${(n&&o<0?BigInt.asUintN(r*8,BigInt(o)):o).toString(16)}`;return r?Yp(f,r):f}function $u(t,e={}){return Zo(oUe.encode(t),e)}function Yp(t,e){return FH(t,{dir:\"left\",size:e})}function hf(t,e){return FH(t,{dir:\"right\",size:e})}function h5e(t){return Zo(m5e(t))}function $r(t,e,n,r={}){let{strict:o}=r;u5e(t,e);let a=`0x${t.replace(\"0x\",\"\").slice((e??0)*2,(n??t.length)*2)}`;return o&&d5e(a,e,n),a}function Oo(t){return Math.ceil((t.length-2)/2)}function LE(t){return f5e(t,{dir:\"left\"})}function To(t,e={}){let{signed:n}=e;e.size&&eb(t,e.size);let r=BigInt(t);if(!n)return r;let o=(t.length-2)/2,a=(1n<<BigInt(o)*8n)-1n,c=a>>1n;return r<=c?r:r-a-1n}function sl(t,e={}){let{signed:n,size:r}=e;return Number(!n&&!r?t:To(t,e))}function NH(t,e={}){let{size:n}=e,r=Pc(t);return n&&(a0(r,n),r=UH(r)),new TextDecoder().decode(r)}function ac(t,e={}){let{strict:n=!1}=e;try{return LH(t,{strict:n}),!0}catch{return!1}}var oUe,iUe,OE,EM,SM,AM,bM,DE,wM,Uo=Ve(()=>{u();ou();Ca();DH();OH();tb();oUe=new TextEncoder,iUe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\"0\"));OE=class extends ir{constructor({max:e,min:n,signed:r,size:o,value:a}){super(`Number \\\\`${a}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${r?\" signed\":\" unsigned\"} integer range ${e?`(\\\\`${n}\\\\` to \\\\`${e}\\\\`)`:`(above \\\\`${n}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},EM=class extends ir{constructor(e){super(`Value \\\\`${typeof e==\"object\"?ju(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},SM=class extends ir{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},AM=class extends ir{constructor(e){super(`Hex value \\\\`\"${e}\"\\\\` is an odd length (${e.length-2} nibbles).`,{metaMessages:[\"It must be an even length.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidLengthError\"})}},bM=class extends ir{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},DE=class extends ir{constructor({offset:e,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},wM=class extends ir{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function cUe(t){if(!(t instanceof Uint8Array)){if(!t)throw new nb(t);if(typeof t!=\"object\")throw new nb(t);if(!(\"BYTES_PER_ELEMENT\"in t))throw new nb(t);if(t.BYTES_PER_ELEMENT!==1||t.constructor.name!==\"Uint8Array\")throw new nb(t)}}function g5e(...t){let e=0;for(let r of t)e+=r.length;let n=new Uint8Array(e);for(let r=0,o=0;r<t.length;r++){let a=t[r];n.set(a,o),o+=a.length}return n}function NE(t){return t instanceof Uint8Array?t:typeof t==\"string\"?Pc(t):lUe(t)}function lUe(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function Pc(t,e={}){let{size:n}=e,r=t;n&&(eb(t,n),r=hf(t,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let a=o.length/2,c=new Uint8Array(a);for(let l=0,f=0;l<a;l++){let p=PH(o.charCodeAt(f++)),m=PH(o.charCodeAt(f++));if(p===void 0||m===void 0)throw new ir(`Invalid byte sequence (\"${o[f-2]}${o[f-1]}\" in \"${o}\").`);c[l]=p<<4|m}return c}function CM(t,e={}){let{size:n}=e,r=sUe.encode(t);return typeof n==\"number\"?(a0(r,n),uUe(r,n)):r}function y5e(t,e){return J6e(t,e)}function uUe(t,e){return c5e(t,{dir:\"right\",size:e})}function m5e(t){return crypto.getRandomValues(new Uint8Array(t))}function ru(t){return t.length}function v5e(t,e,n,r={}){let{strict:o}=r;a5e(t,e);let a=t.slice(e,n);return o&&s5e(a,e,n),a}function x5e(t,e={}){let{size:n}=e;typeof n<\"u\"&&a0(t,n);let r=Zo(t,e);return To(r,e)}function b5e(t,e={}){let{size:n}=e,r=t;if(typeof n<\"u\"&&(a0(r,n),r=VH(r)),r.length>1||r[0]>1)throw new zH(r);return!!r[0]}function mf(t,e={}){let{size:n}=e;typeof n<\"u\"&&a0(t,n);let r=Zo(t,e);return sl(r,e)}function w5e(t,e={}){let{size:n}=e,r=t;return typeof n<\"u\"&&(a0(r,n),r=UH(r)),aUe.decode(r)}function VH(t){return BH(t,{dir:\"left\"})}function UH(t){return BH(t,{dir:\"right\"})}function E5e(t){try{return cUe(t),!0}catch{return!1}}var aUe,sUe,zH,nb,vM,BE,xM,ou=Ve(()=>{u();Uy();Ca();Uo();DH();OH();tb();aUe=new TextDecoder,sUe=new TextEncoder;zH=class extends ir{constructor(e){super(`Bytes value \\\\`${e}\\\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}},nb=class extends ir{constructor(e){super(`Value \\\\`${typeof e==\"object\"?ju(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},vM=class extends ir{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},BE=class extends ir{constructor({offset:e,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},xM=class extends ir{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});var MM,HH,S5e=Ve(()=>{u();Xm();MM=class extends Zm{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,ehe(e);let r=Ay(n);if(this.iHash=e.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<a.length;c++)a[c]^=54;this.iHash.update(a),this.oHash=e.create();for(let c=0;c<a.length;c++)a[c]^=106;this.oHash.update(a),Zl(a)}update(e){return Lp(this),this.iHash.update(e),this}digestInto(e){Lp(this),nf(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:n,iHash:r,finished:o,destroyed:a,blockLen:c,outputLen:l}=this;return e=e,e.finished=o,e.destroyed=a,e.blockLen=c,e.outputLen=l,e.oHash=n._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},HH=(t,e,n)=>new MM(t,e).update(n).digest();HH.create=(t,e)=>new MM(t,e)});function oa(t,e){let n=t%e;return n>=cc?n:e+n}function ll(t,e,n){let r=t;for(;e-- >cc;)r*=r,r%=n;return r}function FM(t,e){if(t===cc)throw new Error(\"invert: expected non-zero number\");if(e<=cc)throw new Error(\"invert: expected positive modulus, got \"+e);let n=oa(t,e),r=e,o=cc,a=Bs,c=Bs,l=cc;for(;n!==cc;){let p=r/n,m=r%n,g=o-c*p,y=a-l*p;r=n,n=m,o=c,a=l,c=g,l=y}if(r!==Bs)throw new Error(\"invert: does not exist\");return oa(o,e)}function O5e(t,e){let n=(t.ORDER+Bs)/B5e,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error(\"Cannot find square root\");return r}function SUe(t,e){let n=(t.ORDER-D5e)/F5e,r=t.mul(e,Ky),o=t.pow(r,n),a=t.mul(e,o),c=t.mul(t.mul(a,Ky),o),l=t.mul(a,t.sub(c,t.ONE));if(!t.eql(t.sqr(l),e))throw new Error(\"Cannot find square root\");return l}function AUe(t){if(t<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let e=t-Bs,n=0;for(;e%Ky===cc;)e/=Ky,n++;let r=Ky,o=Zp(t);for(;P5e(o,r)===1;)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return O5e;let a=o.pow(r,e),c=(e+Bs)/Ky;return function(f,p){if(f.is0(p))return p;if(P5e(f,p)!==1)throw new Error(\"Cannot find square root\");let m=n,g=f.mul(f.ONE,a),y=f.pow(p,e),A=f.pow(p,c);for(;!f.eql(y,f.ONE);){if(f.is0(y))return f.ZERO;let T=1,R=f.sqr(y);for(;!f.eql(R,f.ONE);)if(T++,R=f.sqr(R),T===m)throw new Error(\"Cannot find square root\");let K=Bs<<BigInt(m-T-1),O=f.pow(g,K);m=T,g=f.sqr(O),y=f.mul(y,g),A=f.mul(A,O)}return A}}function kUe(t){return t%B5e===EUe?O5e:t%F5e===D5e?SUe:AUe(t)}function OM(t){let e={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"},n=CUe.reduce((r,o)=>(r[o]=\"function\",r),e);return qp(t,n)}function TUe(t,e,n){if(n<cc)throw new Error(\"invalid exponent, negatives unsupported\");if(n===cc)return t.ONE;if(n===Bs)return e;let r=t.ONE,o=e;for(;n>cc;)n&Bs&&(r=t.mul(r,o)),o=t.sqr(o),n>>=Bs;return r}function rb(t,e,n=!1){let r=new Array(e.length).fill(n?t.ZERO:void 0),o=e.reduce((c,l,f)=>t.is0(l)?c:(r[f]=c,t.mul(c,l)),t.ONE),a=t.inv(o);return e.reduceRight((c,l,f)=>t.is0(l)?c:(r[f]=t.mul(c,r[f]),t.mul(c,l)),a),r}function P5e(t,e){let n=(t.ORDER-Bs)/Ky,r=t.pow(e,n),o=t.eql(r,t.ONE),a=t.eql(r,t.ZERO),c=t.eql(r,t.neg(t.ONE));if(!o&&!a&&!c)throw new Error(\"invalid Legendre symbol result\");return o?1:a?0:-1}function QH(t,e){e!==void 0&&Sy(e);let n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Zp(t,e,n=!1,r={}){if(t<=cc)throw new Error(\"invalid field: expected ORDER > 0, got \"+t);let{nBitLength:o,nByteLength:a}=QH(t,e);if(a>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let c,l=Object.freeze({ORDER:t,isLE:n,BITS:o,BYTES:a,MASK:Ny(o),ZERO:cc,ONE:Bs,create:f=>oa(f,t),isValid:f=>{if(typeof f!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof f);return cc<=f&&f<t},is0:f=>f===cc,isOdd:f=>(f&Bs)===Bs,neg:f=>oa(-f,t),eql:(f,p)=>f===p,sqr:f=>oa(f*f,t),add:(f,p)=>oa(f+p,t),sub:(f,p)=>oa(f-p,t),mul:(f,p)=>oa(f*p,t),pow:(f,p)=>TUe(l,f,p),div:(f,p)=>oa(f*FM(p,t),t),sqrN:f=>f*f,addN:(f,p)=>f+p,subN:(f,p)=>f-p,mulN:(f,p)=>f*p,inv:f=>FM(f,t),sqrt:r.sqrt||(f=>(c||(c=kUe(t)),c(l,f))),toBytes:f=>n?IH(f,a):pf(f,a),fromBytes:f=>{if(f.length!==a)throw new Error(\"Field.fromBytes: expected \"+a+\" bytes, got \"+f.length);return n?MH(f):Rc(f)},invertBatch:f=>rb(l,f),cmov:(f,p,m)=>m?p:f});return Object.freeze(l)}function L5e(t){if(typeof t!=\"bigint\")throw new Error(\"field order must be bigint\");let e=t.toString(2).length;return Math.ceil(e/8)}function ej(t){let e=L5e(t);return e+Math.ceil(e/2)}function N5e(t,e,n=!1){let r=t.length,o=L5e(e),a=ej(e);if(r<16||r<a||r>1024)throw new Error(\"expected \"+a+\"-1024 bytes of input, got \"+r);let c=n?MH(t):Rc(t),l=oa(c,e-Bs)+Bs;return n?IH(l,o):pf(l,o)}var cc,Bs,Ky,EUe,B5e,D5e,F5e,CUe,ib=Ve(()=>{u();Xm();Uy();cc=BigInt(0),Bs=BigInt(1),Ky=BigInt(2),EUe=BigInt(3),B5e=BigInt(4),D5e=BigInt(5),F5e=BigInt(8);CUe=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function c0(t,e){if(jE(t),jE(e),t<0||t>=1<<8*e)throw new Error(\"invalid I2OSP input: \"+t);let n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=t&255,t>>>=8;return new Uint8Array(n)}function MUe(t,e){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r]^e[r];return n}function jE(t){if(!Number.isSafeInteger(t))throw new Error(\"number expected\")}function IUe(t,e,n,r){Kp(t),Kp(e),jE(n),e.length>255&&(e=r(ic(yM(\"H2C-OVERSIZE-DST-\"),e)));let{outputLen:o,blockLen:a}=r,c=Math.ceil(n/o);if(n>65535||c>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let l=ic(e,c0(e.length,1)),f=c0(0,a),p=c0(n,2),m=new Array(c),g=r(ic(f,t,p,c0(0,1),l));m[0]=r(ic(g,c0(1,1),l));for(let A=1;A<=c;A++){let T=[MUe(g,m[A-1]),c0(A+1,1),l];m[A]=r(ic(...T))}return ic(...m).slice(0,n)}function RUe(t,e,n,r,o){if(Kp(t),Kp(e),jE(n),e.length>255){let a=Math.ceil(2*r/8);e=o.create({dkLen:a}).update(yM(\"H2C-OVERSIZE-DST-\")).update(e).digest()}if(n>65535||e.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:n}).update(t).update(c0(n,2)).update(e).update(c0(e.length,1)).digest()}function U5e(t,e,n){qp(n,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:r,k:o,m:a,hash:c,expand:l,DST:f}=n;Kp(t),jE(e);let p=typeof f==\"string\"?yM(f):f,m=r.toString(2).length,g=Math.ceil((m+o)/8),y=e*a*g,A;if(l===\"xmd\")A=IUe(t,p,y,c);else if(l===\"xof\")A=RUe(t,p,y,o,c);else if(l===\"_internal_pass\")A=t;else throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');let T=new Array(e);for(let R=0;R<e;R++){let K=new Array(a);for(let O=0;O<a;O++){let V=g*(O+R*a),D=A.subarray(V,V+g);K[O]=oa(_Ue(D),r)}T[R]=K}return T}function z5e(t,e){let n=e.map(r=>Array.from(r).reverse());return(r,o)=>{let[a,c,l,f]=n.map(g=>g.reduce((y,A)=>t.add(t.mul(y,r),A))),[p,m]=rb(t,[c,f],!0);return r=t.mul(a,p),o=t.mul(o,t.mul(l,m)),{x:r,y:o}}}function V5e(t,e,n){if(typeof e!=\"function\")throw new Error(\"mapToCurve() must be defined\");function r(a){return t.fromAffine(e(a))}function o(a){let c=a.clearCofactor();return c.equals(t.ZERO)?t.ZERO:(c.assertValidity(),c)}return{defaults:n,hashToCurve(a,c){let l=U5e(a,2,{...n,DST:n.DST,...c}),f=r(l[0]),p=r(l[1]);return o(f.add(p))},encodeToCurve(a,c){let l=U5e(a,1,{...n,DST:n.encodeDST,...c});return o(r(l[0]))},mapToCurve(a){if(!Array.isArray(a))throw new Error(\"expected array of bigints\");for(let c of a)if(typeof c!=\"bigint\")throw new Error(\"expected array of bigints\");return o(r(a))}}}var _Ue,H5e=Ve(()=>{u();ib();Uy();_Ue=Rc});function tj(t,e){let n=e.negate();return t?n:e}function K5e(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\"invalid window size, expected [1..\"+e+\"], got W=\"+t)}function nj(t,e){K5e(t,e);let n=Math.ceil(e/t)+1,r=2**(t-1),o=2**t,a=Ny(t),c=BigInt(t);return{windows:n,windowSize:r,mask:a,maxNumber:o,shiftBy:c}}function $5e(t,e,n){let{windowSize:r,mask:o,maxNumber:a,shiftBy:c}=n,l=Number(t&o),f=t>>c;l>r&&(l-=a,f+=ij);let p=e*r,m=p+Math.abs(l)-1,g=l===0,y=l<0,A=e%2!==0;return{nextN:f,offset:m,isZero:g,isNeg:y,isNegF:A,offsetF:p}}function PUe(t,e){if(!Array.isArray(t))throw new Error(\"array expected\");t.forEach((n,r)=>{if(!(n instanceof e))throw new Error(\"invalid point at index \"+r)})}function BUe(t,e){if(!Array.isArray(t))throw new Error(\"array of scalars expected\");t.forEach((n,r)=>{if(!e.isValid(n))throw new Error(\"invalid scalar at index \"+r)})}function oj(t){return G5e.get(t)||1}function q5e(t,e){return{constTimeNegate:tj,hasPrecomputes(n){return oj(n)!==1},unsafeLadder(n,r,o=t.ZERO){let a=n;for(;r>j5e;)r&ij&&(o=o.add(a)),a=a.double(),r>>=ij;return o},precomputeWindow(n,r){let{windows:o,windowSize:a}=nj(r,e),c=[],l=n,f=l;for(let p=0;p<o;p++){f=l,c.push(f);for(let m=1;m<a;m++)f=f.add(l),c.push(f);l=f.double()}return c},wNAF(n,r,o){let a=t.ZERO,c=t.BASE,l=nj(n,e);for(let f=0;f<l.windows;f++){let{nextN:p,offset:m,isZero:g,isNeg:y,isNegF:A,offsetF:T}=$5e(o,f,l);o=p,g?c=c.add(tj(A,r[T])):a=a.add(tj(y,r[m]))}return{p:a,f:c}},wNAFUnsafe(n,r,o,a=t.ZERO){let c=nj(n,e);for(let l=0;l<c.windows&&o!==j5e;l++){let{nextN:f,offset:p,isZero:m,isNeg:g}=$5e(o,l,c);if(o=f,!m){let y=r[p];a=a.add(g?y.negate():y)}}return a},getPrecomputes(n,r,o){let a=rj.get(r);return a||(a=this.precomputeWindow(r,n),n!==1&&rj.set(r,o(a))),a},wNAFCached(n,r,o){let a=oj(n);return this.wNAF(a,this.getPrecomputes(a,n,o),r)},wNAFCachedUnsafe(n,r,o,a){let c=oj(n);return c===1?this.unsafeLadder(n,r,a):this.wNAFUnsafe(c,this.getPrecomputes(c,n,o),r,a)},setWindowSize(n,r){K5e(r,e),G5e.set(n,r),rj.delete(n)}}}function W5e(t,e,n,r){PUe(n,t),BUe(r,e);let o=n.length,a=r.length;if(o!==a)throw new Error(\"arrays of points and scalars must have equal length\");let c=t.ZERO,l=Q6e(BigInt(o)),f=1;l>12?f=l-3:l>4?f=l-2:l>0&&(f=2);let p=Ny(f),m=new Array(Number(p)+1).fill(c),g=Math.floor((e.BITS-1)/f)*f,y=c;for(let A=g;A>=0;A-=f){m.fill(c);for(let R=0;R<a;R++){let K=r[R],O=Number(K>>BigInt(A)&p);m[O]=m[O].add(n[R])}let T=c;for(let R=m.length-1,K=c;R>0;R--)K=K.add(m[R]),T=T.add(K);if(y=y.add(T),A!==0)for(let R=0;R<f;R++)y=y.double()}return y}function aj(t){return OM(t.Fp),qp(t,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...QH(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}var j5e,ij,rj,G5e,Y5e=Ve(()=>{u();ib();Uy();j5e=BigInt(0),ij=BigInt(1);rj=new WeakMap,G5e=new WeakMap});function Z5e(t){t.lowS!==void 0&&Jx(\"lowS\",t.lowS),t.prehash!==void 0&&Jx(\"prehash\",t.prehash)}function DUe(t){let e=aj(t);qp(e,{a:\"field\",b:\"field\"},{allowInfinityPoint:\"boolean\",allowedPrivateKeyLengths:\"array\",clearCofactor:\"function\",fromBytes:\"function\",isTorsionFree:\"function\",toBytes:\"function\",wrapPrivateKey:\"boolean\"});let{endo:n,Fp:r,a:o}=e;if(n){if(!r.eql(o,r.ZERO))throw new Error(\"invalid endo: CURVE.a must be 0\");if(typeof n!=\"object\"||typeof n.beta!=\"bigint\"||typeof n.splitScalar!=\"function\")throw new Error(\\'invalid endo: expected \"beta\": bigint and \"splitScalar\": function\\')}return Object.freeze({...e})}function sj(t,e){return Qx(pf(t,e))}function FUe(t){let e=DUe(t),{Fp:n}=e,r=Zp(e.n,e.nBitLength),o=e.toBytes||((D,G,ee)=>{let J=G.toAffine();return ic(Uint8Array.from([4]),n.toBytes(J.x),n.toBytes(J.y))}),a=e.fromBytes||(D=>{let G=D.subarray(1),ee=n.fromBytes(G.subarray(0,n.BYTES)),J=n.fromBytes(G.subarray(n.BYTES,2*n.BYTES));return{x:ee,y:J}});function c(D){let{a:G,b:ee}=e,J=n.sqr(D),le=n.mul(J,D);return n.add(n.add(le,n.mul(D,G)),ee)}function l(D,G){let ee=n.sqr(G),J=c(D);return n.eql(ee,J)}if(!l(e.Gx,e.Gy))throw new Error(\"bad curve params: generator point\");let f=n.mul(n.pow(e.a,$E),lj),p=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(f,p)))throw new Error(\"bad curve params: a or b\");function m(D){return Ly(D,ii,e.n)}function g(D){let{allowedPrivateKeyLengths:G,nByteLength:ee,wrapPrivateKey:J,n:le}=e;if(G&&typeof D!=\"bigint\"){if(Xx(D)&&(D=Qx(D)),typeof D!=\"string\"||!G.includes(D.length))throw new Error(\"invalid private key\");D=D.padStart(ee*2,\"0\")}let se;try{se=typeof D==\"bigint\"?D:Rc(xa(\"private key\",D,ee))}catch{throw new Error(\"invalid private key, expected hex or \"+ee+\" bytes, got \"+typeof D)}return J&&(se=oa(se,le)),Gp(\"private key\",se,ii,le),se}function y(D){if(!(D instanceof R))throw new Error(\"ProjectivePoint expected\")}let A=RH((D,G)=>{let{px:ee,py:J,pz:le}=D;if(n.eql(le,n.ONE))return{x:ee,y:J};let se=D.is0();G==null&&(G=se?n.ONE:n.inv(le));let te=n.mul(ee,G),S=n.mul(J,G),_=n.mul(le,G);if(se)return{x:n.ZERO,y:n.ZERO};if(!n.eql(_,n.ONE))throw new Error(\"invZ was invalid\");return{x:te,y:S}}),T=RH(D=>{if(D.is0()){if(e.allowInfinityPoint&&!n.is0(D.py))return;throw new Error(\"bad point: ZERO\")}let{x:G,y:ee}=D.toAffine();if(!n.isValid(G)||!n.isValid(ee))throw new Error(\"bad point: x or y not FE\");if(!l(G,ee))throw new Error(\"bad point: equation left != right\");if(!D.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class R{constructor(G,ee,J){if(G==null||!n.isValid(G))throw new Error(\"x required\");if(ee==null||!n.isValid(ee)||n.is0(ee))throw new Error(\"y required\");if(J==null||!n.isValid(J))throw new Error(\"z required\");this.px=G,this.py=ee,this.pz=J,Object.freeze(this)}static fromAffine(G){let{x:ee,y:J}=G||{};if(!G||!n.isValid(ee)||!n.isValid(J))throw new Error(\"invalid affine point\");if(G instanceof R)throw new Error(\"projective point not allowed\");let le=se=>n.eql(se,n.ZERO);return le(ee)&&le(J)?R.ZERO:new R(ee,J,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(G){let ee=rb(n,G.map(J=>J.pz));return G.map((J,le)=>J.toAffine(ee[le])).map(R.fromAffine)}static fromHex(G){let ee=R.fromAffine(a(xa(\"pointHex\",G)));return ee.assertValidity(),ee}static fromPrivateKey(G){return R.BASE.multiply(g(G))}static msm(G,ee){return W5e(R,r,G,ee)}_setWindowSize(G){V.setWindowSize(this,G)}assertValidity(){T(this)}hasEvenY(){let{y:G}=this.toAffine();if(n.isOdd)return!n.isOdd(G);throw new Error(\"Field doesn\\'t support isOdd\")}equals(G){y(G);let{px:ee,py:J,pz:le}=this,{px:se,py:te,pz:S}=G,_=n.eql(n.mul(ee,S),n.mul(se,le)),P=n.eql(n.mul(J,S),n.mul(te,le));return _&&P}negate(){return new R(this.px,n.neg(this.py),this.pz)}double(){let{a:G,b:ee}=e,J=n.mul(ee,$E),{px:le,py:se,pz:te}=this,S=n.ZERO,_=n.ZERO,P=n.ZERO,z=n.mul(le,le),Y=n.mul(se,se),L=n.mul(te,te),U=n.mul(le,se);return U=n.add(U,U),P=n.mul(le,te),P=n.add(P,P),S=n.mul(G,P),_=n.mul(J,L),_=n.add(S,_),S=n.sub(Y,_),_=n.add(Y,_),_=n.mul(S,_),S=n.mul(U,S),P=n.mul(J,P),L=n.mul(G,L),U=n.sub(z,L),U=n.mul(G,U),U=n.add(U,P),P=n.add(z,z),z=n.add(P,z),z=n.add(z,L),z=n.mul(z,U),_=n.add(_,z),L=n.mul(se,te),L=n.add(L,L),z=n.mul(L,U),S=n.sub(S,z),P=n.mul(L,Y),P=n.add(P,P),P=n.add(P,P),new R(S,_,P)}add(G){y(G);let{px:ee,py:J,pz:le}=this,{px:se,py:te,pz:S}=G,_=n.ZERO,P=n.ZERO,z=n.ZERO,Y=e.a,L=n.mul(e.b,$E),U=n.mul(ee,se),W=n.mul(J,te),w=n.mul(le,S),I=n.add(ee,J),ye=n.add(se,te);I=n.mul(I,ye),ye=n.add(U,W),I=n.sub(I,ye),ye=n.add(ee,le);let ne=n.add(se,S);return ye=n.mul(ye,ne),ne=n.add(U,w),ye=n.sub(ye,ne),ne=n.add(J,le),_=n.add(te,S),ne=n.mul(ne,_),_=n.add(W,w),ne=n.sub(ne,_),z=n.mul(Y,ye),_=n.mul(L,w),z=n.add(_,z),_=n.sub(W,z),z=n.add(W,z),P=n.mul(_,z),W=n.add(U,U),W=n.add(W,U),w=n.mul(Y,w),ye=n.mul(L,ye),W=n.add(W,w),w=n.sub(U,w),w=n.mul(Y,w),ye=n.add(ye,w),U=n.mul(W,ye),P=n.add(P,U),U=n.mul(ne,ye),_=n.mul(I,_),_=n.sub(_,U),U=n.mul(I,W),z=n.mul(ne,z),z=n.add(z,U),new R(_,P,z)}subtract(G){return this.add(G.negate())}is0(){return this.equals(R.ZERO)}wNAF(G){return V.wNAFCached(this,G,R.normalizeZ)}multiplyUnsafe(G){let{endo:ee,n:J}=e;Gp(\"scalar\",G,Gu,J);let le=R.ZERO;if(G===Gu)return le;if(this.is0()||G===ii)return this;if(!ee||V.hasPrecomputes(this))return V.wNAFCachedUnsafe(this,G,R.normalizeZ);let{k1neg:se,k1:te,k2neg:S,k2:_}=ee.splitScalar(G),P=le,z=le,Y=this;for(;te>Gu||_>Gu;)te&ii&&(P=P.add(Y)),_&ii&&(z=z.add(Y)),Y=Y.double(),te>>=ii,_>>=ii;return se&&(P=P.negate()),S&&(z=z.negate()),z=new R(n.mul(z.px,ee.beta),z.py,z.pz),P.add(z)}multiply(G){let{endo:ee,n:J}=e;Gp(\"scalar\",G,ii,J);let le,se;if(ee){let{k1neg:te,k1:S,k2neg:_,k2:P}=ee.splitScalar(G),{p:z,f:Y}=this.wNAF(S),{p:L,f:U}=this.wNAF(P);z=V.constTimeNegate(te,z),L=V.constTimeNegate(_,L),L=new R(n.mul(L.px,ee.beta),L.py,L.pz),le=z.add(L),se=Y.add(U)}else{let{p:te,f:S}=this.wNAF(G);le=te,se=S}return R.normalizeZ([le,se])[0]}multiplyAndAddUnsafe(G,ee,J){let le=R.BASE,se=(S,_)=>_===Gu||_===ii||!S.equals(le)?S.multiplyUnsafe(_):S.multiply(_),te=se(this,ee).add(se(G,J));return te.is0()?void 0:te}toAffine(G){return A(this,G)}isTorsionFree(){let{h:G,isTorsionFree:ee}=e;if(G===ii)return!0;if(ee)return ee(R,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:G,clearCofactor:ee}=e;return G===ii?this:ee?ee(R,this):this.multiplyUnsafe(e.h)}toRawBytes(G=!0){return Jx(\"isCompressed\",G),this.assertValidity(),o(R,this,G)}toHex(G=!0){return Jx(\"isCompressed\",G),Qx(this.toRawBytes(G))}}R.BASE=new R(e.Gx,e.Gy,n.ONE),R.ZERO=new R(n.ZERO,n.ONE,n.ZERO);let{endo:K,nBitLength:O}=e,V=q5e(R,K?Math.ceil(O/2):O);return{CURVE:e,ProjectivePoint:R,normPrivateKeyToScalar:g,weierstrassEquation:c,isWithinCurveOrder:m}}function OUe(t){let e=aj(t);return qp(e,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...e})}function X5e(t){let e=OUe(t),{Fp:n,n:r,nByteLength:o,nBitLength:a}=e,c=n.BYTES+1,l=2*n.BYTES+1;function f(L){return oa(L,r)}function p(L){return FM(L,r)}let{ProjectivePoint:m,normPrivateKeyToScalar:g,weierstrassEquation:y,isWithinCurveOrder:A}=FUe({...e,toBytes(L,U,W){let w=U.toAffine(),I=n.toBytes(w.x),ye=ic;return Jx(\"isCompressed\",W),W?ye(Uint8Array.from([U.hasEvenY()?2:3]),I):ye(Uint8Array.from([4]),I,n.toBytes(w.y))},fromBytes(L){let U=L.length,W=L[0],w=L.subarray(1);if(U===c&&(W===2||W===3)){let I=Rc(w);if(!Ly(I,ii,n.ORDER))throw new Error(\"Point is not on curve\");let ye=y(I),ne;try{ne=n.sqrt(ye)}catch(ue){let q=ue instanceof Error?\": \"+ue.message:\"\";throw new Error(\"Point is not on curve\"+q)}let Q=(ne&ii)===ii;return(W&1)===1!==Q&&(ne=n.neg(ne)),{x:I,y:ne}}else if(U===l&&W===4){let I=n.fromBytes(w.subarray(0,n.BYTES)),ye=n.fromBytes(w.subarray(n.BYTES,2*n.BYTES));return{x:I,y:ye}}else{let I=c,ye=l;throw new Error(\"invalid Point, expected length of \"+I+\", or uncompressed \"+ye+\", got \"+U)}}});function T(L){let U=r>>ii;return L>U}function R(L){return T(L)?f(-L):L}let K=(L,U,W)=>Rc(L.slice(U,W));class O{constructor(U,W,w){Gp(\"r\",U,ii,r),Gp(\"s\",W,ii,r),this.r=U,this.s=W,w!=null&&(this.recovery=w),Object.freeze(this)}static fromCompact(U){let W=o;return U=xa(\"compactSignature\",U,W*2),new O(K(U,0,W),K(U,W,2*W))}static fromDER(U){let{r:W,s:w}=Xp.toSig(xa(\"DER\",U));return new O(W,w)}assertValidity(){}addRecoveryBit(U){return new O(this.r,this.s,U)}recoverPublicKey(U){let{r:W,s:w,recovery:I}=this,ye=le(xa(\"msgHash\",U));if(I==null||![0,1,2,3].includes(I))throw new Error(\"recovery id invalid\");let ne=I===2||I===3?W+e.n:W;if(ne>=n.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let Q=(I&1)===0?\"02\":\"03\",ie=m.fromHex(Q+sj(ne,n.BYTES)),ue=p(ne),q=f(-ye*ue),Ee=f(w*ue),we=m.BASE.multiplyAndAddUnsafe(ie,q,Ee);if(!we)throw new Error(\"point at infinify\");return we.assertValidity(),we}hasHighS(){return T(this.s)}normalizeS(){return this.hasHighS()?new O(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return PE(this.toDERHex())}toDERHex(){return Xp.hexFromSig(this)}toCompactRawBytes(){return PE(this.toCompactHex())}toCompactHex(){let U=o;return sj(this.r,U)+sj(this.s,U)}}let V={isValidPrivateKey(L){try{return g(L),!0}catch{return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{let L=ej(e.n);return N5e(e.randomBytes(L),e.n)},precompute(L=8,U=m.BASE){return U._setWindowSize(L),U.multiply(BigInt(3)),U}};function D(L,U=!0){return m.fromPrivateKey(L).toRawBytes(U)}function G(L){if(typeof L==\"bigint\")return!1;if(L instanceof m)return!0;let W=xa(\"key\",L).length,w=n.BYTES,I=w+1,ye=2*w+1;if(!(e.allowedPrivateKeyLengths||o===I))return W===I||W===ye}function ee(L,U,W=!0){if(G(L)===!0)throw new Error(\"first arg must be private key\");if(G(U)===!1)throw new Error(\"second arg must be public key\");return m.fromHex(U).multiply(g(L)).toRawBytes(W)}let J=e.bits2int||function(L){if(L.length>8192)throw new Error(\"input is too large\");let U=Rc(L),W=L.length*8-a;return W>0?U>>BigInt(W):U},le=e.bits2int_modN||function(L){return f(J(L))},se=Ny(a);function te(L){return Gp(\"num < 2^\"+a,L,Gu,se),pf(L,o)}function S(L,U,W=_){if([\"recovered\",\"canonical\"].some(B=>B in W))throw new Error(\"sign() legacy options not supported\");let{hash:w,randomBytes:I}=e,{lowS:ye,prehash:ne,extraEntropy:Q}=W;ye==null&&(ye=!0),L=xa(\"msgHash\",L),Z5e(W),ne&&(L=xa(\"prehashed msgHash\",w(L)));let ie=le(L),ue=g(U),q=[te(ue),te(ie)];if(Q!=null&&Q!==!1){let B=Q===!0?I(n.BYTES):Q;q.push(xa(\"extraEntropy\",B))}let Ee=ic(...q),we=ie;function _e(B){let k=J(B);if(!A(k))return;let C=p(k),Z=m.BASE.multiply(k).toAffine(),X=f(Z.x);if(X===Gu)return;let ae=f(C*f(we+X*ue));if(ae===Gu)return;let de=(Z.x===X?0:2)|Number(Z.y&ii),me=ae;return ye&&T(ae)&&(me=R(ae),de^=1),new O(X,me,de)}return{seed:Ee,k2sig:_e}}let _={lowS:e.lowS,prehash:!1},P={lowS:e.lowS,prehash:!1};function z(L,U,W=_){let{seed:w,k2sig:I}=S(L,U,W),ye=e;return e5e(ye.hash.outputLen,ye.nByteLength,ye.hmac)(w,I)}m.BASE._setWindowSize(8);function Y(L,U,W,w=P){let I=L;U=xa(\"msgHash\",U),W=xa(\"publicKey\",W);let{lowS:ye,prehash:ne,format:Q}=w;if(Z5e(w),\"strict\"in w)throw new Error(\"options.strict was renamed to lowS\");if(Q!==void 0&&Q!==\"compact\"&&Q!==\"der\")throw new Error(\"format must be compact or der\");let ie=typeof I==\"string\"||Xx(I),ue=!ie&&!Q&&typeof I==\"object\"&&I!==null&&typeof I.r==\"bigint\"&&typeof I.s==\"bigint\";if(!ie&&!ue)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let q,Ee;try{if(ue&&(q=new O(I.r,I.s)),ie){try{Q!==\"compact\"&&(q=O.fromDER(I))}catch(de){if(!(de instanceof Xp.Err))throw de}!q&&Q!==\"der\"&&(q=O.fromCompact(I))}Ee=m.fromHex(W)}catch{return!1}if(!q||ye&&q.hasHighS())return!1;ne&&(U=e.hash(U));let{r:we,s:_e}=q,B=le(U),k=p(_e),C=f(B*k),Z=f(we*k),X=m.BASE.multiplyAndAddUnsafe(Ee,C,Z)?.toAffine();return X?f(X.x)===we:!1}return{CURVE:e,getPublicKey:D,getSharedSecret:ee,sign:z,verify:Y,ProjectivePoint:m,Signature:O,utils:V}}function LUe(t,e){let n=t.ORDER,r=Gu;for(let T=n-ii;T%l0===Gu;T/=l0)r+=ii;let o=r,a=l0<<o-ii-ii,c=a*l0,l=(n-ii)/c,f=(l-ii)/l0,p=c-ii,m=a,g=t.pow(e,l),y=t.pow(e,(l+ii)/l0),A=(T,R)=>{let K=g,O=t.pow(R,p),V=t.sqr(O);V=t.mul(V,R);let D=t.mul(T,V);D=t.pow(D,f),D=t.mul(D,O),O=t.mul(D,R),V=t.mul(D,T);let G=t.mul(V,O);D=t.pow(G,m);let ee=t.eql(D,t.ONE);O=t.mul(V,y),D=t.mul(G,K),V=t.cmov(O,V,ee),G=t.cmov(D,G,ee);for(let J=o;J>ii;J--){let le=J-l0;le=l0<<le-ii;let se=t.pow(G,le),te=t.eql(se,t.ONE);O=t.mul(V,K),K=t.mul(K,K),se=t.mul(G,K),V=t.cmov(O,V,te),G=t.cmov(se,G,te)}return{isValid:ee,value:V}};if(t.ORDER%lj===$E){let T=(t.ORDER-$E)/lj,R=t.sqrt(t.neg(e));A=(K,O)=>{let V=t.sqr(O),D=t.mul(K,O);V=t.mul(V,D);let G=t.pow(V,T);G=t.mul(G,D);let ee=t.mul(G,R),J=t.mul(t.sqr(G),O),le=t.eql(J,K),se=t.cmov(ee,G,le);return{isValid:le,value:se}}}return A}function J5e(t,e){if(OM(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let n=LUe(t,e.Z);if(!t.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return r=>{let o,a,c,l,f,p,m,g;o=t.sqr(r),o=t.mul(o,e.Z),a=t.sqr(o),a=t.add(a,o),c=t.add(a,t.ONE),c=t.mul(c,e.B),l=t.cmov(e.Z,t.neg(a),!t.eql(a,t.ZERO)),l=t.mul(l,e.A),a=t.sqr(c),p=t.sqr(l),f=t.mul(p,e.A),a=t.add(a,f),a=t.mul(a,c),p=t.mul(p,l),f=t.mul(p,e.B),a=t.add(a,f),m=t.mul(o,c);let{isValid:y,value:A}=n(a,p);g=t.mul(o,r),g=t.mul(g,A),m=t.cmov(m,c,y),g=t.cmov(g,A,y);let T=t.isOdd(r)===t.isOdd(g);g=t.cmov(t.neg(g),g,T);let R=rb(t,[l],!0)[0];return m=t.mul(m,R),{x:m,y:g}}}var cj,Xp,Gu,ii,l0,$E,lj,uj=Ve(()=>{u();Y5e();ib();Uy();cj=class extends Error{constructor(e=\"\"){super(e)}},Xp={Err:cj,_tlv:{encode:(t,e)=>{let{Err:n}=Xp;if(t<0||t>256)throw new n(\"tlv.encode: wrong tag\");if(e.length&1)throw new n(\"tlv.encode: unpadded data\");let r=e.length/2,o=RE(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");let a=r>127?RE(o.length/2|128):\"\";return RE(t)+a+o+e},decode(t,e){let{Err:n}=Xp,r=0;if(t<0||t>256)throw new n(\"tlv.encode: wrong tag\");if(e.length<2||e[r++]!==t)throw new n(\"tlv.decode: wrong tlv\");let o=e[r++],a=!!(o&128),c=0;if(!a)c=o;else{let f=o&127;if(!f)throw new n(\"tlv.decode(long): indefinite length not supported\");if(f>4)throw new n(\"tlv.decode(long): byte length is too big\");let p=e.subarray(r,r+f);if(p.length!==f)throw new n(\"tlv.decode: length bytes not complete\");if(p[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(let m of p)c=c<<8|m;if(r+=f,c<128)throw new n(\"tlv.decode(long): not minimal encoding\")}let l=e.subarray(r,r+c);if(l.length!==c)throw new n(\"tlv.decode: wrong value length\");return{v:l,l:e.subarray(r+c)}}},_int:{encode(t){let{Err:e}=Xp;if(t<Gu)throw new e(\"integer: negative integers are not allowed\");let n=RE(t);if(Number.parseInt(n[0],16)&8&&(n=\"00\"+n),n.length&1)throw new e(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(t){let{Err:e}=Xp;if(t[0]&128)throw new e(\"invalid signature integer: negative\");if(t[0]===0&&!(t[1]&128))throw new e(\"invalid signature integer: unnecessary leading zero\");return Rc(t)}},toSig(t){let{Err:e,_int:n,_tlv:r}=Xp,o=xa(\"signature\",t),{v:a,l:c}=r.decode(48,o);if(c.length)throw new e(\"invalid signature: left bytes after parsing\");let{v:l,l:f}=r.decode(2,a),{v:p,l:m}=r.decode(2,f);if(m.length)throw new e(\"invalid signature: left bytes after parsing\");return{r:n.decode(l),s:n.decode(p)}},hexFromSig(t){let{_tlv:e,_int:n}=Xp,r=e.encode(2,n.encode(t.r)),o=e.encode(2,n.encode(t.s)),a=r+o;return e.encode(48,a)}};Gu=BigInt(0),ii=BigInt(1),l0=BigInt(2),$E=BigInt(3),lj=BigInt(4)});function NUe(t){return{hash:t,hmac:(e,...n)=>HH(t,e,nhe(...n)),randomBytes:CT}}function ab(t,e){let n=r=>X5e({...t,...NUe(r)});return{...n(e),create:n}}var dj=Ve(()=>{u();S5e();Xm();uj();});var d4e={};Oi(d4e,{encodeToCurve:()=>JUe,hashToCurve:()=>XUe,schnorr:()=>WUe,secp256k1:()=>gf,secp256k1_hasher:()=>vj});function s4e(t){let e=qE,n=BigInt(3),r=BigInt(6),o=BigInt(11),a=BigInt(22),c=BigInt(23),l=BigInt(44),f=BigInt(88),p=t*t*t%e,m=p*p*t%e,g=ll(m,n,e)*m%e,y=ll(g,n,e)*m%e,A=ll(y,UM,e)*p%e,T=ll(A,o,e)*A%e,R=ll(T,a,e)*T%e,K=ll(R,l,e)*R%e,O=ll(K,f,e)*K%e,V=ll(O,l,e)*R%e,D=ll(V,n,e)*m%e,G=ll(D,c,e)*T%e,ee=ll(G,r,e)*p%e,J=ll(ee,UM,e);if(!u0.eql(u0.sqr(J),t))throw new Error(\"Cannot find square root\");return J}function zM(t,...e){let n=a4e[t];if(n===void 0){let r=Up(Uint8Array.from(t,o=>o.charCodeAt(0)));n=ic(r,r),a4e[t]=n}return Up(ic(n,...e))}function hj(t){let e=gf.utils.normPrivateKeyToScalar(t),n=yj.fromPrivateKey(e);return{scalar:n.hasEvenY()?e:GE(-e),bytes:gj(n)}}function c4e(t){Gp(\"x\",t,KE,qE);let e=fj(t*t),n=fj(e*t+BigInt(7)),r=s4e(n);r%UM!==mj&&(r=fj(-r));let o=new yj(t,r,KE);return o.assertValidity(),o}function l4e(...t){return GE(sb(zM(\"BIP0340/challenge\",...t)))}function GUe(t){return hj(t).bytes}function qUe(t,e,n=CT(32)){let r=xa(\"message\",t),{bytes:o,scalar:a}=hj(e),c=xa(\"auxRand\",n,32),l=pj(a^sb(zM(\"BIP0340/aux\",c))),f=zM(\"BIP0340/nonce\",l,o,r),p=GE(sb(f));if(p===mj)throw new Error(\"sign failed: k is zero\");let{bytes:m,scalar:g}=hj(p),y=l4e(m,o,r),A=new Uint8Array(64);if(A.set(m,0),A.set(pj(GE(g+y*a)),32),!u4e(A,r,o))throw new Error(\"sign: Invalid signature produced\");return A}function u4e(t,e,n){let r=xa(\"signature\",t,64),o=xa(\"message\",e),a=xa(\"publicKey\",n,32);try{let c=c4e(sb(a)),l=sb(r.subarray(0,32));if(!Ly(l,KE,qE))return!1;let f=sb(r.subarray(32,64));if(!Ly(f,KE,NM))return!1;let p=l4e(pj(l),gj(c),o),m=KUe(c,f,GE(-p));return!(!m||!m.hasEvenY()||m.toAffine().x!==l)}catch{return!1}}var qE,NM,mj,KE,UM,i4e,u0,gf,a4e,gj,pj,fj,GE,yj,KUe,sb,WUe,YUe,ZUe,vj,XUe,JUe,VM=Ve(()=>{u();RT();Xm();dj();H5e();ib();Uy();uj();qE=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),NM=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),mj=BigInt(0),KE=BigInt(1),UM=BigInt(2),i4e=(t,e)=>(t+e/UM)/e;u0=Zp(qE,void 0,void 0,{sqrt:s4e}),gf=ab({a:mj,b:BigInt(7),Fp:u0,n:NM,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:t=>{let e=NM,n=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-KE*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),a=n,c=BigInt(\"0x100000000000000000000000000000000\"),l=i4e(a*t,e),f=i4e(-r*t,e),p=oa(t-l*n-f*o,e),m=oa(-l*r-f*a,e),g=p>c,y=m>c;if(g&&(p=e-p),y&&(m=e-m),p>c||m>c)throw new Error(\"splitScalar: Endomorphism failed, k=\"+t);return{k1neg:g,k1:p,k2neg:y,k2:m}}}},Up),a4e={};gj=t=>t.toRawBytes(!0).slice(1),pj=t=>pf(t,32),fj=t=>oa(t,qE),GE=t=>oa(t,NM),yj=gf.ProjectivePoint,KUe=(t,e,n)=>yj.BASE.multiplyAndAddUnsafe(t,e,n);sb=Rc;WUe={getPublicKey:GUe,sign:qUe,verify:u4e,utils:{randomPrivateKey:gf.utils.randomPrivateKey,lift_x:c4e,pointToBytes:gj,numberToBytesBE:pf,bytesToNumberBE:Rc,taggedHash:zM,mod:oa}},YUe=z5e(u0,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map(t=>t.map(e=>BigInt(e)))),ZUe=J5e(u0,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:u0.create(BigInt(\"-11\"))}),vj=V5e(gf.ProjectivePoint,t=>{let{x:e,y:n}=ZUe(u0.create(t[0]));return YUe(e,n)},{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:u0.ORDER,m:1,k:128,expand:\"xmd\",hash:Up}),XUe=vj.hashToCurve,JUe=vj.encodeToCurve});var dS,TI,K4e,iSn,aSn,n$,r$,_I=Ve(()=>{u();dS=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"addr\",type:\"address\"}],name:\"getEthBalance\",outputs:[{name:\"balance\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getCurrentBlockTimestamp\",outputs:[{internalType:\"uint256\",name:\"timestamp\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],TI=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],K4e=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],iSn=[...K4e,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],aSn=[...K4e,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],n$=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],r$=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}]});var G4e,q4e,W4e,MI,o$=Ve(()=>{u();G4e=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",q4e=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",W4e=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",MI=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});function fS(t){let{abi:e,args:n,bytecode:r}=t;if(!n||n.length===0)return r;let o=e.find(c=>\"type\"in c&&c.type===\"constructor\");if(!o)throw new p_({docsPath:i$});if(!(\"inputs\"in o))throw new cE({docsPath:i$});if(!o.inputs||o.inputs.length===0)throw new cE({docsPath:i$});let a=uf(o.inputs,n);return Wi([r,a])}var i$,a$=Ve(()=>{u();rc();il();Fy();i$=\"/docs/contract/encodeDeployData\"});function Z4e(t){let{abi:e,args:n,functionName:r}=t,o=e[0];if(r){let a=df({abi:e,args:n,name:r});if(!a)throw new zu(r,{docsPath:Y4e});o=a}if(o.type!==\"function\")throw new zu(void 0,{docsPath:Y4e});return{abi:[o],functionName:cf(ps(o))}}var Y4e,X4e=Ve(()=>{u();rc();Ux();o0();Hx();Y4e=\"/docs/contract/encodeFunctionData\"});function iu(t){let{args:e}=t,{abi:n,functionName:r}=t.abi.length===1&&t.functionName?.startsWith(\"0x\")?t:Z4e(t),o=n[0],a=r,c=\"inputs\"in o&&o.inputs?uf(o.inputs,e??[]):void 0;return Wi([a,c??\"0x\"])}var mb=Ve(()=>{u();il();Fy();X4e()});function Qp(t,e){if(!Do(t,{strict:!1}))throw new Go({address:t});if(!Do(e,{strict:!1}))throw new Go({address:e});return t.toLowerCase()===e.toLowerCase()}var pS=Ve(()=>{u();Nu();Ql()});function o8e(t){return{address:t.address,amount:En(t.amount),index:En(t.index),validatorIndex:En(t.validatorIndex)}}var i8e=Ve(()=>{u();Uo()});function a8e(t){return{...typeof t.baseFeePerGas==\"bigint\"&&{baseFeePerGas:En(t.baseFeePerGas)},...typeof t.blobBaseFee==\"bigint\"&&{blobBaseFee:En(t.blobBaseFee)},...typeof t.feeRecipient==\"string\"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit==\"bigint\"&&{gasLimit:En(t.gasLimit)},...typeof t.number==\"bigint\"&&{number:En(t.number)},...typeof t.prevRandao==\"bigint\"&&{prevRandao:En(t.prevRandao)},...typeof t.time==\"bigint\"&&{time:En(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(o8e)}}}var s8e=Ve(()=>{u();Uo();i8e()});var c8e,l8e=Ve(()=>{u();c8e=\"0x82ad56cb\"});function II(t){let{abi:e,args:n,functionName:r,data:o}=t,a=e[0];if(r){let l=df({abi:e,args:n,name:r});if(!l)throw new zu(r,{docsPath:s$});a=l}if(a.type!==\"function\")throw new zu(void 0,{docsPath:s$});if(!a.outputs)throw new Fx(a.name,{docsPath:s$});let c=Hp(a.outputs,o);if(c&&c.length>1)return c;if(c&&c.length===1)return c[0]}var s$,c$=Ve(()=>{u();rc();gE();Hx();s$=\"/docs/contract/decodeFunctionResult\"});function u8e(){let t=()=>{},e=()=>{};return{promise:new Promise((r,o)=>{t=r,e=o}),resolve:t,reject:e}}var d8e=Ve(()=>{u()});function f8e({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:o}){let a=async()=>{let m=f();c();let g=m.map(({args:y})=>y);g.length!==0&&t(g).then(y=>{o&&Array.isArray(y)&&y.sort(o);for(let A=0;A<m.length;A++){let{resolve:T}=m[A];T?.([y[A],y])}}).catch(y=>{for(let A=0;A<m.length;A++){let{reject:T}=m[A];T?.(y)}})},c=()=>l$.delete(e),l=()=>f().map(({args:m})=>m),f=()=>l$.get(e)||[],p=m=>l$.set(e,[...f(),m]);return{flush:c,async schedule(m){let{promise:g,resolve:y,reject:A}=u8e();return n?.([...l(),m])&&a(),f().length>0?(p({args:m,resolve:y,reject:A}),g):(p({args:m,resolve:y,reject:A}),setTimeout(a,r),g)}}}var l$,p8e=Ve(()=>{u();d8e();l$=new Map});function h8e(t){if(!(!t||t.length===0))return t.reduce((e,{slot:n,value:r})=>{if(n.length!==66)throw new W8({size:n.length,targetSize:66,type:\"hex\"});if(r.length!==66)throw new W8({size:r.length,targetSize:66,type:\"hex\"});return e[n]=r,e},{})}function sVe(t){let{balance:e,nonce:n,state:r,stateDiff:o,code:a}=t,c={};if(a!==void 0&&(c.code=a),e!==void 0&&(c.balance=sr(e)),n!==void 0&&(c.nonce=sr(n)),r!==void 0&&(c.state=h8e(r)),o!==void 0){if(c.state)throw new Z_;c.stateDiff=h8e(o)}return c}function RI(t){if(!t)return;let e={};for(let{address:n,...r}of t){if(!Do(n,{strict:!1}))throw new Go({address:n});if(e[n])throw new Y_({address:n});e[n]=sVe(r)}return e}var u$=Ve(()=>{u();Nu();mT();XV();Ql();Ko()});var PI,BI,DI,m8e=Ve(()=>{u();yE();Bo();X_();PI=class extends ln{constructor({callbackSelector:e,cause:n,data:r,extraData:o,sender:a,urls:c}){super(n.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:n,metaMessages:[...n.metaMessages||[],n.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",c&&[\"  Gateway URL(s):\",...c.map(l=>`    ${jx(l)}`)],`  Sender: ${a}`,`  Data: ${r}`,`  Callback selector: ${e}`,`  Extra data: ${o}`].flat(),name:\"OffchainLookupError\"})}},BI=class extends ln{constructor({result:e,url:n}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${jx(n)}`,`Response: ${jp(e)}`],name:\"OffchainLookupResponseMalformedError\"})}},DI=class extends ln{constructor({sender:e,to:n}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${e}`],name:\"OffchainLookupSenderMismatchError\"})}}});function g8e(t){let{abi:e,data:n}=t,r=eu(n,0,4),o=e.find(a=>a.type===\"function\"&&r===cf(ps(a)));if(!o)throw new b_(r,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?Hp(o.inputs,eu(n,4)):void 0}}var y8e=Ve(()=>{u();rc();Ry();Ux();gE();o0()});function f$(t){let{abi:e,errorName:n,args:r}=t,o=e[0];if(n){let f=df({abi:e,args:r,name:n});if(!f)throw new lE(n,{docsPath:d$});o=f}if(o.type!==\"error\")throw new lE(void 0,{docsPath:d$});let a=ps(o),c=cf(a),l=\"0x\";if(r&&r.length>0){if(!o.inputs)throw new y_(o.name,{docsPath:d$});l=uf(o.inputs,r)}return Wi([c,l])}var d$,v8e=Ve(()=>{u();rc();il();Ux();Fy();o0();Hx();d$=\"/docs/contract/encodeErrorResult\"});function x8e(t){let{abi:e,functionName:n,result:r}=t,o=e[0];if(n){let c=df({abi:e,name:n});if(!c)throw new zu(n,{docsPath:p$});o=c}if(o.type!==\"function\")throw new zu(void 0,{docsPath:p$});if(!o.outputs)throw new Fx(o.name,{docsPath:p$});let a=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new Ox(r)})();return uf(o.outputs,a)}var p$,b8e=Ve(()=>{u();rc();Fy();Hx();p$=\"/docs/contract/encodeFunctionResult\"});async function m$(t){let{data:e,ccipRequest:n}=t,{args:[r]}=g8e({abi:TI,data:e}),o=[],a=[];return await Promise.all(r.map(async(c,l)=>{try{a[l]=c.urls.includes(h$)?await m$({data:c.data,ccipRequest:n}):await n(c),o[l]=!1}catch(f){o[l]=!0,a[l]=cVe(f)}})),x8e({abi:TI,functionName:\"query\",result:[o,a]})}function cVe(t){return t.name===\"HttpRequestError\"&&t.status?f$({abi:TI,errorName:\"HttpError\",args:[t.status,t.shortMessage]}):f$({abi:[u_],errorName:\"Error\",args:[\"shortMessage\"in t?t.shortMessage:t.message]})}var h$,w8e=Ve(()=>{u();_I();d_();y8e();v8e();b8e();h$=\"x-batch-gateway:true\"});var A8e={};Oi(A8e,{ccipRequest:()=>S8e,offchainLookup:()=>uVe,offchainLookupAbiItem:()=>E8e,offchainLookupSignature:()=>lVe});async function uVe(t,{blockNumber:e,blockTag:n,data:r,to:o}){let{args:a}=q_({data:r,abi:[E8e]}),[c,l,f,p,m]=a,{ccipRead:g}=t,y=g&&typeof g?.request==\"function\"?g.request:S8e;try{if(!Qp(o,c))throw new DI({sender:c,to:o});let A=l.includes(h$)?await m$({data:f,ccipRequest:y}):await y({data:f,sender:c,urls:l}),{data:T}=await yb(t,{blockNumber:e,blockTag:n,data:Yl([p,uf([{type:\"bytes\"},{type:\"bytes\"}],[A,m])]),to:o});return T}catch(A){throw new PI({callbackSelector:p,cause:A,data:r,extraData:m,sender:c,urls:l})}}async function S8e({data:t,sender:e,urls:n}){let r=new Error(\"An unknown error occurred.\");for(let o=0;o<n.length;o++){let a=n[o],c=a.includes(\"{data}\")?\"GET\":\"POST\",l=c===\"POST\"?{data:t,sender:e}:void 0,f=c===\"POST\"?{\"Content-Type\":\"application/json\"}:{};try{let p=await fetch(a.replace(\"{sender}\",e.toLowerCase()).replace(\"{data}\",t),{body:JSON.stringify(l),headers:f,method:c}),m;if(p.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?m=(await p.json()).data:m=await p.text(),!p.ok){r=new xE({body:l,details:m?.error?jp(m.error):p.statusText,headers:p.headers,status:p.status,url:a});continue}if(!Aa(m)){r=new BI({result:m,url:a});continue}return m}catch(p){r=new xE({body:l,details:p.message,url:a})}}throw r}var lVe,E8e,k8e=Ve(()=>{u();FI();m8e();tM();WV();Fy();pS();il();Xd();w8e();yE();lVe=\"0x556f1830\",E8e={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]}});async function yb(t,e){let{account:n=t.account,authorizationList:r,batch:o=!!t.batch?.multicall,blockNumber:a,blockTag:c=t.experimental_blockTag??\"latest\",accessList:l,blobs:f,blockOverrides:p,code:m,data:g,factory:y,factoryData:A,gas:T,gasPrice:R,maxFeePerBlobGas:K,maxFeePerGas:O,maxPriorityFeePerGas:V,nonce:D,to:G,value:ee,stateOverride:J,...le}=e,se=n?bi(n):void 0;if(m&&(y||A))throw new ln(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(m&&G)throw new ln(\"Cannot provide both `code` & `to` as parameters.\");let te=m&&g,S=y&&A&&G&&g,_=te||S,P=te?C8e({code:m,data:g}):S?pVe({data:g,factory:y,factoryData:A,to:G}):g;try{nu(e);let Y=(typeof a==\"bigint\"?sr(a):void 0)||c,L=p?a8e(p):void 0,U=RI(J),W=t.chain?.formatters?.transactionRequest?.format,I=(W||ol)({...ff(le,{format:W}),accessList:l,account:se,authorizationList:r,blobs:f,data:P,gas:T,gasPrice:R,maxFeePerBlobGas:K,maxFeePerGas:O,maxPriorityFeePerGas:V,nonce:D,to:_?void 0:G,value:ee},\"call\");if(o&&dVe({request:I})&&!U&&!L)try{return await fVe(t,{...I,blockNumber:a,blockTag:c})}catch(Q){if(!(Q instanceof tE)&&!(Q instanceof Ty))throw Q}let ye=(()=>{let Q=[I,Y];return U&&L?[...Q,U,L]:U?[...Q,U]:L?[...Q,{},L]:Q})(),ne=await t.request({method:\"eth_call\",params:ye});return ne===\"0x\"?{data:void 0}:{data:ne}}catch(z){let Y=hVe(z),{offchainLookup:L,offchainLookupSignature:U}=await Promise.resolve().then(()=>(k8e(),A8e));if(t.ccipRead!==!1&&Y?.slice(0,10)===U&&G)return{data:await L(t,{data:Y,to:G})};throw _&&Y?.slice(0,10)===\"0x101bb98d\"?new eM({factory:y}):rM(z,{...e,account:se,chain:t.chain})}}function dVe({request:t}){let{data:e,to:n,...r}=t;return!(!e||e.startsWith(c8e)||!n||Object.values(r).filter(o=>typeof o<\"u\").length>0)}async function fVe(t,e){let{batchSize:n=1024,deployless:r=!1,wait:o=0}=typeof t.batch?.multicall==\"object\"?t.batch.multicall:{},{blockNumber:a,blockTag:c=t.experimental_blockTag??\"latest\",data:l,to:f}=e,p=(()=>{if(r)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return M1e({blockNumber:a,chain:t.chain,contract:\"multicall3\"});throw new tE})(),g=(typeof a==\"bigint\"?sr(a):void 0)||c,{schedule:y}=f8e({id:`${t.uid}.${g}`,wait:o,shouldSplitBatch(R){return R.reduce((O,{data:V})=>O+(V.length-2),0)>n*2},fn:async R=>{let K=R.map(D=>({allowFailure:!0,callData:D.data,target:D.to})),O=iu({abi:dS,args:[K],functionName:\"aggregate3\"}),V=await t.request({method:\"eth_call\",params:[{...p===null?{data:C8e({code:MI,data:O})}:{to:p,data:O}},g]});return II({abi:dS,args:[K],functionName:\"aggregate3\",data:V||\"0x\"})}}),[{returnData:A,success:T}]=await y({data:l,to:f});if(!T)throw new Gx({data:A});return A===\"0x\"?{data:void 0}:{data:A}}function C8e(t){let{code:e,data:n}=t;return fS({abi:j_([\"constructor(bytes, bytes)\"]),bytecode:G4e,args:[e,n]})}function pVe(t){let{data:e,factory:n,factoryData:r,to:o}=t;return fS({abi:j_([\"constructor(address, bytes, address, bytes)\"]),bytecode:q4e,args:[o,e,n,r]})}function hVe(t){if(!(t instanceof ln))return;let e=t.walk();return typeof e?.data==\"object\"?e.data?.data:e.data}var FI=Ve(()=>{u();hE();s8e();tu();_I();l8e();o$();Bo();_y();vE();c$();a$();mb();I1e();Ko();EH();Yx();ef();p8e();u$();Oy()});u();var BSe=br(tX(),1);u();u();u();u();var kD=new WeakMap,Ike=new WeakMap,MA={current:[]},AD=!1,nX=0,TA=new Set,_A=new Map;function rX(t){for(let e of t){if(MA.current.includes(e))continue;MA.current.push(e),e.recompute();let n=Ike.get(e);if(n)for(let r of n){let o=kD.get(r);o?.length&&rX(o)}}}function Rke(t){let e={prevVal:t.prevState,currentVal:t.state};for(let n of t.listeners)n(e)}function Pke(t){let e={prevVal:t.prevState,currentVal:t.state};for(let n of t.listeners)n(e)}function oX(t){if(nX>0&&!_A.has(t)&&_A.set(t,t.prevState),TA.add(t),!(nX>0)&&!AD)try{for(AD=!0;TA.size>0;){let e=Array.from(TA);TA.clear();for(let n of e){let r=_A.get(n)??n.prevState;n.prevState=r,Rke(n)}for(let n of e){let r=kD.get(n);r&&(MA.current.push(n),rX(r))}for(let n of e){let r=kD.get(n);if(r)for(let o of r)Pke(o)}}}finally{AD=!1,MA.current=[],_A.clear()}}u();function iX(t){return typeof t==\"function\"}var Yw=class{constructor(e,n){this.listeners=new Set,this.subscribe=r=>{var o,a;this.listeners.add(r);let c=(a=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:a.call(o,r,this);return()=>{this.listeners.delete(r),c?.()}},this.prevState=e,this.state=e,this.options=n}setState(e){var n,r,o;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(e):iX(e)?this.state=e(this.prevState):this.state=e,(o=(r=this.options)==null?void 0:r.onUpdate)==null||o.call(r),oX(this)}};$i();$i();$i();$i();$i();$i();$i();$i();$i();$i();$i();$i();$i();$i();var kIe=Object.create,yU=Object.defineProperty,CIe=Object.getOwnPropertyDescriptor,vU=Object.getOwnPropertyNames,TIe=Object.getPrototypeOf,_Ie=Object.prototype.hasOwnProperty,Em=(t=>typeof ha<\"u\"?ha:typeof Proxy<\"u\"?new Proxy(t,{get:(e,n)=>(typeof ha<\"u\"?ha:e)[n]}):t)(function(t){if(typeof ha<\"u\")return ha.apply(this,arguments);throw Error(\\'Dynamic require of \"\\'+t+\\'\" is not supported\\')}),a8=(t,e)=>function(){return t&&(e=(0,t[vU(t)[0]])(t=0)),e},MIe=(t,e)=>function(){return e||(0,t[vU(t)[0]])((e={exports:{}}).exports,e),e.exports},dse=(t,e)=>{for(var n in e)yU(t,n,{get:e[n],enumerable:!0})},IIe=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of vU(e))!_Ie.call(t,o)&&o!==n&&yU(t,o,{get:()=>e[o],enumerable:!(r=CIe(e,o))||r.enumerable});return t},RIe=(t,e,n)=>(n=t!=null?kIe(TIe(t)):{},IIe(e||!t||!t.__esModule?yU(n,\"default\",{value:t,enumerable:!0}):n,t)),Ap,Am,Fv,Ld,GN,Hr,xU,Nd,Og,qN,WN,YN,Qc,Lg,ZN,XN,o8,JN,el,QN,Xs,eU,tU,nU,rU,Ng,oU,wp,iU,Hk,jk,aU,Mu,sU,cU,Iu,Ug,lU,uU,Zs=a8({\"../../node_modules/.pnpm/@magic-sdk+types@24.22.0/node_modules/@magic-sdk/types/dist/es/index.mjs\"(){\"use strict\";Ap=(t=>(t.MissingApiKey=\"MISSING_API_KEY\",t.ModalNotReady=\"MODAL_NOT_READY\",t.ConnectionLost=\"CONNECTION_WAS_LOST\",t.MalformedResponse=\"MALFORMED_RESPONSE\",t.InvalidArgument=\"INVALID_ARGUMENT\",t.ExtensionNotInitialized=\"EXTENSION_NOT_INITIALIZED\",t.IncompatibleExtensions=\"INCOMPATIBLE_EXTENSIONS\",t))(Ap||{}),Am=(t=>(t.SyncWeb3Method=\"SYNC_WEB3_METHOD\",t.DuplicateIframe=\"DUPLICATE_IFRAME\",t.ReactNativeEndpointConfiguration=\"REACT_NATIVE_ENDPOINT_CONFIGURATION\",t.DeprecationNotice=\"DEPRECATION_NOTICE\",t.ProductAnnouncement=\"ANNOUNCEMENT\",t))(Am||{}),Fv=(t=>(t[t.ParseError=-32700]=\"ParseError\",t[t.InvalidRequest=-32600]=\"InvalidRequest\",t[t.MethodNotFound=-32601]=\"MethodNotFound\",t[t.InvalidParams=-32602]=\"InvalidParams\",t[t.InternalError=-32603]=\"InternalError\",t[t.MagicLinkFailedVerification=-1e4]=\"MagicLinkFailedVerification\",t[t.MagicLinkExpired=-10001]=\"MagicLinkExpired\",t[t.MagicLinkRateLimited=-10002]=\"MagicLinkRateLimited\",t[t.MagicLinkInvalidRedirectURL=-10006]=\"MagicLinkInvalidRedirectURL\",t[t.UserAlreadyLoggedIn=-10003]=\"UserAlreadyLoggedIn\",t[t.UpdateEmailFailed=-10004]=\"UpdateEmailFailed\",t[t.UserRequestEditEmail=-10005]=\"UserRequestEditEmail\",t[t.InactiveRecipient=-10010]=\"InactiveRecipient\",t[t.AccessDeniedToUser=-10011]=\"AccessDeniedToUser\",t[t.RedirectLoginComplete=-10015]=\"RedirectLoginComplete\",t[t.DpopInvalidated=-10019]=\"DpopInvalidated\",t))(Fv||{}),Ld=(t=>(t.PROVIDER=\"magic_3pw_provider\",t.ADDRESS=\"magic_3pw_address\",t.CHAIN_ID=\"magic_3pw_chainId\",t))(Ld||{}),GN=(t=>(t.WalletConnected=\"wallet_connected\",t.WalletRejected=\"wallet_rejected\",t.Web3ModalSelected=\"web3modal_selected\",t))(GN||{}),Hr=(t=>(t.LoginWithSms=\"magic_auth_login_with_sms\",t.LoginWithEmailOTP=\"magic_auth_login_with_email_otp\",t.LoginWithMagicLink=\"magic_auth_login_with_magic_link\",t.LoginWithCredential=\"magic_auth_login_with_credential\",t.SetAuthorizationToken=\"magic_auth_set_authorization_token\",t.GetIdToken=\"magic_auth_get_id_token\",t.GenerateIdToken=\"magic_auth_generate_id_token\",t.GetMetadata=\"magic_auth_get_metadata\",t.IsLoggedIn=\"magic_is_logged_in\",t.Logout=\"magic_auth_logout\",t.UpdateEmail=\"magic_auth_update_email\",t.UserSettings=\"magic_auth_settings\",t.UserSettingsTestMode=\"magic_auth_settings_testing_mode\",t.LoginWithSmsTestMode=\"magic_auth_login_with_sms_testing_mode\",t.LoginWithEmailOTPTestMode=\"magic_auth_login_with_email_otp_testing_mode\",t.LoginWithMagicLinkTestMode=\"magic_login_with_magic_link_testing_mode\",t.LoginWithCredentialTestMode=\"magic_auth_login_with_credential_testing_mode\",t.GetIdTokenTestMode=\"magic_auth_get_id_token_testing_mode\",t.GenerateIdTokenTestMode=\"magic_auth_generate_id_token_testing_mode\",t.GetMetadataTestMode=\"magic_auth_get_metadata_testing_mode\",t.IsLoggedInTestMode=\"magic_auth_is_logged_in_testing_mode\",t.LogoutTestMode=\"magic_auth_logout_testing_mode\",t.UpdateEmailTestMode=\"magic_auth_update_email_testing_mode\",t.IntermediaryEvent=\"magic_intermediary_event\",t.RequestAccounts=\"eth_requestAccounts\",t.GetInfo=\"magic_get_info\",t.ShowUI=\"magic_wallet\",t.NFTPurchase=\"magic_nft_purchase\",t.NFTCheckout=\"magic_nft_checkout\",t.NFTTransfer=\"magic_nft_transfer\",t.RequestUserInfoWithUI=\"mc_request_user_info\",t.Disconnect=\"mc_disconnect\",t.RecoverAccount=\"magic_auth_recover_account\",t.RecoverAccountTestMode=\"magic_auth_recover_account_testing_mode\",t.MagicBoxHeartBeat=\"magic_box_heart_beat\",t.AutoConnect=\"mc_auto_connect\",t.Login=\"mc_login\",t.EncryptV1=\"magic_auth_encrypt_v1\",t.DecryptV1=\"magic_auth_decrypt_v1\",t.ShowNFTs=\"magic_show_nfts\",t.ShowOnRamp=\"magic_show_fiat_onramp\",t.ShowSendTokensUI=\"magic_show_send_tokens_ui\",t.ShowAddress=\"magic_show_address\",t.ShowBalances=\"magic_show_balances\",t.SendGaslessTransaction=\"eth_sendGaslessTransaction\",t.RevealPK=\"magic_reveal_key\",t.EnableMFA=\"magic_auth_enable_mfa_flow\",t.DisableMFA=\"magic_auth_disable_mfa_flow\",t.GetMultichainPublicAddress=\"magic_get_multichain_public_address\",t))(Hr||{}),xU=[\"magic_intermediary_event\",\"magic_nft_checkout\",\"mc_login\"],Nd=(t=>(t.MAGIC_HANDLE_RESPONSE=\"MAGIC_HANDLE_RESPONSE\",t.MAGIC_OVERLAY_READY=\"MAGIC_OVERLAY_READY\",t.MAGIC_SHOW_OVERLAY=\"MAGIC_SHOW_OVERLAY\",t.MAGIC_HIDE_OVERLAY=\"MAGIC_HIDE_OVERLAY\",t.MAGIC_HANDLE_EVENT=\"MAGIC_HANDLE_EVENT\",t.MAGIC_MG_BOX_SEND_RECEIPT=\"MAGIC_MG_BOX_SEND_RECEIPT\",t.MAGIC_SEND_PRODUCT_ANNOUNCEMENT=\"MAGIC_SEND_PRODUCT_ANNOUNCEMENT\",t.MAGIC_PONG=\"MAGIC_PONG\",t.MAGIC_POPUP_RESPONSE=\"MAGIC_POPUP_RESPONSE\",t.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE=\"MAGIC_POPUP_OAUTH_VERIFY_RESPONSE\",t))(Nd||{}),Og=(t=>(t.MAGIC_HANDLE_REQUEST=\"MAGIC_HANDLE_REQUEST\",t.MAGIC_PING=\"MAGIC_PING\",t))(Og||{}),qN=(t=>(t.UpdateEmail=\"update-email\",t.MFA=\"mfa\",t.Recovery=\"recovery\",t))(qN||{}),WN=(t=>(t.Retry=\"retry\",t))(WN||{}),YN=(t=>(t.EmailSent=\"email-sent\",t.EmailNotDeliverable=\"email-not-deliverable\",t))(YN||{}),Qc=(t=>(t.VerifyEmailOtp=\"verify-email-otp\",t.VerifyMFACode=\"verify-mfa-code\",t.LostDevice=\"lost-device\",t.VerifyRecoveryCode=\"verify-recovery-code\",t.Cancel=\"cancel\",t))(Qc||{}),Lg=(t=>(t.VerifySmsOtp=\"verify-sms-otp\",t.Cancel=\"cancel\",t.Retry=\"retry\",t))(Lg||{}),ZN=(t=>(t.SmsOTPSent=\"sms-otp-sent\",t.InvalidSmsOtp=\"invalid-sms-otp\",t.ExpiredSmsOtp=\"expired-sms-otp\",t))(ZN||{}),XN=(t=>(t.EmailOTPSent=\"email-otp-sent\",t.InvalidEmailOtp=\"invalid-email-otp\",t.InvalidMfaOtp=\"invalid-mfa-otp\",t.ExpiredEmailOtp=\"expired-email-otp\",t.MfaSentHandle=\"mfa-sent-handle\",t.RecoveryCodeSentHandle=\"recovery-code-sent-handle\",t.InvalidRecoveryCode=\"invalid-recovery-code\",t.RecoveryCodeSuccess=\"recovery-code-success\",t.LoginThrottled=\"login-throttled\",t))(XN||{}),o8=(t=>(t.Retry=\"device-retry\",t))(o8||{}),JN=(t=>(t.DeviceApproved=\"device-approved\",t.DeviceNeedsApproval=\"device-needs-approval\",t.DeviceVerificationLinkExpired=\"device-verification-link-expired\",t.DeviceVerificationEmailSent=\"device-verification-email-sent\",t))(JN||{}),el=(t=>(t.Retry=\"Recency/auth-factor-retry\",t.Cancel=\"Recency/auth-factor-verification-cancel\",t.VerifyEmailOtp=\"Recency/auth-factor-verify-email-otp\",t.VerifyMFACode=\"Recency/verify-mfa-code\",t))(el||{}),QN=(t=>(t.PrimaryAuthFactorNeedsVerification=\"Recency/auth-factor-needs-verification\",t.PrimaryAuthFactorVerified=\"Recency/auth-factor-verified\",t.InvalidEmailOtp=\"Recency/auth-factor-invalid-email-otp\",t.EmailExpired=\"Recency/auth-factor-verification-email-expired\",t.EmailSent=\"Recency/auth-factor-verification-email-sent\",t.EmailNotDeliverable=\"Recency/auth-factor-verification-email-not-deliverable\",t))(QN||{}),Xs=(t=>(t.RetryWithNewEmail=\"UpdateEmail/retry-with-new-email\",t.Cancel=\"UpdateEmail/new-email-verification-cancel\",t.VerifyEmailOtp=\"UpdateEmail/new-email-verify-otp\",t))(Xs||{}),eU=(t=>(t.NewAuthFactorNeedsVerification=\"UpdateEmail/new-email-needs-verification\",t.EmailUpdated=\"UpdateEmail/email-updated\",t.InvalidEmailOtp=\"UpdateEmail/new-email-invalid-email-otp\",t.EmailExpired=\"UpdateEmail/new-email-verification-email-expired\",t.EmailSent=\"UpdateEmail/new-email-verification-email-sent\",t.EmailNotDeliverable=\"UpdateEmail/new-email-verification-email-not-deliverable\",t.InvalidEmail=\"UpdateEmail/new-email-invalid\",t.EmailAlreadyExists=\"UpdateEmail/new-email-already-exists\",t))(eU||{}),tU=(t=>(t.IDTokenCreated=\"Auth/id-token-created\",t))(tU||{}),nU=(t=>(t.Cancel=\"Farcaster/cancel\",t))(nU||{}),rU=(t=>(t.MFASecretGenerated=\"mfa-secret-generated\",t.InvalidMFAOtp=\"invalid-mfa-otp\",t.MFARecoveryCodes=\"mfa-recovery-codes\",t))(rU||{}),Ng=(t=>(t.VerifyMFACode=\"verify-mfa-code\",t.Cancel=\"cancel-mfa-setup\",t))(Ng||{}),oU=(t=>(t.MFACodeRequested=\"mfa-code-requested\",t.InvalidMFAOtp=\"invalid-mfa-otp\",t.InvalidRecoveryCode=\"invalid-recovery-code\",t))(oU||{}),wp=(t=>(t.VerifyMFACode=\"verify-mfa-code\",t.LostDevice=\"lost-device\",t.Cancel=\"cancel-mfa-disable\",t))(wp||{}),iU=(t=>(t.Harmony=\"HARMONY\",t))(iU||{}),Hk=(t=>(t.ClosedByUser=\"closed-by-user\",t))(Hk||{}),jk=(t=>(t.ClosedByUser=\"closed-by-user-on-received\",t))(jk||{}),aU=(t=>(t.EnterNewPhoneNumber=\"enter-new-phone-number\",t.EnterOtpCode=\"enter-otp-code\",t.RecoveryFactorAlreadyExists=\"recovery-factor-already-exists\",t.MalformedPhoneNumber=\"malformed-phone-number\",t.InvalidOtpCode=\"invalid-otp-code\",t.RecoveryFactorUpdated=\"recovery-factor-updated\",t.RecoveryFactorDeleted=\"recovery-factor-deleted\",t))(aU||{}),Mu=(t=>(t.SendNewPhoneNumber=\"send-new-phone-number\",t.SendOtpCode=\"send-otp-code\",t.Cancel=\"cancel\",t.StartEditPhoneNumber=\"start-edit-phone-number\",t))(Mu||{}),sU=(t=>(t.PhoneNumber=\"phone_number\",t))(sU||{}),cU=(t=>(t.SmsOtpSent=\"sms-otp-sent\",t.LoginThrottled=\"login-throttled\",t.InvalidSmsOtp=\"invalid-sms-otp\",t.SmsVerified=\"sms-verified\",t.AccountRecovered=\"account-recovered\",t.UpdateEmailRequired=\"update-email-required\",t))(cU||{}),Iu=(t=>(t.Cancel=\"cancel\",t.VerifyOtp=\"verify-otp-code\",t.ResendSms=\"resend-sms-otp\",t.UpdateEmail=\"update-email\",t))(Iu||{}),Ug=(t=>(t.Success=\"nft-checkout-success\",t.Failure=\"nft-checkout-failure\",t.Initiated=\"nft-checkout-initiated\",t.Disconnect=\"disconnect\",t))(Ug||{}),lU=(t=>(t.WalletInfoFetched=\"Wallet/wallet-info-fetched\",t))(lU||{}),uU=(t=>(t.CloseMagicWindow=\"close-magic-window\",t))(uU||{})}});function PIe(t){let e={exports:{}};return t(e,e.exports),e.exports}function BIe(t){return String.fromCharCode(parseInt(t.slice(1),16))}function DIe(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function FIe(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,BIe))}function OIe(t){return decodeURIComponent(Array.from(atob(t),DIe).join(\"\"))}function Vie(t){return FIe(JSON.stringify(t))}function LIe(t){return JSON.parse(OIe(t))}function t8(t){return typeof t>\"u\"}function NIe(t){return t===null}function fse(t){return NIe(t)||t8(t)}function UIe(t){return fse(t)?!1:!t8(t.jsonrpc)&&!t8(t.id)&&(!t8(t.result)||!t8(t.error))}function zIe(t){return fse(t)?!1:typeof t==\"number\"&&Object.values(Fv).includes(t)}function $k(t){if(!t)return!0;for(let e in t)if(Object.hasOwnProperty.call(t,e))return!1;return!0}function VIe(t,e){return Object.assign(ui,e),t}function HIe(){return new km(Ap.MissingApiKey,\"Please provide an API key that you acquired from the Magic developer dashboard.\")}function pse(){return new km(Ap.ModalNotReady,\"Modal is not ready\")}function jIe(){return new km(Ap.MalformedResponse,\"Response from the Magic iframe is malformed.\")}function $Ie(t){return new km(Ap.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \\\\`Extension.${t}\\\\` can be accessed. Do not invoke \\\\`Extension.${t}\\\\` inside an extension constructor.`)}function KIe(t){let e=`Some extensions are incompatible with \\\\`${ui.sdkName}@${ui.version}\\\\`:`;return t.filter(n=>typeof n.compat<\"u\"&&n.compat!==null).forEach(n=>{let r=n.compat[ui.sdkName];typeof r==\"string\"?e+=`\\n  - Extension \\\\`${n.name}\\\\` supports version(s) \\\\`${r}\\\\``:r||(e+=`\\n  - Extension \\\\`${n.name}\\\\` does not support ${ui.platform} environments.`)}),new km(Ap.IncompatibleExtensions,e)}function GIe(t){let e=n=>{let r=n+1,o=r%10,a=r%100;return o===1&&a!==11?`${r}st`:o===2&&a!==12?`${r}nd`:o===3&&a!==13?`${r}rd`:`${r}th`};return new km(Ap.InvalidArgument,`Invalid ${e(t.argument)} argument given to \\\\`${t.procedure}\\\\`.\\n  Expected: \\\\`${t.expected}\\\\`\\n  Received: \\\\`${t.received}\\\\``)}function qIe(){return new Vg(Am.DuplicateIframe,\"Duplicate iframes found.\")}function WIe(){return new Vg(Am.SyncWeb3Method,\"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.\")}function YIe(){return new Vg(Am.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \\\\`endpoint\\\\` parameter SHOULD NOT be provided. The Magic \\\\`<iframe>\\\\` is automatically wrapped by a WebView pointed at \\\\`${ui.defaultEndpoint}\\\\`. Changing this default behavior will lead to unexpected results and potentially security-threatening bugs.`)}function ZIe(t){let{method:e,removalVersions:n,useInstead:r}=t,o=n[ui.sdkName],a=r?` Use \\\\`${r}\\\\` instead.`:\"\",c=`\\\\`${e}\\\\` will be removed from \\\\`${ui.sdkName}\\\\` in version \\\\`${o}\\\\`.${a}`;return new Vg(Am.DeprecationNotice,c)}function*XIe(){let t=0;for(;;)t<Number.MAX_SAFE_INTEGER?yield++t:t=0}function hse(){return Ase.next().value}function wm(t){return async(...e)=>(Ok||(Ok=await ui.configureStorage()),await Ok.ready(),Ok[t](...e))}function JIe(){let t=window.crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&191|128;let e=\"\";return e+=t[0].toString(16),e+=t[1].toString(16),e+=t[2].toString(16),e+=t[3].toString(16),e+=\"-\",e+=t[4].toString(16),e+=t[5].toString(16),e+=\"-\",e+=t[6].toString(16),e+=t[7].toString(16),e+=\"-\",e+=t[8].toString(16),e+=t[9].toString(16),e+=\"-\",e+=t[10].toString(16),e+=t[11].toString(16),e+=t[12].toString(16),e+=t[13].toString(16),e+=t[14].toString(16),e+=t[15].toString(16),e}function Gk(){let t=typeof window<\"u\"&&!!window.crypto,e=t&&!!window.crypto.subtle;return t&&e}function QIe(){zg(i8),zg(qk)}async function eRe(){let t=await tRe();if(!t){console.info(\"unable to create public key or webcrypto is unsupported\");return}let{subtle:e}=window.crypto,n=await tl(qk);if(!n||!e){console.info(\"unable to find private key or webcrypto unsupported\");return}let r={iat:Math.floor(new Date().getTime()/1e3),jti:JIe()},o={protected:Hie(JSON.stringify({typ:\"dpop+jwt\",alg:\"ES256\",jwk:t})),claims:Hie(JSON.stringify(r))},a=rRe(`${o.protected}.${o.claims}`),c={name:pU,hash:{name:\"SHA-256\"}},l=iRe(new Uint8Array(await e.sign(c,n,a)));return`${o.protected}.${o.claims}.${l}`}async function tRe(){if(!Gk()){console.info(\"webcrypto is not supported\");return}return await tl(i8)||await nRe(),tl(i8)}async function nRe(){let{subtle:t}=window.crypto,e=await t.generateKey(kse,!1,[\"sign\"]),n=await t.exportKey(\"jwk\",e.publicKey);await Sp(qk,e.privateKey),await Sp(i8,n)}function Hie(t){return mse(oRe(t))}function rRe(t){return new TextEncoder().encode(t)}function mse(t){return btoa(t).replace(/\\\\+/g,\"-\").replace(/\\\\//g,\"_\").replace(/=+/g,\"\")}function oRe(t){return encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(e,n)=>String.fromCharCode(parseInt(n,16)))}function iRe(t){let e=\"\";return t.forEach(n=>{e+=String.fromCharCode(n)}),mse(e)}function gse(t){return Object.defineProperty(t,bU,{value:!0,enumerable:!1}),t}function aRe(t){return!!t[bU]}function Ik(t){return aRe(t)||(t.jsonrpc=t.jsonrpc??\"2.0\",t.id=hse(),t.method=t.method??\"noop\",t.params=t.params??[],gse(t)),t}function Fo(t,e=[]){return gse({params:e,method:t,jsonrpc:\"2.0\",id:hse()})}function yse(){let t=new Cse;return{emitter:t,createChainingEmitterMethod:(e,n)=>(...r)=>(t[e].apply(t,r),n),createBoundEmitterMethod:e=>(...n)=>t[e].apply(t,n)}}function vse(t){return!!t[wU]}function Bd(t){let e=xse(t),{createBoundEmitterMethod:n,createChainingEmitterMethod:r}=yse(),o=Symbol(\"Promise.then\"),a=Symbol(\"Promise.catch\"),c=Symbol(\"Promise.finally\"),l=(m,g)=>(...y)=>{let A=g[m].apply(g,y);return f(A)},f=m=>Object.assign(m,{[wU]:!0,[o]:m[o]||m.then,[a]:m[a]||m.catch,[c]:m[c]||m.finally,then:l(o,m),catch:l(a,m),finally:l(c,m),on:r(\"on\",m),once:r(\"once\",m),addListener:r(\"addListener\",m),off:r(\"off\",m),removeListener:r(\"removeListener\",m),removeAllListeners:r(\"removeAllListeners\",m),emit:n(\"emit\"),eventNames:n(\"eventNames\"),listeners:n(\"listeners\"),listenerCount:n(\"listenerCount\")}),p=f(e.then(m=>(p.emit(\"done\",m),p.emit(\"settled\"),m),m=>{throw p.emit(\"error\",m),p.emit(\"settled\"),m}));return p.on(jk.ClosedByUser,()=>{p.emit(Hk.ClosedByUser)}),p}function xse(t){return new Promise((e,n)=>{let r=t(e,n);Promise.resolve(r).catch(n)})}function sRe(t,e){let[n]=t.split(\".\").map(Number);return n>=e}async function jie(){let t=[];await fU((e,n,r)=>{n.startsWith(`${Wk}_`)&&t.push(n)});for(let e of t)await zg(e)}function bse(t){let e=\"\",n=new Uint8Array(t),r=n.byteLength;for(let o=0;o<r;o++)e+=String.fromCharCode(n[o]);return window.btoa(e)}function wse(t){let e=window.atob(t),n=e.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=e.charCodeAt(o);return r.buffer}async function cRe(){if(!Gk()){console.info(\"webcrypto is not supported\");return}let{crypto:t}=window;return await tl(Zk)||t.getRandomValues(new Uint8Array(12))}async function lRe(){if(!Gk()){console.info(\"webcrypto is not supported\");return}let{subtle:t}=window.crypto;return await tl(Yk)||await t.generateKey({name:Xk,length:Tse},!1,[\"encrypt\",\"decrypt\"])}async function uRe(t,e){let n=await cRe(),r=await lRe();if(!n||!r||!t)return;let o=wse(t),{subtle:a}=window.crypto,c=await a.encrypt({name:Xk,iv:n},r,o),l=bse(c);await Sp(`${Wk}_${e}`,l),await Sp(Yk,r),await Sp(Zk,n)}async function dRe(t){let e=await tl(`${Wk}_${t}`),n=await tl(Zk),r=await tl(Yk);if(!n||!e||!r||!Gk())return;let{subtle:o}=window.crypto,a=await o.decrypt({name:Xk,iv:n},r,wse(e));return bse(a)}function Kk(t,e){return e?new URL(t,e):new URL(t)}function $ie(t){return t.compat&&t.compat[ui.sdkName]!=null?typeof t.compat[ui.sdkName]==\"string\"?Ese(Sse(ui.version),t.compat[ui.sdkName]):!!t.compat[ui.sdkName]:!0}function fRe(t,e,n){return!e&&!n?`${t}_eth_mainnet`:n?`${t}_${JSON.stringify(n)}`:e?typeof e==\"string\"?`${t}_eth_${e}`:`${t}_${e.rpcUrl}_${e.chainId}_${e.chainType}`:`${t}_unknown`}function pRe(t){let e=t?.extensions??[],n={},r=[];if(Array.isArray(e)?e.forEach(o=>{$ie(o)?(o.init(this),o.name&&(this[o.name]=o),$k(o.config)||(n[o.name]=o.config)):r.push(o)}):Object.keys(e).forEach(o=>{if($ie(e[o])){e[o].init(this);let a=e[o];this[o]=a,$k(a.config)||(n[e[o].name]=a.config)}else r.push(e[o])}),r.length)throw KIe(r);return n}function hRe(t,e){return e&&Array.isArray(t)?t.find(n=>n.id===e):t}function mRe(t,e){let n=e.data.response?.id,r=hRe(t,n);if(n&&r){let o=new hU(r).applyResult(e.data.response.result).applyError(e.data.response.error);return{id:n,response:o}}return{}}async function gRe(t,e,n){let r=await tl(\"rt\"),o;if(ui.platform===\"web\")try{o=await tl(\"jwt\")??await eRe()}catch(l){console.error(\"webcrypto error\",l)}let a={msgType:t,payload:e};o&&(a.jwt=o),o&&r&&(a.rt=r);let c=await dRe(n);return c&&(a.deviceShare=c),a}async function yRe(t){t.data.rt&&await Sp(\"rt\",t.data.rt)}function vRe(t,e){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}function xRe(t){let e=Object.getPrototypeOf(t),n=[e];for(;e!==bp.prototype;)e=Object.getPrototypeOf(e),n.push(e);return n}var Kie,Rk,Gie,qie,Wie,Yie,Zie,Xie,Jie,Qie,eae,tae,Pk,nae,$o,Pv,fN,pN,rae,oae,hN,Z4,mN,gN,Bv,xp,iae,Dg,aae,sae,cae,lae,uae,dae,fae,pae,hae,mae,gae,yae,vae,Bk,Dv,Dk,yN,vN,Fk,rs,za,xae,bae,wae,xN,Eae,ks,Sae,Aae,kae,Cae,Tae,_ae,Mae,Iae,Rae,Pae,Ese,Bae,bN,wN,Dae,Fae,X4,J4,Sse,ui,Oae,km,n8,Vg,dU,zk,Ase,EN,Ok,tl,Sp,zg,Lae,Nae,Uae,zae,fU,qk,i8,pU,Vae,kse,bU,hU,Hae,Cse,wU,bp,jae,$ae,Wk,Yk,Zk,Xk,Tse,Kae,Gae,qae,Q4,Fg,Wae,Yae,_se,Zae,SN,AN,Xae,Mse,kN,Jae,Qae,EU,mU=a8({\"../../node_modules/.pnpm/@magic-sdk+provider@29.5.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.mjs\"(){\"use strict\";var t,e;Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Zs(),Kie=Object.create,Rk=Object.defineProperty,Gie=Object.getOwnPropertyDescriptor,qie=Object.getOwnPropertyNames,Wie=Object.getPrototypeOf,Yie=Object.prototype.hasOwnProperty,Zie=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),Xie=(n,r)=>{for(var o in r)Rk(n,o,{get:r[o],enumerable:!0})},Jie=(n,r,o,a)=>{if(r&&typeof r==\"object\"||typeof r==\"function\")for(let c of qie(r))!Yie.call(n,c)&&c!==o&&Rk(n,c,{get:()=>r[c],enumerable:!(a=Gie(r,c))||a.enumerable});return n},Qie=(n,r,o)=>(o=n!=null?Kie(Wie(n)):{},Jie(r||!n||!n.__esModule?Rk(o,\"default\",{value:n,enumerable:!0}):o,n)),eae=Zie((n,r)=>{\"use strict\";var o=Object.prototype.hasOwnProperty,a=\"~\";function c(){}Object.create&&(c.prototype=Object.create(null),new c().__proto__||(a=!1));function l(g,y,A){this.fn=g,this.context=y,this.once=A||!1}function f(g,y,A,T,R){if(typeof A!=\"function\")throw new TypeError(\"The listener must be a function\");var K=new l(A,T||g,R),O=a?a+y:y;return g._events[O]?g._events[O].fn?g._events[O]=[g._events[O],K]:g._events[O].push(K):(g._events[O]=K,g._eventsCount++),g}function p(g,y){--g._eventsCount===0?g._events=new c:delete g._events[y]}function m(){this._events=new c,this._eventsCount=0}m.prototype.eventNames=function(){var g=[],y,A;if(this._eventsCount===0)return g;for(A in y=this._events)o.call(y,A)&&g.push(a?A.slice(1):A);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(y)):g},m.prototype.listeners=function(g){var y=a?a+g:g,A=this._events[y];if(!A)return[];if(A.fn)return[A.fn];for(var T=0,R=A.length,K=new Array(R);T<R;T++)K[T]=A[T].fn;return K},m.prototype.listenerCount=function(g){var y=a?a+g:g,A=this._events[y];return A?A.fn?1:A.length:0},m.prototype.emit=function(g,y,A,T,R,K){var O=a?a+g:g;if(!this._events[O])return!1;var V=this._events[O],D=arguments.length,G,ee;if(V.fn){switch(V.once&&this.removeListener(g,V.fn,void 0,!0),D){case 1:return V.fn.call(V.context),!0;case 2:return V.fn.call(V.context,y),!0;case 3:return V.fn.call(V.context,y,A),!0;case 4:return V.fn.call(V.context,y,A,T),!0;case 5:return V.fn.call(V.context,y,A,T,R),!0;case 6:return V.fn.call(V.context,y,A,T,R,K),!0}for(ee=1,G=new Array(D-1);ee<D;ee++)G[ee-1]=arguments[ee];V.fn.apply(V.context,G)}else{var J=V.length,le;for(ee=0;ee<J;ee++)switch(V[ee].once&&this.removeListener(g,V[ee].fn,void 0,!0),D){case 1:V[ee].fn.call(V[ee].context);break;case 2:V[ee].fn.call(V[ee].context,y);break;case 3:V[ee].fn.call(V[ee].context,y,A);break;case 4:V[ee].fn.call(V[ee].context,y,A,T);break;default:if(!G)for(le=1,G=new Array(D-1);le<D;le++)G[le-1]=arguments[le];V[ee].fn.apply(V[ee].context,G)}}return!0},m.prototype.on=function(g,y,A){return f(this,g,y,A,!1)},m.prototype.once=function(g,y,A){return f(this,g,y,A,!0)},m.prototype.removeListener=function(g,y,A,T){var R=a?a+g:g;if(!this._events[R])return this;if(!y)return p(this,R),this;var K=this._events[R];if(K.fn)K.fn===y&&(!T||K.once)&&(!A||K.context===A)&&p(this,R);else{for(var O=0,V=[],D=K.length;O<D;O++)(K[O].fn!==y||T&&!K[O].once||A&&K[O].context!==A)&&V.push(K[O]);V.length?this._events[R]=V.length===1?V[0]:V:p(this,R)}return this},m.prototype.removeAllListeners=function(g){var y;return g?(y=a?a+g:g,this._events[y]&&p(this,y)):(this._events=new c,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prefixed=a,m.EventEmitter=m,typeof r<\"u\"&&(r.exports=m)}),tae=Number.MAX_SAFE_INTEGER||9007199254740991,Pk={SEMVER_SPEC_VERSION:\"2.0.0\",MAX_LENGTH:256,MAX_SAFE_INTEGER:tae,MAX_SAFE_COMPONENT_LENGTH:16},nae=typeof process==\"object\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error(\"SEMVER\",...n):()=>{},$o=nae,Pv=PIe(function(n,r){let{MAX_SAFE_COMPONENT_LENGTH:o}=Pk,a=(r=n.exports={}).re=[],c=r.src=[],l=r.t={},f=0,p=(m,g,y)=>{let A=f++;$o(A,g),l[m]=A,c[A]=g,a[A]=new RegExp(g,y?\"g\":void 0)};p(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\\\\\d*\"),p(\"NUMERICIDENTIFIERLOOSE\",\"[0-9]+\"),p(\"NONNUMERICIDENTIFIER\",\"\\\\\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\"),p(\"MAINVERSION\",`(${c[l.NUMERICIDENTIFIER]})\\\\\\\\.(${c[l.NUMERICIDENTIFIER]})\\\\\\\\.(${c[l.NUMERICIDENTIFIER]})`),p(\"MAINVERSIONLOOSE\",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p(\"PRERELEASEIDENTIFIER\",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p(\"PRERELEASE\",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\\\\\\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p(\"PRERELEASELOOSE\",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\\\\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p(\"BUILDIDENTIFIER\",\"[0-9A-Za-z-]+\"),p(\"BUILD\",`(?:\\\\\\\\+(${c[l.BUILDIDENTIFIER]}(?:\\\\\\\\.${c[l.BUILDIDENTIFIER]})*))`),p(\"FULLPLAIN\",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p(\"FULL\",`^${c[l.FULLPLAIN]}$`),p(\"LOOSEPLAIN\",`[v=\\\\\\\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p(\"LOOSE\",`^${c[l.LOOSEPLAIN]}$`),p(\"GTLT\",\"((?:<|>)?=?)\"),p(\"XRANGEIDENTIFIERLOOSE\",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\\\\\*`),p(\"XRANGEIDENTIFIER\",`${c[l.NUMERICIDENTIFIER]}|x|X|\\\\\\\\*`),p(\"XRANGEPLAIN\",`[v=\\\\\\\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${c[l.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p(\"XRANGEPLAINLOOSE\",`[v=\\\\\\\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p(\"XRANGE\",`^${c[l.GTLT]}\\\\\\\\s*${c[l.XRANGEPLAIN]}$`),p(\"XRANGELOOSE\",`^${c[l.GTLT]}\\\\\\\\s*${c[l.XRANGEPLAINLOOSE]}$`),p(\"COERCE\",`(^|[^\\\\\\\\d])(\\\\\\\\d{1,${o}})(?:\\\\\\\\.(\\\\\\\\d{1,${o}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${o}}))?(?:$|[^\\\\\\\\d])`),p(\"COERCERTL\",c[l.COERCE],!0),p(\"LONETILDE\",\"(?:~>?)\"),p(\"TILDETRIM\",`(\\\\\\\\s*)${c[l.LONETILDE]}\\\\\\\\s+`,!0),r.tildeTrimReplace=\"$1~\",p(\"TILDE\",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p(\"TILDELOOSE\",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p(\"LONECARET\",\"(?:\\\\\\\\^)\"),p(\"CARETTRIM\",`(\\\\\\\\s*)${c[l.LONECARET]}\\\\\\\\s+`,!0),r.caretTrimReplace=\"$1^\",p(\"CARET\",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p(\"CARETLOOSE\",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p(\"COMPARATORLOOSE\",`^${c[l.GTLT]}\\\\\\\\s*(${c[l.LOOSEPLAIN]})$|^$`),p(\"COMPARATOR\",`^${c[l.GTLT]}\\\\\\\\s*(${c[l.FULLPLAIN]})$|^$`),p(\"COMPARATORTRIM\",`(\\\\\\\\s*)${c[l.GTLT]}\\\\\\\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace=\"$1$2$3\",p(\"HYPHENRANGE\",`^\\\\\\\\s*(${c[l.XRANGEPLAIN]})\\\\\\\\s+-\\\\\\\\s+(${c[l.XRANGEPLAIN]})\\\\\\\\s*$`),p(\"HYPHENRANGELOOSE\",`^\\\\\\\\s*(${c[l.XRANGEPLAINLOOSE]})\\\\\\\\s+-\\\\\\\\s+(${c[l.XRANGEPLAINLOOSE]})\\\\\\\\s*$`),p(\"STAR\",\"(<|>)?=?\\\\\\\\s*\\\\\\\\*\"),p(\"GTE0\",\"^\\\\\\\\s*>=\\\\\\\\s*0.0.0\\\\\\\\s*$\"),p(\"GTE0PRE\",\"^\\\\\\\\s*>=\\\\\\\\s*0.0.0-0\\\\\\\\s*$\")}),fN=/^[0-9]+$/,pN=(n,r)=>{let o=fN.test(n),a=fN.test(r);return o&&a&&(n=+n,r=+r),n===r?0:o&&!a?-1:a&&!o?1:n<r?-1:1},rae=(n,r)=>pN(r,n),oae={compareIdentifiers:pN,rcompareIdentifiers:rae},{MAX_LENGTH:hN,MAX_SAFE_INTEGER:Z4}=Pk,{re:mN,t:gN}=Pv,{compareIdentifiers:Bv}=oae,xp=class Od{constructor(r,o){if(o&&typeof o==\"object\"||(o={loose:!!o,includePrerelease:!1}),r instanceof Od){if(r.loose===!!o.loose&&r.includePrerelease===!!o.includePrerelease)return r;r=r.version}else if(typeof r!=\"string\")throw new TypeError(`Invalid Version: ${r}`);if(r.length>hN)throw new TypeError(`version is longer than ${hN} characters`);$o(\"SemVer\",r,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;let a=r.trim().match(o.loose?mN[gN.LOOSE]:mN[gN.FULL]);if(!a)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>Z4||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>Z4||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>Z4||this.patch<0)throw new TypeError(\"Invalid patch version\");a[4]?this.prerelease=a[4].split(\".\").map(c=>{if(/^[0-9]+$/.test(c)){let l=+c;if(l>=0&&l<Z4)return l}return c}):this.prerelease=[],this.build=a[5]?a[5].split(\".\"):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(\".\")}`),this.version}toString(){return this.version}compare(r){if($o(\"SemVer.compare\",this.version,this.options,r),!(r instanceof Od)){if(typeof r==\"string\"&&r===this.version)return 0;r=new Od(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Od||(r=new Od(r,this.options)),Bv(this.major,r.major)||Bv(this.minor,r.minor)||Bv(this.patch,r.patch)}comparePre(r){if(r instanceof Od||(r=new Od(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let o=0;do{let a=this.prerelease[o],c=r.prerelease[o];if($o(\"prerelease compare\",o,a,c),a===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(a===void 0)return-1;if(a!==c)return Bv(a,c)}while(++o)}compareBuild(r){r instanceof Od||(r=new Od(r,this.options));let o=0;do{let a=this.build[o],c=r.build[o];if($o(\"prerelease compare\",o,a,c),a===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(a===void 0)return-1;if(a!==c)return Bv(a,c)}while(++o)}inc(r,o){switch(r){case\"premajor\":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(\"pre\",o);break;case\"preminor\":this.prerelease.length=0,this.patch=0,this.minor++,this.inc(\"pre\",o);break;case\"prepatch\":this.prerelease.length=0,this.inc(\"patch\",o),this.inc(\"pre\",o);break;case\"prerelease\":this.prerelease.length===0&&this.inc(\"patch\",o),this.inc(\"pre\",o);break;case\"major\":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case\"minor\":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case\"patch\":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case\"pre\":if(this.prerelease.length===0)this.prerelease=[0];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]==\"number\"&&(this.prerelease[a]++,a=-2);a===-1&&this.prerelease.push(0)}o&&(this.prerelease[0]===o?isNaN(this.prerelease[1])&&(this.prerelease=[o,0]):this.prerelease=[o,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}},iae=(n,r,o)=>new xp(n,o).compare(new xp(r,o)),Dg=iae,aae=(n,r,o)=>Dg(n,r,o)===0,sae=aae,cae=(n,r,o)=>Dg(n,r,o)!==0,lae=cae,uae=(n,r,o)=>Dg(n,r,o)>0,dae=uae,fae=(n,r,o)=>Dg(n,r,o)>=0,pae=fae,hae=(n,r,o)=>Dg(n,r,o)<0,mae=hae,gae=(n,r,o)=>Dg(n,r,o)<=0,yae=gae,vae=(n,r,o,a)=>{switch(r){case\"===\":return typeof n==\"object\"&&(n=n.version),typeof o==\"object\"&&(o=o.version),n===o;case\"!==\":return typeof n==\"object\"&&(n=n.version),typeof o==\"object\"&&(o=o.version),n!==o;case\"\":case\"=\":case\"==\":return sae(n,o,a);case\"!=\":return lae(n,o,a);case\">\":return dae(n,o,a);case\">=\":return pae(n,o,a);case\"<\":return mae(n,o,a);case\"<=\":return yae(n,o,a);default:throw new TypeError(`Invalid operator: ${r}`)}},Bk=vae,Dv=Symbol(\"SemVer ANY\"),Dk=class gU{static get ANY(){return Dv}constructor(r,o){if(o&&typeof o==\"object\"||(o={loose:!!o,includePrerelease:!1}),r instanceof gU){if(r.loose===!!o.loose)return r;r=r.value}$o(\"comparator\",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===Dv?this.value=\"\":this.value=this.operator+this.semver.version,$o(\"comp\",this)}parse(r){let o=this.options.loose?yN[vN.COMPARATORLOOSE]:yN[vN.COMPARATOR],a=r.match(o);if(!a)throw new TypeError(`Invalid comparator: ${r}`);this.operator=a[1]!==void 0?a[1]:\"\",this.operator===\"=\"&&(this.operator=\"\"),a[2]?this.semver=new xp(a[2],this.options.loose):this.semver=Dv}toString(){return this.value}test(r){if($o(\"Comparator.test\",r,this.options.loose),this.semver===Dv||r===Dv)return!0;if(typeof r==\"string\")try{r=new xp(r,this.options)}catch{return!1}return Bk(r,this.operator,this.semver,this.options)}intersects(r,o){if(!(r instanceof gU))throw new TypeError(\"a Comparator is required\");if(o&&typeof o==\"object\"||(o={loose:!!o,includePrerelease:!1}),this.operator===\"\")return this.value===\"\"||new Fk(r.value,o).test(this.value);if(r.operator===\"\")return r.value===\"\"||new Fk(this.value,o).test(r.semver);let a=!(this.operator!==\">=\"&&this.operator!==\">\"||r.operator!==\">=\"&&r.operator!==\">\"),c=!(this.operator!==\"<=\"&&this.operator!==\"<\"||r.operator!==\"<=\"&&r.operator!==\"<\"),l=this.semver.version===r.semver.version,f=!(this.operator!==\">=\"&&this.operator!==\"<=\"||r.operator!==\">=\"&&r.operator!==\"<=\"),p=Bk(this.semver,\"<\",r.semver,o)&&(this.operator===\">=\"||this.operator===\">\")&&(r.operator===\"<=\"||r.operator===\"<\"),m=Bk(this.semver,\">\",r.semver,o)&&(this.operator===\"<=\"||this.operator===\"<\")&&(r.operator===\">=\"||r.operator===\">\");return a||c||l&&f||p||m}},{re:yN,t:vN}=Pv,Fk=class Vk{constructor(r,o){if(o&&typeof o==\"object\"||(o={loose:!!o,includePrerelease:!1}),r instanceof Vk)return r.loose===!!o.loose&&r.includePrerelease===!!o.includePrerelease?r:new Vk(r.raw,o);if(r instanceof Dk)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=r,this.set=r.split(/\\\\s*\\\\|\\\\|\\\\s*/).map(a=>this.parseRange(a.trim())).filter(a=>a.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);this.format()}format(){return this.range=this.set.map(r=>r.join(\" \").trim()).join(\"||\").trim(),this.range}toString(){return this.range}parseRange(r){let{loose:o}=this.options;r=r.trim();let a=o?rs[za.HYPHENRANGELOOSE]:rs[za.HYPHENRANGE];r=r.replace(a,Rae(this.options.includePrerelease)),$o(\"hyphen replace\",r),r=r.replace(rs[za.COMPARATORTRIM],xae),$o(\"comparator trim\",r,rs[za.COMPARATORTRIM]),r=(r=(r=r.replace(rs[za.TILDETRIM],bae)).replace(rs[za.CARETTRIM],wae)).split(/\\\\s+/).join(\" \");let c=o?rs[za.COMPARATORLOOSE]:rs[za.COMPARATOR];return r.split(\" \").map(l=>Eae(l,this.options)).join(\" \").split(/\\\\s+/).map(l=>Iae(l,this.options)).filter(this.options.loose?l=>!!l.match(c):()=>!0).map(l=>new Dk(l,this.options))}intersects(r,o){if(!(r instanceof Vk))throw new TypeError(\"a Range is required\");return this.set.some(a=>xN(a,o)&&r.set.some(c=>xN(c,o)&&a.every(l=>c.every(f=>l.intersects(f,o)))))}test(r){if(!r)return!1;if(typeof r==\"string\")try{r=new xp(r,this.options)}catch{return!1}for(let o=0;o<this.set.length;o++)if(Pae(this.set[o],r,this.options))return!0;return!1}},{re:rs,t:za,comparatorTrimReplace:xae,tildeTrimReplace:bae,caretTrimReplace:wae}=Pv,xN=(n,r)=>{let o=!0,a=n.slice(),c=a.pop();for(;o&&a.length;)o=a.every(l=>c.intersects(l,r)),c=a.pop();return o},Eae=(n,r)=>($o(\"comp\",n,r),n=kae(n,r),$o(\"caret\",n),n=Sae(n,r),$o(\"tildes\",n),n=Tae(n,r),$o(\"xrange\",n),n=Mae(n,r),$o(\"stars\",n),n),ks=n=>!n||n.toLowerCase()===\"x\"||n===\"*\",Sae=(n,r)=>n.trim().split(/\\\\s+/).map(o=>Aae(o,r)).join(\" \"),Aae=(n,r)=>{let o=r.loose?rs[za.TILDELOOSE]:rs[za.TILDE];return n.replace(o,(a,c,l,f,p)=>{let m;return $o(\"tilde\",n,a,c,l,f,p),ks(c)?m=\"\":ks(l)?m=`>=${c}.0.0 <${+c+1}.0.0-0`:ks(f)?m=`>=${c}.${l}.0 <${c}.${+l+1}.0-0`:p?($o(\"replaceTilde pr\",p),m=`>=${c}.${l}.${f}-${p} <${c}.${+l+1}.0-0`):m=`>=${c}.${l}.${f} <${c}.${+l+1}.0-0`,$o(\"tilde return\",m),m})},kae=(n,r)=>n.trim().split(/\\\\s+/).map(o=>Cae(o,r)).join(\" \"),Cae=(n,r)=>{$o(\"caret\",n,r);let o=r.loose?rs[za.CARETLOOSE]:rs[za.CARET],a=r.includePrerelease?\"-0\":\"\";return n.replace(o,(c,l,f,p,m)=>{let g;return $o(\"caret\",n,c,l,f,p,m),ks(l)?g=\"\":ks(f)?g=`>=${l}.0.0${a} <${+l+1}.0.0-0`:ks(p)?g=l===\"0\"?`>=${l}.${f}.0${a} <${l}.${+f+1}.0-0`:`>=${l}.${f}.0${a} <${+l+1}.0.0-0`:m?($o(\"replaceCaret pr\",m),g=l===\"0\"?f===\"0\"?`>=${l}.${f}.${p}-${m} <${l}.${f}.${+p+1}-0`:`>=${l}.${f}.${p}-${m} <${l}.${+f+1}.0-0`:`>=${l}.${f}.${p}-${m} <${+l+1}.0.0-0`):($o(\"no pr\"),g=l===\"0\"?f===\"0\"?`>=${l}.${f}.${p}${a} <${l}.${f}.${+p+1}-0`:`>=${l}.${f}.${p}${a} <${l}.${+f+1}.0-0`:`>=${l}.${f}.${p} <${+l+1}.0.0-0`),$o(\"caret return\",g),g})},Tae=(n,r)=>($o(\"replaceXRanges\",n,r),n.split(/\\\\s+/).map(o=>_ae(o,r)).join(\" \")),_ae=(n,r)=>{n=n.trim();let o=r.loose?rs[za.XRANGELOOSE]:rs[za.XRANGE];return n.replace(o,(a,c,l,f,p,m)=>{$o(\"xRange\",n,a,c,l,f,p,m);let g=ks(l),y=g||ks(f),A=y||ks(p),T=A;return c===\"=\"&&T&&(c=\"\"),m=r.includePrerelease?\"-0\":\"\",g?a=c===\">\"||c===\"<\"?\"<0.0.0-0\":\"*\":c&&T?(y&&(f=0),p=0,c===\">\"?(c=\">=\",y?(l=+l+1,f=0,p=0):(f=+f+1,p=0)):c===\"<=\"&&(c=\"<\",y?l=+l+1:f=+f+1),c===\"<\"&&(m=\"-0\"),a=`${c+l}.${f}.${p}${m}`):y?a=`>=${l}.0.0${m} <${+l+1}.0.0-0`:A&&(a=`>=${l}.${f}.0${m} <${l}.${+f+1}.0-0`),$o(\"xRange return\",a),a})},Mae=(n,r)=>($o(\"replaceStars\",n,r),n.trim().replace(rs[za.STAR],\"\")),Iae=(n,r)=>($o(\"replaceGTE0\",n,r),n.trim().replace(rs[r.includePrerelease?za.GTE0PRE:za.GTE0],\"\")),Rae=n=>(r,o,a,c,l,f,p,m,g,y,A,T,R)=>`${o=ks(a)?\"\":ks(c)?`>=${a}.0.0${n?\"-0\":\"\"}`:ks(l)?`>=${a}.${c}.0${n?\"-0\":\"\"}`:f?`>=${o}`:`>=${o}${n?\"-0\":\"\"}`} ${m=ks(g)?\"\":ks(y)?`<${+g+1}.0.0-0`:ks(A)?`<${g}.${+y+1}.0-0`:T?`<=${g}.${y}.${A}-${T}`:n?`<${g}.${y}.${+A+1}-0`:`<=${m}`}`.trim(),Pae=(n,r,o)=>{for(let a=0;a<n.length;a++)if(!n[a].test(r))return!1;if(r.prerelease.length&&!o.includePrerelease){for(let a=0;a<n.length;a++)if($o(n[a].semver),n[a].semver!==Dk.ANY&&n[a].semver.prerelease.length>0){let c=n[a].semver;if(c.major===r.major&&c.minor===r.minor&&c.patch===r.patch)return!0}return!1}return!0},Ese=(n,r,o)=>{try{r=new Fk(r,o)}catch{return!1}return r.test(n)},{MAX_LENGTH:Bae}=Pk,{re:bN,t:wN}=Pv,Dae=(n,r)=>{if(r&&typeof r==\"object\"||(r={loose:!!r,includePrerelease:!1}),n instanceof xp)return n;if(typeof n!=\"string\"||n.length>Bae||!(r.loose?bN[wN.LOOSE]:bN[wN.FULL]).test(n))return null;try{return new xp(n,r)}catch{return null}},Fae=Dae,{re:X4,t:J4}=Pv,Sse=(n,r)=>{if(n instanceof xp)return n;if(typeof n==\"number\"&&(n=String(n)),typeof n!=\"string\")return null;let o=null;if((r=r||{}).rtl){let a;for(;(a=X4[J4.COERCERTL].exec(n))&&(!o||o.index+o[0].length!==n.length);)o&&a.index+a[0].length===o.index+o[0].length||(o=a),X4[J4.COERCERTL].lastIndex=a.index+a[1].length+a[2].length;X4[J4.COERCERTL].lastIndex=-1}else o=n.match(X4[J4.COERCE]);return o===null?null:Fae(`${o[2]}.${o[3]||\"0\"}.${o[4]||\"0\"}`,r)},ui={},Oae={\"magic-sdk\":\"magic-sdk\",\"@magic-sdk/react-native\":\"magic-sdk-rn\",\"@magic-sdk/react-native-bare\":\"magic-sdk-rn-bare\",\"@magic-sdk/react-native-expo\":\"magic-sdk-rn-expo\"},km=class Ise extends Error{constructor(o,a){super(`Magic SDK Error: [${o}] ${a}`);ge(this,\"__proto__\",Error);this.code=o,this.rawMessage=a,Object.setPrototypeOf(this,Ise.prototype)}},n8=class Rse extends Error{constructor(o){super();ge(this,\"__proto__\",Error);ge(this,\"code\");ge(this,\"rawMessage\");ge(this,\"data\");let a=Number(o?.code);this.rawMessage=o?.message||\"Internal error\",this.code=zIe(a)?a:Fv.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=o?.data||void 0,Object.setPrototypeOf(this,Rse.prototype)}},Vg=class{constructor(n,r){ge(this,\"message\");this.code=n,this.rawMessage=r,this.message=`Magic SDK Warning: [${n}] ${r}`}log(){console.warn(this.message)}},dU=class Pse extends Error{constructor(o,a,c,l){super(`Magic Extension Error (${o.name}): [${a}] ${c}`);ge(this,\"__proto__\",Error);this.code=a,this.rawMessage=c,this.data=l,Object.setPrototypeOf(this,Pse.prototype)}},zk=class{constructor(n,r,o){ge(this,\"message\");this.code=r,this.rawMessage=o,this.message=`Magic Extension Warning (${n.name}): [${r}] ${o}`}log(){console.warn(this.message)}},Ase=XIe(),EN={},Xie(EN,{clear:()=>Lae,getItem:()=>tl,iterate:()=>fU,key:()=>Uae,keys:()=>zae,length:()=>Nae,removeItem:()=>zg,setItem:()=>Sp}),tl=wm(\"getItem\"),Sp=wm(\"setItem\"),zg=wm(\"removeItem\"),Lae=wm(\"clear\"),Nae=wm(\"length\"),Uae=wm(\"key\"),zae=wm(\"keys\"),fU=wm(\"iterate\"),qk=\"STORE_KEY_PRIVATE_KEY\",i8=\"STORE_KEY_PUBLIC_JWK\",pU=\"ECDSA\",Vae=\"P-256\",kse={name:pU,namedCurve:Vae},bU=Symbol(\"Payload pre-processed by Magic SDK\"),hU=class Bse{constructor(r){ge(this,\"_jsonrpc\");ge(this,\"_id\");ge(this,\"_result\");ge(this,\"_error\");r instanceof Bse?(this._jsonrpc=r.payload.jsonrpc,this._id=r.payload.id,this._result=r.payload.result,this._error=r.payload.error):UIe(r)?(this._jsonrpc=r.jsonrpc,this._id=r.id,this._result=r.result,this._error=r.error):(this._jsonrpc=r.jsonrpc,this._id=r.id,this._result=void 0,this._error=void 0)}applyError(r){return this._error=r,this}applyResult(r){return this._result=r,this}get hasError(){return this._error?.code===Fv.DpopInvalidated&&QIe(),typeof this._error<\"u\"&&this._error!==null}get hasResult(){return typeof this._result<\"u\"}get payload(){return{jsonrpc:this._jsonrpc,id:this._id,result:this._result,error:this._error}}},Hae=Qie(eae()),Cse=class extends Hae.default{},wU=Symbol(\"isPromiEvent\"),bp=class{constructor(n){this.sdk=n}get overlay(){return this.sdk.overlay}request(n){if(this.sdk.thirdPartyWallets.isConnected&&!xU.includes(n.method))return Bd((c,l)=>{this.sdk.thirdPartyWallets.requestOverride(n).then(c).catch(l)});let r=this.overlay.post(Og.MAGIC_HANDLE_REQUEST,Ik(n)),o=Bd((c,l)=>{r.then(f=>{if(a(),f.hasError)l(new n8(f.payload.error));else if(f.hasResult)c(f.payload.result);else throw jIe()}).catch(f=>{a(),l(f)})}),a=this.overlay.on(Nd.MAGIC_HANDLE_EVENT,c=>{let{response:l}=c.data;if(l.id===n.id&&l.result?.event){let{event:f,params:p=[]}=l.result;o.emit(f,...p)}});return o}createIntermediaryEvent(n,r){return o=>{let a=Fo(Hr.IntermediaryEvent,[{payloadId:r,eventType:n,args:o}]);this.request(a)}}},jae={\"magic-sdk\":\"v18.0.0\",\"@magic-sdk/react-native\":\"v14.0.0\",\"@magic-sdk/react-native-bare\":\"v19.0.0\",\"@magic-sdk/react-native-expo\":\"v19.0.0\"},$ae=class extends bp{loginWithMagicLink(n){let r=ui.sdkName===\"@magic-sdk/react-native\"||ui.sdkName===\"@magic-sdk/react-native-bare\"||ui.sdkName===\"@magic-sdk/react-native-expo\";if(r&&sRe(ui.version,19))throw new Error(\"loginWithMagicLink() is deprecated for this package, please utilize a passcode method like loginWithSMS or loginWithEmailOTP instead.\");r&&ZIe({method:\"auth.loginWithMagicLink()\",removalVersions:jae,useInstead:\"auth.loginWithEmailOTP()\"}).log();let{email:o,showUI:a=!0,redirectURI:c,overrides:l,lifespan:f}=n,p=Fo(this.sdk.testMode?Hr.LoginWithMagicLinkTestMode:Hr.LoginWithMagicLink,[{email:o,showUI:a,redirectURI:c,overrides:l,lifespan:f}]);return this.request(p)}loginWithSMS(n){let{phoneNumber:r,showUI:o=!0,lifespan:a}=n,c=Fo(this.sdk.testMode?Hr.LoginWithSmsTestMode:Hr.LoginWithSms,[{phoneNumber:r,showUI:o,lifespan:a}]),l=this.request(c);return!o&&l&&(l.on(Lg.VerifySmsOtp,f=>{this.createIntermediaryEvent(Lg.VerifySmsOtp,c.id)(f)}),l.on(Lg.Cancel,()=>{this.createIntermediaryEvent(Lg.Cancel,c.id)()})),l}loginWithEmailOTP(n){let{email:r,showUI:o,deviceCheckUI:a,overrides:c,lifespan:l}=n,f=Fo(this.sdk.testMode?Hr.LoginWithEmailOTPTestMode:Hr.LoginWithEmailOTP,[{email:r,showUI:o,deviceCheckUI:a,overrides:c,lifespan:l}]),p=this.request(f);return!a&&p&&p.on(o8.Retry,()=>{this.createIntermediaryEvent(o8.Retry,f.id)()}),!o&&p&&(p.on(Qc.VerifyEmailOtp,m=>{this.createIntermediaryEvent(Qc.VerifyEmailOtp,f.id)(m)}),p.on(Qc.VerifyMFACode,m=>{this.createIntermediaryEvent(Qc.VerifyMFACode,f.id)(m)}),p.on(Qc.LostDevice,()=>{this.createIntermediaryEvent(Qc.LostDevice,f.id)()}),p.on(Qc.VerifyRecoveryCode,m=>{this.createIntermediaryEvent(Qc.VerifyRecoveryCode,f.id)(m)}),p.on(Qc.Cancel,()=>{this.createIntermediaryEvent(Qc.Cancel,f.id)()})),p}loginWithCredential(n){let{credentialOrQueryString:r,lifespan:o}=n||{},a=r??\"\";if(!r&&ui.platform===\"web\"){a=window.location.search;let l=window.location.origin+window.location.pathname;window.history.replaceState(null,\"\",l)}let c=Fo(this.sdk.testMode?Hr.LoginWithCredentialTestMode:Hr.LoginWithCredential,[a,o]);return this.request(c)}setAuthorizationToken(n){let r=Fo(Hr.SetAuthorizationToken,[{jwt:n}]);return this.request(r)}updateEmailWithUI(n){let{email:r,showUI:o=!0}=n,a=Fo(this.sdk.testMode?Hr.UpdateEmailTestMode:Hr.UpdateEmail,[{email:r,showUI:o}]),c=this.request(a);return o||(c.on(el.Retry,()=>{this.createIntermediaryEvent(el.Retry,a.id)()}),c.on(el.Cancel,()=>{this.createIntermediaryEvent(el.Cancel,a.id)()}),c.on(el.VerifyEmailOtp,l=>{this.createIntermediaryEvent(el.VerifyEmailOtp,a.id)(l)}),c.on(el.VerifyMFACode,l=>{this.createIntermediaryEvent(el.VerifyMFACode,a.id)(l)}),c.on(Xs.RetryWithNewEmail,l=>{this.createIntermediaryEvent(Xs.RetryWithNewEmail,a.id)(l)}),c.on(Xs.Cancel,()=>{this.createIntermediaryEvent(Xs.Cancel,a.id)()}),c.on(Xs.VerifyEmailOtp,l=>{this.createIntermediaryEvent(Xs.VerifyEmailOtp,a.id)(l)})),c}},Wk=\"ds\",Yk=\"ek\",Zk=\"iv\",Xk=\"AES-GCM\",Tse=256,Kae=class extends bp{constructor(){super(...arguments);ge(this,\"localForageIsLoggedInKey\",\"magic_auth_is_logged_in\");ge(this,\"userLoggedOutCallbacks\",[])}getIdToken(r){let o=Fo(this.sdk.testMode?Hr.GetIdTokenTestMode:Hr.GetIdToken,[r]);return this.request(o)}generateIdToken(r){let o=Fo(this.sdk.testMode?Hr.GenerateIdTokenTestMode:Hr.GenerateIdToken,[r]);return this.request(o)}getInfo(){let r=Fo(Hr.GetInfo,[]);return this.request(r)}isLoggedIn(){return Bd(async(r,o)=>{try{let a=!1;this.sdk.useStorageCache&&(a=await tl(this.localForageIsLoggedInKey)===\"true\",a&&r(!0));let c=Fo(this.sdk.testMode?Hr.IsLoggedInTestMode:Hr.IsLoggedIn),l=await this.request(c);this.sdk.useStorageCache&&(l?Sp(this.localForageIsLoggedInKey,!0):zg(this.localForageIsLoggedInKey),a&&!l&&this.emitUserLoggedOut(!0)),r(l)}catch(a){o(a)}})}logout(){return zg(this.localForageIsLoggedInKey),jie(),Bd(async(r,o)=>{try{let a=Fo(this.sdk.testMode?Hr.LogoutTestMode:Hr.Logout),c=await this.request(a);this.sdk.useStorageCache&&this.emitUserLoggedOut(c),r(c)}catch(a){o(a)}})}requestInfoWithUI(r){let o=Fo(Hr.RequestUserInfoWithUI,r?[r]:[]);return this.request(o)}showSettings(r){let{showUI:o=!0}=r||{},a=Fo(this.sdk.testMode?Hr.UserSettingsTestMode:Hr.UserSettings,[r]),c=this.request(a);return!o&&c&&(c.on(Mu.SendNewPhoneNumber,l=>{this.createIntermediaryEvent(Mu.SendNewPhoneNumber,a.id)(l)}),c.on(Mu.SendOtpCode,l=>{this.createIntermediaryEvent(Mu.SendOtpCode,a.id)(l)}),c.on(Mu.StartEditPhoneNumber,()=>{this.createIntermediaryEvent(Mu.StartEditPhoneNumber,a.id)()}),c.on(Mu.Cancel,()=>{this.createIntermediaryEvent(Mu.Cancel,a.id)()}),c.on(el.VerifyEmailOtp,l=>{this.createIntermediaryEvent(el.VerifyEmailOtp,a.id)(l)})),c}recoverAccount(r){let{email:o,showUI:a}=r,c=Fo(this.sdk.testMode?Hr.RecoverAccountTestMode:Hr.RecoverAccount,[{email:o,showUI:a}]),l=this.request(c);return!a&&l&&(l.on(Iu.Cancel,()=>{this.createIntermediaryEvent(Iu.Cancel,c.id)()}),l.on(Iu.ResendSms,()=>{this.createIntermediaryEvent(Iu.ResendSms,c.id)()}),l.on(Iu.VerifyOtp,f=>{this.createIntermediaryEvent(Iu.VerifyOtp,c.id)(f)}),l.on(Iu.UpdateEmail,f=>{this.createIntermediaryEvent(Iu.UpdateEmail,c.id)(f)}),l.on(Xs.Cancel,()=>{this.createIntermediaryEvent(Xs.Cancel,c.id)()}),l.on(Xs.RetryWithNewEmail,f=>{this.createIntermediaryEvent(Xs.RetryWithNewEmail,c.id)(f)}),l.on(Xs.VerifyEmailOtp,f=>{this.createIntermediaryEvent(Xs.VerifyEmailOtp,c.id)(f)})),l}revealPrivateKey(){let r=Fo(Hr.RevealPK);return this.request(r)}onUserLoggedOut(r){this.userLoggedOutCallbacks.push(r)}enableMFA(r){let{showUI:o=!0}=r,a=Fo(Hr.EnableMFA,[{showUI:o}]),c=this.request(a);return!o&&c&&(c.on(Ng.VerifyMFACode,l=>{this.createIntermediaryEvent(Ng.VerifyMFACode,a.id)(l)}),c.on(Ng.Cancel,()=>{this.createIntermediaryEvent(Ng.Cancel,a.id)()})),c}disableMFA(r){let{showUI:o=!0}=r,a=Fo(Hr.DisableMFA,[{showUI:o}]),c=this.request(a);return!o&&c&&(c.on(wp.VerifyMFACode,l=>{this.createIntermediaryEvent(wp.VerifyMFACode,a.id)(l)}),c.on(wp.LostDevice,l=>{this.createIntermediaryEvent(wp.LostDevice,a.id)(l)}),c.on(wp.Cancel,()=>{this.createIntermediaryEvent(wp.Cancel,a.id)()})),c}emitUserLoggedOut(r){this.userLoggedOutCallbacks.forEach(o=>{o(r)})}},Gae=class extends bp{connectWithUI(n){let r=Bd(async(o,a)=>{try{let c=Fo(Hr.Login,[{enabledWallets:this.sdk.thirdPartyWallets.enabledWallets,...n}]),l=this.request(c);this.sdk.thirdPartyWallets.eventListeners.forEach(({event:p,callback:m})=>{l.on(p,()=>m(c.id))}),l.on(\"id-token-created\",p=>{r.emit(\"id-token-created\",p)});let f=await l;f.error&&a(f),o(f)}catch(c){a(c)}});return r}showUI(n){return this.request(Fo(Hr.ShowUI,[n]))}showAddress(){return this.request(Fo(Hr.ShowAddress))}showSendTokensUI(){return this.request(Fo(Hr.ShowSendTokensUI))}showOnRamp(){return this.request(Fo(Hr.ShowOnRamp))}showNFTs(){return this.request(Fo(Hr.ShowNFTs))}showBalances(){return this.request(Fo(Hr.ShowBalances))}sendGaslessTransaction(n,r){return this.request(Fo(Hr.SendGaslessTransaction,[n,r]))}},qae=class extends bp{constructor(){super(...arguments);ge(this,\"eventListeners\",[]);ge(this,\"enabledWallets\",{});ge(this,\"isConnected\",!1)}resetThirdPartyWalletState(){localStorage.removeItem(Ld.PROVIDER),localStorage.removeItem(Ld.ADDRESS),localStorage.removeItem(Ld.CHAIN_ID),this.isConnected=!1}requestOverride(r){return r.method===Hr.Login?(this.resetThirdPartyWalletState(),super.request(r)):r.method===Hr.GetInfo?this.getInfo(r):r.method===Hr.IsLoggedIn?this.isLoggedIn(r):r.method===Hr.Logout?this.logout(r):localStorage.getItem(Ld.PROVIDER)===\"web3modal\"?this.web3modalRequest(r):(this.resetThirdPartyWalletState(),super.request(r))}isLoggedIn(r){return localStorage.getItem(Ld.PROVIDER)===\"web3modal\"?this.web3modalIsLoggedIn():(this.resetThirdPartyWalletState(),super.request(r))}getInfo(r){return localStorage.getItem(Ld.PROVIDER)===\"web3modal\"?this.web3modalGetInfo():(this.resetThirdPartyWalletState(),super.request(r))}logout(r){let o=localStorage.getItem(Ld.PROVIDER);return(this.resetThirdPartyWalletState(),o)===\"web3modal\"?this.web3modalLogout():super.request(r)}web3modalRequest(r){return Bd((o,a)=>{this.sdk.web3modal.modal.getWalletProvider().request(r).then(o).catch(a)})}web3modalIsLoggedIn(){return Bd(r=>{let o=this.sdk.web3modal.modal.getStatus();if(o===\"connected\"&&r(!0),o===\"disconnected\"&&(this.resetThirdPartyWalletState(),r(!1)),o===\"reconnecting\"){let a=this.sdk.web3modal.modal.subscribeProvider(({status:c})=>{c===\"connected\"&&(a(),r(!0)),c===\"disconnected\"&&(a(),this.resetThirdPartyWalletState(),r(!1))})}})}formatWeb3modalGetInfoResponse(){let r=this.sdk.web3modal.modal.getWalletInfo()?.name,o=this.sdk.web3modal.modal.getAddress();return{publicAddress:o,email:null,issuer:`did:ethr:${o}`,phoneNumber:null,isMfaEnabled:!1,recoveryFactors:[],walletType:r||\"web3modal\",firstLoginAt:null}}web3modalGetInfo(){return Bd((r,o)=>{let a=this.sdk.web3modal.modal.getStatus();if(a===\"connected\"&&r(this.formatWeb3modalGetInfoResponse()),a===\"disconnected\"&&(this.resetThirdPartyWalletState(),o(\"Magic RPC Error: [-32603] Internal error: User denied account access.\")),a===\"reconnecting\"){let c=this.sdk.web3modal.modal.subscribeProvider(({status:l})=>{l===\"connected\"&&(c(),r(this.formatWeb3modalGetInfoResponse())),l===\"disconnected\"&&(c(),this.resetThirdPartyWalletState(),o(\"Magic RPC Error: [-32603] Internal error: User denied account access.\"))})}})}web3modalLogout(){return Bd(async r=>{try{await this.sdk.web3modal.modal.disconnect()}catch(o){console.error(o)}r(!0)})}},{createBoundEmitterMethod:Q4,createChainingEmitterMethod:Fg}=yse(),Wae=class extends bp{constructor(){super(...arguments);ge(this,\"isMagic\",!0);ge(this,\"on\",Fg(\"on\",this));ge(this,\"once\",Fg(\"once\",this));ge(this,\"addListener\",Fg(\"addListener\",this));ge(this,\"off\",Fg(\"off\",this));ge(this,\"removeListener\",Fg(\"removeListener\",this));ge(this,\"removeAllListeners\",Fg(\"removeAllListeners\",this));ge(this,\"emit\",Q4(\"emit\"));ge(this,\"eventNames\",Q4(\"eventNames\"));ge(this,\"listeners\",Q4(\"listeners\"));ge(this,\"listenerCount\",Q4(\"listenerCount\"))}sendAsync(r,o){if(!o)throw GIe({procedure:\"Magic.rpcProvider.sendAsync\",argument:1,expected:\"function\",received:o===null?\"null\":typeof o});if(Array.isArray(r))this.overlay.post(Og.MAGIC_HANDLE_REQUEST,r.map(a=>{let c=Ik(a);return this.prefixPayloadMethodForTestMode(c),c})).then(a=>{o(null,a.map(c=>({...c.payload,error:c.hasError?new n8(c.payload.error):null})))});else{let a=Ik(r);this.prefixPayloadMethodForTestMode(a),this.overlay.post(Og.MAGIC_HANDLE_REQUEST,a).then(c=>{o(c.hasError?new n8(c.payload.error):null,c.payload)})}}send(r,o){if(typeof r==\"string\"){let c=Fo(r,Array.isArray(o)?o:[]);return this.request(c)}if(Array.isArray(r)||o){this.sendAsync(r,o);return}let a=WIe();return a.log(),new hU(r).applyError({code:-32603,message:a.rawMessage}).payload}enable(){let r=Fo(Hr.Login);return this.request(r)}request(r){return this.prefixPayloadMethodForTestMode(r),super.request(r)}prefixPayloadMethodForTestMode(r){let o=\"testMode/eth/\";this.sdk.testMode&&(r.method=`${o}${r.method}`)}},Yae=class extends bp{purchase(n){let r=Fo(Hr.NFTPurchase,[n]);return this.request(r)}checkout(n){let r=this.sdk.thirdPartyWallets.isConnected,o=Fo(Hr.NFTCheckout,[{...n,walletProvider:r?\"web3modal\":\"magic\"}]),a=this.request(o);return r&&(a.on(Ug.Initiated,async c=>{try{let l=await this.request({method:\"eth_sendTransaction\",params:[c]});this.createIntermediaryEvent(Ug.Success,o.id)(l)}catch{this.createIntermediaryEvent(Ug.Failure,o.id)()}}),a.on(Ug.Disconnect,()=>{this.sdk.thirdPartyWallets.resetThirdPartyWalletState(),a.emit(\"disconnect\")})),a}transfer(n){let r=Fo(Hr.NFTTransfer,[n]);return this.request(r)}},_se=(t=class{constructor(r,o){ge(this,\"endpoint\");ge(this,\"parameters\");ge(this,\"networkHash\");ge(this,\"testMode\");ge(this,\"useStorageCache\");ge(this,\"auth\");ge(this,\"user\");ge(this,\"wallet\");ge(this,\"nft\");ge(this,\"thirdPartyWallets\");ge(this,\"rpcProvider\");if(this.apiKey=r,!r)throw HIe();ui.platform===\"react-native\"&&o?.endpoint&&YIe().log();let{defaultEndpoint:a,version:c}=ui;this.testMode=!!o?.testMode,this.useStorageCache=!!o?.useStorageCache,this.endpoint=Kk(o?.endpoint??a).origin,this.auth=new $ae(this),this.user=new Kae(this),this.wallet=new Gae(this),this.nft=new Yae(this),this.thirdPartyWallets=new qae(this),this.rpcProvider=new Wae(this);let l=pRe.call(this,o);this.parameters=Vie({API_KEY:this.apiKey,DOMAIN_ORIGIN:typeof window<\"u\"&&window?.location?window?.location.origin:\"\",ETH_NETWORK:o?.network,host:Kk(this.endpoint).host,sdk:Oae[ui.sdkName],version:c,ext:$k(l)?void 0:l,locale:o?.locale||\"en_US\",authConfig:o?.authConfig?{...o.authConfig}:void 0,...ui.bundleId?{bundleId:ui.bundleId}:{},meta:o?.meta}),this.networkHash=fRe(this.apiKey,o?.network,$k(l)?void 0:l),o?.deferPreload||this.preload()}get overlay(){if(!t.__overlays__.has(this.parameters)){let r=new ui.ViewController(this.endpoint,this.parameters,this.networkHash);r.init(),t.__overlays__.set(this.parameters,r)}return t.__overlays__.get(this.parameters)}async preload(){await this.overlay.waitForReady()}},ge(t,\"__overlays__\",new Map),t),Zae=1e3,SN=60*Zae,AN=5*SN,Xae=60*SN,Mse=class{constructor(n,r,o){ge(this,\"isReadyForRequest\",!1);ge(this,\"messageHandlers\",new Set);ge(this,\"isConnectedToInternet\",!0);ge(this,\"lastPongTime\",null);ge(this,\"heartbeatIntervalTimer\",null);ge(this,\"heartbeatDebounce\",vRe(()=>{this.endpoint===\"https://auth.magic.link/\"&&this.heartBeatCheck()},Xae));this.endpoint=n,this.parameters=r,this.networkHash=o,this.listen()}async post(n,r){return xse(async(o,a)=>{if(!this.isConnectedToInternet){let g=pse();a(g)}await this.checkRelayerExistsInDOM()||(this.isReadyForRequest=!1,await this.reloadRelayer()),this.isReadyForRequest||await this.waitForReady();let c=[],l=Array.isArray(r)?r.map(g=>g.id):[],f=await gRe(`${n}-${this.parameters}`,r,this.networkHash);await this._post(f);let p=g=>y=>{let{id:A,response:T}=mRe(r,y);if(yRe(y),T?.payload.error?.message===\"User denied account access.\")jie();else if(y.data.deviceShare){let{deviceShare:R}=y.data;uRe(R,this.networkHash)}A&&T&&Array.isArray(r)&&l.includes(A)?(c.push(T),c.length===r.length&&(g(),o(c))):A&&T&&!Array.isArray(r)&&A===r.id&&(g(),o(T))},m=this.on(Nd.MAGIC_HANDLE_RESPONSE,p(()=>m()))})}on(n,r){let o=r.bind(window),a=c=>{c.data.msgType===`${n}-${this.parameters}`&&o(c)};return this.messageHandlers.add(a),()=>this.messageHandlers.delete(a)}waitForReady(){return new Promise(n=>{let r=this.on(Nd.MAGIC_OVERLAY_READY,()=>{this.isReadyForRequest=!0,n(),r()})})}listen(){this.on(Nd.MAGIC_HIDE_OVERLAY,()=>{this.hideOverlay()}),this.on(Nd.MAGIC_SHOW_OVERLAY,()=>{this.showOverlay()}),this.on(Nd.MAGIC_SEND_PRODUCT_ANNOUNCEMENT,n=>{n.data.response.result.product_announcement&&new Vg(Am.ProductAnnouncement,n.data.response.result.product_announcement).log()})}heartBeatCheck(){let n=!0,r=async()=>{let o={msgType:`${Og.MAGIC_PING}-${this.parameters}`,payload:[]};await this._post(o)};this.heartbeatIntervalTimer=setInterval(async()=>{if(this.lastPongTime){if(Date.now()-this.lastPongTime>AN*2){this.reloadRelayer(),n=!0;return}}else if(!n){this.reloadRelayer(),n=!0;return}await r(),n=!1},AN)}stopHeartBeat(){this.heartbeatDebounce(),this.lastPongTime=null,this.heartbeatIntervalTimer&&(clearInterval(this.heartbeatIntervalTimer),this.heartbeatIntervalTimer=null)}},kN=[\"request\",\"overlay\",\"sdk\"],Jae=class extends bp{constructor(){super(void 0);ge(this,\"compat\");ge(this,\"__sdk_access_field_descriptors__\",new Map);ge(this,\"__is_initialized__\",!1);ge(this,\"utils\",{createPromiEvent:Bd,isPromiEvent:vse,encodeJSON:Vie,decodeJSON:LIe,createJsonRpcRequestPayload:Fo,standardizeJsonRpcRequestPayload:Ik,storage:EN});let r=[this,...xRe(this)];kN.forEach(o=>{let a=r.map(p=>Object.getOwnPropertyDescriptor(p,o)),c=a.findIndex(p=>!!p),l=c>0,f=a[c];f&&(this.__sdk_access_field_descriptors__.set(o,{descriptor:f,isPrototypeField:l}),Object.defineProperty(this,o,{configurable:!0,get:()=>{throw $Ie(o)}}))})}init(r){this.__is_initialized__||(kN.forEach(o=>{if(this.__sdk_access_field_descriptors__.has(o)){let{descriptor:a,isPrototypeField:c}=this.__sdk_access_field_descriptors__.get(o);c?delete this[o]:Object.defineProperty(this,o,a)}}),this.sdk=r,this.__is_initialized__=!0)}createDeprecationWarning(r){let{method:o,removalVersion:a,useInstead:c}=r,l=c?` Use \\\\`${c}\\\\` instead.`:\"\",f=`\\\\`${o}\\\\` will be removed from this Extension in version \\\\`${a}\\\\`.${l}`;return new zk(this,\"DEPRECATION_NOTICE\",f)}createWarning(r,o){return new zk(this,r,o)}createError(r,o,a){return new dU(this,r,o,a)}},Qae=class extends Jae{},EU=(e=class{},ge(e,\"Internal\",Qae),e)}}),Dse=a8({\"../../node_modules/.pnpm/@magic-sdk+commons@25.4.2_@magic-sdk+provider@29.5.0_localforage@1.10.0__@magic-sdk+types@24.22.0/node_modules/@magic-sdk/commons/dist/es/index.mjs\"(){\"use strict\";mU(),Zs()}}),Fse={};dse(Fse,{AuthEventOnReceived:()=>tU,DeepLinkPage:()=>qN,DeviceVerificationEventEmit:()=>o8,DeviceVerificationEventOnReceived:()=>JN,DisableMFAEventEmit:()=>wp,DisableMFAEventOnReceived:()=>oU,EnableMFAEventEmit:()=>Ng,EnableMFAEventOnReceived:()=>rU,EthChainType:()=>iU,Extension:()=>EU,ExtensionError:()=>dU,ExtensionWarning:()=>zk,FarcasterLoginEventEmit:()=>nU,LocalStorageKeys:()=>Ld,LoginWithEmailOTPEventEmit:()=>Qc,LoginWithEmailOTPEventOnReceived:()=>XN,LoginWithMagicLinkEventEmit:()=>WN,LoginWithMagicLinkEventOnReceived:()=>YN,LoginWithSmsOTPEventEmit:()=>Lg,LoginWithSmsOTPEventOnReceived:()=>ZN,Magic:()=>Lse,MagicIncomingWindowMessage:()=>Nd,MagicOutgoingWindowMessage:()=>Og,MagicPayloadMethod:()=>Hr,NftCheckoutIntermediaryEvents:()=>Ug,RPCError:()=>n8,RPCErrorCode:()=>Fv,RecencyCheckEventEmit:()=>el,RecencyCheckEventOnReceived:()=>QN,RecoverAccountEventEmit:()=>Iu,RecoverAccountEventOnReceived:()=>cU,RecoveryFactorEventEmit:()=>Mu,RecoveryFactorEventOnReceived:()=>aU,RecoveryMethodType:()=>sU,SDKError:()=>km,SDKErrorCode:()=>Ap,SDKWarning:()=>Vg,SDKWarningCode:()=>Am,ThirdPartyWalletEvents:()=>GN,UiEventsEmit:()=>uU,UpdateEmailEventEmit:()=>Xs,UpdateEmailEventOnReceived:()=>eU,UserEventsEmit:()=>Hk,UserEventsOnReceived:()=>jk,WalletEventOnReceived:()=>lU,isPromiEvent:()=>vse,routeToMagicMethods:()=>xU});function bRe(t){for(let[e,n]of Object.entries(Ose))t.style[e]=n}function wRe(t){return!![].slice.call(document.querySelectorAll(\".magic-iframe\")).find(e=>e.src.includes(t))}var ese,CN,tse,nse,rse,ose,e8,TN,ise,_N,ase,sse,Lk,MN,Ose,cse,Lse,ERe=a8({\"../../node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.mjs\"(){\"use strict\";mU(),mU(),Zs(),Dse(),ese=Object.create,CN=Object.defineProperty,tse=Object.getOwnPropertyDescriptor,nse=Object.getOwnPropertyNames,rse=Object.getPrototypeOf,ose=Object.prototype.hasOwnProperty,e8=(t=>typeof Em<\"u\"?Em:typeof Proxy<\"u\"?new Proxy(t,{get:(e,n)=>(typeof Em<\"u\"?Em:e)[n]}):t)(function(t){if(typeof Em<\"u\")return Em.apply(this,arguments);throw Error(\\'Dynamic require of \"\\'+t+\\'\" is not supported\\')}),TN=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ise=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of nse(e))!ose.call(t,o)&&o!==n&&CN(t,o,{get:()=>e[o],enumerable:!(r=tse(e,o))||r.enumerable});return t},_N=(t,e,n)=>(n=t!=null?ese(rse(t)):{},ise(e||!t||!t.__esModule?CN(n,\"default\",{value:t,enumerable:!0}):n,t)),ase=TN((t,e)=>{\"use strict\";(function(n){if(typeof t==\"object\"&&typeof e<\"u\")e.exports=n();else if(typeof define==\"function\"&&define.amd)define([],n);else{var r;typeof window<\"u\"?r=window:typeof globalThis<\"u\"?r=globalThis:typeof self<\"u\"?r=self:r=this,r.localforage=n()}})(function(){var n,r,o;return(function a(c,l,f){function p(y,A){if(!l[y]){if(!c[y]){var T=typeof e8==\"function\"&&e8;if(!A&&T)return T(y,!0);if(m)return m(y,!0);var R=new Error(\"Cannot find module \\'\"+y+\"\\'\");throw R.code=\"MODULE_NOT_FOUND\",R}var K=l[y]={exports:{}};c[y][0].call(K.exports,function(O){var V=c[y][1][O];return p(V||O)},K,K.exports,a,c,l,f)}return l[y].exports}for(var m=typeof e8==\"function\"&&e8,g=0;g<f.length;g++)p(f[g]);return p})({1:[function(a,c,l){(function(f){\"use strict\";var p=f.MutationObserver||f.WebKitMutationObserver,m;if(p){var g=0,y=new p(O),A=f.document.createTextNode(\"\");y.observe(A,{characterData:!0}),m=function(){A.data=g=++g%2}}else if(!f.setImmediate&&typeof f.MessageChannel<\"u\"){var T=new f.MessageChannel;T.port1.onmessage=O,m=function(){T.port2.postMessage(0)}}else\"document\"in f&&\"onreadystatechange\"in f.document.createElement(\"script\")?m=function(){var D=f.document.createElement(\"script\");D.onreadystatechange=function(){O(),D.onreadystatechange=null,D.parentNode.removeChild(D),D=null},f.document.documentElement.appendChild(D)}:m=function(){setTimeout(O,0)};var R,K=[];function O(){R=!0;for(var D,G,ee=K.length;ee;){for(G=K,K=[],D=-1;++D<ee;)G[D]();ee=K.length}R=!1}c.exports=V;function V(D){K.push(D)===1&&!R&&m()}}).call(this,typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}],2:[function(a,c,l){\"use strict\";var f=a(1);function p(){}var m={},g=[\"REJECTED\"],y=[\"FULFILLED\"],A=[\"PENDING\"];c.exports=T;function T(se){if(typeof se!=\"function\")throw new TypeError(\"resolver must be a function\");this.state=A,this.queue=[],this.outcome=void 0,se!==p&&V(this,se)}T.prototype.catch=function(se){return this.then(null,se)},T.prototype.then=function(se,te){if(typeof se!=\"function\"&&this.state===y||typeof te!=\"function\"&&this.state===g)return this;var S=new this.constructor(p);if(this.state!==A){var _=this.state===y?se:te;K(S,_,this.outcome)}else this.queue.push(new R(S,se,te));return S};function R(se,te,S){this.promise=se,typeof te==\"function\"&&(this.onFulfilled=te,this.callFulfilled=this.otherCallFulfilled),typeof S==\"function\"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}R.prototype.callFulfilled=function(se){m.resolve(this.promise,se)},R.prototype.otherCallFulfilled=function(se){K(this.promise,this.onFulfilled,se)},R.prototype.callRejected=function(se){m.reject(this.promise,se)},R.prototype.otherCallRejected=function(se){K(this.promise,this.onRejected,se)};function K(se,te,S){f(function(){var _;try{_=te(S)}catch(P){return m.reject(se,P)}_===se?m.reject(se,new TypeError(\"Cannot resolve promise with itself\")):m.resolve(se,_)})}m.resolve=function(se,te){var S=D(O,te);if(S.status===\"error\")return m.reject(se,S.value);var _=S.value;if(_)V(se,_);else{se.state=y,se.outcome=te;for(var P=-1,z=se.queue.length;++P<z;)se.queue[P].callFulfilled(te)}return se},m.reject=function(se,te){se.state=g,se.outcome=te;for(var S=-1,_=se.queue.length;++S<_;)se.queue[S].callRejected(te);return se};function O(se){var te=se&&se.then;if(se&&(typeof se==\"object\"||typeof se==\"function\")&&typeof te==\"function\")return function(){te.apply(se,arguments)}}function V(se,te){var S=!1;function _(L){S||(S=!0,m.reject(se,L))}function P(L){S||(S=!0,m.resolve(se,L))}function z(){te(P,_)}var Y=D(z);Y.status===\"error\"&&_(Y.value)}function D(se,te){var S={};try{S.value=se(te),S.status=\"success\"}catch(_){S.status=\"error\",S.value=_}return S}T.resolve=G;function G(se){return se instanceof this?se:m.resolve(new this(p),se)}T.reject=ee;function ee(se){var te=new this(p);return m.reject(te,se)}T.all=J;function J(se){var te=this;if(Object.prototype.toString.call(se)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var S=se.length,_=!1;if(!S)return this.resolve([]);for(var P=new Array(S),z=0,Y=-1,L=new this(p);++Y<S;)U(se[Y],Y);return L;function U(W,w){te.resolve(W).then(I,function(ye){_||(_=!0,m.reject(L,ye))});function I(ye){P[w]=ye,++z===S&&!_&&(_=!0,m.resolve(L,P))}}}T.race=le;function le(se){var te=this;if(Object.prototype.toString.call(se)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var S=se.length,_=!1;if(!S)return this.resolve([]);for(var P=-1,z=new this(p);++P<S;)Y(se[P]);return z;function Y(L){te.resolve(L).then(function(U){_||(_=!0,m.resolve(z,U))},function(U){_||(_=!0,m.reject(z,U))})}}},{1:1}],3:[function(a,c,l){(function(f){\"use strict\";typeof f.Promise!=\"function\"&&(f.Promise=a(2))}).call(this,typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{2:2}],4:[function(a,c,l){\"use strict\";var f=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(xe){return typeof xe}:function(xe){return xe&&typeof Symbol==\"function\"&&xe.constructor===Symbol&&xe!==Symbol.prototype?\"symbol\":typeof xe};function p(xe,Ne){if(!(xe instanceof Ne))throw new TypeError(\"Cannot call a class as a function\")}function m(){try{if(typeof indexedDB<\"u\")return indexedDB;if(typeof webkitIndexedDB<\"u\")return webkitIndexedDB;if(typeof mozIndexedDB<\"u\")return mozIndexedDB;if(typeof OIndexedDB<\"u\")return OIndexedDB;if(typeof msIndexedDB<\"u\")return msIndexedDB}catch{return}}var g=m();function y(){try{if(!g||!g.open)return!1;var xe=typeof openDatabase<\"u\"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Ne=typeof fetch==\"function\"&&fetch.toString().indexOf(\"[native code\")!==-1;return(!xe||Ne)&&typeof indexedDB<\"u\"&&typeof IDBKeyRange<\"u\"}catch{return!1}}function A(xe,Ne){xe=xe||[],Ne=Ne||{};try{return new Blob(xe,Ne)}catch(Ce){if(Ce.name!==\"TypeError\")throw Ce;for(var ze=typeof BlobBuilder<\"u\"?BlobBuilder:typeof MSBlobBuilder<\"u\"?MSBlobBuilder:typeof MozBlobBuilder<\"u\"?MozBlobBuilder:WebKitBlobBuilder,Ae=new ze,tt=0;tt<xe.length;tt+=1)Ae.append(xe[tt]);return Ae.getBlob(Ne.type)}}typeof Promise>\"u\"&&a(3);var T=Promise;function R(xe,Ne){Ne&&xe.then(function(ze){Ne(null,ze)},function(ze){Ne(ze)})}function K(xe,Ne,ze){typeof Ne==\"function\"&&xe.then(Ne),typeof ze==\"function\"&&xe.catch(ze)}function O(xe){return typeof xe!=\"string\"&&(console.warn(xe+\" used as a key, but it is not a string.\"),xe=String(xe)),xe}function V(){if(arguments.length&&typeof arguments[arguments.length-1]==\"function\")return arguments[arguments.length-1]}var D=\"local-forage-detect-blob-support\",G=void 0,ee={},J=Object.prototype.toString,le=\"readonly\",se=\"readwrite\";function te(xe){for(var Ne=xe.length,ze=new ArrayBuffer(Ne),Ae=new Uint8Array(ze),tt=0;tt<Ne;tt++)Ae[tt]=xe.charCodeAt(tt);return ze}function S(xe){return new T(function(Ne){var ze=xe.transaction(D,se),Ae=A([\"\"]);ze.objectStore(D).put(Ae,\"key\"),ze.onabort=function(tt){tt.preventDefault(),tt.stopPropagation(),Ne(!1)},ze.oncomplete=function(){var tt=navigator.userAgent.match(/Chrome\\\\/(\\\\d+)/),Ce=navigator.userAgent.match(/Edge\\\\//);Ne(Ce||!tt||parseInt(tt[1],10)>=43)}}).catch(function(){return!1})}function _(xe){return typeof G==\"boolean\"?T.resolve(G):S(xe).then(function(Ne){return G=Ne,G})}function P(xe){var Ne=ee[xe.name],ze={};ze.promise=new T(function(Ae,tt){ze.resolve=Ae,ze.reject=tt}),Ne.deferredOperations.push(ze),Ne.dbReady?Ne.dbReady=Ne.dbReady.then(function(){return ze.promise}):Ne.dbReady=ze.promise}function z(xe){var Ne=ee[xe.name],ze=Ne.deferredOperations.pop();if(ze)return ze.resolve(),ze.promise}function Y(xe,Ne){var ze=ee[xe.name],Ae=ze.deferredOperations.pop();if(Ae)return Ae.reject(Ne),Ae.promise}function L(xe,Ne){return new T(function(ze,Ae){if(ee[xe.name]=ee[xe.name]||q(),xe.db)if(Ne)P(xe),xe.db.close();else return ze(xe.db);var tt=[xe.name];Ne&&tt.push(xe.version);var Ce=g.open.apply(g,tt);Ne&&(Ce.onupgradeneeded=function(_t){var Lt=Ce.result;try{Lt.createObjectStore(xe.storeName),_t.oldVersion<=1&&Lt.createObjectStore(D)}catch(Dt){if(Dt.name===\"ConstraintError\")console.warn(\\'The database \"\\'+xe.name+\\'\" has been upgraded from version \\'+_t.oldVersion+\" to version \"+_t.newVersion+\\', but the storage \"\\'+xe.storeName+\\'\" already exists.\\');else throw Dt}}),Ce.onerror=function(_t){_t.preventDefault(),Ae(Ce.error)},Ce.onsuccess=function(){var _t=Ce.result;_t.onversionchange=function(Lt){Lt.target.close()},ze(_t),z(xe)}})}function U(xe){return L(xe,!1)}function W(xe){return L(xe,!0)}function w(xe,Ne){if(!xe.db)return!0;var ze=!xe.db.objectStoreNames.contains(xe.storeName),Ae=xe.version<xe.db.version,tt=xe.version>xe.db.version;if(Ae&&(xe.version!==Ne&&console.warn(\\'The database \"\\'+xe.name+`\" can\\'t be downgraded from version `+xe.db.version+\" to version \"+xe.version+\".\"),xe.version=xe.db.version),tt||ze){if(ze){var Ce=xe.db.version+1;Ce>xe.version&&(xe.version=Ce)}return!0}return!1}function I(xe){return new T(function(Ne,ze){var Ae=new FileReader;Ae.onerror=ze,Ae.onloadend=function(tt){var Ce=btoa(tt.target.result||\"\");Ne({__local_forage_encoded_blob:!0,data:Ce,type:xe.type})},Ae.readAsBinaryString(xe)})}function ye(xe){var Ne=te(atob(xe.data));return A([Ne],{type:xe.type})}function ne(xe){return xe&&xe.__local_forage_encoded_blob}function Q(xe){var Ne=this,ze=Ne._initReady().then(function(){var Ae=ee[Ne._dbInfo.name];if(Ae&&Ae.dbReady)return Ae.dbReady});return K(ze,xe,xe),ze}function ie(xe){P(xe);for(var Ne=ee[xe.name],ze=Ne.forages,Ae=0;Ae<ze.length;Ae++){var tt=ze[Ae];tt._dbInfo.db&&(tt._dbInfo.db.close(),tt._dbInfo.db=null)}return xe.db=null,U(xe).then(function(Ce){return xe.db=Ce,w(xe)?W(xe):Ce}).then(function(Ce){xe.db=Ne.db=Ce;for(var _t=0;_t<ze.length;_t++)ze[_t]._dbInfo.db=Ce}).catch(function(Ce){throw Y(xe,Ce),Ce})}function ue(xe,Ne,ze,Ae){Ae===void 0&&(Ae=1);try{var tt=xe.db.transaction(xe.storeName,Ne);ze(null,tt)}catch(Ce){if(Ae>0&&(!xe.db||Ce.name===\"InvalidStateError\"||Ce.name===\"NotFoundError\"))return T.resolve().then(function(){if(!xe.db||Ce.name===\"NotFoundError\"&&!xe.db.objectStoreNames.contains(xe.storeName)&&xe.version<=xe.db.version)return xe.db&&(xe.version=xe.db.version+1),W(xe)}).then(function(){return ie(xe).then(function(){ue(xe,Ne,ze,Ae-1)})}).catch(ze);ze(Ce)}}function q(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ee(xe){var Ne=this,ze={db:null};if(xe)for(var Ae in xe)ze[Ae]=xe[Ae];var tt=ee[ze.name];tt||(tt=q(),ee[ze.name]=tt),tt.forages.push(Ne),Ne._initReady||(Ne._initReady=Ne.ready,Ne.ready=Q);var Ce=[];function _t(){return T.resolve()}for(var Lt=0;Lt<tt.forages.length;Lt++){var Dt=tt.forages[Lt];Dt!==Ne&&Ce.push(Dt._initReady().catch(_t))}var yt=tt.forages.slice(0);return T.all(Ce).then(function(){return ze.db=tt.db,U(ze)}).then(function(Zt){return ze.db=Zt,w(ze,Ne._defaultConfig.version)?W(ze):Zt}).then(function(Zt){ze.db=tt.db=Zt,Ne._dbInfo=ze;for(var Jt=0;Jt<yt.length;Jt++){var Qn=yt[Jt];Qn!==Ne&&(Qn._dbInfo.db=ze.db,Qn._dbInfo.version=ze.version)}})}function we(xe,Ne){var ze=this;xe=O(xe);var Ae=new T(function(tt,Ce){ze.ready().then(function(){ue(ze._dbInfo,le,function(_t,Lt){if(_t)return Ce(_t);try{var Dt=Lt.objectStore(ze._dbInfo.storeName),yt=Dt.get(xe);yt.onsuccess=function(){var Zt=yt.result;Zt===void 0&&(Zt=null),ne(Zt)&&(Zt=ye(Zt)),tt(Zt)},yt.onerror=function(){Ce(yt.error)}}catch(Zt){Ce(Zt)}})}).catch(Ce)});return R(Ae,Ne),Ae}function _e(xe,Ne){var ze=this,Ae=new T(function(tt,Ce){ze.ready().then(function(){ue(ze._dbInfo,le,function(_t,Lt){if(_t)return Ce(_t);try{var Dt=Lt.objectStore(ze._dbInfo.storeName),yt=Dt.openCursor(),Zt=1;yt.onsuccess=function(){var Jt=yt.result;if(Jt){var Qn=Jt.value;ne(Qn)&&(Qn=ye(Qn));var Xn=xe(Qn,Jt.key,Zt++);Xn!==void 0?tt(Xn):Jt.continue()}else tt()},yt.onerror=function(){Ce(yt.error)}}catch(Jt){Ce(Jt)}})}).catch(Ce)});return R(Ae,Ne),Ae}function B(xe,Ne,ze){var Ae=this;xe=O(xe);var tt=new T(function(Ce,_t){var Lt;Ae.ready().then(function(){return Lt=Ae._dbInfo,J.call(Ne)===\"[object Blob]\"?_(Lt.db).then(function(Dt){return Dt?Ne:I(Ne)}):Ne}).then(function(Dt){ue(Ae._dbInfo,se,function(yt,Zt){if(yt)return _t(yt);try{var Jt=Zt.objectStore(Ae._dbInfo.storeName);Dt===null&&(Dt=void 0);var Qn=Jt.put(Dt,xe);Zt.oncomplete=function(){Dt===void 0&&(Dt=null),Ce(Dt)},Zt.onabort=Zt.onerror=function(){var Xn=Qn.error?Qn.error:Qn.transaction.error;_t(Xn)}}catch(Xn){_t(Xn)}})}).catch(_t)});return R(tt,ze),tt}function k(xe,Ne){var ze=this;xe=O(xe);var Ae=new T(function(tt,Ce){ze.ready().then(function(){ue(ze._dbInfo,se,function(_t,Lt){if(_t)return Ce(_t);try{var Dt=Lt.objectStore(ze._dbInfo.storeName),yt=Dt.delete(xe);Lt.oncomplete=function(){tt()},Lt.onerror=function(){Ce(yt.error)},Lt.onabort=function(){var Zt=yt.error?yt.error:yt.transaction.error;Ce(Zt)}}catch(Zt){Ce(Zt)}})}).catch(Ce)});return R(Ae,Ne),Ae}function C(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){ue(Ne._dbInfo,se,function(Ce,_t){if(Ce)return tt(Ce);try{var Lt=_t.objectStore(Ne._dbInfo.storeName),Dt=Lt.clear();_t.oncomplete=function(){Ae()},_t.onabort=_t.onerror=function(){var yt=Dt.error?Dt.error:Dt.transaction.error;tt(yt)}}catch(yt){tt(yt)}})}).catch(tt)});return R(ze,xe),ze}function Z(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){ue(Ne._dbInfo,le,function(Ce,_t){if(Ce)return tt(Ce);try{var Lt=_t.objectStore(Ne._dbInfo.storeName),Dt=Lt.count();Dt.onsuccess=function(){Ae(Dt.result)},Dt.onerror=function(){tt(Dt.error)}}catch(yt){tt(yt)}})}).catch(tt)});return R(ze,xe),ze}function X(xe,Ne){var ze=this,Ae=new T(function(tt,Ce){if(xe<0){tt(null);return}ze.ready().then(function(){ue(ze._dbInfo,le,function(_t,Lt){if(_t)return Ce(_t);try{var Dt=Lt.objectStore(ze._dbInfo.storeName),yt=!1,Zt=Dt.openKeyCursor();Zt.onsuccess=function(){var Jt=Zt.result;if(!Jt){tt(null);return}xe===0||yt?tt(Jt.key):(yt=!0,Jt.advance(xe))},Zt.onerror=function(){Ce(Zt.error)}}catch(Jt){Ce(Jt)}})}).catch(Ce)});return R(Ae,Ne),Ae}function ae(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){ue(Ne._dbInfo,le,function(Ce,_t){if(Ce)return tt(Ce);try{var Lt=_t.objectStore(Ne._dbInfo.storeName),Dt=Lt.openKeyCursor(),yt=[];Dt.onsuccess=function(){var Zt=Dt.result;if(!Zt){Ae(yt);return}yt.push(Zt.key),Zt.continue()},Dt.onerror=function(){tt(Dt.error)}}catch(Zt){tt(Zt)}})}).catch(tt)});return R(ze,xe),ze}function de(xe,Ne){Ne=V.apply(this,arguments);var ze=this.config();xe=typeof xe!=\"function\"&&xe||{},xe.name||(xe.name=xe.name||ze.name,xe.storeName=xe.storeName||ze.storeName);var Ae=this,tt;if(!xe.name)tt=T.reject(\"Invalid arguments\");else{var Ce=xe.name===ze.name&&Ae._dbInfo.db,_t=Ce?T.resolve(Ae._dbInfo.db):U(xe).then(function(Lt){var Dt=ee[xe.name],yt=Dt.forages;Dt.db=Lt;for(var Zt=0;Zt<yt.length;Zt++)yt[Zt]._dbInfo.db=Lt;return Lt});xe.storeName?tt=_t.then(function(Lt){if(Lt.objectStoreNames.contains(xe.storeName)){var Dt=Lt.version+1;P(xe);var yt=ee[xe.name],Zt=yt.forages;Lt.close();for(var Jt=0;Jt<Zt.length;Jt++){var Qn=Zt[Jt];Qn._dbInfo.db=null,Qn._dbInfo.version=Dt}var Xn=new T(function(tr,gr){var yr=g.open(xe.name,Dt);yr.onerror=function(Br){var no=yr.result;no.close(),gr(Br)},yr.onupgradeneeded=function(){var Br=yr.result;Br.deleteObjectStore(xe.storeName)},yr.onsuccess=function(){var Br=yr.result;Br.close(),tr(Br)}});return Xn.then(function(tr){yt.db=tr;for(var gr=0;gr<Zt.length;gr++){var yr=Zt[gr];yr._dbInfo.db=tr,z(yr._dbInfo)}}).catch(function(tr){throw(Y(xe,tr)||T.resolve()).catch(function(){}),tr})}}):tt=_t.then(function(Lt){P(xe);var Dt=ee[xe.name],yt=Dt.forages;Lt.close();for(var Zt=0;Zt<yt.length;Zt++){var Jt=yt[Zt];Jt._dbInfo.db=null}var Qn=new T(function(Xn,tr){var gr=g.deleteDatabase(xe.name);gr.onerror=function(){var yr=gr.result;yr&&yr.close(),tr(gr.error)},gr.onblocked=function(){console.warn(\\'dropInstance blocked for database \"\\'+xe.name+\\'\" until all open connections are closed\\')},gr.onsuccess=function(){var yr=gr.result;yr&&yr.close(),Xn(yr)}});return Qn.then(function(Xn){Dt.db=Xn;for(var tr=0;tr<yt.length;tr++){var gr=yt[tr];z(gr._dbInfo)}}).catch(function(Xn){throw(Y(xe,Xn)||T.resolve()).catch(function(){}),Xn})})}return R(tt,Ne),tt}var me={_driver:\"asyncStorage\",_initStorage:Ee,_support:y(),iterate:_e,getItem:we,setItem:B,removeItem:k,clear:C,length:Z,key:X,keys:ae,dropInstance:de};function Pe(){return typeof openDatabase==\"function\"}var De=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",Re=\"~~local_forage_type~\",qe=/^~~local_forage_type~([^~]+)~/,et=\"__lfsc__:\",ot=et.length,Qe=\"arbf\",xt=\"blob\",Wt=\"si08\",Vt=\"ui08\",Bt=\"uic8\",nn=\"si16\",Yt=\"si32\",hn=\"ur16\",Pn=\"ui32\",Mn=\"fl32\",Un=\"fl64\",Wn=ot+Qe.length,Kn=Object.prototype.toString;function Se(xe){var Ne=xe.length*.75,ze=xe.length,Ae,tt=0,Ce,_t,Lt,Dt;xe[xe.length-1]===\"=\"&&(Ne--,xe[xe.length-2]===\"=\"&&Ne--);var yt=new ArrayBuffer(Ne),Zt=new Uint8Array(yt);for(Ae=0;Ae<ze;Ae+=4)Ce=De.indexOf(xe[Ae]),_t=De.indexOf(xe[Ae+1]),Lt=De.indexOf(xe[Ae+2]),Dt=De.indexOf(xe[Ae+3]),Zt[tt++]=Ce<<2|_t>>4,Zt[tt++]=(_t&15)<<4|Lt>>2,Zt[tt++]=(Lt&3)<<6|Dt&63;return yt}function it(xe){var Ne=new Uint8Array(xe),ze=\"\",Ae;for(Ae=0;Ae<Ne.length;Ae+=3)ze+=De[Ne[Ae]>>2],ze+=De[(Ne[Ae]&3)<<4|Ne[Ae+1]>>4],ze+=De[(Ne[Ae+1]&15)<<2|Ne[Ae+2]>>6],ze+=De[Ne[Ae+2]&63];return Ne.length%3===2?ze=ze.substring(0,ze.length-1)+\"=\":Ne.length%3===1&&(ze=ze.substring(0,ze.length-2)+\"==\"),ze}function Nt(xe,Ne){var ze=\"\";if(xe&&(ze=Kn.call(xe)),xe&&(ze===\"[object ArrayBuffer]\"||xe.buffer&&Kn.call(xe.buffer)===\"[object ArrayBuffer]\")){var Ae,tt=et;xe instanceof ArrayBuffer?(Ae=xe,tt+=Qe):(Ae=xe.buffer,ze===\"[object Int8Array]\"?tt+=Wt:ze===\"[object Uint8Array]\"?tt+=Vt:ze===\"[object Uint8ClampedArray]\"?tt+=Bt:ze===\"[object Int16Array]\"?tt+=nn:ze===\"[object Uint16Array]\"?tt+=hn:ze===\"[object Int32Array]\"?tt+=Yt:ze===\"[object Uint32Array]\"?tt+=Pn:ze===\"[object Float32Array]\"?tt+=Mn:ze===\"[object Float64Array]\"?tt+=Un:Ne(new Error(\"Failed to get type for BinaryArray\"))),Ne(tt+it(Ae))}else if(ze===\"[object Blob]\"){var Ce=new FileReader;Ce.onload=function(){var _t=Re+xe.type+\"~\"+it(this.result);Ne(et+xt+_t)},Ce.readAsArrayBuffer(xe)}else try{Ne(JSON.stringify(xe))}catch(_t){console.error(\"Couldn\\'t convert value into a JSON string: \",xe),Ne(null,_t)}}function tn(xe){if(xe.substring(0,ot)!==et)return JSON.parse(xe);var Ne=xe.substring(Wn),ze=xe.substring(ot,Wn),Ae;if(ze===xt&&qe.test(Ne)){var tt=Ne.match(qe);Ae=tt[1],Ne=Ne.substring(tt[0].length)}var Ce=Se(Ne);switch(ze){case Qe:return Ce;case xt:return A([Ce],{type:Ae});case Wt:return new Int8Array(Ce);case Vt:return new Uint8Array(Ce);case Bt:return new Uint8ClampedArray(Ce);case nn:return new Int16Array(Ce);case hn:return new Uint16Array(Ce);case Yt:return new Int32Array(Ce);case Pn:return new Uint32Array(Ce);case Mn:return new Float32Array(Ce);case Un:return new Float64Array(Ce);default:throw new Error(\"Unkown type: \"+ze)}}var pn={serialize:Nt,deserialize:tn,stringToBuffer:Se,bufferToString:it};function kn(xe,Ne,ze,Ae){xe.executeSql(\"CREATE TABLE IF NOT EXISTS \"+Ne.storeName+\" (id INTEGER PRIMARY KEY, key unique, value)\",[],ze,Ae)}function zn(xe){var Ne=this,ze={db:null};if(xe)for(var Ae in xe)ze[Ae]=typeof xe[Ae]!=\"string\"?xe[Ae].toString():xe[Ae];var tt=new T(function(Ce,_t){try{ze.db=openDatabase(ze.name,String(ze.version),ze.description,ze.size)}catch(Lt){return _t(Lt)}ze.db.transaction(function(Lt){kn(Lt,ze,function(){Ne._dbInfo=ze,Ce()},function(Dt,yt){_t(yt)})},_t)});return ze.serializer=pn,tt}function _n(xe,Ne,ze,Ae,tt,Ce){xe.executeSql(ze,Ae,tt,function(_t,Lt){Lt.code===Lt.SYNTAX_ERR?_t.executeSql(\"SELECT name FROM sqlite_master WHERE type=\\'table\\' AND name = ?\",[Ne.storeName],function(Dt,yt){yt.rows.length?Ce(Dt,Lt):kn(Dt,Ne,function(){Dt.executeSql(ze,Ae,tt,Ce)},Ce)},Ce):Ce(_t,Lt)},Ce)}function Dn(xe,Ne){var ze=this;xe=O(xe);var Ae=new T(function(tt,Ce){ze.ready().then(function(){var _t=ze._dbInfo;_t.db.transaction(function(Lt){_n(Lt,_t,\"SELECT * FROM \"+_t.storeName+\" WHERE key = ? LIMIT 1\",[xe],function(Dt,yt){var Zt=yt.rows.length?yt.rows.item(0).value:null;Zt&&(Zt=_t.serializer.deserialize(Zt)),tt(Zt)},function(Dt,yt){Ce(yt)})})}).catch(Ce)});return R(Ae,Ne),Ae}function _r(xe,Ne){var ze=this,Ae=new T(function(tt,Ce){ze.ready().then(function(){var _t=ze._dbInfo;_t.db.transaction(function(Lt){_n(Lt,_t,\"SELECT * FROM \"+_t.storeName,[],function(Dt,yt){for(var Zt=yt.rows,Jt=Zt.length,Qn=0;Qn<Jt;Qn++){var Xn=Zt.item(Qn),tr=Xn.value;if(tr&&(tr=_t.serializer.deserialize(tr)),tr=xe(tr,Xn.key,Qn+1),tr!==void 0){tt(tr);return}}tt()},function(Dt,yt){Ce(yt)})})}).catch(Ce)});return R(Ae,Ne),Ae}function pr(xe,Ne,ze,Ae){var tt=this;xe=O(xe);var Ce=new T(function(_t,Lt){tt.ready().then(function(){Ne===void 0&&(Ne=null);var Dt=Ne,yt=tt._dbInfo;yt.serializer.serialize(Ne,function(Zt,Jt){Jt?Lt(Jt):yt.db.transaction(function(Qn){_n(Qn,yt,\"INSERT OR REPLACE INTO \"+yt.storeName+\" (key, value) VALUES (?, ?)\",[xe,Zt],function(){_t(Dt)},function(Xn,tr){Lt(tr)})},function(Qn){if(Qn.code===Qn.QUOTA_ERR){if(Ae>0){_t(pr.apply(tt,[xe,Dt,ze,Ae-1]));return}Lt(Qn)}})})}).catch(Lt)});return R(Ce,ze),Ce}function vr(xe,Ne,ze){return pr.apply(this,[xe,Ne,ze,1])}function vo(xe,Ne){var ze=this;xe=O(xe);var Ae=new T(function(tt,Ce){ze.ready().then(function(){var _t=ze._dbInfo;_t.db.transaction(function(Lt){_n(Lt,_t,\"DELETE FROM \"+_t.storeName+\" WHERE key = ?\",[xe],function(){tt()},function(Dt,yt){Ce(yt)})})}).catch(Ce)});return R(Ae,Ne),Ae}function jr(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){var Ce=Ne._dbInfo;Ce.db.transaction(function(_t){_n(_t,Ce,\"DELETE FROM \"+Ce.storeName,[],function(){Ae()},function(Lt,Dt){tt(Dt)})})}).catch(tt)});return R(ze,xe),ze}function Mr(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){var Ce=Ne._dbInfo;Ce.db.transaction(function(_t){_n(_t,Ce,\"SELECT COUNT(key) as c FROM \"+Ce.storeName,[],function(Lt,Dt){var yt=Dt.rows.item(0).c;Ae(yt)},function(Lt,Dt){tt(Dt)})})}).catch(tt)});return R(ze,xe),ze}function wi(xe,Ne){var ze=this,Ae=new T(function(tt,Ce){ze.ready().then(function(){var _t=ze._dbInfo;_t.db.transaction(function(Lt){_n(Lt,_t,\"SELECT key FROM \"+_t.storeName+\" WHERE id = ? LIMIT 1\",[xe+1],function(Dt,yt){var Zt=yt.rows.length?yt.rows.item(0).key:null;tt(Zt)},function(Dt,yt){Ce(yt)})})}).catch(Ce)});return R(Ae,Ne),Ae}function fe(xe){var Ne=this,ze=new T(function(Ae,tt){Ne.ready().then(function(){var Ce=Ne._dbInfo;Ce.db.transaction(function(_t){_n(_t,Ce,\"SELECT key FROM \"+Ce.storeName,[],function(Lt,Dt){for(var yt=[],Zt=0;Zt<Dt.rows.length;Zt++)yt.push(Dt.rows.item(Zt).key);Ae(yt)},function(Lt,Dt){tt(Dt)})})}).catch(tt)});return R(ze,xe),ze}function Be(xe){return new T(function(Ne,ze){xe.transaction(function(Ae){Ae.executeSql(\"SELECT name FROM sqlite_master WHERE type=\\'table\\' AND name <> \\'__WebKitDatabaseInfoTable__\\'\",[],function(tt,Ce){for(var _t=[],Lt=0;Lt<Ce.rows.length;Lt++)_t.push(Ce.rows.item(Lt).name);Ne({db:xe,storeNames:_t})},function(tt,Ce){ze(Ce)})},function(Ae){ze(Ae)})})}function $(xe,Ne){Ne=V.apply(this,arguments);var ze=this.config();xe=typeof xe!=\"function\"&&xe||{},xe.name||(xe.name=xe.name||ze.name,xe.storeName=xe.storeName||ze.storeName);var Ae=this,tt;return xe.name?tt=new T(function(Ce){var _t;xe.name===ze.name?_t=Ae._dbInfo.db:_t=openDatabase(xe.name,\"\",\"\",0),xe.storeName?Ce({db:_t,storeNames:[xe.storeName]}):Ce(Be(_t))}).then(function(Ce){return new T(function(_t,Lt){Ce.db.transaction(function(Dt){function yt(Xn){return new T(function(tr,gr){Dt.executeSql(\"DROP TABLE IF EXISTS \"+Xn,[],function(){tr()},function(yr,Br){gr(Br)})})}for(var Zt=[],Jt=0,Qn=Ce.storeNames.length;Jt<Qn;Jt++)Zt.push(yt(Ce.storeNames[Jt]));T.all(Zt).then(function(){_t()}).catch(function(Xn){Lt(Xn)})},function(Dt){Lt(Dt)})})}):tt=T.reject(\"Invalid arguments\"),R(tt,Ne),tt}var M={_driver:\"webSQLStorage\",_initStorage:zn,_support:Pe(),iterate:_r,getItem:Dn,setItem:vr,removeItem:vo,clear:jr,length:Mr,key:wi,keys:fe,dropInstance:$};function re(){try{return typeof localStorage<\"u\"&&\"setItem\"in localStorage&&!!localStorage.setItem}catch{return!1}}function H(xe,Ne){var ze=xe.name+\"/\";return xe.storeName!==Ne.storeName&&(ze+=xe.storeName+\"/\"),ze}function he(){var xe=\"_localforage_support_test\";try{return localStorage.setItem(xe,!0),localStorage.removeItem(xe),!1}catch{return!0}}function He(){return!he()||localStorage.length>0}function nt(xe){var Ne=this,ze={};if(xe)for(var Ae in xe)ze[Ae]=xe[Ae];return ze.keyPrefix=H(xe,Ne._defaultConfig),He()?(Ne._dbInfo=ze,ze.serializer=pn,T.resolve()):T.reject()}function Rt(xe){var Ne=this,ze=Ne.ready().then(function(){for(var Ae=Ne._dbInfo.keyPrefix,tt=localStorage.length-1;tt>=0;tt--){var Ce=localStorage.key(tt);Ce.indexOf(Ae)===0&&localStorage.removeItem(Ce)}});return R(ze,xe),ze}function Ft(xe,Ne){var ze=this;xe=O(xe);var Ae=ze.ready().then(function(){var tt=ze._dbInfo,Ce=localStorage.getItem(tt.keyPrefix+xe);return Ce&&(Ce=tt.serializer.deserialize(Ce)),Ce});return R(Ae,Ne),Ae}function Tn(xe,Ne){var ze=this,Ae=ze.ready().then(function(){for(var tt=ze._dbInfo,Ce=tt.keyPrefix,_t=Ce.length,Lt=localStorage.length,Dt=1,yt=0;yt<Lt;yt++){var Zt=localStorage.key(yt);if(Zt.indexOf(Ce)===0){var Jt=localStorage.getItem(Zt);if(Jt&&(Jt=tt.serializer.deserialize(Jt)),Jt=xe(Jt,Zt.substring(_t),Dt++),Jt!==void 0)return Jt}}});return R(Ae,Ne),Ae}function $t(xe,Ne){var ze=this,Ae=ze.ready().then(function(){var tt=ze._dbInfo,Ce;try{Ce=localStorage.key(xe)}catch{Ce=null}return Ce&&(Ce=Ce.substring(tt.keyPrefix.length)),Ce});return R(Ae,Ne),Ae}function Gn(xe){var Ne=this,ze=Ne.ready().then(function(){for(var Ae=Ne._dbInfo,tt=localStorage.length,Ce=[],_t=0;_t<tt;_t++){var Lt=localStorage.key(_t);Lt.indexOf(Ae.keyPrefix)===0&&Ce.push(Lt.substring(Ae.keyPrefix.length))}return Ce});return R(ze,xe),ze}function cn(xe){var Ne=this,ze=Ne.keys().then(function(Ae){return Ae.length});return R(ze,xe),ze}function Fn(xe,Ne){var ze=this;xe=O(xe);var Ae=ze.ready().then(function(){var tt=ze._dbInfo;localStorage.removeItem(tt.keyPrefix+xe)});return R(Ae,Ne),Ae}function Nn(xe,Ne,ze){var Ae=this;xe=O(xe);var tt=Ae.ready().then(function(){Ne===void 0&&(Ne=null);var Ce=Ne;return new T(function(_t,Lt){var Dt=Ae._dbInfo;Dt.serializer.serialize(Ne,function(yt,Zt){if(Zt)Lt(Zt);else try{localStorage.setItem(Dt.keyPrefix+xe,yt),_t(Ce)}catch(Jt){(Jt.name===\"QuotaExceededError\"||Jt.name===\"NS_ERROR_DOM_QUOTA_REACHED\")&&Lt(Jt),Lt(Jt)}})})});return R(tt,ze),tt}function Hn(xe,Ne){if(Ne=V.apply(this,arguments),xe=typeof xe!=\"function\"&&xe||{},!xe.name){var ze=this.config();xe.name=xe.name||ze.name,xe.storeName=xe.storeName||ze.storeName}var Ae=this,tt;return xe.name?tt=new T(function(Ce){xe.storeName?Ce(H(xe,Ae._defaultConfig)):Ce(xe.name+\"/\")}).then(function(Ce){for(var _t=localStorage.length-1;_t>=0;_t--){var Lt=localStorage.key(_t);Lt.indexOf(Ce)===0&&localStorage.removeItem(Lt)}}):tt=T.reject(\"Invalid arguments\"),R(tt,Ne),tt}var jn={_driver:\"localStorageWrapper\",_initStorage:nt,_support:re(),iterate:Tn,getItem:Ft,setItem:Nn,removeItem:Fn,clear:Rt,length:cn,key:$t,keys:Gn,dropInstance:Hn},In=function(xe,Ne){return xe===Ne||typeof xe==\"number\"&&typeof Ne==\"number\"&&isNaN(xe)&&isNaN(Ne)},sn=function(xe,Ne){for(var ze=xe.length,Ae=0;Ae<ze;){if(In(xe[Ae],Ne))return!0;Ae++}return!1},xn=Array.isArray||function(xe){return Object.prototype.toString.call(xe)===\"[object Array]\"},Kt={},rn={},Ht={INDEXEDDB:me,WEBSQL:M,LOCALSTORAGE:jn},Gt=[Ht.INDEXEDDB._driver,Ht.WEBSQL._driver,Ht.LOCALSTORAGE._driver],vt=[\"dropInstance\"],ft=[\"clear\",\"getItem\",\"iterate\",\"key\",\"keys\",\"length\",\"removeItem\",\"setItem\"].concat(vt),at={description:\"\",driver:Gt.slice(),name:\"localforage\",size:4980736,storeName:\"keyvaluepairs\",version:1};function rt(xe,Ne){xe[Ne]=function(){var ze=arguments;return xe.ready().then(function(){return xe[Ne].apply(xe,ze)})}}function lt(){for(var xe=1;xe<arguments.length;xe++){var Ne=arguments[xe];if(Ne)for(var ze in Ne)Ne.hasOwnProperty(ze)&&(xn(Ne[ze])?arguments[0][ze]=Ne[ze].slice():arguments[0][ze]=Ne[ze])}return arguments[0]}var Et=(function(){function xe(Ne){p(this,xe);for(var ze in Ht)if(Ht.hasOwnProperty(ze)){var Ae=Ht[ze],tt=Ae._driver;this[ze]=tt,Kt[tt]||this.defineDriver(Ae)}this._defaultConfig=lt({},at),this._config=lt({},this._defaultConfig,Ne),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return xe.prototype.config=function(Ne){if((typeof Ne>\"u\"?\"undefined\":f(Ne))===\"object\"){if(this._ready)return new Error(\"Can\\'t call config() after localforage has been used.\");for(var ze in Ne){if(ze===\"storeName\"&&(Ne[ze]=Ne[ze].replace(/\\\\W/g,\"_\")),ze===\"version\"&&typeof Ne[ze]!=\"number\")return new Error(\"Database version must be a number.\");this._config[ze]=Ne[ze]}return\"driver\"in Ne&&Ne.driver?this.setDriver(this._config.driver):!0}else return typeof Ne==\"string\"?this._config[Ne]:this._config},xe.prototype.defineDriver=function(Ne,ze,Ae){var tt=new T(function(Ce,_t){try{var Lt=Ne._driver,Dt=new Error(\"Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver\");if(!Ne._driver){_t(Dt);return}for(var yt=ft.concat(\"_initStorage\"),Zt=0,Jt=yt.length;Zt<Jt;Zt++){var Qn=yt[Zt],Xn=!sn(vt,Qn);if((Xn||Ne[Qn])&&typeof Ne[Qn]!=\"function\"){_t(Dt);return}}var tr=function(){for(var yr=function(zo){return function(){var E0=new Error(\"Method \"+zo+\" is not implemented by the current driver\"),S0=T.reject(E0);return R(S0,arguments[arguments.length-1]),S0}},Br=0,no=vt.length;Br<no;Br++){var Xo=vt[Br];Ne[Xo]||(Ne[Xo]=yr(Xo))}};tr();var gr=function(yr){Kt[Lt]&&console.info(\"Redefining LocalForage driver: \"+Lt),Kt[Lt]=Ne,rn[Lt]=yr,Ce()};\"_support\"in Ne?Ne._support&&typeof Ne._support==\"function\"?Ne._support().then(gr,_t):gr(!!Ne._support):gr(!0)}catch(yr){_t(yr)}});return K(tt,ze,Ae),tt},xe.prototype.driver=function(){return this._driver||null},xe.prototype.getDriver=function(Ne,ze,Ae){var tt=Kt[Ne]?T.resolve(Kt[Ne]):T.reject(new Error(\"Driver not found.\"));return K(tt,ze,Ae),tt},xe.prototype.getSerializer=function(Ne){var ze=T.resolve(pn);return K(ze,Ne),ze},xe.prototype.ready=function(Ne){var ze=this,Ae=ze._driverSet.then(function(){return ze._ready===null&&(ze._ready=ze._initDriver()),ze._ready});return K(Ae,Ne,Ne),Ae},xe.prototype.setDriver=function(Ne,ze,Ae){var tt=this;xn(Ne)||(Ne=[Ne]);var Ce=this._getSupportedDrivers(Ne);function _t(){tt._config.driver=tt.driver()}function Lt(Zt){return tt._extend(Zt),_t(),tt._ready=tt._initStorage(tt._config),tt._ready}function Dt(Zt){return function(){var Jt=0;function Qn(){for(;Jt<Zt.length;){var Xn=Zt[Jt];return Jt++,tt._dbInfo=null,tt._ready=null,tt.getDriver(Xn).then(Lt).catch(Qn)}_t();var tr=new Error(\"No available storage method found.\");return tt._driverSet=T.reject(tr),tt._driverSet}return Qn()}}var yt=this._driverSet!==null?this._driverSet.catch(function(){return T.resolve()}):T.resolve();return this._driverSet=yt.then(function(){var Zt=Ce[0];return tt._dbInfo=null,tt._ready=null,tt.getDriver(Zt).then(function(Jt){tt._driver=Jt._driver,_t(),tt._wrapLibraryMethodsWithReady(),tt._initDriver=Dt(Ce)})}).catch(function(){_t();var Zt=new Error(\"No available storage method found.\");return tt._driverSet=T.reject(Zt),tt._driverSet}),K(this._driverSet,ze,Ae),this._driverSet},xe.prototype.supports=function(Ne){return!!rn[Ne]},xe.prototype._extend=function(Ne){lt(this,Ne)},xe.prototype._getSupportedDrivers=function(Ne){for(var ze=[],Ae=0,tt=Ne.length;Ae<tt;Ae++){var Ce=Ne[Ae];this.supports(Ce)&&ze.push(Ce)}return ze},xe.prototype._wrapLibraryMethodsWithReady=function(){for(var Ne=0,ze=ft.length;Ne<ze;Ne++)rt(this,ft[Ne])},xe.prototype.createInstance=function(Ne){return new xe(Ne)},xe})(),Ut=new Et;c.exports=Ut},{3:3}]},{},[4])(4)})}),sse=TN((t,e)=>{\"use strict\";(function(n,r){typeof t==\"object\"&&typeof e<\"u\"?r(t):typeof define==\"function\"&&define.amd?define(\"localforage-driver-memory\",[\"exports\"],r):r(n.LocalforageDriverMemory={})})(typeof self<\"u\"?self:t,function(n){\"use strict\";var r=\"localforage-driver-memory\";function o(w){var I=typeof Symbol==\"function\"&&w[Symbol.iterator],ye=0;return I?I.call(w):{next:function(){return w&&ye>=w.length&&(w=void 0),{value:w&&w[ye++],done:!w}}}}function a(w,I){w=w||[],I=I||{};try{return new Blob(w,I)}catch(ie){if(ie.name!==\"TypeError\")throw ie;for(var ye=typeof BlobBuilder<\"u\"?BlobBuilder:typeof MSBlobBuilder<\"u\"?MSBlobBuilder:typeof MozBlobBuilder<\"u\"?MozBlobBuilder:WebKitBlobBuilder,ne=new ye,Q=0;Q<w.length;Q+=1)ne.append(w[Q]);return ne.getBlob(I.type)}}var c=/^~~local_forage_type~([^~]+)~/,l=9,f=l+4,p=Object.prototype.toString;function m(w){var I=w.length*.75,ye=w.length;w[w.length-1]===\"=\"&&(I--,w[w.length-2]===\"=\"&&I--);for(var ne=new ArrayBuffer(I),Q=new Uint8Array(ne),ie=0,ue=0;ie<ye;ie+=4){var q=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".indexOf(w[ie]),Ee=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".indexOf(w[ie+1]),we=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".indexOf(w[ie+2]),_e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".indexOf(w[ie+3]);Q[ue++]=q<<2|Ee>>4,Q[ue++]=(Ee&15)<<4|we>>2,Q[ue++]=(we&3)<<6|_e&63}return ne}function g(w){for(var I=new Uint8Array(w),ye=\"\",ne=0;ne<I.length;ne+=3)ye+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"[I[ne]>>2],ye+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"[(I[ne]&3)<<4|I[ne+1]>>4],ye+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"[(I[ne+1]&15)<<2|I[ne+2]>>6],ye+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"[I[ne+2]&63];return I.length%3===2?ye=ye.substring(0,ye.length-1)+\"=\":I.length%3===1&&(ye=ye.substring(0,ye.length-2)+\"==\"),ye}function y(w,I){var ye=\"\";if(w&&(ye=p.call(w)),w&&(ye===\"[object ArrayBuffer]\"||w.buffer&&p.call(w.buffer)===\"[object ArrayBuffer]\")){var ne=void 0,Q=\"__lfsc__:\";w instanceof ArrayBuffer?(ne=w,Q+=\"arbf\"):(ne=w.buffer,ye===\"[object Int8Array]\"?Q+=\"si08\":ye===\"[object Uint8Array]\"?Q+=\"ui08\":ye===\"[object Uint8ClampedArray]\"?Q+=\"uic8\":ye===\"[object Int16Array]\"?Q+=\"si16\":ye===\"[object Uint16Array]\"?Q+=\"ur16\":ye===\"[object Int32Array]\"?Q+=\"si32\":ye===\"[object Uint32Array]\"?Q+=\"ui32\":ye===\"[object Float32Array]\"?Q+=\"fl32\":ye===\"[object Float64Array]\"?Q+=\"fl64\":I(new Error(\"Failed to get type for BinaryArray\"))),I(Q+g(ne))}else if(ye===\"[object Blob]\"){var ie=new FileReader;ie.onload=function(){var ue=\"~~local_forage_type~\"+w.type+\"~\"+g(this.result);I(\"__lfsc__:blob\"+ue)},ie.readAsArrayBuffer(w)}else try{I(JSON.stringify(w))}catch(ue){console.error(\"Couldn\\'t convert value into a JSON string: \",w),I(null,ue)}}function A(w){if(w.substring(0,l)!==\"__lfsc__:\")return JSON.parse(w);var I=w.substring(f),ye=w.substring(l,f),ne;if(ye===\"blob\"&&c.test(I)){var Q=I.match(c);ne=Q[1],I=I.substring(Q[0].length)}var ie=m(I);switch(ye){case\"arbf\":return ie;case\"blob\":return a([ie],{type:ne});case\"si08\":return new Int8Array(ie);case\"ui08\":return new Uint8Array(ie);case\"uic8\":return new Uint8ClampedArray(ie);case\"si16\":return new Int16Array(ie);case\"ur16\":return new Uint16Array(ie);case\"si32\":return new Int32Array(ie);case\"ui32\":return new Uint32Array(ie);case\"fl32\":return new Float32Array(ie);case\"fl64\":return new Float64Array(ie);default:throw new Error(\"Unkown type: \"+ye)}}function T(w){var I,ye;if(w===null||typeof w!=\"object\"||\"isActiveClone\"in w)return w;var ne=w instanceof Date?new Date(w):w.constructor();try{for(var Q=o(Object.keys(w)),ie=Q.next();!ie.done;ie=Q.next()){var ue=ie.value;Object.prototype.hasOwnProperty.call(w,ue)&&(w.isActiveClone=null,ne[ue]=T(w[ue]),delete w.isActiveClone)}}catch(q){I={error:q}}finally{try{ie&&!ie.done&&(ye=Q.return)&&ye.call(Q)}finally{if(I)throw I.error}}return ne}function R(w,I){return(w.name||I.name)+\"/\"+(w.storeName||I.storeName)+\"/\"}function K(w,I){I&&w.then(function(ye){I(null,ye)},function(ye){I(ye)})}function O(){for(var w=[],I=0;I<arguments.length;I++)w[I]=arguments[I];if(arguments.length&&typeof arguments[arguments.length-1]==\"function\")return arguments[arguments.length-1]}function V(w,I){var ye=this;if(I=O.apply(this,arguments),w=typeof w!=\"function\"&&w||{},!w.name){var ne=this.config();w.name=w.name||ne.name,w.storeName=w.storeName||ne.storeName}var Q;return w.name?Q=new Promise(function(ie){w.storeName?ie(R(w,ye._defaultConfig)):ie(w.name+\"/\")}):Q=Promise.reject(\"Invalid arguments\"),{promise:Q,callback:I}}function D(w){return typeof w!=\"string\"&&(console.warn(w+\" used as a key, but it is not a string.\"),w=String(w)),w}var G={bufferToString:g,deserialize:A,serialize:y,stringToBuffer:m},ee={},J=(function(){function w(I){this.kp=I,this.data={}}return w.resolve=function(I){return ee[I]||(ee[I]=new w(I)),ee[I]},w.prototype.clear=function(){this.data={}},w.prototype.drop=function(){this.clear(),delete ee[this.kp]},w.prototype.get=function(I){return this.data[I]},w.prototype.key=function(I){return this.keys()[I]},w.prototype.keys=function(){return Object.keys(this.data)},w.prototype.rm=function(I){delete this.data[I]},w.prototype.set=function(I,ye){this.data[I]=ye},w})();function le(w){var I=w?T(w):{},ye=R(I,this._defaultConfig),ne=J.resolve(ye);return this._dbInfo=I,this._dbInfo.serializer=G,this._dbInfo.keyPrefix=ye,this._dbInfo.mStore=ne,Promise.resolve()}function se(w){var I=this,ye=this.ready().then(function(){I._dbInfo.mStore.clear()});return K(ye,w),ye}function te(w,I){var ye=V.apply(this,arguments),ne=ye.promise,Q=ye.callback,ie=ne.then(function(ue){J.resolve(ue).drop()});return K(ie,Q),ne}function S(w,I){var ye=this;w=D(w);var ne=this.ready().then(function(){var Q=ye._dbInfo.mStore.get(w);return Q==null?null:ye._dbInfo.serializer.deserialize(Q)});return K(ne,I),ne}function _(w,I){var ye=this,ne=this.ready().then(function(){for(var Q=ye._dbInfo.mStore,ie=Q.keys(),ue=0;ue<ie.length;ue++){var q=Q.get(ie[ue]);if(q&&(q=ye._dbInfo.serializer.deserialize(q)),q=w(q,ie[ue],ue+1),q!==void 0)return q}});return K(ne,I),ne}function P(w,I){var ye=this,ne=this.ready().then(function(){var Q;try{Q=ye._dbInfo.mStore.key(w),Q===void 0&&(Q=null)}catch{Q=null}return Q});return K(ne,I),ne}function z(w){var I=this,ye=this.ready().then(function(){return I._dbInfo.mStore.keys()});return K(ye,w),ye}function Y(w){var I=this.keys().then(function(ye){return ye.length});return K(I,w),I}function L(w,I){var ye=this;w=D(w);var ne=this.ready().then(function(){ye._dbInfo.mStore.rm(w)});return K(ne,I),ne}function U(w,I,ye){var ne=this;w=D(w);var Q=this.ready().then(function(){I===void 0&&(I=null);var ie=I;return new Promise(function(ue,q){ne._dbInfo.serializer.serialize(I,function(Ee,we){if(we)q(we);else try{ne._dbInfo.mStore.set(w,Ee),ue(ie)}catch(_e){q(_e)}})})});return K(Q,ye),Q}var W=!0;n._support=W,n._driver=r,n._initStorage=le,n.clear=se,n.dropInstance=te,n.getItem=S,n.iterate=_,n.key=P,n.keys=z,n.length=Y,n.removeItem=L,n.setItem=U,Object.defineProperty(n,\"__esModule\",{value:!0})})}),Lk=_N(ase()),MN=_N(sse()),Ose={display:\"none\",position:\"fixed\",top:\"0\",right:\"0\",width:\"100%\",height:\"100%\",borderRadius:\"0\",border:\"none\",opacity:\"0\",zIndex:\"-1\"},cse=class extends Mse{constructor(){super(...arguments);ge(this,\"activeElement\",null);ge(this,\"iframe\");ge(this,\"relayerSrc\",Kk(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href)}init(){this.test=\"hello\",this.iframe=new Promise(e=>{let n=()=>{if(wRe(encodeURIComponent(this.parameters)))qIe().log();else{let r=document.createElement(\"iframe\");r.classList.add(\"magic-iframe\"),r.dataset.magicIframeLabel=Kk(this.endpoint).host,r.title=\"Secure Modal\",r.src=this.relayerSrc,r.allow=\"clipboard-read; clipboard-write\",bRe(r),document.body.appendChild(r),e(r)}};[\"loaded\",\"interactive\",\"complete\"].includes(document.readyState)?n():window.addEventListener(\"load\",n,!1)}),this.iframe.then(e=>{e instanceof HTMLIFrameElement&&e.addEventListener(\"load\",async()=>{this.heartbeatDebounce()})}),window.addEventListener(\"message\",e=>{if(e.origin===this.endpoint&&e.data.msgType&&(e.data.msgType.includes(Nd.MAGIC_PONG)&&(this.lastPongTime=Date.now()),e.data&&this.messageHandlers.size)){e.data.response=e.data.response??{},this.stopHeartBeat();for(let n of this.messageHandlers.values())n(e)}}),window.addEventListener(\"beforeunload\",()=>{this.stopHeartBeat()})}async showOverlay(){let e=await this.iframe;e.style.display=\"block\",e.style.zIndex=\"2147483647\",e.style.opacity=\"1\",this.activeElement=document.activeElement,e.focus()}async hideOverlay(){let e=await this.iframe;e.style.display=\"none\",e.style.zIndex=\"-1\",e.style.opacity=\"0\",this.activeElement?.focus&&this.activeElement.focus(),this.activeElement=null}async _post(e){let n=await this.iframe;if(n&&n.contentWindow)n.contentWindow.postMessage(e,this.endpoint);else throw pse()}async checkRelayerExistsInDOM(){let e=await this.iframe;return!e||!e.contentWindow?!1:!![].slice.call(document.querySelectorAll(\".magic-iframe\")).find(n=>n.src.includes(encodeURIComponent(this.parameters)))}async reloadRelayer(){let e=await this.iframe;if(this.stopHeartBeat(),!e){this.init(),console.warn(\"Magic SDK: Modal lost, re-initiating\");return}if(!e.contentWindow){document.body.appendChild(e),console.warn(\"Magic SDK: Modal did not append in the iframe, re-initiating\");return}e&&(e.src=this.relayerSrc)}},Lse=VIe(_se,{platform:\"web\",sdkName:\"magic-sdk\",version:\"29.4.2\",defaultEndpoint:\"https://auth.magic.link/\",ViewController:cse,configureStorage:async()=>{let t=Lk.default.createInstance({name:\"MagicAuthLocalStorageDB\",storeName:\"MagicAuthLocalStorage\"});return await t.defineDriver(MN),await t.setDriver([Lk.default.INDEXEDDB,Lk.default.LOCALSTORAGE,MN._driver]),t}})}}),Nse={};dse(Nse,{AlgorandExtension:()=>Use});var Use,SRe=a8({\"../../node_modules/.pnpm/@magic-ext+algorand@24.4.2/node_modules/@magic-ext/algorand/dist/es/index.mjs\"(){\"use strict\";Dse(),Use=class extends EU.Internal{constructor(e){super();ge(this,\"name\",\"algod\");ge(this,\"config\",{});this.algorandConfig=e,this.config={rpcUrl:e.rpcUrl,chainType:\"ALGOD\"}}async signTransaction(e){return this.request(this.utils.createJsonRpcRequestPayload(\"algod_signTransaction\",e))}async signBid(e){return this.request(this.utils.createJsonRpcRequestPayload(\"algod_signBid\",e))}async getWallet(){return this.request(this.utils.createJsonRpcRequestPayload(\"algod_getWallet\",[]))}async signGroupTransaction(e){return this.request(this.utils.createJsonRpcRequestPayload(\"algod_signGroupTransaction\",e))}async signGroupTransactionV2(e){return this.request(this.utils.createJsonRpcRequestPayload(\"algod_signGroupTransactionV2\",e))}}}}),ARe=MIe({\"../../node_modules/.pnpm/tweetnacl@1.0.3/node_modules/tweetnacl/nacl-fast.js\"(t,e){\"use strict\";(function(n){\"use strict\";var r=function($){var M,re=new Float64Array(16);if($)for(M=0;M<$.length;M++)re[M]=$[M];return re},o=function(){throw new Error(\"no PRNG\")},a=new Uint8Array(16),c=new Uint8Array(32);c[0]=9;var l=r(),f=r([1]),p=r([56129,1]),m=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),g=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),y=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),A=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),T=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function R($,M,re,H){$[M]=re>>24&255,$[M+1]=re>>16&255,$[M+2]=re>>8&255,$[M+3]=re&255,$[M+4]=H>>24&255,$[M+5]=H>>16&255,$[M+6]=H>>8&255,$[M+7]=H&255}function K($,M,re,H,he){var He,nt=0;for(He=0;He<he;He++)nt|=$[M+He]^re[H+He];return(1&nt-1>>>8)-1}function O($,M,re,H){return K($,M,re,H,16)}function V($,M,re,H){return K($,M,re,H,32)}function D($,M,re,H){for(var he=H[0]&255|(H[1]&255)<<8|(H[2]&255)<<16|(H[3]&255)<<24,He=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,nt=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Rt=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,Ft=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Tn=H[4]&255|(H[5]&255)<<8|(H[6]&255)<<16|(H[7]&255)<<24,$t=M[0]&255|(M[1]&255)<<8|(M[2]&255)<<16|(M[3]&255)<<24,Gn=M[4]&255|(M[5]&255)<<8|(M[6]&255)<<16|(M[7]&255)<<24,cn=M[8]&255|(M[9]&255)<<8|(M[10]&255)<<16|(M[11]&255)<<24,Fn=M[12]&255|(M[13]&255)<<8|(M[14]&255)<<16|(M[15]&255)<<24,Nn=H[8]&255|(H[9]&255)<<8|(H[10]&255)<<16|(H[11]&255)<<24,Hn=re[16]&255|(re[17]&255)<<8|(re[18]&255)<<16|(re[19]&255)<<24,jn=re[20]&255|(re[21]&255)<<8|(re[22]&255)<<16|(re[23]&255)<<24,In=re[24]&255|(re[25]&255)<<8|(re[26]&255)<<16|(re[27]&255)<<24,sn=re[28]&255|(re[29]&255)<<8|(re[30]&255)<<16|(re[31]&255)<<24,xn=H[12]&255|(H[13]&255)<<8|(H[14]&255)<<16|(H[15]&255)<<24,Kt=he,rn=He,Ht=nt,Gt=Rt,vt=Ft,ft=Tn,at=$t,rt=Gn,lt=cn,Et=Fn,Ut=Nn,xe=Hn,Ne=jn,ze=In,Ae=sn,tt=xn,Ce,_t=0;_t<20;_t+=2)Ce=Kt+Ne|0,vt^=Ce<<7|Ce>>>25,Ce=vt+Kt|0,lt^=Ce<<9|Ce>>>23,Ce=lt+vt|0,Ne^=Ce<<13|Ce>>>19,Ce=Ne+lt|0,Kt^=Ce<<18|Ce>>>14,Ce=ft+rn|0,Et^=Ce<<7|Ce>>>25,Ce=Et+ft|0,ze^=Ce<<9|Ce>>>23,Ce=ze+Et|0,rn^=Ce<<13|Ce>>>19,Ce=rn+ze|0,ft^=Ce<<18|Ce>>>14,Ce=Ut+at|0,Ae^=Ce<<7|Ce>>>25,Ce=Ae+Ut|0,Ht^=Ce<<9|Ce>>>23,Ce=Ht+Ae|0,at^=Ce<<13|Ce>>>19,Ce=at+Ht|0,Ut^=Ce<<18|Ce>>>14,Ce=tt+xe|0,Gt^=Ce<<7|Ce>>>25,Ce=Gt+tt|0,rt^=Ce<<9|Ce>>>23,Ce=rt+Gt|0,xe^=Ce<<13|Ce>>>19,Ce=xe+rt|0,tt^=Ce<<18|Ce>>>14,Ce=Kt+Gt|0,rn^=Ce<<7|Ce>>>25,Ce=rn+Kt|0,Ht^=Ce<<9|Ce>>>23,Ce=Ht+rn|0,Gt^=Ce<<13|Ce>>>19,Ce=Gt+Ht|0,Kt^=Ce<<18|Ce>>>14,Ce=ft+vt|0,at^=Ce<<7|Ce>>>25,Ce=at+ft|0,rt^=Ce<<9|Ce>>>23,Ce=rt+at|0,vt^=Ce<<13|Ce>>>19,Ce=vt+rt|0,ft^=Ce<<18|Ce>>>14,Ce=Ut+Et|0,xe^=Ce<<7|Ce>>>25,Ce=xe+Ut|0,lt^=Ce<<9|Ce>>>23,Ce=lt+xe|0,Et^=Ce<<13|Ce>>>19,Ce=Et+lt|0,Ut^=Ce<<18|Ce>>>14,Ce=tt+Ae|0,Ne^=Ce<<7|Ce>>>25,Ce=Ne+tt|0,ze^=Ce<<9|Ce>>>23,Ce=ze+Ne|0,Ae^=Ce<<13|Ce>>>19,Ce=Ae+ze|0,tt^=Ce<<18|Ce>>>14;Kt=Kt+he|0,rn=rn+He|0,Ht=Ht+nt|0,Gt=Gt+Rt|0,vt=vt+Ft|0,ft=ft+Tn|0,at=at+$t|0,rt=rt+Gn|0,lt=lt+cn|0,Et=Et+Fn|0,Ut=Ut+Nn|0,xe=xe+Hn|0,Ne=Ne+jn|0,ze=ze+In|0,Ae=Ae+sn|0,tt=tt+xn|0,$[0]=Kt>>>0&255,$[1]=Kt>>>8&255,$[2]=Kt>>>16&255,$[3]=Kt>>>24&255,$[4]=rn>>>0&255,$[5]=rn>>>8&255,$[6]=rn>>>16&255,$[7]=rn>>>24&255,$[8]=Ht>>>0&255,$[9]=Ht>>>8&255,$[10]=Ht>>>16&255,$[11]=Ht>>>24&255,$[12]=Gt>>>0&255,$[13]=Gt>>>8&255,$[14]=Gt>>>16&255,$[15]=Gt>>>24&255,$[16]=vt>>>0&255,$[17]=vt>>>8&255,$[18]=vt>>>16&255,$[19]=vt>>>24&255,$[20]=ft>>>0&255,$[21]=ft>>>8&255,$[22]=ft>>>16&255,$[23]=ft>>>24&255,$[24]=at>>>0&255,$[25]=at>>>8&255,$[26]=at>>>16&255,$[27]=at>>>24&255,$[28]=rt>>>0&255,$[29]=rt>>>8&255,$[30]=rt>>>16&255,$[31]=rt>>>24&255,$[32]=lt>>>0&255,$[33]=lt>>>8&255,$[34]=lt>>>16&255,$[35]=lt>>>24&255,$[36]=Et>>>0&255,$[37]=Et>>>8&255,$[38]=Et>>>16&255,$[39]=Et>>>24&255,$[40]=Ut>>>0&255,$[41]=Ut>>>8&255,$[42]=Ut>>>16&255,$[43]=Ut>>>24&255,$[44]=xe>>>0&255,$[45]=xe>>>8&255,$[46]=xe>>>16&255,$[47]=xe>>>24&255,$[48]=Ne>>>0&255,$[49]=Ne>>>8&255,$[50]=Ne>>>16&255,$[51]=Ne>>>24&255,$[52]=ze>>>0&255,$[53]=ze>>>8&255,$[54]=ze>>>16&255,$[55]=ze>>>24&255,$[56]=Ae>>>0&255,$[57]=Ae>>>8&255,$[58]=Ae>>>16&255,$[59]=Ae>>>24&255,$[60]=tt>>>0&255,$[61]=tt>>>8&255,$[62]=tt>>>16&255,$[63]=tt>>>24&255}function G($,M,re,H){for(var he=H[0]&255|(H[1]&255)<<8|(H[2]&255)<<16|(H[3]&255)<<24,He=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,nt=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Rt=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,Ft=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Tn=H[4]&255|(H[5]&255)<<8|(H[6]&255)<<16|(H[7]&255)<<24,$t=M[0]&255|(M[1]&255)<<8|(M[2]&255)<<16|(M[3]&255)<<24,Gn=M[4]&255|(M[5]&255)<<8|(M[6]&255)<<16|(M[7]&255)<<24,cn=M[8]&255|(M[9]&255)<<8|(M[10]&255)<<16|(M[11]&255)<<24,Fn=M[12]&255|(M[13]&255)<<8|(M[14]&255)<<16|(M[15]&255)<<24,Nn=H[8]&255|(H[9]&255)<<8|(H[10]&255)<<16|(H[11]&255)<<24,Hn=re[16]&255|(re[17]&255)<<8|(re[18]&255)<<16|(re[19]&255)<<24,jn=re[20]&255|(re[21]&255)<<8|(re[22]&255)<<16|(re[23]&255)<<24,In=re[24]&255|(re[25]&255)<<8|(re[26]&255)<<16|(re[27]&255)<<24,sn=re[28]&255|(re[29]&255)<<8|(re[30]&255)<<16|(re[31]&255)<<24,xn=H[12]&255|(H[13]&255)<<8|(H[14]&255)<<16|(H[15]&255)<<24,Kt=he,rn=He,Ht=nt,Gt=Rt,vt=Ft,ft=Tn,at=$t,rt=Gn,lt=cn,Et=Fn,Ut=Nn,xe=Hn,Ne=jn,ze=In,Ae=sn,tt=xn,Ce,_t=0;_t<20;_t+=2)Ce=Kt+Ne|0,vt^=Ce<<7|Ce>>>25,Ce=vt+Kt|0,lt^=Ce<<9|Ce>>>23,Ce=lt+vt|0,Ne^=Ce<<13|Ce>>>19,Ce=Ne+lt|0,Kt^=Ce<<18|Ce>>>14,Ce=ft+rn|0,Et^=Ce<<7|Ce>>>25,Ce=Et+ft|0,ze^=Ce<<9|Ce>>>23,Ce=ze+Et|0,rn^=Ce<<13|Ce>>>19,Ce=rn+ze|0,ft^=Ce<<18|Ce>>>14,Ce=Ut+at|0,Ae^=Ce<<7|Ce>>>25,Ce=Ae+Ut|0,Ht^=Ce<<9|Ce>>>23,Ce=Ht+Ae|0,at^=Ce<<13|Ce>>>19,Ce=at+Ht|0,Ut^=Ce<<18|Ce>>>14,Ce=tt+xe|0,Gt^=Ce<<7|Ce>>>25,Ce=Gt+tt|0,rt^=Ce<<9|Ce>>>23,Ce=rt+Gt|0,xe^=Ce<<13|Ce>>>19,Ce=xe+rt|0,tt^=Ce<<18|Ce>>>14,Ce=Kt+Gt|0,rn^=Ce<<7|Ce>>>25,Ce=rn+Kt|0,Ht^=Ce<<9|Ce>>>23,Ce=Ht+rn|0,Gt^=Ce<<13|Ce>>>19,Ce=Gt+Ht|0,Kt^=Ce<<18|Ce>>>14,Ce=ft+vt|0,at^=Ce<<7|Ce>>>25,Ce=at+ft|0,rt^=Ce<<9|Ce>>>23,Ce=rt+at|0,vt^=Ce<<13|Ce>>>19,Ce=vt+rt|0,ft^=Ce<<18|Ce>>>14,Ce=Ut+Et|0,xe^=Ce<<7|Ce>>>25,Ce=xe+Ut|0,lt^=Ce<<9|Ce>>>23,Ce=lt+xe|0,Et^=Ce<<13|Ce>>>19,Ce=Et+lt|0,Ut^=Ce<<18|Ce>>>14,Ce=tt+Ae|0,Ne^=Ce<<7|Ce>>>25,Ce=Ne+tt|0,ze^=Ce<<9|Ce>>>23,Ce=ze+Ne|0,Ae^=Ce<<13|Ce>>>19,Ce=Ae+ze|0,tt^=Ce<<18|Ce>>>14;$[0]=Kt>>>0&255,$[1]=Kt>>>8&255,$[2]=Kt>>>16&255,$[3]=Kt>>>24&255,$[4]=ft>>>0&255,$[5]=ft>>>8&255,$[6]=ft>>>16&255,$[7]=ft>>>24&255,$[8]=Ut>>>0&255,$[9]=Ut>>>8&255,$[10]=Ut>>>16&255,$[11]=Ut>>>24&255,$[12]=tt>>>0&255,$[13]=tt>>>8&255,$[14]=tt>>>16&255,$[15]=tt>>>24&255,$[16]=at>>>0&255,$[17]=at>>>8&255,$[18]=at>>>16&255,$[19]=at>>>24&255,$[20]=rt>>>0&255,$[21]=rt>>>8&255,$[22]=rt>>>16&255,$[23]=rt>>>24&255,$[24]=lt>>>0&255,$[25]=lt>>>8&255,$[26]=lt>>>16&255,$[27]=lt>>>24&255,$[28]=Et>>>0&255,$[29]=Et>>>8&255,$[30]=Et>>>16&255,$[31]=Et>>>24&255}function ee($,M,re,H){D($,M,re,H)}function J($,M,re,H){G($,M,re,H)}var le=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function se($,M,re,H,he,He,nt){var Rt=new Uint8Array(16),Ft=new Uint8Array(64),Tn,$t;for($t=0;$t<16;$t++)Rt[$t]=0;for($t=0;$t<8;$t++)Rt[$t]=He[$t];for(;he>=64;){for(ee(Ft,Rt,nt,le),$t=0;$t<64;$t++)$[M+$t]=re[H+$t]^Ft[$t];for(Tn=1,$t=8;$t<16;$t++)Tn=Tn+(Rt[$t]&255)|0,Rt[$t]=Tn&255,Tn>>>=8;he-=64,M+=64,H+=64}if(he>0)for(ee(Ft,Rt,nt,le),$t=0;$t<he;$t++)$[M+$t]=re[H+$t]^Ft[$t];return 0}function te($,M,re,H,he){var He=new Uint8Array(16),nt=new Uint8Array(64),Rt,Ft;for(Ft=0;Ft<16;Ft++)He[Ft]=0;for(Ft=0;Ft<8;Ft++)He[Ft]=H[Ft];for(;re>=64;){for(ee(nt,He,he,le),Ft=0;Ft<64;Ft++)$[M+Ft]=nt[Ft];for(Rt=1,Ft=8;Ft<16;Ft++)Rt=Rt+(He[Ft]&255)|0,He[Ft]=Rt&255,Rt>>>=8;re-=64,M+=64}if(re>0)for(ee(nt,He,he,le),Ft=0;Ft<re;Ft++)$[M+Ft]=nt[Ft];return 0}function S($,M,re,H,he){var He=new Uint8Array(32);J(He,H,he,le);for(var nt=new Uint8Array(8),Rt=0;Rt<8;Rt++)nt[Rt]=H[Rt+16];return te($,M,re,nt,He)}function _($,M,re,H,he,He,nt){var Rt=new Uint8Array(32);J(Rt,He,nt,le);for(var Ft=new Uint8Array(8),Tn=0;Tn<8;Tn++)Ft[Tn]=He[Tn+16];return se($,M,re,H,he,Ft,Rt)}var P=function($){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var M,re,H,he,He,nt,Rt,Ft;M=$[0]&255|($[1]&255)<<8,this.r[0]=M&8191,re=$[2]&255|($[3]&255)<<8,this.r[1]=(M>>>13|re<<3)&8191,H=$[4]&255|($[5]&255)<<8,this.r[2]=(re>>>10|H<<6)&7939,he=$[6]&255|($[7]&255)<<8,this.r[3]=(H>>>7|he<<9)&8191,He=$[8]&255|($[9]&255)<<8,this.r[4]=(he>>>4|He<<12)&255,this.r[5]=He>>>1&8190,nt=$[10]&255|($[11]&255)<<8,this.r[6]=(He>>>14|nt<<2)&8191,Rt=$[12]&255|($[13]&255)<<8,this.r[7]=(nt>>>11|Rt<<5)&8065,Ft=$[14]&255|($[15]&255)<<8,this.r[8]=(Rt>>>8|Ft<<8)&8191,this.r[9]=Ft>>>5&127,this.pad[0]=$[16]&255|($[17]&255)<<8,this.pad[1]=$[18]&255|($[19]&255)<<8,this.pad[2]=$[20]&255|($[21]&255)<<8,this.pad[3]=$[22]&255|($[23]&255)<<8,this.pad[4]=$[24]&255|($[25]&255)<<8,this.pad[5]=$[26]&255|($[27]&255)<<8,this.pad[6]=$[28]&255|($[29]&255)<<8,this.pad[7]=$[30]&255|($[31]&255)<<8};P.prototype.blocks=function($,M,re){for(var H=this.fin?0:2048,he,He,nt,Rt,Ft,Tn,$t,Gn,cn,Fn,Nn,Hn,jn,In,sn,xn,Kt,rn,Ht,Gt=this.h[0],vt=this.h[1],ft=this.h[2],at=this.h[3],rt=this.h[4],lt=this.h[5],Et=this.h[6],Ut=this.h[7],xe=this.h[8],Ne=this.h[9],ze=this.r[0],Ae=this.r[1],tt=this.r[2],Ce=this.r[3],_t=this.r[4],Lt=this.r[5],Dt=this.r[6],yt=this.r[7],Zt=this.r[8],Jt=this.r[9];re>=16;)he=$[M+0]&255|($[M+1]&255)<<8,Gt+=he&8191,He=$[M+2]&255|($[M+3]&255)<<8,vt+=(he>>>13|He<<3)&8191,nt=$[M+4]&255|($[M+5]&255)<<8,ft+=(He>>>10|nt<<6)&8191,Rt=$[M+6]&255|($[M+7]&255)<<8,at+=(nt>>>7|Rt<<9)&8191,Ft=$[M+8]&255|($[M+9]&255)<<8,rt+=(Rt>>>4|Ft<<12)&8191,lt+=Ft>>>1&8191,Tn=$[M+10]&255|($[M+11]&255)<<8,Et+=(Ft>>>14|Tn<<2)&8191,$t=$[M+12]&255|($[M+13]&255)<<8,Ut+=(Tn>>>11|$t<<5)&8191,Gn=$[M+14]&255|($[M+15]&255)<<8,xe+=($t>>>8|Gn<<8)&8191,Ne+=Gn>>>5|H,cn=0,Fn=cn,Fn+=Gt*ze,Fn+=vt*(5*Jt),Fn+=ft*(5*Zt),Fn+=at*(5*yt),Fn+=rt*(5*Dt),cn=Fn>>>13,Fn&=8191,Fn+=lt*(5*Lt),Fn+=Et*(5*_t),Fn+=Ut*(5*Ce),Fn+=xe*(5*tt),Fn+=Ne*(5*Ae),cn+=Fn>>>13,Fn&=8191,Nn=cn,Nn+=Gt*Ae,Nn+=vt*ze,Nn+=ft*(5*Jt),Nn+=at*(5*Zt),Nn+=rt*(5*yt),cn=Nn>>>13,Nn&=8191,Nn+=lt*(5*Dt),Nn+=Et*(5*Lt),Nn+=Ut*(5*_t),Nn+=xe*(5*Ce),Nn+=Ne*(5*tt),cn+=Nn>>>13,Nn&=8191,Hn=cn,Hn+=Gt*tt,Hn+=vt*Ae,Hn+=ft*ze,Hn+=at*(5*Jt),Hn+=rt*(5*Zt),cn=Hn>>>13,Hn&=8191,Hn+=lt*(5*yt),Hn+=Et*(5*Dt),Hn+=Ut*(5*Lt),Hn+=xe*(5*_t),Hn+=Ne*(5*Ce),cn+=Hn>>>13,Hn&=8191,jn=cn,jn+=Gt*Ce,jn+=vt*tt,jn+=ft*Ae,jn+=at*ze,jn+=rt*(5*Jt),cn=jn>>>13,jn&=8191,jn+=lt*(5*Zt),jn+=Et*(5*yt),jn+=Ut*(5*Dt),jn+=xe*(5*Lt),jn+=Ne*(5*_t),cn+=jn>>>13,jn&=8191,In=cn,In+=Gt*_t,In+=vt*Ce,In+=ft*tt,In+=at*Ae,In+=rt*ze,cn=In>>>13,In&=8191,In+=lt*(5*Jt),In+=Et*(5*Zt),In+=Ut*(5*yt),In+=xe*(5*Dt),In+=Ne*(5*Lt),cn+=In>>>13,In&=8191,sn=cn,sn+=Gt*Lt,sn+=vt*_t,sn+=ft*Ce,sn+=at*tt,sn+=rt*Ae,cn=sn>>>13,sn&=8191,sn+=lt*ze,sn+=Et*(5*Jt),sn+=Ut*(5*Zt),sn+=xe*(5*yt),sn+=Ne*(5*Dt),cn+=sn>>>13,sn&=8191,xn=cn,xn+=Gt*Dt,xn+=vt*Lt,xn+=ft*_t,xn+=at*Ce,xn+=rt*tt,cn=xn>>>13,xn&=8191,xn+=lt*Ae,xn+=Et*ze,xn+=Ut*(5*Jt),xn+=xe*(5*Zt),xn+=Ne*(5*yt),cn+=xn>>>13,xn&=8191,Kt=cn,Kt+=Gt*yt,Kt+=vt*Dt,Kt+=ft*Lt,Kt+=at*_t,Kt+=rt*Ce,cn=Kt>>>13,Kt&=8191,Kt+=lt*tt,Kt+=Et*Ae,Kt+=Ut*ze,Kt+=xe*(5*Jt),Kt+=Ne*(5*Zt),cn+=Kt>>>13,Kt&=8191,rn=cn,rn+=Gt*Zt,rn+=vt*yt,rn+=ft*Dt,rn+=at*Lt,rn+=rt*_t,cn=rn>>>13,rn&=8191,rn+=lt*Ce,rn+=Et*tt,rn+=Ut*Ae,rn+=xe*ze,rn+=Ne*(5*Jt),cn+=rn>>>13,rn&=8191,Ht=cn,Ht+=Gt*Jt,Ht+=vt*Zt,Ht+=ft*yt,Ht+=at*Dt,Ht+=rt*Lt,cn=Ht>>>13,Ht&=8191,Ht+=lt*_t,Ht+=Et*Ce,Ht+=Ut*tt,Ht+=xe*Ae,Ht+=Ne*ze,cn+=Ht>>>13,Ht&=8191,cn=(cn<<2)+cn|0,cn=cn+Fn|0,Fn=cn&8191,cn=cn>>>13,Nn+=cn,Gt=Fn,vt=Nn,ft=Hn,at=jn,rt=In,lt=sn,Et=xn,Ut=Kt,xe=rn,Ne=Ht,M+=16,re-=16;this.h[0]=Gt,this.h[1]=vt,this.h[2]=ft,this.h[3]=at,this.h[4]=rt,this.h[5]=lt,this.h[6]=Et,this.h[7]=Ut,this.h[8]=xe,this.h[9]=Ne},P.prototype.finish=function($,M){var re=new Uint16Array(10),H,he,He,nt;if(this.leftover){for(nt=this.leftover,this.buffer[nt++]=1;nt<16;nt++)this.buffer[nt]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(H=this.h[1]>>>13,this.h[1]&=8191,nt=2;nt<10;nt++)this.h[nt]+=H,H=this.h[nt]>>>13,this.h[nt]&=8191;for(this.h[0]+=H*5,H=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=H,H=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=H,re[0]=this.h[0]+5,H=re[0]>>>13,re[0]&=8191,nt=1;nt<10;nt++)re[nt]=this.h[nt]+H,H=re[nt]>>>13,re[nt]&=8191;for(re[9]-=8192,he=(H^1)-1,nt=0;nt<10;nt++)re[nt]&=he;for(he=~he,nt=0;nt<10;nt++)this.h[nt]=this.h[nt]&he|re[nt];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,He=this.h[0]+this.pad[0],this.h[0]=He&65535,nt=1;nt<8;nt++)He=(this.h[nt]+this.pad[nt]|0)+(He>>>16)|0,this.h[nt]=He&65535;$[M+0]=this.h[0]>>>0&255,$[M+1]=this.h[0]>>>8&255,$[M+2]=this.h[1]>>>0&255,$[M+3]=this.h[1]>>>8&255,$[M+4]=this.h[2]>>>0&255,$[M+5]=this.h[2]>>>8&255,$[M+6]=this.h[3]>>>0&255,$[M+7]=this.h[3]>>>8&255,$[M+8]=this.h[4]>>>0&255,$[M+9]=this.h[4]>>>8&255,$[M+10]=this.h[5]>>>0&255,$[M+11]=this.h[5]>>>8&255,$[M+12]=this.h[6]>>>0&255,$[M+13]=this.h[6]>>>8&255,$[M+14]=this.h[7]>>>0&255,$[M+15]=this.h[7]>>>8&255},P.prototype.update=function($,M,re){var H,he;if(this.leftover){for(he=16-this.leftover,he>re&&(he=re),H=0;H<he;H++)this.buffer[this.leftover+H]=$[M+H];if(re-=he,M+=he,this.leftover+=he,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(re>=16&&(he=re-re%16,this.blocks($,M,he),M+=he,re-=he),re){for(H=0;H<re;H++)this.buffer[this.leftover+H]=$[M+H];this.leftover+=re}};function z($,M,re,H,he,He){var nt=new P(He);return nt.update(re,H,he),nt.finish($,M),0}function Y($,M,re,H,he,He){var nt=new Uint8Array(16);return z(nt,0,re,H,he,He),O($,M,nt,0)}function L($,M,re,H,he){var He;if(re<32)return-1;for(_($,0,M,0,re,H,he),z($,16,$,32,re-32,$),He=0;He<16;He++)$[He]=0;return 0}function U($,M,re,H,he){var He,nt=new Uint8Array(32);if(re<32||(S(nt,0,32,H,he),Y(M,16,M,32,re-32,nt)!==0))return-1;for(_($,0,M,0,re,H,he),He=0;He<32;He++)$[He]=0;return 0}function W($,M){var re;for(re=0;re<16;re++)$[re]=M[re]|0}function w($){var M,re,H=1;for(M=0;M<16;M++)re=$[M]+H+65535,H=Math.floor(re/65536),$[M]=re-H*65536;$[0]+=H-1+37*(H-1)}function I($,M,re){for(var H,he=~(re-1),He=0;He<16;He++)H=he&($[He]^M[He]),$[He]^=H,M[He]^=H}function ye($,M){var re,H,he,He=r(),nt=r();for(re=0;re<16;re++)nt[re]=M[re];for(w(nt),w(nt),w(nt),H=0;H<2;H++){for(He[0]=nt[0]-65517,re=1;re<15;re++)He[re]=nt[re]-65535-(He[re-1]>>16&1),He[re-1]&=65535;He[15]=nt[15]-32767-(He[14]>>16&1),he=He[15]>>16&1,He[14]&=65535,I(nt,He,1-he)}for(re=0;re<16;re++)$[2*re]=nt[re]&255,$[2*re+1]=nt[re]>>8}function ne($,M){var re=new Uint8Array(32),H=new Uint8Array(32);return ye(re,$),ye(H,M),V(re,0,H,0)}function Q($){var M=new Uint8Array(32);return ye(M,$),M[0]&1}function ie($,M){var re;for(re=0;re<16;re++)$[re]=M[2*re]+(M[2*re+1]<<8);$[15]&=32767}function ue($,M,re){for(var H=0;H<16;H++)$[H]=M[H]+re[H]}function q($,M,re){for(var H=0;H<16;H++)$[H]=M[H]-re[H]}function Ee($,M,re){var H,he,He=0,nt=0,Rt=0,Ft=0,Tn=0,$t=0,Gn=0,cn=0,Fn=0,Nn=0,Hn=0,jn=0,In=0,sn=0,xn=0,Kt=0,rn=0,Ht=0,Gt=0,vt=0,ft=0,at=0,rt=0,lt=0,Et=0,Ut=0,xe=0,Ne=0,ze=0,Ae=0,tt=0,Ce=re[0],_t=re[1],Lt=re[2],Dt=re[3],yt=re[4],Zt=re[5],Jt=re[6],Qn=re[7],Xn=re[8],tr=re[9],gr=re[10],yr=re[11],Br=re[12],no=re[13],Xo=re[14],zo=re[15];H=M[0],He+=H*Ce,nt+=H*_t,Rt+=H*Lt,Ft+=H*Dt,Tn+=H*yt,$t+=H*Zt,Gn+=H*Jt,cn+=H*Qn,Fn+=H*Xn,Nn+=H*tr,Hn+=H*gr,jn+=H*yr,In+=H*Br,sn+=H*no,xn+=H*Xo,Kt+=H*zo,H=M[1],nt+=H*Ce,Rt+=H*_t,Ft+=H*Lt,Tn+=H*Dt,$t+=H*yt,Gn+=H*Zt,cn+=H*Jt,Fn+=H*Qn,Nn+=H*Xn,Hn+=H*tr,jn+=H*gr,In+=H*yr,sn+=H*Br,xn+=H*no,Kt+=H*Xo,rn+=H*zo,H=M[2],Rt+=H*Ce,Ft+=H*_t,Tn+=H*Lt,$t+=H*Dt,Gn+=H*yt,cn+=H*Zt,Fn+=H*Jt,Nn+=H*Qn,Hn+=H*Xn,jn+=H*tr,In+=H*gr,sn+=H*yr,xn+=H*Br,Kt+=H*no,rn+=H*Xo,Ht+=H*zo,H=M[3],Ft+=H*Ce,Tn+=H*_t,$t+=H*Lt,Gn+=H*Dt,cn+=H*yt,Fn+=H*Zt,Nn+=H*Jt,Hn+=H*Qn,jn+=H*Xn,In+=H*tr,sn+=H*gr,xn+=H*yr,Kt+=H*Br,rn+=H*no,Ht+=H*Xo,Gt+=H*zo,H=M[4],Tn+=H*Ce,$t+=H*_t,Gn+=H*Lt,cn+=H*Dt,Fn+=H*yt,Nn+=H*Zt,Hn+=H*Jt,jn+=H*Qn,In+=H*Xn,sn+=H*tr,xn+=H*gr,Kt+=H*yr,rn+=H*Br,Ht+=H*no,Gt+=H*Xo,vt+=H*zo,H=M[5],$t+=H*Ce,Gn+=H*_t,cn+=H*Lt,Fn+=H*Dt,Nn+=H*yt,Hn+=H*Zt,jn+=H*Jt,In+=H*Qn,sn+=H*Xn,xn+=H*tr,Kt+=H*gr,rn+=H*yr,Ht+=H*Br,Gt+=H*no,vt+=H*Xo,ft+=H*zo,H=M[6],Gn+=H*Ce,cn+=H*_t,Fn+=H*Lt,Nn+=H*Dt,Hn+=H*yt,jn+=H*Zt,In+=H*Jt,sn+=H*Qn,xn+=H*Xn,Kt+=H*tr,rn+=H*gr,Ht+=H*yr,Gt+=H*Br,vt+=H*no,ft+=H*Xo,at+=H*zo,H=M[7],cn+=H*Ce,Fn+=H*_t,Nn+=H*Lt,Hn+=H*Dt,jn+=H*yt,In+=H*Zt,sn+=H*Jt,xn+=H*Qn,Kt+=H*Xn,rn+=H*tr,Ht+=H*gr,Gt+=H*yr,vt+=H*Br,ft+=H*no,at+=H*Xo,rt+=H*zo,H=M[8],Fn+=H*Ce,Nn+=H*_t,Hn+=H*Lt,jn+=H*Dt,In+=H*yt,sn+=H*Zt,xn+=H*Jt,Kt+=H*Qn,rn+=H*Xn,Ht+=H*tr,Gt+=H*gr,vt+=H*yr,ft+=H*Br,at+=H*no,rt+=H*Xo,lt+=H*zo,H=M[9],Nn+=H*Ce,Hn+=H*_t,jn+=H*Lt,In+=H*Dt,sn+=H*yt,xn+=H*Zt,Kt+=H*Jt,rn+=H*Qn,Ht+=H*Xn,Gt+=H*tr,vt+=H*gr,ft+=H*yr,at+=H*Br,rt+=H*no,lt+=H*Xo,Et+=H*zo,H=M[10],Hn+=H*Ce,jn+=H*_t,In+=H*Lt,sn+=H*Dt,xn+=H*yt,Kt+=H*Zt,rn+=H*Jt,Ht+=H*Qn,Gt+=H*Xn,vt+=H*tr,ft+=H*gr,at+=H*yr,rt+=H*Br,lt+=H*no,Et+=H*Xo,Ut+=H*zo,H=M[11],jn+=H*Ce,In+=H*_t,sn+=H*Lt,xn+=H*Dt,Kt+=H*yt,rn+=H*Zt,Ht+=H*Jt,Gt+=H*Qn,vt+=H*Xn,ft+=H*tr,at+=H*gr,rt+=H*yr,lt+=H*Br,Et+=H*no,Ut+=H*Xo,xe+=H*zo,H=M[12],In+=H*Ce,sn+=H*_t,xn+=H*Lt,Kt+=H*Dt,rn+=H*yt,Ht+=H*Zt,Gt+=H*Jt,vt+=H*Qn,ft+=H*Xn,at+=H*tr,rt+=H*gr,lt+=H*yr,Et+=H*Br,Ut+=H*no,xe+=H*Xo,Ne+=H*zo,H=M[13],sn+=H*Ce,xn+=H*_t,Kt+=H*Lt,rn+=H*Dt,Ht+=H*yt,Gt+=H*Zt,vt+=H*Jt,ft+=H*Qn,at+=H*Xn,rt+=H*tr,lt+=H*gr,Et+=H*yr,Ut+=H*Br,xe+=H*no,Ne+=H*Xo,ze+=H*zo,H=M[14],xn+=H*Ce,Kt+=H*_t,rn+=H*Lt,Ht+=H*Dt,Gt+=H*yt,vt+=H*Zt,ft+=H*Jt,at+=H*Qn,rt+=H*Xn,lt+=H*tr,Et+=H*gr,Ut+=H*yr,xe+=H*Br,Ne+=H*no,ze+=H*Xo,Ae+=H*zo,H=M[15],Kt+=H*Ce,rn+=H*_t,Ht+=H*Lt,Gt+=H*Dt,vt+=H*yt,ft+=H*Zt,at+=H*Jt,rt+=H*Qn,lt+=H*Xn,Et+=H*tr,Ut+=H*gr,xe+=H*yr,Ne+=H*Br,ze+=H*no,Ae+=H*Xo,tt+=H*zo,He+=38*rn,nt+=38*Ht,Rt+=38*Gt,Ft+=38*vt,Tn+=38*ft,$t+=38*at,Gn+=38*rt,cn+=38*lt,Fn+=38*Et,Nn+=38*Ut,Hn+=38*xe,jn+=38*Ne,In+=38*ze,sn+=38*Ae,xn+=38*tt,he=1,H=He+he+65535,he=Math.floor(H/65536),He=H-he*65536,H=nt+he+65535,he=Math.floor(H/65536),nt=H-he*65536,H=Rt+he+65535,he=Math.floor(H/65536),Rt=H-he*65536,H=Ft+he+65535,he=Math.floor(H/65536),Ft=H-he*65536,H=Tn+he+65535,he=Math.floor(H/65536),Tn=H-he*65536,H=$t+he+65535,he=Math.floor(H/65536),$t=H-he*65536,H=Gn+he+65535,he=Math.floor(H/65536),Gn=H-he*65536,H=cn+he+65535,he=Math.floor(H/65536),cn=H-he*65536,H=Fn+he+65535,he=Math.floor(H/65536),Fn=H-he*65536,H=Nn+he+65535,he=Math.floor(H/65536),Nn=H-he*65536,H=Hn+he+65535,he=Math.floor(H/65536),Hn=H-he*65536,H=jn+he+65535,he=Math.floor(H/65536),jn=H-he*65536,H=In+he+65535,he=Math.floor(H/65536),In=H-he*65536,H=sn+he+65535,he=Math.floor(H/65536),sn=H-he*65536,H=xn+he+65535,he=Math.floor(H/65536),xn=H-he*65536,H=Kt+he+65535,he=Math.floor(H/65536),Kt=H-he*65536,He+=he-1+37*(he-1),he=1,H=He+he+65535,he=Math.floor(H/65536),He=H-he*65536,H=nt+he+65535,he=Math.floor(H/65536),nt=H-he*65536,H=Rt+he+65535,he=Math.floor(H/65536),Rt=H-he*65536,H=Ft+he+65535,he=Math.floor(H/65536),Ft=H-he*65536,H=Tn+he+65535,he=Math.floor(H/65536),Tn=H-he*65536,H=$t+he+65535,he=Math.floor(H/65536),$t=H-he*65536,H=Gn+he+65535,he=Math.floor(H/65536),Gn=H-he*65536,H=cn+he+65535,he=Math.floor(H/65536),cn=H-he*65536,H=Fn+he+65535,he=Math.floor(H/65536),Fn=H-he*65536,H=Nn+he+65535,he=Math.floor(H/65536),Nn=H-he*65536,H=Hn+he+65535,he=Math.floor(H/65536),Hn=H-he*65536,H=jn+he+65535,he=Math.floor(H/65536),jn=H-he*65536,H=In+he+65535,he=Math.floor(H/65536),In=H-he*65536,H=sn+he+65535,he=Math.floor(H/65536),sn=H-he*65536,H=xn+he+65535,he=Math.floor(H/65536),xn=H-he*65536,H=Kt+he+65535,he=Math.floor(H/65536),Kt=H-he*65536,He+=he-1+37*(he-1),$[0]=He,$[1]=nt,$[2]=Rt,$[3]=Ft,$[4]=Tn,$[5]=$t,$[6]=Gn,$[7]=cn,$[8]=Fn,$[9]=Nn,$[10]=Hn,$[11]=jn,$[12]=In,$[13]=sn,$[14]=xn,$[15]=Kt}function we($,M){Ee($,M,M)}function _e($,M){var re=r(),H;for(H=0;H<16;H++)re[H]=M[H];for(H=253;H>=0;H--)we(re,re),H!==2&&H!==4&&Ee(re,re,M);for(H=0;H<16;H++)$[H]=re[H]}function B($,M){var re=r(),H;for(H=0;H<16;H++)re[H]=M[H];for(H=250;H>=0;H--)we(re,re),H!==1&&Ee(re,re,M);for(H=0;H<16;H++)$[H]=re[H]}function k($,M,re){var H=new Uint8Array(32),he=new Float64Array(80),He,nt,Rt=r(),Ft=r(),Tn=r(),$t=r(),Gn=r(),cn=r();for(nt=0;nt<31;nt++)H[nt]=M[nt];for(H[31]=M[31]&127|64,H[0]&=248,ie(he,re),nt=0;nt<16;nt++)Ft[nt]=he[nt],$t[nt]=Rt[nt]=Tn[nt]=0;for(Rt[0]=$t[0]=1,nt=254;nt>=0;--nt)He=H[nt>>>3]>>>(nt&7)&1,I(Rt,Ft,He),I(Tn,$t,He),ue(Gn,Rt,Tn),q(Rt,Rt,Tn),ue(Tn,Ft,$t),q(Ft,Ft,$t),we($t,Gn),we(cn,Rt),Ee(Rt,Tn,Rt),Ee(Tn,Ft,Gn),ue(Gn,Rt,Tn),q(Rt,Rt,Tn),we(Ft,Rt),q(Tn,$t,cn),Ee(Rt,Tn,p),ue(Rt,Rt,$t),Ee(Tn,Tn,Rt),Ee(Rt,$t,cn),Ee($t,Ft,he),we(Ft,Gn),I(Rt,Ft,He),I(Tn,$t,He);for(nt=0;nt<16;nt++)he[nt+16]=Rt[nt],he[nt+32]=Tn[nt],he[nt+48]=Ft[nt],he[nt+64]=$t[nt];var Fn=he.subarray(32),Nn=he.subarray(16);return _e(Fn,Fn),Ee(Nn,Nn,Fn),ye($,Nn),0}function C($,M){return k($,M,c)}function Z($,M){return o(M,32),C($,M)}function X($,M,re){var H=new Uint8Array(32);return k(H,re,M),J($,a,H,le)}var ae=L,de=U;function me($,M,re,H,he,He){var nt=new Uint8Array(32);return X(nt,he,He),ae($,M,re,H,nt)}function Pe($,M,re,H,he,He){var nt=new Uint8Array(32);return X(nt,he,He),de($,M,re,H,nt)}var De=[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 Re($,M,re,H){for(var he=new Int32Array(16),He=new Int32Array(16),nt,Rt,Ft,Tn,$t,Gn,cn,Fn,Nn,Hn,jn,In,sn,xn,Kt,rn,Ht,Gt,vt,ft,at,rt,lt,Et,Ut,xe,Ne=$[0],ze=$[1],Ae=$[2],tt=$[3],Ce=$[4],_t=$[5],Lt=$[6],Dt=$[7],yt=M[0],Zt=M[1],Jt=M[2],Qn=M[3],Xn=M[4],tr=M[5],gr=M[6],yr=M[7],Br=0;H>=128;){for(vt=0;vt<16;vt++)ft=8*vt+Br,he[vt]=re[ft+0]<<24|re[ft+1]<<16|re[ft+2]<<8|re[ft+3],He[vt]=re[ft+4]<<24|re[ft+5]<<16|re[ft+6]<<8|re[ft+7];for(vt=0;vt<80;vt++)if(nt=Ne,Rt=ze,Ft=Ae,Tn=tt,$t=Ce,Gn=_t,cn=Lt,Fn=Dt,Nn=yt,Hn=Zt,jn=Jt,In=Qn,sn=Xn,xn=tr,Kt=gr,rn=yr,at=Dt,rt=yr,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=(Ce>>>14|Xn<<18)^(Ce>>>18|Xn<<14)^(Xn>>>9|Ce<<23),rt=(Xn>>>14|Ce<<18)^(Xn>>>18|Ce<<14)^(Ce>>>9|Xn<<23),lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,at=Ce&_t^~Ce&Lt,rt=Xn&tr^~Xn&gr,lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,at=De[vt*2],rt=De[vt*2+1],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,at=he[vt%16],rt=He[vt%16],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,Ht=Ut&65535|xe<<16,Gt=lt&65535|Et<<16,at=Ht,rt=Gt,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=(Ne>>>28|yt<<4)^(yt>>>2|Ne<<30)^(yt>>>7|Ne<<25),rt=(yt>>>28|Ne<<4)^(Ne>>>2|yt<<30)^(Ne>>>7|yt<<25),lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,at=Ne&ze^Ne&Ae^ze&Ae,rt=yt&Zt^yt&Jt^Zt&Jt,lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,Fn=Ut&65535|xe<<16,rn=lt&65535|Et<<16,at=Tn,rt=In,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=Ht,rt=Gt,lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,Tn=Ut&65535|xe<<16,In=lt&65535|Et<<16,ze=nt,Ae=Rt,tt=Ft,Ce=Tn,_t=$t,Lt=Gn,Dt=cn,Ne=Fn,Zt=Nn,Jt=Hn,Qn=jn,Xn=In,tr=sn,gr=xn,yr=Kt,yt=rn,vt%16===15)for(ft=0;ft<16;ft++)at=he[ft],rt=He[ft],lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=he[(ft+9)%16],rt=He[(ft+9)%16],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Ht=he[(ft+1)%16],Gt=He[(ft+1)%16],at=(Ht>>>1|Gt<<31)^(Ht>>>8|Gt<<24)^Ht>>>7,rt=(Gt>>>1|Ht<<31)^(Gt>>>8|Ht<<24)^(Gt>>>7|Ht<<25),lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Ht=he[(ft+14)%16],Gt=He[(ft+14)%16],at=(Ht>>>19|Gt<<13)^(Gt>>>29|Ht<<3)^Ht>>>6,rt=(Gt>>>19|Ht<<13)^(Ht>>>29|Gt<<3)^(Gt>>>6|Ht<<26),lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,he[ft]=Ut&65535|xe<<16,He[ft]=lt&65535|Et<<16;at=Ne,rt=yt,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[0],rt=M[0],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[0]=Ne=Ut&65535|xe<<16,M[0]=yt=lt&65535|Et<<16,at=ze,rt=Zt,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[1],rt=M[1],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[1]=ze=Ut&65535|xe<<16,M[1]=Zt=lt&65535|Et<<16,at=Ae,rt=Jt,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[2],rt=M[2],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[2]=Ae=Ut&65535|xe<<16,M[2]=Jt=lt&65535|Et<<16,at=tt,rt=Qn,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[3],rt=M[3],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[3]=tt=Ut&65535|xe<<16,M[3]=Qn=lt&65535|Et<<16,at=Ce,rt=Xn,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[4],rt=M[4],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[4]=Ce=Ut&65535|xe<<16,M[4]=Xn=lt&65535|Et<<16,at=_t,rt=tr,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[5],rt=M[5],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[5]=_t=Ut&65535|xe<<16,M[5]=tr=lt&65535|Et<<16,at=Lt,rt=gr,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[6],rt=M[6],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[6]=Lt=Ut&65535|xe<<16,M[6]=gr=lt&65535|Et<<16,at=Dt,rt=yr,lt=rt&65535,Et=rt>>>16,Ut=at&65535,xe=at>>>16,at=$[7],rt=M[7],lt+=rt&65535,Et+=rt>>>16,Ut+=at&65535,xe+=at>>>16,Et+=lt>>>16,Ut+=Et>>>16,xe+=Ut>>>16,$[7]=Dt=Ut&65535|xe<<16,M[7]=yr=lt&65535|Et<<16,Br+=128,H-=128}return H}function qe($,M,re){var H=new Int32Array(8),he=new Int32Array(8),He=new Uint8Array(256),nt,Rt=re;for(H[0]=1779033703,H[1]=3144134277,H[2]=1013904242,H[3]=2773480762,H[4]=1359893119,H[5]=2600822924,H[6]=528734635,H[7]=1541459225,he[0]=4089235720,he[1]=2227873595,he[2]=4271175723,he[3]=1595750129,he[4]=2917565137,he[5]=725511199,he[6]=4215389547,he[7]=327033209,Re(H,he,M,re),re%=128,nt=0;nt<re;nt++)He[nt]=M[Rt-re+nt];for(He[re]=128,re=256-128*(re<112?1:0),He[re-9]=0,R(He,re-8,Rt/536870912|0,Rt<<3),Re(H,he,He,re),nt=0;nt<8;nt++)R($,8*nt,H[nt],he[nt]);return 0}function et($,M){var re=r(),H=r(),he=r(),He=r(),nt=r(),Rt=r(),Ft=r(),Tn=r(),$t=r();q(re,$[1],$[0]),q($t,M[1],M[0]),Ee(re,re,$t),ue(H,$[0],$[1]),ue($t,M[0],M[1]),Ee(H,H,$t),Ee(he,$[3],M[3]),Ee(he,he,g),Ee(He,$[2],M[2]),ue(He,He,He),q(nt,H,re),q(Rt,He,he),ue(Ft,He,he),ue(Tn,H,re),Ee($[0],nt,Rt),Ee($[1],Tn,Ft),Ee($[2],Ft,Rt),Ee($[3],nt,Tn)}function ot($,M,re){var H;for(H=0;H<4;H++)I($[H],M[H],re)}function Qe($,M){var re=r(),H=r(),he=r();_e(he,M[2]),Ee(re,M[0],he),Ee(H,M[1],he),ye($,H),$[31]^=Q(re)<<7}function xt($,M,re){var H,he;for(W($[0],l),W($[1],f),W($[2],f),W($[3],l),he=255;he>=0;--he)H=re[he/8|0]>>(he&7)&1,ot($,M,H),et(M,$),et($,$),ot($,M,H)}function Wt($,M){var re=[r(),r(),r(),r()];W(re[0],y),W(re[1],A),W(re[2],f),Ee(re[3],y,A),xt($,re,M)}function Vt($,M,re){var H=new Uint8Array(64),he=[r(),r(),r(),r()],He;for(re||o(M,32),qe(H,M,32),H[0]&=248,H[31]&=127,H[31]|=64,Wt(he,H),Qe($,he),He=0;He<32;He++)M[He+32]=$[He];return 0}var Bt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function nn($,M){var re,H,he,He;for(H=63;H>=32;--H){for(re=0,he=H-32,He=H-12;he<He;++he)M[he]+=re-16*M[H]*Bt[he-(H-32)],re=Math.floor((M[he]+128)/256),M[he]-=re*256;M[he]+=re,M[H]=0}for(re=0,he=0;he<32;he++)M[he]+=re-(M[31]>>4)*Bt[he],re=M[he]>>8,M[he]&=255;for(he=0;he<32;he++)M[he]-=re*Bt[he];for(H=0;H<32;H++)M[H+1]+=M[H]>>8,$[H]=M[H]&255}function Yt($){var M=new Float64Array(64),re;for(re=0;re<64;re++)M[re]=$[re];for(re=0;re<64;re++)$[re]=0;nn($,M)}function hn($,M,re,H){var he=new Uint8Array(64),He=new Uint8Array(64),nt=new Uint8Array(64),Rt,Ft,Tn=new Float64Array(64),$t=[r(),r(),r(),r()];qe(he,H,32),he[0]&=248,he[31]&=127,he[31]|=64;var Gn=re+64;for(Rt=0;Rt<re;Rt++)$[64+Rt]=M[Rt];for(Rt=0;Rt<32;Rt++)$[32+Rt]=he[32+Rt];for(qe(nt,$.subarray(32),re+32),Yt(nt),Wt($t,nt),Qe($,$t),Rt=32;Rt<64;Rt++)$[Rt]=H[Rt];for(qe(He,$,re+64),Yt(He),Rt=0;Rt<64;Rt++)Tn[Rt]=0;for(Rt=0;Rt<32;Rt++)Tn[Rt]=nt[Rt];for(Rt=0;Rt<32;Rt++)for(Ft=0;Ft<32;Ft++)Tn[Rt+Ft]+=He[Rt]*he[Ft];return nn($.subarray(32),Tn),Gn}function Pn($,M){var re=r(),H=r(),he=r(),He=r(),nt=r(),Rt=r(),Ft=r();return W($[2],f),ie($[1],M),we(he,$[1]),Ee(He,he,m),q(he,he,$[2]),ue(He,$[2],He),we(nt,He),we(Rt,nt),Ee(Ft,Rt,nt),Ee(re,Ft,he),Ee(re,re,He),B(re,re),Ee(re,re,he),Ee(re,re,He),Ee(re,re,He),Ee($[0],re,He),we(H,$[0]),Ee(H,H,He),ne(H,he)&&Ee($[0],$[0],T),we(H,$[0]),Ee(H,H,He),ne(H,he)?-1:(Q($[0])===M[31]>>7&&q($[0],l,$[0]),Ee($[3],$[0],$[1]),0)}function Mn($,M,re,H){var he,He=new Uint8Array(32),nt=new Uint8Array(64),Rt=[r(),r(),r(),r()],Ft=[r(),r(),r(),r()];if(re<64||Pn(Ft,H))return-1;for(he=0;he<re;he++)$[he]=M[he];for(he=0;he<32;he++)$[he+32]=H[he];if(qe(nt,$,re),Yt(nt),xt(Rt,Ft,nt),Wt(Ft,M.subarray(32)),et(Rt,Ft),Qe(He,Rt),re-=64,V(M,0,He,0)){for(he=0;he<re;he++)$[he]=0;return-1}for(he=0;he<re;he++)$[he]=M[he+64];return re}var Un=32,Wn=24,Kn=32,Se=16,it=32,Nt=32,tn=32,pn=32,kn=32,zn=Wn,_n=Kn,Dn=Se,_r=64,pr=32,vr=64,vo=32,jr=64;n.lowlevel={crypto_core_hsalsa20:J,crypto_stream_xor:_,crypto_stream:S,crypto_stream_salsa20_xor:se,crypto_stream_salsa20:te,crypto_onetimeauth:z,crypto_onetimeauth_verify:Y,crypto_verify_16:O,crypto_verify_32:V,crypto_secretbox:L,crypto_secretbox_open:U,crypto_scalarmult:k,crypto_scalarmult_base:C,crypto_box_beforenm:X,crypto_box_afternm:ae,crypto_box:me,crypto_box_open:Pe,crypto_box_keypair:Z,crypto_hash:qe,crypto_sign:hn,crypto_sign_keypair:Vt,crypto_sign_open:Mn,crypto_secretbox_KEYBYTES:Un,crypto_secretbox_NONCEBYTES:Wn,crypto_secretbox_ZEROBYTES:Kn,crypto_secretbox_BOXZEROBYTES:Se,crypto_scalarmult_BYTES:it,crypto_scalarmult_SCALARBYTES:Nt,crypto_box_PUBLICKEYBYTES:tn,crypto_box_SECRETKEYBYTES:pn,crypto_box_BEFORENMBYTES:kn,crypto_box_NONCEBYTES:zn,crypto_box_ZEROBYTES:_n,crypto_box_BOXZEROBYTES:Dn,crypto_sign_BYTES:_r,crypto_sign_PUBLICKEYBYTES:pr,crypto_sign_SECRETKEYBYTES:vr,crypto_sign_SEEDBYTES:vo,crypto_hash_BYTES:jr,gf:r,D:m,L:Bt,pack25519:ye,unpack25519:ie,M:Ee,A:ue,S:we,Z:q,pow2523:B,add:et,set25519:W,modL:nn,scalarmult:xt,scalarbase:Wt};function Mr($,M){if($.length!==Un)throw new Error(\"bad key size\");if(M.length!==Wn)throw new Error(\"bad nonce size\")}function wi($,M){if($.length!==tn)throw new Error(\"bad public key size\");if(M.length!==pn)throw new Error(\"bad secret key size\")}function fe(){for(var $=0;$<arguments.length;$++)if(!(arguments[$]instanceof Uint8Array))throw new TypeError(\"unexpected type, use Uint8Array\")}function Be($){for(var M=0;M<$.length;M++)$[M]=0}n.randomBytes=function($){var M=new Uint8Array($);return o(M,$),M},n.secretbox=function($,M,re){fe($,M,re),Mr(re,M);for(var H=new Uint8Array(Kn+$.length),he=new Uint8Array(H.length),He=0;He<$.length;He++)H[He+Kn]=$[He];return L(he,H,H.length,M,re),he.subarray(Se)},n.secretbox.open=function($,M,re){fe($,M,re),Mr(re,M);for(var H=new Uint8Array(Se+$.length),he=new Uint8Array(H.length),He=0;He<$.length;He++)H[He+Se]=$[He];return H.length<32||U(he,H,H.length,M,re)!==0?null:he.subarray(Kn)},n.secretbox.keyLength=Un,n.secretbox.nonceLength=Wn,n.secretbox.overheadLength=Se,n.scalarMult=function($,M){if(fe($,M),$.length!==Nt)throw new Error(\"bad n size\");if(M.length!==it)throw new Error(\"bad p size\");var re=new Uint8Array(it);return k(re,$,M),re},n.scalarMult.base=function($){if(fe($),$.length!==Nt)throw new Error(\"bad n size\");var M=new Uint8Array(it);return C(M,$),M},n.scalarMult.scalarLength=Nt,n.scalarMult.groupElementLength=it,n.box=function($,M,re,H){var he=n.box.before(re,H);return n.secretbox($,M,he)},n.box.before=function($,M){fe($,M),wi($,M);var re=new Uint8Array(kn);return X(re,$,M),re},n.box.after=n.secretbox,n.box.open=function($,M,re,H){var he=n.box.before(re,H);return n.secretbox.open($,M,he)},n.box.open.after=n.secretbox.open,n.box.keyPair=function(){var $=new Uint8Array(tn),M=new Uint8Array(pn);return Z($,M),{publicKey:$,secretKey:M}},n.box.keyPair.fromSecretKey=function($){if(fe($),$.length!==pn)throw new Error(\"bad secret key size\");var M=new Uint8Array(tn);return C(M,$),{publicKey:M,secretKey:new Uint8Array($)}},n.box.publicKeyLength=tn,n.box.secretKeyLength=pn,n.box.sharedKeyLength=kn,n.box.nonceLength=zn,n.box.overheadLength=n.secretbox.overheadLength,n.sign=function($,M){if(fe($,M),M.length!==vr)throw new Error(\"bad secret key size\");var re=new Uint8Array(_r+$.length);return hn(re,$,$.length,M),re},n.sign.open=function($,M){if(fe($,M),M.length!==pr)throw new Error(\"bad public key size\");var re=new Uint8Array($.length),H=Mn(re,$,$.length,M);if(H<0)return null;for(var he=new Uint8Array(H),He=0;He<he.length;He++)he[He]=re[He];return he},n.sign.detached=function($,M){for(var re=n.sign($,M),H=new Uint8Array(_r),he=0;he<H.length;he++)H[he]=re[he];return H},n.sign.detached.verify=function($,M,re){if(fe($,M,re),M.length!==_r)throw new Error(\"bad signature size\");if(re.length!==pr)throw new Error(\"bad public key size\");var H=new Uint8Array(_r+$.length),he=new Uint8Array(_r+$.length),He;for(He=0;He<_r;He++)H[He]=M[He];for(He=0;He<$.length;He++)H[He+_r]=$[He];return Mn(he,H,H.length,re)>=0},n.sign.keyPair=function(){var $=new Uint8Array(pr),M=new Uint8Array(vr);return Vt($,M),{publicKey:$,secretKey:M}},n.sign.keyPair.fromSecretKey=function($){if(fe($),$.length!==vr)throw new Error(\"bad secret key size\");for(var M=new Uint8Array(pr),re=0;re<M.length;re++)M[re]=$[32+re];return{publicKey:M,secretKey:new Uint8Array($)}},n.sign.keyPair.fromSeed=function($){if(fe($),$.length!==vo)throw new Error(\"bad seed size\");for(var M=new Uint8Array(pr),re=new Uint8Array(vr),H=0;H<32;H++)re[H]=$[H];return Vt(M,re,!0),{publicKey:M,secretKey:re}},n.sign.publicKeyLength=pr,n.sign.secretKeyLength=vr,n.sign.seedLength=vo,n.sign.signatureLength=_r,n.hash=function($){fe($);var M=new Uint8Array(jr);return qe(M,$,$.length),M},n.hash.hashLength=jr,n.verify=function($,M){return fe($,M),$.length===0||M.length===0||$.length!==M.length?!1:K($,0,M,0,$.length)===0},n.setPRNG=function($){o=$},(function(){var $=typeof self<\"u\"?self.crypto||self.msCrypto:null;if($&&$.getRandomValues){var M=65536;n.setPRNG(function(re,H){var he,He=new Uint8Array(H);for(he=0;he<H;he+=M)$.getRandomValues(He.subarray(he,he+Math.min(H-he,M)));for(he=0;he<H;he++)re[he]=He[he];Be(He)})}else typeof Em<\"u\"&&($=Em(\"crypto\"),$&&$.randomBytes&&n.setPRNG(function(re,H){var he,He=$.randomBytes(H);for(he=0;he<H;he++)re[he]=He[he];Be(He)}))})()})(typeof e<\"u\"&&e.exports?e.exports:self.nacl=self.nacl||{})}});var Ru,zse=(Ru=class{constructor(){ge(this,\"level\");ge(this,\"isClient\");this.level=2,this.isClient=typeof window<\"u\"}static getInstance(){return Ru.instance||(Ru.instance=new Ru),Ru.instance}static setLevel(e){Ru.getInstance().level=e}log(e,n,r,...o){if(e>=this.level&&this.isClient){let a=n?`[${n}] ${r}`:r;switch(e){case 0:case 1:console.info(a,...o);break;case 2:console.warn(a,...o);break;case 3:console.error(a,...o);break}}}createScopedLogger(e){return{debug:(n,...r)=>this.log(0,e,n,...r),info:(n,...r)=>this.log(1,e,n,...r),warn:(n,...r)=>this.log(2,e,n,...r),error:(n,...r)=>this.log(3,e,n,...r)}}debug(e,...n){this.log(0,void 0,e,...n)}info(e,...n){this.log(1,void 0,e,...n)}warn(e,...n){this.log(2,void 0,e,...n)}error(e,...n){this.log(3,void 0,e,...n)}setIsClient(e){this.isClient=e}},ge(Ru,\"instance\",null),Ru),Hg=zse.getInstance(),ki={mainnet:{algod:{token:\"\",baseServer:\"https://mainnet-api.4160.nodely.dev\",headers:{}},isTestnet:!1,genesisHash:\"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=\",genesisId:\"mainnet-v1.0\",caipChainId:\"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k\"},testnet:{algod:{token:\"\",baseServer:\"https://testnet-api.4160.nodely.dev\",headers:{}},isTestnet:!0,genesisHash:\"SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\",genesisId:\"testnet-v1.0\",caipChainId:\"algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe\"},betanet:{algod:{token:\"\",baseServer:\"https://betanet-api.4160.nodely.dev\",headers:{}},isTestnet:!0,genesisHash:\"mFgazF-2uRS1tMiL9dsj01hJGySEmPN2OvOTQHJ6iQg=\",genesisId:\"betanet-v1.0\",caipChainId:\"algorand:mFgazF-2uRS1tMiL9dsj01hJGySEmPN2\"},fnet:{algod:{token:\"\",baseServer:\"https://fnet-api.4160.nodely.dev\",headers:{}},isTestnet:!0,genesisHash:\"kUt08LxeVAAGHnh4JoAoAMM9ql_hBwSoRrQQKWSVgxk=\",genesisId:\"fnet-v1\",caipChainId:\"algorand:kUt08LxeVAAGHnh4JoAoAMM9ql_hBwSo\"},localnet:{algod:{token:\"a\".repeat(64),baseServer:\"http://localhost\",port:4001,headers:{}},isTestnet:!0}},kRe=class{constructor(){ge(this,\"networks\");this.networks=new Map(Object.entries(ki))}mainnet(t){return this.networks.set(\"mainnet\",{...ki.mainnet,...t,genesisHash:ki.mainnet.genesisHash,genesisId:ki.mainnet.genesisId,caipChainId:ki.mainnet.caipChainId,algod:{...ki.mainnet.algod,...t.algod||{}}}),this}testnet(t){return this.networks.set(\"testnet\",{...ki.testnet,...t,genesisHash:ki.testnet.genesisHash,genesisId:ki.testnet.genesisId,caipChainId:ki.testnet.caipChainId,algod:{...ki.testnet.algod,...t.algod||{}}}),this}betanet(t){return this.networks.set(\"betanet\",{...ki.betanet,...t,genesisHash:ki.betanet.genesisHash,genesisId:ki.betanet.genesisId,caipChainId:ki.betanet.caipChainId,algod:{...ki.betanet.algod,...t.algod||{}}}),this}fnet(t){return this.networks.set(\"fnet\",{...ki.fnet,...t,genesisHash:ki.fnet.genesisHash,genesisId:ki.fnet.genesisId,caipChainId:ki.fnet.caipChainId,algod:{...ki.fnet.algod,...t.algod||{}}}),this}localnet(t){return this.networks.set(\"localnet\",{...ki.localnet,...t,algod:{...ki.localnet.algod,...t.algod||{}}}),this}addNetwork(t,e){if(ki[t])throw new Error(`Cannot add network with reserved id \"${t}\". Use the ${t}() method instead.`);return this.networks.set(t,e),this}build(){return Object.fromEntries(this.networks)}},CRe=()=>new kRe().build();function TRe(t){return typeof t==\"string\"?!0:typeof t!=\"object\"||t===null?!1:\"X-Algo-API-Token\"in t&&typeof t[\"X-Algo-API-Token\"]==\"string\"||\"get\"in t&&\"post\"in t&&\"delete\"in t?!0:Object.values(t).every(e=>typeof e==\"string\")}function lse(t){if(typeof t!=\"object\"||t===null)return!1;let{algod:e,isTestnet:n,genesisHash:r,genesisId:o,caipChainId:a}=t;return typeof e==\"object\"&&e!==null&&TRe(e.token)&&typeof e.baseServer==\"string\"&&(n===void 0||typeof n==\"boolean\")&&(r===void 0||typeof r==\"string\")&&(o===void 0||typeof o==\"string\")&&(a===void 0||typeof a==\"string\")}var Jk=(t=>(t.MAINNET=\"mainnet\",t.TESTNET=\"testnet\",t.BETANET=\"betanet\",t.FNET=\"fnet\",t.LOCALNET=\"localnet\",t))(Jk||{}),Js=class{static getItem(t){return typeof window>\"u\"?null:localStorage.getItem(t)}static setItem(t,e){typeof window>\"u\"||localStorage.setItem(t,e)}static removeItem(t){typeof window>\"u\"||localStorage.removeItem(t)}},s8=(t=>(t.BIATEC=\"biatec\",t.DEFLY=\"defly\",t.DEFLY_WEB=\"defly-web\",t.CUSTOM=\"custom\",t.EXODUS=\"exodus\",t.KIBISIS=\"kibisis\",t.KMD=\"kmd\",t.LUTE=\"lute\",t.MAGIC=\"magic\",t.MNEMONIC=\"mnemonic\",t.PERA=\"pera\",t.WALLETCONNECT=\"walletconnect\",t.WEB3AUTH=\"web3auth\",t.W3_WALLET=\"w3-wallet\",t))(s8||{}),_Re=class extends Error{constructor(e,n,r){super(e);ge(this,\"code\");ge(this,\"data\");this.name=\"SignTxnsError\",this.code=n,this.data=r}},MRe=class extends Error{constructor(e,n,r){super(e);ge(this,\"code\");ge(this,\"data\");this.name=\"SignDataError\",this.code=n,this.data=r}};var IRe={wallets:{},activeWallet:null,activeNetwork:\"testnet\",algodClient:new xr.Algodv2(\"\",\"https://testnet-api.4160.nodely.dev/\"),managerStatus:\"initializing\",networkConfig:ki,customNetworkConfigs:{}},r8=\"@txnlab/use-wallet:v4\";function zl(t,{walletId:e,wallet:n}){t.setState(r=>{let o={...r.wallets,[e]:{accounts:n.accounts.map(a=>({...a})),activeAccount:n.activeAccount?{...n.activeAccount}:null}};return{...r,wallets:o,activeWallet:e}})}function Vse(t,{walletId:e}){t.setState(n=>{let r={...n.wallets};return delete r[e],{...n,wallets:r,activeWallet:n.activeWallet===e?null:n.activeWallet}})}function Qk(t,{walletId:e}){t.setState(n=>({...n,activeWallet:e}))}function RRe(t,{walletId:e,address:n}){t.setState(r=>{let o=r.wallets[e];if(!o)return Hg.warn(`Wallet with id \"${e}\" not found`),r;let a=o.accounts.find(f=>f.address===n);if(!a)return Hg.warn(`Account with address ${n} not found in wallet \"${e}\"`),r;let c={...o,accounts:o.accounts.map(f=>({...f})),activeAccount:{...a}},l={...r.wallets,[e]:c};return{...r,wallets:l}})}function Ov(t,{walletId:e,accounts:n}){t.setState(r=>{let o=r.wallets[e];if(!o)return Hg.warn(`Wallet with id \"${e}\" not found`),r;let a=n.map(m=>({...m})),l=a.some(m=>m.address===o.activeAccount?.address)?{...o.activeAccount}:a[0]||null,f={...o,accounts:a,activeAccount:l},p={...r.wallets,[e]:f};return{...r,wallets:p}})}function PRe(t,{networkId:e,algodClient:n}){t.setState(r=>({...r,activeNetwork:e,algodClient:n}))}function BRe(t){return typeof t==\"object\"&&t!==null&&\"wallets\"in t&&\"activeWallet\"in t&&\"activeNetwork\"in t&&(!(\"customNetworkConfigs\"in t)||typeof t.customNetworkConfigs==\"object\"&&t.customNetworkConfigs!==null)}var PN,Vl=(PN=class{constructor({id:t,walletKey:e,metadata:n,store:r,subscribe:o,getAlgodClient:a}){ge(this,\"id\");ge(this,\"walletKey\");ge(this,\"metadata\");ge(this,\"store\");ge(this,\"getAlgodClient\");ge(this,\"subscribe\");ge(this,\"logger\");ge(this,\"setActive\",()=>{this.logger.info(`Set active wallet: ${this.walletKey}`),Qk(this.store,{walletId:this.walletKey})});ge(this,\"setActiveAccount\",t=>{this.logger.info(`Set active account: ${t}`),RRe(this.store,{walletId:this.walletKey,address:t})});ge(this,\"transactionSigner\",async(t,e)=>(await this.signTransactions(t,e)).reduce((o,a)=>(a!==null&&o.push(a),o),[]));ge(this,\"canSignData\",!1);ge(this,\"signData\",async(t,e)=>{throw this.logger.error(\"Method not supported: signData\"),new Error(\"Method not supported: signData\")});ge(this,\"canUsePrivateKey\",!1);ge(this,\"withPrivateKey\",async t=>{throw this.logger.error(\"Method not supported: withPrivateKey\"),new Error(\"Method not supported: withPrivateKey\")});ge(this,\"onDisconnect\",()=>{this.logger.debug(\"Removing wallet from store...\"),Vse(this.store,{walletId:this.walletKey})});ge(this,\"manageWalletConnectSession\",(t,e)=>{let n=e||this.walletKey;if(t===\"backup\"){let r=Js.getItem(\"walletconnect\");r&&(Js.setItem(`walletconnect-${n}`,r),Js.removeItem(\"walletconnect\"),this.logger.debug(`Backed up WalletConnect session for ${n}`))}else if(t===\"restore\"){let r=Js.getItem(`walletconnect-${n}`);r&&(Js.setItem(\"walletconnect\",r),Js.removeItem(`walletconnect-${n}`),this.logger.debug(`Restored WalletConnect session for ${n}`))}});this.id=t,this.walletKey=e||t,this.store=r,this.subscribe=o,this.getAlgodClient=a;let c=this.constructor;this.metadata={...c.defaultMetadata,...n},this.logger=Hg.createScopedLogger(`Wallet:${this.walletKey.toUpperCase()}`)}get name(){return this.id.toUpperCase()}get accounts(){let e=this.store.state.wallets[this.walletKey];return e?e.accounts:[]}get addresses(){return this.accounts.map(t=>t.address)}get activeAccount(){let e=this.store.state.wallets[this.walletKey];return e?e.activeAccount:null}get activeAddress(){return this.activeAccount?.address??null}get activeNetwork(){return this.store.state.activeNetwork}get isConnected(){let e=this.store.state.wallets[this.walletKey];return e?e.accounts.length>0:!1}get isActive(){return this.store.state.activeWallet===this.walletKey}get activeNetworkConfig(){let{networkConfig:t,activeNetwork:e}=this.store.state;return t[e]}},ge(PN,\"defaultMetadata\",{name:\"Base Wallet\",icon:\"\"}),PN),DRe=`data:image/svg+xml;base64,${btoa(`\\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"322\" height=\"322\">\\n  <path fill=\"#32B1E8\" d=\"M131 19a42 42 0 0 1 15 8c18 12 36 26 50 43l2 3c26 29 41 64 47 102v2l1 20h-49v10l-42 4a70897 70897 0 0 0-78 7h-3l-18 1a804 804 0 0 0 55-186c16 8 29 33 39 48l-2-16-1-3c-3-14-9-27-15-40l-1-3Z\"/>\\n  <path fill=\"#1F3AB7\" d=\"M111 33c13 6 23 25 32 37l1 2 4 6 1 2c6 8 4 20 4 30v3c0 32-11 62-26 89h2c23-3 45-4 68-4v9l-42 4a70897 70897 0 0 0-78 7h-3l-18 1a804 804 0 0 0 55-186Z\"/>\\n  <path fill=\"#3C4856\" d=\"M267 214a2941 2941 0 0 0-12 14l-2 1-10 10-5 4-2 2a8522 8522 0 0 1-21 20c-6 7-11 9-20 10-7 0-12-1-17-6l-8-7-5-6a120 120 0 0 1-8-7l-2-2-4-1-10 7a4157 4157 0 0 1-15 14l-1 1c-5 5-9 6-16 6h-3a397 397 0 0 1-15 0c-14 0-14 0-19-3l-4-7a322 322 0 0 0-8-12l-2-3-8-15 65-7 15-1a47903 47903 0 0 1 122-11l2-1h13Z\"/>\\n  <path fill=\"#1B87DF\" d=\"M152 86v2l1 2 3 1 3 5 2 4 2 3 2 4c11 21 11 21 14 30l2 4v2l3 7 6 18 5 19 2 9h44v1h-3l-64 2h-3a526 526 0 0 0-44 3l4-9a190 190 0 0 0 21-94V86Z\"/>\\n  <path fill=\"#1A279D\" d=\"M139 71c5 1 5 1 7 4l2 3 2 3c5 9 3 20 3 29v3c0 32-11 62-26 89h2c23-3 45-4 68-4v9a798 798 0 0 1-92 7l2-2 1-5 5-9c8-16 14-32 19-49l2-8 2-14 1-1c3-18 2-37 2-55Z\"/>\\n  <path fill=\"#3D4856\" d=\"M151 261c4 1 6 3 8 5l3 3 3 5-4 1-1 19h-18v-20h-7l5-5 2-2 3-2 2-3 4-1Z\"/>\\n  <path fill=\"#2EB4EB\" d=\"m254 65 4 6c4 6 8 9 14 12v2l-2 1c-7 4-11 9-15 16l-5-7c-3-6-9-8-15-10l7-5c6-4 9-9 12-15Z\"/>\\n  <path fill=\"#2021AB\" d=\"M162 206h4c10 0 10 0 15 2v1a11602 11602 0 0 1-44 4h-4l-23 1v-1h9l1-3 8-1 3-1h9l2-1 5-1h15Z\"/>\\n  <path fill=\"#31B8EF\" d=\"M280 50c3 1 3 1 5 4s4 5 8 7l-5 5-6 7-5-5-7-6 6-5 4-7Z\"/>\\n  <path fill=\"#2DC1F2\" d=\"m255 35 8 9-6 7c-5-1-6-3-9-6l7-10Z\"/>\\n  <path fill=\"#2F3A48\" d=\"M157 266c3 1 6 3 8 6v2l-4 1-1 19h-18v-18h1v7l1 4 1 4h7l7 1v-12l-1-3v-7l-1-4Z\"/>\\n  <path fill=\"#233143\" d=\"M157 266c3 1 6 3 8 6v2l-4 1-1 19h-1v-13l-1-4v-6l-1-5Z\"/>\\n  <path fill=\"#2A2DB3\" d=\"m179 207 2 2-9 1h-7l-4-2c4-4 13-2 18-1Z\"/>\\n  <path fill=\"#3864CC\" d=\"m104 69 2 6-1 2v3l-1 2-1 2-1 6-2 1 4-22Z\"/>\\n  <path fill=\"#1F2DAB\" d=\"m77 166 3 1-1 8-5 1c1-4 1-7 3-10Z\"/>\\n  <path fill=\"#2651C8\" d=\"M98 95c3 3 3 3 3 6v2l-3 1v2h-2l2-11Z\"/>\\n  <path fill=\"#383F59\" d=\"m267 214-3 5-1-3-9 1 1-2 12-1Z\"/>\\n  <path fill=\"#184FCF\" d=\"m111 33 4 2-1 2c-2 3-3 5-3 9l-2-1 2-12Z\"/>\\n  <path fill=\"#1D25A8\" d=\"M71 182h1v8l-4 2c1-7 1-7 3-10Z\"/>\\n  <path fill=\"#31BBF6\" d=\"m254 65 4 8-3-1-1-2-1 2h-2l3-7Z\"/>\\n  <path fill=\"#1E78DC\" d=\"m142 168 2 3-2 5-1 2-3 3 1-5 1-3 2-5Z\"/>\\n  <path fill=\"#42CDF8\" d=\"m255 35 4 4h-2l-7 3 5-7Z\"/>\\n  <path fill=\"#25B4EC\" d=\"M148 59h4l-2 8c-2-2-2-2-2-5v-3Z\"/>\\n  <path fill=\"#2024AA\" d=\"m63 200 2 2-1 4-3 2 2-8Z\"/>\\n  <path fill=\"#32BEFA\" d=\"m280 50 3 1-1 4-3 1 1-6Z\"/>\\n</svg>\\n`)}`,FRe=`data:image/svg+xml;base64,${btoa(`\\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 200 180\"><path d=\"M94.27 151.629c-.861-.526-1.51-1.37-1.83-2.386-.197-.62-.18-.627 1.082-.437.705.105 1.6.356 1.988.557.696.36 1.815 1.876 1.815 2.459 0 .486-2.166.348-3.054-.193m23.953-.263c-.788-.419-2.095-2.123-2.108-2.75-.01-.433 2.467-.182 3.403.345.955.536 2.148 1.97 2.148 2.582 0 .503-2.397.38-3.443-.177m-9.024-1.165c-1.567-1.193-2.38-2.74-2.55-4.849-.075-.933-.054-1.697.045-1.697.866 0 2.714 1.67 3.439 3.107.398.789.657 3.888.351 4.195-.07.07-.648-.27-1.285-.756m-8.906-1.354c-.63-.684-1.21-1.648-1.387-2.305-.318-1.18-.136-3.416.278-3.416.555 0 2.108 1.697 2.505 2.737.472 1.237.457 3.905-.023 4.063-.16.053-.777-.433-1.373-1.08m-6.805-1.775c-2.764-.612-5.223-1.425-5.357-1.772-.08-.21.169-1.027.555-1.814s.701-1.469.701-1.515c0-.047-.803.067-1.786.253-.982.185-1.857.256-1.944.157-.088-.1-.365-.715-.618-1.367-.252-.652-.858-1.729-1.345-2.393-1.293-1.76-5.285-5.526-7.272-6.858-3.826-2.564-4.96-3.855-4.667-5.316.08-.402.692-1.574 1.359-2.606 1.65-2.551 2.51-4.472 2.512-5.62.002-.571-.364-1.69-.901-2.758l-.905-1.796.706-.532c1.936-1.46 4.649-4.916 4.205-5.36-.06-.06-.846.72-1.745 1.732-3.553 3.997-7.814 6.463-16.014 9.27-5.324 1.823-5.853 2.06-7.183 3.228-1.555 1.365-1.962 2.502-2.531 7.063-.284 2.275-.706 4.79-.937 5.591-.231.8-.403 2.17-.382 3.043.032 1.346-.157 2.06-1.248 4.698-1.498 3.622-1.068 3.708-4.138-.827l-2.036-3.008.747-.784c.411-.43 1.075-.978 1.475-1.216.955-.568.919-.922-.236-2.331-.53-.647-.917-1.209-.86-1.25s.43-.277.83-.526c1.788-1.12 2.7-4.727 2.987-11.822.214-5.274.595-6.46 2.195-6.83 6.634-1.535 7.58-1.98 8.618-4.066.926-1.858.9-3.701-.121-8.475-.87-4.072-1.047-7.21-.516-9.223.606-2.303 3.759-7.433 5.667-9.221.376-.353.684-.729.684-.835 0-.254-3.325-2.697-4.448-3.268-.482-.245-1.455-.45-2.163-.456-3.892-.03-6.628 1.877-8.722 6.08-.603 1.212-1.582 2.73-2.176 3.374-2.733 2.965-8.602 4.09-12.666 2.43l-.913-.374 1.323-.05c1.422-.054 3.498-.94 3.944-1.683.414-.69.076-.79-1.06-.314-1.443.605-4.075.597-5.039-.015-1.259-.8-2.23-1.81-2.795-2.908l-.535-1.042 1.243 1.095c1.51 1.328 2.691 1.752 4.425 1.585 1.506-.145 2.523-.851 1.65-1.147-3.195-1.08-5.834-3.078-7.07-5.35-.809-1.485-1.513-3.982-1.504-5.334l.006-.936.42.854c.232.47.941 1.333 1.576 1.918l1.155 1.064 2.189-.012 2.188-.011-1.012-.535c-.975-.514-3.353-2.766-3.353-3.175 0-.11.506.079 1.124.418 1.282.703 3.888 1.32 4.21.996.12-.118-.204-.612-.718-1.097-.513-.484-1.17-1.344-1.46-1.911l-.525-1.03 1.174.895c2.02 1.542 3.883 1.506 6.342-.123.69-.457 1.218-.863 1.175-.903s-.989.227-2.103.594c-1.87.618-2.11.64-3.151.305-1.284-.415-2.023-1.273-2.25-2.613l-.158-.926.486.595c1.07 1.31 2.652 1.255 6.363-.224 1.132-.451 2.892-1.036 3.91-1.3 2.732-.706 1.561-.926-2.298-.43-1.778.228-3.27.376-3.318.329-.047-.047.662-.415 1.575-.818 2.002-.883 4.78-1.152 6.858-.663 1.817.427 2.555.81 4.032 2.087 1.151.997 3.654 2.156 4.605 2.133.595-.015-2.96-3.395-4.552-4.328-1.639-.96-4.11-1.542-6.107-1.438-.92.049-1.627.016-1.571-.073.242-.388 3.44-.825 5.203-.71 4.048.265 6.96 2.546 10.902 8.537 2.553 3.883 4.234 5.67 6.137 6.524l1.092.49 2.215-1.027c4.747-2.2 8.797-2.518 16.097-1.26 2.25.387 4.717.704 5.482.704h1.39l.074 3.203.074 3.203.894-1.113c.88-1.096.894-1.152.846-3.516l-.049-2.402-1.61-1.721c-4.14-4.425-4.335-6.536-1.135-12.213 2.744-4.87 2.704-4.41.813-9.32-.883-2.292-1.696-4.167-1.807-4.167-.339 0-.205 4 .196 5.821.716 3.256.435 4.822-1.006 5.603-.371.2-2.144.33-4.904.36-3.6.036-4.348-.022-4.473-.348-.087-.227.102-.582.451-.845.53-.4.563-.53.274-1.09-.18-.35-.692-1.022-1.137-1.493s-.734-.933-.64-1.026c.093-.094 1.072-.036 2.175.128 3.023.45 3.76.398 4.211-.297.4-.615 2.887-9.725 2.704-9.907-.196-.196-1.55 1.62-2.759 3.7-1.782 3.068-3.14 3.895-6.379 3.889-2.485-.005-5.43-1.098-8.658-3.213-1.439-.943-3.02-1.855-3.514-2.027-1.524-.531-3.75-.392-5.163.324l-1.26.638.567-.603c.892-.95 3.048-2.004 4.432-2.167 1.94-.23 3.3.283 5.786 2.18 2.39 1.823 3.163 2.225 4.28 2.225.6 0 .497-.12-.745-.872-.792-.48-2.416-1.598-3.609-2.486-2.658-1.978-4.119-2.58-5.831-2.4l-1.26.132.926-.39c.667-.281 1.609-.36 3.373-.284 1.346.059 2.448.077 2.448.04 0-.278-2.537-1.455-3.71-1.722-.89-.202-1.231-.365-.884-.421.312-.051 1.86.225 3.44.614 2.564.63 3.167.687 5.602.525 5.536-.369 7.032-1.144 9.218-4.774l1.433-2.382-1.224 1.323c-.673.728-1.779 1.928-2.457 2.666-.677.739-1.53 1.417-1.893 1.508l-.662.165.61-.503c.334-.277 1.088-1.491 1.675-2.698 1.772-3.648 3.228-4.779 6.772-5.257 3.522-.476 4.797-.791 5.421-1.342.332-.293.429-.44.215-.329-.213.112-1.94.277-3.836.367-2.955.14-3.666.263-4.97.86-1.632.749-4.092 2.893-4.996 4.356-.764 1.236-.923.905-.224-.465 1.387-2.718 4.685-4.945 8.366-5.651l1.815-.349-1.058-.235c-.582-.13-1.952-.224-3.043-.209l-1.984.027 1.72-.82c1.427-.682 2.04-.822 3.611-.822 1.607 0 1.86-.06 1.679-.4-.539-1.005-1.377-1.452-2.69-1.432-.769.011-1.156-.067-.937-.19.534-.298 2.168-.34 4.169-.104 1.648.194 1.82.159 3.59-.733 1.023-.515 2.472-1.047 3.22-1.183 1.388-.253 3.607-.04 4.472.429.942.51 1.958 1.825 2.095 2.712.116.746 0 1.052-.671 1.777-.752.813-.811 1.018-.811 2.82 0 1.706-.105 2.127-.85 3.424-.467.814-.973 1.476-1.124 1.473s-.797-.242-1.435-.532c-1.277-.579-1.714-.435-1.988.655-.115.46.045.84.605 1.44.42.448 1.621 2.237 2.671 3.975 1.883 3.116 1.905 3.175 1.585 4.146-.258.78-.258 1.56 0 3.73.179 1.51.253 3.031.166 3.38-.128.509.033.795.805 1.432 1.367 1.126 5.02 2.947 5.914 2.947 1.268 0 1.588.247 1.588 1.227 0 1.057-.642 2.742-1.045 2.742-.153 0-.278-.298-.278-.662 0-.558-.123-.661-.793-.661-.436 0-2.162-.467-3.836-1.036l-3.044-1.036v1.788c0 .984-.077 3.057-.172 4.608l-.173 2.82h3.015l-.133.86c-.073.472-.206 2.11-.295 3.637-.373 6.42-.634 7.203-4.207 12.65-4.119 6.278-4.635 7.984-3.493 11.548.37 1.158.647 2.133.613 2.167-.246.246-2.569-1.19-3.783-2.34-2.616-2.473-2.922-3.975-1.146-5.619.954-.882 1.054-1.087.892-1.828-.417-1.91-.553-1.976-1-.482-.232.777-.693 1.849-1.024 2.382-.526.846-.603 1.318-.603 3.705v2.736l3.175 1.022c1.746.562 3.446 1.028 3.777 1.034.583.012.59-.012.194-.776-.224-.434-.479-1.307-.566-1.939-.208-1.523.53-3.065 3.905-8.159 4.537-6.845 5.478-9.25 5.681-14.513.07-1.82.19-3.93.267-4.692.137-1.353.17-1.398 1.379-1.933 2.27-1.004 4.245-3.717 6.253-8.589.526-1.274.459-1.204-1.891 1.985-1.019 1.382-2.13 2.751-2.47 3.042-.604.516-.603.506.048-.397.938-1.299 1.216-2.144 1.685-5.107.663-4.193 1.699-6.255 4.604-9.16 3.639-3.638 9.47-6.348 13.7-6.365.635-.003 1.201-.155 1.322-.356.117-.192 1.105-.92 2.196-1.615 1.092-.696 2.252-1.511 2.579-1.812.327-.3.66-.48.74-.4.081.081-.038.942-.263 1.914s-.41 1.88-.41 2.016c0 .37 1.393.3 1.992-.102.287-.192 1.296-.62 2.241-.953s1.998-.78 2.338-.994c.34-.215.665-.345.722-.288.302.302-1.982 3.526-2.927 4.132l-1.152.74c-.277.179 1.202 3.732 1.975 4.745.674.882.862 1.347.742 1.825-.089.354.045 1.273.296 2.044.645 1.98 2.913 6.751 3.698 7.779.808 1.06.82 1.416.075 2.363-.32.408-.648 1.225-.728 1.816-.118.879-.279 1.12-.89 1.335-1.457.512-2.298-.449-2.94-3.358-.113-.512-.325-.728-.715-.728-.634 0-.619.099.398 2.514.368.873.572 1.685.453 1.804-.12.119-.679.178-1.244.132-1.006-.082-1.03-.108-1.165-1.29-.11-.958-.407-1.515-1.444-2.716-1.28-1.483-1.523-1.617-3.974-2.186-.436-.102-1.235-.406-1.776-.677l-.981-.491-.311 1.124c-.462 1.668-.381 7.592.14 10.35.244 1.29.926 3.552 1.516 5.027 1.864 4.655 1.933 4.98 1.924 9.031-.006 2.853-.112 3.972-.461 4.87-.25.641-.415 1.204-.367 1.252.047.047 2.935.203 6.419.347 4.2.174 6.786.397 7.679.664 1.433.429 2.955 1.341 3.328 1.995.125.219 1.292 3.718 2.594 7.777 2.56 7.978 2.515 7.613 1.142 9.263-.582.7-.623.918-.458 2.455l.18 1.686-1.685 1.59c-2.476 2.335-2.487 2.338-2.833.702l-.825-3.894c-.497-2.344-.503-2.535-.09-2.844.245-.182.75-.332 1.121-.335 1.259-.007 1.444-.36.672-1.277l-.7-.833.461-1.209c.403-1.054.421-1.428.146-2.924-.856-4.647-3.463-7.755-6.516-7.769-1.198-.006-5.626.726-6.143 1.015-.419.235 1.36 2.035 4.026 4.073 1.954 1.494 2.487 2.265 2.708 3.918.115.858-.031 1.278-.963 2.753-1.122 1.776-2.596 4.941-4.015 8.62-.437 1.133-1.048 2.383-1.358 2.777-.546.695-.623.712-2.434.544-1.51-.14-2.034-.085-2.726.287-.933.503-1.032.488-5.234-.754l-1.852-.547 1.058-.93c2.452-2.155 4.96-4.035 5.375-4.028.245.004.743.417 1.107.919.364.5.74.914.835.918.336.014 2.673-2.777 3.423-4.09.928-1.622 1.429-3.721 1.19-4.992-.414-2.208-2.105-3.2-8.836-5.183-4.604-1.356-5.44-1.637-6.837-2.3-.81-.384-.92-.36-3.047.664-2.593 1.248-5.507 2.251-8.665 2.983-3.304.766-9.686.95-12.988.376-3.227-.562-7.639-2.035-9.626-3.214-.856-.508-1.618-.862-1.693-.787-.15.15 1.12 2.079 1.665 2.53.271.226.239.732-.166 2.586-1.245 5.713-2.66 8.612-7.189 14.73-2.852 3.852-3.402 5.685-2.327 7.762.66 1.274 9.278 9.763 11.016 10.85.797.498 1.576 1.26 1.929 1.889.496.883 2.158 5.275 2.158 5.704 0 .2-1.577.111-2.779-.154m46.76-1.68c-2.98-1.107-5.348-3.111-7.054-5.97-1.025-1.72-2.16-4.428-1.946-4.643.229-.229 3.039.644 4.916 1.527 3.417 1.608 6.275 5.198 6.594 8.283.178 1.723.063 1.76-2.51.803m-70.399.107c-2.923-.4-6.887-2.043-7.56-3.132-.23-.371 1.693-1.772 3.683-2.683 4.119-1.887 9.22-1.779 13.075.277 1.637.873 4.347 2.943 4.307 3.29-.014.122-.895.499-1.957.837-4.06 1.29-8.482 1.831-11.548 1.411m51.264-1.55c-1.687-.66-3.315-1.831-4.87-3.503l-1.323-1.421 2.116-.183c3.467-.298 6.424.354 8.757 1.932 1.096.742 2.753 2.456 2.753 2.848 0 .859-5.46 1.099-7.433.326m38.521-1.26c-3.84-.798-6.966-2.331-9.705-4.761-2.156-1.913-3.179-2.512-5.08-2.978-1.478-.362-3.339-1.249-3.339-1.591 0-.318 2.824-.81 5.689-.991 7.046-.446 13.549 2.741 16.133 7.908.513 1.024.932 2.025.932 2.224 0 .277-.479.354-2.05.33-1.128-.016-2.289-.08-2.58-.14m-61.217-2.076c-1.35-.421-2.52-1.449-3.238-2.845l-.51-.992h1.178c1.479 0 2.46.365 3.42 1.273.65.615 1.762 2.392 1.762 2.817 0 .255-1.426.117-2.612-.253m5.45-1.504c-1.583-1.153-2.396-3.509-1.878-5.442.192-.715.563-.742 1.334-.098 1.18.986 1.673 2.177 1.674 4.051 0 .974-.09 1.826-.2 1.895-.112.068-.53-.114-.93-.406m-26.254-1.075a150 150 0 0 0-3.968-1.97l-2.382-1.138 1.21-.001c2.527-.002 4.928 1.203 6.339 3.185.306.43.52.777.473.77-.046-.007-.799-.388-1.672-.845zm-14.354-3.608c-.764-.264-1.631-.699-1.927-.966-.59-.534-1.695-2.22-1.542-2.352.053-.045.573-.192 1.155-.325 1.324-.303 1.45-.925.662-3.265-.306-.908-.503-1.705-.438-1.77.066-.066.637.018 1.27.187.95.253 1.683.849 4.194 3.411 2.483 2.534 3.286 3.19 4.366 3.566.727.253 1.62.587 1.984.742l.662.28-.662.199c-.779.234-6.102.794-7.42.782-.503-.005-1.54-.225-2.304-.489m104.313-.83c-1.528-.484-4.719-2.704-4.75-3.303-.006-.145.88-.42 1.972-.61 2.368-.414 4.676-.11 6.582.864 1.41.721 3.082 2.35 2.83 2.756-.55.891-4.237 1.054-6.634.294m-56.58-.117c-2.06-.734-3.35-2.65-3.345-4.961.006-2.304.15-2.574 1.279-2.397 1.516.239 3.013.83 3.677 1.455l.609.572 1.523-1.507c.838-.829 1.593-1.507 1.679-1.507.085 0 .362.735.614 1.633.94 3.35-.383 5.974-3.431 6.806-1.302.356-1.35.354-2.605-.094m-75.315-.698c-6.533-.942-11.018-2.967-14.552-6.571-1.972-2.01-3.175-3.81-2.8-4.186.109-.109 1.32-.239 2.693-.29 5.235-.192 9.266 1.449 13.22 5.381 2.097 2.085 5.101 5.853 4.838 6.068-.05.041-1.58-.14-3.4-.402m97.327-1.25c4.267-5.096 8.959-7.442 13.334-6.666.982.174 1.84.405 1.906.513.198.32-1.54 2.713-2.834 3.904-2.314 2.13-5.42 3.148-10.492 3.438l-3.055.175zm17.502-.559c0-.646 1.702-5.318 2.447-6.715 1.472-2.762 4.84-5.965 5.538-5.267.161.161.234 1.18.176 2.481-.114 2.603-.705 4.023-2.51 6.03-1.524 1.695-5.651 4.23-5.651 3.471m8.04-1.157c3.728-2.356 7.725-5.133 8.864-6.158 1.353-1.218 1.403-1.24.984-.43-1.093 2.113-4.85 5.104-7.93 6.31-1.734.68-2.798.834-1.919.278m2.457-4.828c-.243-.511-.443-1.383-.443-1.937 0-1.018.973-3.223 1.5-3.399.368-.123 1.146 1.814 1.146 2.853 0 .855-.78 2.6-1.39 3.105-.298.247-.456.127-.813-.622m11.343.373c-1.157-.135-2.15-.292-2.206-.348-.16-.16 1.966-2.017 3.71-3.24 2.387-1.673 4.54-2.317 7.745-2.316 2.182 0 2.874.104 3.949.596l1.303.595-.907.936c-2.935 3.03-7.986 4.433-13.594 3.777m-135.543-5.98c-3.17-5.953-3.802-11.809-1.769-16.407.766-1.73 2.408-4.033 2.878-4.033.185 0 .7.685 1.142 1.522 2.02 3.82 2.643 8.569 1.708 13.03-.515 2.454-2.383 7.938-2.705 7.938-.089 0-.653-.923-1.254-2.05m131.543-.026c-2.11-1.55-3.023-3.093-3.023-5.108 0-1.215.77-3.056 1.587-3.796.494-.447.574-.438 1.965.243 1.713.838 2.676 1.892 3.072 3.363.464 1.725-.257 3.872-1.791 5.328l-.771.733zm-142.341-2.392c-.955-.434-3.028-2.462-3.028-2.963 0-.106.589-.273 1.309-.372 2.032-.28 3.923.381 5.269 1.84.602.654 1.095 1.295 1.095 1.426 0 .289-1.308.57-2.613.562-.527-.003-1.442-.225-2.032-.493m134.927-3.139c1.218-3.954 1.471-13.59.477-18.203a57 57 0 0 0-1.472-5.291c-1.025-3-1.187-3.508-1.031-3.229.06.11.227.199.369.199s.185-.12.095-.265-.099-.265-.019-.265c.285 0 2.284 4.27 2.94 6.28.942 2.884 1.488 6.584 1.481 10.037-.008 4.205-.63 7.156-2.126 10.088-.577 1.13-.974 1.491-.714.65m15.622-.53c.096-.4.694-1.798 1.33-3.108 1.78-3.673 4.396-6.043 7.61-6.899 2.261-.602 2.412-.555 2.244.699-.39 2.903-3.348 6.413-6.971 8.27-.455.233-1.63.726-2.608 1.094l-1.78.67zm-150.592-3.621c-5.551-2.683-8.865-5.295-11.436-9.013-2.092-3.028-3.72-7.066-3.72-9.231 0-.636.089-.69 1.135-.69 2.913 0 6.796 1.74 9.585 4.296 3.283 3.008 5.033 6.073 6.587 11.534 1.15 4.043 1.263 4.544 1.02 4.54-.111 0-1.539-.647-3.17-1.436m145.075.485c-.092-.241-.309-1.552-.48-2.914-.562-4.443.43-8.183 2.772-10.456.58-.562 1.164-1.022 1.3-1.022.405 0 1.01 1.75 1.186 3.43.324 3.1-.9 6.63-3.421 9.872-.926 1.19-1.226 1.431-1.357 1.09m-6.353-7.675c.34-1.413.908-2.21 1.957-2.745 1.55-.792 1.96-.718 1.754.314-.326 1.628-1.397 2.695-3.034 3.022-.84.168-.856.154-.677-.591m18.432-2.084c-.473-.206-.857-.469-.854-.585.01-.368 1.945-1.592 2.816-1.781.461-.1 1.34-.047 1.952.118l1.114.3-.882.909c-.764.789-2.17 1.45-3.022 1.422-.145-.005-.651-.178-1.124-.383m-4.19-2.014c.437-5.243 1.85-8.992 4.434-11.754 1.589-1.698 4.011-3.172 5.51-3.353.608-.073.669.016.745 1.087.125 1.742-.655 4.812-1.81 7.117-1.233 2.466-3.244 4.75-6.16 7-3.185 2.457-2.932 2.466-2.719-.097M164.535 96.2c.011-.601.996-2.432 1.613-2.997.74-.68 1.86-1.142 2.764-1.142.74 0 .783.213.287 1.402-.328.784-2.05 2.558-2.496 2.573-.105.004-.636.11-1.182.237-.703.163-.99.142-.986-.073M39.38 92.511l-1.19-.287 1.894-.184c2.429-.237 4.211-.836 5.755-1.933 1.705-1.212 2.43-2.3 3.187-4.777.358-1.173 1.027-2.644 1.487-3.27.855-1.16 1.328-1.354.772-.315-.17.317-.42 1.753-.555 3.191s-.371 2.944-.524 3.347c-1.29 3.39-6.255 5.33-10.826 4.228m132.353-3.022c-1.37-3.004-1.722-4.62-1.596-7.322.12-2.584.663-4.209 1.984-5.941l.698-.915.593.689c1.538 1.787 2.37 6.366 1.72 9.457-.375 1.79-1.903 5.61-2.293 5.734-.158.05-.656-.715-1.106-1.702m6.655.323c.094-.582.245-3.618.336-6.747.16-5.514-.097-11.175-.726-16.007-.66-5.078-2.584-11.438-4.788-15.834-.572-1.142-.914-1.998-.76-1.903.154.096.28.02.28-.17 0-.608 1.905 2.465 3.056 4.93 3.19 6.83 5.492 18.482 5.039 25.5-.219 3.379-.79 6.78-1.52 9.04-.672 2.084-1.164 2.722-.917 1.191m-5.129-39.936c0-.065-.119-.19-.264-.28s-.265-.038-.265.116.12.28.265.28.264-.052.264-.116M21.39 87.46c-6.885-6.262-9.634-10.983-10.312-17.71-.218-2.153.098-6.211.514-6.628.377-.377 2.86.757 4.714 2.153 4.287 3.228 7.128 8.67 7.976 15.276.349 2.717.746 9.923.547 9.92-.073-.001-1.62-1.356-3.44-3.01m141.818 1.495c.002-1.223.51-2.654 1.254-3.539.681-.81 2.635-1.902 2.999-1.677.248.154-.193 2.347-.65 3.224-.523 1.007-1.444 1.82-2.616 2.31l-.989.413zm19.715-9.65c.101-.48.414-1.25.694-1.712.53-.872 2.361-1.937 3.331-1.937.515 0 .537.075.29.992-.432 1.599-1.891 2.901-3.749 3.347-.733.176-.746.16-.566-.69m-1.078-4.864c-.434-3.474.426-7.949 2.004-10.427.992-1.557 3.308-3.704 3.996-3.704.79 0 1.023 5.098.34 7.427-.775 2.639-3.22 6.102-5.41 7.661l-.744.53zM27.106 70.74c-.83-2.163.852-9.285 3.442-14.577 3.414-6.977 9.876-14.173 15.518-17.28 1.338-.736 1.306-.696-.732.921-3.554 2.82-6.93 6.51-9.617 10.514-2.78 4.142-4.184 7.582-5.825 14.274-.593 2.419-1.273 4.885-1.512 5.482-.446 1.116-.991 1.401-1.274.666m148.415-4.429c-3.31-1.775-5.714-4.87-6.05-7.787-.123-1.073-.097-1.124.573-1.122 1.742.006 4.537 2.38 5.833 4.954.468.928 1.437 4.572 1.263 4.746-.028.028-.757-.328-1.62-.79M24.465 63.817c-1.392-2.767-2.046-5.175-2.208-8.138-.16-2.924.292-6.48.823-6.48.632 0 2.73 1.536 3.654 2.676 1.65 2.036 2.173 3.325 2.185 5.393.01 1.729-.094 2.069-1.554 5.094-.86 1.782-1.663 3.24-1.783 3.24s-.623-.803-1.117-1.785m155.049-4.47c-.602-3.045-.356-5.571.757-7.767.795-1.57 2.708-3.351 3.137-2.921.187.187.302 1.33.302 3 0 2.617-.03 2.756-1.001 4.573-.551 1.03-1.462 2.322-2.024 2.871l-1.022.998zm-68.432-2.831c0-.451.748-1.115 1.521-1.35.762-.233.743.064-.061.978-.678.77-1.46.969-1.46.372M33.59 54.752c1.046-1.877 3.42-4.082 5.433-5.045 1.457-.699 2.23-.892 3.93-.982 2.15-.115 3.863.18 4.728.812.444.324.393.442-.74 1.701-1.47 1.635-3.438 2.97-5.575 3.778-1.242.47-2.33.63-4.998.735l-3.41.135zm76.965.194c0-.802 1.282-2.19 2.17-2.35.969-.176 1.534.041 1.534.587 0 .382-.305.583-1.245.82-.685.172-1.518.608-1.852.968l-.607.655zm57.018-.605c-.437-.225-.965-.578-1.173-.783-.327-.323-.22-.446.794-.905 1.314-.597 2.774-.659 4.347-.184 1.386.417 1.347.95-.122 1.69-1.377.695-2.73.76-3.846.182m-58.306-1.16c.174-.5.815-1.406 1.424-2.015.918-.918 1.368-1.152 2.637-1.37 1.42-.246 2.024-.224 3.048.107.8.26-.765 1.148-2.022 1.148-1.584 0-2.915.6-4.27 1.928l-1.133 1.109zm65.577-2.87c-.75-1.497-.906-2.129-1.001-4.048-.094-1.886-.02-2.485.431-3.506.3-.677.655-1.231.79-1.231.33 0 1.475 1.777 1.856 2.883.497 1.442.383 4.31-.236 5.965-.3.803-.638 1.517-.75 1.586-.11.069-.602-.673-1.09-1.649m-65.359.239c.662-1.25 2.453-2.918 3.604-3.357 1.384-.53 4.318-.42 5.512.206l.757.397-.576.403c-.45.315-1.084.374-2.904.27-2.854-.163-3.938.155-5.54 1.625-.876.802-1.1.922-.853.456m-79.602-1.036c-1.895-1.894-2.474-3.183-2.62-5.824-.066-1.211-.008-2.314.128-2.45.332-.332 2.019.945 2.831 2.145.348.513.825 1.5 1.06 2.192.47 1.384.581 4.818.164 5.076-.144.089-.848-.423-1.563-1.139m78.698-.58c.528-1.848 2.227-3.934 3.94-4.841 1.648-.872 4.113-.74 7.331.392l2.55.897-.936.614c-.919.602-.967.606-2.55.2-2.732-.698-3.209-.739-5.014-.424-2.025.352-3.826 1.419-4.84 2.865-.543.777-.635.833-.481.297m54.957-.028c-.619-.306-1.125-.665-1.125-.797 0-.133.387-.477.86-.765 1.455-.887 4.475-.65 6.244.49l.621.401-1.15.602c-1.547.81-3.894.84-5.45.07m-113.51-5.029c-.621-.307-1.376-.872-1.677-1.255l-.548-.696.883-.372c2.07-.872 5.296-.261 6.675 1.263.498.55.494.556-.662 1.08-1.52.69-3.253.682-4.672-.02m69.126-.293c-2.905-1.128-5.647-1.179-7.871-.147-.837.388-1.522.665-1.522.615 0-.292 2.738-1.751 3.95-2.106 1.796-.525 4.726-.535 6.634-.023 1.759.472 3.564.489 4.61.043.696-.298.59-.32-1.07-.226-1.83.103-1.852.096-3.683-1.16-1.013-.694-2.318-1.413-2.9-1.596l-1.058-.333.988-.018c.544-.01 2.135.28 3.535.644 2.6.675 4.605.856 4.605.415 0-.347-1.479-1.36-2.616-1.791-.935-.355-.915-.361.9-.261 2.1.115 3.862.79 4.957 1.899.72.729.727.73.727.13 0-.934-1.81-2.484-3.47-2.973-1.732-.51-.9-.598.957-.102 2.68.716 5.39 2.515 6.21 4.124.295.578.537 1.15.537 1.273 0 .122-1.102.361-2.448.532s-3.511.671-4.812 1.112c-3.03 1.027-4.41 1.017-7.16-.05m-83.06-2.246c-.331-4.672.95-8.655 3.622-11.257l1.343-1.308.418.754c.31.56.419 1.506.419 3.664 0 2.803-.036 2.984-.958 4.895-.887 1.84-3.687 5.524-4.365 5.745-.197.064-.358-.772-.48-2.493m125.87-.33c-.464-.283-1.05-.829-1.301-1.212-.556-.848-.22-1.17 1.221-1.176 1.652-.007 4.104 1.78 3.588 2.615-.3.486-2.579.34-3.507-.227m-104.922-.902c-1.831-.683-4.166-2.965-3.74-3.655.203-.328 3.603-.26 4.628.093.494.17 1.341.6 1.882.955 1.055.692 2.477 2.374 2.223 2.628-.352.353-4.033.337-4.993-.021m.993-5.296c-.727-.191-2.034-.56-2.902-.82l-1.58-.473.898-.75c2.53-2.112 6.92-3.595 9.62-3.25 1.876.239 3.85 1.003 4.937 1.91l.907.758-1.14.825c-1.943 1.409-3.805 1.977-6.771 2.068-1.607.05-3.165-.056-3.969-.268\" style=\"fill:teal;stroke-width:.264583\"></path></svg>\\n`)}`,Hse={biatec:{id:\"biatec\",name:\"Biatec Wallet\",icon:FRe},voiwallet:{id:\"voiwallet\",name:\"Voi Wallet\",icon:DRe}},jse=new Map;function ORe(t){return Hse[t]||jse.get(t)}function $se(t){return typeof t==\"string\"?ORe(t):(Hse[t.id]||jse.set(t.id,t),t)}var LRe=class extends Error{constructor(t){super(t),this.name=\"SessionError\"}},NRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 480 480\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect width=\"480\" height=\"480\" fill=\"#FFFFFF\" />\\n  <path fill=\"#3396FF\" d=\"M126.6,168c62.6-61.3,164.2-61.3,226.8,0l7.5,7.4c3.1,3.1,3.1,8,0,11.1l-25.8,25.2c-1.6,1.5-4.1,1.5-5.7,0l-10.4-10.2c-43.7-42.8-114.5-42.8-158.2,0l-11.1,10.9c-1.6,1.5-4.1,1.5-5.7,0l-25.8-25.2c-3.1-3.1-3.1-8,0-11.1L126.6,168zM406.7,220.2l22.9,22.5c3.1,3.1,3.1,8,0,11.1L326.2,355.1c-3.1,3.1-8.2,3.1-11.3,0l-73.4-71.9c-0.8-0.8-2.1-0.8-2.8,0l-73.4,71.9c-3.1,3.1-8.2,3.1-11.3,0L50.3,253.8c-3.1-3.1-3.1-8,0-11.1l22.9-22.5c3.1-3.1,8.2-3.1,11.3,0l73.4,71.9c0.8,0.8,2.1,0.8,2.8,0 l73.4-71.9c3.1-3.1,8.2-3.1,11.3,0l73.4,71.9c0.8,0.8,2.1,0.8,2.8,0l73.4-71.9C398.5,217.1,403.6,217.1,406.7,220.2L406.7,220.2z\" />\\n</svg>\\n`)}`,BN,Kse=(BN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){let l=a?.skin?$se(a.skin):void 0,f=l?`walletconnect:${l.id}`:e,p=l?{name:l.name,icon:l.icon,...c}:c;super({id:e,walletKey:f,metadata:p,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"modal\",null);ge(this,\"modalOptions\");ge(this,\"session\",null);ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");try{let e=this.client||await this.initializeClient(),n=this.modal||await this.initializeModal(),r={algorand:{chains:[this.activeChainId],methods:[\"algo_signTxn\"],events:[]}},{uri:o,approval:a}=await e.connect({requiredNamespaces:r});if(!o)throw this.logger.error(\"No URI found\"),new Error(\"No URI found\");await n.openModal({uri:o});let c=await a(),l=this.onSessionConnected(c);return this.logger.info(\"Connected successfully\"),l}catch(e){throw this.logger.error(\"Error connecting:\",e.message),e}finally{this.modal?.closeModal()}});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\");try{this.onDisconnect(),this.client&&this.session&&await this.client.disconnect({topic:this.session.topic,reason:{message:\"User disconnected.\",code:6e3}}),this.logger.info(\"Disconnected\")}catch(e){throw this.logger.error(\"Error disconnecting:\",e.message),e}});ge(this,\"resumeSession\",async()=>{try{if(!this.store.state.wallets[this.walletKey]){this.logger.info(\"No session to resume\");return}this.logger.info(\"Resuming session...\");let r=this.client||await this.initializeClient();if(r.session.length){let o=r.session.keys.length-1,a=r.session.get(r.session.keys[o]);this.onSessionConnected(a)}this.logger.info(\"Session resumed successfully\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{if(!this.session)throw this.logger.error(\"No session found!\"),new LRe(\"No session found!\");this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let p=Ki(e);r=this.processTxns(p,n)}else{let p=Ki(e);r=this.processEncodedTxns(p,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",[r]);let a=xPe(\"algo_signTxn\",[r]),c=await o.request({chainId:this.activeChainId,topic:this.session.topic,request:a});this.logger.debug(\"Received signed transactions from wallet\",c);let l=c.reduce((p,m)=>{if(m){let g;typeof m==\"string\"?g=l8(m):m instanceof Uint8Array?g=m:Array.isArray(m)?g=new Uint8Array(m):(this.logger.warn(\"Unexpected type in signTxnsResult\",m),g=new Uint8Array),p.push(g)}return p},[]),f=r.reduce((p,m)=>{if(m.signers&&m.signers.length==0)p.push(null);else{let g=l.shift();g&&p.push(g)}return p},[]);return this.logger.debug(\"Transactions signed successfully\",f),f}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});if(!a?.projectId)throw this.logger.error(\"Missing required option: projectId\"),new Error(\"Missing required option: projectId\");let{projectId:m,relayUrl:g=\"wss://relay.walletconnect.com\",metadata:y,skin:A,...T}=a,R={...this.getWindowMetadata(),...y};this.options={projectId:m,relayUrl:g,metadata:R},this.modalOptions=T,this.store=n}getWindowMetadata(){let e,n,r={name:\"\",description:\"\",url:\"\",icons:[]};function o(O){let V;return typeof window<\"u\"&&typeof window[O]<\"u\"&&(V=window[O]),V}function a(O){let V=o(O);if(!V)throw new Error(`${O} is not defined in Window`);return V}function c(){return a(\"document\")}function l(){return a(\"location\")}try{e=c(),n=l()}catch(O){return this.logger.warn(\"Error getting window metadata:\",O),r}function f(){let O=e.getElementsByTagName(\"link\"),V=[];for(let D=0;D<O.length;D++){let G=O[D],ee=G.getAttribute(\"rel\");if(ee&&ee.toLowerCase().indexOf(\"icon\")>-1){let J=G.getAttribute(\"href\");if(J)if(J.toLowerCase().indexOf(\"https:\")===-1&&J.toLowerCase().indexOf(\"http:\")===-1&&J.indexOf(\"//\")!==0){let le=n.protocol+\"//\"+n.host;if(J.indexOf(\"/\")===0)le+=J;else{let se=n.pathname.split(\"/\");se.pop();let te=se.join(\"/\");le+=te+\"/\"+J}V.push(le)}else if(J.indexOf(\"//\")===0){let le=n.protocol+J;V.push(le)}else V.push(J)}}return V}function p(...O){let V=e.getElementsByTagName(\"meta\");for(let D=0;D<V.length;D++){let G=V[D],ee=[\"itemprop\",\"property\",\"name\"].map(J=>G.getAttribute(J)).filter(J=>J?O.includes(J):!1);if(ee.length&&ee){let J=G.getAttribute(\"content\");if(J)return J}}return\"\"}function m(){let O=p(\"name\",\"og:site_name\",\"og:title\",\"twitter:title\");return O||(O=e.title),O}function g(){return p(\"description\",\"og:description\",\"twitter:description\",\"keywords\")}let y=m(),A=g(),T=n.origin,R=f();return{description:A,url:T,icons:R,name:y}}async initializeClient(){this.logger.info(\"Initializing client...\");let n=await(await import(\"@walletconnect/sign-client\")).SignClient.init(this.options);return n.on(\"session_event\",r=>{this.logger.info(\"EVENT: session_event\",r)}),n.on(\"session_update\",({topic:r,params:o})=>{this.logger.info(\"EVENT: session_update\",{topic:r,params:o});let{namespaces:a}=o,l={...n.session.get(r),namespaces:a};this.onSessionConnected(l)}),n.on(\"session_delete\",()=>{this.logger.info(\"EVENT: session_delete\"),this.session=null}),this.client=n,this.logger.info(\"Client initialized\"),n}async initializeModal(){this.logger.info(\"Initializing modal...\");let e=(await import(\"@walletconnect/modal\")).WalletConnectModal,n=new e({projectId:this.options.projectId,...this.modalOptions});return n.subscribeModal(r=>this.logger.info(`Modal ${r.open?\"open\":\"closed\"}`)),this.modal=n,this.logger.info(\"Modal initialized\"),n}onSessionConnected(e){let n=e.namespaces.algorand.accounts;if(!n.length)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let o=[...new Set(n.map(l=>l.split(\":\").pop()))].map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l})),c=this.store.state.wallets[this.walletKey];if(c)c8(o,c.accounts)||(this.logger.warn(\"Session accounts mismatch, updating accounts\",{prev:c.accounts,current:o}),Ov(this.store,{walletId:this.walletKey,accounts:o}));else{let l={accounts:o,activeAccount:o[0]};zl(this.store,{walletId:this.walletKey,wallet:l}),this.logger.info(\"Connected\",l)}return this.session=e,o}get activeChainId(){let e=this.activeNetworkConfig;return e?.caipChainId?e.caipChainId:(this.logger.warn(`No CAIP-2 chain ID found for network: ${this.activeNetwork}`),\"\")}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}},ge(BN,\"defaultMetadata\",{name:\"WalletConnect\",icon:NRe}),BN),URe=`data:image/svg+xml;base64,${btoa(`\\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 200 180\"><path d=\"M94.27 151.629c-.861-.526-1.51-1.37-1.83-2.386-.197-.62-.18-.627 1.082-.437.705.105 1.6.356 1.988.557.696.36 1.815 1.876 1.815 2.459 0 .486-2.166.348-3.054-.193m23.953-.263c-.788-.419-2.095-2.123-2.108-2.75-.01-.433 2.467-.182 3.403.345.955.536 2.148 1.97 2.148 2.582 0 .503-2.397.38-3.443-.177m-9.024-1.165c-1.567-1.193-2.38-2.74-2.55-4.849-.075-.933-.054-1.697.045-1.697.866 0 2.714 1.67 3.439 3.107.398.789.657 3.888.351 4.195-.07.07-.648-.27-1.285-.756m-8.906-1.354c-.63-.684-1.21-1.648-1.387-2.305-.318-1.18-.136-3.416.278-3.416.555 0 2.108 1.697 2.505 2.737.472 1.237.457 3.905-.023 4.063-.16.053-.777-.433-1.373-1.08m-6.805-1.775c-2.764-.612-5.223-1.425-5.357-1.772-.08-.21.169-1.027.555-1.814s.701-1.469.701-1.515c0-.047-.803.067-1.786.253-.982.185-1.857.256-1.944.157-.088-.1-.365-.715-.618-1.367-.252-.652-.858-1.729-1.345-2.393-1.293-1.76-5.285-5.526-7.272-6.858-3.826-2.564-4.96-3.855-4.667-5.316.08-.402.692-1.574 1.359-2.606 1.65-2.551 2.51-4.472 2.512-5.62.002-.571-.364-1.69-.901-2.758l-.905-1.796.706-.532c1.936-1.46 4.649-4.916 4.205-5.36-.06-.06-.846.72-1.745 1.732-3.553 3.997-7.814 6.463-16.014 9.27-5.324 1.823-5.853 2.06-7.183 3.228-1.555 1.365-1.962 2.502-2.531 7.063-.284 2.275-.706 4.79-.937 5.591-.231.8-.403 2.17-.382 3.043.032 1.346-.157 2.06-1.248 4.698-1.498 3.622-1.068 3.708-4.138-.827l-2.036-3.008.747-.784c.411-.43 1.075-.978 1.475-1.216.955-.568.919-.922-.236-2.331-.53-.647-.917-1.209-.86-1.25s.43-.277.83-.526c1.788-1.12 2.7-4.727 2.987-11.822.214-5.274.595-6.46 2.195-6.83 6.634-1.535 7.58-1.98 8.618-4.066.926-1.858.9-3.701-.121-8.475-.87-4.072-1.047-7.21-.516-9.223.606-2.303 3.759-7.433 5.667-9.221.376-.353.684-.729.684-.835 0-.254-3.325-2.697-4.448-3.268-.482-.245-1.455-.45-2.163-.456-3.892-.03-6.628 1.877-8.722 6.08-.603 1.212-1.582 2.73-2.176 3.374-2.733 2.965-8.602 4.09-12.666 2.43l-.913-.374 1.323-.05c1.422-.054 3.498-.94 3.944-1.683.414-.69.076-.79-1.06-.314-1.443.605-4.075.597-5.039-.015-1.259-.8-2.23-1.81-2.795-2.908l-.535-1.042 1.243 1.095c1.51 1.328 2.691 1.752 4.425 1.585 1.506-.145 2.523-.851 1.65-1.147-3.195-1.08-5.834-3.078-7.07-5.35-.809-1.485-1.513-3.982-1.504-5.334l.006-.936.42.854c.232.47.941 1.333 1.576 1.918l1.155 1.064 2.189-.012 2.188-.011-1.012-.535c-.975-.514-3.353-2.766-3.353-3.175 0-.11.506.079 1.124.418 1.282.703 3.888 1.32 4.21.996.12-.118-.204-.612-.718-1.097-.513-.484-1.17-1.344-1.46-1.911l-.525-1.03 1.174.895c2.02 1.542 3.883 1.506 6.342-.123.69-.457 1.218-.863 1.175-.903s-.989.227-2.103.594c-1.87.618-2.11.64-3.151.305-1.284-.415-2.023-1.273-2.25-2.613l-.158-.926.486.595c1.07 1.31 2.652 1.255 6.363-.224 1.132-.451 2.892-1.036 3.91-1.3 2.732-.706 1.561-.926-2.298-.43-1.778.228-3.27.376-3.318.329-.047-.047.662-.415 1.575-.818 2.002-.883 4.78-1.152 6.858-.663 1.817.427 2.555.81 4.032 2.087 1.151.997 3.654 2.156 4.605 2.133.595-.015-2.96-3.395-4.552-4.328-1.639-.96-4.11-1.542-6.107-1.438-.92.049-1.627.016-1.571-.073.242-.388 3.44-.825 5.203-.71 4.048.265 6.96 2.546 10.902 8.537 2.553 3.883 4.234 5.67 6.137 6.524l1.092.49 2.215-1.027c4.747-2.2 8.797-2.518 16.097-1.26 2.25.387 4.717.704 5.482.704h1.39l.074 3.203.074 3.203.894-1.113c.88-1.096.894-1.152.846-3.516l-.049-2.402-1.61-1.721c-4.14-4.425-4.335-6.536-1.135-12.213 2.744-4.87 2.704-4.41.813-9.32-.883-2.292-1.696-4.167-1.807-4.167-.339 0-.205 4 .196 5.821.716 3.256.435 4.822-1.006 5.603-.371.2-2.144.33-4.904.36-3.6.036-4.348-.022-4.473-.348-.087-.227.102-.582.451-.845.53-.4.563-.53.274-1.09-.18-.35-.692-1.022-1.137-1.493s-.734-.933-.64-1.026c.093-.094 1.072-.036 2.175.128 3.023.45 3.76.398 4.211-.297.4-.615 2.887-9.725 2.704-9.907-.196-.196-1.55 1.62-2.759 3.7-1.782 3.068-3.14 3.895-6.379 3.889-2.485-.005-5.43-1.098-8.658-3.213-1.439-.943-3.02-1.855-3.514-2.027-1.524-.531-3.75-.392-5.163.324l-1.26.638.567-.603c.892-.95 3.048-2.004 4.432-2.167 1.94-.23 3.3.283 5.786 2.18 2.39 1.823 3.163 2.225 4.28 2.225.6 0 .497-.12-.745-.872-.792-.48-2.416-1.598-3.609-2.486-2.658-1.978-4.119-2.58-5.831-2.4l-1.26.132.926-.39c.667-.281 1.609-.36 3.373-.284 1.346.059 2.448.077 2.448.04 0-.278-2.537-1.455-3.71-1.722-.89-.202-1.231-.365-.884-.421.312-.051 1.86.225 3.44.614 2.564.63 3.167.687 5.602.525 5.536-.369 7.032-1.144 9.218-4.774l1.433-2.382-1.224 1.323c-.673.728-1.779 1.928-2.457 2.666-.677.739-1.53 1.417-1.893 1.508l-.662.165.61-.503c.334-.277 1.088-1.491 1.675-2.698 1.772-3.648 3.228-4.779 6.772-5.257 3.522-.476 4.797-.791 5.421-1.342.332-.293.429-.44.215-.329-.213.112-1.94.277-3.836.367-2.955.14-3.666.263-4.97.86-1.632.749-4.092 2.893-4.996 4.356-.764 1.236-.923.905-.224-.465 1.387-2.718 4.685-4.945 8.366-5.651l1.815-.349-1.058-.235c-.582-.13-1.952-.224-3.043-.209l-1.984.027 1.72-.82c1.427-.682 2.04-.822 3.611-.822 1.607 0 1.86-.06 1.679-.4-.539-1.005-1.377-1.452-2.69-1.432-.769.011-1.156-.067-.937-.19.534-.298 2.168-.34 4.169-.104 1.648.194 1.82.159 3.59-.733 1.023-.515 2.472-1.047 3.22-1.183 1.388-.253 3.607-.04 4.472.429.942.51 1.958 1.825 2.095 2.712.116.746 0 1.052-.671 1.777-.752.813-.811 1.018-.811 2.82 0 1.706-.105 2.127-.85 3.424-.467.814-.973 1.476-1.124 1.473s-.797-.242-1.435-.532c-1.277-.579-1.714-.435-1.988.655-.115.46.045.84.605 1.44.42.448 1.621 2.237 2.671 3.975 1.883 3.116 1.905 3.175 1.585 4.146-.258.78-.258 1.56 0 3.73.179 1.51.253 3.031.166 3.38-.128.509.033.795.805 1.432 1.367 1.126 5.02 2.947 5.914 2.947 1.268 0 1.588.247 1.588 1.227 0 1.057-.642 2.742-1.045 2.742-.153 0-.278-.298-.278-.662 0-.558-.123-.661-.793-.661-.436 0-2.162-.467-3.836-1.036l-3.044-1.036v1.788c0 .984-.077 3.057-.172 4.608l-.173 2.82h3.015l-.133.86c-.073.472-.206 2.11-.295 3.637-.373 6.42-.634 7.203-4.207 12.65-4.119 6.278-4.635 7.984-3.493 11.548.37 1.158.647 2.133.613 2.167-.246.246-2.569-1.19-3.783-2.34-2.616-2.473-2.922-3.975-1.146-5.619.954-.882 1.054-1.087.892-1.828-.417-1.91-.553-1.976-1-.482-.232.777-.693 1.849-1.024 2.382-.526.846-.603 1.318-.603 3.705v2.736l3.175 1.022c1.746.562 3.446 1.028 3.777 1.034.583.012.59-.012.194-.776-.224-.434-.479-1.307-.566-1.939-.208-1.523.53-3.065 3.905-8.159 4.537-6.845 5.478-9.25 5.681-14.513.07-1.82.19-3.93.267-4.692.137-1.353.17-1.398 1.379-1.933 2.27-1.004 4.245-3.717 6.253-8.589.526-1.274.459-1.204-1.891 1.985-1.019 1.382-2.13 2.751-2.47 3.042-.604.516-.603.506.048-.397.938-1.299 1.216-2.144 1.685-5.107.663-4.193 1.699-6.255 4.604-9.16 3.639-3.638 9.47-6.348 13.7-6.365.635-.003 1.201-.155 1.322-.356.117-.192 1.105-.92 2.196-1.615 1.092-.696 2.252-1.511 2.579-1.812.327-.3.66-.48.74-.4.081.081-.038.942-.263 1.914s-.41 1.88-.41 2.016c0 .37 1.393.3 1.992-.102.287-.192 1.296-.62 2.241-.953s1.998-.78 2.338-.994c.34-.215.665-.345.722-.288.302.302-1.982 3.526-2.927 4.132l-1.152.74c-.277.179 1.202 3.732 1.975 4.745.674.882.862 1.347.742 1.825-.089.354.045 1.273.296 2.044.645 1.98 2.913 6.751 3.698 7.779.808 1.06.82 1.416.075 2.363-.32.408-.648 1.225-.728 1.816-.118.879-.279 1.12-.89 1.335-1.457.512-2.298-.449-2.94-3.358-.113-.512-.325-.728-.715-.728-.634 0-.619.099.398 2.514.368.873.572 1.685.453 1.804-.12.119-.679.178-1.244.132-1.006-.082-1.03-.108-1.165-1.29-.11-.958-.407-1.515-1.444-2.716-1.28-1.483-1.523-1.617-3.974-2.186-.436-.102-1.235-.406-1.776-.677l-.981-.491-.311 1.124c-.462 1.668-.381 7.592.14 10.35.244 1.29.926 3.552 1.516 5.027 1.864 4.655 1.933 4.98 1.924 9.031-.006 2.853-.112 3.972-.461 4.87-.25.641-.415 1.204-.367 1.252.047.047 2.935.203 6.419.347 4.2.174 6.786.397 7.679.664 1.433.429 2.955 1.341 3.328 1.995.125.219 1.292 3.718 2.594 7.777 2.56 7.978 2.515 7.613 1.142 9.263-.582.7-.623.918-.458 2.455l.18 1.686-1.685 1.59c-2.476 2.335-2.487 2.338-2.833.702l-.825-3.894c-.497-2.344-.503-2.535-.09-2.844.245-.182.75-.332 1.121-.335 1.259-.007 1.444-.36.672-1.277l-.7-.833.461-1.209c.403-1.054.421-1.428.146-2.924-.856-4.647-3.463-7.755-6.516-7.769-1.198-.006-5.626.726-6.143 1.015-.419.235 1.36 2.035 4.026 4.073 1.954 1.494 2.487 2.265 2.708 3.918.115.858-.031 1.278-.963 2.753-1.122 1.776-2.596 4.941-4.015 8.62-.437 1.133-1.048 2.383-1.358 2.777-.546.695-.623.712-2.434.544-1.51-.14-2.034-.085-2.726.287-.933.503-1.032.488-5.234-.754l-1.852-.547 1.058-.93c2.452-2.155 4.96-4.035 5.375-4.028.245.004.743.417 1.107.919.364.5.74.914.835.918.336.014 2.673-2.777 3.423-4.09.928-1.622 1.429-3.721 1.19-4.992-.414-2.208-2.105-3.2-8.836-5.183-4.604-1.356-5.44-1.637-6.837-2.3-.81-.384-.92-.36-3.047.664-2.593 1.248-5.507 2.251-8.665 2.983-3.304.766-9.686.95-12.988.376-3.227-.562-7.639-2.035-9.626-3.214-.856-.508-1.618-.862-1.693-.787-.15.15 1.12 2.079 1.665 2.53.271.226.239.732-.166 2.586-1.245 5.713-2.66 8.612-7.189 14.73-2.852 3.852-3.402 5.685-2.327 7.762.66 1.274 9.278 9.763 11.016 10.85.797.498 1.576 1.26 1.929 1.889.496.883 2.158 5.275 2.158 5.704 0 .2-1.577.111-2.779-.154m46.76-1.68c-2.98-1.107-5.348-3.111-7.054-5.97-1.025-1.72-2.16-4.428-1.946-4.643.229-.229 3.039.644 4.916 1.527 3.417 1.608 6.275 5.198 6.594 8.283.178 1.723.063 1.76-2.51.803m-70.399.107c-2.923-.4-6.887-2.043-7.56-3.132-.23-.371 1.693-1.772 3.683-2.683 4.119-1.887 9.22-1.779 13.075.277 1.637.873 4.347 2.943 4.307 3.29-.014.122-.895.499-1.957.837-4.06 1.29-8.482 1.831-11.548 1.411m51.264-1.55c-1.687-.66-3.315-1.831-4.87-3.503l-1.323-1.421 2.116-.183c3.467-.298 6.424.354 8.757 1.932 1.096.742 2.753 2.456 2.753 2.848 0 .859-5.46 1.099-7.433.326m38.521-1.26c-3.84-.798-6.966-2.331-9.705-4.761-2.156-1.913-3.179-2.512-5.08-2.978-1.478-.362-3.339-1.249-3.339-1.591 0-.318 2.824-.81 5.689-.991 7.046-.446 13.549 2.741 16.133 7.908.513 1.024.932 2.025.932 2.224 0 .277-.479.354-2.05.33-1.128-.016-2.289-.08-2.58-.14m-61.217-2.076c-1.35-.421-2.52-1.449-3.238-2.845l-.51-.992h1.178c1.479 0 2.46.365 3.42 1.273.65.615 1.762 2.392 1.762 2.817 0 .255-1.426.117-2.612-.253m5.45-1.504c-1.583-1.153-2.396-3.509-1.878-5.442.192-.715.563-.742 1.334-.098 1.18.986 1.673 2.177 1.674 4.051 0 .974-.09 1.826-.2 1.895-.112.068-.53-.114-.93-.406m-26.254-1.075a150 150 0 0 0-3.968-1.97l-2.382-1.138 1.21-.001c2.527-.002 4.928 1.203 6.339 3.185.306.43.52.777.473.77-.046-.007-.799-.388-1.672-.845zm-14.354-3.608c-.764-.264-1.631-.699-1.927-.966-.59-.534-1.695-2.22-1.542-2.352.053-.045.573-.192 1.155-.325 1.324-.303 1.45-.925.662-3.265-.306-.908-.503-1.705-.438-1.77.066-.066.637.018 1.27.187.95.253 1.683.849 4.194 3.411 2.483 2.534 3.286 3.19 4.366 3.566.727.253 1.62.587 1.984.742l.662.28-.662.199c-.779.234-6.102.794-7.42.782-.503-.005-1.54-.225-2.304-.489m104.313-.83c-1.528-.484-4.719-2.704-4.75-3.303-.006-.145.88-.42 1.972-.61 2.368-.414 4.676-.11 6.582.864 1.41.721 3.082 2.35 2.83 2.756-.55.891-4.237 1.054-6.634.294m-56.58-.117c-2.06-.734-3.35-2.65-3.345-4.961.006-2.304.15-2.574 1.279-2.397 1.516.239 3.013.83 3.677 1.455l.609.572 1.523-1.507c.838-.829 1.593-1.507 1.679-1.507.085 0 .362.735.614 1.633.94 3.35-.383 5.974-3.431 6.806-1.302.356-1.35.354-2.605-.094m-75.315-.698c-6.533-.942-11.018-2.967-14.552-6.571-1.972-2.01-3.175-3.81-2.8-4.186.109-.109 1.32-.239 2.693-.29 5.235-.192 9.266 1.449 13.22 5.381 2.097 2.085 5.101 5.853 4.838 6.068-.05.041-1.58-.14-3.4-.402m97.327-1.25c4.267-5.096 8.959-7.442 13.334-6.666.982.174 1.84.405 1.906.513.198.32-1.54 2.713-2.834 3.904-2.314 2.13-5.42 3.148-10.492 3.438l-3.055.175zm17.502-.559c0-.646 1.702-5.318 2.447-6.715 1.472-2.762 4.84-5.965 5.538-5.267.161.161.234 1.18.176 2.481-.114 2.603-.705 4.023-2.51 6.03-1.524 1.695-5.651 4.23-5.651 3.471m8.04-1.157c3.728-2.356 7.725-5.133 8.864-6.158 1.353-1.218 1.403-1.24.984-.43-1.093 2.113-4.85 5.104-7.93 6.31-1.734.68-2.798.834-1.919.278m2.457-4.828c-.243-.511-.443-1.383-.443-1.937 0-1.018.973-3.223 1.5-3.399.368-.123 1.146 1.814 1.146 2.853 0 .855-.78 2.6-1.39 3.105-.298.247-.456.127-.813-.622m11.343.373c-1.157-.135-2.15-.292-2.206-.348-.16-.16 1.966-2.017 3.71-3.24 2.387-1.673 4.54-2.317 7.745-2.316 2.182 0 2.874.104 3.949.596l1.303.595-.907.936c-2.935 3.03-7.986 4.433-13.594 3.777m-135.543-5.98c-3.17-5.953-3.802-11.809-1.769-16.407.766-1.73 2.408-4.033 2.878-4.033.185 0 .7.685 1.142 1.522 2.02 3.82 2.643 8.569 1.708 13.03-.515 2.454-2.383 7.938-2.705 7.938-.089 0-.653-.923-1.254-2.05m131.543-.026c-2.11-1.55-3.023-3.093-3.023-5.108 0-1.215.77-3.056 1.587-3.796.494-.447.574-.438 1.965.243 1.713.838 2.676 1.892 3.072 3.363.464 1.725-.257 3.872-1.791 5.328l-.771.733zm-142.341-2.392c-.955-.434-3.028-2.462-3.028-2.963 0-.106.589-.273 1.309-.372 2.032-.28 3.923.381 5.269 1.84.602.654 1.095 1.295 1.095 1.426 0 .289-1.308.57-2.613.562-.527-.003-1.442-.225-2.032-.493m134.927-3.139c1.218-3.954 1.471-13.59.477-18.203a57 57 0 0 0-1.472-5.291c-1.025-3-1.187-3.508-1.031-3.229.06.11.227.199.369.199s.185-.12.095-.265-.099-.265-.019-.265c.285 0 2.284 4.27 2.94 6.28.942 2.884 1.488 6.584 1.481 10.037-.008 4.205-.63 7.156-2.126 10.088-.577 1.13-.974 1.491-.714.65m15.622-.53c.096-.4.694-1.798 1.33-3.108 1.78-3.673 4.396-6.043 7.61-6.899 2.261-.602 2.412-.555 2.244.699-.39 2.903-3.348 6.413-6.971 8.27-.455.233-1.63.726-2.608 1.094l-1.78.67zm-150.592-3.621c-5.551-2.683-8.865-5.295-11.436-9.013-2.092-3.028-3.72-7.066-3.72-9.231 0-.636.089-.69 1.135-.69 2.913 0 6.796 1.74 9.585 4.296 3.283 3.008 5.033 6.073 6.587 11.534 1.15 4.043 1.263 4.544 1.02 4.54-.111 0-1.539-.647-3.17-1.436m145.075.485c-.092-.241-.309-1.552-.48-2.914-.562-4.443.43-8.183 2.772-10.456.58-.562 1.164-1.022 1.3-1.022.405 0 1.01 1.75 1.186 3.43.324 3.1-.9 6.63-3.421 9.872-.926 1.19-1.226 1.431-1.357 1.09m-6.353-7.675c.34-1.413.908-2.21 1.957-2.745 1.55-.792 1.96-.718 1.754.314-.326 1.628-1.397 2.695-3.034 3.022-.84.168-.856.154-.677-.591m18.432-2.084c-.473-.206-.857-.469-.854-.585.01-.368 1.945-1.592 2.816-1.781.461-.1 1.34-.047 1.952.118l1.114.3-.882.909c-.764.789-2.17 1.45-3.022 1.422-.145-.005-.651-.178-1.124-.383m-4.19-2.014c.437-5.243 1.85-8.992 4.434-11.754 1.589-1.698 4.011-3.172 5.51-3.353.608-.073.669.016.745 1.087.125 1.742-.655 4.812-1.81 7.117-1.233 2.466-3.244 4.75-6.16 7-3.185 2.457-2.932 2.466-2.719-.097M164.535 96.2c.011-.601.996-2.432 1.613-2.997.74-.68 1.86-1.142 2.764-1.142.74 0 .783.213.287 1.402-.328.784-2.05 2.558-2.496 2.573-.105.004-.636.11-1.182.237-.703.163-.99.142-.986-.073M39.38 92.511l-1.19-.287 1.894-.184c2.429-.237 4.211-.836 5.755-1.933 1.705-1.212 2.43-2.3 3.187-4.777.358-1.173 1.027-2.644 1.487-3.27.855-1.16 1.328-1.354.772-.315-.17.317-.42 1.753-.555 3.191s-.371 2.944-.524 3.347c-1.29 3.39-6.255 5.33-10.826 4.228m132.353-3.022c-1.37-3.004-1.722-4.62-1.596-7.322.12-2.584.663-4.209 1.984-5.941l.698-.915.593.689c1.538 1.787 2.37 6.366 1.72 9.457-.375 1.79-1.903 5.61-2.293 5.734-.158.05-.656-.715-1.106-1.702m6.655.323c.094-.582.245-3.618.336-6.747.16-5.514-.097-11.175-.726-16.007-.66-5.078-2.584-11.438-4.788-15.834-.572-1.142-.914-1.998-.76-1.903.154.096.28.02.28-.17 0-.608 1.905 2.465 3.056 4.93 3.19 6.83 5.492 18.482 5.039 25.5-.219 3.379-.79 6.78-1.52 9.04-.672 2.084-1.164 2.722-.917 1.191m-5.129-39.936c0-.065-.119-.19-.264-.28s-.265-.038-.265.116.12.28.265.28.264-.052.264-.116M21.39 87.46c-6.885-6.262-9.634-10.983-10.312-17.71-.218-2.153.098-6.211.514-6.628.377-.377 2.86.757 4.714 2.153 4.287 3.228 7.128 8.67 7.976 15.276.349 2.717.746 9.923.547 9.92-.073-.001-1.62-1.356-3.44-3.01m141.818 1.495c.002-1.223.51-2.654 1.254-3.539.681-.81 2.635-1.902 2.999-1.677.248.154-.193 2.347-.65 3.224-.523 1.007-1.444 1.82-2.616 2.31l-.989.413zm19.715-9.65c.101-.48.414-1.25.694-1.712.53-.872 2.361-1.937 3.331-1.937.515 0 .537.075.29.992-.432 1.599-1.891 2.901-3.749 3.347-.733.176-.746.16-.566-.69m-1.078-4.864c-.434-3.474.426-7.949 2.004-10.427.992-1.557 3.308-3.704 3.996-3.704.79 0 1.023 5.098.34 7.427-.775 2.639-3.22 6.102-5.41 7.661l-.744.53zM27.106 70.74c-.83-2.163.852-9.285 3.442-14.577 3.414-6.977 9.876-14.173 15.518-17.28 1.338-.736 1.306-.696-.732.921-3.554 2.82-6.93 6.51-9.617 10.514-2.78 4.142-4.184 7.582-5.825 14.274-.593 2.419-1.273 4.885-1.512 5.482-.446 1.116-.991 1.401-1.274.666m148.415-4.429c-3.31-1.775-5.714-4.87-6.05-7.787-.123-1.073-.097-1.124.573-1.122 1.742.006 4.537 2.38 5.833 4.954.468.928 1.437 4.572 1.263 4.746-.028.028-.757-.328-1.62-.79M24.465 63.817c-1.392-2.767-2.046-5.175-2.208-8.138-.16-2.924.292-6.48.823-6.48.632 0 2.73 1.536 3.654 2.676 1.65 2.036 2.173 3.325 2.185 5.393.01 1.729-.094 2.069-1.554 5.094-.86 1.782-1.663 3.24-1.783 3.24s-.623-.803-1.117-1.785m155.049-4.47c-.602-3.045-.356-5.571.757-7.767.795-1.57 2.708-3.351 3.137-2.921.187.187.302 1.33.302 3 0 2.617-.03 2.756-1.001 4.573-.551 1.03-1.462 2.322-2.024 2.871l-1.022.998zm-68.432-2.831c0-.451.748-1.115 1.521-1.35.762-.233.743.064-.061.978-.678.77-1.46.969-1.46.372M33.59 54.752c1.046-1.877 3.42-4.082 5.433-5.045 1.457-.699 2.23-.892 3.93-.982 2.15-.115 3.863.18 4.728.812.444.324.393.442-.74 1.701-1.47 1.635-3.438 2.97-5.575 3.778-1.242.47-2.33.63-4.998.735l-3.41.135zm76.965.194c0-.802 1.282-2.19 2.17-2.35.969-.176 1.534.041 1.534.587 0 .382-.305.583-1.245.82-.685.172-1.518.608-1.852.968l-.607.655zm57.018-.605c-.437-.225-.965-.578-1.173-.783-.327-.323-.22-.446.794-.905 1.314-.597 2.774-.659 4.347-.184 1.386.417 1.347.95-.122 1.69-1.377.695-2.73.76-3.846.182m-58.306-1.16c.174-.5.815-1.406 1.424-2.015.918-.918 1.368-1.152 2.637-1.37 1.42-.246 2.024-.224 3.048.107.8.26-.765 1.148-2.022 1.148-1.584 0-2.915.6-4.27 1.928l-1.133 1.109zm65.577-2.87c-.75-1.497-.906-2.129-1.001-4.048-.094-1.886-.02-2.485.431-3.506.3-.677.655-1.231.79-1.231.33 0 1.475 1.777 1.856 2.883.497 1.442.383 4.31-.236 5.965-.3.803-.638 1.517-.75 1.586-.11.069-.602-.673-1.09-1.649m-65.359.239c.662-1.25 2.453-2.918 3.604-3.357 1.384-.53 4.318-.42 5.512.206l.757.397-.576.403c-.45.315-1.084.374-2.904.27-2.854-.163-3.938.155-5.54 1.625-.876.802-1.1.922-.853.456m-79.602-1.036c-1.895-1.894-2.474-3.183-2.62-5.824-.066-1.211-.008-2.314.128-2.45.332-.332 2.019.945 2.831 2.145.348.513.825 1.5 1.06 2.192.47 1.384.581 4.818.164 5.076-.144.089-.848-.423-1.563-1.139m78.698-.58c.528-1.848 2.227-3.934 3.94-4.841 1.648-.872 4.113-.74 7.331.392l2.55.897-.936.614c-.919.602-.967.606-2.55.2-2.732-.698-3.209-.739-5.014-.424-2.025.352-3.826 1.419-4.84 2.865-.543.777-.635.833-.481.297m54.957-.028c-.619-.306-1.125-.665-1.125-.797 0-.133.387-.477.86-.765 1.455-.887 4.475-.65 6.244.49l.621.401-1.15.602c-1.547.81-3.894.84-5.45.07m-113.51-5.029c-.621-.307-1.376-.872-1.677-1.255l-.548-.696.883-.372c2.07-.872 5.296-.261 6.675 1.263.498.55.494.556-.662 1.08-1.52.69-3.253.682-4.672-.02m69.126-.293c-2.905-1.128-5.647-1.179-7.871-.147-.837.388-1.522.665-1.522.615 0-.292 2.738-1.751 3.95-2.106 1.796-.525 4.726-.535 6.634-.023 1.759.472 3.564.489 4.61.043.696-.298.59-.32-1.07-.226-1.83.103-1.852.096-3.683-1.16-1.013-.694-2.318-1.413-2.9-1.596l-1.058-.333.988-.018c.544-.01 2.135.28 3.535.644 2.6.675 4.605.856 4.605.415 0-.347-1.479-1.36-2.616-1.791-.935-.355-.915-.361.9-.261 2.1.115 3.862.79 4.957 1.899.72.729.727.73.727.13 0-.934-1.81-2.484-3.47-2.973-1.732-.51-.9-.598.957-.102 2.68.716 5.39 2.515 6.21 4.124.295.578.537 1.15.537 1.273 0 .122-1.102.361-2.448.532s-3.511.671-4.812 1.112c-3.03 1.027-4.41 1.017-7.16-.05m-83.06-2.246c-.331-4.672.95-8.655 3.622-11.257l1.343-1.308.418.754c.31.56.419 1.506.419 3.664 0 2.803-.036 2.984-.958 4.895-.887 1.84-3.687 5.524-4.365 5.745-.197.064-.358-.772-.48-2.493m125.87-.33c-.464-.283-1.05-.829-1.301-1.212-.556-.848-.22-1.17 1.221-1.176 1.652-.007 4.104 1.78 3.588 2.615-.3.486-2.579.34-3.507-.227m-104.922-.902c-1.831-.683-4.166-2.965-3.74-3.655.203-.328 3.603-.26 4.628.093.494.17 1.341.6 1.882.955 1.055.692 2.477 2.374 2.223 2.628-.352.353-4.033.337-4.993-.021m.993-5.296c-.727-.191-2.034-.56-2.902-.82l-1.58-.473.898-.75c2.53-2.112 6.92-3.595 9.62-3.25 1.876.239 3.85 1.003 4.937 1.91l.907.758-1.14.825c-1.943 1.409-3.805 1.977-6.771 2.068-1.607.05-3.165-.056-3.969-.268\" style=\"fill:teal;stroke-width:.264583\"></path></svg>\\n`)}`,Ep,zRe=(Ep=class extends Kse{constructor(e){super(e),Ep.deprecationWarningShown||(Ep.deprecationWarningShown=!0,Hg.warn(\"BiatecWallet is deprecated and will be removed in v5. Use WalletConnect with the \\'biatec\\' skin instead: { id: WalletId.WALLETCONNECT, options: { projectId: \\'...\\', skin: \\'biatec\\' } }\"))}},ge(Ep,\"deprecationWarningShown\",!1),ge(Ep,\"defaultMetadata\",{name:\"BiatecWallet\",icon:URe}),Ep),VRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect width=\"24\" height=\"24\" fill=\"#525252\" />\\n</svg>\\n`)}`,DN,HRe=(DN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"provider\");ge(this,\"store\");ge(this,\"connect\",async e=>{this.logger.info(\"Connecting...\");try{if(!this.provider.connect)throw this.logger.error(\"Method not supported: connect\"),new Error(\"Method not supported: connect\");let n=await this.provider.connect(e);if(n.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let r=n[0],o={accounts:n,activeAccount:r};return zl(this.store,{walletId:this.id,wallet:o}),this.logger.info(\"\\\\u2705 Connected.\",o),n}catch(n){throw this.logger.error(\"Error connecting:\",n.message||n),n}});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect(),await this.provider.disconnect?.()});ge(this,\"resumeSession\",async()=>{try{let n=this.store.state.wallets[this.id];if(!n){this.logger.info(\"No session to resume\");return}this.logger.info(\"Resuming session...\");let r=await this.provider.resumeSession?.();if(Array.isArray(r)){let o=r;if(o.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");c8(o,n.accounts)||(this.logger.warn(\"Session accounts mismatch, updating accounts\",{prev:n.accounts,current:o}),Ov(this.store,{walletId:this.id,accounts:o}))}this.logger.info(\"Session resumed.\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),e}});ge(this,\"signTransactions\",async(e,n)=>{if(!this.provider.signTransactions)throw this.logger.error(\"Method not supported: signTransactions\"),new Error(\"Method not supported: signTransactions\");return this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n}),await this.provider.signTransactions(e,n)});ge(this,\"transactionSigner\",async(e,n)=>{if(!this.provider.transactionSigner)throw this.logger.error(\"Method not supported: transactionSigner\"),new Error(\"Method not supported: transactionSigner\");return this.logger.debug(\"Transaction signer called...\",{txnGroup:e,indexesToSign:n}),await this.provider.transactionSigner(e,n)});ge(this,\"signData\",async(e,n)=>{if(!this.provider.signData)throw this.logger.error(\"Method not supported: signData\"),new Error(\"Method not supported: signData\");return this.logger.debug(\"Signing data...\",{data:e,metadata:n}),await this.provider.signData(e,n)});if(!a?.provider)throw this.logger.error(\"Missing required option: provider\"),new Error(\"Missing required option: provider\");this.provider=a.provider,this.store=n}},ge(DN,\"defaultMetadata\",{name:\"Custom\",icon:VRe}),DN),jRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect width=\"1024\" height=\"1024\" />\\n  <path fill=\"#FFFFFF\" d=\"M779.9,684.4L512,230L244.1,684.4L512,529.5L779.9,684.4z\" />\\n  <path fill=\"#FFFFFF\" d=\"M733.1,730L512,613.5L290.9,730L512,658L733.1,730z\" />\\n</svg>\\n`)}`,FN,$Re=(FN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a={},metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");let e=this.store.state.activeWallet;e&&e!==this.id&&this.manageWalletConnectSession(\"backup\",e);let n=this.client||await this.initializeClient(),r=await n.connect();if(n.connector?.on(\"disconnect\",this.onDisconnect),r.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let o=r.map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l})),a=o[0],c={accounts:o,activeAccount:a};return zl(this.store,{walletId:this.id,wallet:c}),this.logger.info(\"\\\\u2705 Connected.\",c),o});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\");let e=this.client||await this.initializeClient(),n=this.store.state.activeWallet;n&&n!==this.id?(this.manageWalletConnectSession(\"backup\",n),this.manageWalletConnectSession(\"restore\",this.id),await e.disconnect(),await new Promise(r=>setTimeout(r,500)),this.manageWalletConnectSession(\"restore\",n)):await e.disconnect(),this.onDisconnect(),this.logger.info(\"Disconnected\")});ge(this,\"setActive\",()=>{this.logger.info(`Set active wallet: ${this.id}`);let e=this.store.state.activeWallet;e&&e===\"pera\"&&this.manageWalletConnectSession(\"backup\",e),this.manageWalletConnectSession(\"restore\"),Qk(this.store,{walletId:this.id})});ge(this,\"resumeSession\",async()=>{try{let e=this.store.state,n=e.wallets[this.id];if(!n){this.logger.info(\"No session to resume\");return}if(e.activeWallet===\"pera\"){this.logger.info(\"Skipping reconnectSession for Defly (inactive)\");return}this.logger.info(\"Resuming session...\");let o=await(this.client||await this.initializeClient()).reconnectSession();if(o.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let a=o.map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l}));c8(a,n.accounts)||(this.logger.warn(\"Session accounts mismatch, updating accounts\",{prev:n.accounts,current:a}),Ov(this.store,{walletId:this.id,accounts:a})),this.logger.info(\"Session resumed\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let l=Ki(e);r=this.processTxns(l,n)}else{let l=Ki(e);r=this.processEncodedTxns(l,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",[r]);let a=await o.signTransaction([r]);this.logger.debug(\"Received signed transactions from wallet\",a);let c=r.reduce((l,f)=>{if(f.signers&&f.signers.length==0)l.push(null);else{let p=a.shift();p&&l.push(p)}return l},[]);return this.logger.debug(\"Transactions signed successfully\",c),c}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});this.options=a,this.store=n}async initializeClient(){this.logger.info(\"Initializing client...\");let{DeflyWalletConnect:e}=await Promise.resolve().then(()=>(coe(),soe)),n=new e(this.options);return this.client=n,this.logger.info(\"Client initialized\"),n}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l);c&&f?r.push({txn:o}):r.push({txn:o,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m);p&&g?r.push({txn:f}):r.push({txn:f,signers:[]})}),r}},ge(FN,\"defaultMetadata\",{name:\"Defly\",icon:jRe}),FN);function Nk(t){return typeof t==\"object\"&&\"code\"in t&&\"message\"in t}var Gse=class extends Vl{constructor(e){super(e);ge(this,\"avmWebClient\",null);ge(this,\"avmWebProviderSDK\",null);ge(this,\"providerId\");this.providerId=e.providerId}async _initializeAVMWebProviderSDK(){if(!this.avmWebProviderSDK){this.logger.info(\"Initializing @agoralabs-sh/avm-web-provider...\");let e=await import(\"@agoralabs-sh/avm-web-provider\");if(this.avmWebProviderSDK=e.default?e.default:e,!this.avmWebProviderSDK)throw new Error(\"Failed to initialize, the @agoralabs-sh/avm-web-provider SDK was not provided\");if(!this.avmWebProviderSDK.AVMWebClient)throw new Error(\"Failed to initialize, AVMWebClient missing from @agoralabs-sh/avm-web-provider SDK\");this.logger.info(\"@agoralabs-sh/avm-web-provider SDK initialized\")}return this.avmWebProviderSDK}async _initializeAVMWebClient(){let e=await this._initializeAVMWebProviderSDK();if(!e.AVMWebClient)throw new Error(\"Failed to initialize, AVMWebClient not found\");return this.avmWebClient||(this.logger.info(\"Initializing new AVM Web Client...\"),this.avmWebClient=e.AVMWebClient.init(),this.logger.info(\"AVM Web Client initialized\")),this.avmWebClient}async _getGenesisHash(){let e=this.activeNetworkConfig;if(e.genesisHash)return e.genesisHash;let r=await this.getAlgodClient().versionsCheck().do();return xr.bytesToBase64(r.genesisHashB64)}_mapAVMWebProviderAccountToWalletAccounts(e){return e.map(({address:n,name:r},o)=>({name:r||`[${this.metadata.name}] Account ${o+1}`,address:n}))}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}async connect(){try{this.logger.info(\"Connecting...\");let e=await this._enable();this.logger.info(`Successfully connected on network \"${e.genesisId}\"`);let n=this._mapAVMWebProviderAccountToWalletAccounts(e.accounts),r={accounts:n,activeAccount:n[0]};return zl(this.store,{walletId:this.id,wallet:r}),this.logger.info(\"\\\\u2705 Connected.\",r),n}catch(e){throw this.logger.error(\"Error connecting: \",Nk(e)?`${e.message} (code: ${e.code})`:e.message),e}}async disconnect(){try{this.logger.info(\"Disconnecting...\"),this.onDisconnect();let e=await this._disable();this.logger.info(`Successfully disconnected${e.sessionIds&&e.sessionIds.length?` sessions [${e.sessionIds.join(\",\")}]`:\"\"} on network \"${e.genesisId}\"`)}catch(e){throw this.logger.error(\"Error disconnecting: \",Nk(e)?`${e.message} (code: ${e.code})`:e.message),e}}async resumeSession(){let n=this.store.state.wallets[this.id];if(!n){this.logger.info(\"No session to resume\");return}try{this.logger.info(\"Resuming session...\");let r=await this._enable();if(r.accounts.length===0)throw new Error(\"No accounts found!\");let o=this._mapAVMWebProviderAccountToWalletAccounts(r.accounts);c8(o,n.accounts)||(this.logger.warn(\"Session accounts mismatch, updating accounts\",{prev:n.accounts,current:o}),Ov(this.store,{walletId:this.id,accounts:o})),this.logger.info(\"Session resumed successfully\")}catch(r){throw this.logger.error(\"Error resuming session: \",Nk(r)?`${r.message} (code: ${r.code})`:r.message),this.onDisconnect(),r}}async signTransactions(e,n){try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let c=Ki(e);r=this.processTxns(c,n)}else{let c=Ki(e);r=this.processEncodedTxns(c,n)}this.logger.debug(\"Sending processed transactions to wallet...\",r);let o=await this._signTransactions(r);this.logger.debug(\"Received signed transactions from wallet\",o);let a=o.stxns.map(c=>c===null?null:l8(c));return this.logger.debug(\"Transactions signed successfully\",a),a}catch(r){throw this.logger.error(\"Error signing transactions: \",Nk(r)?`${r.message} (code: ${r.code})`:r.message),r}}},Dd=\"95426e60-5f2e-49e9-b912-c488577be962\",KRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect width=\"1024\" height=\"1024\" />\\n  <path fill=\"#FFFFFF\" d=\"M779.9,684.4L512,230L244.1,684.4L512,529.5L779.9,684.4z\" />\\n  <path fill=\"#FFFFFF\" d=\"M733.1,730L512,613.5L290.9,730L512,658L733.1,730z\" />\\n</svg>\\n`)}`,ON,GRe=(ON=class extends Gse{constructor({id:t,store:e,subscribe:n,getAlgodClient:r,metadata:o={}}){super({id:t,metadata:o,getAlgodClient:r,store:e,subscribe:n,providerId:Dd})}async _enable(){let{ARC0027MethodEnum:t,ARC0027MethodTimedOutError:e,ARC0027UnknownError:n,DEFAULT_REQUEST_TIMEOUT:r}=await this._initializeAVMWebProviderSDK(),o=await this._initializeAVMWebClient(),a=await this._getGenesisHash();return new Promise((c,l)=>{let f=window.setTimeout(()=>{o.removeListener(p),l(new e({method:t.Enable,message:`no response from provider \"${this.metadata.name}\"`,providerId:Dd}))},r),p=o.onEnable(({error:m,method:g,result:y})=>(o.removeListener(p),window.clearTimeout(f),m?l(m):y?c(y):l(new n({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Dd}))));o.enable({genesisHash:a,providerId:Dd})})}async _disable(){let{ARC0027MethodEnum:t,ARC0027MethodTimedOutError:e,ARC0027UnknownError:n,LOWER_REQUEST_TIMEOUT:r}=await this._initializeAVMWebProviderSDK(),o=await this._initializeAVMWebClient(),a=await this._getGenesisHash();return new Promise((c,l)=>{let f=window.setTimeout(()=>{o.removeListener(p),l(new e({method:t.Disable,message:`no response from provider \"${this.metadata.name}\"`,providerId:Dd}))},r),p=o.onDisable(({error:m,method:g,result:y})=>(o.removeListener(p),window.clearTimeout(f),m?l(m):y?(this.logger.debug(\"Disable successful\",{result:y}),c(y)):l(new n({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Dd}))));this.logger.debug(\"Sending disable request...\",{genesisHash:a}),o.disable({genesisHash:a,providerId:Dd})})}async _signTransactions(t){let{ARC0027MethodEnum:e,ARC0027MethodTimedOutError:n,ARC0027UnknownError:r,DEFAULT_REQUEST_TIMEOUT:o}=await this._initializeAVMWebProviderSDK(),a=await this._initializeAVMWebClient();return new Promise((c,l)=>{let f=window.setTimeout(()=>{a.removeListener(p),l(new n({method:e.SignTransactions,message:`no response from provider \"${this.metadata.name}\"`,providerId:Dd}))},o),p=a.onSignTransactions(({error:m,method:g,result:y})=>(a.removeListener(p),window.clearTimeout(f),m?l(m):y?(this.logger.debug(\"Sign transactions successful\",{result:y}),c(y)):l(new r({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Dd}))));this.logger.debug(\"Sending sign transactions request...\",{txns:t}),a.signTransactions({txns:t,providerId:Dd})})}},ge(ON,\"defaultMetadata\",{name:\"Defly Web Wallet\",icon:KRe}),ON),qRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 300 300\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <linearGradient id=\"grad1\" gradientUnits=\"userSpaceOnUse\" x1=\"246.603\" y1=\"9.2212\" x2=\"174.158\" y2=\"308.5426\" gradientTransform=\"matrix(1 0 0 -1 0 302)\">\\n    <stop offset=\"0\" stop-color=\"#0B46F9\" />\\n    <stop offset=\"1\" stop-color=\"#BBFBE0\" />\\n  </linearGradient>\\n  <path fill=\"url(#grad1)\" d=\"M274.7,93.9L166.6,23v39.6l69.4,45.1l-8.2,25.8h-61.2v32.9h61.2l8.2,25.8l-69.4,45.1V277l108.2-70.7L257,150.1L274.7,93.9z\" />\\n  \\n  <linearGradient id=\"grad2\" gradientUnits=\"userSpaceOnUse\" x1=\"129.3516\" y1=\"-19.1573\" x2=\"56.9066\" y2=\"280.1641\" gradientTransform=\"matrix(1 0 0 -1 0 302)\">\\n    <stop offset=\"0\" stop-color=\"#0B46F9\" />\\n    <stop offset=\"1\" stop-color=\"#BBFBE0\" />\\n  </linearGradient>\\n  <path fill=\"url(#grad2)\" d=\"M72.5,166.4h61v-32.9H72.2l-7.9-25.8l69.2-45.1V23L25.3,93.9L43,150.1l-17.7,56.2L133.7,277v-39.6l-69.4-45.1L72.5,166.4z\" />\\n  \\n  <mask id=\"mask1\" maskUnits=\"userSpaceOnUse\" x=\"25.4\" y=\"23\" width=\"247.6\" height=\"254\">\\n    <path fill=\"url(#grad1)\" d=\"M274.7,93.9L166.6,23v39.6l69.4,45.1l-8.2,25.8h-61.2v32.9h61.2l8.2,25.8l-69.4,45.1V277l108.2-70.7L257,150.1L274.7,93.9z\" />\\n    <path fill=\"url(#grad2)\" d=\"M72.5,166.4h61v-32.9H72.2l-7.9-25.8l69.2-45.1V23L25.3,93.9L43,150.1l-17.7,56.2L133.7,277v-39.6l-69.4-45.1L72.5,166.4z\" />\\n  </mask>\\n  \\n  <linearGradient id=\"grad3\" gradientUnits=\"userSpaceOnUse\" x1=\"46.4662\" y1=\"228.7554\" x2=\"171.8638\" y2=\"135.1039\" gradientTransform=\"matrix(1 0 0 -1 0 302)\">\\n    <stop offset=\"0.1198\" stop-color=\"#8952FF\" stop-opacity=\"0.87\" />\\n    <stop offset=\"1\" stop-color=\"#DABDFF\" stop-opacity=\"0\" />\\n  </linearGradient>\\n  <rect x=\"25.4\" y=\"23\" width=\"247.6\" height=\"254\" fill=\"url(#grad3)\" mask=\"url(#mask1)\" />\\n</svg>\\n`)}`,LN,WRe=(LN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a={},metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");let e=this.client||await this.initializeClient(),{accounts:n}=await e.enable(this.options);if(n.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let r=n.map((c,l)=>({name:`${this.metadata.name} Account ${l+1}`,address:c})),o=r[0],a={accounts:r,activeAccount:o};return zl(this.store,{walletId:this.id,wallet:a}),this.logger.info(\"\\\\u2705 Connected.\",a),r});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect(),this.logger.info(\"Disconnected.\")});ge(this,\"resumeSession\",async()=>{try{if(!this.store.state.wallets[this.id]){this.logger.info(\"No session to resume\");return}if(this.logger.info(\"Resuming session...\"),!(await this.initializeClient()).isConnected)throw this.logger.error(\"Exodus is not connected.\"),new Error(\"Exodus is not connected.\");this.logger.info(\"Session resumed\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let l=Ki(e);r=this.processTxns(l,n)}else{let l=Ki(e);r=this.processEncodedTxns(l,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",r);let a=await o.signTxns(r);this.logger.debug(\"Received signed transactions from wallet\",a);let c=a.map(l=>l===null?null:l8(l));return this.logger.debug(\"Transactions signed successfully\",c),c}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});this.options=a,this.store=n}async initializeClient(){if(this.logger.info(\"Initializing client...\"),typeof window>\"u\"||window.algorand===void 0)throw this.logger.error(\"Exodus is not available.\"),new Error(\"Exodus is not available.\");let e=window.algorand;return this.client=e,this.logger.info(\"Client initialized\"),e}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}},ge(LN,\"defaultMetadata\",{name:\"Exodus\",icon:qRe}),LN),Fd=\"f6d1c86b-4493-42fb-b88d-a62407b4cdf6\",YRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 480 480\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect fill=\"#801C96\" width=\"480\" height=\"480\" />\\n  <path fill=\"#FFFFFF\" d=\"M393.5,223.2c0-7.3-0.6-14.6-1.6-21.6c-0.9-6.5-2.3-12.8-4-18.9c-18-64.9-77.4-112.5-148-112.5c-70.6,0-130,47.6-148,112.5c-1.7,6.2-3,12.5-4,19c-1,7.1-1.6,14.3-1.6,21.6h0v85.5h19.7v-85.5c0-7.2,0.6-14.4,1.8-21.4c14,1.1,27.6,4.3,40.5,9.5c15.9,6.4,30.3,15.6,42.6,27.3c12.3,11.7,22,25.4,28.7,40.6c6.9,15.6,10.5,32.2,10.5,49.2v81.4h0.1h19.6h0.1v-81.5c0.1-17.1,3.6-33.7,10.5-49.2c6.7-15.2,16.4-28.8,28.7-40.6c4.2-4,8.6-7.7,13.2-11.1v132.2h19.7V223.2h0c0-2.5-0.1-5-0.4-7.4c3.3-1.6,6.6-3.1,10-4.5c12.9-5.2,26.4-8.4,40.4-9.5c1.2,7,1.7,14.2,1.8,21.4v85.5h19.7L393.5,223.2L393.5,223.2z M240.1,277.3c-11.6-29.3-32.7-54.1-59.8-71c2.9-10,8.2-19.1,15.8-26.6c11.8-11.8,27.4-18.2,44-18.2s32.3,6.5,44,18.2c4.1,4.1,7.5,8.7,10.3,13.6c5.6-3.4,11.4-6.4,17.4-9.2c-14-25.2-40.9-42.3-71.8-42.3c-35.9,0-66.3,23-77.5,55.1c-15.5-7.1-32.5-11.8-50.4-13.5c1.3-4,2.7-7.9,4.3-11.8c6.7-15.9,16.4-30.3,28.7-42.6s26.6-22,42.6-28.7c16.5-7,34-10.5,52.1-10.5s35.6,3.5,52.1,10.5c15.9,6.7,30.3,16.4,42.6,28.7s22,26.6,28.7,42.6c1.6,3.9,3.1,7.8,4.3,11.8C309,189.2,260.1,226.5,240.1,277.3z\" />\\n  <path fill=\"#FFFFFF\" d=\"M158.1,359.8h19.7V245.5c-6.1-5.4-12.7-10-19.7-14V359.8z\" />\\n</svg>\\n`)}`,NN,ZRe=(NN=class extends Gse{constructor({id:t,store:e,subscribe:n,getAlgodClient:r,metadata:o={}}){super({id:t,metadata:o,getAlgodClient:r,store:e,subscribe:n,providerId:Fd})}async _enable(){let{ARC0027MethodEnum:t,ARC0027MethodTimedOutError:e,ARC0027UnknownError:n,DEFAULT_REQUEST_TIMEOUT:r}=await this._initializeAVMWebProviderSDK(),o=await this._initializeAVMWebClient(),a=await this._getGenesisHash();return new Promise((c,l)=>{let f=window.setTimeout(()=>{o.removeListener(p),l(new e({method:t.Enable,message:`no response from provider \"${this.metadata.name}\"`,providerId:Fd}))},r),p=o.onEnable(({error:m,method:g,result:y})=>(o.removeListener(p),window.clearTimeout(f),m?l(m):y?c(y):l(new n({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Fd}))));o.enable({genesisHash:a,providerId:Fd})})}async _disable(){let{ARC0027MethodEnum:t,ARC0027MethodTimedOutError:e,ARC0027UnknownError:n,LOWER_REQUEST_TIMEOUT:r}=await this._initializeAVMWebProviderSDK(),o=await this._initializeAVMWebClient(),a=await this._getGenesisHash();return new Promise((c,l)=>{let f=window.setTimeout(()=>{o.removeListener(p),l(new e({method:t.Disable,message:`no response from provider \"${this.metadata.name}\"`,providerId:Fd}))},r),p=o.onDisable(({error:m,method:g,result:y})=>(o.removeListener(p),window.clearTimeout(f),m?l(m):y?(this.logger.debug(\"Disable successful\",{result:y}),c(y)):l(new n({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Fd}))));this.logger.debug(\"Sending disable request...\",{genesisHash:a}),o.disable({genesisHash:a,providerId:Fd})})}async _signTransactions(t){let{ARC0027MethodEnum:e,ARC0027MethodTimedOutError:n,ARC0027UnknownError:r,DEFAULT_REQUEST_TIMEOUT:o}=await this._initializeAVMWebProviderSDK(),a=await this._initializeAVMWebClient();return new Promise((c,l)=>{let f=window.setTimeout(()=>{a.removeListener(p),l(new n({method:e.SignTransactions,message:`no response from provider \"${this.metadata.name}\"`,providerId:Fd}))},o),p=a.onSignTransactions(({error:m,method:g,result:y})=>(a.removeListener(p),window.clearTimeout(f),m?l(m):y?(this.logger.debug(\"Sign transactions successful\",{result:y}),c(y)):l(new r({message:`received response, but \"${g}\" request details were empty for provider \"${this.metadata.name}\"`,providerId:Fd}))));this.logger.debug(\"Sending sign transactions request...\",{txns:t}),a.signTransactions({txns:t,providerId:Fd})})}},ge(NN,\"defaultMetadata\",{name:\"Kibisis\",icon:YRe}),NN),XRe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 400 400\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <linearGradient id=\"algokitGradient\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"400\" x2=\"400\" y2=\"0\">\\n    <stop offset=\"0\" style=\"stop-color:#31D8EE\"/>\\n    <stop offset=\"1\" style=\"stop-color:#01DC94\"/>\\n  </linearGradient>\\n  <rect fill=\"url(#algokitGradient)\" width=\"400\" height=\"400\" />\\n  <path fill=\"#FFFFFF\" d=\"M309.2,309.3H275l-22.2-82.7l-47.9,82.7h-38.3l73.9-128l-11.9-44.5l-99.6,172.6H90.8L217.1,90.6 h33.5l14.7,54.3h34.6l-23.6,41L309.2,309.3z\" />\\n</svg>\\n`)}`,UN,JRe=(UN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"walletName\");ge(this,\"walletId\",\"\");ge(this,\"password\",null);ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\"),this.client||await this.initializeClient();try{let e=await this.fetchToken(),n=await this.fetchAccounts(e);if(n.length===0)throw new Error(\"No accounts found!\");let r=n.map((c,l)=>({name:`${this.metadata.name} Account ${l+1}`,address:c})),o=r[0],a={accounts:r,activeAccount:o};return zl(this.store,{walletId:this.id,wallet:a}),await this.releaseToken(e),this.logger.info(\"\\\\u2705 Connected.\",a),r}catch(e){throw this.logger.error(\"Error connecting:\",e.message),e}});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect(),this.logger.info(\"Disconnected.\")});ge(this,\"resumeSession\",async()=>{try{if(!this.store.state.wallets[this.id]){this.logger.info(\"No session to resume\");return}this.logger.info(\"Resuming session...\"),await this.initializeClient(),this.logger.info(\"Session resumed\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let f=Ki(e);r=this.processTxns(f,n)}else{let f=Ki(e);r=this.processEncodedTxns(f,n)}let o=await this.fetchToken(),a=await this.getPassword(),c=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",r);let l=await Promise.all(r.map(f=>c.signTransaction(o,a,f)));return this.logger.debug(\"Received signed transactions from wallet\",l),await this.releaseToken(o),this.logger.debug(\"Transactions signed successfully\",l),l}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});let{token:l=\"a\".repeat(64),baseServer:f=\"http://127.0.0.1\",port:p=4002,wallet:m=\"unencrypted-default-wallet\",promptForPassword:g=()=>Promise.resolve(prompt(\"KMD password\")||\"\")}=a||{};this.options={token:l,baseServer:f,port:p,promptForPassword:g},this.walletName=m,this.store=n}async initializeClient(){this.logger.info(\"Initializing client...\");let{token:e,baseServer:n,port:r}=this.options,o=new xr.Kmd(e,n,r);return this.client=o,this.logger.info(\"Client initialized\"),o}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l);c&&f&&r.push(o)}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m);p&&g&&r.push(f)}),r}async fetchWalletId(){this.logger.debug(\"Fetching wallet data...\",{walletName:this.walletName});let e=this.client||await this.initializeClient(),{wallets:n}=await e.listWallets(),r=n.find(o=>o.name===this.walletName);if(!r)throw this.logger.error(`Wallet \"${this.walletName}\" not found!`),new Error(`Wallet \"${this.walletName}\" not found!`);return this.walletId=r.id,this.logger.debug(\"Wallet data fetched successfully\",{walletId:this.walletId}),r.id}async fetchToken(){this.logger.debug(\"Fetching token...\",{walletId:this.walletId});let e=this.client||await this.initializeClient(),n=this.walletId||await this.fetchWalletId(),r=await this.getPassword(),{wallet_handle_token:o}=await e.initWalletHandle(n,r);return this.logger.debug(\"Token fetched successfully\"),o}async releaseToken(e){this.logger.debug(\"Releasing token...\"),await(this.client||await this.initializeClient()).releaseWalletHandle(e),this.logger.debug(\"Token released successfully\")}async getPassword(){if(this.password!==null)return this.password;let e=await this.options.promptForPassword();return this.password=e,e}async fetchAccounts(e){this.logger.debug(\"Fetching accounts...\");let n=this.client||await this.initializeClient(),{addresses:r}=await n.listKeys(e);return this.logger.debug(\"Accounts fetched successfully\",{addresses:r}),r}},ge(UN,\"defaultMetadata\",{name:\"KMD\",icon:XRe}),UN);function QRe(t){return t instanceof Error&&\"code\"in t}function ePe(t){return t instanceof Error&&\"code\"in t}var tPe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 400 400\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <path fill=\"#AB47BC\" d=\"M283.7,263.6c-0.6,0-1.3-0.1-1.8-0.4c-0.6-0.3-1.1-0.8-1.5-1.3c-0.4-0.6-0.7-1.3-0.8-2 c-0.1-0.8-0.1-1.7,0.1-2.5c0.2-0.9,0.6-1.8,1.2-2.6c0.6-0.8,1.4-1.7,2.2-2.3c0.9-0.7,2.1-1.2,3.2-1.6c1.2-0.4,2.7-0.5,4-0.5 c1.4,0,3,0.3,4.4,0.8c1.5,0.5,3.1,1.4,4.3,2.3c1.4,1,2.8,2.4,3.8,3.7c1.1,1.5,2.1,3.3,2.8,5.1c0.7,1.9,1.2,4.1,1.3,6.1 c0.2,2.1,0,4.6-0.4,6.7c-0.5,2.2-1.4,4.7-2.4,6.7c-1.1,2.1-2.8,4.4-4.4,6.2c-1.8,1.9-4.1,3.7-6.3,5c-2.3,1.4-5.2,2.6-7.9,3.3 c-2.8,0.7-6.1,1.1-8.9,1.1c-3,0-6.5-0.6-9.3-1.4c-3-0.9-6.4-2.4-9.1-4c-2.8-1.7-5.8-4.2-8-6.6c-2.3-2.5-4.6-5.8-6.2-8.9 c-1.7-3.2-3.1-7.1-3.8-10.7c-0.8-3.7-1.1-8-0.9-11.8c0.2-3.9,1.1-8.3,2.3-12c1.3-3.8,3.4-8.1,5.7-11.4c2.3-3.5,5.6-7.1,8.8-9.9 c3.3-2.8,7.5-5.6,11.5-7.5c4.1-1.9,9-3.5,13.5-4.3c4.6-0.8,10-1.1,14.6-0.7c4.8,0.4,10.2,1.6,14.7,3.3c4.7,1.7,9.7,4.4,13.8,7.3 c4.2,3,8.5,7,11.7,10.9c3.3,4.1,6.5,9.2,8.7,14c2.2,4.9,4,10.9,4.9,16.3c0.9,5.5,1,11.9,0.4,17.5c-0.6,5.7-2.2,12.1-4.3,17.4 c-2.1,5.5-5.4,11.4-8.9,16.1c-3.6,4.8-8.4,9.8-13.1,13.6c-4.8,3.8-11,7.5-16.6,9.9c-5.8,2.5-12.8,4.5-19.1,5.4 c-6.4,0.9-13.9,1-20.3,0.2c-6.6-0.8-14-2.7-20.1-5.2c-6.3-2.5-13.1-6.4-18.5-10.5c-5.5-4.2-11.2-9.8-15.4-15.3 c-4.3-5.6-8.4-12.7-11.2-19.2c-2.8-6.7-4.9-14.7-5.9-21.9c-0.9-5.9-2.8-12.6-5.2-18.1c-2.3-5.4-5.9-11.2-9.5-15.8 c-3.6-4.5-8.3-9-13-12.4c-4.5-3.3-10.1-6.4-15.3-8.3c-5-1.9-11.1-3.4-16.5-3.9c-5.2-0.5-11.3-0.3-16.5,0.5c-5,0.8-10.7,2.6-15.3,4.7 c-4.5,2.1-9.4,5.1-13.2,8.3c-3.7,3.1-7.5,7.2-10.2,11.1c-2.7,3.8-5.2,8.6-6.7,13c-1.5,4.2-2.6,9.3-3,13.8c-0.3,4.3-0.1,9.4,0.7,13.7 c0.8,4.1,2.3,8.8,4.2,12.5c1.8,3.6,4.4,7.6,7.1,10.6c2.6,2.9,6,5.9,9.3,8.1c3.1,2.1,7.1,4,10.6,5.1c3.4,1.1,7.5,1.9,11.1,2 c3.5,0.2,7.4-0.2,10.8-1c3.2-0.7,6.8-2.1,9.7-3.6c2.8-1.5,5.7-3.6,8-5.8c2.2-2.1,4.3-4.8,5.9-7.4c1.5-2.5,2.8-5.5,3.5-8.3 c0.7-2.6,1.1-5.7,1.1-8.5c0-2.6-0.5-5.5-1.2-8c-0.7-2.3-1.8-4.9-3.1-6.9c-1.2-1.9-2.9-3.9-4.6-5.4c-1.6-1.4-3.6-2.8-5.5-3.7 c-1.8-0.9-4-1.6-5.9-1.9c-1.8-0.3-3.9-0.4-5.8-0.1c-1.7,0.2-3.6,0.7-5.1,1.4c-1.4,0.6-2.9,1.6-4.1,2.6c-1.1,0.9-2.1,2.2-2.9,3.4 c-0.7,1.1-1.2,2.5-1.5,3.7c-0.3,1.1-0.4,2.4-0.3,3.6c0.1,1,0.4,2.2,0.8,3.1c0.4,0.8,1,1.7,1.6,2.3c0.6,0.5,1.3,1,2.1,1.3 c0.6,0.2,1.5,0.4,2.1,0.3c0.6-0.1,1.3-0.3,1.8-0.6c0.5-0.3,1-0.8,1.2-1.4c0.3-0.5,0.7-1,1.2-1.4c0.5-0.3,1.2-0.6,1.8-0.6 c0.7-0.1,1.5,0.1,2.1,0.3c0.7,0.3,1.5,0.8,2.1,1.3c0.6,0.6,1.3,1.5,1.6,2.3c0.4,0.9,0.7,2.1,0.8,3.1c0.1,1.1,0,2.5-0.3,3.6 c-0.3,1.2-0.9,2.6-1.5,3.7c-0.7,1.2-1.8,2.4-2.9,3.4c-1.2,1-2.7,2-4.1,2.6c-1.5,0.7-3.4,1.2-5.1,1.4c-1.8,0.2-4,0.2-5.8-0.1 c-2-0.3-4.1-1-5.9-1.9c-1.9-0.9-4-2.3-5.5-3.7c-1.7-1.5-3.4-3.5-4.6-5.4c-1.3-2-2.4-4.6-3.1-6.9c-0.7-2.5-1.2-5.4-1.2-8 c0-2.7,0.4-5.8,1.1-8.5c0.7-2.8,2-5.8,3.5-8.3c1.5-2.6,3.7-5.3,5.9-7.4c2.3-2.2,5.2-4.3,8-5.8c2.9-1.6,6.5-2.9,9.7-3.6 c3.4-0.8,7.4-1.1,10.8-1c3.6,0.2,7.7,0.9,11.1,2c3.6,1.2,7.5,3.1,10.6,5.1c3.3,2.1,6.7,5.1,9.3,8.1c2.7,3,5.3,7,7.1,10.6 c1.8,3.8,3.4,8.4,4.2,12.5c0.8,4.3,1.1,9.3,0.7,13.7c-0.4,4.5-1.5,9.6-3,13.8c-1.6,4.4-4.1,9.2-6.7,13c-2.8,3.9-6.5,8-10.2,11.1 c-3.8,3.2-8.7,6.2-13.2,8.3c-4.6,2.1-10.3,3.8-15.3,4.7c-5.2,0.9-11.3,1-16.5,0.5c-5.4-0.5-11.5-2-16.5-3.9 c-5.2-2-10.8-5.1-15.3-8.3c-4.6-3.4-9.4-7.9-13-12.4c-3.7-4.6-7.2-10.4-9.5-15.8c-2.4-5.5-4.3-12.2-5.2-18.1 c-0.9-6.1-1-13.2-0.3-19.3c0.7-6.3,2.5-13.4,4.9-19.2c2.4-6,6.1-12.5,10-17.7c4-5.3,9.3-10.7,14.6-14.8c5.3-4.2,12.1-8.1,18.3-10.7 c6.4-2.7,14.1-4.8,21-5.7c7-1,15.2-1,22.2-0.1c7.2,0.9,15.2,3.1,21.9,5.8c5.6,2.2,12.3,3.9,18.3,4.6c5.8,0.7,12.6,0.5,18.4-0.4 c5.6-0.9,12-2.7,17.2-5c5.1-2.3,10.6-5.6,14.9-9.1c4.2-3.4,8.5-8,11.7-12.3c3.1-4.3,6-9.6,7.8-14.5c1.8-4.8,3.1-10.5,3.6-15.6 c0.5-4.9,0.3-10.7-0.6-15.6c-0.8-4.7-2.5-10.1-4.5-14.4c-2-4.2-4.9-8.8-7.9-12.3c-2.9-3.4-6.8-6.9-10.5-9.5 c-3.6-2.5-8.1-4.8-12.2-6.2c-4-1.4-8.7-2.4-12.9-2.7c-4-0.3-8.7,0-12.7,0.8c-3.8,0.8-8.1,2.2-11.6,4c-3.4,1.7-7,4.1-9.7,6.6 c-2.7,2.4-5.4,5.6-7.3,8.6c-1.9,2.9-3.6,6.5-4.6,9.8c-1,3.2-1.6,6.9-1.7,10.2c-0.1,3.2,0.3,6.8,1,9.9c0.7,2.9,2,6.2,3.5,8.8 c1.4,2.5,3.4,5.1,5.4,7.2c1.9,1.9,4.4,3.8,6.8,5.2c2.2,1.3,5,2.4,7.5,3c2.3,0.6,5.1,0.9,7.6,0.8c2.3-0.1,4.9-0.5,7-1.3 c2-0.7,4.2-1.7,6-2.9c1.6-1.1,3.3-2.7,4.6-4.2c1.2-1.4,2.3-3.2,3-4.9c0.7-1.6,1.2-3.5,1.3-5.1c0.2-1.5,0.1-3.3-0.2-4.9 c-0.3-1.4-0.8-2.9-1.5-4.2c-0.6-1.1-1.5-2.3-2.4-3.2c-0.8-0.8-1.9-1.5-3-2c-0.9-0.4-2.1-0.7-3.1-0.8c-0.9-0.1-1.9,0-2.8,0.3 c-0.7,0.2-1.6,0.6-2.2,1.1c-0.5,0.4-1,1.1-1.3,1.7c-0.3,0.6-0.4,1.3-0.4,1.9c0,0.6,0.2,1.2,0.6,1.7c0.3,0.5,0.5,1.2,0.6,1.7 c0,0.6-0.1,1.3-0.4,1.9c-0.3,0.6-0.8,1.3-1.3,1.7c-0.6,0.5-1.4,0.9-2.2,1.1c-0.9,0.3-1.9,0.3-2.8,0.3c-1-0.1-2.2-0.4-3.1-0.8 c-1-0.5-2.1-1.2-3-2c-0.9-0.9-1.8-2.1-2.4-3.2c-0.7-1.2-1.2-2.8-1.5-4.2c-0.3-1.5-0.4-3.3-0.2-4.9c0.2-1.7,0.7-3.6,1.3-5.1 c0.7-1.7,1.8-3.5,3-4.9c1.3-1.5,3-3.1,4.6-4.2c1.8-1.2,4-2.3,6-2.9c2.2-0.7,4.8-1.2,7-1.3c2.4-0.1,5.2,0.2,7.6,0.8 c2.5,0.6,5.3,1.7,7.5,3c2.4,1.3,4.9,3.2,6.8,5.2c2,2,4,4.7,5.4,7.2c1.5,2.6,2.7,5.9,3.5,8.8c0.8,3.1,1.1,6.7,1,9.9 c-0.1,3.3-0.7,7.1-1.7,10.2c-1,3.3-2.7,6.9-4.6,9.8c-1.9,3-4.7,6.2-7.3,8.6c-2.8,2.5-6.4,5-9.7,6.6c-3.5,1.8-7.8,3.2-11.6,4 c-4,0.8-8.7,1.1-12.7,0.8c-4.2-0.3-9-1.3-12.9-2.7c-4.1-1.4-8.6-3.7-12.2-6.2c-3.7-2.6-7.6-6.1-10.5-9.5c-3-3.6-5.9-8.1-7.9-12.3 c-2-4.4-3.7-9.7-4.5-14.4c-0.8-4.9-1.1-10.6-0.6-15.6c0.5-5.1,1.8-10.8,3.6-15.6c1.8-4.9,4.7-10.3,7.8-14.5 c3.2-4.4,7.5-8.9,11.7-12.3c4.3-3.5,9.8-6.9,14.9-9.1c5.2-2.3,11.6-4.2,17.2-5c5.8-0.9,12.6-1,18.4-0.4c6,0.7,12.7,2.4,18.3,4.6 c5.7,2.3,12,5.7,16.9,9.4c5.1,3.8,10.3,8.9,14.2,13.8c4,5.1,7.8,11.5,10.3,17.5c2.6,6.1,4.6,13.5,5.5,20c0.9,6.7,1,14.5,0.1,21.2 c-0.9,6.9-2.9,14.6-5.5,21c-2.7,6.5-6.8,13.6-11,19.3c-4.4,5.7-10.3,11.7-16,16c-4.7,3.7-9.5,8.7-13.1,13.6 c-3.5,4.7-6.8,10.7-8.9,16.1c-2.1,5.3-3.6,11.7-4.3,17.4c-0.6,5.5-0.4,12,0.4,17.5c0.9,5.3,2.6,11.3,4.9,16.3c2.2,4.8,5.4,10,8.7,14 c3.2,3.9,7.6,8,11.7,10.9c4,2.9,9.1,5.6,13.8,7.3c4.5,1.7,9.9,2.9,14.7,3.3c4.6,0.4,10,0.2,14.6-0.7c4.4-0.8,9.4-2.4,13.5-4.3 c3.9-1.9,8.2-4.6,11.5-7.5c3.2-2.7,6.4-6.4,8.8-9.9c2.3-3.4,4.4-7.6,5.7-11.4c1.2-3.7,2.1-8.1,2.3-12c0.2-3.7-0.1-8.1-0.9-11.8 c-0.8-3.5-2.2-7.5-3.8-10.7c-1.6-3.1-3.9-6.3-6.2-8.9c-2.2-2.4-5.2-4.9-8-6.6c-2.7-1.7-6-3.2-9.1-4c-2.9-0.8-6.3-1.4-9.3-1.4 c-2.9,0-6.2,0.4-8.9,1.1c-2.6,0.7-5.5,1.9-7.9,3.3c-2.2,1.3-4.5,3.2-6.3,5c-1.7,1.8-3.3,4-4.4,6.2c-1.1,2-2,4.5-2.4,6.7 c-0.4,2.1-0.6,4.5-0.4,6.7c0.2,2,0.6,4.2,1.3,6.1c0.6,1.7,1.7,3.6,2.8,5.1c1,1.3,2.4,2.7,3.8,3.7c1.3,0.9,2.8,1.8,4.3,2.3 c1.3,0.5,2.9,0.8,4.4,0.8c1.3,0,2.7-0.1,4-0.5c1.1-0.3,2.3-0.9,3.2-1.6c0.8-0.6,1.7-1.4,2.2-2.3c0.5-0.7,0.9-1.7,1.2-2.6 c0.2-0.8,0.2-1.7,0.1-2.5c-0.1-0.7-0.4-1.4-0.8-2c-0.4-0.5-0.9-1-1.5-1.3C285,263.7,284.3,263.6,283.7,263.6L283.7,263.6z\" />\\n</svg>\\n`)}`,zN,nPe=(zN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a={},metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");let e=this.client||await this.initializeClient(),n=await this.getGenesisId(),r=await e.connect(n);if(r.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let o=r.map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l})),a=o[0],c={accounts:o,activeAccount:a};return zl(this.store,{walletId:this.id,wallet:c}),this.logger.info(\"Connected successfully\",c),o});ge(this,\"disconnect\",async()=>{this.onDisconnect(),this.logger.info(\"Disconnected\")});ge(this,\"resumeSession\",async()=>{try{if(!this.store.state.wallets[this.id]){this.logger.info(\"No session to resume\");return}this.logger.info(\"Resuming session...\"),await this.initializeClient(),this.logger.info(\"Session resumed successfully\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let c=Ki(e);r=this.processTxns(c,n)}else{let c=Ki(e);r=this.processEncodedTxns(c,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",r);let a=await o.signTxns(r);return this.logger.debug(\"Transactions signed successfully\",a),a}catch(r){throw QRe(r)?(this.logger.error(\"Error signing transactions:\",r.message,`(code: ${r.code})`),new _Re(r.message,r.code)):(this.logger.error(\"Unknown error signing transactions:\",r),r)}});ge(this,\"canSignData\",!0);ge(this,\"signData\",async(e,n)=>{try{this.logger.debug(\"Signing data...\",{data:e,metadata:n});let o=await(this.client||await this.initializeClient()).signData(e,n);return this.logger.debug(\"Data signed successfully\",o),o}catch(r){throw ePe(r)?(this.logger.error(\"Error signing data:\",r.message,`(code: ${r.code})`),new MRe(r.message,r.code)):(this.logger.error(\"Unknown error signing data:\",r),r)}});this.options=a,this.store=n}async initializeClient(){this.logger.info(\"Initializing client...\");let n=(await Promise.resolve().then(()=>(doe(),uoe))).default,r=new n(this.options?.siteName);return this.client=r,this.logger.info(\"Client initialized\"),r}async getGenesisId(){let e=this.activeNetworkConfig;if(e.genesisId)return e.genesisId;let r=await this.getAlgodClient().genesis().do(),o=xr.parseJSON(r,{intDecoding:xr.IntDecoding.MIXED});return`${o.network}-${o.id}`}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}},ge(zN,\"defaultMetadata\",{name:\"Lute\",icon:tPe}),zN),rPe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 47 47\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <path fill=\"#6851FF\" d=\"M 23.960861 1.80769 C 25.835077 4.103153 27.902216 6.23489 30.137539 8.178169 C 28.647968 13.009323 27.846092 18.142094 27.846092 23.462154 C 27.846092 28.782307 28.648062 33.915169 30.13763 38.746368 C 27.902216 40.689724 25.835077 42.821476 23.960861 45.116985 C 22.086554 42.821476 20.019415 40.689632 17.783998 38.746368 C 19.273476 33.915169 20.075445 28.7824 20.075445 23.462337 C 20.075445 18.142277 19.273476 13.009506 17.783998 8.178318 C 20.019415 6.235001 22.086554 4.10321 23.960861 1.80769 Z M 13.511427 35.406403 C 11.145139 33.747814 8.633816 32.282063 6.000269 31.031937 C 6.730776 28.637476 7.123754 26.095783 7.123754 23.462429 C 7.123754 20.828892 6.730762 18.287201 6.000235 15.892738 C 8.633816 14.642616 11.145175 13.176861 13.511501 11.518276 C 14.416311 15.352554 14.895074 19.351414 14.895074 23.462154 C 14.895074 27.572985 14.416283 31.571938 13.511427 35.406403 Z M 33.027046 23.462337 C 33.027046 27.572985 33.505753 31.571846 34.410553 35.406124 C 36.776859 33.747631 39.288094 32.281876 41.921539 31.031845 C 41.191017 28.637384 40.798061 26.095692 40.798061 23.462246 C 40.798061 20.8288 41.191017 18.287201 41.921539 15.89283 C 39.288094 14.642708 36.776768 13.177048 34.410553 11.518555 C 33.505753 15.352831 33.027046 19.351692 33.027046 23.462337 Z\" />\\n</svg>\\n`)}`,VN,oPe=(VN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"userInfo\",null);ge(this,\"connect\",async e=>{if(this.logger.info(\"Connecting...\"),!e?.email||typeof e.email!=\"string\")throw this.logger.error(\"Magic Link provider requires an email (string) to connect\"),new Error(\"Magic Link provider requires an email (string) to connect\");let{email:n}=e,r=this.client||await this.initializeClient();this.logger.info(`Logging in ${n}...`),await r.auth.loginWithMagicLink({email:n});let o=await r.user.getInfo();if(!o)throw this.logger.error(\"User info not found!\"),new Error(\"User info not found!\");if(!o.publicAddress)throw this.logger.error(\"No account found!\"),new Error(\"No account found!\");this.userInfo=o,this.logger.info(\"Login successful\",o);let a={name:o.email??\"Magic Wallet 1\",address:o.publicAddress},c={accounts:[a],activeAccount:a};return zl(this.store,{walletId:this.id,wallet:c}),this.logger.info(\"Connected successfully\",c),[a]});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect();let e=this.client||await this.initializeClient();this.logger.info(`Logging out ${this.userInfo?.email||\"user\"}...`),await e.user.logout(),this.logger.info(\"Disconnected\")});ge(this,\"resumeSession\",async()=>{try{let n=this.store.state.wallets[this.id];if(!n){this.logger.info(\"No session to resume\");return}this.logger.info(\"Resuming session...\");let r=this.client||await this.initializeClient();if(!await r.user.isLoggedIn()){this.logger.warn(\"Not logged in, please reconnect...\"),this.onDisconnect();return}let a=await r.user.getInfo();if(!a)throw await r.user.logout(),this.logger.error(\"User info not found!\"),new Error(\"User info not found!\");if(!a.publicAddress)throw await r.user.logout(),this.logger.error(\"No account found!\"),new Error(\"No account found!\");this.userInfo=a;let c={name:a.email??`${this.metadata.name} Account 1`,address:a.publicAddress},l=n.accounts[0],{name:f,address:p}=c,{name:m,address:g}=l;f===m&&p===g||(this.logger.warn(\"Session account mismatch, updating account\",{prev:l,current:c}),Ov(this.store,{walletId:this.id,accounts:[c]})),this.logger.info(\"Session resumed successfully\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let l=Ki(e);r=this.processTxns(l,n)}else{let l=Ki(e);r=this.processEncodedTxns(l,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",r);let a=await o.algorand.signGroupTransactionV2(r);this.logger.debug(\"Received signed transactions from wallet\",a);let c=a.map(l=>l===void 0?null:l8(l));return this.logger.debug(\"Transactions signed successfully\",c),c}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});if(!a?.apiKey)throw this.logger.error(\"Missing required option: apiKey\"),new Error(\"Missing required option: apiKey\");this.options=a,this.store=n}async initializeClient(){this.logger.info(\"Initializing client...\");let e=(await Promise.resolve().then(()=>(ERe(),Fse))).Magic,n=(await Promise.resolve().then(()=>(SRe(),Nse))).AlgorandExtension,r=new e(this.options.apiKey,{extensions:{algorand:new n({rpcUrl:\"\"})}});return this.client=r,this.logger.info(\"Client initialized\"),r}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}},ge(VN,\"defaultMetadata\",{name:\"Magic\",icon:rPe}),VN),iPe=Hg.createScopedLogger(\"SecureKey\");function Sm(t){if(!(!t||t.length===0))try{typeof crypto<\"u\"&&crypto.getRandomValues&&crypto.getRandomValues(t),t.fill(0)}catch{for(let e=0;e<t.length;e++)t[e]=0}}var aPe=class{constructor(t){ge(this,\"_secretKey\",null);ge(this,\"_isCleared\",!1);this._secretKey=new Uint8Array(t)}get isCleared(){return this._isCleared}async useKey(t){if(this._isCleared||!this._secretKey)throw new Error(\"SecureKeyContainer: Key has been cleared\");try{return await t(this._secretKey)}catch(e){throw this.clear(),e}}useKeySync(t){if(this._isCleared||!this._secretKey)throw new Error(\"SecureKeyContainer: Key has been cleared\");try{return t(this._secretKey)}catch(e){throw this.clear(),e}}clear(){this._secretKey&&!this._isCleared&&(Sm(this._secretKey),this._secretKey=null,this._isCleared=!0,iPe.debug(\"Key material cleared from memory\"))}};async function Uk(t){if(t.length!==32)throw new Error(`Invalid ed25519 seed length: expected 32 bytes, got ${t.length}`);let e=await Promise.resolve().then(()=>RIe(ARe(),1)),n=await Promise.resolve().then(()=>($i(),xee)),r=e.sign.keyPair.fromSeed(t);return{addr:n.encodeAddress(r.publicKey),sk:r.secretKey}}var IN=`${r8}_mnemonic`,sPe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 400 400\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect fill=\"#525252\" width=\"400\" height=\"400\" />\\n  <path fill=\"#FFFFFF\" d=\"M309.2,309.3H275l-22.2-82.7l-47.9,82.7h-38.3l73.9-128l-11.9-44.5l-99.6,172.6H90.8L217.1,90.6 h33.5l14.7,54.3h34.6l-23.6,41L309.2,309.3z\" />\\n</svg>\\n`)}`,HN,cPe=(HN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"account\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"connect\",async()=>{this.checkMainnet(),this.logger.info(\"Connecting...\");let e=await this.initializeAccount(),n={name:`${this.metadata.name} Account`,address:e.addr.toString()},r={accounts:[n],activeAccount:n};return zl(this.store,{walletId:this.id,wallet:r}),this.logger.info(\"Connected successfully\",r),[n]});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect(),this.account=null,this.removeMnemonicFromStorage(),this.logger.info(\"Disconnected\")});ge(this,\"resumeSession\",async()=>{if(this.checkMainnet(),!this.store.state.wallets[this.id]){this.logger.info(\"No session to resume\");return}if(this.logger.info(\"Resuming session...\"),this.options.persistToStorage)try{await this.initializeAccount(),this.logger.info(\"Session resumed successfully\")}catch(r){throw this.logger.error(\"Error resuming session:\",r.message),this.disconnect(),r}else this.logger.info(\"No session to resume, disconnecting...\"),this.disconnect()});ge(this,\"canUsePrivateKey\",!0);ge(this,\"withPrivateKey\",async e=>{if(this.checkMainnet(),!this.account)throw this.logger.error(\"Mnemonic wallet not connected\"),new Error(\"Mnemonic wallet not connected\");this.logger.debug(\"withPrivateKey: Providing private key access...\");let n=new Uint8Array(this.account.sk);try{return await e(n)}finally{Sm(n)}});ge(this,\"signTransactions\",async(e,n)=>{this.checkMainnet();try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let a=Ki(e);r=this.processTxns(a,n)}else{let a=Ki(e);r=this.processEncodedTxns(a,n)}let o=r.map(a=>a.signTxn(this.account.sk));return this.logger.debug(\"Transactions signed successfully\",{signedTxns:o}),o}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});let{persistToStorage:l=!1,promptForMnemonic:f=()=>Promise.resolve(prompt(\"Enter 25-word mnemonic passphrase:\"))}=a||{};this.options={persistToStorage:l,promptForMnemonic:f},this.store=n,this.options.persistToStorage&&this.logger.warn(\"Persisting mnemonics to storage is insecure. Any private key mnemonics used should never hold real Algos (i.e., on MainNet). Use with caution!\")}loadMnemonicFromStorage(){return Js.getItem(IN)}saveMnemonicToStorage(e){Js.setItem(IN,e)}removeMnemonicFromStorage(){Js.removeItem(IN)}checkMainnet(){try{if(!this.activeNetworkConfig.isTestnet)throw this.logger.warn(\"The Mnemonic wallet provider is insecure and intended for testing only. Any private key mnemonics used should never hold real Algos (i.e., on MainNet).\"),new Error(\"Production network detected. Aborting.\")}catch(e){throw this.disconnect(),e}}async initializeAccount(){let e=this.loadMnemonicFromStorage();if(!e){if(e=await this.options.promptForMnemonic(),!e)throw this.account=null,this.logger.error(\"No mnemonic provided\"),new Error(\"No mnemonic provided\");this.options.persistToStorage&&(this.logger.warn(\"Mnemonic saved to localStorage.\"),this.saveMnemonicToStorage(e))}let n=xr.mnemonicToSecretKey(e);return this.account=n,n}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),f=o.sender.toString()===this.account.addr.toString();c&&f&&r.push(o)}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&m===this.account.addr.toString();p&&g&&r.push(f)}),r}},ge(HN,\"defaultMetadata\",{name:\"Mnemonic\",icon:sPe}),HN),lPe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 200 200\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect fill=\"#FFEE55\" width=\"200\" height=\"200\" />\\n  <path fill=\"#1C1C1C\" d=\"M106.1,64.3c2.2,9.1,1.5,17-1.7,17.8c-3.1,0.8-7.4-6-9.6-15c-2.2-9.1-1.5-17,1.7-17.8 C99.6,48.5,103.9,55.2,106.1,64.3z\" />\\n  <path fill=\"#1C1C1C\" d=\"M142.2,72.1c-4.8-5.1-14.5-3.7-21.6,3.1c-7,6.9-8.8,16.6-4,21.7c4.8,5.1,14.5,3.7,21.6-3.1 C145.3,86.9,147.1,77.2,142.2,72.1z\" />\\n  <path fill=\"#1C1C1C\" d=\"M103.7,150.8c3.1-0.8,3.7-9.2,1.4-18.8c-2.3-9.6-6.7-16.8-9.8-16c-3.1,0.8-3.7,9.2-1.4,18.8 C96.2,144.3,100.6,151.5,103.7,150.8z\" />\\n  <path fill=\"#1C1C1C\" d=\"M72.1,76.8c9,2.6,15.5,7.3,14.6,10.3c-0.9,3.1-8.9,3.4-17.8,0.8s-15.5-7.3-14.6-10.3 C55.1,74.5,63.1,74.1,72.1,76.8z\" />\\n  <path fill=\"#1C1C1C\" d=\"M130.2,111.5c9.5,2.8,16.5,7.6,15.6,10.6c-0.9,3.1-9.3,3.3-18.8,0.5c-9.5-2.8-16.5-7.6-15.6-10.6 C112.2,108.9,120.7,108.7,130.2,111.5z\" />\\n  <path fill=\"#1C1C1C\" d=\"M82.1,105c-2.2-2.3-9.5,1-16.3,7.5c-6.8,6.4-10.4,13.5-8.2,15.8c2.2,2.3,9.5-1,16.3-7.5 C80.7,114.4,84.3,107.3,82.1,105z\" />\\n</svg>\\n`)}`,jN,uPe=(jN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a={},metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"options\");ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");let e=this.store.state.activeWallet;e&&e!==this.id&&this.manageWalletConnectSession(\"backup\",e);let n=this.client||await this.initializeClient(),r=await n.connect();if(n.connector?.on(\"disconnect\",this.onDisconnect),r.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let o=r.map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l})),a=o[0],c={accounts:o,activeAccount:a};return zl(this.store,{walletId:this.id,wallet:c}),this.logger.info(\"Connected successfully\",c),o});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\");let e=this.client||await this.initializeClient(),n=this.store.state.activeWallet;n&&n!==this.id?(this.manageWalletConnectSession(\"backup\",n),this.manageWalletConnectSession(\"restore\",this.id),await e.disconnect(),await new Promise(r=>setTimeout(r,500)),this.manageWalletConnectSession(\"restore\",n)):await e.disconnect(),this.onDisconnect(),this.logger.info(\"Disconnected\")});ge(this,\"setActive\",()=>{this.logger.info(`Set active wallet: ${this.id}`);let e=this.store.state.activeWallet;e&&e===\"defly\"&&this.manageWalletConnectSession(\"backup\",e),this.manageWalletConnectSession(\"restore\"),Qk(this.store,{walletId:this.id})});ge(this,\"resumeSession\",async()=>{try{let e=this.store.state,n=e.wallets[this.id];if(typeof window<\"u\"&&window.navigator&&window.navigator.userAgent.includes(\"pera\")&&!n&&!e.activeWallet){this.logger.info(\"Pera Discover browser detected, attempting auto-connect...\");try{await this.connect(),this.logger.info(\"Auto-connect successful\");return}catch(f){this.logger.warn(\"Auto-connect failed:\",f.message)}}if(!n){this.logger.info(\"No session to resume\");return}if(e.activeWallet===\"defly\"){this.logger.info(\"Skipping reconnectSession for Pera (inactive)\");return}this.logger.info(\"Resuming session...\");let o=await(this.client||await this.initializeClient()).reconnectSession();if(o.length===0)throw this.logger.error(\"No accounts found!\"),new Error(\"No accounts found!\");let a=o.map((l,f)=>({name:`${this.metadata.name} Account ${f+1}`,address:l}));c8(a,n.accounts)||(this.logger.warn(\"Session accounts mismatch, updating accounts\",{prev:n.accounts,current:a}),Ov(this.store,{walletId:this.id,accounts:a})),this.logger.info(\"Session resumed successfully\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let l=Ki(e);r=this.processTxns(l,n)}else{let l=Ki(e);r=this.processEncodedTxns(l,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",[r]);let a=await o.signTransaction([r]);this.logger.debug(\"Received signed transactions from wallet\",a);let c=r.reduce((l,f)=>{if(f.signers&&f.signers.length==0)l.push(null);else{let p=a.shift();p&&l.push(p)}return l},[]);return this.logger.debug(\"Transactions signed successfully\",c),c}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});this.options=a,this.store=n}async initializeClient(){this.logger.info(\"Initializing client...\");let{PeraWalletConnect:e}=await Promise.resolve().then(()=>(zie(),Uie)),n=new e(this.options);return this.client=n,this.logger.info(\"Client initialized\"),n}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l);c&&f?r.push({txn:o}):r.push({txn:o,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m);p&&g?r.push({txn:f}):r.push({txn:f,signers:[]})}),r}},ge(jN,\"defaultMetadata\",{name:\"Pera\",icon:lPe}),jN),RN=`${r8}:web3auth`,dPe=`data:image/svg+xml;base64,${btoa(`\\n<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect fill=\"#0364FF\" width=\"40\" height=\"40\" rx=\"8\"/>\\n  <path fill=\"#FFFFFF\" d=\"M20 8c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12S26.627 8 20 8zm0 21.6c-5.302 0-9.6-4.298-9.6-9.6S14.698 10.4 20 10.4s9.6 4.298 9.6 9.6-4.298 9.6-9.6 9.6zm0-16.8c-3.976 0-7.2 3.224-7.2 7.2s3.224 7.2 7.2 7.2 7.2-3.224 7.2-7.2-3.224-7.2-7.2-7.2zm0 12c-2.651 0-4.8-2.149-4.8-4.8s2.149-4.8 4.8-4.8 4.8 2.149 4.8 4.8-2.149 4.8-4.8 4.8z\"/>\\n</svg>\\n`)}`,$N,fPe=($N=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,options:a,metadata:c={}}){super({id:e,metadata:c,getAlgodClient:o,store:n,subscribe:r});ge(this,\"web3auth\",null);ge(this,\"web3authSFA\",null);ge(this,\"options\");ge(this,\"userInfo\",null);ge(this,\"_address\",null);ge(this,\"usingSFA\",!1);ge(this,\"store\");ge(this,\"connect\",async e=>{this.logger.info(\"Connecting to Web3Auth...\");try{let n,r=e?.idToken,o=e?.verifierId,a=e?.verifier||this.options.verifier;if(r&&o){if(!a)throw new Error(\"Custom authentication requires a verifier. Provide it in connect() args or options.verifier\");this.logger.info(\"Connecting with custom authentication (SFA)...\",{verifier:a,verifierId:o});let p=this.web3authSFA||await this.initializeSFAClient();if(p.connected){this.logger.debug(\"SFA already connected, logging out first...\");try{await p.logout()}catch{}}n=await p.connect({verifier:a,verifierId:o,idToken:r}),this.usingSFA=!0,this.userInfo={email:o}}else{let p=this.web3auth||await this.initializeClient();n=await p.connect(),this.usingSFA=!1,this.userInfo=await p.getUserInfo(),this.logger.debug(\"User info retrieved\",{email:this.userInfo.email})}if(!n)throw new Error(\"Failed to connect to Web3Auth\");let c=await this.getSecureKey();try{let p=await c.useKey(async m=>{let g=await Uk(m),y=g.addr;return Sm(g.sk),y});this._address=p}finally{c.clear()}let l={name:this.userInfo.name||this.userInfo.email||`${this.metadata.name} Account`,address:this._address},f={accounts:[l],activeAccount:l};return zl(this.store,{walletId:this.id,wallet:f}),this.saveMetadata(),this.logger.info(\"Connected successfully\",{address:this._address}),[l]}catch(n){throw this.logger.error(\"Error connecting to Web3Auth:\",n.message),n}});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting from Web3Auth...\");try{this.usingSFA&&this.web3authSFA?.connected?await this.web3authSFA.logout():this.web3auth?.connected&&await this.web3auth.logout()}catch(e){this.logger.warn(\"Error during Web3Auth logout:\",e.message)}this._address=null,this.userInfo=null,this.usingSFA=!1,this.clearMetadata(),this.onDisconnect(),this.logger.info(\"Disconnected\")});ge(this,\"resumeSession\",async()=>{try{let n=this.store.state.wallets[this.id];if(!n){this.logger.info(\"No session to resume\");return}let r=n.accounts[0];if(!r?.address){this.logger.warn(\"No address found in cached session\"),this.onDisconnect();return}this._address=r.address,this.userInfo={name:r.name};let o=this.loadMetadata();o&&(this.usingSFA=o.usingSFA),this.logger.info(\"Session restored from cache (lazy mode)\",{address:this._address})}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"canUsePrivateKey\",!0);ge(this,\"withPrivateKey\",async e=>{this.logger.debug(\"withPrivateKey: Providing private key access...\"),await this.ensureConnected();let n=await this.getSecureKey();try{return await n.useKey(async r=>{let o=await Uk(r),a=new Uint8Array(o.sk);Sm(o.sk);try{return await e(a)}finally{Sm(a)}})}finally{n.clear()}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n}),await this.ensureConnected();let r=[];if(Bu(e)){let c=Ki(e);r=this.processTxns(c,n)}else{let c=Ki(e);r=this.processEncodedTxns(c,n)}if(r.length===0)return this.logger.debug(\"No transactions to sign\"),[];let o=await this.getSecureKey(),a=[];try{a=await o.useKey(async c=>{let l=await Uk(c);try{return r.map(p=>p.signTxn(l.sk))}finally{Sm(l.sk)}})}finally{o.clear()}return this.logger.debug(\"Transactions signed successfully\",{count:a.length}),a}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});if(!a?.clientId)throw this.logger.error(\"Missing required option: clientId\"),new Error(\"Missing required option: clientId\");this.options={web3AuthNetwork:\"sapphire_mainnet\",usePopup:!0,...a},this.store=n}loadMetadata(){let e=Js.getItem(RN);if(!e)return null;try{return JSON.parse(e)}catch{return null}}saveMetadata(){let e={usingSFA:this.usingSFA};Js.setItem(RN,JSON.stringify(e))}clearMetadata(){Js.removeItem(RN)}async initializeClient(){this.logger.info(\"Initializing Web3Auth client...\");let e,n,r,o;try{e=(await import(\"@web3auth/modal\")).Web3Auth;let m=await import(\"@web3auth/base\");n=m.CHAIN_NAMESPACES,r=m.WEB3AUTH_NETWORK,o=(await import(\"@web3auth/base-provider\")).CommonPrivateKeyProvider}catch(p){throw this.logger.error(\"Failed to load Web3Auth. Make sure @web3auth/modal, @web3auth/base, and @web3auth/base-provider are installed.\",p),new Error(\"Web3Auth packages not found. Please install @web3auth/modal, @web3auth/base, and @web3auth/base-provider\")}let a={chainNamespace:n.OTHER,chainId:\"algorand\",rpcTarget:\"https://mainnet-api.algonode.cloud\",displayName:\"Algorand\",blockExplorerUrl:\"https://lora.algokit.io/mainnet\",ticker:\"ALGO\",tickerName:\"Algorand\"},c={mainnet:r.MAINNET,testnet:r.TESTNET,sapphire_mainnet:r.SAPPHIRE_MAINNET,sapphire_devnet:r.SAPPHIRE_DEVNET,cyan:r.CYAN,aqua:r.AQUA},l=new o({config:{chainConfig:a}}),f=new e({clientId:this.options.clientId,web3AuthNetwork:c[this.options.web3AuthNetwork||\"sapphire_mainnet\"],privateKeyProvider:l,uiConfig:this.options.uiConfig});return await f.initModal(),this.web3auth=f,this.logger.info(\"Web3Auth client initialized\"),f}async initializeSFAClient(){this.logger.info(\"Initializing Web3Auth Single Factor Auth client...\");let e,n,r,o;try{e=(await import(\"@web3auth/single-factor-auth\")).Web3Auth;let m=await import(\"@web3auth/base\");n=m.WEB3AUTH_NETWORK,o=m.CHAIN_NAMESPACES,r=(await import(\"@web3auth/base-provider\")).CommonPrivateKeyProvider}catch{throw this.logger.error(\"Failed to load Web3Auth SFA. Make sure @web3auth/single-factor-auth, @web3auth/base, and @web3auth/base-provider are installed.\"),new Error(\"Web3Auth SFA packages not found. Please install @web3auth/single-factor-auth, @web3auth/base, and @web3auth/base-provider\")}let a={chainNamespace:o.OTHER,chainId:\"algorand\",rpcTarget:\"https://mainnet-api.algonode.cloud\",displayName:\"Algorand\",blockExplorerUrl:\"https://lora.algokit.io/mainnet\",ticker:\"ALGO\",tickerName:\"Algorand\"},c={mainnet:n.MAINNET,testnet:n.TESTNET,sapphire_mainnet:n.SAPPHIRE_MAINNET,sapphire_devnet:n.SAPPHIRE_DEVNET,cyan:n.CYAN,aqua:n.AQUA},l=new r({config:{chainConfig:a}}),f=new e({clientId:this.options.clientId,web3AuthNetwork:c[this.options.web3AuthNetwork||\"sapphire_mainnet\"],privateKeyProvider:l});return await f.init(),this.web3authSFA=f,this.logger.info(\"Web3Auth SFA client initialized\"),f}async getSecureKey(){let e=this.usingSFA?this.web3authSFA?.provider:this.web3auth?.provider;if(!e)throw new Error(\"Web3Auth not connected\");this.logger.debug(\"Fetching private key from Web3Auth...\");let n=await e.request({method:\"private_key\"});if(!n||typeof n!=\"string\")throw new Error(\"Failed to retrieve private key from Web3Auth\");let r=this.hexToBytes(n),o=new aPe(r);return Sm(r),this.logger.debug(\"Private key retrieved and secured\"),o}hexToBytes(e){let n=e.startsWith(\"0x\")?e.slice(2):e,r=new Uint8Array(n.length/2);for(let o=0;o<n.length;o+=2)r[o/2]=parseInt(n.slice(o,o+2),16);return r}isWeb3AuthConnected(){return this.usingSFA?!!(this.web3authSFA?.connected&&this.web3authSFA?.provider):!!(this.web3auth?.connected&&this.web3auth?.provider)}async ensureConnected(){if(this.isWeb3AuthConnected()){this.logger.debug(\"Web3Auth session still valid\");return}this.logger.info(\"Web3Auth session expired or not initialized, re-authenticating...\"),this.usingSFA?await this.reconnectSFA():await this.reconnectModal()}async reconnectSFA(){if(!this.options.getAuthCredentials)throw this.logger.error(\"Cannot re-authenticate: getAuthCredentials callback not configured\"),new Error(\"Web3Auth session expired. Configure getAuthCredentials option for automatic re-auth, or call disconnect() and connect() with fresh credentials.\");this.logger.info(\"Getting fresh credentials for SFA re-authentication...\");let e;try{e=await this.options.getAuthCredentials()}catch(a){throw this.logger.warn(\"Failed to get auth credentials, user may have logged out:\",a.message),this.onDisconnect(),new Error(\"Authentication provider session expired. Please log in again.\")}let n=this.web3authSFA||await this.initializeSFAClient();if(n.connected)try{await n.logout()}catch{}let r=e.verifier||this.options.verifier;if(!r)throw new Error(\"No verifier configured for SFA authentication\");if(!await n.connect({verifier:r,verifierId:e.verifierId,idToken:e.idToken}))throw new Error(\"Failed to re-authenticate with Web3Auth SFA\");this.usingSFA=!0,this.saveMetadata(),await this.verifyAddressMatch()}async reconnectModal(){this.logger.info(\"Showing Web3Auth modal for re-authentication...\");let e=this.web3auth||await this.initializeClient();if(e.connected)try{await e.logout()}catch{}if(!await e.connect())throw new Error(\"Re-authentication cancelled or failed\");this.usingSFA=!1,this.saveMetadata(),this.userInfo=await e.getUserInfo(),await this.verifyAddressMatch()}async verifyAddressMatch(){let e=await this.getSecureKey();try{let n=await e.useKey(async r=>{let o=await Uk(r),a=o.addr;return Sm(o.sk),a});if(n!==this._address)throw this.logger.warn(\"Re-authenticated as different user, disconnecting wallet\",{expected:this._address,actual:n}),this.onDisconnect(),new Error(`Re-authenticated as a different account. Expected ${this._address}, got ${n}. Please connect again with the correct account.`);this.logger.info(\"Address verified, session restored\")}finally{e.clear()}}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),f=o.sender.toString()===this._address;c&&f&&r.push(o)}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&m===this._address;p&&g&&r.push(f)}),r}},ge($N,\"defaultMetadata\",{name:\"Web3Auth\",icon:dPe}),$N),pPe=`data:image/svg+xml;base64,${btoa(`\\n<svg width=\"860\" height=\"860\" viewBox=\"0 0 860 860\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <rect width=\"860\" height=\"860\" rx=\"30\" fill=\"#151923\"/>\\n  <path d=\"M766 207L496.627 623.406C463.521 675.336 382.014 652.248 382.014 590.941V432.568L260.638 623.28C227.559 675.255 146 652.186 146 590.854V274.844H234.646V499.761L356.022 309.049C389.101 257.074 470.66 280.143 470.66 341.475V499.978L660.146 207L766 207Z\" fill=\"#4BB7D1\"/>\\n</svg>\\n`)}`,KN,hPe=(KN=class extends Vl{constructor({id:e,store:n,subscribe:r,getAlgodClient:o,metadata:a={}}){super({id:e,metadata:a,getAlgodClient:o,store:n,subscribe:r});ge(this,\"client\",null);ge(this,\"store\");ge(this,\"connect\",async()=>{this.logger.info(\"Connecting...\");let n=await(this.client||await this.initializeClient()).account(),r={accounts:[n],activeAccount:n};return zl(this.store,{walletId:this.id,wallet:r}),this.logger.info(\"\\\\u2705 Connected.\",r),[n]});ge(this,\"disconnect\",async()=>{this.logger.info(\"Disconnecting...\"),this.onDisconnect(),this.logger.info(\"Disconnected.\")});ge(this,\"resumeSession\",async()=>{try{if(!this.store.state.wallets[this.id]){this.logger.info(\"No session to resume\");return}if(this.logger.info(\"Resuming session...\"),!await(await this.initializeClient()).isConnected())throw this.logger.error(\"W3 Wallet is not connected.\"),new Error(\"W3 Wallet is not connected.\");this.logger.info(\"Session resumed\")}catch(e){throw this.logger.error(\"Error resuming session:\",e.message),this.onDisconnect(),e}});ge(this,\"signTransactions\",async(e,n)=>{try{this.logger.debug(\"Signing transactions...\",{txnGroup:e,indexesToSign:n});let r=[];if(Bu(e)){let l=Ki(e);r=this.processTxns(l,n)}else{let l=Ki(e);r=this.processEncodedTxns(l,n)}let o=this.client||await this.initializeClient();this.logger.debug(\"Sending processed transactions to wallet...\",r);let a=await o.signTxns(r);this.logger.debug(\"Received signed transactions from wallet\",a);let c=a.map(l=>l===null?null:l8(l));return this.logger.debug(\"Transactions signed successfully\",c),c}catch(r){throw this.logger.error(\"Error signing transactions:\",r.message),r}});this.store=n}async initializeClient(){if(this.logger.info(\"Initializing client...\"),typeof window>\"u\"||window.w3walletAlgorand===void 0)throw this.logger.error(\"W3 Wallet is not available.\"),new Error(\"W3 Wallet is not available.\");let e=window.w3walletAlgorand;return this.client=e,this.logger.info(\"Client initialized\"),e}processTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=!n||n.includes(a),l=o.sender.toString(),f=this.addresses.includes(l),p=Ul(o.toByte());c&&f?r.push({txn:p}):r.push({txn:p,signers:[]})}),r}processEncodedTxns(e,n){let r=[];return e.forEach((o,a)=>{let c=xr.msgpackRawDecode(o),l=Pu(c),f=l?xr.decodeSignedTransaction(o).txn:xr.decodeUnsignedTransaction(o),p=!n||n.includes(a),m=f.sender.toString(),g=!l&&this.addresses.includes(m),y=Ul(f.toByte());p&&g?r.push({txn:y}):r.push({txn:y,signers:[]})}),r}},ge(KN,\"defaultMetadata\",{name:\"W3 Wallet\",icon:pPe}),KN);function mPe(){return{biatec:zRe,custom:HRe,defly:$Re,\"defly-web\":GRe,exodus:WRe,kibisis:ZRe,kmd:JRe,lute:nPe,magic:oPe,mnemonic:cPe,pera:uPe,walletconnect:Kse,web3auth:fPe,\"w3-wallet\":hPe}}function c8(t,e){let n=new Set(t.map(o=>o.address)),r=new Set(e.map(o=>o.address));if(n.size!==r.size)return!1;for(let o of n)if(!r.has(o))return!1;return!0}function l8(t){return gPe(atob(t))}function Ul(t){return btoa(yPe(t))}function gPe(t){let e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function yPe(t){let e=\"\";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}function Pu(t){if(!t||typeof t!=\"object\"||!(\"sig\"in t&&\"txn\"in t)||!(t.sig instanceof Uint8Array))return!1;let e=t.txn;return!e||typeof e!=\"object\"?!1:\"type\"in e&&\"snd\"in e}function use(t){return t&&typeof t==\"object\"&&\"sender\"in t&&(t.sender instanceof xr.Address||typeof t.sender==\"string\")}function Bu(t){return!Array.isArray(t)||t.length===0?!1:!!(use(t[0])||Array.isArray(t[0])&&t[0].length>0&&use(t[0][0]))}function Ki(t){return Array.isArray(t[0])?t.flat():t}function vPe(){let t=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return t+e}function xPe(t,e){return{id:vPe(),jsonrpc:\"2.0\",method:t,params:e}}var qse=class{constructor({wallets:t=[],networks:e,defaultNetwork:n=\"testnet\",options:r={}}={}){ge(this,\"_clients\",new Map);ge(this,\"baseNetworkConfig\");ge(this,\"store\");ge(this,\"subscribe\");ge(this,\"options\");ge(this,\"logger\");ge(this,\"getAlgodClient\",()=>this.algodClient);ge(this,\"setActiveNetwork\",async t=>{if(this.activeNetwork===t)return;if(!this.networkConfig[t])throw new Error(`Network \"${t}\" not found in network configuration`);let e=this.createAlgodClient(this.networkConfig[t].algod);PRe(this.store,{networkId:t,algodClient:e}),this.logger.info(`\\\\u2705 Active network set to ${t}`)});this.logger=this.initializeLogger(r),this.logger.debug(\"Initializing WalletManager with config:\",{wallets:t,networks:e,defaultNetwork:n,options:r});let o=this.loadPersistedState();this.baseNetworkConfig=e||CRe();let a=this.initNetworkConfig(this.baseNetworkConfig,o);this.options={resetNetwork:r.resetNetwork||!1};let c=this.options.resetNetwork?n:o?.activeNetwork||n;if(!a[c])throw new Error(`Network \"${c}\" not found in network configuration`);let l=this.createAlgodClient(a[c].algod),f={...IRe,...o,networkConfig:a,activeNetwork:c,algodClient:l};this.store=new Yw(f,{onUpdate:()=>this.savePersistedState()}),this.savePersistedState(),this.subscribe=p=>this.store.subscribe(()=>{p(this.store.state)}),this.initializeWallets(t)}initializeLogger(t){let e=this.determineLogLevel(t);return zse.setLevel(e),Hg.createScopedLogger(\"WalletManager\")}determineLogLevel(t){return t?.debug?0:t?.logLevel!==void 0?t.logLevel:2}get algodClient(){return this.store.state.algodClient}set algodClient(t){this.store.setState(e=>({...e,algodClient:t}))}loadPersistedState(){try{let t=Js.getItem(r8);if(t===null)return null;let e=JSON.parse(t);if(!BRe(e))throw this.logger.warn(\"Parsed state:\",e),new Error(\"Persisted state is invalid\");return e}catch(t){return this.logger.error(`Could not load state from local storage: ${t.message}`),null}}savePersistedState(){try{let{wallets:t,activeWallet:e,activeNetwork:n,networkConfig:r}=this.store.state,o={wallets:t,activeWallet:e,activeNetwork:n,customNetworkConfigs:{}};for(let[c,l]of Object.entries(r)){let f=this.baseNetworkConfig[c];if(!f)continue;let p={},m=!1;JSON.stringify(l.algod)!==JSON.stringify(f.algod)&&(p.algod=l.algod,m=!0),m&&(o.customNetworkConfigs={...o.customNetworkConfigs||{},[c]:p})}let a=JSON.stringify(o);Js.setItem(r8,a)}catch(t){this.logger.error(\"Could not save state to local storage:\",t)}}get status(){return this.store.state.managerStatus}get isReady(){return this.store.state.managerStatus===\"ready\"}deriveWalletKey(t,e){if(t===\"walletconnect\"&&e){let n=e;if(n.skin){let r=$se(n.skin);if(r)return`walletconnect:${r.id}`}}return t}initializeWallets(t){this.logger.info(\"Initializing wallets...\");for(let r of t){let o,a,c;if(typeof r==\"string\")o=r;else{let{id:g,options:y,metadata:A}=r;o=g,a=y,c=A}let l=this.deriveWalletKey(o,a);if(this._clients.has(l)){this.logger.warn(`Duplicate wallet key: ${l}. Skipping...`);continue}let p=mPe()[o];if(!p){this.logger.error(`Wallet not found: ${o}`);continue}let m=new p({id:o,metadata:c,options:a,getAlgodClient:this.getAlgodClient,store:this.store,subscribe:this.subscribe});this._clients.set(l,m),this.logger.info(`\\\\u2705 Initialized ${l}`)}let e=this.store.state,n=Object.keys(e.wallets);for(let r of n)this._clients.has(r)||(this.logger.warn(`Connected wallet not found: ${r}`),Vse(this.store,{walletId:r}));e.activeWallet&&!this._clients.has(e.activeWallet)&&(this.logger.warn(`Active wallet not found: ${e.activeWallet}`),Qk(this.store,{walletId:null}))}get wallets(){return[...this._clients.values()]}getWallet(t){return this._clients.get(t)}async resumeSessions(){try{let t=this.wallets.map(e=>e?.resumeSession());await Promise.all(t)}finally{this.store.setState(t=>({...t,managerStatus:\"ready\"}))}}async disconnect(){let t=this.wallets.filter(e=>e.isConnected).map(e=>e?.disconnect());await Promise.all(t)}initNetworkConfig(t,e){this.logger.info(\"Initializing network configuration...\");let n=e?.customNetworkConfigs||{},r={};for(let[o,a]of Object.entries(t)){let c=n[o];r[o]={...a,...c,algod:{...a.algod,...c?.algod||{}}}}for(let[o,a]of Object.entries(r))if(!lse(a))throw new Error(`Invalid network configuration for \"${o}\"`);return this.logger.debug(\"Network configuration:\",r),r}createAlgodClient(t){this.logger.info(\"Creating new Algodv2 client...\");let{token:e=\"\",baseServer:n,port:r=\"\",headers:o={}}=t;return new xr.Algodv2(e,n,r,o)}updateAlgodConfig(t,e){if(!this.networkConfig[t])throw new Error(`Network \"${t}\" not found in network configuration`);let n={...this.networkConfig[t],algod:{...this.networkConfig[t].algod,...e}};if(!lse(n))throw new Error(\"Invalid network configuration\");this.store.setState(r=>({...r,networkConfig:{...r.networkConfig,[t]:n}})),this.activeNetwork===t&&(this.algodClient=this.createAlgodClient(n.algod)),this.savePersistedState(),this.logger.info(`\\\\u2705 Updated algod configuration for ${t}`)}resetNetworkConfig(t){if(!this.baseNetworkConfig[t])throw new Error(`Network \"${t}\" not found in network configuration`);this.store.setState(n=>({...n,networkConfig:{...n.networkConfig,[t]:{...this.baseNetworkConfig[t]}}})),this.activeNetwork===t&&(this.algodClient=this.createAlgodClient(this.baseNetworkConfig[t].algod));let e=this.loadPersistedState();e?.customNetworkConfigs&&(delete e.customNetworkConfigs[t],Js.setItem(r8,JSON.stringify(e))),this.logger.info(`\\\\u2705 Reset network configuration for ${t}`)}get activeNetwork(){return this.store.state.activeNetwork}get networkConfig(){return this.store.state.networkConfig}get activeNetworkConfig(){let{networkConfig:t,activeNetwork:e}=this.store.state;return t[e]}get activeWallet(){let t=this.store.state,e=this.wallets.find(n=>n.walletKey===t.activeWallet);return e||null}get activeWalletAccounts(){return this.activeWallet?this.activeWallet.accounts:null}get activeWalletAddresses(){return this.activeWallet?this.activeWallet.accounts.map(t=>t.address):null}get activeAccount(){return this.activeWallet?this.activeWallet.activeAccount:null}get activeAddress(){return this.activeAccount?this.activeAccount.address:null}get signTransactions(){if(!this.activeWallet)throw this.logger.error(\"No active wallet found!\"),new Error(\"No active wallet found!\");return this.activeWallet.signTransactions}get transactionSigner(){if(!this.activeWallet)throw this.logger.error(\"No active wallet found!\"),new Error(\"No active wallet found!\");return this.activeWallet.transactionSigner}};u();u();u();u();u();function bPe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\"Uint8Array\"}function SU(t,e,n=\"\"){let r=bPe(t),o=t?.length,a=e!==void 0;if(!r||a&&o!==e){let c=n&&`\"${n}\" `,l=a?` of length ${e}`:\"\",f=r?`length=${o}`:`type=${typeof t}`;throw new Error(c+\"expected Uint8Array\"+l+\", got \"+f)}return t}function AU(t,e=!0){if(t.destroyed)throw new Error(\"Hash instance has been destroyed\");if(e&&t.finished)throw new Error(\"Hash#digest() has already been called\")}function Wse(t,e){SU(t,void 0,\"digestInto() output\");let n=e.outputLen;if(t.length<n)throw new Error(\\'\"digestInto() output\" expected to be of length >=\\'+n)}function u8(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function eC(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function kU(t,e={}){let n=(o,a)=>t(a).update(o).digest(),r=t(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=o=>t(o),Object.assign(n,e),Object.freeze(n)}var CU=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});var tC=class{constructor(e,n,r,o){ge(this,\"blockLen\");ge(this,\"outputLen\");ge(this,\"padOffset\");ge(this,\"isLE\");ge(this,\"buffer\");ge(this,\"view\");ge(this,\"finished\",!1);ge(this,\"length\",0);ge(this,\"pos\",0);ge(this,\"destroyed\",!1);this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(e),this.view=eC(this.buffer)}update(e){AU(this),SU(e);let{view:n,buffer:r,blockLen:o}=this,a=e.length;for(let c=0;c<a;){let l=Math.min(o-this.pos,a-c);if(l===o){let f=eC(e);for(;o<=a-c;c+=o)this.process(f,c);continue}r.set(e.subarray(c,c+l),this.pos),this.pos+=l,c+=l,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){AU(this),Wse(e,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:a}=this,{pos:c}=this;n[c++]=128,u8(this.buffer.subarray(c)),this.padOffset>o-c&&(this.process(r,0),c=0);for(let g=c;g<o;g++)n[g]=0;r.setBigUint64(o-8,BigInt(this.length*8),a),this.process(r,0);let l=eC(e),f=this.outputLen;if(f%4)throw new Error(\"_sha2: outputLen must be aligned to 32bit\");let p=f/4,m=this.get();if(p>m.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let g=0;g<p;g++)l.setUint32(4*g,m[g],a)}digest(){let{buffer:e,outputLen:n}=this;this.digestInto(e);let r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:a,destroyed:c,pos:l}=this;return e.destroyed=c,e.finished=a,e.length=o,e.pos=l,o%n&&e.buffer.set(r),e}clone(){return this._cloneInto()}};var os=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);u();var nC=BigInt(4294967295),Yse=BigInt(32);function wPe(t,e=!1){return e?{h:Number(t&nC),l:Number(t>>Yse&nC)}:{h:Number(t>>Yse&nC)|0,l:Number(t&nC)|0}}function Zse(t,e=!1){let n=t.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let a=0;a<n;a++){let{h:c,l}=wPe(t[a],e);[r[a],o[a]]=[c,l]}return[r,o]}var TU=(t,e,n)=>t>>>n,_U=(t,e,n)=>t<<32-n|e>>>n,jg=(t,e,n)=>t>>>n|e<<32-n,$g=(t,e,n)=>t<<32-n|e>>>n,d8=(t,e,n)=>t<<64-n|e>>>n-32,f8=(t,e,n)=>t>>>n-32|e<<64-n;function Ud(t,e,n,r){let o=(e>>>0)+(r>>>0);return{h:t+n+(o/2**32|0)|0,l:o|0}}var Xse=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),Jse=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,Qse=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),ece=(t,e,n,r,o)=>e+n+r+o+(t/2**32|0)|0,tce=(t,e,n,r,o)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(o>>>0),nce=(t,e,n,r,o,a)=>e+n+r+o+a+(t/2**32|0)|0;var rce=Zse([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(t=>BigInt(t))),SPe=rce[0],APe=rce[1],Cm=new Uint32Array(80),Tm=new Uint32Array(80),rC=class extends tC{constructor(e){super(128,e,16,!1)}get(){let{Ah:e,Al:n,Bh:r,Bl:o,Ch:a,Cl:c,Dh:l,Dl:f,Eh:p,El:m,Fh:g,Fl:y,Gh:A,Gl:T,Hh:R,Hl:K}=this;return[e,n,r,o,a,c,l,f,p,m,g,y,A,T,R,K]}set(e,n,r,o,a,c,l,f,p,m,g,y,A,T,R,K){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=a|0,this.Cl=c|0,this.Dh=l|0,this.Dl=f|0,this.Eh=p|0,this.El=m|0,this.Fh=g|0,this.Fl=y|0,this.Gh=A|0,this.Gl=T|0,this.Hh=R|0,this.Hl=K|0}process(e,n){for(let D=0;D<16;D++,n+=4)Cm[D]=e.getUint32(n),Tm[D]=e.getUint32(n+=4);for(let D=16;D<80;D++){let G=Cm[D-15]|0,ee=Tm[D-15]|0,J=jg(G,ee,1)^jg(G,ee,8)^TU(G,ee,7),le=$g(G,ee,1)^$g(G,ee,8)^_U(G,ee,7),se=Cm[D-2]|0,te=Tm[D-2]|0,S=jg(se,te,19)^d8(se,te,61)^TU(se,te,6),_=$g(se,te,19)^f8(se,te,61)^_U(se,te,6),P=Qse(le,_,Tm[D-7],Tm[D-16]),z=ece(P,J,S,Cm[D-7],Cm[D-16]);Cm[D]=z|0,Tm[D]=P|0}let{Ah:r,Al:o,Bh:a,Bl:c,Ch:l,Cl:f,Dh:p,Dl:m,Eh:g,El:y,Fh:A,Fl:T,Gh:R,Gl:K,Hh:O,Hl:V}=this;for(let D=0;D<80;D++){let G=jg(g,y,14)^jg(g,y,18)^d8(g,y,41),ee=$g(g,y,14)^$g(g,y,18)^f8(g,y,41),J=g&A^~g&R,le=y&T^~y&K,se=tce(V,ee,le,APe[D],Tm[D]),te=nce(se,O,G,J,SPe[D],Cm[D]),S=se|0,_=jg(r,o,28)^d8(r,o,34)^d8(r,o,39),P=$g(r,o,28)^f8(r,o,34)^f8(r,o,39),z=r&a^r&l^a&l,Y=o&c^o&f^c&f;O=R|0,V=K|0,R=A|0,K=T|0,A=g|0,T=y|0,{h:g,l:y}=Ud(p|0,m|0,te|0,S|0),p=l|0,m=f|0,l=a|0,f=c|0,a=r|0,c=o|0;let L=Xse(S,P,Y);r=Jse(L,te,_,z),o=L|0}({h:r,l:o}=Ud(this.Ah|0,this.Al|0,r|0,o|0)),{h:a,l:c}=Ud(this.Bh|0,this.Bl|0,a|0,c|0),{h:l,l:f}=Ud(this.Ch|0,this.Cl|0,l|0,f|0),{h:p,l:m}=Ud(this.Dh|0,this.Dl|0,p|0,m|0),{h:g,l:y}=Ud(this.Eh|0,this.El|0,g|0,y|0),{h:A,l:T}=Ud(this.Fh|0,this.Fl|0,A|0,T|0),{h:R,l:K}=Ud(this.Gh|0,this.Gl|0,R|0,K|0),{h:O,l:V}=Ud(this.Hh|0,this.Hl|0,O|0,V|0),this.set(r,o,a,c,l,f,p,m,g,y,A,T,R,K,O,V)}roundClean(){u8(Cm,Tm)}destroy(){u8(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},MU=class extends rC{constructor(){super(64);ge(this,\"Ah\",os[0]|0);ge(this,\"Al\",os[1]|0);ge(this,\"Bh\",os[2]|0);ge(this,\"Bl\",os[3]|0);ge(this,\"Ch\",os[4]|0);ge(this,\"Cl\",os[5]|0);ge(this,\"Dh\",os[6]|0);ge(this,\"Dl\",os[7]|0);ge(this,\"Eh\",os[8]|0);ge(this,\"El\",os[9]|0);ge(this,\"Fh\",os[10]|0);ge(this,\"Fl\",os[11]|0);ge(this,\"Gh\",os[12]|0);ge(this,\"Gl\",os[13]|0);ge(this,\"Hh\",os[14]|0);ge(this,\"Hl\",os[15]|0)}};var Cs=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);var IU=class extends rC{constructor(){super(32);ge(this,\"Ah\",Cs[0]|0);ge(this,\"Al\",Cs[1]|0);ge(this,\"Bh\",Cs[2]|0);ge(this,\"Bl\",Cs[3]|0);ge(this,\"Ch\",Cs[4]|0);ge(this,\"Cl\",Cs[5]|0);ge(this,\"Dh\",Cs[6]|0);ge(this,\"Dl\",Cs[7]|0);ge(this,\"Eh\",Cs[8]|0);ge(this,\"El\",Cs[9]|0);ge(this,\"Fh\",Cs[10]|0);ge(this,\"Fl\",Cs[11]|0);ge(this,\"Gh\",Cs[12]|0);ge(this,\"Gl\",Cs[13]|0);ge(this,\"Hh\",Cs[14]|0);ge(this,\"Hl\",Cs[15]|0)}};var oce=kU(()=>new MU,CU(3));var Kg=kU(()=>new IU,CU(6));u();var dce={p:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,n:0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3edn,h:8n,a:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecn,d:0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3n,Gx:0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51an,Gy:0x6666666666666666666666666666666666666666666666666666666666666658n},{p:Ts,n:oC,Gx:ice,Gy:ace,a:RU,d:PU,h:kPe}=dce,qg=32,LU=64,CPe=(...t)=>{\"captureStackTrace\"in Error&&typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(...t)},Va=(t=\"\")=>{let e=new Error(t);throw CPe(e,Va),e},TPe=t=>typeof t==\"bigint\",_Pe=t=>typeof t==\"string\",MPe=t=>t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\"Uint8Array\",_m=(t,e,n=\"\")=>{let r=MPe(t),o=t?.length,a=e!==void 0;if(!r||a&&o!==e){let c=n&&`\"${n}\" `,l=a?` of length ${e}`:\"\",f=r?`length=${o}`:`type=${typeof t}`;Va(c+\"expected Uint8Array\"+l+\", got \"+f)}return t},sC=t=>new Uint8Array(t),fce=t=>Uint8Array.from(t),pce=(t,e)=>t.toString(16).padStart(e,\"0\"),hce=t=>Array.from(_m(t)).map(e=>pce(e,2)).join(\"\"),kp={_0:48,_9:57,A:65,F:70,a:97,f:102},sce=t=>{if(t>=kp._0&&t<=kp._9)return t-kp._0;if(t>=kp.A&&t<=kp.F)return t-(kp.A-10);if(t>=kp.a&&t<=kp.f)return t-(kp.a-10)},mce=t=>{let e=\"hex invalid\";if(!_Pe(t))return Va(e);let n=t.length,r=n/2;if(n%2)return Va(e);let o=sC(r);for(let a=0,c=0;a<r;a++,c+=2){let l=sce(t.charCodeAt(c)),f=sce(t.charCodeAt(c+1));if(l===void 0||f===void 0)return Va(e);o[a]=l*16+f}return o},gce=()=>globalThis?.crypto,IPe=()=>gce()?.subtle??Va(\"crypto.subtle must be defined, consider polyfill\"),p8=(...t)=>{let e=sC(t.reduce((r,o)=>r+_m(o).length,0)),n=0;return t.forEach(r=>{e.set(r,n),n+=r.length}),e},RPe=(t=qg)=>gce().getRandomValues(sC(t)),iC=BigInt,Gg=(t,e,n,r=\"bad number: out of range\")=>TPe(t)&&e<=t&&t<n?t:Va(r),wr=(t,e=Ts)=>{let n=t%e;return n>=0n?n:e+n},yce=t=>wr(t,oC),PPe=(t,e)=>{(t===0n||e<=0n)&&Va(\"no inverse n=\"+t+\" mod=\"+e);let n=wr(t,e),r=e,o=0n,a=1n,c=1n,l=0n;for(;n!==0n;){let f=r/n,p=r%n,m=o-c*f,g=a-l*f;r=n,n=p,o=c,a=l,c=m,l=g}return r===1n?wr(o,e):Va(\"no inverse\")},BPe=t=>{let e=cC[t];return typeof e!=\"function\"&&Va(\"hashes.\"+t+\" not set\"),e};var BU=t=>t instanceof Wg?t:Va(\"Point expected\"),DU=2n**256n,Vd=class Vd{constructor(e,n,r,o){ge(this,\"X\");ge(this,\"Y\");ge(this,\"Z\");ge(this,\"T\");let a=DU;this.X=Gg(e,0n,a),this.Y=Gg(n,0n,a),this.Z=Gg(r,1n,a),this.T=Gg(o,0n,a),Object.freeze(this)}static CURVE(){return dce}static fromAffine(e){return new Vd(e.x,e.y,1n,wr(e.x*e.y))}static fromBytes(e,n=!1){let r=PU,o=fce(_m(e,qg)),a=e[31];o[31]=a&-129;let c=xce(o);Gg(c,0n,n?DU:Ts);let f=wr(c*c),p=wr(f-1n),m=wr(r*f+1n),{isValid:g,value:y}=FPe(p,m);g||Va(\"bad point: y not sqrt\");let A=(y&1n)===1n,T=(a&128)!==0;return!n&&y===0n&&T&&Va(\"bad point: x==0, isLastByteOdd\"),T!==A&&(y=wr(-y)),new Vd(y,c,1n,wr(y*c))}static fromHex(e,n){return Vd.fromBytes(mce(e),n)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}assertValidity(){let e=RU,n=PU,r=this;if(r.is0())return Va(\"bad point: ZERO\");let{X:o,Y:a,Z:c,T:l}=r,f=wr(o*o),p=wr(a*a),m=wr(c*c),g=wr(m*m),y=wr(f*e),A=wr(m*wr(y+p)),T=wr(g+wr(n*wr(f*p)));if(A!==T)return Va(\"bad point: equation left != right (1)\");let R=wr(o*a),K=wr(c*l);return R!==K?Va(\"bad point: equation left != right (2)\"):this}equals(e){let{X:n,Y:r,Z:o}=this,{X:a,Y:c,Z:l}=BU(e),f=wr(n*l),p=wr(a*o),m=wr(r*l),g=wr(c*o);return f===p&&m===g}is0(){return this.equals(Lv)}negate(){return new Vd(wr(-this.X),this.Y,this.Z,wr(-this.T))}double(){let{X:e,Y:n,Z:r}=this,o=RU,a=wr(e*e),c=wr(n*n),l=wr(2n*wr(r*r)),f=wr(o*a),p=e+n,m=wr(wr(p*p)-a-c),g=f+c,y=g-l,A=f-c,T=wr(m*y),R=wr(g*A),K=wr(m*A),O=wr(y*g);return new Vd(T,R,O,K)}add(e){let{X:n,Y:r,Z:o,T:a}=this,{X:c,Y:l,Z:f,T:p}=BU(e),m=RU,g=PU,y=wr(n*c),A=wr(r*l),T=wr(a*g*p),R=wr(o*f),K=wr((n+r)*(c+l)-y-A),O=wr(R-T),V=wr(R+T),D=wr(A-m*y),G=wr(K*O),ee=wr(V*D),J=wr(K*D),le=wr(O*V);return new Vd(G,ee,le,J)}subtract(e){return this.add(BU(e).negate())}multiply(e,n=!0){if(!n&&(e===0n||this.is0()))return Lv;if(Gg(e,1n,oC),e===1n)return this;if(this.equals(Yg))return HPe(e).p;let r=Lv,o=Yg;for(let a=this;e>0n;a=a.double(),e>>=1n)e&1n?r=r.add(a):n&&(o=o.add(a));return r}multiplyUnsafe(e){return this.multiply(e,!1)}toAffine(){let{X:e,Y:n,Z:r}=this;if(this.equals(Lv))return{x:0n,y:1n};let o=PPe(r,Ts);wr(r*o)!==1n&&Va(\"invalid inverse\");let a=wr(e*o),c=wr(n*o);return{x:a,y:c}}toBytes(){let{x:e,y:n}=this.assertValidity().toAffine(),r=vce(n);return r[31]|=e&1n?128:0,r}toHex(){return hce(this.toBytes())}clearCofactor(){return this.multiply(iC(kPe),!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){let e=this.multiply(oC/2n,!1).double();return oC%2n&&(e=e.add(this)),e.is0()}};ge(Vd,\"BASE\"),ge(Vd,\"ZERO\");var Wg=Vd,Yg=new Wg(ice,ace,1n,wr(ice*ace)),Lv=new Wg(0n,1n,1n,0n);Wg.BASE=Yg;Wg.ZERO=Lv;var vce=t=>mce(pce(Gg(t,0n,DU),LU)).reverse(),xce=t=>iC(\"0x\"+hce(fce(_m(t)).reverse())),zd=(t,e)=>{let n=t;for(;e-- >0n;)n*=n,n%=Ts;return n},DPe=t=>{let n=t*t%Ts*t%Ts,r=zd(n,2n)*n%Ts,o=zd(r,1n)*t%Ts,a=zd(o,5n)*o%Ts,c=zd(a,10n)*a%Ts,l=zd(c,20n)*c%Ts,f=zd(l,40n)*l%Ts,p=zd(f,80n)*f%Ts,m=zd(p,80n)*f%Ts,g=zd(m,10n)*a%Ts;return{pow_p_5_8:zd(g,2n)*t%Ts,b2:n}},cce=0x2b8324804fc1df0b2b4d00993dfbd7a72f431806ad2fe478c4ee1b274a0ea0b0n,FPe=(t,e)=>{let n=wr(e*e*e),r=wr(n*n*e),o=DPe(t*r).pow_p_5_8,a=wr(t*n*o),c=wr(e*a*a),l=a,f=wr(a*cce),p=c===t,m=c===wr(-t),g=c===wr(-t*cce);return p&&(a=l),(m||g)&&(a=f),(wr(a)&1n)===1n&&(a=wr(-a)),{isValid:p||m,value:a}},FU=t=>yce(xce(t)),NU=(...t)=>cC.sha512Async(p8(...t)),OPe=(...t)=>BPe(\"sha512\")(p8(...t)),bce=t=>{let e=t.slice(0,qg);e[0]&=248,e[31]&=127,e[31]|=64;let n=t.slice(qg,LU),r=FU(e),o=Yg.multiply(r),a=o.toBytes();return{head:e,prefix:n,scalar:r,point:o,pointBytes:a}},wce=t=>NU(_m(t,qg)).then(bce),Ece=t=>bce(OPe(_m(t,qg)));var Sce=t=>Ece(t).pointBytes,LPe=t=>NU(t.hashable).then(t.finish);var NPe=(t,e,n)=>{let{pointBytes:r,scalar:o}=t,a=FU(e),c=Yg.multiply(a).toBytes();return{hashable:p8(c,r,n),finish:p=>{let m=yce(a+FU(p)*o);return _m(p8(c,vce(m)),LU)}}},Ace=async(t,e)=>{let n=_m(t),r=await wce(e),o=await NU(r.prefix,n);return LPe(NPe(r,o,n))};var cC={sha512Async:async t=>{let e=IPe(),n=p8(t);return sC(await e.digest(\"SHA-512\",n.buffer))},sha512:void 0},UPe=(t=RPe(qg))=>t;var kce={getExtendedPublicKeyAsync:wce,getExtendedPublicKey:Ece,randomSecretKey:UPe},aC=8,zPe=256,Cce=Math.ceil(zPe/aC)+1,OU=2**(aC-1),VPe=()=>{let t=[],e=Yg,n=e;for(let r=0;r<Cce;r++){n=e,t.push(n);for(let o=1;o<OU;o++)n=n.add(e),t.push(n);e=n.double()}return t},lce,uce=(t,e)=>{let n=e.negate();return t?n:e},HPe=t=>{let e=lce||(lce=VPe()),n=Lv,r=Yg,o=2**aC,a=o,c=iC(o-1),l=iC(aC);for(let f=0;f<Cce;f++){let p=Number(t&c);t>>=l,p>OU&&(p-=a,t+=1n);let m=f*OU,g=m,y=m+Math.abs(p)-1,A=f%2!==0,T=p<0;p===0?r=r.add(uce(A,e[g])):n=n.add(uce(T,e[y]))}return t!==0n&&Va(\"invalid wnaf\"),{p:n,f:r}};cC.sha512=t=>oce(t);var Tce=t=>{let e=kce.randomSecretKey(t);return{ed25519Pubkey:Sce(e),ed25519SecretKey:e,rawEd25519Signer:async o=>Ace(o,e)}};u();u();u();function Mm(t,e){return t.length!==e.length?!1:Array.from(t).every((n,r)=>n===e[r])}function Ha(...t){let e=t.reduce((o,a)=>o+a.length,0),n=new Uint8Array(e),r=0;for(let o=0;o<t.length;o++)n.set(t[o],r),r+=t[o].length;return n}u();var UU=new Uint8Array(64);var lC=2048;var zU=2048;var VU=br(ev(),1);var h8=\"address seems to be malformed\",Mce=\"wrong checksum for address\";function HU(t){return Uint8Array.from(Kg(t).slice(28,32))}function $Pe(t){return globalThis.Buffer.from(t).toString(\"hex\")}function Ice(t){if(!(typeof t==\"bigint\"||Number.isInteger(t))||t<0||t>BigInt(\"0xffffffffffffffff\"))throw new Error(\"Input is not a 64-bit unsigned integer\");let e=new Uint8Array(8);return new DataView(e.buffer).setBigUint64(0,BigInt(t)),e}var uC=Symbol.for(\"algokit_common:Address\"),_ce,Im,Yr=(_ce=uC,Im=class{constructor(e){ge(this,\"publicKey\");ge(this,_ce);if(this[uC]=!0,e.length!==32)throw new Error(`${h8}: 0x${$Pe(e)}, length ${e.length}`);this.publicKey=e}equals(e){return e instanceof Im&&Mm(this.publicKey,e.publicKey)}checksum(){return HU(this.publicKey)}toString(){return VU.default.encode(Ha(this.publicKey,this.checksum())).slice(0,58)}static fromString(e){if(typeof e!=\"string\")throw new Error(`${h8}: expected string, got ${typeof e}, ${e}`);if(e.length!==58)throw new Error(`${h8}: expected length 58, got ${e.length}: ${e}`);let n=VU.default.decode.asBytes(e);if(n.length!==36)throw new Error(`${h8}: expected byte length 36, got ${n.length}`);let r=new Uint8Array(n.slice(0,32)),o=new Uint8Array(n.slice(32,36)),a=HU(r);if(!Mm(a,o))throw new Error(`${Mce}: ${e} (${o}, ${a})`);return new Im(r)}static zeroAddress(){return new Im(new Uint8Array(32))}},Im);Object.defineProperty(Yr,Symbol.hasInstance,{value:function(t){return t instanceof Object&&Object.getPrototypeOf(t)===Yr.prototype?!0:!!(t&&typeof t==\"object\"&&uC in t&&t[uC])}});function cr(t){return typeof t==\"string\"?Yr.fromString(t):\"addr\"in t?t.addr:t}function yi(t){if(t!==void 0)return cr(t)}var KPe=new TextEncoder().encode(\"appID\");function Hl(t){return new Yr(Kg(Ha(KPe,Ice(t))))}u();OF();var Cp=class{constructor({version:t,sources:e,names:n,mappings:r}){ge(this,\"version\");ge(this,\"sources\");ge(this,\"names\");ge(this,\"mappings\");ge(this,\"pcToLocation\");ge(this,\"sourceAndLineToPc\");if(this.version=t,this.sources=e,this.names=n,this.mappings=r,this.version!==3)throw new Error(`Only version 3 is supported, got ${this.version}`);if(this.mappings===void 0)throw new Error(\"mapping undefined, cannot build source map without `mapping`\");let o=this.mappings.split(\";\").map(f9);this.pcToLocation=new Map,this.sourceAndLineToPc=new Map;let a={line:0,column:0,sourceIndex:0,nameIndex:0};for(let[c,l]of o.entries()){let f=l;if(f.length<4)continue;let p=f.length>4?f[4]:void 0,[,m,g,y]=f;a.sourceIndex+=m,a.line+=g,a.column+=y,typeof p<\"u\"&&(a.nameIndex+=p);let A=`${a.sourceIndex}:${a.line}`,T=this.sourceAndLineToPc.get(A);T===void 0&&(T=[],this.sourceAndLineToPc.set(A,T));let R={pc:c,column:a.column},K={line:a.line,column:a.column,sourceIndex:a.sourceIndex};typeof p<\"u\"&&(R.nameIndex=a.nameIndex,K.nameIndex=a.nameIndex),T.push(R),this.pcToLocation.set(c,K)}}getPcs(){return Array.from(this.pcToLocation.keys())}getLocationForPc(t){return this.pcToLocation.get(t)}getPcsOnSourceLine(t,e){let n=this.sourceAndLineToPc.get(`${t}:${e}`);return n===void 0?[]:n}};u();var jU=\"TMPL_UPDATABLE\",$U=\"TMPL_DELETABLE\",dC=\"ALGOKIT_DEPLOYER\";var fC=new Uint8Array([21,31,124,117]),m8=(function(t){return t[t.Fail=0]=\"Fail\",t[t.UpdateApp=1]=\"UpdateApp\",t[t.ReplaceApp=2]=\"ReplaceApp\",t[t.AppendApp=3]=\"AppendApp\",t})({}),KU=(function(t){return t[t.Fail=0]=\"Fail\",t[t.ReplaceApp=1]=\"ReplaceApp\",t[t.AppendApp=2]=\"AppendApp\",t})({});var Qs=class Rm{constructor(e){ge(this,\"_algod\");ge(this,\"_compilationResults\",{});this._algod=e}async compileTeal(e){if(this._compilationResults[e])return this._compilationResults[e];let n=await this._algod.tealCompile(e,{sourcemap:!0}),r={teal:e,compiled:n.result,compiledHash:n.hash,compiledBase64ToBytes:new Uint8Array(globalThis.Buffer.from(n.result,\"base64\")),sourceMap:new Cp(n.sourcemap)};return this._compilationResults[e]=r,r}async compileTealTemplate(e,n,r){let o=Rm.stripTealComments(e);return o=Rm.replaceTealTemplateParams(o,n),r&&(o=Rm.replaceTealTemplateDeployTimeControlParams(o,r)),await this.compileTeal(o)}getCompilationResult(e){return this._compilationResults[e]}async getById(e){let n=await this._algod.applicationById(e),r=(n.params.globalState??[]).map(o=>({key:o.key,value:o.value}));return{appId:BigInt(n.id),appAddress:Hl(n.id),approvalProgram:n.params.approvalProgram,clearStateProgram:n.params.clearStateProgram,creator:n.params.creator,localInts:n.params.localStateSchema?.numUints??0,localByteSlices:n.params.localStateSchema?.numByteSlices??0,globalInts:n.params.globalStateSchema?.numUints??0,globalByteSlices:n.params.globalStateSchema?.numByteSlices??0,extraProgramPages:n.params.extraProgramPages??0,globalState:Rm.decodeAppState(r),version:n.params.version}}async getGlobalState(e){return(await this.getById(e)).globalState}async getLocalState(e,n){let r=await this._algod.accountApplicationInformation(cr(n).toString(),Number(e));if(!r.appLocalState)throw new Error(\"Couldn\\'t find local state\");if(!r.appLocalState.keyValue||r.appLocalState.keyValue.length===0)return{};let o=r.appLocalState.keyValue.map(a=>({key:a.key,value:a.value}));return Rm.decodeAppState(o)}async getBoxNames(e){return(await this._algod.applicationBoxes(e)).boxes.map(n=>({nameRaw:n.name,nameBase64:globalThis.Buffer.from(n.name).toString(\"base64\"),name:globalThis.Buffer.from(n.name).toString(\"utf-8\")}))}async getBoxValue(e,n){let r=typeof n==\"object\"&&\"nameRaw\"in n?n.nameRaw:n,o=Rm.getBoxReference(r).name;return(await this._algod.applicationBoxByName(Number(e),o)).value}async getBoxValues(e,n){return await Promise.all(n.map(async r=>await this.getBoxValue(e,r)))}async getBoxValueFromABIType(e){let{appId:n,boxName:r,type:o}=e,a=await this.getBoxValue(n,r);return o.decode(a)}async getBoxValuesFromABIType(e){let{appId:n,boxNames:r,type:o}=e;return await Promise.all(r.map(async a=>await this.getBoxValueFromABIType({appId:n,boxName:a,type:o})))}static getBoxReference(e){let n=typeof e==\"object\"&&\"appId\"in e?e:{appId:0n,name:e};return{appId:n.appId,name:typeof n.name==\"string\"?new TextEncoder().encode(n.name):\"length\"in n.name?n.name:n.name.addr.publicKey}}static decodeAppState(e){let n={};for(let r of e){let o=globalThis.Buffer.from(r.key).toString(\"base64\"),a=r.key,c=globalThis.Buffer.from(r.key).toString(\"utf-8\"),l=r.value,f=Number(\"action\"in l?l.action:l.type),p,m;switch(f){case 1:p=typeof l.bytes==\"string\"?l.bytes:l.bytes?globalThis.Buffer.from(l.bytes).toString(\"base64\"):\"\",m=globalThis.Buffer.from(p,\"base64\"),n[c]={keyRaw:a,keyBase64:o,valueRaw:new Uint8Array(m),valueBase64:p,value:m.toString(\"utf-8\")};break;case 2:n[c]={keyRaw:a,keyBase64:o,value:BigInt(l.uint??0)};break;default:throw new Error(`Received unknown state data type of ${f}`)}}return n}static getABIReturn(e,n){if(!(!n||!e)){if(n.returns.type===\"void\")return{method:n,rawReturnValue:void 0,returnValue:void 0};try{let r=e.logs||[];if(r.length===0)throw new Error(\"App call transaction did not log a return value\");let o=r[r.length-1];if(!Rm.hasAbiReturnPrefix(o))throw new Error(\"App call transaction did not log an ABI return value\");let a=new Uint8Array(o.slice(4));return{method:n,rawReturnValue:a,decodeError:void 0,returnValue:n.returns.type.decode(a)}}catch(r){return{method:n,rawReturnValue:void 0,decodeError:r,returnValue:void 0}}}}static hasAbiReturnPrefix(e){if(e.length<fC.length)return!1;for(let n=0;n<fC.length;n++)if(e[n]!==fC[n])return!1;return!0}static replaceTealTemplateDeployTimeControlParams(e,n){if(n.updatable!==void 0){if(!e.includes(\"TMPL_UPDATABLE\"))throw new Error(`Deploy-time updatability control requested for app deployment, but ${jU} not present in TEAL code`);e=GU(e,jU,(n.updatable?1:0).toString())}if(n.deletable!==void 0){if(!e.includes(\"TMPL_DELETABLE\"))throw new Error(`Deploy-time deletability control requested for app deployment, but ${$U} not present in TEAL code`);e=GU(e,$U,(n.deletable?1:0).toString())}return e}static replaceTealTemplateParams(e,n){if(n!==void 0)for(let r in n){let o=n[r],a=`TMPL_${r.replace(/^TMPL_/,\"\")}`;(typeof o==\"number\"||typeof o==\"bigint\")&&(e=e.replace(new RegExp(`(?<=bytes )${a}`,\"g\"),`0x${o.toString(16).padStart(16,\"0\")}`)),e=GU(e,a,typeof o==\"string\"?`0x${globalThis.Buffer.from(o,\"utf-8\").toString(\"hex\")}`:ArrayBuffer.isView(o)?`0x${globalThis.Buffer.from(o).toString(\"hex\")}`:o.toString())}return e}static stripTealComments(e){let n=r=>{let o=qU(r,\"//\");return o===void 0?r:r.slice(0,o).trimEnd()};return e.split(`\\n`).map(r=>n(r)).join(`\\n`)}},qU=(t,e,n=0,r)=>{let o=r===void 0?t.length:r,a=n,c=!1,l=!1;for(;a<o;){let f=t[a];if((f===\" \"||f===\"(\")&&!c&&GPe(t,a))l=!0;else if((f===\" \"||f===\")\")&&!c&&l)l=!1;else if(f===\"\\\\\\\\\"&&c)a+=1;else if(f===\\'\"\\')c=!c;else if(!c&&!l&&t.startsWith(e,a))return a;a+=1}},GPe=(t,e)=>{try{let n=t.slice(0,e).split(/\\\\s+/),r=n[n.length-1];return[\"base64\",\"b64\"].includes(r)}catch{return!1}};function GU(t,e,n){let r=[],o=n.length-e.length,a=t.split(`\\n`);for(let c of a){let l=qU(c,\"//\"),f=l===void 0?c.length:l,p=c.substring(0,f),m=c.substring(f),g=0;for(;;){let y=qPe(p,e,g);if(y===void 0)break;g=y+e.length,p=`${p.substring(0,y)}${n}${p.substring(g)}`,g+=o}r.push(p+m)}return r.join(`\\n`)}var qPe=(t,e,n=0,r)=>{let o=r===void 0?t.length:r,a=n;for(;a<o;){let c=qU(t,e,a,o);if(c===void 0)break;let l=c+e.length;if((c===0||!Rce(t[c-1]))&&(l>=t.length||!Rce(t[l])))return c;a=l}};function Rce(t){return t.length===1&&(/\\\\w/.test(t)||t===\"_\")}u();u();u();var Dr=(function(t){return t[t.RequiredField=0]=\"RequiredField\",t[t.FieldTooLong=1]=\"FieldTooLong\",t[t.ImmutableField=2]=\"ImmutableField\",t[t.ZeroValueField=3]=\"ZeroValueField\",t[t.ArbitraryConstraint=4]=\"ArbitraryConstraint\",t})({});function Pce(t){switch(t.type){case Dr.RequiredField:return`${t.data} is required`;case Dr.FieldTooLong:return`${t.data.field} cannot exceed ${t.data.max} ${t.data.unit}, got ${t.data.actual}`;case Dr.ImmutableField:return`${t.data} is immutable and cannot be changed`;case Dr.ZeroValueField:return`${t.data} must not be 0`;case Dr.ArbitraryConstraint:return t.data}}var Co=(function(t){return t[t.NoOp=0]=\"NoOp\",t[t.OptIn=1]=\"OptIn\",t[t.CloseOut=2]=\"CloseOut\",t[t.ClearState=3]=\"ClearState\",t[t.UpdateApplication=4]=\"UpdateApplication\",t[t.DeleteApplication=5]=\"DeleteApplication\",t})({}),WPe=\"Args\",WU=\"Approval program\",YU=\"Clear state program\",Bce=\"Global state schema\",Dce=\"Local state schema\",Fce=\"Extra program pages\";function Oce(t){let e=new Array;return t.appId===0n?e.push(...YPe(t)):e.push(...ZPe(t)),e.push(...XPe(t)),e}function YPe(t){let e=new Array;(!t.approvalProgram||t.approvalProgram.length===0)&&e.push({type:Dr.RequiredField,data:WU}),(!t.clearStateProgram||t.clearStateProgram.length===0)&&e.push({type:Dr.RequiredField,data:YU});let n=t.extraProgramPages??0;n>3&&e.push({type:Dr.FieldTooLong,data:{field:Fce,actual:n,max:3,unit:\"pages\"}});let r=lC+n*lC;t.approvalProgram&&t.approvalProgram.length>r&&e.push({type:Dr.FieldTooLong,data:{field:WU,actual:t.approvalProgram.length,max:r,unit:\"bytes\"}}),t.clearStateProgram&&t.clearStateProgram.length>r&&e.push({type:Dr.FieldTooLong,data:{field:YU,actual:t.clearStateProgram.length,max:r,unit:\"bytes\"}});let o=(t.approvalProgram?.length??0)+(t.clearStateProgram?.length??0);return o>r&&e.push({type:Dr.FieldTooLong,data:{field:\"Combined approval and clear state programs\",actual:o,max:r,unit:\"bytes\"}}),t.globalStateSchema&&t.globalStateSchema.numUints+t.globalStateSchema.numByteSlices>64&&e.push({type:Dr.FieldTooLong,data:{field:Bce,actual:t.globalStateSchema.numUints+t.globalStateSchema.numByteSlices,max:64,unit:\"keys\"}}),t.localStateSchema&&t.localStateSchema.numUints+t.localStateSchema.numByteSlices>16&&e.push({type:Dr.FieldTooLong,data:{field:Dce,actual:t.localStateSchema.numUints+t.localStateSchema.numByteSlices,max:16,unit:\"keys\"}}),e}function ZPe(t){let e=new Array;return t.onComplete===Co.UpdateApplication&&((!t.approvalProgram||t.approvalProgram.length===0)&&e.push({type:Dr.RequiredField,data:WU}),(!t.clearStateProgram||t.clearStateProgram.length===0)&&e.push({type:Dr.RequiredField,data:YU})),t.globalStateSchema!==void 0&&e.push({type:Dr.ImmutableField,data:Bce}),t.localStateSchema!==void 0&&e.push({type:Dr.ImmutableField,data:Dce}),t.extraProgramPages!==void 0&&e.push({type:Dr.ImmutableField,data:Fce}),e}function XPe(t){let e=new Array;if(t.args){t.args.length>16&&e.push({type:Dr.FieldTooLong,data:{field:WPe,actual:t.args.length,max:16,unit:\"arguments\"}});let r=t.args.reduce((o,a)=>o+a.length,0);r>2048&&e.push({type:Dr.FieldTooLong,data:{field:\"Args total size\",actual:r,max:zU,unit:\"bytes\"}})}if(t.accountReferences&&t.accountReferences.length>8&&e.push({type:Dr.FieldTooLong,data:{field:\"Account references\",actual:t.accountReferences.length,max:8,unit:\"refs\"}}),t.appReferences&&t.appReferences.length>8&&e.push({type:Dr.FieldTooLong,data:{field:\"App references\",actual:t.appReferences.length,max:8,unit:\"refs\"}}),t.assetReferences&&t.assetReferences.length>8&&e.push({type:Dr.FieldTooLong,data:{field:\"Asset references\",actual:t.assetReferences.length,max:8,unit:\"refs\"}}),t.boxReferences){t.boxReferences.length>8&&e.push({type:Dr.FieldTooLong,data:{field:\"Box references\",actual:t.boxReferences.length,max:8,unit:\"refs\"}});let r=t.appReferences||[];for(let o of t.boxReferences)o.appId!==0n&&o.appId!==t.appId&&!r.includes(o.appId)&&e.push({type:Dr.ArbitraryConstraint,data:`Box reference for app ID ${o.appId} must be in app references`})}let n=(t.accountReferences?.length||0)+(t.appReferences?.length||0)+(t.assetReferences?.length||0)+(t.boxReferences?.length||0);return n>8&&e.push({type:Dr.FieldTooLong,data:{field:\"Total references\",actual:n,max:8,unit:\"refs\"}}),e}u();var Er=(function(t){return t.Payment=\"pay\",t.KeyRegistration=\"keyreg\",t.AssetConfig=\"acfg\",t.AssetTransfer=\"axfer\",t.AssetFreeze=\"afrz\",t.AppCall=\"appl\",t.StateProof=\"stpf\",t.Heartbeat=\"hb\",t.Unknown=\"unknown\",t})({});u();u();var go=class{encode(t,e){return t==null||this.isDefaultValue(t)?this.toEncoded(this.defaultValue(),e):this.toEncoded(t,e)}encodeOptional(t,e){if(t!=null&&!this.isDefaultValue(t))return this.toEncoded(t,e)}decode(t,e){if(t==null)return this.defaultValue();let n=this.fromEncoded(t,e);return this.isDefaultValue(n)?this.defaultValue():n}decodeOptional(t,e){if(t!=null)return this.fromEncoded(t,e)}toEncoded(t,e){return t}fromEncoded(t,e){return t}isDefaultValue(t){return t===this.defaultValue()}};u();c3();function _s(t,e={useMap:!0,rawBinaryStringKeys:!0,rawBinaryStringValues:!0}){return f1(t,{intMode:li.AS_ENCODED,...e})}function Ec(t){return new Uint8Array(i3(t,{sortKeys:!0,ignoreUndefined:!0}))}u();function Hd(t){return Kg(t).slice(0,32)}u();function Lce(t){let e=new Array;return t.assetId===0n?e.push(...JPe(t)):e.push(...QPe(t)),e}function JPe(t){let e=new Array;return t.total===void 0&&e.push({type:Dr.RequiredField,data:\"Total\"}),t.decimals!==void 0&&t.decimals>19&&e.push({type:Dr.FieldTooLong,data:{field:\"Decimals\",actual:t.decimals,max:19,unit:\"decimal places\"}}),t.unitName&&t.unitName.length>8&&e.push({type:Dr.FieldTooLong,data:{field:\"Unit name\",actual:t.unitName.length,max:8,unit:\"bytes\"}}),t.assetName&&t.assetName.length>32&&e.push({type:Dr.FieldTooLong,data:{field:\"Asset name\",actual:t.assetName.length,max:32,unit:\"bytes\"}}),t.url&&t.url.length>96&&e.push({type:Dr.FieldTooLong,data:{field:\"Url\",actual:t.url.length,max:96,unit:\"bytes\"}}),e}function QPe(t){let e=new Array;return(t.total!==void 0||t.decimals!==void 0||t.defaultFrozen!==void 0||t.assetName!==void 0||t.unitName!==void 0||t.url!==void 0||t.metadataHash!==void 0||t.manager!==void 0||t.reserve!==void 0||t.freeze!==void 0||t.clawback!==void 0)&&(t.total!==void 0&&e.push({type:Dr.ImmutableField,data:\"Total\"}),t.decimals!==void 0&&e.push({type:Dr.ImmutableField,data:\"Decimals\"}),t.defaultFrozen!==void 0&&e.push({type:Dr.ImmutableField,data:\"Default frozen\"}),t.assetName!==void 0&&e.push({type:Dr.ImmutableField,data:\"Asset name\"}),t.unitName!==void 0&&e.push({type:Dr.ImmutableField,data:\"Unit name\"}),t.url!==void 0&&e.push({type:Dr.ImmutableField,data:\"Url\"}),t.metadataHash!==void 0&&e.push({type:Dr.ImmutableField,data:\"Metadata hash\"})),e}u();function Nce(t){let e=new Array;return t.assetId===0n&&e.push({type:Dr.ZeroValueField,data:\"Asset ID\"}),e}u();function Uce(t){let e=new Array;return t.assetId===0n&&e.push({type:Dr.ZeroValueField,data:\"Asset ID\"}),e}u();function zce(t){let e=new Array;return(t.voteKey!==void 0||t.selectionKey!==void 0||t.stateProofKey!==void 0||t.voteFirst!==void 0||t.voteLast!==void 0||t.voteKeyDilution!==void 0)&&e.push(...eBe(t)),e}function eBe(t){let e=new Array;return t.voteKey||e.push({type:Dr.RequiredField,data:\"Vote key\"}),t.selectionKey||e.push({type:Dr.RequiredField,data:\"Selection key\"}),t.stateProofKey||e.push({type:Dr.RequiredField,data:\"State proof key\"}),t.voteFirst===void 0&&e.push({type:Dr.RequiredField,data:\"Vote first\"}),t.voteLast===void 0&&e.push({type:Dr.RequiredField,data:\"Vote last\"}),t.voteFirst!==void 0&&t.voteLast!==void 0&&t.voteFirst>=t.voteLast&&e.push({type:Dr.ArbitraryConstraint,data:\"Vote first must be less than vote last\"}),t.voteKeyDilution===void 0&&e.push({type:Dr.RequiredField,data:\"Vote key dilution\"}),t.nonParticipation===!0&&e.push({type:Dr.ArbitraryConstraint,data:\"Online key registration cannot have non participation flag set\"}),e}u();u();var Vce=br($s(),1),tBe=class extends go{defaultValue(){return Yr.zeroAddress()}toEncoded(t,e){return e===\"json\"?t.toString():t.publicKey}fromEncoded(t,e){if(typeof t==\"string\")return Yr.fromString(t);if(t instanceof Uint8Array){if(t.length===32)return new Yr(t);if(t.length===58)return Yr.fromString(Vce.Buffer.from(t).toString(\"utf-8\"))}throw new Error(`AddressCodec cannot decode address from ${typeof t}`)}isDefaultValue(t){return t.equals(this.defaultValue())}},Jn=new tBe;u();var nBe=class extends go{defaultValue(){return 0n}fromEncoded(t,e){if(typeof t==\"bigint\")return t;if(typeof t==\"number\"||typeof t==\"string\")return BigInt(t);throw new Error(`Cannot decode bigint from ${typeof t}`)}},je=new nBe;u();var rBe=class extends go{defaultValue(){return!1}},rr=new rBe;u();var ZU=br($s(),1),oBe=class extends go{defaultValue(){return new Uint8Array}toEncoded(t,e){return e===\"json\"?ZU.Buffer.from(t).toString(\"base64\"):t}fromEncoded(t,e){if(t instanceof Uint8Array)return t;if(typeof t==\"string\")return new Uint8Array(ZU.Buffer.from(t,\"base64\"));throw new Error(`Cannot decode bytes from ${typeof t}`)}isDefaultValue(t){return t.byteLength===0}},Xt=new oBe;u();var XU=br($s(),1),JU=class extends go{constructor(t){super(),this.length=t}defaultValue(){return new Uint8Array(this.length)}toEncoded(t,e){return e===\"json\"?XU.Buffer.from(t).toString(\"base64\"):t}fromEncoded(t,e){if(t instanceof Uint8Array)return t;if(typeof t==\"string\")return new Uint8Array(XU.Buffer.from(t,\"base64\"));throw new Error(`Cannot decode fixed ${this.length} bytes from ${typeof t}`)}isDefaultValue(t){return t.byteLength!==this.length?!1:t.every(e=>e===0)}},Nr=new JU(32),Po=new JU(64),QU=new JU(1793);u();var iBe=class extends go{defaultValue(){return 0}isDefaultValue(t){return t===this.defaultValue()||Number.isNaN(t)}},Pt=new iBe;u();var Hce=br($s(),1);function aBe(t){return t instanceof Uint8Array?Tp(t):t.toString()}function Tp(t){return t instanceof Uint8Array?Hce.Buffer.from(t).toString(\"utf-8\"):t}function jd(t){if(t instanceof Map){let e={};for(let[n,r]of t.entries())e[aBe(n)]=r;return e}return t}u();var sBe=class extends go{defaultValue(){return\"\"}fromEncoded(t,e){return Tp(t)}},At=new sBe;u();var Cn=class extends go{constructor(t){super(),this.itemCodec=t}defaultValue(){return[]}toEncoded(t,e){return t.map(n=>this.itemCodec.encode(n,e))}fromEncoded(t,e){return t.map(n=>this.itemCodec.decode(n,e))}isDefaultValue(t){return t.length===0}},Pi=new Cn(Xt),ec=new Cn(Jn),nl=new Cn(je),g8=new Cn(Pt),cBe=new Cn(rr),is=new Cn(At);u();var Sc=class extends go{constructor(e,n){super();ge(this,\"keyType\");this.keyCodec=e,this.valueCodec=n;let r=this.keyCodec.defaultValue();this.keyType=r instanceof Uint8Array?\"Uint8Array\":typeof r}defaultValue(){return new Map}ensureKeyIsSupported(e){if(e===\"msgpack\")return!0;if(this.keyType!==\"string\"&&this.keyType!==\"bigint\")throw new Error(`Map key of type \\'${this.keyType}\\' is not supported in ${e} format`)}toEncoded(e,n){this.ensureKeyIsSupported(n);let r=[];for(let[o,a]of e.entries()){let c=this.keyCodec.encode(o,n),l=this.valueCodec.encode(a,n);r.push([c,l])}if(n===\"json\"){let o={};for(let[a,c]of r){let l=typeof a==\"string\"?a:String(a);o[l]=c}return o}return new Map(r)}fromEncoded(e,n){this.ensureKeyIsSupported(n);let r=new Map,o;e instanceof Map?o=Array.from(e.entries()):o=Object.entries(e);for(let[a,c]of o){let l=a;n===\"json\"&&this.keyType===\"bigint\"&&typeof a==\"string\"&&(l=BigInt(a));let f=this.keyCodec.decode(l,n),p=this.valueCodec.decode(c,n);r.set(f,p)}return r}isDefaultValue(e){return e.size===0}};u();function ez(t){if(t==null)return!0;if(typeof t!=\"object\"||Array.isArray(t)||t instanceof Uint8Array)return!1;if(t instanceof Map)return t.size===0;let e=Object.keys(t);return e.length===0||e.every(n=>t[n]===void 0)}var Ke=class extends go{constructor(e){super();ge(this,\"resolvedMetadata\");ge(this,\"resolvedDefaultValue\");this.metadata=e}decode(e,n){return e==null?this.defaultValue():this.fromEncoded(e,n)}getMetadata(){return this.resolvedMetadata||(this.resolvedMetadata=typeof this.metadata==\"function\"?this.metadata():this.metadata),this.resolvedMetadata}defaultValue(){if(this.resolvedDefaultValue===void 0){let e=this.getMetadata(),n={};for(let r of e.fields)r.optional||(n[r.name]=r.codec.defaultValue());this.resolvedDefaultValue=n}return this.resolvedDefaultValue}isDefaultValue(e){let n=this.getMetadata();for(let r of n.fields){let o=e[r.name];if(!(r.optional&&o==null)&&!r.codec.isDefaultValue(o))return!1}return!0}toEncoded(e,n){let r=this.getMetadata(),o={};for(let a of r.fields){let c=e[a.name];if(a.flattened){let p=this.encodeFlattenedField(a,c,n);p!==void 0&&Object.assign(o,p);continue}let l=a.wireKey??a.name,f=a.codec.encodeOptional(c,n);f!==void 0&&!ez(f)&&(o[l]=f)}return o}fromEncoded(e,n){let r=this.getMetadata(),o=jd(e),a={};for(let c of r.fields)if(c.flattened){let l=this.decodeFieldValue(c,o,n);(!ez(l)||!c.optional)&&(a[c.name]=l)}else{let l=this.decodeFieldValue(c,o[c.wireKey||c.name],n);(!ez(l)||!c.optional)&&(a[c.name]=l)}return a}encodeFlattenedField(e,n,r){let o=e.codec.encodeOptional(n,r);return o!==void 0&&typeof o==\"object\"&&!Array.isArray(o)?jd(o):{}}decodeFieldValue(e,n,r){return e.optional?e.codec.decodeOptional(n,r):e.codec.decode(n,r)}};var lBe=class extends go{defaultValue(){return Er.Unknown}toEncoded(t,e){switch(t){case Er.Payment:return\"pay\";case Er.AssetTransfer:return\"axfer\";case Er.AssetFreeze:return\"afrz\";case Er.AssetConfig:return\"acfg\";case Er.KeyRegistration:return\"keyreg\";case Er.AppCall:return\"appl\";case Er.StateProof:return\"stpf\";case Er.Heartbeat:return\"hb\";default:return\"unknown\"}}fromEncoded(t,e){switch(Tp(t)){case\"pay\":return Er.Payment;case\"axfer\":return Er.AssetTransfer;case\"afrz\":return Er.AssetFreeze;case\"acfg\":return Er.AssetConfig;case\"keyreg\":return Er.KeyRegistration;case\"appl\":return Er.AppCall;case\"stpf\":return Er.StateProof;case\"hb\":return Er.Heartbeat;default:return Er.Unknown}}},y8=class extends go{constructor(e,n){super();ge(this,\"transactionDataCodec\");this.transactionType=e,this.transactionDataCodec=new Ke(n)}defaultValue(){}toEncoded(e,n){if(!e)throw new Error(\"Transaction data is missing\");return this.transactionDataCodec.encode(e,n)}fromEncoded(e,n){if(e.type===void 0)throw new Error(\"Transaction is missing type field\");if(Tp(e.type)===this.transactionType.toString())return this.transactionDataCodec.decode(e,n)}},uBe=class extends go{constructor(){super(...arguments);ge(this,\"assetParamsCodec\",new Ke(gBe))}defaultValue(){}toEncoded(e,n){let r={};if(!e)throw new Error(\"Transaction is not an asset config\");let{assetId:o,...a}=e,c=je.encodeOptional(o,n);c!==void 0&&(r.caid=c);let l=this.assetParamsCodec.encodeOptional(a,n);return l&&Object.keys(l).length>0&&(r.apar=l),r}fromEncoded(e,n){if(e.type===void 0)throw new Error(\"Transaction is missing type field\");let r=Tp(e.type),o=e.caid,a=e.apar;if(!(r!==Er.AssetConfig||o===void 0&&!a))return{assetId:je.decode(o,n),...this.assetParamsCodec.decode(a,n)}}isDefaultValue(e){return e===void 0}},dBe=class extends go{constructor(){super(...arguments);ge(this,\"appCallFieldsCodec\",new Ke(yBe))}defaultValue(){}encodeResourceReferences(e,n,r){if(!n||n.length===0)return;let o=[],a=c=>{for(let l=0;l<o.length;l++){let f=o[l],p=!f.d&&!c.address||f.d&&c.address&&Jn.decode(f.d,r).equals(c.address),m=f.s===void 0&&c.assetId===void 0||f.s!==void 0&&c.assetId!==void 0&&je.decode(f.s,r)===c.assetId,g=f.p===void 0&&c.appId===void 0||f.p!==void 0&&c.appId!==void 0&&je.decode(f.p,r)===c.appId;if(p&&m&&g)return l+1}return c.address&&!c.address.equals(Yr.zeroAddress())&&o.push({d:Jn.encodeOptional(c.address,r)}),c.assetId!==void 0&&o.push({s:je.encodeOptional(c.assetId,r)}),c.appId!==void 0&&o.push({p:je.encodeOptional(c.appId,r)}),o.length};for(let c of n){if(c.address||c.assetId!==void 0||c.appId!==void 0){a(c);continue}if(c.holding){let l=c.holding,f=0;l.address&&!l.address.equals(Yr.zeroAddress())&&(f=a({address:l.address}));let p=a({assetId:l.assetId});o.push({h:{d:Pt.encodeOptional(f,r),s:Pt.encodeOptional(p,r)}});continue}if(c.locals){let l=c.locals,f=0;l.address&&!l.address.equals(Yr.zeroAddress())&&(f=a({address:l.address}));let p=0;l.appId&&l.appId!==e&&(p=a({appId:l.appId})),(f!==0||p!==0)&&o.push({l:{d:Pt.encodeOptional(f,r),p:Pt.encodeOptional(p,r)}});continue}if(c.box){let l=c.box,f=0;l.appId&&l.appId!==e&&(f=a({appId:l.appId})),o.push({b:{i:Pt.encodeOptional(f,r),n:Xt.encodeOptional(l.name,r)}});continue}}return o.length>0?o:void 0}decodeResourceReferences(e,n){if(!e||e.length===0)return[];let r=[],o=e.map(a=>jd(a));for(let a of o){let c=a.d,l=a.s,f=a.p,p=a.h,m=p?jd(p):void 0,g=a.l,y=g?jd(g):void 0,A=a.b,T=A?jd(A):void 0;if(c){r.push({address:Jn.decode(c,n)});continue}if(l!==void 0){r.push({assetId:je.decode(l,n)});continue}if(f!==void 0){r.push({appId:je.decode(f,n)});continue}if(m){let R=m.d??0,K=m.s;if(K===void 0)throw new Error(\"Access list holding reference is missing asset index\");let O=R===0?Yr.zeroAddress():Jn.decode(o[R-1].d,n),V=o[K-1].s;r.push({holding:{assetId:je.decode(V,n),address:O}});continue}if(y){let R=y.d??0,K=y.p??0,O=R===0?Yr.zeroAddress():Jn.decode(o[R-1].d,n),V=K===0?0n:o[K-1].p;r.push({locals:{appId:je.decode(V,n),address:O}});continue}if(T){let R=T.i??0,K=T.n;if(!K)throw new Error(\"Access list box reference is missing name\");let O=R===0?0n:o[R-1].p;r.push({box:{appId:je.decode(O,n),name:Xt.decode(K,n)}});continue}}return r}encodeBoxReferences(e,n,r,o){if(!r||r.length===0)return;let a=n??[];return r.map(c=>{let l=c.appId===0n||c.appId===e,f=l?0:a.indexOf(c.appId)+1;if(f===0&&!l)throw new Error(`Box ref with appId ${c.appId} not in appReferences`);return{i:Pt.encodeOptional(f,o),n:Xt.encodeOptional(c.name,o)}})}decodeBoxReferences(e,n,r){return!n||n.length===0?[]:n.map(o=>{let a=jd(o),c=a.i,l=a.n,f=c??0,p;if(f===0)p=0n;else{let m=e?.[f-1];if(m===void 0)throw new Error(`Failed to find the app reference at index ${f-1}`);p=je.decode(m,r)}return{appId:p,name:Xt.decode(l,r)}})}toEncoded(e,n){let r={};if(!e)throw new Error(\"Transaction is not an app call\");let o=this.appCallFieldsCodec.encodeOptional(e,n);o&&Object.keys(o).length>0&&Object.assign(r,o);let a=this.encodeBoxReferences(e.appId,e.appReferences,e.boxReferences,n);a&&(r.apbx=a);let c=this.encodeResourceReferences(e.appId,e.accessReferences,n);return c&&(r.al=c),r}fromEncoded(e,n){if(e.type===void 0)throw new Error(\"Transaction is missing type field\");if(Tp(e.type)!==Er.AppCall)return;let r=e.apfa,o=e.apbx,a=e.al,c=this.decodeBoxReferences(r?.map(f=>je.decode(f,n)),o,n),l=this.decodeResourceReferences(a,n);return{...this.appCallFieldsCodec.decode(e,n),...l.length>0&&{accessReferences:l},...c.length>0&&{boxReferences:c}}}isDefaultValue(e){return e===void 0}},fBe={name:\"PaymentTransactionFields\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"amt\",optional:!1,codec:je},{name:\"receiver\",wireKey:\"rcv\",optional:!1,codec:Jn},{name:\"closeRemainderTo\",wireKey:\"close\",optional:!0,codec:Jn}]},pBe={name:\"AssetTransferTransactionFields\",kind:\"object\",fields:[{name:\"assetId\",wireKey:\"xaid\",optional:!1,codec:je},{name:\"amount\",wireKey:\"aamt\",optional:!1,codec:je},{name:\"receiver\",wireKey:\"arcv\",optional:!1,codec:Jn},{name:\"assetSender\",wireKey:\"asnd\",optional:!0,codec:Jn},{name:\"closeRemainderTo\",wireKey:\"aclose\",optional:!0,codec:Jn}]},hBe={name:\"AssetFreezeTransactionFields\",kind:\"object\",fields:[{name:\"assetId\",wireKey:\"faid\",optional:!1,codec:je},{name:\"freezeTarget\",wireKey:\"fadd\",optional:!1,codec:Jn},{name:\"frozen\",wireKey:\"afrz\",optional:!1,codec:rr}]},mBe={name:\"KeyRegistrationTransactionFields\",kind:\"object\",fields:[{name:\"voteKey\",wireKey:\"votekey\",optional:!0,codec:Nr},{name:\"selectionKey\",wireKey:\"selkey\",optional:!0,codec:Nr},{name:\"stateProofKey\",wireKey:\"sprfkey\",optional:!0,codec:Po},{name:\"voteFirst\",wireKey:\"votefst\",optional:!0,codec:je},{name:\"voteLast\",wireKey:\"votelst\",optional:!0,codec:je},{name:\"voteKeyDilution\",wireKey:\"votekd\",optional:!0,codec:je},{name:\"nonParticipation\",wireKey:\"nonpart\",optional:!0,codec:rr}]},gBe={name:\"AssetParams\",kind:\"object\",fields:[{name:\"total\",wireKey:\"t\",optional:!0,codec:je},{name:\"decimals\",wireKey:\"dc\",optional:!0,codec:Pt},{name:\"defaultFrozen\",wireKey:\"df\",optional:!0,codec:rr},{name:\"unitName\",wireKey:\"un\",optional:!0,codec:At},{name:\"assetName\",wireKey:\"an\",optional:!0,codec:At},{name:\"url\",wireKey:\"au\",optional:!0,codec:At},{name:\"metadataHash\",wireKey:\"am\",optional:!0,codec:Nr},{name:\"manager\",wireKey:\"m\",optional:!0,codec:Jn},{name:\"reserve\",wireKey:\"r\",optional:!0,codec:Jn},{name:\"freeze\",wireKey:\"f\",optional:!0,codec:Jn},{name:\"clawback\",wireKey:\"c\",optional:!0,codec:Jn}]},jce={name:\"StateSchema\",kind:\"object\",fields:[{name:\"numUints\",wireKey:\"nui\",optional:!1,codec:Pt},{name:\"numByteSlices\",wireKey:\"nbs\",optional:!1,codec:Pt}]},yBe={name:\"AppCallTransactionFields\",kind:\"object\",fields:[{name:\"appId\",wireKey:\"apid\",optional:!1,codec:je},{name:\"onComplete\",wireKey:\"apan\",optional:!1,codec:Pt},{name:\"approvalProgram\",wireKey:\"apap\",optional:!0,codec:Xt},{name:\"clearStateProgram\",wireKey:\"apsu\",optional:!0,codec:Xt},{name:\"globalStateSchema\",wireKey:\"apgs\",optional:!0,codec:new Ke(jce)},{name:\"localStateSchema\",wireKey:\"apls\",optional:!0,codec:new Ke(jce)},{name:\"extraProgramPages\",wireKey:\"apep\",optional:!0,codec:Pt},{name:\"args\",wireKey:\"apaa\",optional:!0,codec:Pi},{name:\"accountReferences\",wireKey:\"apat\",optional:!0,codec:ec},{name:\"appReferences\",wireKey:\"apfa\",optional:!0,codec:nl},{name:\"assetReferences\",wireKey:\"apas\",optional:!0,codec:nl},{name:\"rejectVersion\",wireKey:\"aprv\",optional:!0,codec:Pt}]},tz={name:\"MerkleArrayProof\",kind:\"object\",fields:[{name:\"path\",wireKey:\"pth\",optional:!1,codec:Pi},{name:\"hashFactory\",wireKey:\"hsh\",optional:!1,codec:new Ke({name:\"HashFactory\",kind:\"object\",fields:[{name:\"hashType\",wireKey:\"t\",optional:!1,codec:Pt}]})},{name:\"treeDepth\",wireKey:\"td\",optional:!1,codec:Pt}]},vBe={name:\"FalconVerifier\",kind:\"object\",fields:[{name:\"publicKey\",wireKey:\"k\",optional:!1,codec:QU}]},xBe={name:\"SigslotCommit\",kind:\"object\",fields:[{name:\"sig\",wireKey:\"s\",optional:!1,codec:new Ke({name:\"FalconSignatureStruct\",kind:\"object\",fields:[{name:\"signature\",wireKey:\"sig\",optional:!1,codec:Xt},{name:\"vectorCommitmentIndex\",wireKey:\"idx\",optional:!1,codec:je},{name:\"proof\",wireKey:\"prf\",optional:!1,codec:new Ke(tz)},{name:\"verifyingKey\",wireKey:\"vkey\",optional:!1,codec:new Ke(vBe)}]})},{name:\"lowerSigWeight\",wireKey:\"l\",optional:!1,codec:je}]},bBe={name:\"Participant\",kind:\"object\",fields:[{name:\"verifier\",wireKey:\"p\",optional:!1,codec:new Ke({name:\"MerkleSignatureVerifier\",kind:\"object\",fields:[{name:\"commitment\",wireKey:\"cmt\",optional:!1,codec:Po},{name:\"keyLifetime\",wireKey:\"lf\",optional:!1,codec:je}]})},{name:\"weight\",wireKey:\"w\",optional:!1,codec:je}]},wBe={name:\"Reveal\",kind:\"object\",fields:[{name:\"sigslot\",wireKey:\"s\",optional:!1,codec:new Ke(xBe)},{name:\"participant\",wireKey:\"p\",optional:!1,codec:new Ke(bBe)}]},EBe={name:\"StateProof\",kind:\"object\",fields:[{name:\"sigCommit\",wireKey:\"c\",optional:!1,codec:Xt},{name:\"signedWeight\",wireKey:\"w\",optional:!1,codec:je},{name:\"sigProofs\",wireKey:\"S\",optional:!1,codec:new Ke(tz)},{name:\"partProofs\",wireKey:\"P\",optional:!1,codec:new Ke(tz)},{name:\"merkleSignatureSaltVersion\",wireKey:\"v\",optional:!1,codec:Pt},{name:\"reveals\",wireKey:\"r\",optional:!1,codec:new Sc(je,new Ke(wBe))},{name:\"positionsToReveal\",wireKey:\"pr\",optional:!1,codec:nl}]},SBe={name:\"StateProofMessage\",kind:\"object\",fields:[{name:\"blockHeadersCommitment\",wireKey:\"b\",optional:!1,codec:Xt},{name:\"votersCommitment\",wireKey:\"v\",optional:!1,codec:Xt},{name:\"lnProvenWeight\",wireKey:\"P\",optional:!1,codec:je},{name:\"firstAttestedRound\",wireKey:\"f\",optional:!1,codec:je},{name:\"lastAttestedRound\",wireKey:\"l\",optional:!1,codec:je}]},ABe={name:\"StateProofTransactionFields\",kind:\"object\",fields:[{name:\"stateProofType\",wireKey:\"sptype\",optional:!1,codec:Pt},{name:\"stateProof\",wireKey:\"sp\",optional:!0,codec:new Ke(EBe)},{name:\"message\",wireKey:\"spmsg\",optional:!0,codec:new Ke(SBe)}]},kBe={name:\"HeartbeatTransactionFields\",kind:\"object\",fields:[{name:\"address\",wireKey:\"a\",optional:!1,codec:Jn},{name:\"proof\",wireKey:\"prf\",optional:!1,codec:new Ke({name:\"HeartbeatProof\",kind:\"object\",fields:[{name:\"sig\",wireKey:\"s\",optional:!1,codec:Po},{name:\"pk\",wireKey:\"p\",optional:!1,codec:Nr},{name:\"pk2\",wireKey:\"p2\",optional:!1,codec:Nr},{name:\"pk1Sig\",wireKey:\"p1s\",optional:!1,codec:Po},{name:\"pk2Sig\",wireKey:\"p2s\",optional:!1,codec:Po}]})},{name:\"seed\",wireKey:\"sd\",optional:!1,codec:Xt},{name:\"voteId\",wireKey:\"vid\",optional:!1,codec:Nr},{name:\"keyDilution\",wireKey:\"kd\",optional:!1,codec:je}]},$ce={name:\"TransactionParams\",kind:\"object\",fields:[{name:\"type\",wireKey:\"type\",optional:!1,codec:new lBe},{name:\"sender\",wireKey:\"snd\",optional:!1,codec:Jn},{name:\"fee\",wireKey:\"fee\",optional:!0,codec:je},{name:\"firstValid\",wireKey:\"fv\",optional:!1,codec:je},{name:\"lastValid\",wireKey:\"lv\",optional:!1,codec:je},{name:\"genesisHash\",wireKey:\"gh\",optional:!0,codec:Nr},{name:\"genesisId\",wireKey:\"gen\",optional:!0,codec:At},{name:\"note\",wireKey:\"note\",optional:!0,codec:Xt},{name:\"rekeyTo\",wireKey:\"rekey\",optional:!0,codec:Jn},{name:\"lease\",wireKey:\"lx\",optional:!0,codec:Nr},{name:\"group\",wireKey:\"grp\",optional:!0,codec:Nr},{name:\"payment\",flattened:!0,optional:!0,codec:new y8(Er.Payment,fBe)},{name:\"assetTransfer\",flattened:!0,optional:!0,codec:new y8(Er.AssetTransfer,pBe)},{name:\"assetFreeze\",flattened:!0,optional:!0,codec:new y8(Er.AssetFreeze,hBe)},{name:\"keyRegistration\",flattened:!0,optional:!0,codec:new y8(Er.KeyRegistration,mBe)},{name:\"assetConfig\",flattened:!0,optional:!0,codec:new uBe},{name:\"heartbeat\",wireKey:\"hb\",optional:!0,codec:new Ke(kBe)},{name:\"appCall\",flattened:!0,optional:!0,codec:new dBe},{name:\"stateProof\",flattened:!0,optional:!0,codec:new y8(Er.StateProof,ABe)}]},pC=new Ke($ce);var Gce=br(ev(),1);var hC=Symbol.for(\"algokit_transact:Transaction\"),Kce,Mo=(Kce=hC,class{constructor(t){ge(this,Kce);ge(this,\"type\");ge(this,\"sender\");ge(this,\"fee\");ge(this,\"firstValid\");ge(this,\"lastValid\");ge(this,\"genesisHash\");ge(this,\"genesisId\");ge(this,\"note\");ge(this,\"rekeyTo\");ge(this,\"lease\");ge(this,\"group\");ge(this,\"payment\");ge(this,\"assetTransfer\");ge(this,\"assetConfig\");ge(this,\"appCall\");ge(this,\"keyRegistration\");ge(this,\"assetFreeze\");ge(this,\"heartbeat\");ge(this,\"stateProof\");this[hC]=!0,this.type=t.type,this.sender=t.sender,this.fee=t.fee,this.firstValid=t.firstValid,this.lastValid=t.lastValid,this.genesisHash=t.genesisHash,this.genesisId=t.genesisId,this.note=t.note,this.rekeyTo=t.rekeyTo,this.lease=t.lease,this.group=t.group,this.payment=t.payment,this.assetTransfer=t.assetTransfer,this.assetConfig=t.assetConfig,this.appCall=t.appCall,this.keyRegistration=t.keyRegistration,this.assetFreeze=t.assetFreeze,this.heartbeat=t.heartbeat,this.stateProof=t.stateProof}rawTxId(){if(this.genesisHash===void 0)throw new Error(\"Cannot compute transaction id without genesis hash\");return Hd(x8(this))}txId(){let t=this.rawTxId();return Gce.default.encode(t).slice(0,52)}});Object.defineProperty(Mo,Symbol.hasInstance,{value:function(t){return t instanceof Object&&Object.getPrototypeOf(t)===Mo.prototype?!0:!!(t&&typeof t==\"object\"&&hC in t&&t[hC])}});var CBe=class extends go{defaultValue(){return new Mo({type:Er.Unknown,sender:Yr.zeroAddress(),firstValid:0n,lastValid:0n})}toEncoded(t,e){return pC.encode({...t},e)}fromEncoded(t,e){return new Mo(pC.decode(t,e))}isDefaultValue(t){return!1}},v8=new CBe;function x8(t){let e=jl(t);return Ha(new TextEncoder().encode(\"TX\"),e)}function Pm(t){if([t.payment,t.assetTransfer,t.assetConfig,t.appCall,t.keyRegistration,t.assetFreeze,t.heartbeat,t.stateProof].filter(r=>r!==void 0).length>1)throw new Error(\"Multiple transaction type specific fields set\");let e=\"Transaction\",n=new Array;if(t.assetTransfer?(e=\"Asset transfer\",n.push(...Uce(t.assetTransfer))):t.assetConfig?(e=\"Asset config\",n.push(...Lce(t.assetConfig))):t.appCall?(e=\"App call\",n.push(...Oce(t.appCall))):t.keyRegistration?(e=\"Key registration\",n.push(...zce(t.keyRegistration))):t.assetFreeze&&(e=\"Asset freeze\",n.push(...Nce(t.assetFreeze))),n.length>0){let r=n.map(o=>Pce(o));throw new Error(`${e} validation failed: ${r.join(`\\n`)}`)}}function jl(t){return Ec(v8.encode(t,\"msgpack\"))}function b8(t){if(t.length===0)throw new Error(\"attempted to decode 0 bytes\");let e=new TextEncoder().encode(\"TX\"),n=!0;if(t.length<e.length)n=!1;else for(let o=0;o<e.length;o++)if(t[o]!==e[o]){n=!1;break}let r=_s(n?t.slice(e.length):t);return v8.decode(r,\"msgpack\")}function qce(t){let e=jl(t);return BigInt(e.length+75)}function Bm(t){let e=TBe(t);return t.map(n=>new Mo({...n,group:e}))}function nz(t,e){let n=mC(t,e);return new Mo({...t,fee:n})}function TBe(t){if(t.length===0)throw new Error(\"Transaction group size cannot be 0\");if(t.length>16)throw new Error(\"Transaction group size exceeds the max limit of 16\");let e=t.map(n=>{if(n.group)throw new Error(\"Transactions must not already be grouped\");return Hd(x8(n))});return Hd(Ha(new TextEncoder().encode(\"TG\"),Ec({txlist:e})))}function mC(t,e){let n=0n;if(e.feePerByte>0n){let r=qce(t);n=e.feePerByte*BigInt(r)}if(n<e.minFee&&(n=e.minFee),e.extraFee&&(n+=e.extraFee),e.maxFee&&n>e.maxFee)throw new Error(`Transaction fee ${n} \\\\xB5ALGO is greater than maxFee ${e.maxFee} \\\\xB5ALGO`);return n}u();u();var Wce=br(TD(),1),Yce=(0,Wce.default)({useNativeBigInt:!0,strict:!0});function $d(t){return Yce.parse(t,(e,n)=>(n!=null&&typeof n==\"object\"&&Object.getPrototypeOf(n)==null&&Object.setPrototypeOf(n,Object.prototype),typeof n==\"bigint\"?n>Number.MAX_SAFE_INTEGER?n:Number(n):n))}function Ac(t,e,n){return Yce.stringify(t,e,n)}u();var rz={name:\"MultisigSignature\",kind:\"object\",fields:[{name:\"version\",wireKey:\"v\",optional:!1,codec:Pt},{name:\"threshold\",wireKey:\"thr\",optional:!1,codec:Pt},{name:\"subsigs\",wireKey:\"subsig\",optional:!1,codec:new Cn(new Ke({name:\"MultisigSubsignature\",kind:\"object\",fields:[{name:\"publicKey\",wireKey:\"pk\",optional:!1,codec:Nr},{name:\"sig\",wireKey:\"s\",optional:!0,codec:Po}]}))}]},_Be={name:\"LogicSignature\",kind:\"object\",fields:[{name:\"logic\",wireKey:\"l\",optional:!1,codec:Xt},{name:\"args\",wireKey:\"arg\",optional:!0,codec:Pi},{name:\"sig\",wireKey:\"sig\",optional:!0,codec:Po},{name:\"msig\",wireKey:\"msig\",optional:!0,codec:new Ke(rz)},{name:\"lmsig\",wireKey:\"lmsig\",optional:!0,codec:new Ke(rz)}]},MBe=new Ke(rz),gC=new Ke(_Be),Kd={name:\"SignedTransaction\",kind:\"object\",fields:[{name:\"txn\",wireKey:\"txn\",optional:!1,codec:v8},{name:\"sig\",wireKey:\"sig\",optional:!0,codec:Po},{name:\"msig\",wireKey:\"msig\",optional:!0,codec:MBe},{name:\"lsig\",wireKey:\"lsig\",optional:!0,codec:gC},{name:\"authAddress\",wireKey:\"sgnr\",optional:!0,codec:Jn}]},oz=new Ke(Kd);function Dm(t){return Ec(oz.encode(t,\"msgpack\"))}function Fm(t){let e=_s(t);return oz.decode(e,\"msgpack\")}function yC(t){return t.map(e=>Fm(e))}function Om(t){Pm(t.txn);let e=[t.sig,t.msig,t.lsig].filter(n=>n!==void 0).length;if(e>1)throw new Error(`Only one signature type can be set, found ${e}`);if(t.sig&&t.sig.length!==64)throw new Error(\"Signature must be 64 bytes\")}u();var IBe=Uint8Array.from([77,88]);function Nv(t){let{ed25519Pubkey:e,rawEd25519Signer:n}=t,r=new Yr(e),o=t.sendingAddress??r;return{addr:o,signer:async(p,m)=>{let g=[];for(let y of m){let A=p[y],T={txn:A,sig:await n(x8(A))};A.sender.equals(o)||(T.authAddress=r),g.push(T)}return g.map(y=>(Om(y),Dm(y)))},lsigSigner:async(p,m)=>({sig:await n(p.bytesToSignForDelegation(m)),addr:o}),programDataSigner:async(p,m)=>await n(m.programDataToSign(p)),mxBytesSigner:async p=>await n(Ha(IBe,p))}}function Lm(){return(t,e)=>{let n=[];for(let r of e){let o={txn:t[r],sig:new Uint8Array(64).fill(0)};Om(o),n.push(Dm(o))}return Promise.resolve(n)}}u();var Ui=class w8{constructor(e){ge(this,\"amountInMicroAlgo\");this.amountInMicroAlgo=\"microAlgos\"in e?BigInt(e.microAlgos):\"microAlgo\"in e?BigInt(e.microAlgo):\"algos\"in e?BigInt(Xce(Number(e.algos))):BigInt(Xce(Number(e.algo)))}get microAlgos(){return this.amountInMicroAlgo}get microAlgo(){return this.amountInMicroAlgo}get algos(){return Zce(Number(this.amountInMicroAlgo))}get algo(){return Zce(Number(this.amountInMicroAlgo))}toString(){return`${this.microAlgo.toLocaleString(\"en-US\")} \\\\xB5ALGO`}valueOf(){return Number(this.microAlgo)}static Algos(e){return new w8({algos:e})}static Algo(e){return new w8({algos:e})}static MicroAlgos(e){return new w8({microAlgos:e})}static MicroAlgo(e){return new w8({microAlgos:e})}},Jce=1e6,RBe=\"Microalgos should be positive and less than 2^53 - 1.\";function Zce(t){if(t<0||!Number.isSafeInteger(t))throw new Error(RBe);return t/Jce}function Xce(t){let e=t*Jce;return Math.round(e)}Number.prototype.microAlgos=function(){return Ui.MicroAlgo(this)};Number.prototype.algos=function(){return Ui.Algo(this)};Number.prototype.microAlgo=function(){return Ui.MicroAlgo(this)};Number.prototype.algo=function(){return Ui.Algo(this)};BigInt.prototype.microAlgo=function(){return Ui.MicroAlgo(this)};BigInt.prototype.algo=function(){return Ui.Algo(this)};var iz=t=>Ui.MicroAlgo(t);var Ipt=Ui.MicroAlgo(1e3);u();u();u();var Qce=class{constructor(){ge(this,\"listenerWrapperMap\",new WeakMap);ge(this,\"listenerMap\",{});ge(this,\"off\",this.removeListener)}async emitAsync(t,e){for(let n of this.listenerMap[t]??[])await n(e,t)}on(t,e){return this.listenerMap[t]||(this.listenerMap[t]=[]),this.listenerMap[t].push(e),this}once(t,e){let n=async(r,o)=>{try{return await e(r,o)}finally{this.removeListener(o,n)}};return this.listenerWrapperMap.set(e,n),this.on(t,n)}removeListener(t,e){let n=this.listenerWrapperMap.get(e);return n?(this.listenerWrapperMap.delete(e),this.listenerMap[t]?.indexOf(n)!==-1&&this.listenerMap[t].splice(this.listenerMap[t].indexOf(n),1)):this.listenerMap[t]?.indexOf(e)!==-1&&this.listenerMap[t].splice(this.listenerMap[t].indexOf(e),1),this}};u();var ele={error:console.error,warn:console.warn,info:console.info,verbose:()=>{},debug:console.debug};var tle={error:function(t,...e){},warn:function(t,...e){},info:function(t,...e){},verbose:function(t,...e){},debug:function(t,...e){}};var nle=class{constructor(){ge(this,\"config\");this.config={logger:ele,debug:!1,projectRoot:null,traceAll:!1,traceBufferSizeMb:256,maxSearchDepth:10,populateAppCallResources:!0,events:new Qce}}get populateAppCallResources(){return this.config.populateAppCallResources}get logger(){return this.config.logger}get debug(){return this.config.debug}get projectRoot(){return this.config.projectRoot}get traceAll(){return this.config.traceAll}get traceBufferSizeMb(){return this.config.traceBufferSizeMb}get maxSearchDepth(){return this.config.maxSearchDepth}get events(){return this.config.events}getLogger(t){return t?tle:this.logger}withDebug(t){let e=this.config.debug;try{this.config.debug=!0,t()}finally{this.config.debug=e}}configure(t){this.config={...this.config,...t}}};var Cr=new nle;u();var az=t=>{if(typeof t==\"number\")return t;if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new rle(`Cannot convert ${t} to a Number as it is larger than the maximum safe integer the Number type can hold.`);if(t<BigInt(Number.MIN_SAFE_INTEGER))throw new rle(`Cannot convert ${t} to a Number as it is smaller than the minimum safe integer the Number type can hold.`);return Number(t)},rle=class extends Error{},ole=(t,e,n)=>{if(t>e){let r=t-e;return BigInt(Math.max(Number(r),Number(n)))}else return null};function*sz(t,e){for(let n=0;n<t.length;n+=e)yield t.slice(n,n+e)}var ile=t=>{let e=new Map,n=function(r){return(e.has(r)||e.set(r,t.call(this,r)))&&e.get(r)};return n.cache=e,n},cz=(t,e)=>{if(e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0},lz=(t,e)=>{if(typeof e==\"bigint\")try{return az(e)}catch{return e.toString()}return e},Gd=(t,e=lz,n)=>JSON.stringify(t,e,n),Uv=(t,e)=>Math.floor((t.length+(e?.length??0)-1)/2048);u();function ale(t){if(!(t===null||typeof t>\"u\"))if(typeof t==\"object\"&&t.constructor===Uint8Array){if(t.length===0||t.length>32)throw new Error(`Received invalid lease; expected something with length between 1 and 32, but received bytes with length ${t.length}`);if(t.length===32)return t;let e=new Uint8Array(32);return e.set(t,0),e}else if(typeof t==\"string\"){if(t.length===0||t.length>32)throw new Error(`Received invalid lease; expected something with length between 1 and 32, but received \\'${t}\\' with length ${t.length}`);let e=new TextEncoder,n=new Uint8Array(32);return n.set(e.encode(t),0),n}else throw new Error(`Unknown lease type received of ${typeof t}`)}var sle=async function(t,e,n){if(e<0)throw new Error(`Invalid timeout, received ${e}, expected > 0`);let r=await n.status();if(r===void 0)throw new Error(\"Unable to get node status\");let o=BigInt(r.lastRound)+1n,a=o;for(;a<o+BigInt(e);){try{let c=await n.pendingTransactionInformation(t);if(c!==void 0){let l=c.confirmedRound;if(l&&l>0)return c;{let f=c.poolError;if(f!=null&&f.length>0)throw new Error(`Transaction ${t} was rejected; pool error: ${f}`)}}}catch(c){if(\"status\"in c&&c.status===404){a++;continue}}await n.statusAfterBlock(az(a)),a++}throw new Error(`Transaction ${t} not confirmed after ${e} rounds`)};u();u();var uz=t=>{if(t===void 0)return;let e=new TextEncoder;return typeof t==\"string\"?e.encode(t):t},ta=(t,e,n)=>{let r=t.firstValidRound??e.firstValid,o=t.lease===void 0?void 0:ale(t.lease),a=uz(t.note);return{sender:cr(t.sender),rekeyTo:yi(t.rekeyTo),note:a,lease:o,fee:t.staticFee?.microAlgos,genesisId:e.genesisId,genesisHash:e.genesisHash,firstValid:r,lastValid:t.lastValidRound??(t.validityWindow!==void 0?r+BigInt(t.validityWindow):r+n),group:void 0}};var cle=async(t,e,n,r)=>{let o=ta(t,n,r),a=typeof t.approvalProgram==\"string\"?(await e.compileTeal(t.approvalProgram)).compiledBase64ToBytes:t.approvalProgram,c=typeof t.clearStateProgram==\"string\"?(await e.compileTeal(t.clearStateProgram)).compiledBase64ToBytes:t.clearStateProgram,l=t.schema?.globalByteSlices!==void 0||t.schema?.globalInts!==void 0?{numByteSlices:t.schema?.globalByteSlices??0,numUints:t.schema?.globalInts??0}:void 0,f=t.schema?.localByteSlices!==void 0||t.schema?.localInts!==void 0?{numByteSlices:t.schema?.localByteSlices??0,numUints:t.schema?.localInts??0}:void 0,p=t.extraProgramPages!==void 0?t.extraProgramPages:Uv(a,c),m=t.accessReferences&&t.accessReferences.length>0;return new Mo({...o,type:Er.AppCall,appCall:{appId:0n,onComplete:t.onComplete??Co.NoOp,approvalProgram:a,clearStateProgram:c,globalStateSchema:l,localStateSchema:f,extraProgramPages:p,args:t.args,...m?{accessReferences:t.accessReferences}:{accountReferences:t.accountReferences?.map(g=>cr(g)),appReferences:t.appReferences,assetReferences:t.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})},lle=async(t,e,n,r)=>{let o=ta(t,n,r),a=typeof t.approvalProgram==\"string\"?(await e.compileTeal(t.approvalProgram)).compiledBase64ToBytes:t.approvalProgram,c=typeof t.clearStateProgram==\"string\"?(await e.compileTeal(t.clearStateProgram)).compiledBase64ToBytes:t.clearStateProgram,l=t.accessReferences&&t.accessReferences.length>0;return new Mo({...o,type:Er.AppCall,appCall:{appId:t.appId,onComplete:Co.UpdateApplication,approvalProgram:a,clearStateProgram:c,args:t.args,...l?{accessReferences:t.accessReferences}:{accountReferences:t.accountReferences?.map(f=>cr(f)),appReferences:t.appReferences,assetReferences:t.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})},ule=(t,e,n)=>{let r=ta(t,e,n),o=t.accessReferences&&t.accessReferences.length>0;return new Mo({...r,type:Er.AppCall,appCall:{appId:t.appId,onComplete:t.onComplete??Co.NoOp,args:t.args,...o?{accessReferences:t.accessReferences}:{accountReferences:t.accountReferences?.map(a=>cr(a)),appReferences:t.appReferences,assetReferences:t.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})};function dle(t,e,n){if(t.type!==Er.AppCall||t.appCall===void 0)return;if(e.boxes||e.extraBoxRefs)throw new Error(\"Unexpected boxes at the transaction level\");if(e.appLocals)throw new Error(\"Unexpected app locals at the transaction level\");if(e.assetHoldings)throw new Error(\"Unexpected asset holdings at the transaction level\");let r=0,o=0,a=0,c=t.appCall.boxReferences?.length??0;if(e.accounts){t.appCall.accountReferences=t.appCall.accountReferences??[];for(let l of e.accounts){let f=l;t.appCall.accountReferences.some(p=>p.equals(f))||t.appCall.accountReferences.push(f)}r=t.appCall.accountReferences.length}if(e.apps){t.appCall.appReferences=t.appCall.appReferences??[];for(let l of e.apps)t.appCall.appReferences.includes(l)||t.appCall.appReferences.push(l);o=t.appCall.appReferences.length}if(e.assets){t.appCall.assetReferences=t.appCall.assetReferences??[];for(let l of e.assets)t.appCall.assetReferences.includes(l)||t.appCall.assetReferences.push(l);a=t.appCall.assetReferences.length}if(r+a+o+c>8)throw new Error(`Resource reference limit of 8 exceeded in transaction ${n}`)}var Bi=(function(t){return t[t.Account=0]=\"Account\",t[t.App=1]=\"App\",t[t.Asset=2]=\"Asset\",t[t.Box=3]=\"Box\",t[t.ExtraBoxRef=4]=\"ExtraBoxRef\",t[t.AssetHolding=5]=\"AssetHolding\",t[t.AppLocal=6]=\"AppLocal\",t})(Bi||{});function fle(t,e){let n=[...e.accounts??[]],r=[...e.apps??[]],o=[...e.assets??[]],a=[...e.boxes??[]];if(e.appLocals&&e.appLocals.forEach(c=>{Zg(t,{type:Bi.AppLocal,data:c}),n=n.filter(l=>l!==c.address),r=r.filter(l=>l!==c.appId)}),e.assetHoldings&&e.assetHoldings.forEach(c=>{Zg(t,{type:Bi.AssetHolding,data:c}),n=n.filter(l=>l!==c.address),o=o.filter(l=>l!==c.assetId)}),n.forEach(c=>{Zg(t,{type:Bi.Account,data:c})}),a.forEach(c=>{Zg(t,{type:Bi.Box,data:{appId:c.appId,name:c.name}}),r=r.filter(l=>l!==c.appId)}),o.forEach(c=>{Zg(t,{type:Bi.Asset,data:c})}),r.forEach(c=>{Zg(t,{type:Bi.App,data:c})}),e.extraBoxRefs)for(let c=0;c<e.extraBoxRefs;c++)Zg(t,{type:Bi.ExtraBoxRef})}function dz(t){if(t.type!==Er.AppCall||t.appCall?.accessReferences?.length)return!1;let e=t.appCall?.accountReferences?.length||0,n=t.appCall?.assetReferences?.length||0,r=t.appCall?.appReferences?.length||0,o=t.appCall?.boxReferences?.length||0;return e+n+r+o<8}function Zg(t,e){if(e.type===Bi.AssetHolding||e.type===Bi.AppLocal){let o=e.data.address,a=t.findIndex(l=>{if(!dz(l))return!1;let f=l.appCall;if(f.accountReferences?.some(p=>p.equals(o)))return!0;if(f.appReferences){for(let p of f.appReferences)if(o===Hl(p))return!0}return!!l.sender.equals(o)});if(a!==-1){let l=t[a].appCall;e.type===Bi.AssetHolding?(l.assetReferences=l.assetReferences??[],l.assetReferences.includes(e.data.assetId)||l.assetReferences.push(e.data.assetId)):(l.appReferences=l.appReferences??[],l.appReferences.includes(e.data.appId)||l.appReferences.push(e.data.appId));return}let c=t.findIndex(l=>{if(!dz(l))return!1;let f=l.appCall;return(f.accountReferences?.length??0)>=8?!1:e.type===Bi.AssetHolding?f.assetReferences?.includes(e.data.assetId)||!1:f.appReferences?.includes(e.data.appId)||f.appId===e.data.appId});if(c!==-1){let l=t[c].appCall;l.accountReferences=l.accountReferences??[],l.accountReferences.includes(o)||l.accountReferences.push(o);return}}if(e.type===Bi.Box){let o=t.findIndex(a=>{if(!dz(a))return!1;let c=a.appCall;return c.appReferences?.includes(e.data.appId)||c.appId===e.data.appId});if(o!==-1){let a=t[o].appCall;a.boxReferences=a.boxReferences??[],a.boxReferences.some(c=>c.appId===e.data.appId&&c.name.length===e.data.name.length&&c.name.every((l,f)=>l===e.data.name[f]))||a.boxReferences.push({appId:e.data.appId,name:e.data.name});return}}let n=t.findIndex(o=>{if(o.type!==Er.AppCall||o.appCall?.accessReferences?.length)return!1;let a=o.appCall,c=a.accountReferences?.length??0,l=a.assetReferences?.length??0,f=a.appReferences?.length??0,p=a.boxReferences?.length??0;switch(e.type){case Bi.Account:return c+l+f+p<8;case Bi.AssetHolding:case Bi.AppLocal:return c+l+f+p<7;case Bi.Box:return e.data.appId!==0n?c+l+f+p<7:c+l+f+p<8;default:return c+l+f+p<8}});if(n===-1)throw new Error(\"No more transactions below reference limit. Add another app call to the group.\");let r=t[n].appCall;switch(e.type){case Bi.Account:{r.accountReferences=r.accountReferences??[];let o=e.data;r.accountReferences.some(a=>a.equals(o))||r.accountReferences.push(o);break}case Bi.App:r.appReferences=r.appReferences??[],r.appReferences.includes(e.data)||r.appReferences.push(e.data);break;case Bi.Box:r.boxReferences=r.boxReferences??[],r.boxReferences.some(o=>o.appId===e.data.appId&&o.name.length===e.data.name.length&&o.name.every((a,c)=>a===e.data.name[c]))||r.boxReferences.push({appId:e.data.appId,name:e.data.name}),e.data.appId!==0n&&(r.appReferences=r.appReferences??[],r.appReferences.includes(e.data.appId)||r.appReferences.push(e.data.appId));break;case Bi.ExtraBoxRef:r.boxReferences=r.boxReferences??[],r.boxReferences.push({appId:0n,name:new Uint8Array(0)});break;case Bi.AssetHolding:{r.assetReferences=r.assetReferences??[],r.assetReferences.includes(e.data.assetId)||r.assetReferences.push(e.data.assetId);let o=e.data.address;r.accountReferences=r.accountReferences??[],r.accountReferences.some(a=>a.equals(o))||r.accountReferences.push(o);break}case Bi.AppLocal:{r.appReferences=r.appReferences??[],r.appReferences.includes(e.data.appId)||r.appReferences.push(e.data.appId);let o=e.data.address;r.accountReferences=r.accountReferences??[],r.accountReferences.some(a=>a.equals(o))||r.accountReferences.push(o);break}case Bi.Asset:r.assetReferences=r.assetReferences??[],r.assetReferences.includes(e.data)||r.assetReferences.push(e.data);break}}u();var ple=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.AssetTransfer,assetTransfer:{assetId:t.assetId,amount:t.amount,receiver:cr(t.receiver),assetSender:yi(t.clawbackTarget),closeRemainderTo:yi(t.closeAssetTo)}}),hle=(t,e,n)=>{let r=ta(t,e,n);return new Mo({...r,type:Er.AssetTransfer,assetTransfer:{assetId:t.assetId,amount:0n,receiver:r.sender}})},mle=(t,e,n)=>{let r=ta(t,e,n);return new Mo({...r,type:Er.AssetTransfer,assetTransfer:{assetId:t.assetId,amount:0n,receiver:r.sender,closeRemainderTo:yi(t.creator)}})};u();var zv=(function(t){return t.TxnGroupSimulated=\"TxnGroupSimulated\",t.AppCompiled=\"AppCompiled\",t})({});u();function vC(t){return t===\"devnet-v1\"||t===\"sandnet-v1\"||t===\"dockernet-v1\"}u();var gle=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.AssetConfig,assetConfig:{assetId:0n,total:t.total,decimals:t.decimals,defaultFrozen:t.defaultFrozen,assetName:t.assetName,unitName:t.unitName,url:t.url,metadataHash:uz(t.metadataHash),manager:yi(t.manager),reserve:yi(t.reserve),freeze:yi(t.freeze),clawback:yi(t.clawback)}}),yle=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.AssetConfig,assetConfig:{assetId:t.assetId,manager:yi(t.manager),reserve:yi(t.reserve),freeze:yi(t.freeze),clawback:yi(t.clawback)}}),vle=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.AssetFreeze,assetFreeze:{assetId:t.assetId,freezeTarget:cr(t.freezeTarget),frozen:t.frozen}}),xle=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.AssetConfig,assetConfig:{assetId:t.assetId}});u();var E8=(function(t){return t[t.Deficit=0]=\"Deficit\",t[t.Surplus=1]=\"Surplus\",t})({}),Gi={fromBigInt(t){if(t>0n)return{type:E8.Deficit,data:t};if(t<0n)return{type:E8.Surplus,data:-t}},toBigInt(t){return t.type===E8.Deficit?t.data:-t.data},isDeficit(t){return t.type===E8.Deficit},isSurplus(t){return t.type===E8.Surplus},amount(t){return t.data},add(t,e){return Gi.fromBigInt(Gi.toBigInt(t)+Gi.toBigInt(e))}},BBe=class ble{getPriorityType(){return 0}getDeficitAmount(){return 0n}compare(e){let n=this.getPriorityType()-e.getPriorityType();return n!==0?n:0}equals(e){return e instanceof ble}},DBe=class fz{constructor(e){this.deficit=e}getPriorityType(){return 1}getDeficitAmount(){return this.deficit}compare(e){let n=this.getPriorityType()-e.getPriorityType();return n!==0?n:e instanceof fz?Number(this.deficit-e.deficit):0}equals(e){return e instanceof fz&&this.deficit===e.deficit}},FBe=class pz{constructor(e){this.deficit=e}getPriorityType(){return 2}getDeficitAmount(){return this.deficit}compare(e){let n=this.getPriorityType()-e.getPriorityType();return n!==0?n:e instanceof pz?Number(this.deficit-e.deficit):0}equals(e){return e instanceof pz&&this.deficit===e.deficit}},xC={Covered:new BBe,ModifiableDeficit(t){return new DBe(t)},ImmutableDeficit(t){return new FBe(t)}};function hz(t,e=1000n,n){return t?t.reduceRight((r,o)=>{let a=hz(o.innerTxns,e,r),c=Gi.fromBigInt(e-(o.txn.txn.fee??0n)),l=Gi.fromBigInt((a?Gi.toBigInt(a):0n)+(c?Gi.toBigInt(c):0n));if(!(l&&Gi.isSurplus(l)))return l},n):n}u();var wle=(t,e,n)=>{let r=ta(t,e,n);return\"voteKey\"in t?new Mo({...r,type:Er.KeyRegistration,keyRegistration:{voteKey:t.voteKey,selectionKey:t.selectionKey,voteFirst:t.voteFirst,voteLast:t.voteLast,voteKeyDilution:t.voteKeyDilution,nonParticipation:!1,stateProofKey:t.stateProofKey}}):new Mo({...r,type:Er.KeyRegistration,keyRegistration:{nonParticipation:t.preventAccountFromEverParticipatingAgain}})};u();u();u();function S8(t,e){let n=t.toString(16);n.length!==e*2&&(n=n.padStart(e*2,\"0\"));let r=new Uint8Array(n.length/2);for(let o=0,a=0;o<n.length/2;o++,a+=2)r[o]=parseInt(n.slice(a,a+2),16);return r}function mz(t){let e=BigInt(0),n=new DataView(t.buffer,t.byteOffset);for(let r=0;r<t.length;r++)e=BigInt(Number(n.getUint8(r)))+e*BigInt(256);return e}u();function Ele(t){return!Array.isArray(t)&&\"structFields\"in t}function Sle(t,e){let n=(r,o)=>r.map(({type:a},c)=>{if(Array.isArray(a)){let l=o[c];return n(a,Object.values(l))}if(Ele(a)){let l=o[c];return n(a.structFields,Object.values(l))}return o[c]});return n(t.structFields,Object.values(e))}function Ale(t,e){let n=(r,o)=>Object.fromEntries(r.map(({name:a,type:c},l)=>{if(Array.isArray(c)){let f=o[l];return[a,n(c,f)]}if(Ele(c)){let f=o[l];return[a,n(c.structFields,f)]}return[a,o[l]]}));return n(t.structFields,e)}var OBe=/^([a-z\\\\d[\\\\](),]+)\\\\[(0|[1-9][\\\\d]*)]$/,LBe=/^ufixed([1-9][\\\\d]*)x([1-9][\\\\d]*)$/,k8=2**16-1,vi=class bC{get displayName(){return this.name}toString(){return this.name}static from(e){if(e.endsWith(\"[]\"))return new VBe(bC.from(e.slice(0,e.length-2)));if(e.endsWith(\"]\")){let n=e.match(OBe);if(!n||n.length!==3)throw new Error(`Malformed static array string: ${e}`);let r=n[2],o=parseInt(r,10);if(o>k8)throw new Error(`Array length exceeds limit ${k8}`);return new zBe(bC.from(n[1]),o)}if(e.startsWith(\"uint\")){let n=a=>[...a].every(c=>\"0123456789\".includes(c)),r=e.slice(4,e.length);if(!n(r))throw new Error(`Malformed uint string: ${r}`);let o=parseInt(r,10);if(o>k8)throw new Error(`Malformed uint string: ${o}`);return new C8(o)}if(e===\"byte\")return new vz;if(e.startsWith(\"ufixed\")){let n=e.match(LBe);if(!n||n.length!==3)throw new Error(`Malformed ufixed type: ${e}`);return new NBe(parseInt(n[1],10),parseInt(n[2],10))}if(e===\"bool\")return new Vv;if(e===\"address\")return new yz;if(e===\"string\")return new UBe;if(e.length>=2&&e[0]===\"(\"&&e[e.length-1]===\")\"){let n=xz(e.slice(1,e.length-1)),r=[];for(let o=0;o<n.length;o++){let a=bC.from(n[o]);r.push(a)}return new Hv(r)}throw new Error(`Cannot convert a string ${e} to an ABI type`)}},C8=class kle extends vi{constructor(e){if(super(),this.bitSize=e,e%8!==0||e<8||e>512)throw new Error(`Unsupported uint type bitSize: ${e}`)}get name(){return`uint${this.bitSize}`}equals(e){return e instanceof kle&&this.bitSize===e.bitSize}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!=\"bigint\"&&typeof e!=\"number\")throw new Error(`Cannot encode value as ${this.name}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size ${this.name}`);if(typeof e==\"number\"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return S8(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`Byte string must correspond to a ${this.name}`);let n=mz(e);return this.bitSize<53?Number(n):n}},NBe=class Cle extends vi{constructor(e,n){if(super(),this.bitSize=e,this.precision=n,e%8!==0||e<8||e>512)throw new Error(`Unsupported ufixed type bitSize: ${e}`);if(n>160||n<1)throw new Error(`Unsupported ufixed type precision: ${n}`)}get name(){return`ufixed${this.bitSize}x${this.precision}`}equals(e){return e instanceof Cle&&this.bitSize===e.bitSize&&this.precision===e.precision}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!=\"bigint\"&&typeof e!=\"number\")throw new Error(`Cannot encode value as ${this.name}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size ${this.name}`);if(typeof e==\"number\"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return S8(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`Byte string must correspond to a ${this.name}`);let n=mz(e);return this.bitSize<53?Number(n):n}},yz=class Tle extends vi{get name(){return\"address\"}equals(e){return e instanceof Tle}isDynamic(){return!1}byteLen(){return 32}encode(e){if(typeof e==\"string\")return Yr.fromString(e).publicKey;if(e instanceof Yr)return e.publicKey;if(e instanceof Uint8Array&&e.length===32)return e;throw new Error(`Cannot encode value as address: ${e}`)}decode(e){return new Yr(e).toString()}},Vv=class _le extends vi{get name(){return\"bool\"}equals(e){return e instanceof _le}isDynamic(){return!1}byteLen(){return 1}encode(e){if(typeof e!=\"boolean\")throw new Error(`Cannot encode value as bool: ${e}`);return e?new Uint8Array([128]):new Uint8Array([0])}decode(e){if(e.length!==1)throw new Error(`Expected 1 byte for bool, got ${e.length}`);return(e[0]&128)!==0}},vz=class Mle extends vi{get name(){return\"byte\"}equals(e){return e instanceof Mle}isDynamic(){return!1}byteLen(){return 1}encode(e){if(typeof e!=\"number\"&&typeof e!=\"bigint\")throw new Error(`Cannot encode value as byte: ${e}`);let n=typeof e==\"bigint\"?Number(e):e;if(e<0||e>255)throw new Error(`Byte value must be between 0 and 255, got ${n}`);return new Uint8Array([n])}decode(e){if(e.length!==1)throw new Error(`Expected 1 byte for byte type, got ${e.length}`);return e[0]}},UBe=class Ile extends vi{get name(){return\"string\"}equals(e){return e instanceof Ile}isDynamic(){return!0}byteLen(){throw new Error(\"Failed to get size, string is a dynamic type\")}encode(e){if(typeof e!=\"string\"&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as string: ${e}`);let n;typeof e==\"string\"?n=new TextEncoder().encode(e):n=e;let r=S8(n.length,2),o=new Uint8Array(n.length+2);return o.set(r),o.set(n,2),o}decode(e){if(e.length<2)throw new Error(`Byte string is too short to be decoded. Actual length is ${e.length}, but expected at least 2`);let n=new DataView(e.buffer,e.byteOffset,2).getUint16(0),r=e.slice(2,e.length);if(n!==r.length)throw new Error(`String length bytes do not match the actual length of string. Expected ${n}, got ${r.length}`);return new TextDecoder(\"utf-8\").decode(r)}},Hv=class Rle extends vi{constructor(e){if(super(),this.childTypes=e,e.length>k8)throw new Error(`Tuple has too many child types: ${e.length}`)}get name(){let e=[];for(let n=0;n<this.childTypes.length;n++)e[n]=this.childTypes[n].name;return`(${e.join(\",\")})`}equals(e){return!(e instanceof Rle)||this.childTypes.length!==e.childTypes.length?!1:this.childTypes.every((n,r)=>n.equals(e.childTypes[r]))}isDynamic(){return this.childTypes.some(e=>e.isDynamic())}byteLen(){let e=0,n=0;for(;n<this.childTypes.length;){let r=this.childTypes[n];if(r instanceof Vv){let o=gz(this.childTypes,n),a=o-n+1;e+=Math.ceil(a/8),n=o+1}else e+=r.byteLen(),n++}return e}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);let n=Array.from(e);if(this.childTypes.length!==n.length)throw new Error(\"Mismatch lengths between the values and types\");let r=[],o=[],a=new Map,c=0;for(;c<this.childTypes.length;){let y=this.childTypes[c];if(y.isDynamic())a.set(r.length,!0),r.push(new Uint8Array(2)),o.push(y.encode(n[c]));else{if(y instanceof Vv){let A=gz(this.childTypes,c),T=HBe(n.slice(c,A+1));r.push(new Uint8Array([T])),c=A}else r.push(y.encode(n[c]));a.set(c,!1),o.push(new Uint8Array(0))}c+=1}let l=r.reduce((y,A)=>y+A.length,0),f=0;for(let y=0;y<r.length;y++){if(a.get(y)){let A=l+f;if(A>65535)throw new Error(`Value ${A} cannot fit in u16`);r[y]=new Uint8Array([A>>8&255,A&255])}f+=o[y].length}let p=r.reduce((y,A)=>y+A.length,0)+o.reduce((y,A)=>y+A.length,0),m=new Uint8Array(p),g=0;for(let y of r)m.set(y,g),g+=y.length;for(let y of o)m.set(y,g),g+=y.length;return m}decode(e){let n=jBe(this.childTypes,e),r=[];for(let o=0;o<this.childTypes.length;o++){let a=this.childTypes[o].decode(n[o]);r.push(a)}return r}},zBe=class Ple extends vi{constructor(e,n){if(super(),this.childType=e,this.length=n,n<0||n>k8)throw new Error(`Invalid static array length: ${n}`)}get name(){return`${this.childType.name}[${this.length}]`}equals(e){return e instanceof Ple&&this.childType.equals(e.childType)&&this.length===e.length}isDynamic(){return this.childType.isDynamic()}byteLen(){return this.childType instanceof Vv?Math.ceil(this.length/8):this.childType.byteLen()*this.length}toABITupleType(){return new Hv(Array(this.length).fill(this.childType))}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.name}: ${e}`);if(e.length!==this.length)throw new Error(`Value array does not match static array length. Expected ${this.length}, got ${e.length}`);return this.toABITupleType().encode(e)}decode(e){let n=this.toABITupleType().decode(e);return this.childType instanceof vz&&Array.isArray(n)?new Uint8Array(n):n}},VBe=class Ble extends vi{constructor(e){super(),this.childType=e}get name(){return`${this.childType.name}[]`}equals(e){return e instanceof Ble&&this.childType.equals(e.childType)}isDynamic(){return!0}byteLen(){throw new Error(\"Failed to get size, dynamic array is a dynamic type\")}toABITupleType(e){return new Hv(Array(e).fill(this.childType))}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.name}: ${e}`);let n=this.toABITupleType(e.length),r=n.encode(e);return Ha(S8(n.childTypes.length,2),r)}decode(e){let n=new DataView(e.buffer,0,2).getUint16(0),r=this.toABITupleType(n).decode(e.slice(2,e.length));return this.childType instanceof vz&&Array.isArray(r)?new Uint8Array(r):r}},T8=class A8 extends vi{constructor(e,n){super(),this.structName=e,this.structFields=n}get name(){return this.toABITupleType().name}get displayName(){return this.structName}equals(e){return!(e instanceof A8)||this.structName!==e.structName||this.structFields.length!==e.structFields.length?!1:this.structFields.every((n,r)=>{let o=e.structFields[r];return n.name!==o.name?!1:Array.isArray(n.type)&&Array.isArray(o.type)?JSON.stringify(n.type)===JSON.stringify(o.type):n.type instanceof vi&&o.type instanceof vi?n.type.equals(o.type):!1})}isDynamic(){return this.toABITupleType().isDynamic()}byteLen(){return this.toABITupleType().byteLen()}toABITupleType(){let e=n=>new Hv(n.map(r=>Array.isArray(r.type)?e(r.type):r.type instanceof A8?r.type.toABITupleType():r.type));return e(this.structFields)}static fromStruct(e,n){let r=a=>Array.isArray(a)?a.map(c=>({name:c.name,type:r(c.type)})):n[a]?A8.fromStruct(a,n):vi.from(a);if(!n[e])throw new Error(\"Struct not found\");let o=n[e];return new A8(e,o.map(a=>({name:a.name,type:r(a.type)})))}encode(e){if(e instanceof Uint8Array||e instanceof Yr||typeof e!=\"object\")throw new Error(`Cannot encode value as ${this.name}: ${e}`);let n=this.toABITupleType();if(Array.isArray(e))return n.encode(e);let r=Sle(this,e);return n.encode(r)}decode(e){let n=this.toABITupleType().decode(e);return Ale(this,n)}};function HBe(t){if(t.length>8)throw new Error(`Expected no more than 8 bool values, received ${t.length}`);let e=0;for(let n=0;n<t.length;n++){if(typeof t[n]!=\"boolean\")throw new Error(\"Expected all values to be boolean\");t[n]&&(e|=1<<7-n)}return e}function gz(t,e){let n=e;for(;n<t.length;)if(t[n]instanceof Vv){if(n-e+1===8||n===t.length-1)return n;n++}else return n-1;return n-1}function jBe(t,e){let n=[],r=[],o=0,a=0;for(;a<t.length;){let f=t[a];if(f.isDynamic()){if(e.length-o<2)throw new Error(\"Byte array is too short to be decoded\");let p=e[o]<<8|e[o+1];if(n.length>0){let m=n[n.length-1];if(p<m.left)throw new Error(\"Dynamic index segment miscalculation: left is greater than right index\");m.right=p}n.push({left:p,right:0}),r.push(null),o+=2}else if(f instanceof Vv){let p=gz(t,a);for(let m=0;m<=p-a;m++){let g=128>>m;(e[o]&g)>0?r.push(new Uint8Array([128])):r.push(new Uint8Array([0]))}a=p,o+=1}else{let p=f.byteLen();if(o+p>e.length)throw new Error(`Index out of bounds, trying to access bytes[${o}..${o+p}] but slice has length ${e.length}`);r.push(e.slice(o,o+p)),o+=p}if(a!==t.length-1&&o>=e.length)throw new Error(\"Input bytes not enough to decode\");a+=1}if(n.length>0){let f=n[n.length-1];f.right=e.length}else if(o<e.length)throw new Error(\"Input bytes not fully consumed\");for(let f=0;f<n.length;f++){let p=n[f];if(p.left>p.right)throw new Error(\"Dynamic segment should display a [l, r] space with l <= r\");if(f!==n.length-1&&p.right!==n[f+1].left)throw new Error(\"Dynamic segments should be consecutive\")}let c=0;for(let f=0;f<t.length;f++)t[f].isDynamic()&&(r[f]=e.slice(n[c].left,n[c].right),c+=1);let l=[];for(let f=0;f<r.length;f++){let p=r[f];if(p===null)throw new Error(`Value partition at index ${f} is None`);l.push(p)}return l}function xz(t){if(t===\"\")return[];if(t.startsWith(\",\"))throw new Error(\"The content should not start with comma\");if(t.endsWith(\",\"))throw new Error(\"The content should not end with comma\");if(t.includes(\",,\"))throw new Error(\"The content should not have consecutive commas\");let e=[],n=0,r=\"\";for(let o of t)r+=o,o===\"(\"?n+=1:o===\")\"?n-=1:o===\",\"&&n===0&&(r=r.slice(0,-1),e.push(r),r=\"\");if(r!==\"\"&&e.push(r),n!==0)throw new Error(\"The content has mismatched parentheses\");return e}u();var Xg=(function(t){return t.Txn=\"txn\",t.Payment=\"pay\",t.KeyRegistration=\"keyreg\",t.AssetConfig=\"acfg\",t.AssetTransfer=\"axfer\",t.AssetFreeze=\"afrz\",t.AppCall=\"appl\",t})({}),jv=(function(t){return t.Account=\"account\",t.Application=\"application\",t.Asset=\"asset\",t})({}),$Be=class Ole{constructor(e){ge(this,\"name\");ge(this,\"description\");ge(this,\"args\");ge(this,\"returns\");ge(this,\"events\");ge(this,\"readonly\");this.name=e.name,this.description=e.description,this.args=e.args,this.returns=e.returns,this.events=e.events,this.readonly=e.readonly}getSignature(){let e=this.args.map(n=>_p(n.type)||$v(n.type)?n.type:n.type.name).join(\",\");return`${this.name}(${e})${this.returns.type===\"void\"?\"void\":this.returns.type.name}`}getSelector(){let e=Kg(new TextEncoder().encode(this.getSignature()));return new Uint8Array(e.slice(0,4))}static fromSignature(e){let n=e.indexOf(\"(\");if(n===-1)throw new Error(`Invalid method signature: ${e}`);let r=-1,o=0;for(let f=n;f<e.length;f++){let p=e[f];if(p===\"(\")o+=1;else if(p===\")\"){if(o===0)break;if(o-=1,o===0){r=f;break}}}if(r===-1)throw new Error(`Invalid method signature: ${e}`);let a=e.slice(0,n),c=xz(e.slice(n+1,r)).map(f=>_p(f)||$v(f)?{type:f}:{type:vi.from(f)}),l=e.slice(r+1);return new Ole({name:a,args:c,returns:{type:l===\"void\"?\"void\":vi.from(l)}})}};function Nm(t,e){if(t.includes(\"(\")){let n=e.methods.find(r=>Fle(r)===t);if(!n)throw new Error(`Unable to find method ${t} in ${e.name} app.`);return Dle(n,e)}else{let n=e.methods.filter(r=>r.name===t);if(n.length===0)throw new Error(`Unable to find method ${t} in ${e.name} app.`);if(n.length>1)throw new Error(`Received a call to method ${t} in contract ${e.name}, but this resolved to multiple methods; please pass in an ABI signature instead: ${e.methods.map(r=>Fle(r)).join(\", \")}`);return Dle(n[0],e)}}function Dle(t,e){if(typeof t.name!=\"string\"||typeof t.returns!=\"object\"||!Array.isArray(t.args))throw new Error(\"Invalid ABIMethod parameters\");let n=t.args.map(({type:o,name:a,desc:c,struct:l,defaultValue:f})=>{let p=f?{data:f.data,source:f.source,type:f.type?bz(f.type)?f.type:vi.from(f.type):void 0}:void 0;return _p(o)||$v(o)?{type:o,name:a,description:c,defaultValue:p}:l?{type:T8.fromStruct(l,e.structs),name:a,description:c,defaultValue:p}:{type:vi.from(o),name:a,description:c,defaultValue:p}}),r={type:t.returns.type===\"void\"?\"void\":t.returns.struct?T8.fromStruct(t.returns.struct,e.structs):vi.from(t.returns.type),description:t.returns.desc};return new $Be({name:t.name,description:t.desc,args:n,returns:r,events:t.events,readonly:t.readonly})}function _p(t){return typeof t==\"string\"&&(t===Xg.Txn||t===Xg.Payment||t===Xg.KeyRegistration||t===Xg.AssetConfig||t===Xg.AssetTransfer||t===Xg.AssetFreeze||t===Xg.AppCall)}function $v(t){return typeof t==\"string\"&&(t===jv.Account||t===jv.Application||t===jv.Asset)}function Fle(t){let e=t.args.map(n=>n.type).join(\",\");return`${t.name}(${e})${t.returns.type}`}function KBe(t,e){switch(t){case\"AVMString\":return globalThis.Buffer.from(e).toString(\"utf-8\");case\"AVMBytes\":return e;case\"AVMUint64\":return vi.from(\"uint64\").decode(e)}}function GBe(t,e){switch(t){case\"AVMString\":return vi.from(\"string\").encode(e);case\"AVMBytes\":if(typeof e==\"string\")return globalThis.Buffer.from(e,\"utf-8\");if(typeof e!=\"object\"||!(e instanceof Uint8Array))throw new Error(`Expected bytes value for AVMBytes, but got ${e}`);return e;case\"AVMUint64\":return vi.from(\"uint64\").encode(e)}}function bz(t){return typeof t==\"string\"&&(t===\"AVMString\"||t===\"AVMBytes\"||t===\"AVMUint64\")}function kc(t,e){return t===jv.Asset||t===jv.Application?new C8(64).decode(e):t===jv.Account?new yz().decode(e):bz(t)?KBe(t,e):t.decode(e)}function wz(t,e){return bz(t)?GBe(t,e):t.encode(e)}var Lle=15;function Kv(t,e){let n=new Array,r=t.args;if(!r)return[];let o=t.signer?\"signer\"in t.signer?t.signer.signer:t.signer:e;for(let a=0;a<r.length;a++){let c=r[a];if(c!==void 0&&!wC(c)){if(qBe(c)){n.push({data:{txn:c.txn,signer:c.signer},type:\"txn\"});continue}if(WBe(c)){let l=Kv(c,o);n.push(...l),n.push({data:{...c,signer:c.signer??o,args:Gv(c.args)},type:\"methodCall\"});continue}if(c instanceof Promise){n.push({data:{txn:c,signer:o},type:\"asyncTxn\"});continue}n.push({data:{txn:Promise.resolve(c),signer:o},type:\"asyncTxn\"})}}return n}function Gv(t){if(t!==void 0)return t.map(e=>{if(e!==void 0&&wC(e))return e})}function qBe(t){return typeof t==\"object\"&&t!==void 0&&\"txn\"in t&&\"signer\"in t}function WBe(t){return typeof t==\"object\"&&t!==void 0&&\"method\"in t}var wC=t=>Array.isArray(t)?t.length==0||t.every(wC):Object.getPrototypeOf(t)===Object.getPrototypeOf({})?Object.values(t).every(wC):typeof t==\"bigint\"||typeof t==\"boolean\"||typeof t==\"number\"||typeof t==\"string\"||t instanceof Uint8Array||t instanceof Yr;function YBe(t,e,n,r,o,a,c){let l=[...o??[]],f=[...c??[]],p=[...a??[]];return{accountReferences:l,appReferences:p,assetReferences:f,updatedArgs:r.map((m,g)=>{let y=n.args[g].type;if(!$v(y))return m;switch(y){case\"account\":{let A;if(typeof m==\"string\")A=cr(m);else if(m instanceof Uint8Array)A=new Yr(m);else throw new Error(\"Invalid value for account\");if(t.equals(A))return 0;let T=l.findIndex(R=>R.equals(A))+1;return T||(l.push(A),l.length)}case\"asset\":{if(typeof m!=\"bigint\")throw new Error(\"Invalid value for asset\");let A=f.findIndex(T=>T===m);return A===-1?(f.push(m),f.length-1):A}case\"application\":{if(typeof m!=\"bigint\")throw new Error(\"Invalid value for application\");if(m===e)return 0;let A=p.findIndex(T=>T===m)+1;return A||(p.push(m),p.length)}}})}}function ZBe(t,e){let n=new Array;n.push(t.getSelector());let r=new Array,o=new Array;for(let a=0;a<t.args.length;a++){let c=t.args[a],l=e[a];if(!_p(c.type))if($v(c.type)){let f=c.type;if(typeof l==\"number\")r.push(new C8(8)),o.push(l);else throw new Error(`Invalid reference value for ${f}: ${l}`)}else l!==void 0&&(r.push(c.type),o.push(l))}if(o.length!==r.length)throw new Error(\"Mismatch in length of non-transaction arguments\");return r.length>Lle?n.push(...XBe(r,o)):n.push(...Nle(r,o)),n}function Nle(t,e){let n=[];for(let r=0;r<t.length;r++){let o=t[r].encode(e[r]);n.push(o)}return n}function XBe(t,e){let n=[],r=Lle-1,o=t.slice(0,r),a=e.slice(0,r);n.push(...Nle(o,a));let c=t.slice(r),l=e.slice(r);if(c.length>0){let f=new Hv(c).encode(l);n.push(f)}return n}function Ez(t){let{accountReferences:e,appReferences:n,assetReferences:r,updatedArgs:o}=YBe(t.sender,t.appId,t.method,t.args??[],t.accountReferences,t.appReferences,t.assetReferences);return{args:ZBe(t.method,o),accountReferences:e,appReferences:n,assetReferences:r}}var Ule=async(t,e,n,r)=>{let o=ta(t,n,r),a=typeof t.approvalProgram==\"string\"?(await e.compileTeal(t.approvalProgram)).compiledBase64ToBytes:t.approvalProgram,c=typeof t.clearStateProgram==\"string\"?(await e.compileTeal(t.clearStateProgram)).compiledBase64ToBytes:t.clearStateProgram,l=t.schema?.globalByteSlices!==void 0||t.schema?.globalInts!==void 0?{numByteSlices:t.schema?.globalByteSlices??0,numUints:t.schema?.globalInts??0}:void 0,f=t.schema?.localByteSlices!==void 0||t.schema?.localInts!==void 0?{numByteSlices:t.schema?.localByteSlices??0,numUints:t.schema?.localInts??0}:void 0,p=t.extraProgramPages!==void 0?t.extraProgramPages:Uv(a,c),m=t.accountReferences?.map(A=>cr(A)),g=Ez({sender:o.sender,appId:0n,method:t.method,args:t.args??[],accountReferences:m,appReferences:t.appReferences,assetReferences:t.assetReferences}),y=t.accessReferences&&t.accessReferences.length>0;return new Mo({...o,type:Er.AppCall,appCall:{appId:0n,onComplete:t.onComplete??Co.NoOp,approvalProgram:a,clearStateProgram:c,globalStateSchema:l,localStateSchema:f,extraProgramPages:p,args:g.args,...y?{accessReferences:t.accessReferences}:{accountReferences:g.accountReferences,appReferences:g.appReferences,assetReferences:g.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})},zle=async(t,e,n,r)=>{let o=ta(t,n,r),a=typeof t.approvalProgram==\"string\"?(await e.compileTeal(t.approvalProgram)).compiledBase64ToBytes:t.approvalProgram,c=typeof t.clearStateProgram==\"string\"?(await e.compileTeal(t.clearStateProgram)).compiledBase64ToBytes:t.clearStateProgram,l=t.accountReferences?.map(m=>cr(m)),f=Ez({sender:o.sender,appId:t.appId,method:t.method,args:t.args??[],accountReferences:l,appReferences:t.appReferences,assetReferences:t.assetReferences}),p=t.accessReferences&&t.accessReferences.length>0;return new Mo({...o,type:Er.AppCall,appCall:{appId:t.appId,onComplete:Co.UpdateApplication,approvalProgram:a,clearStateProgram:c,args:f.args,...p?{accessReferences:t.accessReferences}:{accountReferences:f.accountReferences,appReferences:f.appReferences,assetReferences:f.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})},Vle=async(t,e,n)=>{let r=ta(t,e,n),o=t.accountReferences?.map(l=>cr(l)),a=Ez({sender:r.sender,appId:t.appId,method:t.method,args:t.args??[],accountReferences:o,appReferences:t.appReferences,assetReferences:t.assetReferences}),c=t.accessReferences&&t.accessReferences.length>0;return new Mo({...r,type:Er.AppCall,appCall:{appId:t.appId,onComplete:t.onComplete??Co.NoOp,args:a.args,...c?{accessReferences:t.accessReferences}:{accountReferences:a.accountReferences,appReferences:a.appReferences,assetReferences:a.assetReferences,boxReferences:t.boxReferences?.map(Qs.getBoxReference)},rejectVersion:t.rejectVersion}})};u();var Hle=(t,e,n)=>new Mo({...ta(t,e,n),type:Er.Payment,payment:{receiver:cr(t.receiver),amount:t.amount.microAlgos,closeRemainderTo:yi(t.closeRemainderTo)}});var _8=br($s(),1);var JBe=class extends Error{constructor(t,e){super(`An error transformer returned a non-error value: ${e}. The original error before any transformation: ${t}`)}},QBe=class extends Error{constructor(t,e){super(`An error transformer threw an error: ${e}. The original error before any transformation: ${t} `,{cause:e})}},Um=class jle{constructor(e){ge(this,\"txns\",[]);ge(this,\"algod\");ge(this,\"getSuggestedParams\");ge(this,\"getSigner\");ge(this,\"defaultValidityWindow\",10n);ge(this,\"defaultValidityWindowIsExplicit\",!1);ge(this,\"appManager\");ge(this,\"errorTransformers\");ge(this,\"composerConfig\");ge(this,\"transactionsWithSigners\");ge(this,\"signedTransactions\");ge(this,\"rawBuildTransactions\");this.algod=e.algod;let n=()=>e.algod.suggestedParams();this.getSuggestedParams=e.getSuggestedParams??n,this.getSigner=e.getSigner,this.defaultValidityWindow=e.defaultValidityWindow??this.defaultValidityWindow,this.defaultValidityWindowIsExplicit=e.defaultValidityWindow!==void 0,this.appManager=e.appManager??new Qs(e.algod),this.errorTransformers=e.errorTransformers??[],this.composerConfig=e.composerConfig??{coverAppCallInnerTransactionFees:!1,populateAppCallResources:!0}}async transformError(e){if(!(e instanceof Error))return e;let n=e;for(let r of this.errorTransformers)try{if(n=await r(n),!(n instanceof Error))return new JBe(e,n)}catch(o){return new QBe(e,o)}return n}validateReferenceParams(e){if(e.accessReferences&&e.accessReferences.length>0&&(e.appReferences&&e.appReferences.length>0||e.assetReferences&&e.assetReferences.length>0||e.boxReferences&&e.boxReferences.length>0))throw new Error(\"Cannot specify both `accessReferences` and reference arrays (`appReferences`, `assetReferences`, `boxReferences`).\")}cloneTransaction(e){switch(e.type){case\"pay\":return{type:\"pay\",data:{...e.data}};case\"assetCreate\":return{type:\"assetCreate\",data:{...e.data}};case\"assetConfig\":return{type:\"assetConfig\",data:{...e.data}};case\"assetFreeze\":return{type:\"assetFreeze\",data:{...e.data}};case\"assetDestroy\":return{type:\"assetDestroy\",data:{...e.data}};case\"assetTransfer\":return{type:\"assetTransfer\",data:{...e.data}};case\"assetOptIn\":return{type:\"assetOptIn\",data:{...e.data}};case\"assetOptOut\":return{type:\"assetOptOut\",data:{...e.data}};case\"appCall\":return{type:\"appCall\",data:{...e.data}};case\"keyReg\":return{type:\"keyReg\",data:{...e.data}};case\"txn\":{let{txn:n,signer:r,maxFee:o}=e.data,a=b8(jl(n));return delete a.group,{type:\"txn\",data:{txn:a,signer:r,maxFee:o}}}case\"asyncTxn\":{let{txn:n,signer:r,maxFee:o}=e.data;return{type:\"asyncTxn\",data:{txn:n.then(a=>{let c=b8(jl(a));return delete c.group,c}),signer:r,maxFee:o}}}case\"methodCall\":return{type:\"methodCall\",data:{...e.data}}}}push(...e){if(this.transactionsWithSigners)throw new Error(\"Cannot add new transactions after building\");if(this.txns.length+e.length>16)throw new Error(`Adding ${e.length} transaction(s) would exceed the maximum group size. Current: ${this.txns.length}, Maximum: 16`);this.txns.push(...e)}clone(e){let n=new jle({algod:this.algod,getSuggestedParams:this.getSuggestedParams,getSigner:this.getSigner,defaultValidityWindow:this.defaultValidityWindow,appManager:this.appManager,errorTransformers:this.errorTransformers,composerConfig:{...this.composerConfig,...e}});return this.txns.forEach(r=>{n.txns.push(this.cloneTransaction(r))}),n.defaultValidityWindowIsExplicit=this.defaultValidityWindowIsExplicit,n}registerErrorTransformer(e){return this.errorTransformers.push(e),this}addTransaction(e,n){if(e.group)throw new Error(\"Cannot add a transaction to the composer because it is already in a group\");return Pm(e),this.push({data:{txn:e,signer:n??this.getSigner(e.sender)},type:\"txn\"}),this}addTransactionComposer(e){let n=e.txns.map(r=>this.cloneTransaction(r));return this.push(...n),this}addPayment(e){return this.push({data:e,type:\"pay\"}),this}addAssetCreate(e){return this.push({data:e,type:\"assetCreate\"}),this}addAssetConfig(e){return this.push({data:e,type:\"assetConfig\"}),this}addAssetFreeze(e){return this.push({data:e,type:\"assetFreeze\"}),this}addAssetDestroy(e){return this.push({data:e,type:\"assetDestroy\"}),this}addAssetTransfer(e){return this.push({data:e,type:\"assetTransfer\"}),this}addAssetOptIn(e){return this.push({data:e,type:\"assetOptIn\"}),this}addAssetOptOut(e){return this.push({data:e,type:\"assetOptOut\"}),this}addAppCreate(e){return this.validateReferenceParams(e),this.push({data:e,type:\"appCall\"}),this}addAppUpdate(e){return this.validateReferenceParams(e),this.push({data:{...e,onComplete:Co.UpdateApplication},type:\"appCall\"}),this}addAppDelete(e){return this.validateReferenceParams(e),this.push({data:{...e,onComplete:Co.DeleteApplication},type:\"appCall\"}),this}addAppCall(e){return this.validateReferenceParams(e),this.push({data:e,type:\"appCall\"}),this}addAppCreateMethodCall(e){this.validateReferenceParams(e);let n=Kv(e);return this.push(...n,{data:{...e,args:Gv(e.args)},type:\"methodCall\"}),this}addAppUpdateMethodCall(e){this.validateReferenceParams(e);let n=Kv(e);return this.push(...n,{data:{...e,args:Gv(e.args),onComplete:Co.UpdateApplication},type:\"methodCall\"}),this}addAppDeleteMethodCall(e){this.validateReferenceParams(e);let n=Kv(e);return this.push(...n,{data:{...e,args:Gv(e.args),onComplete:Co.DeleteApplication},type:\"methodCall\"}),this}addAppCallMethodCall(e){this.validateReferenceParams(e);let n=Kv(e);return this.push(...n,{data:{...e,args:Gv(e.args)},type:\"methodCall\"}),this}addOnlineKeyRegistration(e){return this.push({data:e,type:\"keyReg\"}),this}addOfflineKeyRegistration(e){return this.push({data:e,type:\"keyReg\"}),this}count(){return this.txns.length}async build(){if(!this.transactionsWithSigners){let n=await this.getSuggestedParams(),r=await this._buildTransactions(n);this.rawBuildTransactions=r.transactions.map(a=>new Mo({...a}));let o=(this.composerConfig.coverAppCallInnerTransactionFees||this.composerConfig.populateAppCallResources)&&r.transactions.some(a=>a.type===Er.AppCall)?await this.analyzeGroupRequirements(r.transactions,n,this.composerConfig):void 0;this.populateTransactionAndGroupResources(r.transactions,o),this.transactionsWithSigners=r.transactions.map((a,c)=>({txn:a,signer:r.signers.get(c)??this.getSigner(a.sender)}))}let e=new Map;return this.txns.forEach((n,r)=>{n.type===\"methodCall\"&&e.set(r,n.data.method)}),{transactions:this.transactionsWithSigners,methodCalls:e}}async _buildTransactions(e){let n=!this.defaultValidityWindowIsExplicit&&vC(e.genesisId??\"unknown\")?1000n:this.defaultValidityWindow,r=new Map,o=new Array,a=0;for(let l of this.txns)if(l.type===\"txn\")Pm(l.data.txn),o.push(l.data.txn),l.data.signer&&r.set(a,l.data.signer),a++;else if(l.type===\"asyncTxn\"){let f=await l.data.txn;Pm(f),o.push(f),l.data.signer&&r.set(a,l.data.signer),a++}else{let f;switch(l.type){case\"pay\":f=Hle(l.data,e,n);break;case\"assetCreate\":f=gle(l.data,e,n);break;case\"assetConfig\":f=yle(l.data,e,n);break;case\"assetFreeze\":f=vle(l.data,e,n);break;case\"assetDestroy\":f=xle(l.data,e,n);break;case\"assetTransfer\":f=ple(l.data,e,n);break;case\"assetOptIn\":f=hle(l.data,e,n);break;case\"assetOptOut\":f=mle(l.data,e,n);break;case\"appCall\":l.data.appId===void 0||l.data.appId===0?f=await cle(l.data,this.appManager,e,n):\"approvalProgram\"in l.data&&\"clearStateProgram\"in l.data?f=await lle(l.data,this.appManager,e,n):f=ule(l.data,e,n);break;case\"keyReg\":f=wle(l.data,e,n);break;case\"methodCall\":l.data.appId===void 0||l.data.appId===0?f=await Ule(l.data,this.appManager,e,n):\"approvalProgram\"in l.data&&\"clearStateProgram\"in l.data?f=await zle(l.data,this.appManager,e,n):f=await Vle(l.data,e,n);break;default:throw new Error(`Unsupported transaction type: ${l.type}`)}f.fee===void 0&&(f=nz(f,{feePerByte:e.fee,minFee:e.minFee,extraFee:l.data.extraFee?.microAlgos,maxFee:l.data.maxFee?.microAlgos})),Pm(f),o.push(f);let p;l.data.signer&&(p=\"signer\"in l.data.signer?l.data.signer.signer:l.data.signer),!p&&typeof l.data.sender==\"object\"&&\"signer\"in l.data.sender&&(p=l.data.sender.signer),p&&r.set(a,p),a++}if(o.length>16)throw new Error(`Transaction group size ${o.length} exceeds the maximum limit of 16`);let c=new Map;return this.txns.forEach((l,f)=>{l.type===\"methodCall\"&&c.set(f,l.data.method)}),{transactions:o,methodCalls:c,signers:r}}async buildTransactions(){let e=await this.getSuggestedParams(),n=await this._buildTransactions(e);return{...n,transactions:n.transactions}}populateTransactionAndGroupResources(e,n){if(n){let r=0n,o=[];n.transactions.forEach((c,l)=>{c.requiredFeeDelta&&Gi.isSurplus(c.requiredFeeDelta)&&(r+=Gi.amount(c.requiredFeeDelta));let f=this.txns[l],p=e[l],m=Sz(f),g=m!==void 0&&m===(p.fee||0n),y=xC.Covered;if(c.requiredFeeDelta&&Gi.isDeficit(c.requiredFeeDelta)){let A=Gi.amount(c.requiredFeeDelta);g||p.type!==Er.AppCall?y=xC.ImmutableDeficit(A):y=xC.ModifiableDeficit(A)}o.push({groupIndex:l,requiredFeeDelta:c.requiredFeeDelta,priority:y,unnamedResourcesAccessed:c.unnamedResourcesAccessed})}),o.sort((c,l)=>l.priority.compare(c.priority));let a=[];for(let{groupIndex:c,requiredFeeDelta:l,unnamedResourcesAccessed:f}of o){if(l&&Gi.isDeficit(l)){let p=Gi.amount(l),m;if(r===0n?m=l:r>=p?r-=p:(m=Gi.fromBigInt(p-r),r=0n),m&&Gi.isDeficit(m)){let g=Gi.amount(m);if(e[c].type===Er.AppCall){let y=(e[c].fee||0n)+g,A=Sz(this.txns[c]);if(!A||y>A)throw new Error(`Calculated transaction fee ${y} \\\\xB5ALGO is greater than max of ${A??0n} for transaction ${c}`);e[c].fee=y}else throw new Error(`An additional fee of ${g} \\\\xB5ALGO is required for non app call transaction ${c}`)}}f&&e[c].type===Er.AppCall&&(e[c].appCall?.accessReferences&&e[c].appCall?.accessReferences?.length?a.push(c):dle(e[c],f,c))}a.length>0&&Cr.logger.warn(`Resource population will be skipped for transaction indexes ${a.join(\", \")} as they use access references.`),n.unnamedResourcesAccessed&&fle(e,n.unnamedResourcesAccessed)}if(e.length>1){let r=Bm(e);return e.forEach(o=>o.group=r[0].group),e}else return e}async analyzeGroupRequirements(e,n,r){let o=[],a=e.map((g,y)=>{let A=this.txns[y],T={...g};if(delete T.group,r.coverAppCallInnerTransactionFees&&g.type===Er.AppCall){let R=Sz(A);R!==void 0?T.fee=R:o.push(y)}return new Mo(T)});if(a.length>1&&(a=Bm(a)),r.coverAppCallInnerTransactionFees&&o.length>0)throw new Error(`Please provide a maxFee for each app call transaction when coverAppCallInnerTransactionFees is enabled. Required for transaction ${o.join(\", \")}`);let c={txnGroups:[{txns:a.map(g=>({txn:g,sig:UU}))}],allowUnnamedResources:!0,allowEmptySignatures:!0,fixSigners:!0,allowMoreLogging:!0,execTraceConfig:{enable:!0,scratchChange:!0,stackChange:!0,stateChange:!0}},l=(await this.algod.simulateTransactions(c)).txnGroups[0];if(l.failureMessage)throw r.coverAppCallInnerTransactionFees&&l.failureMessage.includes(\"fee too small\")?new Error(\"Fees were too small to resolve execution info via simulate. You may need to increase an app call transaction maxFee.\"):new Error(`Error resolving execution info via simulate in transaction ${l.failedAt?.join(\", \")}: ${l.failureMessage}`);let f=l.txnResults.map((g,y)=>{let A=e[y],T;if(r.coverAppCallInnerTransactionFees){let R=mC(A,{feePerByte:n.fee,minFee:n.minFee}),K=Gi.fromBigInt(R-(A.fee??0n));if(A.type===Er.AppCall){let O=hz(g.txnResult.innerTxns,n.minFee);T=Gi.fromBigInt((O?Gi.toBigInt(O):0n)+(K?Gi.toBigInt(K):0n))}else T=K}return{requiredFeeDelta:T,unnamedResourcesAccessed:r.populateAppCallResources?g.unnamedResourcesAccessed:void 0}}),p=l.unnamedResourcesAccessed,m=(g,y)=>g<y?-1:g>y?1:0;return p&&(p.accounts?.sort((g,y)=>m(g.toString(),y.toString())),p.assets?.sort(m),p.apps?.sort(m),p.boxes?.sort((g,y)=>m(`${g.appId}-${g.name}`,`${y.appId}-${y.name}`)),p.appLocals?.sort((g,y)=>m(`${g.appId}-${g.address}`,`${y.appId}-${y.address}`)),p.assetHoldings?.sort((g,y)=>m(`${g.assetId}-${g.address}`,`${y.assetId}-${y.address}`))),{transactions:f,unnamedResourcesAccessed:r.populateAppCallResources?p:void 0}}async rebuild(){return this.reset(),await this.build()}reset(){this.signedTransactions=void 0,this.transactionsWithSigners=void 0}async send(e){let n={coverAppCallInnerTransactionFees:e?.coverAppCallInnerTransactionFees??this.composerConfig.coverAppCallInnerTransactionFees,populateAppCallResources:e?.populateAppCallResources??this.composerConfig.populateAppCallResources};(this.composerConfig.coverAppCallInnerTransactionFees!==n.coverAppCallInnerTransactionFees||this.composerConfig.populateAppCallResources!==n.populateAppCallResources)&&(this.composerConfig=n,this.reset());try{if(await this.gatherSignatures(),!this.transactionsWithSigners||this.transactionsWithSigners.length===0||!this.signedTransactions||this.signedTransactions.length===0)throw new Error(\"No transactions available\");let r=this.transactionsWithSigners.map(p=>p.txn),o=r.map(p=>p.txId());if(r.length>1){let p=r[0].group?_8.Buffer.from(r[0].group).toString(\"base64\"):\"\";Cr.getLogger(e?.suppressLog).verbose(`Sending group of ${r.length} transactions (${p})`,{transactionsToSend:r}),Cr.getLogger(e?.suppressLog).debug(`Transaction IDs (${p})`,o)}Cr.debug&&Cr.traceAll&&await this.simulate({allowEmptySignatures:!0,fixSigners:!0,allowMoreLogging:!0,execTraceConfig:{enable:!0,scratchChange:!0,stackChange:!0,stateChange:!0},resultOnFailure:!0});let a=this.transactionsWithSigners[0].txn.group,c=e?.maxRoundsToWaitForConfirmation;if(c===void 0){let p=(await this.getSuggestedParams()).firstValid,m=this.transactionsWithSigners.reduce((g,y)=>y.txn.lastValid>g?y.txn.lastValid:g,0n);c=Number(m-p)+1}await this.algod.sendRawTransaction(this.signedTransactions),r.length>1&&a?Cr.getLogger(e?.suppressLog).verbose(`Group transaction (${_8.Buffer.from(a).toString(\"base64\")}) sent with ${r.length} transactions`):Cr.getLogger(e?.suppressLog).verbose(`Sent transaction ID ${r[0].txId()} ${r[0].type} from ${r[0].sender}`);let l=new Array;e?.maxRoundsToWaitForConfirmation!==0&&(l=await Promise.all(o.map(async p=>await sle(p,c,this.algod))));let f=this.parseAbiReturnValues(l);return{groupId:a?_8.Buffer.from(a).toString(\"base64\"):void 0,transactions:r,txIds:o,returns:f,confirmations:l}}catch(r){let o=new Error(r.body?.message??r.message??\"Received error executing Transaction Composer\");o.cause=r,typeof r==\"object\"&&(o.name=r.name);let a;if(this.transactionsWithSigners?a=this.transactionsWithSigners.map(c=>c.txn):this.rawBuildTransactions&&(a=this.rawBuildTransactions.length>1?Bm(this.rawBuildTransactions):this.rawBuildTransactions),Cr.debug&&typeof r==\"object\"&&a){o.traces=[],Cr.getLogger(e?.suppressLog).error(\"Received error executing Transaction Composer and debug flag enabled; attempting simulation to get more information\",o);let c=a.map(p=>({txn:p,signer:Lm()})),l=yC(await this.signTransactions(c)),f=await this.algod.simulateTransactions({txnGroups:[{txns:l}],allowEmptySignatures:!0,fixSigners:!0,allowMoreLogging:!0,execTraceConfig:{enable:!0,scratchChange:!0,stackChange:!0,stateChange:!0}});if(Cr.debug&&!Cr.traceAll&&await Cr.events.emitAsync(zv.TxnGroupSimulated,{simulateResponse:f}),f&&f.txnGroups[0].failedAt)for(let p of f.txnGroups[0].txnResults)o.traces.push({trace:p.execTrace,appBudget:p.appBudgetConsumed,logicSigBudget:p.logicSigBudgetConsumed,logs:p.txnResult.logs,message:f.txnGroups[0].failureMessage})}else Cr.getLogger(e?.suppressLog).error(\"Received error executing Transaction Composer, for more information enable the debug flag\",o);throw o.sentTransactions=a??[],await this.transformError(o)}}async simulate(e){let{skipSignatures:n=!1,resultOnFailure:r=!1,...o}=e??{};n&&(o.allowEmptySignatures=!0,o.fixSigners=!0);let a;if(this.transactionsWithSigners)a=this.transactionsWithSigners.map(g=>({txn:g.txn,signer:n?Lm():g.signer}));else{let g=await this.buildTransactions();a=(g.transactions.length>1?Bm(g.transactions):g.transactions).map((y,A)=>({txn:y,signer:n?Lm():g.signers.get(A)??Lm()}))}let c=a.map(g=>g.txn),l={txnGroups:[{txns:yC(await this.signTransactions(a))}],...o,...Cr.debug?{allowEmptySignatures:!0,fixSigners:!0,allowMoreLogging:!0,execTraceConfig:{enable:!0,scratchChange:!0,stackChange:!0,stateChange:!0}}:void 0},f=await this.algod.simulateTransactions(l),p=f.txnGroups[0];if(p?.failureMessage&&!r){let g=`Transaction failed at transaction(s) ${p.failedAt?.join(\", \")||\"unknown\"} in the group. ${p.failureMessage}`,y=new Error(g);throw Cr.debug&&await Cr.events.emitAsync(zv.TxnGroupSimulated,{simulateResponse:f}),await this.transformError(y)}Cr.debug&&Cr.traceAll&&await Cr.events.emitAsync(zv.TxnGroupSimulated,{simulateResponse:f});let m=this.parseAbiReturnValues(p.txnResults.map(g=>g.txnResult));return{confirmations:p.txnResults.map(g=>g.txnResult),transactions:c,txIds:c.map(g=>g.txId()),groupId:_8.Buffer.from(c[0].group??new Uint8Array).toString(\"base64\"),simulateResponse:f,returns:m}}static arc2Note(e){let n=`${e.dAppName}:${e.format}${typeof e.data==\"string\"?e.data:Gd(e.data)}`;return new TextEncoder().encode(n)}async gatherSignatures(){if(this.signedTransactions)return this.signedTransactions;if(await this.build(),!this.transactionsWithSigners||this.transactionsWithSigners.length===0)throw new Error(\"No transactions available to sign\");return this.signedTransactions=await this.signTransactions(this.transactionsWithSigners),this.signedTransactions}async signTransactions(e){if(e.length===0)throw new Error(\"No transactions available to sign\");let n=e.map(f=>f.txn),r=new Map;e.forEach(({signer:f},p)=>{let m=r.get(f)??[];m.push(p),r.set(f,m)});let o=Array.from(r),a=await Promise.all(o.map(([f,p])=>f(n,p))),c=new Array(e.length).fill(null);o.forEach(([,f],p)=>{let m=a[p];f.forEach((g,y)=>{c[g]=m[y]??null})});let l=c.map((f,p)=>f==null?p:null).filter(f=>f!==null);if(l.length>0)throw new Error(`Transactions at indexes [${l.join(\", \")}] were not signed`);return c}parseAbiReturnValues(e){let n=new Array;for(let r=0;r<e.length;r++){let o=e[r],a=this.txns[r];if(a?.type!==\"methodCall\")continue;let c=Qs.getABIReturn(o,a.data.method);c!==void 0&&n.push(c)}return n}setMaxFees(e){e.forEach((n,r)=>{if(r>this.txns.length-1)throw new Error(`Index ${r} is out of range. The composer only contains ${this.txns.length} transactions`)}),e.forEach((n,r)=>{this.txns[r].data.maxFee=new Ui({microAlgos:n.microAlgos})})}};function Sz(t){if(t.type===\"txn\"||t.type===\"asyncTxn\")return;let e=t.data.maxFee,n=t.data.staticFee;return e!==void 0&&(n===void 0||e.microAlgos>n.microAlgos)?e.microAlgos:n?.microAlgos}u();u();u();u();var $le=class{constructor(t){this.config=t}},EC=t=>typeof t==\"object\"&&\"addr\"in t?t.addr.toString():t.toString();u();u();var Kle=class extends Error{constructor(e,n,r){let o=`Request to ${e} failed with status ${n}`;r&&typeof r==\"object\"&&\"message\"in r&&r.message&&(o+=`: ${r.message}`);super(o);ge(this,\"url\");ge(this,\"status\");ge(this,\"body\");this.url=e,this.status=n,this.body=r}};var eDe=t=>encodeURI(t).replace(/%5B/g,\"[\").replace(/%5D/g,\"]\");async function Gle(t,e){let n=e.url.endsWith(\"/\")?e.url.slice(0,-1):e.url;if(e.path)for(let[p,m]of Object.entries(e.path)){let g=eDe(EC(m));n=n.replace(`{${p}}`,g)}let r=new URL(n,t.baseUrl);if(t.port!==void 0&&(r.port=t.port.toString()),e.query)for(let[p,m]of Object.entries(e.query))m!=null&&r.searchParams.set(p,Array.isArray(m)?m.map(g=>EC(g)).join(\",\"):EC(m));let o={...t.headers??{},...e.headers??{}};if(t.token)if(typeof t.token==\"string\")o[\"X-Algo-API-Token\"]=t.token;else for(let[p,m]of Object.entries(t.token))o[p]=m;let a=e.headers?.[\"Content-Type\"]??e.headers?.[\"content-type\"],c;e.body!=null&&(e.body instanceof Uint8Array?c=e.body.slice().buffer:typeof e.body==\"string\"?c=e.body:a?.includes(\"msgpack\")?c=Ec(e.body).slice().buffer:a?.includes(\"json\")?c=Ac(e.body):c=Ac(e.body));let l=await fetch(r.toString(),{method:e.method,headers:o,body:c}),f=l.headers.get(\"content-type\")??\"\";if(!l.ok){let p;try{f.includes(\"application/msgpack\")?p=_s(new Uint8Array(await l.arrayBuffer()),{useMap:!1,rawBinaryStringKeys:!1,rawBinaryStringValues:!1}):f.includes(\"application/json\")?p=$d(await l.text()):p=await l.text()}catch{p=void 0}throw new Kle(r.pathname.toString(),l.status,p)}return f.includes(\"application/msgpack\")||f.includes(\"application/octet-stream\")||f.includes(\"application/x-binary\")?new Uint8Array(await l.arrayBuffer()):f.includes(\"application/json\")?$d(await l.text()):f?await l.text():new Uint8Array(await l.arrayBuffer())}var tDe=[408,413,429,500,502,503,504],nDe=[\"ETIMEDOUT\",\"ECONNRESET\",\"EADDRINUSE\",\"ECONNREFUSED\",\"EPIPE\",\"ENOTFOUND\",\"ENETUNREACH\",\"EAI_AGAIN\",\"EPROTO\"],rDe=5,oDe=1e4,iDe=t=>{if(typeof t==\"number\")return Number.isNaN(t)?void 0:t;if(typeof t==\"string\"){let e=Number(t);return Number.isNaN(e)?void 0:e}},aDe=t=>{if(!t||typeof t!=\"object\")return;let e=t;return iDe(e.status??e.response?.status)},sDe=t=>{if(!t||typeof t!=\"object\")return;let e=t,n=e.code??e.cause?.code;return typeof n==\"string\"?n:void 0},cDe=async t=>new Promise(e=>{setTimeout(e,t)}),lDe=t=>typeof t!=\"number\"||!Number.isFinite(t)?rDe:Math.floor(t)+1,qle=class extends $le{async request(t){let e=lDe(this.config.maxRetries),n=1,r;for(;n<=e;)try{return await Gle(this.config,t)}catch(o){if(r=o,!this.shouldRetry(o,n,e))throw o;let a=n===1?0:Math.min(1e3*2**(n-1),oDe);a>0&&await cDe(a),this.config.logger?.warn(`Request failed ${n} times. Retrying in ${a}ms: ${o}`),n+=1}throw r??new Error(`Request failed after ${e} attempt(s)`)}shouldRetry(t,e,n){if(e>=n)return!1;let r=aDe(t);if(r!==void 0&&tDe.includes(r))return!0;let o=sDe(t);return!!(o&&nDe.includes(o))}};u();u();u();var as=class extends go{constructor(e){super();ge(this,\"resolvedMetadata\");this.metadata=e}getMetadata(){return this.resolvedMetadata||(this.resolvedMetadata=typeof this.metadata==\"function\"?this.metadata():this.metadata),this.resolvedMetadata}defaultValue(){return this.getMetadata().codec.defaultValue()}isDefaultValue(e){return this.getMetadata().codec.isDefaultValue(e)}encode(e,n){return this.getMetadata().codec.encode(e,n)}encodeOptional(e,n){return this.getMetadata().codec.encodeOptional(e,n)}decode(e,n){return this.getMetadata().codec.decode(e,n)}decodeOptional(e,n){return this.getMetadata().codec.decodeOptional(e,n)}};u();u();u();var M8=br($s(),1),uDe=class extends go{defaultValue(){return new Uint8Array}toEncoded(t,e){return M8.Buffer.from(t).toString(\"base64\")}fromEncoded(t,e){if(t instanceof Uint8Array)return new Uint8Array(M8.Buffer.from(M8.Buffer.from(t).toString(\"utf-8\"),\"base64\"));if(typeof t==\"string\")return new Uint8Array(M8.Buffer.from(t,\"base64\"));throw new Error(`Cannot decode bytes from ${typeof t}`)}isDefaultValue(t){return t.byteLength===0}},I8=new uDe;u();var Wle={name:\"EvalDelta\",kind:\"object\",fields:[{name:\"action\",wireKey:\"action\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bytes\",optional:!0,codec:I8},{name:\"uint\",wireKey:\"uint\",optional:!0,codec:je}]};var Yle={name:\"EvalDeltaKeyValue\",kind:\"object\",fields:[{name:\"key\",wireKey:\"key\",optional:!1,codec:I8},{name:\"value\",wireKey:\"value\",optional:!1,codec:new Ke(Wle)}]};var SC={name:\"StateDelta\",kind:\"array\",codec:new Cn(new Ke(Yle))};u();var Zle={name:\"AccountStateDelta\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"delta\",wireKey:\"delta\",optional:!1,codec:new as(SC)}]};var R8={name:\"PendingTransactionResponse\",kind:\"object\",fields:[{name:\"assetId\",wireKey:\"asset-index\",optional:!0,codec:je},{name:\"appId\",wireKey:\"application-index\",optional:!0,codec:je},{name:\"closeRewards\",wireKey:\"close-rewards\",optional:!0,codec:je},{name:\"closingAmount\",wireKey:\"closing-amount\",optional:!0,codec:je},{name:\"assetClosingAmount\",wireKey:\"asset-closing-amount\",optional:!0,codec:je},{name:\"confirmedRound\",wireKey:\"confirmed-round\",optional:!0,codec:je},{name:\"poolError\",wireKey:\"pool-error\",optional:!1,codec:At},{name:\"receiverRewards\",wireKey:\"receiver-rewards\",optional:!0,codec:je},{name:\"senderRewards\",wireKey:\"sender-rewards\",optional:!0,codec:je},{name:\"localStateDelta\",wireKey:\"local-state-delta\",optional:!0,codec:new Cn(new Ke(Zle))},{name:\"globalStateDelta\",wireKey:\"global-state-delta\",optional:!0,codec:new as(SC)},{name:\"logs\",wireKey:\"logs\",optional:!0,codec:Pi},{name:\"innerTxns\",wireKey:\"inner-txns\",optional:!0,codec:new Cn(new Ke(()=>R8))},{name:\"txn\",wireKey:\"txn\",optional:!1,codec:new Ke(Kd)}]};u();function Xle(t,e){return Ec(new Ke(e).encode(t,\"msgpack\"))}function Ci(t,e){return new Ke(e).decode(t,\"json\")}function Mp(t,e){let n=_s(t);return new Ke(e).decode(n,\"msgpack\")}u();u();u();u();u();u();var zm={name:\"AvmValue\",kind:\"object\",fields:[{name:\"type\",wireKey:\"type\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bytes\",optional:!0,codec:Xt},{name:\"uint\",wireKey:\"uint\",optional:!0,codec:je}]};var Jle={name:\"AvmKeyValue\",kind:\"object\",fields:[{name:\"key\",wireKey:\"key\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:new Ke(zm)}]};var AC={name:\"ApplicationKvStorage\",kind:\"object\",fields:[{name:\"kvs\",wireKey:\"kvs\",optional:!1,codec:new Cn(new Ke(Jle))},{name:\"account\",wireKey:\"account\",optional:!0,codec:Jn}]};var Qle={name:\"ApplicationInitialStates\",kind:\"object\",fields:[{name:\"id\",wireKey:\"id\",optional:!1,codec:je},{name:\"appLocals\",wireKey:\"app-locals\",optional:!0,codec:new Cn(new Ke(AC))},{name:\"appGlobals\",wireKey:\"app-globals\",optional:!0,codec:new Ke(AC)},{name:\"appBoxes\",wireKey:\"app-boxes\",optional:!0,codec:new Ke(AC)}]};var eue={name:\"SimulateInitialStates\",kind:\"object\",fields:[{name:\"appInitialStates\",wireKey:\"app-initial-states\",optional:!0,codec:new Cn(new Ke(Qle))}]};u();var kC={name:\"SimulateTraceConfig\",kind:\"object\",fields:[{name:\"enable\",wireKey:\"enable\",optional:!0,codec:rr},{name:\"stackChange\",wireKey:\"stack-change\",optional:!0,codec:rr},{name:\"scratchChange\",wireKey:\"scratch-change\",optional:!0,codec:rr},{name:\"stateChange\",wireKey:\"state-change\",optional:!0,codec:rr}]};u();u();u();var Az={name:\"BoxReference\",kind:\"object\",fields:[{name:\"appId\",wireKey:\"app\",optional:!1,codec:je},{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt}]},kz={name:\"HoldingReference\",kind:\"object\",fields:[{name:\"address\",wireKey:\"account\",optional:!1,codec:Jn},{name:\"assetId\",wireKey:\"asset\",optional:!1,codec:je}]},Cz={name:\"LocalsReference\",kind:\"object\",fields:[{name:\"address\",wireKey:\"account\",optional:!1,codec:Jn},{name:\"appId\",wireKey:\"app\",optional:!1,codec:je}]};var CC={name:\"SimulateUnnamedResourcesAccessed\",kind:\"object\",fields:[{name:\"accounts\",wireKey:\"accounts\",optional:!0,codec:ec},{name:\"assets\",wireKey:\"assets\",optional:!0,codec:nl},{name:\"apps\",wireKey:\"apps\",optional:!0,codec:nl},{name:\"boxes\",wireKey:\"boxes\",optional:!0,codec:new Cn(new Ke(Az))},{name:\"extraBoxRefs\",wireKey:\"extra-box-refs\",optional:!0,codec:Pt},{name:\"assetHoldings\",wireKey:\"asset-holdings\",optional:!0,codec:new Cn(new Ke(kz))},{name:\"appLocals\",wireKey:\"app-locals\",optional:!0,codec:new Cn(new Ke(Cz))}]};u();u();u();u();var tue={name:\"ApplicationStateOperation\",kind:\"object\",fields:[{name:\"operation\",wireKey:\"operation\",optional:!1,codec:At},{name:\"appStateType\",wireKey:\"app-state-type\",optional:!1,codec:At},{name:\"key\",wireKey:\"key\",optional:!1,codec:Xt},{name:\"newValue\",wireKey:\"new-value\",optional:!0,codec:new Ke(zm)},{name:\"account\",wireKey:\"account\",optional:!0,codec:Jn}]};u();var nue={name:\"ScratchChange\",kind:\"object\",fields:[{name:\"slot\",wireKey:\"slot\",optional:!1,codec:Pt},{name:\"newValue\",wireKey:\"new-value\",optional:!1,codec:new Ke(zm)}]};var TC={name:\"SimulationOpcodeTraceUnit\",kind:\"object\",fields:[{name:\"pc\",wireKey:\"pc\",optional:!1,codec:Pt},{name:\"scratchChanges\",wireKey:\"scratch-changes\",optional:!0,codec:new Cn(new Ke(nue))},{name:\"stateChanges\",wireKey:\"state-changes\",optional:!0,codec:new Cn(new Ke(tue))},{name:\"spawnedInners\",wireKey:\"spawned-inners\",optional:!0,codec:g8},{name:\"stackPopCount\",wireKey:\"stack-pop-count\",optional:!0,codec:Pt},{name:\"stackAdditions\",wireKey:\"stack-additions\",optional:!0,codec:new Cn(new Ke(zm))}]};var Tz={name:\"SimulationTransactionExecTrace\",kind:\"object\",fields:[{name:\"approvalProgramTrace\",wireKey:\"approval-program-trace\",optional:!0,codec:new Cn(new Ke(TC))},{name:\"approvalProgramHash\",wireKey:\"approval-program-hash\",optional:!0,codec:Xt},{name:\"clearStateProgramTrace\",wireKey:\"clear-state-program-trace\",optional:!0,codec:new Cn(new Ke(TC))},{name:\"clearStateProgramHash\",wireKey:\"clear-state-program-hash\",optional:!0,codec:Xt},{name:\"clearStateRollback\",wireKey:\"clear-state-rollback\",optional:!0,codec:rr},{name:\"clearStateRollbackError\",wireKey:\"clear-state-rollback-error\",optional:!0,codec:At},{name:\"logicSigTrace\",wireKey:\"logic-sig-trace\",optional:!0,codec:new Cn(new Ke(TC))},{name:\"logicSigHash\",wireKey:\"logic-sig-hash\",optional:!0,codec:Xt},{name:\"innerTrace\",wireKey:\"inner-trace\",optional:!0,codec:new Cn(new Ke(()=>Tz))}]};var rue={name:\"SimulateTransactionResult\",kind:\"object\",fields:[{name:\"txnResult\",wireKey:\"txn-result\",optional:!1,codec:new Ke(R8)},{name:\"appBudgetConsumed\",wireKey:\"app-budget-consumed\",optional:!0,codec:Pt},{name:\"logicSigBudgetConsumed\",wireKey:\"logic-sig-budget-consumed\",optional:!0,codec:Pt},{name:\"execTrace\",wireKey:\"exec-trace\",optional:!0,codec:new Ke(Tz)},{name:\"unnamedResourcesAccessed\",wireKey:\"unnamed-resources-accessed\",optional:!0,codec:new Ke(CC)},{name:\"fixedSigner\",wireKey:\"fixed-signer\",optional:!0,codec:Jn}]};var oue={name:\"SimulateTransactionGroupResult\",kind:\"object\",fields:[{name:\"txnResults\",wireKey:\"txn-results\",optional:!1,codec:new Cn(new Ke(rue))},{name:\"failureMessage\",wireKey:\"failure-message\",optional:!0,codec:At},{name:\"failedAt\",wireKey:\"failed-at\",optional:!0,codec:g8},{name:\"appBudgetAdded\",wireKey:\"app-budget-added\",optional:!0,codec:Pt},{name:\"appBudgetConsumed\",wireKey:\"app-budget-consumed\",optional:!0,codec:Pt},{name:\"unnamedResourcesAccessed\",wireKey:\"unnamed-resources-accessed\",optional:!0,codec:new Ke(CC)}]};u();var iue={name:\"SimulationEvalOverrides\",kind:\"object\",fields:[{name:\"allowEmptySignatures\",wireKey:\"allow-empty-signatures\",optional:!0,codec:rr},{name:\"allowUnnamedResources\",wireKey:\"allow-unnamed-resources\",optional:!0,codec:rr},{name:\"maxLogCalls\",wireKey:\"max-log-calls\",optional:!0,codec:Pt},{name:\"maxLogSize\",wireKey:\"max-log-size\",optional:!0,codec:Pt},{name:\"extraOpcodeBudget\",wireKey:\"extra-opcode-budget\",optional:!0,codec:Pt},{name:\"fixSigners\",wireKey:\"fix-signers\",optional:!0,codec:rr}]};var aue={name:\"SimulateResponse\",kind:\"object\",fields:[{name:\"version\",wireKey:\"version\",optional:!1,codec:Pt},{name:\"lastRound\",wireKey:\"last-round\",optional:!1,codec:je},{name:\"txnGroups\",wireKey:\"txn-groups\",optional:!1,codec:new Cn(new Ke(oue))},{name:\"evalOverrides\",wireKey:\"eval-overrides\",optional:!0,codec:new Ke(iue)},{name:\"execTraceConfig\",wireKey:\"exec-trace-config\",optional:!0,codec:new Ke(kC)},{name:\"initialStates\",wireKey:\"initial-states\",optional:!0,codec:new Ke(eue)}]};u();u();var sue={name:\"GenesisAllocation\",kind:\"object\",fields:[{name:\"addr\",wireKey:\"addr\",optional:!1,codec:At},{name:\"comment\",wireKey:\"comment\",optional:!1,codec:At},{name:\"state\",wireKey:\"state\",optional:!1,codec:new Ke({name:\"GenesisAllocationStateMeta\",kind:\"object\",fields:[{name:\"algo\",wireKey:\"algo\",optional:!1,codec:je},{name:\"onl\",wireKey:\"onl\",optional:!1,codec:Pt},{name:\"sel\",wireKey:\"sel\",optional:!0,codec:At},{name:\"stprf\",wireKey:\"stprf\",optional:!0,codec:At},{name:\"vote\",wireKey:\"vote\",optional:!0,codec:At},{name:\"voteKd\",wireKey:\"voteKD\",optional:!0,codec:je},{name:\"voteFst\",wireKey:\"voteFst\",optional:!0,codec:je},{name:\"voteLst\",wireKey:\"voteLst\",optional:!0,codec:je}]})}]};var cue={name:\"Genesis\",kind:\"object\",fields:[{name:\"alloc\",wireKey:\"alloc\",optional:!1,codec:new Cn(new Ke(sue))},{name:\"comment\",wireKey:\"comment\",optional:!0,codec:At},{name:\"devmode\",wireKey:\"devmode\",optional:!0,codec:rr},{name:\"fees\",wireKey:\"fees\",optional:!1,codec:At},{name:\"id\",wireKey:\"id\",optional:!1,codec:At},{name:\"network\",wireKey:\"network\",optional:!1,codec:At},{name:\"proto\",wireKey:\"proto\",optional:!1,codec:At},{name:\"rwd\",wireKey:\"rwd\",optional:!1,codec:At},{name:\"timestamp\",wireKey:\"timestamp\",optional:!0,codec:Pt}]};u();u();var lue={name:\"BlockEvalDelta\",kind:\"object\",fields:[{name:\"action\",wireKey:\"at\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bs\",optional:!0,codec:Xt},{name:\"uint\",wireKey:\"ui\",optional:!0,codec:je}]},dDe={name:\"BlockAppEvalDelta\",kind:\"object\",fields:[{name:\"globalDelta\",wireKey:\"gd\",optional:!0,codec:new Sc(Xt,new Ke(lue))},{name:\"localDeltas\",wireKey:\"ld\",optional:!0,codec:new Sc(Pt,new Sc(Xt,new Ke(lue)))},{name:\"innerTxns\",wireKey:\"itx\",optional:!0,codec:new Cn(new Ke(()=>uue))},{name:\"sharedAccounts\",wireKey:\"sa\",optional:!0,codec:ec},{name:\"logs\",wireKey:\"lg\",optional:!0,codec:Pi}]},fDe={name:\"BlockStateProofTrackingData\",kind:\"object\",fields:[{name:\"stateProofVotersCommitment\",wireKey:\"v\",optional:!0,codec:Xt},{name:\"stateProofOnlineTotalWeight\",wireKey:\"t\",optional:!0,codec:je},{name:\"stateProofNextRound\",wireKey:\"n\",optional:!0,codec:je}]},pDe={name:\"SignedTxnInBlock\",kind:\"object\",fields:[{name:\"closingAmount\",wireKey:\"ca\",optional:!0,codec:je},{name:\"assetClosingAmount\",wireKey:\"aca\",optional:!0,codec:je},{name:\"senderRewards\",wireKey:\"rs\",optional:!0,codec:je},{name:\"receiverRewards\",wireKey:\"rr\",optional:!0,codec:je},{name:\"closeRewards\",wireKey:\"rc\",optional:!0,codec:je},{name:\"evalDelta\",wireKey:\"dt\",optional:!0,codec:new Ke(dDe)},{name:\"configAsset\",wireKey:\"caid\",optional:!0,codec:je},{name:\"applicationId\",wireKey:\"apid\",optional:!0,codec:je}]},uue={name:\"SignedTxnWithAD\",kind:\"object\",fields:[{name:\"signedTxn\",flattened:!0,optional:!1,codec:new Ke(Kd)},{name:\"applyData\",flattened:!0,optional:!0,codec:new Ke(pDe)}]},hDe={name:\"SignedTxnInBlock\",kind:\"object\",fields:[{name:\"signedTxn\",flattened:!0,optional:!1,codec:new Ke(uue)},{name:\"hasGenesisId\",wireKey:\"hgi\",optional:!0,codec:rr},{name:\"hasGenesisHash\",wireKey:\"hgh\",optional:!0,codec:rr}]},mDe={name:\"ParticipationUpdates\",kind:\"object\",fields:[{name:\"expiredParticipationAccounts\",wireKey:\"partupdrmv\",optional:!1,codec:ec},{name:\"absentParticipationAccounts\",wireKey:\"partupdabs\",optional:!1,codec:ec}]},gDe={name:\"TxnCommitments\",kind:\"object\",fields:[{name:\"nativeSha512_256Commitment\",wireKey:\"txn\",optional:!1,codec:Nr},{name:\"sha256Commitment\",wireKey:\"txn256\",optional:!0,codec:Nr},{name:\"sha512Commitment\",wireKey:\"txn512\",optional:!0,codec:Po}]},yDe={name:\"RewardState\",kind:\"object\",fields:[{name:\"feeSink\",wireKey:\"fees\",optional:!1,codec:Jn},{name:\"rewardsPool\",wireKey:\"rwd\",optional:!1,codec:Jn},{name:\"rewardsLevel\",wireKey:\"earn\",optional:!1,codec:je},{name:\"rewardsRate\",wireKey:\"rate\",optional:!1,codec:je},{name:\"rewardsResidue\",wireKey:\"frac\",optional:!1,codec:je},{name:\"rewardsRecalculationRound\",wireKey:\"rwcalr\",optional:!1,codec:je}]},vDe={name:\"UpgradeState\",kind:\"object\",fields:[{name:\"currentProtocol\",wireKey:\"proto\",optional:!1,codec:At},{name:\"nextProtocol\",wireKey:\"nextproto\",optional:!0,codec:At},{name:\"nextProtocolApprovals\",wireKey:\"nextyes\",optional:!0,codec:je},{name:\"nextProtocolVoteBefore\",wireKey:\"nextbefore\",optional:!0,codec:je},{name:\"nextProtocolSwitchOn\",wireKey:\"nextswitch\",optional:!0,codec:je}]},xDe={name:\"UpgradeVote\",kind:\"object\",fields:[{name:\"upgradePropose\",wireKey:\"upgradeprop\",optional:!0,codec:At},{name:\"upgradeDelay\",wireKey:\"upgradedelay\",optional:!0,codec:je},{name:\"upgradeApprove\",wireKey:\"upgradeyes\",optional:!0,codec:rr}]},bDe={name:\"Block\",kind:\"object\",fields:[{name:\"header\",flattened:!0,optional:!1,codec:new Ke({name:\"BlockHeader\",kind:\"object\",fields:[{name:\"round\",wireKey:\"rnd\",optional:!1,codec:je},{name:\"previousBlockHash\",wireKey:\"prev\",optional:!1,codec:Nr},{name:\"previousBlockHash512\",wireKey:\"prev512\",optional:!0,codec:Po},{name:\"seed\",wireKey:\"seed\",optional:!1,codec:Xt},{name:\"txnCommitments\",flattened:!0,optional:!1,codec:new Ke(gDe)},{name:\"timestamp\",wireKey:\"ts\",optional:!1,codec:je},{name:\"genesisId\",wireKey:\"gen\",optional:!1,codec:At},{name:\"genesisHash\",wireKey:\"gh\",optional:!1,codec:Nr},{name:\"proposer\",wireKey:\"prp\",optional:!0,codec:Jn},{name:\"feesCollected\",wireKey:\"fc\",optional:!0,codec:je},{name:\"bonus\",wireKey:\"bi\",optional:!0,codec:je},{name:\"proposerPayout\",wireKey:\"pp\",optional:!0,codec:je},{name:\"rewardState\",flattened:!0,optional:!1,codec:new Ke(yDe)},{name:\"upgradeState\",flattened:!0,optional:!1,codec:new Ke(vDe)},{name:\"upgradeVote\",flattened:!0,optional:!0,codec:new Ke(xDe)},{name:\"txnCounter\",wireKey:\"tc\",optional:!0,codec:je},{name:\"stateProofTracking\",wireKey:\"spt\",optional:!0,codec:new Sc(Pt,new Ke(fDe))},{name:\"participationUpdates\",flattened:!0,optional:!1,codec:new Ke(mDe)}]})},{name:\"payset\",wireKey:\"txns\",optional:!1,codec:new Cn(new Ke(hDe))}]},wDe=class extends Ke{constructor(){super(bDe)}fromEncoded(t,e){let n=super.fromEncoded(t,e),r=n.header.genesisId,o=n.header.genesisHash;for(let a of n.payset??[]){let c=a.signedTxn.signedTxn.txn;a.hasGenesisId&&c.genesisId===void 0&&(c.genesisId=r),a.hasGenesisHash!==!1&&c.genesisHash===void 0&&(c.genesisHash=o)}return n}},_C=new wDe;var due={name:\"LedgerTealValue\",kind:\"object\",fields:[{name:\"type\",wireKey:\"tt\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"tb\",optional:!0,codec:Xt},{name:\"uint\",wireKey:\"ui\",optional:!0,codec:je}]},MC={name:\"LedgerStateSchema\",kind:\"object\",fields:[{name:\"numUints\",wireKey:\"nui\",optional:!0,codec:je},{name:\"numByteSlices\",wireKey:\"nbs\",optional:!0,codec:je}]},EDe={name:\"LedgerAppParams\",kind:\"object\",fields:[{name:\"approvalProgram\",wireKey:\"approv\",optional:!1,codec:Xt},{name:\"clearStateProgram\",wireKey:\"clearp\",optional:!1,codec:Xt},{name:\"localStateSchema\",wireKey:\"lsch\",optional:!1,codec:new Ke(MC)},{name:\"globalStateSchema\",wireKey:\"gsch\",optional:!1,codec:new Ke(MC)},{name:\"extraProgramPages\",wireKey:\"epp\",optional:!1,codec:Pt},{name:\"version\",wireKey:\"v\",optional:!0,codec:Pt},{name:\"sizeSponsor\",wireKey:\"ss\",optional:!0,codec:Jn},{name:\"globalState\",wireKey:\"gs\",optional:!0,codec:new Sc(Xt,new Ke(due))}]},SDe={name:\"LedgerAppLocalState\",kind:\"object\",fields:[{name:\"schema\",wireKey:\"hsch\",optional:!1,codec:new Ke(MC)},{name:\"keyValue\",wireKey:\"tkv\",optional:!0,codec:new Sc(Xt,new Ke(due))}]},ADe={name:\"LedgerAppLocalStateDelta\",kind:\"object\",fields:[{name:\"deleted\",wireKey:\"Deleted\",optional:!1,codec:rr},{name:\"localState\",wireKey:\"LocalState\",optional:!0,codec:new Ke(SDe)}]},kDe={name:\"LedgerAppParamsDelta\",kind:\"object\",fields:[{name:\"deleted\",wireKey:\"Deleted\",optional:!1,codec:rr},{name:\"params\",wireKey:\"Params\",optional:!0,codec:new Ke(EDe)}]},CDe={name:\"LedgerAppResourceRecord\",kind:\"object\",fields:[{name:\"appId\",wireKey:\"Aidx\",optional:!1,codec:je},{name:\"address\",wireKey:\"Addr\",optional:!1,codec:Jn},{name:\"params\",wireKey:\"Params\",optional:!1,codec:new Ke(kDe)},{name:\"state\",wireKey:\"State\",optional:!1,codec:new Ke(ADe)}]},TDe={name:\"LedgerAssetHoldingDelta\",kind:\"object\",fields:[{name:\"deleted\",wireKey:\"Deleted\",optional:!1,codec:rr},{name:\"holding\",wireKey:\"Holding\",optional:!0,codec:new Ke({name:\"LedgerAssetHolding\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"a\",optional:!1,codec:je},{name:\"frozen\",wireKey:\"f\",optional:!1,codec:rr}]})}]},_De={name:\"LedgerAssetParamsDelta\",kind:\"object\",fields:[{name:\"deleted\",wireKey:\"Deleted\",optional:!1,codec:rr},{name:\"params\",wireKey:\"Params\",optional:!0,codec:new Ke({name:\"LedgerAssetParams\",kind:\"object\",fields:[{name:\"total\",wireKey:\"t\",optional:!1,codec:je},{name:\"decimals\",wireKey:\"dc\",optional:!1,codec:Pt},{name:\"defaultFrozen\",wireKey:\"df\",optional:!1,codec:rr},{name:\"unitName\",wireKey:\"un\",optional:!0,codec:At},{name:\"assetName\",wireKey:\"an\",optional:!0,codec:At},{name:\"url\",wireKey:\"au\",optional:!0,codec:At},{name:\"metadataHash\",wireKey:\"am\",optional:!0,codec:Xt},{name:\"manager\",wireKey:\"m\",optional:!0,codec:Jn},{name:\"reserve\",wireKey:\"r\",optional:!0,codec:Jn},{name:\"freeze\",wireKey:\"f\",optional:!0,codec:Jn},{name:\"clawback\",wireKey:\"c\",optional:!0,codec:Jn}]})}]},MDe={name:\"LedgerAssetResourceRecord\",kind:\"object\",fields:[{name:\"assetId\",wireKey:\"Aidx\",optional:!1,codec:je},{name:\"address\",wireKey:\"Addr\",optional:!1,codec:Jn},{name:\"params\",wireKey:\"Params\",optional:!1,codec:new Ke(_De)},{name:\"holding\",wireKey:\"Holding\",optional:!1,codec:new Ke(TDe)}]},IDe={name:\"LedgerVotingData\",kind:\"object\",fields:[{name:\"voteId\",wireKey:\"VoteID\",optional:!1,codec:Xt},{name:\"selectionId\",wireKey:\"SelectionID\",optional:!1,codec:Xt},{name:\"stateProofId\",wireKey:\"StateProofID\",optional:!1,codec:Xt},{name:\"voteFirstValid\",wireKey:\"VoteFirstValid\",optional:!1,codec:je},{name:\"voteLastValid\",wireKey:\"VoteLastValid\",optional:!1,codec:je},{name:\"voteKeyDilution\",wireKey:\"VoteKeyDilution\",optional:!1,codec:je}]},RDe={name:\"LedgerAccountData\",kind:\"object\",fields:[{name:\"accountBaseData\",flattened:!0,optional:!1,codec:new Ke({name:\"LedgerAccountBaseData\",kind:\"object\",fields:[{name:\"status\",wireKey:\"Status\",optional:!1,codec:Pt},{name:\"microAlgos\",wireKey:\"MicroAlgos\",optional:!1,codec:je},{name:\"rewardsBase\",wireKey:\"RewardsBase\",optional:!1,codec:je},{name:\"rewardedMicroAlgos\",wireKey:\"RewardedMicroAlgos\",optional:!1,codec:je},{name:\"authAddress\",wireKey:\"AuthAddr\",optional:!1,codec:Jn},{name:\"incentiveEligible\",wireKey:\"IncentiveEligible\",optional:!1,codec:rr},{name:\"totalAppSchema\",wireKey:\"TotalAppSchema\",optional:!1,codec:new Ke(MC)},{name:\"totalExtraAppPages\",wireKey:\"TotalExtraAppPages\",optional:!1,codec:Pt},{name:\"totalAppParams\",wireKey:\"TotalAppParams\",optional:!1,codec:Pt},{name:\"totalAppLocalStates\",wireKey:\"TotalAppLocalStates\",optional:!1,codec:Pt},{name:\"totalAssetParams\",wireKey:\"TotalAssetParams\",optional:!1,codec:Pt},{name:\"totalAssets\",wireKey:\"TotalAssets\",optional:!1,codec:Pt},{name:\"totalBoxes\",wireKey:\"TotalBoxes\",optional:!1,codec:je},{name:\"totalBoxBytes\",wireKey:\"TotalBoxBytes\",optional:!1,codec:je},{name:\"lastProposed\",wireKey:\"LastProposed\",optional:!1,codec:je},{name:\"lastHeartbeat\",wireKey:\"LastHeartbeat\",optional:!1,codec:je}]})},{name:\"votingData\",flattened:!0,optional:!1,codec:new Ke(IDe)}]},PDe={name:\"LedgerAccountDeltas\",kind:\"object\",fields:[{name:\"accounts\",wireKey:\"Accts\",optional:!0,codec:new Cn(new Ke({name:\"LedgerBalanceRecord\",kind:\"object\",fields:[{name:\"address\",wireKey:\"Addr\",optional:!1,codec:Jn},{name:\"accountData\",flattened:!0,optional:!1,codec:new Ke(RDe)}]}))},{name:\"appResources\",wireKey:\"AppResources\",optional:!0,codec:new Cn(new Ke(CDe))},{name:\"assetResources\",wireKey:\"AssetResources\",optional:!0,codec:new Cn(new Ke(MDe))}]},BDe={name:\"LedgerKvValueDelta\",kind:\"object\",fields:[{name:\"data\",wireKey:\"Data\",optional:!0,codec:Xt},{name:\"oldData\",wireKey:\"OldData\",optional:!0,codec:Xt}]},DDe={name:\"LedgerIncludedTransactions\",kind:\"object\",fields:[{name:\"lastValid\",wireKey:\"LastValid\",optional:!1,codec:je},{name:\"intra\",wireKey:\"Intra\",optional:!1,codec:Pt}]},FDe={name:\"LedgerModifiedCreatable\",kind:\"object\",fields:[{name:\"creatableType\",wireKey:\"Ctype\",optional:!1,codec:Pt},{name:\"created\",wireKey:\"Created\",optional:!1,codec:rr},{name:\"creator\",wireKey:\"Creator\",optional:!1,codec:Jn},{name:\"ndeltas\",wireKey:\"Ndeltas\",optional:!1,codec:Pt}]},_z={name:\"LedgerAlgoCount\",kind:\"object\",fields:[{name:\"money\",wireKey:\"mon\",optional:!1,codec:je},{name:\"rewardUnits\",wireKey:\"rwd\",optional:!1,codec:je}]},ODe={name:\"LedgerAccountTotals\",kind:\"object\",fields:[{name:\"online\",wireKey:\"online\",optional:!1,codec:new Ke(_z)},{name:\"offline\",wireKey:\"offline\",optional:!1,codec:new Ke(_z)},{name:\"notParticipating\",wireKey:\"notpart\",optional:!1,codec:new Ke(_z)},{name:\"rewardsLevel\",wireKey:\"rwdlvl\",optional:!1,codec:je}]},P8={name:\"LedgerStateDelta\",kind:\"object\",fields:[{name:\"accounts\",wireKey:\"Accts\",optional:!1,codec:new Ke(PDe)},{name:\"block\",wireKey:\"Hdr\",optional:!1,codec:_C},{name:\"stateProofNext\",wireKey:\"StateProofNext\",optional:!1,codec:je},{name:\"prevTimestamp\",wireKey:\"PrevTimestamp\",optional:!1,codec:je},{name:\"totals\",wireKey:\"Totals\",optional:!1,codec:new Ke(ODe)},{name:\"kvMods\",wireKey:\"KvMods\",optional:!0,codec:new Sc(Xt,new Ke(BDe))},{name:\"txIds\",wireKey:\"Txids\",optional:!0,codec:new Sc(Xt,new Ke(DDe))},{name:\"creatables\",wireKey:\"Creatables\",optional:!0,codec:new Sc(Pt,new Ke(FDe))}]};u();u();u();var Jg={name:\"ApplicationStateSchema\",kind:\"object\",fields:[{name:\"numUints\",wireKey:\"num-uint\",optional:!1,codec:Pt},{name:\"numByteSlices\",wireKey:\"num-byte-slice\",optional:!1,codec:Pt}]};u();u();u();var fue={name:\"TealValue\",kind:\"object\",fields:[{name:\"type\",wireKey:\"type\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bytes\",optional:!1,codec:Xt},{name:\"uint\",wireKey:\"uint\",optional:!1,codec:je}]};var pue={name:\"TealKeyValue\",kind:\"object\",fields:[{name:\"key\",wireKey:\"key\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:new Ke(fue)}]};var IC={name:\"TealKeyValueStore\",kind:\"array\",codec:new Cn(new Ke(pue))};var RC={name:\"ApplicationParams\",kind:\"object\",fields:[{name:\"creator\",wireKey:\"creator\",optional:!1,codec:Jn},{name:\"approvalProgram\",wireKey:\"approval-program\",optional:!1,codec:Xt},{name:\"clearStateProgram\",wireKey:\"clear-state-program\",optional:!1,codec:Xt},{name:\"extraProgramPages\",wireKey:\"extra-program-pages\",optional:!0,codec:Pt},{name:\"localStateSchema\",wireKey:\"local-state-schema\",optional:!0,codec:new Ke(Jg)},{name:\"globalStateSchema\",wireKey:\"global-state-schema\",optional:!0,codec:new Ke(Jg)},{name:\"globalState\",wireKey:\"global-state\",optional:!0,codec:new as(IC)},{name:\"version\",wireKey:\"version\",optional:!0,codec:Pt}]};var PC={name:\"Application\",kind:\"object\",fields:[{name:\"id\",wireKey:\"id\",optional:!1,codec:je},{name:\"params\",wireKey:\"params\",optional:!1,codec:new Ke(RC)}]};u();u();var BC={name:\"AssetParams\",kind:\"object\",fields:[{name:\"clawback\",wireKey:\"clawback\",optional:!0,codec:At},{name:\"creator\",wireKey:\"creator\",optional:!1,codec:At},{name:\"decimals\",wireKey:\"decimals\",optional:!1,codec:Pt},{name:\"defaultFrozen\",wireKey:\"default-frozen\",optional:!0,codec:rr},{name:\"freeze\",wireKey:\"freeze\",optional:!0,codec:At},{name:\"manager\",wireKey:\"manager\",optional:!0,codec:At},{name:\"metadataHash\",wireKey:\"metadata-hash\",optional:!0,codec:Nr},{name:\"name\",wireKey:\"name\",optional:!0,codec:At},{name:\"nameB64\",wireKey:\"name-b64\",optional:!0,codec:Xt},{name:\"reserve\",wireKey:\"reserve\",optional:!0,codec:At},{name:\"total\",wireKey:\"total\",optional:!1,codec:je},{name:\"unitName\",wireKey:\"unit-name\",optional:!0,codec:At},{name:\"unitNameB64\",wireKey:\"unit-name-b64\",optional:!0,codec:Xt},{name:\"url\",wireKey:\"url\",optional:!0,codec:At},{name:\"urlB64\",wireKey:\"url-b64\",optional:!0,codec:Xt}]};var DC={name:\"Asset\",kind:\"object\",fields:[{name:\"id\",wireKey:\"index\",optional:!1,codec:je},{name:\"params\",wireKey:\"params\",optional:!1,codec:new Ke(BC)}]};u();u();var hue={name:\"AccountParticipation\",kind:\"object\",fields:[{name:\"selectionParticipationKey\",wireKey:\"selection-participation-key\",optional:!1,codec:Nr},{name:\"voteFirstValid\",wireKey:\"vote-first-valid\",optional:!1,codec:je},{name:\"voteKeyDilution\",wireKey:\"vote-key-dilution\",optional:!1,codec:je},{name:\"voteLastValid\",wireKey:\"vote-last-valid\",optional:!1,codec:je},{name:\"voteParticipationKey\",wireKey:\"vote-participation-key\",optional:!1,codec:Nr},{name:\"stateProofKey\",wireKey:\"state-proof-key\",optional:!0,codec:Po}]};u();var FC={name:\"ApplicationLocalState\",kind:\"object\",fields:[{name:\"id\",wireKey:\"id\",optional:!1,codec:je},{name:\"schema\",wireKey:\"schema\",optional:!1,codec:new Ke(Jg)},{name:\"keyValue\",wireKey:\"key-value\",optional:!0,codec:new as(IC)}]};u();var OC={name:\"AssetHolding\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"assetId\",wireKey:\"asset-id\",optional:!1,codec:je},{name:\"isFrozen\",wireKey:\"is-frozen\",optional:!1,codec:rr}]};var mue={name:\"Account\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"minBalance\",wireKey:\"min-balance\",optional:!1,codec:je},{name:\"amountWithoutPendingRewards\",wireKey:\"amount-without-pending-rewards\",optional:!1,codec:je},{name:\"appsLocalState\",wireKey:\"apps-local-state\",optional:!0,codec:new Cn(new Ke(FC))},{name:\"totalAppsOptedIn\",wireKey:\"total-apps-opted-in\",optional:!1,codec:Pt},{name:\"appsTotalSchema\",wireKey:\"apps-total-schema\",optional:!0,codec:new Ke(Jg)},{name:\"appsTotalExtraPages\",wireKey:\"apps-total-extra-pages\",optional:!0,codec:Pt},{name:\"assets\",wireKey:\"assets\",optional:!0,codec:new Cn(new Ke(OC))},{name:\"totalAssetsOptedIn\",wireKey:\"total-assets-opted-in\",optional:!1,codec:Pt},{name:\"createdApps\",wireKey:\"created-apps\",optional:!0,codec:new Cn(new Ke(PC))},{name:\"totalCreatedApps\",wireKey:\"total-created-apps\",optional:!1,codec:Pt},{name:\"createdAssets\",wireKey:\"created-assets\",optional:!0,codec:new Cn(new Ke(DC))},{name:\"totalCreatedAssets\",wireKey:\"total-created-assets\",optional:!1,codec:Pt},{name:\"totalBoxes\",wireKey:\"total-boxes\",optional:!0,codec:Pt},{name:\"totalBoxBytes\",wireKey:\"total-box-bytes\",optional:!0,codec:Pt},{name:\"participation\",wireKey:\"participation\",optional:!0,codec:new Ke(hue)},{name:\"incentiveEligible\",wireKey:\"incentive-eligible\",optional:!0,codec:rr},{name:\"pendingRewards\",wireKey:\"pending-rewards\",optional:!1,codec:je},{name:\"rewardBase\",wireKey:\"reward-base\",optional:!0,codec:je},{name:\"rewards\",wireKey:\"rewards\",optional:!1,codec:je},{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"status\",wireKey:\"status\",optional:!1,codec:At},{name:\"sigType\",wireKey:\"sig-type\",optional:!0,codec:At},{name:\"authAddr\",wireKey:\"auth-addr\",optional:!0,codec:Jn},{name:\"lastProposed\",wireKey:\"last-proposed\",optional:!0,codec:je},{name:\"lastHeartbeat\",wireKey:\"last-heartbeat\",optional:!0,codec:je}]};u();u();var gue={name:\"SimulateRequestTransactionGroup\",kind:\"object\",fields:[{name:\"txns\",wireKey:\"txns\",optional:!1,codec:new Cn(new Ke(Kd))}]};var yue={name:\"SimulateRequest\",kind:\"object\",fields:[{name:\"txnGroups\",wireKey:\"txn-groups\",optional:!1,codec:new Cn(new Ke(gue))},{name:\"round\",wireKey:\"round\",optional:!0,codec:je},{name:\"allowEmptySignatures\",wireKey:\"allow-empty-signatures\",optional:!0,codec:rr},{name:\"allowMoreLogging\",wireKey:\"allow-more-logging\",optional:!0,codec:rr},{name:\"allowUnnamedResources\",wireKey:\"allow-unnamed-resources\",optional:!0,codec:rr},{name:\"extraOpcodeBudget\",wireKey:\"extra-opcode-budget\",optional:!0,codec:Pt},{name:\"execTraceConfig\",wireKey:\"exec-trace-config\",optional:!0,codec:new Ke(kC)},{name:\"fixSigners\",wireKey:\"fix-signers\",optional:!0,codec:rr}]};u();var vue={name:\"Box\",kind:\"object\",fields:[{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:Xt}]};u();u();var xue={name:\"BuildVersion\",kind:\"object\",fields:[{name:\"branch\",wireKey:\"branch\",optional:!1,codec:At},{name:\"buildNumber\",wireKey:\"build_number\",optional:!1,codec:Pt},{name:\"channel\",wireKey:\"channel\",optional:!1,codec:At},{name:\"commitHash\",wireKey:\"commit_hash\",optional:!1,codec:At},{name:\"major\",wireKey:\"major\",optional:!1,codec:Pt},{name:\"minor\",wireKey:\"minor\",optional:!1,codec:Pt}]};var bue={name:\"Version\",kind:\"object\",fields:[{name:\"build\",wireKey:\"build\",optional:!1,codec:new Ke(xue)},{name:\"genesisHashB64\",wireKey:\"genesis_hash_b64\",optional:!1,codec:Xt},{name:\"genesisId\",wireKey:\"genesis_id\",optional:!1,codec:At},{name:\"versions\",wireKey:\"versions\",optional:!1,codec:is}]};u();u();var wue={name:\"StateProofMessage\",kind:\"object\",fields:[{name:\"blockHeadersCommitment\",wireKey:\"BlockHeadersCommitment\",optional:!1,codec:Xt},{name:\"votersCommitment\",wireKey:\"VotersCommitment\",optional:!1,codec:Xt},{name:\"lnProvenWeight\",wireKey:\"LnProvenWeight\",optional:!1,codec:je},{name:\"firstAttestedRound\",wireKey:\"FirstAttestedRound\",optional:!1,codec:je},{name:\"lastAttestedRound\",wireKey:\"LastAttestedRound\",optional:!1,codec:je}]};var Eue={name:\"StateProof\",kind:\"object\",fields:[{name:\"message\",wireKey:\"Message\",optional:!1,codec:new Ke(wue)},{name:\"stateProof\",wireKey:\"StateProof\",optional:!1,codec:Xt}]};u();var Sue={name:\"LightBlockHeaderProof\",kind:\"object\",fields:[{name:\"index\",wireKey:\"index\",optional:!1,codec:Pt},{name:\"treedepth\",wireKey:\"treedepth\",optional:!1,codec:Pt},{name:\"proof\",wireKey:\"proof\",optional:!1,codec:Xt}]};u();var Aue={name:\"TransactionProof\",kind:\"object\",fields:[{name:\"proof\",wireKey:\"proof\",optional:!1,codec:Xt},{name:\"stibhash\",wireKey:\"stibhash\",optional:!1,codec:Xt},{name:\"treedepth\",wireKey:\"treedepth\",optional:!1,codec:Pt},{name:\"idx\",wireKey:\"idx\",optional:!1,codec:Pt},{name:\"hashtype\",wireKey:\"hashtype\",optional:!1,codec:At}]};u();var kue={name:\"GetBlockTimeStampOffsetResponse\",kind:\"object\",fields:[{name:\"offset\",wireKey:\"offset\",optional:!1,codec:Pt}]};u();var Cue={name:\"GetSyncRoundResponse\",kind:\"object\",fields:[{name:\"round\",wireKey:\"round\",optional:!1,codec:je}]};u();u();var Tue={name:\"LedgerStateDeltaForTransactionGroup\",kind:\"object\",fields:[{name:\"delta\",wireKey:\"Delta\",optional:!1,codec:new Ke(P8)},{name:\"ids\",wireKey:\"Ids\",optional:!1,codec:is}]};var _ue={name:\"TransactionGroupLedgerStateDeltasForRoundResponse\",kind:\"object\",fields:[{name:\"deltas\",wireKey:\"Deltas\",optional:!1,codec:new Cn(new Ke(Tue))}]};u();var Mue={name:\"AccountAssetResponse\",kind:\"object\",fields:[{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"assetHolding\",wireKey:\"asset-holding\",optional:!0,codec:new Ke(OC)},{name:\"createdAsset\",wireKey:\"created-asset\",optional:!0,codec:new Ke(BC)}]};u();var Iue={name:\"AccountApplicationResponse\",kind:\"object\",fields:[{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"appLocalState\",wireKey:\"app-local-state\",optional:!0,codec:new Ke(FC)},{name:\"createdApp\",wireKey:\"created-app\",optional:!0,codec:new Ke(RC)}]};u();u();var Rue=br($s(),1),Qg=class extends go{constructor(t){super(),this.valueCodec=t}defaultValue(){return{}}toEncoded(t,e){let n={};for(let[r,o]of Object.entries(t))n[r]=this.valueCodec.encode(o,e);return n}fromEncoded(t,e){let n={};if(t instanceof Map)for(let[r,o]of t.entries()){let a=typeof r;if(a===\"number\"||a===\"bigint\")throw new Error(`RecordCodec received a non-string key of type ${a}`);let c=r instanceof Uint8Array?Rue.Buffer.from(r).toString(\"utf-8\"):String(r);n[c]=this.valueCodec.decode(o,e)}else for(let[r,o]of Object.entries(t))n[r]=this.valueCodec.decode(o,e);return n}isDefaultValue(t){return Object.keys(t).length===0}};u();var LDe=class extends go{constructor(){super();ge(this,\"textDecoder\",new TextDecoder(\"utf-8\",{fatal:!0}));ge(this,\"recordCodec\");ge(this,\"arrayCodec\");this.recordCodec=new Qg(this),this.arrayCodec=new Cn(this)}defaultValue(){}toEncoded(e,n){throw new Error(\"UnknownCodec does not support encoding\")}fromEncoded(e,n){return this.processValue(e,n)}maybeDecodeAsUtf8(e){try{return(e.length===58||e.length===32||e.length===64)&&e.every(n=>n===0)?e:this.textDecoder.decode(e)}catch{return e}}processValue(e,n){return e==null?e:e instanceof Uint8Array?this.maybeDecodeAsUtf8(e):typeof e==\"bigint\"?je.decode(e,n):typeof e==\"number\"?Pt.decode(e,n):typeof e==\"string\"?At.decode(e,n):typeof e==\"boolean\"?rr.decode(e,n):Array.isArray(e)?this.arrayCodec.decode(e,n):e instanceof Map||typeof e==\"object\"?this.recordCodec.decode(e,n):e}},B8=new LDe;var Pue={name:\"BlockResponse\",kind:\"object\",fields:[{name:\"block\",wireKey:\"block\",optional:!1,codec:_C},{name:\"cert\",wireKey:\"cert\",optional:!0,codec:new Qg(B8)}]};u();var Bue={name:\"BlockTxidsResponse\",kind:\"object\",fields:[{name:\"blockTxIds\",wireKey:\"blockTxids\",optional:!1,codec:is}]};u();var Due={name:\"BlockHashResponse\",kind:\"object\",fields:[{name:\"blockHash\",wireKey:\"blockHash\",optional:!1,codec:At}]};u();var Mz={name:\"NodeStatusResponse\",kind:\"object\",fields:[{name:\"catchupTime\",wireKey:\"catchup-time\",optional:!1,codec:je},{name:\"lastRound\",wireKey:\"last-round\",optional:!1,codec:je},{name:\"lastVersion\",wireKey:\"last-version\",optional:!1,codec:At},{name:\"nextVersion\",wireKey:\"next-version\",optional:!1,codec:At},{name:\"nextVersionRound\",wireKey:\"next-version-round\",optional:!1,codec:je},{name:\"nextVersionSupported\",wireKey:\"next-version-supported\",optional:!1,codec:rr},{name:\"stoppedAtUnsupportedRound\",wireKey:\"stopped-at-unsupported-round\",optional:!1,codec:rr},{name:\"timeSinceLastRound\",wireKey:\"time-since-last-round\",optional:!1,codec:je},{name:\"lastCatchpoint\",wireKey:\"last-catchpoint\",optional:!0,codec:At},{name:\"catchpoint\",wireKey:\"catchpoint\",optional:!0,codec:At},{name:\"catchpointTotalAccounts\",wireKey:\"catchpoint-total-accounts\",optional:!0,codec:Pt},{name:\"catchpointProcessedAccounts\",wireKey:\"catchpoint-processed-accounts\",optional:!0,codec:Pt},{name:\"catchpointVerifiedAccounts\",wireKey:\"catchpoint-verified-accounts\",optional:!0,codec:Pt},{name:\"catchpointTotalKvs\",wireKey:\"catchpoint-total-kvs\",optional:!0,codec:Pt},{name:\"catchpointProcessedKvs\",wireKey:\"catchpoint-processed-kvs\",optional:!0,codec:Pt},{name:\"catchpointVerifiedKvs\",wireKey:\"catchpoint-verified-kvs\",optional:!0,codec:Pt},{name:\"catchpointTotalBlocks\",wireKey:\"catchpoint-total-blocks\",optional:!0,codec:Pt},{name:\"catchpointAcquiredBlocks\",wireKey:\"catchpoint-acquired-blocks\",optional:!0,codec:Pt},{name:\"upgradeDelay\",wireKey:\"upgrade-delay\",optional:!0,codec:je},{name:\"upgradeNodeVote\",wireKey:\"upgrade-node-vote\",optional:!0,codec:rr},{name:\"upgradeVotesRequired\",wireKey:\"upgrade-votes-required\",optional:!0,codec:Pt},{name:\"upgradeVotes\",wireKey:\"upgrade-votes\",optional:!0,codec:Pt},{name:\"upgradeYesVotes\",wireKey:\"upgrade-yes-votes\",optional:!0,codec:Pt},{name:\"upgradeNoVotes\",wireKey:\"upgrade-no-votes\",optional:!0,codec:Pt},{name:\"upgradeNextProtocolVoteBefore\",wireKey:\"upgrade-next-protocol-vote-before\",optional:!0,codec:je},{name:\"upgradeVoteRounds\",wireKey:\"upgrade-vote-rounds\",optional:!0,codec:Pt}]};u();var Iz={name:\"PendingTransactionsResponse\",kind:\"object\",fields:[{name:\"topTransactions\",wireKey:\"top-transactions\",optional:!1,codec:new Cn(new Ke(Kd))},{name:\"totalTransactions\",wireKey:\"total-transactions\",optional:!1,codec:Pt}]};u();var Fue={name:\"PostTransactionsResponse\",kind:\"object\",fields:[{name:\"txId\",wireKey:\"txId\",optional:!1,codec:At}]};u();var Oue={name:\"SupplyResponse\",kind:\"object\",fields:[{name:\"currentRound\",wireKey:\"current_round\",optional:!1,codec:je},{name:\"onlineMoney\",wireKey:\"online-money\",optional:!1,codec:je},{name:\"totalMoney\",wireKey:\"total-money\",optional:!1,codec:je}]};u();var Lue={name:\"TransactionParametersResponse\",kind:\"object\",fields:[{name:\"consensusVersion\",wireKey:\"consensus-version\",optional:!1,codec:At},{name:\"fee\",wireKey:\"fee\",optional:!1,codec:je},{name:\"genesisHash\",wireKey:\"genesis-hash\",optional:!1,codec:Nr},{name:\"genesisId\",wireKey:\"genesis-id\",optional:!1,codec:At},{name:\"lastRound\",wireKey:\"last-round\",optional:!1,codec:je},{name:\"minFee\",wireKey:\"min-fee\",optional:!1,codec:je}]};u();u();var Nue={name:\"BoxDescriptor\",kind:\"object\",fields:[{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt}]};var Uue={name:\"BoxesResponse\",kind:\"object\",fields:[{name:\"boxes\",wireKey:\"boxes\",optional:!1,codec:new Cn(new Ke(Nue))}]};u();u();var zue={name:\"SourceMap\",kind:\"object\",fields:[{name:\"version\",wireKey:\"version\",optional:!1,codec:Pt},{name:\"sources\",wireKey:\"sources\",optional:!1,codec:is},{name:\"names\",wireKey:\"names\",optional:!1,codec:is},{name:\"mappings\",wireKey:\"mappings\",optional:!1,codec:At}]};var Vue={name:\"CompileResponse\",kind:\"object\",fields:[{name:\"hash\",wireKey:\"hash\",optional:!1,codec:At},{name:\"result\",wireKey:\"result\",optional:!1,codec:At},{name:\"sourcemap\",wireKey:\"sourcemap\",optional:!0,codec:new Ke(zue)}]};u();var Hue={name:\"DisassembleResponse\",kind:\"object\",fields:[{name:\"result\",wireKey:\"result\",optional:!1,codec:At}]};var jue=class{constructor(t){this.httpRequest=t}mimeTypeFor(t){return t===\"json\"?\"application/json\":t===\"msgpack\"?\"application/msgpack\":\"text/plain\"}async accountApplicationInformation(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{address}/applications/{application-id}\",path:{address:t,\"application-id\":e},query:{},headers:n,body:void 0}),Iue)}async accountAssetInformation(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{address}/assets/{asset-id}\",path:{address:t,\"asset-id\":e},query:{},headers:n,body:void 0}),Mue)}async accountInformation(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{address}\",path:{address:t},query:{exclude:e?.exclude},headers:n,body:void 0}),mue)}async _applicationBoxByName(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}/box\",path:{\"application-id\":t},query:{name:e?.name},headers:n,body:void 0}),vue)}async applicationBoxes(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}/boxes\",path:{\"application-id\":t},query:{max:e?.max},headers:n,body:void 0}),Uue)}async applicationById(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}\",path:{\"application-id\":t},query:{},headers:e,body:void 0}),PC)}async assetById(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/assets/{asset-id}\",path:{\"asset-id\":t},query:{},headers:e,body:void 0}),DC)}async block(t,e){let n={};return n.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round}\",path:{round:t},query:{\"header-only\":e?.headerOnly,format:\"msgpack\"},headers:n,body:void 0}),Pue)}async blockHash(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round}/hash\",path:{round:t},query:{},headers:e,body:void 0}),Due)}async blockTimeStampOffset(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/devmode/blocks/offset\",path:{},query:{},headers:t,body:void 0}),kue)}async blockTxIds(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round}/txids\",path:{round:t},query:{},headers:e,body:void 0}),Bue)}async genesis(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/genesis\",path:{},query:{},headers:t,body:void 0}),cue)}async healthCheck(){let t={};t.Accept=this.mimeTypeFor(\"json\"),await this.httpRequest.request({method:\"GET\",url:\"/health\",path:{},query:{},headers:t,body:void 0})}async ledgerStateDelta(t){let e={};return e.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/deltas/{round}\",path:{round:t},query:{format:\"msgpack\"},headers:e,body:void 0}),P8)}async ledgerStateDeltaForTransactionGroup(t){let e={};return e.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/deltas/txn/group/{id}\",path:{id:t},query:{format:\"msgpack\"},headers:e,body:void 0}),P8)}async lightBlockHeaderProof(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round}/lightheader/proof\",path:{round:t},query:{},headers:e,body:void 0}),Sue)}async pendingTransactionInformation(t){let e={};return e.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/transactions/pending/{txid}\",path:{txid:t},query:{format:\"msgpack\"},headers:e,body:void 0}),R8)}async pendingTransactions(t){let e={};return e.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/transactions/pending\",path:{},query:{max:t?.max,format:\"msgpack\"},headers:e,body:void 0}),Iz)}async pendingTransactionsByAddress(t,e){let n={};return n.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{address}/transactions/pending\",path:{address:t},query:{max:e?.max,format:\"msgpack\"},headers:n,body:void 0}),Iz)}async _rawTransaction(t){let e={};e.Accept=this.mimeTypeFor(\"json\");let n=t??void 0;return e[\"Content-Type\"]=\"application/x-binary\",Ci(await this.httpRequest.request({method:\"POST\",url:\"/v2/transactions\",path:{},query:{},headers:e,body:n}),Fue)}async ready(){let t={};t.Accept=this.mimeTypeFor(\"json\"),await this.httpRequest.request({method:\"GET\",url:\"/ready\",path:{},query:{},headers:t,body:void 0})}async setBlockTimeStampOffset(t){let e={};e.Accept=this.mimeTypeFor(\"json\"),await this.httpRequest.request({method:\"POST\",url:\"/v2/devmode/blocks/offset/{offset}\",path:{offset:t},query:{},headers:e,body:void 0})}async setSyncRound(t){let e={};e.Accept=this.mimeTypeFor(\"json\"),await this.httpRequest.request({method:\"POST\",url:\"/v2/ledger/sync/{round}\",path:{round:t},query:{},headers:e,body:void 0})}async simulateTransactions(t){let e={},n=\"msgpack\";e.Accept=this.mimeTypeFor(n);let r=yue,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?Xle(t,r):void 0;return Mp(await this.httpRequest.request({method:\"POST\",url:\"/v2/transactions/simulate\",path:{},query:{format:\"msgpack\"},headers:e,body:a}),aue)}async stateProof(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/stateproofs/{round}\",path:{round:t},query:{},headers:e,body:void 0}),Eue)}async status(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/status\",path:{},query:{},headers:t,body:void 0}),Mz)}async statusAfterBlock(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/status/wait-for-block-after/{round}\",path:{round:t},query:{},headers:e,body:void 0}),Mz)}async supply(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/ledger/supply\",path:{},query:{},headers:t,body:void 0}),Oue)}async syncRound(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/ledger/sync\",path:{},query:{},headers:t,body:void 0}),Cue)}async tealCompile(t,e){let n={};n.Accept=this.mimeTypeFor(\"json\");let r=this.mimeTypeFor(\"text\");return r&&(n[\"Content-Type\"]=r),Ci(await this.httpRequest.request({method:\"POST\",url:\"/v2/teal/compile\",path:{},query:{sourcemap:e?.sourcemap},headers:n,body:t}),Vue)}async tealDisassemble(t){let e={};e.Accept=this.mimeTypeFor(\"json\");let n=t??void 0;return e[\"Content-Type\"]=\"application/x-binary\",Ci(await this.httpRequest.request({method:\"POST\",url:\"/v2/teal/disassemble\",path:{},query:{},headers:e,body:n}),Hue)}async transactionGroupLedgerStateDeltasForRound(t){let e={};return e.Accept=this.mimeTypeFor(\"msgpack\"),Mp(await this.httpRequest.request({method:\"GET\",url:\"/v2/deltas/{round}/txn/group\",path:{round:t},query:{format:\"msgpack\"},headers:e,body:void 0}),_ue)}async _transactionParams(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/transactions/params\",path:{},query:{},headers:t,body:void 0}),Lue)}async transactionProof(t,e,n){let r={};return r.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round}/transactions/{txid}/proof\",path:{round:t,txid:e},query:{hashtype:n?.hashtype},headers:r,body:void 0}),Aue)}async unsetSyncRound(){let t={};t.Accept=this.mimeTypeFor(\"json\"),await this.httpRequest.request({method:\"DELETE\",url:\"/v2/ledger/sync\",path:{},query:{},headers:t,body:void 0})}async version(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),Ci(await this.httpRequest.request({method:\"GET\",url:\"/versions\",path:{},query:{},headers:t,body:void 0}),bue)}async sendRawTransaction(t){let e=t;if(Array.isArray(t)){if(!t.every(n=>n instanceof Uint8Array))throw new Error(\"Array elements must be byte arrays\");e=Ha(...t)}else if(!(e instanceof Uint8Array))throw new Error(\"Argument must be byte array\");return this._rawTransaction(e)}async applicationBoxByName(t,e){let n=`b64:${globalThis.Buffer.from(e).toString(\"base64\")}`;return this._applicationBoxByName(t,{name:n})}async suggestedParams(){let t=await this._transactionParams();return{flatFee:!1,fee:t.fee,firstValid:t.lastRound,lastValid:t.lastRound+1000n,genesisHash:t.genesisHash,genesisId:t.genesisId,minFee:t.minFee,consensusVersion:t.consensusVersion}}async transactionParams(){return await this.suggestedParams()}async simulateRawTransactions(t){let e=Array.isArray(t)?t.map(n=>Fm(n)):[Fm(t)];return this.simulateTransactions({txnGroups:[{txns:e}]})}};var $ue=class extends jue{constructor(t){super(new qle(t))}};u();u();u();var Kue=class{constructor(t){this.config=t}},LC=t=>typeof t==\"object\"&&\"addr\"in t?t.addr.toString():t.toString();u();u();var Gue=class extends Error{constructor(e,n,r){let o=`Request to ${e} failed with status ${n}`;r&&typeof r==\"object\"&&\"message\"in r&&r.message&&(o+=`: ${r.message}`);super(o);ge(this,\"url\");ge(this,\"status\");ge(this,\"body\");this.url=e,this.status=n,this.body=r}};var NDe=t=>encodeURI(t).replace(/%5B/g,\"[\").replace(/%5D/g,\"]\");async function que(t,e){let n=e.url.endsWith(\"/\")?e.url.slice(0,-1):e.url;if(e.path)for(let[p,m]of Object.entries(e.path)){let g=NDe(LC(m));n=n.replace(`{${p}}`,g)}let r=new URL(n,t.baseUrl);if(t.port!==void 0&&(r.port=t.port.toString()),e.query)for(let[p,m]of Object.entries(e.query))m!=null&&r.searchParams.set(p,Array.isArray(m)?m.map(g=>LC(g)).join(\",\"):LC(m));let o={...t.headers??{},...e.headers??{}};if(t.token)if(typeof t.token==\"string\")o[\"X-Indexer-API-Token\"]=t.token;else for(let[p,m]of Object.entries(t.token))o[p]=m;let a=e.headers?.[\"Content-Type\"]??e.headers?.[\"content-type\"],c;e.body!=null&&(e.body instanceof Uint8Array?c=e.body.slice().buffer:typeof e.body==\"string\"?c=e.body:a?.includes(\"msgpack\")?c=Ec(e.body).slice().buffer:a?.includes(\"json\")?c=Ac(e.body):c=Ac(e.body));let l=await fetch(r.toString(),{method:e.method,headers:o,body:c}),f=l.headers.get(\"content-type\")??\"\";if(!l.ok){let p;try{f.includes(\"application/msgpack\")?p=_s(new Uint8Array(await l.arrayBuffer()),{useMap:!1,rawBinaryStringKeys:!1,rawBinaryStringValues:!1}):f.includes(\"application/json\")?p=$d(await l.text()):p=await l.text()}catch{p=void 0}throw new Gue(r.pathname.toString(),l.status,p)}return f.includes(\"application/msgpack\")||f.includes(\"application/octet-stream\")||f.includes(\"application/x-binary\")?new Uint8Array(await l.arrayBuffer()):f.includes(\"application/json\")?$d(await l.text()):f?await l.text():new Uint8Array(await l.arrayBuffer())}var UDe=[408,413,429,500,502,503,504],zDe=[\"ETIMEDOUT\",\"ECONNRESET\",\"EADDRINUSE\",\"ECONNREFUSED\",\"EPIPE\",\"ENOTFOUND\",\"ENETUNREACH\",\"EAI_AGAIN\",\"EPROTO\"],VDe=5,HDe=1e4,jDe=t=>{if(typeof t==\"number\")return Number.isNaN(t)?void 0:t;if(typeof t==\"string\"){let e=Number(t);return Number.isNaN(e)?void 0:e}},$De=t=>{if(!t||typeof t!=\"object\")return;let e=t;return jDe(e.status??e.response?.status)},KDe=t=>{if(!t||typeof t!=\"object\")return;let e=t,n=e.code??e.cause?.code;return typeof n==\"string\"?n:void 0},GDe=async t=>new Promise(e=>{setTimeout(e,t)}),qDe=t=>typeof t!=\"number\"||!Number.isFinite(t)?VDe:Math.floor(t)+1,Wue=class extends Kue{async request(t){let e=qDe(this.config.maxRetries),n=1,r;for(;n<=e;)try{return await que(this.config,t)}catch(o){if(r=o,!this.shouldRetry(o,n,e))throw o;let a=n===1?0:Math.min(1e3*2**(n-1),HDe);a>0&&await GDe(a),this.config.logger?.warn(`Request failed ${n} times. Retrying in ${a}ms: ${o}`),n+=1}throw r??new Error(`Request failed after ${e} attempt(s)`)}shouldRetry(t,e,n){if(e>=n)return!1;let r=$De(t);if(r!==void 0&&UDe.includes(r))return!0;let o=KDe(t);return!!(o&&zDe.includes(o))}};u();u();function qi(t,e){return new Ke(e).decode(t,\"json\")}u();u();var Yue={name:\"BlockRewards\",kind:\"object\",fields:[{name:\"feeSink\",wireKey:\"fee-sink\",optional:!1,codec:At},{name:\"rewardsCalculationRound\",wireKey:\"rewards-calculation-round\",optional:!1,codec:je},{name:\"rewardsLevel\",wireKey:\"rewards-level\",optional:!1,codec:je},{name:\"rewardsPool\",wireKey:\"rewards-pool\",optional:!1,codec:At},{name:\"rewardsRate\",wireKey:\"rewards-rate\",optional:!1,codec:je},{name:\"rewardsResidue\",wireKey:\"rewards-residue\",optional:!1,codec:je}]};u();var Zue={name:\"BlockUpgradeState\",kind:\"object\",fields:[{name:\"currentProtocol\",wireKey:\"current-protocol\",optional:!1,codec:At},{name:\"nextProtocol\",wireKey:\"next-protocol\",optional:!0,codec:At},{name:\"nextProtocolApprovals\",wireKey:\"next-protocol-approvals\",optional:!0,codec:Pt},{name:\"nextProtocolSwitchOn\",wireKey:\"next-protocol-switch-on\",optional:!0,codec:je},{name:\"nextProtocolVoteBefore\",wireKey:\"next-protocol-vote-before\",optional:!0,codec:je}]};u();var Xue={name:\"BlockUpgradeVote\",kind:\"object\",fields:[{name:\"upgradeApprove\",wireKey:\"upgrade-approve\",optional:!0,codec:rr},{name:\"upgradeDelay\",wireKey:\"upgrade-delay\",optional:!0,codec:je},{name:\"upgradePropose\",wireKey:\"upgrade-propose\",optional:!0,codec:At}]};u();var Jue={name:\"ParticipationUpdates\",kind:\"object\",fields:[{name:\"expiredParticipationAccounts\",wireKey:\"expired-participation-accounts\",optional:!1,codec:is},{name:\"absentParticipationAccounts\",wireKey:\"absent-participation-accounts\",optional:!1,codec:is}]};u();var Que={name:\"StateProofTracking\",kind:\"object\",fields:[{name:\"type\",wireKey:\"type\",optional:!0,codec:je},{name:\"votersCommitment\",wireKey:\"voters-commitment\",optional:!0,codec:Xt},{name:\"onlineTotalWeight\",wireKey:\"online-total-weight\",optional:!0,codec:je},{name:\"nextRound\",wireKey:\"next-round\",optional:!0,codec:Pt}]};u();u();u();u();var ede={name:\"EvalDelta\",kind:\"object\",fields:[{name:\"action\",wireKey:\"action\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bytes\",optional:!0,codec:Xt},{name:\"uint\",wireKey:\"uint\",optional:!0,codec:je}]};var tde={name:\"EvalDeltaKeyValue\",kind:\"object\",fields:[{name:\"key\",wireKey:\"key\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:new Ke(ede)}]};var NC={name:\"StateDelta\",kind:\"array\",codec:new Cn(new Ke(tde))};u();var nde={name:\"AccountStateDelta\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:At},{name:\"delta\",wireKey:\"delta\",optional:!1,codec:new as(NC)}]};u();u();var D8=class extends go{constructor(e){super();ge(this,\"resolvedMetadata\");this.metadata=e}getMetadata(){return this.resolvedMetadata||(this.resolvedMetadata=typeof this.metadata==\"function\"?this.metadata():this.metadata),this.resolvedMetadata}defaultValue(){return this.getMetadata().codec.defaultValue()}isDefaultValue(e){return this.getMetadata().codec.isDefaultValue(e)}encode(e,n){return this.getMetadata().codec.encode(e,n)}encodeOptional(e,n){return this.getMetadata().codec.encodeOptional(e,n)}decode(e,n){return this.getMetadata().codec.decode(e,n)}decodeOptional(e,n){return this.getMetadata().codec.decodeOptional(e,n)}};u();var UC={name:\"BoxReference\",kind:\"object\",fields:[{name:\"app\",wireKey:\"app\",optional:!1,codec:je},{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt}]};u();var rde={name:\"OnCompletion\",kind:\"primitive\",codec:At};u();u();var ode={name:\"HoldingRef\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"asset\",wireKey:\"asset\",optional:!1,codec:je}]};u();var ide={name:\"LocalsRef\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"app\",wireKey:\"app\",optional:!1,codec:je}]};var ade={name:\"ResourceRef\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!0,codec:Jn},{name:\"applicationId\",wireKey:\"application-id\",optional:!0,codec:je},{name:\"assetId\",wireKey:\"asset-id\",optional:!0,codec:je},{name:\"box\",wireKey:\"box\",optional:!0,codec:new Ke(UC)},{name:\"holding\",wireKey:\"holding\",optional:!0,codec:new Ke(ode)},{name:\"local\",wireKey:\"local\",optional:!0,codec:new Ke(ide)}]};u();var Rz={name:\"StateSchema\",kind:\"object\",fields:[{name:\"numUints\",wireKey:\"num-uint\",optional:!1,codec:Pt},{name:\"numByteSlices\",wireKey:\"num-byte-slice\",optional:!1,codec:Pt}]};var sde={name:\"TransactionApplication\",kind:\"object\",fields:[{name:\"applicationId\",wireKey:\"application-id\",optional:!1,codec:je},{name:\"onCompletion\",wireKey:\"on-completion\",optional:!1,codec:new D8(rde)},{name:\"applicationArgs\",wireKey:\"application-args\",optional:!0,codec:Pi},{name:\"access\",wireKey:\"access\",optional:!0,codec:new Cn(new Ke(ade))},{name:\"accounts\",wireKey:\"accounts\",optional:!0,codec:ec},{name:\"boxReferences\",wireKey:\"box-references\",optional:!0,codec:new Cn(new Ke(UC))},{name:\"foreignApps\",wireKey:\"foreign-apps\",optional:!0,codec:nl},{name:\"foreignAssets\",wireKey:\"foreign-assets\",optional:!0,codec:nl},{name:\"localStateSchema\",wireKey:\"local-state-schema\",optional:!0,codec:new Ke(Rz)},{name:\"globalStateSchema\",wireKey:\"global-state-schema\",optional:!0,codec:new Ke(Rz)},{name:\"approvalProgram\",wireKey:\"approval-program\",optional:!0,codec:Xt},{name:\"clearStateProgram\",wireKey:\"clear-state-program\",optional:!0,codec:Xt},{name:\"extraProgramPages\",wireKey:\"extra-program-pages\",optional:!0,codec:Pt},{name:\"rejectVersion\",wireKey:\"reject-version\",optional:!0,codec:Pt}]};u();u();var zC={name:\"AssetParams\",kind:\"object\",fields:[{name:\"clawback\",wireKey:\"clawback\",optional:!0,codec:At},{name:\"creator\",wireKey:\"creator\",optional:!1,codec:At},{name:\"decimals\",wireKey:\"decimals\",optional:!1,codec:Pt},{name:\"defaultFrozen\",wireKey:\"default-frozen\",optional:!0,codec:rr},{name:\"freeze\",wireKey:\"freeze\",optional:!0,codec:At},{name:\"manager\",wireKey:\"manager\",optional:!0,codec:At},{name:\"metadataHash\",wireKey:\"metadata-hash\",optional:!0,codec:Nr},{name:\"name\",wireKey:\"name\",optional:!0,codec:At},{name:\"nameB64\",wireKey:\"name-b64\",optional:!0,codec:Xt},{name:\"reserve\",wireKey:\"reserve\",optional:!0,codec:At},{name:\"total\",wireKey:\"total\",optional:!1,codec:je},{name:\"unitName\",wireKey:\"unit-name\",optional:!0,codec:At},{name:\"unitNameB64\",wireKey:\"unit-name-b64\",optional:!0,codec:Xt},{name:\"url\",wireKey:\"url\",optional:!0,codec:At},{name:\"urlB64\",wireKey:\"url-b64\",optional:!0,codec:Xt}]};var cde={name:\"TransactionAssetConfig\",kind:\"object\",fields:[{name:\"assetId\",wireKey:\"asset-id\",optional:!0,codec:je},{name:\"params\",wireKey:\"params\",optional:!0,codec:new Ke(zC)}]};u();var lde={name:\"TransactionAssetFreeze\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:At},{name:\"assetId\",wireKey:\"asset-id\",optional:!1,codec:je},{name:\"newFreezeStatus\",wireKey:\"new-freeze-status\",optional:!1,codec:rr}]};u();var ude={name:\"TransactionAssetTransfer\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"assetId\",wireKey:\"asset-id\",optional:!1,codec:je},{name:\"closeAmount\",wireKey:\"close-amount\",optional:!0,codec:je},{name:\"closeTo\",wireKey:\"close-to\",optional:!0,codec:At},{name:\"receiver\",wireKey:\"receiver\",optional:!1,codec:At},{name:\"sender\",wireKey:\"sender\",optional:!0,codec:At}]};u();u();var dde={name:\"HbProofFields\",kind:\"object\",fields:[{name:\"hbSig\",wireKey:\"hb-sig\",optional:!0,codec:Po},{name:\"hbPk\",wireKey:\"hb-pk\",optional:!0,codec:Nr},{name:\"hbPk2\",wireKey:\"hb-pk2\",optional:!0,codec:Nr},{name:\"hbPk1sig\",wireKey:\"hb-pk1sig\",optional:!0,codec:Po},{name:\"hbPk2sig\",wireKey:\"hb-pk2sig\",optional:!0,codec:Po}]};var fde={name:\"TransactionHeartbeat\",kind:\"object\",fields:[{name:\"hbAddress\",wireKey:\"hb-address\",optional:!1,codec:At},{name:\"hbProof\",wireKey:\"hb-proof\",optional:!1,codec:new Ke(dde)},{name:\"hbSeed\",wireKey:\"hb-seed\",optional:!1,codec:Xt},{name:\"hbVoteId\",wireKey:\"hb-vote-id\",optional:!1,codec:Nr},{name:\"hbKeyDilution\",wireKey:\"hb-key-dilution\",optional:!1,codec:je}]};u();var pde={name:\"TransactionKeyreg\",kind:\"object\",fields:[{name:\"nonParticipation\",wireKey:\"non-participation\",optional:!0,codec:rr},{name:\"selectionParticipationKey\",wireKey:\"selection-participation-key\",optional:!0,codec:Nr},{name:\"voteFirstValid\",wireKey:\"vote-first-valid\",optional:!0,codec:je},{name:\"voteKeyDilution\",wireKey:\"vote-key-dilution\",optional:!0,codec:je},{name:\"voteLastValid\",wireKey:\"vote-last-valid\",optional:!0,codec:je},{name:\"voteParticipationKey\",wireKey:\"vote-participation-key\",optional:!0,codec:Nr},{name:\"stateProofKey\",wireKey:\"state-proof-key\",optional:!0,codec:Po}]};u();var hde={name:\"TransactionPayment\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"closeAmount\",wireKey:\"close-amount\",optional:!0,codec:je},{name:\"closeRemainderTo\",wireKey:\"close-remainder-to\",optional:!0,codec:At},{name:\"receiver\",wireKey:\"receiver\",optional:!1,codec:At}]};u();u();u();var mde={name:\"TransactionSignatureMultisigSubsignature\",kind:\"object\",fields:[{name:\"publicKey\",wireKey:\"public-key\",optional:!0,codec:Nr},{name:\"signature\",wireKey:\"signature\",optional:!0,codec:Po}]};var F8={name:\"TransactionSignatureMultisig\",kind:\"object\",fields:[{name:\"subsignature\",wireKey:\"subsignature\",optional:!0,codec:new Cn(new Ke(mde))},{name:\"threshold\",wireKey:\"threshold\",optional:!0,codec:Pt},{name:\"version\",wireKey:\"version\",optional:!0,codec:Pt}]};u();var gde={name:\"TransactionSignatureLogicsig\",kind:\"object\",fields:[{name:\"args\",wireKey:\"args\",optional:!0,codec:Pi},{name:\"logic\",wireKey:\"logic\",optional:!1,codec:Xt},{name:\"multisigSignature\",wireKey:\"multisig-signature\",optional:!0,codec:new Ke(F8)},{name:\"logicMultisigSignature\",wireKey:\"logic-multisig-signature\",optional:!0,codec:new Ke(F8)},{name:\"signature\",wireKey:\"signature\",optional:!0,codec:Po}]};var yde={name:\"TransactionSignature\",kind:\"object\",fields:[{name:\"logicsig\",wireKey:\"logicsig\",optional:!0,codec:new Ke(gde)},{name:\"multisig\",wireKey:\"multisig\",optional:!0,codec:new Ke(F8)},{name:\"sig\",wireKey:\"sig\",optional:!0,codec:Xt}]};u();u();var vde={name:\"IndexerStateProofMessage\",kind:\"object\",fields:[{name:\"blockHeadersCommitment\",wireKey:\"block-headers-commitment\",optional:!0,codec:Xt},{name:\"votersCommitment\",wireKey:\"voters-commitment\",optional:!0,codec:Xt},{name:\"lnProvenWeight\",wireKey:\"ln-proven-weight\",optional:!0,codec:je},{name:\"firstAttestedRound\",wireKey:\"first-attested-round\",optional:!0,codec:je},{name:\"latestAttestedRound\",wireKey:\"latest-attested-round\",optional:!0,codec:je}]};u();u();u();var xde={name:\"HashFactory\",kind:\"object\",fields:[{name:\"hashType\",wireKey:\"hash-type\",optional:!0,codec:Pt}]};var O8={name:\"MerkleArrayProof\",kind:\"object\",fields:[{name:\"path\",wireKey:\"path\",optional:!0,codec:Pi},{name:\"hashFactory\",wireKey:\"hash-factory\",optional:!0,codec:new Ke(xde)},{name:\"treeDepth\",wireKey:\"tree-depth\",optional:!0,codec:Pt}]};u();u();u();var bde={name:\"StateProofVerifier\",kind:\"object\",fields:[{name:\"commitment\",wireKey:\"commitment\",optional:!0,codec:Po},{name:\"keyLifetime\",wireKey:\"key-lifetime\",optional:!0,codec:je}]};var wde={name:\"StateProofParticipant\",kind:\"object\",fields:[{name:\"verifier\",wireKey:\"verifier\",optional:!0,codec:new Ke(bde)},{name:\"weight\",wireKey:\"weight\",optional:!0,codec:je}]};u();u();var Ede={name:\"StateProofSignature\",kind:\"object\",fields:[{name:\"falconSignature\",wireKey:\"falcon-signature\",optional:!0,codec:Xt},{name:\"merkleArrayIndex\",wireKey:\"merkle-array-index\",optional:!0,codec:Pt},{name:\"proof\",wireKey:\"proof\",optional:!0,codec:new Ke(O8)},{name:\"verifyingKey\",wireKey:\"verifying-key\",optional:!0,codec:Xt}]};var Sde={name:\"StateProofSigSlot\",kind:\"object\",fields:[{name:\"signature\",wireKey:\"signature\",optional:!0,codec:new Ke(Ede)},{name:\"lowerSigWeight\",wireKey:\"lower-sig-weight\",optional:!0,codec:je}]};var Ade={name:\"StateProofReveal\",kind:\"object\",fields:[{name:\"position\",wireKey:\"position\",optional:!0,codec:je},{name:\"sigSlot\",wireKey:\"sig-slot\",optional:!0,codec:new Ke(Sde)},{name:\"participant\",wireKey:\"participant\",optional:!0,codec:new Ke(wde)}]};var kde={name:\"StateProofFields\",kind:\"object\",fields:[{name:\"sigCommit\",wireKey:\"sig-commit\",optional:!0,codec:Xt},{name:\"signedWeight\",wireKey:\"signed-weight\",optional:!0,codec:je},{name:\"sigProofs\",wireKey:\"sig-proofs\",optional:!0,codec:new Ke(O8)},{name:\"partProofs\",wireKey:\"part-proofs\",optional:!0,codec:new Ke(O8)},{name:\"saltVersion\",wireKey:\"salt-version\",optional:!0,codec:Pt},{name:\"reveals\",wireKey:\"reveals\",optional:!0,codec:new Cn(new Ke(Ade))},{name:\"positionsToReveal\",wireKey:\"positions-to-reveal\",optional:!0,codec:nl}]};var Cde={name:\"TransactionStateProof\",kind:\"object\",fields:[{name:\"stateProofType\",wireKey:\"state-proof-type\",optional:!0,codec:Pt},{name:\"stateProof\",wireKey:\"state-proof\",optional:!0,codec:new Ke(kde)},{name:\"message\",wireKey:\"message\",optional:!0,codec:new Ke(vde)}]};var ey={name:\"Transaction\",kind:\"object\",fields:[{name:\"applicationTransaction\",wireKey:\"application-transaction\",optional:!0,codec:new Ke(sde)},{name:\"assetConfigTransaction\",wireKey:\"asset-config-transaction\",optional:!0,codec:new Ke(cde)},{name:\"assetFreezeTransaction\",wireKey:\"asset-freeze-transaction\",optional:!0,codec:new Ke(lde)},{name:\"assetTransferTransaction\",wireKey:\"asset-transfer-transaction\",optional:!0,codec:new Ke(ude)},{name:\"stateProofTransaction\",wireKey:\"state-proof-transaction\",optional:!0,codec:new Ke(Cde)},{name:\"heartbeatTransaction\",wireKey:\"heartbeat-transaction\",optional:!0,codec:new Ke(fde)},{name:\"authAddr\",wireKey:\"auth-addr\",optional:!0,codec:Jn},{name:\"closeRewards\",wireKey:\"close-rewards\",optional:!0,codec:je},{name:\"closingAmount\",wireKey:\"closing-amount\",optional:!0,codec:je},{name:\"confirmedRound\",wireKey:\"confirmed-round\",optional:!0,codec:je},{name:\"createdAppId\",wireKey:\"created-application-index\",optional:!0,codec:je},{name:\"createdAssetId\",wireKey:\"created-asset-index\",optional:!0,codec:je},{name:\"fee\",wireKey:\"fee\",optional:!1,codec:je},{name:\"firstValid\",wireKey:\"first-valid\",optional:!1,codec:je},{name:\"genesisHash\",wireKey:\"genesis-hash\",optional:!0,codec:Nr},{name:\"genesisId\",wireKey:\"genesis-id\",optional:!0,codec:At},{name:\"group\",wireKey:\"group\",optional:!0,codec:Nr},{name:\"id\",wireKey:\"id\",optional:!0,codec:At},{name:\"intraRoundOffset\",wireKey:\"intra-round-offset\",optional:!0,codec:Pt},{name:\"keyregTransaction\",wireKey:\"keyreg-transaction\",optional:!0,codec:new Ke(pde)},{name:\"lastValid\",wireKey:\"last-valid\",optional:!1,codec:je},{name:\"lease\",wireKey:\"lease\",optional:!0,codec:Nr},{name:\"note\",wireKey:\"note\",optional:!0,codec:Xt},{name:\"paymentTransaction\",wireKey:\"payment-transaction\",optional:!0,codec:new Ke(hde)},{name:\"receiverRewards\",wireKey:\"receiver-rewards\",optional:!0,codec:je},{name:\"rekeyTo\",wireKey:\"rekey-to\",optional:!0,codec:Jn},{name:\"roundTime\",wireKey:\"round-time\",optional:!0,codec:Pt},{name:\"sender\",wireKey:\"sender\",optional:!1,codec:At},{name:\"senderRewards\",wireKey:\"sender-rewards\",optional:!0,codec:je},{name:\"signature\",wireKey:\"signature\",optional:!0,codec:new Ke(yde)},{name:\"txType\",wireKey:\"tx-type\",optional:!1,codec:At},{name:\"localStateDelta\",wireKey:\"local-state-delta\",optional:!0,codec:new Cn(new Ke(nde))},{name:\"globalStateDelta\",wireKey:\"global-state-delta\",optional:!0,codec:new as(NC)},{name:\"logs\",wireKey:\"logs\",optional:!0,codec:Pi},{name:\"innerTxns\",wireKey:\"inner-txns\",optional:!0,codec:new Cn(new Ke(()=>ey))}]};var VC={name:\"Block\",kind:\"object\",fields:[{name:\"proposer\",wireKey:\"proposer\",optional:!0,codec:Jn},{name:\"feesCollected\",wireKey:\"fees-collected\",optional:!0,codec:Pt},{name:\"bonus\",wireKey:\"bonus\",optional:!0,codec:Pt},{name:\"proposerPayout\",wireKey:\"proposer-payout\",optional:!0,codec:Pt},{name:\"genesisHash\",wireKey:\"genesis-hash\",optional:!1,codec:Nr},{name:\"genesisId\",wireKey:\"genesis-id\",optional:!1,codec:At},{name:\"previousBlockHash\",wireKey:\"previous-block-hash\",optional:!1,codec:Nr},{name:\"previousBlockHash512\",wireKey:\"previous-block-hash-512\",optional:!0,codec:Po},{name:\"rewards\",wireKey:\"rewards\",optional:!1,codec:new Ke(Yue)},{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"seed\",wireKey:\"seed\",optional:!1,codec:Nr},{name:\"stateProofTracking\",wireKey:\"state-proof-tracking\",optional:!0,codec:new Cn(new Ke(Que))},{name:\"timestamp\",wireKey:\"timestamp\",optional:!1,codec:Pt},{name:\"transactions\",wireKey:\"transactions\",optional:!1,codec:new Cn(new Ke(ey))},{name:\"transactionsRoot\",wireKey:\"transactions-root\",optional:!1,codec:Nr},{name:\"transactionsRootSha256\",wireKey:\"transactions-root-sha256\",optional:!0,codec:Nr},{name:\"transactionsRootSha512\",wireKey:\"transactions-root-sha512\",optional:!0,codec:Po},{name:\"txnCounter\",wireKey:\"txn-counter\",optional:!0,codec:Pt},{name:\"upgradeState\",wireKey:\"upgrade-state\",optional:!1,codec:new Ke(Zue)},{name:\"upgradeVote\",wireKey:\"upgrade-vote\",optional:!0,codec:new Ke(Xue)},{name:\"participationUpdates\",wireKey:\"participation-updates\",optional:!1,codec:new Ke(Jue)}]};u();var Tde={name:\"Box\",kind:\"object\",fields:[{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:Xt}]};u();var _de={name:\"HealthCheck\",kind:\"object\",fields:[{name:\"version\",wireKey:\"version\",optional:!1,codec:At},{name:\"data\",wireKey:\"data\",optional:!0,codec:new Qg(B8)},{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"isMigrating\",wireKey:\"is-migrating\",optional:!1,codec:rr},{name:\"dbAvailable\",wireKey:\"db-available\",optional:!1,codec:rr},{name:\"message\",wireKey:\"message\",optional:!1,codec:At},{name:\"errors\",wireKey:\"errors\",optional:!0,codec:is}]};u();u();u();var Mde={name:\"AccountParticipation\",kind:\"object\",fields:[{name:\"selectionParticipationKey\",wireKey:\"selection-participation-key\",optional:!1,codec:Nr},{name:\"voteFirstValid\",wireKey:\"vote-first-valid\",optional:!1,codec:je},{name:\"voteKeyDilution\",wireKey:\"vote-key-dilution\",optional:!1,codec:je},{name:\"voteLastValid\",wireKey:\"vote-last-valid\",optional:!1,codec:je},{name:\"voteParticipationKey\",wireKey:\"vote-participation-key\",optional:!1,codec:Nr},{name:\"stateProofKey\",wireKey:\"state-proof-key\",optional:!0,codec:Po}]};u();var ty={name:\"ApplicationStateSchema\",kind:\"object\",fields:[{name:\"numUints\",wireKey:\"num-uint\",optional:!1,codec:Pt},{name:\"numByteSlices\",wireKey:\"num-byte-slice\",optional:!1,codec:Pt}]};u();u();u();u();u();var Ide={name:\"TealValue\",kind:\"object\",fields:[{name:\"type\",wireKey:\"type\",optional:!1,codec:Pt},{name:\"bytes\",wireKey:\"bytes\",optional:!1,codec:Xt},{name:\"uint\",wireKey:\"uint\",optional:!1,codec:je}]};var Rde={name:\"TealKeyValue\",kind:\"object\",fields:[{name:\"key\",wireKey:\"key\",optional:!1,codec:Xt},{name:\"value\",wireKey:\"value\",optional:!1,codec:new Ke(Ide)}]};var HC={name:\"TealKeyValueStore\",kind:\"array\",codec:new Cn(new Ke(Rde))};var Pde={name:\"ApplicationParams\",kind:\"object\",fields:[{name:\"creator\",wireKey:\"creator\",optional:!0,codec:Jn},{name:\"approvalProgram\",wireKey:\"approval-program\",optional:!0,codec:Xt},{name:\"clearStateProgram\",wireKey:\"clear-state-program\",optional:!0,codec:Xt},{name:\"extraProgramPages\",wireKey:\"extra-program-pages\",optional:!0,codec:Pt},{name:\"localStateSchema\",wireKey:\"local-state-schema\",optional:!0,codec:new Ke(ty)},{name:\"globalStateSchema\",wireKey:\"global-state-schema\",optional:!0,codec:new Ke(ty)},{name:\"globalState\",wireKey:\"global-state\",optional:!0,codec:new as(HC)},{name:\"version\",wireKey:\"version\",optional:!0,codec:Pt}]};var qv={name:\"Application\",kind:\"object\",fields:[{name:\"id\",wireKey:\"id\",optional:!1,codec:je},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"createdAtRound\",wireKey:\"created-at-round\",optional:!0,codec:je},{name:\"deletedAtRound\",wireKey:\"deleted-at-round\",optional:!0,codec:je},{name:\"params\",wireKey:\"params\",optional:!1,codec:new Ke(Pde)}]};u();var jC={name:\"ApplicationLocalState\",kind:\"object\",fields:[{name:\"id\",wireKey:\"id\",optional:!1,codec:je},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"optedInAtRound\",wireKey:\"opted-in-at-round\",optional:!0,codec:je},{name:\"closedOutAtRound\",wireKey:\"closed-out-at-round\",optional:!0,codec:je},{name:\"schema\",wireKey:\"schema\",optional:!1,codec:new Ke(ty)},{name:\"keyValue\",wireKey:\"key-value\",optional:!0,codec:new as(HC)}]};u();var Wv={name:\"Asset\",kind:\"object\",fields:[{name:\"id\",wireKey:\"index\",optional:!1,codec:je},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"createdAtRound\",wireKey:\"created-at-round\",optional:!0,codec:je},{name:\"destroyedAtRound\",wireKey:\"destroyed-at-round\",optional:!0,codec:je},{name:\"params\",wireKey:\"params\",optional:!1,codec:new Ke(zC)}]};u();var $C={name:\"AssetHolding\",kind:\"object\",fields:[{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"assetId\",wireKey:\"asset-id\",optional:!1,codec:je},{name:\"isFrozen\",wireKey:\"is-frozen\",optional:!1,codec:rr},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"optedInAtRound\",wireKey:\"opted-in-at-round\",optional:!0,codec:je},{name:\"optedOutAtRound\",wireKey:\"opted-out-at-round\",optional:!0,codec:je}]};var KC={name:\"Account\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:At},{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"minBalance\",wireKey:\"min-balance\",optional:!1,codec:je},{name:\"amountWithoutPendingRewards\",wireKey:\"amount-without-pending-rewards\",optional:!1,codec:je},{name:\"appsLocalState\",wireKey:\"apps-local-state\",optional:!0,codec:new Cn(new Ke(jC))},{name:\"appsTotalSchema\",wireKey:\"apps-total-schema\",optional:!0,codec:new Ke(ty)},{name:\"appsTotalExtraPages\",wireKey:\"apps-total-extra-pages\",optional:!0,codec:Pt},{name:\"assets\",wireKey:\"assets\",optional:!0,codec:new Cn(new Ke($C))},{name:\"createdApps\",wireKey:\"created-apps\",optional:!0,codec:new Cn(new Ke(qv))},{name:\"createdAssets\",wireKey:\"created-assets\",optional:!0,codec:new Cn(new Ke(Wv))},{name:\"participation\",wireKey:\"participation\",optional:!0,codec:new Ke(Mde)},{name:\"incentiveEligible\",wireKey:\"incentive-eligible\",optional:!0,codec:rr},{name:\"pendingRewards\",wireKey:\"pending-rewards\",optional:!1,codec:je},{name:\"rewardBase\",wireKey:\"reward-base\",optional:!0,codec:je},{name:\"rewards\",wireKey:\"rewards\",optional:!1,codec:je},{name:\"round\",wireKey:\"round\",optional:!1,codec:je},{name:\"status\",wireKey:\"status\",optional:!1,codec:At},{name:\"sigType\",wireKey:\"sig-type\",optional:!0,codec:At},{name:\"totalAppsOptedIn\",wireKey:\"total-apps-opted-in\",optional:!1,codec:Pt},{name:\"totalAssetsOptedIn\",wireKey:\"total-assets-opted-in\",optional:!1,codec:Pt},{name:\"totalBoxBytes\",wireKey:\"total-box-bytes\",optional:!1,codec:Pt},{name:\"totalBoxes\",wireKey:\"total-boxes\",optional:!1,codec:Pt},{name:\"totalCreatedApps\",wireKey:\"total-created-apps\",optional:!1,codec:Pt},{name:\"totalCreatedAssets\",wireKey:\"total-created-assets\",optional:!1,codec:Pt},{name:\"authAddr\",wireKey:\"auth-addr\",optional:!0,codec:Jn},{name:\"lastProposed\",wireKey:\"last-proposed\",optional:!0,codec:je},{name:\"lastHeartbeat\",wireKey:\"last-heartbeat\",optional:!0,codec:je},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"createdAtRound\",wireKey:\"created-at-round\",optional:!0,codec:je},{name:\"closedAtRound\",wireKey:\"closed-at-round\",optional:!0,codec:je}]};var Bde={name:\"AccountResponse\",kind:\"object\",fields:[{name:\"account\",wireKey:\"account\",optional:!1,codec:new Ke(KC)},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je}]};u();var Dde={name:\"AssetHoldingsResponse\",kind:\"object\",fields:[{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At},{name:\"assets\",wireKey:\"assets\",optional:!1,codec:new Cn(new Ke($C))}]};u();var Fde={name:\"AccountsResponse\",kind:\"object\",fields:[{name:\"accounts\",wireKey:\"accounts\",optional:!1,codec:new Cn(new Ke(KC))},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();u();var Ode={name:\"MiniAssetHolding\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:At},{name:\"amount\",wireKey:\"amount\",optional:!1,codec:je},{name:\"isFrozen\",wireKey:\"is-frozen\",optional:!1,codec:rr},{name:\"deleted\",wireKey:\"deleted\",optional:!0,codec:rr},{name:\"optedInAtRound\",wireKey:\"opted-in-at-round\",optional:!0,codec:je},{name:\"optedOutAtRound\",wireKey:\"opted-out-at-round\",optional:!0,codec:je}]};var Lde={name:\"AssetBalancesResponse\",kind:\"object\",fields:[{name:\"balances\",wireKey:\"balances\",optional:!1,codec:new Cn(new Ke(Ode))},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();var Nde={name:\"ApplicationResponse\",kind:\"object\",fields:[{name:\"application\",wireKey:\"application\",optional:!0,codec:new Ke(qv)},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je}]};u();var Pz={name:\"ApplicationsResponse\",kind:\"object\",fields:[{name:\"applications\",wireKey:\"applications\",optional:!1,codec:new Cn(new Ke(qv))},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();u();var Ude={name:\"ApplicationLogData\",kind:\"object\",fields:[{name:\"txId\",wireKey:\"txid\",optional:!1,codec:At},{name:\"logs\",wireKey:\"logs\",optional:!1,codec:Pi}]};var zde={name:\"ApplicationLogsResponse\",kind:\"object\",fields:[{name:\"applicationId\",wireKey:\"application-id\",optional:!1,codec:je},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At},{name:\"logData\",wireKey:\"log-data\",optional:!0,codec:new Cn(new Ke(Ude))}]};u();var Vde={name:\"ApplicationLocalStatesResponse\",kind:\"object\",fields:[{name:\"appsLocalStates\",wireKey:\"apps-local-states\",optional:!1,codec:new Cn(new Ke(jC))},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();var Hde={name:\"AssetResponse\",kind:\"object\",fields:[{name:\"asset\",wireKey:\"asset\",optional:!1,codec:new Ke(Wv)},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je}]};u();u();var jde={name:\"BoxDescriptor\",kind:\"object\",fields:[{name:\"name\",wireKey:\"name\",optional:!1,codec:Xt}]};var $de={name:\"BoxesResponse\",kind:\"object\",fields:[{name:\"applicationId\",wireKey:\"application-id\",optional:!1,codec:je},{name:\"boxes\",wireKey:\"boxes\",optional:!1,codec:new Cn(new Ke(jde))},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();var Bz={name:\"AssetsResponse\",kind:\"object\",fields:[{name:\"assets\",wireKey:\"assets\",optional:!1,codec:new Cn(new Ke(Wv))},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At}]};u();var Kde={name:\"BlockHeadersResponse\",kind:\"object\",fields:[{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At},{name:\"blocks\",wireKey:\"blocks\",optional:!1,codec:new Cn(new Ke(VC))}]};u();var Gde={name:\"TransactionResponse\",kind:\"object\",fields:[{name:\"transaction\",wireKey:\"transaction\",optional:!1,codec:new Ke(ey)},{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je}]};u();var GC={name:\"TransactionsResponse\",kind:\"object\",fields:[{name:\"currentRound\",wireKey:\"current-round\",optional:!1,codec:je},{name:\"nextToken\",wireKey:\"next-token\",optional:!0,codec:At},{name:\"transactions\",wireKey:\"transactions\",optional:!1,codec:new Cn(new Ke(ey))}]};var qde=class{constructor(t){this.httpRequest=t}mimeTypeFor(t){return t===\"json\"?\"application/json\":t===\"msgpack\"?\"application/msgpack\":\"text/plain\"}async healthCheck(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/health\",path:{},query:{},headers:t,body:void 0}),_de)}async lookupAccountAppLocalStates(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}/apps-local-state\",path:{\"account-id\":t},query:{\"application-id\":e?.applicationId,\"include-all\":e?.includeAll,limit:e?.limit,next:e?.next},headers:n,body:void 0}),Vde)}async lookupAccountAssets(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}/assets\",path:{\"account-id\":t},query:{\"asset-id\":e?.assetId,\"include-all\":e?.includeAll,limit:e?.limit,next:e?.next},headers:n,body:void 0}),Dde)}async lookupAccountById(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}\",path:{\"account-id\":t},query:{round:e?.round,\"include-all\":e?.includeAll,exclude:e?.exclude},headers:n,body:void 0}),Bde)}async lookupAccountCreatedApplications(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}/created-applications\",path:{\"account-id\":t},query:{\"application-id\":e?.applicationId,\"include-all\":e?.includeAll,limit:e?.limit,next:e?.next},headers:n,body:void 0}),Pz)}async lookupAccountCreatedAssets(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}/created-assets\",path:{\"account-id\":t},query:{\"asset-id\":e?.assetId,\"include-all\":e?.includeAll,limit:e?.limit,next:e?.next},headers:n,body:void 0}),Bz)}async lookupAccountTransactions(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts/{account-id}/transactions\",path:{\"account-id\":t},query:{limit:e?.limit,next:e?.next,\"note-prefix\":e?.notePrefix,\"tx-type\":e?.txType,\"sig-type\":e?.sigType,txid:e?.txId,round:e?.round,\"min-round\":e?.minRound,\"max-round\":e?.maxRound,\"asset-id\":e?.assetId,\"before-time\":e?.beforeTime,\"after-time\":e?.afterTime,\"currency-greater-than\":e?.currencyGreaterThan,\"currency-less-than\":e?.currencyLessThan,\"rekey-to\":e?.rekeyTo},headers:n,body:void 0}),GC)}async _lookupApplicationBoxByIdAndName(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}/box\",path:{\"application-id\":t},query:{name:e?.name},headers:n,body:void 0}),Tde)}async lookupApplicationById(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}\",path:{\"application-id\":t},query:{\"include-all\":e?.includeAll},headers:n,body:void 0}),Nde)}async lookupApplicationLogsById(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}/logs\",path:{\"application-id\":t},query:{limit:e?.limit,next:e?.next,txid:e?.txId,\"min-round\":e?.minRound,\"max-round\":e?.maxRound,\"sender-address\":e?.senderAddress},headers:n,body:void 0}),zde)}async lookupAssetBalances(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/assets/{asset-id}/balances\",path:{\"asset-id\":t},query:{\"include-all\":e?.includeAll,limit:e?.limit,next:e?.next,\"currency-greater-than\":e?.currencyGreaterThan,\"currency-less-than\":e?.currencyLessThan},headers:n,body:void 0}),Lde)}async lookupAssetById(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/assets/{asset-id}\",path:{\"asset-id\":t},query:{\"include-all\":e?.includeAll},headers:n,body:void 0}),Hde)}async lookupAssetTransactions(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/assets/{asset-id}/transactions\",path:{\"asset-id\":t},query:{limit:e?.limit,next:e?.next,\"note-prefix\":e?.notePrefix,\"tx-type\":e?.txType,\"sig-type\":e?.sigType,txid:e?.txId,round:e?.round,\"min-round\":e?.minRound,\"max-round\":e?.maxRound,\"before-time\":e?.beforeTime,\"after-time\":e?.afterTime,\"currency-greater-than\":e?.currencyGreaterThan,\"currency-less-than\":e?.currencyLessThan,address:e?.address,\"address-role\":e?.addressRole,\"exclude-close-to\":e?.excludeCloseTo,\"rekey-to\":e?.rekeyTo},headers:n,body:void 0}),GC)}async lookupBlock(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/blocks/{round-number}\",path:{\"round-number\":t},query:{\"header-only\":e?.headerOnly},headers:n,body:void 0}),VC)}async lookupTransactionById(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/transactions/{txid}\",path:{txid:t},query:{},headers:e,body:void 0}),Gde)}async searchForAccounts(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/accounts\",path:{},query:{\"asset-id\":t?.assetId,limit:t?.limit,next:t?.next,\"currency-greater-than\":t?.currencyGreaterThan,\"include-all\":t?.includeAll,exclude:t?.exclude,\"currency-less-than\":t?.currencyLessThan,\"auth-addr\":t?.authAddr,round:t?.round,\"application-id\":t?.applicationId,\"online-only\":t?.onlineOnly},headers:e,body:void 0}),Fde)}async searchForApplicationBoxes(t,e){let n={};return n.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications/{application-id}/boxes\",path:{\"application-id\":t},query:{limit:e?.limit,next:e?.next},headers:n,body:void 0}),$de)}async searchForApplications(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/applications\",path:{},query:{\"application-id\":t?.applicationId,creator:t?.creator,\"include-all\":t?.includeAll,limit:t?.limit,next:t?.next},headers:e,body:void 0}),Pz)}async searchForAssets(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/assets\",path:{},query:{\"include-all\":t?.includeAll,limit:t?.limit,next:t?.next,creator:t?.creator,name:t?.name,unit:t?.unit,\"asset-id\":t?.assetId},headers:e,body:void 0}),Bz)}async searchForBlockHeaders(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/block-headers\",path:{},query:{limit:t?.limit,next:t?.next,\"min-round\":t?.minRound,\"max-round\":t?.maxRound,\"before-time\":t?.beforeTime,\"after-time\":t?.afterTime,proposers:t?.proposers,expired:t?.expired,absent:t?.absent},headers:e,body:void 0}),Kde)}async searchForTransactions(t){let e={};return e.Accept=this.mimeTypeFor(\"json\"),qi(await this.httpRequest.request({method:\"GET\",url:\"/v2/transactions\",path:{},query:{limit:t?.limit,next:t?.next,\"note-prefix\":t?.notePrefix,\"tx-type\":t?.txType,\"sig-type\":t?.sigType,\"group-id\":t?.groupId,txid:t?.txId,round:t?.round,\"min-round\":t?.minRound,\"max-round\":t?.maxRound,\"asset-id\":t?.assetId,\"before-time\":t?.beforeTime,\"after-time\":t?.afterTime,\"currency-greater-than\":t?.currencyGreaterThan,\"currency-less-than\":t?.currencyLessThan,address:t?.address,\"address-role\":t?.addressRole,\"exclude-close-to\":t?.excludeCloseTo,\"rekey-to\":t?.rekeyTo,\"application-id\":t?.applicationId},headers:e,body:void 0}),GC)}async lookupApplicationBoxByIdAndName(t,e){let n=`b64:${globalThis.Buffer.from(e).toString(\"base64\")}`;return this._lookupApplicationBoxByIdAndName(t,{name:n})}};var Wde=class extends qde{constructor(t){super(new Wue(t))}};u();u();u();var Yde=class{constructor(t){this.config=t}},qC=t=>typeof t==\"object\"&&\"addr\"in t?t.addr.toString():t.toString();u();u();var Zde=class extends Error{constructor(e,n,r){let o=`Request to ${e} failed with status ${n}`;r&&typeof r==\"object\"&&\"message\"in r&&r.message&&(o+=`: ${r.message}`);super(o);ge(this,\"url\");ge(this,\"status\");ge(this,\"body\");this.url=e,this.status=n,this.body=r}};var WDe=t=>encodeURI(t).replace(/%5B/g,\"[\").replace(/%5D/g,\"]\");async function Xde(t,e){let n=e.url.endsWith(\"/\")?e.url.slice(0,-1):e.url;if(e.path)for(let[p,m]of Object.entries(e.path)){let g=WDe(qC(m));n=n.replace(`{${p}}`,g)}let r=new URL(n,t.baseUrl);if(t.port!==void 0&&(r.port=t.port.toString()),e.query)for(let[p,m]of Object.entries(e.query))m!=null&&r.searchParams.set(p,Array.isArray(m)?m.map(g=>qC(g)).join(\",\"):qC(m));let o={...t.headers??{},...e.headers??{}};if(t.token)if(typeof t.token==\"string\")o[\"X-KMD-API-Token\"]=t.token;else for(let[p,m]of Object.entries(t.token))o[p]=m;let a=e.headers?.[\"Content-Type\"]??e.headers?.[\"content-type\"],c;e.body!=null&&(e.body instanceof Uint8Array?c=e.body.slice().buffer:typeof e.body==\"string\"?c=e.body:a?.includes(\"msgpack\")?c=Ec(e.body).slice().buffer:a?.includes(\"json\")?c=Ac(e.body):c=Ac(e.body));let l=await fetch(r.toString(),{method:e.method,headers:o,body:c}),f=l.headers.get(\"content-type\")??\"\";if(!l.ok){let p;try{f.includes(\"application/msgpack\")?p=_s(new Uint8Array(await l.arrayBuffer()),{useMap:!1,rawBinaryStringKeys:!1,rawBinaryStringValues:!1}):f.includes(\"application/json\")?p=$d(await l.text()):p=await l.text()}catch{p=void 0}throw new Zde(r.pathname.toString(),l.status,p)}return f.includes(\"application/msgpack\")||f.includes(\"application/octet-stream\")||f.includes(\"application/x-binary\")?new Uint8Array(await l.arrayBuffer()):f.includes(\"application/json\")?$d(await l.text()):f?await l.text():new Uint8Array(await l.arrayBuffer())}var YDe=[408,413,429,500,502,503,504],ZDe=[\"ETIMEDOUT\",\"ECONNRESET\",\"EADDRINUSE\",\"ECONNREFUSED\",\"EPIPE\",\"ENOTFOUND\",\"ENETUNREACH\",\"EAI_AGAIN\",\"EPROTO\"],XDe=5,JDe=1e4,QDe=t=>{if(typeof t==\"number\")return Number.isNaN(t)?void 0:t;if(typeof t==\"string\"){let e=Number(t);return Number.isNaN(e)?void 0:e}},eFe=t=>{if(!t||typeof t!=\"object\")return;let e=t;return QDe(e.status??e.response?.status)},tFe=t=>{if(!t||typeof t!=\"object\")return;let e=t,n=e.code??e.cause?.code;return typeof n==\"string\"?n:void 0},nFe=async t=>new Promise(e=>{setTimeout(e,t)}),rFe=t=>typeof t!=\"number\"||!Number.isFinite(t)?XDe:Math.floor(t)+1,Jde=class extends Yde{async request(t){let e=rFe(this.config.maxRetries),n=1,r;for(;n<=e;)try{return await Xde(this.config,t)}catch(o){if(r=o,!this.shouldRetry(o,n,e))throw o;let a=n===1?0:Math.min(1e3*2**(n-1),JDe);a>0&&await nFe(a),this.config.logger?.warn(`Request failed ${n} times. Retrying in ${a}ms: ${o}`),n+=1}throw r??new Error(`Request failed after ${e} attempt(s)`)}shouldRetry(t,e,n){if(e>=n)return!1;let r=eFe(t);if(r!==void 0&&YDe.includes(r))return!0;let o=tFe(t);return!!(o&&ZDe.includes(o))}};u();u();function na(t,e,n){return Ac(new Ke(e).encode(t,\"json\"),void 0,n)}function ya(t,e){return new Ke(e).decode(t,\"json\")}u();u();u();var Qde={name:\"TxType\",kind:\"primitive\",codec:At};var Vm={name:\"Wallet\",kind:\"object\",fields:[{name:\"driverName\",wireKey:\"driver_name\",optional:!1,codec:At},{name:\"driverVersion\",wireKey:\"driver_version\",optional:!1,codec:Pt},{name:\"id\",wireKey:\"id\",optional:!1,codec:At},{name:\"mnemonicUx\",wireKey:\"mnemonic_ux\",optional:!1,codec:rr},{name:\"name\",wireKey:\"name\",optional:!1,codec:At},{name:\"supportedTxs\",wireKey:\"supported_txs\",optional:!1,codec:new Cn(new D8(Qde))}]};var efe={name:\"ListWalletsResponse\",kind:\"object\",fields:[{name:\"wallets\",wireKey:\"wallets\",optional:!1,codec:new Cn(new Ke(Vm))}]};u();var tfe={name:\"ExportKeyResponse\",kind:\"object\",fields:[{name:\"privateKey\",wireKey:\"private_key\",optional:!1,codec:Xt}]};u();var nfe={name:\"ImportKeyResponse\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn}]};u();var rfe={name:\"ListKeysResponse\",kind:\"object\",fields:[{name:\"addresses\",wireKey:\"addresses\",optional:!1,codec:ec}]};u();var ofe={name:\"GenerateKeyResponse\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn}]};u();var ife={name:\"ExportMasterKeyResponse\",kind:\"object\",fields:[{name:\"masterDerivationKey\",wireKey:\"master_derivation_key\",optional:!1,codec:Xt}]};u();var afe={name:\"ExportMultisigResponse\",kind:\"object\",fields:[{name:\"multisigVersion\",wireKey:\"multisig_version\",optional:!1,codec:Pt},{name:\"publicKeys\",wireKey:\"pks\",optional:!1,codec:Pi},{name:\"threshold\",wireKey:\"threshold\",optional:!1,codec:Pt}]};u();var sfe={name:\"ImportMultisigResponse\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn}]};u();var cfe={name:\"ListMultisigResponse\",kind:\"object\",fields:[{name:\"addresses\",wireKey:\"addresses\",optional:!1,codec:ec}]};u();var lfe={name:\"SignProgramMultisigResponse\",kind:\"object\",fields:[{name:\"multisig\",wireKey:\"multisig\",optional:!1,codec:Xt}]};u();var ufe={name:\"SignMultisigResponse\",kind:\"object\",fields:[{name:\"multisig\",wireKey:\"multisig\",optional:!1,codec:Xt}]};u();var dfe={name:\"SignProgramResponse\",kind:\"object\",fields:[{name:\"sig\",wireKey:\"sig\",optional:!1,codec:Xt}]};u();var ffe={name:\"SignTransactionResponse\",kind:\"object\",fields:[{name:\"signedTransaction\",wireKey:\"signed_transaction\",optional:!1,codec:Xt}]};u();u();var WC={name:\"WalletHandle\",kind:\"object\",fields:[{name:\"expiresSeconds\",wireKey:\"expires_seconds\",optional:!1,codec:Pt},{name:\"wallet\",wireKey:\"wallet\",optional:!1,codec:new Ke(Vm)}]};var pfe={name:\"WalletInfoResponse\",kind:\"object\",fields:[{name:\"walletHandle\",wireKey:\"wallet_handle\",optional:!1,codec:new Ke(WC)}]};u();var hfe={name:\"InitWalletHandleTokenResponse\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var mfe={name:\"RenameWalletResponse\",kind:\"object\",fields:[{name:\"wallet\",wireKey:\"wallet\",optional:!1,codec:new Ke(Vm)}]};u();var gfe={name:\"RenewWalletHandleTokenResponse\",kind:\"object\",fields:[{name:\"walletHandle\",wireKey:\"wallet_handle\",optional:!1,codec:new Ke(WC)}]};u();var yfe={name:\"CreateWalletResponse\",kind:\"object\",fields:[{name:\"wallet\",wireKey:\"wallet\",optional:!1,codec:new Ke(Vm)}]};u();var vfe={name:\"CreateWalletRequest\",kind:\"object\",fields:[{name:\"masterDerivationKey\",wireKey:\"master_derivation_key\",optional:!0,codec:Xt},{name:\"walletDriverName\",wireKey:\"wallet_driver_name\",optional:!0,codec:At},{name:\"walletName\",wireKey:\"wallet_name\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!1,codec:At}]};u();var xfe={name:\"DeleteKeyRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var bfe={name:\"DeleteMultisigRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var wfe={name:\"ExportKeyRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Efe={name:\"ExportMasterKeyRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Sfe={name:\"ExportMultisigRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Afe={name:\"GenerateKeyRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var kfe={name:\"ImportKeyRequest\",kind:\"object\",fields:[{name:\"privateKey\",wireKey:\"private_key\",optional:!1,codec:Xt},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Cfe={name:\"ImportMultisigRequest\",kind:\"object\",fields:[{name:\"multisigVersion\",wireKey:\"multisig_version\",optional:!1,codec:Pt},{name:\"publicKeys\",wireKey:\"pks\",optional:!1,codec:Pi},{name:\"threshold\",wireKey:\"threshold\",optional:!1,codec:Pt},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Tfe={name:\"InitWalletHandleTokenRequest\",kind:\"object\",fields:[{name:\"walletId\",wireKey:\"wallet_id\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!1,codec:At}]};u();var _fe={name:\"ListKeysRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Mfe={name:\"ListMultisigRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Ife={name:\"ReleaseWalletHandleTokenRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();var Rfe={name:\"RenameWalletRequest\",kind:\"object\",fields:[{name:\"walletId\",wireKey:\"wallet_id\",optional:!1,codec:At},{name:\"walletName\",wireKey:\"wallet_name\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!1,codec:At}]};u();var Pfe={name:\"RenewWalletHandleTokenRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};u();u();u();var Bfe={name:\"MultisigSubsig\",kind:\"object\",fields:[{name:\"publicKey\",wireKey:\"pk\",optional:!1,codec:Xt},{name:\"signature\",wireKey:\"s\",optional:!0,codec:Xt}]};var YC={name:\"MultisigSig\",kind:\"object\",fields:[{name:\"subsignatures\",wireKey:\"subsig\",optional:!1,codec:new Cn(new Ke(Bfe))},{name:\"threshold\",wireKey:\"thr\",optional:!1,codec:Pt},{name:\"version\",wireKey:\"v\",optional:!1,codec:Pt}]};var Dfe={name:\"SignMultisigTxnRequest\",kind:\"object\",fields:[{name:\"partialMultisig\",wireKey:\"partial_multisig\",optional:!0,codec:new Ke(YC)},{name:\"publicKey\",wireKey:\"public_key\",optional:!1,codec:Xt},{name:\"signer\",wireKey:\"signer\",optional:!0,codec:Xt},{name:\"transaction\",wireKey:\"transaction\",optional:!1,codec:Xt},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Ffe={name:\"SignProgramMultisigRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"program\",wireKey:\"data\",optional:!1,codec:Xt},{name:\"partialMultisig\",wireKey:\"partial_multisig\",optional:!0,codec:new Ke(YC)},{name:\"publicKey\",wireKey:\"public_key\",optional:!1,codec:Xt},{name:\"useLegacyMsig\",wireKey:\"use_legacy_msig\",optional:!0,codec:rr},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Ofe={name:\"SignProgramRequest\",kind:\"object\",fields:[{name:\"address\",wireKey:\"address\",optional:!1,codec:Jn},{name:\"program\",wireKey:\"data\",optional:!1,codec:Xt},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Lfe={name:\"SignTxnRequest\",kind:\"object\",fields:[{name:\"publicKey\",wireKey:\"public_key\",optional:!0,codec:Xt},{name:\"transaction\",wireKey:\"transaction\",optional:!1,codec:Xt},{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At},{name:\"walletPassword\",wireKey:\"wallet_password\",optional:!0,codec:At}]};u();var Nfe={name:\"VersionsResponse\",kind:\"object\",fields:[{name:\"versions\",wireKey:\"versions\",optional:!1,codec:is}]};u();var Ufe={name:\"WalletInfoRequest\",kind:\"object\",fields:[{name:\"walletHandleToken\",wireKey:\"wallet_handle_token\",optional:!1,codec:At}]};var zfe=class{constructor(t){this.httpRequest=t}mimeTypeFor(t){return t===\"json\"?\"application/json\":t===\"msgpack\"?\"application/msgpack\":\"text/plain\"}async _createWallet(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=vfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet\",path:{},query:{},headers:e,body:a}),yfe)}async deleteKey(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=xfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;await this.httpRequest.request({method:\"DELETE\",url:\"/v1/key\",path:{},query:{},headers:e,body:a})}async deleteMultisig(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=bfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;await this.httpRequest.request({method:\"DELETE\",url:\"/v1/multisig\",path:{},query:{},headers:e,body:a})}async exportKey(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=wfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/key/export\",path:{},query:{},headers:e,body:a}),tfe)}async exportMasterKey(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Efe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/master-key/export\",path:{},query:{},headers:e,body:a}),ife)}async exportMultisig(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Sfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/multisig/export\",path:{},query:{},headers:e,body:a}),afe)}async generateKey(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Afe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/key\",path:{},query:{},headers:e,body:a}),ofe)}async importKey(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=kfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/key/import\",path:{},query:{},headers:e,body:a}),nfe)}async importMultisig(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Cfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/multisig/import\",path:{},query:{},headers:e,body:a}),sfe)}async initWalletHandle(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Tfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet/init\",path:{},query:{},headers:e,body:a}),hfe)}async listKeysInWallet(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=_fe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/key/list\",path:{},query:{},headers:e,body:a}),rfe)}async listMultisig(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Mfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/multisig/list\",path:{},query:{},headers:e,body:a}),cfe)}async listWallets(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),ya(await this.httpRequest.request({method:\"GET\",url:\"/v1/wallets\",path:{},query:{},headers:t,body:void 0}),efe)}async releaseWalletHandleToken(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Ife,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet/release\",path:{},query:{},headers:e,body:a})}async renameWallet(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Rfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet/rename\",path:{},query:{},headers:e,body:a}),mfe)}async renewWalletHandleToken(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Pfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet/renew\",path:{},query:{},headers:e,body:a}),gfe)}async signMultisigProgram(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Ffe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/multisig/signprogram\",path:{},query:{},headers:e,body:a}),lfe)}async _signMultisigTransaction(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Dfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/multisig/sign\",path:{},query:{},headers:e,body:a}),ufe)}async signProgram(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Ofe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/program/sign\",path:{},query:{},headers:e,body:a}),dfe)}async _signTransaction(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Lfe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/transaction/sign\",path:{},query:{},headers:e,body:a}),ffe)}async version(){let t={};return t.Accept=this.mimeTypeFor(\"json\"),ya(await this.httpRequest.request({method:\"GET\",url:\"/versions\",path:{},query:{},headers:t,body:void 0}),Nfe)}async walletInfo(t){let e={},n=\"json\";e.Accept=this.mimeTypeFor(n);let r=Ufe,o=this.mimeTypeFor(r?n:\"text\");o&&(e[\"Content-Type\"]=o);let a=t?na(t,r):void 0;return ya(await this.httpRequest.request({method:\"POST\",url:\"/v1/wallet/info\",path:{},query:{},headers:e,body:a}),pfe)}async createWallet(t){return await this._createWallet({...t,walletDriverName:t.walletDriverName??\"sqlite\"})}async signMultisigTransaction(t){let e={...t,transaction:jl(t.transaction)};return this._signMultisigTransaction(e)}async signTransaction(t){let e={...t,transaction:jl(t.transaction)};return this._signTransaction(e)}};var Vfe=class extends zfe{constructor(t){super(new Jde(t))}};u();u();function ZC(t,e){if(t===\"AVMBytes\"||t===\"AVMString\"||t===\"AVMUint64\")return t;if(e[t])return T8.fromStruct(t,e);try{return vi.from(t)}catch(n){throw new Error(`Failed to parse storage type \\'${t}\\': ${n}`)}}function XC(t,e){let n=ZC(t.keyType,e),r=ZC(t.valueType,e);return{key:t.key,keyType:n,valueType:r,desc:t.desc}}function Dz(t,e){return{keyType:ZC(t.keyType,e),valueType:ZC(t.valueType,e),desc:t.desc,prefix:t.prefix}}function Hfe(t,e){let n=t.state.keys.box[e];if(!n)throw new Error(`Box storage key \\'${e}\\' not found in contract \\'${t.name}\\'`);return XC(n,t.structs)}function Fz(t){let e={};for(let[n,r]of Object.entries(t.state.keys.global))e[n]=XC(r,t.structs);return e}function Oz(t){let e={};for(let[n,r]of Object.entries(t.state.keys.local))e[n]=XC(r,t.structs);return e}function jfe(t){let e={};for(let[n,r]of Object.entries(t.state.keys.box))e[n]=XC(r,t.structs);return e}function Lz(t,e){let n=t.state.maps.box[e];if(!n)throw new Error(`Box storage map \\'${e}\\' not found in contract \\'${t.name}\\'`);return Dz(n,t.structs)}function $fe(t){let e={};for(let[n,r]of Object.entries(t.state.maps.global))e[n]=Dz(r,t.structs);return e}function Kfe(t){let e={};for(let[n,r]of Object.entries(t.state.maps.local))e[n]=Dz(r,t.structs);return e}u();function Gfe(t){let e=Object.values(t.hints).flatMap(f=>Object.entries(f.structs??{})),n=Object.fromEntries(e.map(([f,p])=>{let m=p.elements.map(g=>({name:g[0],type:g[1]}));return[p.name,m]})),r=f=>t.hints[oFe(f)],o=(f,p)=>r(f)?.call_config!==void 0?c(r(f)?.call_config,p):[],a=f=>c(t.bare_call_config,f),c=(f,p)=>{let m=[];return f.close_out&&[\"ALL\",p].includes(f.close_out)&&m.push(\"CloseOut\"),f.delete_application&&[\"ALL\",p].includes(f.delete_application)&&m.push(\"DeleteApplication\"),f.no_op&&[\"ALL\",p].includes(f.no_op)&&m.push(\"NoOp\"),f.opt_in&&[\"ALL\",p].includes(f.opt_in)&&m.push(\"OptIn\"),f.update_application&&[\"ALL\",p].includes(f.update_application)&&m.push(\"UpdateApplication\"),m},l=f=>{if(!f)return;if(f.source===\"abi-method\")return{source:\"method\",data:f.data.name};let p=f.source===\"constant\"?\"literal\":f.source===\"global-state\"?\"global\":\"local\",m;p===\"literal\"&&(typeof f.data==\"number\"?m=\"uint64\":typeof f.data==\"string\"&&(m=\"AVMString\"));let g=typeof f.data==\"number\"?vi.from(\"uint64\").encode(f.data):typeof f.data==\"string\"?new TextEncoder().encode(f.data):f.data;return{source:p,data:globalThis.Buffer.from(g).toString(\"base64\"),type:m}};return{arcs:[],name:t.contract.name,desc:t.contract.desc,structs:n,methods:t.contract.methods.map(f=>({name:f.name,desc:f.desc,args:f.args.map(p=>({name:p.name,type:p.type,desc:p.desc,struct:p.name?r(f)?.structs?.[p.name]?.name:void 0,defaultValue:l(p.name?r(f)?.default_arguments?.[p.name]:void 0)})),returns:{type:f.returns.type,desc:f.returns.desc,struct:r(f)?.structs?.output?.name},events:[],readonly:r(f)?.read_only,actions:{create:o(f,\"CREATE\"),call:o(f,\"CALL\")}})),state:{schema:{global:{ints:t.state.global.num_uints,bytes:t.state.global.num_byte_slices},local:{ints:t.state.local.num_uints,bytes:t.state.local.num_byte_slices}},keys:{global:Object.fromEntries(Object.entries(t.schema.global.declared).map(f=>[f[0],{key:globalThis.Buffer.from(f[1].key,\"utf-8\").toString(\"base64\"),keyType:\"AVMString\",valueType:f[1].type===\"uint64\"?\"AVMUint64\":\"AVMBytes\",desc:f[1].descr}])),local:Object.fromEntries(Object.entries(t.schema.local.declared).map(f=>[f[0],{key:globalThis.Buffer.from(f[1].key,\"utf-8\").toString(\"base64\"),keyType:\"AVMString\",valueType:f[1].type===\"uint64\"?\"AVMUint64\":\"AVMBytes\",desc:f[1].descr}])),box:{}},maps:{global:{},local:{},box:{}}},source:t.source,bareActions:{create:a(\"CREATE\"),call:a(\"CALL\")},byteCode:void 0,compilerInfo:void 0,events:void 0,networks:void 0,scratchVariables:void 0,sourceInfo:void 0,templateVariables:void 0}}function oFe(t){let e=t.args.map(n=>n.type).join(\",\");return`${t.name}(${e})${t.returns.type}`}u();var iFe=/transaction ([A-Z0-9]+): logic eval error: (.*). Details: .*pc=([0-9]+).*/,aFe=/inner tx (\\\\d+) failed:.*?pc=([0-9]+)/,JC=class extends Error{constructor(e,n,r){super();ge(this,\"led\");ge(this,\"program\");ge(this,\"lines\",5);ge(this,\"teal_line\",0);ge(this,\"stack\");this.led=e,this.program=n;let o=r(e.pc);if(this.teal_line=o===void 0?0:o,this.message=`${this.led.msg}. at:${o}. ${this.led.desc}`,this.teal_line>0){let a=this.teal_line>this.lines?this.teal_line-this.lines:0,c=n.length>this.teal_line+this.lines?this.teal_line+this.lines:n.length,l=n.slice(a,c);l[l.length/2]+=\" <--- Error\",this.stack=l.join(`\\n`)}}static parseLogicError(e){let n=e.message,r=iFe.exec(n),o=aFe.exec(n);if(!(r===null||r.length<=3))return{txId:r[1],msg:r[2],desc:n,pc:parseInt(o?.[2]??r[3]??\"0\"),traces:e.traces}}};var ja=br($s(),1);var sFe=2e4*16,Nz=38,qfe=32;function cFe(t){let e=[...t],n=e.length;e.shift();let r,o;for(;e.length>0;){let a=e.shift();if(a===Nz||a===qfe){let c=a===Nz,l=e.shift();for(let f=0;f<l;f++)if(c){let p=e.shift();e.splice(0,p)}else for(;(e.shift()&128)!==0;);if(c?r=n-e.length-1:o=n-e.length-1,e[0]!==Nz&&e[0]!==qfe)break}}return Math.max(r??0,o??0)}var qd=class Ip{constructor(e){ge(this,\"_appId\");ge(this,\"_appAddress\");ge(this,\"_appName\");ge(this,\"_appSpec\");ge(this,\"_algorand\");ge(this,\"_defaultSender\");ge(this,\"_defaultSigner\");ge(this,\"_approvalSourceMap\");ge(this,\"_clearSourceMap\");ge(this,\"_localStateMethods\");ge(this,\"_globalStateMethods\");ge(this,\"_boxStateMethods\");ge(this,\"_paramsMethods\");ge(this,\"_createTransactionsMethods\");ge(this,\"_sendMethods\");ge(this,\"_lastCompiled\");ge(this,\"handleCallErrors\",async e=>{if(this.appId===0n){if(e.sentTransactions===void 0)return e;let r=e.sentTransactions.find(a=>e.message.includes(a.txId())),o=(a,c)=>{if(a===void 0||c===void 0||a.length!==c.length)return!1;for(let l=0;l<a.length;l++)if(a[l]!==c[l])return!1;return!0};if(!o(r?.appCall?.clearStateProgram,this._lastCompiled.clear)||!o(r?.appCall?.approvalProgram,this._lastCompiled?.approval))return e}else{let r=`app=${this._appId.toString()}`;if(!e.message.includes(r))return e}let n=await this.exposeLogicError(e);if(n instanceof JC){let r=n.teal_line-n.lines-1,o=n.stack?.split(`\\n`).map(a=>`${r+=1}: ${a}`).join(`\\n`);Cr.logger.error(`${n.message}\\n\\n${o}`)}return n});this._appId=e.appId,this._appAddress=Hl(this._appId),this._appSpec=Ip.normaliseAppSpec(e.appSpec),this._appName=e.appName??this._appSpec.name,this._algorand=e.algorand,this._algorand.registerErrorTransformer(this.handleCallErrors),this._defaultSender=yi(e.defaultSender),this._defaultSigner=e.defaultSigner,this._lastCompiled={},this._approvalSourceMap=e.approvalSourceMap,this._clearSourceMap=e.clearSourceMap,this._localStateMethods=n=>this.getStateMethods(()=>this.getLocalState(n),()=>Oz(this._appSpec),()=>Kfe(this._appSpec)),this._globalStateMethods=this.getStateMethods(()=>this.getGlobalState(),()=>Fz(this._appSpec),()=>$fe(this._appSpec)),this._boxStateMethods=this.getBoxMethods(),this._paramsMethods={...this.getMethodCallParamsMethods(),bare:this.getBareParamsMethods()},this._createTransactionsMethods={...this.getMethodCallCreateTransactionMethods(),bare:this.getBareCreateTransactionMethods()},this._sendMethods={...this.getMethodCallSendMethods(),bare:this.getBareSendMethods()}}clone(e){return new Ip({appId:this._appId,appSpec:this._appSpec,algorand:this._algorand,appName:this._appName,defaultSender:this._defaultSender,defaultSigner:this._defaultSigner,approvalSourceMap:this._approvalSourceMap,clearSourceMap:this._clearSourceMap,...e})}static async fromCreatorAndName(e){let n=Ip.normaliseAppSpec(e.appSpec),r=(e.appLookupCache??await e.algorand.appDeployer.getCreatorAppsByName(e.creatorAddress,e.ignoreCache)).apps[e.appName??n.name];if(!r)throw new Error(`App not found for creator ${e.creatorAddress} and name ${e.appName??n.name}`);return new Ip({...e,algorand:e.algorand,appId:r.appId})}static async fromNetwork(e){let n=await e.algorand.client.network(),r=Ip.normaliseAppSpec(e.appSpec),o=[n.genesisHash];n.isLocalNet&&o.push(\"localnet\"),n.isTestNet&&o.push(\"testnet\"),n.isMainNet&&o.push(\"mainnet\");let a=Object.keys(r.networks??{}).findIndex(l=>o.includes(l));if(a===-1)throw new Error(`No app ID found for network ${Gd(o)} in the app spec`);let c=BigInt(r.networks[a].appID);return new Ip({...e,appId:c,appSpec:r})}static normaliseAppSpec(e){let n=typeof e==\"string\"?JSON.parse(e):e;return\"hints\"in n?Gfe(n):n}get appId(){return this._appId}get appAddress(){return this._appAddress}get appName(){return this._appName}get appSpec(){return this._appSpec}get algorand(){return this._algorand}get params(){return this._paramsMethods}get createTransaction(){return this._createTransactionsMethods}get send(){return this._sendMethods}get state(){return{local:this._localStateMethods,global:this._globalStateMethods,box:this._boxStateMethods}}async fundAppAccount(e){return this.send.fundAppAccount(e)}async getGlobalState(){return await this._algorand.app.getGlobalState(this.appId)}async getLocalState(e){return await this._algorand.app.getLocalState(this.appId,cr(e))}async getBoxNames(){return await this._algorand.app.getBoxNames(this.appId)}async getBoxValue(e){return await this._algorand.app.getBoxValue(this.appId,e)}async getBoxValueFromABIType(e,n){return await this._algorand.app.getBoxValueFromABIType({appId:this.appId,boxName:e,type:n})}async getBoxValues(e){let n=(await this.getBoxNames()).filter(e??(o=>!0)),r=await this._algorand.app.getBoxValues(this.appId,n.map(o=>o.nameRaw));return n.map((o,a)=>({name:o,value:r[a]}))}async getBoxValuesFromABIType(e,n){let r=(await this.getBoxNames()).filter(n??(a=>!0)),o=await this._algorand.app.getBoxValuesFromABIType({appId:this.appId,boxNames:r.map(a=>a.nameRaw),type:e});return r.map((a,c)=>({name:a,value:o[c]}))}async exposeLogicError(e,n){let r=this._appSpec.sourceInfo?.[n?\"clear\":\"approval\"]?.pcOffsetMethod,o;if(r===\"cblocks\"){let a=await this._algorand.app.getById(this.appId);o=n?a.clearStateProgram:a.approvalProgram}return Ip.exposeLogicError(e,this._appSpec,{isClearStateProgram:n,approvalSourceMap:this._approvalSourceMap,clearSourceMap:this._clearSourceMap,program:o})}exportSourceMaps(){if(!this._approvalSourceMap||!this._clearSourceMap)throw new Error(\"Unable to export source maps; they haven\\'t been loaded into this client - you need to call create, update, or deploy first\");return{approvalSourceMap:this._approvalSourceMap,clearSourceMap:this._clearSourceMap}}importSourceMaps(e){this._approvalSourceMap=new Cp(e.approvalSourceMap),this._clearSourceMap=new Cp(e.clearSourceMap)}getABIMethod(e){return Nm(e,this._appSpec)}async processMethodCallReturn(e){let n=await e;return{...n,return:n.return?.returnValue}}async compile(e){let n=await Ip.compile(this._appSpec,this._algorand.app,e);return n.compiledApproval&&(this._approvalSourceMap=n.compiledApproval.sourceMap,this._lastCompiled.approval=n.compiledApproval.compiledBase64ToBytes),n.compiledClear&&(this._clearSourceMap=n.compiledClear.sourceMap,this._lastCompiled.clear=n.compiledClear.compiledBase64ToBytes),n}static exposeLogicError(e,n,r){let{isClearStateProgram:o,approvalSourceMap:a,clearSourceMap:c,program:l}=r,f=o?c:a,p=JC.parseLogicError(e);if(p===void 0||p?.pc===void 0)return e;let m=p?.pc,g=o?n.sourceInfo?.clear:n.sourceInfo?.approval,y=0;if(g?.pcOffsetMethod===\"cblocks\"){if(l===void 0)throw new Error(\"Program bytes are required to calculate the ARC56 cblocks PC offset\");y=cFe(l),m=p.pc-y}let A=g?.sourceInfo.find(T=>T.pc.includes(m))?.errorMessage;if(n.source){let T=R=>f?.getLocationForPc?.(R)?.line;f===void 0&&(T=R=>{let K=g?.sourceInfo.find(O=>O.pc.includes(R-y))?.teal;if(K!==void 0)return K-1}),e=new JC(p,ja.Buffer.from(o?n.source.clear:n.source.approval,\"base64\").toString().split(`\\n`),T)}if(A){let T=Gd(e).match(/(?<=app=)\\\\d+/)?.[0]||\"\",R=Gd(e).match(/(?<=transaction )\\\\S+(?=:)/)?.[0],K=new Error(`Runtime error when executing ${n.name} (appId: ${T}) in transaction ${R}: ${A}`);return K.cause=e,K}return e}static async compile(e,n,r){let{deployTimeParams:o,updatable:a,deletable:c}=r??{};if(!e.source){if(!e.byteCode?.approval||!e.byteCode?.clear)throw new Error(`Attempt to compile app ${e.name} without source or byteCode`);return{approvalProgram:ja.Buffer.from(e.byteCode.approval,\"base64\"),clearStateProgram:ja.Buffer.from(e.byteCode.clear,\"base64\")}}let l=ja.Buffer.from(e.source.approval,\"base64\").toString(\"utf-8\"),f=await n.compileTealTemplate(l,o,{updatable:a,deletable:c}),p=ja.Buffer.from(e.source.clear,\"base64\").toString(\"utf-8\"),m=await n.compileTealTemplate(p,o);return Cr.debug&&await Cr.events.emitAsync(zv.AppCompiled,{sources:[{compiledTeal:f,appName:e.name,fileName:\"approval\"},{compiledTeal:m,appName:e.name,fileName:\"clear\"}]}),{approvalProgram:f.compiledBase64ToBytes,compiledApproval:f,clearStateProgram:m.compiledBase64ToBytes,compiledClear:m}}async getABIArgsWithDefaultValues(e,n,r){let o=Nm(e,this._appSpec);return await Promise.all(n?.map(async(a,c)=>{let l=o.args[c];if(!l)throw new Error(`Unexpected arg at position ${c}. ${o.name} only expects ${o.args.length} args`);if(_p(l.type)||a!==void 0)return a;let f=l.defaultValue;if(f)switch(f.source){case\"literal\":{let p=ja.Buffer.from(f.data,\"base64\");return kc(f.type??l.type,p)}case\"method\":{let p=this.getABIMethod(f.data),m=await this.send.call({method:f.data,args:p.args.map(()=>{}),sender:r});if(m.return===void 0)throw new Error(\"Default value method call did not return a value\");return m.return}case\"local\":case\"global\":case\"box\":return await this.getDefaultValueFromStorage({data:f.data,source:f.source},l.name??`arg${c+1}`,r)}})??[])}async getDefaultValueFromStorage(e,n,r){let o=e.source===\"box\"?jfe(this.appSpec):e.source===\"global\"?Fz(this.appSpec):Oz(this.appSpec),a=Object.values(o).find(f=>f.key===e.data);if(!a)throw new Error(`Unable to find default value for argument \\'${n}\\': The storage key (base64: \\'${e.data}\\') is not defined in the contract\\'s ${e.source} storage schema`);if(e.source===\"box\"){let f=await this.getBoxValue(ja.Buffer.from(e.data,\"base64\"));return kc(a.valueType,f)}let c=e.source===\"global\"?await this.getGlobalState():await this.getLocalState(r),l=Object.values(c).find(f=>f.keyBase64===e.data);if(!l)throw new Error(`Unable to find default value for argument \\'${n}\\': No value exists in ${e.source} storage for key (base64: \\'${e.data}\\')`);return\"valueRaw\"in l?kc(a.valueType,l.valueRaw):l.value}getBareParamsMethods(){return{update:async e=>this.getBareParams({...e,...await this.compile(e)},Co.UpdateApplication),optIn:e=>this.getBareParams(e,Co.OptIn),delete:e=>this.getBareParams(e,Co.DeleteApplication),clearState:e=>this.getBareParams(e,Co.ClearState),closeOut:e=>this.getBareParams(e,Co.CloseOut),call:e=>this.getBareParams(e,e?.onComplete??Co.NoOp)}}getBareCreateTransactionMethods(){return{update:async e=>this._algorand.createTransaction.appUpdate(await this.params.bare.update(e)),optIn:e=>this._algorand.createTransaction.appCall(this.params.bare.optIn(e)),delete:e=>this._algorand.createTransaction.appDelete(this.params.bare.delete(e)),clearState:e=>this._algorand.createTransaction.appCall(this.params.bare.clearState(e)),closeOut:e=>this._algorand.createTransaction.appCall(this.params.bare.closeOut(e)),call:e=>this._algorand.createTransaction.appCall(this.params.bare.call(e))}}getBareSendMethods(){return{update:async e=>{let n=await this.compile(e);return{...await this._algorand.send.appUpdate(await this.params.bare.update(e)),...n}},optIn:e=>this._algorand.send.appCall(this.params.bare.optIn(e)),delete:e=>this._algorand.send.appDelete(this.params.bare.delete(e)),clearState:e=>this._algorand.send.appCall(this.params.bare.clearState(e)),closeOut:e=>this._algorand.send.appCall(this.params.bare.closeOut(e)),call:e=>this._algorand.send.appCall(this.params.bare.call(e))}}getMethodCallParamsMethods(){return{fundAppAccount:e=>({...e,sender:this.getSender(e.sender),signer:this.getSigner(e.sender,e.signer),receiver:this.appAddress}),update:async e=>await this.getABIParams({...e,...await this.compile(e)},Co.UpdateApplication),optIn:async e=>await this.getABIParams(e,Co.OptIn),delete:async e=>await this.getABIParams(e,Co.DeleteApplication),closeOut:async e=>await this.getABIParams(e,Co.CloseOut),call:async e=>await this.getABIParams(e,e.onComplete??Co.NoOp)}}getMethodCallSendMethods(){return{fundAppAccount:e=>this._algorand.send.payment(this.params.fundAppAccount(e)),update:async e=>{let n=await this.compile(e);return{...await this.processMethodCallReturn(this._algorand.send.appUpdateMethodCall(await this.params.update({...e}))),...n}},optIn:async e=>this.processMethodCallReturn(this._algorand.send.appCallMethodCall(await this.params.optIn(e))),delete:async e=>this.processMethodCallReturn(this._algorand.send.appDeleteMethodCall(await this.params.delete(e))),closeOut:async e=>this.processMethodCallReturn(this._algorand.send.appCallMethodCall(await this.params.closeOut(e))),call:async e=>{if((e.onComplete===Co.NoOp||!e.onComplete)&&Nm(e.method,this._appSpec).readonly){let n={...e};e.coverAppCallInnerTransactionFees&&e.maxFee&&(n.staticFee=e.maxFee,n.extraFee=void 0);try{let r=await this._algorand.newGroup().addAppCallMethodCall(await this.params.call(n)).simulate({allowUnnamedResources:e.populateAppCallResources??!0,skipSignatures:!0,extraOpcodeBudget:sFe});return this.processMethodCallReturn({...r,transaction:r.transactions.at(-1),confirmation:r.confirmations.at(-1),return:r.returns&&r.returns.length>0?r.returns.at(-1):void 0})}catch(r){let o=r;throw e.coverAppCallInnerTransactionFees&&o&&o.message&&o.message.match(/fee too small/)?Error(\"Fees were too small. You may need to increase the transaction maxFee.\"):r}}return this.processMethodCallReturn(this._algorand.send.appCallMethodCall(await this.params.call(e)))}}}getMethodCallCreateTransactionMethods(){return{fundAppAccount:e=>this._algorand.createTransaction.payment(this.params.fundAppAccount(e)),update:async e=>this._algorand.createTransaction.appUpdateMethodCall(await this.params.update(e)),optIn:async e=>this._algorand.createTransaction.appCallMethodCall(await this.params.optIn(e)),delete:async e=>this._algorand.createTransaction.appDeleteMethodCall(await this.params.delete(e)),closeOut:async e=>this._algorand.createTransaction.appCallMethodCall(await this.params.closeOut(e)),call:async e=>this._algorand.createTransaction.appCallMethodCall(await this.params.call(e))}}getSender(e){if(!e&&!this._defaultSender)throw new Error(`No sender provided and no default sender present in app client for call to app ${this._appName}`);return cr(e??this._defaultSender)}getSigner(e,n){return n??(!e||e===this._defaultSender?this._defaultSigner:void 0)}getBareParams(e,n){return{...e,appId:this._appId,sender:this.getSender(e?.sender),signer:this.getSigner(e?.sender,e?.signer),onComplete:n}}async getABIParams(e,n){let r=this.getSender(e.sender),o=Nm(e.method,this._appSpec),a=await this.getABIArgsWithDefaultValues(e.method,e.args,r);return{...e,appId:this._appId,sender:r,signer:this.getSigner(e.sender,e.signer),method:o,onComplete:n,args:a}}getBoxMethods(){let e=this,n={getAll:async()=>Object.fromEntries(await Promise.all(Object.keys(e._appSpec.state.keys.box).map(async r=>[r,await n.getValue(r)]))),getValue:async r=>{let o=Hfe(e._appSpec,r),a=await e.getBoxValue(ja.Buffer.from(o.key,\"base64\"));return kc(o.valueType,a)},getMapValue:async(r,o)=>{let a=Lz(e._appSpec,r),c=ja.Buffer.from(a.prefix??\"\",\"base64\"),l=ja.Buffer.concat([c,wz(a.keyType,o)]),f=ja.Buffer.from(l).toString(\"base64\"),p=await e.getBoxValue(ja.Buffer.from(f,\"base64\"));return kc(a.valueType,p)},getMap:async r=>{let o=Lz(e._appSpec,r),a=ja.Buffer.from(o.prefix??\"\",\"base64\"),c=await e.getBoxNames();return new Map(await Promise.all(c.filter(l=>cz(l.nameRaw,a)).map(async l=>[kc(o.keyType,l.nameRaw.slice(a.length)),kc(o.valueType,await e.getBoxValue(l.nameRaw))])))}};return n}getStateMethods(e,n,r){let o={getAll:async()=>{let a=await e();return Object.fromEntries(await Promise.all(Object.keys(n()).map(async c=>[c,await o.getValue(c,a)])))},getValue:async(a,c)=>{let l=Object.values(c??await e()),f=n()[a];if(f===void 0)throw new Error(`Attempted to get state value ${a}, but it does not exist`);let p=l.find(m=>m.keyBase64===f.key);return p&&\"valueRaw\"in p?kc(f.valueType,p.valueRaw):p?.value},getMapValue:async(a,c,l)=>{let f=Object.values(l??await e()),p=r()[a],m=ja.Buffer.from(p.prefix??\"\",\"base64\"),g=ja.Buffer.concat([m,wz(p.keyType,c)]),y=ja.Buffer.from(g).toString(\"base64\"),A=f.find(T=>T.keyBase64===y);return A&&\"valueRaw\"in A?kc(p.valueType,A.valueRaw):A?.value},getMap:async a=>{let c=Object.values(await e()),l=r()[a],f=ja.Buffer.from(l.prefix??\"\",\"base64\");return new Map(c.filter(p=>cz(p.keyRaw,f)).map(p=>{let m=p.keyRaw.slice(f.length);return[kc(l.keyType,m),\"valueRaw\"in p?kc(l.valueType,p.valueRaw):p.value]}))}};return o}};u();var Wfe=class{constructor(t){ge(this,\"_appSpec\");ge(this,\"_appName\");ge(this,\"_algorand\");ge(this,\"_version\");ge(this,\"_defaultSender\");ge(this,\"_defaultSigner\");ge(this,\"_deployTimeParams\");ge(this,\"_updatable\");ge(this,\"_deletable\");ge(this,\"_approvalSourceMap\");ge(this,\"_clearSourceMap\");ge(this,\"_paramsMethods\");ge(this,\"createTransaction\",{bare:{create:async t=>this._algorand.createTransaction.appCreate(await this.params.bare.create(t))},create:async t=>this._algorand.createTransaction.appCreateMethodCall(await this.params.create(t))});ge(this,\"send\",{bare:{create:async t=>{let e=t?.updatable??this._updatable,n=t?.deletable??this._deletable,r=t?.deployTimeParams??this._deployTimeParams,o=await this.compile({deployTimeParams:r,updatable:e,deletable:n}),a=await this.handleCallErrors(async()=>({...await this._algorand.send.appCreate(await this.params.bare.create({...t,updatable:e,deletable:n,deployTimeParams:r})),return:void 0}));return{appClient:this.getAppClientById({appId:a.appId}),result:{...a,...o}}}},create:async t=>{let e=t?.updatable??this._updatable,n=t?.deletable??this._deletable,r=t?.deployTimeParams??this._deployTimeParams,o=await this.compile({deployTimeParams:r,updatable:e,deletable:n}),a=await this.handleCallErrors(async()=>{let c=await this._algorand.send.appCreateMethodCall(await this.params.create({...t,updatable:e,deletable:n,deployTimeParams:r}));return{...c,return:c.return?.returnValue}});return{appClient:this.getAppClientById({appId:a.appId}),result:{...a,...o}}}});this._appSpec=qd.normaliseAppSpec(t.appSpec),this._appName=t.appName??this._appSpec.name,this._algorand=t.algorand,this._version=t.version??\"1.0\",this._defaultSender=yi(t.defaultSender),this._defaultSigner=t.defaultSigner,this._deployTimeParams=t.deployTimeParams,this._updatable=t.updatable,this._deletable=t.deletable,this._paramsMethods=this.getParamsMethods()}get appName(){return this._appName}get appSpec(){return this._appSpec}get algorand(){return this._algorand}get params(){return this._paramsMethods}async deploy(t){let e=t.updatable??this._updatable??this.getDeployTimeControl(\"updatable\"),n=t.deletable??this._deletable??this.getDeployTimeControl(\"deletable\"),r=t.deployTimeParams??this._deployTimeParams,o=await this.getAppClientById({appId:0n}).compile({deployTimeParams:r,updatable:e,deletable:n}),a=await this._algorand.appDeployer.deploy({...t,createParams:await(t.createParams&&\"method\"in t.createParams?this.params.create({...t.createParams,updatable:e,deletable:n,deployTimeParams:r}):this.params.bare.create({...t.createParams,updatable:e,deletable:n,deployTimeParams:r})),updateParams:t.updateParams&&\"method\"in t.updateParams?this.params.deployUpdate(t.updateParams):this.params.bare.deployUpdate(t.updateParams),deleteParams:t.deleteParams&&\"method\"in t.deleteParams?this.params.deployDelete(t.deleteParams):this.params.bare.deployDelete(t.deleteParams),metadata:{name:t.appName??this._appName,version:this._version,updatable:e,deletable:n}}),c=this.getAppClientById({appId:a.appId,appName:t.appName}),l={...a,...o};return{appClient:c,result:{...l,return:\"return\"in l?l.operationPerformed===\"update\"?t.updateParams&&\"method\"in t.updateParams?l.return?.returnValue:void 0:t.createParams&&\"method\"in t.createParams?l.return?.returnValue:void 0:void 0,deleteReturn:\"deleteReturn\"in l&&t.deleteParams&&\"method\"in t.deleteParams?l.deleteReturn?.returnValue:void 0}}}getAppClientById(t){return new qd({...t,algorand:this._algorand,appSpec:this._appSpec,appName:t.appName??this._appName,defaultSender:t.defaultSender??this._defaultSender,defaultSigner:t.defaultSigner??this._defaultSigner,approvalSourceMap:t.approvalSourceMap??this._approvalSourceMap,clearSourceMap:t.clearSourceMap??this._clearSourceMap})}getAppClientByCreatorAndName(t){return qd.fromCreatorAndName({...t,algorand:this._algorand,appSpec:this._appSpec,appName:t.appName??this._appName,defaultSender:t.defaultSender??this._defaultSender,approvalSourceMap:t.approvalSourceMap??this._approvalSourceMap,clearSourceMap:t.clearSourceMap??this._clearSourceMap})}exposeLogicError(t,e){return qd.exposeLogicError(t,this._appSpec,{isClearStateProgram:e,approvalSourceMap:this._approvalSourceMap,clearSourceMap:this._clearSourceMap})}exportSourceMaps(){if(!this._approvalSourceMap||!this._clearSourceMap)throw new Error(\"Unable to export source maps; they haven\\'t been loaded into this client - you need to call create, update, or deploy first\");return{approvalSourceMap:this._approvalSourceMap,clearSourceMap:this._clearSourceMap}}importSourceMaps(t){this._approvalSourceMap=new Cp(t.approvalSourceMap),this._clearSourceMap=new Cp(t.clearSourceMap)}getDeployTimeControl(t){let e=this._appSpec.source?.approval?globalThis.Buffer.from(this._appSpec.source.approval,\"base64\").toString(\"utf-8\"):void 0;if(!(!e||!e.includes(t===\"updatable\"?\"TMPL_UPDATABLE\":\"TMPL_DELETABLE\")))return this._appSpec.bareActions.call.includes(t===\"updatable\"?\"UpdateApplication\":\"DeleteApplication\")||Object.values(this._appSpec.methods).some(n=>n.actions.call.includes(t===\"updatable\"?\"UpdateApplication\":\"DeleteApplication\"))}getParamsMethods(){return{create:async t=>{let e=await this.compile({...t,deployTimeParams:t.deployTimeParams??this._deployTimeParams});return this.getABIParams({...t,deployTimeParams:t.deployTimeParams??this._deployTimeParams,schema:t.schema??{globalByteSlices:this._appSpec.state.schema.global.bytes,globalInts:this._appSpec.state.schema.global.ints,localByteSlices:this._appSpec.state.schema.local.bytes,localInts:this._appSpec.state.schema.local.ints},approvalProgram:e.approvalProgram,clearStateProgram:e.clearStateProgram},t.onComplete??Co.NoOp)},deployUpdate:t=>this.getABIParams(t,Co.UpdateApplication),deployDelete:t=>this.getABIParams(t,Co.DeleteApplication),bare:{create:async t=>this.getBareParams({...t,deployTimeParams:t?.deployTimeParams??this._deployTimeParams,schema:t?.schema??{globalByteSlices:this._appSpec.state.schema.global.bytes,globalInts:this._appSpec.state.schema.global.ints,localByteSlices:this._appSpec.state.schema.local.bytes,localInts:this._appSpec.state.schema.local.ints},...await this.compile({...t,deployTimeParams:t?.deployTimeParams??this._deployTimeParams})},t?.onComplete??Co.NoOp),deployUpdate:t=>this.getBareParams(t,Co.UpdateApplication),deployDelete:t=>this.getBareParams(t,Co.DeleteApplication)}}}async handleCallErrors(t){try{return await t()}catch(e){throw this.exposeLogicError(e)}}async compile(t){let e=await qd.compile(this._appSpec,this._algorand.app,t);return e.compiledApproval&&(this._approvalSourceMap=e.compiledApproval.sourceMap),e.compiledClear&&(this._clearSourceMap=e.compiledClear.sourceMap),e}getBareParams(t,e){return{...t,sender:this.getSender(t?.sender),signer:this.getSigner(t?.sender,t?.signer),onComplete:e}}getABIParams(t,e){return{...t,sender:this.getSender(t.sender),signer:this.getSigner(t.sender,t.signer),method:Nm(t.method,this._appSpec),args:this.getCreateABIArgsWithDefaultValues(t.method,t.args),onComplete:e}}getCreateABIArgsWithDefaultValues(t,e){let n=Nm(t,this._appSpec);return e?.map((r,o)=>{let a=n.args[o];if(r!==void 0||_p(a.type))return r;let c=a.defaultValue;if(c)if(c.source===\"literal\"){let l=globalThis.Buffer.from(c.data,\"base64\");return kc(c.type??a.type,l)}else throw new Error(`Can\\'t provide default value for ${c.source} for a contract creation call`);throw new Error(`No value provided for required argument ${a.name??`arg${o+1}`} in call to method ${n.name}`)})}getSender(t){if(!t&&!this._defaultSender)throw new Error(`No sender provided and no default sender present in app factory for call to app ${this._appName}`);return cr(t??this._defaultSender)}getSigner(t,e){return e??(!t||t===this._defaultSender?this._defaultSigner:void 0)}};u();var lFe=\"https://api.dispenser.algorandfoundation.tools\",uFe=15,Yfe=\"ALGOKIT_DISPENSER_ACCESS_TOKEN\",L8=(function(t){return t[t.Algo=0]=\"Algo\",t})(L8||{}),Uz={[L8.Algo]:{assetId:0,decimals:6,description:\"Algo\"}},zz=class{constructor(t){ge(this,\"_authToken\");ge(this,\"_requestTimeout\");let e=process?.env?.[Yfe];if(t?.authToken)this._authToken=t.authToken;else if(e)this._authToken=e;else throw new Error(`Can\\'t init AlgoKit TestNet Dispenser API client because neither environment variable ${Yfe} or the authToken were provided.`);this._requestTimeout=t?.requestTimeout||uFe}get authToken(){return this._authToken}get requestTimeout(){return this._requestTimeout}async processDispenserRequest(t,e,n=null,r=\"POST\"){let o={method:r,headers:{Authorization:`Bearer ${t}`},signal:AbortSignal.timeout(this.requestTimeout*1e3)};n&&(o.body=Gd(n));let a=await fetch(`${lFe}/${e}`,o);if(!a.ok){let c=`Error processing dispenser API request: ${a.status}`,l=null;try{l=await a.json()}catch{}throw l&&l.code?c=l.code:a.status===400&&(c=(await a.json()).message),new Error(c)}return a}async fund(t,e){let n=await(await this.processDispenserRequest(this.authToken,`fund/${Uz[L8.Algo].assetId}`,{receiver:typeof t==\"string\"?t:t.toString(),amount:Number(e),assetID:Uz[L8.Algo].assetId},\"POST\")).json();return{txId:n.txID,amount:n.amount}}async refund(t){await this.processDispenserRequest(this.authToken,\"refund\",{refundTransactionID:t},\"POST\")}async getLimit(){return{amount:(await(await this.processDispenserRequest(this.authToken,`fund/${Uz[L8.Algo].assetId}/limit`,null,\"GET\")).json()).amount}}};var rl=class ss{constructor(e,n){ge(this,\"_algod\");ge(this,\"_indexer\");ge(this,\"_kmd\");ge(this,\"_algorand\");ge(this,\"_getNetworkPromise\");let r=\"algod\"in e?e:{algod:ss.getAlgodClient(e.algodConfig),indexer:e.indexerConfig?ss.getIndexerClient(e.indexerConfig):void 0,kmd:e.kmdConfig?ss.getKmdClient(e.kmdConfig):void 0};this._algod=r.algod,this._indexer=r.indexer,this._kmd=r.kmd,this._algorand=n}get algod(){return this._algod}get indexer(){if(!this._indexer)throw new Error(\"Attempt to use Indexer client in AlgoKit instance with no Indexer configured\");return this._indexer}get indexerIfPresent(){return this._indexer}get kmd(){if(!this._kmd)throw new Error(\"Attempt to use Kmd client in AlgoKit instance with no Kmd configured\");return this._kmd}async network(){this._getNetworkPromise||(this._getNetworkPromise=this._algod.suggestedParams());let e=await this._getNetworkPromise;return{isTestNet:[\"testnet-v1.0\",\"testnet-v1\",\"testnet\"].includes(e.genesisId??\"unknown\"),isMainNet:[\"mainnet-v1.0\",\"mainnet-v1\",\"mainnet\"].includes(e.genesisId??\"unknown\"),isLocalNet:ss.genesisIdIsLocalNet(e.genesisId??\"unknown\"),genesisId:e.genesisId??\"unknown\",genesisHash:e.genesisHash?globalThis.Buffer.from(e.genesisHash).toString(\"base64\"):\"unknown\"}}static genesisIdIsLocalNet(e){return vC(e)}async isLocalNet(){return(await this.network()).isLocalNet}async isTestNet(){return(await this.network()).isTestNet}async isMainNet(){return(await this.network()).isMainNet}getTestNetDispenser(e){return new zz(e)}getTestNetDispenserFromEnvironment(e){return new zz(e?{...e,authToken:\"\"}:void 0)}getAppFactory(e){if(!this._algorand)throw new Error(\"Attempt to get app factory from a ClientManager without an Algorand client\");return new Wfe({...e,algorand:this._algorand})}getAppClientByCreatorAndName(e){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return qd.fromCreatorAndName({...e,algorand:this._algorand})}getAppClientById(e){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return new qd({...e,algorand:this._algorand})}async getAppClientByNetwork(e){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return qd.fromNetwork({...e,algorand:this._algorand})}async getTypedAppClientByCreatorAndName(e,n){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return e.fromCreatorAndName({...n,algorand:this._algorand})}getTypedAppClientById(e,n){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return new e({...n,algorand:this._algorand})}getTypedAppClientByNetwork(e,n){if(!this._algorand)throw new Error(\"Attempt to get app client from a ClientManager without an Algorand client\");return e.fromNetwork({...n,algorand:this._algorand})}getTypedAppFactory(e,n){if(!this._algorand)throw new Error(\"Attempt to get app factory from a ClientManager without an Algorand client\");return new e({...n,algorand:this._algorand})}static getConfigFromEnvironmentOrLocalNet(){if(!process||!process.env)throw new Error(\"Attempt to get default client configuration from a non Node.js context; supply the config instead\");let[e,n,r]=process.env.ALGOD_SERVER?[ss.getAlgodConfigFromEnvironment(),process.env.INDEXER_SERVER?ss.getIndexerConfigFromEnvironment():void 0,!process.env.ALGOD_SERVER.includes(\"mainnet\")&&!process.env.ALGOD_SERVER.includes(\"testnet\")?{...ss.getAlgodConfigFromEnvironment(),port:process?.env?.KMD_PORT??\"4002\"}:void 0]:[ss.getDefaultLocalNetConfig(\"algod\"),ss.getDefaultLocalNetConfig(\"indexer\"),ss.getDefaultLocalNetConfig(\"kmd\")];return{algodConfig:e,indexerConfig:n,kmdConfig:r}}static getAlgodConfigFromEnvironment(){if(!process||!process.env)throw new Error(\"Attempt to get default algod configuration from a non Node.js context; supply the config instead\");if(!process.env.ALGOD_SERVER)throw new Error(\"Attempt to get default algod configuration without specifying ALGOD_SERVER in the environment variables\");return{server:process.env.ALGOD_SERVER,port:process.env.ALGOD_PORT,token:process.env.ALGOD_TOKEN}}static getIndexerConfigFromEnvironment(){if(!process||!process.env)throw new Error(\"Attempt to get default indexer configuration from a non Node.js context; supply the config instead\");if(!process.env.INDEXER_SERVER)throw new Error(\"Attempt to get default indexer configuration without specifying INDEXER_SERVER in the environment variables\");return{server:process.env.INDEXER_SERVER,port:process.env.INDEXER_PORT,token:process.env.INDEXER_TOKEN}}static getAlgoNodeConfig(e,n){return{server:`https://${e}-${n===\"algod\"?\"api\":\"idx\"}.algonode.cloud/`,port:443}}static getDefaultLocalNetConfig(e){return{server:\"http://localhost\",port:e===\"algod\"?4001:e===\"indexer\"?8980:e===\"kmd\"?4002:e,token:\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}}static getAlgodClient(e){let{token:n,server:r,port:o}=e;return new $ue({baseUrl:r,port:o,token:n,logger:Cr.logger})}static getAlgodClientFromEnvironment(){return ss.getAlgodClient(ss.getAlgodConfigFromEnvironment())}static getIndexerClient(e){let{token:n,server:r,port:o}=e;return new Wde({baseUrl:r,port:o,token:n,logger:Cr.logger})}static getIndexerClientFromEnvironment(){return ss.getIndexerClient(ss.getIndexerConfigFromEnvironment())}static getKmdClient(e){let{token:n,server:r,port:o}=e;return new Vfe({baseUrl:r,port:o,token:n,logger:Cr.logger})}static getKmdClientFromEnvironment(){return ss.getKmdClient({...ss.getAlgodConfigFromEnvironment(),port:process?.env?.KMD_PORT??\"4002\"})}};u();u();u();var QC=[\"abandon\",\"ability\",\"able\",\"about\",\"above\",\"absent\",\"absorb\",\"abstract\",\"absurd\",\"abuse\",\"access\",\"accident\",\"account\",\"accuse\",\"achieve\",\"acid\",\"acoustic\",\"acquire\",\"across\",\"act\",\"action\",\"actor\",\"actress\",\"actual\",\"adapt\",\"add\",\"addict\",\"address\",\"adjust\",\"admit\",\"adult\",\"advance\",\"advice\",\"aerobic\",\"affair\",\"afford\",\"afraid\",\"again\",\"age\",\"agent\",\"agree\",\"ahead\",\"aim\",\"air\",\"airport\",\"aisle\",\"alarm\",\"album\",\"alcohol\",\"alert\",\"alien\",\"all\",\"alley\",\"allow\",\"almost\",\"alone\",\"alpha\",\"already\",\"also\",\"alter\",\"always\",\"amateur\",\"amazing\",\"among\",\"amount\",\"amused\",\"analyst\",\"anchor\",\"ancient\",\"anger\",\"angle\",\"angry\",\"animal\",\"ankle\",\"announce\",\"annual\",\"another\",\"answer\",\"antenna\",\"antique\",\"anxiety\",\"any\",\"apart\",\"apology\",\"appear\",\"apple\",\"approve\",\"april\",\"arch\",\"arctic\",\"area\",\"arena\",\"argue\",\"arm\",\"armed\",\"armor\",\"army\",\"around\",\"arrange\",\"arrest\",\"arrive\",\"arrow\",\"art\",\"artefact\",\"artist\",\"artwork\",\"ask\",\"aspect\",\"assault\",\"asset\",\"assist\",\"assume\",\"asthma\",\"athlete\",\"atom\",\"attack\",\"attend\",\"attitude\",\"attract\",\"auction\",\"audit\",\"august\",\"aunt\",\"author\",\"auto\",\"autumn\",\"average\",\"avocado\",\"avoid\",\"awake\",\"aware\",\"away\",\"awesome\",\"awful\",\"awkward\",\"axis\",\"baby\",\"bachelor\",\"bacon\",\"badge\",\"bag\",\"balance\",\"balcony\",\"ball\",\"bamboo\",\"banana\",\"banner\",\"bar\",\"barely\",\"bargain\",\"barrel\",\"base\",\"basic\",\"basket\",\"battle\",\"beach\",\"bean\",\"beauty\",\"because\",\"become\",\"beef\",\"before\",\"begin\",\"behave\",\"behind\",\"believe\",\"below\",\"belt\",\"bench\",\"benefit\",\"best\",\"betray\",\"better\",\"between\",\"beyond\",\"bicycle\",\"bid\",\"bike\",\"bind\",\"biology\",\"bird\",\"birth\",\"bitter\",\"black\",\"blade\",\"blame\",\"blanket\",\"blast\",\"bleak\",\"bless\",\"blind\",\"blood\",\"blossom\",\"blouse\",\"blue\",\"blur\",\"blush\",\"board\",\"boat\",\"body\",\"boil\",\"bomb\",\"bone\",\"bonus\",\"book\",\"boost\",\"border\",\"boring\",\"borrow\",\"boss\",\"bottom\",\"bounce\",\"box\",\"boy\",\"bracket\",\"brain\",\"brand\",\"brass\",\"brave\",\"bread\",\"breeze\",\"brick\",\"bridge\",\"brief\",\"bright\",\"bring\",\"brisk\",\"broccoli\",\"broken\",\"bronze\",\"broom\",\"brother\",\"brown\",\"brush\",\"bubble\",\"buddy\",\"budget\",\"buffalo\",\"build\",\"bulb\",\"bulk\",\"bullet\",\"bundle\",\"bunker\",\"burden\",\"burger\",\"burst\",\"bus\",\"business\",\"busy\",\"butter\",\"buyer\",\"buzz\",\"cabbage\",\"cabin\",\"cable\",\"cactus\",\"cage\",\"cake\",\"call\",\"calm\",\"camera\",\"camp\",\"can\",\"canal\",\"cancel\",\"candy\",\"cannon\",\"canoe\",\"canvas\",\"canyon\",\"capable\",\"capital\",\"captain\",\"car\",\"carbon\",\"card\",\"cargo\",\"carpet\",\"carry\",\"cart\",\"case\",\"cash\",\"casino\",\"castle\",\"casual\",\"cat\",\"catalog\",\"catch\",\"category\",\"cattle\",\"caught\",\"cause\",\"caution\",\"cave\",\"ceiling\",\"celery\",\"cement\",\"census\",\"century\",\"cereal\",\"certain\",\"chair\",\"chalk\",\"champion\",\"change\",\"chaos\",\"chapter\",\"charge\",\"chase\",\"chat\",\"cheap\",\"check\",\"cheese\",\"chef\",\"cherry\",\"chest\",\"chicken\",\"chief\",\"child\",\"chimney\",\"choice\",\"choose\",\"chronic\",\"chuckle\",\"chunk\",\"churn\",\"cigar\",\"cinnamon\",\"circle\",\"citizen\",\"city\",\"civil\",\"claim\",\"clap\",\"clarify\",\"claw\",\"clay\",\"clean\",\"clerk\",\"clever\",\"click\",\"client\",\"cliff\",\"climb\",\"clinic\",\"clip\",\"clock\",\"clog\",\"close\",\"cloth\",\"cloud\",\"clown\",\"club\",\"clump\",\"cluster\",\"clutch\",\"coach\",\"coast\",\"coconut\",\"code\",\"coffee\",\"coil\",\"coin\",\"collect\",\"color\",\"column\",\"combine\",\"come\",\"comfort\",\"comic\",\"common\",\"company\",\"concert\",\"conduct\",\"confirm\",\"congress\",\"connect\",\"consider\",\"control\",\"convince\",\"cook\",\"cool\",\"copper\",\"copy\",\"coral\",\"core\",\"corn\",\"correct\",\"cost\",\"cotton\",\"couch\",\"country\",\"couple\",\"course\",\"cousin\",\"cover\",\"coyote\",\"crack\",\"cradle\",\"craft\",\"cram\",\"crane\",\"crash\",\"crater\",\"crawl\",\"crazy\",\"cream\",\"credit\",\"creek\",\"crew\",\"cricket\",\"crime\",\"crisp\",\"critic\",\"crop\",\"cross\",\"crouch\",\"crowd\",\"crucial\",\"cruel\",\"cruise\",\"crumble\",\"crunch\",\"crush\",\"cry\",\"crystal\",\"cube\",\"culture\",\"cup\",\"cupboard\",\"curious\",\"current\",\"curtain\",\"curve\",\"cushion\",\"custom\",\"cute\",\"cycle\",\"dad\",\"damage\",\"damp\",\"dance\",\"danger\",\"daring\",\"dash\",\"daughter\",\"dawn\",\"day\",\"deal\",\"debate\",\"debris\",\"decade\",\"december\",\"decide\",\"decline\",\"decorate\",\"decrease\",\"deer\",\"defense\",\"define\",\"defy\",\"degree\",\"delay\",\"deliver\",\"demand\",\"demise\",\"denial\",\"dentist\",\"deny\",\"depart\",\"depend\",\"deposit\",\"depth\",\"deputy\",\"derive\",\"describe\",\"desert\",\"design\",\"desk\",\"despair\",\"destroy\",\"detail\",\"detect\",\"develop\",\"device\",\"devote\",\"diagram\",\"dial\",\"diamond\",\"diary\",\"dice\",\"diesel\",\"diet\",\"differ\",\"digital\",\"dignity\",\"dilemma\",\"dinner\",\"dinosaur\",\"direct\",\"dirt\",\"disagree\",\"discover\",\"disease\",\"dish\",\"dismiss\",\"disorder\",\"display\",\"distance\",\"divert\",\"divide\",\"divorce\",\"dizzy\",\"doctor\",\"document\",\"dog\",\"doll\",\"dolphin\",\"domain\",\"donate\",\"donkey\",\"donor\",\"door\",\"dose\",\"double\",\"dove\",\"draft\",\"dragon\",\"drama\",\"drastic\",\"draw\",\"dream\",\"dress\",\"drift\",\"drill\",\"drink\",\"drip\",\"drive\",\"drop\",\"drum\",\"dry\",\"duck\",\"dumb\",\"dune\",\"during\",\"dust\",\"dutch\",\"duty\",\"dwarf\",\"dynamic\",\"eager\",\"eagle\",\"early\",\"earn\",\"earth\",\"easily\",\"east\",\"easy\",\"echo\",\"ecology\",\"economy\",\"edge\",\"edit\",\"educate\",\"effort\",\"egg\",\"eight\",\"either\",\"elbow\",\"elder\",\"electric\",\"elegant\",\"element\",\"elephant\",\"elevator\",\"elite\",\"else\",\"embark\",\"embody\",\"embrace\",\"emerge\",\"emotion\",\"employ\",\"empower\",\"empty\",\"enable\",\"enact\",\"end\",\"endless\",\"endorse\",\"enemy\",\"energy\",\"enforce\",\"engage\",\"engine\",\"enhance\",\"enjoy\",\"enlist\",\"enough\",\"enrich\",\"enroll\",\"ensure\",\"enter\",\"entire\",\"entry\",\"envelope\",\"episode\",\"equal\",\"equip\",\"era\",\"erase\",\"erode\",\"erosion\",\"error\",\"erupt\",\"escape\",\"essay\",\"essence\",\"estate\",\"eternal\",\"ethics\",\"evidence\",\"evil\",\"evoke\",\"evolve\",\"exact\",\"example\",\"excess\",\"exchange\",\"excite\",\"exclude\",\"excuse\",\"execute\",\"exercise\",\"exhaust\",\"exhibit\",\"exile\",\"exist\",\"exit\",\"exotic\",\"expand\",\"expect\",\"expire\",\"explain\",\"expose\",\"express\",\"extend\",\"extra\",\"eye\",\"eyebrow\",\"fabric\",\"face\",\"faculty\",\"fade\",\"faint\",\"faith\",\"fall\",\"false\",\"fame\",\"family\",\"famous\",\"fan\",\"fancy\",\"fantasy\",\"farm\",\"fashion\",\"fat\",\"fatal\",\"father\",\"fatigue\",\"fault\",\"favorite\",\"feature\",\"february\",\"federal\",\"fee\",\"feed\",\"feel\",\"female\",\"fence\",\"festival\",\"fetch\",\"fever\",\"few\",\"fiber\",\"fiction\",\"field\",\"figure\",\"file\",\"film\",\"filter\",\"final\",\"find\",\"fine\",\"finger\",\"finish\",\"fire\",\"firm\",\"first\",\"fiscal\",\"fish\",\"fit\",\"fitness\",\"fix\",\"flag\",\"flame\",\"flash\",\"flat\",\"flavor\",\"flee\",\"flight\",\"flip\",\"float\",\"flock\",\"floor\",\"flower\",\"fluid\",\"flush\",\"fly\",\"foam\",\"focus\",\"fog\",\"foil\",\"fold\",\"follow\",\"food\",\"foot\",\"force\",\"forest\",\"forget\",\"fork\",\"fortune\",\"forum\",\"forward\",\"fossil\",\"foster\",\"found\",\"fox\",\"fragile\",\"frame\",\"frequent\",\"fresh\",\"friend\",\"fringe\",\"frog\",\"front\",\"frost\",\"frown\",\"frozen\",\"fruit\",\"fuel\",\"fun\",\"funny\",\"furnace\",\"fury\",\"future\",\"gadget\",\"gain\",\"galaxy\",\"gallery\",\"game\",\"gap\",\"garage\",\"garbage\",\"garden\",\"garlic\",\"garment\",\"gas\",\"gasp\",\"gate\",\"gather\",\"gauge\",\"gaze\",\"general\",\"genius\",\"genre\",\"gentle\",\"genuine\",\"gesture\",\"ghost\",\"giant\",\"gift\",\"giggle\",\"ginger\",\"giraffe\",\"girl\",\"give\",\"glad\",\"glance\",\"glare\",\"glass\",\"glide\",\"glimpse\",\"globe\",\"gloom\",\"glory\",\"glove\",\"glow\",\"glue\",\"goat\",\"goddess\",\"gold\",\"good\",\"goose\",\"gorilla\",\"gospel\",\"gossip\",\"govern\",\"gown\",\"grab\",\"grace\",\"grain\",\"grant\",\"grape\",\"grass\",\"gravity\",\"great\",\"green\",\"grid\",\"grief\",\"grit\",\"grocery\",\"group\",\"grow\",\"grunt\",\"guard\",\"guess\",\"guide\",\"guilt\",\"guitar\",\"gun\",\"gym\",\"habit\",\"hair\",\"half\",\"hammer\",\"hamster\",\"hand\",\"happy\",\"harbor\",\"hard\",\"harsh\",\"harvest\",\"hat\",\"have\",\"hawk\",\"hazard\",\"head\",\"health\",\"heart\",\"heavy\",\"hedgehog\",\"height\",\"hello\",\"helmet\",\"help\",\"hen\",\"hero\",\"hidden\",\"high\",\"hill\",\"hint\",\"hip\",\"hire\",\"history\",\"hobby\",\"hockey\",\"hold\",\"hole\",\"holiday\",\"hollow\",\"home\",\"honey\",\"hood\",\"hope\",\"horn\",\"horror\",\"horse\",\"hospital\",\"host\",\"hotel\",\"hour\",\"hover\",\"hub\",\"huge\",\"human\",\"humble\",\"humor\",\"hundred\",\"hungry\",\"hunt\",\"hurdle\",\"hurry\",\"hurt\",\"husband\",\"hybrid\",\"ice\",\"icon\",\"idea\",\"identify\",\"idle\",\"ignore\",\"ill\",\"illegal\",\"illness\",\"image\",\"imitate\",\"immense\",\"immune\",\"impact\",\"impose\",\"improve\",\"impulse\",\"inch\",\"include\",\"income\",\"increase\",\"index\",\"indicate\",\"indoor\",\"industry\",\"infant\",\"inflict\",\"inform\",\"inhale\",\"inherit\",\"initial\",\"inject\",\"injury\",\"inmate\",\"inner\",\"innocent\",\"input\",\"inquiry\",\"insane\",\"insect\",\"inside\",\"inspire\",\"install\",\"intact\",\"interest\",\"into\",\"invest\",\"invite\",\"involve\",\"iron\",\"island\",\"isolate\",\"issue\",\"item\",\"ivory\",\"jacket\",\"jaguar\",\"jar\",\"jazz\",\"jealous\",\"jeans\",\"jelly\",\"jewel\",\"job\",\"join\",\"joke\",\"journey\",\"joy\",\"judge\",\"juice\",\"jump\",\"jungle\",\"junior\",\"junk\",\"just\",\"kangaroo\",\"keen\",\"keep\",\"ketchup\",\"key\",\"kick\",\"kid\",\"kidney\",\"kind\",\"kingdom\",\"kiss\",\"kit\",\"kitchen\",\"kite\",\"kitten\",\"kiwi\",\"knee\",\"knife\",\"knock\",\"know\",\"lab\",\"label\",\"labor\",\"ladder\",\"lady\",\"lake\",\"lamp\",\"language\",\"laptop\",\"large\",\"later\",\"latin\",\"laugh\",\"laundry\",\"lava\",\"law\",\"lawn\",\"lawsuit\",\"layer\",\"lazy\",\"leader\",\"leaf\",\"learn\",\"leave\",\"lecture\",\"left\",\"leg\",\"legal\",\"legend\",\"leisure\",\"lemon\",\"lend\",\"length\",\"lens\",\"leopard\",\"lesson\",\"letter\",\"level\",\"liar\",\"liberty\",\"library\",\"license\",\"life\",\"lift\",\"light\",\"like\",\"limb\",\"limit\",\"link\",\"lion\",\"liquid\",\"list\",\"little\",\"live\",\"lizard\",\"load\",\"loan\",\"lobster\",\"local\",\"lock\",\"logic\",\"lonely\",\"long\",\"loop\",\"lottery\",\"loud\",\"lounge\",\"love\",\"loyal\",\"lucky\",\"luggage\",\"lumber\",\"lunar\",\"lunch\",\"luxury\",\"lyrics\",\"machine\",\"mad\",\"magic\",\"magnet\",\"maid\",\"mail\",\"main\",\"major\",\"make\",\"mammal\",\"man\",\"manage\",\"mandate\",\"mango\",\"mansion\",\"manual\",\"maple\",\"marble\",\"march\",\"margin\",\"marine\",\"market\",\"marriage\",\"mask\",\"mass\",\"master\",\"match\",\"material\",\"math\",\"matrix\",\"matter\",\"maximum\",\"maze\",\"meadow\",\"mean\",\"measure\",\"meat\",\"mechanic\",\"medal\",\"media\",\"melody\",\"melt\",\"member\",\"memory\",\"mention\",\"menu\",\"mercy\",\"merge\",\"merit\",\"merry\",\"mesh\",\"message\",\"metal\",\"method\",\"middle\",\"midnight\",\"milk\",\"million\",\"mimic\",\"mind\",\"minimum\",\"minor\",\"minute\",\"miracle\",\"mirror\",\"misery\",\"miss\",\"mistake\",\"mix\",\"mixed\",\"mixture\",\"mobile\",\"model\",\"modify\",\"mom\",\"moment\",\"monitor\",\"monkey\",\"monster\",\"month\",\"moon\",\"moral\",\"more\",\"morning\",\"mosquito\",\"mother\",\"motion\",\"motor\",\"mountain\",\"mouse\",\"move\",\"movie\",\"much\",\"muffin\",\"mule\",\"multiply\",\"muscle\",\"museum\",\"mushroom\",\"music\",\"must\",\"mutual\",\"myself\",\"mystery\",\"myth\",\"naive\",\"name\",\"napkin\",\"narrow\",\"nasty\",\"nation\",\"nature\",\"near\",\"neck\",\"need\",\"negative\",\"neglect\",\"neither\",\"nephew\",\"nerve\",\"nest\",\"net\",\"network\",\"neutral\",\"never\",\"news\",\"next\",\"nice\",\"night\",\"noble\",\"noise\",\"nominee\",\"noodle\",\"normal\",\"north\",\"nose\",\"notable\",\"note\",\"nothing\",\"notice\",\"novel\",\"now\",\"nuclear\",\"number\",\"nurse\",\"nut\",\"oak\",\"obey\",\"object\",\"oblige\",\"obscure\",\"observe\",\"obtain\",\"obvious\",\"occur\",\"ocean\",\"october\",\"odor\",\"off\",\"offer\",\"office\",\"often\",\"oil\",\"okay\",\"old\",\"olive\",\"olympic\",\"omit\",\"once\",\"one\",\"onion\",\"online\",\"only\",\"open\",\"opera\",\"opinion\",\"oppose\",\"option\",\"orange\",\"orbit\",\"orchard\",\"order\",\"ordinary\",\"organ\",\"orient\",\"original\",\"orphan\",\"ostrich\",\"other\",\"outdoor\",\"outer\",\"output\",\"outside\",\"oval\",\"oven\",\"over\",\"own\",\"owner\",\"oxygen\",\"oyster\",\"ozone\",\"pact\",\"paddle\",\"page\",\"pair\",\"palace\",\"palm\",\"panda\",\"panel\",\"panic\",\"panther\",\"paper\",\"parade\",\"parent\",\"park\",\"parrot\",\"party\",\"pass\",\"patch\",\"path\",\"patient\",\"patrol\",\"pattern\",\"pause\",\"pave\",\"payment\",\"peace\",\"peanut\",\"pear\",\"peasant\",\"pelican\",\"pen\",\"penalty\",\"pencil\",\"people\",\"pepper\",\"perfect\",\"permit\",\"person\",\"pet\",\"phone\",\"photo\",\"phrase\",\"physical\",\"piano\",\"picnic\",\"picture\",\"piece\",\"pig\",\"pigeon\",\"pill\",\"pilot\",\"pink\",\"pioneer\",\"pipe\",\"pistol\",\"pitch\",\"pizza\",\"place\",\"planet\",\"plastic\",\"plate\",\"play\",\"please\",\"pledge\",\"pluck\",\"plug\",\"plunge\",\"poem\",\"poet\",\"point\",\"polar\",\"pole\",\"police\",\"pond\",\"pony\",\"pool\",\"popular\",\"portion\",\"position\",\"possible\",\"post\",\"potato\",\"pottery\",\"poverty\",\"powder\",\"power\",\"practice\",\"praise\",\"predict\",\"prefer\",\"prepare\",\"present\",\"pretty\",\"prevent\",\"price\",\"pride\",\"primary\",\"print\",\"priority\",\"prison\",\"private\",\"prize\",\"problem\",\"process\",\"produce\",\"profit\",\"program\",\"project\",\"promote\",\"proof\",\"property\",\"prosper\",\"protect\",\"proud\",\"provide\",\"public\",\"pudding\",\"pull\",\"pulp\",\"pulse\",\"pumpkin\",\"punch\",\"pupil\",\"puppy\",\"purchase\",\"purity\",\"purpose\",\"purse\",\"push\",\"put\",\"puzzle\",\"pyramid\",\"quality\",\"quantum\",\"quarter\",\"question\",\"quick\",\"quit\",\"quiz\",\"quote\",\"rabbit\",\"raccoon\",\"race\",\"rack\",\"radar\",\"radio\",\"rail\",\"rain\",\"raise\",\"rally\",\"ramp\",\"ranch\",\"random\",\"range\",\"rapid\",\"rare\",\"rate\",\"rather\",\"raven\",\"raw\",\"razor\",\"ready\",\"real\",\"reason\",\"rebel\",\"rebuild\",\"recall\",\"receive\",\"recipe\",\"record\",\"recycle\",\"reduce\",\"reflect\",\"reform\",\"refuse\",\"region\",\"regret\",\"regular\",\"reject\",\"relax\",\"release\",\"relief\",\"rely\",\"remain\",\"remember\",\"remind\",\"remove\",\"render\",\"renew\",\"rent\",\"reopen\",\"repair\",\"repeat\",\"replace\",\"report\",\"require\",\"rescue\",\"resemble\",\"resist\",\"resource\",\"response\",\"result\",\"retire\",\"retreat\",\"return\",\"reunion\",\"reveal\",\"review\",\"reward\",\"rhythm\",\"rib\",\"ribbon\",\"rice\",\"rich\",\"ride\",\"ridge\",\"rifle\",\"right\",\"rigid\",\"ring\",\"riot\",\"ripple\",\"risk\",\"ritual\",\"rival\",\"river\",\"road\",\"roast\",\"robot\",\"robust\",\"rocket\",\"romance\",\"roof\",\"rookie\",\"room\",\"rose\",\"rotate\",\"rough\",\"round\",\"route\",\"royal\",\"rubber\",\"rude\",\"rug\",\"rule\",\"run\",\"runway\",\"rural\",\"sad\",\"saddle\",\"sadness\",\"safe\",\"sail\",\"salad\",\"salmon\",\"salon\",\"salt\",\"salute\",\"same\",\"sample\",\"sand\",\"satisfy\",\"satoshi\",\"sauce\",\"sausage\",\"save\",\"say\",\"scale\",\"scan\",\"scare\",\"scatter\",\"scene\",\"scheme\",\"school\",\"science\",\"scissors\",\"scorpion\",\"scout\",\"scrap\",\"screen\",\"script\",\"scrub\",\"sea\",\"search\",\"season\",\"seat\",\"second\",\"secret\",\"section\",\"security\",\"seed\",\"seek\",\"segment\",\"select\",\"sell\",\"seminar\",\"senior\",\"sense\",\"sentence\",\"series\",\"service\",\"session\",\"settle\",\"setup\",\"seven\",\"shadow\",\"shaft\",\"shallow\",\"share\",\"shed\",\"shell\",\"sheriff\",\"shield\",\"shift\",\"shine\",\"ship\",\"shiver\",\"shock\",\"shoe\",\"shoot\",\"shop\",\"short\",\"shoulder\",\"shove\",\"shrimp\",\"shrug\",\"shuffle\",\"shy\",\"sibling\",\"sick\",\"side\",\"siege\",\"sight\",\"sign\",\"silent\",\"silk\",\"silly\",\"silver\",\"similar\",\"simple\",\"since\",\"sing\",\"siren\",\"sister\",\"situate\",\"six\",\"size\",\"skate\",\"sketch\",\"ski\",\"skill\",\"skin\",\"skirt\",\"skull\",\"slab\",\"slam\",\"sleep\",\"slender\",\"slice\",\"slide\",\"slight\",\"slim\",\"slogan\",\"slot\",\"slow\",\"slush\",\"small\",\"smart\",\"smile\",\"smoke\",\"smooth\",\"snack\",\"snake\",\"snap\",\"sniff\",\"snow\",\"soap\",\"soccer\",\"social\",\"sock\",\"soda\",\"soft\",\"solar\",\"soldier\",\"solid\",\"solution\",\"solve\",\"someone\",\"song\",\"soon\",\"sorry\",\"sort\",\"soul\",\"sound\",\"soup\",\"source\",\"south\",\"space\",\"spare\",\"spatial\",\"spawn\",\"speak\",\"special\",\"speed\",\"spell\",\"spend\",\"sphere\",\"spice\",\"spider\",\"spike\",\"spin\",\"spirit\",\"split\",\"spoil\",\"sponsor\",\"spoon\",\"sport\",\"spot\",\"spray\",\"spread\",\"spring\",\"spy\",\"square\",\"squeeze\",\"squirrel\",\"stable\",\"stadium\",\"staff\",\"stage\",\"stairs\",\"stamp\",\"stand\",\"start\",\"state\",\"stay\",\"steak\",\"steel\",\"stem\",\"step\",\"stereo\",\"stick\",\"still\",\"sting\",\"stock\",\"stomach\",\"stone\",\"stool\",\"story\",\"stove\",\"strategy\",\"street\",\"strike\",\"strong\",\"struggle\",\"student\",\"stuff\",\"stumble\",\"style\",\"subject\",\"submit\",\"subway\",\"success\",\"such\",\"sudden\",\"suffer\",\"sugar\",\"suggest\",\"suit\",\"summer\",\"sun\",\"sunny\",\"sunset\",\"super\",\"supply\",\"supreme\",\"sure\",\"surface\",\"surge\",\"surprise\",\"surround\",\"survey\",\"suspect\",\"sustain\",\"swallow\",\"swamp\",\"swap\",\"swarm\",\"swear\",\"sweet\",\"swift\",\"swim\",\"swing\",\"switch\",\"sword\",\"symbol\",\"symptom\",\"syrup\",\"system\",\"table\",\"tackle\",\"tag\",\"tail\",\"talent\",\"talk\",\"tank\",\"tape\",\"target\",\"task\",\"taste\",\"tattoo\",\"taxi\",\"teach\",\"team\",\"tell\",\"ten\",\"tenant\",\"tennis\",\"tent\",\"term\",\"test\",\"text\",\"thank\",\"that\",\"theme\",\"then\",\"theory\",\"there\",\"they\",\"thing\",\"this\",\"thought\",\"three\",\"thrive\",\"throw\",\"thumb\",\"thunder\",\"ticket\",\"tide\",\"tiger\",\"tilt\",\"timber\",\"time\",\"tiny\",\"tip\",\"tired\",\"tissue\",\"title\",\"toast\",\"tobacco\",\"today\",\"toddler\",\"toe\",\"together\",\"toilet\",\"token\",\"tomato\",\"tomorrow\",\"tone\",\"tongue\",\"tonight\",\"tool\",\"tooth\",\"top\",\"topic\",\"topple\",\"torch\",\"tornado\",\"tortoise\",\"toss\",\"total\",\"tourist\",\"toward\",\"tower\",\"town\",\"toy\",\"track\",\"trade\",\"traffic\",\"tragic\",\"train\",\"transfer\",\"trap\",\"trash\",\"travel\",\"tray\",\"treat\",\"tree\",\"trend\",\"trial\",\"tribe\",\"trick\",\"trigger\",\"trim\",\"trip\",\"trophy\",\"trouble\",\"truck\",\"true\",\"truly\",\"trumpet\",\"trust\",\"truth\",\"try\",\"tube\",\"tuition\",\"tumble\",\"tuna\",\"tunnel\",\"turkey\",\"turn\",\"turtle\",\"twelve\",\"twenty\",\"twice\",\"twin\",\"twist\",\"two\",\"type\",\"typical\",\"ugly\",\"umbrella\",\"unable\",\"unaware\",\"uncle\",\"uncover\",\"under\",\"undo\",\"unfair\",\"unfold\",\"unhappy\",\"uniform\",\"unique\",\"unit\",\"universe\",\"unknown\",\"unlock\",\"until\",\"unusual\",\"unveil\",\"update\",\"upgrade\",\"uphold\",\"upon\",\"upper\",\"upset\",\"urban\",\"urge\",\"usage\",\"use\",\"used\",\"useful\",\"useless\",\"usual\",\"utility\",\"vacant\",\"vacuum\",\"vague\",\"valid\",\"valley\",\"valve\",\"van\",\"vanish\",\"vapor\",\"various\",\"vast\",\"vault\",\"vehicle\",\"velvet\",\"vendor\",\"venture\",\"venue\",\"verb\",\"verify\",\"version\",\"very\",\"vessel\",\"veteran\",\"viable\",\"vibrant\",\"vicious\",\"victory\",\"video\",\"view\",\"village\",\"vintage\",\"violin\",\"virtual\",\"virus\",\"visa\",\"visit\",\"visual\",\"vital\",\"vivid\",\"vocal\",\"voice\",\"void\",\"volcano\",\"volume\",\"vote\",\"voyage\",\"wage\",\"wagon\",\"wait\",\"walk\",\"wall\",\"walnut\",\"want\",\"warfare\",\"warm\",\"warrior\",\"wash\",\"wasp\",\"waste\",\"water\",\"wave\",\"way\",\"wealth\",\"weapon\",\"wear\",\"weasel\",\"weather\",\"web\",\"wedding\",\"weekend\",\"weird\",\"welcome\",\"west\",\"wet\",\"whale\",\"what\",\"wheat\",\"wheel\",\"when\",\"where\",\"whip\",\"whisper\",\"wide\",\"width\",\"wife\",\"wild\",\"will\",\"win\",\"window\",\"wine\",\"wing\",\"wink\",\"winner\",\"winter\",\"wire\",\"wisdom\",\"wise\",\"wish\",\"witness\",\"wolf\",\"woman\",\"wonder\",\"wood\",\"wool\",\"word\",\"work\",\"world\",\"worry\",\"worth\",\"wrap\",\"wreck\",\"wrestle\",\"wrist\",\"write\",\"wrong\",\"yard\",\"year\",\"yellow\",\"you\",\"young\",\"youth\",\"zebra\",\"zero\",\"zone\",\"zoo\"];var Vz=\"failed to decode mnemonic\",dFe=\"the mnemonic contains a word that is not in the wordlist\";function fFe(t){let e=[],n=0,r=0;function o(c){n|=c<<r,r+=8,r>=11&&(e.push(n&2047),n>>=11,r-=11)}function a(){r&&e.push(n)}return t.forEach(o),a(),e}function pFe(t){return t.map(e=>QC[e])}function hFe(t){return pFe(fFe(Hd(t)))[0]}function mFe(t){let e=[],n=0,r=0;function o(c){for(n|=c<<r,r+=11;r>=8;)e.push(n&255),n>>=8,r-=8}function a(){r&&e.push(n)}return t.forEach(o),a(),new Uint8Array(e)}function Zfe(t){let e=t.split(\" \"),n=e.slice(0,24);for(let a of n)if(QC.indexOf(a)===-1)throw new Error(dFe);let r=e[e.length-1],o=mFe(n.map(a=>QC.indexOf(a)));if(o.length!==33)throw new Error(Vz);if(o[o.length-1]!==0)throw new Error(Vz);if(o=o.slice(0,o.length-1),hFe(o)===r)return o;throw new Error(Vz)}u();var tT=t=>t.map(e=>cr(e).publicKey);function Xfe(t,e,n){let r=!1,o=t.subsigs.map(a=>Mm(a.publicKey,e)?(r=!0,{...a,sig:n}):a);if(!r)throw new Error(\"Public key not found in multisig signature\");return{...t,subsigs:o}}var N8=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),gFe=\"invalid multisig version\",yFe=\"bad multisig threshold\",vFe=\"bad multisig public key - wrong length\",xFe=\"nacl public key length is not 32 bytes\",bFe=\"Not enough multisig transactions to merge. Need at least two\",wFe=\"Cannot merge txs. txIDs differ\",EFe=\"Cannot merge txs. Auth addrs differ\",Jfe=\"Cannot merge txs. Multisig preimages differ\",SFe=\"Cannot merge txs. subsigs are mismatched.\",AFe=\"Cannot add multisig signature. Signature is not of the correct length.\",kFe=\"Key does not exist\";function Hz(t,{version:e,threshold:n,addrs:r}){let o=tT(r),a={version:e,threshold:n,subsigs:o.map(f=>({publicKey:f,sig:void 0}))},c=eT({version:e,threshold:n,publicKeys:o}),l;return c.equals(t.sender)||(l=c),{txn:t,msig:a,authAddress:l}}function CFe(t,{rawSig:e,myPk:n},{version:r,threshold:o,publicKeys:a}){let c=Hz(t,{version:r,threshold:o,addrs:a.map(p=>new Yr(p))}),l=!1,f=c.msig.subsigs.map(p=>Mm(p.publicKey,n)?(l=!0,{...p,sig:e}):p);if(!l)throw new Error(kFe);return{...c,msig:{...c.msig,subsigs:f}}}function TFe(t){if(t.length<2)throw new Error(bFe);let e=t[0];if(!e.msig)throw new Error(\"Invalid multisig transaction, multisig structure missing at index 0\");let n=e.txn.txId(),r=e.authAddress,o=eT({version:e.msig.version,threshold:e.msig.threshold,publicKeys:e.msig.subsigs.map(c=>c.publicKey)}),a=e.msig.subsigs.map(c=>({...c}));for(let c=1;c<t.length;c++){let l=t[c];if(!l.msig)throw new Error(`Invalid multisig transaction, multisig structure missing at index ${c}`);if(l.txn.txId()!==n)throw new Error(wFe);if(r!==l.authAddress)throw new Error(EFe);if(l.msig.subsigs.length!==e.msig.subsigs.length)throw new Error(Jfe);let f=eT({version:l.msig.version,threshold:l.msig.threshold,publicKeys:l.msig.subsigs.map(p=>p.publicKey)});if(o.toString()!==f.toString())throw new Error(Jfe);l.msig.subsigs.forEach((p,m)=>{if(!p.sig)return;let g=a[m];if(g.sig&&!Mm(p.sig,g.sig))throw new Error(SFe);g.sig=p.sig})}return{txn:e.txn,msig:{version:e.msig.version,threshold:e.msig.threshold,subsigs:a},authAddress:r}}function _Fe(t,e,n,r){if(r.length!=64)throw new Error(AFe);return CFe(t,{rawSig:r,myPk:(typeof n==\"string\"?Yr.fromString(n):n).publicKey},e)}function MFe(t,{version:e,threshold:n,addrs:r},o,a){let c=tT(r);return TFe([t,_Fe(t.txn,{version:e,threshold:n,publicKeys:c},o,a)])}function eT({version:t,threshold:e,publicKeys:n}){if(t>255||t<0)throw new Error(`${gFe}: ${t}`);if(e===0||n.length===0||e>n.length||e>255)throw new Error(yFe);let r=32;if(r!==32)throw new Error(xFe);let o=new Uint8Array(N8.length+2+r*n.length);o.set(N8,0),o.set([t],N8.length),o.set([e],N8.length+1);for(let a=0;a<n.length;a++){if(n[a].length!==r)throw new Error(vFe);o.set(n[a],N8.length+2+a*r)}return new Yr(Uint8Array.from(Hd(o)))}function IFe({version:t,threshold:e,addrs:n}){return eT({version:t,threshold:e,publicKeys:tT(n)})}var RFe=IFe,U8=class Qfe{constructor(e,n){ge(this,\"_params\");ge(this,\"_subSigners\");ge(this,\"_addr\");ge(this,\"_signer\");ge(this,\"_lsigSigner\");this._params=e,this._subSigners=n,this._addr=RFe(e),this._signer=async(r,o)=>{let a=r.filter((l,f)=>o.includes(f)),c=[];for(let l of a){let f=Hz(l,this._params);for(let p of this.subSigners){let m=(await p.signer([l],[0]))[0],g=Fm(m).sig;if(!g)throw new Error(`Signer for address ${p.addr.toString()} did not produce a valid signature when signing ${l.txId()} for multisig account ${this._addr.toString()}`);f=MFe(f,this._params,p.addr,g)}c.push(f)}return c.map(l=>(Om(l),Dm(l)))},this._lsigSigner=async(r,o)=>{let a=r.lmsig??this.createMultisigSignature();for(let c of this.subSigners){let{lsigSigner:l,addr:f}=c,p=await l(r,this);if(!(\"sig\"in p)||!p.sig)throw new Error(`Signer for address ${f.toString()} did not produce a valid signature when signing logic sig for multisig account ${this._addr.toString()}`);a=this.applySignature(a,f.publicKey,p.sig)}return{addr:this.addr,lmsig:a}}}get params(){return this._params}get subSigners(){return this._subSigners}get addr(){return this._addr}get signer(){return this._signer}get lsigSigner(){return this._lsigSigner}static fromSignature(e){return new Qfe({version:e.version,threshold:e.threshold,addrs:e.subsigs.map(n=>new Yr(n.publicKey))},[])}createMultisigTransaction(e){return Hz(e,this._params)}createMultisigSignature(){let e=tT(this._params.addrs).map(n=>({publicKey:n,sig:void 0}));return{version:this._params.version,threshold:this._params.threshold,subsigs:e}}applySignatureToTxn(e,n,r){e.msig||(e.msig=this.createMultisigTransaction(e.txn).msig),e.msig=Xfe(e.msig,n,r)}applySignature(e,n,r){if(e.version!==this._params.version||e.threshold!==this._params.threshold){let o={version:this._params.version,threshold:this._params.threshold,participants:this._params.addrs.map(c=>c.toString())},a={version:e.version,threshold:e.threshold,participants:e.subsigs.map(c=>new Yr(c.publicKey).toString())};throw new Error(`Multisig signature parameters do not match expected multisig parameters. Multisig params: ${JSON.stringify(o)}, signature: ${JSON.stringify(a)}`)}return Xfe(e,n,r)}};u();var epe=new TextEncoder().encode(\"Program\"),PFe=new TextEncoder().encode(\"MsigProgram\"),BFe=new TextEncoder().encode(\"ProgData\"),tpe=class jz{constructor(e,n){ge(this,\"logic\");ge(this,\"args\");ge(this,\"_addr\");this.logic=e,this.args=n??[],this._addr=new Yr(Hd(Ha(epe,this.logic)))}static fromSignature(e){return new jz(e.logic,e.args||[])}static fromBytes(e){let n=_s(e),r=gC.decode(n,\"msgpack\");return jz.fromSignature(r)}address(){return this._addr}get addr(){return this._addr}bytesToSignForDelegation(e){return e?Ha(PFe,e.addr.publicKey,this.logic):Ha(epe,this.logic)}signProgramData(e,n){return n(e,this)}programDataToSign(e){return Ha(BFe,this.address().publicKey,e)}account(){return new z8(this.logic,this.args)}delegatedAccount(e){return new z8(this.logic,this.args,e)}},z8=class nT extends tpe{constructor(n,r,o){super(n,r??void 0);ge(this,\"sig\");ge(this,\"msig\");ge(this,\"lmsig\");this._addr=o??this._addr}static fromSignature(n,r){if(n.lmsig||n.msig){let a=U8.fromSignature(n.lmsig||n.msig).addr;if(r&&!a.equals(r))throw new Error(\"Provided delegator address does not match multisig address\");let c=new nT(n.logic,n.args||[],a);return c.lmsig=n.lmsig,c.msig=n.msig,c}let o=new nT(n.logic,n.args||[],r);if(n.sig&&r===void 0)throw new Error(\"Delegated address must be provided when logic sig has a signature\");return n.sig&&(o.sig=n.sig),o}static fromBytes(n,r){let o=_s(n),a=gC.decode(o,\"msgpack\");return nT.fromSignature(a,r)}get signer(){return async(n,r)=>{let o=[];for(let a of r){let c={txn:n[a],lsig:{logic:this.logic,args:this.args,msig:this.msig,lmsig:this.lmsig,sig:this.sig}};c.txn.sender.equals(this.addr)||(c.authAddress=this.addr),Om(c),o.push(Dm(c))}return o}}async signForDelegation(n){let r=await n.lsigSigner(this);if(!r.addr.equals(this._addr))throw new Error(`Delegator address from signer does not match expected delegator address. Expected: ${this._addr.toString()}, got: ${r.addr.toString()}`);if(\"sig\"in r&&r.sig)this.sig=r.sig;else if(\"lmsig\"in r&&r.lmsig)this.lmsig=r.lmsig;else throw new Error(\"Delegated lsig signer must return either a sig or lmsig\")}};u();var npe=\"DISPENSER\";u();var $z=br(RA(),1);var rpe=class{constructor(t){ge(this,\"_clientManager\");ge(this,\"_kmd\");this._clientManager=t;try{this._kmd=t.kmd}catch{this._kmd=void 0}}async kmd(){if(this._kmd===void 0){if(await this._clientManager.isLocalNet()){let{kmdConfig:t}=rl.getConfigFromEnvironmentOrLocalNet();if(t)return this._kmd=rl.getKmdClient(t),this._kmd}this._kmd=null}if(!this._kmd)throw new Error(\"Attempt to use Kmd client in AlgoKit instance with no Kmd configured\");return this._kmd}async getWalletAccount(t,e,n){return this.findWalletAccount(t,e,n)}async findWalletAccount(t,e,n){let r=await this.kmd(),o=(await r.listWallets()).wallets.filter(m=>m.name===t);if(o.length===0)return;let a=(await r.initWalletHandle({walletId:o[0].id,walletPassword:\"\"})).walletHandleToken,c;if(e&&typeof e==\"string\")c=Yr.fromString(e);else{let m=(await r.listKeysInWallet({walletHandleToken:a})).addresses;if(m.length>0)if(e&&typeof e==\"function\"){for(let g=0;g<m.length;g++)if(e(await this._clientManager.algod.accountInformation(m[g]))){c=m[g];break}}else c=m[0]}if(!c)return;let l=(await r.exportKey({walletHandleToken:a,address:c})).privateKey,f=$z.default.sign.keyPair.fromSecretKey(l),p=async m=>$z.default.sign.detached(m,f.secretKey);return Nv({ed25519Pubkey:f.publicKey,sendingAddress:yi(n),rawEd25519Signer:p})}async getOrCreateWalletAccount(t,e){let n=await this.getWalletAccount(t);if(n)return n;let r=await this.kmd(),o=(await r.createWallet({walletName:t,walletPassword:\"\"})).wallet.id,a=(await r.initWalletHandle({walletId:o,walletPassword:\"\"})).walletHandleToken;await r.generateKey({walletHandleToken:a});let c=await this.getWalletAccount(t);Cr.logger.info(`LocalNet account \\'${t}\\' doesn\\'t yet exist; created account ${c.addr} with keys stored in KMD and funding with ${e?.algo??1e3} ALGO`);let l=await this.getLocalNetDispenserAccount();return await new Um({algod:this._clientManager.algod,getSigner:()=>l.signer,getSuggestedParams:()=>this._clientManager.algod.suggestedParams()}).addPayment({amount:e??Ui.Algo(1e3),receiver:c.addr,sender:l.addr}).send(),c}async getLocalNetDispenserAccount(){if(!await this._clientManager.isLocalNet())throw new Error(\"Can\\'t get LocalNet dispenser account from non LocalNet network\");let t=(await this._clientManager.algod.genesis()).alloc.filter(e=>e.comment===\"Wallet1\").map(e=>e.addr);if(t.length>0){let e=await this.findWalletAccount(\"unencrypted-default-wallet\",t[0]);if(e)return e}throw new Error(\"Error retrieving LocalNet dispenser account; couldn\\'t find the default account in KMD\")}};var Kz=br(RA(),1);var DFe=ile(function(t){return t.signer}),ope=class{constructor(t,e){ge(this,\"_clientManager\");ge(this,\"_kmdAccountManager\");ge(this,\"_accounts\",{});ge(this,\"_defaultSigner\");ge(this,\"_ed25519Generator\");this._clientManager=t,this._kmdAccountManager=new rpe(t),this._ed25519Generator=e.ed25519Generator}_getComposer(t){return new Um({algod:this._clientManager.algod,getSigner:this.getSigner.bind(this),getSuggestedParams:t??(()=>this._clientManager.algod.suggestedParams())})}get kmd(){return this._kmdAccountManager}setDefaultSigner(t){return this._defaultSigner=\"signer\"in t?t.signer:t,this}signerAccount(t){let e=DFe(t),n={addr:t.addr,signer:e};this._accounts[n.addr.toString()]=n;let r=Yr.fromString(n.addr.toString());return r.account=t,r.addr=n.addr,r.signer=e,r}setSignerFromAccount(t){return this.signerAccount(t),this}setSigner(t,e){return this._accounts[cr(t).toString()]={addr:cr(t),signer:e},this}setSigners(t,e=!0){return this._accounts=e?{...this._accounts,...t._accounts}:{...t._accounts,...this._accounts},this}getSigner(t){let e=this._accounts[cr(t).toString()]?.signer??this._defaultSigner;if(!e)throw new Error(`No signer found for address ${cr(t)}`);return e}getAccount(t){let e=this._accounts[cr(t).toString()];if(!e)throw new Error(`No signer found for address ${cr(t)}`);return e}async getInformation(t){let e=cr(t).toString(),{round:n,lastHeartbeat:r=void 0,lastProposed:o=void 0,address:a,...c}=await this._clientManager.algod.accountInformation(e);return{...c,authAddr:c.authAddr,address:a,balance:Ui.MicroAlgo(Number(c.amount)),amountWithoutPendingRewards:Ui.MicroAlgo(Number(c.amountWithoutPendingRewards)),minBalance:Ui.MicroAlgo(Number(c.minBalance)),pendingRewards:Ui.MicroAlgo(Number(c.pendingRewards)),rewards:Ui.MicroAlgo(Number(c.rewards)),validAsOfRound:BigInt(n),totalAppsOptedIn:Number(c.totalAppsOptedIn),totalAssetsOptedIn:Number(c.totalAssetsOptedIn),totalCreatedApps:Number(c.totalCreatedApps),totalCreatedAssets:Number(c.totalCreatedAssets),appsTotalExtraPages:c.appsTotalExtraPages!==void 0?Number(c.appsTotalExtraPages):void 0,rewardBase:c.rewardBase!==void 0?Number(c.rewardBase):void 0,totalBoxBytes:c.totalBoxBytes!==void 0?Number(c.totalBoxBytes):void 0,totalBoxes:c.totalBoxes!==void 0?Number(c.totalBoxes):void 0,lastHeartbeatRound:r!==void 0?BigInt(r):void 0,lastProposedRound:o!==void 0?BigInt(o):void 0}}fromMnemonic(t,e){let n=Zfe(t),r=this._ed25519Generator(n),o=Nv({ed25519Pubkey:r.ed25519Pubkey,rawEd25519Signer:r.rawEd25519Signer,sendingAddress:yi(e)});return this.signerAccount(o)}rekeyed(t,e){return this.signerAccount({addr:cr(t),signer:e.signer})}async fromEnvironment(t,e){if(!process||!process.env)throw new Error(\"Attempt to get account with private key from a non Node.js context; this is not supported!\");let n=process.env[`${t.toUpperCase()}_MNEMONIC`],r=process.env[`${t.toUpperCase()}_SENDER`];if(n)return this.fromMnemonic(n,r);if(await this._clientManager.isLocalNet()){let o=await this._kmdAccountManager.getOrCreateWalletAccount(t,e);return this.signerAccount(o)}throw new Error(`Missing environment variable ${t.toUpperCase()}_MNEMONIC when looking for account ${t}`)}async fromKmd(t,e,n){let r=await this._kmdAccountManager.getWalletAccount(t,e,n);if(!r)throw new Error(`Unable to find KMD account ${t}${e?\" with predicate\":\"\"}`);return this.signerAccount(r)}multisig(t,e){return this.signerAccount(new U8(t,e))}logicsig(t,e){return this.signerAccount(new z8(t,e))}random(){let t=Kz.default.sign.keyPair(),e=async o=>Kz.default.sign.detached(o,t.secretKey),n=Nv({ed25519Pubkey:t.publicKey,rawEd25519Signer:e});this._accounts[n.addr.toString()]=n;let r=n.addr;for(let o in n){if(o===\"addr\"){r.addr=new Yr(n.addr.publicKey);continue}r[o]=n[o]}return r}async dispenserFromEnvironment(){if(!process||!process.env)throw new Error(\"Attempt to get dispenser from environment from a non Node.js context; this is not supported!\");return process.env[`${\"DISPENSER\".toUpperCase()}_MNEMONIC`]?await this.fromEnvironment(npe):await this.localNetDispenser()}async localNetDispenser(){let t=await this._kmdAccountManager.getLocalNetDispenserAccount();return this.signerAccount(t)}async rekeyAccount(t,e,n){let r=await this._getComposer().addPayment({...n,sender:cr(t),receiver:cr(t),amount:Ui.MicroAlgo(0),rekeyTo:cr(e)}).send(n);return typeof e==\"object\"&&\"addr\"in e&&this.rekeyed(t,e),Cr.getLogger(n?.suppressLog).info(`Rekeyed ${t} to ${e} via transaction ${r.txIds.at(-1)}`),{...r,transaction:r.transactions.at(-1),confirmation:r.confirmations.at(-1)}}async _getEnsureFundedAmount(t,e,n){let r=await this.getInformation(t),o=r.balance.microAlgo-r.minBalance.microAlgo,a=ole(e.microAlgo,o,n?.microAlgo??0n);return a===null?void 0:Ui.MicroAlgo(a)}async ensureFunded(t,e,n,r){let o=cr(t),a=await this._getEnsureFundedAmount(o,n,r?.minFundingIncrement);if(!a)return;let c=await this._getComposer().addPayment({...r,sender:cr(e),receiver:o,amount:a}).send(r);return{...c,transaction:c.transactions[0],confirmation:c.confirmations[0],transactionId:c.txIds[0],amountFunded:a}}async ensureFundedFromEnvironment(t,e,n){let r=cr(t),o=await this.dispenserFromEnvironment(),a=await this._getEnsureFundedAmount(r,e,n?.minFundingIncrement);if(!a)return;let c=await this._getComposer().addPayment({...n,sender:o,receiver:r,amount:a}).send(n);return{...c,transaction:c.transactions[0],confirmation:c.confirmations[0],transactionId:c.txIds[0],amountFunded:a}}async ensureFundedFromTestNetDispenserApi(t,e,n,r){if(!await this._clientManager.isTestNet())throw new Error(\"Attempt to fund using TestNet dispenser API on non TestNet network.\");let o=cr(t),a=await this._getEnsureFundedAmount(o,n,r?.minFundingIncrement);if(!a)return;let c=await e.fund(o,a.microAlgo);return{amountFunded:Ui.MicroAlgo(c.amount),transactionId:c.txId}}};u();var ipe=class{constructor(t){ge(this,\"_newGroup\");ge(this,\"payment\",this._transaction(t=>t.addPayment));ge(this,\"assetCreate\",this._transaction(t=>t.addAssetCreate));ge(this,\"assetConfig\",this._transaction(t=>t.addAssetConfig));ge(this,\"assetFreeze\",this._transaction(t=>t.addAssetFreeze));ge(this,\"assetDestroy\",this._transaction(t=>t.addAssetDestroy));ge(this,\"assetTransfer\",this._transaction(t=>t.addAssetTransfer));ge(this,\"assetOptIn\",this._transaction(t=>t.addAssetOptIn));ge(this,\"assetOptOut\",this._transaction(t=>t.addAssetOptOut));ge(this,\"appCreate\",this._transaction(t=>t.addAppCreate));ge(this,\"appUpdate\",this._transaction(t=>t.addAppUpdate));ge(this,\"appDelete\",this._transaction(t=>t.addAppDelete));ge(this,\"appCall\",this._transaction(t=>t.addAppCall));ge(this,\"appCreateMethodCall\",this._transactions(t=>t.addAppCreateMethodCall));ge(this,\"appUpdateMethodCall\",this._transactions(t=>t.addAppUpdateMethodCall));ge(this,\"appDeleteMethodCall\",this._transactions(t=>t.addAppDeleteMethodCall));ge(this,\"appCallMethodCall\",this._transactions(t=>t.addAppCallMethodCall));ge(this,\"onlineKeyRegistration\",this._transaction(t=>t.addOnlineKeyRegistration));ge(this,\"offlineKeyRegistration\",this._transaction(t=>t.addOfflineKeyRegistration));this._newGroup=t}_transaction(t){return async e=>{let n=this._newGroup();return(await t(n).apply(n,[e]).buildTransactions()).transactions.at(-1)}}_transactions(t){return async e=>{let n=this._newGroup();return await t(n).apply(n,[e]).buildTransactions()}}};u();var V8=br($s(),1);var Gz=({method:t,args:e})=>`${t.name}(${(e??[]).map(n=>typeof n==\"object\"?Gd(n,(r,o)=>{let a=lz(r,o);return a instanceof Uint8Array?V8.Buffer.from(a).toString(\"base64\"):a}):n)})`,ape=class{constructor(t,e,n){ge(this,\"_newGroup\");ge(this,\"_assetManager\");ge(this,\"_appManager\");ge(this,\"payment\",this._send(t=>t.addPayment,{preLog:(t,e)=>`Sending ${t.amount.microAlgo} \\\\xB5ALGO from ${cr(t.sender)} to ${cr(t.receiver)} via transaction ${e.txId()}`}));ge(this,\"assetCreate\",async t=>{let e=await this._send(n=>n.addAssetCreate,{postLog:(n,r)=>`Created asset${n.assetName?` ${n.assetName}`:\"\"}${n.unitName?` (${n.unitName})`:\"\"} with ${n.total} units and ${n.decimals??0} decimals created by ${cr(n.sender)} with ID ${r.confirmation.assetId} via transaction ${r.txIds.at(-1)}`})(t);return{...e,assetId:BigInt(e.confirmation.assetId??0)}});ge(this,\"assetConfig\",this._send(t=>t.addAssetConfig,{preLog:(t,e)=>`Configuring asset with ID ${t.assetId} via transaction ${e.txId()}`}));ge(this,\"assetFreeze\",this._send(t=>t.addAssetFreeze,{preLog:(t,e)=>`Freezing asset with ID ${t.assetId} via transaction ${e.txId()}`}));ge(this,\"assetDestroy\",this._send(t=>t.addAssetDestroy,{preLog:(t,e)=>`Destroying asset with ID ${t.assetId} via transaction ${e.txId()}`}));ge(this,\"assetTransfer\",this._send(t=>t.addAssetTransfer,{preLog:(t,e)=>`Transferring ${t.amount} units of asset with ID ${t.assetId} from ${cr(t.sender)} to ${cr(t.receiver)} via transaction ${e.txId()}`}));ge(this,\"assetOptIn\",this._send(t=>t.addAssetOptIn,{preLog:(t,e)=>`Opting in ${cr(t.sender)} to asset with ID ${t.assetId} via transaction ${e.txId()}`}));ge(this,\"assetOptOut\",async t=>{if(t.ensureZeroBalance){let e=0n;try{e=(await this._assetManager.getAccountInformation(cr(t.sender),t.assetId)).balance}catch{throw new Error(`Account ${cr(t.sender)} is not opted-in to Asset ${t.assetId}; can\\'t opt-out.`)}if(e!==0n)throw new Error(`Account ${cr(t.sender)} does not have a zero balance for Asset ${t.assetId}; can\\'t opt-out.`)}return t.creator=t.creator??(await this._assetManager.getById(t.assetId)).creator,await this._send(e=>e.addAssetOptOut,{preLog:(e,n)=>`Opting ${cr(e.sender)} out of asset with ID ${e.assetId} to creator ${cr(e.creator)} via transaction ${n.txId()}`})(t)});ge(this,\"appCreate\",this._sendAppCreateCall(t=>t.addAppCreate,{postLog:(t,e)=>`App created by ${cr(t.sender)} with ID ${e.confirmation.appId} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appUpdate\",this._sendAppUpdateCall(t=>t.addAppUpdate,{postLog:(t,e)=>`App ${t.appId} updated ${t.args?` with ${t.args.map(n=>V8.Buffer.from(n).toString(\"base64\"))}`:\"\"} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appDelete\",this._sendAppCall(t=>t.addAppDelete,{postLog:(t,e)=>`App ${t.appId} deleted ${t.args?` with ${t.args.map(n=>V8.Buffer.from(n).toString(\"base64\"))}`:\"\"} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appCall\",this._sendAppCall(t=>t.addAppCall,{postLog:(t,e)=>`App ${t.appId} called ${t.args?` with ${t.args.map(n=>V8.Buffer.from(n).toString(\"base64\"))}`:\"\"} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appCreateMethodCall\",this._sendAppCreateCall(t=>t.addAppCreateMethodCall,{postLog:(t,e)=>`App created by ${cr(t.sender)} with ID ${e.confirmation.appId} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appUpdateMethodCall\",this._sendAppUpdateCall(t=>t.addAppUpdateMethodCall,{postLog:(t,e)=>`App ${t.appId} updated with ${Gz(t)} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appDeleteMethodCall\",this._sendAppCall(t=>t.addAppDeleteMethodCall,{postLog:(t,e)=>`App ${t.appId} deleted with ${Gz(t)} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"appCallMethodCall\",this._sendAppCall(t=>t.addAppCallMethodCall,{postLog:(t,e)=>`App ${t.appId} called with ${Gz(t)} by ${cr(t.sender)} via transaction ${e.txIds.at(-1)}`}));ge(this,\"onlineKeyRegistration\",this._send(t=>t.addOnlineKeyRegistration,{preLog:(t,e)=>`Registering online key for ${cr(t.sender)} via transaction ${e.txId()}`}));ge(this,\"offlineKeyRegistration\",this._send(t=>t.addOfflineKeyRegistration,{preLog:(t,e)=>`Registering offline key for ${cr(t.sender)} via transaction ${e.txId()}`}));this._newGroup=t,this._assetManager=e,this._appManager=n}newGroup(){return this._newGroup()}_send(t,e){return async n=>{let r=this._newGroup();if(t(r).apply(r,[n]),e?.preLog){let c=(await r.build()).transactions.at(-1).txn;Cr.getLogger(n?.suppressLog).debug(e.preLog(n,c))}let o=await r.send(n),a={transaction:o.transactions.at(-1),confirmation:o.confirmations.at(-1),txId:o.txIds.at(-1),...o};return e?.postLog&&Cr.getLogger(n?.suppressLog).debug(e.postLog(n,a)),a}}_sendAppCall(t,e){return async n=>{let r=await this._send(t,e)(n);return{...r,return:Qs.getABIReturn(r.confirmation,\"method\"in n?n.method:void 0)}}}_sendAppUpdateCall(t,e){return async n=>{let r=await this._sendAppCall(t,e)(n),o=typeof n.approvalProgram==\"string\"?this._appManager.getCompilationResult(n.approvalProgram):void 0,a=typeof n.clearStateProgram==\"string\"?this._appManager.getCompilationResult(n.clearStateProgram):void 0;return{...r,compiledApproval:o,compiledClear:a}}}_sendAppCreateCall(t,e){return async n=>{let r=await this._sendAppUpdateCall(t,e)(n);return{...r,appId:BigInt(r.confirmation.appId),appAddress:Hl(r.confirmation.appId)}}}};u();u();async function spe(t,e,n=!0,r){return await lpe(o=>{if(\"message\"in o)throw{status:404,...o};return o.applications},o=>t.lookupAccountCreatedApplications(e,{includeAll:n,limit:r??1e3,...o&&{next:o}}))}async function cpe(t,e,n){let r=0n,o=await lpe(a=>{if(\"message\"in a)throw{status:404,...a};return a.currentRound>r&&(r=a.currentRound),a.transactions},a=>t.searchForTransactions({...e,limit:n??1e3,next:a}));return{currentRound:r,nextToken:void 0,transactions:o}}async function lpe(t,e){let n=[],r;for(;;){let o=await e(r),a=t(o);if(a==null||a.length===0||(n.push(...a),r=o.nextToken,!r))break}return n}var upe=class{constructor(t,e,n){ge(this,\"_appManager\");ge(this,\"_transactionSender\");ge(this,\"_indexer\");ge(this,\"_appLookups\",new Map);this._appManager=t,this._transactionSender=e,this._indexer=n}async deploy(t){let{metadata:e,deployTimeParams:n,onSchemaBreak:r,onUpdate:o,createParams:a,updateParams:c,deleteParams:l,existingDeployments:f,ignoreCache:p,...m}=t;if(a.note=c.note=Um.arc2Note({dAppName:dC,data:e,format:\"j\"}),f&&f.creator.toString()!==a.sender.toString())throw new Error(`Received invalid existingDeployments value for creator ${f.creator} when attempting to deploy for creator ${cr(a.sender)}`);if(!f&&!this._indexer)throw new Error(\"Didn\\'t receive an indexer client when this AppManager was created, but also didn\\'t receive an existingDeployments cache - one of them must be provided\");Cr.getLogger(m?.suppressLog).info(`Idempotently deploying app \"${e.name}\" from creator ${cr(a.sender)} using ${a.approvalProgram.length} bytes of ${typeof a.approvalProgram==\"string\"?\"teal code\":\"AVM bytecode\"} and ${a.clearStateProgram.length} bytes of ${typeof a.approvalProgram==\"string\"?\"teal code\":\"AVM bytecode\"}`);let g=typeof a.approvalProgram==\"string\"?await this._appManager.compileTealTemplate(a.approvalProgram,n,e):void 0,y=g?g.compiledBase64ToBytes:a.approvalProgram,A=typeof a.clearStateProgram==\"string\"?await this._appManager.compileTealTemplate(a.clearStateProgram,n):void 0,T=A?A.compiledBase64ToBytes:a.clearStateProgram,R=async()=>{let z=await(\"method\"in a?this._transactionSender.appCreateMethodCall({...a,approvalProgram:y,clearStateProgram:T,...m}):this._transactionSender.appCreate({...a,approvalProgram:y,clearStateProgram:T,...m})),Y={appId:z.appId,appAddress:z.appAddress,...e,createdMetadata:e,createdRound:BigInt(z.confirmation.confirmedRound),updatedRound:BigInt(z.confirmation.confirmedRound),deleted:!1};return this.updateAppLookup(a.sender,Y),{operationPerformed:\"create\",compiledApproval:g,compiledClear:A,...z,...Y}},K=async z=>{Cr.getLogger(m?.suppressLog).info(`Updating existing ${e.name} app for ${cr(a.sender)} to version ${e.version}.`);let Y=await(\"method\"in c?this._transactionSender.appUpdateMethodCall({appId:z.appId,approvalProgram:y,clearStateProgram:T,...c,...m}):this._transactionSender.appUpdate({appId:z.appId,approvalProgram:y,clearStateProgram:T,...c,...m})),L={appId:z.appId,appAddress:z.appAddress,createdMetadata:z.createdMetadata,createdRound:z.createdRound,updatedRound:BigInt(Y.confirmation.confirmedRound),...e,deleted:!1};return this.updateAppLookup(a.sender,L),{operationPerformed:\"update\",compiledApproval:g,compiledClear:A,...Y,...L}},O=async z=>{Cr.getLogger(m?.suppressLog).info(`Deploying a new ${e.name} app for ${cr(a.sender)}; deploying app with version ${e.version}.`),Cr.getLogger(m?.suppressLog).warn(`Deleting existing ${e.name} app with id ${z.appId} from ${cr(l.sender)} account.`);let Y=this._transactionSender.newGroup();\"method\"in a?Y.addAppCreateMethodCall({...a,approvalProgram:y,clearStateProgram:T}):Y.addAppCreate({...a,approvalProgram:y,clearStateProgram:T});let L=await Y.count();\"method\"in l?Y.addAppDeleteMethodCall({appId:z.appId,...l}):Y.addAppDelete({appId:z.appId,...l});let U=await Y.send({...m}),W=U.confirmations.at(L-1),w=U.transactions.at(L-1),I=U.transactions.at(-1);Cr.getLogger(m?.suppressLog).warn(`Sent transactions ${w.txId()} to create app with id ${W.appId} and ${I.txId()} to delete app with id ${z.appId} from ${cr(a.sender)} account.`);let ye={appId:W.appId,appAddress:Hl(W.appId),...e,createdMetadata:e,createdRound:BigInt(W.confirmedRound),updatedRound:BigInt(W.confirmedRound),deleted:!1};return this.updateAppLookup(a.sender,ye),{operationPerformed:\"replace\",...U,compiledApproval:g,compiledClear:A,transaction:w,confirmation:W,return:\"method\"in a?U.returns?.[0]:void 0,deleteReturn:\"method\"in l?U.returns?.at(-1):void 0,...ye,deleteResult:{transaction:I,confirmation:U.confirmations.at(-1)}}},V=(f??await this.getCreatorAppsByName(a.sender,p)).apps[e.name];if(!V||V.deleted)return Cr.getLogger(m?.suppressLog).info(`App ${e.name} not found in apps created by ${cr(a.sender)}; deploying app with version ${e.version}.`),await R();Cr.getLogger(m?.suppressLog).info(`Existing app ${e.name} found by creator ${cr(a.sender)}, with app id ${V.appId} and version ${V.version}.`);let D=await this._appManager.getById(V.appId),G=globalThis.Buffer.from(D.approvalProgram).toString(\"base64\"),ee=globalThis.Buffer.from(D.clearStateProgram).toString(\"base64\"),J=D.extraProgramPages??0,le=globalThis.Buffer.from(y),se=globalThis.Buffer.from(T),te=le.toString(\"base64\"),S=se.toString(\"base64\"),_=Uv(le,se),P=te!==G||S!==ee;if(D.localInts<(a.schema?.localInts??0)||D.globalInts<(a.schema?.globalInts??0)||D.localByteSlices<(a.schema?.localByteSlices??0)||D.globalByteSlices<(a.schema?.globalByteSlices??0)||J<_){if(Cr.getLogger(m?.suppressLog).warn(`Detected a breaking app schema change in app ${V.appId}:`,{from:{globalInts:D.globalInts,globalByteSlices:D.globalByteSlices,localInts:D.localInts,localByteSlices:D.localByteSlices,extraProgramPages:J},to:{...a.schema,extraProgramPages:_}}),r===void 0||r===\"fail\"||r===KU.Fail)throw new Error(\"Schema break detected and onSchemaBreak=OnSchemaBreak.Fail, stopping deployment. If you want to try deleting and recreating the app then re-run with onSchemaBreak=OnSchemaBreak.ReplaceApp\");return r===\"append\"||r===KU.AppendApp?(Cr.getLogger(m?.suppressLog).info(\"onSchemaBreak=AppendApp, will attempt to create a new app\"),await R()):(V.deletable?Cr.getLogger(m?.suppressLog).info(\"App is deletable and onSchemaBreak=ReplaceApp, will attempt to create new app and delete old app\"):Cr.getLogger(m?.suppressLog).info(\"App is not deletable but onSchemaBreak=ReplaceApp, will attempt to delete app, delete will most likely fail\"),await O(V))}if(P){if(Cr.getLogger(m?.suppressLog).info(`Detected a TEAL update in app ${V.appId} for creator ${cr(a.sender)}`),o===void 0||o===\"fail\"||o===m8.Fail)throw new Error(\"Update detected and onUpdate=Fail, stopping deployment. Try a different onUpdate value to not fail.\");if(o===\"append\"||o===m8.AppendApp)return Cr.getLogger(m?.suppressLog).info(\"onUpdate=AppendApp, will attempt to create a new app\"),await R();if(o===\"update\"||o===m8.UpdateApp)return V.updatable?Cr.getLogger(m?.suppressLog).info(\"App is updatable and onUpdate=UpdateApp, updating app...\"):Cr.getLogger(m?.suppressLog).warn(\"App is not updatable but onUpdate=UpdateApp, will attempt to update app, update will most likely fail\"),await K(V);if(o===\"replace\"||o===m8.ReplaceApp)return V.deletable?Cr.getLogger(m?.suppressLog).warn(\"App is deletable and onUpdate=ReplaceApp, creating new app and deleting old app...\"):Cr.getLogger(m?.suppressLog).warn(\"App is not deletable and onUpdate=ReplaceApp, will attempt to create new app and delete old app, delete will most likely fail\"),await O(V)}return Cr.getLogger(m?.suppressLog).debug(\"No detected changes in app, nothing to do.\"),{...V,operationPerformed:\"nothing\"}}updateAppLookup(t,e){let n=cr(t).toString(),r=this._appLookups.get(n);r?r.apps[e.name]=e:this._appLookups.set(n,{creator:Yr.fromString(n),apps:{[e.name]:e}})}async getCreatorAppsByName(t,e){let n={},r=cr(t),o=r.toString();if(!e&&this._appLookups.has(o))return this._appLookups.get(o);if(!this._indexer)throw new Error(\"Didn\\'t receive an indexer client when this AppManager was created, but received a call to getCreatorApps\");let a=(await spe(this._indexer,o)).map(l=>({id:l.id,createdAtRound:l.createdAtRound,deleted:l.deleted})).sort((l,f)=>Number(l.createdAtRound-f.createdAtRound));(await Promise.all(a.map(async l=>{let f=await cpe(this._indexer,{minRound:l.createdAtRound,txType:Er.AppCall,applicationId:l.id,address:r,addressRole:\"sender\",notePrefix:globalThis.Buffer.from(dC).toString(\"base64\")}),p=f.transactions.filter(g=>g.applicationTransaction?.applicationId===0n&&g.sender.toString()===r.toString())[0],m=f.transactions.filter(g=>g.sender.toString()===r.toString()).sort((g,y)=>g.confirmedRound===y.confirmedRound?(y.intraRoundOffset-g.intraRoundOffset)/10:Number(y.confirmedRound-g.confirmedRound))[0];return p?.note?{createdApp:l,appCreationTransaction:p,latestAppUpdateTransaction:m}:null}))).filter(l=>l!==null).forEach(l=>{let{createdApp:f,appCreationTransaction:p,latestAppUpdateTransaction:m}=l,g=y=>{if(y&&y.startsWith(\"ALGOKIT_DEPLOYER:j{\"))return JSON.parse(y.substring(dC.length+2))};try{let y=g(p.note?globalThis.Buffer.from(p.note).toString(\"utf-8\"):void 0),A=g(m.note?globalThis.Buffer.from(m.note).toString(\"utf-8\"):void 0);y?.name&&(n[y.name]={appId:f.id,appAddress:Hl(f.id),createdMetadata:y,createdRound:p.confirmedRound??0n,...A??y,updatedRound:m?.confirmedRound??0n,deleted:f.deleted??!1})}catch(y){Cr.logger.warn(`Received error trying to retrieve app with ${f.id} for creator ${r}; failing silently`,y);return}});let c={creator:r,apps:n};return this._appLookups.set(o,c),c}};u();var dpe=class{constructor(t,e){ge(this,\"_algod\");ge(this,\"_newGroup\");this._algod=t,this._newGroup=e}async getById(t){let e=await this._algod.assetById(t);return{assetId:BigInt(e.id),total:BigInt(e.params.total),decimals:Number(e.params.decimals),assetName:e.params.name,assetNameAsBytes:e.params.nameB64,unitName:e.params.unitName,unitNameAsBytes:e.params.unitNameB64,url:e.params.url,urlAsBytes:e.params.urlB64,creator:e.params.creator,manager:e.params.manager,clawback:e.params.clawback,freeze:e.params.freeze,reserve:e.params.reserve,defaultFrozen:e.params.defaultFrozen,metadataHash:e.params.metadataHash}}async getAccountInformation(t,e){let n=await this._algod.accountAssetInformation(t.toString(),e);return{assetId:BigInt(e),balance:BigInt(n.assetHolding?.amount??0),frozen:n.assetHolding?.isFrozen===!0,round:BigInt(n.round)}}async bulkOptIn(t,e,n){let r=[];for(let o of sz(e,16)){let a=this._newGroup();for(let l of o)a.addAssetOptIn({...n,sender:t,assetId:BigInt(l)});let c=await a.send(n);Cr.getLogger(n?.suppressLog).info(`Successfully opted in ${t} for assets ${o.join(\", \")} with transaction IDs ${c.txIds.join(\", \")}\\n  Grouped under ${c.groupId} in round ${c.confirmations?.[0]?.confirmedRound}.`),o.forEach((l,f)=>{r.push({assetId:BigInt(l),transactionId:c.txIds[f]})})}return r}async bulkOptOut(t,e,n){let r=[];for(let o of sz(e,16)){let a=this._newGroup(),c=[],l=[];for(let p of o)if(n?.ensureZeroBalance!==!1)try{(await this.getAccountInformation(t,p)).balance!==0n&&l.push(BigInt(p))}catch{c.push(BigInt(p))}if(c.length>0||l.length>0)throw new Error(`Account ${t}${c.length>0?` is not opted-in to Asset${c.length>1?\"s\":\"\"} ${c.join(\", \")}`:\"\"}${l.length>0?` has non-zero balance for Asset${l.length>1?\"s\":\"\"} ${l.join(\", \")}`:\"\"}; can\\'t opt-out.`);for(let p of o)a.addAssetOptOut({...n,creator:(await this.getById(BigInt(p))).creator,sender:t,assetId:BigInt(p)});let f=await a.send(n);Cr.getLogger(n?.suppressLog).info(`Successfully opted ${t} out of assets ${o.join(\", \")} with transaction IDs ${f.txIds.join(\", \")}\\n  Grouped under ${f.groupId} in round ${f.confirmations?.[0]?.confirmedRound}.`),o.forEach((p,m)=>{r.push({assetId:BigInt(p),transactionId:f.txIds[m]})})}return r}};u();var FFe=class{constructor(t,e,n){ge(this,\"_algod\");ge(this,\"_networkManager\");ge(this,\"_algorand\");this._algod=t,this._networkManager=e,this._algorand=n}async _ensureLocalNet(){if(!await this._algorand.client.isLocalNet())throw new Error(\"LocalNet methods are only available when connected to a LocalNet network\")}async _generateBlock(){let t=this._algorand,e=await t.account.localNetDispenser();await t.send.payment({sender:e,receiver:e,amount:Ui.MicroAlgo(0),note:\"algokit-utils:block-generation\"})}async blockWarp(t){for(await this._ensureLocalNet();await this._networkManager.getLastRound()<t;)await this._generateBlock()}async timeWarp(t){await this._ensureLocalNet();let e=await this._networkManager.getLatestTimestamp(),n=Number(t-e);await this._algod.setBlockTimeStampOffset(n),await this._generateBlock(),await this._algod.setBlockTimeStampOffset(0)}},fpe=class{constructor(t,e){ge(this,\"_algod\");ge(this,\"_algorand\");ge(this,\"_localNet\");this._algod=t,this._algorand=e}async getLastRound(){return(await this._algod.status()).lastRound}async getLatestTimestamp(){let t=await this._algod.status();return(await this._algod.block(t.lastRound)).block.header.timestamp}async waitUntilRound(t){let e=await this._algod.status();for(;e.lastRound<t;)e=await this._algod.statusAfterBlock(e.lastRound)}async waitUntilTimestamp(t,e){let n=e?.blockTimeSeconds??2.7,r=e?.pollingIntervalMs??1e3,o=e?.pollingTimeoutMs??5e3,a=(await this._algod.status()).lastRound,c=(await this._algod.block(a)).block.header.timestamp;if(c>=t)return;let l=Number(t-c),f=Math.floor(l/n);f>1&&await this.waitUntilRound(a+BigInt(f));let p=Date.now();for(;;){let m=await this.getLatestTimestamp();if(m>t)return;if(Date.now()-p>=o)throw new Error(`Timeout waiting for timestamp ${t} (current: ${m})`);await new Promise(g=>setTimeout(g,r))}}get localNet(){return this._localNet||(this._localNet=new FFe(this._algod,this,this._algorand)),this._localNet}};var Du=class ny{constructor(e){ge(this,\"_clientManager\");ge(this,\"_accountManager\");ge(this,\"_appManager\");ge(this,\"_appDeployer\");ge(this,\"_assetManager\");ge(this,\"_networkManager\");ge(this,\"_transactionSender\");ge(this,\"_transactionCreator\");ge(this,\"_cachedSuggestedParams\");ge(this,\"_cachedSuggestedParamsExpiry\");ge(this,\"_cachedSuggestedParamsTimeout\",3e3);ge(this,\"_defaultValidityWindow\");ge(this,\"_errorTransformers\",new Set);this._clientManager=new rl(e,this),this._accountManager=new ope(this._clientManager,{ed25519Generator:e.ed25519Generator??Tce}),this._appManager=new Qs(this._clientManager.algod),this._assetManager=new dpe(this._clientManager.algod,n=>this.newGroup(n)),this._networkManager=new fpe(this._clientManager.algod,this),this._transactionSender=new ape(n=>this.newGroup(n),this._assetManager,this._appManager),this._transactionCreator=new ipe(n=>this.newGroup(n)),this._appDeployer=new upe(this._appManager,this._transactionSender,this._clientManager.indexerIfPresent)}setDefaultValidityWindow(e){return this._defaultValidityWindow=BigInt(e),this}setDefaultSigner(e){return this._accountManager.setDefaultSigner(e),this}setSignerFromAccount(e){return this._accountManager.setSignerFromAccount(e),this}setSigner(e,n){return this._accountManager.setSigner(e,n),this}setSuggestedParamsCache(e,n){return this._cachedSuggestedParams=e,this._cachedSuggestedParamsExpiry=n??new Date(+new Date+this._cachedSuggestedParamsTimeout),this}setSuggestedParamsCacheTimeout(e){return this._cachedSuggestedParamsTimeout=e,this}async getSuggestedParams(){return this._cachedSuggestedParams&&(!this._cachedSuggestedParamsExpiry||this._cachedSuggestedParamsExpiry>new Date)?{...this._cachedSuggestedParams}:(this._cachedSuggestedParams=await this._clientManager.algod.suggestedParams(),this._cachedSuggestedParamsExpiry=new Date(new Date().getTime()+this._cachedSuggestedParamsTimeout),{...this._cachedSuggestedParams})}get client(){return this._clientManager}get account(){return this._accountManager}get asset(){return this._assetManager}get app(){return this._appManager}get appDeployer(){return this._appDeployer}get network(){return this._networkManager}registerErrorTransformer(e){this._errorTransformers.add(e)}unregisterErrorTransformer(e){this._errorTransformers.delete(e)}newGroup(e){return new Um({algod:this.client.algod,getSigner:n=>this.account.getSigner(n),getSuggestedParams:()=>this.getSuggestedParams(),defaultValidityWindow:this._defaultValidityWindow,appManager:this._appManager,errorTransformers:[...this._errorTransformers],composerConfig:e})}get send(){return this._transactionSender}get createTransaction(){return this._transactionCreator}static defaultLocalNet(){return new ny({algodConfig:rl.getDefaultLocalNetConfig(\"algod\"),indexerConfig:rl.getDefaultLocalNetConfig(\"indexer\"),kmdConfig:rl.getDefaultLocalNetConfig(\"kmd\")})}static testNet(){return new ny({algodConfig:rl.getAlgoNodeConfig(\"testnet\",\"algod\"),indexerConfig:rl.getAlgoNodeConfig(\"testnet\",\"indexer\"),kmdConfig:void 0})}static mainNet(){return new ny({algodConfig:rl.getAlgoNodeConfig(\"mainnet\",\"algod\"),indexerConfig:rl.getAlgoNodeConfig(\"mainnet\",\"indexer\"),kmdConfig:void 0})}static fromClients(e){return new ny(e)}static fromEnvironment(){return new ny(rl.getConfigFromEnvironmentOrLocalNet())}static fromConfig(e){return new ny(e)}};u();var hs=br(Ww(),1);u();u();u();u();var OFe=\"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=\",qz=\"algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\";var LFe=\"31566704\",NFe=\"10458941\",ppe=6,hpe={[OFe]:{asaId:LFe,name:\"USDC\",decimals:ppe},[qz]:{asaId:NFe,name:\"USDC\",decimals:ppe}};u();u();u();var UFe=br($s(),1);u();u();var rT=(t,e)=>{let n=t.get(e);if(!n)for(let[r,o]of t.entries()){let a=r.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\"\\\\\\\\$&\").replace(/\\\\\\\\\\\\*/g,\".*\");if(new RegExp(`^${a}$`).test(e)){n=o;break}}return n},oT=(t,e,n)=>rT(t,n)?.get(e);u();function Wz(t){return globalThis.Buffer.from(t).toString(\"base64\")}function mpe(t){return t===qz}var Yz=class{constructor(t,e){this.signer=t,this.config=e,this.scheme=\"exact\"}async createPaymentPayload(t,e){let{amount:n,asset:r,payTo:o,network:a,extra:c}=e,l=this.getAlgorandClient(a),f=this.getAssetId(r,a),p=c?.feePayer,m=0,g=Lm(),y=l.newGroup();p&&(y.addPayment({sender:p,receiver:p,amount:iz(0),note:`x402-fee-payer-${Date.now()}`,signer:g}),m=1),y.addAssetTransfer({sender:this.signer.address,receiver:o,assetId:BigInt(f),amount:BigInt(n),staticFee:p?iz(0):void 0,note:`x402-payment-v${t}-${Date.now()}`,signer:g});let T=(await y.build()).transactions.map(G=>G.txn);if(p){let G=await l.getSuggestedParams(),ee=Number(G.fee),J=Number(G.minFee),le=BigInt(0);for(let te of T){let S=jl(te).length,_=ee>0?Math.max(ee*S,J):J;le+=BigInt(_)}let se=T.map((te,S)=>{let _=S===0?le:BigInt(0);return new Mo({...te,fee:_,group:void 0})});T=Bm(se)}let R=T.map(G=>jl(G)),K=T.map((G,ee)=>G.sender.toString()===this.signer.address?ee:-1).filter(G=>G!==-1),O=await this.signer.signTransactions(R,K),D={paymentGroup:R.map((G,ee)=>{let J=O[ee];return J?Wz(J):Wz(G)}),paymentIndex:m};return{x402Version:t,payload:D}}getAlgorandClient(t){return this.config?.algorandClient?this.config.algorandClient:this.config?.algodUrl?Du.fromConfig({algodConfig:{server:this.config.algodUrl,token:this.config.algodToken??\"\"}}):mpe(t)?Du.testNet():Du.mainNet()}getAssetId(t,e){if(/^\\\\d+$/.test(t))return t;let n=hpe[e];return n?n.asaId:t}};u();u();u();u();var or={};Oi(or,{BRAND:()=>gOe,DIRTY:()=>ry,EMPTY_PATH:()=>WFe,INVALID:()=>Or,NEVER:()=>eLe,OK:()=>Ms,ParseStatus:()=>cs,Schema:()=>lo,ZodAny:()=>$m,ZodArray:()=>Dp,ZodBigInt:()=>iy,ZodBoolean:()=>ay,ZodBranded:()=>j8,ZodCatch:()=>yy,ZodDate:()=>sy,ZodDefault:()=>gy,ZodDiscriminatedUnion:()=>sT,ZodEffects:()=>Gl,ZodEnum:()=>hy,ZodError:()=>Cc,ZodFirstPartyTypeKind:()=>Ur,ZodFunction:()=>lT,ZodIntersection:()=>dy,ZodIssueCode:()=>qn,ZodLazy:()=>fy,ZodLiteral:()=>py,ZodMap:()=>ex,ZodNaN:()=>nx,ZodNativeEnum:()=>my,ZodNever:()=>Fu,ZodNull:()=>ly,ZodNullable:()=>Zd,ZodNumber:()=>oy,ZodObject:()=>Tc,ZodOptional:()=>$l,ZodParsedType:()=>mr,ZodPipeline:()=>$8,ZodPromise:()=>Km,ZodReadonly:()=>vy,ZodRecord:()=>cT,ZodSchema:()=>lo,ZodSet:()=>tx,ZodString:()=>jm,ZodSymbol:()=>Jv,ZodTransformer:()=>Gl,ZodTuple:()=>Yd,ZodType:()=>lo,ZodUndefined:()=>cy,ZodUnion:()=>uy,ZodUnknown:()=>Bp,ZodVoid:()=>Qv,addIssueToContext:()=>lr,any:()=>kOe,array:()=>MOe,bigint:()=>bOe,boolean:()=>Cpe,coerce:()=>QOe,custom:()=>Spe,date:()=>wOe,datetimeRegex:()=>wpe,defaultErrorMap:()=>Rp,discriminatedUnion:()=>BOe,effect:()=>KOe,enum:()=>HOe,function:()=>UOe,getErrorMap:()=>Yv,getParsedType:()=>Wd,instanceof:()=>vOe,intersection:()=>DOe,isAborted:()=>iT,isAsync:()=>Zv,isDirty:()=>aT,isValid:()=>Hm,late:()=>yOe,lazy:()=>zOe,literal:()=>VOe,makeIssue:()=>H8,map:()=>LOe,nan:()=>xOe,nativeEnum:()=>jOe,never:()=>TOe,null:()=>AOe,nullable:()=>qOe,number:()=>kpe,object:()=>IOe,objectUtil:()=>Zz,oboolean:()=>JOe,onumber:()=>XOe,optional:()=>GOe,ostring:()=>ZOe,pipeline:()=>YOe,preprocess:()=>WOe,promise:()=>$Oe,quotelessJson:()=>KFe,record:()=>OOe,set:()=>NOe,setErrorMap:()=>qFe,strictObject:()=>ROe,string:()=>Ape,symbol:()=>EOe,transformer:()=>KOe,tuple:()=>FOe,undefined:()=>SOe,union:()=>POe,unknown:()=>COe,util:()=>Eo,void:()=>_Oe});u();u();u();u();u();var Eo;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{let a={};for(let c of o)a[c]=c;return a},t.getValidEnumValues=o=>{let a=t.objectKeys(o).filter(l=>typeof o[o[l]]!=\"number\"),c={};for(let l of a)c[l]=o[l];return t.objectValues(c)},t.objectValues=o=>t.objectKeys(o).map(function(a){return o[a]}),t.objectKeys=typeof Object.keys==\"function\"?o=>Object.keys(o):o=>{let a=[];for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&a.push(c);return a},t.find=(o,a)=>{for(let c of o)if(a(c))return c},t.isInteger=typeof Number.isInteger==\"function\"?o=>Number.isInteger(o):o=>typeof o==\"number\"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,a=\" | \"){return o.map(c=>typeof c==\"string\"?`\\'${c}\\'`:c).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(o,a)=>typeof a==\"bigint\"?a.toString():a})(Eo||(Eo={}));var Zz;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Zz||(Zz={}));var mr=Eo.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),Wd=t=>{switch(typeof t){case\"undefined\":return mr.undefined;case\"string\":return mr.string;case\"number\":return Number.isNaN(t)?mr.nan:mr.number;case\"boolean\":return mr.boolean;case\"function\":return mr.function;case\"bigint\":return mr.bigint;case\"symbol\":return mr.symbol;case\"object\":return Array.isArray(t)?mr.array:t===null?mr.null:t.then&&typeof t.then==\"function\"&&t.catch&&typeof t.catch==\"function\"?mr.promise:typeof Map<\"u\"&&t instanceof Map?mr.map:typeof Set<\"u\"&&t instanceof Set?mr.set:typeof Date<\"u\"&&t instanceof Date?mr.date:mr.object;default:return mr.unknown}};var qn=Eo.arrayToEnum([\"invalid_type\",\"invalid_literal\",\"custom\",\"invalid_union\",\"invalid_union_discriminator\",\"invalid_enum_value\",\"unrecognized_keys\",\"invalid_arguments\",\"invalid_return_type\",\"invalid_date\",\"invalid_string\",\"too_small\",\"too_big\",\"invalid_intersection_types\",\"not_multiple_of\",\"not_finite\"]),KFe=t=>JSON.stringify(t,null,2).replace(/\"([^\"]+)\":/g,\"$1:\"),Cc=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\"ZodError\",this.issues=e}format(e){let n=e||function(a){return a.message},r={_errors:[]},o=a=>{for(let c of a.issues)if(c.code===\"invalid_union\")c.unionErrors.map(o);else if(c.code===\"invalid_return_type\")o(c.returnTypeError);else if(c.code===\"invalid_arguments\")o(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let l=r,f=0;for(;f<c.path.length;){let p=c.path[f];f===c.path.length-1?(l[p]=l[p]||{_errors:[]},l[p]._errors.push(n(c))):l[p]=l[p]||{_errors:[]},l=l[p],f++}}};return o(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Eo.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let a=o.path[0];n[a]=n[a]||[],n[a].push(e(o))}else r.push(e(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};Cc.create=t=>new Cc(t);var GFe=(t,e)=>{let n;switch(t.code){case qn.invalid_type:t.received===mr.undefined?n=\"Required\":n=`Expected ${t.expected}, received ${t.received}`;break;case qn.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Eo.jsonStringifyReplacer)}`;break;case qn.unrecognized_keys:n=`Unrecognized key(s) in object: ${Eo.joinValues(t.keys,\", \")}`;break;case qn.invalid_union:n=\"Invalid input\";break;case qn.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Eo.joinValues(t.options)}`;break;case qn.invalid_enum_value:n=`Invalid enum value. Expected ${Eo.joinValues(t.options)}, received \\'${t.received}\\'`;break;case qn.invalid_arguments:n=\"Invalid function arguments\";break;case qn.invalid_return_type:n=\"Invalid function return type\";break;case qn.invalid_date:n=\"Invalid date\";break;case qn.invalid_string:typeof t.validation==\"object\"?\"includes\"in t.validation?(n=`Invalid input: must include \"${t.validation.includes}\"`,typeof t.validation.position==\"number\"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):\"startsWith\"in t.validation?n=`Invalid input: must start with \"${t.validation.startsWith}\"`:\"endsWith\"in t.validation?n=`Invalid input: must end with \"${t.validation.endsWith}\"`:Eo.assertNever(t.validation):t.validation!==\"regex\"?n=`Invalid ${t.validation}`:n=\"Invalid\";break;case qn.too_small:t.type===\"array\"?n=`Array must contain ${t.exact?\"exactly\":t.inclusive?\"at least\":\"more than\"} ${t.minimum} element(s)`:t.type===\"string\"?n=`String must contain ${t.exact?\"exactly\":t.inclusive?\"at least\":\"over\"} ${t.minimum} character(s)`:t.type===\"number\"?n=`Number must be ${t.exact?\"exactly equal to \":t.inclusive?\"greater than or equal to \":\"greater than \"}${t.minimum}`:t.type===\"bigint\"?n=`Number must be ${t.exact?\"exactly equal to \":t.inclusive?\"greater than or equal to \":\"greater than \"}${t.minimum}`:t.type===\"date\"?n=`Date must be ${t.exact?\"exactly equal to \":t.inclusive?\"greater than or equal to \":\"greater than \"}${new Date(Number(t.minimum))}`:n=\"Invalid input\";break;case qn.too_big:t.type===\"array\"?n=`Array must contain ${t.exact?\"exactly\":t.inclusive?\"at most\":\"less than\"} ${t.maximum} element(s)`:t.type===\"string\"?n=`String must contain ${t.exact?\"exactly\":t.inclusive?\"at most\":\"under\"} ${t.maximum} character(s)`:t.type===\"number\"?n=`Number must be ${t.exact?\"exactly\":t.inclusive?\"less than or equal to\":\"less than\"} ${t.maximum}`:t.type===\"bigint\"?n=`BigInt must be ${t.exact?\"exactly\":t.inclusive?\"less than or equal to\":\"less than\"} ${t.maximum}`:t.type===\"date\"?n=`Date must be ${t.exact?\"exactly\":t.inclusive?\"smaller than or equal to\":\"smaller than\"} ${new Date(Number(t.maximum))}`:n=\"Invalid input\";break;case qn.custom:n=\"Invalid input\";break;case qn.invalid_intersection_types:n=\"Intersection results could not be merged\";break;case qn.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case qn.not_finite:n=\"Number must be finite\";break;default:n=e.defaultError,Eo.assertNever(t)}return{message:n}},Rp=GFe;var gpe=Rp;function qFe(t){gpe=t}function Yv(){return gpe}u();var H8=t=>{let{data:e,path:n,errorMaps:r,issueData:o}=t,a=[...n,...o.path||[]],c={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let l=\"\",f=r.filter(p=>!!p).slice().reverse();for(let p of f)l=p(c,{data:e,defaultError:l}).message;return{...o,path:a,message:l}},WFe=[];function lr(t,e){let n=Yv(),r=H8({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Rp?void 0:Rp].filter(o=>!!o)});t.common.issues.push(r)}var cs=class t{constructor(){this.value=\"valid\"}dirty(){this.value===\"valid\"&&(this.value=\"dirty\")}abort(){this.value!==\"aborted\"&&(this.value=\"aborted\")}static mergeArray(e,n){let r=[];for(let o of n){if(o.status===\"aborted\")return Or;o.status===\"dirty\"&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let o of n){let a=await o.key,c=await o.value;r.push({key:a,value:c})}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let o of n){let{key:a,value:c}=o;if(a.status===\"aborted\"||c.status===\"aborted\")return Or;a.status===\"dirty\"&&e.dirty(),c.status===\"dirty\"&&e.dirty(),a.value!==\"__proto__\"&&(typeof c.value<\"u\"||o.alwaysSet)&&(r[a.value]=c.value)}return{status:e.value,value:r}}},Or=Object.freeze({status:\"aborted\"}),ry=t=>({status:\"dirty\",value:t}),Ms=t=>({status:\"valid\",value:t}),iT=t=>t.status===\"aborted\",aT=t=>t.status===\"dirty\",Hm=t=>t.status===\"valid\",Zv=t=>typeof Promise<\"u\"&&t instanceof Promise;u();u();var Ar;(function(t){t.errToObj=e=>typeof e==\"string\"?{message:e}:e||{},t.toString=e=>typeof e==\"string\"?e:e?.message})(Ar||(Ar={}));var Kl=class{constructor(e,n,r,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ype=(t,e)=>{if(Hm(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error(\"Validation failed but no issues detected.\");return{success:!1,get error(){if(this._error)return this._error;let n=new Cc(t.common.issues);return this._error=n,this._error}}};function eo(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:o}=t;if(e&&(n||r))throw new Error(`Can\\'t use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(c,l)=>{let{message:f}=t;return c.code===\"invalid_enum_value\"?{message:f??l.defaultError}:typeof l.data>\"u\"?{message:f??r??l.defaultError}:c.code!==\"invalid_type\"?{message:l.defaultError}:{message:f??n??l.defaultError}},description:o}}var lo=class{get description(){return this._def.description}_getType(e){return Wd(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Wd(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new cs,ctx:{common:e.parent.common,data:e.data,parsedType:Wd(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Zv(n))throw new Error(\"Synchronous parse encountered promise.\");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wd(e)},o=this._parseSync({data:e,path:r.path,parent:r});return ype(r,o)}\"~validate\"(e){let n={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wd(e)};if(!this[\"~standard\"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return Hm(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\"encountered\")&&(this[\"~standard\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>Hm(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wd(e)},o=this._parse({data:e,path:r.path,parent:r}),a=await(Zv(o)?o:Promise.resolve(o));return ype(r,a)}refine(e,n){let r=o=>typeof n==\"string\"||typeof n>\"u\"?{message:n}:typeof n==\"function\"?n(o):n;return this._refinement((o,a)=>{let c=e(o),l=()=>a.addIssue({code:qn.custom,...r(o)});return typeof Promise<\"u\"&&c instanceof Promise?c.then(f=>f?!0:(l(),!1)):c?!0:(l(),!1)})}refinement(e,n){return this._refinement((r,o)=>e(r)?!0:(o.addIssue(typeof n==\"function\"?n(r,o):n),!1))}_refinement(e){return new Gl({schema:this,typeName:Ur.ZodEffects,effect:{type:\"refinement\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\"~standard\"]={version:1,vendor:\"zod\",validate:n=>this[\"~validate\"](n)}}optional(){return $l.create(this,this._def)}nullable(){return Zd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dp.create(this)}promise(){return Km.create(this,this._def)}or(e){return uy.create([this,e],this._def)}and(e){return dy.create(this,e,this._def)}transform(e){return new Gl({...eo(this._def),schema:this,typeName:Ur.ZodEffects,effect:{type:\"transform\",transform:e}})}default(e){let n=typeof e==\"function\"?e:()=>e;return new gy({...eo(this._def),innerType:this,defaultValue:n,typeName:Ur.ZodDefault})}brand(){return new j8({typeName:Ur.ZodBranded,type:this,...eo(this._def)})}catch(e){let n=typeof e==\"function\"?e:()=>e;return new yy({...eo(this._def),innerType:this,catchValue:n,typeName:Ur.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return $8.create(this,e)}readonly(){return vy.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},YFe=/^c[^\\\\s-]{8,}$/i,ZFe=/^[0-9a-z]+$/,XFe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,JFe=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,QFe=/^[a-z0-9_-]{21}$/i,eOe=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,tOe=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,nOe=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_\\'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,rOe=\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\",Xz,oOe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iOe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,aOe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sOe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cOe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lOe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xpe=\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\",uOe=new RegExp(`^${xpe}$`);function bpe(t){let e=\"[0-5]\\\\\\\\d\";t.precision?e=`${e}\\\\\\\\.\\\\\\\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\\\\\\\.\\\\\\\\d+)?`);let n=t.precision?\"+\":\"?\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${e})${n}`}function dOe(t){return new RegExp(`^${bpe(t)}$`)}function wpe(t){let e=`${xpe}T${bpe(t)}`,n=[];return n.push(t.local?\"Z?\":\"Z\"),t.offset&&n.push(\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\"),e=`${e}(${n.join(\"|\")})`,new RegExp(`^${e}$`)}function fOe(t,e){return!!((e===\"v4\"||!e)&&oOe.test(t)||(e===\"v6\"||!e)&&aOe.test(t))}function pOe(t,e){if(!eOe.test(t))return!1;try{let[n]=t.split(\".\");if(!n)return!1;let r=n.replace(/-/g,\"+\").replace(/_/g,\"/\").padEnd(n.length+(4-n.length%4)%4,\"=\"),o=JSON.parse(atob(r));return!(typeof o!=\"object\"||o===null||\"typ\"in o&&o?.typ!==\"JWT\"||!o.alg||e&&o.alg!==e)}catch{return!1}}function hOe(t,e){return!!((e===\"v4\"||!e)&&iOe.test(t)||(e===\"v6\"||!e)&&sOe.test(t))}var jm=class t extends lo{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==mr.string){let a=this._getOrReturnCtx(e);return lr(a,{code:qn.invalid_type,expected:mr.string,received:a.parsedType}),Or}let r=new cs,o;for(let a of this._def.checks)if(a.kind===\"min\")e.data.length<a.value&&(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.too_small,minimum:a.value,type:\"string\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\"max\")e.data.length>a.value&&(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.too_big,maximum:a.value,type:\"string\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\"length\"){let c=e.data.length>a.value,l=e.data.length<a.value;(c||l)&&(o=this._getOrReturnCtx(e,o),c?lr(o,{code:qn.too_big,maximum:a.value,type:\"string\",inclusive:!0,exact:!0,message:a.message}):l&&lr(o,{code:qn.too_small,minimum:a.value,type:\"string\",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind===\"email\")nOe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"email\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"emoji\")Xz||(Xz=new RegExp(rOe,\"u\")),Xz.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"emoji\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"uuid\")JFe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"uuid\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"nanoid\")QFe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"nanoid\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"cuid\")YFe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"cuid\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"cuid2\")ZFe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"cuid2\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"ulid\")XFe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"ulid\",code:qn.invalid_string,message:a.message}),r.dirty());else if(a.kind===\"url\")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),lr(o,{validation:\"url\",code:qn.invalid_string,message:a.message}),r.dirty()}else a.kind===\"regex\"?(a.regex.lastIndex=0,a.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"regex\",code:qn.invalid_string,message:a.message}),r.dirty())):a.kind===\"trim\"?e.data=e.data.trim():a.kind===\"includes\"?e.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind===\"toLowerCase\"?e.data=e.data.toLowerCase():a.kind===\"toUpperCase\"?e.data=e.data.toUpperCase():a.kind===\"startsWith\"?e.data.startsWith(a.value)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind===\"endsWith\"?e.data.endsWith(a.value)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind===\"datetime\"?wpe(a).test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:\"datetime\",message:a.message}),r.dirty()):a.kind===\"date\"?uOe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:\"date\",message:a.message}),r.dirty()):a.kind===\"time\"?dOe(a).test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.invalid_string,validation:\"time\",message:a.message}),r.dirty()):a.kind===\"duration\"?tOe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"duration\",code:qn.invalid_string,message:a.message}),r.dirty()):a.kind===\"ip\"?fOe(e.data,a.version)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"ip\",code:qn.invalid_string,message:a.message}),r.dirty()):a.kind===\"jwt\"?pOe(e.data,a.alg)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"jwt\",code:qn.invalid_string,message:a.message}),r.dirty()):a.kind===\"cidr\"?hOe(e.data,a.version)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"cidr\",code:qn.invalid_string,message:a.message}),r.dirty()):a.kind===\"base64\"?cOe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"base64\",code:qn.invalid_string,message:a.message}),r.dirty()):a.kind===\"base64url\"?lOe.test(e.data)||(o=this._getOrReturnCtx(e,o),lr(o,{validation:\"base64url\",code:qn.invalid_string,message:a.message}),r.dirty()):Eo.assertNever(a);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(o=>e.test(o),{validation:n,code:qn.invalid_string,...Ar.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\"email\",...Ar.errToObj(e)})}url(e){return this._addCheck({kind:\"url\",...Ar.errToObj(e)})}emoji(e){return this._addCheck({kind:\"emoji\",...Ar.errToObj(e)})}uuid(e){return this._addCheck({kind:\"uuid\",...Ar.errToObj(e)})}nanoid(e){return this._addCheck({kind:\"nanoid\",...Ar.errToObj(e)})}cuid(e){return this._addCheck({kind:\"cuid\",...Ar.errToObj(e)})}cuid2(e){return this._addCheck({kind:\"cuid2\",...Ar.errToObj(e)})}ulid(e){return this._addCheck({kind:\"ulid\",...Ar.errToObj(e)})}base64(e){return this._addCheck({kind:\"base64\",...Ar.errToObj(e)})}base64url(e){return this._addCheck({kind:\"base64url\",...Ar.errToObj(e)})}jwt(e){return this._addCheck({kind:\"jwt\",...Ar.errToObj(e)})}ip(e){return this._addCheck({kind:\"ip\",...Ar.errToObj(e)})}cidr(e){return this._addCheck({kind:\"cidr\",...Ar.errToObj(e)})}datetime(e){return typeof e==\"string\"?this._addCheck({kind:\"datetime\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\"datetime\",precision:typeof e?.precision>\"u\"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ar.errToObj(e?.message)})}date(e){return this._addCheck({kind:\"date\",message:e})}time(e){return typeof e==\"string\"?this._addCheck({kind:\"time\",precision:null,message:e}):this._addCheck({kind:\"time\",precision:typeof e?.precision>\"u\"?null:e?.precision,...Ar.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\"duration\",...Ar.errToObj(e)})}regex(e,n){return this._addCheck({kind:\"regex\",regex:e,...Ar.errToObj(n)})}includes(e,n){return this._addCheck({kind:\"includes\",value:e,position:n?.position,...Ar.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:\"startsWith\",value:e,...Ar.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:\"endsWith\",value:e,...Ar.errToObj(n)})}min(e,n){return this._addCheck({kind:\"min\",value:e,...Ar.errToObj(n)})}max(e,n){return this._addCheck({kind:\"max\",value:e,...Ar.errToObj(n)})}length(e,n){return this._addCheck({kind:\"length\",value:e,...Ar.errToObj(n)})}nonempty(e){return this.min(1,Ar.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:\"trim\"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\"toLowerCase\"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\"toUpperCase\"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===\"datetime\")}get isDate(){return!!this._def.checks.find(e=>e.kind===\"date\")}get isTime(){return!!this._def.checks.find(e=>e.kind===\"time\")}get isDuration(){return!!this._def.checks.find(e=>e.kind===\"duration\")}get isEmail(){return!!this._def.checks.find(e=>e.kind===\"email\")}get isURL(){return!!this._def.checks.find(e=>e.kind===\"url\")}get isEmoji(){return!!this._def.checks.find(e=>e.kind===\"emoji\")}get isUUID(){return!!this._def.checks.find(e=>e.kind===\"uuid\")}get isNANOID(){return!!this._def.checks.find(e=>e.kind===\"nanoid\")}get isCUID(){return!!this._def.checks.find(e=>e.kind===\"cuid\")}get isCUID2(){return!!this._def.checks.find(e=>e.kind===\"cuid2\")}get isULID(){return!!this._def.checks.find(e=>e.kind===\"ulid\")}get isIP(){return!!this._def.checks.find(e=>e.kind===\"ip\")}get isCIDR(){return!!this._def.checks.find(e=>e.kind===\"cidr\")}get isBase64(){return!!this._def.checks.find(e=>e.kind===\"base64\")}get isBase64url(){return!!this._def.checks.find(e=>e.kind===\"base64url\")}get minLength(){let e=null;for(let n of this._def.checks)n.kind===\"min\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind===\"max\"&&(e===null||n.value<e)&&(e=n.value);return e}};jm.create=t=>new jm({checks:[],typeName:Ur.ZodString,coerce:t?.coerce??!1,...eo(t)});function mOe(t,e){let n=(t.toString().split(\".\")[1]||\"\").length,r=(e.toString().split(\".\")[1]||\"\").length,o=n>r?n:r,a=Number.parseInt(t.toFixed(o).replace(\".\",\"\")),c=Number.parseInt(e.toFixed(o).replace(\".\",\"\"));return a%c/10**o}var oy=class t extends lo{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==mr.number){let a=this._getOrReturnCtx(e);return lr(a,{code:qn.invalid_type,expected:mr.number,received:a.parsedType}),Or}let r,o=new cs;for(let a of this._def.checks)a.kind===\"int\"?Eo.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.invalid_type,expected:\"integer\",received:\"float\",message:a.message}),o.dirty()):a.kind===\"min\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.too_small,minimum:a.value,type:\"number\",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind===\"max\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.too_big,maximum:a.value,type:\"number\",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind===\"multipleOf\"?mOe(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind===\"finite\"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.not_finite,message:a.message}),o.dirty()):Eo.assertNever(a);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit(\"min\",e,!0,Ar.toString(n))}gt(e,n){return this.setLimit(\"min\",e,!1,Ar.toString(n))}lte(e,n){return this.setLimit(\"max\",e,!0,Ar.toString(n))}lt(e,n){return this.setLimit(\"max\",e,!1,Ar.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ar.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\"int\",message:Ar.toString(e)})}positive(e){return this._addCheck({kind:\"min\",value:0,inclusive:!1,message:Ar.toString(e)})}negative(e){return this._addCheck({kind:\"max\",value:0,inclusive:!1,message:Ar.toString(e)})}nonpositive(e){return this._addCheck({kind:\"max\",value:0,inclusive:!0,message:Ar.toString(e)})}nonnegative(e){return this._addCheck({kind:\"min\",value:0,inclusive:!0,message:Ar.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\"multipleOf\",value:e,message:Ar.toString(n)})}finite(e){return this._addCheck({kind:\"finite\",message:Ar.toString(e)})}safe(e){return this._addCheck({kind:\"min\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ar.toString(e)})._addCheck({kind:\"max\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ar.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\"min\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\"max\"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===\"int\"||e.kind===\"multipleOf\"&&Eo.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind===\"finite\"||r.kind===\"int\"||r.kind===\"multipleOf\")return!0;r.kind===\"min\"?(n===null||r.value>n)&&(n=r.value):r.kind===\"max\"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};oy.create=t=>new oy({checks:[],typeName:Ur.ZodNumber,coerce:t?.coerce||!1,...eo(t)});var iy=class t extends lo{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==mr.bigint)return this._getInvalidInput(e);let r,o=new cs;for(let a of this._def.checks)a.kind===\"min\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.too_small,type:\"bigint\",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind===\"max\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.too_big,type:\"bigint\",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind===\"multipleOf\"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),lr(r,{code:qn.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):Eo.assertNever(a);return{status:o.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return lr(n,{code:qn.invalid_type,expected:mr.bigint,received:n.parsedType}),Or}gte(e,n){return this.setLimit(\"min\",e,!0,Ar.toString(n))}gt(e,n){return this.setLimit(\"min\",e,!1,Ar.toString(n))}lte(e,n){return this.setLimit(\"max\",e,!0,Ar.toString(n))}lt(e,n){return this.setLimit(\"max\",e,!1,Ar.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ar.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!1,message:Ar.toString(e)})}negative(e){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!1,message:Ar.toString(e)})}nonpositive(e){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!0,message:Ar.toString(e)})}nonnegative(e){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!0,message:Ar.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\"multipleOf\",value:e,message:Ar.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\"min\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\"max\"&&(e===null||n.value<e)&&(e=n.value);return e}};iy.create=t=>new iy({checks:[],typeName:Ur.ZodBigInt,coerce:t?.coerce??!1,...eo(t)});var ay=class extends lo{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==mr.boolean){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.boolean,received:r.parsedType}),Or}return Ms(e.data)}};ay.create=t=>new ay({typeName:Ur.ZodBoolean,coerce:t?.coerce||!1,...eo(t)});var sy=class t extends lo{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==mr.date){let a=this._getOrReturnCtx(e);return lr(a,{code:qn.invalid_type,expected:mr.date,received:a.parsedType}),Or}if(Number.isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return lr(a,{code:qn.invalid_date}),Or}let r=new cs,o;for(let a of this._def.checks)a.kind===\"min\"?e.data.getTime()<a.value&&(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:\"date\"}),r.dirty()):a.kind===\"max\"?e.data.getTime()>a.value&&(o=this._getOrReturnCtx(e,o),lr(o,{code:qn.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:\"date\"}),r.dirty()):Eo.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:\"min\",value:e.getTime(),message:Ar.toString(n)})}max(e,n){return this._addCheck({kind:\"max\",value:e.getTime(),message:Ar.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind===\"min\"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind===\"max\"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};sy.create=t=>new sy({checks:[],coerce:t?.coerce||!1,typeName:Ur.ZodDate,...eo(t)});var Jv=class extends lo{_parse(e){if(this._getType(e)!==mr.symbol){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.symbol,received:r.parsedType}),Or}return Ms(e.data)}};Jv.create=t=>new Jv({typeName:Ur.ZodSymbol,...eo(t)});var cy=class extends lo{_parse(e){if(this._getType(e)!==mr.undefined){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.undefined,received:r.parsedType}),Or}return Ms(e.data)}};cy.create=t=>new cy({typeName:Ur.ZodUndefined,...eo(t)});var ly=class extends lo{_parse(e){if(this._getType(e)!==mr.null){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.null,received:r.parsedType}),Or}return Ms(e.data)}};ly.create=t=>new ly({typeName:Ur.ZodNull,...eo(t)});var $m=class extends lo{constructor(){super(...arguments),this._any=!0}_parse(e){return Ms(e.data)}};$m.create=t=>new $m({typeName:Ur.ZodAny,...eo(t)});var Bp=class extends lo{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ms(e.data)}};Bp.create=t=>new Bp({typeName:Ur.ZodUnknown,...eo(t)});var Fu=class extends lo{_parse(e){let n=this._getOrReturnCtx(e);return lr(n,{code:qn.invalid_type,expected:mr.never,received:n.parsedType}),Or}};Fu.create=t=>new Fu({typeName:Ur.ZodNever,...eo(t)});var Qv=class extends lo{_parse(e){if(this._getType(e)!==mr.undefined){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.void,received:r.parsedType}),Or}return Ms(e.data)}};Qv.create=t=>new Qv({typeName:Ur.ZodVoid,...eo(t)});var Dp=class t extends lo{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),o=this._def;if(n.parsedType!==mr.array)return lr(n,{code:qn.invalid_type,expected:mr.array,received:n.parsedType}),Or;if(o.exactLength!==null){let c=n.data.length>o.exactLength.value,l=n.data.length<o.exactLength.value;(c||l)&&(lr(n,{code:c?qn.too_big:qn.too_small,minimum:l?o.exactLength.value:void 0,maximum:c?o.exactLength.value:void 0,type:\"array\",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(lr(n,{code:qn.too_small,minimum:o.minLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(lr(n,{code:qn.too_big,maximum:o.maxLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((c,l)=>o.type._parseAsync(new Kl(n,c,n.path,l)))).then(c=>cs.mergeArray(r,c));let a=[...n.data].map((c,l)=>o.type._parseSync(new Kl(n,c,n.path,l)));return cs.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:Ar.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:Ar.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:Ar.toString(n)}})}nonempty(e){return this.min(1,e)}};Dp.create=(t,e)=>new Dp({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ur.ZodArray,...eo(e)});function Xv(t){if(t instanceof Tc){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=$l.create(Xv(r))}return new Tc({...t._def,shape:()=>e})}else return t instanceof Dp?new Dp({...t._def,type:Xv(t.element)}):t instanceof $l?$l.create(Xv(t.unwrap())):t instanceof Zd?Zd.create(Xv(t.unwrap())):t instanceof Yd?Yd.create(t.items.map(e=>Xv(e))):t}var Tc=class t extends lo{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=Eo.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==mr.object){let p=this._getOrReturnCtx(e);return lr(p,{code:qn.invalid_type,expected:mr.object,received:p.parsedType}),Or}let{status:r,ctx:o}=this._processInputParams(e),{shape:a,keys:c}=this._getCached(),l=[];if(!(this._def.catchall instanceof Fu&&this._def.unknownKeys===\"strip\"))for(let p in o.data)c.includes(p)||l.push(p);let f=[];for(let p of c){let m=a[p],g=o.data[p];f.push({key:{status:\"valid\",value:p},value:m._parse(new Kl(o,g,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof Fu){let p=this._def.unknownKeys;if(p===\"passthrough\")for(let m of l)f.push({key:{status:\"valid\",value:m},value:{status:\"valid\",value:o.data[m]}});else if(p===\"strict\")l.length>0&&(lr(o,{code:qn.unrecognized_keys,keys:l}),r.dirty());else if(p!==\"strip\")throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{let p=this._def.catchall;for(let m of l){let g=o.data[m];f.push({key:{status:\"valid\",value:m},value:p._parse(new Kl(o,g,o.path,m)),alwaysSet:m in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let p=[];for(let m of f){let g=await m.key,y=await m.value;p.push({key:g,value:y,alwaysSet:m.alwaysSet})}return p}).then(p=>cs.mergeObjectSync(r,p)):cs.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(e){return Ar.errToObj,new t({...this._def,unknownKeys:\"strict\",...e!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\"unrecognized_keys\"?{message:Ar.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:\"strip\"})}passthrough(){return new t({...this._def,unknownKeys:\"passthrough\"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ur.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of Eo.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of Eo.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return Xv(this)}partial(e){let n={};for(let r of Eo.objectKeys(this.shape)){let o=this.shape[r];e&&!e[r]?n[r]=o:n[r]=o.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of Eo.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof $l;)a=a._def.innerType;n[r]=a}return new t({...this._def,shape:()=>n})}keyof(){return Epe(Eo.objectKeys(this.shape))}};Tc.create=(t,e)=>new Tc({shape:()=>t,unknownKeys:\"strip\",catchall:Fu.create(),typeName:Ur.ZodObject,...eo(e)});Tc.strictCreate=(t,e)=>new Tc({shape:()=>t,unknownKeys:\"strict\",catchall:Fu.create(),typeName:Ur.ZodObject,...eo(e)});Tc.lazycreate=(t,e)=>new Tc({shape:t,unknownKeys:\"strip\",catchall:Fu.create(),typeName:Ur.ZodObject,...eo(e)});var uy=class extends lo{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function o(a){for(let l of a)if(l.result.status===\"valid\")return l.result;for(let l of a)if(l.result.status===\"dirty\")return n.common.issues.push(...l.ctx.common.issues),l.result;let c=a.map(l=>new Cc(l.ctx.common.issues));return lr(n,{code:qn.invalid_union,unionErrors:c}),Or}if(n.common.async)return Promise.all(r.map(async a=>{let c={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(o);{let a,c=[];for(let f of r){let p={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:p});if(m.status===\"valid\")return m;m.status===\"dirty\"&&!a&&(a={result:m,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;let l=c.map(f=>new Cc(f));return lr(n,{code:qn.invalid_union,unionErrors:l}),Or}}get options(){return this._def.options}};uy.create=(t,e)=>new uy({options:t,typeName:Ur.ZodUnion,...eo(e)});var Pp=t=>t instanceof fy?Pp(t.schema):t instanceof Gl?Pp(t.innerType()):t instanceof py?[t.value]:t instanceof hy?t.options:t instanceof my?Eo.objectValues(t.enum):t instanceof gy?Pp(t._def.innerType):t instanceof cy?[void 0]:t instanceof ly?[null]:t instanceof $l?[void 0,...Pp(t.unwrap())]:t instanceof Zd?[null,...Pp(t.unwrap())]:t instanceof j8||t instanceof vy?Pp(t.unwrap()):t instanceof yy?Pp(t._def.innerType):[],sT=class t extends lo{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==mr.object)return lr(n,{code:qn.invalid_type,expected:mr.object,received:n.parsedType}),Or;let r=this.discriminator,o=n.data[r],a=this.optionsMap.get(o);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(lr(n,{code:qn.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Or)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let o=new Map;for(let a of n){let c=Pp(a.shape[e]);if(!c.length)throw new Error(`A discriminator value for key \\\\`${e}\\\\` could not be extracted from all schema options`);for(let l of c){if(o.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);o.set(l,a)}}return new t({typeName:Ur.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...eo(r)})}};function Jz(t,e){let n=Wd(t),r=Wd(e);if(t===e)return{valid:!0,data:t};if(n===mr.object&&r===mr.object){let o=Eo.objectKeys(e),a=Eo.objectKeys(t).filter(l=>o.indexOf(l)!==-1),c={...t,...e};for(let l of a){let f=Jz(t[l],e[l]);if(!f.valid)return{valid:!1};c[l]=f.data}return{valid:!0,data:c}}else if(n===mr.array&&r===mr.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let a=0;a<t.length;a++){let c=t[a],l=e[a],f=Jz(c,l);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return n===mr.date&&r===mr.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var dy=class extends lo{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=(a,c)=>{if(iT(a)||iT(c))return Or;let l=Jz(a.value,c.value);return l.valid?((aT(a)||aT(c))&&n.dirty(),{status:n.value,value:l.data}):(lr(r,{code:qn.invalid_intersection_types}),Or)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,c])=>o(a,c)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};dy.create=(t,e,n)=>new dy({left:t,right:e,typeName:Ur.ZodIntersection,...eo(n)});var Yd=class t extends lo{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==mr.array)return lr(r,{code:qn.invalid_type,expected:mr.array,received:r.parsedType}),Or;if(r.data.length<this._def.items.length)return lr(r,{code:qn.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),Or;!this._def.rest&&r.data.length>this._def.items.length&&(lr(r,{code:qn.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),n.dirty());let a=[...r.data].map((c,l)=>{let f=this._def.items[l]||this._def.rest;return f?f._parse(new Kl(r,c,r.path,l)):null}).filter(c=>!!c);return r.common.async?Promise.all(a).then(c=>cs.mergeArray(n,c)):cs.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Yd.create=(t,e)=>{if(!Array.isArray(t))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new Yd({items:t,typeName:Ur.ZodTuple,rest:null,...eo(e)})};var cT=class t extends lo{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==mr.object)return lr(r,{code:qn.invalid_type,expected:mr.object,received:r.parsedType}),Or;let o=[],a=this._def.keyType,c=this._def.valueType;for(let l in r.data)o.push({key:a._parse(new Kl(r,l,r.path,l)),value:c._parse(new Kl(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?cs.mergeObjectAsync(n,o):cs.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof lo?new t({keyType:e,valueType:n,typeName:Ur.ZodRecord,...eo(r)}):new t({keyType:jm.create(),valueType:e,typeName:Ur.ZodRecord,...eo(n)})}},ex=class extends lo{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==mr.map)return lr(r,{code:qn.invalid_type,expected:mr.map,received:r.parsedType}),Or;let o=this._def.keyType,a=this._def.valueType,c=[...r.data.entries()].map(([l,f],p)=>({key:o._parse(new Kl(r,l,r.path,[p,\"key\"])),value:a._parse(new Kl(r,f,r.path,[p,\"value\"]))}));if(r.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let f of c){let p=await f.key,m=await f.value;if(p.status===\"aborted\"||m.status===\"aborted\")return Or;(p.status===\"dirty\"||m.status===\"dirty\")&&n.dirty(),l.set(p.value,m.value)}return{status:n.value,value:l}})}else{let l=new Map;for(let f of c){let p=f.key,m=f.value;if(p.status===\"aborted\"||m.status===\"aborted\")return Or;(p.status===\"dirty\"||m.status===\"dirty\")&&n.dirty(),l.set(p.value,m.value)}return{status:n.value,value:l}}}};ex.create=(t,e,n)=>new ex({valueType:e,keyType:t,typeName:Ur.ZodMap,...eo(n)});var tx=class t extends lo{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==mr.set)return lr(r,{code:qn.invalid_type,expected:mr.set,received:r.parsedType}),Or;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(lr(r,{code:qn.too_small,minimum:o.minSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(lr(r,{code:qn.too_big,maximum:o.maxSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let a=this._def.valueType;function c(f){let p=new Set;for(let m of f){if(m.status===\"aborted\")return Or;m.status===\"dirty\"&&n.dirty(),p.add(m.value)}return{status:n.value,value:p}}let l=[...r.data.values()].map((f,p)=>a._parse(new Kl(r,f,r.path,p)));return r.common.async?Promise.all(l).then(f=>c(f)):c(l)}min(e,n){return new t({...this._def,minSize:{value:e,message:Ar.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:Ar.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};tx.create=(t,e)=>new tx({valueType:t,minSize:null,maxSize:null,typeName:Ur.ZodSet,...eo(e)});var lT=class t extends lo{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==mr.function)return lr(n,{code:qn.invalid_type,expected:mr.function,received:n.parsedType}),Or;function r(l,f){return H8({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yv(),Rp].filter(p=>!!p),issueData:{code:qn.invalid_arguments,argumentsError:f}})}function o(l,f){return H8({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yv(),Rp].filter(p=>!!p),issueData:{code:qn.invalid_return_type,returnTypeError:f}})}let a={errorMap:n.common.contextualErrorMap},c=n.data;if(this._def.returns instanceof Km){let l=this;return Ms(async function(...f){let p=new Cc([]),m=await l._def.args.parseAsync(f,a).catch(A=>{throw p.addIssue(r(f,A)),p}),g=await Reflect.apply(c,this,m);return await l._def.returns._def.type.parseAsync(g,a).catch(A=>{throw p.addIssue(o(g,A)),p})})}else{let l=this;return Ms(function(...f){let p=l._def.args.safeParse(f,a);if(!p.success)throw new Cc([r(f,p.error)]);let m=Reflect.apply(c,this,p.data),g=l._def.returns.safeParse(m,a);if(!g.success)throw new Cc([o(m,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Yd.create(e).rest(Bp.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||Yd.create([]).rest(Bp.create()),returns:n||Bp.create(),typeName:Ur.ZodFunction,...eo(r)})}},fy=class extends lo{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};fy.create=(t,e)=>new fy({getter:t,typeName:Ur.ZodLazy,...eo(e)});var py=class extends lo{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return lr(n,{received:n.data,code:qn.invalid_literal,expected:this._def.value}),Or}return{status:\"valid\",value:e.data}}get value(){return this._def.value}};py.create=(t,e)=>new py({value:t,typeName:Ur.ZodLiteral,...eo(e)});function Epe(t,e){return new hy({values:t,typeName:Ur.ZodEnum,...eo(e)})}var hy=class t extends lo{_parse(e){if(typeof e.data!=\"string\"){let n=this._getOrReturnCtx(e),r=this._def.values;return lr(n,{expected:Eo.joinValues(r),received:n.parsedType,code:qn.invalid_type}),Or}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return lr(n,{received:n.data,code:qn.invalid_enum_value,options:r}),Or}return Ms(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};hy.create=Epe;var my=class extends lo{_parse(e){let n=Eo.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==mr.string&&r.parsedType!==mr.number){let o=Eo.objectValues(n);return lr(r,{expected:Eo.joinValues(o),received:r.parsedType,code:qn.invalid_type}),Or}if(this._cache||(this._cache=new Set(Eo.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=Eo.objectValues(n);return lr(r,{received:r.data,code:qn.invalid_enum_value,options:o}),Or}return Ms(e.data)}get enum(){return this._def.values}};my.create=(t,e)=>new my({values:t,typeName:Ur.ZodNativeEnum,...eo(e)});var Km=class extends lo{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==mr.promise&&n.common.async===!1)return lr(n,{code:qn.invalid_type,expected:mr.promise,received:n.parsedType}),Or;let r=n.parsedType===mr.promise?n.data:Promise.resolve(n.data);return Ms(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Km.create=(t,e)=>new Km({type:t,typeName:Ur.ZodPromise,...eo(e)});var Gl=class extends lo{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ur.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=this._def.effect||null,a={addIssue:c=>{lr(r,c),c.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),o.type===\"preprocess\"){let c=o.transform(r.data,a);if(r.common.async)return Promise.resolve(c).then(async l=>{if(n.value===\"aborted\")return Or;let f=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return f.status===\"aborted\"?Or:f.status===\"dirty\"?ry(f.value):n.value===\"dirty\"?ry(f.value):f});{if(n.value===\"aborted\")return Or;let l=this._def.schema._parseSync({data:c,path:r.path,parent:r});return l.status===\"aborted\"?Or:l.status===\"dirty\"?ry(l.value):n.value===\"dirty\"?ry(l.value):l}}if(o.type===\"refinement\"){let c=l=>{let f=o.refinement(l,a);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");return l};if(r.common.async===!1){let l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status===\"aborted\"?Or:(l.status===\"dirty\"&&n.dirty(),c(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status===\"aborted\"?Or:(l.status===\"dirty\"&&n.dirty(),c(l.value).then(()=>({status:n.value,value:l.value}))))}if(o.type===\"transform\")if(r.common.async===!1){let c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Hm(c))return Or;let l=o.transform(c.value,a);if(l instanceof Promise)throw new Error(\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>Hm(c)?Promise.resolve(o.transform(c.value,a)).then(l=>({status:n.value,value:l})):Or);Eo.assertNever(o)}};Gl.create=(t,e,n)=>new Gl({schema:t,typeName:Ur.ZodEffects,effect:e,...eo(n)});Gl.createWithPreprocess=(t,e,n)=>new Gl({schema:e,effect:{type:\"preprocess\",transform:t},typeName:Ur.ZodEffects,...eo(n)});var $l=class extends lo{_parse(e){return this._getType(e)===mr.undefined?Ms(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};$l.create=(t,e)=>new $l({innerType:t,typeName:Ur.ZodOptional,...eo(e)});var Zd=class extends lo{_parse(e){return this._getType(e)===mr.null?Ms(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Zd.create=(t,e)=>new Zd({innerType:t,typeName:Ur.ZodNullable,...eo(e)});var gy=class extends lo{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===mr.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};gy.create=(t,e)=>new gy({innerType:t,typeName:Ur.ZodDefault,defaultValue:typeof e.default==\"function\"?e.default:()=>e.default,...eo(e)});var yy=class extends lo{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Zv(o)?o.then(a=>({status:\"valid\",value:a.status===\"valid\"?a.value:this._def.catchValue({get error(){return new Cc(r.common.issues)},input:r.data})})):{status:\"valid\",value:o.status===\"valid\"?o.value:this._def.catchValue({get error(){return new Cc(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};yy.create=(t,e)=>new yy({innerType:t,typeName:Ur.ZodCatch,catchValue:typeof e.catch==\"function\"?e.catch:()=>e.catch,...eo(e)});var nx=class extends lo{_parse(e){if(this._getType(e)!==mr.nan){let r=this._getOrReturnCtx(e);return lr(r,{code:qn.invalid_type,expected:mr.nan,received:r.parsedType}),Or}return{status:\"valid\",value:e.data}}};nx.create=t=>new nx({typeName:Ur.ZodNaN,...eo(t)});var gOe=Symbol(\"zod_brand\"),j8=class extends lo{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},$8=class t extends lo{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status===\"aborted\"?Or:a.status===\"dirty\"?(n.dirty(),ry(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status===\"aborted\"?Or:o.status===\"dirty\"?(n.dirty(),{status:\"dirty\",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:Ur.ZodPipeline})}},vy=class extends lo{_parse(e){let n=this._def.innerType._parse(e),r=o=>(Hm(o)&&(o.value=Object.freeze(o.value)),o);return Zv(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};vy.create=(t,e)=>new vy({innerType:t,typeName:Ur.ZodReadonly,...eo(e)});function vpe(t,e){let n=typeof t==\"function\"?t(e):typeof t==\"string\"?{message:t}:t;return typeof n==\"string\"?{message:n}:n}function Spe(t,e={},n){return t?$m.create().superRefine((r,o)=>{let a=t(r);if(a instanceof Promise)return a.then(c=>{if(!c){let l=vpe(e,r),f=l.fatal??n??!0;o.addIssue({code:\"custom\",...l,fatal:f})}});if(!a){let c=vpe(e,r),l=c.fatal??n??!0;o.addIssue({code:\"custom\",...c,fatal:l})}}):$m.create()}var yOe={object:Tc.lazycreate},Ur;(function(t){t.ZodString=\"ZodString\",t.ZodNumber=\"ZodNumber\",t.ZodNaN=\"ZodNaN\",t.ZodBigInt=\"ZodBigInt\",t.ZodBoolean=\"ZodBoolean\",t.ZodDate=\"ZodDate\",t.ZodSymbol=\"ZodSymbol\",t.ZodUndefined=\"ZodUndefined\",t.ZodNull=\"ZodNull\",t.ZodAny=\"ZodAny\",t.ZodUnknown=\"ZodUnknown\",t.ZodNever=\"ZodNever\",t.ZodVoid=\"ZodVoid\",t.ZodArray=\"ZodArray\",t.ZodObject=\"ZodObject\",t.ZodUnion=\"ZodUnion\",t.ZodDiscriminatedUnion=\"ZodDiscriminatedUnion\",t.ZodIntersection=\"ZodIntersection\",t.ZodTuple=\"ZodTuple\",t.ZodRecord=\"ZodRecord\",t.ZodMap=\"ZodMap\",t.ZodSet=\"ZodSet\",t.ZodFunction=\"ZodFunction\",t.ZodLazy=\"ZodLazy\",t.ZodLiteral=\"ZodLiteral\",t.ZodEnum=\"ZodEnum\",t.ZodEffects=\"ZodEffects\",t.ZodNativeEnum=\"ZodNativeEnum\",t.ZodOptional=\"ZodOptional\",t.ZodNullable=\"ZodNullable\",t.ZodDefault=\"ZodDefault\",t.ZodCatch=\"ZodCatch\",t.ZodPromise=\"ZodPromise\",t.ZodBranded=\"ZodBranded\",t.ZodPipeline=\"ZodPipeline\",t.ZodReadonly=\"ZodReadonly\"})(Ur||(Ur={}));var vOe=(t,e={message:`Input not instance of ${t.name}`})=>Spe(n=>n instanceof t,e),Ape=jm.create,kpe=oy.create,xOe=nx.create,bOe=iy.create,Cpe=ay.create,wOe=sy.create,EOe=Jv.create,SOe=cy.create,AOe=ly.create,kOe=$m.create,COe=Bp.create,TOe=Fu.create,_Oe=Qv.create,MOe=Dp.create,IOe=Tc.create,ROe=Tc.strictCreate,POe=uy.create,BOe=sT.create,DOe=dy.create,FOe=Yd.create,OOe=cT.create,LOe=ex.create,NOe=tx.create,UOe=lT.create,zOe=fy.create,VOe=py.create,HOe=hy.create,jOe=my.create,$Oe=Km.create,KOe=Gl.create,GOe=$l.create,qOe=Zd.create,WOe=Gl.createWithPreprocess,YOe=$8.create,ZOe=()=>Ape().optional(),XOe=()=>kpe().optional(),JOe=()=>Cpe().optional(),QOe={string:(t=>jm.create({...t,coerce:!0})),number:(t=>oy.create({...t,coerce:!0})),boolean:(t=>ay.create({...t,coerce:!0})),bigint:(t=>iy.create({...t,coerce:!0})),date:(t=>sy.create({...t,coerce:!0}))};var eLe=Or;var ql=or.string().min(1),Qz=or.record(or.unknown()),uT=or.record(or.unknown()).optional().nullable(),eV=ql,_pe=or.string().min(3).refine(t=>t.includes(\":\"),{message:\"Network must be in CAIP-2 format (e.g., \\'eip155:84532\\')\"}),vBt=or.union([eV,_pe]),Tpe=/^[\\\\x20-\\\\x7e]+$/,Mpe=or.object({url:ql,description:or.string().optional(),mimeType:or.string().optional(),serviceName:or.string().min(1).max(32).regex(Tpe).optional(),tags:or.array(or.string().min(1).max(32).regex(Tpe)).max(5).optional(),iconUrl:or.string().max(2048).optional()}),Ipe=or.object({scheme:ql,network:eV,maxAmountRequired:ql,resource:ql,description:or.string(),mimeType:or.string().optional(),outputSchema:Qz.optional().nullable(),payTo:ql,maxTimeoutSeconds:or.number().positive(),asset:ql,extra:uT}),tLe=or.object({x402Version:or.literal(1),error:or.string().optional(),accepts:or.array(Ipe).min(1)}),nLe=or.object({x402Version:or.literal(1),scheme:ql,network:eV,payload:Qz}),tV=or.object({scheme:ql,network:_pe,amount:ql,asset:ql,payTo:ql,maxTimeoutSeconds:or.number().positive(),extra:uT}),rLe=or.object({x402Version:or.literal(2),error:or.string().optional(),resource:Mpe,accepts:or.array(tV).min(1),extensions:uT}),oLe=or.object({x402Version:or.literal(2),resource:Mpe.optional(),accepted:tV,payload:Qz,extensions:uT}),xBt=or.union([Ipe,tV]),bBt=or.discriminatedUnion(\"x402Version\",[tLe,rLe]),wBt=or.discriminatedUnion(\"x402Version\",[nLe,oLe]);u();var nV=2;u();var LBt=or.object({isValid:or.boolean(),invalidReason:or.string().nullish().transform(t=>t??void 0),invalidMessage:or.string().nullish().transform(t=>t??void 0),payer:or.string().nullish().transform(t=>t??void 0),extensions:or.record(or.string(),or.unknown()).nullish().transform(t=>t??void 0),extra:or.record(or.string(),or.unknown()).nullish().transform(t=>t??void 0)}),NBt=or.object({success:or.boolean(),errorReason:or.string().nullish().transform(t=>t??void 0),errorMessage:or.string().nullish().transform(t=>t??void 0),payer:or.string().nullish().transform(t=>t??void 0),transaction:or.string(),network:or.custom(t=>typeof t==\"string\"),amount:or.string().nullish().transform(t=>t??void 0),extensions:or.record(or.string(),or.unknown()).nullish().transform(t=>t??void 0),extra:or.record(or.string(),or.unknown()).nullish().transform(t=>t??void 0)}),iLe=or.object({x402Version:or.number(),scheme:or.string(),network:or.custom(t=>typeof t==\"string\"),extra:or.record(or.string(),or.unknown()).nullish().transform(t=>t??void 0)}),UBt=or.object({kinds:or.array(iLe),extensions:or.array(or.string()).default([]),signers:or.record(or.string(),or.array(or.string())).default({})});var Rpe=class Ppe{constructor(e){this.registeredClientSchemes=new Map,this.schemeClientHookAdapters=new Map,this.policies=[],this.registeredExtensions=new Map,this.beforePaymentCreationHooks=[],this.afterPaymentCreationHooks=[],this.onPaymentCreationFailureHooks=[],this.paymentResponseHooks=[],this.paymentRequirementsSelector=e||((n,r)=>r[0])}static fromConfig(e){let n=new Ppe(e.paymentRequirementsSelector);return e.schemes.forEach(r=>{r.x402Version===1?n.registerV1(r.network,r.client):n.register(r.network,r.client)}),e.policies?.forEach(r=>{n.registerPolicy(r)}),n}register(e,n){return this._registerScheme(nV,e,n)}registerV1(e,n){return this._registerScheme(1,e,n)}registerPolicy(e){return this.policies.push(e),this}registerExtension(e){return this.registeredExtensions.set(e.key,e),this}getExtensions(){return Array.from(this.registeredExtensions.values())}onBeforePaymentCreation(e){return this.beforePaymentCreationHooks.push(e),this}onAfterPaymentCreation(e){return this.afterPaymentCreationHooks.push(e),this}onPaymentCreationFailure(e){return this.onPaymentCreationFailureHooks.push(e),this}onPaymentResponse(e){return this.paymentResponseHooks.push(e),this}async handlePaymentResponse(e){for(let n of this.getLabeledHooks(\"onPaymentResponse\",e.paymentPayload.x402Version,e.requirements,e.paymentRequired?.extensions??e.paymentPayload.extensions)){let r=await n(e);if(r&&\"recovered\"in r&&r.recovered)return{recovered:!0}}}async createPaymentPayload(e){let n=this.registeredClientSchemes.get(e.x402Version);if(!n)throw new Error(`No client registered for x402 version: ${e.x402Version}`);let r=this.selectPaymentRequirements(e.x402Version,e.accepts),o={paymentRequired:e,selectedRequirements:r};for(let a of this.getLabeledHooks(\"beforePaymentCreation\",e.x402Version,r,e.extensions)){let c=await a(o);if(c&&\"abort\"in c&&c.abort)throw new Error(`Payment creation aborted: ${c.reason}`)}try{let a=oT(n,r.scheme,r.network);if(!a)throw new Error(`No client registered for scheme: ${r.scheme} and network: ${r.network}`);let c=await a.createPaymentPayload(e.x402Version,r,{extensions:e.extensions}),l;if(c.x402Version==1)l=c;else{let p=this.mergeExtensions(e.extensions,c.extensions);l={x402Version:c.x402Version,payload:c.payload,extensions:p,resource:e.resource,accepted:r}}l=await this.enrichPaymentPayloadWithExtensions(l,e);let f={...o,paymentPayload:l};for(let p of this.getLabeledHooks(\"afterPaymentCreation\",e.x402Version,r,e.extensions))await p(f);return l}catch(a){let c={...o,error:a};for(let l of this.getLabeledHooks(\"onPaymentCreationFailure\",e.x402Version,r,e.extensions)){let f=await l(c);if(f&&\"recovered\"in f&&f.recovered)return f.payload}throw a}}mergeExtensions(e,n){if(!n)return e;if(!e)return n;let r={...e};for(let[o,a]of Object.entries(n)){let c=r[o];c&&typeof c==\"object\"&&a&&typeof a==\"object\"?r[o]={...c,...a}:r[o]=a}return r}async enrichPaymentPayloadWithExtensions(e,n){if(!n.extensions||this.registeredExtensions.size===0)return e;let r=e;for(let[o,a]of this.registeredExtensions)o in n.extensions&&a.enrichPaymentPayload&&(r=await a.enrichPaymentPayload(r,n));return r}selectPaymentRequirements(e,n){let r=this.registeredClientSchemes.get(e);if(!r)throw new Error(`No client registered for x402 version: ${e}`);let o=n.filter(c=>{let l=rT(r,c.network);return l?l.has(c.scheme):!1});if(o.length===0)throw new Error(`No network/scheme registered for x402 version: ${e} which comply with the payment requirements. ${JSON.stringify({x402Version:e,paymentRequirements:n,x402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(r.keys()),schemes:Array.from(r.values()).map(c=>Array.from(c.keys())).flat()})}`);let a=o;for(let c of this.policies)if(a=c(e,a),a.length===0)throw new Error(`All payment requirements were filtered out by policies for x402 version: ${e}`);return this.paymentRequirementsSelector(e,a)}_registerScheme(e,n,r){this.registeredClientSchemes.has(e)||this.registeredClientSchemes.set(e,new Map);let o=this.registeredClientSchemes.get(e);o.has(n)||o.set(n,new Map),o.get(n).set(r.scheme,r),this.schemeClientHookAdapters.has(e)||this.schemeClientHookAdapters.set(e,new Map);let c=this.schemeClientHookAdapters.get(e);c.has(n)||c.set(n,new Map);let l=c.get(n),f=r.schemeHooks;if(!f)return l.delete(r.scheme),this;let p={};return f.onBeforePaymentCreation&&(p.beforePaymentCreation=f.onBeforePaymentCreation),f.onAfterPaymentCreation&&(p.afterPaymentCreation=f.onAfterPaymentCreation),f.onPaymentCreationFailure&&(p.onPaymentCreationFailure=f.onPaymentCreationFailure),f.onPaymentResponse&&(p.onPaymentResponse=f.onPaymentResponse),Object.keys(p).length>0?l.set(r.scheme,p):l.delete(r.scheme),this}getLabeledHooks(e,n,r,o){let a;switch(e){case\"beforePaymentCreation\":a=this.beforePaymentCreationHooks;break;case\"afterPaymentCreation\":a=this.afterPaymentCreationHooks;break;case\"onPaymentCreationFailure\":a=this.onPaymentCreationFailureHooks;break;case\"onPaymentResponse\":a=this.paymentResponseHooks;break}let c=[...a],l=this.schemeClientHookAdapters.get(n),p=(l?oT(l,r.scheme,r.network):void 0)?.[e];if(p!==void 0&&c.push(p),!o)return c;let m=this.getClientExtensionHookKey(e);for(let[g,y]of this.registeredExtensions){if(!(g in o))continue;let A=y.hooks?.[m];A&&c.push((async T=>A(o[g],T)))}return c}getClientExtensionHookKey(e){switch(e){case\"beforePaymentCreation\":return\"onBeforePaymentCreation\";case\"afterPaymentCreation\":return\"onAfterPaymentCreation\";case\"onPaymentCreationFailure\":return\"onPaymentCreationFailure\";case\"onPaymentResponse\":return\"onPaymentResponse\"}}};u();var rV=br(xy(),1);function Fpe({className:t=\"\"}){return(0,rV.jsx)(\"div\",{className:`spinner ${t}`,children:(0,rV.jsx)(\"div\",{})})}u();var ZI={};Oi(ZI,{abey:()=>Hpe,abstract:()=>Lhe,abstractTestnet:()=>Nhe,acala:()=>Uhe,acria:()=>zhe,adf:()=>Vhe,adi:()=>Hhe,agungTestnet:()=>jhe,aioz:()=>$he,alephZero:()=>Khe,alephZeroTestnet:()=>Ghe,alienx:()=>qhe,alienxHalTestnet:()=>Whe,alpenTestnet:()=>Yhe,ancient8:()=>Xhe,ancient8Sepolia:()=>Jhe,anvil:()=>Qhe,apeChain:()=>eme,apexTestnet:()=>tme,apollo:()=>nme,arbitrum:()=>rme,arbitrumGoerli:()=>ome,arbitrumNova:()=>ime,arbitrumSepolia:()=>ame,arcTestnet:()=>sme,arenaz:()=>cme,areonNetwork:()=>lme,areonNetworkTestnet:()=>ume,areum:()=>dme,artelaTestnet:()=>fme,arthera:()=>pme,artheraTestnet:()=>hme,assetChain:()=>mme,assetChainTestnet:()=>gme,astar:()=>yme,astarZkEVM:()=>vme,astarZkyoto:()=>xme,atletaOlympia:()=>bme,aurora:()=>wme,auroraTestnet:()=>Eme,auroria:()=>Sme,autheoTestnet:()=>Ame,avalanche:()=>kme,avalancheFuji:()=>Cme,b3:()=>Tme,b3Sepolia:()=>_me,bahamut:()=>Mme,base:()=>_V,baseGoerli:()=>Pme,basePreconf:()=>Ime,baseSepolia:()=>MV,baseSepoliaPreconf:()=>Bme,basecampTestnet:()=>Rme,battlechainTestnet:()=>Dme,beam:()=>Fme,beamTestnet:()=>Ome,bearNetworkChainMainnet:()=>Lme,bearNetworkChainTestnet:()=>Nme,berachain:()=>Ume,berachainBepolia:()=>zme,berachainTestnet:()=>Vme,berachainTestnetbArtio:()=>Hme,bevmMainnet:()=>jme,bifrost:()=>$me,birdlayer:()=>Kme,bitTorrent:()=>Jme,bitTorrentTestnet:()=>Qme,bitgert:()=>Gme,bitkub:()=>qme,bitkubTestnet:()=>Wme,bitlayer:()=>Yme,bitlayerTestnet:()=>Zme,bitrock:()=>Xme,blast:()=>e0e,blastSepolia:()=>t0e,bob:()=>n0e,bobSepolia:()=>i0e,boba:()=>r0e,bobaSepolia:()=>o0e,boolBetaMainnet:()=>a0e,botanix:()=>s0e,botanixTestnet:()=>c0e,bounceBit:()=>l0e,bounceBitTestnet:()=>u0e,bronos:()=>d0e,bronosTestnet:()=>f0e,bsc:()=>p0e,bscGreenfield:()=>h0e,bscTestnet:()=>m0e,bsquared:()=>g0e,bsquaredTestnet:()=>y0e,btr:()=>v0e,btrTestnet:()=>x0e,bxn:()=>b0e,bxnTestnet:()=>w0e,cannon:()=>E0e,canto:()=>S0e,celo:()=>T0e,celoAlfajores:()=>_0e,celoSepolia:()=>M0e,chang:()=>I0e,chiliz:()=>R0e,chips:()=>P0e,citrea:()=>B0e,citreaTestnet:()=>D0e,classic:()=>F0e,codex:()=>O0e,codexTestnet:()=>L0e,coinbit:()=>N0e,coinex:()=>U0e,confluxESpace:()=>z0e,confluxESpaceTestnet:()=>V0e,coreDao:()=>H0e,coreTestnet1:()=>j0e,coreTestnet2:()=>$0e,corn:()=>K0e,cornTestnet:()=>G0e,cpchain:()=>q0e,crab:()=>W0e,creatorTestnet:()=>Y0e,creditCoin3Devnet:()=>Z0e,creditCoin3Mainnet:()=>X0e,creditCoin3Testnet:()=>J0e,cronos:()=>Q0e,cronosTestnet:()=>e1e,cronoszkEVM:()=>t1e,cronoszkEVMTestnet:()=>n1e,crossbell:()=>r1e,crossfi:()=>o1e,curtis:()=>i1e,cyber:()=>a1e,cyberTestnet:()=>s1e,dailyNetwork:()=>c1e,dailyNetworkTestnet:()=>l1e,darwinia:()=>u1e,datahavenTestnet:()=>d1e,dbkchain:()=>f1e,dchain:()=>p1e,dchainTestnet:()=>h1e,defichainEvm:()=>m1e,defichainEvmTestnet:()=>g1e,degen:()=>y1e,dfk:()=>v1e,diode:()=>x1e,disChain:()=>b1e,dodochainTestnet:()=>w1e,dogechain:()=>E1e,domaTestnet:()=>S1e,donatuz:()=>A1e,dosChain:()=>k1e,dosChainTestnet:()=>C1e,dreyerxMainnet:()=>T1e,dreyerxTestnet:()=>R1e,dustboyIoT:()=>P1e,dymension:()=>B1e,eden:()=>D1e,edexa:()=>F1e,edexaTestnet:()=>O1e,edgeless:()=>L1e,edgelessTestnet:()=>N1e,edgeware:()=>U1e,edgewareTestnet:()=>z1e,eduChain:()=>V1e,eduChainTestnet:()=>H1e,elastos:()=>j1e,elastosTestnet:()=>$1e,electroneum:()=>K1e,electroneumTestnet:()=>G1e,elysiumTestnet:()=>q1e,energy:()=>W1e,eni:()=>Y1e,eniTestnet:()=>Z1e,enuls:()=>X1e,eon:()=>J1e,eos:()=>Q1e,eosTestnet:()=>ege,eteria:()=>tge,etherlink:()=>nge,etherlinkShadownetTestnet:()=>rge,etherlinkTestnet:()=>oge,ethernity:()=>ige,etp:()=>age,evmos:()=>sge,evmosTestnet:()=>cge,excelonMainnet:()=>lge,expanse:()=>uge,exsat:()=>dge,exsatTestnet:()=>fge,fantom:()=>pge,fantomSonicTestnet:()=>hge,fantomTestnet:()=>mge,fibo:()=>gge,filecoin:()=>yge,filecoinCalibration:()=>vge,filecoinHyperspace:()=>xge,fireChain:()=>Vpe,flame:()=>bge,flare:()=>wge,flareTestnet:()=>Ege,flowMainnet:()=>Sge,flowPreviewnet:()=>Age,flowTestnet:()=>kge,fluence:()=>Cge,fluenceStage:()=>Tge,fluenceTestnet:()=>_ge,fluent:()=>Mge,fluentDevnet:()=>Ige,fluentTestnet:()=>Rge,form:()=>Pge,formTestnet:()=>Dge,forma:()=>Bge,formicarium:()=>zxe,forta:()=>Fge,foundry:()=>Oge,fraxtal:()=>Lge,fraxtalTestnet:()=>Nge,funkiMainnet:()=>Uge,funkiSepolia:()=>zge,fuse:()=>Vge,fuseSparknet:()=>Hge,fusion:()=>jge,fusionTestnet:()=>$ge,garnet:()=>Kge,gatechain:()=>Gge,geist:()=>qge,genesys:()=>Wge,gensyn:()=>Yge,giwaSepolia:()=>DV,giwaSepoliaPreconf:()=>Zge,glideL1Protocol:()=>Xge,glideL2Protocol:()=>Jge,gnosis:()=>Qge,gnosisChiado:()=>eye,goChain:()=>rye,goat:()=>tye,gobi:()=>nye,godwoken:()=>oye,goerli:()=>iye,graphite:()=>aye,graphiteTestnet:()=>sye,gravity:()=>cye,gunz:()=>lye,guruNetwork:()=>uye,guruTestnet:()=>dye,ham:()=>fye,happychainTestnet:()=>pye,haqqMainnet:()=>hye,haqqTestedge2:()=>mye,hardhat:()=>gye,harmonyOne:()=>yye,hashkey:()=>vye,hashkeyTestnet:()=>xye,haustTestnet:()=>bye,hedera:()=>wye,hederaPreviewnet:()=>Eye,hederaTestnet:()=>Sye,hela:()=>Aye,heliosTestnet:()=>kye,hemi:()=>Cye,hemiSepolia:()=>Tye,henesys:()=>_ye,holesky:()=>Mye,hoodi:()=>Iye,horizenTestnet:()=>Rye,hpb:()=>Pye,hpp:()=>Bye,hppSepolia:()=>Dye,huddle01Mainnet:()=>Fye,huddle01Testnet:()=>Oye,humanity:()=>Lye,humanityTestnet:()=>Nye,humanode:()=>Uye,humanodeTestnet5:()=>zye,hychain:()=>Vye,hychainTestnet:()=>Hye,hyperEvm:()=>FV,hyperliquid:()=>FV,hyperliquidEvmTestnet:()=>jye,iSunCoin:()=>a2e,icbNetwork:()=>$ye,idchain:()=>Kye,igra:()=>Gye,immutableZkEvm:()=>qye,immutableZkEvmTestnet:()=>Wye,inEVM:()=>Yye,initVerse:()=>Zye,initVerseGenesis:()=>Xye,injective:()=>Jye,injectiveTestnet:()=>Qye,ink:()=>e2e,inkSepolia:()=>t2e,iota:()=>n2e,iotaTestnet:()=>r2e,iotex:()=>o2e,iotexTestnet:()=>i2e,jasmyChain:()=>s2e,jasmyChainTestnet:()=>c2e,jbc:()=>l2e,jbcTestnet:()=>u2e,jocMainnet:()=>d2e,jocTestnet:()=>f2e,jovay:()=>p2e,jovaySepolia:()=>h2e,juneo:()=>m2e,juneoBCH1Chain:()=>g2e,juneoDAI1Chain:()=>y2e,juneoDOGE1Chain:()=>v2e,juneoEUR1Chain:()=>x2e,juneoGLD1Chain:()=>b2e,juneoLINK1Chain:()=>w2e,juneoLTC1Chain:()=>E2e,juneoSGD1Chain:()=>A2e,juneoSocotraTestnet:()=>k2e,juneoUSD1Chain:()=>C2e,juneoUSDT1Chain:()=>T2e,juneomBTC1Chain:()=>S2e,kaia:()=>_2e,kairos:()=>M2e,kakarotSepolia:()=>I2e,kakarotStarknetSepolia:()=>R2e,kardiaChain:()=>P2e,karura:()=>B2e,katana:()=>D2e,kava:()=>F2e,kavaTestnet:()=>O2e,kcc:()=>L2e,kii:()=>N2e,kiiTestnetOro:()=>U2e,kinto:()=>z2e,klaytn:()=>V2e,klaytnBaobab:()=>H2e,koi:()=>j2e,kroma:()=>$2e,kromaSepolia:()=>K2e,krown:()=>G2e,l3x:()=>q2e,l3xTestnet:()=>W2e,lavita:()=>Y2e,lens:()=>Z2e,lensTestnet:()=>X2e,lestnet:()=>J2e,lightlinkPegasus:()=>Q2e,lightlinkPhoenix:()=>eve,linea:()=>rxe,lineaGoerli:()=>oxe,lineaSepolia:()=>ixe,lineaTestnet:()=>axe,lisk:()=>sxe,liskSepolia:()=>cxe,loadAlphanet:()=>lxe,localhost:()=>uxe,loop:()=>dxe,lukso:()=>fxe,luksoTestnet:()=>pxe,lumiaMainnet:()=>hxe,lumiaTestnet:()=>mxe,lumoz:()=>gxe,lumozTestnet:()=>yxe,luxeports:()=>vxe,lycan:()=>xxe,lyra:()=>bxe,mainnet:()=>wxe,mandala:()=>Exe,manta:()=>Sxe,mantaSepoliaTestnet:()=>Axe,mantaTestnet:()=>kxe,mantle:()=>Cxe,mantleSepoliaTestnet:()=>Txe,mantleTestnet:()=>_xe,mantraDuKongEVMTestnet:()=>Mxe,mantraEVM:()=>Ixe,mapProtocol:()=>Rxe,matchain:()=>Pxe,matchainTestnet:()=>Bxe,mchVerse:()=>Dxe,megaeth:()=>Fxe,megaethTestnet:()=>Oxe,mekong:()=>Lxe,meld:()=>Nxe,memecore:()=>Uxe,merlin:()=>Vxe,merlinErigonTestnet:()=>Hxe,metachain:()=>jxe,metachainIstanbul:()=>$xe,metadium:()=>Kxe,metalL2:()=>Gxe,meter:()=>qxe,meterTestnet:()=>Wxe,metis:()=>Yxe,metisGoerli:()=>Zxe,metisSepolia:()=>Xxe,mev:()=>Jxe,mevTestnet:()=>Qxe,mezo:()=>ebe,mezoTestnet:()=>tbe,mint:()=>nbe,mintSepoliaTestnet:()=>rbe,mitosisTestnet:()=>obe,mode:()=>ibe,modeTestnet:()=>abe,monad:()=>sbe,monadTestnet:()=>cbe,moonbaseAlpha:()=>lbe,moonbeam:()=>ube,moonbeamDev:()=>dbe,moonriver:()=>fbe,morph:()=>pbe,morphHolesky:()=>hbe,morphSepolia:()=>mbe,nahmii:()=>gbe,nautilus:()=>ybe,near:()=>vbe,nearTestnet:()=>xbe,neonDevnet:()=>bbe,neonMainnet:()=>wbe,neoxMainnet:()=>Ebe,neoxT4:()=>Sbe,newton:()=>Abe,nexi:()=>kbe,nexilix:()=>Cbe,nibiru:()=>Tbe,nitrographTestnet:()=>_be,nomina:()=>Mbe,oasisTestnet:()=>Ibe,oasys:()=>Rbe,odysseyTestnet:()=>Pbe,okc:()=>Bbe,omax:()=>Dbe,omni:()=>Fbe,omniOmega:()=>Obe,oneWorld:()=>Lbe,oortMainnetDev:()=>Nbe,opBNB:()=>Ube,opBNBTestnet:()=>zbe,openledger:()=>Vbe,optimism:()=>Hbe,optimismGoerli:()=>jbe,optimismSepolia:()=>$be,optopia:()=>Kbe,optopiaTestnet:()=>Gbe,orderly:()=>qbe,orderlySepolia:()=>Wbe,otimDevnet:()=>Ybe,palm:()=>Zbe,palmTestnet:()=>Xbe,paseoPassetHub:()=>Jbe,peaq:()=>Qbe,pgn:()=>ewe,pgnTestnet:()=>twe,phoenix:()=>nwe,planq:()=>rwe,plasma:()=>owe,plasmaDevnet:()=>iwe,plasmaTestnet:()=>awe,playfiAlbireo:()=>swe,plinga:()=>cwe,plume:()=>lwe,plumeDevnet:()=>uwe,plumeMainnet:()=>dwe,plumeSepolia:()=>fwe,plumeTestnet:()=>pwe,polterTestnet:()=>hwe,polygon:()=>mwe,polygonAmoy:()=>gwe,polygonMumbai:()=>ywe,polygonZkEvm:()=>vwe,polygonZkEvmCardona:()=>xwe,polygonZkEvmTestnet:()=>bwe,polynomial:()=>wwe,polynomialSepolia:()=>Ewe,potos:()=>Swe,potosTestnet:()=>Awe,premiumBlockTestnet:()=>kwe,pulsechain:()=>Cwe,pulsechainV4:()=>Twe,pumpfiTestnet:()=>_we,pyrope:()=>Iwe,qMainnet:()=>Pwe,qTestnet:()=>Bwe,ql1:()=>Rwe,quai:()=>Dwe,quaiTestnet:()=>Fwe,radius:()=>Owe,radiusTestnet:()=>Lwe,reactiveTestnet:()=>Nwe,real:()=>Uwe,redbellyMainnet:()=>zwe,redbellyTestnet:()=>Vwe,reddio:()=>Hwe,reddioSepolia:()=>jwe,redstone:()=>$we,rei:()=>Kwe,reyaNetwork:()=>Gwe,rise:()=>qwe,riseTestnet:()=>Wwe,rivalz:()=>Ywe,rollux:()=>Zwe,rolluxTestnet:()=>Xwe,ronin:()=>Jwe,root:()=>Qwe,rootPorcini:()=>e3e,rootstock:()=>t3e,rootstockTestnet:()=>n3e,rss3:()=>r3e,rss3Sepolia:()=>o3e,saakuru:()=>i3e,saga:()=>a3e,saigon:()=>s3e,sanko:()=>c3e,sapphire:()=>l3e,sapphireTestnet:()=>u3e,satoshiVM:()=>d3e,satoshiVMTestnet:()=>f3e,scroll:()=>p3e,scrollSepolia:()=>h3e,sei:()=>m3e,seiTestnet:()=>y3e,seismicDevnet:()=>g3e,sepolia:()=>v3e,shape:()=>x3e,shapeSepolia:()=>b3e,shardeum:()=>w3e,shardeumSphinx:()=>E3e,shibarium:()=>S3e,shibariumTestnet:()=>A3e,shiden:()=>k3e,shimmer:()=>C3e,shimmerTestnet:()=>T3e,sidraChain:()=>_3e,silentData:()=>M3e,silicon:()=>I3e,siliconSepolia:()=>R3e,sixProtocol:()=>P3e,skaleBase:()=>K3e,skaleBaseSepoliaTestnet:()=>G3e,skaleBlockBrawlers:()=>B3e,skaleCalypso:()=>D3e,skaleCalypsoTestnet:()=>F3e,skaleCryptoBlades:()=>O3e,skaleCryptoColosseum:()=>L3e,skaleEuropa:()=>N3e,skaleEuropaTestnet:()=>U3e,skaleExorde:()=>z3e,skaleHumanProtocol:()=>V3e,skaleNebula:()=>H3e,skaleNebulaTestnet:()=>j3e,skaleRazor:()=>$3e,skaleTitan:()=>q3e,skaleTitanTestnet:()=>W3e,sketchpad:()=>Y3e,snax:()=>Z3e,snaxTestnet:()=>X3e,somnia:()=>J3e,somniaTestnet:()=>Q3e,soneium:()=>e6e,soneiumMinato:()=>t6e,songbird:()=>n6e,songbirdTestnet:()=>r6e,sonic:()=>o6e,sonicBlazeTestnet:()=>i6e,sonicTestnet:()=>a6e,sophon:()=>s6e,sophonTestnet:()=>c6e,sova:()=>l6e,sovaSepolia:()=>u6e,spicy:()=>d6e,stable:()=>f6e,stableTestnet:()=>p6e,statusNetworkSepolia:()=>SH,statusSepolia:()=>SH,step:()=>h6e,story:()=>m6e,storyAeneid:()=>g6e,storyOdyssey:()=>y6e,storyTestnet:()=>v6e,stratis:()=>x6e,subtensorEvm:()=>b6e,superlumio:()=>w6e,superposition:()=>E6e,superseed:()=>S6e,superseedSepolia:()=>A6e,surgeTestnet:()=>k6e,swan:()=>C6e,swanProximaTestnet:()=>T6e,swanSaturnTestnet:()=>_6e,swellchain:()=>M6e,swellchainTestnet:()=>I6e,swissdlt:()=>R6e,syscoin:()=>P6e,syscoinTestnet:()=>B6e,tac:()=>D6e,tacSPB:()=>F6e,taiko:()=>O6e,taikoHekla:()=>L6e,taikoHoodi:()=>N6e,taikoJolnir:()=>U6e,taikoKatla:()=>z6e,taikoTestnetSepolia:()=>V6e,taraxa:()=>H6e,taraxaTestnet:()=>j6e,teaSepolia:()=>$6e,telcoinTestnet:()=>K6e,telos:()=>G6e,telosTestnet:()=>q6e,tempo:()=>A$,tempoDevnet:()=>K8e,tempoLocalnet:()=>G8e,tempoMainnet:()=>A$,tempoModerato:()=>k$,tempoTestnet:()=>k$,tenet:()=>q8e,ternoa:()=>W8e,thaiChain:()=>Y8e,that:()=>Z8e,theta:()=>X8e,thetaTestnet:()=>J8e,thunderCore:()=>Q8e,thunderTestnet:()=>eEe,tiktrixTestnet:()=>tEe,tomb:()=>nEe,treasure:()=>rEe,treasureTopaz:()=>oEe,tron:()=>iEe,tronNile:()=>aEe,tronShasta:()=>sEe,ubiq:()=>cEe,ultra:()=>lEe,ultraTestnet:()=>uEe,ultron:()=>dEe,ultronTestnet:()=>fEe,unichain:()=>pEe,unichainSepolia:()=>hEe,unique:()=>mEe,uniqueOpal:()=>gEe,uniqueQuartz:()=>yEe,unreal:()=>vEe,vana:()=>xEe,vanaMoksha:()=>bEe,vanar:()=>wEe,vechain:()=>EEe,velas:()=>SEe,viction:()=>AEe,victionTestnet:()=>kEe,vision:()=>CEe,visionTestnet:()=>TEe,wanchain:()=>_Ee,wanchainTestnet:()=>MEe,weaveVMAlphanet:()=>IEe,wemix:()=>REe,wemixTestnet:()=>PEe,westendAssetHub:()=>BEe,whitechain:()=>DEe,whitechainTestnet:()=>FEe,wmcTestnet:()=>OEe,worldLand:()=>UEe,worldchain:()=>LEe,worldchainSepolia:()=>NEe,x1Testnet:()=>C$,xLayer:()=>KEe,xLayerTestnet:()=>C$,xai:()=>zEe,xaiTestnet:()=>VEe,xdc:()=>HEe,xdcTestnet:()=>jEe,xgr:()=>$Ee,xoneMainnet:()=>GEe,xoneTestnet:()=>qEe,xphereMainnet:()=>WEe,xphereTestnet:()=>YEe,xpla:()=>ZEe,xrOne:()=>XEe,xrSepolia:()=>tSe,xrplevm:()=>JEe,xrplevmDevnet:()=>QEe,xrplevmTestnet:()=>eSe,yooldoVerse:()=>nSe,yooldoVerseTestnet:()=>rSe,zenchainTestnet:()=>oSe,zeniq:()=>iSe,zeroG:()=>Lpe,zeroGGalileoTestnet:()=>Npe,zeroGMainnet:()=>Upe,zeroGTestnet:()=>zpe,zeroNetwork:()=>aSe,zetachain:()=>sSe,zetachainAthensTestnet:()=>cSe,zhejiang:()=>lSe,zilliqa:()=>uSe,zilliqaTestnet:()=>dSe,zircuit:()=>fSe,zircuitGarfieldTestnet:()=>pSe,zkFair:()=>hSe,zkFairTestnet:()=>mSe,zkLinkNova:()=>gSe,zkLinkNovaSepoliaTestnet:()=>ySe,zkSync:()=>M$,zkSyncInMemoryNode:()=>I$,zkSyncLocalNode:()=>R$,zkSyncSepoliaTestnet:()=>P$,zkXPLA:()=>wSe,zkXPLATestnet:()=>ESe,zksync:()=>M$,zksyncInMemoryNode:()=>I$,zksyncLocalCustomHyperchain:()=>vSe,zksyncLocalHyperchain:()=>xSe,zksyncLocalHyperchainL1:()=>bSe,zksyncLocalNode:()=>R$,zksyncSepoliaTestnet:()=>P$,zora:()=>SSe,zoraSepolia:()=>ASe,zoraTestnet:()=>CSe});u();u();u();function x(t){let e={formatters:void 0,fees:void 0,serializers:void 0,...t};function n(r){return o=>{let a=typeof o==\"function\"?o(r):o,c={...r,...a};return Object.assign(c,{extend:n(c)})}}return Object.assign(e,{extend:n(e)})}function Ope(){return{}}var Lpe=x({id:16600,name:\"0G Newton Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-newton.0g.ai\"}},testnet:!0});u();var Npe=x({id:16601,name:\"0G Galileo Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-galileo.0g.ai\"}},testnet:!0});u();var Upe=x({id:16661,name:\"0G Mainnet\",nativeCurrency:{name:\"0G\",symbol:\"0G\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan.0g.ai\"}},testnet:!1});u();var zpe=x({id:16602,name:\"0G Galileo Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-galileo.0g.ai\"}},testnet:!0});u();var Vpe=x({id:995,name:\"5ireChain\",nativeCurrency:{name:\"5ire Token\",symbol:\"5IRE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.5ire.network\"]}},blockExplorers:{default:{name:\"5ireChain Mainnet Explorer\",url:\"https://5irescan.io/\"}},testnet:!1});u();var Hpe=x({id:179,name:\"ABEY Mainnet\",nativeCurrency:{name:\"ABEY\",symbol:\"ABEY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.abeychain.com\"]}},blockExplorers:{default:{name:\"Abey Scan\",url:\"https://abeyscan.com\"}},testnet:!1});u();u();u();Is();tc();Ko();u();Z8();u();Is();Z8();var lV={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function Ou(t,e){let n={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,...t.blockTimestamp!=null&&{blockTimestamp:BigInt(t.blockTimestamp)},chainId:t.chainId?us(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?us(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?lV[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(n.authorizationList=fLe(t.authorizationList)),n.yParity=(()=>{if(t.yParity)return Number(t.yParity);if(typeof n.v==\"bigint\"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type===\"legacy\"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type===\"eip2930\"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type===\"eip1559\"&&delete n.maxFeePerBlobGas,n}var Wm=qm(\"transaction\",Ou);function fLe(t){return t.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))}function uV(t,e){let n=(t.transactions??[]).map(r=>typeof r==\"string\"?r:Ou(r));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:n,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}var ox=qm(\"block\",uV);u();function ix(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,blockTimestamp:t.blockTimestamp?BigInt(t.blockTimestamp):t.blockTimestamp===null?null:void 0,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}u();Is();Z8();var pLe={\"0x0\":\"reverted\",\"0x1\":\"success\"};function dV(t,e){let n={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(r=>ix(r)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?us(t.transactionIndex):null,status:t.status?pLe[t.status]:null,type:t.type?lV[t.type]||t.type:null};return t.blobGasPrice&&(n.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(n.blobGasUsed=BigInt(t.blobGasUsed)),n}var ax=qm(\"transactionReceipt\",dV);ef();u();cx();var lx=50000n,fV=qpe*32n;var pV={block:ox({format(t){let e=t.transactions?.map(n=>{if(typeof n==\"string\")return n;let r=pV.transaction?.format(n);return r.typeHex===\"0x71\"?r.type=\"eip712\":r.typeHex===\"0xff\"&&(r.type=\"priority\"),r});return{l1BatchNumber:t.l1BatchNumber?Io(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?Io(t.l1BatchTimestamp):null,transactions:e}}}),transaction:Wm({format(t){let e={};return t.type===\"0x71\"?e.type=\"eip712\":t.type===\"0xff\"&&(e.type=\"priority\"),{...e,l1BatchNumber:t.l1BatchNumber?Io(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Io(t.l1BatchTxIndex):null}}}),transactionReceipt:ax({format(t){return{l1BatchNumber:t.l1BatchNumber?Io(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Io(t.l1BatchTxIndex):null,logs:t.logs.map(e=>({...ix(e),l1BatchNumber:e.l1BatchNumber?Io(e.l1BatchNumber):null,transactionLogIndex:us(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:t.l2ToL1Logs.map(e=>({blockNumber:Io(e.blockHash),blockHash:e.blockHash,l1BatchNumber:e.l1BatchNumber?Io(e.l1BatchNumber):null,transactionIndex:Io(e.transactionIndex),shardId:Io(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:Io(e.logIndex)}))}}}),transactionRequest:sx({exclude:[\"customSignature\",\"factoryDeps\",\"gasPerPubdata\",\"paymaster\",\"paymasterInput\"],format(t){return t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:yo(t.gasPerPubdata)}:{gasPerPubdata:yo(lx)},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from(ra(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps.map(e=>Array.from(ra(e)))}:{},...t.customSignature?{customSignature:Array.from(ra(t.customSignature))}:{}},type:\"0x71\"}:{}}})};u();il();Ko();u();Bo();yT();tc();Ko();function nc(t,e=\"hex\"){let n=Wpe(t),r=dx(new Uint8Array(n.length));return n.encode(r),e===\"hex\"?xi(r.bytes):r.bytes}function Wpe(t){return Array.isArray(t)?vLe(t.map(e=>Wpe(e))):xLe(t)}function vLe(t){let e=t.reduce((o,a)=>o+a.length,0),n=Ype(e);return{length:e<=55?1+e:1+n+e,encode(o){e<=55?o.pushByte(192+e):(o.pushByte(247+n),n===1?o.pushUint8(e):n===2?o.pushUint16(e):n===3?o.pushUint24(e):o.pushUint32(e));for(let{encode:a}of t)a(o)}}}function xLe(t){let e=typeof t==\"string\"?ra(t):t,n=Ype(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length,encode(o){e.length===1&&e[0]<128?o.pushBytes(e):e.length<=55?(o.pushByte(128+e.length),o.pushBytes(e)):(o.pushByte(183+n),n===1?o.pushUint8(e.length):n===2?o.pushUint16(e.length):n===3?o.pushUint24(e.length):o.pushUint32(e.length),o.pushBytes(e))}}}function Ype(t){if(t<2**8)return 1;if(t<2**16)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new ln(\"Length is too large.\")}u();wy();u();Ko();function Jpe(t){if(!t||t.length===0)return[];let e=[];for(let n of t){let{chainId:r,nonce:o,...a}=n,c=n.address;e.push([r?yo(r):\"0x\",c,o?yo(o):\"0x\",...Ym({},a)])}return e}u();tc();Ko();function hx(t){let{kzg:e}=t,n=t.to??(typeof t.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof t.blobs[0]==\"string\"?t.blobs.map(a=>ra(a)):t.blobs,o=[];for(let a of r)o.push(Uint8Array.from(e.blobToKzgCommitment(a)));return n===\"bytes\"?o:o.map(a=>xi(a))}u();tc();Ko();function mx(t){let{kzg:e}=t,n=t.to??(typeof t.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof t.blobs[0]==\"string\"?t.blobs.map(c=>ra(c)):t.blobs,o=typeof t.commitments[0]==\"string\"?t.commitments.map(c=>ra(c)):t.commitments,a=[];for(let c=0;c<r.length;c++){let l=r[c],f=o[c];a.push(Uint8Array.from(e.computeBlobKzgProof(l,f)))}return n===\"bytes\"?a:a.map(c=>xi(c))}u();u();Ko();u();u();RT();var PT=Up;Xd();tc();Ko();function BT(t,e){let n=e||\"hex\",r=PT(Aa(t,{strict:!1})?Wl(t):t);return n===\"bytes\"?r:yo(r)}function bhe(t){let{commitment:e,version:n=1}=t,r=t.to??(typeof e==\"string\"?\"hex\":\"bytes\"),o=BT(e,\"bytes\");return o.set([n],0),r===\"bytes\"?o:xi(o)}function DT(t){let{commitments:e,version:n}=t,r=t.to??(typeof e[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let a of e)o.push(bhe({commitment:a,to:r,version:n}));return o}u();u();u();Bo();var FT=class extends ln{constructor({maxSize:e,size:n}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`],name:\"BlobSizeTooLargeError\"})}},yx=class extends ln{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}},OT=class extends ln{constructor({hash:e,size:n}){super(`Versioned hash \"${e}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${n}`],name:\"InvalidVersionedHashSizeError\"})}},LT=class extends ln{constructor({hash:e,version:n}){super(`Versioned hash \"${e}\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${n}`],name:\"InvalidVersionedHashVersionError\"})}};yT();Jd();tc();Ko();function whe(t){let e=t.to??(typeof t.data==\"string\"?\"hex\":\"bytes\"),n=typeof t.data==\"string\"?ra(t.data):t.data,r=Yo(n);if(!r)throw new yx;if(r>761855)throw new FT({maxSize:761855,size:r});let o=[],a=!0,c=0;for(;a;){let l=dx(new Uint8Array(131072)),f=0;for(;f<4096;){let p=n.slice(c,c+31);if(l.pushByte(0),l.pushBytes(p),p.length<31){l.pushByte(128),a=!1;break}f++,c+=31}o.push(l)}return e===\"bytes\"?o.map(l=>l.bytes):o.map(l=>xi(l.bytes))}function NT(t){let{data:e,kzg:n,to:r}=t,o=t.blobs??whe({data:e,to:r}),a=t.commitments??hx({blobs:o,kzg:n,to:r}),c=t.proofs??mx({blobs:o,commitments:a,kzg:n,to:r}),l=[];for(let f=0;f<o.length;f++)l.push({blob:o[f],commitment:a[f],proof:c[f]});return l}il();rx();Ko();u();cx();Nu();Bo();_y();t0();Ql();Jd();Ry();Is();function Ihe(t){let{authorizationList:e}=t;if(e)for(let n of e){let{chainId:r}=n,o=n.address;if(!Do(o))throw new Go({address:o});if(r<0)throw new Uu({chainId:r})}HT(t)}function Rhe(t){let{blobVersionedHashes:e}=t;if(e){if(e.length===0)throw new yx;for(let n of e){let r=Yo(n),o=us(eu(n,0,1));if(r!==32)throw new OT({hash:n,size:r});if(o!==1)throw new LT({hash:n,version:o})}}HT(t)}function HT(t){let{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:o}=t;if(e<=0)throw new Uu({chainId:e});if(o&&!Do(o))throw new Go({address:o});if(r&&r>tf)throw new Mc({maxFeePerGas:r});if(n&&r&&n>r)throw new Xl({maxFeePerGas:r,maxPriorityFeePerGas:n})}function Phe(t){let{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=t;if(e<=0)throw new Uu({chainId:e});if(a&&!Do(a))throw new Go({address:a});if(n||o)throw new ln(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\");if(r&&r>tf)throw new Mc({maxFeePerGas:r})}function Bhe(t){let{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=t;if(a&&!Do(a))throw new Go({address:a});if(typeof e<\"u\"&&e<=0)throw new Uu({chainId:e});if(n||o)throw new ln(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\");if(r&&r>tf)throw new Mc({maxFeePerGas:r})}u();wy();function Tx(t){if(t.type)return t.type;if(typeof t.authorizationList<\"u\")return\"eip7702\";if(typeof t.blobs<\"u\"||typeof t.blobVersionedHashes<\"u\"||typeof t.maxFeePerBlobGas<\"u\"||typeof t.sidecars<\"u\")return\"eip4844\";if(typeof t.maxFeePerGas<\"u\"||typeof t.maxPriorityFeePerGas<\"u\")return\"eip1559\";if(typeof t.gasPrice<\"u\")return typeof t.accessList<\"u\"?\"eip2930\":\"legacy\";throw new wT({transaction:t})}u();Nu();wy();Ql();function Py(t){if(!t||t.length===0)return[];let e=[];for(let n=0;n<t.length;n++){let{address:r,storageKeys:o}=t[n];for(let a=0;a<o.length;a++)if(o[a].length-2!==64)throw new ET({storageKey:o[a]});if(!Do(r,{strict:!1}))throw new Go({address:r});e.push([r,o])}return e}function By(t,e){let n=Tx(t);return n===\"eip1559\"?GLe(t,e):n===\"eip2930\"?qLe(t,e):n===\"eip4844\"?KLe(t,e):n===\"eip7702\"?$Le(t,e):WLe(t,e)}function $Le(t,e){let{authorizationList:n,chainId:r,gas:o,nonce:a,to:c,value:l,maxFeePerGas:f,maxPriorityFeePerGas:p,accessList:m,data:g}=t;Ihe(t);let y=Py(m),A=Jpe(n);return Wi([\"0x04\",nc([sr(r),a?sr(a):\"0x\",p?sr(p):\"0x\",f?sr(f):\"0x\",o?sr(o):\"0x\",c??\"0x\",l?sr(l):\"0x\",g??\"0x\",y,A,...Ym(t,e)])])}function KLe(t,e){let{chainId:n,gas:r,nonce:o,to:a,value:c,maxFeePerBlobGas:l,maxFeePerGas:f,maxPriorityFeePerGas:p,accessList:m,data:g}=t;Rhe(t);let y=t.blobVersionedHashes,A=t.sidecars;if(t.blobs&&(typeof y>\"u\"||typeof A>\"u\")){let D=typeof t.blobs[0]==\"string\"?t.blobs:t.blobs.map(J=>xi(J)),G=t.kzg,ee=hx({blobs:D,kzg:G});if(typeof y>\"u\"&&(y=DT({commitments:ee})),typeof A>\"u\"){let J=mx({blobs:D,commitments:ee,kzg:G});A=NT({blobs:D,commitments:ee,proofs:J})}}let T=Py(m),R=[sr(n),o?sr(o):\"0x\",p?sr(p):\"0x\",f?sr(f):\"0x\",r?sr(r):\"0x\",a??\"0x\",c?sr(c):\"0x\",g??\"0x\",T,l?sr(l):\"0x\",y??[],...Ym(t,e)],K=[],O=[],V=[];if(A)for(let D=0;D<A.length;D++){let{blob:G,commitment:ee,proof:J}=A[D];K.push(G),O.push(ee),V.push(J)}return Wi([\"0x03\",A?nc([R,K,O,V]):nc(R)])}function GLe(t,e){let{chainId:n,gas:r,nonce:o,to:a,value:c,maxFeePerGas:l,maxPriorityFeePerGas:f,accessList:p,data:m}=t;HT(t);let g=Py(p),y=[sr(n),o?sr(o):\"0x\",f?sr(f):\"0x\",l?sr(l):\"0x\",r?sr(r):\"0x\",a??\"0x\",c?sr(c):\"0x\",m??\"0x\",g,...Ym(t,e)];return Wi([\"0x02\",nc(y)])}function qLe(t,e){let{chainId:n,gas:r,data:o,nonce:a,to:c,value:l,accessList:f,gasPrice:p}=t;Phe(t);let m=Py(f),g=[sr(n),a?sr(a):\"0x\",p?sr(p):\"0x\",r?sr(r):\"0x\",c??\"0x\",l?sr(l):\"0x\",o??\"0x\",m,...Ym(t,e)];return Wi([\"0x01\",nc(g)])}function WLe(t,e){let{chainId:n=0,gas:r,data:o,nonce:a,to:c,value:l,gasPrice:f}=t;Bhe(t);let p=[a?sr(a):\"0x\",f?sr(f):\"0x\",r?sr(r):\"0x\",c??\"0x\",l?sr(l):\"0x\",o??\"0x\"];if(e){let m=(()=>{if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+e.v-27n);let A=27n+(e.v===27n?0n:1n);if(e.v!==A)throw new bT({v:e.v});return A})(),g=ls(e.r),y=ls(e.s);p=[...p,sr(m),g===\"0x00\"?\"0x\":g,y===\"0x00\"?\"0x\":y]}else n>0&&(p=[...p,sr(n),\"0x\",\"0x\"]);return nc(p)}function Ym(t,e){let n=e??t,{v:r,yParity:o}=n;if(typeof n.r>\"u\")return[];if(typeof n.s>\"u\")return[];if(typeof r>\"u\"&&typeof o>\"u\")return[];let a=ls(n.r),c=ls(n.s);return[typeof o==\"number\"?o?sr(1):\"0x\":r===0n?\"0x\":r===1n?sr(1):r===27n?\"0x\":sr(1),a===\"0x00\"?\"0x\":a,c===\"0x00\"?\"0x\":c]}u();Nu();Bo();_y();Ql();u();Bo();var jT=class extends ln{constructor(){super([\"Transaction is not an EIP712 transaction.\",\"\",\"Transaction must:\",\\'  - include `type: \"eip712\"`\\',\"  - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`\"].join(`\\n`),{name:\"InvalidEip712TransactionError\"})}};u();function $T(t){return!!(t.type===\"eip712\"||\"customSignature\"in t&&t.customSignature||\"paymaster\"in t&&t.paymaster||\"paymasterInput\"in t&&t.paymasterInput||\"gasPerPubdata\"in t&&typeof t.gasPerPubdata==\"bigint\"||\"factoryDeps\"in t&&t.factoryDeps)}function KT(t){let{chainId:e,to:n,from:r,paymaster:o,paymasterInput:a}=t;if(!$T(t))throw new jT;if(!e||e<=0)throw new Uu({chainId:e});if(n&&!Do(n))throw new Go({address:n});if(r&&!Do(r))throw new Go({address:r});if(o&&!Do(o))throw new Go({address:o});if(o&&!a)throw new ln(\"`paymasterInput` must be provided when `paymaster` is defined\");if(!o&&a)throw new ln(\"`paymaster` must be provided when `paymasterInput` is defined\")}function YLe(t,e){return $T(t)?ZLe(t):By(t,e)}var Dhe={transaction:YLe};function ZLe(t){let{chainId:e,gas:n,nonce:r,to:o,from:a,value:c,maxFeePerGas:l,maxPriorityFeePerGas:f,customSignature:p,factoryDeps:m,paymaster:g,paymasterInput:y,gasPerPubdata:A,data:T}=t;KT(t);let R=[r?yo(r):\"0x\",f?yo(f):\"0x\",l?yo(l):\"0x\",n?yo(n):\"0x\",o??\"0x\",c?yo(c):\"0x\",T??\"0x\",yo(e),yo(\"\"),yo(\"\"),yo(e),a??\"0x\",A?yo(A):yo(lx),m??[],p??\"0x\",g&&y?[g,y]:[]];return Wi([\"0x71\",nc(R)])}u();Ko();u();Y8();tc();u();Bo();var GT=class extends ln{constructor({givenLength:e,maxBytecodeSize:n}){super(`Bytecode cannot be longer than ${n} bytes. Given length: ${e}`,{name:\"BytecodeLengthExceedsMaxSizeError\"})}},qT=class extends ln{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`,{name:\"BytecodeLengthInWordsMustBeOddError\"})}},WT=class extends ln{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`,{name:\"BytecodeLengthMustBeDivisibleBy32Error\"})}};function Fhe(t){let e=Wl(t);if(e.length%32!==0)throw new WT({givenLength:e.length});if(e.length>fV)throw new GT({givenLength:e.length,maxBytecodeSize:fV});let n=BT(e),r=Wl(n),o=e.length/32;if(o%2===0)throw new qT({givenLengthInWords:o});let a=Wl(o),c=Qd(a,{size:2}),l=new Uint8Array([1,0]);return r.set(l,0),r.set(c,2),r}var Ohe=t=>{KT(t);let e=XLe(t);return{domain:{name:\"zkSync\",version:\"2\",chainId:t.chainId},types:{Transaction:[{name:\"txType\",type:\"uint256\"},{name:\"from\",type:\"uint256\"},{name:\"to\",type:\"uint256\"},{name:\"gasLimit\",type:\"uint256\"},{name:\"gasPerPubdataByteLimit\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymaster\",type:\"uint256\"},{name:\"nonce\",type:\"uint256\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"},{name:\"factoryDeps\",type:\"bytes32[]\"},{name:\"paymasterInput\",type:\"bytes\"}]},primaryType:\"Transaction\",message:e}};function XLe(t){let{gas:e,nonce:n,to:r,from:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,factoryDeps:f,paymaster:p,paymasterInput:m,gasPerPubdata:g,data:y}=t;return{txType:113n,from:BigInt(o),to:r?BigInt(r):0n,gasLimit:e??0n,gasPerPubdataByteLimit:g??lx,maxFeePerGas:c??0n,maxPriorityFeePerGas:l??0n,paymaster:p?BigInt(p):0n,nonce:n?BigInt(n):0n,value:a??0n,data:y??\"0x\",factoryDeps:f?.map(A=>yo(Fhe(A)))??[],paymasterInput:m||\"0x\"}}var oi={blockTime:1e3,formatters:pV,serializers:Dhe,custom:{getEip712Domain:Ohe}};var Lhe=x({...oi,blockTime:200,id:2741,name:\"Abstract\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.mainnet.abs.xyz\"],webSocket:[\"wss://api.mainnet.abs.xyz/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://abscan.org\"},native:{name:\"Abstract Explorer\",url:\"https://explorer.mainnet.abs.xyz\"}},contracts:{multicall3:{address:\"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7\",blockCreated:5288},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:5263}}});u();var Nhe=x({...oi,blockTime:200,id:11124,name:\"Abstract Testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.testnet.abs.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.abscan.org\"},native:{name:\"Abstract Explorer\",url:\"https://explorer.testnet.abs.xyz\"}},testnet:!0,contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:358349},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:431682}}});u();var Uhe=x({id:787,name:\"Acala\",network:\"acala\",nativeCurrency:{name:\"Acala\",symbol:\"ACA\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-acala.aca-api.network\"],webSocket:[\"wss://eth-rpc-acala.aca-api.network\"]}},blockExplorers:{default:{name:\"Acala Blockscout\",url:\"https://blockscout.acala.network\",apiUrl:\"https://blockscout.acala.network/api\"}},testnet:!1});u();var zhe=x({id:47,name:\"Acria IntelliChain\",nativeCurrency:{decimals:18,name:\"ACRIA\",symbol:\"ACRIA\"},rpcUrls:{default:{http:[\"https://aic.acria.ai\"]}},blockExplorers:{default:{name:\"Acria Explorer\",url:\"https://explorer.acria.ai\"}},testnet:!1});u();var Vhe=x({id:1215,name:\"ADF Chain\",nativeCurrency:{name:\"ADDFILL\",symbol:\"ADF\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.adftechnology.com\"]}},blockExplorers:{default:{name:\"ADF Mainnet Explorer\",url:\"https://explorer.adftechnology.com\"}},testnet:!1});u();var Hhe=x({id:36900,name:\"ADI_Chain\",nativeCurrency:{decimals:18,name:\"ADI\",symbol:\"ADI\"},rpcUrls:{default:{http:[\"https://rpc.adifoundation.ai\"]}},blockExplorers:{default:{name:\"ADI Explorer\",url:\"https://explorer.adifoundation.ai\"}},testnet:!1});u();var jhe=x({id:9990,name:\"Agung Network\",nativeCurrency:{decimals:18,name:\"Agung\",symbol:\"AGNG\"},rpcUrls:{default:{http:[\"https://wss-async.agung.peaq.network\"],webSocket:[\"wss://wss-async.agung.peaq.network\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://agung-testnet.subscan.io\"}},testnet:!0});u();var $he=x({id:168,name:\"AIOZ Network\",nativeCurrency:{decimals:18,name:\"AIOZ\",symbol:\"AIOZ\"},rpcUrls:{default:{http:[\"https://eth-dataseed.aioz.network\"]}},blockExplorers:{default:{name:\"AIOZ Explorer\",url:\"https://explorer.aioz.network\"}},testnet:!1});u();var Khe=x({id:41455,name:\"Aleph Zero\",nativeCurrency:{name:\"Aleph Zero\",symbol:\"AZERO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alephzero.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"Aleph Zero EVM Explorer\",url:\"https://evm-explorer.alephzero.org\",apiUrl:\"https://evm-explorer.alephzero.org/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4603377}}});u();var Ghe=x({id:2039,name:\"Aleph Zero Testnet\",nativeCurrency:{name:\"TZERO\",symbol:\"TZERO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alephzero-testnet.gelato.digital\"],webSocket:[\"wss://ws.alephzero-testnet.gelato.digital\"]}},blockExplorers:{default:{name:\"Aleph Zero EVM Testnet explorer\",url:\"https://evm-explorer-testnet.alephzero.org\",apiUrl:\"https://evm-explorer-testnet.alephzero.org/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2861745}},testnet:!0});u();var qhe=x({id:10241024,name:\"AlienX Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alienxchain.io/http\"]}},blockExplorers:{default:{name:\"AlienX Explorer\",url:\"https://explorer.alienxchain.io\"}},testnet:!1});u();var Whe=x({id:10241025,name:\"ALIENX Hal Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://hal-rpc.alienxchain.io/http\"]}},blockExplorers:{default:{name:\"AlienX Explorer\",url:\"https://hal-explorer.alienxchain.io\"}},testnet:!0});u();var Yhe=x({id:8150,name:\"Alpen Testnet\",nativeCurrency:{name:\"Signet BTC\",symbol:\"sBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.alpenlabs.io\"]}},blockExplorers:{default:{name:\"Alpen Explorer\",url:\"https://explorer.testnet.alpenlabs.io\",apiUrl:\"https://explorer.testnet.alpenlabs.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:290408}},testnet:!0});u();u();u();var YT={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}};u();Is();var _x={block:ox({format(t){return{transactions:t.transactions?.map(n=>{if(typeof n==\"string\")return n;let r=Ou(n);return r.typeHex===\"0x7e\"&&(r.isSystemTx=n.isSystemTx,r.mint=n.mint?Io(n.mint):void 0,r.sourceHash=n.sourceHash,r.type=\"deposit\"),r}),stateRoot:t.stateRoot}}}),transaction:Wm({format(t){let e={};return t.type===\"0x7e\"&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Io(t.mint):void 0,e.sourceHash=t.sourceHash,e.type=\"deposit\"),e}}),transactionReceipt:ax({format(t){return{l1GasPrice:t.l1GasPrice?Io(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?Io(t.l1GasUsed):null,l1Fee:t.l1Fee?Io(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null}}})};u();Nu();Ql();il();Ko();function TV(t,e){return QLe(t)?JLe(t):By(t,e)}var Zhe={transaction:TV};function JLe(t){eNe(t);let{sourceHash:e,data:n,from:r,gas:o,isSystemTx:a,mint:c,to:l,value:f}=t,p=[e,r,l??\"0x\",c?yo(c):\"0x\",f?yo(f):\"0x\",o?yo(o):\"0x\",a?\"0x1\":\"0x\",n??\"0x\"];return Wi([\"0x7e\",nc(p)])}function QLe(t){return t.type===\"deposit\"||typeof t.sourceHash<\"u\"}function eNe(t){let{from:e,to:n}=t;if(e&&!Do(e))throw new Go({address:e});if(n&&!Do(n))throw new Go({address:n})}var zt={blockTime:2e3,contracts:YT,formatters:_x,serializers:Zhe};var ZT=1,Xhe=x({...zt,id:888888888,name:\"Ancient8\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ancient8.gg\"]}},blockExplorers:{default:{name:\"Ancient8 explorer\",url:\"https://scan.ancient8.gg\",apiUrl:\"https://scan.ancient8.gg/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[ZT]:{address:\"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996\"}},portal:{[ZT]:{address:\"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68\",blockCreated:19070571}},l1StandardBridge:{[ZT]:{address:\"0xd5e3eDf5b68135D559D572E26bF863FBC1950033\",blockCreated:19070571}}},sourceId:ZT});u();var XT=11155111,Jhe=x({...zt,id:28122024,name:\"Ancient8 Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpcv2-testnet.ancient8.gg\"]}},blockExplorers:{default:{name:\"Ancient8 Celestia Testnet explorer\",url:\"https://scanv2-testnet.ancient8.gg\",apiUrl:\"https://scanv2-testnet.ancient8.gg/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[XT]:{address:\"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB\"}},portal:{[XT]:{address:\"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960\",blockCreated:4972908}},l1StandardBridge:{[XT]:{address:\"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335\",blockCreated:4972908}}},sourceId:XT,testnet:!0});u();var Qhe=x({id:31337,name:\"Anvil\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"],webSocket:[\"ws://127.0.0.1:8545\"]}}});u();var tNe=42161,eme=x({id:33139,name:\"ApeChain\",nativeCurrency:{name:\"ApeCoin\",symbol:\"APE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.apechain.com/http\"],webSocket:[\"wss://rpc.apechain.com/ws\"]}},blockExplorers:{default:{name:\"Apescan\",url:\"https://apescan.io\",apiUrl:\"https://api.apescan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:20889}},sourceId:tNe});u();var tme=x({id:3993,name:\"APEX Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.apexlayer.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp-testnet.apexlayer.xyz\",apiUrl:\"https://exp-testnet.apexlayer.xyz/api\"}},contracts:{multicall3:{address:\"0xf7642be33a6b18D16a995657adb5a68CD0438aE2\",blockCreated:283775}},testnet:!0});u();var nme=x({id:62606,name:\"Apollo\",nativeCurrency:{decimals:18,name:\"Apollo\",symbol:\"APOLLO\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.apolloscan.io\"]}},blockExplorers:{default:{name:\"Apollo Explorer\",url:\"https://apolloscan.io\"}}});u();var rme=x({id:42161,name:\"Arbitrum One\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:250,rpcUrls:{default:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://arbiscan.io\",apiUrl:\"https://api.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7654707}}});u();var ome=x({id:421613,name:\"Arbitrum Goerli\",nativeCurrency:{name:\"Arbitrum Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://goerli.arbiscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:88114}},testnet:!0});u();var ime=x({id:42170,name:\"Arbitrum Nova\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://nova.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://nova.arbiscan.io\",apiUrl:\"https://api-nova.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1746963}}});u();var ame=x({id:421614,name:\"Arbitrum Sepolia\",blockTime:250,nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://sepolia.arbiscan.io\",apiUrl:\"https://api-sepolia.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:81930}},testnet:!0});u();var sme=x({id:5042002,name:\"Arc Testnet\",nativeCurrency:{name:\"USDC\",symbol:\"USDC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.arc.network\",\"https://rpc.quicknode.testnet.arc.network\",\"https://rpc.blockdaemon.testnet.arc.network\"],webSocket:[\"wss://rpc.testnet.arc.network\",\"wss://rpc.quicknode.testnet.arc.network\"]}},blockExplorers:{default:{name:\"ArcScan\",url:\"https://testnet.arcscan.app\",apiUrl:\"https://testnet.arcscan.app/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0});u();var cme=x({id:7897,name:\"Arena-Z\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.arena-z.gg\"]}},blockExplorers:{default:{name:\"Arena-Z Explorer\",url:\"https://explorer.arena-z.gg\",apiUrl:\"https://explorer.arena-z.gg\"}}});u();var lme=x({id:463,name:\"Areon Network\",nativeCurrency:{decimals:18,name:\"AREA\",symbol:\"AREA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.areon.network\"],webSocket:[\"wss://mainnet-ws.areon.network\"]}},blockExplorers:{default:{name:\"Areonscan\",url:\"https://areonscan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:353286}},testnet:!1});u();var ume=x({id:462,name:\"Areon Network Testnet\",nativeCurrency:{decimals:18,name:\"TAREA\",symbol:\"TAREA\"},rpcUrls:{default:{http:[\"https://testnet-rpc.areon.network\"],webSocket:[\"wss://testnet-ws.areon.network\"]}},blockExplorers:{default:{name:\"Areonscan\",url:\"https://areonscan.com\"}},testnet:!0});u();var dme=x({id:463,name:\"Areum\",nativeCurrency:{decimals:18,name:\"AREA\",symbol:\"AREA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.areum.network\"],webSocket:[\"wss://mainnet-ws.areum.network\"]}},blockExplorers:{default:{name:\"Areum Explorer\",url:\"https://explorer.areum.network\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:353286}},testnet:!1});u();var fme=x({id:11822,name:\"Artela Testnet\",nativeCurrency:{name:\"ART\",symbol:\"ART\",decimals:18},rpcUrls:{default:{http:[\"https://betanet-rpc1.artela.network\"]}},blockExplorers:{default:{name:\"Artela\",url:\"https://betanet-scan.artela.network\",apiUrl:\"https://betanet-scan.artela.network/api\"}},contracts:{multicall3:{address:\"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7\",blockCreated:7001871}},testnet:!0});u();var pme=x({id:10242,name:\"Arthera\",nativeCurrency:{name:\"Arthera\",symbol:\"AA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.arthera.net\"]}},blockExplorers:{default:{name:\"Arthera EVM Explorer\",url:\"https://explorer.arthera.net\",apiUrl:\"https://explorer.arthera.net/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4502791}}});u();var hme=x({id:10243,name:\"Arthera Testnet\",nativeCurrency:{name:\"Arthera\",symbol:\"AA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-test.arthera.net\"]}},blockExplorers:{default:{name:\"Arthera EVM Explorer\",url:\"https://explorer-test.arthera.net\",apiUrl:\"https://explorer-test.arthera.net/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:22051}},testnet:!0});u();var mme=x({id:42420,name:\"AssetChain Mainnet\",nativeCurrency:{decimals:18,name:\"Real World Asset\",symbol:\"RWA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.assetchain.org\"]}},blockExplorers:{default:{name:\"Asset Chain Explorer\",url:\"https://scan.assetchain.org\",apiUrl:\"https://scan.assetchain.org/api\"}},testnet:!1,contracts:{}});u();var gme=x({id:42421,name:\"AssetChain Testnet\",nativeCurrency:{decimals:18,name:\"Real World Asset\",symbol:\"RWA\"},rpcUrls:{default:{http:[\"https://enugu-rpc.assetchain.org\"]}},blockExplorers:{default:{name:\"Asset Chain Testnet Explorer\",url:\"https://scan-testnet.assetchain.org\",apiUrl:\"https://scan-testnet.assetchain.org/api\"}},testnet:!0,contracts:{multicall3:{address:\"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea\",blockCreated:17177}}});u();var yme=x({id:592,name:\"Astar\",network:\"astar-mainnet\",nativeCurrency:{name:\"Astar\",symbol:\"ASTR\",decimals:18},rpcUrls:{default:{http:[\"https://astar.api.onfinality.io/public\"]}},blockExplorers:{default:{name:\"Astar Subscan\",url:\"https://astar.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:761794}},testnet:!1});u();var vme=x({id:3776,name:\"Astar zkEVM\",network:\"AstarZkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-zkevm.astar.network\"]}},blockExplorers:{default:{name:\"Astar zkEVM Explorer\",url:\"https://astar-zkevm.explorer.startale.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:93528}},testnet:!1});u();var xme=x({id:6038361,name:\"Astar zkEVM Testnet zKyoto\",network:\"zKyoto\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.startale.com/zkyoto\"]}},blockExplorers:{default:{name:\"zKyoto Explorer\",url:\"https://zkyoto.explorer.startale.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:196153}},testnet:!0});u();var bme=x({id:2340,name:\"Atleta Olympia\",nativeCurrency:{decimals:18,name:\"Atla\",symbol:\"ATLA\"},rpcUrls:{default:{http:[\"https://testnet-rpc.atleta.network:9944\",\"https://testnet-rpc.atleta.network\"],ws:[\"wss://testnet-rpc.atleta.network:9944\"]}},blockExplorers:{default:{name:\"Atleta Olympia Explorer\",url:\"https://blockscout.atleta.network\",apiUrl:\"https://blockscout.atleta.network/api\"}},contracts:{multicall3:{address:\"0x1472ec6392180fb84F345d2455bCC75B26577115\",blockCreated:1076473}},testnet:!0});u();var wme=x({id:1313161554,name:\"Aurora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.aurora.dev\"]}},blockExplorers:{default:{name:\"Aurorascan\",url:\"https://aurorascan.dev\",apiUrl:\"https://aurorascan.dev/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:62907816}}});u();var Eme=x({id:1313161555,name:\"Aurora Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.aurora.dev\"]}},blockExplorers:{default:{name:\"Aurorascan\",url:\"https://testnet.aurorascan.dev\",apiUrl:\"https://testnet.aurorascan.dev/api\"}},testnet:!0});u();var Sme=x({id:205205,name:\"Auroria Testnet\",network:\"auroria\",nativeCurrency:{name:\"Auroria Stratis\",symbol:\"tSTRAX\",decimals:18},rpcUrls:{default:{http:[\"https://auroria.rpc.stratisevm.com\"]}},blockExplorers:{default:{name:\"Auroria Testnet Explorer\",url:\"https://auroria.explorer.stratisevm.com\"}},testnet:!0});u();var Ame=x({id:785,name:\"Autheo Testnet\",nativeCurrency:{decimals:18,name:\"Autheo\",symbol:\"THEO\"},rpcUrls:{default:{http:[\"https://testnet-rpc1.autheo.com\",\"https://testnet-rpc2.autheo.com\"]}},blockExplorers:{default:{name:\"Autheo Testnet Block Explorer\",url:\"https://testnet-explorer.autheo.com/\"}},testnet:!0});u();var kme=x({id:43114,name:\"Avalanche\",blockTime:1700,nativeCurrency:{decimals:18,name:\"Avalanche\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]}},blockExplorers:{default:{name:\"SnowTrace\",url:\"https://snowtrace.io\",apiUrl:\"https://api.snowtrace.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11907934}}});u();var Cme=x({id:43113,name:\"Avalanche Fuji\",nativeCurrency:{decimals:18,name:\"Avalanche Fuji\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]}},blockExplorers:{default:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\",apiUrl:\"https://api-testnet.snowtrace.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7096959}},testnet:!0});u();var nNe=8453,Tme=x({id:8333,name:\"B3\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.b3.fun/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.b3.fun\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},sourceId:nNe});u();var rNe=168587773,_me=x({id:1993,name:\"B3 Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.b3.fun/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia.explorer.b3.fun\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},testnet:!0,sourceId:rNe});u();var Mme=x({id:5165,network:\"bahamut\",name:\"Bahamut\",nativeCurrency:{name:\"Fasttoken\",symbol:\"FTN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc1.bahamut.io\",\"https://bahamut-rpc.publicnode.com\",\"https://rpc2.bahamut.io\"],webSocket:[\"wss://ws1.sahara.bahamutchain.com\",\"wss://bahamut-rpc.publicnode.com\",\"wss://ws2.sahara.bahamutchain.com\"]}},blockExplorers:{default:{name:\"Ftnscan\",url:\"https://www.ftnscan.com\",apiUrl:\"https://www.ftnscan.com/api\"}}});u();var iE=1,_V=x({...zt,id:8453,name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://basescan.org\",apiUrl:\"https://api.basescan.org/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[iE]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[iE]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[iE]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[iE]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:iE}),Ime=x({..._V,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://mainnet-preconf.base.org\"]}}});u();var Rme=x({id:123420001114,name:\"Basecamp Testnet\",nativeCurrency:{decimals:18,name:\"Camp\",symbol:\"CAMP\"},rpcUrls:{default:{http:[\"https://rpc.basecamp.t.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"basecamp\",url:\"https://basecamp.cloud.blockscout.com\"}},testnet:!0});u();var JT=5,Pme=x({...zt,id:84531,name:\"Base Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://goerli.basescan.org\",apiUrl:\"https://goerli.basescan.org/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[JT]:{address:\"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1376988},portal:{[JT]:{address:\"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA\"}},l1StandardBridge:{[JT]:{address:\"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a\"}}},testnet:!0,sourceId:JT});u();var aE=11155111,MV=x({...zt,id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://sepolia.basescan.org\",apiUrl:\"https://api-sepolia.basescan.org/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[aE]:{address:\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\"}},l2OutputOracle:{[aE]:{address:\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\"}},portal:{[aE]:{address:\"0x49f53e41452c74589e85ca1677426ba426459e85\",blockCreated:4446677}},l1StandardBridge:{[aE]:{address:\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\",blockCreated:4446677}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1059647}},testnet:!0,sourceId:aE}),Bme=x({...MV,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-preconf.base.org\"]}}});u();var Dme=x({...oi,id:627,name:\"BattleChain Testnet\",network:\"battlechain-testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.battlechain.com\"]}},blockExplorers:{default:{name:\"BattleChain Explorer\",url:\"https://explorer.testnet.battlechain.com\",blockExplorerApi:\"https://block-explorer-api.testnet.battlechain.com/api\"}},testnet:!0});u();var Fme=x({id:4337,name:\"Beam\",network:\"beam\",nativeCurrency:{decimals:18,name:\"Beam\",symbol:\"BEAM\"},rpcUrls:{default:{http:[\"https://build.onbeam.com/rpc\"],webSocket:[\"wss://build.onbeam.com/ws\"]}},blockExplorers:{default:{name:\"Beam Explorer\",url:\"https://subnets.avax.network/beam\"}},contracts:{multicall3:{address:\"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec\",blockCreated:1}}});u();var Ome=x({id:13337,name:\"Beam Testnet\",network:\"beam\",nativeCurrency:{decimals:18,name:\"Beam\",symbol:\"BEAM\"},rpcUrls:{default:{http:[\"https://build.onbeam.com/rpc/testnet\"],webSocket:[\"wss://build.onbeam.com/ws/testnet\"]}},blockExplorers:{default:{name:\"Beam Explorer\",url:\"https://subnets-test.avax.network/beam\"}},contracts:{multicall3:{address:\"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e\",blockCreated:3}},testnet:!0});u();var Lme=x({id:641230,name:\"Bear Network Chain Mainnet\",nativeCurrency:{decimals:18,name:\"BearNetworkChain\",symbol:\"BRNKC\"},rpcUrls:{default:{http:[\"https://brnkc-mainnet.bearnetwork.net\"]}},blockExplorers:{default:{name:\"BrnkScan\",url:\"https://brnkscan.bearnetwork.net\",apiUrl:\"https://brnkscan.bearnetwork.net/api\"}}});u();var Nme=x({id:751230,name:\"Bear Network Chain Testnet\",nativeCurrency:{decimals:18,name:\"tBRNKC\",symbol:\"tBRNKC\"},rpcUrls:{default:{http:[\"https://brnkc-test.bearnetwork.net\"]}},blockExplorers:{default:{name:\"BrnkTestScan\",url:\"https://brnktest-scan.bearnetwork.net\",apiUrl:\"https://brnktest-scan.bearnetwork.net/api\"}},testnet:!0});u();var Ume=x({id:80094,name:\"Berachain\",blockTime:2e3,nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},ensRegistry:{address:\"0x5b22280886a2f5e09a49bea7e320eab0e5320e28\",blockCreated:877007},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:9310021}},rpcUrls:{default:{http:[\"https://rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berascan\",url:\"https://berascan.com\"}},ensTlds:[\".bera\"],testnet:!1});u();var zme=x({id:80069,blockTime:2e3,name:\"Berachain Bepolia\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},rpcUrls:{default:{http:[\"https://bepolia.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berascan\",url:\"https://bepolia.beratrail.io\"}},testnet:!0});u();var Vme=x({id:80085,name:\"Berachain Artio\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},rpcUrls:{default:{http:[\"https://artio.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berachain\",url:\"https://artio.beratrail.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:866924}},testnet:!0});u();var Hme=x({id:80084,name:\"Berachain bArtio\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:109269},ensRegistry:{address:\"0xB0eef18971290b333450586D33dcA6cE122651D2\",blockCreated:7736794},ensUniversalResolver:{address:\"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057\",blockCreated:7736795}},ensTlds:[\".bera\"],rpcUrls:{default:{http:[\"https://bartio.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berachain bArtio Beratrail\",url:\"https://bartio.beratrail.io\"}},testnet:!0});u();var jme=x({id:11501,name:\"BEVM Mainnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet-1.bevm.io\"]}},blockExplorers:{default:{name:\"Bevmscan\",url:\"https://scan-mainnet.bevm.io\",apiUrl:\"https://scan-mainnet-api.bevm.io/api\"}}});u();var $me=x({id:3068,name:\"Bifrost Mainnet\",nativeCurrency:{name:\"BFC\",symbol:\"BFC\",decimals:18},rpcUrls:{default:{http:[\"https://public-01.mainnet.bifrostnetwork.com/rpc\"]}},blockExplorers:{default:{name:\"Bifrost Blockscout\",url:\"https://explorer.mainnet.bifrostnetwork.com\"}},testnet:!1});u();var Kme=x({id:53456,name:\"BirdLayer\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.birdlayer.xyz\",\"https://rpc1.birdlayer.xyz\"],webSocket:[\"wss://rpc.birdlayer.xyz/ws\"]}},blockExplorers:{default:{name:\"BirdLayer Explorer\",url:\"https://scan.birdlayer.xyz\"}}});u();var Gme=x({id:32520,name:\"Bitgert Mainnet\",nativeCurrency:{decimals:18,name:\"Brise\",symbol:\"Brise\"},rpcUrls:{default:{http:[\"https://rpc-bitgert.icecreamswap.com\"]}},blockExplorers:{default:{name:\"Bitgert Scan\",url:\"https://brisescan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2118034}},testnet:!1});u();var qme=x({id:96,name:\"KUB Mainnet\",nativeCurrency:{name:\"KUB Coin\",symbol:\"KUB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitkubchain.io\"]}},blockExplorers:{default:{name:\"KUB Chain Mainnet Explorer\",url:\"https://www.bkcscan.com\",apiUrl:\"https://www.bkcscan.com/api\"}}});u();var Wme=x({id:25925,name:\"Bitkub Testnet\",network:\"Bitkub Testnet\",nativeCurrency:{name:\"Bitkub Test\",symbol:\"tKUB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.bitkubchain.io\"]}},blockExplorers:{default:{name:\"Bitkub Chain Testnet Explorer\",url:\"https://testnet.bkcscan.com\",apiUrl:\"https://testnet.bkcscan.com/api\"}},testnet:!0});u();var Yme=x({id:200901,name:\"Bitlayer Mainnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitlayer.org\"],webSocket:[\"wss://ws.bitlayer.org\"]}},blockExplorers:{default:{name:\"bitlayer mainnet scan\",url:\"https://www.btrscan.com\"}},contracts:{multicall3:{address:\"0x5B256fE9e993902eCe49D138a5b1162cBb529474\",blockCreated:2421963}}});u();var Zme=x({id:200810,name:\"Bitlayer Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bitlayer.org\"],webSocket:[\"wss://testnet-ws.bitlayer.org\"]}},blockExplorers:{default:{name:\"bitlayer testnet scan\",url:\"https://testnet.btrscan.com\"}},contracts:{multicall3:{address:\"0x5B256fE9e993902eCe49D138a5b1162cBb529474\",blockCreated:4135671}},testnet:!0});u();var Xme=x({id:7171,name:\"Bitrock Mainnet\",nativeCurrency:{name:\"BROCK\",symbol:\"BROCK\",decimals:18},rpcUrls:{default:{http:[\"https://brockrpc.io\"]}},blockExplorers:{default:{name:\"Bitrock Explorer\",url:\"https://explorer.bit-rock.io\"}},testnet:!1});u();var Jme=x({id:199,name:\"BitTorrent\",network:\"bittorrent-chain-mainnet\",nativeCurrency:{name:\"BitTorrent\",symbol:\"BTT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bittorrentchain.io\"]}},blockExplorers:{default:{name:\"Bttcscan\",url:\"https://bttcscan.com\",apiUrl:\"https://api.bttcscan.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:31078552}}});u();var Qme=x({id:1028,name:\"BitTorrent Chain Testnet\",network:\"bittorrent-chain-testnet\",nativeCurrency:{name:\"BitTorrent\",symbol:\"BTT\",decimals:18},rpcUrls:{default:{http:[\"https://testrpc.bittorrentchain.io\"]}},blockExplorers:{default:{name:\"Bttcscan\",url:\"https://testnet.bttcscan.com\",apiUrl:\"https://testnet.bttcscan.com/api\"}},testnet:!0});u();var QT=1,e0e=x({...zt,id:81457,name:\"Blast\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.blast.io\"]}},blockExplorers:{default:{name:\"Blastscan\",url:\"https://blastscan.io\",apiUrl:\"https://api.blastscan.io/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:212929},l2OutputOracle:{[QT]:{address:\"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76\",blockCreated:19300358}},portal:{[QT]:{address:\"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb\",blockCreated:19300357}},l1StandardBridge:{[QT]:{address:\"0x697402166Fbf2F22E970df8a6486Ef171dbfc524\",blockCreated:19300360}}},sourceId:QT});u();var oNe=11155111,t0e=x({id:168587773,name:\"Blast Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.blast.io\"]}},blockExplorers:{default:{name:\"Blastscan\",url:\"https://sepolia.blastscan.io\",apiUrl:\"https://api-sepolia.blastscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:756690}},testnet:!0,sourceId:oNe});u();var IV=1,n0e=x({...zt,id:60808,name:\"BOB\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.gobob.xyz\"],webSocket:[\"wss://rpc.gobob.xyz\"]}},blockExplorers:{default:{name:\"BOB Explorer\",url:\"https://explorer.gobob.xyz\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:23131},l2OutputOracle:{[IV]:{address:\"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1\",blockCreated:4462615}},portal:{[IV]:{address:\"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E\",blockCreated:4462615}}},sourceId:IV});u();var r0e=x({id:288,name:\"Boba Network\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.boba.network\"]}},blockExplorers:{default:{name:\"BOBAScan\",url:\"https://bobascan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:446859}}});u();var o0e=x({id:28882,name:\"Boba Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.boba.network\"]}},blockExplorers:{default:{name:\"BOBAScan\",url:\"https://testnet.bobascan.com\"}},testnet:!0});u();var RV=11155111,i0e=x({...zt,id:808813,name:\"BOB Sepolia\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://bob-sepolia.rpc.gobob.xyz\"],webSocket:[\"wss://bob-sepolia.rpc.gobob.xyz\"]}},blockExplorers:{default:{name:\"BOB Sepolia Explorer\",url:\"https://bob-sepolia.explorer.gobob.xyz\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:35677},l2OutputOracle:{[RV]:{address:\"0x14D0069452b4AE2b250B395b8adAb771E4267d2f\",blockCreated:4462615}},portal:{[RV]:{address:\"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4\",blockCreated:4462615}}},testnet:!0,sourceId:RV});u();var a0e=x({id:11100,name:\"Bool Beta Mainnet\",nativeCurrency:{decimals:18,name:\"BOL\",symbol:\"BOL\"},rpcUrls:{default:{http:[\"https://beta-rpc-node-http.bool.network\"]}},blockExplorers:{default:{name:\"BoolScan\",url:\"https://beta-mainnet.boolscan.com/\"}},testnet:!1});u();var s0e=x({id:3637,name:\"Botanix\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.botanixlabs.com\"],webSocket:[\"wss://rpc.botanixlabs.com/ws\"]}},blockExplorers:{default:{name:\"Botanixscan\",url:\"https://botanixscan.io\"}}});u();var c0e=x({id:3636,name:\"Botanix Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://node.botanixlabs.dev\"]}},blockExplorers:{default:{name:\"Botanix Testnet Explorer\",url:\"https://testnet.botanixscan.io\"}},testnet:!0});u();var l0e=x({id:6001,name:\"BounceBit Mainnet\",nativeCurrency:{name:\"BounceBit\",symbol:\"BB\",decimals:18},rpcUrls:{default:{http:[\"https://fullnode-mainnet.bouncebitapi.com\"]}},blockExplorers:{default:{name:\"BB Scan\",url:\"https://bbscan.io\"}},testnet:!1});u();var u0e=x({id:6e3,name:\"BounceBit Testnet\",nativeCurrency:{name:\"BounceBit\",symbol:\"BB\",decimals:18},rpcUrls:{default:{http:[\"https://fullnode-testnet.bouncebitapi.com\"]}},blockExplorers:{default:{name:\"BB Scan\",url:\"https://testnet.bbscan.io\"}},testnet:!0});u();var d0e=x({id:1039,name:\"Bronos\",nativeCurrency:{decimals:18,name:\"BRO\",symbol:\"BRO\"},rpcUrls:{default:{http:[\"https://evm.bronos.org\"]}},blockExplorers:{default:{name:\"BronoScan\",url:\"https://broscan.bronos.org\"}}});u();var f0e=x({id:1038,name:\"Bronos Testnet\",nativeCurrency:{decimals:18,name:\"Bronos Coin\",symbol:\"tBRO\"},rpcUrls:{default:{http:[\"https://evm-testnet.bronos.org\"]}},blockExplorers:{default:{name:\"BronoScan\",url:\"https://tbroscan.bronos.org\"}},testnet:!0});u();var p0e=x({id:56,name:\"BNB Smart Chain\",blockTime:750,nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"BNB\"},rpcUrls:{default:{http:[\"https://56.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"BscScan\",url:\"https://bscscan.com\",apiUrl:\"https://api.bscscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15921452}}});u();var h0e=x({id:1017,name:\"BNB Greenfield Chain\",nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"BNB\"},rpcUrls:{default:{http:[\"https://greenfield-chain.bnbchain.org\"]}},blockExplorers:{default:{name:\"BNB Greenfield Mainnet Scan\",url:\"https://greenfieldscan.com\"}},testnet:!1});u();var m0e=x({id:97,name:\"BNB Smart Chain Testnet\",nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"tBNB\"},rpcUrls:{default:{http:[\"https://data-seed-prebsc-1-s1.bnbchain.org:8545\"]}},blockExplorers:{default:{name:\"BscScan\",url:\"https://testnet.bscscan.com\",apiUrl:\"https://api-testnet.bscscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:17422483}},testnet:!0});u();var g0e=x({id:223,name:\"B2\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bsquared.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.bsquared.network\"}}});u();var y0e=x({id:1123,name:\"B2 Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bsquared.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet-explorer.bsquared.network\"}},testnet:!0});u();var v0e=x({id:200901,name:\"Bitlayer\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitlayer.org\",\"https://rpc.bitlayer-rpc.com\"],webSocket:[\"wss://ws.bitlayer.org\",\"wss://ws.bitlayer-rpc.com\"]}},blockExplorers:{default:{name:\"Bitlayer(BTR) Scan\",url:\"https://www.btrscan.com\"}}});u();var x0e=x({id:200810,name:\"Bitlayer Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bitlayer.org\"],webSocket:[\"wss://testnet-ws.bitlayer.org\",\"wss://testnet-ws.bitlayer-rpc.com\"]}},blockExplorers:{default:{name:\"Bitlayer(BTR) Scan\",url:\"https://testnet.btrscan.com\"}},testnet:!0});u();var b0e=x({id:4999,name:\"BlackFort Exchange Network\",nativeCurrency:{name:\"BlackFort Token\",symbol:\"BXN\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.blackfort.network/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.blackfort.network\",apiUrl:\"https://explorer.blackfort.network/api\"}}});u();var w0e=x({id:4777,name:\"BlackFort Exchange Network Testnet\",nativeCurrency:{name:\"BlackFort Testnet Token\",symbol:\"TBXN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.blackfort.network/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.blackfort.network\",apiUrl:\"https://testnet-explorer.blackfort.network/api\"}},testnet:!0});u();var E0e=x({id:13370,name:\"Cannon\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}});u();var S0e=x({id:7700,name:\"Canto\",nativeCurrency:{decimals:18,name:\"Canto\",symbol:\"CANTO\"},rpcUrls:{default:{http:[\"https://canto.gravitychain.io\"]}},blockExplorers:{default:{name:\"Tuber.Build (Blockscout)\",url:\"https://tuber.build\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2905789}}});u();u();u();var A0e={estimateFeesPerGas:async t=>{if(!t.request?.feeCurrency)return null;let[e,n]=await Promise.all([iNe(t.client,t.request.feeCurrency),aNe(t.client,t.request.feeCurrency)]);return{maxFeePerGas:t.multiply(e-n)+n,maxPriorityFeePerGas:n}}};async function iNe(t,e){let n=await t.request({method:\"eth_gasPrice\",params:[e]});return BigInt(n)}async function aNe(t,e){let n=await t.request({method:\"eth_maxPriorityFeePerGas\",params:[e]});return BigInt(n)}u();Is();ef();u();rx();function PV(t){return t===0||t===0n||t===void 0||t===null||t===\"0\"||t===\"\"||typeof t==\"string\"&&(ls(t).toLowerCase()===\"0x\"||ls(t).toLowerCase()===\"0x00\")}function Mx(t){return!PV(t)}function sNe(t){return typeof t.maxFeePerGas<\"u\"&&typeof t.maxPriorityFeePerGas<\"u\"}function e_(t){return t.type===\"cip64\"?!0:sNe(t)&&Mx(t.feeCurrency)}var k0e={block:ox({format(t){return{transactions:t.transactions?.map(n=>typeof n==\"string\"?n:{...Ou(n),...n.gatewayFee?{gatewayFee:Io(n.gatewayFee),gatewayFeeRecipient:n.gatewayFeeRecipient}:{},feeCurrency:n.feeCurrency})}}}),transaction:Wm({format(t){if(t.type===\"0x7e\")return{isSystemTx:t.isSystemTx,mint:t.mint?Io(t.mint):void 0,sourceHash:t.sourceHash,type:\"deposit\"};let e={feeCurrency:t.feeCurrency};return t.type===\"0x7b\"?e.type=\"cip64\":(t.type===\"0x7c\"&&(e.type=\"cip42\"),e.gatewayFee=t.gatewayFee?Io(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:sx({format(t){let e={};return t.feeCurrency&&(e.feeCurrency=t.feeCurrency),e_(t)&&(e.type=\"0x7b\"),e}})};u();cx();Nu();Bo();_y();t0();Ql();il();Ko();function cNe(t,e){return e_(t)?lNe(t,e):TV(t,e)}var C0e={transaction:cNe};function lNe(t,e){dNe(t);let{chainId:n,gas:r,nonce:o,to:a,value:c,maxFeePerGas:l,maxPriorityFeePerGas:f,accessList:p,feeCurrency:m,data:g}=t,y=[yo(n),o?yo(o):\"0x\",f?yo(f):\"0x\",l?yo(l):\"0x\",r?yo(r):\"0x\",a??\"0x\",c?yo(c):\"0x\",g??\"0x\",Py(p),m,...Ym(t,e)];return Wi([\"0x7b\",nc(y)])}var uNe=tf;function dNe(t){let{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,feeCurrency:c}=t;if(e<=0)throw new Uu({chainId:e});if(a&&!Do(a))throw new Go({address:a});if(r)throw new ln(\"`gasPrice` is not a valid CIP-64 Transaction attribute.\");if(Mx(o)&&o>uNe)throw new Mc({maxFeePerGas:o});if(Mx(n)&&Mx(o)&&n>o)throw new Xl({maxFeePerGas:o,maxPriorityFeePerGas:n});if(Mx(c)&&!Do(c))throw new ln(\"`feeCurrency` MUST be a token address for CIP-64 transactions.\");if(PV(c))throw new ln(\"`feeCurrency` must be provided for CIP-64 transactions.\")}var n0={blockTime:1e3,contracts:YT,formatters:k0e,serializers:C0e,fees:A0e};var T0e=x({...n0,id:42220,name:\"Celo\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://forno.celo.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://celoscan.io\",apiUrl:\"https://api.celoscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13112599}},testnet:!1});u();var t_=17e3,_0e=x({...n0,id:44787,name:\"Alfajores\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"A-CELO\"},rpcUrls:{default:{http:[\"https://alfajores-forno.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Alfajores Explorer\",url:\"https://celo-alfajores.blockscout.com\",apiUrl:\"https://celo-alfajores.blockscout.com/api\"}},contracts:{...n0.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:14569001},portal:{[t_]:{address:\"0x82527353927d8D069b3B452904c942dA149BA381\",blockCreated:2411324}},disputeGameFactory:{[t_]:{address:\"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb\",blockCreated:2411324}},l2OutputOracle:{[t_]:{address:\"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438\",blockCreated:2411324}},l1StandardBridge:{[t_]:{address:\"0xD1B0E0581973c9eB7f886967A606b9441A897037\",blockCreated:2411324}}},testnet:!0});u();var BV=11155111,M0e=x({...n0,id:11142220,name:\"Celo Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"S-CELO\"},rpcUrls:{default:{http:[\"https://forno.celo-sepolia.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Sepolia Explorer\",url:\"https://celo-sepolia.blockscout.com/\",apiUrl:\"https://celo-sepolia.blockscout.com/api\"}},contracts:{...n0.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1},portal:{[BV]:{address:\"0x44ae3d41a335a7d05eb533029917aad35662dcc2\",blockCreated:8825790}},disputeGameFactory:{[BV]:{address:\"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa\",blockCreated:8825790}},l1StandardBridge:{[BV]:{address:\"0xec18a3c30131a0db4246e785355fbc16e2eaf408\",blockCreated:8825790}}},testnet:!0});u();var I0e=x({id:5858,name:\"Chang Chain Foundation Mainnet\",nativeCurrency:{decimals:18,name:\"CTH\",symbol:\"CTH\"},rpcUrls:{default:{http:[\"https://rpc.cthscan.com\"]}},blockExplorers:{default:{name:\"Chang Chain explorer\",url:\"https://cthscan.com\"}}});u();var R0e=x({id:88888,name:\"Chiliz Chain\",network:\"chiliz-chain\",nativeCurrency:{decimals:18,name:\"CHZ\",symbol:\"CHZ\"},rpcUrls:{default:{http:[\"https://rpc.chiliz.com\"]}},blockExplorers:{default:{name:\"Chiliz Explorer\",url:\"https://scan.chiliz.com\",apiUrl:\"https://scan.chiliz.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:8080847}}});u();var P0e=x({id:2882,name:\"Chips Network\",network:\"CHIPS\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm\"]}}});u();var B0e=x({id:4114,name:\"Citrea Mainnet\",nativeCurrency:{name:\"Citrea Bitcoin\",symbol:\"cBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.citrea.xyz\"]}},blockExplorers:{default:{name:\"Citrea Explorer\",url:\"https://explorer.mainnet.citrea.xyz\",apiUrl:\"https://explorer.mainnet.citrea.xyz/api\"}},testnet:!1});u();var D0e=x({id:5115,name:\"Citrea Testnet\",nativeCurrency:{name:\"cBTC\",symbol:\"cBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.citrea.xyz\"]}},blockExplorers:{default:{name:\"Citrea Explorer\",url:\"https://explorer.testnet.citrea.xyz\",apiUrl:\"https://explorer.testnet.citrea.xyz/api\"}},testnet:!0});u();var F0e=x({id:61,name:\"Ethereum Classic\",nativeCurrency:{decimals:18,name:\"ETC\",symbol:\"ETC\"},rpcUrls:{default:{http:[\"https://etc.rivet.link\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.com/etc/mainnet\"}}});u();var n_=1,O0e=x({...zt,id:81224,name:\"Codex\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.codex.xyz\"]}},blockExplorers:{default:{name:\"Codex Explorer\",url:\"https://explorer.codex.xyz\",apiUrl:\"https://explorer.codex.xyz/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[n_]:{address:\"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C\"}},portal:{[n_]:{address:\"0x52759C07A759c81BAab28AE1BE5A19e6450959bD\"}},l1StandardBridge:{[n_]:{address:\"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:n_});u();var r_=11155111,L0e=x({...zt,id:812242,name:\"Codex Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.codex-stg.xyz\"]}},blockExplorers:{default:{name:\"Codex Testnet Explorer\",url:\"https://explorer.codex-stg.xyz\",apiUrl:\"https://explorer.codex-stg.xyz/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[r_]:{address:\"0x390e24E8324E56f13A8d48eB938b6f9De24CD205\"}},portal:{[r_]:{address:\"0x037F161D12c829A9ca4742eEd9371830CA54fcB2\"}},l1StandardBridge:{[r_]:{address:\"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:r_,testnet:!0});u();var N0e=x({id:112,name:\"Coinbit Mainnet\",nativeCurrency:{name:\"GIDR\",symbol:\"GIDR\",decimals:18},rpcUrls:{default:{http:[\"https://coinbit-rpc-mainnet.chain.sbcrypto.app\"]}},blockExplorers:{default:{name:\"Coinbit Explorer\",url:\"https://coinbit-explorer.chain.sbcrypto.app\"}},testnet:!1});u();var U0e=x({id:52,name:\"CoinEx Mainnet\",nativeCurrency:{name:\"cet\",symbol:\"cet\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.coinex.net\"]}},blockExplorers:{default:{name:\"CoinEx Explorer\",url:\"https://www.coinex.net\"}},testnet:!1});u();var z0e=x({id:1030,name:\"Conflux eSpace\",nativeCurrency:{name:\"Conflux\",symbol:\"CFX\",decimals:18},rpcUrls:{default:{http:[\"https://evm.confluxrpc.com\"],webSocket:[\"wss://evm.confluxrpc.com/ws\"]}},blockExplorers:{default:{name:\"ConfluxScan\",url:\"https://evm.confluxscan.org\"}},contracts:{multicall3:{address:\"0xEFf0078910f638cd81996cc117bccD3eDf2B072F\",blockCreated:68602935}}});u();var V0e=x({id:71,name:\"Conflux eSpace Testnet\",network:\"cfx-espace-testnet\",testnet:!0,nativeCurrency:{name:\"Conflux\",symbol:\"CFX\",decimals:18},rpcUrls:{default:{http:[\"https://evmtestnet.confluxrpc.com\"],webSocket:[\"wss://evmtestnet.confluxrpc.com/ws\"]}},blockExplorers:{default:{name:\"ConfluxScan\",url:\"https://evmtestnet.confluxscan.org\"}},contracts:{multicall3:{address:\"0xEFf0078910f638cd81996cc117bccD3eDf2B072F\",blockCreated:117499050}}});u();var H0e=x({id:1116,name:\"Core Dao\",nativeCurrency:{decimals:18,name:\"Core\",symbol:\"CORE\"},rpcUrls:{default:{http:[\"https://rpc.coredao.org\"]}},blockExplorers:{default:{name:\"CoreDao\",url:\"https://scan.coredao.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:11907934}},testnet:!1});u();var j0e=x({id:1115,name:\"Core Testnet\",nativeCurrency:{decimals:18,name:\"tCore\",symbol:\"TCORE\"},rpcUrls:{default:{http:[\"https://rpc.test.btcs.network\"]}},blockExplorers:{default:{name:\"Core Testnet\",url:\"https://scan.test.btcs.network\",apiUrl:\"https://api.test.btcs.network/api\"}},contracts:{multicall3:{address:\"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569\",blockCreated:29350509}},testnet:!0});u();var $0e=x({id:1114,name:\"Core Testnet2\",nativeCurrency:{decimals:18,name:\"tCore2\",symbol:\"TCORE2\"},rpcUrls:{default:{http:[\"https://rpc.test2.btcs.network\"]}},blockExplorers:{default:{name:\"Core Testnet2\",url:\"https://scan.test2.btcs.network\",apiUrl:\"https://api.test2.btcs.network/api\"}},contracts:{multicall3:{address:\"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56\",blockCreated:3838600}},testnet:!0});u();var fNe=1,K0e=x({id:21e6,name:\"Corn\",nativeCurrency:{decimals:18,name:\"Bitcorn\",symbol:\"BTCN\"},rpcUrls:{default:{http:[\"https://21000000.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Corn Explorer\",url:\"https://cornscan.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3228}},sourceId:fNe});u();var pNe=11155111,G0e=x({id:21000001,name:\"Corn Testnet\",nativeCurrency:{decimals:18,name:\"Bitcorn\",symbol:\"BTCN\"},rpcUrls:{default:{http:[\"https://21000001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Corn Testnet Explorer\",url:\"https://testnet.cornscan.io\",apiUrl:\"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4886}},testnet:!0,sourceId:pNe});u();var q0e=x({id:86608,name:\"CpChain\",nativeCurrency:{decimals:18,name:\"CpChain\",symbol:\"CP\"},rpcUrls:{default:{http:[\"https://rpc.cpchain.com\"]}},blockExplorers:{default:{name:\"CpChain Explorer\",url:\"https://explorer.cpchain.com\"}},testnet:!1});u();var W0e=x({id:44,name:\"Crab Network\",nativeCurrency:{decimals:18,name:\"Crab Network Native Token\",symbol:\"CRAB\"},rpcUrls:{default:{http:[\"https://crab-rpc.darwinia.network\"],webSocket:[\"wss://crab-rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://crab-scan.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3032593}}});u();var Y0e=x({id:66665,name:\"Creator\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.creatorchain.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.creatorchain.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},testnet:!0});u();var Z0e=x({id:102032,name:\"Creditcoin Devnet\",nativeCurrency:{name:\"Devnet CTC\",symbol:\"devCTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cc3-devnet.creditcoin.network\"],webSocket:[\"wss://rpc.cc3-devnet.creditcoin.network/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin-devnet.blockscout.com\",apiUrl:\"https://creditcoin3-dev.subscan.io\"}},testnet:!0});u();var X0e=x({id:102030,name:\"Creditcoin\",nativeCurrency:{name:\"Creditcoin\",symbol:\"CTC\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet3.creditcoin.network\"],webSocket:[\"wss://mainnet3.creditcoin.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin.blockscout.com\",apiUrl:\"https://creditcoin.blockscout.com/api\"}},testnet:!1});u();var J0e=x({id:102031,name:\"Creditcoin Testnet\",nativeCurrency:{name:\"Creditcoin Testnet\",symbol:\"tCTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cc3-testnet.creditcoin.network\"],webSocket:[\"wss://rpc.cc3-testnet.creditcoin.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin-testnet.blockscout.com\",apiUrl:\"https://creditcoin-testnet.blockscout.com/api\"}},testnet:!0});u();var Q0e=x({id:25,name:\"Cronos Mainnet\",nativeCurrency:{decimals:18,name:\"Cronos\",symbol:\"CRO\"},rpcUrls:{default:{http:[\"https://evm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos Explorer\",url:\"https://explorer.cronos.org\",apiUrl:\"https://explorer-api.cronos.org/mainnet/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1963112}}});u();var e1e=x({id:338,name:\"Cronos Testnet\",nativeCurrency:{decimals:18,name:\"CRO\",symbol:\"tCRO\"},rpcUrls:{default:{http:[\"https://evm-t3.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos Explorer (Testnet)\",url:\"https://explorer.cronos.org/testnet\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:10191251}},testnet:!0});u();var t1e=x({id:388,name:\"Cronos zkEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Cronos zkEVM CRO\",symbol:\"zkCRO\"},rpcUrls:{default:{http:[\"https://mainnet.zkevm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos zkEVM (Mainnet) Chain Explorer\",url:\"https://explorer.zkevm.cronos.org\"}},contracts:{multicall3:{address:\"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa\",blockCreated:72}}});u();var n1e=x({id:282,name:\"Cronos zkEVM Testnet\",nativeCurrency:{decimals:18,name:\"Cronos zkEVM Test Coin\",symbol:\"zkTCRO\"},rpcUrls:{default:{http:[\"https://testnet.zkevm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos zkEVM Testnet Explorer\",url:\"https://explorer.zkevm.cronos.org/testnet\"}},testnet:!0});u();var r1e=x({id:3737,name:\"Crossbell\",nativeCurrency:{decimals:18,name:\"CSB\",symbol:\"CSB\"},rpcUrls:{default:{http:[\"https://rpc.crossbell.io\"]}},blockExplorers:{default:{name:\"CrossScan\",url:\"https://scan.crossbell.io\",apiUrl:\"https://scan.crossbell.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:38246031}}});u();var o1e=x({id:4158,name:\"CrossFi Mainnet\",nativeCurrency:{decimals:18,name:\"CrossFi\",symbol:\"XFI\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.ms\"]}},blockExplorers:{default:{name:\"CrossFi Blockchain Explorer\",url:\"https://xfiscan.com\"}},testnet:!1});u();var i1e=x({id:33111,name:\"Curtis\",nativeCurrency:{name:\"ApeCoin\",symbol:\"APE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.curtis.apechain.com\"]}},blockExplorers:{default:{name:\"Curtis Explorer\",url:\"https://explorer.curtis.apechain.com\"}},testnet:!0});u();var a1e=x({id:7560,name:\"Cyber\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://cyber.alt.technology\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://cyberscan.co\",apiUrl:\"https://cyberscan.co/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}});u();var s1e=x({id:111557560,name:\"Cyber Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://cyber-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet.cyberscan.co\",apiUrl:\"https://testnet.cyberscan.co/api\"}},contracts:{multicall3:{address:\"0xffc391F0018269d4758AEA1a144772E8FB99545E\",blockCreated:304545}},testnet:!0});u();var c1e=x({id:824,name:\"Daily Network Mainnet\",nativeCurrency:{decimals:18,name:\"Daily\",symbol:\"DLY\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.dailycrypto.net\"]}},blockExplorers:{default:{name:\"Daily Mainnet Explorer\",url:\"https://explorer.mainnet.dailycrypto.net\"}},testnet:!1});u();var l1e=x({id:825,name:\"Daily Network Testnet\",nativeCurrency:{decimals:18,name:\"Daily\",symbol:\"DLY\"},rpcUrls:{default:{http:[\"https://rpc.testnet.dailycrypto.net\"]}},blockExplorers:{default:{name:\"Daily Testnet Explorer\",url:\"https://explorer.testnet.dailycrypto.net\"}},testnet:!0});u();var u1e=x({id:46,name:\"Darwinia Network\",nativeCurrency:{decimals:18,name:\"RING\",symbol:\"RING\"},rpcUrls:{default:{http:[\"https://rpc.darwinia.network\"],webSocket:[\"wss://rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:69420}}});u();var d1e=x({id:55931,name:\"Datahaven Testnet\",nativeCurrency:{decimals:18,name:\"MOCK\",symbol:\"MOCK\"},rpcUrls:{default:{http:[\"https://services.datahaven-testnet.network/testnet\"],webSocket:[\"wss://services.datahaven-testnet.network/testnet\"]}},blockExplorers:{default:{name:\"DhScan\",url:\"https://testnet.dhscan.io/\",apiUrl:\"https://testnet.dhscan.io/api-docs\"}},contracts:{},testnet:!0});u();var f1e=x({id:20240603,name:\"DBK chain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.dbkchain.io\"]}},blockExplorers:{default:{name:\"DBK Chain Explorer\",url:\"https://scan.dbkchain.io\"}},testnet:!1});u();var p1e=x({...zt,id:2716446429837e3,name:\"Dchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://dchain-2716446429837000-1.jsonrpc.sagarpc.io\"]}},blockExplorers:{default:{name:\"Dchain Explorer\",url:\"https://dchain-2716446429837000-1.sagaexplorer.io\",apiUrl:\"https://api-dchain-2716446429837000-1.sagaexplorer.io/api\"}},contracts:{...zt.contracts}});u();var h1e=x({...zt,id:2713017997578e3,name:\"Dchain Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io\"]}},blockExplorers:{default:{name:\"Dchain Explorer\",url:\"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io\",apiUrl:\"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api\"}},contracts:{...zt.contracts},testnet:!0});u();var m1e=x({id:1130,network:\"defichain-evm\",name:\"DeFiChain EVM Mainnet\",nativeCurrency:{name:\"DeFiChain\",symbol:\"DFI\",decimals:18},rpcUrls:{default:{http:[\"https://eth.mainnet.ocean.jellyfishsdk.com\"]}},blockExplorers:{default:{name:\"DeFiScan\",url:\"https://meta.defiscan.live\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:137852}}});u();var g1e=x({id:1131,network:\"defichain-evm-testnet\",name:\"DeFiChain EVM Testnet\",nativeCurrency:{name:\"DeFiChain\",symbol:\"DFI\",decimals:18},rpcUrls:{default:{http:[\"https://eth.testnet.ocean.jellyfishsdk.com\"]}},blockExplorers:{default:{name:\"DeFiScan\",url:\"https://meta.defiscan.live/?network=TestNet\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:156462}},testnet:!0});u();var y1e=x({id:666666666,name:\"Degen\",nativeCurrency:{decimals:18,name:\"Degen\",symbol:\"DEGEN\"},rpcUrls:{default:{http:[\"https://rpc.degen.tips\"],webSocket:[\"wss://rpc.degen.tips\"]}},blockExplorers:{default:{name:\"Degen Chain Explorer\",url:\"https://explorer.degen.tips\",apiUrl:\"https://explorer.degen.tips/api/v2\"}}});u();var v1e=x({id:53935,name:\"DFK Chain\",nativeCurrency:{decimals:18,name:\"Jewel\",symbol:\"JEWEL\"},rpcUrls:{default:{http:[\"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc\"]}},blockExplorers:{default:{name:\"DFKSubnetScan\",url:\"https://subnets.avax.network/defi-kingdoms\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14790551}}});u();var x1e=x({id:15,name:\"Diode Prenet\",nativeCurrency:{decimals:18,name:\"DIODE\",symbol:\"DIODE\"},rpcUrls:{default:{http:[\"https://prenet.diode.io:8443\"],webSocket:[\"wss://prenet.diode.io:8443/ws\"]}},blockExplorers:{default:{name:\"Diode Explorer\",url:\"https://diode.io/prenet\"}},testnet:!1});u();var b1e=x({id:513100,name:\"DisChain\",nativeCurrency:{decimals:18,name:\"DIS\",symbol:\"DIS\"},rpcUrls:{default:{http:[\"https://rpc.dischain.xyz\"]}},blockExplorers:{default:{name:\"DisChain Explorer\",url:\"https://www.oklink.com/dis\"}}});u();var w1e=x({id:53457,name:\"DODOchain Testnet\",nativeCurrency:{decimals:18,name:\"DODO\",symbol:\"DODO\"},rpcUrls:{default:{http:[\"https://dodochain-testnet.alt.technology\"],webSocket:[\"wss://dodochain-testnet.alt.technology/ws\"]}},blockExplorers:{default:{name:\"DODOchain Testnet (Sepolia) Explorer\",url:\"https://testnet-scan.dodochain.com\"}},testnet:!0});u();var E1e=x({id:2e3,name:\"Dogechain\",nativeCurrency:{decimals:18,name:\"Wrapped Dogecoin\",symbol:\"WDOGE\"},rpcUrls:{default:{http:[\"https://rpc.dogechain.dog\"]}},blockExplorers:{default:{name:\"DogeChainExplorer\",url:\"https://explorer.dogechain.dog\",apiUrl:\"https://explorer.dogechain.dog/api\"}},contracts:{multicall3:{address:\"0x68a8609a60a008EFA633dfdec592c03B030cC508\",blockCreated:25384031}}});u();var S1e=x({id:97476,name:\"Doma Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc-testnet.doma.xyz\"]}},blockExplorers:{default:{name:\"Doma Testnet Explorer\",url:\"https://explorer-testnet.doma.xyz\"}},testnet:!0});u();var A1e=x({id:42026,name:\"Donatuz\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.donatuz.com\"]}},blockExplorers:{default:{name:\"Donatuz Explorer\",url:\"https://explorer.donatuz.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}});u();var k1e=x({id:7979,name:\"DOS Chain\",nativeCurrency:{decimals:18,name:\"DOS Chain\",symbol:\"DOS\"},rpcUrls:{default:{http:[\"https://main.doschain.com\"]}},blockExplorers:{default:{name:\"DOS Chain Explorer\",url:\"https://doscan.io\",apiUrl:\"https://api.doscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:161908}}});u();var C1e=x({id:3939,name:\"DOS Chain Testnet\",nativeCurrency:{decimals:18,name:\"DOS Chain Testnet\",symbol:\"DOS\"},rpcUrls:{default:{http:[\"https://test.doschain.com\"]}},blockExplorers:{default:{name:\"DOS Chain Testnet Explorer\",url:\"https://test.doscan.io\",apiUrl:\"https://api-test.doscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:69623}},testnet:!0});u();var T1e=x({id:23451,name:\"DreyerX Mainnet\",nativeCurrency:{name:\"DreyerX\",symbol:\"DRX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.dreyerx.com\"]}},blockExplorers:{default:{name:\"DreyerX Scan\",url:\"https://scan.dreyerx.com\"}}});u();u();u();_y();function _1e({chain:t,currentChainId:e}){if(!t)throw new zT;if(e!==t.id)throw new UT({chain:t,currentChainId:e})}var R1e=x({id:23452,name:\"DreyerX Testnet\",nativeCurrency:{name:\"DreyerX\",symbol:\"DRX\",decimals:18},rpcUrls:{default:{http:[\"http://testnet-rpc.dreyerx.com\"]}},blockExplorers:{default:{name:\"DreyerX Testnet Scan\",url:\"https://testnet-scan.dreyerx.com\"}},testnet:!0});u();var P1e=x({id:555888,name:\"DustBoy IoT\",nativeCurrency:{name:\"Ether\",symbol:\"DST\",decimals:18},rpcUrls:{default:{http:[\"https://dustboy-rpc.jibl2.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://dustboy.jibl2.com\",apiUrl:\"https://dustboy.jibl2.com/api\"}},contracts:{multicall3:{address:\"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a\",blockCreated:526569}},testnet:!1});u();var B1e=x({id:1100,name:\"Dymension\",nativeCurrency:{name:\"DYM\",symbol:\"DYM\",decimals:18},rpcUrls:{default:{http:[\"https://dymension-evm-rpc.publicnode.com\"],webSocket:[\"wss://dymension-evm-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Dym FYI\",url:\"https://dym.fyi\"}},testnet:!1});u();var D1e=x({id:714,name:\"Eden\",nativeCurrency:{name:\"TIA\",symbol:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.eden.gateway.fm\"]}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://eden.blockscout.com\",apiUrl:\"https://eden.blockscout.com/api\"}}});u();var F1e=x({id:5424,name:\"edeXa\",nativeCurrency:{name:\"edeXa\",symbol:\"EDX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.edexa.network\"]}},blockExplorers:{default:{name:\"edeXa Explorer\",url:\"https://explorer.edexa.network\",apiUrl:\"https://explorer.edexa.network/api/v2\"}}});u();var O1e=x({id:1995,name:\"edeXa Testnet\",nativeCurrency:{name:\"edeXa\",symbol:\"tEDX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.edexa.network\"]}},blockExplorers:{default:{name:\"edeXa Testnet Explorer\",url:\"https://explorer.testnet.edexa.network\",apiUrl:\"https://explorer.testnet.edexa.network/api/v2\"}},testnet:!0});u();var L1e=x({id:2026,name:\"Edgeless Network\",nativeCurrency:{name:\"Edgeless Wrapped ETH\",symbol:\"EwETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.edgeless.network/http\"],webSocket:[\"wss://rpc.edgeless.network/ws\"]}},blockExplorers:{default:{name:\"Edgeless Explorer\",url:\"https://explorer.edgeless.network\"}}});u();var N1e=x({id:202,name:\"Edgeless Testnet\",nativeCurrency:{name:\"Edgeless Wrapped ETH\",symbol:\"EwETH\",decimals:18},rpcUrls:{default:{http:[\"https://edgeless-testnet.rpc.caldera.xyz/http\"],webSocket:[\"wss://edgeless-testnet.rpc.caldera.xyz/ws\"]}},blockExplorers:{default:{name:\"Edgeless Testnet Explorer\",url:\"https://testnet.explorer.edgeless.network\"}},testnet:!0});u();var U1e=x({id:2021,name:\"Edgeware EdgeEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Edgeware\",symbol:\"EDG\"},rpcUrls:{default:{http:[\"https://edgeware-evm.jelliedowl.net\"]}},blockExplorers:{default:{name:\"Edgscan by Bharathcoorg\",url:\"https://edgscan.live\",apiUrl:\"https://edgscan.live/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:18117872}}});u();var z1e=x({id:2022,name:\"Beresheet BereEVM Testnet\",nativeCurrency:{decimals:18,name:\"Testnet EDG\",symbol:\"tEDG\"},rpcUrls:{default:{http:[\"https://beresheet-evm.jelliedowl.net\"]}},blockExplorers:{default:{name:\"Edgscan by Bharathcoorg\",url:\"https://testnet.edgscan.live\",apiUrl:\"https://testnet.edgscan.live/api\"}},testnet:!0});u();var V1e=x({id:41923,name:\"EDU Chain\",nativeCurrency:{decimals:18,name:\"EDU\",symbol:\"EDU\"},rpcUrls:{default:{http:[\"https://rpc.edu-chain.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"EDU Chain Explorer\",url:\"https://educhain.blockscout.com/\"}},testnet:!1});u();var H1e=x({id:656476,name:\"EDU Chain Testnet\",nativeCurrency:{decimals:18,name:\"EDU\",symbol:\"EDU\"},rpcUrls:{default:{http:[\"https://rpc.open-campus-codex.gelato.digital/\"],webSocket:[\"wss://ws.open-campus-codex.gelato.digital\"]}},blockExplorers:{default:{name:\"EDU Chain Testnet Explorer\",url:\"https://opencampus-codex.blockscout.com\",apiUrl:\"https://opencampus-codex.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:15514133}},testnet:!0});u();var j1e=x({id:20,name:\"Elastos Smart Chain\",nativeCurrency:{name:\"ELA\",symbol:\"ELA\",decimals:18},rpcUrls:{default:{http:[\"https://api2.elastos.io/eth\"]}},blockExplorers:{default:{name:\"Elastos Explorer\",url:\"https://esc.elastos.io\"}},testnet:!1});u();var $1e=x({id:21,name:\"Elastos Smart Chain Testnet\",nativeCurrency:{name:\"tELA\",symbol:\"tELA\",decimals:18},rpcUrls:{default:{http:[\"https://api-testnet.elastos.io/eth\"]}},blockExplorers:{default:{name:\"Elastos Explorer\",url:\"https://esc-testnet.elastos.io\"}},testnet:!0});u();var K1e=x({id:52014,name:\"Electroneum Mainnet\",nativeCurrency:{name:\"ETN\",symbol:\"ETN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.electroneum.com\"]}},blockExplorers:{default:{name:\"Electroneum Block Explorer\",url:\"https://blockexplorer.electroneum.com\"}},testnet:!1});u();var G1e=x({id:5201420,name:\"Electroneum Testnet\",nativeCurrency:{name:\"ETN\",symbol:\"ETN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.electroneum.com\"]}},blockExplorers:{default:{name:\"Electroneum Block Explorer\",url:\"https://blockexplorer.thesecurityteam.rocks\"}},testnet:!0});u();var q1e=x({...zt,id:1338,name:\"Elysium Testnet\",nativeCurrency:{decimals:18,name:\"LAVA\",symbol:\"LAVA\"},rpcUrls:{default:{http:[\"https://elysium-test-rpc.vulcanforged.com\"]}},blockExplorers:{default:{name:\"Elysium testnet explorer\",url:\"https://elysium-explorer.vulcanforged.com\"}},testnet:!0});u();var W1e=x({id:246,name:\"Energy Mainnet\",nativeCurrency:{name:\"EWT\",symbol:\"EWT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.energyweb.org\"]}},blockExplorers:{default:{name:\"EnergyWeb Explorer\",url:\"https://explorer.energyweb.org\"}},testnet:!1});u();var Y1e=x({id:173,name:\"ENI Mainnet\",nativeCurrency:{decimals:18,name:\"ENI\",symbol:\"ENI\"},rpcUrls:{default:{http:[\"https://rpc.eniac.network\"]}},blockExplorers:{default:{name:\"ENI Explorer\",url:\"https://scan.eniac.network\"}},testnet:!1});u();var Z1e=x({id:6912115,name:\"ENI Testnet\",nativeCurrency:{decimals:18,name:\"ENI Testnet Token\",symbol:\"ENI\"},rpcUrls:{default:{http:[\"https://rpc-testnet.eniac.network\"]}},blockExplorers:{default:{name:\"ENI Testnet Explorer\",url:\"https://scan-testnet.eniac.network\"}},testnet:!0});u();var X1e=x({id:119,name:\"ENULS Mainnet\",nativeCurrency:{decimals:18,name:\"NULS\",symbol:\"NULS\"},rpcUrls:{default:{http:[\"https://evmapi2.nuls.io\"]}},blockExplorers:{default:{name:\"ENULS Explorer\",url:\"https://evmscan.nuls.io\"}},testnet:!1});u();var J1e=x({id:7332,name:\"Horizen EON\",nativeCurrency:{decimals:18,name:\"ZEN\",symbol:\"ZEN\"},rpcUrls:{default:{http:[\"https://eon-rpc.horizenlabs.io/ethv1\"]}},blockExplorers:{default:{name:\"EON Explorer\",url:\"https://eon-explorer.horizenlabs.io\"}},contracts:{}});u();var Q1e=x({id:17777,name:\"EOS EVM\",nativeCurrency:{decimals:18,name:\"EOS\",symbol:\"EOS\"},rpcUrls:{default:{http:[\"https://api.evm.eosnetwork.com\"]}},blockExplorers:{default:{name:\"EOS EVM Explorer\",url:\"https://explorer.evm.eosnetwork.com\",apiUrl:\"https://explorer.evm.eosnetwork.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7943933}}});u();var ege=x({id:15557,name:\"EOS EVM Testnet\",nativeCurrency:{decimals:18,name:\"EOS\",symbol:\"EOS\"},rpcUrls:{default:{http:[\"https://api.testnet.evm.eosnetwork.com\"]}},blockExplorers:{default:{name:\"EOS EVM Testnet Explorer\",url:\"https://explorer.testnet.evm.eosnetwork.com\",apiUrl:\"https://explorer.testnet.evm.eosnetwork.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:9067940}},testnet:!0});u();var tge=x({id:140,name:\"Eteria\",nativeCurrency:{name:\"Eteria\",symbol:\"ERA\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.eteria.io/v1\"]}},blockExplorers:{default:{name:\"Eteria Explorer\",url:\"https://explorer.eteria.io\",apiUrl:\"https://explorer.eteria.io/api\"}}});u();var nge=x({id:42793,name:\"Etherlink\",blockTime:4830,nativeCurrency:{decimals:18,name:\"Tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.mainnet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink\",url:\"https://explorer.etherlink.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:33899}}});u();var rge=x({id:127823,name:\"Etherlink Shadownet Testnet\",nativeCurrency:{decimals:18,name:\"tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.shadownet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink Shadownet Testnet Explorer\",url:\"https://shadownet.explorer.etherlink.com\"}},testnet:!0});u();var oge=x({id:128123,name:\"Etherlink Testnet\",nativeCurrency:{decimals:18,name:\"Tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.ghostnet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink Testnet\",url:\"https://testnet.explorer.etherlink.com\"}},testnet:!0});u();var ige=x({id:183,name:\"Ethernity\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.ethernitychain.io\"]}},blockExplorers:{default:{name:\"Ethernity Explorer\",url:\"https://ernscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1});u();var age=x({id:20256789,name:\"ETP Mainnet\",nativeCurrency:{decimals:18,name:\"ETP Chain Native Token\",symbol:\"ETP\"},rpcUrls:{default:{http:[\"https://rpc.etpscan.xyz\"]}},blockExplorers:{default:{name:\"ETP Scan\",url:\"https://etpscan.xyz\"}}});u();var sge=x({id:9001,name:\"Evmos\",nativeCurrency:{decimals:18,name:\"Evmos\",symbol:\"EVMOS\"},rpcUrls:{default:{http:[\"https://eth.bd.evmos.org:8545\"]}},blockExplorers:{default:{name:\"Evmos Block Explorer\",url:\"https://escan.live\"}}});u();var cge=x({id:9e3,name:\"Evmos Testnet\",nativeCurrency:{decimals:18,name:\"Evmos\",symbol:\"EVMOS\"},rpcUrls:{default:{http:[\"https://eth.bd.evmos.dev:8545\"]}},blockExplorers:{default:{name:\"Evmos Testnet Block Explorer\",url:\"https://evm.evmos.dev/\"}},testnet:!0});u();var lge=x({id:22052002,name:\"Excelon Mainnet\",network:\"XLON\",nativeCurrency:{decimals:18,name:\"Excelon\",symbol:\"xlon\"},rpcUrls:{default:{http:[\"https://edgewallet1.xlon.org\"]}},blockExplorers:{default:{name:\"Excelon explorer\",url:\"https://explorer.excelon.io\"}}});u();var uge=x({id:2,name:\"Expanse Network\",nativeCurrency:{decimals:18,name:\"EXP\",symbol:\"EXP\"},rpcUrls:{default:{http:[\"https://node.expanse.tech\"]}},blockExplorers:{default:{name:\"Expanse Explorer\",url:\"https://explorer.expanse.tech\"}},testnet:!1});u();var dge=x({id:7200,name:\"exSat Network\",nativeCurrency:{decimals:18,name:\"BTC\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://evm.exsat.network\"]}},blockExplorers:{default:{name:\"exSat Explorer\",url:\"https://scan.exsat.network\",apiUrl:\"https://scan.exsat.network/api\"}}});u();var fge=x({id:839999,name:\"exSat Testnet\",nativeCurrency:{decimals:18,name:\"BTC\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://evm-tst3.exsat.network\"]}},blockExplorers:{default:{name:\"exSat Explorer\",url:\"https://scan-testnet.exsat.network\",apiUrl:\"https://scan-testnet.exsat.network/api\"}},testnet:!0});u();var pge=x({id:250,name:\"Fantom\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://250.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"FTMScan\",url:\"https://ftmscan.com\",apiUrl:\"https://api.ftmscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:33001987}}});u();var hge=x({id:64240,name:\"Fantom Sonic Open Testnet\",network:\"fantom-sonic-testnet\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://rpcapi.sonic.fantom.network\"]}},blockExplorers:{default:{name:\"Fantom Sonic Open Testnet Explorer\",url:\"https://public-sonic.fantom.network\"}},testnet:!0});u();var mge=x({id:4002,name:\"Fantom Testnet\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://rpc.testnet.fantom.network\"]}},blockExplorers:{default:{name:\"FTMScan\",url:\"https://testnet.ftmscan.com\",apiUrl:\"https://testnet.ftmscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:8328688}},testnet:!0});u();var gge=x({id:12306,name:\"Fibo Chain\",nativeCurrency:{decimals:18,name:\"fibo\",symbol:\"FIBO\"},rpcUrls:{default:{http:[\"https://network.hzroc.art\"]}},blockExplorers:{default:{name:\"FiboScan\",url:\"https://scan.fibochain.org\"}}});u();var yge=x({id:314,name:\"Filecoin Mainnet\",nativeCurrency:{decimals:18,name:\"filecoin\",symbol:\"FIL\"},rpcUrls:{default:{http:[\"https://api.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://filfox.info/en\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3328594}}});u();var vge=x({id:314159,name:\"Filecoin Calibration\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filscan\",url:\"https://calibration.filscan.io\"}},testnet:!0});u();var xge=x({id:3141,name:\"Filecoin Hyperspace\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.hyperspace.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://hyperspace.filfox.info/en\"}},testnet:!0});u();var bge=x({id:253368190,name:\"Flame\",network:\"flame\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.flame.astria.org\"],webSocket:[\"wss://ws.flame.astria.org\"]}},blockExplorers:{default:{name:\"Flame Explorer\",url:\"https://explorer.flame.astria.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:6829148}}});u();var wge=x({id:14,name:\"Flare Mainnet\",nativeCurrency:{decimals:18,name:\"Flare\",symbol:\"FLR\"},rpcUrls:{default:{http:[\"https://flare-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Flare Explorer\",url:\"https://flare-explorer.flare.network\",apiUrl:\"https://flare-explorer.flare.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3002461}}});u();var Ege=x({id:114,name:\"Flare Testnet Coston2\",nativeCurrency:{decimals:18,name:\"Coston2 Flare\",symbol:\"C2FLR\"},rpcUrls:{default:{http:[\"https://coston2-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Coston2 Explorer\",url:\"https://coston2-explorer.flare.network\",apiUrl:\"https://coston2-explorer.flare.network/api\"}},testnet:!0});u();var Sge=x({id:747,name:\"Flow EVM Mainnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://mainnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Mainnet Explorer\",url:\"https://evm.flowscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6205}},blockTime:800});u();var Age=x({id:646,name:\"Flow EVM Previewnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://previewnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Previewnet Explorer\",url:\"https://previewnet.flowdiver.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6205}},testnet:!0});u();var kge=x({id:545,name:\"Flow EVM Testnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://testnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Flow Diver\",url:\"https://evm-testnet.flowscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:137518}},testnet:!0,blockTime:800});u();var Cge=x({id:9999999,name:\"Fluence\",nativeCurrency:{name:\"FLT\",symbol:\"FLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.fluence.dev\"],webSocket:[\"wss://ws.mainnet.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.mainnet.fluence.dev\",apiUrl:\"https://blockscout.mainnet.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:207583}}});u();var Tge=x({id:123420000220,name:\"Fluence Stage\",nativeCurrency:{name:\"tFLT\",symbol:\"tFLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stage.fluence.dev\"],webSocket:[\"wss://ws.stage.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.stage.fluence.dev\",apiUrl:\"https://blockscout.stage.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:83227}},testnet:!0});u();var _ge=x({id:52164803,name:\"Fluence Testnet\",nativeCurrency:{name:\"tFLT\",symbol:\"tFLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.fluence.dev\"],webSocket:[\"wss://ws.testnet.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.testnet.fluence.dev\",apiUrl:\"https://blockscout.testnet.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96424}},testnet:!0});u();var Mge=x({id:25363,name:\"Fluent\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Explorer\",url:\"https://fluentscan.xyz\"}},testnet:!1});u();var Ige=x({id:20993,name:\"Fluent Devnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.devnet.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Devnet Explorer\",url:\"https://devnet.fluentscan.xyz\"}},testnet:!0});u();var Rge=x({id:20994,name:\"Fluent Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Testnet Explorer\",url:\"https://testnet.fluentscan.xyz\"}},testnet:!0});u();var Ix=1,Pge=x({id:478,name:\"Form Network\",nativeCurrency:{decimals:18,name:\"Ethereum\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.form.network/http\"],webSocket:[\"wss://rpc.form.network/ws\"]}},blockExplorers:{default:{name:\"Form Explorer\",url:\"https://explorer.form.network\"}},contracts:{...zt.contracts,addressManager:{[Ix]:{address:\"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B\"}},l1CrossDomainMessenger:{[Ix]:{address:\"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c\"}},l2OutputOracle:{[Ix]:{address:\"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E\"}},portal:{[Ix]:{address:\"0x4E259Ee5F4136408908160dD32295A5031Fa426F\"}},l1StandardBridge:{[Ix]:{address:\"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},sourceId:Ix});u();var Bge=x({id:984122,name:\"Forma\",network:\"forma\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.forma.art\"],webSocket:[\"wss://ws.forma.art\"]}},blockExplorers:{default:{name:\"Forma Explorer\",url:\"https://explorer.forma.art\"}},contracts:{multicall3:{address:\"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079\",blockCreated:252705}}});u();var Rx=11155111,Dge=x({id:132902,name:\"Form Testnet\",nativeCurrency:{decimals:18,name:\"Ethereum\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia-rpc.form.network/http\"],webSocket:[\"wss://sepolia-rpc.form.network/ws\"]}},blockExplorers:{default:{name:\"Form Testnet Explorer\",url:\"https://sepolia-explorer.form.network\"}},contracts:{...zt.contracts,addressManager:{[Rx]:{address:\"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373\"}},l1CrossDomainMessenger:{[Rx]:{address:\"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa\"}},l2OutputOracle:{[Rx]:{address:\"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2\"}},portal:{[Rx]:{address:\"0x60377e3cE15dF4CCA24c4beF076b60314240b032\"}},l1StandardBridge:{[Rx]:{address:\"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},testnet:!0,sourceId:Rx});u();var Fge=x({id:80931,name:\"Forta Chain\",nativeCurrency:{symbol:\"FORT\",name:\"FORT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz\"]}},blockExplorers:{default:{name:\"Forta Explorer\",url:\"https://explorer.forta.org\"}}});u();var Oge=x({id:31337,name:\"Foundry\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"],webSocket:[\"ws://127.0.0.1:8545\"]}}});u();var o_=1,Lge=x({...zt,id:252,name:\"Fraxtal\",nativeCurrency:{name:\"Frax\",symbol:\"FRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.frax.com\"]}},blockExplorers:{default:{name:\"fraxscan\",url:\"https://fraxscan.com\",apiUrl:\"https://api.fraxscan.com/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[o_]:{address:\"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[o_]:{address:\"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D\",blockCreated:19135323}},l1StandardBridge:{[o_]:{address:\"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2\",blockCreated:19135323}}},sourceId:o_});u();var i_=17e3,Nge=x({...zt,id:2522,name:\"Fraxtal Testnet\",nativeCurrency:{name:\"Frax\",symbol:\"FRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.frax.com\"]}},blockExplorers:{default:{name:\"fraxscan testnet\",url:\"https://holesky.fraxscan.com\",apiUrl:\"https://api-holesky.fraxscan.com/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[i_]:{address:\"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[i_]:{address:\"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d\",blockCreated:318416}},l1StandardBridge:{[i_]:{address:\"0x0BaafC217162f64930909aD9f2B27125121d6332\",blockCreated:318416}}},sourceId:i_,testnet:!0});u();var hNe=1,Uge=x({...zt,id:33979,name:\"Funki\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.funkichain.com\"]}},blockExplorers:{default:{name:\"Funki Mainnet Explorer\",url:\"https://funkiscan.io\"}},contracts:{...zt.contracts},sourceId:hNe});u();var mNe=11155111,zge=x({...zt,id:3397901,network:\"funkiSepolia\",name:\"Funki Sepolia Sandbox\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://funki-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Funki Sepolia Sandbox Explorer\",url:\"https://sepolia-sandbox.funkichain.com/\"}},testnet:!0,contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204}},sourceId:mNe});u();var Vge=x({id:122,name:\"Fuse\",nativeCurrency:{name:\"Fuse\",symbol:\"FUSE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fuse.io\"]}},blockExplorers:{default:{name:\"Fuse Explorer\",url:\"https://explorer.fuse.io\",apiUrl:\"https://explorer.fuse.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:16146628}}});u();var Hge=x({id:123,name:\"Fuse Sparknet\",nativeCurrency:{name:\"Spark\",symbol:\"SPARK\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fusespark.io\"]}},blockExplorers:{default:{name:\"Sparkent Explorer\",url:\"https://explorer.fusespark.io\",apiUrl:\"https://explorer.fusespark.io/api\"}}});u();var jge=x({id:32659,name:\"Fusion Mainnet\",nativeCurrency:{name:\"Fusion\",symbol:\"FSN\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.fusionnetwork.io\"],webSocket:[\"wss://mainnet.fusionnetwork.io\"]}},blockExplorers:{default:{name:\"FSNscan\",url:\"https://fsnscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10441605}},testnet:!1});u();var $ge=x({id:46688,name:\"Fusion Testnet\",nativeCurrency:{name:\"Fusion\",symbol:\"FSN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.fusionnetwork.io\"],webSocket:[\"wss://testnet.fusionnetwork.io\"]}},blockExplorers:{default:{name:\"FSNscan\",url:\"https://testnet.fsnscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10428309}},testnet:!0});u();var a_=17e3,Kge=x({...zt,name:\"Garnet Testnet\",testnet:!0,id:17069,sourceId:a_,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.garnetchain.com\"],webSocket:[\"wss://rpc.garnetchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.garnetchain.com\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[a_]:{address:\"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909\",blockCreated:1274684}},l2OutputOracle:{[a_]:{address:\"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B\",blockCreated:1274684}},l1StandardBridge:{[a_]:{address:\"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE\",blockCreated:1274684}}}});u();var Gge=x({id:86,name:\"GateChain Mainnet\",nativeCurrency:{name:\"GateChainToken\",symbol:\"GT\",decimals:18},rpcUrls:{default:{http:[\"https://evm.nodeinfo.cc\"],webSocket:[\"wss://evm-ws.gatenode.cc\"]}},blockExplorers:{default:{name:\"Gate Scan\",url:\"https://www.gatescan.org\",apiUrl:\"https://gatescan.org/api\"}},testnet:!1});u();var qge=x({id:63157,name:\"Geist Mainnet\",nativeCurrency:{decimals:18,name:\"Aavegotchi GHST Token\",symbol:\"GHST\"},rpcUrls:{default:{http:[\"https://geist-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://geist-mainnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:660735}}});u();var Wge=x({id:16507,name:\"Genesys Mainnet\",nativeCurrency:{decimals:18,name:\"GSYS\",symbol:\"GSYS\"},rpcUrls:{default:{http:[\"https://rpc.genesys.network\"]}},blockExplorers:{default:{name:\"Genesys Explorer\",url:\"https://gchainexplorer.genesys.network\"}},testnet:!1});u();var Yge=x({id:685689,name:\"Gensyn Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://gensyn-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://gensyn-mainnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}});u();var s_=11155111,DV=x({...zt,id:91342,network:\"giwa-sepolia\",name:\"GIWA Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://sepolia-rpc.giwa.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-explorer.giwa.io\",apiUrl:\"https://sepolia-explorer.giwa.io/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},disputeGameFactory:{[s_]:{address:\"0x37347caB2afaa49B776372279143D71ad1f354F6\"}},portal:{[s_]:{address:\"0x956962C34687A954e611A83619ABaA37Ce6bC78A\"}},l1StandardBridge:{[s_]:{address:\"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7\"}}},testnet:!0,sourceId:s_}),Zge=x({...DV,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-rpc-flashblocks.giwa.io\"]}}});u();var Xge=x({id:251,name:\"Glide L1 Protocol XP\",nativeCurrency:{name:\"GLXP\",symbol:\"GLXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-api.glideprotocol.xyz/l1-rpc\"],webSocket:[\"wss://rpc-api.glideprotocol.xyz/l1-rpc\"]}},blockExplorers:{default:{name:\"Glide Protocol Explore\",url:\"https://blockchain-explorer.glideprotocol.xyz\"}},testnet:!1});u();var Jge=x({id:253,name:\"Glide L2 Protocol XP\",nativeCurrency:{name:\"GLXP\",symbol:\"GLXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-api.glideprotocol.xyz/l2-rpc\"],webSocket:[\"wss://rpc-api.glideprotocol.xyz/l2-rpc\"]}},blockExplorers:{default:{name:\"Glide Protocol Explore\",url:\"https://blockchain-explorer.glideprotocol.xyz\"}},testnet:!1});u();var Qge=x({id:100,name:\"Gnosis\",nativeCurrency:{decimals:18,name:\"xDAI\",symbol:\"XDAI\"},blockTime:5e3,rpcUrls:{default:{http:[\"https://rpc.gnosischain.com\"],webSocket:[\"wss://rpc.gnosischain.com/wss\"]}},blockExplorers:{default:{name:\"Gnosisscan\",url:\"https://gnosisscan.io\",apiUrl:\"https://api.gnosisscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:21022491}}});u();var eye=x({id:10200,name:\"Gnosis Chiado\",nativeCurrency:{decimals:18,name:\"Gnosis\",symbol:\"xDAI\"},blockTime:5e3,rpcUrls:{default:{http:[\"https://rpc.chiadochain.net\"],webSocket:[\"wss://rpc.chiadochain.net/wss\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.chiadochain.net\",apiUrl:\"https://blockscout.chiadochain.net/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4967313}},testnet:!0});u();var tye=x({id:2345,name:\"GOAT\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.goat.network\"]}},blockExplorers:{default:{name:\"Goat Explorer\",url:\"https://explorer.goat.network\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}});u();var nye=x({id:1663,name:\"Horizen Gobi Testnet\",nativeCurrency:{decimals:18,name:\"Test ZEN\",symbol:\"tZEN\"},rpcUrls:{default:{http:[\"https://gobi-testnet.horizenlabs.io/ethv1\"]}},blockExplorers:{default:{name:\"Gobi Explorer\",url:\"https://gobi-explorer.horizen.io\"}},contracts:{},testnet:!0});u();var rye=x({id:60,name:\"GoChain\",nativeCurrency:{decimals:18,name:\"GO\",symbol:\"GO\"},rpcUrls:{default:{http:[\"https://rpc.gochain.io\"]}},blockExplorers:{default:{name:\"GoChain Explorer\",url:\"https://explorer.gochain.io\"}},testnet:!1});u();var oye=x({id:71402,name:\"Godwoken Mainnet\",nativeCurrency:{decimals:18,name:\"pCKB\",symbol:\"pCKB\"},rpcUrls:{default:{http:[\"https://v1.mainnet.godwoken.io/rpc\"]}},blockExplorers:{default:{name:\"GW Scan\",url:\"https://v1.gwscan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:15034}},testnet:!1});u();var iye=x({id:5,name:\"Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://5.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.etherscan.io\",apiUrl:\"https://api-goerli.etherscan.io/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},ensUniversalResolver:{address:\"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1\",blockCreated:10339206},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6507670}},testnet:!0});u();var aye=x({id:440017,name:\"Graphite Network\",nativeCurrency:{name:\"Graphite\",symbol:\"@G\",decimals:18},rpcUrls:{default:{http:[\"https://anon-entrypoint-1.atgraphite.com\"],webSocket:[\"wss://ws-anon-entrypoint-1.atgraphite.com\"]}},blockExplorers:{default:{name:\"Graphite Spectre\",url:\"https://main.atgraphite.com\",apiUrl:\"https://api.main.atgraphite.com/api\"}},testnet:!1});u();var sye=x({id:54170,name:\"Graphite Network Testnet\",nativeCurrency:{name:\"Graphite\",symbol:\"@G\",decimals:18},rpcUrls:{default:{http:[\"https://anon-entrypoint-test-1.atgraphite.com\"],webSocket:[\"wss://ws-anon-entrypoint-test-1.atgraphite.com\"]}},blockExplorers:{default:{name:\"Graphite Testnet Spectre\",url:\"https://test.atgraphite.com\",apiUrl:\"https://api.test.atgraphite.com/api\"}},testnet:!0});u();var cye=x({id:1625,name:\"Gravity Alpha Mainnet\",nativeCurrency:{name:\"G\",symbol:\"G\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.gravity.xyz\"]}},blockExplorers:{default:{name:\"Gravity Explorer\",url:\"https://explorer.gravity.xyz\",apiUrl:\"https://explorer.gravity.xyz/api\"}},contracts:{multicall3:{address:\"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c\",blockCreated:16851}}});u();var lye=x({id:43419,name:\"Gunz Mainnet\",nativeCurrency:{name:\"GUN\",symbol:\"GUN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc\"]}},blockExplorers:{default:{name:\"Gunz Explorer\",url:\"https://gunzscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:70502}}});u();var uye=x({id:260,name:\"Guru Network Mainnet\",nativeCurrency:{name:\"GURU Token\",symbol:\"GURU\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-main.gurunetwork.ai\",\"https://rpc.gurunetwork.ai/archive/260\"]}},blockExplorers:{default:{name:\"Guruscan\",url:\"https://scan.gurunetwork.ai\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:271691}},testnet:!1});u();var dye=x({id:261,name:\"Guru Network Testnet\",nativeCurrency:{name:\"tGURU Token\",symbol:\"tGURU\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-test.gurunetwork.ai\",\"https://rpc.gurunetwork.ai/archive/261\"]}},blockExplorers:{default:{name:\"Guruscan\",url:\"https://sepolia.gurunetwork.ai\"}},testnet:!0});u();var fye=x({id:5112,name:\"Ham\",nativeCurrency:{decimals:18,name:\"Ham\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.ham.fun\"],webSocket:[\"wss://rpc.ham.fun\"]}},blockExplorers:{default:{name:\"Ham Chain Explorer\",url:\"https://explorer.ham.fun\",apiUrl:\"https://explorer.ham.fun/api/v2\"}}});u();var pye=x({id:216,name:\"Happychain Testnet\",nativeCurrency:{symbol:\"HAPPY\",name:\"HAPPY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.happy.tech/http\"],webSocket:[\"wss://rpc.testnet.happy.tech/ws\"]}},blockExplorers:{default:{name:\"Happy Chain Testnet Explorer\",url:\"https://explorer.testnet.happy.tech\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1}},testnet:!0});u();var hye=x({id:11235,name:\"HAQQ Mainnet\",nativeCurrency:{decimals:18,name:\"Islamic Coin\",symbol:\"ISLM\"},rpcUrls:{default:{http:[\"https://rpc.eth.haqq.network\"]}},blockExplorers:{default:{name:\"HAQQ Explorer\",url:\"https://explorer.haqq.network\",apiUrl:\"https://explorer.haqq.network/api\"}}});u();var mye=x({id:54211,name:\"HAQQ Testedge 2\",nativeCurrency:{decimals:18,name:\"Islamic Coin\",symbol:\"ISLMT\"},rpcUrls:{default:{http:[\"https://rpc.eth.testedge2.haqq.network\"]}},blockExplorers:{default:{name:\"HAQQ Explorer\",url:\"https://explorer.testedge2.haqq.network\",apiUrl:\"https://explorer.testedge2.haqq.network/api\"}},testnet:!0});u();var gye=x({id:31337,name:\"Hardhat\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}});u();var yye=x({id:16666e5,name:\"Harmony One\",nativeCurrency:{name:\"Harmony\",symbol:\"ONE\",decimals:18},rpcUrls:{default:{http:[\"https://1666600000.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Harmony Explorer\",url:\"https://explorer.harmony.one\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:24185753}}});u();var vye=x({id:177,name:\"HashKey Chain\",nativeCurrency:{decimals:18,name:\"HashKey EcoPoints\",symbol:\"HSK\"},rpcUrls:{default:{http:[\"https://mainnet.hsk.xyz\"]}},blockExplorers:{default:{name:\"HashKey Chain Explorer\",url:\"https://hashkey.blockscout.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}});u();var xye=x({id:133,name:\"HashKey Chain Testnet\",nativeCurrency:{decimals:18,name:\"HashKey EcoPoints\",symbol:\"HSK\"},rpcUrls:{default:{http:[\"https://testnet.hsk.xyz\"]}},blockExplorers:{default:{name:\"HashKey Chain Testnet explorer\",url:\"https://testnet-explorer.hsk.xyz\"}},testnet:!0});u();var bye=x({id:1523903251,name:\"Haust Network Testnet\",nativeCurrency:{decimals:18,name:\"HAUST\",symbol:\"HAUST\"},rpcUrls:{default:{http:[\"https://rpc-testnet.haust.app\"]}},blockExplorers:{default:{name:\"Haust Network Testnet Explorer\",url:\"https://explorer-testnet.haust.app\"}},testnet:!0});u();var wye=x({id:295,name:\"Hedera Mainnet\",network:\"hedera-mainnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/mainnet\"}},testnet:!1});u();var Eye=x({id:297,name:\"Hedera Previewnet\",network:\"hedera-previewnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://previewnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/previewnet\"}},testnet:!0});u();var Sye=x({id:296,name:\"Hedera Testnet\",network:\"hedera-testnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/testnet\"}},testnet:!0});u();var Aye=x({id:8668,name:\"Hela Mainnet\",nativeCurrency:{name:\"HLUSD\",symbol:\"HLUSD\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.helachain.com\"]}},blockExplorers:{default:{name:\"Hela explorer\",url:\"https://mainnet-blockexplorer.helachain.com\"}},testnet:!1});u();var kye=x({id:42e3,name:\"Helios Testnet\",network:\"helios-testnet\",nativeCurrency:{symbol:\"HLS\",name:\"Helios\",decimals:18},rpcUrls:{default:{http:[\"https://testnet1.helioschainlabs.org\"]}},blockExplorers:{default:{name:\"Helios Testnet Explorer\",url:\"https://explorer.helioschainlabs.org/\"}},testnet:!0});u();var Cye=x({id:43111,name:\"Hemi\",network:\"Hemi\",blockTime:12e3,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hemi.network/rpc\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.hemi.xyz\"}},testnet:!1});u();var Tye=x({id:743111,name:\"Hemi Sepolia\",network:\"Hemi Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.rpc.hemi.network/rpc\"]}},blockExplorers:{default:{name:\"Hemi Sepolia explorer\",url:\"https://testnet.explorer.hemi.xyz\"}},testnet:!0});u();var _ye=x({id:68414,name:\"Henesys\",nativeCurrency:{name:\"NEXPACE\",symbol:\"NXPC\",decimals:18},rpcUrls:{default:{http:[\"https://henesys-rpc.msu.io\"]}},blockExplorers:{default:{name:\"Avalanche Explorer\",url:\"https://subnets.avax.network/henesys\"}}});u();var Mye=x({id:17e3,name:\"Holesky\",nativeCurrency:{name:\"Holesky Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://ethereum-holesky-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://holesky.etherscan.io\",apiUrl:\"https://api-holesky.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:77},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:4295055}},testnet:!0});u();var Iye=x({id:560048,name:\"Hoodi\",nativeCurrency:{name:\"Hoodi Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hoodi.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://hoodi.etherscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2589}},testnet:!0});u();var Rye=x({id:2651420,name:\"Horizen Testnet\",network:\"horizen-testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://horizen-testnet.rpc.caldera.xyz/http\"]}},blockExplorers:{default:{name:\"Horizen Testnet Caldera Explorer\",url:\"https://horizen-testnet.explorer.caldera.xyz\"}},testnet:!0});u();var Pye=x({id:269,name:\"High Performance Blockchain\",nativeCurrency:{name:\"HPB\",symbol:\"HPB\",decimals:18},rpcUrls:{default:{http:[\"https://hpbnode.com\"]}},blockExplorers:{default:{name:\"hpbScan\",url:\"https://hscan.org\"}},testnet:!1});u();var Bye=x({id:190415,name:\"HPP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.hpp.io\"],webSocket:[\"wss://mainnet.hpp.io\"]}},blockExplorers:{default:{name:\"HPP Mainnet Explorer\",url:\"https://explorer.hpp.io\"}},testnet:!1});u();var Dye=x({id:181228,name:\"HPP Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.hpp.io\"],webSocket:[\"wss://testnet.hpp.io\"]}},blockExplorers:{default:{name:\"HPP Sepolia Explorer\",url:\"https://sepolia-explorer.hpp.io\"}},testnet:!0});u();var gNe=42161,Fye=x({id:12323,name:\"Huddle01 dRTC Chain\",nativeCurrency:{name:\"Ethereum\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://huddle01.calderachain.xyz/http\"],webSocket:[\"wss://huddle01.calderachain.xyz/ws\"]}},blockExplorers:{default:{name:\"Huddle01 Caldera Explorer\",url:\"https://huddle01.calderaexplorer.xyz\",apiUrl:\"https://huddle01.calderaexplorer.xyz/api\"}},sourceId:gNe});u();var yNe=421614,Oye=x({id:2524852,name:\"Huddle01 dRTC Chain Testnet\",nativeCurrency:{name:\"Ethereum\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://huddle-testnet.rpc.caldera.xyz/http\"],webSocket:[\"wss://huddle-testnet.rpc.caldera.xyz/ws\"]}},blockExplorers:{default:{name:\"Huddle01 Caldera Explorer\",url:\"https://huddle-testnet.explorer.caldera.xyz\",apiUrl:\"https://huddle-testnet.explorer.caldera.xyz/api\"}},sourceId:yNe,testnet:!0});u();var Lye=x({id:6985385,name:\"Humanity\",nativeCurrency:{name:\"H\",symbol:\"H\",decimals:18},rpcUrls:{default:{http:[\"https://humanity-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Humanity Mainnet Explorer\",url:\"https://humanity-mainnet.explorer.alchemy.com\",apiUrl:\"https://humanity-mainnet.explorer.alchemy.com/api\"}},testnet:!1});u();var Nye=x({id:7080969,name:\"Humanity Testnet\",nativeCurrency:{name:\"tHP\",symbol:\"tHP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.humanity.org\"]}},blockExplorers:{default:{name:\"Humanity Testnet Explorer\",url:\"https://humanity-testnet.explorer.alchemy.com\",apiUrl:\"https://humanity-testnet.explorer.alchemy.com/api\"}},testnet:!0});u();var Uye=x({id:5234,name:\"Humanode\",nativeCurrency:{name:\"HMND\",symbol:\"HMND\",decimals:18},rpcUrls:{default:{http:[\"https://explorer-rpc-http.mainnet.stages.humanode.io\"],webSocket:[\"wss://explorer-rpc-ws.mainnet.stages.humanode.io\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://humanode.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4413097}}});u();var zye=x({id:14853,name:\"Humanode Testnet 5\",nativeCurrency:{name:\"HMND\",symbol:\"HMND\",decimals:18},rpcUrls:{default:{http:[\"https://explorer-rpc-http.testnet5.stages.humanode.io\"],webSocket:[\"wss://explorer-rpc-ws.testnet5.stages.humanode.io\"]}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},testnet:!0});u();var Vye=x({id:2911,name:\"HYCHAIN\",nativeCurrency:{name:\"HYTOPIA\",symbol:\"TOPIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hychain.com/http\"]}},blockExplorers:{default:{name:\"HYCHAIN Explorer\",url:\"https://explorer.hychain.com\"}},testnet:!1});u();var Hye=x({id:29112,name:\"HYCHAIN Testnet\",nativeCurrency:{name:\"HYTOPIA\",symbol:\"TOPIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hychain.com/http\"]}},blockExplorers:{default:{name:\"HYCHAIN Explorer\",url:\"https://testnet-rpc.hychain.com/http\"}},testnet:!0});u();var FV=x({id:999,name:\"HyperEVM\",nativeCurrency:{name:\"HYPE\",symbol:\"HYPE\",decimals:18},blockExplorers:{default:{name:\"HyperEVMScan\",url:\"https://hyperevmscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13051}},rpcUrls:{default:{http:[\"https://rpc.hyperliquid.xyz/evm\"]}},testnet:!1});u();var jye=x({id:998,name:\"Hyperliquid EVM Testnet\",nativeCurrency:{name:\"HYPE\",symbol:\"HYPE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hyperliquid-testnet.xyz/evm\"]}},testnet:!0});u();var $ye=x({id:73115,name:\"ICB Network\",nativeCurrency:{decimals:18,name:\"ICB Native Token\",symbol:\"ICBX\"},rpcUrls:{default:{http:[\"https://rpc1-mainnet.icbnetwork.info\"]}},blockExplorers:{default:{name:\"ICB Explorer\",url:\"https://icbscan.io\",apiUrl:\"https://icbscan.io/api\"}},testnet:!1});u();var Kye=x({id:74,name:\"IDChain Mainnet\",nativeCurrency:{decimals:18,name:\"EIDI\",symbol:\"EIDI\"},rpcUrls:{default:{http:[\"https://idchain.one/rpc\"],webSocket:[\"wss://idchain.one/ws\"]}},blockExplorers:{default:{name:\"IDChain Explorer\",url:\"https://explorer.idchain.one\"}},testnet:!1});u();var Gye=x({id:38833,name:\"Igra Network\",nativeCurrency:{decimals:18,name:\"iKAS\",symbol:\"iKAS\"},rpcUrls:{default:{http:[\"https://rpc.igralabs.com:8545\"]}},blockExplorers:{default:{name:\"Igra Explorer\",url:\"https://explorer.igralabs.com\"}},testnet:!1});u();var qye=x({id:13371,name:\"Immutable zkEVM\",nativeCurrency:{decimals:18,name:\"Immutable Coin\",symbol:\"IMX\"},rpcUrls:{default:{http:[\"https://rpc.immutable.com\"]}},blockExplorers:{default:{name:\"Immutable Explorer\",url:\"https://explorer.immutable.com\",apiUrl:\"https://explorer.immutable.com/api\"}},contracts:{multicall3:{address:\"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0\",blockCreated:4335972}}});u();var Wye=x({id:13473,name:\"Immutable zkEVM Testnet\",nativeCurrency:{decimals:18,name:\"Immutable Coin\",symbol:\"IMX\"},rpcUrls:{default:{http:[\"https://rpc.testnet.immutable.com\"]}},blockExplorers:{default:{name:\"Immutable Testnet Explorer\",url:\"https://explorer.testnet.immutable.com/\"}},contracts:{multicall3:{address:\"0x2CC787Ed364600B0222361C4188308Fa8E68bA60\",blockCreated:5977391}},testnet:!0});u();var Yye=x({id:2525,name:\"inEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://mainnet.rpc.inevm.com/http\"]}},blockExplorers:{default:{name:\"inEVM Explorer\",url:\"https://inevm.calderaexplorer.xyz\",apiUrl:\"https://inevm.calderaexplorer.xyz/api/v2\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:118606}}});u();var Zye=x({id:7233,name:\"InitVerse Mainnet\",nativeCurrency:{decimals:18,name:\"InitVerse\",symbol:\"INI\"},rpcUrls:{default:{http:[\"https://rpc-mainnet.inichain.com\"]}},blockExplorers:{default:{name:\"InitVerseScan\",url:\"https://www.iniscan.com\",apiUrl:\"https://explorer-api.inichain.com/api\"}},contracts:{multicall3:{address:\"0x83466BE48A067115FFF91f7b892Ed1726d032e47\",blockCreated:2318}}});u();var Xye=x({id:7234,name:\"InitVerse Genesis Testnet\",nativeCurrency:{decimals:18,name:\"InitVerse\",symbol:\"INI\"},rpcUrls:{default:{http:[\"https://rpc-testnet.inichain.com\"]}},blockExplorers:{default:{name:\"InitVerseGenesisScan\",url:\"https://genesis-testnet.iniscan.com\",apiUrl:\"https://explorer-testnet-api.inichain.com/api\"}},contracts:{multicall3:{address:\"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F\",blockCreated:16361}},testnet:!0});u();var Jye=x({id:1776,name:\"Injective\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://sentry.evm-rpc.injective.network\"],webSocket:[\"wss://sentry.evm-ws.injective.network\"]}},blockExplorers:{default:{name:\"Injective Explorer\",url:\"https://blockscout.injective.network\",apiUrl:\"https://blockscout.injective.network/api\"}},testnet:!1});u();var Qye=x({id:1439,name:\"Injective Testnet\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://k8s.testnet.json-rpc.injective.network\"],webSocket:[\"wss://k8s.testnet.ws.injective.network\"]}},blockExplorers:{default:{name:\"Injective Explorer\",url:\"https://testnet.blockscout.injective.network\",apiUrl:\"https://testnet.blockscout.injective.network/api\"}},testnet:!0});u();var c_=1,e2e=x({...zt,id:57073,name:\"Ink\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-gel.inkonchain.com\",\"https://rpc-qnd.inkonchain.com\"],webSocket:[\"wss://rpc-gel.inkonchain.com\",\"wss://rpc-qnd.inkonchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.inkonchain.com\",apiUrl:\"https://explorer.inkonchain.com/api/v2\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},...zt.contracts,disputeGameFactory:{[c_]:{address:\"0x10d7b35078d3baabb96dd45a9143b94be65b12cd\"}},portal:{[c_]:{address:\"0x5d66c1782664115999c47c9fa5cd031f495d3e4f\"}},l1StandardBridge:{[c_]:{address:\"0x88ff1e5b602916615391f55854588efcbb7663f0\"}}},testnet:!1,sourceId:c_});u();var l_=11155111,t2e=x({...zt,id:763373,name:\"Ink Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-gel-sepolia.inkonchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer-sepolia.inkonchain.com/\",apiUrl:\"https://explorer-sepolia.inkonchain.com/api/v2\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},disputeGameFactory:{[l_]:{address:\"0x860e626c700af381133d9f4af31412a2d1db3d5d\"}},portal:{[l_]:{address:\"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7\"}},l1StandardBridge:{[l_]:{address:\"0x33f60714bbd74d62b66d79213c348614de51901c\"}}},testnet:!0,sourceId:l_});u();var n2e=x({id:8822,name:\"IOTA EVM\",network:\"iotaevm\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.iotaledger.net\"],webSocket:[\"wss://ws.json-rpc.evm.iotaledger.net\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.evm.iota.org\",apiUrl:\"https://explorer.evm.iota.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:25022}}});u();var r2e=x({id:1075,name:\"IOTA EVM Testnet\",network:\"iotaevm-testnet\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.testnet.iotaledger.net\"],webSocket:[\"wss://ws.json-rpc.evm.testnet.iotaledger.net\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.evm.testnet.iotaledger.net\",apiUrl:\"https://explorer.evm.testnet.iotaledger.net/api\"}},testnet:!0});u();var o2e=x({id:4689,name:\"IoTeX\",nativeCurrency:{decimals:18,name:\"IoTeX\",symbol:\"IOTX\"},rpcUrls:{default:{http:[\"https://babel-api.mainnet.iotex.io\"],webSocket:[\"wss://babel-api.mainnet.iotex.io\"]}},blockExplorers:{default:{name:\"IoTeXScan\",url:\"https://iotexscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:22163670}}});u();var i2e=x({id:4690,name:\"IoTeX Testnet\",nativeCurrency:{decimals:18,name:\"IoTeX\",symbol:\"IOTX\"},rpcUrls:{default:{http:[\"https://babel-api.testnet.iotex.io\"],webSocket:[\"wss://babel-api.testnet.iotex.io\"]}},blockExplorers:{default:{name:\"IoTeXScan\",url:\"https://testnet.iotexscan.io\"}},contracts:{multicall3:{address:\"0xb5cecD6894c6f473Ec726A176f1512399A2e355d\",blockCreated:24347592}},testnet:!0});u();var a2e=x({id:8017,name:\"iSunCoin Mainnet\",nativeCurrency:{decimals:18,name:\"ISC\",symbol:\"ISC\"},rpcUrls:{default:{http:[\"https://mainnet.isuncoin.com\"]}},blockExplorers:{default:{name:\"iSunCoin Explorer\",url:\"https://baifa.io/app/chains/8017\"}}});u();var s2e=x({id:680,name:\"Jasmy Chain\",network:\"jasmyChain\",nativeCurrency:{name:\"JasmyCoin\",symbol:\"JASMY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.jasmychain.io\"],webSocket:[\"wss://rpc.jasmychain.io\"]}},testnet:!1});u();var c2e=x({id:681,name:\"Jasmy Chain Testnet\",network:\"jasmyChainTestnet\",nativeCurrency:{name:\"JasmyCoin\",symbol:\"JASMY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc_testnet.jasmychain.io\"],webSocket:[\"wss://rpc_testnet.jasmychain.io\"]}},testnet:!0});u();var l2e=x({id:8899,name:\"JB Chain\",network:\"jbc\",nativeCurrency:{name:\"JBC\",symbol:\"JBC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-l1.jibchain.net\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp-l1.jibchain.net\",apiUrl:\"https://exp-l1.jibchain.net/api\"}},contracts:{multicall3:{address:\"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC\",blockCreated:2299048}},testnet:!1});u();var u2e=x({id:88991,name:\"Jibchain Testnet\",nativeCurrency:{name:\"tJBC\",symbol:\"tJBC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.jibchain.net\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp.testnet.jibchain.net\",apiUrl:\"https://exp.testnet.jibchain.net/api\"}},contracts:{multicall3:{address:\"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE\",blockCreated:32848}},testnet:!0});u();var d2e=x({id:81,name:\"Japan Open Chain Mainnet\",nativeCurrency:{decimals:18,name:\"Japan Open Chain Token\",symbol:\"JOC\"},rpcUrls:{default:{http:[\"https://rpc-1.japanopenchain.org:8545\",\"https://rpc-2.japanopenchain.org:8545\",\"https://rpc-3.japanopenchain.org\"]}},blockExplorers:{default:{name:\"Block Explorer\",url:\"https://explorer.japanopenchain.org\"}},testnet:!1});u();var f2e=x({id:10081,name:\"Japan Open Chain Testnet\",nativeCurrency:{decimals:18,name:\"Japan Open Chain Testnet Token\",symbol:\"JOCT\"},rpcUrls:{default:{http:[\"https://rpc-1.testnet.japanopenchain.org:8545\",\"https://rpc-2.testnet.japanopenchain.org:8545\",\"https://rpc-3.testnet.japanopenchain.org\"]}},blockExplorers:{default:{name:\"Testnet Block Explorer\",url:\"https://explorer.testnet.japanopenchain.org\"}},testnet:!0});u();var p2e=x({id:5734951,name:\"Jovay Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.jovay.io\"]}},blockExplorers:{default:{name:\"Jovay Explorer\",url:\"https://explorer.jovay.io/l2\"}},testnet:!1});u();var h2e=x({id:2019775,name:\"Jovay Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.zan.top/public/jovay-testnet\"]}},blockExplorers:{default:{name:\"Jovay Testnet Explorer\",url:\"https://sepolia-explorer.jovay.io/l2\"}},testnet:!0});u();var m2e=x({id:45003,name:\"Juneo JUNE-Chain\",nativeCurrency:{decimals:18,name:\"JUNE-Chain\",symbol:\"JUNE\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/2\",apiUrl:\"https://juneoscan.io/chain/2/api\"}}});u();var g2e=x({id:45013,name:\"Juneo BCH1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo BCH1-Chain\",symbol:\"BCH1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/12\",apiUrl:\"https://juneoscan.io/chain/12/api\"}}});u();var y2e=x({id:45004,name:\"Juneo DAI1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo DAI1-Chain\",symbol:\"DAI1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/5\",apiUrl:\"https://juneoscan.io/chain/5/api\"}}});u();var v2e=x({id:45010,name:\"Juneo DOGE1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo DOGE1-Chain\",symbol:\"DOGE1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/10\",apiUrl:\"https://juneoscan.io/chain/10/api\"}}});u();var x2e=x({id:45011,name:\"Juneo EUR1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo EUR1-Chain\",symbol:\"EUR1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/6\",apiUrl:\"https://juneoscan.io/chain/6/api\"}}});u();var b2e=x({id:45008,name:\"Juneo GLD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo GLD1-Chain\",symbol:\"GLD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/8\",apiUrl:\"https://juneoscan.io/chain/8/api\"}}});u();var w2e=x({id:45014,name:\"Juneo LINK1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo LINK1-Chain\",symbol:\"LINK1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/13\",apiUrl:\"https://juneoscan.io/chain/13/api\"}}});u();var E2e=x({id:45009,name:\"Juneo LTC1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo LTC1-Chain\",symbol:\"LTC1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/11\",apiUrl:\"https://juneoscan.io/chain/11/api\"}}});u();var S2e=x({id:45007,name:\"Juneo mBTC1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo mBTC1-Chain\",symbol:\"mBTC1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/9\",apiUrl:\"https://juneoscan.io/chain/9/api\"}}});u();var A2e=x({id:45012,name:\"Juneo SGD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo SGD1-Chain\",symbol:\"SGD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/7\",apiUrl:\"https://juneoscan.io/chain/7/api\"}}});u();var k2e=x({id:101003,name:\"Socotra JUNE-Chain\",nativeCurrency:{decimals:18,name:\"Socotra JUNE-Chain\",symbol:\"JUNE\"},rpcUrls:{default:{http:[\"https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://socotra.juneoscan.io/chain/2\",apiUrl:\"https://socotra.juneoscan.io/chain/2/api\"}},testnet:!0});u();var C2e=x({id:45006,name:\"Juneo USD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo USD1-Chain\",symbol:\"USD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/4\",apiUrl:\"https://juneoscan.io/chain/4/api\"}}});u();var T2e=x({id:45005,name:\"Juneo USDT1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo USDT1-Chain\",symbol:\"USDT1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/3\",apiUrl:\"https://juneoscan.io/chain/3/api\"}}});u();var _2e=x({id:8217,name:\"Kaia\",nativeCurrency:{decimals:18,name:\"Kaia\",symbol:\"KAIA\"},rpcUrls:{default:{http:[\"https://public-en.node.kaia.io\"]}},blockExplorers:{default:{name:\"KaiaScan\",url:\"https://kaiascan.io\",apiUrl:\"https://api-cypress.klaytnscope.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96002415}}});u();var M2e=x({id:1001,name:\"Kairos Testnet\",network:\"kairos\",nativeCurrency:{decimals:18,name:\"Kairos KAIA\",symbol:\"KAIA\"},rpcUrls:{default:{http:[\"https://public-en-kairos.node.kaia.io\"]}},blockExplorers:{default:{name:\"KaiaScan\",url:\"https://kairos.kaiascan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:123390593}},testnet:!0});u();var I2e=x({id:1802203764,name:\"Kakarot Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.kakarot.org\"]}},blockExplorers:{default:{name:\"Kakarot Scan\",url:\"https://sepolia.kakarotscan.org\"}},testnet:!0});u();var R2e=x({id:920637907288165,name:\"Kakarot Starknet Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.kakarot.org\"]}},blockExplorers:{default:{name:\"Kakarot Scan\",url:\"https://sepolia.kakarotscan.org\"}},testnet:!0});u();var P2e=x({id:24,name:\"KardiaChain Mainnet\",nativeCurrency:{name:\"KAI\",symbol:\"KAI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.kardiachain.io\"]}},blockExplorers:{default:{name:\"KardiaChain Explorer\",url:\"https://explorer.kardiachain.io\"}},testnet:!1});u();var B2e=x({id:686,name:\"Karura\",network:\"karura\",nativeCurrency:{name:\"Karura\",symbol:\"KAR\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-karura.aca-api.network\"],webSocket:[\"wss://eth-rpc-karura.aca-api.network\"]}},blockExplorers:{default:{name:\"Karura Blockscout\",url:\"https://blockscout.karura.network\",apiUrl:\"https://blockscout.karura.network/api\"}},testnet:!1});u();var D2e=x({id:747474,name:\"Katana\",network:\"katana\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.katana.network\"]}},blockExplorers:{default:{name:\"katana explorer\",url:\"https://katanascan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1});u();var F2e=x({id:2222,name:\"Kava EVM\",network:\"kava-mainnet\",nativeCurrency:{name:\"Kava\",symbol:\"KAVA\",decimals:18},rpcUrls:{default:{http:[\"https://evm.kava.io\"]}},blockExplorers:{default:{name:\"Kava EVM Explorer\",url:\"https://kavascan.com\",apiUrl:\"https://kavascan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3661165}},testnet:!1});u();var O2e=x({id:2221,name:\"Kava EVM Testnet\",network:\"kava-testnet\",nativeCurrency:{name:\"Kava\",symbol:\"KAVA\",decimals:18},rpcUrls:{default:{http:[\"https://evm.testnet.kava.io\"]}},blockExplorers:{default:{name:\"Kava EVM Testnet Explorer\",url:\"https://testnet.kavascan.com/\",apiUrl:\"https://testnet.kavascan.com/api\"}},contracts:{multicall3:{address:\"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6\",blockCreated:7242179}},testnet:!0});u();var L2e=x({id:321,name:\"KCC Mainnet\",network:\"KCC Mainnet\",nativeCurrency:{decimals:18,name:\"KCS\",symbol:\"KCS\"},rpcUrls:{default:{http:[\"https://kcc-rpc.com\"]}},blockExplorers:{default:{name:\"KCC Explorer\",url:\"https://explorer.kcc.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11760430}},testnet:!1});u();var N2e=x({id:1783,name:\"KiiChain\",network:\"kii-chain\",nativeCurrency:{name:\"Kii\",symbol:\"KII\",decimals:18},rpcUrls:{default:{http:[\"https://json-rpc.kiivalidator.com\"]}},blockExplorers:{default:{name:\"KiiExplorer\",url:\"https://explorer.kiichain.io\"}}});u();var U2e=x({id:1336,name:\"Kii Testnet Oro\",network:\"kii-testnet-oro\",nativeCurrency:{name:\"Kii\",symbol:\"KII\",decimals:18},rpcUrls:{default:{http:[\"https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com\"]}},blockExplorers:{default:{name:\"KiiExplorer\",url:\"https://testnet.explorer.kiichain.io\"}},testnet:!0});u();var z2e=x({id:7887,name:\"Kinto Mainnet\",network:\"Kinto Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.kinto.xyz/http\"]}},blockExplorers:{default:{name:\"Kinto Explorer\",url:\"https://explorer.kinto.xyz\"}},testnet:!1});u();var V2e=x({id:8217,name:\"Klaytn\",nativeCurrency:{decimals:18,name:\"Klaytn\",symbol:\"KLAY\"},rpcUrls:{default:{http:[\"https://public-en-cypress.klaytn.net\"]}},blockExplorers:{default:{name:\"KlaytnScope\",url:\"https://scope.klaytn.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96002415}}});u();var H2e=x({id:1001,name:\"Klaytn Baobab Testnet\",network:\"klaytn-baobab\",nativeCurrency:{decimals:18,name:\"Baobab Klaytn\",symbol:\"KLAY\"},rpcUrls:{default:{http:[\"https://public-en-baobab.klaytn.net\"]}},blockExplorers:{default:{name:\"KlaytnScope\",url:\"https://baobab.klaytnscope.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:123390593}},testnet:!0});u();var j2e=x({id:701,name:\"Koi Network\",nativeCurrency:{decimals:18,name:\"Koi Network Native Token\",symbol:\"KRING\"},rpcUrls:{default:{http:[\"https://koi-rpc.darwinia.network\"],webSocket:[\"wss://koi-rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://koi-scan.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:180001}},testnet:!0});u();var $2e=x({id:255,name:\"Kroma\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://api.kroma.network\"]}},blockExplorers:{default:{name:\"Kroma Explorer\",url:\"https://blockscout.kroma.network\",apiUrl:\"https://blockscout.kroma.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:16054868}},testnet:!1});u();var K2e=x({id:2358,name:\"Kroma Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://api.sepolia.kroma.network\"]}},blockExplorers:{default:{name:\"Kroma Sepolia Explorer\",url:\"https://blockscout.sepolia.kroma.network\",apiUrl:\"https://blockscout.sepolia.kroma.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:8900914}},testnet:!0});u();var G2e=x({id:1983,name:\"Krown\",nativeCurrency:{decimals:18,name:\"Krown\",symbol:\"KROWN\"},rpcUrls:{default:{http:[\"https://mainnet.krown.network\"]}},blockExplorers:{default:{name:\"Krown Explorer\",url:\"https://explorer.krown.network\"}},testnet:!1});u();var q2e=x({id:12324,name:\"L3X Protocol\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.l3x.com\"],webSocket:[\"wss://rpc-mainnet.l3x.com\"]}},blockExplorers:{default:{name:\"L3X Mainnet Explorer\",url:\"https://explorer.l3x.com\",apiUrl:\"https://explorer.l3x.com/api/v2\"}},testnet:!1});u();var W2e=x({id:12325,name:\"L3X Protocol Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.l3x.com\"],webSocket:[\"wss://rpc-testnet.l3x.com\"]}},blockExplorers:{default:{name:\"L3X Testnet Explorer\",url:\"https://explorer-testnet.l3x.com\",apiUrl:\"https://explorer-testnet.l3x.com/api/v2\"}},testnet:!0});u();var Y2e=x({id:360890,name:\"LAVITA Mainnet\",nativeCurrency:{name:\"vTFUEL\",symbol:\"vTFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://tsub360890-eth-rpc.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"LAVITA Explorer\",url:\"https://tsub360890-explorer.thetatoken.org\"}},testnet:!1});u();var Z2e=x({id:232,name:\"Lens\",nativeCurrency:{name:\"GHO\",symbol:\"GHO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.lens.xyz\"]}},blockExplorers:{default:{name:\"Lens Block Explorer\",url:\"https://explorer.lens.xyz\",apiUrl:\"https://explorer.lens.xyz/api\"}}});u();var X2e=x({id:37111,name:\"Lens Testnet\",nativeCurrency:{name:\"GRASS\",symbol:\"GRASS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.lens.dev\"],webSocket:[\"wss://rpc.testnet.lens.dev/ws\"]}},blockExplorers:{default:{name:\"Lens Block Explorer\",url:\"https://block-explorer.testnet.lens.dev\",apiUrl:\"https://block-explorer-api.staging.lens.dev/api\"}},testnet:!0});u();var J2e=x({id:21363,name:\"Lestnet\",nativeCurrency:{name:\"Lestnet Ether\",symbol:\"LETH\",decimals:18},rpcUrls:{default:{http:[\"https://service.lestnet.org\"]}},blockExplorers:{default:{name:\"Lestnet Explorer\",url:\"https://explore.lestnet.org\"}},testnet:!0});u();var Q2e=x({id:1891,name:\"LightLink Pegasus Testnet\",network:\"lightlink-pegasus\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://replicator.pegasus.lightlink.io/rpc/v1\"]}},blockExplorers:{default:{name:\"LightLink Pegasus Explorer\",url:\"https://pegasus.lightlink.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:127188532}},testnet:!0});u();var eve=x({id:1890,name:\"LightLink Phoenix Mainnet\",network:\"lightlink-phoenix\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://replicator.phoenix.lightlink.io/rpc/v1\"]}},blockExplorers:{default:{name:\"LightLink Phoenix Explorer\",url:\"https://phoenix.lightlink.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:125499184}},testnet:!1});u();u();u();tu();u();Bo();var r0=class extends ln{constructor({docsPath:e}={}){super([\"Could not find an Account to execute with this Action.\",\"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.\"].join(`\\n`),{docsPath:e,docsSlug:\"account\",name:\"AccountNotFoundError\"})}},Px=class extends ln{constructor({docsPath:e,metaMessages:n,type:r}){super(`Account type \"${r}\" is not supported.`,{docsPath:e,metaMessages:n,name:\"AccountTypeNotSupportedError\"})}};Ko();EH();Yx();ef();Oy();async function txe(t,e){let{account:n=t.account}=e;if(!n)throw new r0;let r=bi(n);try{let{accessList:o,blockNumber:a,blockTag:c,data:l,gas:f,gasPrice:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:y,to:A,value:T,...R}=e,O=(typeof a==\"bigint\"?sr(a):void 0)||c;nu(e);let V=t.chain?.formatters?.transactionRequest?.format,G=(V||ol)({...ff(R,{format:V}),account:r,accessList:o,data:l,gas:f,gasPrice:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:y,to:A,value:T},\"estimateGas\"),{baseFeePerGas:ee,gasLimit:J,priorityFeePerGas:le}=await t.request({method:\"linea_estimateGas\",params:O?[G,O]:[G]});return{baseFeePerGas:BigInt(ee),gasLimit:BigInt(J),priorityFeePerGas:BigInt(le)}}catch(o){throw rM(o,{...e,account:r,chain:t.chain})}}var Zx={fees:{estimateFeesPerGas:nxe,async maxPriorityFeePerGas({block:t,client:e,request:n}){let r=await nxe({block:t,client:e,multiply:o=>o,request:n,type:\"eip1559\"});return r?.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}}};async function nxe({client:t,multiply:e,request:n,type:r}){try{let o=await txe(t,{...n,account:n?.account}),{priorityFeePerGas:a}=o,l=e(BigInt(o.baseFeePerGas))+a;return r===\"legacy\"?{gasPrice:l}:{maxFeePerGas:l,maxPriorityFeePerGas:a}}catch{return null}}var rxe=x({...Zx,id:59144,name:\"Linea Mainnet\",blockTime:2e3,nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://lineascan.build\",apiUrl:\"https://api.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:42},ensRegistry:{address:\"0x50130b669B28C339991d8676FA73CF122a121267\",blockCreated:6682888},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:22222151}},ensTlds:[\".linea.eth\"],testnet:!1});u();var oxe=x({id:59140,name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\",apiUrl:\"https://api-goerli.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:498623}},testnet:!0});u();var ixe=x({...Zx,id:59141,name:\"Linea Sepolia Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sepolia.linea.build\"],webSocket:[\"wss://rpc.sepolia.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.lineascan.build\",apiUrl:\"https://api-sepolia.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:227427},ensRegistry:{address:\"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7\",blockCreated:2395094},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:17168484}},ensTlds:[\".linea.eth\"],testnet:!0});u();var axe=x({id:59140,name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\",apiUrl:\"https://goerli.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:498623}},testnet:!0});u();var EE=1,sxe=x({...zt,id:1135,name:\"Lisk\",network:\"lisk\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.api.lisk.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.lisk.com\",apiUrl:\"https://blockscout.lisk.com/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[EE]:{address:\"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C\"}},multicall3:{address:\"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0\"},l2OutputOracle:{[EE]:{address:\"0x113cB99283AF242Da0A0C54347667edF531Aa7d6\"}},portal:{[EE]:{address:\"0x26dB93F8b8b4f7016240af62F7730979d353f9A7\"}},l1StandardBridge:{[EE]:{address:\"0x2658723Bf70c7667De6B25F99fcce13A16D25d08\"}}},sourceId:EE});u();var oM=11155111,cxe=x({...zt,id:4202,network:\"lisk-sepolia\",name:\"Lisk Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sepolia-api.lisk.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-blockscout.lisk.com\",apiUrl:\"https://sepolia-blockscout.lisk.com/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[oM]:{address:\"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[oM]:{address:\"0xe3d90F21490686Ec7eF37BE788E02dfC12787264\"}},l1StandardBridge:{[oM]:{address:\"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5\"}}},testnet:!0,sourceId:oM});u();var lxe=x({id:9496,name:\"Load Alphanet\",nativeCurrency:{name:\"Testnet LOAD\",symbol:\"tLOAD\",decimals:18},rpcUrls:{default:{http:[\"https://alphanet.load.network\"]}},blockExplorers:{default:{name:\"Load Alphanet Explorer\",url:\"https://explorer.load.network\"}},testnet:!0});u();var uxe=x({id:1337,name:\"Localhost\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}});u();var dxe=x({id:15551,name:\"LoopNetwork Mainnet\",nativeCurrency:{name:\"LOOP\",symbol:\"LOOP\",decimals:18},rpcUrls:{default:{http:[\"https://api.mainnetloop.com\"]}},blockExplorers:{default:{name:\"LoopNetwork Blockchain Explorer\",url:\"https://explorer.mainnetloop.com/\"}},testnet:!1});u();var fxe=x({id:42,network:\"lukso\",name:\"LUKSO\",nativeCurrency:{name:\"LUKSO\",symbol:\"LYX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.lukso.network\"],webSocket:[\"wss://ws-rpc.mainnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Mainnet Explorer\",url:\"https://explorer.execution.mainnet.lukso.network\",apiUrl:\"https://api.explorer.execution.mainnet.lukso.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:468183}}});u();var pxe=x({id:4201,name:\"LUKSO Testnet\",nativeCurrency:{decimals:18,name:\"LUKSO Testnet\",symbol:\"LYXt\"},rpcUrls:{default:{http:[\"https://rpc.testnet.lukso.network\"],webSocket:[\"wss://ws-rpc.testnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Testnet Explorer\",url:\"https://explorer.execution.testnet.lukso.network\",apiUrl:\"https://api.explorer.execution.testnet.lukso.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:605348}},testnet:!0});u();var hxe=x({id:994873017,name:\"Lumia Mainnet\",network:\"LumiaMainnet\",nativeCurrency:{name:\"Lumia\",symbol:\"LUMIA\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.lumia.org\"]}},blockExplorers:{default:{name:\"Lumia Explorer\",url:\"https://explorer.lumia.org/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3975939}},testnet:!1});u();var mxe=x({id:1952959480,name:\"Lumia Testnet\",network:\"LumiaTestnet\",nativeCurrency:{name:\"Lumia\",symbol:\"LUMIA\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.lumia.org\"]}},blockExplorers:{default:{name:\"Lumia Testnet Explorer\",url:\"https://testnet-explorer.lumia.org/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2235063}},testnet:!0});u();var gxe=x({id:96370,name:\"Lumoz\",nativeCurrency:{decimals:18,name:\"Lumoz Token\",symbol:\"MOZ\"},rpcUrls:{default:{http:[\"https://rpc.lumoz.org\"]}},blockExplorers:{default:{name:\"Lumoz Scan\",url:\"https://scan.lumoz.info\"}},testnet:!1});u();var yxe=x({id:105363,name:\"Lumoz Testnet\",nativeCurrency:{decimals:18,name:\"Lumoz Testnet Token\",symbol:\"MOZ\"},rpcUrls:{default:{http:[\"https://testnet-rpc.lumoz.org\"]}},testnet:!0});u();var vxe=x({id:1122,name:\"LuxePorts\",network:\"luxeports\",nativeCurrency:{name:\"LuxePorts\",symbol:\"LXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.luxeports.com\",\"https://erpc.luxeports.com\"],webSocket:[\"wss://rpc.luxeports.com/ws\",\"wss://erpc.luxeports.com/ws\"]}},blockExplorers:{default:{name:\"LXPScan\",url:\"https://lxpscan.com\"}},testnet:!1});u();var xxe=x({id:721,name:\"Lycan\",nativeCurrency:{decimals:18,name:\"Lycan\",symbol:\"LYC\"},rpcUrls:{default:{http:[\"https://rpc.lycanchain.com\",\"https://us-east.lycanchain.com\",\"https://us-west.lycanchain.com\",\"https://eu-north.lycanchain.com\",\"https://eu-west.lycanchain.com\",\"https://asia-southeast.lycanchain.com\"],webSocket:[\"wss://rpc.lycanchain.com\",\"wss://us-east.lycanchain.com\",\"wss://us-west.lycanchain.com\",\"wss://eu-north.lycanchain.com\",\"wss://eu-west.lycanchain.com\",\"wss://asia-southeast.lycanchain.com\"]}},blockExplorers:{default:{name:\"Lycan Explorer\",url:\"https://explorer.lycanchain.com\"}}});u();var bxe=x({id:957,name:\"Lyra Chain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.lyra.finance\"]}},blockExplorers:{default:{name:\"Lyra Explorer\",url:\"https://explorer.lyra.finance\",apiUrl:\"https://explorer.lyra.finance/api/v2\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1935198}}});u();var wxe=x({id:1,name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\"https://eth.merkle.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://etherscan.io\",apiUrl:\"https://api.etherscan.io/api\"}},contracts:{ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:23085558},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}});u();var Exe=x({id:595,name:\"Mandala TC9\",network:\"mandala\",nativeCurrency:{name:\"Mandala\",symbol:\"mACA\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-tc9.aca-staging.network\"],webSocket:[\"wss://eth-rpc-tc9.aca-staging.network\"]}},blockExplorers:{default:{name:\"Mandala Blockscout\",url:\"https://blockscout.mandala.aca-staging.network\",apiUrl:\"https://blockscout.mandala.aca-staging.network/api\"}},testnet:!0});u();var Sxe=x({id:169,name:\"Manta Pacific Mainnet\",network:\"manta\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://pacific-rpc.manta.network/http\"]}},blockExplorers:{default:{name:\"Manta Explorer\",url:\"https://pacific-explorer.manta.network\",apiUrl:\"https://pacific-explorer.manta.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:332890}}});u();var Axe=x({id:3441006,name:\"Manta Pacific Sepolia Testnet\",network:\"manta-sepolia\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://pacific-rpc.sepolia-testnet.manta.network/http\"]}},blockExplorers:{default:{name:\"Manta Sepolia Testnet Explorer\",url:\"https://pacific-explorer.sepolia-testnet.manta.network\",apiUrl:\"https://pacific-explorer.sepolia-testnet.manta.network/api\"}},contracts:{multicall3:{address:\"0xca54918f7B525C8df894668846506767412b53E3\",blockCreated:479584}},testnet:!0});u();var kxe=x({id:3441005,name:\"Manta Pacific Testnet\",network:\"manta-testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://manta-testnet.calderachain.xyz/http\"]}},blockExplorers:{default:{name:\"Manta Testnet Explorer\",url:\"https://pacific-explorer.testnet.manta.network\",apiUrl:\"https://pacific-explorer.testnet.manta.network/api\"}},contracts:{multicall3:{address:\"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C\",blockCreated:419915}},testnet:!0});u();var Cxe=x({id:5e3,name:\"Mantle\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Explorer\",url:\"https://mantlescan.xyz/\",apiUrl:\"https://api.mantlescan.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:304717}}});u();var Txe=x({id:5003,name:\"Mantle Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.sepolia.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Testnet Explorer\",url:\"https://explorer.sepolia.mantle.xyz/\",apiUrl:\"https://explorer.sepolia.mantle.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4584012}},testnet:!0});u();var _xe=x({id:5001,name:\"Mantle Testnet\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.testnet.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Testnet Explorer\",url:\"https://explorer.testnet.mantle.xyz\",apiUrl:\"https://explorer.testnet.mantle.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:561333}},testnet:!0});u();var Mxe=x({id:5887,name:\"MANTRA DuKong EVM Testnet\",nativeCurrency:{decimals:18,name:\"MANTRA\",symbol:\"MANTRA\"},rpcUrls:{default:{http:[\"https://evm.dukong.mantrachain.io\"]}},blockExplorers:{default:{name:\"MANTRAScan\",url:\"https://mantrascan.io/dukong\"}},testnet:!0});u();var Ixe=x({id:5888,name:\"MANTRA EVM\",nativeCurrency:{decimals:18,name:\"MANTRA\",symbol:\"MANTRA\"},rpcUrls:{default:{http:[\"https://evm.mantrachain.io\"],webSocket:[\"https://evm.mantrachain.io/ws\"]}},blockExplorers:{default:{name:\"MANTRA Blockscout Explorer\",url:\"https://blockscout.mantrascan.io\"}}});u();var Rxe=x({id:22776,name:\"MAP Protocol\",nativeCurrency:{decimals:18,name:\"MAPO\",symbol:\"MAPO\"},rpcUrls:{default:{http:[\"https://rpc.maplabs.io\"]}},blockExplorers:{default:{name:\"MAPO Scan\",url:\"https://maposcan.io\"}},testnet:!1});u();var Pxe=x({id:698,name:\"Matchain\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.matchain.io\"]}},blockExplorers:{default:{name:\"Matchain Scan\",url:\"https://matchscan.io\"}}});u();var Bxe=x({id:699,name:\"Matchain Testnet\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.matchain.io\"]}},blockExplorers:{default:{name:\"Matchain Scan\",url:\"https://testnet.matchscan.io\"}},testnet:!0});u();var Dxe=x({id:29548,name:\"MCH Verse\",nativeCurrency:{name:\"Oasys\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.oasys.mycryptoheroes.net\"]}},blockExplorers:{default:{name:\"MCH Verse Explorer\",url:\"https://explorer.oasys.mycryptoheroes.net\",apiUrl:\"https://explorer.oasys.mycryptoheroes.net/api\"}},testnet:!1});u();var iM=1,Fxe=x({...zt,id:4326,blockTime:1e3,name:\"MegaETH\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.megaeth.com/rpc\"],webSocket:[\"wss://mainnet.megaeth.com/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://mega.etherscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"},blockscout:{name:\"Blockscout\",url:\"https://megaeth.blockscout.com\",apiUrl:\"https://megaeth.blockscout.com/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[iM]:{address:\"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[iM]:{address:\"0x7f82f57F0Dd546519324392e408b01fcC7D709e8\",blockCreated:21644285}},l1StandardBridge:{[iM]:{address:\"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75\",blockCreated:21644285}}},sourceId:iM});u();var Oxe=x({id:6343,blockTime:1e3,name:\"MegaETH Testnet\",nativeCurrency:{name:\"MegaETH Testnet Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://carrot.megaeth.com/rpc\"],webSocket:[\"wss://carrot.megaeth.com/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://testnet-mega.etherscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"},blockscout:{name:\"Blockscout\",url:\"https://megaeth-testnet-v2.blockscout.com\",apiUrl:\"https://megaeth-testnet-v2.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0});u();var Lxe=x({id:7078815900,name:\"Mekong Pectra Devnet\",nativeCurrency:{name:\"eth\",symbol:\"eth\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mekong.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Block Explorer\",url:\"https://explorer.mekong.ethpandaops.io\"}},testnet:!0});u();var Nxe=x({id:333000333,name:\"Meld\",nativeCurrency:{decimals:18,name:\"Meld\",symbol:\"MELD\"},rpcUrls:{default:{http:[\"https://rpc-1.meld.com\"]}},blockExplorers:{default:{name:\"MELDscan\",url:\"https://meldscan.io\"}},contracts:{multicall3:{address:\"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5\",blockCreated:360069}}});u();var Uxe=x({id:4352,name:\"MemeCore\",nativeCurrency:{decimals:18,name:\"M\",symbol:\"M\"},rpcUrls:{default:{http:[\"https://rpc.memecore.net\"],webSocket:[\"wss://ws.memecore.net\"]}},blockExplorers:{default:{name:\"MemeCore Explorer\",url:\"https://memecorescan.io\",apiUrl:\"https://api.memecorescan.io/api\"},okx:{name:\"MemeCore Explorer\",url:\"https://web3.okx.com/explorer/memecore\"},memecore:{name:\"MemeCore Explorer\",url:\"https://blockscout.memecore.com\",apiUrl:\"https://blockscout.memecore.com/api\"}}});u();var zxe=x({id:43521,name:\"Formicarium\",nativeCurrency:{decimals:18,name:\"M\",symbol:\"M\"},rpcUrls:{default:{http:[\"https://rpc.formicarium.memecore.net\"],webSocket:[\"wss://ws.formicarium.memecore.net\"]}},blockExplorers:{default:{name:\"MemeCore Testnet Explorer\",url:\"https://formicarium.memecorescan.io\"},okx:{name:\"MemeCore Testnet Explorer\",url:\"https://web3.okx.com/explorer/formicarium-testnet\"},memecore:{name:\"MemeCore Testnet Explorer\",url:\"https://formicarium.blockscout.memecore.com\",apiUrl:\"https://formicarium.blockscout.memecore.com/api\"}},testnet:!0});u();var Vxe=x({id:4200,name:\"Merlin\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.merlinchain.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://scan.merlinchain.io\",apiUrl:\"https://scan.merlinchain.io/api\"}}});u();var Hxe=x({id:4203,name:\"Merlin Erigon Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-erigon-rpc.merlinchain.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet-erigon-scan.merlinchain.io\",apiUrl:\"https://testnet-erigon-scan.merlinchain.io/api\"}},testnet:!0});u();var jxe=x({id:571,name:\"MetaChain Mainnet\",nativeCurrency:{name:\"Metatime Coin\",symbol:\"MTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.metatime.com\"]}},blockExplorers:{default:{name:\"MetaExplorer\",url:\"https://explorer.metatime.com\"}},contracts:{multicall3:{address:\"0x0000000000000000000000000000000000003001\",blockCreated:0}}});u();var $xe=x({id:1453,name:\"MetaChain Istanbul\",nativeCurrency:{name:\"Metatime Coin\",symbol:\"MTC\",decimals:18},rpcUrls:{default:{http:[\"https://istanbul-rpc.metachain.dev\"]}},blockExplorers:{default:{name:\"MetaExplorer\",url:\"https://istanbul-explorer.metachain.dev\"}},contracts:{multicall3:{address:\"0x0000000000000000000000000000000000003001\",blockCreated:0}},testnet:!0});u();var Kxe=x({id:11,name:\"Metadium Network\",nativeCurrency:{decimals:18,name:\"META\",symbol:\"META\"},rpcUrls:{default:{http:[\"https://api.metadium.com/prod\"]}},blockExplorers:{default:{name:\"Metadium Explorer\",url:\"https://explorer.metadium.com\"}},testnet:!1});u();var aM=1,Gxe=x({...zt,id:1750,name:\"Metal L2\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.metall2.com\"],webSocket:[\"wss://rpc.metall2.com\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.metall2.com\",apiUrl:\"https://explorer.metall2.com/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[aM]:{address:\"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[aM]:{address:\"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956\"}},l1StandardBridge:{[aM]:{address:\"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3\"}}},sourceId:aM});u();var qxe=x({id:82,name:\"Meter\",nativeCurrency:{decimals:18,name:\"MTR\",symbol:\"MTR\"},rpcUrls:{default:{http:[\"https://rpc.meter.io\"]}},blockExplorers:{default:{name:\"MeterScan\",url:\"https://scan.meter.io\"}}});u();var Wxe=x({id:83,name:\"Meter Testnet\",nativeCurrency:{decimals:18,name:\"MTR\",symbol:\"MTR\"},rpcUrls:{default:{http:[\"https://rpctest.meter.io\"]}},blockExplorers:{default:{name:\"MeterTestnetScan\",url:\"https://scan-warringstakes.meter.io\"}},testnet:!0});u();var Yxe=x({id:1088,name:\"Metis\",nativeCurrency:{decimals:18,name:\"Metis\",symbol:\"METIS\"},rpcUrls:{default:{http:[\"https://metis.rpc.hypersync.xyz\",\"https://metis-pokt.nodies.app\",\"https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm\",\"https://metis-andromeda.rpc.thirdweb.com\",\"https://metis-andromeda.gateway.tenderly.co\",\"https://metis.api.onfinality.io/public\",\"https://andromeda.metis.io/?owner=1088\",\"https://metis-mainnet.public.blastapi.io\"],webSocket:[\"wss://metis-rpc.publicnode.com\",\"wss://metis.drpc.org\"]}},blockExplorers:{default:{name:\"Metis Explorer\",url:\"https://explorer.metis.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2338552}}});u();var Zxe=x({id:599,name:\"Metis Goerli\",nativeCurrency:{decimals:18,name:\"Metis Goerli\",symbol:\"METIS\"},rpcUrls:{default:{http:[\"https://goerli.gateway.metisdevops.link\"]}},blockExplorers:{default:{name:\"Metis Goerli Explorer\",url:\"https://goerli.explorer.metisdevops.link\",apiUrl:\"https://goerli.explorer.metisdevops.link/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1006207}},testnet:!0});u();var Xxe=x({id:59902,name:\"Metis Sepolia\",nativeCurrency:{decimals:18,name:\"Test Metis\",symbol:\"tMETIS\"},rpcUrls:{default:{http:[\"https://sepolia.metisdevops.link\",\"https://metis-sepolia-rpc.publicnode.com\",\"https://metis-sepolia.gateway.tenderly.co\"],webSocket:[\"wss://metis-sepolia-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Metis Sepolia Explorer\",url:\"https://sepolia-explorer.metisdevops.link\",apiUrl:\"https://sepolia-explorer.metisdevops.link/api-docs\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:224185}},testnet:!0});u();var Jxe=x({id:7518,name:\"MEVerse Chain Mainnet\",nativeCurrency:{decimals:18,name:\"MEVerse\",symbol:\"MEV\"},rpcUrls:{default:{http:[\"https://rpc.meversemainnet.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://www.meversescan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:86881340}}});u();var Qxe=x({id:4759,name:\"MEVerse Chain Testnet\",nativeCurrency:{decimals:18,name:\"MEVerse\",symbol:\"MEV\"},rpcUrls:{default:{http:[\"https://rpc.meversetestnet.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.meversescan.io/\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:64371115}},testnet:!0});u();var ebe=x({id:31612,name:\"Mezo\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.mezo.org\"]}},blockExplorers:{default:{name:\"Mezo Explorer\",url:\"https://explorer.mezo.org\"}}});u();var tbe=x({id:31611,name:\"Mezo Testnet\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.test.mezo.org\"]}},blockExplorers:{default:{name:\"Mezo Testnet Explorer\",url:\"https://explorer.test.mezo.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3328573}},testnet:!0});u();var nbe=x({id:185,name:\"Mint Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mintchain.io\"]}},blockExplorers:{default:{name:\"Mintchain explorer\",url:\"https://explorer.mintchain.io\"}},testnet:!1});u();var rbe=x({id:1686,name:\"Mint Sepolia Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.mintchain.io\"]}},blockExplorers:{default:{name:\"Mintchain Testnet explorer\",url:\"https://testnet-explorer.mintchain.io\"}},testnet:!0});u();var obe=x({id:124832,name:\"Mitosis Testnet\",nativeCurrency:{name:\"MITO\",symbol:\"MITO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.mitosis.org\"]}},blockExplorers:{default:{name:\"Mitosis testnet explorer\",url:\"https://testnet.mitosiscan.xyz\"}},testnet:!0});u();var SE=1,ibe=x({...zt,id:34443,name:\"Mode Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.mode.network\"]}},blockExplorers:{default:{name:\"Modescan\",url:\"https://modescan.io\"}},contracts:{...zt.contracts,disputeGameFactory:{[SE]:{address:\"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2465882},l2OutputOracle:{[SE]:{address:\"0x4317ba146D4933D889518a3e5E11Fe7a53199b04\"}},portal:{[SE]:{address:\"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07\"}},l1StandardBridge:{[SE]:{address:\"0x735aDBbE72226BD52e818E7181953f42E3b0FF21\"}}},sourceId:SE});u();var sM=11155111,abe=x({...zt,id:919,name:\"Mode Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.mode.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia.explorer.mode.network\",apiUrl:\"https://sepolia.explorer.mode.network/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[sM]:{address:\"0x2634BD65ba27AB63811c74A63118ACb312701Bfa\",blockCreated:3778393}},portal:{[sM]:{address:\"0x320e1580effF37E008F1C92700d1eBa47c1B23fD\",blockCreated:3778395}},l1StandardBridge:{[sM]:{address:\"0xbC5C679879B2965296756CD959C3C739769995E2\",blockCreated:3778392}},multicall3:{address:\"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF\",blockCreated:3019007}},testnet:!0,sourceId:sM});u();var sbe=x({id:143,name:\"Monad\",blockTime:400,nativeCurrency:{name:\"Monad\",symbol:\"MON\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.monad.xyz\",\"https://rpc1.monad.xyz\"],webSocket:[\"wss://rpc.monad.xyz\",\"wss://rpc1.monad.xyz\"]}},blockExplorers:{default:{name:\"MonadVision\",url:\"https://monadvision.com\"},monadscan:{name:\"Monadscan\",url:\"https://monadscan.com\",apiUrl:\"https://api.monadscan.com/api\"}},testnet:!1,contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:9248132}}});u();var cbe=x({id:10143,name:\"Monad Testnet\",blockTime:400,nativeCurrency:{name:\"Testnet MON Token\",symbol:\"MON\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.monad.xyz\"]}},blockExplorers:{default:{name:\"Monad Testnet explorer\",url:\"https://testnet.monadexplorer.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:251449}},testnet:!0});u();var lbe=x({id:1287,name:\"Moonbase Alpha\",nativeCurrency:{decimals:18,name:\"DEV\",symbol:\"DEV\"},rpcUrls:{default:{http:[\"https://rpc.api.moonbase.moonbeam.network\"],webSocket:[\"wss://wss.api.moonbase.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonbase.moonscan.io\",apiUrl:\"https://moonbase.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1850686}},testnet:!0});u();var ube=x({id:1284,name:\"Moonbeam\",nativeCurrency:{decimals:18,name:\"Moonbeam\",symbol:\"GLMR\"},rpcUrls:{default:{http:[\"https://rpc.api.moonbeam.network\"],webSocket:[\"wss://wss.api.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonscan.io\",apiUrl:\"https://api-moonbeam.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:609002}},testnet:!1});u();var dbe=x({id:1281,name:\"Moonbeam Development Node\",nativeCurrency:{decimals:18,name:\"DEV\",symbol:\"DEV\"},rpcUrls:{default:{http:[\"http://127.0.0.1:9944\"],webSocket:[\"wss://127.0.0.1:9944\"]}}});u();var fbe=x({id:1285,name:\"Moonriver\",nativeCurrency:{decimals:18,name:\"Moonriver\",symbol:\"MOVR\"},rpcUrls:{default:{http:[\"https://rpc.api.moonriver.moonbeam.network\"],webSocket:[\"wss://wss.api.moonriver.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonriver.moonscan.io\",apiUrl:\"https://api-moonriver.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1597904}},testnet:!1});u();var pbe=x({id:2818,name:\"Morph\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.morphl2.io\"],webSocket:[\"wss://rpc.morphl2.io:8443\"]}},blockExplorers:{default:{name:\"Morph Explorer\",url:\"https://explorer.morphl2.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3654913}},testnet:!1});u();var hbe=x({id:2810,name:\"Morph Holesky\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-quicknode-holesky.morphl2.io\"],webSocket:[\"wss://rpc-quicknode-holesky.morphl2.io\"]}},blockExplorers:{default:{name:\"Morph Holesky Explorer\",url:\"https://explorer-holesky.morphl2.io\",apiUrl:\"https://explorer-api-holesky.morphl2.io/api?\"}},testnet:!0});u();var mbe=x({id:2710,name:\"Morph Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.morphl2.io\"]}},blockExplorers:{default:{name:\"Morph Testnet Explorer\",url:\"https://explorer-testnet.morphl2.io\",apiUrl:\"https://explorer-api-testnet.morphl2.io/api\"}},testnet:!0});u();var gbe=x({id:5551,name:\"Nahmii 2 Mainnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://l2.nahmii.io\"]}},blockExplorers:{default:{name:\"Nahmii 2 Explorer\",url:\"https://explorer.n2.nahmii.io\"}},testnet:!1});u();var ybe=x({id:22222,name:\"Nautilus Mainnet\",nativeCurrency:{name:\"ZBC\",symbol:\"ZBC\",decimals:9},rpcUrls:{default:{http:[\"https://api.nautilus.nautchain.xyz\"]}},blockExplorers:{default:{name:\"NautScan\",url:\"https://nautscan.com\"}}});u();var vbe=x({id:397,name:\"NEAR Protocol\",nativeCurrency:{decimals:18,name:\"NEAR\",symbol:\"NEAR\"},rpcUrls:{default:{http:[\"https://eth-rpc.mainnet.near.org\"]}},blockExplorers:{default:{name:\"NEAR Explorer\",url:\"https://eth-explorer.near.org\"}},testnet:!1});u();var xbe=x({id:398,name:\"NEAR Protocol Testnet\",nativeCurrency:{decimals:18,name:\"NEAR\",symbol:\"NEAR\"},rpcUrls:{default:{http:[\"https://eth-rpc.testnet.near.org\"]}},blockExplorers:{default:{name:\"NEAR Explorer\",url:\"https://eth-explorer-testnet.near.org\"}},testnet:!0});u();var bbe=x({id:245022926,name:\"Neon EVM DevNet\",nativeCurrency:{name:\"NEON\",symbol:\"NEON\",decimals:18},rpcUrls:{default:{http:[\"https://devnet.neonevm.org\"]}},blockExplorers:{default:{name:\"Neonscan\",url:\"https://devnet.neonscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:205206112}},testnet:!0});u();var wbe=x({id:245022934,network:\"neonMainnet\",name:\"Neon EVM MainNet\",nativeCurrency:{name:\"NEON\",symbol:\"NEON\",decimals:18},rpcUrls:{default:{http:[\"https://neon-proxy-mainnet.solana.p2p.org\"]}},blockExplorers:{default:{name:\"Neonscan\",url:\"https://neonscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:206545524}},testnet:!1});u();var Ebe=x({id:47763,name:\"Neo X Mainnet\",nativeCurrency:{name:\"Gas\",symbol:\"GAS\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-1.rpc.banelabs.org\",\"https://mainnet-2.rpc.banelabs.org\"]}},blockExplorers:{default:{name:\"Neo X - Explorer\",url:\"https://xexplorer.neo.org\"}},testnet:!1});u();var Sbe=x({id:12227332,name:\"Neo X Testnet T4\",nativeCurrency:{name:\"Gas\",symbol:\"GAS\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.rpc.banelabs.org/\"]}},blockExplorers:{default:{name:\"neox-scan\",url:\"https://xt4scan.ngd.network\"}},testnet:!0});u();var Abe=x({id:1012,name:\"Newton\",nativeCurrency:{name:\"Newton\",symbol:\"NEW\",decimals:18},rpcUrls:{default:{http:[\"https://global.rpc.mainnet.newtonproject.org\"]}},blockExplorers:{default:{name:\"NewFi explorer\",url:\"https://explorer.newtonproject.org/\"}},testnet:!1});u();var kbe=x({id:4242,name:\"Nexi\",nativeCurrency:{name:\"Nexi\",symbol:\"NEXI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.chain.nexi.technology\"]}},blockExplorers:{default:{name:\"NexiScan\",url:\"https://www.nexiscan.com\",apiUrl:\"https://www.nexiscan.com/api\"}},contracts:{multicall3:{address:\"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E\",blockCreated:25770160}}});u();var Cbe=x({id:240,name:\"Nexilix Smart Chain\",nativeCurrency:{decimals:18,name:\"Nexilix\",symbol:\"NEXILIX\"},rpcUrls:{default:{http:[\"https://rpcurl.pos.nexilix.com\"]}},blockExplorers:{default:{name:\"NexilixScan\",url:\"https://scan.nexilix.com\"}},contracts:{multicall3:{address:\"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244\",blockCreated:74448}}});u();var Tbe=x({id:6900,name:\"Nibiru\",nativeCurrency:{decimals:18,name:\"NIBI\",symbol:\"NIBI\"},rpcUrls:{default:{http:[\"https://evm-rpc.nibiru.fi\"]}},blockExplorers:{default:{name:\"NibiScan\",url:\"https://nibiscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:19587573}}});u();var _be=x({id:200024,name:\"Nitrograph Testnet\",testnet:!0,rpcUrls:{default:{http:[\"https://rpc-testnet.nitrograph.foundation\"]}},nativeCurrency:{name:\"Nitro\",symbol:\"NOS\",decimals:18},blockExplorers:{default:{url:\"https://explorer-testnet.nitrograph.foundation\",name:\"Nitrograph Explorer\"}}});u();var Mbe=x({id:166,name:\"Nomina\",nativeCurrency:{name:\"Nomina\",symbol:\"NOM\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.nomina.io\"],webSocket:[\"wss://mainnet.nomina.io\"]}},blockExplorers:{default:{name:\"Nomina Explorer\",url:\"https://nomscan.io\"}},testnet:!1});u();var Ibe=x({id:4090,network:\"oasis-testnet\",name:\"Oasis Testnet\",nativeCurrency:{name:\"Fasttoken\",symbol:\"FTN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc1.oasis.bahamutchain.com\"]}},blockExplorers:{default:{name:\"Ftnscan\",url:\"https://oasis.ftnscan.com\",apiUrl:\"https://oasis.ftnscan.com/api\"}},testnet:!0});u();var Rbe=x({id:248,name:\"Oasys\",nativeCurrency:{name:\"Oasys\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.oasys.games\"]}},blockExplorers:{default:{name:\"OasysScan\",url:\"https://scan.oasys.games\",apiUrl:\"https://scan.oasys.games/api\"}}});u();var Pbe=x({id:911867,name:\"Odyssey Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://odyssey.ithaca.xyz\"]}},blockExplorers:{default:{name:\"Odyssey Explorer\",url:\"https://odyssey-explorer.ithaca.xyz\",apiUrl:\"https://odyssey-explorer.ithaca.xyz/api\"}},testnet:!0});u();var Bbe=x({id:66,name:\"OKC\",nativeCurrency:{decimals:18,name:\"OKT\",symbol:\"OKT\"},rpcUrls:{default:{http:[\"https://exchainrpc.okex.org\"]}},blockExplorers:{default:{name:\"oklink\",url:\"https://www.oklink.com/okc\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10364792}}});u();var Dbe=x({id:311,name:\"Omax Mainnet\",nativeCurrency:{decimals:18,name:\"OMAX\",symbol:\"OMAX\"},rpcUrls:{default:{http:[\"https://mainapi.omaxray.com\"]}},blockExplorers:{default:{name:\"Omax Explorer\",url:\"https://omaxscan.com\"}},testnet:!1});u();var Fbe=x({id:166,name:\"Omni\",nativeCurrency:{name:\"Omni\",symbol:\"OMNI\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.omni.network\"],webSocket:[\"wss://mainnet.omni.network\"]}},blockExplorers:{default:{name:\"OmniScan\",url:\"https://omniscan.network\"}},testnet:!1});u();var Obe=x({id:164,name:\"Omni Omega\",nativeCurrency:{name:\"Omni\",symbol:\"OMNI\",decimals:18},rpcUrls:{default:{http:[\"https://omega.omni.network\"],webSocket:[\"wss://omega.omni.network\"]}},blockExplorers:{default:{name:\"Omega OmniScan\",url:\"https://omega.omniscan.network/\"}},testnet:!0});u();var Lbe=x({id:309075,name:\"One World Chain Mainnet\",nativeCurrency:{decimals:18,name:\"OWCT\",symbol:\"OWCT\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.oneworldchain.org\"]}},blockExplorers:{default:{name:\"One World Explorer\",url:\"https://mainnet.oneworldchain.org\"}},testnet:!1});u();var Nbe=x({id:9700,name:\"OORT MainnetDev\",nativeCurrency:{decimals:18,name:\"OORT\",symbol:\"OORT\"},rpcUrls:{default:{http:[\"https://dev-rpc.oortech.com\"]}},blockExplorers:{default:{name:\"OORT MainnetDev Explorer\",url:\"https://dev-scan.oortech.com\"}}});u();var cM=56,Ube=x({id:204,name:\"opBNB\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://opbnb-mainnet-rpc.bnbchain.org\"]}},blockExplorers:{default:{name:\"opBNB (BSCScan)\",url:\"https://opbnb.bscscan.com\",apiUrl:\"https://api-opbnb.bscscan.com/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:512881},l2OutputOracle:{[cM]:{address:\"0x153CAB79f4767E2ff862C94aa49573294B13D169\"}},portal:{[cM]:{address:\"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519\"}},l1StandardBridge:{[cM]:{address:\"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea\"}}},sourceId:cM});u();var lM=97,zbe=x({id:5611,name:\"opBNB Testnet\",nativeCurrency:{decimals:18,name:\"tBNB\",symbol:\"tBNB\"},rpcUrls:{default:{http:[\"https://opbnb-testnet-rpc.bnbchain.org\"]}},blockExplorers:{default:{name:\"opbnbscan\",url:\"https://testnet.opbnbscan.com\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3705108},l2OutputOracle:{[lM]:{address:\"0xFf2394Bb843012562f4349C6632a0EcB92fC8810\"}},portal:{[lM]:{address:\"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31\"}},l1StandardBridge:{[lM]:{address:\"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840\"}}},testnet:!0,sourceId:lM});u();var Vbe=x({id:1612,name:\"OpenLedger\",nativeCurrency:{name:\"Open\",symbol:\"OPEN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.openledger.xyz\"]}},blockExplorers:{default:{name:\"OpenLedger Explorer\",url:\"https://scan.openledger.xyz\"}},testnet:!1});u();var AE=1,Hbe=x({...zt,id:10,name:\"OP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{default:{name:\"Optimism Explorer\",url:\"https://optimistic.etherscan.io\",apiUrl:\"https://api-optimistic.etherscan.io/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[AE]:{address:\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\"}},l2OutputOracle:{[AE]:{address:\"0xdfe97868233d1aa22e815a266982f2cf17685a27\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4286263},portal:{[AE]:{address:\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\"}},l1StandardBridge:{[AE]:{address:\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\"}}},sourceId:AE});u();var uM=5,jbe=x({...zt,id:420,name:\"Optimism Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.optimism.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli-optimism.etherscan.io\",apiUrl:\"https://goerli-optimism.etherscan.io/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[uM]:{address:\"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:49461},portal:{[uM]:{address:\"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383\"}},l1StandardBridge:{[uM]:{address:\"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8\"}}},testnet:!0,sourceId:uM});u();var kE=11155111,$be=x({...zt,id:11155420,name:\"OP Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.optimism.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\",apiUrl:\"https://optimism-sepolia.blockscout.com/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[kE]:{address:\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\"}},l2OutputOracle:{[kE]:{address:\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204},portal:{[kE]:{address:\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\"}},l1StandardBridge:{[kE]:{address:\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\"}}},testnet:!0,sourceId:kE});u();var Kbe=x({id:62050,name:\"Optopia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.optopia.ai\"]}},blockExplorers:{default:{name:\"Optopia Explorer\",url:\"https://scan.optopia.ai\"}},testnet:!1});u();var Gbe=x({id:62049,name:\"Optopia Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.optopia.ai\"]}},blockExplorers:{default:{name:\"Optopia Explorer\",url:\"https://scan-testnet.optopia.ai\"}},testnet:!0});u();var qbe=x({id:291,name:\"Orderly\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.orderly.network\"]}},blockExplorers:{default:{name:\"Orderly Explorer\",url:\"https://explorer.orderly.network\"}},testnet:!1});u();var Wbe=x({id:4460,name:\"Orderly Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz\"]}},blockExplorers:{default:{name:\"Orderly Explorer\",url:\"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz\"}},testnet:!0});u();var Ybe=x({id:41144114,name:\"Otim Devnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://devnet.otim.xyz\"]}},contracts:{batchInvoker:{address:\"0x5FbDB2315678afecb367f032d93F642f64180aa3\"}},testnet:!0});u();var Zbe=x({id:11297108109,name:\"Palm\",nativeCurrency:{decimals:18,name:\"PALM\",symbol:\"PALM\"},rpcUrls:{default:{http:[\"https://palm-mainnet.public.blastapi.io\"],webSocket:[\"wss://palm-mainnet.public.blastapi.io\"]}},blockExplorers:{default:{name:\"Chainlens\",url:\"https://palm.chainlens.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15429248}}});u();var Xbe=x({id:11297108099,name:\"Palm Testnet\",nativeCurrency:{decimals:18,name:\"PALM\",symbol:\"PALM\"},rpcUrls:{default:{http:[\"https://palm-mainnet.public.blastapi.io\"],webSocket:[\"wss://palm-mainnet.public.blastapi.io\"]}},blockExplorers:{default:{name:\"Chainlens\",url:\"https://palm.chainlens.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15429248}},testnet:!0});u();var Jbe=x({id:420420422,name:\"Paseo PassetHub\",nativeCurrency:{name:\"PAS\",symbol:\"PAS\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-passet-hub-eth-rpc.polkadot.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout-passet-hub.parity-testnet.parity.io\"}},testnet:!0});u();var Qbe=x({id:3338,name:\"Peaq\",nativeCurrency:{decimals:18,name:\"peaq\",symbol:\"PEAQ\"},rpcUrls:{default:{http:[\"https://quicknode1.peaq.xyz\",\"https://quicknode2.peaq.xyz\",\"https://quicknode3.peaq.xyz\"],webSocket:[\"wss://quicknode1.peaq.xyz\",\"wss://quicknode2.peaq.xyz\",\"wss://quicknode3.peaq.xyz\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://peaq.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3566354}}});u();var dM=1,ewe=x({id:424,network:\"pgn\",name:\"PGN\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.publicgoods.network\"]}},blockExplorers:{default:{name:\"PGN Explorer\",url:\"https://explorer.publicgoods.network\",apiUrl:\"https://explorer.publicgoods.network/api\"}},contracts:{l2OutputOracle:{[dM]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3380209},portal:{[dM]:{address:\"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c\"}},l1StandardBridge:{[dM]:{address:\"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b\"}}},formatters:_x,sourceId:dM});u();var fM=11155111,twe=x({id:58008,network:\"pgn-testnet\",name:\"PGN\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.publicgoods.network\"]}},blockExplorers:{default:{name:\"PGN Testnet Explorer\",url:\"https://explorer.sepolia.publicgoods.network\",apiUrl:\"https://explorer.sepolia.publicgoods.network/api\"}},contracts:{l2OutputOracle:{[fM]:{address:\"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe\"}},portal:{[fM]:{address:\"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179\"}},l1StandardBridge:{[fM]:{address:\"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3754925}},formatters:_x,sourceId:fM,testnet:!0});u();var nwe=x({id:13381,name:\"Phoenix Blockchain\",nativeCurrency:{name:\"Phoenix\",symbol:\"PHX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.phoenixplorer.com\"]}},blockExplorers:{default:{name:\"Phoenixplorer\",url:\"https://phoenixplorer.com\",apiUrl:\"https://phoenixplorer.com/api\"}},contracts:{multicall3:{address:\"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442\",blockCreated:5620192}}});u();var rwe=x({id:7070,name:\"Planq Mainnet\",nativeCurrency:{decimals:18,name:\"PLQ\",symbol:\"PLQ\"},rpcUrls:{default:{http:[\"https://planq-rpc.nodies.app\",\"https://evm-rpc.planq.network\",\"https://jsonrpc.planq.nodestake.top\"]}},blockExplorers:{default:{name:\"Planq Explorer\",url:\"https://evm.planq.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:8470015}},testnet:!1});u();var owe=x({id:9745,name:\"Plasma\",blockTime:1e3,nativeCurrency:{name:\"Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plasma.to\"]}},blockExplorers:{default:{name:\"PlasmaScan\",url:\"https://plasmascan.to\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}});u();var iwe=x({id:9747,name:\"Plasma Devnet\",nativeCurrency:{name:\"Devnet Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://devnet-rpc.plasma.to\"]}},testnet:!0,contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}});u();var awe=x({id:9746,name:\"Plasma Testnet\",nativeCurrency:{name:\"Testnet Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plasma.to\"]}},blockExplorers:{default:{name:\"RouteScan\",url:\"https://testnet.plasmascan.to\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0});u();var swe=x({...oi,id:1612127,name:\"PlayFi Albireo Testnet\",network:\"albireo\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://albireo-rpc.playfi.ai\"],webSocket:[\"wss://albireo-rpc-ws.playfi.ai/ws\"]}},blockExplorers:{default:{name:\"PlayFi Albireo Explorer\",url:\"https://albireo-explorer.playfi.ai\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\"}},testnet:!0});u();var cwe=x({id:242,name:\"Plinga\",nativeCurrency:{name:\"Plinga\",symbol:\"PLINGA\",decimals:18},rpcUrls:{default:{http:[\"https://rpcurl.mainnet.plgchain.com\"]}},blockExplorers:{default:{name:\"Plgscan\",url:\"https://www.plgscan.com\"}},contracts:{multicall3:{address:\"0x0989576160f2e7092908BB9479631b901060b6e4\",blockCreated:204489}}});u();var YNe=1,lwe=x({id:98865,name:\"Plume (Legacy)\",nativeCurrency:{name:\"Plume Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plumenetwork.xyz\"],webSocket:[\"wss://rpc.plumenetwork.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.plumenetwork.xyz\",apiUrl:\"https://explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:48577}},sourceId:YNe});u();var ZNe=11155111,uwe=x({id:98864,name:\"Plume Devnet (Legacy)\",nativeCurrency:{name:\"Plume Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://test-rpc.plumenetwork.xyz\"],webSocket:[\"wss://test-rpc.plumenetwork.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://test-explorer.plumenetwork.xyz\",apiUrl:\"https://test-explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:481948}},testnet:!0,sourceId:ZNe});u();var XNe=1,dwe=x({id:98866,name:\"Plume\",nativeCurrency:{name:\"Plume\",symbol:\"PLUME\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plume.org\"],webSocket:[\"wss://rpc.plume.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.plume.org\",apiUrl:\"https://explorer.plume.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:39679}},sourceId:XNe});u();var JNe=11155111,fwe=x({id:98867,name:\"Plume Testnet\",nativeCurrency:{name:\"Plume\",symbol:\"PLUME\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plume.org\"],webSocket:[\"wss://testnet-rpc.plume.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.plume.org\",apiUrl:\"https://testnet-explorer.plume.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:199712}},testnet:!0,sourceId:JNe});u();var QNe=11155111,pwe=x({id:161221135,name:\"Plume Testnet (Legacy)\",nativeCurrency:{name:\"Plume Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plumenetwork.xyz/http\"],webSocket:[\"wss://testnet-rpc.plumenetwork.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.plumenetwork.xyz\",apiUrl:\"https://testnet-explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:6022332}},testnet:!0,sourceId:QNe});u();var hwe=x({id:631571,name:\"Polter Testnet\",nativeCurrency:{decimals:18,name:\"Polter GHST\",symbol:\"GHST\"},rpcUrls:{default:{http:[\"https://geist-polter.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://polter-testnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11245}},testnet:!0});u();var mwe=x({id:137,name:\"Polygon\",blockTime:2e3,nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://polygon.drpc.org\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://polygonscan.com\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}}});u();var gwe=x({id:80002,name:\"Polygon Amoy\",nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-amoy.polygon.technology\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://amoy.polygonscan.com\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3127388}},testnet:!0});u();var ywe=x({id:80001,name:\"Polygon Mumbai\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://80001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\",apiUrl:\"https://api-testnet.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}},testnet:!0});u();var vwe=x({id:1101,name:\"Polygon zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://zkevm-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://zkevm.polygonscan.com\",apiUrl:\"https://api-zkevm.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:57746}}});u();var xwe=x({id:2442,name:\"Polygon zkEVM Cardona\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cardona.zkevm-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://cardona-zkevm.polygonscan.com\",apiUrl:\"https://cardona-zkevm.polygonscan.com/api\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:114091}}});u();var bwe=x({id:1442,name:\"Polygon zkEVM Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.public.zkevm-test.net\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://testnet-zkevm.polygonscan.com\",apiUrl:\"https://testnet-zkevm.polygonscan.com/api\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:525686}}});u();var wwe=x({id:8008,name:\"Polynomial\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.polynomial.fi\"]}},blockExplorers:{default:{name:\"Polynomial Scan\",url:\"https://polynomialscan.io\"}},testnet:!1,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}});u();var Ewe=x({id:80008,name:\"Polynomia Sepolia\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.sepolia.polynomial.fi\"]}},blockExplorers:{default:{name:\"Polynomial Scan\",url:\"https://sepolia.polynomialscan.io\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}});u();var Swe=x({id:60603,name:\"POTOS Mainnet\",nativeCurrency:{decimals:18,name:\"POTOS Token\",symbol:\"POT\"},rpcUrls:{default:{http:[\"https://rpc.potos.hk\"]}},blockExplorers:{default:{name:\"POTOS Mainnet explorer\",url:\"https://scan.potos.hk\"}},testnet:!1});u();var Awe=x({id:60600,name:\"POTOS Testnet\",nativeCurrency:{decimals:18,name:\"POTOS Token\",symbol:\"POT\"},rpcUrls:{default:{http:[\"https://rpc-testnet.potos.hk\"]}},blockExplorers:{default:{name:\"POTOS Testnet explorer\",url:\"https://scan-testnet.potos.hk\"}},testnet:!0});u();var kwe=x({id:23023,name:\"PremiumBlock Testnet\",nativeCurrency:{name:\"Premium Block\",symbol:\"PBLK\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.premiumblock.org\"]}},blockExplorers:{default:{name:\"PremiumBlocks Explorer\",url:\"https://scan.premiumblock.org\"}},testnet:!0});u();var Cwe=x({id:369,name:\"PulseChain\",nativeCurrency:{name:\"Pulse\",symbol:\"PLS\",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:[\"https://rpc.pulsechain.com\"],webSocket:[\"wss://ws.pulsechain.com\"]}},blockExplorers:{default:{name:\"PulseScan\",url:\"https://ipfs.scan.pulsechain.com\",apiUrl:\"https://api.scan.pulsechain.com/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}});u();var Twe=x({id:943,name:\"PulseChain V4\",testnet:!0,nativeCurrency:{name:\"V4 Pulse\",symbol:\"v4PLS\",decimals:18},blockTime:1e4,rpcUrls:{default:{http:[\"https://rpc.v4.testnet.pulsechain.com\"],webSocket:[\"wss://ws.v4.testnet.pulsechain.com\"]}},blockExplorers:{default:{name:\"PulseScan\",url:\"https://scan.v4.testnet.pulsechain.com\",apiUrl:\"https://scan.v4.testnet.pulsechain.com/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}});u();var _we=x({id:490092,name:\"Pumpfi Testnet\",nativeCurrency:{decimals:18,name:\"PMPT\",symbol:\"PMPT\"},rpcUrls:{default:{http:[\"https://rpc1testnet.pumpfi.me\"]}},blockExplorers:{default:{name:\"Pumpfi Testnet Scan\",url:\"https://testnetscan.pumpfi.me\"}},testnet:!0});u();var Mwe=11155111,Iwe=x({...zt,name:\"Pyrope Testnet\",testnet:!0,id:695569,sourceId:Mwe,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.pyropechain.com\"],webSocket:[\"wss://rpc.pyropechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://pyrope.blockscout.com\"}},contracts:{...zt.contracts,l1StandardBridge:{[Mwe]:{address:\"0xC24932c31D9621aE9e792576152B7ef010cFC2F8\"}}}});u();var Rwe=x({id:766,name:\"QL1\",nativeCurrency:{decimals:18,name:\"QOM\",symbol:\"QOM\"},rpcUrls:{default:{http:[\"https://rpc.qom.one\"]}},blockExplorers:{default:{name:\"Ql1 Explorer\",url:\"https://scan.qom.one\"}},contracts:{multicall3:{address:\"0x7A52370716ea730585884F5BDB0f6E60C39b8C64\"}},testnet:!1});u();var Pwe=x({id:35441,name:\"Q Mainnet\",nativeCurrency:{decimals:18,name:\"Q\",symbol:\"Q\"},rpcUrls:{default:{http:[\"https://rpc.q.org\"]}},blockExplorers:{default:{name:\"Q Mainnet Explorer\",url:\"https://explorer.q.org\",apiUrl:\"https://explorer.q.org/api\"}}});u();var Bwe=x({id:35443,name:\"Q Testnet\",nativeCurrency:{decimals:18,name:\"Q\",symbol:\"Q\"},rpcUrls:{default:{http:[\"https://rpc.qtestnet.org\"]}},blockExplorers:{default:{name:\"Q Testnet Explorer\",url:\"https://explorer.qtestnet.org\",apiUrl:\"https://explorer.qtestnet.org/api\"}},testnet:!0});u();var Dwe=x({id:9,name:\"Quai Network Mainnet\",nativeCurrency:{decimals:18,name:\"Quai\",symbol:\"QUAI\"},rpcUrls:{default:{http:[\"https://rpc.quai.network/cyprus1\"]}},blockExplorers:{default:{name:\"Quaiscan\",url:\"https://quaiscan.io\",apiUrl:\"https://quaiscan.io/api\"}},testnet:!1});u();var Fwe=x({id:15e3,name:\"Quai Network Testnet\",nativeCurrency:{decimals:18,name:\"Quai\",symbol:\"QUAI\"},rpcUrls:{default:{http:[\"https://orchard.rpc.quai.network/cyprus1\"]}},blockExplorers:{default:{name:\"Orchard Quaiscan\",url:\"https://orchard.quaiscan.io\",apiUrl:\"https://orchard.quaiscan.io/api\"}},testnet:!0});u();var Owe=x({id:723487,name:\"Radius Network\",nativeCurrency:{name:\"Radius USD\",symbol:\"RUSD\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.radiustech.xyz\"]}},blockExplorers:{default:{name:\"Radius Network Explorer\",url:\"https://network.radiustech.xyz\"}},testnet:!1});u();var Lwe=x({id:72344,name:\"Radius Test Network\",nativeCurrency:{name:\"Radius USD\",symbol:\"RUSD\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.radiustech.xyz\"]}},blockExplorers:{default:{name:\"Radius Test Network Explorer\",url:\"https://testnet.radiustech.xyz\"}},testnet:!0});u();var Nwe=x({id:5318007,name:\"Reactive Lasna Testnet\",nativeCurrency:{decimals:18,name:\"Lasna React\",symbol:\"lREACT\"},rpcUrls:{default:{http:[\"https://lasna-rpc.rnk.dev\"]}},blockExplorers:{default:{name:\"Reactscan\",url:\"https://lasna.reactscan.net\"}},testnet:!0});u();var Uwe=x({id:111188,name:\"re.al\",nativeCurrency:{name:\"reETH\",decimals:18,symbol:\"reETH\"},rpcUrls:{default:{http:[\"https://rpc.realforreal.gelato.digital\"]}},blockExplorers:{default:{name:\"re.al Explorer\",url:\"https://explorer.re.al\",apiUrl:\"https://explorer.re.al/api/v2\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:695}}});u();var zwe=x({id:151,name:\"Redbelly Network Mainnet\",nativeCurrency:{name:\"Redbelly Native Coin\",symbol:\"RBNT\",decimals:18},rpcUrls:{default:{http:[\"https://governors.mainnet.redbelly.network\"]}},blockExplorers:{default:{name:\"Routescan\",url:\"https://redbelly.routescan.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api\"}},testnet:!1});u();var Vwe=x({id:153,name:\"Redbelly Network Testnet\",nativeCurrency:{name:\"Redbelly Native Coin\",symbol:\"RBNT\",decimals:18},rpcUrls:{default:{http:[\"https://governors.testnet.redbelly.network\"]}},blockExplorers:{default:{name:\"Routescan\",url:\"https://redbelly.testnet.routescan.io\",apiUrl:\"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api\"}},testnet:!0});u();var Hwe=x({id:50342,name:\"Reddio\",nativeCurrency:{name:\"Reddio\",symbol:\"RED\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.reddio.com/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://reddio.cloud.blockscout.com\",apiUrl:\"https://reddio.cloud.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:848849}},testnet:!1});u();var jwe=x({id:50341,name:\"Reddio Sepolia\",nativeCurrency:{name:\"Reddio\",symbol:\"RED\",decimals:18},rpcUrls:{default:{http:[\"https://reddio-dev.reddio.com\"]}},blockExplorers:{default:{name:\"Reddioscan\",url:\"https://reddio-devnet.l2scan.co\",apiUrl:\"https://reddio-devnet.l2scan.co/api\"}},testnet:!0});u();var pM=1,$we=x({...zt,name:\"Redstone\",id:690,sourceId:pM,nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.redstonechain.com\"],webSocket:[\"wss://rpc.redstonechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.redstone.xyz\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[pM]:{address:\"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae\",blockCreated:19578329}},l2OutputOracle:{[pM]:{address:\"0xa426A052f657AEEefc298b3B5c35a470e4739d69\",blockCreated:19578337}},l1StandardBridge:{[pM]:{address:\"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69\",blockCreated:19578331}}}});u();var Kwe=x({id:47805,name:\"REI Mainnet\",nativeCurrency:{decimals:18,name:\"REI\",symbol:\"REI\"},rpcUrls:{default:{http:[\"https://rpc.rei.network\"],webSocket:[\"wss://rpc.rei.network\"]}},blockExplorers:{default:{name:\"REI Scan\",url:\"https://scan.rei.network\"}},testnet:!1});u();var Gwe=x({id:1729,name:\"Reya Network\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.reya.network\"],webSocket:[\"wss://ws.reya.network\"]}},blockExplorers:{default:{name:\"Reya Network Explorer\",url:\"https://explorer.reya.network\"}},testnet:!1});u();var qwe=x({id:4153,name:\"RISE\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.risechain.com\"],webSocket:[\"wss://rpc.risechain.com/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.risechain.com\",apiUrl:\"https://explorer.risechain.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}});u();var Wwe=x({id:11155931,name:\"RISE Testnet\",nativeCurrency:{name:\"RISE Testnet Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.riselabs.xyz\"],webSocket:[\"wss://testnet.riselabs.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.testnet.riselabs.xyz/\",apiUrl:\"https://explorer.testnet.riselabs.xyz/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},testnet:!0});u();var Ywe=x({id:753,name:\"Rivalz\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rivalz.calderachain.xyz/http\"]}},blockExplorers:{default:{name:\"Rivalz Caldera Explorer\",url:\"https://rivalz.calderaexplorer.xyz\"}},testnet:!1});u();var Zwe=x({id:570,name:\"Rollux Mainnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.rollux.com\"],webSocket:[\"wss://rpc.rollux.com/wss\"]}},blockExplorers:{default:{name:\"RolluxExplorer\",url:\"https://explorer.rollux.com\",apiUrl:\"https://explorer.rollux.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:119222}}});u();var Xwe=x({id:57e3,name:\"Rollux Testnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc-tanenbaum.rollux.com/\"],webSocket:[\"wss://rpc-tanenbaum.rollux.com/wss\"]}},blockExplorers:{default:{name:\"RolluxTestnetExplorer\",url:\"https://rollux.tanenbaum.io\",apiUrl:\"https://rollux.tanenbaum.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1813675}},testnet:!0});u();var Jwe=x({id:2020,name:\"Ronin\",nativeCurrency:{name:\"RON\",symbol:\"RON\",decimals:18},rpcUrls:{default:{http:[\"https://api.roninchain.com/rpc\"]}},blockExplorers:{default:{name:\"Ronin Explorer\",url:\"https://app.roninchain.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:26023535}}});u();var Qwe=x({id:7668,name:\"The Root Network\",nativeCurrency:{decimals:18,name:\"XRP\",symbol:\"XRP\"},rpcUrls:{default:{http:[\"https://root.rootnet.live/archive\"],webSocket:[\"wss://root.rootnet.live/archive/ws\"]}},blockExplorers:{default:{name:\"Rootscan\",url:\"https://rootscan.io\"}},contracts:{multicall3:{address:\"0xc9C2E2429AeC354916c476B30d729deDdC94988d\",blockCreated:9218338}}});u();var e3e=x({id:7672,name:\"The Root Network - Porcini\",nativeCurrency:{decimals:18,name:\"XRP\",symbol:\"XRP\"},rpcUrls:{default:{http:[\"https://porcini.rootnet.app/archive\"],webSocket:[\"wss://porcini.rootnet.app/archive/ws\"]}},blockExplorers:{default:{name:\"Rootscan\",url:\"https://porcini.rootscan.io\"}},contracts:{multicall3:{address:\"0xc9C2E2429AeC354916c476B30d729deDdC94988d\",blockCreated:10555692}},testnet:!0});u();var t3e=x({id:30,name:\"Rootstock Mainnet\",network:\"rootstock\",nativeCurrency:{decimals:18,name:\"Rootstock Bitcoin\",symbol:\"RBTC\"},rpcUrls:{default:{http:[\"https://public-node.rsk.co\"]}},blockExplorers:{default:{name:\"RSK Explorer\",url:\"https://explorer.rsk.co\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4249540}}});u();var n3e=x({id:31,name:\"Rootstock Testnet\",network:\"rootstock\",nativeCurrency:{decimals:18,name:\"Rootstock Bitcoin\",symbol:\"tRBTC\"},rpcUrls:{default:{http:[\"https://public-node.testnet.rsk.co\"]}},blockExplorers:{default:{name:\"RSK Explorer\",url:\"https://explorer.testnet.rootstock.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2771150}},testnet:!0});u();var hM=1,r3e=x({...zt,id:12553,name:\"RSS3 VSL Mainnet\",nativeCurrency:{name:\"RSS3\",symbol:\"RSS3\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.rss3.io\"]}},blockExplorers:{default:{name:\"RSS3 VSL Mainnet Scan\",url:\"https://scan.rss3.io\",apiUrl:\"https://scan.rss3.io/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[hM]:{address:\"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14193},portal:{[hM]:{address:\"0x6A12432491bbbE8d3babf75F759766774C778Db4\",blockCreated:19387057}},l1StandardBridge:{[hM]:{address:\"0x4cbab69108Aa72151EDa5A3c164eA86845f18438\"}}},sourceId:hM});u();var mM=11155111,o3e=x({...zt,id:2331,name:\"RSS3 VSL Sepolia Testnet\",nativeCurrency:{name:\"RSS3\",symbol:\"RSS3\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.rss3.io\"]}},blockExplorers:{default:{name:\"RSS3 VSL Sepolia Testnet Scan\",url:\"https://scan.testnet.rss3.io\",apiUrl:\"https://scan.testnet.rss3.io/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[mM]:{address:\"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:55697},portal:{[mM]:{address:\"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57\",blockCreated:5345035}},l1StandardBridge:{[mM]:{address:\"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B\"}}},testnet:!0,sourceId:mM});u();var i3e=x({id:7225878,name:\"Saakuru Mainnet\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.saakuru.network\"]}},blockExplorers:{default:{name:\"Saakuru Explorer\",url:\"https://explorer.saakuru.network\"}},testnet:!1});u();var a3e=x({id:5464,name:\"Saga\",network:\"saga\",nativeCurrency:{decimals:18,name:\"gas\",symbol:\"GAS\"},rpcUrls:{default:{http:[\"https://sagaevm.jsonrpc.sagarpc.io\"]}},blockExplorers:{default:{name:\"Saga Explorer\",url:\"https://sagaevm.sagaexplorer.io\"}},contracts:{multicall3:{address:\"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160\",blockCreated:467530}}});u();var s3e=x({id:202601,name:\"Ronin Saigon Testnet\",nativeCurrency:{name:\"RON\",symbol:\"RON\",decimals:18},rpcUrls:{default:{http:[\"https://saigon-testnet.roninchain.com/rpc\"]}},blockExplorers:{default:{name:\"Saigon Explorer\",url:\"https://saigon-explorer.roninchain.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:18736871}},testnet:!0});u();var c3e=x({id:1996,name:\"Sanko\",nativeCurrency:{name:\"DMT\",symbol:\"DMT\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.sanko.xyz\"]}},blockExplorers:{default:{name:\"Sanko Explorer\",url:\"https://explorer.sanko.xyz\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:37}},testnet:!1});u();var l3e=x({id:23294,name:\"Oasis Sapphire\",network:\"sapphire\",nativeCurrency:{name:\"Sapphire Rose\",symbol:\"ROSE\",decimals:18},rpcUrls:{default:{http:[\"https://sapphire.oasis.io\"],webSocket:[\"wss://sapphire.oasis.io/ws\"]}},blockExplorers:{default:{name:\"Oasis Explorer\",url:\"https://explorer.oasis.io/mainnet/sapphire\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:734531}}});u();var u3e=x({id:23295,name:\"Oasis Sapphire Testnet\",network:\"sapphire-testnet\",nativeCurrency:{name:\"Sapphire Test Rose\",symbol:\"TEST\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.sapphire.oasis.dev\"],webSocket:[\"wss://testnet.sapphire.oasis.dev/ws\"]}},blockExplorers:{default:{name:\"Oasis Explorer\",url:\"https://explorer.oasis.io/testnet/sapphire\"}},testnet:!0});u();var d3e=x({id:3109,name:\"SatoshiVM Alpha Mainnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://alpha-rpc-node-http.svmscan.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://svmscan.io\",apiUrl:\"https://svmscan.io/api\"}}});u();var f3e=x({id:3110,name:\"SatoshiVM Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://test-rpc-node-http.svmscan.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet.svmscan.io\",apiUrl:\"https://testnet.svmscan.io/api\"}},testnet:!0});u();var p3e=x({id:534352,name:\"Scroll\",blockTime:3e3,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.scroll.io\"],webSocket:[\"wss://wss-rpc.scroll.io/ws\"]}},blockExplorers:{default:{name:\"Scrollscan\",url:\"https://scrollscan.com\",apiUrl:\"https://api.scrollscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14}},testnet:!1});u();var h3e=x({id:534351,name:\"Scroll Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.scroll.io\"]}},blockExplorers:{default:{name:\"Scrollscan\",url:\"https://sepolia.scrollscan.com\",apiUrl:\"https://api-sepolia.scrollscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:9473}},testnet:!0});u();var m3e=x({id:1329,name:\"Sei Network\",nativeCurrency:{name:\"Sei\",symbol:\"SEI\",decimals:18},rpcUrls:{default:{http:[\"https://evm-rpc.sei-apis.com/\"],webSocket:[\"wss://evm-ws.sei-apis.com/\"]}},blockExplorers:{default:{name:\"Seiscan\",url:\"https://seiscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}}});u();var g3e=x({id:5124,name:\"Seismic Devnet\",nativeCurrency:{name:\"Seismic Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://node-2.seismicdev.net/rpc\"]}},blockExplorers:{default:{name:\"Seismic Devnet Explorer\",url:\"https://explorer-2.seismicdev.net\"}},testnet:!0});u();var y3e=x({id:1328,name:\"Sei Testnet\",nativeCurrency:{name:\"Sei\",symbol:\"SEI\",decimals:18},rpcUrls:{default:{http:[\"https://evm-rpc-testnet.sei-apis.com\"],webSocket:[\"wss://evm-ws-testnet.sei-apis.com\"]}},blockExplorers:{default:{name:\"Seiscan\",url:\"https://testnet.seiscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:98697651}},testnet:!0});u();var v3e=x({id:11155111,name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://11155111.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\",apiUrl:\"https://api-sepolia.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:751532},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:8928790}},testnet:!0});u();var gM=1,x3e=x({...zt,id:360,name:\"Shape\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.shape.network\"]}},blockExplorers:{default:{name:\"shapescan\",url:\"https://shapescan.xyz\",apiUrl:\"https://shapescan.xyz/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[gM]:{address:\"0x6Ef8c69CfE4635d866e3E02732068022c06e724D\",blockCreated:20369940}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1},portal:{[gM]:{address:\"0xEB06fFa16011B5628BaB98E29776361c83741dd3\",blockCreated:20369933}},l1StandardBridge:{[gM]:{address:\"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B\",blockCreated:20369935}}},sourceId:gM});u();var eUe=11155111,b3e=x({...zt,id:11011,name:\"Shape Sepolia Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.shape.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer-sepolia.shape.network/\",apiUrl:\"https://explorer-sepolia.shape.network/api/v2\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1}},testnet:!0,sourceId:eUe});u();var w3e=x({id:8118,name:\"Shardeum\",nativeCurrency:{name:\"Shardeum\",symbol:\"SHM\",decimals:18},rpcUrls:{default:{http:[\"https://api.shardeum.org\"]}},blockExplorers:{default:{name:\"Shardeum Explorer\",url:\"https://explorer.shardeum.org\"}},testnet:!1});u();var E3e=x({id:8082,name:\"Shardeum Sphinx\",nativeCurrency:{name:\"SHARDEUM\",symbol:\"SHM\",decimals:18},rpcUrls:{default:{http:[\"https://sphinx.shardeum.org\"]}},blockExplorers:{default:{name:\"Shardeum Explorer\",url:\"https://explorer-sphinx.shardeum.org\"}},testnet:!0});u();var S3e=x({id:109,name:\"Shibarium\",network:\"shibarium\",nativeCurrency:{name:\"Bone\",symbol:\"BONE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.shibrpc.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://shibariumscan.io\"}},contracts:{multicall3:{address:\"0x864Bf681ADD6052395188A89101A1B37d3B4C961\",blockCreated:265900}}});u();var A3e=x({id:157,name:\"Puppynet Shibarium\",nativeCurrency:{decimals:18,name:\"Bone\",symbol:\"BONE\"},rpcUrls:{default:{http:[\"https://puppynet.shibrpc.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://puppyscan.shib.io\",apiUrl:\"https://puppyscan.shib.io/api\"}},contracts:{multicall3:{address:\"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c\",blockCreated:3035769}},testnet:!0});u();var k3e=x({id:336,name:\"Shiden\",nativeCurrency:{decimals:18,name:\"SDN\",symbol:\"SDN\"},rpcUrls:{default:{http:[\"https://shiden.public.blastapi.io\"],webSocket:[\"wss://shiden-rpc.dwellir.com\"]}},blockExplorers:{default:{name:\"Shiden Scan\",url:\"https://shiden.subscan.io\"}},testnet:!1});u();var C3e=x({id:148,name:\"Shimmer\",network:\"shimmer\",nativeCurrency:{decimals:18,name:\"Shimmer\",symbol:\"SMR\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.shimmer.network\"]}},blockExplorers:{default:{name:\"Shimmer Network Explorer\",url:\"https://explorer.evm.shimmer.network\",apiUrl:\"https://explorer.evm.shimmer.network/api\"}}});u();var T3e=x({id:1073,name:\"Shimmer Testnet\",network:\"shimmer-testnet\",nativeCurrency:{decimals:18,name:\"Shimmer\",symbol:\"SMR\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.testnet.shimmer.network\"]}},blockExplorers:{default:{name:\"Shimmer Network Explorer\",url:\"https://explorer.evm.testnet.shimmer.network\",apiUrl:\"https://explorer.evm.testnet.shimmer.network/api\"}},testnet:!0});u();var _3e=x({id:97453,name:\"Sidra Chain\",nativeCurrency:{decimals:18,name:\"Sidra Digital Asset\",symbol:\"SDA\"},rpcUrls:{default:{http:[\"https://node.sidrachain.com\"]}},blockExplorers:{default:{name:\"Sidra Chain Explorer\",url:\"https://ledger.sidrachain.com\"}}});u();var M3e=x({id:380929,name:\"Silent Data Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.silentdata.com\"]}},blockExplorers:{default:{name:\"Silent Data Mainnet Explorer\",url:\"https://explorer-mainnet.rollup.silentdata.com\"}},testnet:!1});u();var I3e=x({id:2355,name:\"Silicon zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.silicon.network\",\"https://silicon-mainnet.nodeinfra.com\"]}},blockExplorers:{default:{name:\"SiliconScope\",url:\"https://scope.silicon.network\"}}});u();var R3e=x({id:1722641160,name:\"Silicon Sepolia zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-sepolia.silicon.network\",\"https://silicon-testnet.nodeinfra.com\"]}},blockExplorers:{default:{name:\"SiliconSepoliaScope\",url:\"https://scope-sepolia.silicon.network\"}},testnet:!0});u();var P3e=x({id:98,name:\"Six Protocol\",nativeCurrency:{decimals:18,name:\"SIX\",symbol:\"SIX\"},rpcUrls:{default:{http:[\"https://sixnet-rpc-evm.sixprotocol.net\"]}},blockExplorers:{default:{name:\"Six Protocol Scan\",url:\"https://sixscan.io/sixnet\"}},testnet:!1});u();var B3e=x({id:391845894,name:\"SKALE | Block Brawlers\",nativeCurrency:{name:\"BRAWL\",symbol:\"BRAWL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/frayed-decent-antares\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://frayed-decent-antares.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var D3e=x({id:1564830818,name:\"SKALE Calypso Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3107626}}});u();var F3e=x({id:974399131,name:\"SKALE Calypso Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/giant-half-dual-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:103220}},testnet:!0});u();var O3e=x({id:1026062157,name:\"SKALE | CryptoBlades\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var L3e=x({id:1032942172,name:\"SKALE | Crypto Colosseum\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/haunting-devoted-deneb\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var N3e=x({id:2046399126,name:\"SKALE Europa Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/elated-tan-skat\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://elated-tan-skat.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3113495}}});u();var U3e=x({id:1444673419,name:\"SKALE Europa Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/juicy-low-small-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:110858}},testnet:!0});u();var z3e=x({id:2139927552,name:\"Exorde Network\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/light-vast-diphda\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://light-vast-diphda.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var V3e=x({id:1273227453,name:\"SKALE | Human Protocol\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/wan-red-ain\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/wan-red-ain\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://wan-red-ain.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var H3e=x({id:1482601649,name:\"SKALE Nebula Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/green-giddy-denebola\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://green-giddy-denebola.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2372986}}});u();var j3e=x({id:37084624,name:\"SKALE Nebula Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:105141}},testnet:!0});u();var $3e=x({id:278611351,name:\"SKALE | Razor Network\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/turbulent-unique-scheat\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com\"}},contracts:{}});u();var K3e=x({id:1187947933,name:\"SKALE Base\",nativeCurrency:{name:\"Credits\",symbol:\"CREDIT\",decimals:18},rpcUrls:{default:{http:[\"https://skale-base.skalenodes.com/v1/base\"],webSocket:[\"wss://skale-base.skalenodes.com/v1/ws/base\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://skale-base-explorer.skalenodes.com/\"}},testnet:!0});u();var G3e=x({id:324705682,name:\"SKALE Base Sepolia Testnet\",nativeCurrency:{name:\"Credits\",symbol:\"CREDIT\",decimals:18},rpcUrls:{default:{http:[\"https://base-sepolia-testnet.skalenodes.com/v1/base-testnet\"],webSocket:[\"wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://base-sepolia-testnet-explorer.skalenodes.com/\"}},testnet:!0});u();var q3e=x({id:1350216234,name:\"SKALE Titan Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/parallel-stormy-spica\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2076458}}});u();var W3e=x({id:1020352220,name:\"SKALE Titan Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/aware-fake-trim-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:104072}},testnet:!0});u();var Y3e=x({id:984123,name:\"Forma Sketchpad\",network:\"sketchpad\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sketchpad-1.forma.art\"],webSocket:[\"wss://ws.sketchpad-1.forma.art\"]}},blockExplorers:{default:{name:\"Sketchpad Explorer\",url:\"https://explorer.sketchpad-1.forma.art\"}},testnet:!0});u();var CE=1,Z3e=x({...zt,id:2192,network:\"snaxchain-mainnet\",name:\"SnaxChain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.snaxchain.io\"]}},blockExplorers:{default:{name:\"Snax Explorer\",url:\"https://explorer.snaxchain.io\",apiUrl:\"https://explorer.snaxchain.io/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[CE]:{address:\"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46\"}},l2OutputOracle:{[CE]:{address:\"0x2172e492Fc807F5d5645D0E3543f139ECF539294\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[CE]:{address:\"0x79f446D024d74D0Bb6E699C131c703463c5D65E9\"}},l1StandardBridge:{[CE]:{address:\"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA\"}}},sourceId:CE});u();var TE=11155111,X3e=x({...zt,id:13001,network:\"snaxchain-testnet\",name:\"SnaxChain Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.snaxchain.io\"]}},blockExplorers:{default:{name:\"Snax Explorer\",url:\"https://testnet-explorer.snaxchain.io\",apiUrl:\"https://testnet-explorer.snaxchain.io/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[TE]:{address:\"0x206a75d89d45F146C54020F132FF93bEDD09f55E\"}},l2OutputOracle:{[TE]:{address:\"0x60e3A368a4cdCEf85ffB964e372726F56A46221e\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[TE]:{address:\"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E\"}},l1StandardBridge:{[TE]:{address:\"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74\"}}},testnet:!0,sourceId:TE});u();var J3e=x({id:5031,name:\"Somnia\",nativeCurrency:{name:\"Somnia\",symbol:\"SOMI\",decimals:18},rpcUrls:{default:{http:[\"https://api.infra.mainnet.somnia.network\"]}},blockExplorers:{default:{name:\"Somnia Explorer\",url:\"https://explorer.somnia.network\",apiUrl:\"https://explorer.somnia.network/api\"}},testnet:!1});u();var Q3e=x({id:50312,name:\"Somnia Testnet\",nativeCurrency:{name:\"STT\",symbol:\"STT\",decimals:18},rpcUrls:{default:{http:[\"https://dream-rpc.somnia.network\"]}},blockExplorers:{default:{name:\"Somnia Testnet Explorer\",url:\"https://shannon-explorer.somnia.network/\",apiUrl:\"https://shannon-explorer.somnia.network/api\"}},contracts:{multicall3:{address:\"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223\",blockCreated:71314235}},testnet:!0});u();var _E=1,e6e=x({...zt,id:1868,name:\"Soneium Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.soneium.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://soneium.blockscout.com\",apiUrl:\"https://soneium.blockscout.com/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[_E]:{address:\"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0\"}},l2OutputOracle:{[_E]:{address:\"0x0000000000000000000000000000000000000000\"}},portal:{[_E]:{address:\"0x88e529a6ccd302c948689cd5156c83d4614fae92\",blockCreated:7061266}},l1StandardBridge:{[_E]:{address:\"0xeb9bf100225c214efc3e7c651ebbadcf85177607\",blockCreated:7061266}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},sourceId:_E});u();var ME=11155111,t6e=x({...zt,id:1946,name:\"Soneium Minato Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.minato.soneium.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://soneium-minato.blockscout.com\",apiUrl:\"https://soneium-minato.blockscout.com/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[ME]:{address:\"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01\"}},l2OutputOracle:{[ME]:{address:\"0x710e5286C746eC38beeB7538d0146f60D27be343\"}},portal:{[ME]:{address:\"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3\",blockCreated:6466136}},l1StandardBridge:{[ME]:{address:\"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2\",blockCreated:6466136}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},testnet:!0,sourceId:ME});u();var n6e=x({id:19,name:\"Songbird Canary-Network\",nativeCurrency:{decimals:18,name:\"Songbird\",symbol:\"SGB\"},rpcUrls:{default:{http:[\"https://songbird-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Songbird Explorer\",url:\"https://songbird-explorer.flare.network\",apiUrl:\"https://songbird-explorer.flare.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13382504}}});u();var r6e=x({id:16,name:\"Songbird Testnet Coston\",nativeCurrency:{decimals:18,name:\"Coston Flare\",symbol:\"CFLR\"},rpcUrls:{default:{http:[\"https://coston-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Coston Explorer\",url:\"https://coston-explorer.flare.network\",apiUrl:\"https://coston-explorer.flare.network/api\"}},testnet:!0});u();var o6e=x({id:146,name:\"Sonic\",blockTime:630,nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Explorer\",url:\"https://sonicscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:60}},testnet:!1});u();var i6e=x({id:57054,name:\"Sonic Blaze Testnet\",nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.blaze.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Blaze Testnet Explorer\",url:\"https://testnet.sonicscan.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1100}},testnet:!0});u();var a6e=x({id:64165,name:\"Sonic Testnet\",nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.testnet.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Testnet Explorer\",url:\"https://testnet.soniclabs.com/\"}},testnet:!0});u();var s6e=x({...oi,blockTime:200,id:50104,name:\"Sophon\",nativeCurrency:{decimals:18,name:\"Sophon\",symbol:\"SOPH\"},rpcUrls:{default:{http:[\"https://rpc.sophon.xyz\"],webSocket:[\"wss://rpc.sophon.xyz/ws\"]}},blockExplorers:{default:{name:\"Sophon Block Explorer\",url:\"https://explorer.sophon.xyz\"}},contracts:{multicall3:{address:\"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8\",blockCreated:116}},testnet:!1});u();var c6e=x({...oi,blockTime:200,id:531050104,name:\"Sophon Testnet\",nativeCurrency:{decimals:18,name:\"Sophon\",symbol:\"SOPH\"},rpcUrls:{default:{http:[\"https://rpc.testnet.sophon.xyz\"],webSocket:[\"wss://rpc.testnet.sophon.xyz/ws\"]}},blockExplorers:{default:{name:\"Sophon Block Explorer\",url:\"https://explorer.testnet.sophon.xyz\"}},contracts:{multicall3:{address:\"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af\",blockCreated:15642}},testnet:!0});u();var l6e=x({id:100021,name:\"Sova\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.sova.io\"]}},blockExplorers:{default:{name:\"Sova Block Explorer\",url:\"hhttps://explorer.sova.io\"}},testnet:!1});u();var u6e=x({id:120893,name:\"Sova Network Sepolia\",nativeCurrency:{decimals:18,name:\"Sepolia Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.testnet.sova.io\"]}},blockExplorers:{default:{name:\"Sova Sepolia Explorer\",url:\"https://explorer.testnet.sova.io\"}},testnet:!0});u();var d6e=x({id:88882,name:\"Chiliz Spicy Testnet\",network:\"chiliz-spicy-Testnet\",nativeCurrency:{decimals:18,name:\"CHZ\",symbol:\"CHZ\"},rpcUrls:{default:{http:[\"https://spicy-rpc.chiliz.com\",\"https://chiliz-spicy-rpc.publicnode.com\"],webSocket:[\"wss://spicy-rpc-ws.chiliz.com\",\"wss://chiliz-spicy-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Chiliz Explorer\",url:\"http://spicy-explorer.chiliz.com\",apiUrl:\"http://spicy-explorer.chiliz.com/api\"}},testnet:!0});u();var f6e=x({id:988,name:\"Stable Mainnet\",blockTime:700,nativeCurrency:{name:\"USDT0\",symbol:\"USDT0\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stable.xyz\"],webSocket:[\"wss://rpc.stable.xyz\"]}},blockExplorers:{default:{name:\"Stablescan\",url:\"https://stablescan.xyz\",apiUrl:\"https://api.etherscan.io/v2/api?chainid=988\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2423647}},testnet:!1});u();var p6e=x({id:2201,name:\"Stable Testnet\",blockTime:700,nativeCurrency:{name:\"USDT0\",symbol:\"USDT0\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.stable.xyz\"],webSocket:[\"wss://rpc.testnet.stable.xyz\"]}},blockExplorers:{default:{name:\"Stablescan\",url:\"https://testnet.stablescan.xyz\",apiUrl:\"https://api.etherscan.io/v2/api?chainid=2201\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:22364430}},testnet:!0});u();var SH=x({...Zx,id:1660990954,name:\"Status Network Sepolia\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://public.sepolia.rpc.status.network\"],webSocket:[\"wss://public.sepolia.rpc.status.network/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepoliascan.status.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1578364}},testnet:!0});u();var h6e=x({id:1234,name:\"Step Network\",nativeCurrency:{name:\"FITFI\",symbol:\"FITFI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.step.network\"]}},blockExplorers:{default:{name:\"Step Scan\",url:\"https://stepscan.io\"}},testnet:!1});u();var m6e=x({id:1514,name:\"Story\",nativeCurrency:{decimals:18,name:\"IP Token\",symbol:\"IP\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:340998},ensRegistry:{address:\"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17\",blockCreated:648924},ensUniversalResolver:{address:\"0xddfb18888a9466688235887dec2a10c4f5effee9\",blockCreated:649114}},rpcUrls:{default:{http:[\"https://mainnet.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story explorer\",url:\"https://storyscan.io\",apiUrl:\"https://storyscan.io/api/v2\"}},ensTlds:[\".ip\"],testnet:!1});u();var g6e=x({id:1315,name:\"Story Aeneid\",network:\"story-aeneid\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1792},ensRegistry:{address:\"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17\",blockCreated:1322033},ensUniversalResolver:{address:\"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD\",blockCreated:1322097}},rpcUrls:{default:{http:[\"https://aeneid.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Aeneid Explorer\",url:\"https://aeneid.storyscan.io\",apiUrl:\"https://aeneid.storyscan.io/api/v2\"}},ensTlds:[\".ip\"],testnet:!0});u();var y6e=x({id:1516,name:\"Story Odyssey\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},rpcUrls:{default:{http:[\"https://rpc.odyssey.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Odyssey Explorer\",url:\"https://odyssey.storyscan.xyz\"}},testnet:!0});u();var v6e=x({id:1513,name:\"Story Testnet\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},rpcUrls:{default:{http:[\"https://testnet.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Testnet Explorer\",url:\"https://testnet.storyscan.xyz\"}},testnet:!0});u();var x6e=x({id:105105,name:\"Stratis Mainnet\",network:\"stratis\",nativeCurrency:{name:\"Stratis\",symbol:\"STRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stratisevm.com\"]}},blockExplorers:{default:{name:\"Stratis Explorer\",url:\"https://explorer.stratisevm.com\"}}});u();var b6e=x({id:964,name:\"Subtensor EVM\",nativeCurrency:{decimals:18,name:\"TAO\",symbol:\"TAO\"},rpcUrls:{default:{http:[\"https://lite.chain.opentensor.ai\"]}},blockExplorers:{default:{name:\"Taostats EVM Explorer\",url:\"https://evm.taostats.io\",apiUrl:\"https://evm.taostats.io/api\"}},testnet:!1});u();var w6e=x({id:8866,name:\"SuperLumio\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.lumio.io\"]}},blockExplorers:{default:{name:\"Lumio explorer\",url:\"https://explorer.lumio.io\"}},testnet:!1});u();var E6e=x({id:55244,name:\"Superposition\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.superposition.so\"]}},blockExplorers:{default:{name:\"Superposition Explorer\",url:\"https://explorer.superposition.so\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:39}},testnet:!1});u();var IE=1,S6e=x({...zt,id:5330,name:\"Superseed\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.superseed.xyz\"]}},blockExplorers:{default:{name:\"Superseed Explorer\",url:\"https://explorer.superseed.xyz\",apiUrl:\"https://explorer.superseed.xyz/api/v2\"}},contracts:{...zt.contracts,disputeGameFactory:{[IE]:{address:\"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0\",blockCreated:20737481}},l2OutputOracle:{[IE]:{address:\"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949\",blockCreated:20737481}},portal:{[IE]:{address:\"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07\",blockCreated:20737481}},l1StandardBridge:{[IE]:{address:\"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede\",blockCreated:20737481}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},sourceId:IE});u();var AH=11155111,A6e=x({...zt,id:53302,name:\"Superseed Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.superseed.xyz\"]}},blockExplorers:{default:{name:\"Superseed Sepolia Explorer\",url:\"https://sepolia-explorer.superseed.xyz\",apiUrl:\"https://sepolia-explorer.superseed.xyz/api/v2\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},portal:{[AH]:{address:\"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB\",blockCreated:5523438}},l1StandardBridge:{[AH]:{address:\"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C\",blockCreated:5523442}}},testnet:!0,sourceId:AH});u();var k6e=x({id:763375,name:\"Surge Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://l2-rpc.hoodi.surge.wtf\"],webSocket:[\"wss://l2-ws.hoodi.surge.wtf\"]}},blockExplorers:{default:{name:\"Surge Testnet Blockscout\",url:\"https://explorer.hoodi.surge.wtf\"}},testnet:!0});u();var C6e=x({id:254,name:\"Swan Chain Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.swanchain.org\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://swanscan.io\"}},testnet:!1});u();var T6e=x({id:20241133,name:\"Swan Proxima Testnet\",nativeCurrency:{name:\"Swan Ether\",symbol:\"sETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-proxima.swanchain.io\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://proxima-explorer.swanchain.io\"}},testnet:!0});u();var _6e=x({id:2024,name:\"Swan Saturn Testnet\",nativeCurrency:{name:\"Swan Ether\",symbol:\"sETH\",decimals:18},rpcUrls:{default:{http:[\"https://saturn-rpc.swanchain.io\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://saturn-explorer.swanchain.io\"}},testnet:!0});u();var M6e=x({...zt,id:1923,name:\"Swellchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://swell-mainnet.alt.technology\"]}},blockExplorers:{default:{name:\"Swell Explorer\",url:\"https://explorer.swellnetwork.io\",apiUrl:\"https://explorer.swellnetwork.io/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}}});u();var I6e=x({...zt,id:1924,name:\"Swellchain Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://swell-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Swellchain Testnet Explorer\",url:\"https://swell-testnet-explorer.alt.technology\",apiUrl:\"https://swell-testnet-explorer.alt.technology/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},testnet:!0});u();var R6e=x({id:94,name:\"SwissDLT Mainnet\",nativeCurrency:{decimals:18,name:\"BCTS\",symbol:\"BCTS\"},rpcUrls:{default:{http:[\"https://rpc.swissdlt.ch\"]}},blockExplorers:{default:{name:\"SwissDLT Explorer\",url:\"https://explorer.swissdlt.ch\"}},testnet:!1});u();var P6e=x({id:57,name:\"Syscoin Mainnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.syscoin.org\"],webSocket:[\"wss://rpc.syscoin.org/wss\"]}},blockExplorers:{default:{name:\"SyscoinExplorer\",url:\"https://explorer.syscoin.org\",apiUrl:\"https://explorer.syscoin.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:287139}}});u();var B6e=x({id:5700,name:\"Syscoin Tanenbaum Testnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.tanenbaum.io\"],webSocket:[\"wss://rpc.tanenbaum.io/wss\"]}},blockExplorers:{default:{name:\"SyscoinTestnetExplorer\",url:\"https://tanenbaum.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:271288}},testnet:!0});u();var D6e=x({id:239,name:\"TAC\",nativeCurrency:{name:\"TAC\",symbol:\"TAC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/tac\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://tac.blockscout.com\",apiUrl:\"https://tac.blockscout.com/api\"},native:{name:\"TAC Explorer\",url:\"https://explorer.tac.build\",apiUrl:\"https://explorer.tac.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}});u();var F6e=x({id:2391,name:\"TAC SPB Testnet\",nativeCurrency:{name:\"TAC\",symbol:\"TAC\",decimals:18},rpcUrls:{default:{http:[\"https://spb.rpc.tac.build\"]}},blockExplorers:{default:{name:\"TAC\",url:\"https://spb.explorer.tac.build\",apiUrl:\"https://spb.explorer.tac.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:471429}},testnet:!0});u();var O6e=x({id:167e3,name:\"Taiko Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.taiko.xyz\"],webSocket:[\"wss://ws.mainnet.taiko.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://taikoscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:11269}}});u();var L6e=x({id:167009,name:\"Taiko Hekla L2\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hekla.taiko.xyz\"]}},blockExplorers:{default:{name:\"Taikoscan\",url:\"https://hekla.taikoscan.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:59757}},testnet:!0});u();var N6e=x({id:167013,name:\"Taiko Hoodi\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hoodi.taiko.xyz\"],webSocket:[\"wss://ws.hoodi.taiko.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://hoodi.taikoscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:581116}},testnet:!0});u();var U6e=x({id:167007,name:\"Taiko Jolnir (Alpha-5 Testnet)\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.jolnir.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.jolnir.taiko.xyz\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:732706}},testnet:!0});u();var z6e=x({id:167008,name:\"Taiko Katla (Alpha-6 Testnet)\",network:\"tko-katla\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.katla.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.katla.taiko.xyz\"}},testnet:!0});u();var V6e=x({id:167005,name:\"Taiko (Alpha-3 Testnet)\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.test.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.test.taiko.xyz\"}},testnet:!0});u();var H6e=x({id:841,name:\"Taraxa Mainnet\",nativeCurrency:{name:\"Tara\",symbol:\"TARA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.taraxa.io\"]}},blockExplorers:{default:{name:\"Taraxa Explorer\",url:\"https://explorer.mainnet.taraxa.io\"}}});u();var j6e=x({id:842,name:\"Taraxa Testnet\",nativeCurrency:{name:\"Tara\",symbol:\"TARA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.taraxa.io\"]}},blockExplorers:{default:{name:\"Taraxa Explorer\",url:\"https://explorer.testnet.taraxa.io\"}},testnet:!0});u();var $6e=x({id:10218,name:\"Tea Sepolia\",nativeCurrency:{name:\"Sepolia Tea\",symbol:\"TEA\",decimals:18},rpcUrls:{default:{http:[\"https://tea-sepolia.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Tea Sepolia Explorer\",url:\"https://sepolia.tea.xyz\"}},testnet:!0});u();var K6e=x({id:2017,name:\"Telcoin Adiri Testnet\",nativeCurrency:{name:\"Telcoin\",symbol:\"TEL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.telcoin.network\"]}},blockExplorers:{default:{name:\"telscan\",url:\"https://telscan.io\"}},testnet:!0});u();var G6e=x({id:40,name:\"Telos\",nativeCurrency:{decimals:18,name:\"Telos\",symbol:\"TLOS\"},rpcUrls:{default:{http:[\"https://rpc.telos.net\"]}},blockExplorers:{default:{name:\"Teloscan\",url:\"https://www.teloscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:246530709}}});u();var q6e=x({id:41,name:\"Telos\",nativeCurrency:{decimals:18,name:\"Telos\",symbol:\"TLOS\"},rpcUrls:{default:{http:[\"https://rpc.testnet.telos.net\"]}},blockExplorers:{default:{name:\"Teloscan (testnet)\",url:\"https://testnet.teloscan.io/\"}},testnet:!0});u();u();u();ou();u();u();var TM=class extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}};var dUe={checksum:new TM(8192)},_M=dUe.checksum;Ca();u();SV();ou();Uo();function cl(t,e={}){let{as:n=typeof t==\"string\"?\"Hex\":\"Bytes\"}=e,r=VT(NE(t));return n===\"Bytes\"?r:Zo(r)}function jH(t,e={}){let{as:n=typeof t==\"string\"?\"Hex\":\"Bytes\"}=e,r=PT(NE(t));return n===\"Bytes\"?r:Zo(r)}function A5e(t){return ac(t)&&Oo(t)===32}u();ou();Ca();Uo();tb();function k5e(t,e={}){let{compressed:n}=e,{prefix:r,x:o,y:a}=t;if(n===!1||typeof o==\"bigint\"&&typeof a==\"bigint\"){if(r!==4)throw new IM({prefix:r,cause:new GH});return}if(n===!0||typeof o==\"bigint\"&&typeof a>\"u\"){if(r!==3&&r!==2)throw new IM({prefix:r,cause:new KH});return}throw new $H({publicKey:t})}function UE(t){let e=(()=>{if(ac(t))return RM(t);if(E5e(t))return pUe(t);let{prefix:n,x:r,y:o}=t;return typeof r==\"bigint\"&&typeof o==\"bigint\"?{prefix:n??4,x:r,y:o}:{prefix:n,x:r}})();return k5e(e),e}function pUe(t){return RM(Zo(t))}function RM(t){if(t.length!==132&&t.length!==130&&t.length!==68)throw new qH({publicKey:t});if(t.length===130){let r=BigInt($r(t,0,32)),o=BigInt($r(t,32,64));return{prefix:4,x:r,y:o}}if(t.length===132){let r=Number($r(t,0,1)),o=BigInt($r(t,1,33)),a=BigInt($r(t,33,65));return{prefix:r,x:o,y:a}}let e=Number($r(t,0,1)),n=BigInt($r(t,1,33));return{prefix:e,x:n}}function C5e(t,e={}){return Pc(Vy(t,e))}function Vy(t,e={}){k5e(t);let{prefix:n,x:r,y:o}=t,{includePrefix:a=!0}=e;return Ao(a?En(n,{size:1}):\"0x\",En(r,{size:32}),typeof o==\"bigint\"?En(o,{size:32}):\"0x\")}var $H=class extends ir{constructor({publicKey:e}){super(`Value \\\\`${ju(e)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},IM=class extends ir{constructor({prefix:e,cause:n}){super(`Prefix \"${e}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},KH=class extends ir{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},GH=class extends ir{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},qH=class extends ir{constructor({publicKey:e}){super(`Value \\\\`${e}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Oo(s0(e))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}};var hUe=/^0x[a-fA-F0-9]{40}$/;function Ps(t,e={}){let{strict:n=!0}=e;if(!hUe.test(t))throw new PM({address:t,cause:new WH});if(n){if(t.toLowerCase()===t)return;if(Hy(t)!==t)throw new PM({address:t,cause:new YH})}}function Hy(t){if(_M.has(t))return _M.get(t);Ps(t,{strict:!1});let e=t.substring(2).toLowerCase(),n=cl(CM(e),{as:\"Bytes\"}),r=e.split(\"\");for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&r[a]&&(r[a]=r[a].toUpperCase()),(n[a>>1]&15)>=8&&r[a+1]&&(r[a+1]=r[a+1].toUpperCase());let o=`0x${r.join(\"\")}`;return _M.set(t,o),o}function mUe(t,e={}){let{checksum:n=!1}=e;return Ps(t),n?Hy(t):t}function sc(t,e={}){let n=cl(`0x${Vy(t).slice(4)}`).substring(26);return mUe(`0x${n}`,e)}function VE(t,e){return Ps(t,{strict:!1}),Ps(e,{strict:!1}),t.toLowerCase()===e.toLowerCase()}function jy(t,e={}){let{strict:n=!0}=e??{};try{return Ps(t,{strict:n}),!0}catch{return!1}}var PM=class extends ir{constructor({address:e,cause:n}){super(`Address \"${e}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},WH=class extends ir{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},YH=class extends ir{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}};Uo();u();u();Uo();u();ou();Ca();Uo();u();Ca();var gUe={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new XH({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new ZH({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new BM({offset:t});let e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new BM({offset:t});let e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){let n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){let e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){let e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){let e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();let n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();let t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();let t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();let t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();let t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){let e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function HE(t,{recursiveReadLimit:e=8192}={}){let n=Object.create(gUe);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}var BM=class extends ir{constructor({offset:e}){super(`Offset \\\\`${e}\\\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},ZH=class extends ir{constructor({length:e,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${e}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}},XH=class extends ir{constructor({count:e,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${e}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}};function DM(t){return yUe(t,\"Hex\")}function yUe(t,e){let n=e??(typeof t==\"string\"?\"Hex\":\"Bytes\"),r=(()=>{if(typeof t==\"string\"){if(t.length>3&&t.length%2!==0)throw new AM(t);return Pc(t)}return t})(),o=HE(r,{recursiveReadLimit:Number.POSITIVE_INFINITY});return M5e(o,n)}function M5e(t,e=\"Hex\"){if(t.bytes.length===0)return e===\"Hex\"?Zo(t.bytes):t.bytes;let n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){let o=_5e(t,n,128),a=t.readBytes(o);return e===\"Hex\"?Zo(a):a}let r=_5e(t,n,192);return vUe(t,r,e)}function _5e(t,e,n){if(n===128&&e<128)return 1;if(e<=n+55)return e-n;if(e===n+55+1)return t.readUint8();if(e===n+55+2)return t.readUint16();if(e===n+55+3)return t.readUint24();if(e===n+55+4)return t.readUint32();throw new ir(\"Invalid RLP prefix\")}function vUe(t,e,n){let r=t.position,o=[];for(;t.position-r<e;)o.push(M5e(t,n));return o}function xUe(t,e){let{as:n}=e,r=I5e(t),o=HE(new Uint8Array(r.length));return r.encode(o),n===\"Hex\"?Zo(o.bytes):o.bytes}function $y(t,e={}){let{as:n=\"Hex\"}=e;return xUe(t,{as:n})}function I5e(t){return Array.isArray(t)?bUe(t.map(e=>I5e(e))):wUe(t)}function bUe(t){let e=t.reduce((o,a)=>o+a.length,0),n=R5e(e);return{length:e<=55?1+e:1+n+e,encode(o){e<=55?o.pushByte(192+e):(o.pushByte(247+n),n===1?o.pushUint8(e):n===2?o.pushUint16(e):n===3?o.pushUint24(e):o.pushUint32(e));for(let{encode:a}of t)a(o)}}}function wUe(t){let e=typeof t==\"string\"?Pc(t):t,n=R5e(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length,encode(o){e.length===1&&e[0]<128?o.pushBytes(e):e.length<=55?(o.pushByte(128+e.length),o.pushBytes(e)):(o.pushByte(183+n),n===1?o.pushUint8(e.length):n===2?o.pushUint16(e.length):n===3?o.pushUint24(e.length):o.pushUint32(e.length),o.pushBytes(e))}}}function R5e(t){if(t<=255)return 1;if(t<=65535)return 2;if(t<=16777215)return 3;if(t<=4294967295)return 4;throw new ir(\"Length is too large.\")}var Bc={};Oi(Bc,{CoercionError:()=>p0,InvalidSerializedError:()=>f0,MissingPropertiesError:()=>XE,VerificationError:()=>YM,assert:()=>Mj,deserialize:()=>Jp,extractAddress:()=>ZM,extractPublicKey:()=>Ij,from:()=>h0,fromRpc:()=>m0,getType:()=>JE,magicBytes:()=>Yy,serialize:()=>g0,toRpc:()=>y0,types:()=>ize,validate:()=>aze,verify:()=>sze});u();Ca();Uo();tb();u();u();u();RT();dj();ib();var Q5e=Zp(BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\")),UUe=Q5e.create(BigInt(\"-3\")),zUe=BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),e4e=ab({a:UUe,b:zUe,Fp:Q5e,n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\"),h:BigInt(1),lowS:!1},Up);var t4e=Zp(BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\")),VUe=t4e.create(BigInt(\"-3\")),HUe=BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),t4n=ab({a:VUe,b:HUe,Fp:t4e,n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\"),h:BigInt(1),lowS:!1},xhe);var n4e=Zp(BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")),jUe=n4e.create(BigInt(\"-3\")),$Ue=BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),n4n=ab({a:jUe,b:$Ue,Fp:n4e,n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},vhe);var r4e=e4e;ou();function LM(t){let{hash:e,payload:n,publicKey:r,signature:o}=t;return r4e.verify(o,n instanceof Uint8Array?n:Pc(n),Vy(r).substring(2),{lowS:!0,...e?{prehash:!0}:{}})}u();VM();ou();Uo();function Gy(t){return sc(HM(t))}function HM(t){let{payload:e,signature:n}=t,{r,s:o,yParity:a}=n,l=new gf.Signature(BigInt(r),BigInt(o)).addRecoveryBit(a).recoverPublicKey(s0(e).substring(2));return UE(l)}function f4e(t){let{address:e,hash:n,payload:r,publicKey:o,signature:a}=t;return e?VE(e,Gy({payload:r,signature:a})):gf.verify(a,NE(r),C5e(o),...n?[{prehash:!0,lowS:!0}]:[])}u();Ca();Uo();tb();u();var p4e=/^(.*)\\\\[([0-9]*)\\\\]$/,h4e=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,$M=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,w4n=2n**(8n-1n)-1n,E4n=2n**(16n-1n)-1n,S4n=2n**(24n-1n)-1n,A4n=2n**(32n-1n)-1n,k4n=2n**(40n-1n)-1n,C4n=2n**(48n-1n)-1n,T4n=2n**(56n-1n)-1n,_4n=2n**(64n-1n)-1n,M4n=2n**(72n-1n)-1n,I4n=2n**(80n-1n)-1n,R4n=2n**(88n-1n)-1n,P4n=2n**(96n-1n)-1n,B4n=2n**(104n-1n)-1n,D4n=2n**(112n-1n)-1n,F4n=2n**(120n-1n)-1n,O4n=2n**(128n-1n)-1n,L4n=2n**(136n-1n)-1n,N4n=2n**(144n-1n)-1n,U4n=2n**(152n-1n)-1n,z4n=2n**(160n-1n)-1n,V4n=2n**(168n-1n)-1n,H4n=2n**(176n-1n)-1n,j4n=2n**(184n-1n)-1n,$4n=2n**(192n-1n)-1n,K4n=2n**(200n-1n)-1n,G4n=2n**(208n-1n)-1n,q4n=2n**(216n-1n)-1n,W4n=2n**(224n-1n)-1n,Y4n=2n**(232n-1n)-1n,Z4n=2n**(240n-1n)-1n,X4n=2n**(248n-1n)-1n,J4n=2n**(256n-1n)-1n,Q4n=-(2n**(8n-1n)),e8n=-(2n**(16n-1n)),t8n=-(2n**(24n-1n)),n8n=-(2n**(32n-1n)),r8n=-(2n**(40n-1n)),o8n=-(2n**(48n-1n)),i8n=-(2n**(56n-1n)),a8n=-(2n**(64n-1n)),s8n=-(2n**(72n-1n)),c8n=-(2n**(80n-1n)),l8n=-(2n**(88n-1n)),u8n=-(2n**(96n-1n)),d8n=-(2n**(104n-1n)),f8n=-(2n**(112n-1n)),p8n=-(2n**(120n-1n)),h8n=-(2n**(128n-1n)),m8n=-(2n**(136n-1n)),g8n=-(2n**(144n-1n)),y8n=-(2n**(152n-1n)),v8n=-(2n**(160n-1n)),x8n=-(2n**(168n-1n)),b8n=-(2n**(176n-1n)),w8n=-(2n**(184n-1n)),E8n=-(2n**(192n-1n)),S8n=-(2n**(200n-1n)),A8n=-(2n**(208n-1n)),k8n=-(2n**(216n-1n)),C8n=-(2n**(224n-1n)),T8n=-(2n**(232n-1n)),_8n=-(2n**(240n-1n)),M8n=-(2n**(248n-1n)),I8n=-(2n**(256n-1n)),R8n=2n**8n-1n,P8n=2n**16n-1n,B8n=2n**24n-1n,D8n=2n**32n-1n,F8n=2n**40n-1n,O8n=2n**48n-1n,L8n=2n**56n-1n,N8n=2n**64n-1n,U8n=2n**72n-1n,z8n=2n**80n-1n,V8n=2n**88n-1n,H8n=2n**96n-1n,j8n=2n**104n-1n,$8n=2n**112n-1n,K8n=2n**120n-1n,G8n=2n**128n-1n,q8n=2n**136n-1n,W8n=2n**144n-1n,Y8n=2n**152n-1n,Z8n=2n**160n-1n,X8n=2n**168n-1n,J8n=2n**176n-1n,Q8n=2n**184n-1n,eEn=2n**192n-1n,tEn=2n**200n-1n,nEn=2n**208n-1n,rEn=2n**216n-1n,oEn=2n**224n-1n,iEn=2n**232n-1n,aEn=2n**240n-1n,sEn=2n**248n-1n,xj=2n**256n-1n;function qy(t,e={}){let{recovered:n}=e;if(typeof t.r>\"u\")throw new WE({signature:t});if(typeof t.s>\"u\")throw new WE({signature:t});if(n&&typeof t.yParity>\"u\")throw new WE({signature:t});if(t.r<0n||t.r>xj)throw new wj({value:t.r});if(t.s<0n||t.s>xj)throw new Ej({value:t.s});if(typeof t.yParity==\"number\"&&t.yParity!==0&&t.yParity!==1)throw new cb({value:t.yParity})}function QUe(t){return KM(Zo(t))}function KM(t){if(t.length!==130&&t.length!==132)throw new bj({signature:t});let e=BigInt($r(t,0,32)),n=BigInt($r(t,32,64)),r=(()=>{let o=+`0x${t.slice(130)}`;if(!Number.isNaN(o))try{return kj(o)}catch{throw new cb({value:o})}})();return typeof r>\"u\"?{r:e,s:n}:{r:e,s:n,yParity:r}}function YE(t){if(!(typeof t.r>\"u\")&&!(typeof t.s>\"u\"))return d0(t)}function d0(t){let e=typeof t==\"string\"?KM(t):t instanceof Uint8Array?QUe(t):typeof t.r==\"string\"?ZE(t):t.v?eze(t):{r:t.r,s:t.s,...typeof t.yParity<\"u\"?{yParity:t.yParity}:{}};return qy(e),e}function eze(t){return{r:t.r,s:t.s,yParity:kj(t.v)}}function ZE(t){let e=(()=>{let n=t.v?Number(t.v):void 0,r=t.yParity?Number(t.yParity):void 0;if(typeof n==\"number\"&&typeof r!=\"number\"&&(r=kj(n)),typeof r!=\"number\")throw new cb({value:t.yParity});return r})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}function Aj(t){let[e,n,r]=t;return d0({r:n===\"0x\"?0n:BigInt(n),s:r===\"0x\"?0n:BigInt(r),yParity:e===\"0x\"?0:Number(e)})}function g4e(t){qy(t);let e=t.r,n=t.s;return Ao(En(e,{size:32}),En(n,{size:32}),typeof t.yParity==\"number\"?En(ub(t.yParity),{size:1}):\"0x\")}function lb(t){let{r:e,s:n,yParity:r}=t;return{r:En(e,{size:32}),s:En(n,{size:32}),yParity:r===0?\"0x0\":\"0x1\"}}function GM(t){let{r:e,s:n,yParity:r}=t;return[r?\"0x01\":\"0x\",e===0n?\"0x\":LE(En(e)),n===0n?\"0x\":LE(En(n))]}function kj(t){if(t===0||t===27)return 0;if(t===1||t===28)return 1;if(t>=35)return t%2===0?1:0;throw new Sj({value:t})}function ub(t){if(t===0)return 27;if(t===1)return 28;throw new cb({value:t})}var bj=class extends ir{constructor({signature:e}){super(`Value \\\\`${e}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Oo(s0(e))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},WE=class extends ir{constructor({signature:e}){super(`Signature \\\\`${ju(e)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},wj=class extends ir{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},Ej=class extends ir{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},cb=class extends ir{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},Sj=class extends ir{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}};u();u();u();var tze=new TextEncoder;var uEn=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((t,e)=>[e,t.charCodeAt(0)])),qM={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((t,e)=>[t.charCodeAt(0),e])),61:0,45:62,95:63};function y4e(t){let e=t.replace(/=+$/,\"\"),n=e.length,r=new Uint8Array(n+3);tze.encodeInto(e+\"===\",r);for(let a=0,c=0;a<e.length;a+=4,c+=3){let l=(qM[r[a]]<<18)+(qM[r[a+1]]<<12)+(qM[r[a+2]]<<6)+qM[r[a+3]];r[c]=l>>16,r[c+1]=l>>8&255,r[c+2]=l&255}let o=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(r.buffer,0,o)}ou();Uo();function v4e(t){let{challenge:e,metadata:n,origin:r,publicKey:o,rpId:a,signature:c}=t,{authenticatorData:l,clientDataJSON:f,userVerificationRequired:p}=n,m=Pc(l);if(m.length<37)return!1;if(a!==void 0){let R=m.slice(0,32),K=jH($u(a),{as:\"Bytes\"});if(!y5e(R,K))return!1}let g=m[32];if((g&1)!==1||p&&(g&4)!==4||(g&8)!==8&&(g&16)===16)return!1;let y=JSON.parse(f);if(y.type!==\"webauthn.get\"||!y.challenge||Zo(y4e(y.challenge))!==e||r!==void 0&&!(Array.isArray(r)?r:[r]).includes(y.origin))return!1;let A=jH(CM(f),{as:\"Bytes\"}),T=g5e(m,A);return LM({hash:!0,payload:T,publicKey:o,signature:c})}function x4e(t){return v4e(t)}var Cj=\"0x01\",Tj=\"0x02\",_j=\"0x03\",WM=\"0x04\",Yy=\"0x7777777777777777777777777777777777777777777777777777777777777777\",ize=[\"secp256k1\",\"p256\",\"webAuthn\"];function Mj(t){let e=JE(t);if(e===\"secp256k1\"){qy(t.signature);return}if(e===\"p256\"){let n=t,r=[];if(typeof n.signature?.r!=\"bigint\"&&r.push(\"signature.r\"),typeof n.signature?.s!=\"bigint\"&&r.push(\"signature.s\"),typeof n.prehash!=\"boolean\"&&r.push(\"prehash\"),n.publicKey?(typeof n.publicKey.x!=\"bigint\"&&r.push(\"publicKey.x\"),typeof n.publicKey.y!=\"bigint\"&&r.push(\"publicKey.y\")):r.push(\"publicKey\"),r.length>0)throw new XE({envelope:t,missing:r,type:\"p256\"});return}if(e===\"webAuthn\"){let n=t,r=[];if(typeof n.signature?.r!=\"bigint\"&&r.push(\"signature.r\"),typeof n.signature?.s!=\"bigint\"&&r.push(\"signature.s\"),n.metadata?(n.metadata.authenticatorData||r.push(\"metadata.authenticatorData\"),n.metadata.clientDataJSON||r.push(\"metadata.clientDataJSON\")):r.push(\"metadata\"),n.publicKey?(typeof n.publicKey.x!=\"bigint\"&&r.push(\"publicKey.x\"),typeof n.publicKey.y!=\"bigint\"&&r.push(\"publicKey.y\")):r.push(\"publicKey\"),r.length>0)throw new XE({envelope:t,missing:r,type:\"webAuthn\"});return}if(e===\"keychain\"){Mj(t.inner);return}}function ZM(t){let{signature:e,root:n}=t;return e.type===\"keychain\"?n?e.userAddress:ZM({...t,signature:e.inner}):sc(Ij(t))}function Ij(t){let{payload:e,signature:n}=t;switch(n.type){case\"secp256k1\":return HM({payload:e,signature:n.signature});case\"p256\":case\"webAuthn\":return n.publicKey;case\"keychain\":return Ij({payload:e,signature:n.inner})}}function Jp(t){let e=t.endsWith(Yy.slice(2))?$r(t,0,-Oo(Yy)):t;if(Oo(e)===65){let c=KM(e);return qy(c),{signature:c,type:\"secp256k1\"}}let r=$r(e,0,1),o=$r(e,1),a=Oo(o);if(r===Cj){if(a!==129)throw new f0({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${a} bytes`,serialized:e});return{publicKey:{prefix:4,x:To($r(o,64,96)),y:To($r(o,96,128))},prehash:sl($r(o,128,129))!==0,signature:{r:To($r(o,0,32)),s:To($r(o,32,64))},type:\"p256\"}}if(r===Tj){if(a<128)throw new f0({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${a} bytes`,serialized:e});let c=a-128,l=$r(o,0,c),f,p;for(let m=37;m<c;m++){let g=NH($r(l,m));if(g.startsWith(\"{\")&&g.endsWith(\"}\"))try{JSON.parse(g),f=$r(l,0,m),p=g;break}catch{}}if(!f||!p)throw new f0({reason:\"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON\",serialized:e});return{publicKey:{prefix:4,x:To($r(o,c+64,c+96)),y:To($r(o,c+96,c+128))},metadata:{authenticatorData:f,clientDataJSON:p},signature:{r:To($r(o,c,c+32)),s:To($r(o,c+32,c+64))},type:\"webAuthn\"}}if(r===_j||r===WM){let c=$r(o,0,20),l=Jp($r(o,20));return{userAddress:c,inner:l,type:\"keychain\",version:r===WM?\"v2\":\"v1\"}}throw new f0({reason:`Unknown signature type identifier: ${r}. Expected ${Cj} (P256), ${Tj} (WebAuthn), ${_j} (Keychain V1), or ${WM} (Keychain V2)`,serialized:e})}function h0(t,e){if(typeof t==\"string\")return Jp(t);if(typeof t==\"object\"&&t!==null&&\"r\"in t&&\"s\"in t&&\"yParity\"in t)return{signature:t,type:\"secp256k1\"};let n=JE(t);return{...t,...n===\"p256\"?{prehash:t.prehash}:{},...n===\"keychain\"?{...typeof t==\"object\"&&t!==null&&\"version\"in t&&t.version?{}:{version:\"v2\"},...typeof t==\"object\"&&\"keyId\"in t&&t.keyId?{}:(()=>{let r=t.inner;return r.type===\"p256\"||r.type===\"webAuthn\"?{keyId:sc(r.publicKey)}:r.type===\"secp256k1\"&&e?.payload?{keyId:sc(HM({payload:e.payload,signature:r.signature}))}:{}})()}:{},type:n}}function m0(t){if(t.type===\"secp256k1\")return{signature:ZE(t),type:\"secp256k1\"};if(t.type===\"p256\")return{prehash:t.preHash,publicKey:{prefix:4,x:To(t.pubKeyX),y:To(t.pubKeyY)},signature:{r:To(t.r),s:To(t.s)},type:\"p256\"};if(t.type===\"webAuthn\"){let e=t.webauthnData,n=Oo(e),r,o;for(let a=37;a<n;a++){let c=NH($r(e,a));if(c.startsWith(\"{\")&&c.endsWith(\"}\"))try{JSON.parse(c),r=$r(e,0,a),o=c;break}catch{}}if(!r||!o)throw new f0({reason:\"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON\",serialized:e});return{metadata:{authenticatorData:r,clientDataJSON:o},publicKey:{prefix:4,x:To(t.pubKeyX),y:To(t.pubKeyY)},signature:{r:To(t.r),s:To(t.s)},type:\"webAuthn\"}}if(t.type===\"keychain\"||\"userAddress\"in t&&\"signature\"in t)return{type:\"keychain\",userAddress:t.userAddress,inner:m0(t.signature),...t.keyId?{keyId:t.keyId}:{},...t.version?{version:t.version}:{}};throw new p0({envelope:t})}function JE(t){if(typeof t!=\"object\"||t===null)throw new p0({envelope:t});if(\"type\"in t&&t.type)return t.type;if(\"signature\"in t&&!(\"publicKey\"in t)&&typeof t.signature==\"object\"&&t.signature!==null&&\"r\"in t.signature&&\"s\"in t.signature&&\"yParity\"in t.signature||\"r\"in t&&\"s\"in t&&\"yParity\"in t)return\"secp256k1\";if(\"signature\"in t&&\"prehash\"in t&&\"publicKey\"in t&&typeof t.prehash==\"boolean\")return\"p256\";if(\"signature\"in t&&\"metadata\"in t&&\"publicKey\"in t)return\"webAuthn\";if(\"userAddress\"in t&&\"inner\"in t)return\"keychain\";throw new p0({envelope:t})}function g0(t,e={}){let n=JE(t);if(n===\"secp256k1\")return Ao(g4e(t.signature),e.magic?Yy:\"0x\");if(n===\"p256\"){let r=t;return Ao(Cj,En(r.signature.r,{size:32}),En(r.signature.s,{size:32}),En(r.publicKey.x,{size:32}),En(r.publicKey.y,{size:32}),En(r.prehash?1:0,{size:1}),e.magic?Yy:\"0x\")}if(n===\"webAuthn\"){let r=t,o=Ao(r.metadata.authenticatorData,$u(r.metadata.clientDataJSON));return Ao(Tj,o,En(r.signature.r,{size:32}),En(r.signature.s,{size:32}),En(r.publicKey.x,{size:32}),En(r.publicKey.y,{size:32}),e.magic?Yy:\"0x\")}if(n===\"keychain\"){let r=t,o=r.version===\"v1\"?_j:WM;return Ao(o,r.userAddress,g0(r.inner),e.magic?Yy:\"0x\")}throw new p0({envelope:t})}function y0(t){let e=JE(t);if(e===\"secp256k1\")return{...lb(t.signature),type:\"secp256k1\"};if(e===\"p256\"){let n=t;return{preHash:n.prehash,pubKeyX:En(n.publicKey.x,{size:32}),pubKeyY:En(n.publicKey.y,{size:32}),r:En(n.signature.r,{size:32}),s:En(n.signature.s,{size:32}),type:\"p256\"}}if(e===\"webAuthn\"){let n=t,r=Ao(n.metadata.authenticatorData,$u(n.metadata.clientDataJSON));return{pubKeyX:En(n.publicKey.x,{size:32}),pubKeyY:En(n.publicKey.y,{size:32}),r:En(n.signature.r,{size:32}),s:En(n.signature.s,{size:32}),type:\"webAuthn\",webauthnData:r}}if(e===\"keychain\"){let n=t;return{type:\"keychain\",userAddress:n.userAddress,signature:y0(n.inner),...n.keyId?{keyId:n.keyId}:{},...n.version?{version:n.version}:{}}}throw new p0({envelope:t})}function aze(t){try{return Mj(t),!0}catch{return!1}}function sze(t,e){let{payload:n}=e,r=(()=>{if(e.address)return e.address;if(e.publicKey)return sc(e.publicKey)})();if(!r)return!1;let o=h0(t);if(o.type===\"secp256k1\")return r?f4e({address:r,payload:n,signature:o.signature}):!1;if(o.type===\"p256\"){let a=sc(o.publicKey);return VE(a,r)?LM({hash:o.prehash,publicKey:o.publicKey,payload:n,signature:o.signature}):!1}if(o.type===\"webAuthn\"){let a=sc(o.publicKey);return VE(a,r)?x4e({challenge:s0(n),metadata:o.metadata,publicKey:o.publicKey,signature:o.signature}):!1}throw new YM(`Unable to verify signature envelope of type \"${o.type}\".`)}var p0=class extends ir{constructor({envelope:e}){super(`Unable to coerce value (\\\\`${ju(e)}\\\\`) to a valid signature envelope.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.CoercionError\"})}},XE=class extends ir{constructor({envelope:e,missing:n,type:r}){super(`Signature envelope of type \"${r}\" is missing required properties: ${n.map(o=>`\\\\`${o}\\\\``).join(\", \")}.\\n\\nProvided: ${ju(e)}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.MissingPropertiesError\"})}},f0=class extends ir{constructor({reason:e,serialized:n}){super(`Unable to deserialize signature envelope: ${e}`,{metaMessages:[`Serialized: ${n}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.InvalidSerializedError\"})}},YM=class extends ir{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.VerificationError\"})}};u();Ca();Uo();function Ta(t){return t.startsWith(\"tempo\")?cze(t).address:t}function cze(t){if(!t.startsWith(\"tempox\"))throw new Rj({address:t});let e=t.slice(6);return LH(e,{strict:!0}),{address:Hy(e)}}var Rj=class extends ir{constructor({address:e}){super(`Tempo address \"${e}\" has an invalid prefix. Expected \"tempox\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TempoAddress.InvalidPrefixError\"})}};function lze(t,e={}){if(typeof t.chainId==\"string\")return b4e(t);let n={...t,address:Ta(t.address)};return e.signature?{...n,signature:e.signature}:n}function b4e(t){let{address:e,chainId:n,nonce:r}=t,o=m0(t.signature);return{address:e,chainId:Number(n),nonce:BigInt(r),signature:o}}function XM(t){return t.map(e=>b4e(e))}function uze(t){let[e,n,r,o]=t,a={address:n,chainId:e===\"0x\"?0:Number(e),nonce:r===\"0x\"?0n:BigInt(r)};return o&&(a.signature=Jp(o)),lze(a)}function w4e(t){let e=[];for(let n of t)e.push(uze(n));return e}function dze(t){let{address:e,chainId:n,nonce:r,signature:o}=t;return{address:e,chainId:En(n),nonce:En(r),signature:y0(o)}}function JM(t){return t.map(e=>dze(e))}function fze(t){let{address:e,chainId:n,nonce:r}=t,o=t.signature?g0(t.signature):void 0;return[n?En(n):\"0x\",e,r?En(r):\"0x\",...o?[o]:[]]}function E4e(t){if(!t||t.length===0)return[];let e=[];for(let n of t)e.push(fze(n));return e}var v0={};Oi(v0,{deserialize:()=>yze,from:()=>A4e,fromRpc:()=>fb,fromTuple:()=>rI,getSignPayload:()=>gze,hash:()=>k4e,serialize:()=>vze,toRpc:()=>tS,toTuple:()=>nS});u();u();hE();Ca();Uo();u();Ca();function tI(t){let e=!0,n=\"\",r=0,o=\"\",a=!1;for(let c=0;c<t.length;c++){let l=t[c];if([\"(\",\")\",\",\"].includes(l)&&(e=!0),l===\"(\"&&r++,l===\")\"&&r--,!!e){if(r===0){if(l===\" \"&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=l,l===\")\"){a=!0;break}continue}if(l===\" \"){t[c-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",e=!1);continue}o+=l,n+=l}}if(!a)throw new ir(\"Unable to normalize signature.\");return o}function eI(t,e){let n=typeof t,r=e.type;switch(r){case\"address\":return jy(t,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in e?Object.values(e.components).every((o,a)=>eI(Object.values(t)[a],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||t instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(t)&&t.every(o=>eI(o,{...e,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function Pj(t,e,n){for(let r in t){let o=t[r],a=e[r];if(o.type===\"tuple\"&&a.type===\"tuple\"&&\"components\"in o&&\"components\"in a)return Pj(o.components,a.components,n[r]);let c=[o.type,a.type];if(c.includes(\"address\")&&c.includes(\"bytes20\")?!0:c.includes(\"address\")&&c.includes(\"string\")?jy(n[r],{strict:!1}):c.includes(\"address\")&&c.includes(\"bytes\")?jy(n[r],{strict:!1}):!1)return c}}function Dj(t,e,n){let{args:r=[],prepare:o=!0}=n??{},a=ac(e,{strict:!1}),c=t.filter(p=>a?p.type===\"function\"||p.type===\"error\"?Fj(p)===$r(e,0,4):p.type===\"event\"?QE(p)===e:!1:\"name\"in p&&p.name===e);if(c.length===0)throw new nI({name:e});if(c.length===1)return{...c[0],...o?{hash:QE(c[0])}:{}};let l;for(let p of c){if(!(\"inputs\"in p))continue;if(!r||r.length===0){if(!p.inputs||p.inputs.length===0)return{...p,...o?{hash:QE(p)}:{}};continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==r.length)continue;if(r.every((g,y)=>{let A=\"inputs\"in p&&p.inputs[y];return A?eI(g,A):!1})){if(l&&\"inputs\"in l&&l.inputs){let g=Pj(p.inputs,l.inputs,r);if(g)throw new Bj({abiItem:p,type:g[0]},{abiItem:l,type:g[1]})}l=p}}let f=(()=>{if(l)return l;let[p,...m]=c;return{...p,overloads:m}})();if(!f)throw new nI({name:e});return{...f,...o?{hash:QE(f)}:{}}}function Fj(...t){let e=(()=>{if(Array.isArray(t[0])){let[n,r]=t;return Dj(n,r)}return t[0]})();return $r(QE(e),0,4)}function hze(...t){let e=(()=>{if(Array.isArray(t[0])){let[r,o]=t;return Dj(r,o)}return t[0]})(),n=typeof e==\"string\"?e:Dy(e);return tI(n)}function QE(...t){let e=(()=>{if(Array.isArray(t[0])){let[n,r]=t;return Dj(n,r)}return t[0]})();return typeof e!=\"string\"&&\"hash\"in e&&e.hash?e.hash:cl($u(hze(e)))}var Bj=class extends ir{constructor(e,n){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${e.type}\\\\` in \\\\`${tI(Dy(e.abiItem))}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${tI(Dy(n.abiItem))}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}},nI=class extends ir{constructor({name:e,data:n,type:r=\"item\"}){let o=e?` with name \"${e}\"`:n?` with data \"${n}\"`:\"\";super(`ABI ${r}${o} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}};Uo();function A4e(t,e={}){if(\"keyId\"in t)return fb(t);let n=t,r={...n,address:Ta(n.address),...n.limits?{limits:n.limits.map(o=>({...o,token:Ta(o.token)}))}:{},...n.scopes?{scopes:n.scopes.map(o=>({...o,address:Ta(o.address),selector:Lj(o.selector),...o.recipients?{recipients:o.recipients.map(a=>Ta(a))}:{}}))}:{}};return e.signature?{...r,signature:h0(e.signature)}:r}function fb(t){let{allowedCalls:e,chainId:n,keyId:r,expiry:o,limits:a,keyType:c}=t,l=m0(t.signature),f=e?e.flatMap(p=>!p.selectorRules||p.selectorRules.length===0?[{address:p.target}]:p.selectorRules.map(m=>({address:p.target,selector:bze(m.selector),...m.recipients&&m.recipients.length>0?{recipients:m.recipients}:{}}))):void 0;return{address:r,chainId:n===\"0x\"?0n:To(n),...o!=null?{expiry:Number(o)}:{},limits:a?.map(p=>({token:p.token,limit:BigInt(p.limit),...p.period&&eS(p.period)>0?{period:eS(p.period)}:{}})),...f?{scopes:f}:{},signature:l,type:c}}function rI(t){let[e,n]=t,[r,o,a,c,l,f]=e,p=(()=>{switch(o){case\"0x\":case\"0x00\":return\"secp256k1\";case\"0x01\":return\"p256\";case\"0x02\":return\"webAuthn\";default:throw new Error(`Invalid key type: ${o}`)}})(),m={address:a,expiry:typeof c<\"u\"&&eS(c)||void 0,type:p,chainId:r===\"0x\"?0n:To(r),...typeof c<\"u\"?{expiry:eS(c)||void 0}:{},...typeof l<\"u\"&&Array.isArray(l)&&l.length>0?{limits:l.map(g=>{let[y,A,T]=g;return{token:y,limit:xze(A),...typeof T<\"u\"?{period:eS(T)}:{}}})}:{},...typeof f<\"u\"&&Array.isArray(f)?{scopes:f.flatMap(g=>{let[y,A]=g;return!Array.isArray(A)||A.length===0?[{address:y}]:A.map(T=>{let[R,K]=T;return{address:y,selector:R,...Array.isArray(K)&&K.length>0?{recipients:K}:{}}})})}:{}};return n&&(m.signature=Jp(n)),A4e(m)}function gze(t){return k4e(t)}function yze(t){let e=DM(t);return rI(e)}function k4e(t){let[e]=nS(t),n=$y(e);return cl(n)}function vze(t){let e=nS(t);return $y(e)}function tS(t){let{address:e,scopes:n,chainId:r,expiry:o,limits:a,type:c,signature:l}=t,f=(()=>{if(!n)return;let p=new Map;for(let m of n){let g=m.address;p.has(g)||p.set(g,[]),m.selector&&p.get(g).push({selector:Lj(m.selector),...m.recipients&&m.recipients.length>0?{recipients:m.recipients}:{}})}return[...p.entries()].map(([m,g])=>({target:m,...g.length>0?{selectorRules:g}:{}}))})();return{chainId:r===0n?\"0x\":En(r),expiry:typeof o==\"number\"?En(o):null,keyId:Ta(e),keyType:c,limits:a?.map(({token:p,limit:m,period:g})=>({token:p,limit:En(m),...g?{period:Oj(g)}:{}})),signature:y0(l),...f?{allowedCalls:f}:{}}}function nS(t){let{address:e,chainId:n,scopes:r,expiry:o,limits:a}=t,c=t.signature?g0(t.signature):void 0,l=(()=>{switch(t.type){case\"secp256k1\":return\"0x\";case\"p256\":return\"0x01\";case\"webAuthn\":return\"0x02\";default:throw new Error(`Invalid key type: ${t.type}`)}})(),f=a?.map(g=>{let y=[g.token,S4e(g.limit)];return g.period&&g.period>0&&y.push(Oj(g.period)),y}),p=(()=>{if(!r)return;let g=new Map;for(let y of r){let A=y.address;g.has(A)||g.set(A,[]),y.selector&&g.get(A).push([Lj(y.selector),y.recipients??[]])}return[...g.entries()].map(([y,A])=>[y,A.map(([T,R])=>[T,R])])})();return[[S4e(n),l,e,o!=null&&o!==0||f||p?Oj(o??0):void 0,f||p?f??[]:void 0,p].filter(g=>typeof g<\"u\"),...c?[c]:[]]}function S4e(t){return t===0n?\"0x\":En(t)}function Oj(t){return t===0?\"0x\":En(t)}function xze(t){return t===\"0x\"?0n:BigInt(t)}function eS(t){return t===\"0x\"?0:sl(t)}function bze(t){return typeof t==\"string\"?t:Array.isArray(t)?Zo(new Uint8Array(t)):t}function Lj(t){if(t)return t.startsWith(\"0x\")?t:Fj(t)}u();u();hE();ou();Ca();Uo();u();ou();Ca();Uo();function Zy(t,e,n){let{checksumAddress:r,staticPosition:o}=n,a=zj(e.type);if(a){let[c,l]=a;return Eze(t,{...e,type:l},{checksumAddress:r,length:c,staticPosition:o})}if(e.type===\"tuple\")return Cze(t,e,{checksumAddress:r,staticPosition:o});if(e.type===\"address\")return wze(t,{checksum:r});if(e.type===\"bool\")return Sze(t);if(e.type.startsWith(\"bytes\"))return Aze(t,e,{staticPosition:o});if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\"))return kze(t,e);if(e.type===\"string\")return Tze(t,{staticPosition:o});throw new pb(e.type)}var C4e=32,Nj=32;function wze(t,e={}){let{checksum:n=!1}=e,r=t.readBytes(32);return[(a=>n?Hy(a):a)(Zo(v5e(r,-20))),32]}function Eze(t,e,n){let{checksumAddress:r,length:o,staticPosition:a}=n;if(!o){let f=mf(t.readBytes(Nj)),p=a+f,m=p+C4e;t.setPosition(p);let g=mf(t.readBytes(C4e)),y=rS(e),A=0,T=[];for(let R=0;R<g;++R){t.setPosition(m+(y?R*32:A));let[K,O]=Zy(t,e,{checksumAddress:r,staticPosition:m});A+=O,T.push(K)}return t.setPosition(a+32),[T,32]}if(rS(e)){let f=mf(t.readBytes(Nj)),p=a+f,m=[];for(let g=0;g<o;++g){t.setPosition(p+g*32);let[y]=Zy(t,e,{checksumAddress:r,staticPosition:p});m.push(y)}return t.setPosition(a+32),[m,32]}let c=0,l=[];for(let f=0;f<o;++f){let[p,m]=Zy(t,e,{checksumAddress:r,staticPosition:a+c});c+=m,l.push(p)}return[l,c]}function Sze(t){return[b5e(t.readBytes(32),{size:32}),32]}function Aze(t,e,{staticPosition:n}){let[r,o]=e.type.split(\"bytes\");if(!o){let c=mf(t.readBytes(32));t.setPosition(n+c);let l=mf(t.readBytes(32));if(l===0)return t.setPosition(n+32),[\"0x\",32];let f=t.readBytes(l);return t.setPosition(n+32),[Zo(f),32]}return[Zo(t.readBytes(Number.parseInt(o,10),32)),32]}function kze(t,e){let n=e.type.startsWith(\"int\"),r=Number.parseInt(e.type.split(\"int\")[1]||\"256\",10),o=t.readBytes(32);return[r>48?x5e(o,{signed:n}):mf(o,{signed:n}),32]}function Cze(t,e,n){let{checksumAddress:r,staticPosition:o}=n,a=e.components.length===0||e.components.some(({name:f})=>!f),c=a?[]:{},l=0;if(rS(e)){let f=mf(t.readBytes(Nj)),p=o+f;for(let m=0;m<e.components.length;++m){let g=e.components[m];t.setPosition(p+l);let[y,A]=Zy(t,g,{checksumAddress:r,staticPosition:p});l+=A,c[a?m:g?.name]=y}return t.setPosition(o+32),[c,32]}for(let f=0;f<e.components.length;++f){let p=e.components[f],[m,g]=Zy(t,p,{checksumAddress:r,staticPosition:o});c[a?f:p?.name]=m,l+=g}return[c,l]}function Tze(t,{staticPosition:e}){let n=mf(t.readBytes(32)),r=e+n;t.setPosition(r);let o=mf(t.readBytes(32));if(o===0)return t.setPosition(e+32),[\"\",32];let a=t.readBytes(o,32),c=w5e(VH(a));return t.setPosition(e+32),[c,32]}function T4e({checksumAddress:t,parameters:e,values:n}){let r=[];for(let o=0;o<e.length;o++)r.push(Uj({checksumAddress:t,parameter:e[o],value:n[o]}));return r}function Uj({checksumAddress:t=!1,parameter:e,value:n}){let r=e,o=zj(r.type);if(o){let[a,c]=o;return Mze(n,{checksumAddress:t,length:a,parameter:{...r,type:c}})}if(r.type===\"tuple\")return Dze(n,{checksumAddress:t,parameter:r});if(r.type===\"address\")return _ze(n,{checksum:t});if(r.type===\"bool\")return Rze(n);if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\")){let a=r.type.startsWith(\"int\"),[,,c=\"256\"]=$M.exec(r.type)??[];return Pze(n,{signed:a,size:Number(c)})}if(r.type.startsWith(\"bytes\"))return Ize(n,{type:r.type});if(r.type===\"string\")return Bze(n);throw new pb(r.type)}function oI(t){let e=0;for(let a=0;a<t.length;a++){let{dynamic:c,encoded:l}=t[a];c?e+=32:e+=Oo(l)}let n=[],r=[],o=0;for(let a=0;a<t.length;a++){let{dynamic:c,encoded:l}=t[a];c?(n.push(En(e+o,{size:32})),r.push(l),o+=Oo(l)):n.push(l)}return Ao(...n,...r)}function _ze(t,e){let{checksum:n=!1}=e;return Ps(t,{strict:n}),{dynamic:!1,encoded:Yp(t.toLowerCase())}}function Mze(t,e){let{checksumAddress:n,length:r,parameter:o}=e,a=r===null;if(!Array.isArray(t))throw new aI(t);if(!a&&t.length!==r)throw new iI({expectedLength:r,givenLength:t.length,type:`${o.type}[${r}]`});let c=!1,l=[];for(let f=0;f<t.length;f++){let p=Uj({checksumAddress:n,parameter:o,value:t[f]});p.dynamic&&(c=!0),l.push(p)}if(a||c){let f=oI(l);if(a){let p=En(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?Ao(p,f):p}}if(c)return{dynamic:!0,encoded:f}}return{dynamic:!1,encoded:Ao(...l.map(({encoded:f})=>f))}}function Ize(t,{type:e}){let[,n]=e.split(\"bytes\"),r=Oo(t);if(!n){let o=t;return r%32!==0&&(o=hf(o,Math.ceil((t.length-2)/2/32)*32)),{dynamic:!0,encoded:Ao(Yp(En(r,{size:32})),o)}}if(r!==Number.parseInt(n,10))throw new oS({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:hf(t)}}function Rze(t){if(typeof t!=\"boolean\")throw new ir(`Invalid boolean value: \"${t}\" (type: ${typeof t}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Yp(kM(t))}}function Pze(t,{signed:e,size:n}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(e?1n:0n))-1n,o=e?-r-1n:0n;if(t>r||t<o)throw new OE({max:r.toString(),min:o.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:En(t,{size:32,signed:e})}}function Bze(t){let e=$u(t),n=Math.ceil(Oo(e)/32),r=[];for(let o=0;o<n;o++)r.push(hf($r(e,o*32,(o+1)*32)));return{dynamic:!0,encoded:Ao(hf(En(Oo(e),{size:32})),...r)}}function Dze(t,e){let{checksumAddress:n,parameter:r}=e,o=!1,a=[];for(let c=0;c<r.components.length;c++){let l=r.components[c],f=Array.isArray(t)?c:l.name,p=Uj({checksumAddress:n,parameter:l,value:t[f]});a.push(p),p.dynamic&&(o=!0)}return{dynamic:o,encoded:o?oI(a):Ao(...a.map(({encoded:c})=>c))}}function zj(t){let e=t.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function rS(t){let{type:e}=t;if(e===\"string\"||e===\"bytes\"||e.endsWith(\"[]\"))return!0;if(e===\"tuple\")return t.components?.some(rS);let n=zj(t.type);return!!(n&&rS({...t,type:n[1]}))}function cI(t,e,n={}){let{as:r=\"Array\",checksumAddress:o=!1}=n,a=typeof e==\"string\"?Pc(e):e,c=HE(a);if(ru(a)===0&&t.length>0)throw new $j;if(ru(a)&&ru(a)<32)throw new jj({data:typeof e==\"string\"?e:Zo(e),parameters:t,size:ru(a)});let l=0,f=r===\"Array\"?[]:{};for(let p=0;p<t.length;++p){let m=t[p];c.setPosition(l);let[g,y]=Zy(c,m,{checksumAddress:o,staticPosition:0});l+=y,r===\"Array\"?f.push(g):f[m.name??p]=g}return f}function lI(t,e,n){let{checksumAddress:r=!1}=n??{};if(t.length!==e.length)throw new sI({expectedLength:t.length,givenLength:e.length});let o=T4e({checksumAddress:r,parameters:t,values:e}),a=oI(o);return a.length===0?\"0x\":a}function Hj(t,e){if(t.length!==e.length)throw new sI({expectedLength:t.length,givenLength:e.length});let n=[];for(let r=0;r<t.length;r++){let o=t[r],a=e[r];n.push(Hj.encode(o,a))}return Ao(...n)}(function(t){function e(n,r,o=!1){if(n===\"address\"){let f=r;return Ps(f),Yp(f.toLowerCase(),o?32:0)}if(n===\"string\")return $u(r);if(n===\"bytes\")return r;if(n===\"bool\")return Yp(kM(r),o?32:1);let a=n.match($M);if(a){let[f,p,m=\"256\"]=a,g=Number.parseInt(m,10)/8;return En(r,{size:o?32:g,signed:p===\"int\"})}let c=n.match(h4e);if(c){let[f,p]=c;if(Number.parseInt(p,10)!==(r.length-2)/2)throw new oS({expectedSize:Number.parseInt(p,10),value:r});return hf(r,o?32:0)}let l=n.match(p4e);if(l&&Array.isArray(r)){let[f,p]=l,m=[];for(let g=0;g<r.length;g++)m.push(e(p,r[g],!0));return m.length===0?\"0x\":Ao(...m)}throw new pb(n)}t.encode=e})(Hj||(Hj={}));function iS(t){return Array.isArray(t)&&typeof t[0]==\"string\"?$_(t):typeof t==\"string\"?$_(t):t}var jj=class extends ir{constructor({data:e,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Vp(n)})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}},$j=class extends ir{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}},iI=class extends ir{constructor({expectedLength:e,givenLength:n,type:r}){super(`Array length mismatch for type \\\\`${r}\\\\`. Expected: \\\\`${e}\\\\`. Given: \\\\`${n}\\\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}},oS=class extends ir{constructor({expectedSize:e,value:n}){super(`Size of bytes \"${n}\" (bytes${Oo(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},sI=class extends ir{constructor({expectedLength:e,givenLength:n}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},aI=class extends ir{constructor(e){super(`Value \\\\`${e}\\\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}},pb=class extends ir{constructor(e){super(`Type \\\\`${e}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}};Uo();var Oze=\"0x20c0\";function uI(t){if(typeof t==\"string\"){let n=Ta(t);return Ps(n),n}let e=En(t,{size:18});return Ao(Oze,e)}var hb={};Oi(hb,{fromRpc:()=>zze,fromRpcType:()=>hI,toRpc:()=>Vze,toRpcType:()=>pI});u();Uo();u();u();Uo();function _4e(t,e={}){return typeof t.chainId==\"string\"?M4e(t):{...t,...e.signature}}function M4e(t){let{address:e,chainId:n,nonce:r}=t,o=YE(t);return{address:e,chainId:Number(n),nonce:BigInt(r),...o}}function dI(t){return t.map(M4e)}function I4e(t){return Lze(t,{presign:!0})}function Lze(t,e={}){let{presign:n}=e;return cl(Ao(\"0x05\",$y(Uze(n?{address:t.address,chainId:t.chainId,nonce:t.nonce}:t))))}function Nze(t){let{address:e,chainId:n,nonce:r,...o}=t;return{address:e,chainId:En(n),nonce:En(r),...lb(o)}}function fI(t){return t.map(Nze)}function Uze(t){let{address:e,chainId:n,nonce:r}=t,o=YE(t);return[n?En(n):\"0x\",e,r?En(r):\"0x\",...o?GM(o):[]]}Uo();var aS={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"},sS={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function R4e(t,e={}){if(!t)return null;let n=YE(t),r={...t,...n};return r.blockNumber=t.blockNumber?BigInt(t.blockNumber):null,r.data=t.input,r.gas=BigInt(t.gas??0n),r.nonce=BigInt(t.nonce??0n),r.transactionIndex=t.transactionIndex?Number(t.transactionIndex):null,r.value=BigInt(t.value??0n),t.authorizationList&&(r.authorizationList=dI(t.authorizationList)),t.chainId&&(r.chainId=Number(t.chainId)),t.gasPrice&&(r.gasPrice=BigInt(t.gasPrice)),t.maxFeePerBlobGas&&(r.maxFeePerBlobGas=BigInt(t.maxFeePerBlobGas)),t.maxFeePerGas&&(r.maxFeePerGas=BigInt(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=BigInt(t.maxPriorityFeePerGas)),t.type&&(r.type=sS[t.type]??t.type),n&&(r.v=ub(n.yParity)),r}function P4e(t,e){let n={};return n.blockHash=t.blockHash,n.blockNumber=typeof t.blockNumber==\"bigint\"?En(t.blockNumber):null,n.from=t.from,n.gas=En(t.gas??0n),n.hash=t.hash,n.input=t.input,n.nonce=En(t.nonce??0n),n.to=t.to,n.transactionIndex=t.transactionIndex?En(t.transactionIndex):null,n.type=aS[t.type]??t.type,n.value=En(t.value??0n),t.accessList&&(n.accessList=t.accessList),t.authorizationList&&(n.authorizationList=fI(t.authorizationList)),t.blobVersionedHashes&&(n.blobVersionedHashes=t.blobVersionedHashes),t.chainId&&(n.chainId=En(t.chainId)),typeof t.gasPrice==\"bigint\"&&(n.gasPrice=En(t.gasPrice)),typeof t.maxFeePerBlobGas==\"bigint\"&&(n.maxFeePerBlobGas=En(t.maxFeePerBlobGas)),typeof t.maxFeePerGas==\"bigint\"&&(n.maxFeePerGas=En(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas==\"bigint\"&&(n.maxPriorityFeePerGas=En(t.maxPriorityFeePerGas)),typeof t.r==\"bigint\"&&(n.r=En(t.r,{size:32})),typeof t.s==\"bigint\"&&(n.s=En(t.s,{size:32})),typeof t.v==\"number\"&&(n.v=En(t.v,{size:1})),typeof t.yParity==\"number\"&&(n.yParity=t.yParity===0?\"0x0\":\"0x1\"),n}var pI={...aS,tempo:\"0x76\"},hI={...sS,\"0x76\":\"tempo\"};function zze(t,e={}){if(!t)return null;let n=R4e(t);return n.type=hI[t.type],t.aaAuthorizationList&&(n.authorizationList=XM(t.aaAuthorizationList),delete n.aaAuthorizationList),t.calls&&(n.calls=t.calls.map(r=>({to:r.to,value:r.value&&r.value!==\"0x\"?BigInt(r.value):void 0,data:r.input||r.data||\"0x\"}))),t.feeToken&&(n.feeToken=t.feeToken),t.nonceKey&&(n.nonceKey=BigInt(t.nonceKey)),t.signature&&(n.signature=m0(t.signature)),t.validAfter&&(n.validAfter=Number(t.validAfter)),t.validBefore&&(n.validBefore=Number(t.validBefore)),t.keyAuthorization&&(n.keyAuthorization=fb(t.keyAuthorization)),t.feePayerSignature&&(n.feePayerSignature=ZE(t.feePayerSignature),n.feePayerSignature.v=ub(n.feePayerSignature.yParity)),n}function Vze(t,e){let n=P4e(t);return n.type=pI[t.type],t.authorizationList&&(n.aaAuthorizationList=JM(t.authorizationList)),t.calls&&(n.calls=t.calls.map(r=>({to:r.to,value:r.value?En(r.value):void 0,data:r.data}))),t.feeToken&&(n.feeToken=t.feeToken),t.keyAuthorization&&(n.keyAuthorization=tS(t.keyAuthorization)),t.feePayerSignature&&(n.feePayerSignature=lb(t.feePayerSignature),n.feePayerSignature.v=En(ub(t.feePayerSignature?.yParity))),t.signature&&(n.signature=y0(t.signature)),typeof t.validAfter==\"number\"&&(n.validAfter=En(t.validAfter)),typeof t.validBefore==\"number\"&&(n.validBefore=En(t.validBefore)),n}var mI={};Oi(mI,{fromRpc:()=>jze,toRpc:()=>$ze});u();Uo();u();Uo();function D4e(t){let e=t;return typeof t.authorizationList<\"u\"&&(e.authorizationList=dI(t.authorizationList)),typeof t.chainId<\"u\"&&(e.chainId=sl(t.chainId)),typeof t.gas<\"u\"&&(e.gas=To(t.gas)),typeof t.gasPrice<\"u\"&&(e.gasPrice=To(t.gasPrice)),typeof t.maxFeePerBlobGas<\"u\"&&(e.maxFeePerBlobGas=To(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<\"u\"&&(e.maxFeePerGas=To(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<\"u\"&&(e.maxPriorityFeePerGas=To(t.maxPriorityFeePerGas)),typeof t.nonce<\"u\"&&(e.nonce=To(t.nonce)),typeof t.type<\"u\"&&(e.type=sS[t.type]||t.type),typeof t.value<\"u\"&&(e.value=To(t.value)),e}function F4e(t){let e={};return typeof t.accessList<\"u\"&&(e.accessList=t.accessList),typeof t.authorizationList<\"u\"&&(e.authorizationList=fI(t.authorizationList)),typeof t.blobVersionedHashes<\"u\"&&(e.blobVersionedHashes=t.blobVersionedHashes),typeof t.blobs<\"u\"&&(e.blobs=t.blobs),typeof t.chainId<\"u\"&&(e.chainId=En(t.chainId)),typeof t.data<\"u\"?(e.data=t.data,e.input=t.data):typeof t.input<\"u\"&&(e.data=t.input,e.input=t.input),typeof t.from<\"u\"&&(e.from=t.from),typeof t.gas<\"u\"&&(e.gas=En(t.gas)),typeof t.gasPrice<\"u\"&&(e.gasPrice=En(t.gasPrice)),typeof t.maxFeePerBlobGas<\"u\"&&(e.maxFeePerBlobGas=En(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<\"u\"&&(e.maxFeePerGas=En(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<\"u\"&&(e.maxPriorityFeePerGas=En(t.maxPriorityFeePerGas)),typeof t.maxPriorityFeePerGas<\"u\"&&(e.maxPriorityFeePerGas=En(t.maxPriorityFeePerGas)),typeof t.nonce<\"u\"&&(e.nonce=En(t.nonce)),typeof t.to<\"u\"&&(e.to=t.to),typeof t.type<\"u\"&&(e.type=aS[t.type]||t.type),typeof t.value<\"u\"&&(e.value=En(t.value)),e}function jze(t){let{authorizationList:e,...n}=t,r=D4e(n);return typeof t.type<\"u\"&&(r.type=hI[t.type]||r.type),t.authorizationList&&(r.authorizationList=XM(t.authorizationList)),t.calls&&(r.calls=t.calls.map(o=>{let a={to:o.to,data:o.data};return o.value&&o.value!==\"0x\"&&(a.value=To(o.value)),a})),typeof t.feeToken<\"u\"&&(r.feeToken=t.feeToken),t.keyAuthorization&&(r.keyAuthorization=fb(t.keyAuthorization)),typeof t.validBefore<\"u\"&&(r.validBefore=sl(t.validBefore)),typeof t.validAfter<\"u\"&&(r.validAfter=sl(t.validAfter)),typeof t.nonceKey<\"u\"&&(r.nonceKey=To(t.nonceKey)),r}function $ze(t){let e=F4e({...t,authorizationList:void 0});t.authorizationList&&(e.authorizationList=JM(t.authorizationList)),t.calls?e.calls=t.calls.map(r=>({to:r.to?Ta(r.to):r.to,value:r.value?En(r.value):\"0x\",data:r.data??\"0x\"})):(t.to||t.data||t.value)&&(e.calls=[{to:t.to?Ta(t.to):void 0,value:t.value?En(t.value):\"0x\",data:t.data??\"0x\"}]),typeof t.feeToken<\"u\"&&(e.feeToken=uI(t.feeToken)),t.keyAuthorization&&(e.keyAuthorization=tS(t.keyAuthorization)),typeof t.validBefore<\"u\"&&(e.validBefore=En(t.validBefore)),typeof t.validAfter<\"u\"&&(e.validAfter=En(t.validAfter));let n=(()=>{if(t.nonceKey===\"random\")return h5e(6);if(typeof t.nonceKey==\"bigint\")return En(t.nonceKey)})();return n&&(e.nonceKey=n),(typeof t.calls<\"u\"||typeof t.feePayer<\"u\"||typeof t.feeToken<\"u\"||typeof t.keyAuthorization<\"u\"||typeof t.nonceKey<\"u\"||typeof t.validBefore<\"u\"||typeof t.validAfter<\"u\"||t.type===\"tempo\")&&(e.type=pI.tempo,delete e.data,delete e.input,delete e.to,delete e.value),e}var yf={};Oi(yf,{CallsEmptyError:()=>wI,InvalidValidityWindowError:()=>EI,assert:()=>cS,deserialize:()=>V4e,feePayerMagic:()=>U4e,from:()=>Yj,getFeePayerSignPayload:()=>Yze,getSignPayload:()=>Xj,hash:()=>H4e,serialize:()=>Zj,serializedType:()=>z4e,type:()=>Wj,validate:()=>Zze});u();u();Ca();Uo();function O4e(t){let e=[];for(let n=0;n<t.length;n++){let[r,o]=t[n];r&&Ps(r,{strict:!1}),e.push({address:r,storageKeys:o.map(a=>A5e(a)?a:LE(a))})}return e}function L4e(t){if(!t||t.length===0)return[];let e=[];for(let{address:n,storageKeys:r}of t){for(let o=0;o<r.length;o++)if(Oo(r[o])!==32)throw new qj({storageKey:r[o]});n&&Ps(n,{strict:!1}),e.push([n,r])}return e}var qj=class extends ir{constructor({storageKey:e}){super(`Size for storage key \"${e}\" is invalid. Expected 32 bytes. Got ${Oo(e)} bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AccessList.InvalidStorageKeySizeError\"})}};Ca();Uo();u();Ca();u();var N4e={wei:0,gwei:9,szabo:12,finney:15,ether:18};function Gze(t,e=0){let n=t.toString(),r=n.startsWith(\"-\");r&&(n=n.slice(1)),n=n.padStart(e,\"0\");let[o,a]=[n.slice(0,n.length-e),n.slice(n.length-e)];return a=a.replace(/(0+)$/,\"\"),`${r?\"-\":\"\"}${o||\"0\"}${a?`.${a}`:\"\"}`}function gI(t,e=\"wei\"){return Gze(t,N4e.gwei-N4e[e])}var yI=class extends ir{constructor({feeCap:e}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`/\\\\`maxPriorityFeePerGas\\\\`${e?` = ${gI(e)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.FeeCapTooHighError\"})}};var vI=class extends ir{constructor({chainId:e}){super(typeof e<\"u\"?`Chain ID \"${e}\" is invalid.`:\"Chain ID is invalid.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.InvalidChainIdError\"})}},xI=class extends ir{constructor({attributes:e,serialized:n,type:r}){let o=Object.entries(e).map(([a,c])=>typeof c>\"u\"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type \"${r}\" was provided.`,{metaMessages:[`Serialized Transaction: \"${n}\"`,o.length>0?`Missing Attributes: ${o.join(\", \")}`:\"\"].filter(Boolean)}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.InvalidSerializedError\"})}},bI=class extends ir{constructor({maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${e?` = ${gI(e)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${gI(n)} gwei`:\"\"}).`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.TipAboveFeeCapError\"})}};var U4e=\"0x78\",z4e=\"0x76\",Wj=\"tempo\";function cS(t){let{calls:e,chainId:n,maxFeePerGas:r,maxPriorityFeePerGas:o,validBefore:a,validAfter:c}=t;if(!e||e.length===0)throw new wI;if(typeof a==\"number\"&&typeof c==\"number\"&&a<=c)throw new EI({validBefore:a,validAfter:c});if(e)for(let l of e)l.to&&Ps(l.to,{strict:!1});if(n<=0)throw new vI({chainId:n});if(r&&BigInt(r)>2n**256n-1n)throw new yI({feeCap:r});if(o&&r&&o>r)throw new bI({maxFeePerGas:r,maxPriorityFeePerGas:o})}function V4e(t){let e=DM($r(t,1)),[n,r,o,a,c,l,f,p,m,g,y,A,T,R,K]=e,O=Array.isArray(R)?R:void 0,V=O?K:R;if(!(e.length===13||e.length===14||e.length===15))throw new xI({attributes:{authorizationList:T,chainId:n,maxPriorityFeePerGas:r,maxFeePerGas:o,gas:a,calls:c,accessList:l,keyAuthorization:O,nonceKey:f,nonce:p,validBefore:m,validAfter:g,feeToken:y,feePayerSignatureOrSender:A,...e.length>12?{signature:V}:{}},serialized:t,type:Wj});let D={chainId:Number(n),type:Wj};if(ac(a)&&a!==\"0x\"&&(D.gas=BigInt(a)),ac(p)&&(D.nonce=p===\"0x\"?0n:BigInt(p)),ac(o)&&o!==\"0x\"&&(D.maxFeePerGas=BigInt(o)),ac(r)&&r!==\"0x\"&&(D.maxPriorityFeePerGas=BigInt(r)),ac(f)&&(D.nonceKey=f===\"0x\"?0n:BigInt(f)),ac(m)&&m!==\"0x\"&&(D.validBefore=Number(m)),ac(g)&&g!==\"0x\"&&(D.validAfter=Number(g)),ac(y)&&y!==\"0x\"&&(D.feeToken=y),c&&c!==\"0x\"){let ee=c;D.calls=ee.map(J=>{let[le,se,te]=J,S={};return le&&le!==\"0x\"&&(S.to=le),se&&se!==\"0x\"&&(S.value=BigInt(se)),te&&te!==\"0x\"&&(S.data=te),S})}l?.length!==0&&l!==\"0x\"&&(D.accessList=O4e(l)),T?.length!==0&&T!==\"0x\"&&(D.authorizationList=w4e(T)),A!==\"0x\"&&A!==void 0&&(A===\"0x00\"||jy(A)?(D.feePayerSignature=null,jy(A)&&(D.from=A)):D.feePayerSignature=Aj(A)),O&&(D.keyAuthorization=rI(O));let G=V?Jp(V):void 0;if(G&&(D={...D,signature:G}),!D.from&&G)try{D.from=ZM({payload:Xj(Yj(D)),signature:G,root:!0})}catch{}return cS(D),D}function Yj(t,e={}){let{feePayerSignature:n,signature:r}=e,o=typeof t==\"string\"?V4e(t):t;return o.from&&(o.from=Ta(o.from)),o.calls&&(o.calls=o.calls.map(a=>({...a,...a.to?{to:Ta(a.to)}:{}}))),cS(o),{...o,...r?{signature:h0(r)}:{},...n?{feePayerSignature:d0(n)}:{},type:\"tempo\"}}function Zj(t,e={}){let{accessList:n,authorizationList:r,calls:o,chainId:a,feeToken:c,gas:l,keyAuthorization:f,nonce:p,nonceKey:m,maxFeePerGas:g,maxPriorityFeePerGas:y,validBefore:A,validAfter:T}=t;cS(t);let R=L4e(n),K=e.signature||t.signature,O=E4e(r),V=o.map(J=>[J.to?Ta(J.to):\"0x\",J.value?En(J.value):\"0x\",J.data??\"0x\"]),D=!1,G=(()=>{if(e.sender)return e.sender;if(e.format===\"feePayer\"&&K){let le=h0(K);if(le.type===\"keychain\")return le.userAddress;if(le.type===\"p256\"||le.type===\"webAuthn\")return sc(le.publicKey);if(le.type===\"secp256k1\")return Gy({payload:Xj(Yj(t)),signature:le.signature})}let J=typeof e.feePayerSignature<\"u\"?e.feePayerSignature:t.feePayerSignature;return J===null?(D=!0,\"0x00\"):J?GM(J):\"0x\"})(),ee=[En(a),y?En(y):\"0x\",g?En(g):\"0x\",l?En(l):\"0x\",V,R,m?En(m):\"0x\",p?En(p):\"0x\",typeof A==\"number\"?En(A):\"0x\",typeof T==\"number\"?En(T):\"0x\",!D&&(typeof c==\"bigint\"||typeof c==\"string\")?uI(c):\"0x\",G,O,...f?[nS(f)]:[],...K?[g0(h0(K))]:[]];return Ao(e.format===\"feePayer\"?U4e:z4e,$y(ee))}function Xj(t,e={}){let n=H4e(t,{presign:!0});return e.from?cl(Ao(\"0x04\",n,Ta(e.from))):n}function H4e(t,e={}){let n=Zj({...t,...e.presign?{signature:void 0,...t.feePayerSignature!==void 0?{feePayerSignature:null}:{}}:{}});return cl(n)}function Yze(t,e){let n=Ta(e.sender),r=Zj({...t,signature:void 0},{sender:n,format:\"feePayer\"});return cl(r)}function Zze(t){try{return cS(t),!0}catch{return!1}}var wI=class extends ir{constructor(){super(\"Calls list cannot be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.CallsEmptyError\"})}},EI=class extends ir{constructor({validBefore:e,validAfter:n}){super(`validBefore (${e}) must be greater than validAfter (${n}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.InvalidValidityWindowError\"})}};u();Ko();async function SI(t,{address:e,blockNumber:n,blockTag:r=\"latest\"}){let o=n!==void 0?sr(n):void 0,a=await t.request({method:\"eth_getCode\",params:[e,o||r]},{dedupe:!!o});if(a!==\"0x\")return a}u();u();var lS={};Oi(lS,{InvalidWrappedSignatureError:()=>AI,assert:()=>Qj,from:()=>Qze,magicBytes:()=>Jj,universalSignatureValidatorAbi:()=>Jze,universalSignatureValidatorBytecode:()=>Xze,unwrap:()=>j4e,validate:()=>tVe,wrap:()=>eVe});u();Ca();Uo();var Jj=\"0x6492649264926492649264926492649264926492649264926492649264926492\",Xze=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",Jze=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}];function Qj(t){if($r(t,-32)!==Jj)throw new AI(t)}function Qze(t){return typeof t==\"string\"?j4e(t):t}function j4e(t){Qj(t);let[e,n,r]=cI(iS(\"address, bytes, bytes\"),t);return{data:n,signature:r,to:e}}function eVe(t){let{data:e,signature:n,to:r}=t;return Ao(lI(iS(\"address, bytes, bytes\"),[r,e,n]),Jj)}function tVe(t){try{return Qj(t),!0}catch{return!1}}var AI=class extends ir{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}};u();var uS={};Oi(uS,{InvalidWrappedSignatureError:()=>kI,assert:()=>CI,from:()=>nVe,magicBytes:()=>e$,suffixParameters:()=>t$,unwrap:()=>$4e,validate:()=>oVe,wrap:()=>rVe});u();Ca();Uo();var e$=\"0x8010801080108010801080108010801080108010801080108010801080108010\",t$=iS(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");function CI(t){if(typeof t==\"string\"){if($r(t,-32)!==e$)throw new kI(t)}else qy(t.authorization)}function nVe(t){return typeof t==\"string\"?$4e(t):t}function $4e(t){CI(t);let e=sl($r(t,-64,-32)),n=$r(t,-e-64,-64),r=$r(t,0,-e-64),[o,a,c]=cI(t$,n);return{authorization:_4e({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:r,...c&&c!==\"0x\"?{data:c,to:a}:{}}}function rVe(t){let{data:e,signature:n}=t;CI(t);let r=Gy({payload:I4e(t.authorization),signature:d0(t.authorization)}),o=lI(t$,[{...t.authorization,delegation:t.authorization.address,chainId:BigInt(t.authorization.chainId)},t.to??r,e??\"0x\"]),a=En(Oo(o),{size:32});return Ao(n,o,a,e$)}function oVe(t){try{return CI(t),!0}catch{return!1}}var kI=class extends ir{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}};_I();o$();vE();a$();mb();Cx();pS();u();Cx();pS();u();u();u();Cx();My();function J4e(t){let e=Jl(`0x${t.substring(4)}`).substring(26);return Iy(`0x${e}`)}u();Xd();Jd();Is();Ko();async function e8e({hash:t,signature:e}){let n=Aa(t)?t:yo(t),{secp256k1:r}=await Promise.resolve().then(()=>(VM(),d4e));return`0x${(()=>{if(typeof e==\"object\"&&\"r\"in e&&\"s\"in e){let{r:p,s:m,v:g,yParity:y}=e,A=Number(y??g),T=Q4e(A);return new r.Signature(Io(p),Io(m)).addRecoveryBit(T)}let c=Aa(e)?e:yo(e);if(Yo(c)!==65)throw new Error(\"invalid signature length\");let l=us(`0x${c.slice(130)}`),f=Q4e(l);return r.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(f)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function Q4e(t){if(t===0||t===1)return t;if(t===27)return 0;if(t===28)return 1;throw new Error(\"Invalid yParityOrV value\")}async function hS({hash:t,signature:e}){return J4e(await e8e({hash:t,signature:e}))}u();il();tc();Ko();My();function t8e(t){let{chainId:e,nonce:n,to:r}=t,o=t.contractAddress??t.address,a=Jl(Wi([\"0x05\",nc([e?sr(e):\"0x\",o,n?sr(n):\"0x\"])]));return r===\"bytes\"?ra(a):a}async function gb(t){let{authorization:e,signature:n}=t;return hS({hash:t8e(e),signature:n??e})}async function n8e({address:t,authorization:e,signature:n}){return Qp(oE(t),await gb({authorization:e,signature:n}))}il();Xd();Is();Ko();u();function Wo(t,e,n){let r=t[e.name];if(typeof r==\"function\")return r;let o=t[n];return typeof o==\"function\"?o:a=>e(t,a)}u();VM();Is();tc();function r8e({r:t,s:e,to:n=\"hex\",v:r,yParity:o}){let a=(()=>{if(o===0||o===1)return o;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),c=`0x${new gf.Signature(Io(t),Io(e)).toCompactHex()}${a===0?\"1b\":\"1c\"}`;return n===\"hex\"?c:ra(c)}FI();u();c$();mb();u();rc();Bo();vE();tM();exe();var mVe=3;function OI(t,{abi:e,address:n,args:r,docsPath:o,functionName:a,sender:c}){let l=t instanceof Gx?t:t instanceof ln?t.walk(T=>\"data\"in T)||t.walk():{},{code:f,data:p,details:m,message:g,shortMessage:y}=l,A=t instanceof i0?new Q_({functionName:a,cause:t}):[mVe,bE.code].includes(f)&&(p||m||g||y)||f===wE.code&&m===\"execution reverted\"&&p?new J_({abi:e,data:typeof p==\"object\"?p.data:p,functionName:a,message:l instanceof qx?m:y??g,cause:t}):t;return new Kx(A,{abi:e,args:r,contractAddress:n,docsPath:o,functionName:a,sender:c})}FI();async function Xy(t,e){let{abi:n,address:r,args:o,functionName:a,...c}=e,l=iu({abi:n,args:o,functionName:a});try{let{data:f}=await Wo(t,yb,\"call\")({...c,data:l,to:r});return II({abi:n,args:o,functionName:a,data:f||\"0x\"})}catch(f){throw OI(f,{abi:n,address:r,args:o,docsPath:\"/docs/contract/readContract\",functionName:a})}}async function T8e(t,e){let{address:n,chain:r=t.chain,hash:o,erc6492VerifierAddress:a=e.universalSignatureVerifierAddress??r?.contracts?.erc6492Verifier?.address,multicallAddress:c=e.multicallAddress??r?.contracts?.multicall3?.address,mode:l=\"auto\"}=e;if(r?.verifyHash)return await r.verifyHash(t,e);let f=(()=>{let p=e.signature;return Aa(p)?p:typeof p==\"object\"&&\"r\"in p&&\"s\"in p?r8e(p):xi(p)})();try{if(l===\"eoa\")try{if(Qp(oE(n),await hS({hash:o,signature:f})))return!0}catch{}return uS.validate(f)?await gVe(t,{...e,multicallAddress:c,signature:f}):await yVe(t,{...e,verifierAddress:a,signature:f})}catch(p){if(l!==\"eoa\")try{if(Qp(oE(n),await hS({hash:o,signature:f})))return!0}catch{}if(p instanceof eh)return!1;throw p}}async function gVe(t,e){let{address:n,blockNumber:r,blockTag:o,hash:a,multicallAddress:c}=e,{authorization:l,data:f,signature:p,to:m}=uS.unwrap(e.signature);if(await SI(t,{address:n,blockNumber:r,blockTag:o})===Wi([\"0xef0100\",l.address]))return await vVe(t,{address:n,blockNumber:r,blockTag:o,hash:a,signature:p});let y={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:sr(l.r,{size:32}),s:sr(l.s,{size:32}),yParity:l.yParity};if(!await n8e({address:n,authorization:y}))throw new eh;let T=await Wo(t,Xy,\"readContract\")({...c?{address:c}:{code:MI},authorizationList:[y],abi:dS,blockNumber:r,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...f?[{allowFailure:!0,target:m??n,callData:f}]:[],{allowFailure:!0,target:n,callData:iu({abi:n$,functionName:\"isValidSignature\",args:[a,p]})}]]});if(T[T.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new eh}async function yVe(t,e){let{address:n,factory:r,factoryData:o,hash:a,signature:c,verifierAddress:l,...f}=e,p=await(async()=>!r&&!o||lS.validate(c)?c:lS.wrap({data:o,signature:c,to:r}))(),m=l?{to:l,data:iu({abi:r$,functionName:\"isValidSig\",args:[n,a,p]}),...f}:{data:fS({abi:r$,args:[n,a,p],bytecode:W4e}),...f},{data:g}=await Wo(t,yb,\"call\")(m).catch(y=>{throw y instanceof $x?new eh:y});if(Gpe(g??\"0x0\"))return!0;throw new eh}async function vVe(t,e){let{address:n,blockNumber:r,blockTag:o,hash:a,signature:c}=e;if((await Wo(t,Xy,\"readContract\")({address:n,abi:n$,args:[a,c],blockNumber:r,blockTag:o,functionName:\"isValidSignature\"}).catch(f=>{throw f instanceof Kx?new eh:f})).startsWith(\"0x1626ba7e\"))return!0;throw new eh}var eh=class extends Error{};cx();ef();My();u();tu();u();tu();Bo();il();u();t0();wy();nM();function LI(t,{docsPath:e,...n}){let r=(()=>{let o=Wx(t,n);return o instanceof of?t:o})();return new ST(r,{docsPath:e,...n})}Yx();ef();nE();Oy();u();Is();async function vb(t){let e=await t.request({method:\"eth_chainId\"},{dedupe:!0});return us(e)}u();tu();u();u();px();Bo();var xb=class extends ln{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},x0=class extends ln{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},NI=class extends ln{constructor({maxPriorityFeePerGas:e}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${ka(e)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}};u();Is();u();u();Bo();var UI=class extends ln{constructor({blockHash:e,blockNumber:n}){let r=\"Block\";e&&(r=`Block at hash \"${e}\"`),n&&(r=`Block at number \"${n}\"`),super(`${r} could not be found.`,{name:\"BlockNotFoundError\"})}};Ko();async function th(t,{blockHash:e,blockNumber:n,blockTag:r=t.experimental_blockTag??\"latest\",includeTransactions:o}={}){let a=o??!1,c=n!==void 0?sr(n):void 0,l=null;if(e?l=await t.request({method:\"eth_getBlockByHash\",params:[e,a]},{dedupe:!0}):l=await t.request({method:\"eth_getBlockByNumber\",params:[c||r,a]},{dedupe:!!c}),!l)throw new UI({blockHash:e,blockNumber:n});return(t.chain?.formatters?.block?.format||uV)(l,\"getBlock\")}u();async function zI(t){let e=await t.request({method:\"eth_gasPrice\"});return BigInt(e)}async function _8e(t,e){let{block:n,chain:r=t.chain,request:o}=e||{};try{let a=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(typeof a==\"function\"){let l=n||await Wo(t,th,\"getBlock\")({}),f=await a({block:l,client:t,request:o});if(f===null)throw new Error;return f}if(typeof a<\"u\")return a;let c=await t.request({method:\"eth_maxPriorityFeePerGas\"});return Io(c)}catch{let[a,c]=await Promise.all([n?Promise.resolve(n):Wo(t,th,\"getBlock\")({}),Wo(t,zI,\"getGasPrice\")({})]);if(typeof a.baseFeePerGas!=\"bigint\")throw new x0;let l=c-a.baseFeePerGas;return l<0n?0n:l}}async function g$(t,e){let{block:n,chain:r=t.chain,request:o,type:a=\"eip1559\"}=e||{},c=await(async()=>typeof r?.fees?.baseFeeMultiplier==\"function\"?r.fees.baseFeeMultiplier({block:n,client:t,request:o}):r?.fees?.baseFeeMultiplier??1.2)();if(c<1)throw new xb;let f=10**(c.toString().split(\".\")[1]?.length??0),p=y=>y*BigInt(Math.ceil(c*f))/BigInt(f),m=n||await Wo(t,th,\"getBlock\")({});if(typeof r?.fees?.estimateFeesPerGas==\"function\"){let y=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:p,request:o,type:a});if(y!==null)return y}if(a===\"eip1559\"){if(typeof m.baseFeePerGas!=\"bigint\")throw new x0;let y=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await _8e(t,{block:m,chain:r,request:o}),A=p(m.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??A+y,maxPriorityFeePerGas:y}}return{gasPrice:o?.gasPrice??p(await Wo(t,zI,\"getGasPrice\")({}))}}u();tu();Bo();Ko();u();u();xT();px();Bo();wy();var VI=class extends ln{constructor(e,{account:n,docsPath:r,chain:o,data:a,gas:c,gasPrice:l,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:m,to:g,value:y}){let A=by({from:n?.address,to:g,value:typeof y<\"u\"&&`${fx(y)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:a,gas:c,gasPrice:typeof l<\"u\"&&`${ka(l)} gwei`,maxFeePerGas:typeof f<\"u\"&&`${ka(f)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${ka(p)} gwei`,nonce:m});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",A].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}};t0();nM();function M8e(t,{docsPath:e,...n}){let r=(()=>{let o=Wx(t,n);return o instanceof of?t:o})();return new VI(r,{docsPath:e,...n})}Yx();ef();u$();Oy();async function I8e(t,e){let{account:n=t.account,prepare:r=!0}=e,o=n?bi(n):void 0,a=(()=>{if(Array.isArray(r))return r;if(o?.type!==\"local\")return[\"blobVersionedHashes\"]})();try{let c=await(async()=>{if(e.to)return e.to;if(e.authorizationList&&e.authorizationList.length>0)return await gb({authorization:e.authorizationList[0]}).catch(()=>{throw new ln(\"`to` is required. Could not infer from `authorizationList`\")})})(),{accessList:l,authorizationList:f,blobs:p,blobVersionedHashes:m,blockNumber:g,blockTag:y,data:A,gas:T,gasPrice:R,maxFeePerBlobGas:K,maxFeePerGas:O,maxPriorityFeePerGas:V,nonce:D,value:G,stateOverride:ee,...J}=r?await HI(t,{...e,parameters:a,to:c}):e;if(T&&e.gas!==T)return T;let se=(typeof g==\"bigint\"?sr(g):void 0)||y,te=RI(ee);nu(e);let S=t.chain?.formatters?.transactionRequest?.format,P=(S||ol)({...ff(J,{format:S}),account:o,accessList:l,authorizationList:f,blobs:p,blobVersionedHashes:m,data:A,gasPrice:R,maxFeePerBlobGas:K,maxFeePerGas:O,maxPriorityFeePerGas:V,nonce:D,to:c,value:G},\"estimateGas\");return BigInt(await t.request({method:\"eth_estimateGas\",params:te?[P,se??t.experimental_blockTag??\"latest\",te]:se?[P,se]:[P]}))}catch(c){throw M8e(c,{...e,account:o,chain:t.chain})}}u();Is();Ko();async function R8e(t,{address:e,blockTag:n=\"latest\",blockNumber:r}){let o=await t.request({method:\"eth_getTransactionCount\",params:[e,typeof r==\"bigint\"?sr(r):n]},{dedupe:!!r});return us(o)}nE();Oy();u();tu();Yx();ef();Oy();async function P8e(t,e){let{account:n=t.account,accessList:r,authorizationList:o,chain:a=t.chain,blobVersionedHashes:c,blobs:l,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:A,nonce:T,nonceManager:R,to:K,type:O,value:V,...D}=e,G=await(async()=>{if(!n||!R||typeof T<\"u\")return T;let se=bi(n),te=a?a.id:await Wo(t,vb,\"getChainId\")({});return await R.consume({address:se.address,chainId:te,client:t})})();nu(e);let ee=a?.formatters?.transactionRequest?.format,le=(ee||ol)({...ff(D,{format:ee}),account:n?bi(n):void 0,accessList:r,authorizationList:o,blobs:l,blobVersionedHashes:c,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:A,nonce:G,to:K,type:O,value:V},\"fillTransaction\");try{let se=await t.request({method:\"eth_fillTransaction\",params:[le]}),S=(a?.formatters?.transaction?.format||Ou)(se.tx);delete S.blockHash,delete S.blockNumber,delete S.r,delete S.s,delete S.transactionIndex,delete S.v,delete S.yParity,S.data=S.input,S.gas&&(S.gas=e.gas??S.gas),S.gasPrice&&(S.gasPrice=e.gasPrice??S.gasPrice),S.maxFeePerBlobGas&&(S.maxFeePerBlobGas=e.maxFeePerBlobGas??S.maxFeePerBlobGas),S.maxFeePerGas&&(S.maxFeePerGas=e.maxFeePerGas??S.maxFeePerGas),S.maxPriorityFeePerGas&&(S.maxPriorityFeePerGas=e.maxPriorityFeePerGas??S.maxPriorityFeePerGas),typeof S.nonce<\"u\"&&(S.nonce=e.nonce??S.nonce);let _=await(async()=>{if(typeof a?.fees?.baseFeeMultiplier==\"function\"){let L=await Wo(t,th,\"getBlock\")({});return a.fees.baseFeeMultiplier({block:L,client:t,request:e})}return a?.fees?.baseFeeMultiplier??1.2})();if(_<1)throw new xb;let z=10**(_.toString().split(\".\")[1]?.length??0),Y=L=>L*BigInt(Math.ceil(_*z))/BigInt(z);return S.feePayerSignature||(S.maxFeePerGas&&!e.maxFeePerGas&&(S.maxFeePerGas=Y(S.maxFeePerGas)),S.gasPrice&&!e.gasPrice&&(S.gasPrice=Y(S.gasPrice))),{raw:se.raw,transaction:{from:le.from,...S},...se.capabilities?{capabilities:se.capabilities}:{}}}catch(se){throw LI(se,{...e,chain:t.chain})}}var v$=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],B8e=new Map,y$=new af(128);async function HI(t,e){let n=e;n.account??(n.account=t.account),n.parameters??(n.parameters=v$);let{account:r,chain:o=t.chain,nonceManager:a,parameters:c}=n,l=(()=>{if(typeof o?.prepareTransactionRequest==\"function\")return{fn:o.prepareTransactionRequest,runAt:[\"beforeFillTransaction\"]};if(Array.isArray(o?.prepareTransactionRequest))return{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}})(),f;async function p(){return f||(typeof n.chainId<\"u\"?n.chainId:o?o.id:(f=await Wo(t,vb,\"getChainId\")({}),f))}let m=r&&bi(r),g=n.nonce;if(c.includes(\"nonce\")&&typeof g>\"u\"&&m&&a){let G=await p();g=await a.consume({address:m.address,chainId:G,client:t})}l?.fn&&l.runAt?.includes(\"beforeFillTransaction\")&&(n=await l.fn({...n,chain:o},{phase:\"beforeFillTransaction\"}),g??(g=n.nonce));let A=((c.includes(\"blobVersionedHashes\")||c.includes(\"sidecars\"))&&n.kzg&&n.blobs||y$.get(t.uid)===!1||![\"fees\",\"gas\"].some(ee=>c.includes(ee))?!1:!!(c.includes(\"chainId\")&&typeof n.chainId!=\"number\"||c.includes(\"nonce\")&&typeof g!=\"number\"||c.includes(\"fees\")&&typeof n.gasPrice!=\"bigint\"&&(typeof n.maxFeePerGas!=\"bigint\"||typeof n.maxPriorityFeePerGas!=\"bigint\")||c.includes(\"gas\")&&typeof n.gas!=\"bigint\"))?await Wo(t,P8e,\"fillTransaction\")({...n,nonce:g}).then(G=>{let{chainId:ee,from:J,gas:le,gasPrice:se,nonce:te,maxFeePerBlobGas:S,maxFeePerGas:_,maxPriorityFeePerGas:P,type:z,...Y}=G.transaction;return y$.set(t.uid,!0),{...n,...J?{from:J}:{},...z&&!n.type?{type:z}:{},...typeof ee<\"u\"?{chainId:ee}:{},...typeof le<\"u\"?{gas:le}:{},...typeof se<\"u\"?{gasPrice:se}:{},...typeof te<\"u\"?{nonce:te}:{},...typeof S<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxFeePerBlobGas:S}:{},...typeof _<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxFeePerGas:_}:{},...typeof P<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxPriorityFeePerGas:P}:{},...\"nonceKey\"in Y&&typeof Y.nonceKey<\"u\"?{nonceKey:Y.nonceKey}:{},...\"keyAuthorization\"in Y&&typeof Y.keyAuthorization<\"u\"&&Y.keyAuthorization!==null&&!(\"keyAuthorization\"in n)?{keyAuthorization:Y.keyAuthorization}:{},...\"feePayerSignature\"in Y&&typeof Y.feePayerSignature<\"u\"&&Y.feePayerSignature!==null?{feePayerSignature:Y.feePayerSignature}:{},...\"feeToken\"in Y&&typeof Y.feeToken<\"u\"&&Y.feeToken!==null&&!(\"feeToken\"in n)?{feeToken:Y.feeToken}:{},...G.capabilities?{_capabilities:G.capabilities}:{}}}).catch(G=>{let ee=G;if(ee.name!==\"TransactionExecutionError\")return n;if(ee.walk?.(se=>se.name===\"ExecutionRevertedError\"))throw G;return ee.walk?.(se=>{let te=se;return te.name===\"MethodNotFoundRpcError\"||te.name===\"MethodNotSupportedRpcError\"||te.message?.includes(\"eth_fillTransaction is not available\")})&&y$.set(t.uid,!1),n}):n;g??(g=A.nonce),n={...A,...m?{from:m?.address}:{},...typeof g<\"u\"?{nonce:g}:{}};let{blobs:T,gas:R,kzg:K,type:O}=n;l?.fn&&l.runAt?.includes(\"beforeFillParameters\")&&(n=await l.fn({...n,chain:o},{phase:\"beforeFillParameters\"}));let V;async function D(){return V||(V=await Wo(t,th,\"getBlock\")({blockTag:\"latest\"}),V)}if(c.includes(\"nonce\")&&typeof g>\"u\"&&m&&!a&&(n.nonce=await Wo(t,R8e,\"getTransactionCount\")({address:m.address,blockTag:\"pending\"})),(c.includes(\"blobVersionedHashes\")||c.includes(\"sidecars\"))&&T&&K){let G=hx({blobs:T,kzg:K});if(c.includes(\"blobVersionedHashes\")){let ee=DT({commitments:G,to:\"hex\"});n.blobVersionedHashes=ee}if(c.includes(\"sidecars\")){let ee=mx({blobs:T,commitments:G,kzg:K}),J=NT({blobs:T,commitments:G,proofs:ee,to:\"hex\"});n.sidecars=J}}if(c.includes(\"chainId\")&&(n.chainId=await p()),(c.includes(\"fees\")||c.includes(\"type\"))&&typeof O>\"u\")try{n.type=Tx(n)}catch{let G=B8e.get(t.uid);typeof G>\"u\"&&(G=typeof(await D())?.baseFeePerGas==\"bigint\",B8e.set(t.uid,G)),n.type=G?\"eip1559\":\"legacy\"}if(c.includes(\"fees\"))if(n.type!==\"legacy\"&&n.type!==\"eip2930\"){if(typeof n.maxFeePerGas>\"u\"||typeof n.maxPriorityFeePerGas>\"u\"){let G=await D(),{maxFeePerGas:ee,maxPriorityFeePerGas:J}=await g$(t,{block:G,chain:o,request:n});if(typeof n.maxPriorityFeePerGas>\"u\"&&n.maxFeePerGas&&n.maxFeePerGas<J)throw new NI({maxPriorityFeePerGas:J});n.maxPriorityFeePerGas=J,n.maxFeePerGas=ee}}else{if(typeof n.maxFeePerGas<\"u\"||typeof n.maxPriorityFeePerGas<\"u\")throw new x0;if(typeof n.gasPrice>\"u\"){let G=await D(),{gasPrice:ee}=await g$(t,{block:G,chain:o,request:n,type:\"legacy\"});n.gasPrice=ee}}return c.includes(\"gas\")&&typeof R>\"u\"&&(n.gas=await Wo(t,I8e,\"estimateGas\")({...n,account:m,prepare:m?.type===\"local\"?[]:[\"blobVersionedHashes\"]})),l?.fn&&l.runAt?.includes(\"afterFillParameters\")&&(n=await l.fn({...n,chain:o},{phase:\"afterFillParameters\"})),nu(n),delete n.parameters,n}u();async function D8e(t,{serializedTransaction:e}){return t.request({method:\"eth_sendRawTransaction\",params:[e]},{retryCount:0})}var x$=new af(128);async function jI(t,e){let{account:n=t.account,assertChainId:r=!0,chain:o=t.chain,accessList:a,authorizationList:c,blobs:l,data:f,dataSuffix:p=typeof t.dataSuffix==\"string\"?t.dataSuffix:t.dataSuffix?.value,gas:m,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:R,type:K,value:O,...V}=e;if(typeof n>\"u\")throw new r0({docsPath:\"/docs/actions/wallet/sendTransaction\"});let D=n?bi(n):null;try{nu(e);let G=await(async()=>{if(e.to)return e.to;if(e.to!==null&&c&&c.length>0)return await gb({authorization:c[0]}).catch(()=>{throw new ln(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(D?.type===\"json-rpc\"||D===null){let ee;o!==null&&(ee=await Wo(t,vb,\"getChainId\")({}),r&&_1e({currentChainId:ee,chain:o}));let J=t.chain?.formatters?.transactionRequest?.format,se=(J||ol)({...ff(V,{format:J}),accessList:a,account:D,authorizationList:c,blobs:l,chainId:ee,data:p?Yl([f??\"0x\",p]):f,gas:m,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:R,to:G,type:K,value:O},\"sendTransaction\"),te=x$.get(t.uid),S=te?\"wallet_sendTransaction\":\"eth_sendTransaction\";try{return await t.request({method:S,params:[se]},{retryCount:0})}catch(_){if(te===!1)throw _;let P=_;if(P.name===\"InvalidInputRpcError\"||P.name===\"InvalidParamsRpcError\"||P.name===\"MethodNotFoundRpcError\"||P.name===\"MethodNotSupportedRpcError\")return await t.request({method:\"wallet_sendTransaction\",params:[se]},{retryCount:0}).then(z=>(x$.set(t.uid,!0),z)).catch(z=>{let Y=z;throw Y.name===\"MethodNotFoundRpcError\"||Y.name===\"MethodNotSupportedRpcError\"?(x$.set(t.uid,!1),P):Y});throw P}}if(D?.type===\"local\"){let ee=await Wo(t,HI,\"prepareTransactionRequest\")({account:D,accessList:a,authorizationList:c,blobs:l,chain:o,data:p?Yl([f??\"0x\",p]):f,gas:m,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:R,nonceManager:D.nonceManager,parameters:[...v$,\"sidecars\"],type:K,value:O,...V,to:G}),J=o?.serializers?.transaction,le=await D.signTransaction(ee,{serializer:J});return await Wo(t,D8e,\"sendRawTransaction\")({serializedTransaction:le})}throw D?.type===\"smart\"?new Px({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new Px({docsPath:\"/docs/actions/wallet/sendTransaction\",type:D?.type})}catch(G){throw G instanceof Px?G:LI(G,{...e,account:D,chain:e.chain||void 0})}}u();tu();mb();async function bb(t,e){return bb.internal(t,jI,\"sendTransaction\",e)}(function(t){async function e(n,r,o,a){let{abi:c,account:l=n.account,address:f,args:p,functionName:m,...g}=a;if(typeof l>\"u\")throw new r0({docsPath:\"/docs/contract/writeContract\"});let y=l?bi(l):null,A=iu({abi:c,args:p,functionName:m});try{return await Wo(n,r,o)({data:A,to:f,account:y,...g})}catch(T){throw OI(T,{abi:c,address:f,args:p,docsPath:\"/docs/contract/writeContract\",functionName:m,sender:y?.address})}}t.internal=e})(bb||(bb={}));u();pS();tc();My();W_();u();rc();hV();Jd();W_();gE();o0();var F8e=\"/docs/contract/decodeEventLog\";function b$(t){let{abi:e,data:n,strict:r,topics:o}=t,a=r??!0,[c,...l]=o;if(!c)throw new v_({docsPath:F8e});let f=e.find(O=>O.type===\"event\"&&c===Vx(ps(O)));if(!(f&&\"name\"in f)||f.type!==\"event\")throw new x_(c,{docsPath:F8e});let{name:p,inputs:m}=f,g=m?.some(O=>!(\"name\"in O&&O.name)),y=g?[]:{},A=m.map((O,V)=>[O,V]).filter(([O])=>\"indexed\"in O&&O.indexed),T=[];for(let O=0;O<A.length;O++){let[V,D]=A[O],G=l[O];if(!G){if(a)throw new E_({abiItem:f,param:V});T.push([V,D]);continue}y[g?D:V.name||D]=xVe({param:V,value:G})}let R=m.filter(O=>!(\"indexed\"in O&&O.indexed)),K=a?R:[...T.map(([O])=>O),...R];if(K.length>0){if(n&&n!==\"0x\")try{let O=Hp(K,n);if(O){let V=0;if(!a)for(let[D,G]of T)y[g?G:D.name||G]=O[V++];if(g)for(let D=0;D<m.length;D++)y[D]===void 0&&V<O.length&&(y[D]=O[V++]);else for(let D=0;D<R.length;D++)y[R[D].name]=O[V++]}}catch(O){if(a)throw O instanceof Bx||O instanceof ux?new uE({abiItem:f,data:n,params:K,size:Yo(n)}):O}else if(a)throw new uE({abiItem:f,data:\"0x\",params:K,size:0})}return{eventName:p,args:Object.values(y).length>0?y:void 0}}function xVe({param:t,value:e}){return t.type===\"string\"||t.type===\"bytes\"||t.type===\"tuple\"||t.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?e:(Hp([t],e)||[])[0]}function $I(t){let{abi:e,args:n,logs:r,strict:o=!0}=t,a=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})(),c=e.filter(l=>l.type===\"event\").map(l=>({abi:l,selector:Vx(l)}));return r.map(l=>{let f=typeof l.blockNumber==\"string\"?ix(l):l,p=c.filter(y=>f.topics[0]===y.selector);if(p.length===0)return null;let m,g;for(let y of p)try{m=b$({...f,abi:[y.abi],strict:!0}),g=y;break}catch{}if(!m&&!o){g=p[0];try{m=b$({data:f.data,topics:f.topics,abi:[g.abi],strict:!1})}catch{let y=g.abi.inputs?.some(A=>!(\"name\"in A&&A.name));return{...f,args:y?[]:{},eventName:g.abi.name}}}return!m||!g||a&&!a.includes(m.eventName)||!bVe({args:m.args,inputs:g.abi.inputs,matchArgs:n})?null:{...m,...f}}).filter(Boolean)}function bVe(t){let{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function o(a,c,l){try{return a.type===\"address\"?Qp(c,l):a.type===\"string\"||a.type===\"bytes\"?Jl(Wl(c))===l:c===l}catch{return!1}}return Array.isArray(e)&&Array.isArray(r)?r.every((a,c)=>{if(a==null)return!0;let l=n[c];return l?(Array.isArray(a)?a:[a]).some(p=>o(l,p,e[c])):!1}):typeof e==\"object\"&&!Array.isArray(e)&&typeof r==\"object\"&&!Array.isArray(r)?Object.entries(r).every(([a,c])=>{if(c==null)return!0;let l=n.find(p=>p.name===a);return l?(Array.isArray(c)?c:[c]).some(p=>o(l,p,e[a])):!1}):!1}u();var wVe=[{name:\"name\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"symbol\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"decimals\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{name:\"totalSupply\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"quoteToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"nextQuoteToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"balanceOf\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"uint256\"}]},{name:\"transfer\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"approve\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"spender\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"allowance\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"owner\"},{type:\"address\",name:\"spender\"}],outputs:[{type:\"uint256\"}]},{name:\"transferFrom\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"mint\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"burn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"currency\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"supplyCap\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"paused\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bool\"}]},{name:\"transferPolicyId\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"burnBlocked\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"mintWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"burnWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"transferWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"transferFromWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[{type:\"bool\"}]},{name:\"changeTransferPolicyId\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"newPolicyId\"}],outputs:[]},{name:\"setSupplyCap\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"newSupplyCap\"}],outputs:[]},{name:\"pause\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"unpause\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"setNextQuoteToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newQuoteToken\"}],outputs:[]},{name:\"completeQuoteTokenUpdate\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"PAUSE_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"UNPAUSE_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"ISSUER_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"BURN_BLOCKED_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"permit\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"owner\"},{type:\"address\",name:\"spender\"},{type:\"uint256\",name:\"value\"},{type:\"uint256\",name:\"deadline\"},{type:\"uint8\",name:\"v\"},{type:\"bytes32\",name:\"r\"},{type:\"bytes32\",name:\"s\"}],outputs:[]},{name:\"nonces\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"owner\"}],outputs:[{type:\"uint256\"}]},{name:\"DOMAIN_SEPARATOR\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"distributeReward\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"setRewardRecipient\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"recipient\"}],outputs:[]},{name:\"claimRewards\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"optedInSupply\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"globalRewardPerToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"userRewardInfo\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"tuple\",components:[{type:\"address\",name:\"rewardRecipient\"},{type:\"uint256\",name:\"rewardPerToken\"},{type:\"uint256\",name:\"rewardBalance\"}]}]},{name:\"getPendingRewards\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"uint128\"}]},{name:\"Transfer\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Approval\",type:\"event\",inputs:[{type:\"address\",name:\"owner\",indexed:!0},{type:\"address\",name:\"spender\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Mint\",type:\"event\",inputs:[{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Burn\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"BurnBlocked\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"TransferWithMemo\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\",indexed:!0}]},{name:\"TransferPolicyUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint64\",name:\"newPolicyId\",indexed:!0}]},{name:\"SupplyCapUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint256\",name:\"newSupplyCap\",indexed:!0}]},{name:\"PauseStateUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"bool\",name:\"isPaused\"}]},{name:\"NextQuoteTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"nextQuoteToken\",indexed:!0}]},{name:\"QuoteTokenUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"newQuoteToken\",indexed:!0}]},{name:\"RewardDistributed\",type:\"event\",inputs:[{type:\"address\",name:\"funder\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"RewardRecipientSet\",type:\"event\",inputs:[{type:\"address\",name:\"holder\",indexed:!0},{type:\"address\",name:\"recipient\",indexed:!0}]},{name:\"InsufficientBalance\",type:\"error\",inputs:[{type:\"uint256\",name:\"available\"},{type:\"uint256\",name:\"required\"},{type:\"address\",name:\"token\"}]},{name:\"InsufficientAllowance\",type:\"error\",inputs:[]},{name:\"SupplyCapExceeded\",type:\"error\",inputs:[]},{name:\"InvalidSupplyCap\",type:\"error\",inputs:[]},{name:\"InvalidPayload\",type:\"error\",inputs:[]},{name:\"StringTooLong\",type:\"error\",inputs:[]},{name:\"PolicyForbids\",type:\"error\",inputs:[]},{name:\"InvalidRecipient\",type:\"error\",inputs:[]},{name:\"ContractPaused\",type:\"error\",inputs:[]},{name:\"InvalidCurrency\",type:\"error\",inputs:[]},{name:\"InvalidQuoteToken\",type:\"error\",inputs:[]},{name:\"TransfersDisabled\",type:\"error\",inputs:[]},{name:\"InvalidAmount\",type:\"error\",inputs:[]},{name:\"NoOptedInSupply\",type:\"error\",inputs:[]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"ProtectedAddress\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"Uninitialized\",type:\"error\",inputs:[]},{name:\"InvalidTransferPolicyId\",type:\"error\",inputs:[]},{name:\"PermitExpired\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]},{name:\"hasRole\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"bytes32\",name:\"role\"}],outputs:[{type:\"bool\"}]},{name:\"getRoleAdmin\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"role\"}],outputs:[{type:\"bytes32\"}]},{name:\"grantRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"address\",name:\"account\"}],outputs:[]},{name:\"revokeRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"address\",name:\"account\"}],outputs:[]},{name:\"renounceRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"}],outputs:[]},{name:\"setRoleAdmin\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"bytes32\",name:\"adminRole\"}],outputs:[]},{name:\"RoleMembershipUpdated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"role\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"sender\",indexed:!0},{type:\"bool\",name:\"hasRole\"}]},{name:\"RoleAdminUpdated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"role\",indexed:!0},{type:\"bytes32\",name:\"newAdminRole\",indexed:!0},{type:\"address\",name:\"sender\",indexed:!0}]},{name:\"Unauthorized\",type:\"error\",inputs:[]}],EVe=[{name:\"getActiveValidators\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"tuple[]\",name:\"validators\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"getInitializedAtHeight\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"owner\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"validatorCount\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"validatorByIndex\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"index\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"validatorByAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validatorAddress\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"validatorByPublicKey\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"publicKey\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"getNextNetworkIdentityRotationEpoch\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"isInitialized\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bool\"}]},{name:\"addValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"uint64\",name:\"index\"}]},{name:\"deactivateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"}],outputs:[]},{name:\"rotateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"bytes\",name:\"signature\"}],outputs:[]},{name:\"setFeeRecipient\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"address\",name:\"feeRecipient\"}],outputs:[]},{name:\"setIpAddresses\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"}],outputs:[]},{name:\"transferValidatorOwnership\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"address\",name:\"newAddress\"}],outputs:[]},{name:\"transferOwnership\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newOwner\"}],outputs:[]},{name:\"setNetworkIdentityRotationEpoch\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"epoch\"}],outputs:[]},{name:\"migrateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"}],outputs:[]},{name:\"initializeIfMigrated\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"ValidatorAdded\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"}]},{name:\"ValidatorDeactivated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0}]},{name:\"ValidatorRotated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"uint64\",name:\"deactivatedIndex\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"oldPublicKey\"},{type:\"bytes32\",name:\"newPublicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"caller\"}]},{name:\"FeeRecipientUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"feeRecipient\"},{type:\"address\",name:\"caller\"}]},{name:\"IpAddressesUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"caller\"}]},{name:\"ValidatorOwnershipTransferred\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"oldAddress\",indexed:!0},{type:\"address\",name:\"newAddress\",indexed:!0},{type:\"address\",name:\"caller\"}]},{name:\"OwnershipTransferred\",type:\"event\",inputs:[{type:\"address\",name:\"oldOwner\",indexed:!0},{type:\"address\",name:\"newOwner\",indexed:!0}]},{name:\"ValidatorMigrated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"}]},{name:\"NetworkIdentityRotationEpochSet\",type:\"event\",inputs:[{type:\"uint64\",name:\"previousEpoch\",indexed:!0},{type:\"uint64\",name:\"nextEpoch\",indexed:!0}]},{name:\"Initialized\",type:\"event\",inputs:[{type:\"uint64\",name:\"height\"}]},{name:\"SkippedValidatorMigration\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"}]},{name:\"AlreadyInitialized\",type:\"error\",inputs:[]},{name:\"IngressAlreadyExists\",type:\"error\",inputs:[{type:\"string\",name:\"ingress\"}]},{name:\"EmptyV1ValidatorSet\",type:\"error\",inputs:[]},{name:\"InvalidMigrationIndex\",type:\"error\",inputs:[]},{name:\"InvalidOwner\",type:\"error\",inputs:[]},{name:\"InvalidPublicKey\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]},{name:\"InvalidSignatureFormat\",type:\"error\",inputs:[]},{name:\"InvalidValidatorAddress\",type:\"error\",inputs:[]},{name:\"MigrationNotComplete\",type:\"error\",inputs:[]},{name:\"NotInitialized\",type:\"error\",inputs:[]},{name:\"NotIp\",type:\"error\",inputs:[{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"NotIpPort\",type:\"error\",inputs:[{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"PublicKeyAlreadyExists\",type:\"error\",inputs:[]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"AddressAlreadyHasValidator\",type:\"error\",inputs:[]},{name:\"ValidatorAlreadyDeactivated\",type:\"error\",inputs:[]},{name:\"ValidatorNotFound\",type:\"error\",inputs:[]}],SVe=[{name:\"recover\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"hash\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"address\",name:\"signer\"}]},{name:\"verify\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"signer\"},{type:\"bytes32\",name:\"hash\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"bool\"}]},{name:\"InvalidFormat\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]}],AVe=[{name:\"createPair\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"base\"}],outputs:[{type:\"bytes32\",name:\"key\"}]},{name:\"place\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"}],outputs:[{type:\"uint128\",name:\"orderId\"}]},{name:\"placeFlip\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"int16\",name:\"flipTick\"}],outputs:[{type:\"uint128\",name:\"orderId\"}]},{name:\"cancel\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[]},{name:\"cancelStaleOrder\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[]},{name:\"swapExactAmountIn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountIn\"},{type:\"uint128\",name:\"minAmountOut\"}],outputs:[{type:\"uint128\",name:\"amountOut\"}]},{name:\"swapExactAmountOut\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountOut\"},{type:\"uint128\",name:\"maxAmountIn\"}],outputs:[{type:\"uint128\",name:\"amountIn\"}]},{name:\"quoteSwapExactAmountIn\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountIn\"}],outputs:[{type:\"uint128\",name:\"amountOut\"}]},{name:\"quoteSwapExactAmountOut\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountOut\"}],outputs:[{type:\"uint128\",name:\"amountIn\"}]},{name:\"balanceOf\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"user\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint128\"}]},{name:\"withdraw\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"}],outputs:[]},{name:\"getOrder\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"orderId\"},{type:\"address\",name:\"maker\"},{type:\"bytes32\",name:\"bookKey\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"uint128\",name:\"amount\"},{type:\"uint128\",name:\"remaining\"},{type:\"uint128\",name:\"prev\"},{type:\"uint128\",name:\"next\"},{type:\"bool\",name:\"isFlip\"},{type:\"int16\",name:\"flipTick\"}]}]},{name:\"getTickLevel\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"base\"},{type:\"int16\",name:\"tick\"},{type:\"bool\",name:\"isBid\"}],outputs:[{type:\"uint128\",name:\"head\"},{type:\"uint128\",name:\"tail\"},{type:\"uint128\",name:\"totalLiquidity\"}]},{name:\"pairKey\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"tokenA\"},{type:\"address\",name:\"tokenB\"}],outputs:[{type:\"bytes32\"}]},{name:\"nextOrderId\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"books\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"pairKey\"}],outputs:[{type:\"tuple\",components:[{type:\"address\",name:\"base\"},{type:\"address\",name:\"quote\"},{type:\"int16\",name:\"bestBidTick\"},{type:\"int16\",name:\"bestAskTick\"}]}]},{name:\"MIN_TICK\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"MAX_TICK\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"TICK_SPACING\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"PRICE_SCALE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"MIN_ORDER_AMOUNT\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"MIN_PRICE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"MAX_PRICE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"tickToPrice\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"int16\",name:\"tick\"}],outputs:[{type:\"uint32\",name:\"price\"}]},{name:\"priceToTick\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"uint32\",name:\"price\"}],outputs:[{type:\"int16\",name:\"tick\"}]},{name:\"PairCreated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"key\",indexed:!0},{type:\"address\",name:\"base\",indexed:!0},{type:\"address\",name:\"quote\",indexed:!0}]},{name:\"OrderPlaced\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0},{type:\"address\",name:\"maker\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"bool\",name:\"isFlipOrder\"},{type:\"int16\",name:\"flipTick\"}]},{name:\"OrderFilled\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0},{type:\"address\",name:\"maker\",indexed:!0},{type:\"address\",name:\"taker\",indexed:!0},{type:\"uint128\",name:\"amountFilled\"},{type:\"bool\",name:\"partialFill\"}]},{name:\"OrderCancelled\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"PairDoesNotExist\",type:\"error\",inputs:[]},{name:\"PairAlreadyExists\",type:\"error\",inputs:[]},{name:\"OrderDoesNotExist\",type:\"error\",inputs:[]},{name:\"IdenticalTokens\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"TickOutOfBounds\",type:\"error\",inputs:[{type:\"int16\",name:\"tick\"}]},{name:\"InvalidTick\",type:\"error\",inputs:[]},{name:\"InvalidFlipTick\",type:\"error\",inputs:[]},{name:\"InsufficientBalance\",type:\"error\",inputs:[]},{name:\"InsufficientLiquidity\",type:\"error\",inputs:[]},{name:\"InsufficientOutput\",type:\"error\",inputs:[]},{name:\"MaxInputExceeded\",type:\"error\",inputs:[]},{name:\"BelowMinimumOrderSize\",type:\"error\",inputs:[{type:\"uint128\",name:\"amount\"}]},{name:\"InvalidBaseToken\",type:\"error\",inputs:[]},{name:\"OrderNotStale\",type:\"error\",inputs:[]}],kVe=[{name:\"registerVirtualMaster\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"bytes4\",name:\"masterId\"}]},{name:\"getMaster\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes4\",name:\"masterId\"}],outputs:[{type:\"address\"}]},{name:\"resolveRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"to\"}],outputs:[{type:\"address\",name:\"effectiveRecipient\"}]},{name:\"resolveVirtualAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"virtualAddr\"}],outputs:[{type:\"address\",name:\"master\"}]},{name:\"isVirtualAddress\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"addr\"}],outputs:[{type:\"bool\"}]},{name:\"decodeVirtualAddress\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"addr\"}],outputs:[{type:\"bool\",name:\"isVirtual\"},{type:\"bytes4\",name:\"masterId\"},{type:\"bytes6\",name:\"userTag\"}]},{name:\"MasterRegistered\",type:\"event\",inputs:[{type:\"bytes4\",name:\"masterId\",indexed:!0},{type:\"address\",name:\"masterAddress\",indexed:!0}]},{name:\"MasterIdCollision\",type:\"error\",inputs:[{type:\"address\",name:\"master\"}]},{name:\"InvalidMasterAddress\",type:\"error\",inputs:[]},{name:\"ProofOfWorkFailed\",type:\"error\",inputs:[]},{name:\"VirtualAddressUnregistered\",type:\"error\",inputs:[]}],CVe=[{name:\"userTokens\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"user\"}],outputs:[{type:\"address\"}]},{name:\"validatorTokens\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"}],outputs:[{type:\"address\"}]},{name:\"setUserToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"}],outputs:[]},{name:\"setValidatorToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"}],outputs:[]},{name:\"distributeFees\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validator\"},{type:\"address\",name:\"token\"}],outputs:[]},{name:\"collectedFees\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\"}]},{name:\"UserTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"user\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0}]},{name:\"ValidatorTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"validator\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0}]},{name:\"FeesDistributed\",type:\"event\",inputs:[{type:\"address\",name:\"validator\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"OnlyValidator\",type:\"error\",inputs:[]},{name:\"OnlySystemContract\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"PoolDoesNotExist\",type:\"error\",inputs:[]},{name:\"InsufficientFeeTokenBalance\",type:\"error\",inputs:[]},{name:\"InternalError\",type:\"error\",inputs:[]},{name:\"CannotChangeWithinBlock\",type:\"error\",inputs:[]},{name:\"CannotChangeWithPendingFees\",type:\"error\",inputs:[]},{name:\"TokenPolicyForbids\",type:\"error\",inputs:[]}],TVe=[{name:\"M\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"N\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"SCALE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"MIN_LIQUIDITY\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"getPoolId\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"}],outputs:[{type:\"bytes32\"}]},{name:\"getPool\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"reserveUserToken\"},{type:\"uint128\",name:\"reserveValidatorToken\"}]}]},{name:\"pools\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"reserveUserToken\"},{type:\"uint128\",name:\"reserveValidatorToken\"}]}]},{name:\"mint\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"liquidity\"}]},{name:\"burn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"liquidity\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"amountUserToken\"},{type:\"uint256\",name:\"amountValidatorToken\"}]},{name:\"totalSupply\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"}],outputs:[{type:\"uint256\"}]},{name:\"liquidityBalances\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"uint256\"}]},{name:\"rebalanceSwap\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"amountOut\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"amountIn\"}]},{name:\"Mint\",type:\"event\",inputs:[{type:\"address\",name:\"sender\"},{type:\"address\",name:\"to\",indexed:!0},{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"uint256\",name:\"liquidity\"}]},{name:\"Burn\",type:\"event\",inputs:[{type:\"address\",name:\"sender\",indexed:!0},{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"uint256\",name:\"amountUserToken\"},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"uint256\",name:\"liquidity\"},{type:\"address\",name:\"to\"}]},{name:\"RebalanceSwap\",type:\"event\",inputs:[{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"address\",name:\"swapper\",indexed:!0},{type:\"uint256\",name:\"amountIn\"},{type:\"uint256\",name:\"amountOut\"}]},{name:\"IdenticalAddresses\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"InsufficientLiquidity\",type:\"error\",inputs:[]},{name:\"InsufficientReserves\",type:\"error\",inputs:[]},{name:\"InvalidAmount\",type:\"error\",inputs:[]},{name:\"DivisionByZero\",type:\"error\",inputs:[]},{name:\"InvalidSwapCalculation\",type:\"error\",inputs:[]}],vf=[{name:\"authorizeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"uint8\",name:\"signatureType\"},{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"tuple[]\",name:\"limits\",components:[{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"amount\"}]}],outputs:[]},{name:\"authorizeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"uint8\",name:\"signatureType\"},{type:\"tuple\",name:\"config\",components:[{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"tuple[]\",name:\"limits\",components:[{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"amount\"},{type:\"uint64\",name:\"period\"}]},{type:\"bool\",name:\"allowAnyCalls\"},{type:\"tuple[]\",name:\"allowedCalls\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}]}],outputs:[]},{name:\"revokeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"}],outputs:[]},{name:\"updateSpendingLimit\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"newLimit\"}],outputs:[]},{name:\"setAllowedCalls\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"tuple[]\",name:\"scopes\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}],outputs:[]},{name:\"removeAllowedCalls\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"target\"}],outputs:[]},{name:\"getKey\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint8\",name:\"signatureType\"},{type:\"address\",name:\"keyId\"},{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"bool\",name:\"isRevoked\"}]}]},{name:\"getRemainingLimit\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\",name:\"remaining\"}]},{name:\"getRemainingLimitWithPeriod\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\",name:\"remaining\"},{type:\"uint64\",name:\"periodEnd\"}]},{name:\"getAllowedCalls\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"}],outputs:[{type:\"bool\",name:\"isScoped\"},{type:\"tuple[]\",name:\"scopes\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}]},{name:\"getTransactionKey\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"KeyAuthorized\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"uint8\",name:\"signatureType\"},{type:\"uint64\",name:\"expiry\"}]},{name:\"KeyRevoked\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0}]},{name:\"SpendingLimitUpdated\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"newLimit\"}]},{name:\"AccessKeySpend\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"amount\"},{type:\"uint256\",name:\"remainingLimit\"}]},{name:\"UnauthorizedCaller\",type:\"error\",inputs:[]},{name:\"KeyAlreadyExists\",type:\"error\",inputs:[]},{name:\"KeyNotFound\",type:\"error\",inputs:[]},{name:\"KeyExpired\",type:\"error\",inputs:[]},{name:\"SpendingLimitExceeded\",type:\"error\",inputs:[]},{name:\"InvalidSpendingLimit\",type:\"error\",inputs:[]},{name:\"InvalidSignatureType\",type:\"error\",inputs:[]},{name:\"ZeroPublicKey\",type:\"error\",inputs:[]},{name:\"ExpiryInPast\",type:\"error\",inputs:[]},{name:\"KeyAlreadyRevoked\",type:\"error\",inputs:[]},{name:\"SignatureTypeMismatch\",type:\"error\",inputs:[{type:\"uint8\",name:\"expected\"},{type:\"uint8\",name:\"actual\"}]},{name:\"CallNotAllowed\",type:\"error\",inputs:[]},{name:\"InvalidCallScope\",type:\"error\",inputs:[]},{name:\"LegacyAuthorizeKeySelectorChanged\",type:\"error\",inputs:[{type:\"bytes4\",name:\"newSelector\"}]}],_Ve=[{name:\"getNonce\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"uint256\",name:\"nonceKey\"}],outputs:[{type:\"uint64\",name:\"nonce\"}]},{name:\"NonceIncremented\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"uint256\",name:\"nonceKey\",indexed:!0},{type:\"uint64\",name:\"newNonce\"}]},{name:\"ProtocolNonceNotSupported\",type:\"error\",inputs:[]},{name:\"InvalidNonceKey\",type:\"error\",inputs:[]},{name:\"NonceOverflow\",type:\"error\",inputs:[]},{name:\"ExpiringNonceReplay\",type:\"error\",inputs:[]},{name:\"ExpiringNonceSetFull\",type:\"error\",inputs:[]},{name:\"InvalidExpiringNonceExpiry\",type:\"error\",inputs:[]}],MVe=[{name:\"createToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"string\",name:\"name\"},{type:\"string\",name:\"symbol\"},{type:\"string\",name:\"currency\"},{type:\"address\",name:\"quoteToken\"},{type:\"address\",name:\"admin\"},{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"address\"}]},{name:\"isTIP20\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"token\"}],outputs:[{type:\"bool\"}]},{name:\"getTokenAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"sender\"},{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"address\"}]},{name:\"TokenCreated\",type:\"event\",inputs:[{type:\"address\",name:\"token\",indexed:!0},{type:\"string\",name:\"name\"},{type:\"string\",name:\"symbol\"},{type:\"string\",name:\"currency\"},{type:\"address\",name:\"quoteToken\"},{type:\"address\",name:\"admin\"},{type:\"bytes32\",name:\"salt\"}]},{name:\"AddressReserved\",type:\"error\",inputs:[]},{name:\"AddressNotReserved\",type:\"error\",inputs:[]},{name:\"InvalidQuoteToken\",type:\"error\",inputs:[]},{name:\"TokenAlreadyExists\",type:\"error\",inputs:[{type:\"address\",name:\"token\"}]}],IVe=[{name:\"policyIdCounter\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"policyExists\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"bool\"}]},{name:\"policyData\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"uint8\",name:\"policyType\"},{type:\"address\",name:\"admin\"}]},{name:\"isAuthorized\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedSender\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedMintRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"compoundPolicyData\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}]},{name:\"createPolicy\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"admin\"},{type:\"uint8\",name:\"policyType\"}],outputs:[{type:\"uint64\"}]},{name:\"createPolicyWithAccounts\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"admin\"},{type:\"uint8\",name:\"policyType\"},{type:\"address[]\",name:\"accounts\"}],outputs:[{type:\"uint64\"}]},{name:\"setPolicyAdmin\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"admin\"}],outputs:[]},{name:\"modifyPolicyWhitelist\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"account\"},{type:\"bool\",name:\"allowed\"}],outputs:[]},{name:\"modifyPolicyBlacklist\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"account\"},{type:\"bool\",name:\"restricted\"}],outputs:[]},{name:\"createCompoundPolicy\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}],outputs:[{type:\"uint64\"}]},{name:\"PolicyAdminUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"admin\",indexed:!0}]},{name:\"PolicyCreated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint8\",name:\"policyType\"}]},{name:\"WhitelistUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"bool\",name:\"allowed\"}]},{name:\"BlacklistUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"bool\",name:\"restricted\"}]},{name:\"CompoundPolicyCreated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"creator\",indexed:!0},{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"PolicyNotFound\",type:\"error\",inputs:[]},{name:\"PolicyNotSimple\",type:\"error\",inputs:[]},{name:\"InvalidPolicyType\",type:\"error\",inputs:[]},{name:\"IncompatiblePolicyType\",type:\"error\",inputs:[]},{name:\"VirtualAddressNotAllowed\",type:\"error\",inputs:[]}],RVe=[{name:\"getValidators\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"tuple[]\",name:\"validators\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"uint64\",name:\"index\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}]}]},{name:\"addValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newValidatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}],outputs:[]},{name:\"updateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newValidatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}],outputs:[]},{name:\"changeValidatorStatus\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validator\"},{type:\"bool\",name:\"active\"}],outputs:[]},{name:\"changeValidatorStatusByIndex\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"index\"},{type:\"bool\",name:\"active\"}],outputs:[]},{name:\"owner\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"changeOwner\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newOwner\"}],outputs:[]},{name:\"getNextFullDkgCeremony\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"setNextFullDkgCeremony\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"epoch\"}],outputs:[]},{name:\"validatorsArray\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint256\",name:\"index\"}],outputs:[{type:\"address\"}]},{name:\"validators\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"uint64\",name:\"index\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}]}]},{name:\"validatorCount\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"ValidatorAlreadyExists\",type:\"error\",inputs:[]},{name:\"ValidatorNotFound\",type:\"error\",inputs:[]},{name:\"InvalidPublicKey\",type:\"error\",inputs:[]},{name:\"NotHostPort\",type:\"error\",inputs:[{type:\"string\",name:\"field\"},{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"NotIpPort\",type:\"error\",inputs:[{type:\"string\",name:\"field\"},{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]}],nTn=[...wVe,...EVe,...SVe,...AVe,...kVe,...CVe,...TVe,...vf,..._Ve,...MVe,...IVe,...RVe];u();u();Uo();function O8e(t){let e=t.account;return e?.keyType&&e.keyType!==\"secp256k1\"||e?.source===\"accessKey\"||typeof t.calls<\"u\"||typeof t.feePayer<\"u\"||typeof t.feeToken<\"u\"||typeof t.keyAuthorization<\"u\"||typeof t.nonceKey<\"u\"||typeof t.signature<\"u\"||typeof t.validBefore<\"u\"||typeof t.validAfter<\"u\"?\"tempo\":t.type?t.type:Tx(t)}function KI(t){try{return O8e(t)===\"tempo\"}catch{return!1}}async function L8e(t,e){if(!KI(t)){if(e&&\"type\"in e&&e.type!==\"secp256k1\")throw new Error(\"Unsupported signature type. Expected `secp256k1` but got `\"+e.type+\"`.\");if(e&&\"type\"in e){let{r,s:o,yParity:a}=e?.signature;return By(t,{r:En(r,{size:32}),s:En(o,{size:32}),yParity:a})}return By(t,e)}if(O8e(t)===\"tempo\")return BVe(t,e);throw new Error(\"Unsupported transaction type\")}async function BVe(t,e){let n=(()=>{if(t.signature)return t.signature;if(e&&\"type\"in e)return e;if(e)return Bc.from({r:BigInt(e.r),s:BigInt(e.s),yParity:Number(e.yParity)})})(),{chainId:r,feePayer:o,nonce:a,...c}=t,l=(()=>{let p=t.feePayerSignature;if(p)return{r:BigInt(p.r),s:BigInt(p.s),yParity:Number(p.yParity)};if(p===null||o)return null})(),f={...c,calls:c.calls?.length?c.calls:[{to:c.to||(!c.data||c.data===\"0x\"?\"0x0000000000000000000000000000000000000000\":void 0),value:c.value,data:c.data}],chainId:Number(r),feePayerSignature:l,type:\"tempo\",...a?{nonce:BigInt(a)}:{}};if(o===!0&&delete f.feeToken,n&&typeof t.feePayer==\"object\"){let p=yf.from(f,{signature:n}),m=(()=>{if(t.from)return t.from;if(n.type===\"secp256k1\")return Gy({payload:yf.getSignPayload(p),signature:n.signature});throw new Error(\"Unable to extract sender from transaction or signature.\")})(),g=yf.getFeePayerSignPayload(p,{sender:m}),y=await t.feePayer.sign({hash:g});return yf.serialize(p,{feePayerSignature:d0(y)})}return o===!0?n?yf.serialize(f,{format:\"feePayer\",sender:t.from,signature:n}):yf.serialize(f,{feePayerSignature:null}):yf.serialize({...f,...o?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:n})}async function N8e(t,e){let{chainId:n,key:r,expiry:o,limits:a,scopes:c}=e,{accessKeyAddress:l,keyType:f}=FVe(r),p=await t.sign({hash:v0.getSignPayload({address:l,chainId:n,expiry:o,limits:a,scopes:c,type:f})});return v0.from({address:l,chainId:n,expiry:o,limits:a,scopes:c,signature:Bc.from(p),type:f})}function FVe(t){return\"accessKeyAddress\"in t?{accessKeyAddress:t.accessKeyAddress,keyType:t.keyType}:\"publicKey\"in t&&t.publicKey?{accessKeyAddress:sc(RM(t.publicKey)),keyType:t.type}:{accessKeyAddress:t.address,keyType:t.type}}u();var wb=\"0xaAAAaaAA00000000000000000000000000000000\";u();var U8e=[\"genesis\",\"t0\",\"t1\",\"t1a\",\"t1b\",\"t1c\",\"t2\",\"t3\"];function z8e(t,e){return U8e.indexOf(t)<U8e.indexOf(e)}u();u();mb();function Eb(t){return{...t,data:iu(t),to:t.address}}var NVe={0:\"secp256k1\",1:\"p256\",2:\"webAuthn\"},UVe={true:\"limited\",false:\"unlimited\"};async function w$(t,e){return w$.inner(jI,t,e)}(function(t){async function e(r,o,a){let{accessKey:c,chainId:l=o.chain?.id,expiry:f,limits:p,scopes:m,...g}=a,y=g.account??o.account;if(!y)throw new Error(\"account is required.\");if(!l)throw new Error(\"chainId is required.\");let A=bi(y),T=await N8e(A,{chainId:BigInt(l),key:c,expiry:f,limits:p,scopes:m});return await r(o,{...g,keyAuthorization:T})}t.inner=e;function n(r){let[o]=$I({abi:vf,logs:r,eventName:\"KeyAuthorized\",strict:!0});if(!o)throw new Error(\"`KeyAuthorized` event not found.\");return o}t.extractEvent=n})(w$||(w$={}));async function E$(t,e){return E$.inner(bb,t,e)}(function(t){async function e(o,a,c){let{accessKey:l,...f}=c,p=t.call({accessKey:l});return await o(a,{...f,...p})}t.inner=e;function n(o){let{accessKey:a}=o;return Eb({address:wb,abi:vf,functionName:\"revokeKey\",args:[gS(a)]})}t.call=n;function r(o){let[a]=$I({abi:vf,logs:o,eventName:\"KeyRevoked\",strict:!0});if(!a)throw new Error(\"`KeyRevoked` event not found.\");return a}t.extractEvent=r})(E$||(E$={}));async function S$(t,e){return S$.inner(bb,t,e)}(function(t){async function e(o,a,c){let{accessKey:l,token:f,limit:p,...m}=c,g=t.call({accessKey:l,token:f,limit:p});return await o(a,{...m,...g})}t.inner=e;function n(o){let{accessKey:a,token:c,limit:l}=o;return Eb({address:wb,abi:vf,functionName:\"updateSpendingLimit\",args:[gS(a),c,l]})}t.call=n;function r(o){let[a]=$I({abi:vf,logs:o,eventName:\"SpendingLimitUpdated\",strict:!0});if(!a)throw new Error(\"`SpendingLimitUpdated` event not found.\");return a}t.extractEvent=r})(S$||(S$={}));async function mS(t,e){let{account:n=t.account,accessKey:r,...o}=e;if(!n)throw new Error(\"account is required.\");let a=bi(n),c=await Xy(t,{...o,...mS.call({account:a.address,accessKey:r})});return{address:c.keyId,keyType:NVe[c.signatureType]??\"secp256k1\",expiry:c.expiry,spendPolicy:UVe[`${c.enforceLimits}`],isRevoked:c.isRevoked}}(function(t){function e(n){let{account:r,accessKey:o}=n;return Eb({address:wb,abi:vf,functionName:\"getKey\",args:[r,gS(o)]})}t.call=e})(mS||(mS={}));async function GI(t,e){let{account:n=t.account,accessKey:r,token:o,...a}=e;if(!n)throw new Error(\"account is required.\");let c=bi(n),l=t.chain?.hardfork;if(l&&z8e(l,\"t3\"))return{remaining:await Xy(t,{...a,...GI.call({account:c.address,accessKey:r,token:o})}),periodEnd:void 0};let[f,p]=await Xy(t,{...a,...GI.callWithPeriod({account:c.address,accessKey:r,token:o})});return{remaining:f,periodEnd:p}}(function(t){function e(r){let{account:o,accessKey:a,token:c}=r;return Eb({address:wb,abi:vf,functionName:\"getRemainingLimit\",args:[o,gS(a),c]})}t.call=e;function n(r){let{account:o,accessKey:a,token:c}=r;return Eb({address:wb,abi:vf,functionName:\"getRemainingLimitWithPeriod\",args:[o,gS(a),c]})}t.callWithPeriod=n})(GI||(GI={}));function gS(t){return typeof t==\"string\"?t:t.accessKeyAddress}u();Uo();tu();ef();function V8e(t){if(!KI(t))return Ou(t);let e=t.blockTimestamp==null?void 0:BigInt(t.blockTimestamp),{feePayerSignature:n,gasPrice:r,nonce:o,...a}=hb.fromRpc(t);return{...a,accessList:a.accessList,...typeof e<\"u\"&&{blockTimestamp:e},feePayerSignature:n?{r:En(n.r,{size:32}),s:En(n.s,{size:32}),v:BigInt(n.v??27),yParity:n.yParity}:void 0,nonce:Number(o),typeHex:hb.toRpcType[a.type],type:a.type}}function H8e(t){return dV(t)}function j8e(t,e){let n=t,r=n.account?bi(n.account):void 0;if(!KI(n))return ol(t,e);e&&(n.calls=n.calls??[{to:t.to||(!t.data||t.data===\"0x\"?\"0x0000000000000000000000000000000000000000\":void 0),value:t.value,data:t.data}]),n.feePayer===!0&&delete n.feeToken;let o=mI.toRpc({...n,type:\"tempo\"});e===\"estimateGas\"&&(o.maxFeePerGas=void 0,o.maxPriorityFeePerGas=void 0),o.to=void 0,o.data=void 0,o.value=void 0;let[a,c]=(()=>{let f=r&&\"keyType\"in r?r.keyType:r?.source;return f?f===\"webAuthn\"?[\"webAuthn\",`0x${\"ff\".repeat(1400)}`]:[\"p256\",\"secp256k1\"].includes(f)?[f,void 0]:[n.keyType,n.keyData]:[n.keyType,n.keyData]})(),l=r&&\"accessKeyAddress\"in r?r.accessKeyAddress:n.keyId;return r&&(o.from=r.address),{...o,...n.capabilities?{capabilities:n.capabilities}:{},...c?{keyData:c}:{},...l?{keyId:l}:{},...a?{keyType:a}:{},...typeof n.feePayer<\"u\"?{feePayer:typeof n.feePayer==\"object\"?bi(n.feePayer):n.feePayer}:{},...\"feePayerSignature\"in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}u();var Sb=new Map;async function $8e(t){Sb.set(t,(Sb.get(t)??0)+1),await Promise.resolve();let e=(Sb.get(t)??0)>1;return queueMicrotask(()=>{let n=Sb.get(t)??0;n<=1?Sb.delete(t):Sb.set(t,n-1)}),e}var HVe=25,b0={blockTime:1e3,extendSchema:Ope(),formatters:{transaction:Wm({exclude:[\"aaAuthorizationList\"],format:V8e}),transactionReceipt:ax({format:H8e}),transactionRequest:sx({format:j8e})},prepareTransactionRequest:[async(t,{phase:e})=>{let n=t;return e===\"afterFillParameters\"?(n.feePayer&&(n.keyAuthorization?.signature.type===\"webAuthn\"?n.gas=(n.gas??0n)+20000n:n.account?.source===\"accessKey\"&&(n.gas=(n.gas??0n)+10000n)),n):(await(async()=>{if(n.nonceKey===\"expiring\"||n.feePayer&&typeof n.nonceKey>\"u\")return!0;let o=n.account?.address;return o&&typeof n.nonceKey>\"u\"?await $8e(o):!1})()?(n.nonceKey=tf,n.nonce=0,typeof n.validBefore>\"u\"&&(n.validBefore=Math.floor(Date.now()/1e3)+HVe)):typeof n.nonceKey<\"u\"&&(n.nonce=typeof n.nonce==\"number\"?n.nonce:0),!n.feeToken&&n.chain?.feeToken&&(n.feeToken=n.chain.feeToken),n)},{runAt:[\"beforeFillTransaction\",\"afterFillParameters\"]}],serializers:{transaction:((t,e)=>L8e(t,e))},async verifyHash(t,e){let{address:n,hash:r,signature:o,mode:a}=e,c=(()=>{if(typeof o==\"string\")try{return Bc.deserialize(o)}catch{return}})();if(c){if(c?.type===\"keychain\"&&a===\"allowAccessKey\"){let l=sc(UE(c.inner.publicKey)),f=await mS(t,{account:n,accessKey:l,blockNumber:e.blockNumber,blockTag:e.blockTag});if(f.isRevoked||f.expiry<=BigInt(Math.floor(Date.now()/1e3)))return!1;let p=c.version===\"v2\"?Jl(Ao(\"0x04\",r,n)):r;return Bc.verify(c.inner,{address:l,payload:p})}if(c.type===\"p256\"||c.type===\"webAuthn\"){let l=await SI(t,{address:n,blockNumber:e.blockNumber,blockTag:e.blockTag});if(!l||l===\"0xef01007702c00000000000000000000000000000000000\")return Bc.verify(c,{address:n,payload:r})}}return await Wo(t,T8e,\"verifyHash\")({...e,chain:null})}};var A$=x({...b0,id:4217,blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.tempo.xyz\"}},name:\"Tempo Mainnet\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.tempo.xyz\"],webSocket:[\"wss://rpc.tempo.xyz\"]}}});u();var K8e=x({...b0,id:31318,name:\"Tempo Devnet\",hardfork:\"t3\",blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.devnet.tempo.xyz\"}},nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.devnet.tempoxyz.dev\"],webSocket:[\"wss://rpc.devnet.tempoxyz.dev\"]}},testnet:!0});u();var G8e=x({...b0,id:1337,name:\"Tempo\",hardfork:\"t3\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"http://localhost:8545\"]}}});u();var k$=x({...b0,id:42431,blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.testnet.tempo.xyz\"}},name:\"Tempo Testnet (Moderato)\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.moderato.tempo.xyz\"],webSocket:[\"wss://rpc.moderato.tempo.xyz\"]}},testnet:!0});u();var q8e=x({id:1559,name:\"Tenet\",network:\"tenet-mainnet\",nativeCurrency:{name:\"TENET\",symbol:\"TENET\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.tenet.org\"]}},blockExplorers:{default:{name:\"TenetScan Mainnet\",url:\"https://tenetscan.io\",apiUrl:\"https://tenetscan.io/api\"}},testnet:!1});u();var W8e=x({id:752025,name:\"Ternoa\",nativeCurrency:{name:\"Capsule Coin\",symbol:\"CAPS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.zkevm.ternoa.network\"]}},blockExplorers:{default:{name:\"Ternoa Explorer\",url:\"https://explorer-mainnet.zkevm.ternoa.network\"}},testnet:!1});u();var Y8e=x({id:7,name:\"ThaiChain\",nativeCurrency:{name:\"TCH\",symbol:\"TCH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.thaichain.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp.thaichain.org\",apiUrl:\"https://exp.thaichain.org/api\"}},contracts:{multicall3:{address:\"0x0DaD6130e832c21719C5CE3bae93454E16A84826\",blockCreated:4806386}},testnet:!1});u();var Z8e=x({id:8428,name:\"THAT Mainnet\",nativeCurrency:{name:\"THAT\",symbol:\"THAT\",decimals:18},rpcUrls:{default:{http:[\"https://api.thatchain.io/mainnet\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://that.blockscout.com\"}},testnet:!1});u();var X8e=x({id:361,name:\"Theta Mainnet\",nativeCurrency:{name:\"TFUEL\",symbol:\"TFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-api.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"Theta Explorer\",url:\"https://explorer.thetatoken.org\"}},testnet:!1});u();var J8e=x({id:365,name:\"Theta Testnet\",nativeCurrency:{name:\"TFUEL\",symbol:\"TFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-api-testnet.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"Theta Explorer\",url:\"https://testnet-explorer.thetatoken.org\"}},testnet:!0});u();var Q8e=x({id:108,name:\"ThunderCore Mainnet\",nativeCurrency:{name:\"TT\",symbol:\"TT\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.thundercore.com\"]}},blockExplorers:{default:{name:\"ThunderCore Explorer\",url:\"https://explorer-mainnet.thundercore.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1});u();var eEe=x({id:997,name:\"5ireChain Thunder Testnet\",nativeCurrency:{name:\"5ire Token\",symbol:\"5IRE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.5ire.network\"]}},blockExplorers:{default:{name:\"5ireChain Thunder Explorer\",url:\"https://testnet.5irescan.io/\"}},testnet:!0});u();var tEe=x({id:62092,name:\"TikTrix Testnet\",nativeCurrency:{name:\"tTTX\",symbol:\"tTTX\",decimals:18},rpcUrls:{default:{http:[\"https://tiktrix-rpc.xyz\"]}},blockExplorers:{default:{name:\"TikTrix Testnet Explorer\",url:\"https://tiktrix.xyz\"}},testnet:!0});u();var nEe=x({id:6969,name:\"Tomb Mainnet\",nativeCurrency:{name:\"TOMB\",symbol:\"TOMB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.tombchain.com\"]}},blockExplorers:{default:{name:\"Tomb Explorer\",url:\"https://tombscout.com\"}},testnet:!1});u();var rEe=x({...oi,id:61166,name:\"Treasure\",nativeCurrency:{decimals:18,name:\"MAGIC\",symbol:\"MAGIC\"},rpcUrls:{default:{http:[\"https://rpc.treasure.lol\"],webSocket:[\"wss://rpc.treasure.lol/ws\"]}},blockExplorers:{default:{name:\"Treasure Block Explorer\",url:\"https://treasurescan.io\"}},contracts:{multicall3:{address:\"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a\",blockCreated:101}},testnet:!1});u();var oEe=x({...oi,id:978658,name:\"Treasure Topaz Testnet\",nativeCurrency:{decimals:18,name:\"MAGIC\",symbol:\"MAGIC\"},rpcUrls:{default:{http:[\"https://rpc.topaz.treasure.lol\"],webSocket:[\"wss://rpc.topaz.treasure.lol/ws\"]}},blockExplorers:{default:{name:\"Treasure Topaz Block Explorer\",url:\"https://topaz.treasurescan.io\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:108112}},testnet:!0});u();var iEe=x({id:728126428,name:\"Tron\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://api.trongrid.io/jsonrpc\"]}},blockTime:3e3,blockExplorers:{default:{name:\"Tronscan\",url:\"https://tronscan.org\",apiUrl:\"https://apilist.tronscanapi.com/api\"}}});u();var aEe=x({id:3448148188,name:\"Tron Nile\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://nile.trongrid.io/jsonrpc\"]}},blockExplorers:{default:{name:\"Tronscan\",url:\"https://nile.tronscan.org\"}},testnet:!0});u();var sEe=x({id:2494104990,name:\"Tron Shasta\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://api.shasta.trongrid.io/jsonrpc\"]}},blockExplorers:{default:{name:\"Tronscan\",url:\"https://shasta.tronscan.org\"}},testnet:!0});u();var cEe=x({id:8,name:\"Ubiq Mainnet\",nativeCurrency:{name:\"UBQ\",symbol:\"UBQ\",decimals:18},rpcUrls:{default:{http:[\"https://pyrus2.ubiqscan.io\"]}},blockExplorers:{default:{name:\"Ubiq Scan\",url:\"https://ubiqscan.io\"}},testnet:!1});u();var lEe=x({id:19991,name:\"Ultra EVM\",nativeCurrency:{decimals:18,name:\"Ultra Token\",symbol:\"UOS\"},rpcUrls:{default:{http:[\"https://evm.ultra.eosusa.io\"]}},blockExplorers:{default:{name:\"Ultra EVM Explorer\",url:\"https://evmexplorer.ultra.io\"}}});u();var uEe=x({id:18881,name:\"Ultra EVM Testnet\",nativeCurrency:{decimals:18,name:\"Ultra Token\",symbol:\"UOS\"},rpcUrls:{default:{http:[\"https://evm.test.ultra.eosusa.io\"]}},blockExplorers:{default:{name:\"Ultra EVM Testnet Explorer\",url:\"https://evmexplorer.testnet.ultra.io\"}},testnet:!0});u();var dEe=x({id:1231,name:\"Ultron Mainnet\",nativeCurrency:{name:\"ULX\",symbol:\"ULX\",decimals:18},rpcUrls:{default:{http:[\"https://ultron-rpc.net\"]}},blockExplorers:{default:{name:\"Ultron Scan\",url:\"https://ulxscan.com\"}},testnet:!1});u();var fEe=x({id:1230,name:\"Ultron Testnet\",nativeCurrency:{name:\"ULX\",symbol:\"ULX\",decimals:18},rpcUrls:{default:{http:[\"https://ultron-dev.io\"]}},blockExplorers:{default:{name:\"Ultron Scan\",url:\"https://explorer.ultron-dev.io\"}},testnet:!0});u();var qI=1,pEe=x({...zt,id:130,name:\"Unichain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://mainnet.unichain.org/\"]}},blockExplorers:{default:{name:\"Uniscan\",url:\"https://uniscan.xyz\",apiUrl:\"https://api.uniscan.xyz/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[qI]:{address:\"0x2F12d621a16e2d3285929C9996f478508951dFe4\"}},portal:{[qI]:{address:\"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2\"}},l1StandardBridge:{[qI]:{address:\"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA\"}}},sourceId:qI});u();var WI=11155111,hEe=x({...zt,id:1301,name:\"Unichain Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://sepolia.unichain.org\"]}},blockExplorers:{default:{name:\"Uniscan\",url:\"https://sepolia.uniscan.xyz\",apiUrl:\"https://api-sepolia.uniscan.xyz/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},portal:{[WI]:{address:\"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD\"}},l1StandardBridge:{[WI]:{address:\"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2\"}},disputeGameFactory:{[WI]:{address:\"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b\"}}},testnet:!0,sourceId:WI});u();var mEe=x({id:8880,name:\"Unique Mainnet\",nativeCurrency:{decimals:18,name:\"UNQ\",symbol:\"UNQ\"},rpcUrls:{default:{http:[\"https://rpc.unique.network\"]}},blockExplorers:{default:{name:\"Unique Subscan\",url:\"https://unique.subscan.io/\"}}});u();var gEe=x({id:8882,name:\"Opal Testnet\",nativeCurrency:{decimals:18,name:\"OPL\",symbol:\"OPL\"},rpcUrls:{default:{http:[\"https://rpc-opal.unique.network\"]}},blockExplorers:{default:{name:\"Opal Subscan\",url:\"https://opal.subscan.io/\"}},testnet:!0});u();var yEe=x({id:8881,name:\"Quartz Mainnet\",nativeCurrency:{decimals:18,name:\"QTZ\",symbol:\"QTZ\"},rpcUrls:{default:{http:[\"https://rpc-quartz.unique.network\"]}},blockExplorers:{default:{name:\"Quartz Subscan\",url:\"https://quartz.subscan.io/\"}}});u();var vEe=x({id:18233,name:\"Unreal\",nativeCurrency:{name:\"reETH\",decimals:18,symbol:\"reETH\"},rpcUrls:{default:{http:[\"https://rpc.unreal-orbit.gelato.digital\"]}},blockExplorers:{default:{name:\"Unreal Explorer\",url:\"https://unreal.blockscout.com\",apiUrl:\"https://unreal.blockscout.com/api/v2\"}},testnet:!0,contracts:{multicall3:{address:\"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677\",blockCreated:1745}}});u();var xEe=x({id:1480,name:\"Vana\",blockTime:6e3,nativeCurrency:{decimals:18,name:\"Vana\",symbol:\"VANA\"},rpcUrls:{default:{http:[\"https://rpc.vana.org/\"]}},blockExplorers:{default:{name:\"Vana Block Explorer\",url:\"https://vanascan.io\",apiUrl:\"https://vanascan.io/api\"}},contracts:{multicall3:{address:\"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E\",blockCreated:716763}}});u();var bEe=x({id:14800,name:\"Vana Moksha Testnet\",blockTime:6e3,nativeCurrency:{decimals:18,name:\"Vana\",symbol:\"VANA\"},rpcUrls:{default:{http:[\"https://rpc.moksha.vana.org\"]}},blockExplorers:{default:{name:\"Vana Moksha Testnet\",url:\"https://moksha.vanascan.io\",apiUrl:\"https://moksha.vanascan.io/api\"}},contracts:{multicall3:{address:\"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E\",blockCreated:732283}},testnet:!0});u();var wEe=x({id:2040,name:\"Vanar Mainnet\",nativeCurrency:{name:\"VANRY\",symbol:\"VANRY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.vanarchain.com\"]}},blockExplorers:{default:{name:\"Vanar Mainnet Explorer\",url:\"https://explorer.vanarchain.com/\"}},testnet:!1});u();var EEe=x({id:100009,name:\"Vechain\",nativeCurrency:{name:\"VeChain\",symbol:\"VET\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.vechain.org\"]}},blockExplorers:{default:{name:\"Vechain Explorer\",url:\"https://explore.vechain.org\"},vechainStats:{name:\"Vechain Stats\",url:\"https://vechainstats.com\"}}});u();var SEe=x({id:106,name:\"Velas EVM Mainnet\",nativeCurrency:{name:\"VLX\",symbol:\"VLX\",decimals:18},rpcUrls:{default:{http:[\"https://evmexplorer.velas.com/rpc\"]}},blockExplorers:{default:{name:\"Velas Explorer\",url:\"https://evmexplorer.velas.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:55883577}},testnet:!1});u();var AEe=x({id:88,name:\"Viction\",nativeCurrency:{name:\"Viction\",symbol:\"VIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.viction.xyz\"]}},blockExplorers:{default:{name:\"VIC Scan\",url:\"https://vicscan.xyz\"}},testnet:!1});u();var kEe=x({id:89,name:\"Viction Testnet\",nativeCurrency:{name:\"Viction\",symbol:\"VIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.viction.xyz\"]}},blockExplorers:{default:{name:\"VIC Scan\",url:\"https://testnet.vicscan.xyz\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:12170179}},testnet:!0});u();var CEe=x({id:888888,name:\"Vision\",nativeCurrency:{name:\"VISION\",symbol:\"VS\",decimals:18},rpcUrls:{default:{http:[\"https://infragrid.v.network/ethereum/compatible\"]}},blockExplorers:{default:{name:\"Vision Scan\",url:\"https://visionscan.org\"}},testnet:!1});u();var TEe=x({id:666666,name:\"Vision Testnet\",nativeCurrency:{name:\"VISION\",symbol:\"VS\",decimals:18},rpcUrls:{default:{http:[\"https://vpioneer.infragrid.v.network/ethereum/compatible\"]}},blockExplorers:{default:{name:\"Vision Scan\",url:\"https://visionscan.org/?chain=vpioneer\"}},testnet:!0});u();var _Ee=x({id:888,name:\"Wanchain\",nativeCurrency:{name:\"WANCHAIN\",symbol:\"WAN\",decimals:18},rpcUrls:{default:{http:[\"https://gwan-ssl.wandevs.org:56891\",\"https://gwan2-ssl.wandevs.org\"]}},blockExplorers:{default:{name:\"WanScan\",url:\"https://wanscan.org\"}},contracts:{multicall3:{address:\"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB\",blockCreated:25312390}}});u();var MEe=x({id:999,name:\"Wanchain Testnet\",nativeCurrency:{name:\"WANCHAIN\",symbol:\"WANt\",decimals:18},rpcUrls:{default:{http:[\"https://gwan-ssl.wandevs.org:46891\"]}},blockExplorers:{default:{name:\"WanScanTest\",url:\"https://wanscan.org\"}},contracts:{multicall3:{address:\"0x11c89bF4496c39FB80535Ffb4c92715839CC5324\",blockCreated:24743448}},testnet:!0});u();var IEe=x({id:9496,name:\"WeaveVM Alphanet\",nativeCurrency:{name:\"Testnet WeaveVM\",symbol:\"tWVM\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.wvm.dev\"]}},blockExplorers:{default:{name:\"WeaveVM Alphanet Explorer\",url:\"https://explorer.wvm.dev\"}},testnet:!0});u();var REe=x({id:1111,name:\"WEMIX\",network:\"wemix-mainnet\",nativeCurrency:{name:\"WEMIX\",symbol:\"WEMIX\",decimals:18},rpcUrls:{default:{http:[\"https://api.wemix.com\"]}},blockExplorers:{default:{name:\"wemixExplorer\",url:\"https://explorer.wemix.com\"}}});u();var PEe=x({id:1112,name:\"WEMIX Testnet\",network:\"wemix-testnet\",nativeCurrency:{name:\"WEMIX\",symbol:\"tWEMIX\",decimals:18},rpcUrls:{default:{http:[\"https://api.test.wemix.com\"]}},blockExplorers:{default:{name:\"wemixExplorer\",url:\"https://testnet.wemixscan.com\",apiUrl:\"https://testnet.wemixscan.com/api\"}},testnet:!0});u();var BEe=x({id:420420421,name:\"Westend Asset Hub\",nativeCurrency:{decimals:18,name:\"Westies\",symbol:\"WND\"},rpcUrls:{default:{http:[\"https://westend-asset-hub-eth-rpc.polkadot.io\"]}},blockExplorers:{default:{name:\"subscan\",url:\"https://westend-asset-hub-eth-explorer.parity.io\"}},testnet:!0});u();var DEe=x({testnet:!1,name:\"Whitechain\",blockExplorers:{default:{name:\"Whitechain Explorer\",url:\"https://explorer.whitechain.io\"}},id:1875,rpcUrls:{default:{http:[\"https://rpc.whitechain.io\"]}},nativeCurrency:{decimals:18,name:\"WhiteBIT Coin\",symbol:\"WBT\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:25212237}}});u();var FEe=x({testnet:!0,name:\"Whitechain Testnet\",blockExplorers:{default:{name:\"Whitechain Explorer\",url:\"https://testnet.whitechain.io\"}},id:2625,rpcUrls:{default:{http:[\"https://rpc-testnet.whitechain.io\"]}},nativeCurrency:{decimals:18,name:\"WhiteBIT Coin\",symbol:\"WBT\"}});u();var OEe=x({id:42070,name:\"WMC Testnet\",nativeCurrency:{name:\"WMTx\",symbol:\"WMTx\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet-base.worldmobile.net\"]}},blockExplorers:{default:{name:\"WMC Explorer\",url:\"https://explorer2-base-testnet.worldmobile.net\"}},testnet:!0});u();var yS=1,LEe=x({...zt,id:480,name:\"World Chain\",network:\"worldchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://worldchain-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Worldscan\",url:\"https://worldscan.org\",apiUrl:\"https://api.worldscan.org/api\"},blockscout:{name:\"Blockscout\",url:\"https://worldchain-mainnet.explorer.alchemy.com\",apiUrl:\"https://worldchain-mainnet.explorer.alchemy.com/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[yS]:{address:\"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea\"}},l2OutputOracle:{[yS]:{address:\"0x19A6d1E9034596196295CF148509796978343c5D\"}},portal:{[yS]:{address:\"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C\"}},l1StandardBridge:{[yS]:{address:\"0x470458C91978D2d929704489Ad730DC3E3001113\"}}},testnet:!1,sourceId:yS});u();var vS=11155111,NEe=x({...zt,id:4801,name:\"World Chain Sepolia\",network:\"worldchain-sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://worldchain-sepolia.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Worldscan Sepolia\",url:\"https://sepolia.worldscan.org\",apiUrl:\"https://api-sepolia.worldscan.org/api\"},blockscout:{name:\"Blockscout\",url:\"https://worldchain-sepolia.explorer.alchemy.com\",apiUrl:\"https://worldchain-sepolia.explorer.alchemy.com/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[vS]:{address:\"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A\"}},l2OutputOracle:{[vS]:{address:\"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e\"}},portal:{[vS]:{address:\"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4\"}},l1StandardBridge:{[vS]:{address:\"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE\"}}},testnet:!0,sourceId:vS});u();var UEe=x({id:103,name:\"WorldLand Mainnet\",nativeCurrency:{decimals:18,name:\"WLC\",symbol:\"WLC\"},rpcUrls:{default:{http:[\"https://seoul.worldland.foundation\"]}},blockExplorers:{default:{name:\"WorldLand Scan\",url:\"https://scan.worldland.foundation\"}},testnet:!1});u();var zEe=x({id:660279,name:\"Xai Mainnet\",nativeCurrency:{name:\"Xai\",symbol:\"XAI\",decimals:18},rpcUrls:{default:{http:[\"https://xai-chain.net/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.xai-chain.net\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:222549}},testnet:!1});u();var VEe=x({id:37714555429,name:\"Xai Testnet\",nativeCurrency:{name:\"sXai\",symbol:\"sXAI\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-v2.xai-chain.net/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer-v2.xai-chain.net\"}},testnet:!0});u();var HEe=x({id:50,name:\"XDC Network\",nativeCurrency:{decimals:18,name:\"XDC\",symbol:\"XDC\"},rpcUrls:{default:{http:[\"https://rpc.xdcrpc.com\"]}},blockExplorers:{default:{name:\"XDCScan\",url:\"https://xdcscan.com\"}},contracts:{multicall3:{address:\"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF\",blockCreated:75884020}}});u();var jEe=x({id:51,name:\"Apothem Network\",nativeCurrency:{decimals:18,name:\"TXDC\",symbol:\"TXDC\"},rpcUrls:{default:{http:[\"https://erpc.apothem.network\"]}},blockExplorers:{default:{name:\"XDCScan\",url:\"https://testnet.xdcscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:59765389}},testnet:!0});u();var $Ee=x({id:1643,name:\"XGR Mainnet\",nativeCurrency:{name:\"XGR\",symbol:\"XGR\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xgr.network\"]}},blockExplorers:{default:{name:\"XGR Explorer\",url:\"https://explorer.xgr.network\"}}});u();var KEe=x({id:196,name:\"X Layer Mainnet\",nativeCurrency:{decimals:18,name:\"OKB\",symbol:\"OKB\"},rpcUrls:{default:{http:[\"https://xlayerrpc.okx.com\"]}},blockExplorers:{default:{name:\"OKLink\",url:\"https://www.oklink.com/xlayer\",apiUrl:\"https://www.oklink.com/api/v5/explorer/xlayer/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:47416}}});u();var C$=x({id:1952,name:\"X1 Testnet\",nativeCurrency:{decimals:18,name:\"OKB\",symbol:\"OKB\"},rpcUrls:{default:{http:[\"https://xlayertestrpc.okx.com\"]}},blockExplorers:{default:{name:\"OKLink\",url:\"https://www.oklink.com/xlayer-test\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:624344}},testnet:!0});u();var GEe=x({id:3721,name:\"Xone Chain Mainnet\",nativeCurrency:{decimals:18,name:\"XOC\",symbol:\"XOC\"},rpcUrls:{default:{http:[\"https://rpc.xone.org\"]}},blockExplorers:{default:{name:\"Xone Mainnet Explorer\",url:\"https://xonescan.com\",apiUrl:\"http://api.xonescan.com/api\"}},testnet:!1});u();var qEe=x({id:33772211,name:\"Xone Chain Testnet\",nativeCurrency:{decimals:18,name:\"XOC\",symbol:\"XOC\"},rpcUrls:{default:{http:[\"https://rpc-testnet.xone.org\",\"https://rpc-testnet.xone.plus\",\"https://rpc-testnet.knight.center\"]}},blockExplorers:{default:{name:\"Xone Testnet Explorer\",url:\"https://testnet.xonescan.com\",apiUrl:\"http://api.testnet.xonescan.com/api\"}},testnet:!0});u();var WEe=x({id:20250217,name:\"Xphere Mainnet\",nativeCurrency:{decimals:18,name:\"XP\",symbol:\"XP\"},rpcUrls:{default:{http:[\"https://en-bkk.x-phere.com\"]}},blockExplorers:{default:{name:\"Xphere Tamsa Explorer\",url:\"https://xp.tamsa.io\"}},testnet:!1});u();var YEe=x({id:1998991,name:\"Xphere Testnet\",nativeCurrency:{decimals:18,name:\"XPT\",symbol:\"XPT\"},rpcUrls:{default:{http:[\"http://testnet.x-phere.com\"]}},blockExplorers:{default:{name:\"Xphere Tamsa Explorer\",url:\"https://xpt.tamsa.io\"}},testnet:!0});u();var ZEe=x({id:37,name:\"CONX Chain\",nativeCurrency:{decimals:18,name:\"XPLA\",symbol:\"XPLA\"},rpcUrls:{default:{http:[\"https://dimension-evm-rpc.xpla.dev\"]}},blockExplorers:{default:{name:\"CONX Explorer\",url:\"https://explorer.conx.xyz\"}},testnet:!1});u();var XEe=x({id:273,name:\"XR One\",nativeCurrency:{decimals:18,name:\"XR1\",symbol:\"XR1\"},rpcUrls:{default:{http:[\"https://xr1.calderachain.xyz/http\"],webSocket:[\"wss://xr1.calderachain.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://xr1.calderaexplorer.xyz\"}},testnet:!1});u();var JEe=x({id:144e4,name:\"XRPL EVM\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xrplevm.org\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.xrplevm.org\",apiUrl:\"https://explorer.xrplevm.org/api/v2\"}},testnet:!1});u();var QEe=x({id:1440002,name:\"XRPL EVM Devnet\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xrplevm.org/\"]},public:{http:[\"https://rpc.xrplevm.org/\"]}},blockExplorers:{default:{name:\"XRPLEVM Devnet Explorer\",url:\"https://explorer.xrplevm.org/\"}},contracts:{multicall3:{address:\"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31\",blockCreated:15237286}},testnet:!0});u();var eSe=x({id:1449e3,name:\"XRPL EVM Testnet\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.xrplevm.org\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.testnet.xrplevm.org\",apiUrl:\"https://explorer.testnet.xrplevm.org/api/v2\"}},contracts:{multicall3:{address:\"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31\",blockCreated:492302}},testnet:!0});u();var tSe=x({id:2730,name:\"XR Sepolia\",nativeCurrency:{decimals:18,name:\"tXR\",symbol:\"tXR\"},rpcUrls:{default:{http:[\"https://xr-sepolia-testnet.rpc.caldera.xyz/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://xr-sepolia-testnet.explorer.caldera.xyz\"}},testnet:!0});u();var nSe=x({id:50005,name:\"Yooldo Verse\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.yooldo-verse.xyz\"]}},blockExplorers:{default:{name:\"Yooldo Verse Explorer\",url:\"https://explorer.yooldo-verse.xyz\"}}});u();var rSe=x({id:50006,name:\"Yooldo Verse Testnet\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.yooldo-verse.xyz\"]}},blockExplorers:{default:{name:\"Yooldo Verse Testnet Explorer\",url:\"https://explorer.testnet.yooldo-verse.xyz\"}},testnet:!0});u();var oSe=x({id:8408,name:\"ZenChain Testnet\",nativeCurrency:{decimals:18,name:\"ZTC\",symbol:\"ZTC\"},rpcUrls:{default:{http:[\"https://zenchain-testnet.api.onfinality.io/public\"],webSocket:[\"wss://zenchain-testnet.api.onfinality.io/public-ws\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:230019}},blockExplorers:{default:{name:\"Zentrace\",url:\"https://zentrace.io\"}},testnet:!0});u();var iSe=x({id:383414847825,name:\"Zeniq Mainnet\",nativeCurrency:{name:\"ZENIQ\",symbol:\"ZENIQ\",decimals:18},rpcUrls:{default:{http:[\"https://api.zeniq.network\"]}},blockExplorers:{default:{name:\"Zeniq Explorer\",url:\"https://zeniqscan.com\"}},testnet:!1});u();var aSe=x({id:543210,name:\"Zero Network\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.zerion.io/v1/zero\"]}},blockExplorers:{default:{name:\"Zero Network Explorer\",url:\"https://explorer.zero.network\"}},testnet:!1});u();var sSe=x({id:7e3,name:\"ZetaChain\",nativeCurrency:{decimals:18,name:\"Zeta\",symbol:\"ZETA\"},rpcUrls:{default:{http:[\"https://zetachain-evm.blockpi.network/v1/rpc/public\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1632781}},blockExplorers:{default:{name:\"ZetaScan\",url:\"https://zetascan.com\"}},testnet:!1});u();var cSe=x({id:7001,name:\"ZetaChain Athens Testnet\",nativeCurrency:{decimals:18,name:\"Zeta\",symbol:\"aZETA\"},rpcUrls:{default:{http:[\"https://zetachain-athens-evm.blockpi.network/v1/rpc/public\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2715217}},blockExplorers:{default:{name:\"ZetaScan\",url:\"https://testnet.zetascan.com\"}},testnet:!0});u();var lSe=x({id:1337803,name:\"Zhejiang\",nativeCurrency:{name:\"Zhejiang Ether\",symbol:\"ZhejETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.zhejiang.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Beaconchain\",url:\"https://zhejiang.beaconcha.in\"}},testnet:!0});u();var uSe=x({id:32769,name:\"Zilliqa\",network:\"zilliqa\",nativeCurrency:{name:\"Zilliqa\",symbol:\"ZIL\",decimals:18},rpcUrls:{default:{http:[\"https://api.zilliqa.com\"]}},blockExplorers:{default:{name:\"Ethernal\",url:\"https://evmx.zilliqa.com\"}},testnet:!1});u();var dSe=x({id:33101,name:\"Zilliqa Testnet\",network:\"zilliqa-testnet\",nativeCurrency:{name:\"Zilliqa\",symbol:\"ZIL\",decimals:18},rpcUrls:{default:{http:[\"https://dev-api.zilliqa.com\"]}},blockExplorers:{default:{name:\"Ethernal\",url:\"https://evmx.testnet.zilliqa.com\"}},testnet:!0});u();var T$=1,fSe=x({...zt,id:48900,name:\"Zircuit Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.zircuit.com\"]}},blockExplorers:{default:{name:\"Zircuit Explorer\",url:\"https://explorer.zircuit.com\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},l2OutputOracle:{[T$]:{address:\"0x92Ef6Af472b39F1b363da45E35530c24619245A4\"}},portal:{[T$]:{address:\"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1\"}},l1StandardBridge:{[T$]:{address:\"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8\"}}},testnet:!1});u();var _$=11155111,pSe=x({...zt,id:48898,name:\"Zircuit Garfield Testnet\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://garfield-testnet.zircuit.com/\"]}},blockExplorers:{default:{name:\"Zircuit Garfield Testnet Explorer\",url:\"https://explorer.garfield-testnet.zircuit.com\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},l2OutputOracle:{[_$]:{address:\"0xd69D3AC5CA686cCF94b258291772bc520FEAf211\"}},portal:{[_$]:{address:\"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21\"}},l1StandardBridge:{[_$]:{address:\"0x87a7E2bCA9E35BA49282E832a28A6023904460D8\"}}},testnet:!0});u();var hSe=x({id:42766,name:\"ZKFair Mainnet\",network:\"zkfair-mainnet\",nativeCurrency:{decimals:18,name:\"USD Coin\",symbol:\"USDC\"},rpcUrls:{default:{http:[\"https://rpc.zkfair.io\"]}},blockExplorers:{default:{name:\"zkFair Explorer\",url:\"https://scan.zkfair.io\",apiUrl:\"https://scan.zkfair.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6090959}},testnet:!1});u();var mSe=x({id:43851,name:\"ZKFair Testnet\",network:\"zkfair-testnet\",nativeCurrency:{decimals:18,name:\"USD Coin\",symbol:\"USDC\"},rpcUrls:{default:{http:[\"https://testnet-rpc.zkfair.io\"]}},blockExplorers:{default:{name:\"zkFair Explorer\",url:\"https://testnet-scan.zkfair.io\"}},testnet:!0});u();var gSe=x({id:810180,name:\"zkLink Nova\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zklink.io\"]}},blockExplorers:{default:{name:\"zkLink Nova Block Explorer\",url:\"https://explorer.zklink.io\"}}});u();var ySe=x({id:810181,name:\"zkLink Nova Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zklink.io\"]}},blockExplorers:{default:{name:\"zkLink Nova Block Explorer\",url:\"https://sepolia.explorer.zklink.io\"}},testnet:!0});u();var M$=x({...oi,blockTime:200,id:324,name:\"ZKsync Era\",network:\"zksync-era\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.era.zksync.io\"],webSocket:[\"wss://mainnet.era.zksync.io/ws\"]}},blockExplorers:{default:{name:\"ZKsync Explorer\",url:\"https://explorer.zksync.io/\",apiUrl:\"https://block-explorer-api.mainnet.zksync.io/api\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:3908235},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:45659388}}});u();var I$=x({...oi,id:260,name:\"ZKsync InMemory Node\",network:\"zksync-in-memory-node\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:8011\"]}},testnet:!0});u();var vSe=x({...oi,id:272,name:\"ZKsync CLI Local Custom Hyperchain\",nativeCurrency:{name:\"BAT\",symbol:\"BAT\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15200\"],webSocket:[\"ws://localhost:15201\"]}},blockExplorers:{default:{name:\"ZKsync explorer\",url:\"http://localhost:15005/\",apiUrl:\"http://localhost:15005/api\"}},testnet:!0});u();var xSe=x({...oi,id:270,name:\"ZKsync CLI Local Hyperchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15100\"],webSocket:[\"ws://localhost:15101\"]}},blockExplorers:{default:{name:\"ZKsync explorer\",url:\"http://localhost:15005/\",apiUrl:\"http://localhost:15005/api\"}},testnet:!0});u();var bSe=x({id:9,name:\"ZKsync CLI Local Hyperchain L1\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15045\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"http://localhost:15001/\",apiUrl:\"http://localhost:15001/api/v2\"}},testnet:!0});u();var R$=x({...oi,id:270,name:\"ZKsync CLI Local Node\",network:\"zksync-cli-local-node\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:3050\"]}},testnet:!0});u();var P$=x({...oi,blockTime:200,id:300,name:\"ZKsync Sepolia Testnet\",network:\"zksync-sepolia-testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.era.zksync.dev\"],webSocket:[\"wss://sepolia.era.zksync.dev/ws\"]}},blockExplorers:{default:{name:\"ZKsync Explorer\",url:\"https://sepolia.explorer.zksync.io/\",blockExplorerApi:\"https://block-explorer-api.sepolia.zksync.dev/api\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\"},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:3855712}},testnet:!0});u();var wSe=x({id:375,name:\"zkXPLA Mainnet\",network:\"zkxpla\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zkxpla.io\"]}},blockExplorers:{default:{name:\"zkXPLA Mainnet Explorer\",url:\"https://explorer.zkxpla.io\",apiUrl:\"https://explorer.zkxpla.io/api\"}},testnet:!1});u();var ESe=x({id:475,name:\"zkXPLA Testnet\",network:\"zkxpla-testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet-rpc.zkxpla.io\"]}},blockExplorers:{default:{name:\"zkXPLA Testnet Explorer\",url:\"https://testnet-explorer.zkxpla.io\",apiUrl:\"https://testnet-explorer.zkxpla.io/api\"}},testnet:!0});u();var xS=1,SSe=x({...zt,id:7777777,name:\"Zora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.zora.energy\",apiUrl:\"https://explorer.zora.energy/api\"}},contracts:{...zt.contracts,disputeGameFactory:{[xS]:{address:\"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e\"}},l2OutputOracle:{[xS]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:5882},portal:{[xS]:{address:\"0x1a0ad011913A150f69f6A19DF447A0CfD9551054\"}},l1StandardBridge:{[xS]:{address:\"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631\"}}},sourceId:xS});u();var YI=11155111,ASe=x({...zt,id:999999999,name:\"Zora Sepolia\",network:\"zora-sepolia\",nativeCurrency:{decimals:18,name:\"Zora Sepolia\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Zora Sepolia Explorer\",url:\"https://sepolia.explorer.zora.energy/\",apiUrl:\"https://sepolia.explorer.zora.energy/api\"}},contracts:{...zt.contracts,l2OutputOracle:{[YI]:{address:\"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:83160},portal:{[YI]:{address:\"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f\"}},l1StandardBridge:{[YI]:{address:\"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB\"}}},sourceId:YI,testnet:!0});u();var kSe=5,CSe=x({...zt,id:999,name:\"Zora Goerli Testnet\",nativeCurrency:{decimals:18,name:\"Zora Goerli\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.explorer.zora.energy\",apiUrl:\"https://testnet.explorer.zora.energy/api\"}},contracts:{...zt.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:189123},portal:{[kSe]:{address:\"0xDb9F51790365e7dc196e7D072728df39Be958ACe\"}}},sourceId:kSe,testnet:!0});var TSe={MAINNET:\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",DEVNET:\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"},w0={MAINNET:\"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=\",TESTNET:\"SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\"};function _Se(t){if(t.startsWith(\"eip155:\")){let e=parseInt(t.split(\":\")[1]),n=Object.values(ZI).find(r=>r.id===e);return n?n.name:`Chain ${e}`}return t.startsWith(\"solana:\")?t.split(\":\")[1]===TSe.DEVNET?\"Solana Devnet\":\"Solana Mainnet\":t.startsWith(\"algorand:\")?t.split(\":\")[1]===w0.TESTNET?\"Algorand Testnet\":\"Algorand Mainnet\":t}function MSe(t){if(t.startsWith(\"eip155:\")){let e=parseInt(t.split(\":\")[1]);return Object.values(ZI).find(r=>r.id===e)?.testnet??!1}return t.startsWith(\"solana:\")?t.split(\":\")[1]===TSe.DEVNET:t.startsWith(\"algorand:\")?t.split(\":\")[1]===w0.TESTNET:!1}u();var jVe={\"eip155:84532\":\"https://faucet.circle.com/\",\"eip155:421614\":\"https://faucet.circle.com/\",\"eip155:31611\":\"https://faucet.test.mezo.org/\",\"eip155:2201\":\"https://faucet.stable.xyz/faucet\",\"eip155:72344\":\"https://testnet.radiustech.xyz/wallet\",\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\":\"https://faucet.circle.com/\",\"algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\":\"https://dispenser.testnet.aws.algodev.network/\"};function ISe(t,e){return e.faucetUrls?.[t]??jVe[t]}u();function $Ve(t){if(!t.startsWith(\"algorand:\"))throw new Error(`Invalid network format. Expected CAIP-2 format (algorand:reference), got: ${t}`);return t.split(\":\")[1]===w0.TESTNET?Du.testNet():Du.mainNet()}function RSe(t,e){return e?Du.fromConfig({algodConfig:{server:e}}).client.algod:$Ve(t).client.algod}var NGn={[w0.MAINNET]:\"31566704\",[w0.TESTNET]:\"10458941\"};var to=br(xy(),1);function PSe({paymentRequired:t,walletManager:e,algorandClient:n,onSuccessfulResponse:r}){if(!e)return(0,to.jsx)(\"div\",{className:\"container\",children:(0,to.jsxs)(\"div\",{className:\"header\",children:[(0,to.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,to.jsx)(\"p\",{children:\"Algorand wallet support requires the AVM-specific paywall entry point.\"})]})});let[o,a]=(0,hs.useState)(\"\"),[c,l]=(0,hs.useState)(!1),[f,p]=(0,hs.useState)(!0),[m,g]=(0,hs.useState)(null),[y,A]=(0,hs.useState)(!1),[T,R]=(0,hs.useState)(\"\");(0,hs.useSyncExternalStore)(U=>e.subscribe(U),()=>e.store.state,()=>e.store.state);let K=e.wallets,O=e.activeWallet,V=e.activeAccount,D=window.x402,G=D.amount,ee=t.accepts[0];if(!ee)throw new Error(\"No payment requirements in paymentRequired.accepts\");let J=ee.network,le=_Se(J),se=ee.extra?.name||\"USDC\",te=MSe(J),S=ee.asset?parseInt(ee.asset,10):te?10458941:31566704,_=m!==null?(Number(m)/1e6).toFixed(2):null,P=(0,hs.useCallback)(async()=>{if(!V?.address)return null;A(!0);try{let I=((await RSe(J).accountInformation(V.address)).assets||[]).find(ne=>Number(ne.assetId)===S),ye=BigInt(I?I.amount:0);return g(ye),ye}catch(U){return console.error(\"Failed to fetch balance:\",U),g(null),null}finally{A(!1)}},[V?.address,J,S]);(0,hs.useEffect)(()=>{V?.address?P():g(null)},[V?.address,P]),(0,hs.useEffect)(()=>{!T&&K.length===1&&R(K[0].id)},[K,T]);let z=(0,hs.useCallback)(async()=>{let U=K.find(W=>W.id===T);if(!U){a(\"Select an Algorand wallet to continue.\");return}try{a(\"Connecting to wallet...\"),await U.connect(),a(\"\")}catch(W){console.error(\"Failed to connect wallet:\",W),a(W instanceof Error?W.message:\"Failed to connect wallet.\")}},[K,T]),Y=(0,hs.useCallback)(async()=>{if(O)try{await O.disconnect()}catch(U){console.error(\"Failed to disconnect:\",U)}g(null),a(\"\")},[O]),L=(0,hs.useCallback)(async()=>{if(!D||!V?.address||!O){a(\"Connect an Algorand wallet before paying.\");return}l(!0);try{if(m===null||m===0n){a(\"Checking USDC balance...\");let ne=await P();if(!ne||ne===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${le}.`)}a(\"Creating payment signature...\");let U={address:V.address,signTransactions:async(ne,Q)=>await O.signTransactions(ne,Q)},W=new Rpe;W.register(\"algorand:*\",new Yz(U,n?{algorandClient:n}:void 0)),console.log(\"Creating payment payload with requirements:\",{x402Version:t.x402Version,accepts:t.accepts.map(ne=>({scheme:ne.scheme,network:ne.network,amount:ne.amount,asset:ne.asset,payTo:ne.payTo}))});let w=await W.createPaymentPayload(t);console.log(\"Created payment payload:\",{x402Version:w.x402Version,accepted:w.accepted,payloadKeys:Object.keys(w.payload||{})});let I=btoa(JSON.stringify(w));a(\"Requesting content with payment...\");let ye=await fetch(D.currentUrl,{headers:{\"PAYMENT-SIGNATURE\":I,\"Access-Control-Expose-Headers\":\"PAYMENT-RESPONSE,PAYMENT-REQUIRED\"}});if(ye.ok)await r(ye);else{let ne=\"\",Q=ye.headers.get(\"PAYMENT-REQUIRED\");if(Q)try{let ue=JSON.parse(atob(Q));ue.error&&(ne=ue.error)}catch{}if(!ne)try{let ue=await ye.json();ue.error?ne=typeof ue.error==\"string\"?ue.error:JSON.stringify(ue.error):ue.details&&(ne=ue.details)}catch{}let ie=ne?`Payment verification failed: ${ne}`:`Request failed: ${ye.status} ${ye.statusText}`;throw console.error(\"Payment error details:\",{status:ye.status,errorDetail:ne,paymentRequiredHeader:Q?\"present\":\"absent\"}),new Error(ie)}}catch(U){a(U instanceof Error?U.message:\"Payment failed.\")}finally{l(!1)}},[D,V,O,m,P,le,n,t,r]);return(0,to.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,to.jsxs)(\"div\",{className:\"header\",children:[(0,to.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,to.jsxs)(\"p\",{children:[t.resource?.description&&`${t.resource.description}.`,\" To access this content, please pay $\",G,\" \",le,\" \",se,\".\"]}),te&&(()=>{let U=ISe(J,D);return(0,to.jsxs)(\"p\",{className:\"instructions\",children:[\"Need \",se,\" on \",le,\"?\",\" \",U?(0,to.jsxs)(\"a\",{href:U,target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Request some \",(0,to.jsx)(\"u\",{children:\"here\"}),\".\"]}):(0,to.jsx)(\"span\",{children:\"No faucet configured.\"})]})})()]}),(0,to.jsxs)(\"div\",{className:\"content w-full\",children:[(0,to.jsxs)(\"div\",{className:\"payment-details\",children:[(0,to.jsxs)(\"div\",{className:\"payment-row\",children:[(0,to.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,to.jsx)(\"span\",{className:\"payment-value\",children:V?.address?`${V.address.slice(0,6)}...${V.address.slice(-4)}`:\"-\"})]}),(0,to.jsxs)(\"div\",{className:\"payment-row\",children:[(0,to.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,to.jsx)(\"span\",{className:\"payment-value\",children:V?.address?(0,to.jsx)(\"button\",{className:\"balance-button\",onClick:()=>p(U=>!U),children:!f&&_?`$${_} USDC`:y?\"Loading...\":\"* USDC\"}):\"-\"})]}),(0,to.jsxs)(\"div\",{className:\"payment-row\",children:[(0,to.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,to.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",G,\" USDC\"]})]}),(0,to.jsxs)(\"div\",{className:\"payment-row\",children:[(0,to.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,to.jsx)(\"span\",{className:\"payment-value\",children:le})]})]}),(0,to.jsxs)(\"div\",{className:\"cta-container\",children:[V?.address?(0,to.jsx)(\"button\",{className:\"button button-secondary\",onClick:Y,children:\"Disconnect\"}):(0,to.jsxs)(to.Fragment,{children:[(0,to.jsxs)(\"select\",{className:\"input\",value:T,onChange:U=>R(U.target.value),children:[(0,to.jsx)(\"option\",{value:\"\",disabled:!0,children:\"Select a wallet\"}),K.map(U=>(0,to.jsx)(\"option\",{value:U.id,children:U.metadata?.name??U.id},U.id))]}),(0,to.jsx)(\"button\",{className:\"button button-primary\",onClick:z,disabled:!T,children:\"Connect wallet\"})]}),V?.address&&(0,to.jsx)(\"button\",{className:\"button button-primary\",onClick:L,disabled:c,children:c?(0,to.jsx)(Fpe,{}):\"Pay now\"})]}),K.length===0&&(0,to.jsx)(\"div\",{className:\"status\",children:\"Install an Algorand wallet such as Pera, Defly, or Lute to continue, then refresh this page.\"}),o&&(0,to.jsx)(\"div\",{className:\"status\",children:o})]})]})}var DSe=br(xy(),1);window.addEventListener(\"load\",async()=>{let t=document.getElementById(\"root\");if(!t){console.error(\"Root element not found\");return}let n=window.x402.paymentRequired;if(!n?.accepts?.[0]){console.error(\"No payment requirements found\");return}let o=n.accepts[0].network.includes(w0.TESTNET),a=o?Du.testNet():Du.mainNet(),c=o?Jk.TESTNET:Jk.MAINNET,l=o?\"https://testnet-api.algonode.cloud\":\"https://mainnet-api.algonode.cloud\",f=new qse({wallets:[s8.PERA,s8.DEFLY,s8.LUTE],defaultNetwork:c,networks:{[c]:{algod:{baseServer:l,token:\"\",port:\"\"}}}});(0,BSe.createRoot)(t).render((0,DSe.jsx)(PSe,{paymentRequired:n,walletManager:f,algorandClient:a,onSuccessfulResponse:async m=>{let g=m.headers.get(\"content-type\");if(g&&g.includes(\"text/html\"))document.documentElement.innerHTML=await m.text();else{let y=await m.blob(),A=window.URL.createObjectURL(y);window.location.href=A}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.development.js:\\n  (**\\n   * @license React\\n   * scheduler.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.development.js:\\n  (**\\n   * @license React\\n   * react.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.development.js:\\n  (**\\n   * @license React\\n   * react-dom.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.development.js:\\n  (**\\n   * @license React\\n   * react-dom-client.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\njs-sha512/src/sha512.js:\\n  (*\\n   * [js-sha512]{@link https://github.com/emn178/js-sha512}\\n   *\\n   * @version 0.8.0\\n   * @author Chen, Yi-Cyuan [emn178@gmail.com]\\n   * @copyright Chen, Yi-Cyuan 2014-2018\\n   * @license MIT\\n   *)\\n\\nhi-base32/src/base32.js:\\n  (*\\n   * [hi-base32]{@link https://github.com/emn178/hi-base32}\\n   *\\n   * @version 0.5.0\\n   * @author Chen, Yi-Cyuan [emn178@gmail.com]\\n   * @copyright Chen, Yi-Cyuan 2015-2018\\n   * @license MIT\\n   *)\\n\\njs-sha3/src/sha3.js:\\n  (**\\n   * [js-sha3]{@link https://github.com/emn178/js-sha3}\\n   *\\n   * @version 0.8.0\\n   * @author Chen, Yi-Cyuan [emn178@gmail.com]\\n   * @copyright Chen, Yi-Cyuan 2015-2018\\n   * @license MIT\\n   *)\\n\\ntslib/tslib.js:\\n  (*! *****************************************************************************\\n  Copyright (c) Microsoft Corporation.\\n  \\n  Permission to use, copy, modify, and/or distribute this software for any\\n  purpose with or without fee is hereby granted.\\n  \\n  THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\\n  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\\n  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\\n  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\\n  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\\n  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\\n  PERFORMANCE OF THIS SOFTWARE.\\n  ***************************************************************************** *)\\n\\nlottie-web/build/player/lottie.js:\\n@evanhahn/lottie-web-light/index.js:\\n  (*!\\n   Transformation Matrix v2.0\\n   (c) Epistemex 2014-2015\\n   www.epistemex.com\\n   By Ken Fyrstenberg\\n   Contributions by leeoniya.\\n   License: MIT, header required.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.development.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/hashes/esm/utils.js:\\n@noble/hashes/utils.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\n@noble/curves/esm/abstract/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\n@noble/ed25519/index.js:\\n  (*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)\\n*/\\n</script></body></html>';\n","let cachedTemplate: string | null = null;\n\nexport function getAvmTemplate(): string | null {\n  if (cachedTemplate !== null) {\n    return cachedTemplate;\n  }\n\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedTemplate = template.AVM_PAYWALL_TEMPLATE;\n    return cachedTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired } from \"../types\";\nimport { getAvmTemplate } from \"./template-loader\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface AvmPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  faucetUrls?: Record<string, string>;\n}\n\n/**\n * Generates AVM-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @param options.faucetUrls - Per-chain (CAIP-2 keyed) override for the testnet faucet link\n * @returns HTML string for the paywall page\n */\nexport function getAvmPaywallHtml(options: AvmPaywallOptions): string {\n  const AVM_PAYWALL_TEMPLATE = getAvmTemplate();\n\n  if (!AVM_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>AVM Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, faucetUrls } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('AVM Payment required initialized:', window.x402);\"\n    : \"\";\n\n  const configScript = `\n  <script>\n    window.x402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      faucetUrls: ${faucetUrls ? JSON.stringify(faucetUrls) : \"undefined\"},\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return AVM_PAYWALL_TEMPLATE.replace(\"</head>\", `${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getAvmPaywallHtml } from \"./paywall\";\n\n/**\n * AVM paywall handler that supports Algorand-based networks (CAIP-2 format only)\n */\nexport const avmPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"algorand:\");\n  },\n\n  /**\n   * Generate AVM-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getAvmPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      faucetUrls: config.faucetUrls,\n    });\n  },\n};\n"]}