@paimaexample/explorer 0.3.28 → 0.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
var FF=e=>{throw TypeError(e)};var bv=(e,r,i)=>r.has(e)||FF("Cannot "+i);var Dt=(e,r,i)=>(bv(e,r,"read from private field"),i?i.call(e):r.get(e)),zi=(e,r,i)=>r.has(e)?FF("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,i),Va=(e,r,i,a)=>(bv(e,r,"write to private field"),a?a.call(e,i):r.set(e,i),i),Ft=(e,r,i)=>(bv(e,r,"access private method"),i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var Zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function og(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vv={exports:{}},vm={},Av={exports:{}},xv={},ed={},NF;function mk(){if(NF)return ed;NF=1,ed.byteLength=h,ed.toByteArray=p,ed.fromByteArray=g;for(var e=[],r=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)e[u]=a[u],r[a.charCodeAt(u)]=u;r[45]=62,r[95]=63;function f(S){var O=S.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=S.indexOf("=");U===-1&&(U=O);var F=U===O?0:4-U%4;return[U,F]}function h(S){var O=f(S),U=O[0],F=O[1];return(U+F)*3/4-F}function m(S,O,U){return(O+U)*3/4-U}function p(S){var O,U=f(S),F=U[0],N=U[1],D=new i(m(S,F,N)),M=0,re=N>0?F-4:F,K;for(K=0;K<re;K+=4)O=r[S.charCodeAt(K)]<<18|r[S.charCodeAt(K+1)]<<12|r[S.charCodeAt(K+2)]<<6|r[S.charCodeAt(K+3)],D[M++]=O>>16&255,D[M++]=O>>8&255,D[M++]=O&255;return N===2&&(O=r[S.charCodeAt(K)]<<2|r[S.charCodeAt(K+1)]>>4,D[M++]=O&255),N===1&&(O=r[S.charCodeAt(K)]<<10|r[S.charCodeAt(K+1)]<<4|r[S.charCodeAt(K+2)]>>2,D[M++]=O>>8&255,D[M++]=O&255),D}function A(S){return e[S>>18&63]+e[S>>12&63]+e[S>>6&63]+e[S&63]}function v(S,O,U){for(var F,N=[],D=O;D<U;D+=3)F=(S[D]<<16&16711680)+(S[D+1]<<8&65280)+(S[D+2]&255),N.push(A(F));return N.join("")}function g(S){for(var O,U=S.length,F=U%3,N=[],D=16383,M=0,re=U-F;M<re;M+=D)N.push(v(S,M,M+D>re?re:M+D));return F===1?(O=S[U-1],N.push(e[O>>2]+e[O<<4&63]+"==")):F===2&&(O=(S[U-2]<<8)+S[U-1],N.push(e[O>>10]+e[O>>4&63]+e[O<<2&63]+"=")),N.join("")}return ed}var Am={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var DF;function gk(){return DF||(DF=1,Am.read=function(e,r,i,a,u){var c,f,h=u*8-a-1,m=(1<<h)-1,p=m>>1,A=-7,v=i?u-1:0,g=i?-1:1,S=e[r+v];for(v+=g,c=S&(1<<-A)-1,S>>=-A,A+=h;A>0;c=c*256+e[r+v],v+=g,A-=8);for(f=c&(1<<-A)-1,c>>=-A,A+=a;A>0;f=f*256+e[r+v],v+=g,A-=8);if(c===0)c=1-p;else{if(c===m)return f?NaN:(S?-1:1)*(1/0);f=f+Math.pow(2,a),c=c-p}return(S?-1:1)*f*Math.pow(2,c-a)},Am.write=function(e,r,i,a,u,c){var f,h,m,p=c*8-u-1,A=(1<<p)-1,v=A>>1,g=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=a?0:c-1,O=a?1:-1,U=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,f=A):(f=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-f))<1&&(f--,m*=2),f+v>=1?r+=g/m:r+=g*Math.pow(2,1-v),r*m>=2&&(f++,m/=2),f+v>=A?(h=0,f=A):f+v>=1?(h=(r*m-1)*Math.pow(2,u),f=f+v):(h=r*Math.pow(2,v-1)*Math.pow(2,u),f=0));u>=8;e[i+S]=h&255,S+=O,h/=256,u-=8);for(f=f<<u|h,p+=u;p>0;e[i+S]=f&255,S+=O,f/=256,p-=8);e[i+S-O]|=U*128}),Am}/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/var BF;function yk(){return BF||(BF=1,(function(e){var r=mk(),i=gk(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=h,e.SlowBuffer=D,e.INSPECT_MAX_BYTES=50;var u=2147483647;e.kMaxLength=u,h.TYPED_ARRAY_SUPPORT=c(),!h.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 c(){try{var E=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(E,y),E.foo()===42}catch{return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function f(E){if(E>u)throw new RangeError('The value "'+E+'" is invalid for option "size"');var y=new Uint8Array(E);return Object.setPrototypeOf(y,h.prototype),y}function h(E,y,b){if(typeof E=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(E)}return m(E,y,b)}h.poolSize=8192;function m(E,y,b){if(typeof E=="string")return g(E,y);if(ArrayBuffer.isView(E))return O(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(te(E,ArrayBuffer)||E&&te(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(te(E,SharedArrayBuffer)||E&&te(E.buffer,SharedArrayBuffer)))return U(E,y,b);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var I=E.valueOf&&E.valueOf();if(I!=null&&I!==E)return h.from(I,y,b);var Y=F(E);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return h.from(E[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}h.from=function(E,y,b){return m(E,y,b)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function p(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function A(E,y,b){return p(E),E<=0?f(E):y!==void 0?typeof b=="string"?f(E).fill(y,b):f(E).fill(y):f(E)}h.alloc=function(E,y,b){return A(E,y,b)};function v(E){return p(E),f(E<0?0:N(E)|0)}h.allocUnsafe=function(E){return v(E)},h.allocUnsafeSlow=function(E){return v(E)};function g(E,y){if((typeof y!="string"||y==="")&&(y="utf8"),!h.isEncoding(y))throw new TypeError("Unknown encoding: "+y);var b=M(E,y)|0,I=f(b),Y=I.write(E,y);return Y!==b&&(I=I.slice(0,Y)),I}function S(E){for(var y=E.length<0?0:N(E.length)|0,b=f(y),I=0;I<y;I+=1)b[I]=E[I]&255;return b}function O(E){if(te(E,Uint8Array)){var y=new Uint8Array(E);return U(y.buffer,y.byteOffset,y.byteLength)}return S(E)}function U(E,y,b){if(y<0||E.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');var I;return y===void 0&&b===void 0?I=new Uint8Array(E):b===void 0?I=new Uint8Array(E,y):I=new Uint8Array(E,y,b),Object.setPrototypeOf(I,h.prototype),I}function F(E){if(h.isBuffer(E)){var y=N(E.length)|0,b=f(y);return b.length===0||E.copy(b,0,0,y),b}if(E.length!==void 0)return typeof E.length!="number"||me(E.length)?f(0):S(E);if(E.type==="Buffer"&&Array.isArray(E.data))return S(E.data)}function N(E){if(E>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return E|0}function D(E){return+E!=E&&(E=0),h.alloc(+E)}h.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==h.prototype},h.compare=function(y,b){if(te(y,Uint8Array)&&(y=h.from(y,y.offset,y.byteLength)),te(b,Uint8Array)&&(b=h.from(b,b.offset,b.byteLength)),!h.isBuffer(y)||!h.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;for(var I=y.length,Y=b.length,Ee=0,Re=Math.min(I,Y);Ee<Re;++Ee)if(y[Ee]!==b[Ee]){I=y[Ee],Y=b[Ee];break}return I<Y?-1:Y<I?1:0},h.isEncoding=function(y){switch(String(y).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}},h.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return h.alloc(0);var I;if(b===void 0)for(b=0,I=0;I<y.length;++I)b+=y[I].length;var Y=h.allocUnsafe(b),Ee=0;for(I=0;I<y.length;++I){var Re=y[I];if(te(Re,Uint8Array))Ee+Re.length>Y.length?h.from(Re).copy(Y,Ee):Uint8Array.prototype.set.call(Y,Re,Ee);else if(h.isBuffer(Re))Re.copy(Y,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Re.length}return Y};function M(E,y){if(h.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||te(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var b=E.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&b===0)return 0;for(var Y=!1;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Ae(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return j(E).length;default:if(Y)return I?-1:Ae(E).length;y=(""+y).toLowerCase(),Y=!0}}h.byteLength=M;function re(E,y,b){var I=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(E||(E="utf8");;)switch(E){case"hex":return W(this,y,b);case"utf8":case"utf-8":return J(this,y,b);case"ascii":return he(this,y,b);case"latin1":case"binary":return ge(this,y,b);case"base64":return X(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,y,b);default:if(I)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),I=!0}}h.prototype._isBuffer=!0;function K(E,y,b){var I=E[y];E[y]=E[b],E[b]=I}h.prototype.swap16=function(){var y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<y;b+=2)K(this,b,b+1);return this},h.prototype.swap32=function(){var y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<y;b+=4)K(this,b,b+3),K(this,b+1,b+2);return this},h.prototype.swap64=function(){var y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<y;b+=8)K(this,b,b+7),K(this,b+1,b+6),K(this,b+2,b+5),K(this,b+3,b+4);return this},h.prototype.toString=function(){var y=this.length;return y===0?"":arguments.length===0?J(this,0,y):re.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(y){if(!h.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:h.compare(this,y)===0},h.prototype.inspect=function(){var y="",b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},a&&(h.prototype[a]=h.prototype.inspect),h.prototype.compare=function(y,b,I,Y,Ee){if(te(y,Uint8Array)&&(y=h.from(y,y.offset,y.byteLength)),!h.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),I===void 0&&(I=y?y.length:0),Y===void 0&&(Y=0),Ee===void 0&&(Ee=this.length),b<0||I>y.length||Y<0||Ee>this.length)throw new RangeError("out of range index");if(Y>=Ee&&b>=I)return 0;if(Y>=Ee)return-1;if(b>=I)return 1;if(b>>>=0,I>>>=0,Y>>>=0,Ee>>>=0,this===y)return 0;for(var Re=Ee-Y,He=I-b,fe=Math.min(Re,He),ce=this.slice(Y,Ee),Ce=y.slice(b,I),Ue=0;Ue<fe;++Ue)if(ce[Ue]!==Ce[Ue]){Re=ce[Ue],He=Ce[Ue];break}return Re<He?-1:He<Re?1:0};function oe(E,y,b,I,Y){if(E.length===0)return-1;if(typeof b=="string"?(I=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,me(b)&&(b=Y?0:E.length-1),b<0&&(b=E.length+b),b>=E.length){if(Y)return-1;b=E.length-1}else if(b<0)if(Y)b=0;else return-1;if(typeof y=="string"&&(y=h.from(y,I)),h.isBuffer(y))return y.length===0?-1:de(E,y,b,I,Y);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(E,y,b):Uint8Array.prototype.lastIndexOf.call(E,y,b):de(E,[y],b,I,Y);throw new TypeError("val must be string, number or Buffer")}function de(E,y,b,I,Y){var Ee=1,Re=E.length,He=y.length;if(I!==void 0&&(I=String(I).toLowerCase(),I==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(E.length<2||y.length<2)return-1;Ee=2,Re/=2,He/=2,b/=2}function fe(We,Ye){return Ee===1?We[Ye]:We.readUInt16BE(Ye*Ee)}var ce;if(Y){var Ce=-1;for(ce=b;ce<Re;ce++)if(fe(E,ce)===fe(y,Ce===-1?0:ce-Ce)){if(Ce===-1&&(Ce=ce),ce-Ce+1===He)return Ce*Ee}else Ce!==-1&&(ce-=ce-Ce),Ce=-1}else for(b+He>Re&&(b=Re-He),ce=b;ce>=0;ce--){for(var Ue=!0,je=0;je<He;je++)if(fe(E,ce+je)!==fe(y,je)){Ue=!1;break}if(Ue)return ce}return-1}h.prototype.includes=function(y,b,I){return this.indexOf(y,b,I)!==-1},h.prototype.indexOf=function(y,b,I){return oe(this,y,b,I,!0)},h.prototype.lastIndexOf=function(y,b,I){return oe(this,y,b,I,!1)};function ue(E,y,b,I){b=Number(b)||0;var Y=E.length-b;I?(I=Number(I),I>Y&&(I=Y)):I=Y;var Ee=y.length;I>Ee/2&&(I=Ee/2);for(var Re=0;Re<I;++Re){var He=parseInt(y.substr(Re*2,2),16);if(me(He))return Re;E[b+Re]=He}return Re}function T(E,y,b,I){return G(Ae(y,E.length-b),E,b,I)}function $(E,y,b,I){return G(L(y),E,b,I)}function z(E,y,b,I){return G(j(y),E,b,I)}function V(E,y,b,I){return G(w(y,E.length-b),E,b,I)}h.prototype.write=function(y,b,I,Y){if(b===void 0)Y="utf8",I=this.length,b=0;else if(I===void 0&&typeof b=="string")Y=b,I=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(I)?(I=I>>>0,Y===void 0&&(Y="utf8")):(Y=I,I=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ee=this.length-b;if((I===void 0||I>Ee)&&(I=Ee),y.length>0&&(I<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");for(var Re=!1;;)switch(Y){case"hex":return ue(this,y,b,I);case"utf8":case"utf-8":return T(this,y,b,I);case"ascii":case"latin1":case"binary":return $(this,y,b,I);case"base64":return z(this,y,b,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,y,b,I);default:if(Re)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),Re=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(E,y,b){return y===0&&b===E.length?r.fromByteArray(E):r.fromByteArray(E.slice(y,b))}function J(E,y,b){b=Math.min(E.length,b);for(var I=[],Y=y;Y<b;){var Ee=E[Y],Re=null,He=Ee>239?4:Ee>223?3:Ee>191?2:1;if(Y+He<=b){var fe,ce,Ce,Ue;switch(He){case 1:Ee<128&&(Re=Ee);break;case 2:fe=E[Y+1],(fe&192)===128&&(Ue=(Ee&31)<<6|fe&63,Ue>127&&(Re=Ue));break;case 3:fe=E[Y+1],ce=E[Y+2],(fe&192)===128&&(ce&192)===128&&(Ue=(Ee&15)<<12|(fe&63)<<6|ce&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Re=Ue));break;case 4:fe=E[Y+1],ce=E[Y+2],Ce=E[Y+3],(fe&192)===128&&(ce&192)===128&&(Ce&192)===128&&(Ue=(Ee&15)<<18|(fe&63)<<12|(ce&63)<<6|Ce&63,Ue>65535&&Ue<1114112&&(Re=Ue))}}Re===null?(Re=65533,He=1):Re>65535&&(Re-=65536,I.push(Re>>>10&1023|55296),Re=56320|Re&1023),I.push(Re),Y+=He}return B(I)}var ve=4096;function B(E){var y=E.length;if(y<=ve)return String.fromCharCode.apply(String,E);for(var b="",I=0;I<y;)b+=String.fromCharCode.apply(String,E.slice(I,I+=ve));return b}function he(E,y,b){var I="";b=Math.min(E.length,b);for(var Y=y;Y<b;++Y)I+=String.fromCharCode(E[Y]&127);return I}function ge(E,y,b){var I="";b=Math.min(E.length,b);for(var Y=y;Y<b;++Y)I+=String.fromCharCode(E[Y]);return I}function W(E,y,b){var I=E.length;(!y||y<0)&&(y=0),(!b||b<0||b>I)&&(b=I);for(var Y="",Ee=y;Ee<b;++Ee)Y+=ye[E[Ee]];return Y}function _(E,y,b){for(var I=E.slice(y,b),Y="",Ee=0;Ee<I.length-1;Ee+=2)Y+=String.fromCharCode(I[Ee]+I[Ee+1]*256);return Y}h.prototype.slice=function(y,b){var I=this.length;y=~~y,b=b===void 0?I:~~b,y<0?(y+=I,y<0&&(y=0)):y>I&&(y=I),b<0?(b+=I,b<0&&(b=0)):b>I&&(b=I),b<y&&(b=y);var Y=this.subarray(y,b);return Object.setPrototypeOf(Y,h.prototype),Y};function ie(E,y,b){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+y>b)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(y,b,I){y=y>>>0,b=b>>>0,I||ie(y,b,this.length);for(var Y=this[y],Ee=1,Re=0;++Re<b&&(Ee*=256);)Y+=this[y+Re]*Ee;return Y},h.prototype.readUintBE=h.prototype.readUIntBE=function(y,b,I){y=y>>>0,b=b>>>0,I||ie(y,b,this.length);for(var Y=this[y+--b],Ee=1;b>0&&(Ee*=256);)Y+=this[y+--b]*Ee;return Y},h.prototype.readUint8=h.prototype.readUInt8=function(y,b){return y=y>>>0,b||ie(y,1,this.length),this[y]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||ie(y,2,this.length),this[y]|this[y+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||ie(y,2,this.length),this[y]<<8|this[y+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},h.prototype.readIntLE=function(y,b,I){y=y>>>0,b=b>>>0,I||ie(y,b,this.length);for(var Y=this[y],Ee=1,Re=0;++Re<b&&(Ee*=256);)Y+=this[y+Re]*Ee;return Ee*=128,Y>=Ee&&(Y-=Math.pow(2,8*b)),Y},h.prototype.readIntBE=function(y,b,I){y=y>>>0,b=b>>>0,I||ie(y,b,this.length);for(var Y=b,Ee=1,Re=this[y+--Y];Y>0&&(Ee*=256);)Re+=this[y+--Y]*Ee;return Ee*=128,Re>=Ee&&(Re-=Math.pow(2,8*b)),Re},h.prototype.readInt8=function(y,b){return y=y>>>0,b||ie(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},h.prototype.readInt16LE=function(y,b){y=y>>>0,b||ie(y,2,this.length);var I=this[y]|this[y+1]<<8;return I&32768?I|4294901760:I},h.prototype.readInt16BE=function(y,b){y=y>>>0,b||ie(y,2,this.length);var I=this[y+1]|this[y]<<8;return I&32768?I|4294901760:I},h.prototype.readInt32LE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},h.prototype.readInt32BE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},h.prototype.readFloatLE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),i.read(this,y,!0,23,4)},h.prototype.readFloatBE=function(y,b){return y=y>>>0,b||ie(y,4,this.length),i.read(this,y,!1,23,4)},h.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||ie(y,8,this.length),i.read(this,y,!0,52,8)},h.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||ie(y,8,this.length),i.read(this,y,!1,52,8)};function le(E,y,b,I,Y,Ee){if(!h.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>Y||y<Ee)throw new RangeError('"value" argument is out of bounds');if(b+I>E.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(y,b,I,Y){if(y=+y,b=b>>>0,I=I>>>0,!Y){var Ee=Math.pow(2,8*I)-1;le(this,y,b,I,Ee,0)}var Re=1,He=0;for(this[b]=y&255;++He<I&&(Re*=256);)this[b+He]=y/Re&255;return b+I},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(y,b,I,Y){if(y=+y,b=b>>>0,I=I>>>0,!Y){var Ee=Math.pow(2,8*I)-1;le(this,y,b,I,Ee,0)}var Re=I-1,He=1;for(this[b+Re]=y&255;--Re>=0&&(He*=256);)this[b+Re]=y/He&255;return b+I},h.prototype.writeUint8=h.prototype.writeUInt8=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,1,255,0),this[b]=y&255,b+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},h.prototype.writeIntLE=function(y,b,I,Y){if(y=+y,b=b>>>0,!Y){var Ee=Math.pow(2,8*I-1);le(this,y,b,I,Ee-1,-Ee)}var Re=0,He=1,fe=0;for(this[b]=y&255;++Re<I&&(He*=256);)y<0&&fe===0&&this[b+Re-1]!==0&&(fe=1),this[b+Re]=(y/He>>0)-fe&255;return b+I},h.prototype.writeIntBE=function(y,b,I,Y){if(y=+y,b=b>>>0,!Y){var Ee=Math.pow(2,8*I-1);le(this,y,b,I,Ee-1,-Ee)}var Re=I-1,He=1,fe=0;for(this[b+Re]=y&255;--Re>=0&&(He*=256);)y<0&&fe===0&&this[b+Re+1]!==0&&(fe=1),this[b+Re]=(y/He>>0)-fe&255;return b+I},h.prototype.writeInt8=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},h.prototype.writeInt16LE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},h.prototype.writeInt16BE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},h.prototype.writeInt32LE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},h.prototype.writeInt32BE=function(y,b,I){return y=+y,b=b>>>0,I||le(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function ee(E,y,b,I,Y,Ee){if(b+I>E.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function k(E,y,b,I,Y){return y=+y,b=b>>>0,Y||ee(E,y,b,4),i.write(E,y,b,I,23,4),b+4}h.prototype.writeFloatLE=function(y,b,I){return k(this,y,b,!0,I)},h.prototype.writeFloatBE=function(y,b,I){return k(this,y,b,!1,I)};function H(E,y,b,I,Y){return y=+y,b=b>>>0,Y||ee(E,y,b,8),i.write(E,y,b,I,52,8),b+8}h.prototype.writeDoubleLE=function(y,b,I){return H(this,y,b,!0,I)},h.prototype.writeDoubleBE=function(y,b,I){return H(this,y,b,!1,I)},h.prototype.copy=function(y,b,I,Y){if(!h.isBuffer(y))throw new TypeError("argument should be a Buffer");if(I||(I=0),!Y&&Y!==0&&(Y=this.length),b>=y.length&&(b=y.length),b||(b=0),Y>0&&Y<I&&(Y=I),Y===I||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),y.length-b<Y-I&&(Y=y.length-b+I);var Ee=Y-I;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,I,Y):Uint8Array.prototype.set.call(y,this.subarray(I,Y),b),Ee},h.prototype.fill=function(y,b,I,Y){if(typeof y=="string"){if(typeof b=="string"?(Y=b,b=0,I=this.length):typeof I=="string"&&(Y=I,I=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!h.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(y.length===1){var Ee=y.charCodeAt(0);(Y==="utf8"&&Ee<128||Y==="latin1")&&(y=Ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<I)throw new RangeError("Out of range index");if(I<=b)return this;b=b>>>0,I=I===void 0?this.length:I>>>0,y||(y=0);var Re;if(typeof y=="number")for(Re=b;Re<I;++Re)this[Re]=y;else{var He=h.isBuffer(y)?y:h.from(y,Y),fe=He.length;if(fe===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(Re=0;Re<I-b;++Re)this[Re+b]=He[Re%fe]}return this};var Q=/[^+/0-9A-Za-z-_]/g;function xe(E){if(E=E.split("=")[0],E=E.trim().replace(Q,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ae(E,y){y=y||1/0;for(var b,I=E.length,Y=null,Ee=[],Re=0;Re<I;++Re){if(b=E.charCodeAt(Re),b>55295&&b<57344){if(!Y){if(b>56319){(y-=3)>-1&&Ee.push(239,191,189);continue}else if(Re+1===I){(y-=3)>-1&&Ee.push(239,191,189);continue}Y=b;continue}if(b<56320){(y-=3)>-1&&Ee.push(239,191,189),Y=b;continue}b=(Y-55296<<10|b-56320)+65536}else Y&&(y-=3)>-1&&Ee.push(239,191,189);if(Y=null,b<128){if((y-=1)<0)break;Ee.push(b)}else if(b<2048){if((y-=2)<0)break;Ee.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;Ee.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;Ee.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return Ee}function L(E){for(var y=[],b=0;b<E.length;++b)y.push(E.charCodeAt(b)&255);return y}function w(E,y){for(var b,I,Y,Ee=[],Re=0;Re<E.length&&!((y-=2)<0);++Re)b=E.charCodeAt(Re),I=b>>8,Y=b%256,Ee.push(Y),Ee.push(I);return Ee}function j(E){return r.toByteArray(xe(E))}function G(E,y,b,I){for(var Y=0;Y<I&&!(Y+b>=y.length||Y>=E.length);++Y)y[Y+b]=E[Y];return Y}function te(E,y){return E instanceof y||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===y.name}function me(E){return E!==E}var ye=(function(){for(var E="0123456789abcdef",y=new Array(256),b=0;b<16;++b)for(var I=b*16,Y=0;Y<16;++Y)y[I+Y]=E[b]+E[Y];return y})()})(xv)),xv}var un=yk(),xm={exports:{}},UF;function bk(){return UF||(UF=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var i={exports:{}},a=i.exports={},u,c;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?c=clearTimeout:c=h}catch{c=h}})();function m(W){if(u===setTimeout)return setTimeout(W,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(W,0);try{return u(W,0)}catch{try{return u.call(null,W,0)}catch{return u.call(this,W,0)}}}function p(W){if(c===clearTimeout)return clearTimeout(W);if((c===h||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(W);try{return c(W)}catch{try{return c.call(null,W)}catch{return c.call(this,W)}}}var A=[],v=!1,g,S=-1;function O(){!v||!g||(v=!1,g.length?A=g.concat(A):S=-1,A.length&&U())}function U(){if(!v){var W=m(O);v=!0;for(var _=A.length;_;){for(g=A,A=[];++S<_;)g&&g[S].run();S=-1,_=A.length}g=null,v=!1,p(W)}}a.nextTick=function(W){var _=new Array(arguments.length-1);if(arguments.length>1)for(var ie=1;ie<arguments.length;ie++)_[ie-1]=arguments[ie];A.push(new F(W,_)),A.length===1&&!v&&m(U)};function F(W,_){this.fun=W,this.array=_}F.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function N(){}a.on=N,a.addListener=N,a.once=N,a.off=N,a.removeListener=N,a.removeAllListeners=N,a.emit=N,a.prependListener=N,a.prependOnceListener=N,a.listeners=function(W){return[]},a.binding=function(W){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(W){throw new Error("process.chdir is not supported")},a.umask=function(){return 0};function D(){}var M=i.exports.browser,re=D,K=i.exports.binding,oe=D,de=1,ue={},T=D,$=D,z=D,V=D,X=D,J="browser",ve="browser",B="browser",he=[],ge={nextTick:i.exports.nextTick,title:i.exports.title,browser:M,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:re,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:K,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:oe,pid:de,features:ue,kill:T,dlopen:$,uptime:z,memoryUsage:V,uvCounters:X,platform:J,arch:ve,execPath:B,execArgv:he};r.addListener=i.exports.addListener,r.arch=ve,r.argv=i.exports.argv,r.binding=K,r.browser=M,r.chdir=i.exports.chdir,r.cwd=i.exports.cwd,r.default=ge,r.dlopen=$,r.emit=i.exports.emit,r.emitWarning=re,r.env=i.exports.env,r.execArgv=he,r.execPath=B,r.exit=oe,r.features=ue,r.kill=T,r.listeners=i.exports.listeners,r.memoryUsage=V,r.nextTick=i.exports.nextTick,r.off=i.exports.off,r.on=i.exports.on,r.once=i.exports.once,r.pid=de,r.platform=J,r.prependListener=i.exports.prependListener,r.prependOnceListener=i.exports.prependOnceListener,r.removeAllListeners=i.exports.removeAllListeners,r.removeListener=i.exports.removeListener,r.title=i.exports.title,r.umask=i.exports.umask,r.uptime=z,r.uvCounters=X,r.version=i.exports.version,r.versions=i.exports.versions,r=e.exports=ge})(xm,xm.exports)),xm.exports}var vk=bk();const It=og(vk);(function(e){function r(){var a=this||self;return delete e.prototype.__magic__,a}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var i=__magic__;return i})(Object);var ld={exports:{}};ld.exports;var _F;function Ak(){return _F||(_F=1,(function(e,r){/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react.development.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/(function(){function i(P,pe){Object.defineProperty(c.prototype,P,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",pe[0],pe[1])}})}function a(P){return P===null||typeof P!="object"?null:(P=j&&P[j]||P["@@iterator"],typeof P=="function"?P:null)}function u(P,pe){P=(P=P.constructor)&&(P.displayName||P.name)||"ReactClass";var _e=P+"."+pe;G[_e]||(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.",pe,P),G[_e]=!0)}function c(P,pe,_e){this.props=P,this.context=pe,this.refs=ye,this.updater=_e||te}function f(){}function h(P,pe,_e){this.props=P,this.context=pe,this.refs=ye,this.updater=_e||te}function m(P){return""+P}function p(P){try{m(P);var pe=!1}catch{pe=!0}if(pe){pe=console;var _e=pe.error,Pe=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return _e.call(pe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Pe),m(P)}}function A(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===I?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case _:return"Fragment";case le:return"Profiler";case ie:return"StrictMode";case Q:return"Suspense";case xe:return"SuspenseList";case w:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case W:return"Portal";case k:return(P.displayName||"Context")+".Provider";case ee:return(P._context.displayName||"Context")+".Consumer";case H:var pe=P.render;return P=P.displayName,P||(P=pe.displayName||pe.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case Ae:return pe=P.displayName||null,pe!==null?pe:A(P.type)||"Memo";case L:pe=P._payload,P=P._init;try{return A(P(pe))}catch{}}return null}function v(P){if(P===_)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===L)return"<...>";try{var pe=A(P);return pe?"<"+pe+">":"<...>"}catch{return"<...>"}}function g(){var P=Y.A;return P===null?null:P.getOwner()}function S(){return Error("react-stack-top-frame")}function O(P){if(Ee.call(P,"key")){var pe=Object.getOwnPropertyDescriptor(P,"key").get;if(pe&&pe.isReactWarning)return!1}return P.key!==void 0}function U(P,pe){function _e(){He||(He=!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)",pe))}_e.isReactWarning=!0,Object.defineProperty(P,"key",{get:_e,configurable:!0})}function F(){var P=A(this.type);return ce[P]||(ce[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function N(P,pe,_e,Pe,qe,nt,et,it){return _e=nt.ref,P={$$typeof:ge,type:P,key:pe,props:nt,_owner:qe},(_e!==void 0?_e:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:F}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:et}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:it}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function D(P,pe){return pe=N(P.type,pe,void 0,void 0,P._owner,P.props,P._debugStack,P._debugTask),P._store&&(pe._store.validated=P._store.validated),pe}function M(P){return typeof P=="object"&&P!==null&&P.$$typeof===ge}function re(P){var pe={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(_e){return pe[_e]})}function K(P,pe){return typeof P=="object"&&P!==null&&P.key!=null?(p(P.key),re(""+P.key)):pe.toString(36)}function oe(){}function de(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(oe,oe):(P.status="pending",P.then(function(pe){P.status==="pending"&&(P.status="fulfilled",P.value=pe)},function(pe){P.status==="pending"&&(P.status="rejected",P.reason=pe)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function ue(P,pe,_e,Pe,qe){var nt=typeof P;(nt==="undefined"||nt==="boolean")&&(P=null);var et=!1;if(P===null)et=!0;else switch(nt){case"bigint":case"string":case"number":et=!0;break;case"object":switch(P.$$typeof){case ge:case W:et=!0;break;case L:return et=P._init,ue(et(P._payload),pe,_e,Pe,qe)}}if(et){et=P,qe=qe(et);var it=Pe===""?"."+K(et,0):Pe;return b(qe)?(_e="",it!=null&&(_e=it.replace(We,"$&/")+"/"),ue(qe,pe,_e,"",function(bt){return bt})):qe!=null&&(M(qe)&&(qe.key!=null&&(et&&et.key===qe.key||p(qe.key)),_e=D(qe,_e+(qe.key==null||et&&et.key===qe.key?"":(""+qe.key).replace(We,"$&/")+"/")+it),Pe!==""&&et!=null&&M(et)&&et.key==null&&et._store&&!et._store.validated&&(_e._store.validated=2),qe=_e),pe.push(qe)),1}if(et=0,it=Pe===""?".":Pe+":",b(P))for(var tt=0;tt<P.length;tt++)Pe=P[tt],nt=it+K(Pe,tt),et+=ue(Pe,pe,_e,nt,qe);else if(tt=a(P),typeof tt=="function")for(tt===P.entries&&(je||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),je=!0),P=tt.call(P),tt=0;!(Pe=P.next()).done;)Pe=Pe.value,nt=it+K(Pe,tt++),et+=ue(Pe,pe,_e,nt,qe);else if(nt==="object"){if(typeof P.then=="function")return ue(de(P),pe,_e,Pe,qe);throw pe=String(P),Error("Objects are not valid as a React child (found: "+(pe==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":pe)+"). If you meant to render a collection of children, use an array instead.")}return et}function T(P,pe,_e){if(P==null)return P;var Pe=[],qe=0;return ue(P,Pe,"","",function(nt){return pe.call(_e,nt,qe++)}),Pe}function $(P){if(P._status===-1){var pe=P._result;pe=pe(),pe.then(function(_e){(P._status===0||P._status===-1)&&(P._status=1,P._result=_e)},function(_e){(P._status===0||P._status===-1)&&(P._status=2,P._result=_e)}),P._status===-1&&(P._status=0,P._result=pe)}if(P._status===1)return pe=P._result,pe===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
18
|
+
|
|
19
|
+
Did you accidentally put curly braces around the import?`,pe),"default"in pe||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
20
|
+
|
|
21
|
+
Your code should look like:
|
|
22
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,pe),pe.default;throw P._result}function z(){var P=Y.H;return P===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:
|
|
23
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
24
|
+
2. You might be breaking the Rules of Hooks
|
|
25
|
+
3. You might have more than one copy of React in the same app
|
|
26
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),P}function V(){}function X(P){if(ot===null)try{var pe=("require"+Math.random()).slice(0,7);ot=(e&&e[pe]).call(e,"timers").setImmediate}catch{ot=function(Pe){rt===!1&&(rt=!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 qe=new MessageChannel;qe.port1.onmessage=Pe,qe.port2.postMessage(void 0)}}return ot(P)}function J(P){return 1<P.length&&typeof AggregateError=="function"?new AggregateError(P):P[0]}function ve(P,pe){pe!==lt-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. "),lt=pe}function B(P,pe,_e){var Pe=Y.actQueue;if(Pe!==null)if(Pe.length!==0)try{he(Pe),X(function(){return B(P,pe,_e)});return}catch(qe){Y.thrownErrors.push(qe)}else Y.actQueue=null;0<Y.thrownErrors.length?(Pe=J(Y.thrownErrors),Y.thrownErrors.length=0,_e(Pe)):pe(P)}function he(P){if(!yt){yt=!0;var pe=0;try{for(;pe<P.length;pe++){var _e=P[pe];do{Y.didUsePromise=!1;var Pe=_e(!1);if(Pe!==null){if(Y.didUsePromise){P[pe]=_e,P.splice(0,pe);return}_e=Pe}else break}while(!0)}P.length=0}catch(qe){P.splice(0,pe+1),Y.thrownErrors.push(qe)}finally{yt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ge=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),k=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),j=Symbol.iterator,G={},te={isMounted:function(){return!1},enqueueForceUpdate:function(P){u(P,"forceUpdate")},enqueueReplaceState:function(P){u(P,"replaceState")},enqueueSetState:function(P){u(P,"setState")}},me=Object.assign,ye={};Object.freeze(ye),c.prototype.isReactComponent={},c.prototype.setState=function(P,pe){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,pe,"setState")},c.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};var E={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)."]},y;for(y in E)E.hasOwnProperty(y)&&i(y,E[y]);f.prototype=c.prototype,E=h.prototype=new f,E.constructor=h,me(E,c.prototype),E.isPureReactComponent=!0;var b=Array.isArray,I=Symbol.for("react.client.reference"),Y={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ee=Object.prototype.hasOwnProperty,Re=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(P){return P()}};var He,fe,ce={},Ce=E.react_stack_bottom_frame.bind(E,S)(),Ue=Re(v(S)),je=!1,We=/\/+/g,Ye=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var pe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(pe))return}else if(typeof It=="object"&&typeof It.emit=="function"){It.emit("uncaughtException",P);return}console.error(P)},rt=!1,ot=null,lt=0,st=!1,yt=!1,Et=typeof queueMicrotask=="function"?function(P){queueMicrotask(function(){return queueMicrotask(P)})}:X;E=Object.freeze({__proto__:null,c:function(P){return z().useMemoCache(P)}}),r.Children={map:T,forEach:function(P,pe,_e){T(P,function(){pe.apply(this,arguments)},_e)},count:function(P){var pe=0;return T(P,function(){pe++}),pe},toArray:function(P){return T(P,function(pe){return pe})||[]},only:function(P){if(!M(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},r.Component=c,r.Fragment=_,r.Profiler=le,r.PureComponent=h,r.StrictMode=ie,r.Suspense=Q,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,r.__COMPILER_RUNTIME=E,r.act=function(P){var pe=Y.actQueue,_e=lt;lt++;var Pe=Y.actQueue=pe!==null?pe:[],qe=!1;try{var nt=P()}catch(tt){Y.thrownErrors.push(tt)}if(0<Y.thrownErrors.length)throw ve(pe,_e),P=J(Y.thrownErrors),Y.thrownErrors.length=0,P;if(nt!==null&&typeof nt=="object"&&typeof nt.then=="function"){var et=nt;return Et(function(){qe||st||(st=!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(tt,bt){qe=!0,et.then(function(yr){if(ve(pe,_e),_e===0){try{he(Pe),X(function(){return B(yr,tt,bt)})}catch(fa){Y.thrownErrors.push(fa)}if(0<Y.thrownErrors.length){var ca=J(Y.thrownErrors);Y.thrownErrors.length=0,bt(ca)}}else tt(yr)},function(yr){ve(pe,_e),0<Y.thrownErrors.length&&(yr=J(Y.thrownErrors),Y.thrownErrors.length=0),bt(yr)})}}}var it=nt;if(ve(pe,_e),_e===0&&(he(Pe),Pe.length!==0&&Et(function(){qe||st||(st=!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(() => ...)"))}),Y.actQueue=null),0<Y.thrownErrors.length)throw P=J(Y.thrownErrors),Y.thrownErrors.length=0,P;return{then:function(tt,bt){qe=!0,_e===0?(Y.actQueue=Pe,X(function(){return B(it,tt,bt)})):tt(it)}}},r.cache=function(P){return function(){return P.apply(null,arguments)}},r.captureOwnerStack=function(){var P=Y.getCurrentStack;return P===null?null:P()},r.cloneElement=function(P,pe,_e){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var Pe=me({},P.props),qe=P.key,nt=P._owner;if(pe!=null){var et;e:{if(Ee.call(pe,"ref")&&(et=Object.getOwnPropertyDescriptor(pe,"ref").get)&&et.isReactWarning){et=!1;break e}et=pe.ref!==void 0}et&&(nt=g()),O(pe)&&(p(pe.key),qe=""+pe.key);for(it in pe)!Ee.call(pe,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&pe.ref===void 0||(Pe[it]=pe[it])}var it=arguments.length-2;if(it===1)Pe.children=_e;else if(1<it){et=Array(it);for(var tt=0;tt<it;tt++)et[tt]=arguments[tt+2];Pe.children=et}for(Pe=N(P.type,qe,void 0,void 0,nt,Pe,P._debugStack,P._debugTask),qe=2;qe<arguments.length;qe++)nt=arguments[qe],M(nt)&&nt._store&&(nt._store.validated=1);return Pe},r.createContext=function(P){return P={$$typeof:k,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:ee,_context:P},P._currentRenderer=null,P._currentRenderer2=null,P},r.createElement=function(P,pe,_e){for(var Pe=2;Pe<arguments.length;Pe++){var qe=arguments[Pe];M(qe)&&qe._store&&(qe._store.validated=1)}if(Pe={},qe=null,pe!=null)for(tt in fe||!("__self"in pe)||"key"in pe||(fe=!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")),O(pe)&&(p(pe.key),qe=""+pe.key),pe)Ee.call(pe,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(Pe[tt]=pe[tt]);var nt=arguments.length-2;if(nt===1)Pe.children=_e;else if(1<nt){for(var et=Array(nt),it=0;it<nt;it++)et[it]=arguments[it+2];Object.freeze&&Object.freeze(et),Pe.children=et}if(P&&P.defaultProps)for(tt in nt=P.defaultProps,nt)Pe[tt]===void 0&&(Pe[tt]=nt[tt]);qe&&U(Pe,typeof P=="function"?P.displayName||P.name||"Unknown":P);var tt=1e4>Y.recentlyCreatedOwnerStacks++;return N(P,qe,void 0,void 0,g(),Pe,tt?Error("react-stack-top-frame"):Ce,tt?Re(v(P)):Ue)},r.createRef=function(){var P={current:null};return Object.seal(P),P},r.forwardRef=function(P){P!=null&&P.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof P!="function"?console.error("forwardRef requires a render function but was given %s.",P===null?"null":typeof P):P.length!==0&&P.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",P.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),P!=null&&P.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var pe={$$typeof:H,render:P},_e;return Object.defineProperty(pe,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Pe){_e=Pe,P.name||P.displayName||(Object.defineProperty(P,"name",{value:Pe}),P.displayName=Pe)}}),pe},r.isValidElement=M,r.lazy=function(P){return{$$typeof:L,_payload:{_status:-1,_result:P},_init:$}},r.memo=function(P,pe){P==null&&console.error("memo: The first argument must be a component. Instead received: %s",P===null?"null":typeof P),pe={$$typeof:Ae,type:P,compare:pe===void 0?null:pe};var _e;return Object.defineProperty(pe,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Pe){_e=Pe,P.name||P.displayName||(Object.defineProperty(P,"name",{value:Pe}),P.displayName=Pe)}}),pe},r.startTransition=function(P){var pe=Y.T,_e={};Y.T=_e,_e._updatedFibers=new Set;try{var Pe=P(),qe=Y.S;qe!==null&&qe(_e,Pe),typeof Pe=="object"&&Pe!==null&&typeof Pe.then=="function"&&Pe.then(V,Ye)}catch(nt){Ye(nt)}finally{pe===null&&_e._updatedFibers&&(P=_e._updatedFibers.size,_e._updatedFibers.clear(),10<P&&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.")),Y.T=pe}},r.unstable_useCacheRefresh=function(){return z().useCacheRefresh()},r.use=function(P){return z().use(P)},r.useActionState=function(P,pe,_e){return z().useActionState(P,pe,_e)},r.useCallback=function(P,pe){return z().useCallback(P,pe)},r.useContext=function(P){var pe=z();return P.$$typeof===ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),pe.useContext(P)},r.useDebugValue=function(P,pe){return z().useDebugValue(P,pe)},r.useDeferredValue=function(P,pe){return z().useDeferredValue(P,pe)},r.useEffect=function(P,pe,_e){P==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var Pe=z();if(typeof _e=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Pe.useEffect(P,pe)},r.useId=function(){return z().useId()},r.useImperativeHandle=function(P,pe,_e){return z().useImperativeHandle(P,pe,_e)},r.useInsertionEffect=function(P,pe){return P==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useInsertionEffect(P,pe)},r.useLayoutEffect=function(P,pe){return P==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useLayoutEffect(P,pe)},r.useMemo=function(P,pe){return z().useMemo(P,pe)},r.useOptimistic=function(P,pe){return z().useOptimistic(P,pe)},r.useReducer=function(P,pe,_e){return z().useReducer(P,pe,_e)},r.useRef=function(P){return z().useRef(P)},r.useState=function(P){return z().useState(P)},r.useSyncExternalStore=function(P,pe,_e){return z().useSyncExternalStore(P,pe,_e)},r.useTransition=function(){return z().useTransition()},r.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(ld,ld.exports)),ld.exports}var MF;function ig(){return MF||(MF=1,Av.exports=Ak()),Av.exports}var PF;function xk(){if(PF)return vm;PF=1;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-jsx-dev-runtime.development.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/return(function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===$?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case U:return"Fragment";case N:return"Profiler";case F:return"StrictMode";case K:return"Suspense";case oe:return"SuspenseList";case T:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case O:return"Portal";case M:return(_.displayName||"Context")+".Provider";case D:return(_._context.displayName||"Context")+".Consumer";case re:var ie=_.render;return _=_.displayName,_||(_=ie.displayName||ie.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case de:return ie=_.displayName||null,ie!==null?ie:e(_.type)||"Memo";case ue:ie=_._payload,_=_._init;try{return e(_(ie))}catch{}}return null}function r(_){return""+_}function i(_){try{r(_);var ie=!1}catch{ie=!0}if(ie){ie=console;var le=ie.error,ee=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return le.call(ie,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ee),r(_)}}function a(_){if(_===U)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===ue)return"<...>";try{var ie=e(_);return ie?"<"+ie+">":"<...>"}catch{return"<...>"}}function u(){var _=z.A;return _===null?null:_.getOwner()}function c(){return Error("react-stack-top-frame")}function f(_){if(V.call(_,"key")){var ie=Object.getOwnPropertyDescriptor(_,"key").get;if(ie&&ie.isReactWarning)return!1}return _.key!==void 0}function h(_,ie){function le(){ve||(ve=!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)",ie))}le.isReactWarning=!0,Object.defineProperty(_,"key",{get:le,configurable:!0})}function m(){var _=e(this.type);return B[_]||(B[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function p(_,ie,le,ee,k,H,Q,xe){return le=H.ref,_={$$typeof:S,type:_,key:ie,props:H,_owner:k},(le!==void 0?le:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:m}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function A(_,ie,le,ee,k,H,Q,xe){var Ae=ie.children;if(Ae!==void 0)if(ee)if(X(Ae)){for(ee=0;ee<Ae.length;ee++)v(Ae[ee]);Object.freeze&&Object.freeze(Ae)}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 v(Ae);if(V.call(ie,"key")){Ae=e(_);var L=Object.keys(ie).filter(function(j){return j!=="key"});ee=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",W[Ae+ee]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
35
|
+
let props = %s;
|
|
36
|
+
<%s {...props} />
|
|
37
|
+
React keys must be passed directly to JSX without using spread:
|
|
38
|
+
let props = %s;
|
|
39
|
+
<%s key={someKey} {...props} />`,ee,Ae,L,Ae),W[Ae+ee]=!0)}if(Ae=null,le!==void 0&&(i(le),Ae=""+le),f(ie)&&(i(ie.key),Ae=""+ie.key),"key"in ie){le={};for(var w in ie)w!=="key"&&(le[w]=ie[w])}else le=ie;return Ae&&h(le,typeof _=="function"?_.displayName||_.name||"Unknown":_),p(_,Ae,H,k,u(),le,Q,xe)}function v(_){typeof _=="object"&&_!==null&&_.$$typeof===S&&_._store&&(_._store.validated=1)}var g=ig(),S=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),M=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),z=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,X=Array.isArray,J=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(_){return _()}};var ve,B={},he=g.react_stack_bottom_frame.bind(g,c)(),ge=J(a(c)),W={};vm.Fragment=U,vm.jsxDEV=function(_,ie,le,ee,k,H){var Q=1e4>z.recentlyCreatedOwnerStacks++;return A(_,ie,le,ee,k,H,Q?Error("react-stack-top-frame"):he,Q?J(a(_)):ge)}})(),vm}var jF;function Ek(){return jF||(jF=1,vv.exports=xk()),vv.exports}var ne=Ek(),Me=ig(),Ev={exports:{}},td={},wv={exports:{}},Sv={},LF;function wk(){return LF||(LF=1,(function(e){/**
|
|
40
|
+
* @license React
|
|
41
|
+
* scheduler.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/(function(){function r(){if(K=!1,T){var B=e.unstable_now();V=B;var he=!0;try{e:{M=!1,re&&(re=!1,de($),$=-1),D=!0;var ge=N;try{t:{for(f(B),F=a(S);F!==null&&!(F.expirationTime>B&&m());){var W=F.callback;if(typeof W=="function"){F.callback=null,N=F.priorityLevel;var _=W(F.expirationTime<=B);if(B=e.unstable_now(),typeof _=="function"){F.callback=_,f(B),he=!0;break t}F===a(S)&&u(S),f(B)}else u(S);F=a(S)}if(F!==null)he=!0;else{var ie=a(O);ie!==null&&p(h,ie.startTime-B),he=!1}}break e}finally{F=null,N=ge,D=!1}he=void 0}}finally{he?X():T=!1}}}function i(B,he){var ge=B.length;B.push(he);e:for(;0<ge;){var W=ge-1>>>1,_=B[W];if(0<c(_,he))B[W]=he,B[ge]=_,ge=W;else break e}}function a(B){return B.length===0?null:B[0]}function u(B){if(B.length===0)return null;var he=B[0],ge=B.pop();if(ge!==he){B[0]=ge;e:for(var W=0,_=B.length,ie=_>>>1;W<ie;){var le=2*(W+1)-1,ee=B[le],k=le+1,H=B[k];if(0>c(ee,ge))k<_&&0>c(H,ee)?(B[W]=H,B[k]=ge,W=k):(B[W]=ee,B[le]=ge,W=le);else if(k<_&&0>c(H,ge))B[W]=H,B[k]=ge,W=k;else break e}}return he}function c(B,he){var ge=B.sortIndex-he.sortIndex;return ge!==0?ge:B.id-he.id}function f(B){for(var he=a(O);he!==null;){if(he.callback===null)u(O);else if(he.startTime<=B)u(O),he.sortIndex=he.expirationTime,i(S,he);else break;he=a(O)}}function h(B){if(re=!1,f(B),!M)if(a(S)!==null)M=!0,T||(T=!0,X());else{var he=a(O);he!==null&&p(h,he.startTime-B)}}function m(){return K?!0:!(e.unstable_now()-V<z)}function p(B,he){$=oe(function(){B(e.unstable_now())},he)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;e.unstable_now=function(){return A.now()}}else{var v=Date,g=v.now();e.unstable_now=function(){return v.now()-g}}var S=[],O=[],U=1,F=null,N=3,D=!1,M=!1,re=!1,K=!1,oe=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null,T=!1,$=-1,z=5,V=-1;if(typeof ue=="function")var X=function(){ue(r)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ve=J.port2;J.port1.onmessage=r,X=function(){ve.postMessage(null)}}else X=function(){oe(r,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_next=function(B){switch(N){case 1:case 2:case 3:var he=3;break;default:he=N}var ge=N;N=he;try{return B()}finally{N=ge}},e.unstable_requestPaint=function(){K=!0},e.unstable_runWithPriority=function(B,he){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ge=N;N=B;try{return he()}finally{N=ge}},e.unstable_scheduleCallback=function(B,he,ge){var W=e.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?W+ge:W):ge=W,B){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=ge+_,B={id:U++,callback:he,priorityLevel:B,startTime:ge,expirationTime:_,sortIndex:-1},ge>W?(B.sortIndex=ge,i(O,B),a(S)===null&&B===a(O)&&(re?(de($),$=-1):re=!0,p(h,ge-W))):(B.sortIndex=_,i(S,B),M||D||(M=!0,T||(T=!0,X()))),B},e.unstable_shouldYield=m,e.unstable_wrapCallback=function(B){var he=N;return function(){var ge=N;N=he;try{return B.apply(this,arguments)}finally{N=ge}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Sv)),Sv}var kF;function Sk(){return kF||(kF=1,wv.exports=wk()),wv.exports}var Cv={exports:{}},Jn={},$F;function Ck(){if($F)return Jn;$F=1;/**
|
|
48
|
+
* @license React
|
|
49
|
+
* react-dom.development.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/return(function(){function e(){}function r(v){return""+v}function i(v,g,S){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(O);var U=!1}catch{U=!0}return U&&(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&&O[Symbol.toStringTag]||O.constructor.name||"Object"),r(O)),{$$typeof:p,key:O==null?null:""+O,children:v,containerInfo:g,implementation:S}}function a(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function u(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function c(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function f(){var v=A.H;return v===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:
|
|
56
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
57
|
+
2. You might be breaking the Rules of Hooks
|
|
58
|
+
3. You might have more than one copy of React in the same app
|
|
59
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=ig(),m={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},p=Symbol.for("react.portal"),A=h.__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"),Jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,Jn.createPortal=function(v,g){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return i(v,g,null,S)},Jn.flushSync=function(v){var g=A.T,S=m.p;try{if(A.T=null,m.p=2,v)return v()}finally{A.T=g,m.p=S,m.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.")}},Jn.preconnect=function(v,g){typeof v=="string"&&v?g!=null&&typeof g!="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.",c(g)):g!=null&&typeof g.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.",u(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,m.d.C(v,g))},Jn.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.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`.",c(g)):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`.",c(g))}typeof v=="string"&&m.d.D(v)},Jn.preinit=function(v,g){if(typeof v=="string"&&v?g==null||typeof g!="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.",c(g)):g.as!=="style"&&g.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".',c(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&g&&typeof g.as=="string"){var S=g.as,O=a(S,g.crossOrigin),U=typeof g.integrity=="string"?g.integrity:void 0,F=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;S==="style"?m.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:O,integrity:U,fetchPriority:F}):S==="script"&&m.d.X(v,{crossOrigin:O,integrity:U,fetchPriority:F,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Jn.preinitModule=function(v,g){var S="";if(typeof v=="string"&&v||(S+=" The `href` argument encountered was "+u(v)+"."),g!==void 0&&typeof g!="object"?S+=" The `options` argument encountered was "+u(g)+".":g&&"as"in g&&g.as!=="script"&&(S+=" The `as` option encountered was "+c(g.as)+"."),S)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",S);else switch(S=g&&typeof g.as=="string"?g.as:"script",S){case"script":break;default:S=c(S),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)',S,v)}typeof v=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(S=a(g.as,g.crossOrigin),m.d.M(v,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&m.d.M(v))},Jn.preload=function(v,g){var S="";if(typeof v=="string"&&v||(S+=" The `href` argument encountered was "+u(v)+"."),g==null||typeof g!="object"?S+=" The `options` argument encountered was "+u(g)+".":typeof g.as=="string"&&g.as||(S+=" The `as` option encountered was "+u(g.as)+"."),S&&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',S),typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){S=g.as;var O=a(S,g.crossOrigin);m.d.L(v,S,{crossOrigin:O,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Jn.preloadModule=function(v,g){var S="";typeof v=="string"&&v||(S+=" The `href` argument encountered was "+u(v)+"."),g!==void 0&&typeof g!="object"?S+=" The `options` argument encountered was "+u(g)+".":g&&"as"in g&&typeof g.as!="string"&&(S+=" The `as` option encountered was "+u(g.as)+"."),S&&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',S),typeof v=="string"&&(g?(S=a(g.as,g.crossOrigin),m.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0})):m.d.m(v))},Jn.requestFormReset=function(v){m.d.r(v)},Jn.unstable_batchedUpdates=function(v,g){return v(g)},Jn.useFormState=function(v,g,S){return f().useFormState(v,g,S)},Jn.useFormStatus=function(){return f().useHostTransitionStatus()},Jn.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Jn}var qF;function z6(){return qF||(qF=1,Cv.exports=Ck()),Cv.exports}var HF;function Ik(){if(HF)return td;HF=1;/**
|
|
60
|
+
* @license React
|
|
61
|
+
* react-dom-client.development.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/return(function(){function e(t,n){for(t=t.memoizedState;t!==null&&0<n;)t=t.next,n--;return t}function r(t,n,o,s){if(o>=n.length)return s;var l=n[o],d=jn(t)?t.slice():gt({},t);return d[l]=r(t[l],n,o+1,s),d}function i(t,n,o){if(n.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<o.length-1;s++)if(n[s]!==o[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return a(t,n,o,0)}}function a(t,n,o,s){var l=n[s],d=jn(t)?t.slice():gt({},t);return s+1===n.length?(d[o[s]]=d[l],jn(d)?d.splice(l,1):delete d[l]):d[l]=a(t[l],n,o,s+1),d}function u(t,n,o){var s=n[o],l=jn(t)?t.slice():gt({},t);return o+1===n.length?(jn(l)?l.splice(s,1):delete l[s],l):(l[s]=u(t[s],n,o+1),l)}function c(){return!1}function f(){return null}function h(){}function m(){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 p(){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 A(){}function v(t){var n=[];return t.forEach(function(o){n.push(o)}),n.sort().join(", ")}function g(t,n,o,s){return new hj(t,n,o,s)}function S(t,n){t.context===Na&&(z0(t.current,2,n,t,null,null),Xu())}function O(t,n){if(oo!==null){var o=n.staleFamilies;n=n.updatedFamilies,nf(),ly(t.current,n,o),Xu()}}function U(t){oo=t}function F(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function N(t){var n=t,o=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(o=n.return),t=n.return;while(t)}return n.tag===3?o:null}function D(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function M(t){if(N(t)!==t)throw Error("Unable to find node on an unmounted component.")}function re(t){var n=t.alternate;if(!n){if(n=N(t),n===null)throw Error("Unable to find node on an unmounted component.");return n!==t?null:t}for(var o=t,s=n;;){var l=o.return;if(l===null)break;var d=l.alternate;if(d===null){if(s=l.return,s!==null){o=s;continue}break}if(l.child===d.child){for(d=l.child;d;){if(d===o)return M(l),t;if(d===s)return M(l),n;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==s.return)o=l,s=d;else{for(var x=!1,R=l.child;R;){if(R===o){x=!0,o=l,s=d;break}if(R===s){x=!0,s=l,o=d;break}R=R.sibling}if(!x){for(R=d.child;R;){if(R===o){x=!0,o=d,s=l;break}if(R===s){x=!0,s=d,o=l;break}R=R.sibling}if(!x)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(o.alternate!==s)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(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?t:n}function K(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=K(t),n!==null)return n;t=t.sibling}return null}function oe(t){return t===null||typeof t!="object"?null:(t=JR&&t[JR]||t["@@iterator"],typeof t=="function"?t:null)}function de(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===OL?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case rl:return"Fragment";case Z0:return"Profiler";case Cp:return"StrictMode";case W0:return"Suspense";case eb:return"SuspenseList";case tb:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case nl:return"Portal";case Ko:return(t.displayName||"Context")+".Provider";case J0:return(t._context.displayName||"Context")+".Consumer";case df:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ip:return n=t.displayName||null,n!==null?n:de(t.type)||"Memo";case kr:n=t._payload,t=t._init;try{return de(t(n))}catch{}}return null}function ue(t){return typeof t.tag=="number"?T(t):typeof t.name=="string"?t.name:null}function T(t){var n=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return(n.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(n);case 8:return n===Cp?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=t._debugInfo,n!=null){for(var o=n.length-1;0<=o;o--)if(typeof n[o].name=="string")return n[o].name}if(t.return!==null)return T(t.return)}return null}function $(t){return{current:t}}function z(t,n){0>Oi?console.error("Unexpected pop."):(n!==rb[Oi]&&console.error("Unexpected Fiber popped."),t.current=nb[Oi],nb[Oi]=null,rb[Oi]=null,Oi--)}function V(t,n,o){Oi++,nb[Oi]=t.current,rb[Oi]=o,t.current=n}function X(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function J(t,n){V(Ta,n,t),V(hf,t,t),V(Ia,null,t);var o=n.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?IR(n):$i;break;default:if(o=n.tagName,n=n.namespaceURI)n=IR(n),n=TR(n,o);else switch(o){case"svg":n=jl;break;case"math":n=dm;break;default:n=$i}}o=o.toLowerCase(),o=MC(null,o),o={context:n,ancestorInfo:o},z(Ia,t),V(Ia,o,t)}function ve(t){z(Ia,t),z(hf,t),z(Ta,t)}function B(){return X(Ia.current)}function he(t){t.memoizedState!==null&&V(Tp,t,t);var n=X(Ia.current),o=t.type,s=TR(n.context,o);o=MC(n.ancestorInfo,o),s={context:s,ancestorInfo:o},n!==s&&(V(hf,t,t),V(Ia,s,t))}function ge(t){hf.current===t&&(z(Ia,t),z(hf,t)),Tp.current===t&&(z(Tp,t),Zf._currentValue=nu)}function W(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function _(t){try{return ie(t),!1}catch{return!0}}function ie(t){return""+t}function le(t,n){if(_(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,W(t)),ie(t)}function ee(t,n){if(_(t))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.",n,W(t)),ie(t)}function k(t){if(_(t))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.",W(t)),ie(t)}function H(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.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{il=n.inject(t),Kn=n}catch(o){console.error("React instrumentation encountered an error: %s.",o)}return!!n.checkDCE}function Q(t){if(typeof ML=="function"&&PL(t),Kn&&typeof Kn.setStrictMode=="function")try{Kn.setStrictMode(il,t)}catch(n){Zo||(Zo=!0,console.error("React instrumentation encountered an error: %s",n))}}function xe(t){Ge=t}function Ae(){Ge!==null&&typeof Ge.markCommitStopped=="function"&&Ge.markCommitStopped()}function L(t){Ge!==null&&typeof Ge.markComponentRenderStarted=="function"&&Ge.markComponentRenderStarted(t)}function w(){Ge!==null&&typeof Ge.markComponentRenderStopped=="function"&&Ge.markComponentRenderStopped()}function j(t){Ge!==null&&typeof Ge.markRenderStarted=="function"&&Ge.markRenderStarted(t)}function G(){Ge!==null&&typeof Ge.markRenderStopped=="function"&&Ge.markRenderStopped()}function te(t,n){Ge!==null&&typeof Ge.markStateUpdateScheduled=="function"&&Ge.markStateUpdateScheduled(t,n)}function me(t){return t>>>=0,t===0?32:31-(jL(t)/LL|0)|0}function ye(t){if(t&1)return"SyncHydrationLane";if(t&2)return"Sync";if(t&4)return"InputContinuousHydration";if(t&8)return"InputContinuous";if(t&16)return"DefaultHydration";if(t&32)return"Default";if(t&128)return"TransitionHydration";if(t&4194048)return"Transition";if(t&62914560)return"Retry";if(t&67108864)return"SelectiveHydration";if(t&134217728)return"IdleHydration";if(t&268435456)return"Idle";if(t&536870912)return"Offscreen";if(t&1073741824)return"Deferred"}function E(t){var n=t&42;if(n!==0)return n;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&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."),t}}function y(t,n,o){var s=t.pendingLanes;if(s===0)return 0;var l=0,d=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var R=s&134217727;return R!==0?(s=R&~d,s!==0?l=E(s):(x&=R,x!==0?l=E(x):o||(o=R&~t,o!==0&&(l=E(o))))):(R=s&~d,R!==0?l=E(R):x!==0?l=E(x):o||(o=s&~t,o!==0&&(l=E(o)))),l===0?0:n!==0&&n!==l&&(n&d)===0&&(d=l&-l,o=n&-n,d>=o||d===32&&(o&4194048)!==0)?n:l}function b(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function I(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Y(){var t=Rp;return Rp<<=1,(Rp&4194048)===0&&(Rp=256),t}function Ee(){var t=Op;return Op<<=1,(Op&62914560)===0&&(Op=4194304),t}function Re(t){for(var n=[],o=0;31>o;o++)n.push(t);return n}function He(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fe(t,n,o,s,l,d){var x=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var R=t.entanglements,q=t.expirationTimes,Z=t.hiddenUpdates;for(o=x&~o;0<o;){var Se=31-ir(o),Fe=1<<Se;R[Se]=0,q[Se]=-1;var we=Z[Se];if(we!==null)for(Z[Se]=null,Se=0;Se<we.length;Se++){var Ne=we[Se];Ne!==null&&(Ne.lane&=-536870913)}o&=~Fe}s!==0&&ce(t,s,0),d!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=d&~(x&~n))}function ce(t,n,o){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-ir(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|o&4194090}function Ce(t,n){var o=t.entangledLanes|=n;for(t=t.entanglements;o;){var s=31-ir(o),l=1<<s;l&n|t[s]&n&&(t[s]|=n),o&=~l}}function Ue(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function je(t,n,o){if(So)for(t=t.pendingUpdatersLaneMap;0<o;){var s=31-ir(o),l=1<<s;t[s].add(n),o&=~l}}function We(t,n){if(So)for(var o=t.pendingUpdatersLaneMap,s=t.memoizedUpdaters;0<n;){var l=31-ir(n);t=1<<l,l=o[l],0<l.size&&(l.forEach(function(d){var x=d.alternate;x!==null&&s.has(x)||s.add(d)}),l.clear()),n&=~t}}function Ye(t){return t&=-t,no<t?Jo<t?(t&134217727)!==0?Ni:Fp:Jo:no}function rt(){var t=Bt.p;return t!==0?t:(t=window.event,t===void 0?Ni:GR(t.type))}function ot(t,n){var o=Bt.p;try{return Bt.p=t,n()}finally{Bt.p=o}}function lt(t){delete t[Xn],delete t[Er],delete t[ub],delete t[kL],delete t[$L]}function st(t){var n=t[Xn];if(n)return n;for(var o=t.parentNode;o;){if(n=o[Oa]||o[Xn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(t=BR(t);t!==null;){if(o=t[Xn])return o;t=BR(t)}return n}t=o,o=t.parentNode}return null}function yt(t){if(t=t[Xn]||t[Oa]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function Et(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function P(t){var n=t[WR];return n||(n=t[WR]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(t){t[pf]=!0}function _e(t,n){Pe(t,n),Pe(t+"Capture",n)}function Pe(t,n){Ps[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ps[t]=n;var o=t.toLowerCase();for(lb[o]=t,t==="onDoubleClick"&&(lb.ondblclick=t),t=0;t<n.length;t++)eO.add(n[t])}function qe(t,n){qL[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(t==="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`."),n.onChange||n.readOnly||n.disabled||n.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 nt(t){return Fi.call(nO,t)?!0:Fi.call(tO,t)?!1:HL.test(t)?nO[t]=!0:(tO[t]=!0,console.error("Invalid attribute name: `%s`",t),!1)}function et(t,n,o){if(nt(n)){if(!t.hasAttribute(n)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}return t=t.getAttribute(n),t===""&&o===!0?!0:(le(o,n),t===""+o?o:t)}}function it(t,n,o){if(nt(n))if(o===null)t.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}le(o,n),t.setAttribute(n,""+o)}}function tt(t,n,o){if(o===null)t.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}le(o,n),t.setAttribute(n,""+o)}}function bt(t,n,o,s){if(s===null)t.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}le(s,o),t.setAttributeNS(n,o,""+s)}}function yr(){}function ca(){if(mf===0){rO=console.log,oO=console.info,iO=console.warn,aO=console.error,sO=console.group,uO=console.groupCollapsed,lO=console.groupEnd;var t={configurable:!0,enumerable:!0,value:yr,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}mf++}function fa(){if(mf--,mf===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:gt({},t,{value:rO}),info:gt({},t,{value:oO}),warn:gt({},t,{value:iO}),error:gt({},t,{value:aO}),group:gt({},t,{value:sO}),groupCollapsed:gt({},t,{value:uO}),groupEnd:gt({},t,{value:lO})})}0>mf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Dn(t){if(cb===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);cb=n&&n[1]||"",cO=-1<o.stack.indexOf(`
|
|
68
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
69
|
+
`+cb+t+cO}function da(t,n){if(!t||fb)return"";var o=db.get(t);if(o!==void 0)return o;fb=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=Oe.H,Oe.H=null,ca();try{var l={DetermineComponentFrameRoot:function(){try{if(n){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(Ke){var Ne=Ke}Reflect.construct(t,[],we)}else{try{we.call()}catch(Ke){Ne=Ke}t.call(we.prototype)}}else{try{throw Error()}catch(Ke){Ne=Ke}(we=t())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(Ke){if(Ke&&Ne&&typeof Ke.stack=="string")return[Ke.stack,Ne.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=l.DetermineComponentFrameRoot(),R=x[0],q=x[1];if(R&&q){var Z=R.split(`
|
|
70
|
+
`),Se=q.split(`
|
|
71
|
+
`);for(x=d=0;d<Z.length&&!Z[d].includes("DetermineComponentFrameRoot");)d++;for(;x<Se.length&&!Se[x].includes("DetermineComponentFrameRoot");)x++;if(d===Z.length||x===Se.length)for(d=Z.length-1,x=Se.length-1;1<=d&&0<=x&&Z[d]!==Se[x];)x--;for(;1<=d&&0<=x;d--,x--)if(Z[d]!==Se[x]){if(d!==1||x!==1)do if(d--,x--,0>x||Z[d]!==Se[x]){var Fe=`
|
|
72
|
+
`+Z[d].replace(" at new "," at ");return t.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",t.displayName)),typeof t=="function"&&db.set(t,Fe),Fe}while(1<=d&&0<=x);break}}}finally{fb=!1,Oe.H=s,fa(),Error.prepareStackTrace=o}return Z=(Z=t?t.displayName||t.name:"")?Dn(Z):"",typeof t=="function"&&db.set(t,Z),Z}function ds(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame
|
|
73
|
+
`)&&(t=t.slice(29)),n=t.indexOf(`
|
|
74
|
+
`),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react_stack_bottom_frame"),n!==-1&&(n=t.lastIndexOf(`
|
|
75
|
+
`,n)),n!==-1)t=t.slice(0,n);else return"";return t}function ju(t){switch(t.tag){case 26:case 27:case 5:return Dn(t.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return da(t.type,!1);case 11:return da(t.type.render,!1);case 1:return da(t.type,!0);case 31:return Dn("Activity");default:return""}}function hs(t){try{var n="";do{n+=ju(t);var o=t._debugInfo;if(o)for(var s=o.length-1;0<=s;s--){var l=o[s];if(typeof l.name=="string"){var d=n,x=l.env,R=Dn(l.name+(x?" ["+x+"]":""));n=d+R}}t=t.return}while(t);return n}catch(q){return`
|
|
76
|
+
Error generating stack: `+q.message+`
|
|
77
|
+
`+q.stack}}function ps(t){return(t=t?t.displayName||t.name:"")?Dn(t):""}function yi(){if($r===null)return null;var t=$r._debugOwner;return t!=null?ue(t):null}function Lu(){if($r===null)return"";var t=$r;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=Dn(t.type);break;case 13:n+=Dn("Suspense");break;case 19:n+=Dn("SuspenseList");break;case 31:n+=Dn("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=ps(t.type));break;case 11:t._debugOwner||n!==""||(n+=ps(t.type.render))}for(;t;)if(typeof t.tag=="number"){var o=t;t=o._debugOwner;var s=o._debugStack;t&&s&&(typeof s!="string"&&(o._debugStack=s=ds(s)),s!==""&&(n+=`
|
|
78
|
+
`+s))}else if(t.debugStack!=null){var l=t.debugStack;(t=t.owner)&&l&&(n+=`
|
|
79
|
+
`+ds(l))}else break;var d=n}catch(x){d=`
|
|
80
|
+
Error generating stack: `+x.message+`
|
|
81
|
+
`+x.stack}return d}function Ze(t,n,o,s,l,d,x){var R=$r;ha(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,o,s,l,d,x)):n(o,s,l,d,x)}finally{ha(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ha(t){Oe.getCurrentStack=t===null?null:Lu,Wo=!1,$r=t}function Bn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return k(t),t;default:return""}}function ms(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ku(t){var n=ms(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);k(t[n]);var s=""+t[n];if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,d=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return l.call(this)},set:function(x){k(x),s=""+x,d.call(this,x)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(x){k(x),s=""+x},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function bi(t){t._valueTracker||(t._valueTracker=ku(t))}function gs(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return t&&(s=ms(t)?t.checked?"true":"false":t.value),t=s,t!==o?(n.setValue(t),!0):!1}function vi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Un(t){return t.replace(zL,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ys(t,n){n.checked===void 0||n.defaultChecked===void 0||dO||(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",yi()||"A component",n.type),dO=!0),n.value===void 0||n.defaultValue===void 0||fO||(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",yi()||"A component",n.type),fO=!0)}function pa(t,n,o,s,l,d,x,R){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?(le(x,"type"),t.type=x):t.removeAttribute("type"),n!=null?x==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Bn(n)):t.value!==""+Bn(n)&&(t.value=""+Bn(n)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),n!=null?ma(t,x,Bn(n)):o!=null?ma(t,x,Bn(o)):s!=null&&t.removeAttribute("value"),l==null&&d!=null&&(t.defaultChecked=!!d),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?(le(R,"name"),t.name=""+Bn(R)):t.removeAttribute("name")}function bs(t,n,o,s,l,d,x,R){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(le(d,"type"),t.type=d),n!=null||o!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;o=o!=null?""+Bn(o):"",n=n!=null?""+Bn(n):o,R||n===t.value||(t.value=n),t.defaultValue=n}s=s??l,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=R?t.checked:!!s,t.defaultChecked=!!s,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(le(x,"name"),t.name=x)}function ma(t,n,o){n==="number"&&vi(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function vs(t,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?X0.Children.forEach(n.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||pO||(pO=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||mO||(mO=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||hO||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),hO=!0)}function As(){var t=yi();return t?`
|
|
82
|
+
|
|
83
|
+
Check the render method of \``+t+"`.":""}function xo(t,n,o,s){if(t=t.options,n){n={};for(var l=0;l<o.length;l++)n["$"+o[l]]=!0;for(o=0;o<t.length;o++)l=n.hasOwnProperty("$"+t[o].value),t[o].selected!==l&&(t[o].selected=l),l&&s&&(t[o].defaultSelected=!0)}else{for(o=""+Bn(o),n=null,l=0;l<t.length;l++){if(t[l].value===o){t[l].selected=!0,s&&(t[l].defaultSelected=!0);return}n!==null||t[l].disabled||(n=t[l])}n!==null&&(n.selected=!0)}}function RC(t,n){for(t=0;t<yO.length;t++){var o=yO[t];if(n[o]!=null){var s=jn(n[o]);n.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,As()):!n.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,As())}}n.value===void 0||n.defaultValue===void 0||gO||(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"),gO=!0)}function OC(t,n){n.value===void 0||n.defaultValue===void 0||bO||(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",yi()||"A component"),bO=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function FC(t,n,o){if(n!=null&&(n=""+Bn(n),n!==t.value&&(t.value=n),o==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=o!=null?""+Bn(o):""}function NC(t,n,o,s){if(n==null){if(s!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}o=s}o==null&&(o=""),n=o}o=Bn(n),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s)}function DC(t,n){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-n?DC(t.children[0],n):t}function _r(t){return" "+" ".repeat(t)}function $u(t){return"+ "+" ".repeat(t)}function xs(t){return"- "+" ".repeat(t)}function BC(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function Nc(t,n){return vO.test(t)?(t=JSON.stringify(t),t.length>n-2?8>n?'{"..."}':"{"+t.slice(0,n-7)+'..."}':"{"+t+"}"):t.length>n?5>n?'{"..."}':t.slice(0,n-3)+"...":t}function Rh(t,n,o){var s=120-2*o;if(n===null)return $u(o)+Nc(t,s)+`
|
|
84
|
+
`;if(typeof n=="string"){for(var l=0;l<n.length&&l<t.length&&n.charCodeAt(l)===t.charCodeAt(l);l++);return l>s-8&&10<l&&(t="..."+t.slice(l-8),n="..."+n.slice(l-8)),$u(o)+Nc(t,s)+`
|
|
85
|
+
`+xs(o)+Nc(n,s)+`
|
|
86
|
+
`}return _r(o)+Nc(t,s)+`
|
|
87
|
+
`}function Wg(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(n,o){return o})}function Dc(t,n){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>n?5>n?'"..."':t.slice(0,n-4)+'..."':t;case"object":if(t===null)return"null";if(jn(t))return"[...]";if(t.$$typeof===Ca)return(n=de(t.type))?"<"+n+">":"<...>";var o=Wg(t);if(o==="Object"){o="",n-=2;for(var s in t)if(t.hasOwnProperty(s)){var l=JSON.stringify(s);if(l!=='"'+s+'"'&&(s=l),n-=s.length-2,l=Dc(t[s],15>n?n:15),n-=l.length,0>n){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+s+":"+l}return"{"+o+"}"}return o;case"function":return(n=t.displayName||t.name)?"function "+n:"function";default:return String(t)}}function qu(t,n){return typeof t!="string"||vO.test(t)?"{"+Dc(t,n-2)+"}":t.length>n-2?5>n?'"..."':'"'+t.slice(0,n-5)+'..."':'"'+t+'"'}function ey(t,n,o){var s=120-o.length-t.length,l=[],d;for(d in n)if(n.hasOwnProperty(d)&&d!=="children"){var x=qu(n[d],120-o.length-d.length-1);s-=d.length+x.length+2,l.push(d+"="+x)}return l.length===0?o+"<"+t+`>
|
|
88
|
+
`:0<s?o+"<"+t+" "+l.join(" ")+`>
|
|
89
|
+
`:o+"<"+t+`
|
|
90
|
+
`+o+" "+l.join(`
|
|
91
|
+
`+o+" ")+`
|
|
92
|
+
`+o+`>
|
|
93
|
+
`}function KP(t,n,o){var s="",l=gt({},n),d;for(d in t)if(t.hasOwnProperty(d)){delete l[d];var x=120-2*o-d.length-2,R=Dc(t[d],x);n.hasOwnProperty(d)?(x=Dc(n[d],x),s+=$u(o)+d+": "+R+`
|
|
94
|
+
`,s+=xs(o)+d+": "+x+`
|
|
95
|
+
`):s+=$u(o)+d+": "+R+`
|
|
96
|
+
`}for(var q in l)l.hasOwnProperty(q)&&(t=Dc(l[q],120-2*o-q.length-2),s+=xs(o)+q+": "+t+`
|
|
97
|
+
`);return s}function XP(t,n,o,s){var l="",d=new Map;for(Z in o)o.hasOwnProperty(Z)&&d.set(Z.toLowerCase(),Z);if(d.size===1&&d.has("children"))l+=ey(t,n,_r(s));else{for(var x in n)if(n.hasOwnProperty(x)&&x!=="children"){var R=120-2*(s+1)-x.length-1,q=d.get(x.toLowerCase());if(q!==void 0){d.delete(x.toLowerCase());var Z=n[x];q=o[q];var Se=qu(Z,R);R=qu(q,R),typeof Z=="object"&&Z!==null&&typeof q=="object"&&q!==null&&Wg(Z)==="Object"&&Wg(q)==="Object"&&(2<Object.keys(Z).length||2<Object.keys(q).length||-1<Se.indexOf("...")||-1<R.indexOf("..."))?l+=_r(s+1)+x+`={{
|
|
98
|
+
`+KP(Z,q,s+2)+_r(s+1)+`}}
|
|
99
|
+
`:(l+=$u(s+1)+x+"="+Se+`
|
|
100
|
+
`,l+=xs(s+1)+x+"="+R+`
|
|
101
|
+
`)}else l+=_r(s+1)+x+"="+qu(n[x],R)+`
|
|
102
|
+
`}d.forEach(function(Fe){if(Fe!=="children"){var we=120-2*(s+1)-Fe.length-1;l+=xs(s+1)+Fe+"="+qu(o[Fe],we)+`
|
|
103
|
+
`}}),l=l===""?_r(s)+"<"+t+`>
|
|
104
|
+
`:_r(s)+"<"+t+`
|
|
105
|
+
`+l+_r(s)+`>
|
|
106
|
+
`}return t=o.children,n=n.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(d="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(d=""+n),l+=Rh(d,""+t,s+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(l=t==null?l+Rh(""+n,null,s+1):l+Rh(""+n,void 0,s+1)),l}function UC(t,n){var o=BC(t);if(o===null){for(o="",t=t.child;t;)o+=UC(t,n),t=t.sibling;return o}return _r(n)+"<"+o+`>
|
|
107
|
+
`}function ty(t,n){var o=DC(t,n);if(o!==t&&(t.children.length!==1||t.children[0]!==o))return _r(n)+`...
|
|
108
|
+
`+ty(o,n+1);o="";var s=t.fiber._debugInfo;if(s)for(var l=0;l<s.length;l++){var d=s[l].name;typeof d=="string"&&(o+=_r(n)+"<"+d+`>
|
|
109
|
+
`,n++)}if(s="",l=t.fiber.pendingProps,t.fiber.tag===6)s=Rh(l,t.serverProps,n),n++;else if(d=BC(t.fiber),d!==null)if(t.serverProps===void 0){s=n;var x=120-2*s-d.length-2,R="";for(Z in l)if(l.hasOwnProperty(Z)&&Z!=="children"){var q=qu(l[Z],15);if(x-=Z.length+q.length+2,0>x){R+=" ...";break}R+=" "+Z+"="+q}s=_r(s)+"<"+d+R+`>
|
|
110
|
+
`,n++}else t.serverProps===null?(s=ey(d,l,$u(n)),n++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(s=XP(d,l,t.serverProps,n),n++);var Z="";for(l=t.fiber.child,d=0;l&&d<t.children.length;)x=t.children[d],x.fiber===l?(Z+=ty(x,n),d++):Z+=UC(l,n),l=l.sibling;for(l&&0<t.children.length&&(Z+=_r(n)+`...
|
|
111
|
+
`),l=t.serverTail,t.serverProps===null&&n--,t=0;t<l.length;t++)d=l[t],Z=typeof d=="string"?Z+(xs(n)+Nc(d,120-2*n)+`
|
|
112
|
+
`):Z+ey(d.type,d.props,xs(n));return o+s+Z}function ny(t){try{return`
|
|
113
|
+
|
|
114
|
+
`+ty(t,0)}catch{return""}}function _C(t,n,o){for(var s=n,l=null,d=0;s;)s===t&&(d=0),l={fiber:s,children:l!==null?[l]:[],serverProps:s===n?o:s===t?null:void 0,serverTail:[],distanceFromLeaf:d},d++,s=s.return;return l!==null?ny(l).replaceAll(/^[+-]/gm,">"):""}function MC(t,n){var o=gt({},t||xO),s={tag:n};return AO.indexOf(n)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),GL.indexOf(n)!==-1&&(o.pTagInButtonScope=null),VL.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=s,n==="form"&&(o.formTag=s),n==="a"&&(o.aTagInScope=s),n==="button"&&(o.buttonTagInScope=s),n==="nobr"&&(o.nobrTagInScope=s),n==="p"&&(o.pTagInButtonScope=s),n==="li"&&(o.listItemTagAutoclosing=s),(n==="dd"||n==="dt")&&(o.dlItemTagAutoclosing=s),n==="#document"||n==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=s),t!==null||n!=="#document"&&n!=="html"&&n!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function PC(t,n,o){switch(n){case"select":return t==="hr"||t==="option"||t==="optgroup"||t==="script"||t==="template"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":if(o)break;return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":if(!o)return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return QL.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return o||n===null;case"html":return o&&n==="#document"||n===null;case"body":return o&&(n==="#document"||n==="html")||n===null}return!0}function ZP(t,n){switch(t){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 n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function jC(t,n){for(;t;){switch(t.tag){case 5:case 26:case 27:if(t.type===n)return t}t=t.return}return null}function ry(t,n){n=n||xO;var o=n.current;if(n=(o=PC(t,o&&o.tag,n.implicitRootScope)?null:o)?null:ZP(t,n),n=o||n,!n)return!0;var s=n.tag;if(n=String(!!o)+"|"+t+"|"+s,Np[n])return!1;Np[n]=!0;var l=(n=$r)?jC(n.return,s):null,d=n!==null&&l!==null?_C(l,n,null):"",x="<"+t+">";return o?(o="",s==="table"&&t==="tr"&&(o+=" 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
|
|
115
|
+
This will cause a hydration error.%s`,x,s,o,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
116
|
+
This will cause a hydration error.%s`,x,s,d),n&&(t=n.return,l===null||t===null||l===t&&t._debugOwner===n._debugOwner||Ze(l,function(){console.error(`<%s> cannot contain a nested %s.
|
|
117
|
+
See this log for the ancestor stack trace.`,s,x)})),!1}function Oh(t,n,o){if(o||PC("#text",n,!1))return!0;if(o="#text|"+n,Np[o])return!1;Np[o]=!0;var s=(o=$r)?jC(o,n):null;return o=o!==null&&s!==null?_C(s,o,o.tag!==6?{children:null}:null):"",/\S/.test(t)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
118
|
+
This will cause a hydration error.%s`,n,o):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.
|
|
119
|
+
This will cause a hydration error.%s`,n,o),!1}function Bc(t,n){if(n){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=n;return}}t.textContent=n}function JP(t){return t.replace(XL,function(n,o){return o.toUpperCase()})}function LC(t,n,o){var s=n.indexOf("--")===0;s||(-1<n.indexOf("-")?al.hasOwnProperty(n)&&al[n]||(al[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,JP(n.replace(KL,"ms-")))):YL.test(n)?al.hasOwnProperty(n)&&al[n]||(al[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!SO.test(o)||pb.hasOwnProperty(o)&&pb[o]||(pb[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,o.replace(SO,""))),typeof o=="number"&&(isNaN(o)?CO||(CO=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(o)||IO||(IO=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),o==null||typeof o=="boolean"||o===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,o):typeof o!="number"||o===0||TO.has(n)?n==="float"?t.cssFloat=o:(ee(o,n),t[n]=(""+o).trim()):t[n]=o+"px"}function kC(t,n,o){if(n!=null&&typeof n!="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(n&&Object.freeze(n),t=t.style,o!=null){if(n){var s={};if(o){for(var l in o)if(o.hasOwnProperty(l)&&!n.hasOwnProperty(l))for(var d=hb[l]||[l],x=0;x<d.length;x++)s[d[x]]=l}for(var R in n)if(n.hasOwnProperty(R)&&(!o||o[R]!==n[R]))for(l=hb[R]||[R],d=0;d<l.length;d++)s[l[d]]=R;R={};for(var q in n)for(l=hb[q]||[q],d=0;d<l.length;d++)R[l[d]]=q;q={};for(var Z in s)if(l=s[Z],(d=R[Z])&&l!==d&&(x=l+","+d,!q[x])){q[x]=!0,x=console;var Se=n[l];x.error.call(x,"%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.",Se==null||typeof Se=="boolean"||Se===""?"Removing":"Updating",l,d)}}for(var Fe in o)!o.hasOwnProperty(Fe)||n!=null&&n.hasOwnProperty(Fe)||(Fe.indexOf("--")===0?t.setProperty(Fe,""):Fe==="float"?t.cssFloat="":t[Fe]="");for(var we in n)Z=n[we],n.hasOwnProperty(we)&&o[we]!==Z&&LC(t,we,Z)}else for(s in n)n.hasOwnProperty(s)&&LC(t,s,n[s])}function Uc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 $C(t){return ZL.get(t)||t}function WP(t,n){if(Fi.call(ul,n)&&ul[n])return!0;if(WL.test(n)){if(t="aria-"+n.slice(4).toLowerCase(),t=RO.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),ul[n]=!0;if(n!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,t),ul[n]=!0}if(JL.test(n)){if(t=n.toLowerCase(),t=RO.hasOwnProperty(t)?t:null,t==null)return ul[n]=!0,!1;n!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,t),ul[n]=!0)}return!0}function ej(t,n){var o=[],s;for(s in n)WP(t,s)||o.push(s);n=o.map(function(l){return"`"+l+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t)}function tj(t,n,o,s){if(Fi.call(ar,n)&&ar[n])return!0;var l=n.toLowerCase();if(l==="onfocusin"||l==="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."),ar[n]=!0;if(typeof o=="function"&&(t==="form"&&n==="action"||t==="input"&&n==="formAction"||t==="button"&&n==="formAction"))return!0;if(s!=null){if(t=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(n))return!0;if(s=t.hasOwnProperty(l)?t[l]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,s),ar[n]=!0;if(FO.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),ar[n]=!0}else if(FO.test(n))return e5.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),ar[n]=!0;if(t5.test(n)||n5.test(n))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ar[n]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ar[n]=!0;if(l==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),ar[n]=!0;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),ar[n]=!0;if(Bp.hasOwnProperty(l)){if(l=Bp[l],l!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,l),ar[n]=!0}else if(n!==l)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.",n,l),ar[n]=!0;switch(n){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 o){case"boolean":switch(n){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 l=n.toLowerCase().slice(0,5),l==="data-"||l==="aria-"?!0:(o?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()}.',o,n,n,o,n):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.',o,n,n,o,n,n,n),ar[n]=!0)}case"function":case"symbol":return ar[n]=!0,!1;case"string":if(o==="false"||o==="true"){switch(n){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}?",o,n,o==="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".',n,o),ar[n]=!0}}return!0}function nj(t,n,o){var s=[],l;for(l in n)tj(t,l,n[l],o)||s.push(l);n=s.map(function(d){return"`"+d+"`"}).join(", "),s.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 ",n,t):1<s.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 ",n,t)}function _c(t){return r5.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function oy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function qC(t){var n=yt(t);if(n&&(t=n.stateNode)){var o=t[Er]||null;e:switch(t=n.stateNode,n.type){case"input":if(pa(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=t;o.parentNode;)o=o.parentNode;for(le(n,"name"),o=o.querySelectorAll('input[name="'+Un(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==t&&s.form===t.form){var l=s[Er]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");pa(s,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(n=0;n<o.length;n++)s=o[n],s.form===t.form&&gs(s)}break e;case"textarea":FC(t,o.value,o.defaultValue);break e;case"select":n=o.value,n!=null&&xo(t,!!o.multiple,n,!1)}}}function HC(t,n,o){if(mb)return t(n,o);mb=!0;try{var s=t(n);return s}finally{if(mb=!1,(ll!==null||cl!==null)&&(Xu(),ll&&(n=ll,t=cl,cl=ll=null,qC(n),t)))for(n=0;n<t.length;n++)qC(t[n])}}function Mc(t,n){var o=t.stateNode;if(o===null)return null;var s=o[Er]||null;if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function zC(){if(Up)return Up;var t,n=yb,o=n.length,s,l="value"in Fa?Fa.value:Fa.textContent,d=l.length;for(t=0;t<o&&n[t]===l[t];t++);var x=o-t;for(s=1;s<=x&&n[o-s]===l[d-s];s++);return Up=l.slice(t,1<s?1-s:void 0)}function Fh(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Nh(){return!0}function VC(){return!1}function br(t){function n(o,s,l,d,x){this._reactName=o,this._targetInst=l,this.type=s,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(o=t[R],this[R]=o?o(d):d[R]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Nh:VC,this.isPropagationStopped=VC,this}return gt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Nh)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Nh)},persist:function(){},isPersistent:Nh}),n}function rj(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=g5[t])?!!n[t]:!1}function iy(){return rj}function GC(t,n){switch(t){case"keyup":return R5.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==UO;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QC(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function oj(t,n){switch(t){case"compositionend":return QC(n);case"keypress":return n.which!==MO?null:(jO=!0,PO);case"textInput":return t=n.data,t===PO&&jO?null:t;default:return null}}function ij(t,n){if(fl)return t==="compositionend"||!xb&&GC(t,n)?(t=zC(),Up=yb=Fa=null,fl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return _O&&n.locale!=="ko"?null:n.data;default:return null}}function YC(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!F5[t.type]:n==="textarea"}function aj(t){if(!ei)return!1;t="on"+t;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n=typeof n[t]=="function"),n}function KC(t,n,o,s){ll?cl?cl.push(s):cl=[s]:ll=s,n=mp(n,"onChange"),0<n.length&&(o=new _p("onChange","change",null,o,s),t.push({event:o,listeners:n}))}function sj(t){gR(t,0)}function Dh(t){var n=Et(t);if(gs(n))return t}function XC(t,n){if(t==="change")return n}function ZC(){xf&&(xf.detachEvent("onpropertychange",JC),Ef=xf=null)}function JC(t){if(t.propertyName==="value"&&Dh(Ef)){var n=[];KC(n,Ef,t,oy(t)),HC(sj,n)}}function uj(t,n,o){t==="focusin"?(ZC(),xf=n,Ef=o,xf.attachEvent("onpropertychange",JC)):t==="focusout"&&ZC()}function lj(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Dh(Ef)}function cj(t,n){if(t==="click")return Dh(n)}function fj(t,n){if(t==="input"||t==="change")return Dh(n)}function dj(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}function Pc(t,n){if(sr(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var l=o[s];if(!Fi.call(n,l)||!sr(t[l],n[l]))return!1}return!0}function WC(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function eI(t,n){var o=WC(t);t=0;for(var s;o;){if(o.nodeType===3){if(s=t+o.textContent.length,t<=n&&s>=n)return{node:o,offset:n-t};t=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=WC(o)}}function tI(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?tI(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function nI(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=vi(t.document);n instanceof t.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)t=n.contentWindow;else break;n=vi(t.document)}return n}function ay(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function rI(t,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wb||dl==null||dl!==vi(s)||(s=dl,"selectionStart"in s&&ay(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),wf&&Pc(wf,s)||(wf=s,s=mp(Eb,"onSelect"),0<s.length&&(n=new _p("onSelect","select",null,n,o),t.push({event:n,listeners:s}),n.target=dl)))}function Es(t,n){var o={};return o[t.toLowerCase()]=n.toLowerCase(),o["Webkit"+t]="webkit"+n,o["Moz"+t]="moz"+n,o}function ws(t){if(Sb[t])return Sb[t];if(!hl[t])return t;var n=hl[t],o;for(o in n)if(n.hasOwnProperty(o)&&o in kO)return Sb[t]=n[o];return t}function Eo(t,n){VO.set(t,n),_e(n,[t])}function Mr(t,n){if(typeof t=="object"&&t!==null){var o=Ib.get(t);return o!==void 0?o:(n={value:t,source:n,stack:hs(n)},Ib.set(t,n),n)}return{value:t,source:n,stack:hs(n)}}function Bh(){for(var t=pl,n=Tb=pl=0;n<t;){var o=ro[n];ro[n++]=null;var s=ro[n];ro[n++]=null;var l=ro[n];ro[n++]=null;var d=ro[n];if(ro[n++]=null,s!==null&&l!==null){var x=s.pending;x===null?l.next=l:(l.next=x.next,x.next=l),s.pending=l}d!==0&&oI(o,l,d)}}function Uh(t,n,o,s){ro[pl++]=t,ro[pl++]=n,ro[pl++]=o,ro[pl++]=s,Tb|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function sy(t,n,o,s){return Uh(t,n,o,s),_h(t)}function vr(t,n){return Uh(t,null,null,n),_h(t)}function oI(t,n,o){t.lanes|=o;var s=t.alternate;s!==null&&(s.lanes|=o);for(var l=!1,d=t.return;d!==null;)d.childLanes|=o,s=d.alternate,s!==null&&(s.childLanes|=o),d.tag===22&&(t=d.stateNode,t===null||t._visibility&Pp||(l=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,l&&n!==null&&(l=31-ir(o),t=d.hiddenUpdates,s=t[l],s===null?t[l]=[n]:s.push(n),n.lane=o|536870912),d):null}function _h(t){if(Vf>W5)throw Zs=Vf=0,Gf=rv=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.");Zs>ek&&(Zs=0,Gf=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.")),t.alternate===null&&(t.flags&4098)!==0&&lR(t);for(var n=t,o=n.return;o!==null;)n.alternate===null&&(n.flags&4098)!==0&&lR(t),n=o,o=n.return;return n.tag===3?n.stateNode:null}function Ss(t){if(oo===null)return t;var n=oo(t);return n===void 0?t:n.current}function uy(t){if(oo===null)return t;var n=oo(t);return n===void 0?t!=null&&typeof t.render=="function"&&(n=Ss(t.render),t.render!==n)?(n={$$typeof:df,render:n},t.displayName!==void 0&&(n.displayName=t.displayName),n):t:n.current}function iI(t,n){if(oo===null)return!1;var o=t.elementType;n=n.type;var s=!1,l=typeof n=="object"&&n!==null?n.$$typeof:null;switch(t.tag){case 1:typeof n=="function"&&(s=!0);break;case 0:(typeof n=="function"||l===kr)&&(s=!0);break;case 11:(l===df||l===kr)&&(s=!0);break;case 14:case 15:(l===Ip||l===kr)&&(s=!0);break;default:return!1}return!!(s&&(t=oo(o),t!==void 0&&t===oo(n)))}function aI(t){oo!==null&&typeof WeakSet=="function"&&(ml===null&&(ml=new WeakSet),ml.add(t))}function ly(t,n,o){var s=t.alternate,l=t.child,d=t.sibling,x=t.tag,R=t.type,q=null;switch(x){case 0:case 15:case 1:q=R;break;case 11:q=R.render}if(oo===null)throw Error("Expected resolveFamily to be set during hot reload.");var Z=!1;R=!1,q!==null&&(q=oo(q),q!==void 0&&(o.has(q)?R=!0:n.has(q)&&(x===1?R=!0:Z=!0))),ml!==null&&(ml.has(t)||s!==null&&ml.has(s))&&(R=!0),R&&(t._debugNeedsRemount=!0),(R||Z)&&(s=vr(t,2),s!==null&&on(s,t,2)),l===null||R||ly(l,n,o),d!==null&&ly(d,n,o)}function hj(t,n,o,s){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,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,QO||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function cy(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ai(t,n){var o=t.alternate;switch(o===null?(o=g(t.tag,n,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o._debugOwner=t._debugOwner,o._debugStack=t._debugStack,o._debugTask=t._debugTask,o._debugHookTypes=t._debugHookTypes,o.alternate=t,t.alternate=o):(o.pendingProps=n,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,n=t.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o.selfBaseDuration=t.selfBaseDuration,o.treeBaseDuration=t.treeBaseDuration,o._debugInfo=t._debugInfo,o._debugNeedsRemount=t._debugNeedsRemount,o.tag){case 0:case 15:o.type=Ss(t.type);break;case 1:o.type=Ss(t.type);break;case 11:o.type=uy(t.type)}return o}function sI(t,n){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,n=o.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},t.selfBaseDuration=o.selfBaseDuration,t.treeBaseDuration=o.treeBaseDuration),t}function fy(t,n,o,s,l,d){var x=0,R=t;if(typeof t=="function")cy(t)&&(x=1),R=Ss(R);else if(typeof t=="string")x=B(),x=hL(t,o,x)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case tb:return n=g(31,o,n,l),n.elementType=tb,n.lanes=d,n;case rl:return Cs(o.children,l,d,n);case Cp:x=8,l|=Zn,l|=Co;break;case Z0:return t=o,s=l,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),n=g(12,t,n,s|Ln),n.elementType=Z0,n.lanes=d,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case W0:return n=g(13,o,n,l),n.elementType=W0,n.lanes=d,n;case eb:return n=g(19,o,n,l),n.elementType=eb,n.lanes=d,n;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case TL:case Ko:x=10;break e;case J0:x=9;break e;case df:x=11,R=uy(R);break e;case Ip:x=14;break e;case kr:x=16,R=null;break e}R="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?o="null":jn(t)?o="array":t!==void 0&&t.$$typeof===Ca?(o="<"+(de(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):o=typeof t,(x=s?ue(s):null)&&(R+=`
|
|
120
|
+
|
|
121
|
+
Check the render method of \``+x+"`."),x=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+R)),R=null}return n=g(x,o,n,l),n.elementType=t,n.type=R,n.lanes=d,n._debugOwner=s,n}function Mh(t,n,o){return n=fy(t.type,t.key,t.props,t._owner,n,o),n._debugOwner=t._owner,n._debugStack=t._debugStack,n._debugTask=t._debugTask,n}function Cs(t,n,o,s){return t=g(7,t,s,n),t.lanes=o,t}function dy(t,n,o){return t=g(6,t,null,n),t.lanes=o,t}function hy(t,n,o){return n=g(4,t.children!==null?t.children:[],t.key,n),n.lanes=o,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Is(t,n){Ts(),gl[yl++]=Lp,gl[yl++]=jp,jp=t,Lp=n}function uI(t,n,o){Ts(),io[ao++]=Bi,io[ao++]=Ui,io[ao++]=Ls,Ls=t;var s=Bi;t=Ui;var l=32-ir(s)-1;s&=~(1<<l),o+=1;var d=32-ir(n)+l;if(30<d){var x=l-l%5;d=(s&(1<<x)-1).toString(32),s>>=x,l-=x,Bi=1<<32-ir(n)+l|o<<l|s,Ui=d+t}else Bi=1<<d|o<<l|s,Ui=t}function py(t){Ts(),t.return!==null&&(Is(t,1),uI(t,1,0))}function my(t){for(;t===jp;)jp=gl[--yl],gl[yl]=null,Lp=gl[--yl],gl[yl]=null;for(;t===Ls;)Ls=io[--ao],io[ao]=null,Ui=io[--ao],io[ao]=null,Bi=io[--ao],io[ao]=null}function Ts(){Nt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Rs(t,n){if(t.return===null){if(so===null)so={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(so.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");so.distanceFromLeaf>n&&(so.distanceFromLeaf=n)}return so}var o=Rs(t.return,n+1).children;return 0<o.length&&o[o.length-1].fiber===t?(o=o[o.length-1],o.distanceFromLeaf>n&&(o.distanceFromLeaf=n),o):(n={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},o.push(n),n)}function gy(t,n){_i||(t=Rs(t,0),t.serverProps=null,n!==null&&(n=FR(n),t.serverTail.push(n)))}function Os(t){var n="",o=so;throw o!==null&&(so=null,n=ny(o)),kc(Mr(Error(`Hydration failed because the server rendered 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:
|
|
122
|
+
|
|
123
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
124
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
125
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
126
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
127
|
+
- Invalid HTML tag nesting.
|
|
128
|
+
|
|
129
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
130
|
+
|
|
131
|
+
https://react.dev/link/hydration-mismatch`+n),t)),Rb}function lI(t){var n=t.stateNode,o=t.type,s=t.memoizedProps;switch(n[Xn]=t,n[Er]=s,B0(o,s),o){case"dialog":wt("cancel",n),wt("close",n);break;case"iframe":case"object":case"embed":wt("load",n);break;case"video":case"audio":for(o=0;o<Qf.length;o++)wt(Qf[o],n);break;case"source":wt("error",n);break;case"img":case"image":case"link":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"input":qe("input",s),wt("invalid",n),ys(n,s),bs(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),bi(n);break;case"option":vs(n,s);break;case"select":qe("select",s),wt("invalid",n),RC(n,s);break;case"textarea":qe("textarea",s),wt("invalid",n),OC(n,s),NC(n,s.value,s.defaultValue,s.children),bi(n)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||s.suppressHydrationWarning===!0||AR(n.textContent,o)?(s.popover!=null&&(wt("beforetoggle",n),wt("toggle",n)),s.onScroll!=null&&wt("scroll",n),s.onScrollEnd!=null&&wt("scrollend",n),s.onClick!=null&&(n.onclick=gp),n=!0):n=!1,n||Os(t)}function cI(t){for(ur=t.return;ur;)switch(ur.tag){case 5:case 13:ti=!1;return;case 27:case 3:ti=!0;return;default:ur=ur.return}}function jc(t){if(t!==ur)return!1;if(!Nt)return cI(t),Nt=!0,!1;var n=t.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||j0(t.type,t.memoizedProps)),o=!o),o&&Wt){for(o=Wt;o;){var s=Rs(t,0),l=FR(o);s.serverTail.push(l),o=l.type==="Suspense"?DR(o):to(o.nextSibling)}Os(t)}if(cI(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Wt=DR(t)}else n===27?(n=Wt,Sa(t.type)?(t=mv,mv=null,Wt=t):Wt=n):Wt=ur?to(t.stateNode.nextSibling):null;return!0}function Lc(){Wt=ur=null,_i=Nt=!1}function fI(){var t=ks;return t!==null&&(fr===null?fr=t:fr.push.apply(fr,t),ks=null),t}function kc(t){ks===null?ks=[t]:ks.push(t)}function dI(){var t=so;if(t!==null){so=null;for(var n=ny(t);0<t.children.length;)t=t.children[0];Ze(t.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:
|
|
132
|
+
|
|
133
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
134
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
135
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
136
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
137
|
+
- Invalid HTML tag nesting.
|
|
138
|
+
|
|
139
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
140
|
+
|
|
141
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function Ph(){bl=kp=null,vl=!1}function ga(t,n,o){V(Ob,n._currentValue,t),n._currentValue=o,V(Fb,n._currentRenderer,t),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==ZO&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=ZO}function xi(t,n){t._currentValue=Ob.current;var o=Fb.current;z(Fb,n),t._currentRenderer=o,z(Ob,n)}function yy(t,n,o){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===o)break;t=t.return}t!==o&&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 by(t,n,o,s){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var d=l.dependencies;if(d!==null){var x=l.child;d=d.firstContext;e:for(;d!==null;){var R=d;d=l;for(var q=0;q<n.length;q++)if(R.context===n[q]){d.lanes|=o,R=d.alternate,R!==null&&(R.lanes|=o),yy(d.return,o,t),s||(x=null);break e}d=R.next}}else if(l.tag===18){if(x=l.return,x===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");x.lanes|=o,d=x.alternate,d!==null&&(d.lanes|=o),yy(x,o,t),x=null}else x=l.child;if(x!==null)x.return=l;else for(x=l;x!==null;){if(x===t){x=null;break}if(l=x.sibling,l!==null){l.return=x.return,x=l;break}x=x.return}l=x}}function $c(t,n,o,s){t=null;for(var l=n,d=!1;l!==null;){if(!d){if((l.flags&524288)!==0)d=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var x=l.alternate;if(x===null)throw Error("Should have a current fiber. This is a bug in React.");if(x=x.memoizedProps,x!==null){var R=l.type;sr(l.pendingProps.value,x.value)||(t!==null?t.push(R):t=[R])}}else if(l===Tp.current){if(x=l.alternate,x===null)throw Error("Should have a current fiber. This is a bug in React.");x.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Zf):t=[Zf])}l=l.return}t!==null&&by(n,t,o,s),n.flags|=262144}function jh(t){for(t=t.firstContext;t!==null;){if(!sr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fs(t){kp=t,bl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Kt(t){return vl&&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()."),hI(kp,t)}function Lh(t,n){return kp===null&&Fs(t),hI(t,n)}function hI(t,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},bl===null){if(t===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().");bl=n,t.dependencies={lanes:0,firstContext:n,_debugThenableState:null},t.flags|=524288}else bl=bl.next=n;return o}function vy(){return{controller:new j5,data:new Map,refCount:0}}function Ns(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function qc(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&L5(k5,function(){t.controller.abort()})}function Ei(){var t=$s;return $s=0,t}function kh(t){var n=$s;return $s=t,n}function Hc(t){var n=$s;return $s+=t,n}function Ay(t){wr=Al(),0>t.actualStartTime&&(t.actualStartTime=wr)}function xy(t){if(0<=wr){var n=Al()-wr;t.actualDuration+=n,t.selfBaseDuration=n,wr=-1}}function pI(t){if(0<=wr){var n=Al()-wr;t.actualDuration+=n,wr=-1}}function qo(){if(0<=wr){var t=Al()-wr;wr=-1,$s+=t}}function Ho(){wr=Al()}function $h(t){for(var n=t.child;n;)t.actualDuration+=n.actualDuration,n=n.sibling}function pj(t,n){if(Sf===null){var o=Sf=[];Nb=0,qs=O0(),xl={status:"pending",value:void 0,then:function(s){o.push(s)}}}return Nb++,n.then(mI,mI),n}function mI(){if(--Nb===0&&Sf!==null){xl!==null&&(xl.status="fulfilled");var t=Sf;Sf=null,qs=0,xl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function mj(t,n){var o=[],s={status:"pending",value:null,reason:null,then:function(l){o.push(l)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var l=0;l<o.length;l++)(0,o[l])(n)},function(l){for(s.status="rejected",s.reason=l,l=0;l<o.length;l++)(0,o[l])(void 0)}),s}function Ey(){var t=Hs.current;return t!==null?t:Ht.pooledCache}function qh(t,n){n===null?V(Hs,Hs.current,t):V(Hs,n.pool,t)}function gI(){var t=Ey();return t===null?null:{parent:An._currentValue,pool:t}}function yI(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function bI(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Hh(){}function vI(t,n,o){Oe.actQueue!==null&&(Oe.didUsePromise=!0);var s=t.thenables;switch(o=s[o],o===void 0?s.push(n):o!==n&&(t.didWarnAboutUncachedPromise||(t.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.")),n.then(Hh,Hh),n=o),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,xI(t),t;default:if(typeof n.status=="string")n.then(Hh,Hh);else{if(t=Ht,t!==null&&100<t.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.");t=n,t.status="pending",t.then(function(l){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=l}},function(l){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,xI(t),t}throw Df=n,Gp=!0,Nf}}function AI(){if(Df===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Df;return Df=null,Gp=!1,t}function xI(t){if(t===Nf||t===Vp)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 wy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sy(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ya(t){return{lane:t,tag:n3,payload:null,callback:null,next:null}}function ba(t,n,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,Ub===s&&!i3){var l=T(t);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.
|
|
142
|
+
|
|
143
|
+
Please update the following component: %s`,l),i3=!0}return(Ut&cr)!==qr?(l=s.pending,l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n,n=_h(t),oI(t,null,o),n):(Uh(t,s,n,o),_h(t))}function zc(t,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,o|=s,n.lanes=o,Ce(t,o)}}function zh(t,n){var o=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var l=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?l=d=x:d=d.next=x,o=o.next}while(o!==null);d===null?l=d=n:d=d.next=n}else l=d=n;o={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=n:t.next=n,o.lastBaseUpdate=n}function Vc(){if(_b){var t=xl;if(t!==null)throw t}}function Gc(t,n,o,s){_b=!1;var l=t.updateQueue;Da=!1,Ub=l.shared;var d=l.firstBaseUpdate,x=l.lastBaseUpdate,R=l.shared.pending;if(R!==null){l.shared.pending=null;var q=R,Z=q.next;q.next=null,x===null?d=Z:x.next=Z,x=q;var Se=t.alternate;Se!==null&&(Se=Se.updateQueue,R=Se.lastBaseUpdate,R!==x&&(R===null?Se.firstBaseUpdate=Z:R.next=Z,Se.lastBaseUpdate=q))}if(d!==null){var Fe=l.baseState;x=0,Se=Z=q=null,R=d;do{var we=R.lane&-536870913,Ne=we!==R.lane;if(Ne?(xt&we)===we:(s&we)===we){we!==0&&we===qs&&(_b=!0),Se!==null&&(Se=Se.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{we=t;var Ke=R,ut=n,zt=o;switch(Ke.tag){case r3:if(Ke=Ke.payload,typeof Ke=="function"){vl=!0;var St=Ke.call(zt,Fe,ut);if(we.mode&Zn){Q(!0);try{Ke.call(zt,Fe,ut)}finally{Q(!1)}}vl=!1,Fe=St;break e}Fe=Ke;break e;case Bb:we.flags=we.flags&-65537|128;case n3:if(St=Ke.payload,typeof St=="function"){if(vl=!0,Ke=St.call(zt,Fe,ut),we.mode&Zn){Q(!0);try{St.call(zt,Fe,ut)}finally{Q(!1)}}vl=!1}else Ke=St;if(Ke==null)break e;Fe=gt({},Fe,Ke);break e;case o3:Da=!0}}we=R.callback,we!==null&&(t.flags|=64,Ne&&(t.flags|=8192),Ne=l.callbacks,Ne===null?l.callbacks=[we]:Ne.push(we))}else Ne={lane:we,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Se===null?(Z=Se=Ne,q=Fe):Se=Se.next=Ne,x|=we;if(R=R.next,R===null){if(R=l.shared.pending,R===null)break;Ne=R,R=Ne.next,Ne.next=null,l.lastBaseUpdate=Ne,l.shared.pending=null}}while(!0);Se===null&&(q=Fe),l.baseState=q,l.firstBaseUpdate=Z,l.lastBaseUpdate=Se,d===null&&(l.shared.lanes=0),Ma|=x,t.lanes=x,t.memoizedState=Fe}Ub=null}function EI(t,n){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(n)}function gj(t,n){var o=t.shared.hiddenCallbacks;if(o!==null)for(t.shared.hiddenCallbacks=null,t=0;t<o.length;t++)EI(o[t],n)}function wI(t,n){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)EI(o[t],n)}function SI(t,n){var o=oi;V(Qp,o,t),V(El,n,t),oi=o|n.baseLanes}function Cy(t){V(Qp,oi,t),V(El,El.current,t)}function Iy(t){oi=Qp.current,z(El,t),z(Qp,t)}function At(){var t=Te;co===null?co=[t]:co.push(t)}function Le(){var t=Te;if(co!==null&&(Pi++,co[Pi]!==t)){var n=T(ct);if(!a3.has(n)&&(a3.add(n),co!==null)){for(var o="",s=0;s<=Pi;s++){var l=co[s],d=s===Pi?t:l;for(l=s+1+". "+l;30>l.length;)l+=" ";l+=d+`
|
|
144
|
+
`,o+=l}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
|
|
145
|
+
|
|
146
|
+
Previous render Next render
|
|
147
|
+
------------------------------------------------------
|
|
148
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
149
|
+
`,n,o)}}}function Hu(t){t==null||jn(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Te,typeof t)}function Vh(){var t=T(ct);u3.has(t)||(u3.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function rn(){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:
|
|
150
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
151
|
+
2. You might be breaking the Rules of Hooks
|
|
152
|
+
3. You might have more than one copy of React in the same app
|
|
153
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ty(t,n){if(Uf)return!1;if(n===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.",Te),!1;t.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
154
|
+
|
|
155
|
+
Previous: %s
|
|
156
|
+
Incoming: %s`,Te,"["+n.join(", ")+"]","["+t.join(", ")+"]");for(var o=0;o<n.length&&o<t.length;o++)if(!sr(t[o],n[o]))return!1;return!0}function Ry(t,n,o,s,l,d){Ba=d,ct=n,co=t!==null?t._debugHookTypes:null,Pi=-1,Uf=t!==null&&t.type!==n.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(d=T(ct),Mb.has(d)||(Mb.add(d),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.",d===null?"An unknown Component":"<"+d+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Oe.H=t!==null&&t.memoizedState!==null?jb:co!==null?l3:Pb,Vs=d=(n.mode&Zn)!==Qt;var x=Lb(o,s,l);if(Vs=!1,Sl&&(x=Oy(n,o,s,l)),d){Q(!0);try{x=Oy(n,o,s,l)}finally{Q(!1)}}return CI(t,n),x}function CI(t,n){n._debugHookTypes=co,n.dependencies===null?Mi!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Mi}):n.dependencies._debugThenableState=Mi,Oe.H=Xp;var o=$t!==null&&$t.next!==null;if(Ba=0,co=Te=hn=$t=ct=null,Pi=-1,t!==null&&(t.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Yp=!1,Bf=0,Mi=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Cn||(t=t.dependencies,t!==null&&jh(t)&&(Cn=!0)),Gp?(Gp=!1,t=!0):t=!1,t&&(n=T(n)||"Unknown",s3.has(n)||Mb.has(n)||(s3.add(n),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 Oy(t,n,o,s){ct=t;var l=0;do{if(Sl&&(Mi=null),Bf=0,Sl=!1,l>=q5)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Uf=!1,hn=$t=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Pi=-1,Oe.H=c3,d=Lb(n,o,s)}while(Sl);return d}function yj(){var t=Oe.H,n=t.useState()[0];return n=typeof n.then=="function"?Qc(n):n,t=t.useState()[0],($t!==null?$t.memoizedState:null)!==t&&(ct.flags|=1024),n}function Fy(){var t=Kp!==0;return Kp=0,t}function Ny(t,n,o){n.updateQueue=t.updateQueue,n.flags=(n.mode&Co)!==Qt?n.flags&-402655237:n.flags&-2053,t.lanes&=~o}function Dy(t){if(Yp){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Yp=!1}Ba=0,co=hn=$t=ct=null,Pi=-1,Te=null,Sl=!1,Bf=Kp=0,Mi=null}function Ar(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?ct.memoizedState=hn=t:hn=hn.next=t,hn}function Mt(){if($t===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=$t.next;var n=hn===null?ct.memoizedState:hn.next;if(n!==null)hn=n,$t=t;else{if(t===null)throw ct.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.");$t=t,t={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},hn===null?ct.memoizedState=hn=t:hn=hn.next=t}return hn}function By(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qc(t){var n=Bf;return Bf+=1,Mi===null&&(Mi=yI()),t=vI(Mi,t,n),n=ct,(hn===null?n.memoizedState:hn.next)===null&&(n=n.alternate,Oe.H=n!==null&&n.memoizedState!==null?jb:Pb),t}function va(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Qc(t);if(t.$$typeof===Ko)return Kt(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function Ds(t){var n=null,o=ct.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var s=ct.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(l){return l.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=By(),ct.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0||Uf)for(o=n.data[n.index]=Array(t),s=0;s<t;s++)o[s]=RL;else o.length!==t&&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.",o.length,t);return n.index++,o}function wo(t,n){return typeof n=="function"?n(t):n}function Uy(t,n,o){var s=Ar();if(o!==void 0){var l=o(n);if(Vs){Q(!0);try{o(n)}finally{Q(!1)}}}else l=n;return s.memoizedState=s.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},s.queue=t,t=t.dispatch=xj.bind(null,ct,t),[s.memoizedState,t]}function zu(t){var n=Mt();return _y(n,$t,t)}function _y(t,n,o){var s=t.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=o;var l=t.baseQueue,d=s.pending;if(d!==null){if(l!==null){var x=l.next;l.next=d.next,d.next=x}n.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=l=d,s.pending=null}if(d=t.baseState,l===null)t.memoizedState=d;else{n=l.next;var R=x=null,q=null,Z=n,Se=!1;do{var Fe=Z.lane&-536870913;if(Fe!==Z.lane?(xt&Fe)===Fe:(Ba&Fe)===Fe){var we=Z.revertLane;if(we===0)q!==null&&(q=q.next={lane:0,revertLane:0,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),Fe===qs&&(Se=!0);else if((Ba&we)===we){Z=Z.next,we===qs&&(Se=!0);continue}else Fe={lane:0,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},q===null?(R=q=Fe,x=d):q=q.next=Fe,ct.lanes|=we,Ma|=we;Fe=Z.action,Vs&&o(d,Fe),d=Z.hasEagerState?Z.eagerState:o(d,Fe)}else we={lane:Fe,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},q===null?(R=q=we,x=d):q=q.next=we,ct.lanes|=Fe,Ma|=Fe;Z=Z.next}while(Z!==null&&Z!==n);if(q===null?x=d:q.next=R,!sr(d,t.memoizedState)&&(Cn=!0,Se&&(o=xl,o!==null)))throw o;t.memoizedState=d,t.baseState=x,t.baseQueue=q,s.lastRenderedState=d}return l===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Yc(t){var n=Mt(),o=n.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=t;var s=o.dispatch,l=o.pending,d=n.memoizedState;if(l!==null){o.pending=null;var x=l=l.next;do d=t(d,x.action),x=x.next;while(x!==l);sr(d,n.memoizedState)||(Cn=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),o.lastRenderedState=d}return[d,s]}function My(t,n,o){var s=ct,l=Ar();if(Nt){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=o();wl||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),wl=!0)}else{if(d=n(),wl||(o=n(),sr(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),wl=!0)),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(xt&124)!==0||II(s,n,d)}return l.memoizedState=d,o={value:d,getSnapshot:n},l.queue=o,Xh(RI.bind(null,s,o,t),[t]),s.flags|=2048,Gu(lo|xn,Kh(),TI.bind(null,s,o,d,n),null),d}function Gh(t,n,o){var s=ct,l=Mt(),d=Nt;if(d){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=n(),!wl){var x=n();sr(o,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),wl=!0)}(x=!sr(($t||l).memoizedState,o))&&(l.memoizedState=o,Cn=!0),l=l.queue;var R=RI.bind(null,s,l,t);if(xr(2048,xn,R,[t]),l.getSnapshot!==n||x||hn!==null&&hn.memoizedState.tag&lo){if(s.flags|=2048,Gu(lo|xn,Kh(),TI.bind(null,s,l,o,n),null),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(Ba&124)!==0||II(s,n,o)}return o}function II(t,n,o){t.flags|=16384,t={getSnapshot:n,value:o},n=ct.updateQueue,n===null?(n=By(),ct.updateQueue=n,n.stores=[t]):(o=n.stores,o===null?n.stores=[t]:o.push(t))}function TI(t,n,o,s){n.value=o,n.getSnapshot=s,OI(n)&&FI(t)}function RI(t,n,o){return o(function(){OI(n)&&FI(t)})}function OI(t){var n=t.getSnapshot;t=t.value;try{var o=n();return!sr(t,o)}catch{return!0}}function FI(t){var n=vr(t,2);n!==null&&on(n,t,2)}function Py(t){var n=Ar();if(typeof t=="function"){var o=t;if(t=o(),Vs){Q(!0);try{o()}finally{Q(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:t},n}function jy(t){t=Py(t);var n=t.queue,o=KI.bind(null,ct,n);return n.dispatch=o,[t.memoizedState,o]}function Ly(t){var n=Ar();n.memoizedState=n.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=Jy.bind(null,ct,!0,o),o.dispatch=n,[t,n]}function NI(t,n){var o=Mt();return DI(o,$t,t,n)}function DI(t,n,o,s){return t.baseState=o,_y(t,$t,typeof s=="function"?s:wo)}function BI(t,n){var o=Mt();return $t!==null?DI(o,$t,t,n):(o.baseState=t,[t,o.queue.dispatch])}function bj(t,n,o,s,l){if(ep(t))throw Error("Cannot update form state while rendering.");if(t=n.action,t!==null){var d={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};Oe.T!==null?o(!0):d.isTransition=!1,s(d),o=n.pending,o===null?(d.next=n.pending=d,UI(n,d)):(d.next=o.next,n.pending=o.next=d)}}function UI(t,n){var o=n.action,s=n.payload,l=t.state;if(n.isTransition){var d=Oe.T,x={};Oe.T=x,Oe.T._updatedFibers=new Set;try{var R=o(l,s),q=Oe.S;q!==null&&q(x,R),_I(t,n,R)}catch(Z){ky(t,n,Z)}finally{Oe.T=d,d===null&&x._updatedFibers&&(t=x._updatedFibers.size,x._updatedFibers.clear(),10<t&&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{x=o(l,s),_I(t,n,x)}catch(Z){ky(t,n,Z)}}function _I(t,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(o.then(function(s){MI(t,n,s)},function(s){return ky(t,n,s)}),n.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.")):MI(t,n,o)}function MI(t,n,o){n.status="fulfilled",n.value=o,PI(n),t.state=o,n=t.pending,n!==null&&(o=n.next,o===n?t.pending=null:(o=o.next,n.next=o,UI(t,o)))}function ky(t,n,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=o,PI(n),n=n.next;while(n!==s)}t.action=null}function PI(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function jI(t,n){return n}function Vu(t,n){if(Nt){var o=Ht.formState;if(o!==null){e:{var s=ct;if(Nt){if(Wt){t:{for(var l=Wt,d=ti;l.nodeType!==8;){if(!d){l=null;break t}if(l=to(l.nextSibling),l===null){l=null;break t}}d=l.data,l=d===fv||d===uF?l:null}if(l){Wt=to(l.nextSibling),s=l.data===fv;break e}}Os(s)}s=!1}s&&(n=o[0])}}return o=Ar(),o.memoizedState=o.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jI,lastRenderedState:n},o.queue=s,o=KI.bind(null,ct,s),s.dispatch=o,s=Py(!1),d=Jy.bind(null,ct,!1,s.queue),s=Ar(),l={state:n,dispatch:null,action:t,pending:null},s.queue=l,o=bj.bind(null,ct,l,d,o),l.dispatch=o,s.memoizedState=t,[n,o,!1]}function Qh(t){var n=Mt();return LI(n,$t,t)}function LI(t,n,o){if(n=_y(t,n,jI)[0],t=zu(wo)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Qc(n)}catch(x){throw x===Nf?Vp:x}else s=n;n=Mt();var l=n.queue,d=l.dispatch;return o!==n.memoizedState&&(ct.flags|=2048,Gu(lo|xn,Kh(),vj.bind(null,l,o),null)),[s,d,t]}function vj(t,n){t.action=n}function Yh(t){var n=Mt(),o=$t;if(o!==null)return LI(n,o,t);Mt(),n=n.memoizedState,o=Mt();var s=o.queue.dispatch;return o.memoizedState=t,[n,s,!1]}function Gu(t,n,o,s){return t={tag:t,create:o,deps:s,inst:n,next:null},n=ct.updateQueue,n===null&&(n=By(),ct.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=t.next=t:(s=o.next,o.next=t,t.next=s,n.lastEffect=t),t}function Kh(){return{destroy:void 0,resource:void 0}}function $y(t){var n=Ar();return t={current:t},n.memoizedState=t}function Bs(t,n,o,s){var l=Ar();s=s===void 0?null:s,ct.flags|=t,l.memoizedState=Gu(lo|n,Kh(),o,s)}function xr(t,n,o,s){var l=Mt();s=s===void 0?null:s;var d=l.memoizedState.inst;$t!==null&&s!==null&&Ty(s,$t.memoizedState.deps)?l.memoizedState=Gu(n,d,o,s):(ct.flags|=t,l.memoizedState=Gu(lo|n,d,o,s))}function Xh(t,n){(ct.mode&Co)!==Qt&&(ct.mode&GO)===Qt?Bs(276826112,xn,t,n):Bs(8390656,xn,t,n)}function qy(t,n){var o=4194308;return(ct.mode&Co)!==Qt&&(o|=134217728),Bs(o,kn,t,n)}function kI(t,n){if(typeof n=="function"){t=t();var o=n(t);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return n.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(n).join(", ")+"}"),t=t(),n.current=t,function(){n.current=null}}function Hy(t,n,o){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),o=o!=null?o.concat([t]):null;var s=4194308;(ct.mode&Co)!==Qt&&(s|=134217728),Bs(s,kn,kI.bind(null,n,t),o)}function Zh(t,n,o){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),o=o!=null?o.concat([t]):null,xr(4,kn,kI.bind(null,n,t),o)}function zy(t,n){return Ar().memoizedState=[t,n===void 0?null:n],t}function Jh(t,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return n!==null&&Ty(n,s[1])?s[0]:(o.memoizedState=[t,n],t)}function Vy(t,n){var o=Ar();n=n===void 0?null:n;var s=t();if(Vs){Q(!0);try{t()}finally{Q(!1)}}return o.memoizedState=[s,n],s}function Wh(t,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;if(n!==null&&Ty(n,s[1]))return s[0];if(s=t(),Vs){Q(!0);try{t()}finally{Q(!1)}}return o.memoizedState=[s,n],s}function Gy(t,n){var o=Ar();return Qy(o,t,n)}function $I(t,n){var o=Mt();return HI(o,$t.memoizedState,t,n)}function qI(t,n){var o=Mt();return $t===null?Qy(o,t,n):HI(o,$t.memoizedState,t,n)}function Qy(t,n,o){return o===void 0||(Ba&1073741824)!==0?t.memoizedState=n:(t.memoizedState=o,t=zT(),ct.lanes|=t,Ma|=t,o)}function HI(t,n,o,s){return sr(o,n)?o:El.current!==null?(t=Qy(t,o,s),sr(t,n)||(Cn=!0),t):(Ba&42)===0?(Cn=!0,t.memoizedState=o):(t=zT(),ct.lanes|=t,Ma|=t,n)}function zI(t,n,o,s,l){var d=Bt.p;Bt.p=d!==0&&d<Jo?d:Jo;var x=Oe.T,R={};Oe.T=R,Jy(t,!1,n,o),R._updatedFibers=new Set;try{var q=l(),Z=Oe.S;if(Z!==null&&Z(R,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var Se=mj(q,s);Kc(t,n,Se,Lr(t))}else Kc(t,n,s,Lr(t))}catch(Fe){Kc(t,n,{then:function(){},status:"rejected",reason:Fe},Lr(t))}finally{Bt.p=d,Oe.T=x,x===null&&R._updatedFibers&&(t=R._updatedFibers.size,R._updatedFibers.clear(),10<t&&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 Yy(t,n,o,s){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=VI(t).queue;zI(t,l,n,nu,o===null?A:function(){return GI(t),o(s)})}function VI(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:nu,baseState:nu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:nu},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:o},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function GI(t){Oe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=VI(t).next.queue;Kc(t,n,{},Lr(t))}function Ky(){var t=Py(!1);return t=zI.bind(null,ct,t.queue,!0,!1),Ar().memoizedState=t,[!1,t]}function QI(){var t=zu(wo)[0],n=Mt().memoizedState;return[typeof t=="boolean"?t:Qc(t),n]}function YI(){var t=Yc(wo)[0],n=Mt().memoizedState;return[typeof t=="boolean"?t:Qc(t),n]}function Us(){return Kt(Zf)}function Xy(){var t=Ar(),n=Ht.identifierPrefix;if(Nt){var o=Ui,s=Bi;o=(s&~(1<<32-ir(s)-1)).toString(32)+o,n="«"+n+"R"+o,o=Kp++,0<o&&(n+="H"+o.toString(32)),n+="»"}else o=$5++,n="«"+n+"r"+o.toString(32)+"»";return t.memoizedState=n}function Zy(){return Ar().memoizedState=Aj.bind(null,ct)}function Aj(t,n){for(var o=t.return;o!==null;){switch(o.tag){case 24:case 3:var s=Lr(o);t=ya(s);var l=ba(o,t,s);l!==null&&(on(l,o,s),zc(l,o,s)),o=vy(),n!=null&&l!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:o};return}o=o.return}}function xj(t,n,o){var s=arguments;typeof s[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()."),s=Lr(t);var l={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};ep(t)?XI(n,l):(l=sy(t,n,l,s),l!==null&&(on(l,t,s),ZI(l,n,s))),te(t,s)}function KI(t,n,o){var s=arguments;typeof s[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()."),s=Lr(t),Kc(t,n,o,s),te(t,s)}function Kc(t,n,o,s){var l={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(ep(t))XI(n,l);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null)){var x=Oe.H;Oe.H=To;try{var R=n.lastRenderedState,q=d(R,o);if(l.hasEagerState=!0,l.eagerState=q,sr(q,R))return Uh(t,n,l,0),Ht===null&&Bh(),!1}catch{}finally{Oe.H=x}}if(o=sy(t,n,l,s),o!==null)return on(o,t,s),ZI(o,n,s),!0}return!1}function Jy(t,n,o,s){if(Oe.T===null&&qs===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."),s={lane:2,revertLane:O0(),action:s,hasEagerState:!1,eagerState:null,next:null},ep(t)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=sy(t,o,s,2),n!==null&&on(n,t,2);te(t,2)}function ep(t){var n=t.alternate;return t===ct||n!==null&&n===ct}function XI(t,n){Sl=Yp=!0;var o=t.pending;o===null?n.next=n:(n.next=o.next,o.next=n),t.pending=n}function ZI(t,n,o){if((o&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,o|=s,n.lanes=o,Ce(t,o)}}function _n(t){var n=pt;return t!=null&&(pt=n===null?t:n.concat(t)),n}function tp(t,n,o){for(var s=Object.keys(t.props),l=0;l<s.length;l++){var d=s[l];if(d!=="children"&&d!=="key"){n===null&&(n=Mh(t,o.mode,0),n._debugInfo=pt,n.return=o),Ze(n,function(x){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x)},d);break}}}function np(t){var n=_f;return _f+=1,Cl===null&&(Cl=yI()),vI(Cl,t,n)}function Xc(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function rp(t,n){throw n.$$typeof===IL?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
157
|
+
- Multiple copies of the "react" package is used.
|
|
158
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
159
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function op(t,n){var o=T(t)||"Component";C3[o]||(C3[o]=!0,n=n.displayName||n.name||"Component",t.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.
|
|
160
|
+
root.render(%s)`,n,n,n):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.
|
|
161
|
+
<%s>{%s}</%s>`,n,n,o,n,o))}function ip(t,n){var o=T(t)||"Component";I3[o]||(I3[o]=!0,n=String(n),t.tag===3?console.error(`Symbols are not valid as a React child.
|
|
162
|
+
root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
|
|
163
|
+
<%s>%s</%s>`,o,n,o))}function JI(t){function n(ae,se){if(t){var be=ae.deletions;be===null?(ae.deletions=[se],ae.flags|=16):be.push(se)}}function o(ae,se){if(!t)return null;for(;se!==null;)n(ae,se),se=se.sibling;return null}function s(ae){for(var se=new Map;ae!==null;)ae.key!==null?se.set(ae.key,ae):se.set(ae.index,ae),ae=ae.sibling;return se}function l(ae,se){return ae=Ai(ae,se),ae.index=0,ae.sibling=null,ae}function d(ae,se,be){return ae.index=be,t?(be=ae.alternate,be!==null?(be=be.index,be<se?(ae.flags|=67108866,se):be):(ae.flags|=67108866,se)):(ae.flags|=1048576,se)}function x(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function R(ae,se,be,De){return se===null||se.tag!==6?(se=dy(be,ae.mode,De),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=pt,se):(se=l(se,be),se.return=ae,se._debugInfo=pt,se)}function q(ae,se,be,De){var $e=be.type;return $e===rl?(se=Se(ae,se,be.props.children,De,be.key),tp(be,se,ae),se):se!==null&&(se.elementType===$e||iI(se,be)||typeof $e=="object"&&$e!==null&&$e.$$typeof===kr&&Ua($e)===se.type)?(se=l(se,be.props),Xc(se,be),se.return=ae,se._debugOwner=be._owner,se._debugInfo=pt,se):(se=Mh(be,ae.mode,De),Xc(se,be),se.return=ae,se._debugInfo=pt,se)}function Z(ae,se,be,De){return se===null||se.tag!==4||se.stateNode.containerInfo!==be.containerInfo||se.stateNode.implementation!==be.implementation?(se=hy(be,ae.mode,De),se.return=ae,se._debugInfo=pt,se):(se=l(se,be.children||[]),se.return=ae,se._debugInfo=pt,se)}function Se(ae,se,be,De,$e){return se===null||se.tag!==7?(se=Cs(be,ae.mode,De,$e),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=pt,se):(se=l(se,be),se.return=ae,se._debugInfo=pt,se)}function Fe(ae,se,be){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=dy(""+se,ae.mode,be),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=pt,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Ca:return be=Mh(se,ae.mode,be),Xc(be,se),be.return=ae,ae=_n(se._debugInfo),be._debugInfo=pt,pt=ae,be;case nl:return se=hy(se,ae.mode,be),se.return=ae,se._debugInfo=pt,se;case kr:var De=_n(se._debugInfo);return se=Ua(se),ae=Fe(ae,se,be),pt=De,ae}if(jn(se)||oe(se))return be=Cs(se,ae.mode,be,null),be.return=ae,be._debugOwner=ae,be._debugTask=ae._debugTask,ae=_n(se._debugInfo),be._debugInfo=pt,pt=ae,be;if(typeof se.then=="function")return De=_n(se._debugInfo),ae=Fe(ae,np(se),be),pt=De,ae;if(se.$$typeof===Ko)return Fe(ae,Lh(ae,se),be);rp(ae,se)}return typeof se=="function"&&op(ae,se),typeof se=="symbol"&&ip(ae,se),null}function we(ae,se,be,De){var $e=se!==null?se.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return $e!==null?null:R(ae,se,""+be,De);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case Ca:return be.key===$e?($e=_n(be._debugInfo),ae=q(ae,se,be,De),pt=$e,ae):null;case nl:return be.key===$e?Z(ae,se,be,De):null;case kr:return $e=_n(be._debugInfo),be=Ua(be),ae=we(ae,se,be,De),pt=$e,ae}if(jn(be)||oe(be))return $e!==null?null:($e=_n(be._debugInfo),ae=Se(ae,se,be,De,null),pt=$e,ae);if(typeof be.then=="function")return $e=_n(be._debugInfo),ae=we(ae,se,np(be),De),pt=$e,ae;if(be.$$typeof===Ko)return we(ae,se,Lh(ae,be),De);rp(ae,be)}return typeof be=="function"&&op(ae,be),typeof be=="symbol"&&ip(ae,be),null}function Ne(ae,se,be,De,$e){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return ae=ae.get(be)||null,R(se,ae,""+De,$e);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Ca:return be=ae.get(De.key===null?be:De.key)||null,ae=_n(De._debugInfo),se=q(se,be,De,$e),pt=ae,se;case nl:return ae=ae.get(De.key===null?be:De.key)||null,Z(se,ae,De,$e);case kr:var ft=_n(De._debugInfo);return De=Ua(De),se=Ne(ae,se,be,De,$e),pt=ft,se}if(jn(De)||oe(De))return be=ae.get(be)||null,ae=_n(De._debugInfo),se=Se(se,be,De,$e,null),pt=ae,se;if(typeof De.then=="function")return ft=_n(De._debugInfo),se=Ne(ae,se,be,np(De),$e),pt=ft,se;if(De.$$typeof===Ko)return Ne(ae,se,be,Lh(se,De),$e);rp(se,De)}return typeof De=="function"&&op(se,De),typeof De=="symbol"&&ip(se,De),null}function Ke(ae,se,be,De){if(typeof be!="object"||be===null)return De;switch(be.$$typeof){case Ca:case nl:h(ae,se,be);var $e=be.key;if(typeof $e!="string")break;if(De===null){De=new Set,De.add($e);break}if(!De.has($e)){De.add($e);break}Ze(se,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 — the behavior is unsupported and could change in a future version.",$e)});break;case kr:be=Ua(be),Ke(ae,se,be,De)}return De}function ut(ae,se,be,De){for(var $e=null,ft=null,Xe=null,dt=se,ht=se=0,Yt=null;dt!==null&&ht<be.length;ht++){dt.index>ht?(Yt=dt,dt=null):Yt=dt.sibling;var sn=we(ae,dt,be[ht],De);if(sn===null){dt===null&&(dt=Yt);break}$e=Ke(ae,sn,be[ht],$e),t&&dt&&sn.alternate===null&&n(ae,dt),se=d(sn,se,ht),Xe===null?ft=sn:Xe.sibling=sn,Xe=sn,dt=Yt}if(ht===be.length)return o(ae,dt),Nt&&Is(ae,ht),ft;if(dt===null){for(;ht<be.length;ht++)dt=Fe(ae,be[ht],De),dt!==null&&($e=Ke(ae,dt,be[ht],$e),se=d(dt,se,ht),Xe===null?ft=dt:Xe.sibling=dt,Xe=dt);return Nt&&Is(ae,ht),ft}for(dt=s(dt);ht<be.length;ht++)Yt=Ne(dt,ae,ht,be[ht],De),Yt!==null&&($e=Ke(ae,Yt,be[ht],$e),t&&Yt.alternate!==null&&dt.delete(Yt.key===null?ht:Yt.key),se=d(Yt,se,ht),Xe===null?ft=Yt:Xe.sibling=Yt,Xe=Yt);return t&&dt.forEach(function(Hi){return n(ae,Hi)}),Nt&&Is(ae,ht),ft}function zt(ae,se,be,De){if(be==null)throw Error("An iterable object provided no iterator.");for(var $e=null,ft=null,Xe=se,dt=se=0,ht=null,Yt=null,sn=be.next();Xe!==null&&!sn.done;dt++,sn=be.next()){Xe.index>dt?(ht=Xe,Xe=null):ht=Xe.sibling;var Hi=we(ae,Xe,sn.value,De);if(Hi===null){Xe===null&&(Xe=ht);break}Yt=Ke(ae,Hi,sn.value,Yt),t&&Xe&&Hi.alternate===null&&n(ae,Xe),se=d(Hi,se,dt),ft===null?$e=Hi:ft.sibling=Hi,ft=Hi,Xe=ht}if(sn.done)return o(ae,Xe),Nt&&Is(ae,dt),$e;if(Xe===null){for(;!sn.done;dt++,sn=be.next())Xe=Fe(ae,sn.value,De),Xe!==null&&(Yt=Ke(ae,Xe,sn.value,Yt),se=d(Xe,se,dt),ft===null?$e=Xe:ft.sibling=Xe,ft=Xe);return Nt&&Is(ae,dt),$e}for(Xe=s(Xe);!sn.done;dt++,sn=be.next())ht=Ne(Xe,ae,dt,sn.value,De),ht!==null&&(Yt=Ke(ae,ht,sn.value,Yt),t&&ht.alternate!==null&&Xe.delete(ht.key===null?dt:ht.key),se=d(ht,se,dt),ft===null?$e=ht:ft.sibling=ht,ft=ht);return t&&Xe.forEach(function(pk){return n(ae,pk)}),Nt&&Is(ae,dt),$e}function St(ae,se,be,De){if(typeof be=="object"&&be!==null&&be.type===rl&&be.key===null&&(tp(be,null,ae),be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case Ca:var $e=_n(be._debugInfo);e:{for(var ft=be.key;se!==null;){if(se.key===ft){if(ft=be.type,ft===rl){if(se.tag===7){o(ae,se.sibling),De=l(se,be.props.children),De.return=ae,De._debugOwner=be._owner,De._debugInfo=pt,tp(be,De,ae),ae=De;break e}}else if(se.elementType===ft||iI(se,be)||typeof ft=="object"&&ft!==null&&ft.$$typeof===kr&&Ua(ft)===se.type){o(ae,se.sibling),De=l(se,be.props),Xc(De,be),De.return=ae,De._debugOwner=be._owner,De._debugInfo=pt,ae=De;break e}o(ae,se);break}else n(ae,se);se=se.sibling}be.type===rl?(De=Cs(be.props.children,ae.mode,De,be.key),De.return=ae,De._debugOwner=ae,De._debugTask=ae._debugTask,De._debugInfo=pt,tp(be,De,ae),ae=De):(De=Mh(be,ae.mode,De),Xc(De,be),De.return=ae,De._debugInfo=pt,ae=De)}return ae=x(ae),pt=$e,ae;case nl:e:{for($e=be,be=$e.key;se!==null;){if(se.key===be)if(se.tag===4&&se.stateNode.containerInfo===$e.containerInfo&&se.stateNode.implementation===$e.implementation){o(ae,se.sibling),De=l(se,$e.children||[]),De.return=ae,ae=De;break e}else{o(ae,se);break}else n(ae,se);se=se.sibling}De=hy($e,ae.mode,De),De.return=ae,ae=De}return x(ae);case kr:return $e=_n(be._debugInfo),be=Ua(be),ae=St(ae,se,be,De),pt=$e,ae}if(jn(be))return $e=_n(be._debugInfo),ae=ut(ae,se,be,De),pt=$e,ae;if(oe(be)){if($e=_n(be._debugInfo),ft=oe(be),typeof ft!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Xe=ft.call(be);return Xe===be?(ae.tag!==0||Object.prototype.toString.call(ae.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Xe)!=="[object Generator]")&&(w3||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."),w3=!0):be.entries!==ft||$b||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$b=!0),ae=zt(ae,se,Xe,De),pt=$e,ae}if(typeof be.then=="function")return $e=_n(be._debugInfo),ae=St(ae,se,np(be),De),pt=$e,ae;if(be.$$typeof===Ko)return St(ae,se,Lh(ae,be),De);rp(ae,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?($e=""+be,se!==null&&se.tag===6?(o(ae,se.sibling),De=l(se,$e),De.return=ae,ae=De):(o(ae,se),De=dy($e,ae.mode,De),De.return=ae,De._debugOwner=ae,De._debugTask=ae._debugTask,De._debugInfo=pt,ae=De),x(ae)):(typeof be=="function"&&op(ae,be),typeof be=="symbol"&&ip(ae,be),o(ae,se))}return function(ae,se,be,De){var $e=pt;pt=null;try{_f=0;var ft=St(ae,se,be,De);return Cl=null,ft}catch(Yt){if(Yt===Nf||Yt===Vp)throw Yt;var Xe=g(29,Yt,null,ae.mode);Xe.lanes=De,Xe.return=ae;var dt=Xe._debugInfo=pt;if(Xe._debugOwner=ae._debugOwner,Xe._debugTask=ae._debugTask,dt!=null){for(var ht=dt.length-1;0<=ht;ht--)if(typeof dt[ht].stack=="string"){Xe._debugOwner=dt[ht],Xe._debugTask=dt[ht].debugTask;break}}return Xe}finally{pt=$e}}}function Aa(t){var n=t.alternate;V(En,En.current&Tl,t),V(fo,t,t),ri===null&&(n===null||El.current!==null||n.memoizedState!==null)&&(ri=t)}function WI(t){if(t.tag===22){if(V(En,En.current,t),V(fo,t,t),ri===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(ri=t)}}else xa(t)}function xa(t){V(En,En.current,t),V(fo,fo.current,t)}function wi(t){z(fo,t),ri===t&&(ri=null),z(En,t)}function ap(t){for(var n=t;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data===ki||k0(o)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Wy(t){if(t!==null&&typeof t!="function"){var n=String(t);j3.has(n)||(j3.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function e0(t,n,o,s){var l=t.memoizedState,d=o(s,l);if(t.mode&Zn){Q(!0);try{d=o(s,l)}finally{Q(!1)}}d===void 0&&(n=de(n)||"Component",U3.has(n)||(U3.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),l=d==null?l:gt({},l,d),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}function eT(t,n,o,s,l,d,x){var R=t.stateNode;if(typeof R.shouldComponentUpdate=="function"){if(o=R.shouldComponentUpdate(s,d,x),t.mode&Zn){Q(!0);try{o=R.shouldComponentUpdate(s,d,x)}finally{Q(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",de(n)||"Component"),o}return n.prototype&&n.prototype.isPureReactComponent?!Pc(o,s)||!Pc(l,d):!0}function tT(t,n,o,s){var l=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==l&&(t=T(t)||"Component",O3.has(t)||(O3.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),qb.enqueueReplaceState(n,n.state,null))}function _s(t,n){var o=n;if("ref"in n){o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}if(t=t.defaultProps){o===n&&(o=gt({},o));for(var l in t)o[l]===void 0&&(o[l]=t[l])}return o}function nT(t){Hb(t),console.warn(`%s
|
|
164
|
+
|
|
165
|
+
%s
|
|
166
|
+
`,Rl?"An error occurred in the <"+Rl+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
167
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function rT(t){var n=Rl?"The above error occurred in the <"+Rl+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((zb||"Anonymous")+".");if(typeof t=="object"&&t!==null&&typeof t.environmentName=="string"){var s=t.environmentName;t=[`%o
|
|
168
|
+
|
|
169
|
+
%s
|
|
170
|
+
|
|
171
|
+
%s
|
|
172
|
+
`,t,n,o].slice(0),typeof t[0]=="string"?t.splice(0,1,gF+t[0],yF,mm+s+mm,bF):t.splice(0,0,gF,yF,mm+s+mm,bF),t.unshift(console),s=dk.apply(console.error,t),s()}else console.error(`%o
|
|
173
|
+
|
|
174
|
+
%s
|
|
175
|
+
|
|
176
|
+
%s
|
|
177
|
+
`,t,n,o)}function oT(t){Hb(t)}function sp(t,n){try{Rl=n.source?T(n.source):null,zb=null;var o=n.value;if(Oe.actQueue!==null)Oe.thrownErrors.push(o);else{var s=t.onUncaughtError;s(o,{componentStack:n.stack})}}catch(l){setTimeout(function(){throw l})}}function iT(t,n,o){try{Rl=o.source?T(o.source):null,zb=T(n);var s=t.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function t0(t,n,o){return o=ya(o),o.tag=Bb,o.payload={element:null},o.callback=function(){Ze(n.source,sp,t,n)},o}function n0(t){return t=ya(t),t.tag=Bb,t}function r0(t,n,o,s){var l=o.type.getDerivedStateFromError;if(typeof l=="function"){var d=s.value;t.payload=function(){return l(d)},t.callback=function(){aI(o),Ze(s.source,iT,n,o,s)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){aI(o),Ze(s.source,iT,n,o,s),typeof l!="function"&&(ja===null?ja=new Set([this]):ja.add(this)),H5(this,s),typeof l=="function"||(o.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.",T(o)||"Unknown")})}function Ej(t,n,o,s,l){if(o.flags|=32768,So&&rf(t,l),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=o.alternate,n!==null&&$c(n,o,l,!0),Nt&&(_i=!0),o=fo.current,o!==null){switch(o.tag){case 13:return ri===null?E0():o.alternate===null&&en===Li&&(en=Yb),o.flags&=-257,o.flags|=65536,o.lanes=l,s===Db?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([s]):n.add(s),C0(t,s,l)),!1;case 22:return o.flags|=65536,s===Db?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([s]):o.add(s)),C0(t,s,l)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return C0(t,s,l),E0(),!1}if(Nt)return _i=!0,n=fo.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=l,s!==Rb&&kc(Mr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),o))):(s!==Rb&&kc(Mr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),o)),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,s=Mr(s,o),l=t0(t.stateNode,s,l),zh(t,l),en!==Gs&&(en=Dl)),!1;var d=Mr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),o);if(Hf===null?Hf=[d]:Hf.push(d),en!==Gs&&(en=Dl),n===null)return!0;s=Mr(s,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,t=l&-l,o.lanes|=t,t=t0(o.stateNode,s,t),zh(o,t),!1;case 1:if(n=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ja===null||!ja.has(d))))return o.flags|=65536,l&=-l,o.lanes|=l,l=n0(l),r0(l,t,o,s),zh(o,l),!1}o=o.return}while(o!==null);return!1}function Mn(t,n,o,s){n.child=t===null?T3(n,null,o,s):Il(n,t.child,o,s)}function aT(t,n,o,s,l){o=o.render;var d=n.ref;if("ref"in s){var x={};for(var R in s)R!=="ref"&&(x[R]=s[R])}else x=s;return Fs(n),L(n),s=Ry(t,n,o,x,d,l),R=Fy(),w(),t!==null&&!Cn?(Ny(t,n,l),Si(t,n,l)):(Nt&&R&&py(n),n.flags|=1,Mn(t,n,s,l),n.child)}function sT(t,n,o,s,l){if(t===null){var d=o.type;return typeof d=="function"&&!cy(d)&&d.defaultProps===void 0&&o.compare===null?(o=Ss(d),n.tag=15,n.type=o,i0(n,d),uT(t,n,o,s,l)):(t=fy(o.type,null,s,n,n.mode,l),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!f0(t,l)){var x=d.memoizedProps;if(o=o.compare,o=o!==null?o:Pc,o(x,s)&&t.ref===n.ref)return Si(t,n,l)}return n.flags|=1,t=Ai(d,s),t.ref=n.ref,t.return=n,n.child=t}function uT(t,n,o,s,l){if(t!==null){var d=t.memoizedProps;if(Pc(d,s)&&t.ref===n.ref&&n.type===t.type)if(Cn=!1,n.pendingProps=s=d,f0(t,l))(t.flags&131072)!==0&&(Cn=!0);else return n.lanes=t.lanes,Si(t,n,l)}return o0(t,n,o,s,l)}function lT(t,n,o){var s=n.pendingProps,l=s.children,d=t!==null?t.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=d!==null?d.baseLanes|o:o,t!==null){for(l=n.child=t.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;n.childLanes=d&~s}else n.childLanes=0,n.child=null;return cT(t,n,s,o)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&qh(n,d!==null?d.cachePool:null),d!==null?SI(n,d):Cy(n),WI(n);else return n.lanes=n.childLanes=536870912,cT(t,n,d!==null?d.baseLanes|o:o,o)}else d!==null?(qh(n,d.cachePool),SI(n,d),xa(n),n.memoizedState=null):(t!==null&&qh(n,null),Cy(n),xa(n));return Mn(t,n,l,o),n.child}function cT(t,n,o,s){var l=Ey();return l=l===null?null:{parent:An._currentValue,pool:l},n.memoizedState={baseLanes:o,cachePool:l},t!==null&&qh(n,null),Cy(n),WI(n),t!==null&&$c(t,n,s,!0),null}function up(t,n){var o=n.ref;if(o===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==o)&&(n.flags|=4194816)}}function o0(t,n,o,s,l){if(o.prototype&&typeof o.prototype.render=="function"){var d=de(o)||"Unknown";k3[d]||(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.",d,d),k3[d]=!0)}return n.mode&Zn&&Io.recordLegacyContextWarning(n,null),t===null&&(i0(n,n.type),o.contextTypes&&(d=de(o)||"Unknown",q3[d]||(q3[d]=!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)",d)))),Fs(n),L(n),o=Ry(t,n,o,s,void 0,l),s=Fy(),w(),t!==null&&!Cn?(Ny(t,n,l),Si(t,n,l)):(Nt&&s&&py(n),n.flags|=1,Mn(t,n,o,l),n.child)}function fT(t,n,o,s,l,d){return Fs(n),L(n),Pi=-1,Uf=t!==null&&t.type!==n.type,n.updateQueue=null,o=Oy(n,s,o,l),CI(t,n),s=Fy(),w(),t!==null&&!Cn?(Ny(t,n,d),Si(t,n,d)):(Nt&&s&&py(n),n.flags|=1,Mn(t,n,o,d),n.child)}function dT(t,n,o,s,l){switch(f(n)){case!1:var d=n.stateNode,x=new n.type(n.memoizedProps,d.context).state;d.updater.enqueueSetState(d,x,null);break;case!0:n.flags|=128,n.flags|=65536,d=Error("Simulated error coming from DevTools");var R=l&-l;if(n.lanes|=R,x=Ht,x===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=n0(R),r0(R,x,n,Mr(d,n)),zh(n,R)}if(Fs(n),n.stateNode===null){if(x=Na,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==Ko)&&!P3.has(o)&&(P3.add(o),R=d===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 d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===J0?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",de(o)||"Component",R)),typeof d=="object"&&d!==null&&(x=Kt(d)),d=new o(s,x),n.mode&Zn){Q(!0);try{d=new o(s,x)}finally{Q(!1)}}if(x=n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=qb,n.stateNode=d,d._reactInternals=n,d._reactInternalInstance=R3,typeof o.getDerivedStateFromProps=="function"&&x===null&&(x=de(o)||"Component",F3.has(x)||(F3.add(x),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.",x,d.state===null?"null":"undefined",x))),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var q=R=x=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?x="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(x="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?q="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(q="UNSAFE_componentWillUpdate"),x!==null||R!==null||q!==null){d=de(o)||"Component";var Z=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";D3.has(d)||(D3.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
178
|
+
|
|
179
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
180
|
+
|
|
181
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
182
|
+
https://react.dev/link/unsafe-component-lifecycles`,d,Z,x!==null?`
|
|
183
|
+
`+x:"",R!==null?`
|
|
184
|
+
`+R:"",q!==null?`
|
|
185
|
+
`+q:""))}}d=n.stateNode,x=de(o)||"Component",d.render||(o.prototype&&typeof o.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",x):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",x)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.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?",x),d.getDefaultProps&&!d.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.",x),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),o.childContextTypes&&!M3.has(o)&&(M3.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",x)),o.contextTypes&&!_3.has(o)&&(_3.add(o),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)",x)),typeof d.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.",x),o.prototype&&o.prototype.isPureReactComponent&&typeof d.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.",de(o)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof d.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().",x),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x),R=d.props!==s,d.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x),d.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.",x,x),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||N3.has(o)||(N3.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",de(o))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x),(R=d.state)&&(typeof R!="object"||jn(R))&&console.error("%s.state: must be set to an object or null",x),typeof d.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x),d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},wy(n),x=o.contextType,d.context=typeof x=="object"&&x!==null?Kt(x):Na,d.state===s&&(x=de(o)||"Component",B3.has(x)||(B3.add(x),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.",x))),n.mode&Zn&&Io.recordLegacyContextWarning(n,d),Io.recordUnsafeLifecycleWarnings(n,d),d.state=n.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(e0(n,o,x,s),d.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",T(n)||"Component"),qb.enqueueReplaceState(d,d.state,null)),Gc(n,s,d,l),Vc(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Co)!==Qt&&(n.flags|=134217728),d=!0}else if(t===null){d=n.stateNode;var Se=n.memoizedProps;R=_s(o,Se),d.props=R;var Fe=d.context;q=o.contextType,x=Na,typeof q=="object"&&q!==null&&(x=Kt(q)),Z=o.getDerivedStateFromProps,q=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",Se=n.pendingProps!==Se,q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(Se||Fe!==x)&&tT(n,d,s,x),Da=!1;var we=n.memoizedState;d.state=we,Gc(n,s,d,l),Vc(),Fe=n.memoizedState,Se||we!==Fe||Da?(typeof Z=="function"&&(e0(n,o,Z,s),Fe=n.memoizedState),(R=Da||eT(n,o,R,s,we,Fe,x))?(q||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Co)!==Qt&&(n.flags|=134217728)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Co)!==Qt&&(n.flags|=134217728),n.memoizedProps=s,n.memoizedState=Fe),d.props=s,d.state=Fe,d.context=x,d=R):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Co)!==Qt&&(n.flags|=134217728),d=!1)}else{d=n.stateNode,Sy(t,n),x=n.memoizedProps,q=_s(o,x),d.props=q,Z=n.pendingProps,we=d.context,Fe=o.contextType,R=Na,typeof Fe=="object"&&Fe!==null&&(R=Kt(Fe)),Se=o.getDerivedStateFromProps,(Fe=typeof Se=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||we!==R)&&tT(n,d,s,R),Da=!1,we=n.memoizedState,d.state=we,Gc(n,s,d,l),Vc();var Ne=n.memoizedState;x!==Z||we!==Ne||Da||t!==null&&t.dependencies!==null&&jh(t.dependencies)?(typeof Se=="function"&&(e0(n,o,Se,s),Ne=n.memoizedState),(q=Da||eT(n,o,q,s,we,Ne,R)||t!==null&&t.dependencies!==null&&jh(t.dependencies))?(Fe||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,Ne,R),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,Ne,R)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Ne),d.props=s,d.state=Ne,d.context=R,d=q):(typeof d.componentDidUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(n.flags|=1024),d=!1)}if(R=d,up(t,n),x=(n.flags&128)!==0,R||x){if(R=n.stateNode,ha(n),x&&typeof o.getDerivedStateFromError!="function")o=null,wr=-1;else{if(L(n),o=h3(R),n.mode&Zn){Q(!0);try{h3(R)}finally{Q(!1)}}w()}n.flags|=1,t!==null&&x?(n.child=Il(n,t.child,null,l),n.child=Il(n,null,o,l)):Mn(t,n,o,l),n.memoizedState=R.state,t=n.child}else t=Si(t,n,l);return l=n.stateNode,d&&l.props!==s&&(Ol||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",T(n)||"a component"),Ol=!0),t}function hT(t,n,o,s){return Lc(),n.flags|=256,Mn(t,n,o,s),n.child}function i0(t,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
186
|
+
%s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(t=de(n)||"Unknown",H3[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),H3[t]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=de(n)||"Unknown",$3[n]||(console.error("%s: Function components do not support contextType.",n),$3[n]=!0))}function a0(t){return{baseLanes:t,cachePool:gI()}}function s0(t,n,o){return t=t!==null?t.childLanes&~o:0,n&&(t|=zr),t}function pT(t,n,o){var s,l=n.pendingProps;c(n)&&(n.flags|=128);var d=!1,x=(n.flags&128)!==0;if((s=x)||(s=t!==null&&t.memoizedState===null?!1:(En.current&Mf)!==0),s&&(d=!0,n.flags&=-129),s=(n.flags&32)!==0,n.flags&=-33,t===null){if(Nt){if(d?Aa(n):xa(n),Nt){var R=Wt,q;if(!(q=!R)){e:{var Z=R;for(q=ti;Z.nodeType!==8;){if(!q){q=null;break e}if(Z=to(Z.nextSibling),Z===null){q=null;break e}}q=Z}q!==null?(Ts(),n.memoizedState={dehydrated:q,treeContext:Ls!==null?{id:Bi,overflow:Ui}:null,retryLane:536870912,hydrationErrors:null},Z=g(18,null,null,Qt),Z.stateNode=q,Z.return=n,n.child=Z,ur=n,Wt=null,q=!0):q=!1,q=!q}q&&(gy(n,R),Os(n))}if(R=n.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return k0(R)?n.lanes=32:n.lanes=536870912,null;wi(n)}return R=l.children,l=l.fallback,d?(xa(n),d=n.mode,R=lp({mode:"hidden",children:R},d),l=Cs(l,d,o,null),R.return=n,l.return=n,R.sibling=l,n.child=R,d=n.child,d.memoizedState=a0(o),d.childLanes=s0(t,s,o),n.memoizedState=Gb,l):(Aa(n),u0(n,R))}var Se=t.memoizedState;if(Se!==null&&(R=Se.dehydrated,R!==null)){if(x)n.flags&256?(Aa(n),n.flags&=-257,n=l0(t,n,o)):n.memoizedState!==null?(xa(n),n.child=t.child,n.flags|=128,n=null):(xa(n),d=l.fallback,R=n.mode,l=lp({mode:"visible",children:l.children},R),d=Cs(d,R,o,null),d.flags|=2,l.return=n,d.return=n,l.sibling=d,n.child=l,Il(n,t.child,null,o),l=n.child,l.memoizedState=a0(o),l.childLanes=s0(t,s,o),n.memoizedState=Gb,n=d);else if(Aa(n),Nt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),k0(R)){if(s=R.nextSibling&&R.nextSibling.dataset,s){q=s.dgst;var Fe=s.msg;Z=s.stck;var we=s.cstck}R=Fe,s=q,l=Z,q=d=we,d=Error(R||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=s,s=q===void 0?null:q,l={value:d,source:null,stack:s},typeof s=="string"&&Ib.set(d,l),kc(l),n=l0(t,n,o)}else if(Cn||$c(t,n,o,!1),s=(o&t.childLanes)!==0,Cn||s){if(s=Ht,s!==null&&(l=o&-o,l=(l&42)!==0?1:Ue(l),l=(l&(s.suspendedLanes|o))!==0?0:l,l!==0&&l!==Se.retryLane))throw Se.retryLane=l,vr(t,l),on(s,t,l),L3;R.data===ki||E0(),n=l0(t,n,o)}else R.data===ki?(n.flags|=192,n.child=t.child,n=null):(t=Se.treeContext,Wt=to(R.nextSibling),ur=n,Nt=!0,ks=null,_i=!1,so=null,ti=!1,t!==null&&(Ts(),io[ao++]=Bi,io[ao++]=Ui,io[ao++]=Ls,Bi=t.id,Ui=t.overflow,Ls=n),n=u0(n,l.children),n.flags|=4096);return n}return d?(xa(n),d=l.fallback,R=n.mode,q=t.child,Z=q.sibling,l=Ai(q,{mode:"hidden",children:l.children}),l.subtreeFlags=q.subtreeFlags&65011712,Z!==null?d=Ai(Z,d):(d=Cs(d,R,o,null),d.flags|=2),d.return=n,l.return=n,l.sibling=d,n.child=l,l=d,d=n.child,R=t.child.memoizedState,R===null?R=a0(o):(q=R.cachePool,q!==null?(Z=An._currentValue,q=q.parent!==Z?{parent:Z,pool:Z}:q):q=gI(),R={baseLanes:R.baseLanes|o,cachePool:q}),d.memoizedState=R,d.childLanes=s0(t,s,o),n.memoizedState=Gb,l):(Aa(n),o=t.child,t=o.sibling,o=Ai(o,{mode:"visible",children:l.children}),o.return=n,o.sibling=null,t!==null&&(s=n.deletions,s===null?(n.deletions=[t],n.flags|=16):s.push(t)),n.child=o,n.memoizedState=null,o)}function u0(t,n){return n=lp({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function lp(t,n){return t=g(22,t,null,n),t.lanes=0,t.stateNode={_visibility:Pp,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function l0(t,n,o){return Il(n,t.child,null,o),t=u0(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function mT(t,n,o){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),yy(t.return,n,o)}function gT(t,n){var o=jn(t);return t=!o&&typeof oe(t)=="function",o||t?(o=o?"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>",o,n,o),!1):!0}function c0(t,n,o,s,l){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:l}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=o,d.tailMode=l)}function yT(t,n,o){var s=n.pendingProps,l=s.revealOrder,d=s.tail;if(s=s.children,l!==void 0&&l!=="forwards"&&l!=="backwards"&&l!=="together"&&!z3[l])if(z3[l]=!0,typeof l=="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.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.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',l);d===void 0||Vb[d]||(d!=="collapsed"&&d!=="hidden"?(Vb[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',d)):l!=="forwards"&&l!=="backwards"&&(Vb[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((l==="forwards"||l==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(jn(s)){for(var x=0;x<s.length;x++)if(!gT(s[x],x))break e}else if(x=oe(s),typeof x=="function"){if(x=x.call(s))for(var R=x.next(),q=0;!R.done;R=x.next()){if(!gT(R.value,q))break e;q++}}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?',l);if(Mn(t,n,s,o),s=En.current,(s&Mf)!==0)s=s&Tl|Mf,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mT(t,o,n);else if(t.tag===19)mT(t,o,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=Tl}switch(V(En,s,n),l){case"forwards":for(o=n.child,l=null;o!==null;)t=o.alternate,t!==null&&ap(t)===null&&(l=o),o=o.sibling;o=l,o===null?(l=n.child,n.child=null):(l=o.sibling,o.sibling=null),c0(n,!1,l,o,d);break;case"backwards":for(o=null,l=n.child,n.child=null;l!==null;){if(t=l.alternate,t!==null&&ap(t)===null){n.child=l;break}t=l.sibling,l.sibling=o,o=l,l=t}c0(n,!0,o,null,d);break;case"together":c0(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Si(t,n,o){if(t!==null&&(n.dependencies=t.dependencies),wr=-1,Ma|=n.lanes,(o&n.childLanes)===0)if(t!==null){if($c(t,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(t=n.child,o=Ai(t,t.pendingProps),n.child=o,o.return=n;t.sibling!==null;)t=t.sibling,o=o.sibling=Ai(t,t.pendingProps),o.return=n;o.sibling=null}return n.child}function f0(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&jh(t)))}function wj(t,n,o){switch(n.tag){case 3:J(n,n.stateNode.containerInfo),ga(n,An,t.memoizedState.cache),Lc();break;case 27:case 5:he(n);break;case 4:J(n,n.stateNode.containerInfo);break;case 10:ga(n,n.type,n.memoizedProps.value);break;case 12:(o&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var s=n.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Aa(n),n.flags|=128,null):(o&n.child.childLanes)!==0?pT(t,n,o):(Aa(n),t=Si(t,n,o),t!==null?t.sibling:null);Aa(n);break;case 19:var l=(t.flags&128)!==0;if(s=(o&n.childLanes)!==0,s||($c(t,n,o,!1),s=(o&n.childLanes)!==0),l){if(s)return yT(t,n,o);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),V(En,En.current,n),s)break;return null;case 22:case 23:return n.lanes=0,lT(t,n,o);case 24:ga(n,An,t.memoizedState.cache)}return Si(t,n,o)}function d0(t,n,o){if(n._debugNeedsRemount&&t!==null){o=fy(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),o._debugStack=n._debugStack,o._debugTask=n._debugTask;var s=n.return;if(s===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,n.alternate=null,o.index=n.index,o.sibling=n.sibling,o.return=n.return,o.ref=n.ref,o._debugInfo=n._debugInfo,n===s.child)s.child=o;else{var l=s.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==n;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=o}return n=s.deletions,n===null?(s.deletions=[t],s.flags|=16):n.push(t),o.flags|=2,o}if(t!==null)if(t.memoizedProps!==n.pendingProps||n.type!==t.type)Cn=!0;else{if(!f0(t,o)&&(n.flags&128)===0)return Cn=!1,wj(t,n,o);Cn=(t.flags&131072)!==0}else Cn=!1,(s=Nt)&&(Ts(),s=(n.flags&1048576)!==0),s&&(s=n.index,Ts(),uI(n,Lp,s));switch(n.lanes=0,n.tag){case 16:e:if(s=n.pendingProps,t=Ua(n.elementType),n.type=t,typeof t=="function")cy(t)?(s=_s(t,s),n.tag=1,n.type=t=Ss(t),n=dT(null,n,t,s,o)):(n.tag=0,i0(n,t),n.type=t=Ss(t),n=o0(null,n,t,s,o));else{if(t!=null){if(l=t.$$typeof,l===df){n.tag=11,n.type=t=uy(t),n=aT(null,n,t,s,o);break e}else if(l===Ip){n.tag=14,n=sT(null,n,t,s,o);break e}}throw n="",t!==null&&typeof t=="object"&&t.$$typeof===kr&&(n=" Did you wrap a component in React.lazy() more than once?"),t=de(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return o0(t,n,n.type,n.pendingProps,o);case 1:return s=n.type,l=_s(s,n.pendingProps),dT(t,n,s,l,o);case 3:e:{if(J(n,n.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");s=n.pendingProps;var d=n.memoizedState;l=d.element,Sy(t,n),Gc(n,s,null,o);var x=n.memoizedState;if(s=x.cache,ga(n,An,s),s!==d.cache&&by(n,[An],o,!0),Vc(),s=x.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=hT(t,n,s,o);break e}else if(s!==l){l=Mr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),kc(l),n=hT(t,n,s,o);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Wt=to(t.firstChild),ur=n,Nt=!0,ks=null,_i=!1,so=null,ti=!0,t=T3(n,null,s,o),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(Lc(),s===l){n=Si(t,n,o);break e}Mn(t,n,s,o)}n=n.child}return n;case 26:return up(t,n),t===null?(t=MR(n.type,null,n.pendingProps,null))?n.memoizedState=t:Nt||(t=n.type,o=n.pendingProps,s=X(Ta.current),s=yp(s).createElement(t),s[Xn]=n,s[Er]=o,Pn(s,t,o),pe(s),n.stateNode=s):n.memoizedState=MR(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return he(n),t===null&&Nt&&(s=X(Ta.current),l=B(),s=n.stateNode=UR(n.type,n.pendingProps,s,l,!1),_i||(l=CR(s,n.type,n.pendingProps,l),l!==null&&(Rs(n,0).serverProps=l)),ur=n,ti=!0,l=Wt,Sa(n.type)?(mv=l,Wt=to(s.firstChild)):Wt=l),Mn(t,n,n.pendingProps.children,o),up(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Nt&&(d=B(),s=ry(n.type,d.ancestorInfo),l=Wt,(x=!l)||(x=aL(l,n.type,n.pendingProps,ti),x!==null?(n.stateNode=x,_i||(d=CR(x,n.type,n.pendingProps,d),d!==null&&(Rs(n,0).serverProps=d)),ur=n,Wt=to(x.firstChild),ti=!1,d=!0):d=!1,x=!d),x&&(s&&gy(n,l),Os(n))),he(n),l=n.type,d=n.pendingProps,x=t!==null?t.memoizedProps:null,s=d.children,j0(l,d)?s=null:x!==null&&j0(l,x)&&(n.flags|=32),n.memoizedState!==null&&(l=Ry(t,n,yj,null,null,o),Zf._currentValue=l),up(t,n),Mn(t,n,s,o),n.child;case 6:return t===null&&Nt&&(t=n.pendingProps,o=B(),s=o.ancestorInfo.current,t=s!=null?Oh(t,s.tag,o.ancestorInfo.implicitRootScope):!0,o=Wt,(s=!o)||(s=sL(o,n.pendingProps,ti),s!==null?(n.stateNode=s,ur=n,Wt=null,s=!0):s=!1,s=!s),s&&(t&&gy(n,o),Os(n))),null;case 13:return pT(t,n,o);case 4:return J(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=Il(n,null,s,o):Mn(t,n,s,o),n.child;case 11:return aT(t,n,n.type,n.pendingProps,o);case 7:return Mn(t,n,n.pendingProps,o),n.child;case 8:return Mn(t,n,n.pendingProps.children,o),n.child;case 12:return n.flags|=4,n.flags|=2048,s=n.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,Mn(t,n,n.pendingProps.children,o),n.child;case 10:return s=n.type,l=n.pendingProps,d=l.value,"value"in l||V3||(V3=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ga(n,s,d),Mn(t,n,l.children,o),n.child;case 9:return l=n.type._context,s=n.pendingProps.children,typeof s!="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."),Fs(n),l=Kt(l),L(n),s=Lb(s,l,void 0),w(),n.flags|=1,Mn(t,n,s,o),n.child;case 14:return sT(t,n,n.type,n.pendingProps,o);case 15:return uT(t,n,n.type,n.pendingProps,o);case 19:return yT(t,n,o);case 31:return s=n.pendingProps,o=n.mode,s={mode:s.mode,children:s.children},t===null?(t=lp(s,o),t.ref=n.ref,n.child=t,t.return=n,n=t):(t=Ai(t.child,s),t.ref=n.ref,n.child=t,t.return=n,n=t),n;case 22:return lT(t,n,o);case 24:return Fs(n),s=Kt(An),t===null?(l=Ey(),l===null&&(l=Ht,d=vy(),l.pooledCache=d,Ns(d),d!==null&&(l.pooledCacheLanes|=o),l=d),n.memoizedState={parent:s,cache:l},wy(n),ga(n,An,l)):((t.lanes&o)!==0&&(Sy(t,n),Gc(n,null,null,o),Vc()),l=t.memoizedState,d=n.memoizedState,l.parent!==s?(l={parent:s,cache:s},n.memoizedState=l,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=l),ga(n,An,s)):(s=d.cache,ga(n,An,s),s!==l.cache&&by(n,[An],o,!0))),Mn(t,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ci(t){t.flags|=4}function bT(t,n){if(n.type!=="stylesheet"||(n.state.loading&ho)!==tu)t.flags&=-16777217;else if(t.flags|=16777216,!$R(n)){if(n=fo.current,n!==null&&((xt&4194048)===xt?ri!==null:(xt&62914560)!==xt&&(xt&536870912)===0||n!==ri))throw Df=Db,t3;t.flags|=8192}}function cp(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Ee():536870912,t.lanes|=n,Ks|=n)}function Zc(t,n){if(!Nt)switch(t.tailMode){case"hidden":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Xt(t){var n=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(n)if((t.mode&Ln)!==Qt){for(var l=t.selfBaseDuration,d=t.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,l+=d.treeBaseDuration,d=d.sibling;t.treeBaseDuration=l}else for(l=t.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags&65011712,s|=l.flags&65011712,l.return=t,l=l.sibling;else if((t.mode&Ln)!==Qt){l=t.actualDuration,d=t.selfBaseDuration;for(var x=t.child;x!==null;)o|=x.lanes|x.childLanes,s|=x.subtreeFlags,s|=x.flags,l+=x.actualDuration,d+=x.treeBaseDuration,x=x.sibling;t.actualDuration=l,t.treeBaseDuration=d}else for(l=t.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=s,t.childLanes=o,n}function Sj(t,n,o){var s=n.pendingProps;switch(my(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(n),null;case 1:return Xt(n),null;case 3:return o=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),xi(An,n),ve(n),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(jc(n)?(dI(),Ci(n)):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,fI())),Xt(n),null;case 26:return o=n.memoizedState,t===null?(Ci(n),o!==null?(Xt(n),bT(n,o)):(Xt(n),n.flags&=-16777217)):o?o!==t.memoizedState?(Ci(n),Xt(n),bT(n,o)):(Xt(n),n.flags&=-16777217):(t.memoizedProps!==s&&Ci(n),Xt(n),n.flags&=-16777217),null;case 27:ge(n),o=X(Ta.current);var l=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ci(n);else{if(!s){if(n.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 Xt(n),null}t=B(),jc(n)?lI(n):(t=UR(l,s,o,t,!0),n.stateNode=t,Ci(n))}return Xt(n),null;case 5:if(ge(n),o=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ci(n);else{if(!s){if(n.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 Xt(n),null}if(l=B(),jc(n))lI(n);else{switch(t=X(Ta.current),ry(o,l.ancestorInfo),l=l.context,t=yp(t),l){case jl:t=t.createElementNS(sl,o);break;case dm:t=t.createElementNS(Dp,o);break;default:switch(o){case"svg":t=t.createElementNS(sl,o);break;case"math":t=t.createElementNS(Dp,o);break;case"script":t=t.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof s.is=="string"?t.createElement("select",{is:s.is}):t.createElement("select"),s.multiple?t.multiple=!0:s.size&&(t.size=s.size);break;default:t=typeof s.is=="string"?t.createElement(o,{is:s.is}):t.createElement(o),o.indexOf("-")===-1&&(o!==o.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),Object.prototype.toString.call(t)!=="[object HTMLUnknownElement]"||Fi.call(cF,o)||(cF[o]=!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.",o)))}}t[Xn]=n,t[Er]=s;e:for(l=n.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;l.sibling===null;){if(l.return===null||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}n.stateNode=t;e:switch(Pn(t,o,s),o){case"button":case"input":case"select":case"textarea":t=!!s.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Ci(n)}}return Xt(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Ci(n);else{if(typeof s!="string"&&n.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(t=X(Ta.current),o=B(),jc(n)){t=n.stateNode,o=n.memoizedProps,l=!_i,s=null;var d=ur;if(d!==null)switch(d.tag){case 3:l&&(l=NR(t,o,s),l!==null&&(Rs(n,0).serverProps=l));break;case 27:case 5:s=d.memoizedProps,l&&(l=NR(t,o,s),l!==null&&(Rs(n,0).serverProps=l))}t[Xn]=n,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||AR(t.nodeValue,o)),t||Os(n)}else l=o.ancestorInfo.current,l!=null&&Oh(s,l.tag,o.ancestorInfo.implicitRootScope),t=yp(t).createTextNode(s),t[Xn]=n,n.stateNode=t}return Xt(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=jc(n),s!==null&&s.dehydrated!==null){if(t===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l[Xn]=n,Xt(n),(n.mode&Ln)!==Qt&&s!==null&&(l=n.child,l!==null&&(n.treeBaseDuration-=l.treeBaseDuration))}else dI(),Lc(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4,Xt(n),(n.mode&Ln)!==Qt&&s!==null&&(l=n.child,l!==null&&(n.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=fI(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return n.flags&256?(wi(n),n):(wi(n),null)}return wi(n),(n.flags&128)!==0?(n.lanes=o,(n.mode&Ln)!==Qt&&$h(n),n):(o=s!==null,t=t!==null&&t.memoizedState!==null,o&&(s=n.child,l=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(l=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==l&&(s.flags|=2048)),o!==t&&o&&(n.child.flags|=8192),cp(n,n.updateQueue),Xt(n),(n.mode&Ln)!==Qt&&o&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return ve(n),t===null&&N0(n.stateNode.containerInfo),Xt(n),null;case 10:return xi(n.type,n),Xt(n),null;case 19:if(z(En,n),l=n.memoizedState,l===null)return Xt(n),null;if(s=(n.flags&128)!==0,d=l.rendering,d===null)if(s)Zc(l,!1);else{if(en!==Li||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(d=ap(t),d!==null){for(n.flags|=128,Zc(l,!1),t=d.updateQueue,n.updateQueue=t,cp(n,t),n.subtreeFlags=0,t=o,o=n.child;o!==null;)sI(o,t),o=o.sibling;return V(En,En.current&Tl|Mf,n),n.child}t=t.sibling}l.tail!==null&&Xo()>em&&(n.flags|=128,s=!0,Zc(l,!1),n.lanes=4194304)}else{if(!s)if(t=ap(d),t!==null){if(n.flags|=128,s=!0,t=t.updateQueue,n.updateQueue=t,cp(n,t),Zc(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!Nt)return Xt(n),null}else 2*Xo()-l.renderingStartTime>em&&o!==536870912&&(n.flags|=128,s=!0,Zc(l,!1),n.lanes=4194304);l.isBackwards?(d.sibling=n.child,n.child=d):(t=l.last,t!==null?t.sibling=d:n.child=d,l.last=d)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Xo(),t.sibling=null,o=En.current,o=s?o&Tl|Mf:o&Tl,V(En,o,n),t):(Xt(n),null);case 22:case 23:return wi(n),Iy(n),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(o&536870912)!==0&&(n.flags&128)===0&&(Xt(n),n.subtreeFlags&6&&(n.flags|=8192)):Xt(n),o=n.updateQueue,o!==null&&cp(n,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==o&&(n.flags|=2048),t!==null&&z(Hs,n),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),xi(An,n),Xt(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Cj(t,n){switch(my(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&Ln)!==Qt&&$h(n),n):null;case 3:return xi(An,n),ve(n),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return ge(n),null;case 13:if(wi(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Lc()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&Ln)!==Qt&&$h(n),n):null;case 19:return z(En,n),null;case 4:return ve(n),null;case 10:return xi(n.type,n),null;case 22:case 23:return wi(n),Iy(n),t!==null&&z(Hs,n),t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&Ln)!==Qt&&$h(n),n):null;case 24:return xi(An,n),null;case 25:return null;default:return null}}function vT(t,n){switch(my(n),n.tag){case 3:xi(An,n),ve(n);break;case 26:case 27:case 5:ge(n);break;case 4:ve(n);break;case 13:wi(n);break;case 19:z(En,n);break;case 10:xi(n.type,n);break;case 22:case 23:wi(n),Iy(n),t!==null&&z(Hs,n);break;case 24:xi(An,n)}}function zo(t){return(t.mode&Ln)!==Qt}function AT(t,n){zo(t)?(Ho(),Jc(n,t),qo()):Jc(n,t)}function h0(t,n,o){zo(t)?(Ho(),Qu(o,t,n),qo()):Qu(o,t,n)}function Jc(t,n){try{var o=n.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var l=s.next;o=l;do{if((o.tag&t)===t&&((t&xn)!==uo?Ge!==null&&typeof Ge.markComponentPassiveEffectMountStarted=="function"&&Ge.markComponentPassiveEffectMountStarted(n):(t&kn)!==uo&&Ge!==null&&typeof Ge.markComponentLayoutEffectMountStarted=="function"&&Ge.markComponentLayoutEffectMountStarted(n),s=void 0,(t&lr)!==uo&&(Ml=!0),s=Ze(n,z5,o),(t&lr)!==uo&&(Ml=!1),(t&xn)!==uo?Ge!==null&&typeof Ge.markComponentPassiveEffectMountStopped=="function"&&Ge.markComponentPassiveEffectMountStopped():(t&kn)!==uo&&Ge!==null&&typeof Ge.markComponentLayoutEffectMountStopped=="function"&&Ge.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var d=void 0;d=(o.tag&kn)!==0?"useLayoutEffect":(o.tag&lr)!==0?"useInsertionEffect":"useEffect";var x=void 0;x=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
|
|
187
|
+
|
|
188
|
+
It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
189
|
+
|
|
190
|
+
`+d+`(() => {
|
|
191
|
+
async function fetchData() {
|
|
192
|
+
// You can await here
|
|
193
|
+
const response = await MyAPI.getData(someId);
|
|
194
|
+
// ...
|
|
195
|
+
}
|
|
196
|
+
fetchData();
|
|
197
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
198
|
+
|
|
199
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,Ze(n,function(R,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,q)},d,x)}o=o.next}while(o!==l)}}catch(R){Lt(n,n.return,R)}}function Qu(t,n,o){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var d=l.next;s=d;do{if((s.tag&t)===t){var x=s.inst,R=x.destroy;R!==void 0&&(x.destroy=void 0,(t&xn)!==uo?Ge!==null&&typeof Ge.markComponentPassiveEffectUnmountStarted=="function"&&Ge.markComponentPassiveEffectUnmountStarted(n):(t&kn)!==uo&&Ge!==null&&typeof Ge.markComponentLayoutEffectUnmountStarted=="function"&&Ge.markComponentLayoutEffectUnmountStarted(n),(t&lr)!==uo&&(Ml=!0),l=n,Ze(l,V5,l,o,R),(t&lr)!==uo&&(Ml=!1),(t&xn)!==uo?Ge!==null&&typeof Ge.markComponentPassiveEffectUnmountStopped=="function"&&Ge.markComponentPassiveEffectUnmountStopped():(t&kn)!==uo&&Ge!==null&&typeof Ge.markComponentLayoutEffectUnmountStopped=="function"&&Ge.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==d)}}catch(q){Lt(n,n.return,q)}}function xT(t,n){zo(t)?(Ho(),Jc(n,t),qo()):Jc(n,t)}function p0(t,n,o){zo(t)?(Ho(),Qu(o,t,n),qo()):Qu(o,t,n)}function ET(t){var n=t.updateQueue;if(n!==null){var o=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||Ol||(o.props!==t.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.",T(t)||"instance"),o.state!==t.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.",T(t)||"instance"));try{Ze(t,wI,n,o)}catch(s){Lt(t,t.return,s)}}}function Ij(t,n,o){return t.getSnapshotBeforeUpdate(n,o)}function Tj(t,n){var o=n.memoizedProps,s=n.memoizedState;n=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||Ol||(n.props!==t.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.",T(t)||"instance"),n.state!==t.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.",T(t)||"instance"));try{var l=_s(t.type,o,t.elementType===t.type),d=Ze(t,Ij,n,l,s);o=G3,d!==void 0||o.has(t.type)||(o.add(t.type),Ze(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",T(t))})),n.__reactInternalSnapshotBeforeUpdate=d}catch(x){Lt(t,t.return,x)}}function wT(t,n,o){o.props=_s(t.type,t.memoizedProps),o.state=t.memoizedState,zo(t)?(Ho(),Ze(t,v3,t,n,o),qo()):Ze(t,v3,t,n,o)}function Rj(t){var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}if(typeof n=="function")if(zo(t))try{Ho(),t.refCleanup=n(o)}finally{qo()}else t.refCleanup=n(o);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",T(t)),n.current=o}}function Wc(t,n){try{Ze(t,Rj,t)}catch(o){Lt(t,n,o)}}function Vo(t,n){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{if(zo(t))try{Ho(),Ze(t,s)}finally{qo(t)}else Ze(t,s)}catch(l){Lt(t,n,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{if(zo(t))try{Ho(),Ze(t,o,null)}finally{qo(t)}else Ze(t,o,null)}catch(l){Lt(t,n,l)}else o.current=null}function ST(t,n,o,s){var l=t.memoizedProps,d=l.id,x=l.onCommit;l=l.onRender,n=n===null?"mount":"update",qp&&(n="nested-update"),typeof l=="function"&&l(d,n,t.actualDuration,t.treeBaseDuration,t.actualStartTime,o),typeof x=="function"&&x(t.memoizedProps.id,n,s,o)}function Oj(t,n,o,s){var l=t.memoizedProps;t=l.id,l=l.onPostCommit,n=n===null?"mount":"update",qp&&(n="nested-update"),typeof l=="function"&&l(t,n,s,o)}function CT(t){var n=t.type,o=t.memoizedProps,s=t.stateNode;try{Ze(t,Zj,s,n,o,t)}catch(l){Lt(t,t.return,l)}}function m0(t,n,o){try{Ze(t,Jj,t.stateNode,t.type,o,n,t)}catch(s){Lt(t,t.return,s)}}function IT(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Sa(t.type)||t.tag===4}function g0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||IT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Sa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function y0(t,n,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,n):(n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(t),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=gp));else if(s!==4&&(s===27&&Sa(t.type)&&(o=t.stateNode,n=null),t=t.child,t!==null))for(y0(t,n,o),t=t.sibling;t!==null;)y0(t,n,o),t=t.sibling}function fp(t,n,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(s!==4&&(s===27&&Sa(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(fp(t,n,o),t=t.sibling;t!==null;)fp(t,n,o),t=t.sibling}function Fj(t){for(var n,o=t.return;o!==null;){if(IT(o)){n=o;break}o=o.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,o=g0(t),fp(t,o,n);break;case 5:o=n.stateNode,n.flags&32&&(RR(o),n.flags&=-33),n=g0(t),fp(t,n,o);break;case 3:case 4:n=n.stateNode.containerInfo,o=g0(t),y0(t,o,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function TT(t){var n=t.stateNode,o=t.memoizedProps;try{Ze(t,fL,t.type,o,n,t)}catch(s){Lt(t,t.return,s)}}function Nj(t,n){if(t=t.containerInfo,dv=gm,t=nI(t),ay(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var l=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var x=0,R=-1,q=-1,Z=0,Se=0,Fe=t,we=null;t:for(;;){for(var Ne;Fe!==o||l!==0&&Fe.nodeType!==3||(R=x+l),Fe!==d||s!==0&&Fe.nodeType!==3||(q=x+s),Fe.nodeType===3&&(x+=Fe.nodeValue.length),(Ne=Fe.firstChild)!==null;)we=Fe,Fe=Ne;for(;;){if(Fe===t)break t;if(we===o&&++Z===l&&(R=x),we===d&&++Se===s&&(q=x),(Ne=Fe.nextSibling)!==null)break;Fe=we,we=Fe.parentNode}Fe=Ne}o=R===-1||q===-1?null:{start:R,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(hv={focusedElem:t,selectionRange:o},gm=!1,In=n;In!==null;)if(n=In,t=n.child,(n.subtreeFlags&1024)!==0&&t!==null)t.return=n,In=t;else for(;In!==null;){switch(t=n=In,o=t.alternate,l=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:(l&1024)!==0&&o!==null&&Tj(t,o);break;case 3:if((l&1024)!==0){if(t=t.stateNode.containerInfo,o=t.nodeType,o===9)L0(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":L0(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&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(t=n.sibling,t!==null){t.return=n.return,In=t;break}In=n.return}}function RT(t,n,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Ti(t,o),s&4&&AT(o,kn|lo);break;case 1:if(Ti(t,o),s&4)if(t=o.stateNode,n===null)o.type.defaultProps||"ref"in o.memoizedProps||Ol||(t.props!==o.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.",T(o)||"instance"),t.state!==o.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.",T(o)||"instance")),zo(o)?(Ho(),Ze(o,kb,o,t),qo()):Ze(o,kb,o,t);else{var l=_s(o.type,n.memoizedProps);n=n.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Ol||(t.props!==o.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.",T(o)||"instance"),t.state!==o.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.",T(o)||"instance")),zo(o)?(Ho(),Ze(o,g3,o,t,l,n,t.__reactInternalSnapshotBeforeUpdate),qo()):Ze(o,g3,o,t,l,n,t.__reactInternalSnapshotBeforeUpdate)}s&64&&ET(o),s&512&&Wc(o,o.return);break;case 3:if(n=Ei(),Ti(t,o),s&64&&(s=o.updateQueue,s!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}try{Ze(o,wI,s,l)}catch(x){Lt(o,o.return,x)}}t.effectDuration+=kh(n);break;case 27:n===null&&s&4&&TT(o);case 26:case 5:Ti(t,o),n===null&&s&4&&CT(o),s&512&&Wc(o,o.return);break;case 12:if(s&4){s=Ei(),Ti(t,o),t=o.stateNode,t.effectDuration+=Hc(s);try{Ze(o,ST,o,n,$p,t.effectDuration)}catch(x){Lt(o,o.return,x)}}else Ti(t,o);break;case 13:Ti(t,o),s&4&&NT(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=kj.bind(null,o),uL(t,o))));break;case 22:if(s=o.memoizedState!==null||ji,!s){n=n!==null&&n.memoizedState!==null||an,l=ji;var d=an;ji=s,(an=n)&&!d?Ri(t,o,(o.subtreeFlags&8772)!==0):Ti(t,o),ji=l,an=d}break;case 30:break;default:Ti(t,o)}}function OT(t){var n=t.alternate;n!==null&&(t.alternate=null,OT(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&<(n)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ii(t,n,o){for(o=o.child;o!==null;)FT(t,n,o),o=o.sibling}function FT(t,n,o){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(il,o)}catch(d){Zo||(Zo=!0,console.error("React instrumentation encountered an error: %s",d))}switch(o.tag){case 26:an||Vo(o,n),Ii(t,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:an||Vo(o,n);var s=pn,l=Sr;Sa(o.type)&&(pn=o.stateNode,Sr=!1),Ii(t,n,o),Ze(o,sf,o.stateNode),pn=s,Sr=l;break;case 5:an||Vo(o,n);case 6:if(s=pn,l=Sr,pn=null,Ii(t,n,o),pn=s,Sr=l,pn!==null)if(Sr)try{Ze(o,tL,pn,o.stateNode)}catch(d){Lt(o,n,d)}else try{Ze(o,eL,pn,o.stateNode)}catch(d){Lt(o,n,d)}break;case 18:pn!==null&&(Sr?(t=pn,OR(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),ff(t)):OR(pn,o.stateNode));break;case 4:s=pn,l=Sr,pn=o.stateNode.containerInfo,Sr=!0,Ii(t,n,o),pn=s,Sr=l;break;case 0:case 11:case 14:case 15:an||Qu(lr,o,n),an||h0(o,n,kn),Ii(t,n,o);break;case 1:an||(Vo(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"&&wT(o,n,s)),Ii(t,n,o);break;case 21:Ii(t,n,o);break;case 22:an=(s=an)||o.memoizedState!==null,Ii(t,n,o),an=s;break;default:Ii(t,n,o)}}function NT(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ze(n,cL,t)}catch(o){Lt(n,n.return,o)}}function Dj(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Q3),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Q3),n;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function b0(t,n){var o=Dj(t);n.forEach(function(s){var l=$j.bind(null,t,s);if(!o.has(s)){if(o.add(s),So)if(Fl!==null&&Nl!==null)rf(Nl,Fl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(l,l)}})}function Pr(t,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var l=t,d=n,x=o[s],R=d;e:for(;R!==null;){switch(R.tag){case 27:if(Sa(R.type)){pn=R.stateNode,Sr=!1;break e}break;case 5:pn=R.stateNode,Sr=!1;break e;case 3:case 4:pn=R.stateNode.containerInfo,Sr=!0;break e}R=R.return}if(pn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");FT(l,d,x),pn=null,Sr=!1,l=x,d=l.alternate,d!==null&&(d.return=null),l.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)DT(n,t),n=n.sibling}function DT(t,n){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Pr(n,t),jr(t),s&4&&(Qu(lr|lo,t,t.return),Jc(lr|lo,t),h0(t,t.return,kn|lo));break;case 1:Pr(n,t),jr(t),s&512&&(an||o===null||Vo(o,o.return)),s&64&&ji&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var l=Ro;if(Pr(n,t),jr(t),s&512&&(an||o===null||Vo(o,o.return)),s&4)if(n=o!==null?o.memoizedState:null,s=t.memoizedState,o===null)if(s===null)if(t.stateNode===null){e:{s=t.type,o=t.memoizedProps,n=l.ownerDocument||l;t:switch(s){case"title":l=n.getElementsByTagName("title")[0],(!l||l[pf]||l[Xn]||l.namespaceURI===sl||l.hasAttribute("itemprop"))&&(l=n.createElement(s),n.head.insertBefore(l,n.querySelector("head > title"))),Pn(l,s,o),l[Xn]=t,pe(l),s=l;break e;case"link":var d=LR("link","href",n).get(s+(o.href||""));if(d){for(var x=0;x<d.length;x++)if(l=d[x],l.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&l.getAttribute("rel")===(o.rel==null?null:o.rel)&&l.getAttribute("title")===(o.title==null?null:o.title)&&l.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){d.splice(x,1);break t}}l=n.createElement(s),Pn(l,s,o),n.head.appendChild(l);break;case"meta":if(d=LR("meta","content",n).get(s+(o.content||""))){for(x=0;x<d.length;x++)if(l=d[x],le(o.content,"content"),l.getAttribute("content")===(o.content==null?null:""+o.content)&&l.getAttribute("name")===(o.name==null?null:o.name)&&l.getAttribute("property")===(o.property==null?null:o.property)&&l.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute("charset")===(o.charSet==null?null:o.charSet)){d.splice(x,1);break t}}l=n.createElement(s),Pn(l,s,o),n.head.appendChild(l);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}l[Xn]=t,pe(l),s=l}t.stateNode=s}else kR(l,t.type,t.stateNode);else t.stateNode=jR(l,s,t.memoizedProps);else n!==s?(n===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):n.count--,s===null?kR(l,t.type,t.stateNode):jR(l,s,t.memoizedProps)):s===null&&t.stateNode!==null&&m0(t,t.memoizedProps,o.memoizedProps);break;case 27:Pr(n,t),jr(t),s&512&&(an||o===null||Vo(o,o.return)),o!==null&&s&4&&m0(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Pr(n,t),jr(t),s&512&&(an||o===null||Vo(o,o.return)),t.flags&32){n=t.stateNode;try{Ze(t,RR,n)}catch(Se){Lt(t,t.return,Se)}}s&4&&t.stateNode!=null&&(n=t.memoizedProps,m0(t,n,o!==null?o.memoizedProps:n)),s&1024&&(Qb=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Pr(n,t),jr(t),s&4){if(t.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.");s=t.memoizedProps,o=o!==null?o.memoizedProps:s,n=t.stateNode;try{Ze(t,Wj,n,o,s)}catch(Se){Lt(t,t.return,Se)}}break;case 3:if(l=Ei(),hm=null,d=Ro,Ro=bp(n.containerInfo),Pr(n,t),Ro=d,jr(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Ze(t,lL,n.containerInfo)}catch(Se){Lt(t,t.return,Se)}Qb&&(Qb=!1,BT(t)),n.effectDuration+=kh(l);break;case 4:s=Ro,Ro=bp(t.stateNode.containerInfo),Pr(n,t),jr(t),Ro=s;break;case 12:s=Ei(),Pr(n,t),jr(t),t.stateNode.effectDuration+=Hc(s);break;case 13:Pr(n,t),jr(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Wb=Xo()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,b0(t,s)));break;case 22:l=t.memoizedState!==null;var R=o!==null&&o.memoizedState!==null,q=ji,Z=an;if(ji=q||l,an=Z||R,Pr(n,t),an=Z,ji=q,jr(t),s&8192)e:for(n=t.stateNode,n._visibility=l?n._visibility&~Pp:n._visibility|Pp,l&&(o===null||R||ji||an||Ms(t)),o=null,n=t;;){if(n.tag===5||n.tag===26){if(o===null){R=o=n;try{d=R.stateNode,l?Ze(R,nL,d):Ze(R,oL,R.stateNode,R.memoizedProps)}catch(Se){Lt(R,R.return,Se)}}}else if(n.tag===6){if(o===null){R=n;try{x=R.stateNode,l?Ze(R,rL,x):Ze(R,iL,x,R.memoizedProps)}catch(Se){Lt(R,R.return,Se)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;o===n&&(o=null),n=n.return}o===n&&(o=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,b0(t,o))));break;case 19:Pr(n,t),jr(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,b0(t,s)));break;case 30:break;case 21:break;default:Pr(n,t),jr(t)}}function jr(t){var n=t.flags;if(n&2){try{Ze(t,Fj,t)}catch(o){Lt(t,t.return,o)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function BT(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;BT(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Ti(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)RT(t,n.alternate,n),n=n.sibling}function UT(t){switch(t.tag){case 0:case 11:case 14:case 15:h0(t,t.return,kn),Ms(t);break;case 1:Vo(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&wT(t,t.return,n),Ms(t);break;case 27:Ze(t,sf,t.stateNode);case 26:case 5:Vo(t,t.return),Ms(t);break;case 22:t.memoizedState===null&&Ms(t);break;case 30:Ms(t);break;default:Ms(t)}}function Ms(t){for(t=t.child;t!==null;)UT(t),t=t.sibling}function _T(t,n,o,s){var l=o.flags;switch(o.tag){case 0:case 11:case 15:Ri(t,o,s),AT(o,kn);break;case 1:if(Ri(t,o,s),n=o.stateNode,typeof n.componentDidMount=="function"&&Ze(o,kb,o,n),n=o.updateQueue,n!==null){t=o.stateNode;try{Ze(o,gj,n,t)}catch(d){Lt(o,o.return,d)}}s&&l&64&&ET(o),Wc(o,o.return);break;case 27:TT(o);case 26:case 5:Ri(t,o,s),s&&n===null&&l&4&&CT(o),Wc(o,o.return);break;case 12:if(s&&l&4){l=Ei(),Ri(t,o,s),s=o.stateNode,s.effectDuration+=Hc(l);try{Ze(o,ST,o,n,$p,s.effectDuration)}catch(d){Lt(o,o.return,d)}}else Ri(t,o,s);break;case 13:Ri(t,o,s),s&&l&4&&NT(t,o);break;case 22:o.memoizedState===null&&Ri(t,o,s),Wc(o,o.return);break;case 30:break;default:Ri(t,o,s)}}function Ri(t,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)_T(t,n.alternate,n,o),n=n.sibling}function v0(t,n){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==o&&(t!=null&&Ns(t),o!=null&&qc(o))}function A0(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(Ns(n),t!=null&&qc(t))}function Go(t,n,o,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)MT(t,n,o,s),n=n.sibling}function MT(t,n,o,s){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Go(t,n,o,s),l&2048&&xT(n,xn|lo);break;case 1:Go(t,n,o,s);break;case 3:var d=Ei();Go(t,n,o,s),l&2048&&(o=null,n.alternate!==null&&(o=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==o&&(Ns(n),o!=null&&qc(o))),t.passiveEffectDuration+=kh(d);break;case 12:if(l&2048){l=Ei(),Go(t,n,o,s),t=n.stateNode,t.passiveEffectDuration+=Hc(l);try{Ze(n,Oj,n,n.alternate,$p,t.passiveEffectDuration)}catch(R){Lt(n,n.return,R)}}else Go(t,n,o,s);break;case 13:Go(t,n,o,s);break;case 23:break;case 22:d=n.stateNode;var x=n.alternate;n.memoizedState!==null?d._visibility&Di?Go(t,n,o,s):ef(t,n):d._visibility&Di?Go(t,n,o,s):(d._visibility|=Di,Yu(t,n,o,s,(n.subtreeFlags&10256)!==0)),l&2048&&v0(x,n);break;case 24:Go(t,n,o,s),l&2048&&A0(n.alternate,n);break;default:Go(t,n,o,s)}}function Yu(t,n,o,s,l){for(l=l&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;)PT(t,n,o,s,l),n=n.sibling}function PT(t,n,o,s,l){var d=n.flags;switch(n.tag){case 0:case 11:case 15:Yu(t,n,o,s,l),xT(n,xn);break;case 23:break;case 22:var x=n.stateNode;n.memoizedState!==null?x._visibility&Di?Yu(t,n,o,s,l):ef(t,n):(x._visibility|=Di,Yu(t,n,o,s,l)),l&&d&2048&&v0(n.alternate,n);break;case 24:Yu(t,n,o,s,l),l&&d&2048&&A0(n.alternate,n);break;default:Yu(t,n,o,s,l)}}function ef(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var o=t,s=n,l=s.flags;switch(s.tag){case 22:ef(o,s),l&2048&&v0(s.alternate,s);break;case 24:ef(o,s),l&2048&&A0(s.alternate,s);break;default:ef(o,s)}n=n.sibling}}function Ku(t){if(t.subtreeFlags&Pf)for(t=t.child;t!==null;)jT(t),t=t.sibling}function jT(t){switch(t.tag){case 26:Ku(t),t.flags&Pf&&t.memoizedState!==null&&mL(Ro,t.memoizedState,t.memoizedProps);break;case 5:Ku(t);break;case 3:case 4:var n=Ro;Ro=bp(t.stateNode.containerInfo),Ku(t),Ro=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Pf,Pf=16777216,Ku(t),Pf=n):Ku(t));break;default:Ku(t)}}function LT(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function tf(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];In=s,qT(s,t)}LT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kT(t),t=t.sibling}function kT(t){switch(t.tag){case 0:case 11:case 15:tf(t),t.flags&2048&&p0(t,t.return,xn|lo);break;case 3:var n=Ei();tf(t),t.stateNode.passiveEffectDuration+=kh(n);break;case 12:n=Ei(),tf(t),t.stateNode.passiveEffectDuration+=Hc(n);break;case 22:n=t.stateNode,t.memoizedState!==null&&n._visibility&Di&&(t.return===null||t.return.tag!==13)?(n._visibility&=~Di,dp(t)):tf(t);break;default:tf(t)}}function dp(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];In=s,qT(s,t)}LT(t)}for(t=t.child;t!==null;)$T(t),t=t.sibling}function $T(t){switch(t.tag){case 0:case 11:case 15:p0(t,t.return,xn),dp(t);break;case 22:var n=t.stateNode;n._visibility&Di&&(n._visibility&=~Di,dp(t));break;default:dp(t)}}function qT(t,n){for(;In!==null;){var o=In,s=o;switch(s.tag){case 0:case 11:case 15:p0(s,n,xn);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&Ns(s));break;case 24:qc(s.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,In=s;else e:for(o=t;In!==null;){s=In;var l=s.sibling,d=s.return;if(OT(s),s===o){In=null;break e}if(l!==null){l.return=d,In=l;break e}In=d}}}function Bj(){Q5.forEach(function(t){return t()})}function HT(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||Oe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Lr(t){if((Ut&cr)!==qr&&xt!==0)return xt&-xt;var n=Oe.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(t),t=qs,t!==0?t:O0()):rt()}function zT(){zr===0&&(zr=(xt&536870912)===0||Nt?Y():536870912);var t=fo.current;return t!==null&&(t.flags|=32),zr}function on(t,n,o){if(Ml&&console.error("useInsertionEffect must not schedule updates."),ov&&(tm=!0),(t===Ht&&(_t===Qs||_t===Ys)||t.cancelPendingCommit!==null)&&(Zu(t,0),Ea(t,xt,zr,!1)),He(t,o),(Ut&cr)!==0&&t===Ht){if(Wo)switch(n.tag){case 0:case 11:case 15:t=vt&&T(vt)||"Unknown",rF.has(t)||(rF.add(t),n=T(n)||"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",n,t,t));break;case 1:nF||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),nF=!0)}}else So&&je(t,n,o),Hj(n),t===Ht&&((Ut&cr)===qr&&(Pa|=o),en===Gs&&Ea(t,xt,zr,!1)),Qo(t)}function VT(t,n,o){if((Ut&(cr|Oo))!==qr)throw Error("Should not already be working.");var s=!o&&(n&124)===0&&(n&t.expiredLanes)===0||b(t,n),l=s?_j(t,n):w0(t,n,!0),d=s;do{if(l===Li){Ul&&!s&&Ea(t,n,0,!1);break}else{if(o=t.current.alternate,d&&!Uj(o)){l=w0(t,n,!1),d=!1;continue}if(l===Dl){if(d=n,t.errorRecoveryDisabledLanes&d)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{l=t;var R=x;x=Hf;var q=l.current.memoizedState.isDehydrated;if(q&&(Zu(l,R).flags|=256),R=w0(l,R,!1),R!==Dl){if(Zb&&!q){l.errorRecoveryDisabledLanes|=d,Pa|=d,l=Gs;break e}l=fr,fr=x,l!==null&&(fr===null?fr=l:fr.push.apply(fr,l))}l=R}if(d=!1,l!==Dl)continue}}if(l===Lf){Zu(t,0),Ea(t,n,0,!0);break}e:{switch(s=t,l){case Li:case Lf:throw Error("Root did not complete. This is a bug in React.");case Gs:if((n&4194048)!==n)break;case Jp:Ea(s,n,zr,!_a);break e;case Dl:fr=null;break;case Yb:case Y3:break;default:throw Error("Unknown root exit status.")}if(Oe.actQueue!==null)S0(s,o,n,fr,zf,Wp,zr,Pa,Ks);else{if((n&62914560)===n&&(d=Wb+X3-Xo(),10<d)){if(Ea(s,n,zr,!_a),y(s,0,!0)!==0)break e;s.timeoutHandle=fF(GT.bind(null,s,o,fr,zf,Wp,n,zr,Pa,Ks,_a,l,Z5,JO,0),d);break e}GT(s,o,fr,zf,Wp,n,zr,Pa,Ks,_a,l,K5,JO,0)}}}break}while(!0);Qo(t)}function GT(t,n,o,s,l,d,x,R,q,Z,Se,Fe,we,Ne){if(t.timeoutHandle=eu,Fe=n.subtreeFlags,(Fe&8192||(Fe&16785408)===16785408)&&(Xf={stylesheets:null,count:0,unsuspend:pL},jT(n),Fe=gL(),Fe!==null)){t.cancelPendingCommit=Fe(S0.bind(null,t,n,d,o,s,l,x,R,q,Se,X5,we,Ne)),Ea(t,d,x,!Z);return}S0(t,n,d,o,s,l,x,R,q)}function Uj(t){for(var n=t;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var l=o[s],d=l.getSnapshot;l=l.value;try{if(!sr(d(),l))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ea(t,n,o,s){n&=~Jb,n&=~Pa,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var l=n;0<l;){var d=31-ir(l),x=1<<d;s[d]=-1,l&=~x}o!==0&&ce(t,o,n)}function Xu(){return(Ut&(cr|Oo))===qr?(of(0),!1):!0}function x0(){if(vt!==null){if(_t===Cr)var t=vt.return;else t=vt,Ph(),Dy(t),Cl=null,_f=0,t=vt;for(;t!==null;)vT(t.alternate,t),t=t.return;vt=null}}function Zu(t,n){var o=t.timeoutHandle;o!==eu&&(t.timeoutHandle=eu,ck(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),x0(),Ht=t,vt=o=Ai(t.current,null),xt=n,_t=Cr,Hr=null,_a=!1,Ul=b(t,n),Zb=!1,en=Li,Ks=zr=Jb=Pa=Ma=0,fr=Hf=null,Wp=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var l=31-ir(s),d=1<<l;n|=t[l],s&=~d}return oi=n,Bh(),n=XO(),1e3<n-KO&&(Oe.recentlyCreatedOwnerStacks=0,KO=n),Io.discardPendingWarnings(),o}function QT(t,n){ct=null,Oe.H=Xp,Oe.getCurrentStack=null,Wo=!1,$r=null,n===Nf||n===Vp?(n=AI(),_t=$f):n===t3?(n=AI(),_t=K3):_t=n===L3?Xb:n!==null&&typeof n=="object"&&typeof n.then=="function"?Bl:kf,Hr=n;var o=vt;if(o===null)en=Lf,sp(t,Mr(n,t.current));else switch(o.mode&Ln&&xy(o),w(),_t){case kf:Ge!==null&&typeof Ge.markComponentErrored=="function"&&Ge.markComponentErrored(o,n,xt);break;case Qs:case Ys:case $f:case Bl:case qf:Ge!==null&&typeof Ge.markComponentSuspended=="function"&&Ge.markComponentSuspended(o,n,xt)}}function YT(){var t=Oe.H;return Oe.H=Xp,t===null?Xp:t}function KT(){var t=Oe.A;return Oe.A=G5,t}function E0(){en=Gs,_a||(xt&4194048)!==xt&&fo.current!==null||(Ul=!0),(Ma&134217727)===0&&(Pa&134217727)===0||Ht===null||Ea(Ht,xt,zr,!1)}function w0(t,n,o){var s=Ut;Ut|=cr;var l=YT(),d=KT();if(Ht!==t||xt!==n){if(So){var x=t.memoizedUpdaters;0<x.size&&(rf(t,xt),x.clear()),We(t,n)}zf=null,Zu(t,n)}j(n),n=!1,x=en;e:do try{if(_t!==Cr&&vt!==null){var R=vt,q=Hr;switch(_t){case Xb:x0(),x=Jp;break e;case $f:case Qs:case Ys:case Bl:fo.current===null&&(n=!0);var Z=_t;if(_t=Cr,Hr=null,Ju(t,R,q,Z),o&&Ul){x=Li;break e}break;default:Z=_t,_t=Cr,Hr=null,Ju(t,R,q,Z)}}XT(),x=en;break}catch(Se){QT(t,Se)}while(!0);return n&&t.shellSuspendCounter++,Ph(),Ut=s,Oe.H=l,Oe.A=d,G(),vt===null&&(Ht=null,xt=0,Bh()),x}function XT(){for(;vt!==null;)ZT(vt)}function _j(t,n){var o=Ut;Ut|=cr;var s=YT(),l=KT();if(Ht!==t||xt!==n){if(So){var d=t.memoizedUpdaters;0<d.size&&(rf(t,xt),d.clear()),We(t,n)}zf=null,em=Xo()+Z3,Zu(t,n)}else Ul=b(t,n);j(n);e:do try{if(_t!==Cr&&vt!==null)t:switch(n=vt,d=Hr,_t){case kf:_t=Cr,Hr=null,Ju(t,n,d,kf);break;case Qs:case Ys:if(bI(d)){_t=Cr,Hr=null,JT(n);break}n=function(){_t!==Qs&&_t!==Ys||Ht!==t||(_t=qf),Qo(t)},d.then(n,n);break e;case $f:_t=qf;break e;case K3:_t=Kb;break e;case qf:bI(d)?(_t=Cr,Hr=null,JT(n)):(_t=Cr,Hr=null,Ju(t,n,d,qf));break;case Kb:var x=null;switch(vt.tag){case 26:x=vt.memoizedState;case 5:case 27:var R=vt;if(!x||$R(x)){_t=Cr,Hr=null;var q=R.sibling;if(q!==null)vt=q;else{var Z=R.return;Z!==null?(vt=Z,hp(Z)):vt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_t=Cr,Hr=null,Ju(t,n,d,Kb);break;case Bl:_t=Cr,Hr=null,Ju(t,n,d,Bl);break;case Xb:x0(),en=Jp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Oe.actQueue!==null?XT():Mj();break}catch(Se){QT(t,Se)}while(!0);return Ph(),Oe.H=s,Oe.A=l,Ut=o,vt!==null?(Ge!==null&&typeof Ge.markRenderYielded=="function"&&Ge.markRenderYielded(),Li):(G(),Ht=null,xt=0,Bh(),en)}function Mj(){for(;vt!==null&&!DL();)ZT(vt)}function ZT(t){var n=t.alternate;(t.mode&Ln)!==Qt?(Ay(t),n=Ze(t,d0,n,t,oi),xy(t)):n=Ze(t,d0,n,t,oi),t.memoizedProps=t.pendingProps,n===null?hp(t):vt=n}function JT(t){var n=Ze(t,Pj,t);t.memoizedProps=t.pendingProps,n===null?hp(t):vt=n}function Pj(t){var n=t.alternate,o=(t.mode&Ln)!==Qt;switch(o&&Ay(t),t.tag){case 15:case 0:n=fT(n,t,t.pendingProps,t.type,void 0,xt);break;case 11:n=fT(n,t,t.pendingProps,t.type.render,t.ref,xt);break;case 5:Dy(t);default:vT(n,t),t=vt=sI(t,oi),n=d0(n,t,oi)}return o&&xy(t),n}function Ju(t,n,o,s){Ph(),Dy(n),Cl=null,_f=0;var l=n.return;try{if(Ej(t,l,n,o,xt)){en=Lf,sp(t,Mr(o,t.current)),vt=null;return}}catch(d){if(l!==null)throw vt=l,d;en=Lf,sp(t,Mr(o,t.current)),vt=null;return}n.flags&32768?(Nt||s===kf?t=!0:Ul||(xt&536870912)!==0?t=!1:(_a=t=!0,(s===Qs||s===Ys||s===$f||s===Bl)&&(s=fo.current,s!==null&&s.tag===13&&(s.flags|=16384))),WT(n,t)):hp(n)}function hp(t){var n=t;do{if((n.flags&32768)!==0){WT(n,_a);return}var o=n.alternate;if(t=n.return,Ay(n),o=Ze(n,Sj,o,n,oi),(n.mode&Ln)!==Qt&&pI(n),o!==null){vt=o;return}if(n=n.sibling,n!==null){vt=n;return}vt=n=t}while(n!==null);en===Li&&(en=Y3)}function WT(t,n){do{var o=Cj(t.alternate,t);if(o!==null){o.flags&=32767,vt=o;return}if((t.mode&Ln)!==Qt){pI(t),o=t.actualDuration;for(var s=t.child;s!==null;)o+=s.actualDuration,s=s.sibling;t.actualDuration=o}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(t=t.sibling,t!==null)){vt=t;return}vt=t=o}while(t!==null);en=Jp,vt=null}function S0(t,n,o,s,l,d,x,R,q){t.cancelPendingCommit=null;do nf();while($n!==Xs);if(Io.flushLegacyContextWarning(),Io.flushPendingUnsafeLifecycleWarnings(),(Ut&(cr|Oo))!==qr)throw Error("Should not already be working.");if(Ge!==null&&typeof Ge.markCommitStarted=="function"&&Ge.markCommitStarted(o),n===null)Ae();else{if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===t.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(d=n.lanes|n.childLanes,d|=Tb,fe(t,o,d,x,R,q),t===Ht&&(vt=Ht=null,xt=0),_l=n,La=t,ka=o,tv=d,nv=l,tF=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qj(ol,function(){return oR(),null})):(t.callbackNode=null,t.callbackPriority=0),$p=Al(),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=Oe.T,Oe.T=null,l=Bt.p,Bt.p=no,x=Ut,Ut|=Oo;try{Nj(t,n,o)}finally{Ut=x,Bt.p=l,Oe.T=s}}$n=J3,eR(),tR(),nR()}}function eR(){if($n===J3){$n=Xs;var t=La,n=_l,o=ka,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=Oe.T,Oe.T=null;var l=Bt.p;Bt.p=no;var d=Ut;Ut|=Oo;try{Fl=o,Nl=t,DT(n,t),Nl=Fl=null,o=hv;var x=nI(t.containerInfo),R=o.focusedElem,q=o.selectionRange;if(x!==R&&R&&R.ownerDocument&&tI(R.ownerDocument.documentElement,R)){if(q!==null&&ay(R)){var Z=q.start,Se=q.end;if(Se===void 0&&(Se=Z),"selectionStart"in R)R.selectionStart=Z,R.selectionEnd=Math.min(Se,R.value.length);else{var Fe=R.ownerDocument||document,we=Fe&&Fe.defaultView||window;if(we.getSelection){var Ne=we.getSelection(),Ke=R.textContent.length,ut=Math.min(q.start,Ke),zt=q.end===void 0?ut:Math.min(q.end,Ke);!Ne.extend&&ut>zt&&(x=zt,zt=ut,ut=x);var St=eI(R,ut),ae=eI(R,zt);if(St&&ae&&(Ne.rangeCount!==1||Ne.anchorNode!==St.node||Ne.anchorOffset!==St.offset||Ne.focusNode!==ae.node||Ne.focusOffset!==ae.offset)){var se=Fe.createRange();se.setStart(St.node,St.offset),Ne.removeAllRanges(),ut>zt?(Ne.addRange(se),Ne.extend(ae.node,ae.offset)):(se.setEnd(ae.node,ae.offset),Ne.addRange(se))}}}}for(Fe=[],Ne=R;Ne=Ne.parentNode;)Ne.nodeType===1&&Fe.push({element:Ne,left:Ne.scrollLeft,top:Ne.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<Fe.length;R++){var be=Fe[R];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}gm=!!dv,hv=dv=null}finally{Ut=d,Bt.p=l,Oe.T=s}}t.current=n,$n=W3}}function tR(){if($n===W3){$n=Xs;var t=La,n=_l,o=ka,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=Oe.T,Oe.T=null;var l=Bt.p;Bt.p=no;var d=Ut;Ut|=Oo;try{Ge!==null&&typeof Ge.markLayoutEffectsStarted=="function"&&Ge.markLayoutEffectsStarted(o),Fl=o,Nl=t,RT(t,n.alternate,n),Nl=Fl=null,Ge!==null&&typeof Ge.markLayoutEffectsStopped=="function"&&Ge.markLayoutEffectsStopped()}finally{Ut=d,Bt.p=l,Oe.T=s}}$n=eF}}function nR(){if($n===J5||$n===eF){$n=Xs,BL();var t=La,n=_l,o=ka,s=tF,l=(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;l?$n=ev:($n=Xs,_l=La=null,rR(t,t.pendingLanes),Zs=0,Gf=null);var d=t.pendingLanes;if(d===0&&(ja=null),l||uR(t),l=Ye(o),n=n.stateNode,Kn&&typeof Kn.onCommitFiberRoot=="function")try{var x=(n.current.flags&128)===128;switch(l){case no:var R=ib;break;case Jo:R=ab;break;case Ni:R=ol;break;case Fp:R=sb;break;default:R=ol}Kn.onCommitFiberRoot(il,n,R,x)}catch(Fe){Zo||(Zo=!0,console.error("React instrumentation encountered an error: %s",Fe))}if(So&&t.memoizedUpdaters.clear(),Bj(),s!==null){x=Oe.T,R=Bt.p,Bt.p=no,Oe.T=null;try{var q=t.onRecoverableError;for(n=0;n<s.length;n++){var Z=s[n],Se=jj(Z.stack);Ze(Z.source,q,Z.value,Se)}}finally{Oe.T=x,Bt.p=R}}(ka&3)!==0&&nf(),Qo(t),d=t.pendingLanes,(o&4194090)!==0&&(d&42)!==0?(Hp=!0,t===rv?Vf++:(Vf=0,rv=t)):Vf=0,of(0),Ae()}}function jj(t){return t={componentStack:t},Object.defineProperty(t,"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.')}}),t}function rR(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,qc(n)))}function nf(t){return eR(),tR(),nR(),oR()}function oR(){if($n!==ev)return!1;var t=La,n=tv;tv=0;var o=Ye(ka),s=Ni>o?Ni:o;o=Oe.T;var l=Bt.p;try{Bt.p=s,Oe.T=null,s=nv,nv=null;var d=La,x=ka;if($n=Xs,_l=La=null,ka=0,(Ut&(cr|Oo))!==qr)throw Error("Cannot flush passive effects while already rendering.");ov=!0,tm=!1,Ge!==null&&typeof Ge.markPassiveEffectsStarted=="function"&&Ge.markPassiveEffectsStarted(x);var R=Ut;if(Ut|=Oo,kT(d.current),MT(d,d.current,x,s),Ge!==null&&typeof Ge.markPassiveEffectsStopped=="function"&&Ge.markPassiveEffectsStopped(),uR(d),Ut=R,of(0,!1),tm?d===Gf?Zs++:(Zs=0,Gf=d):Zs=0,tm=ov=!1,Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(il,d)}catch(Z){Zo||(Zo=!0,console.error("React instrumentation encountered an error: %s",Z))}var q=d.current.stateNode;return q.effectDuration=0,q.passiveEffectDuration=0,!0}finally{Bt.p=l,Oe.T=o,rR(t,n)}}function iR(t,n,o){n=Mr(o,n),n=t0(t.stateNode,n,2),t=ba(t,n,2),t!==null&&(He(t,2),Qo(t))}function Lt(t,n,o){if(Ml=!1,t.tag===3)iR(t,t,o);else{for(;n!==null;){if(n.tag===3){iR(n,t,o);return}if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ja===null||!ja.has(s))){t=Mr(o,t),o=n0(2),s=ba(n,o,2),s!==null&&(r0(o,s,n,t),He(s,2),Qo(s));return}}n=n.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.
|
|
200
|
+
|
|
201
|
+
Error message:
|
|
202
|
+
|
|
203
|
+
%s`,o)}}function C0(t,n,o){var s=t.pingCache;if(s===null){s=t.pingCache=new Y5;var l=new Set;s.set(n,l)}else l=s.get(n),l===void 0&&(l=new Set,s.set(n,l));l.has(o)||(Zb=!0,l.add(o),s=Lj.bind(null,t,n,o),So&&rf(t,o),n.then(s,s))}function Lj(t,n,o){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,HT()&&Oe.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
204
|
+
|
|
205
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
206
|
+
|
|
207
|
+
act(() => {
|
|
208
|
+
/* finish loading suspended data */
|
|
209
|
+
});
|
|
210
|
+
/* assert on the output */
|
|
211
|
+
|
|
212
|
+
This 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`),Ht===t&&(xt&o)===o&&(en===Gs||en===Yb&&(xt&62914560)===xt&&Xo()-Wb<X3?(Ut&cr)===qr&&Zu(t,0):Jb|=o,Ks===xt&&(Ks=0)),Qo(t)}function aR(t,n){n===0&&(n=Ee()),t=vr(t,n),t!==null&&(He(t,n),Qo(t))}function kj(t){var n=t.memoizedState,o=0;n!==null&&(o=n.retryLane),aR(t,o)}function $j(t,n){var o=0;switch(t.tag){case 13:var s=t.stateNode,l=t.memoizedState;l!==null&&(o=l.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(n),aR(t,o)}function I0(t,n,o){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var s=t,l=n,d=l.type===Cp;d=o||d,l.tag!==22?l.flags&67108864?d&&Ze(l,sR,s,l,(l.mode&GO)===Qt):I0(s,l,d):l.memoizedState===null&&(d&&l.flags&8192?Ze(l,sR,s,l):l.subtreeFlags&67108864&&Ze(l,I0,s,l,d)),n=n.sibling}}function sR(t,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Q(!0);try{UT(n),o&&$T(n),_T(t,n.alternate,n,!1),o&&PT(t,n,0,null,!1,0)}finally{Q(!1)}}function uR(t){var n=!0;t.current.mode&(Zn|Co)||(n=!1),I0(t,t.current,n)}function lR(t){if((Ut&cr)===qr){var n=t.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=T(t)||"ReactComponent",nm!==null){if(nm.has(n))return;nm.add(n)}else nm=new Set([n]);Ze(t,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 later calls tries to update the component. Move this work to useEffect instead.")})}}}function rf(t,n){So&&t.memoizedUpdaters.forEach(function(o){je(t,o,n)})}function qj(t,n){var o=Oe.actQueue;return o!==null?(o.push(n),tk):ob(t,n)}function Hj(t){HT()&&Oe.actQueue===null&&Ze(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
213
|
+
|
|
214
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
215
|
+
|
|
216
|
+
act(() => {
|
|
217
|
+
/* fire events that update state */
|
|
218
|
+
});
|
|
219
|
+
/* assert on the output */
|
|
220
|
+
|
|
221
|
+
This 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`,T(t))})}function Qo(t){t!==Pl&&t.next===null&&(Pl===null?rm=Pl=t:Pl=Pl.next=t),om=!0,Oe.actQueue!==null?av||(av=!0,hR()):iv||(iv=!0,hR())}function of(t,n){if(!sv&&om){sv=!0;do for(var o=!1,s=rm;s!==null;){if(t!==0){var l=s.pendingLanes;if(l===0)var d=0;else{var x=s.suspendedLanes,R=s.pingedLanes;d=(1<<31-ir(42|t)+1)-1,d&=l&~(x&~R),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,dR(s,d))}else d=xt,d=y(s,s===Ht?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==eu),(d&3)===0||b(s,d)||(o=!0,dR(s,d));s=s.next}while(o);sv=!1}}function zj(){T0()}function T0(){om=av=iv=!1;var t=0;Js!==0&&(Kj()&&(t=Js),Js=0);for(var n=Xo(),o=null,s=rm;s!==null;){var l=s.next,d=cR(s,n);d===0?(s.next=null,o===null?rm=l:o.next=l,l===null&&(Pl=o)):(o=s,(t!==0||(d&3)!==0)&&(om=!0)),s=l}of(t)}function cR(t,n){for(var o=t.suspendedLanes,s=t.pingedLanes,l=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var x=31-ir(d),R=1<<x,q=l[x];q===-1?((R&o)===0||(R&s)!==0)&&(l[x]=I(R,n)):q<=n&&(t.expiredLanes|=R),d&=~R}if(n=Ht,o=xt,o=y(t,t===n?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==eu),s=t.callbackNode,o===0||t===n&&(_t===Qs||_t===Ys)||t.cancelPendingCommit!==null)return s!==null&&R0(s),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||b(t,o)){if(n=o&-o,n!==t.callbackPriority||Oe.actQueue!==null&&s!==uv)R0(s);else return n;switch(Ye(o)){case no:case Jo:o=ab;break;case Ni:o=ol;break;case Fp:o=sb;break;default:o=ol}return s=fR.bind(null,t),Oe.actQueue!==null?(Oe.actQueue.push(s),o=uv):o=ob(o,s),t.callbackPriority=n,t.callbackNode=o,n}return s!==null&&R0(s),t.callbackPriority=2,t.callbackNode=null,2}function fR(t,n){if(Hp=qp=!1,$n!==Xs&&$n!==ev)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(nf()&&t.callbackNode!==o)return null;var s=xt;return s=y(t,t===Ht?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==eu),s===0?null:(VT(t,s,n),cR(t,Xo()),t.callbackNode!=null&&t.callbackNode===o?fR.bind(null,t):null)}function dR(t,n){if(nf())return null;qp=Hp,Hp=!1,VT(t,n,!0)}function R0(t){t!==uv&&t!==null&&NL(t)}function hR(){Oe.actQueue!==null&&Oe.actQueue.push(function(){return T0(),null}),fk(function(){(Ut&(cr|Oo))!==qr?ob(ib,zj):T0()})}function O0(){return Js===0&&(Js=Y()),Js}function pR(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:(le(t,"action"),_c(""+t))}function mR(t,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,t.id&&o.setAttribute("form",t.id),n.parentNode.insertBefore(o,n),t=new FormData(t),o.parentNode.removeChild(o),t}function Vj(t,n,o,s,l){if(n==="submit"&&o&&o.stateNode===l){var d=pR((l[Er]||null).action),x=s.submitter;x&&(n=(n=x[Er]||null)?pR(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var R=new _p("action","action",null,s,l);t.push({event:R,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Js!==0){var q=x?mR(l,x):new FormData(l),Z={pending:!0,data:q,method:l.method,action:d};Object.freeze(Z),Yy(o,Z,null,q)}}else typeof d=="function"&&(R.preventDefault(),q=x?mR(l,x):new FormData(l),Z={pending:!0,data:q,method:l.method,action:d},Object.freeze(Z),Yy(o,Z,d,q))},currentTarget:l}]})}}function pp(t,n,o){t.currentTarget=o;try{n(t)}catch(s){Hb(s)}t.currentTarget=null}function gR(t,n){n=(n&4)!==0;for(var o=0;o<t.length;o++){var s=t[o];e:{var l=void 0,d=s.event;if(s=s.listeners,n)for(var x=s.length-1;0<=x;x--){var R=s[x],q=R.instance,Z=R.currentTarget;if(R=R.listener,q!==l&&d.isPropagationStopped())break e;q!==null?Ze(q,pp,d,R,Z):pp(d,R,Z),l=q}else for(x=0;x<s.length;x++){if(R=s[x],q=R.instance,Z=R.currentTarget,R=R.listener,q!==l&&d.isPropagationStopped())break e;q!==null?Ze(q,pp,d,R,Z):pp(d,R,Z),l=q}}}}function wt(t,n){lv.has(t)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var o=n[ub];o===void 0&&(o=n[ub]=new Set);var s=t+"__bubble";o.has(s)||(yR(n,t,2,!1),o.add(s))}function F0(t,n,o){lv.has(t)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var s=0;n&&(s|=4),yR(o,t,s,n)}function N0(t){if(!t[im]){t[im]=!0,eO.forEach(function(o){o!=="selectionchange"&&(lv.has(o)||F0(o,!1,t),F0(o,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[im]||(n[im]=!0,F0("selectionchange",!1,n))}}function yR(t,n,o,s){switch(GR(n)){case no:var l=xL;break;case Jo:l=EL;break;default:l=G0}o=l.bind(null,n,o,t),l=void 0,!gb||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),s?l!==void 0?t.addEventListener(n,o,{capture:!0,passive:l}):t.addEventListener(n,o,!0):l!==void 0?t.addEventListener(n,o,{passive:l}):t.addEventListener(n,o,!1)}function D0(t,n,o,s,l){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var R=s.stateNode.containerInfo;if(R===l)break;if(x===4)for(x=s.return;x!==null;){var q=x.tag;if((q===3||q===4)&&x.stateNode.containerInfo===l)return;x=x.return}for(;R!==null;){if(x=st(R),x===null)return;if(q=x.tag,q===5||q===6||q===26||q===27){s=d=x;continue e}R=R.parentNode}}s=s.return}HC(function(){var Z=d,Se=oy(o),Fe=[];e:{var we=VO.get(t);if(we!==void 0){var Ne=_p,Ke=t;switch(t){case"keypress":if(Fh(o)===0)break e;case"keydown":case"keyup":Ne=b5;break;case"focusin":Ke="focus",Ne=Ab;break;case"focusout":Ke="blur",Ne=Ab;break;case"beforeblur":case"afterblur":Ne=Ab;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ne=NO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ne=a5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ne=x5;break;case $O:case qO:case HO:Ne=l5;break;case zO:Ne=w5;break;case"scroll":case"scrollend":Ne=o5;break;case"wheel":Ne=C5;break;case"copy":case"cut":case"paste":Ne=f5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ne=BO;break;case"toggle":case"beforetoggle":Ne=T5}var ut=(n&4)!==0,zt=!ut&&(t==="scroll"||t==="scrollend"),St=ut?we!==null?we+"Capture":null:we;ut=[];for(var ae=Z,se;ae!==null;){var be=ae;if(se=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||se===null||St===null||(be=Mc(ae,St),be!=null&&ut.push(af(ae,be,se))),zt)break;ae=ae.return}0<ut.length&&(we=new Ne(we,Ke,null,o,Se),Fe.push({event:we,listeners:ut}))}}if((n&7)===0){e:{if(we=t==="mouseover"||t==="pointerover",Ne=t==="mouseout"||t==="pointerout",we&&o!==gf&&(Ke=o.relatedTarget||o.fromElement)&&(st(Ke)||Ke[Oa]))break e;if((Ne||we)&&(we=Se.window===Se?Se:(we=Se.ownerDocument)?we.defaultView||we.parentWindow:window,Ne?(Ke=o.relatedTarget||o.toElement,Ne=Z,Ke=Ke?st(Ke):null,Ke!==null&&(zt=N(Ke),ut=Ke.tag,Ke!==zt||ut!==5&&ut!==27&&ut!==6)&&(Ke=null)):(Ne=null,Ke=Z),Ne!==Ke)){if(ut=NO,be="onMouseLeave",St="onMouseEnter",ae="mouse",(t==="pointerout"||t==="pointerover")&&(ut=BO,be="onPointerLeave",St="onPointerEnter",ae="pointer"),zt=Ne==null?we:Et(Ne),se=Ke==null?we:Et(Ke),we=new ut(be,ae+"leave",Ne,o,Se),we.target=zt,we.relatedTarget=se,be=null,st(Se)===Z&&(ut=new ut(St,ae+"enter",Ke,o,Se),ut.target=se,ut.relatedTarget=zt,be=ut),zt=be,Ne&&Ke)t:{for(ut=Ne,St=Ke,ae=0,se=ut;se;se=Wu(se))ae++;for(se=0,be=St;be;be=Wu(be))se++;for(;0<ae-se;)ut=Wu(ut),ae--;for(;0<se-ae;)St=Wu(St),se--;for(;ae--;){if(ut===St||St!==null&&ut===St.alternate)break t;ut=Wu(ut),St=Wu(St)}ut=null}else ut=null;Ne!==null&&bR(Fe,we,Ne,ut,!1),Ke!==null&&zt!==null&&bR(Fe,zt,Ke,ut,!0)}}e:{if(we=Z?Et(Z):window,Ne=we.nodeName&&we.nodeName.toLowerCase(),Ne==="select"||Ne==="input"&&we.type==="file")var De=XC;else if(YC(we))if(LO)De=fj;else{De=lj;var $e=uj}else Ne=we.nodeName,!Ne||Ne.toLowerCase()!=="input"||we.type!=="checkbox"&&we.type!=="radio"?Z&&Uc(Z.elementType)&&(De=XC):De=cj;if(De&&(De=De(t,Z))){KC(Fe,De,o,Se);break e}$e&&$e(t,we,Z),t==="focusout"&&Z&&we.type==="number"&&Z.memoizedProps.value!=null&&ma(we,"number",we.value)}switch($e=Z?Et(Z):window,t){case"focusin":(YC($e)||$e.contentEditable==="true")&&(dl=$e,Eb=Z,wf=null);break;case"focusout":wf=Eb=dl=null;break;case"mousedown":wb=!0;break;case"contextmenu":case"mouseup":case"dragend":wb=!1,rI(Fe,o,Se);break;case"selectionchange":if(N5)break;case"keydown":case"keyup":rI(Fe,o,Se)}var ft;if(xb)e:{switch(t){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else fl?GC(t,o)&&(Xe="onCompositionEnd"):t==="keydown"&&o.keyCode===UO&&(Xe="onCompositionStart");Xe&&(_O&&o.locale!=="ko"&&(fl||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&fl&&(ft=zC()):(Fa=Se,yb="value"in Fa?Fa.value:Fa.textContent,fl=!0)),$e=mp(Z,Xe),0<$e.length&&(Xe=new DO(Xe,t,null,o,Se),Fe.push({event:Xe,listeners:$e}),ft?Xe.data=ft:(ft=QC(o),ft!==null&&(Xe.data=ft)))),(ft=O5?oj(t,o):ij(t,o))&&(Xe=mp(Z,"onBeforeInput"),0<Xe.length&&($e=new h5("onBeforeInput","beforeinput",null,o,Se),Fe.push({event:$e,listeners:Xe}),$e.data=ft)),Vj(Fe,t,Z,o,Se)}gR(Fe,n)})}function af(t,n,o){return{instance:t,listener:n,currentTarget:o}}function mp(t,n){for(var o=n+"Capture",s=[];t!==null;){var l=t,d=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||d===null||(l=Mc(t,o),l!=null&&s.unshift(af(t,l,d)),l=Mc(t,n),l!=null&&s.push(af(t,l,d))),t.tag===3)return s;t=t.return}return[]}function Wu(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function bR(t,n,o,s,l){for(var d=n._reactName,x=[];o!==null&&o!==s;){var R=o,q=R.alternate,Z=R.stateNode;if(R=R.tag,q!==null&&q===s)break;R!==5&&R!==26&&R!==27||Z===null||(q=Z,l?(Z=Mc(o,d),Z!=null&&x.unshift(af(o,Z,q))):l||(Z=Mc(o,d),Z!=null&&x.push(af(o,Z,q)))),o=o.return}x.length!==0&&t.push({event:n,listeners:x})}function B0(t,n){ej(t,n),t!=="input"&&t!=="textarea"&&t!=="select"||n==null||n.value!==null||OO||(OO=!0,t==="select"&&n.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.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));var o={registrationNameDependencies:Ps,possibleRegistrationNames:lb};Uc(t)||typeof n.is=="string"||nj(t,n,o),n.contentEditable&&!n.suppressContentEditableWarning&&n.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 Sn(t,n,o,s){n!==o&&(o=wa(o),wa(n)!==o&&(s[t]=n))}function Gj(t,n,o){n.forEach(function(s){o[xR(s)]=s==="style"?_0(t):t.getAttribute(s)})}function Yo(t,n){n===!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.",t,t,t):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof n)}function vR(t,n){return t=t.namespaceURI===Dp||t.namespaceURI===sl?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=n,t.innerHTML}function wa(t){return _(t)&&(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.",W(t)),ie(t)),(typeof t=="string"?t:""+t).replace(nk,`
|
|
222
|
+
`).replace(rk,"")}function AR(t,n){return n=wa(n),wa(t)===n}function gp(){}function kt(t,n,o,s,l,d){switch(o){case"children":typeof s=="string"?(Oh(s,n,!1),n==="body"||n==="textarea"&&s===""||Bc(t,s)):(typeof s=="number"||typeof s=="bigint")&&(Oh(""+s,n,!1),n!=="body"&&Bc(t,""+s));break;case"className":tt(t,"class",s);break;case"tabIndex":tt(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":tt(t,o,s);break;case"style":kC(t,s,d);break;case"data":if(n!=="object"){tt(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||o!=="href")){console.error(o==="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.',o,o),t.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}le(s,o),s=_c(""+s),t.setAttribute(o,s);break;case"action":case"formAction":if(s!=null&&(n==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(l.encType==null&&l.method==null||um||(um=!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.")),l.target==null||sm||(sm=!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."))):n==="input"||n==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||l.type==="submit"||l.type==="image"||am?n!=="button"||l.type==null||l.type==="submit"||am?typeof s=="function"&&(l.name==null||aF||(aF=!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.')),l.formEncType==null&&l.formMethod==null||um||(um=!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.")),l.formTarget==null||sm||(sm=!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."))):(am=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(am=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){t.setAttribute(o,"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 d=="function"&&(o==="formAction"?(n!=="input"&&kt(t,n,"name",l.name,l,null),kt(t,n,"formEncType",l.formEncType,l,null),kt(t,n,"formMethod",l.formMethod,l,null),kt(t,n,"formTarget",l.formTarget,l,null)):(kt(t,n,"encType",l.encType,l,null),kt(t,n,"method",l.method,l,null),kt(t,n,"target",l.target,l,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}le(s,o),s=_c(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(typeof s!="function"&&Yo(o,s),t.onclick=gp);break;case"onScroll":s!=null&&(typeof s!="function"&&Yo(o,s),wt("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Yo(o,s),wt("scrollend",t));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=s.__html,o!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=o}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}le(s,o),o=_c(""+s),t.setAttributeNS(Ws,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(le(s,o),t.setAttribute(o,""+s)):t.removeAttribute(o);break;case"inert":s!==""||lm[o]||(lm[o]=!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.",o));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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":s===!0?t.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(le(s,o),t.setAttribute(o,s)):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(le(s,o),t.setAttribute(o,s)):t.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(o):(le(s,o),t.setAttribute(o,s));break;case"popover":wt("beforetoggle",t),wt("toggle",t),it(t,"popover",s);break;case"xlinkActuate":bt(t,Ws,"xlink:actuate",s);break;case"xlinkArcrole":bt(t,Ws,"xlink:arcrole",s);break;case"xlinkRole":bt(t,Ws,"xlink:role",s);break;case"xlinkShow":bt(t,Ws,"xlink:show",s);break;case"xlinkTitle":bt(t,Ws,"xlink:title",s);break;case"xlinkType":bt(t,Ws,"xlink:type",s);break;case"xmlBase":bt(t,cv,"xml:base",s);break;case"xmlLang":bt(t,cv,"xml:lang",s);break;case"xmlSpace":bt(t,cv,"xml:space",s);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),it(t,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":sF||s==null||typeof s!="object"||(sF=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=$C(o),it(t,o,s)):Ps.hasOwnProperty(o)&&s!=null&&typeof s!="function"&&Yo(o,s)}}function U0(t,n,o,s,l,d){switch(o){case"style":kC(t,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=s.__html,o!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=o}}break;case"children":typeof s=="string"?Bc(t,s):(typeof s=="number"||typeof s=="bigint")&&Bc(t,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&Yo(o,s),wt("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Yo(o,s),wt("scrollend",t));break;case"onClick":s!=null&&(typeof s!="function"&&Yo(o,s),t.onclick=gp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ps.hasOwnProperty(o))s!=null&&typeof s!="function"&&Yo(o,s);else e:{if(o[0]==="o"&&o[1]==="n"&&(l=o.endsWith("Capture"),n=o.slice(2,l?o.length-7:void 0),d=t[Er]||null,d=d!=null?d[o]:null,typeof d=="function"&&t.removeEventListener(n,d,l),typeof s=="function")){typeof d!="function"&&d!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(n,s,l);break e}o in t?t[o]=s:s===!0?t.setAttribute(o,""):it(t,o,s)}}}function Pn(t,n,o){switch(B0(n,o),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",t),wt("load",t);var s=!1,l=!1,d;for(d in o)if(o.hasOwnProperty(d)){var x=o[d];if(x!=null)switch(d){case"src":s=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:kt(t,n,d,x,o,null)}}l&&kt(t,n,"srcSet",o.srcSet,o,null),s&&kt(t,n,"src",o.src,o,null);return;case"input":qe("input",o),wt("invalid",t);var R=d=x=l=null,q=null,Z=null;for(s in o)if(o.hasOwnProperty(s)){var Se=o[s];if(Se!=null)switch(s){case"name":l=Se;break;case"type":x=Se;break;case"checked":q=Se;break;case"defaultChecked":Z=Se;break;case"value":d=Se;break;case"defaultValue":R=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:kt(t,n,s,Se,o,null)}}ys(t,o),bs(t,d,R,q,Z,x,l,!1),bi(t);return;case"select":qe("select",o),wt("invalid",t),s=x=d=null;for(l in o)if(o.hasOwnProperty(l)&&(R=o[l],R!=null))switch(l){case"value":d=R;break;case"defaultValue":x=R;break;case"multiple":s=R;default:kt(t,n,l,R,o,null)}RC(t,o),n=d,o=x,t.multiple=!!s,n!=null?xo(t,!!s,n,!1):o!=null&&xo(t,!!s,o,!0);return;case"textarea":qe("textarea",o),wt("invalid",t),d=l=s=null;for(x in o)if(o.hasOwnProperty(x)&&(R=o[x],R!=null))switch(x){case"value":s=R;break;case"defaultValue":l=R;break;case"children":d=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:kt(t,n,x,R,o,null)}OC(t,o),NC(t,s,l,d),bi(t);return;case"option":vs(t,o);for(q in o)if(o.hasOwnProperty(q)&&(s=o[q],s!=null))switch(q){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:kt(t,n,q,s,o,null)}return;case"dialog":wt("beforetoggle",t),wt("toggle",t),wt("cancel",t),wt("close",t);break;case"iframe":case"object":wt("load",t);break;case"video":case"audio":for(s=0;s<Qf.length;s++)wt(Qf[s],t);break;case"image":wt("error",t),wt("load",t);break;case"details":wt("toggle",t);break;case"embed":case"source":case"link":wt("error",t),wt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in o)if(o.hasOwnProperty(Z)&&(s=o[Z],s!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:kt(t,n,Z,s,o,null)}return;default:if(Uc(n)){for(Se in o)o.hasOwnProperty(Se)&&(s=o[Se],s!==void 0&&U0(t,n,Se,s,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(s=o[R],s!=null&&kt(t,n,R,s,o,null))}function Qj(t,n,o,s){switch(B0(n,s),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,d=null,x=null,R=null,q=null,Z=null,Se=null;for(Ne in o){var Fe=o[Ne];if(o.hasOwnProperty(Ne)&&Fe!=null)switch(Ne){case"checked":break;case"value":break;case"defaultValue":q=Fe;default:s.hasOwnProperty(Ne)||kt(t,n,Ne,null,s,Fe)}}for(var we in s){var Ne=s[we];if(Fe=o[we],s.hasOwnProperty(we)&&(Ne!=null||Fe!=null))switch(we){case"type":d=Ne;break;case"name":l=Ne;break;case"checked":Z=Ne;break;case"defaultChecked":Se=Ne;break;case"value":x=Ne;break;case"defaultValue":R=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ne!==Fe&&kt(t,n,we,Ne,s,Fe)}}n=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,n||!s||iF||(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"),iF=!0),!n||s||oF||(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"),oF=!0),pa(t,x,R,q,Z,Se,d,l);return;case"select":Ne=x=R=we=null;for(d in o)if(q=o[d],o.hasOwnProperty(d)&&q!=null)switch(d){case"value":break;case"multiple":Ne=q;default:s.hasOwnProperty(d)||kt(t,n,d,null,s,q)}for(l in s)if(d=s[l],q=o[l],s.hasOwnProperty(l)&&(d!=null||q!=null))switch(l){case"value":we=d;break;case"defaultValue":R=d;break;case"multiple":x=d;default:d!==q&&kt(t,n,l,d,s,q)}s=R,n=x,o=Ne,we!=null?xo(t,!!n,we,!1):!!o!=!!n&&(s!=null?xo(t,!!n,s,!0):xo(t,!!n,n?[]:"",!1));return;case"textarea":Ne=we=null;for(R in o)if(l=o[R],o.hasOwnProperty(R)&&l!=null&&!s.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:kt(t,n,R,null,s,l)}for(x in s)if(l=s[x],d=o[x],s.hasOwnProperty(x)&&(l!=null||d!=null))switch(x){case"value":we=l;break;case"defaultValue":Ne=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==d&&kt(t,n,x,l,s,d)}FC(t,we,Ne);return;case"option":for(var Ke in o)if(we=o[Ke],o.hasOwnProperty(Ke)&&we!=null&&!s.hasOwnProperty(Ke))switch(Ke){case"selected":t.selected=!1;break;default:kt(t,n,Ke,null,s,we)}for(q in s)if(we=s[q],Ne=o[q],s.hasOwnProperty(q)&&we!==Ne&&(we!=null||Ne!=null))switch(q){case"selected":t.selected=we&&typeof we!="function"&&typeof we!="symbol";break;default:kt(t,n,q,we,s,Ne)}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 ut in o)we=o[ut],o.hasOwnProperty(ut)&&we!=null&&!s.hasOwnProperty(ut)&&kt(t,n,ut,null,s,we);for(Z in s)if(we=s[Z],Ne=o[Z],s.hasOwnProperty(Z)&&we!==Ne&&(we!=null||Ne!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:kt(t,n,Z,we,s,Ne)}return;default:if(Uc(n)){for(var zt in o)we=o[zt],o.hasOwnProperty(zt)&&we!==void 0&&!s.hasOwnProperty(zt)&&U0(t,n,zt,void 0,s,we);for(Se in s)we=s[Se],Ne=o[Se],!s.hasOwnProperty(Se)||we===Ne||we===void 0&&Ne===void 0||U0(t,n,Se,we,s,Ne);return}}for(var St in o)we=o[St],o.hasOwnProperty(St)&&we!=null&&!s.hasOwnProperty(St)&&kt(t,n,St,null,s,we);for(Fe in s)we=s[Fe],Ne=o[Fe],!s.hasOwnProperty(Fe)||we===Ne||we==null&&Ne==null||kt(t,n,Fe,we,s,Ne)}function xR(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function _0(t){var n={};t=t.style;for(var o=0;o<t.length;o++){var s=t[o];n[s]=t.getPropertyValue(s)}return n}function ER(t,n,o){if(n!=null&&typeof n!="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 s,l=s="",d;for(d in n)if(n.hasOwnProperty(d)){var x=n[d];x!=null&&typeof x!="boolean"&&x!==""&&(d.indexOf("--")===0?(ee(x,d),s+=l+d+":"+(""+x).trim()):typeof x!="number"||x===0||TO.has(d)?(ee(x,d),s+=l+d.replace(EO,"-$1").toLowerCase().replace(wO,"-ms-")+":"+(""+x).trim()):s+=l+d.replace(EO,"-$1").toLowerCase().replace(wO,"-ms-")+":"+x+"px",l=";")}s=s||null,n=t.getAttribute("style"),n!==s&&(s=wa(s),wa(n)!==s&&(o.style=_0(t)))}}function eo(t,n,o,s,l,d){if(l.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(le(s,n),t===""+s)return}Sn(n,t,s,d)}function wR(t,n,o,s,l,d){if(l.delete(o),t=t.getAttribute(o),t===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Sn(n,t,s,d)}function M0(t,n,o,s,l,d){if(l.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(le(s,o),t===""+s)return}Sn(n,t,s,d)}function SR(t,n,o,s,l,d){if(l.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(le(s,n),t===""+s))return}Sn(n,t,s,d)}function P0(t,n,o,s,l,d){if(l.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(le(s,n),o=_c(""+s),t===o)return}Sn(n,t,s,d)}function CR(t,n,o,s){for(var l={},d=new Set,x=t.attributes,R=0;R<x.length;R++)switch(x[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(x[R].name)}if(Uc(n)){for(var q in o)if(o.hasOwnProperty(q)){var Z=o[q];if(Z!=null){if(Ps.hasOwnProperty(q))typeof Z!="function"&&Yo(q,Z);else if(o.suppressHydrationWarning!==!0)switch(q){case"children":typeof Z!="string"&&typeof Z!="number"||Sn("children",t.textContent,Z,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":x=t.innerHTML,Z=Z?Z.__html:void 0,Z!=null&&(Z=vR(t,Z),Sn(q,x,Z,l));continue;case"style":d.delete(q),ER(t,Z,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":d.delete("class"),x=et(t,"class",Z),Sn("className",x,Z,l);continue;default:s.context===$i&&n!=="svg"&&n!=="math"?d.delete(q.toLowerCase()):d.delete(q),x=et(t,q,Z),Sn(q,x,Z,l)}}}}else for(Z in o)if(o.hasOwnProperty(Z)&&(q=o[Z],q!=null)){if(Ps.hasOwnProperty(Z))typeof q!="function"&&Yo(Z,q);else if(o.suppressHydrationWarning!==!0)switch(Z){case"children":typeof q!="string"&&typeof q!="number"||Sn("children",t.textContent,q,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":x=t.innerHTML,q=q?q.__html:void 0,q!=null&&(q=vR(t,q),x!==q&&(l[Z]={__html:x}));continue;case"className":eo(t,Z,"class",q,d,l);continue;case"tabIndex":eo(t,Z,"tabindex",q,d,l);continue;case"style":d.delete(Z),ER(t,q,l);continue;case"multiple":d.delete(Z),Sn(Z,t.multiple,q,l);continue;case"muted":d.delete(Z),Sn(Z,t.muted,q,l);continue;case"autoFocus":d.delete("autofocus"),Sn(Z,t.autofocus,q,l);continue;case"data":if(n!=="object"){d.delete(Z),x=t.getAttribute("data"),Sn(Z,x,q,l);continue}case"src":case"href":if(!(q!==""||n==="a"&&Z==="href"||n==="object"&&Z==="data")){console.error(Z==="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.',Z,Z);continue}P0(t,Z,Z,q,d,l);continue;case"action":case"formAction":if(x=t.getAttribute(Z),typeof q=="function"){d.delete(Z.toLowerCase()),Z==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(x===ok){d.delete(Z.toLowerCase()),Sn(Z,"function",q,l);continue}P0(t,Z,Z.toLowerCase(),q,d,l);continue;case"xlinkHref":P0(t,Z,"xlink:href",q,d,l);continue;case"contentEditable":M0(t,Z,"contenteditable",q,d,l);continue;case"spellCheck":M0(t,Z,"spellcheck",q,d,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":M0(t,Z,Z,q,d,l);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":wR(t,Z,Z.toLowerCase(),q,d,l);continue;case"capture":case"download":e:{R=t;var Se=x=Z,Fe=l;if(d.delete(Se),R=R.getAttribute(Se),R===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&R==="")break e;break;default:if(le(q,x),R===""+q)break e}Sn(x,R,q,Fe)}continue;case"cols":case"rows":case"size":case"span":e:{if(R=t,Se=x=Z,Fe=l,d.delete(Se),R=R.getAttribute(Se),R===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(le(q,x),R===""+q))break e}Sn(x,R,q,Fe)}continue;case"rowSpan":SR(t,Z,"rowspan",q,d,l);continue;case"start":SR(t,Z,Z,q,d,l);continue;case"xHeight":eo(t,Z,"x-height",q,d,l);continue;case"xlinkActuate":eo(t,Z,"xlink:actuate",q,d,l);continue;case"xlinkArcrole":eo(t,Z,"xlink:arcrole",q,d,l);continue;case"xlinkRole":eo(t,Z,"xlink:role",q,d,l);continue;case"xlinkShow":eo(t,Z,"xlink:show",q,d,l);continue;case"xlinkTitle":eo(t,Z,"xlink:title",q,d,l);continue;case"xlinkType":eo(t,Z,"xlink:type",q,d,l);continue;case"xmlBase":eo(t,Z,"xml:base",q,d,l);continue;case"xmlLang":eo(t,Z,"xml:lang",q,d,l);continue;case"xmlSpace":eo(t,Z,"xml:space",q,d,l);continue;case"inert":q!==""||lm[Z]||(lm[Z]=!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.",Z)),wR(t,Z,Z,q,d,l);continue;default:if(!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"){R=$C(Z),x=!1,s.context===$i&&n!=="svg"&&n!=="math"?d.delete(R.toLowerCase()):(Se=Z.toLowerCase(),Se=Bp.hasOwnProperty(Se)&&Bp[Se]||null,Se!==null&&Se!==Z&&(x=!0,d.delete(Se)),d.delete(R));e:if(Se=t,Fe=R,R=q,nt(Fe))if(Se.hasAttribute(Fe))Se=Se.getAttribute(Fe),le(R,Fe),R=Se===""+R?R:Se;else{switch(typeof R){case"function":case"symbol":break e;case"boolean":if(Se=Fe.toLowerCase().slice(0,5),Se!=="data-"&&Se!=="aria-")break e}R=R===void 0?void 0:null}else R=void 0;x||Sn(Z,R,q,l)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&Gj(t,d,l),Object.keys(l).length===0?null:l}function Yj(t,n){switch(t.length){case 0:return"";case 1:return t[0];case 2:return t[0]+" "+n+" "+t[1];default:return t.slice(0,-1).join(", ")+", "+n+" "+t[t.length-1]}}function yp(t){return t.nodeType===9?t:t.ownerDocument}function IR(t){switch(t){case sl:return jl;case Dp:return dm;default:return $i}}function TR(t,n){if(t===$i)switch(n){case"svg":return jl;case"math":return dm;default:return $i}return t===jl&&n==="foreignObject"?$i:t}function j0(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function Kj(){var t=window.event;return t&&t.type==="popstate"?t===pv?!1:(pv=t,!0):(pv=null,!1)}function Xj(t){setTimeout(function(){throw t})}function Zj(t,n,o){switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&t.focus();break;case"img":o.src?t.src=o.src:o.srcSet&&(t.srcset=o.srcSet)}}function Jj(t,n,o,s){Qj(t,n,o,s),t[Er]=s}function RR(t){Bc(t,"")}function Wj(t,n,o){t.nodeValue=o}function Sa(t){return t==="head"}function eL(t,n){t.removeChild(n)}function tL(t,n){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(n)}function OR(t,n){var o=n,s=0,l=0;do{var d=o.nextSibling;if(t.removeChild(o),d&&d.nodeType===8)if(o=d.data,o===fm){if(0<s&&8>s){o=s;var x=t.ownerDocument;if(o&ak&&sf(x.documentElement),o&sk&&sf(x.body),o&uk)for(o=x.head,sf(o),x=o.firstChild;x;){var R=x.nextSibling,q=x.nodeName;x[pf]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&x.rel.toLowerCase()==="stylesheet"||o.removeChild(x),x=R}}if(l===0){t.removeChild(d),ff(n);return}l--}else o===cm||o===ki||o===Yf?l++:s=o.charCodeAt(0)-48;else s=0;o=d}while(o);ff(n)}function nL(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function rL(t){t.nodeValue=""}function oL(t,n){n=n[lk],n=n!=null&&n.hasOwnProperty("display")?n.display:null,t.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function iL(t,n){t.nodeValue=n}function L0(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":L0(o),lt(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function aL(t,n,o,s){for(;t.nodeType===1;){var l=o;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[pf])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){le(l.name,"name");var d=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=to(t.nextSibling),t===null)break}return null}function sL(t,n,o){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=to(t.nextSibling),t===null))return null;return t}function k0(t){return t.data===Yf||t.data===ki&&t.ownerDocument.readyState===lF}function uL(t,n){var o=t.ownerDocument;if(t.data!==ki||o.readyState===lF)n();else{var s=function(){n(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function to(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n===cm||n===Yf||n===ki||n===fv||n===uF)break;if(n===fm)return null}}return t}function FR(t){if(t.nodeType===1){for(var n=t.nodeName.toLowerCase(),o={},s=t.attributes,l=0;l<s.length;l++){var d=s[l];o[xR(d.name)]=d.name.toLowerCase()==="style"?_0(t):d.value}return{type:n,props:o}}return t.nodeType===8?{type:"Suspense",props:{}}:t.nodeValue}function NR(t,n,o){return o===null||o[ik]!==!0?(t.nodeValue===n?t=null:(n=wa(n),t=wa(t.nodeValue)===n?null:t.nodeValue),t):null}function DR(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var o=t.data;if(o===fm){if(n===0)return to(t.nextSibling);n--}else o!==cm&&o!==Yf&&o!==ki||n++}t=t.nextSibling}return null}function BR(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var o=t.data;if(o===cm||o===Yf||o===ki){if(n===0)return t;n--}else o===fm&&n++}t=t.previousSibling}return null}function lL(t){ff(t)}function cL(t){ff(t)}function UR(t,n,o,s,l){switch(l&&ry(t,s.ancestorInfo),n=yp(o),t){case"html":if(t=n.documentElement,!t)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 t;case"head":if(t=n.head,!t)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 t;case"body":if(t=n.body,!t)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 t;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function fL(t,n,o,s){if(!o[Oa]&&yt(o)){var l=o.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.",l,l,l)}switch(t){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(l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Pn(o,t,n),o[Xn]=s,o[Er]=n}function sf(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t)}function bp(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function _R(t,n,o){var s=Ll;if(s&&typeof n=="string"&&n){var l=Un(n);l='link[rel="'+t+'"][href="'+l+'"]',typeof o=="string"&&(l+='[crossorigin="'+o+'"]'),mF.has(l)||(mF.add(l),t={rel:t,crossOrigin:o,href:n},s.querySelector(l)===null&&(n=s.createElement("link"),Pn(n,"link",t),pe(n),s.head.appendChild(n)))}}function MR(t,n,o,s){var l=(l=Ta.current)?bp(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=el(o.href),n=P(l).hoistableStyles,s=n.get(o),s||(s={type:"style",instance:null,count:0,state:null},n.set(o,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=el(o.href);var d=P(l).hoistableStyles,x=d.get(t);if(!x&&(l=l.ownerDocument||l,x={type:"stylesheet",instance:null,count:0,state:{loading:tu,preload:null}},d.set(t,x),(d=l.querySelector(uf(t)))&&!d._p&&(x.instance=d,x.state.loading=Kf|ho),!po.has(t))){var R={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};po.set(t,R),d||dL(l,t,R,x.state)}if(n&&s===null)throw o=`
|
|
223
|
+
|
|
224
|
+
- `+vp(n)+`
|
|
225
|
+
+ `+vp(o),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."+o);return x}if(n&&s!==null)throw o=`
|
|
226
|
+
|
|
227
|
+
- `+vp(n)+`
|
|
228
|
+
+ `+vp(o),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."+o);return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(o=tl(o),n=P(l).hoistableScripts,s=n.get(o),s||(s={type:"script",instance:null,count:0,state:null},n.set(o,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+t+'". this is a bug in React.')}}function vp(t){var n=0,o="<link";return typeof t.rel=="string"?(n++,o+=' rel="'+t.rel+'"'):Fi.call(t,"rel")&&(n++,o+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(n++,o+=' href="'+t.href+'"'):Fi.call(t,"href")&&(n++,o+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(n++,o+=' precedence="'+t.precedence+'"'):Fi.call(t,"precedence")&&(n++,o+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>n&&(o+=" ..."),o+" />"}function el(t){return'href="'+Un(t)+'"'}function uf(t){return'link[rel="stylesheet"]['+t+"]"}function PR(t){return gt({},t,{"data-precedence":t.precedence,precedence:null})}function dL(t,n,o,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=Kf:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=Kf}),n.addEventListener("error",function(){return s.loading|=hF}),Pn(n,"link",o),pe(n),t.head.appendChild(n))}function tl(t){return'[src="'+Un(t)+'"]'}function lf(t){return"script[async]"+t}function jR(t,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+Un(o.href)+'"]');if(s)return n.instance=s,pe(s),s;var l=gt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),pe(s),Pn(s,"style",l),Ap(s,o.precedence,t),n.instance=s;case"stylesheet":l=el(o.href);var d=t.querySelector(uf(l));if(d)return n.state.loading|=ho,n.instance=d,pe(d),d;s=PR(o),(l=po.get(l))&&$0(s,l),d=(t.ownerDocument||t).createElement("link"),pe(d);var x=d;return x._p=new Promise(function(R,q){x.onload=R,x.onerror=q}),Pn(d,"link",s),n.state.loading|=ho,Ap(d,o.precedence,t),n.instance=d;case"script":return d=tl(o.src),(l=t.querySelector(lf(d)))?(n.instance=l,pe(l),l):(s=o,(l=po.get(d))&&(s=gt({},o),q0(s,l)),t=t.ownerDocument||t,l=t.createElement("script"),pe(l),Pn(l,"link",s),t.head.appendChild(l),n.instance=l);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&ho)===tu&&(s=n.instance,n.state.loading|=ho,Ap(s,o.precedence,t));return n.instance}function Ap(t,n,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=s.length?s[s.length-1]:null,d=l,x=0;x<s.length;x++){var R=s[x];if(R.dataset.precedence===n)d=R;else if(d!==l)break}d?d.parentNode.insertBefore(t,d.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(t,n.firstChild))}function $0(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function q0(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}function LR(t,n,o){if(hm===null){var s=new Map,l=hm=new Map;l.set(o,s)}else l=hm,s=l.get(o),s||(s=new Map,l.set(o,s));if(s.has(t))return s;for(s.set(t,null),o=o.getElementsByTagName(t),l=0;l<o.length;l++){var d=o[l];if(!(d[pf]||d[Xn]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==sl){var x=d.getAttribute(n)||"";x=t+x;var R=s.get(x);R?R.push(d):s.set(x,[d])}}return s}function kR(t,n,o){t=t.ownerDocument||t,t.head.insertBefore(o,n==="title"?t.querySelector("head > title"):null)}function hL(t,n,o){var s=!o.ancestorInfo.containerTagInScope;if(o.context===jl||n.itemProp!=null)return!s||n.itemProp==null||t!=="meta"&&t!=="title"&&t!=="style"&&t!=="link"&&t!=="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.",t,t),!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){s&&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 n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){t=n.href;var l=n.onError,d=n.disabled;o=[],n.onLoad&&o.push("`onLoad`"),l&&o.push("`onError`"),d!=null&&o.push("`disabled`"),l=Yj(o,"and"),l+=o.length===1?" prop":" props",d=o.length===1?"an "+l:"the "+l,o.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.',t,d,l)}s&&(typeof n.rel!="string"||typeof n.href!="string"||n.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"):(n.onError||n.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}switch(n.rel){case"stylesheet":return t=n.precedence,n=n.disabled,typeof t!="string"&&s&&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 t=="string"&&n==null;default:return!0}case"script":if(t=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!t||n.onLoad||n.onError||!n.src||typeof n.src!="string"){s&&(t?n.onLoad||n.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":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",t)}return!1}function $R(t){return!(t.type==="stylesheet"&&(t.state.loading&pF)===tu)}function pL(){}function mL(t,n,o){if(Xf===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var s=Xf;if(n.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(n.state.loading&ho)===tu){if(n.instance===null){var l=el(o.href),d=t.querySelector(uf(l));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(s.count++,s=xp.bind(s),t.then(s,s)),n.state.loading|=ho,n.instance=d,pe(d);return}d=t.ownerDocument||t,o=PR(o),(l=po.get(l))&&$0(o,l),d=d.createElement("link"),pe(d);var x=d;x._p=new Promise(function(R,q){x.onload=R,x.onerror=q}),Pn(d,"link",o),n.instance=d}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&pF)===tu&&(s.count++,n=xp.bind(s),t.addEventListener("load",n),t.addEventListener("error",n))}}function gL(){if(Xf===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var t=Xf;return t.stylesheets&&t.count===0&&H0(t,t.stylesheets),0<t.count?function(n){var o=setTimeout(function(){if(t.stylesheets&&H0(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(o)}}:null}function xp(){if(this.count--,this.count===0){if(this.stylesheets)H0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function H0(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,pm=new Map,n.forEach(yL,t),pm=null,xp.call(t))}function yL(t,n){if(!(n.state.loading&ho)){var o=pm.get(t);if(o)var s=o.get(gv);else{o=new Map,pm.set(t,o);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<l.length;d++){var x=l[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(o.set(x.dataset.precedence,x),s=x)}s&&o.set(gv,s)}l=n.instance,x=l.getAttribute("data-precedence"),d=o.get(x)||s,d===s&&o.set(gv,l),o.set(x,l),this.count++,s=xp.bind(this),l.addEventListener("load",s),l.addEventListener("error",s),d?d.parentNode.insertBefore(l,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),n.state.loading|=ho}}function bL(t,n,o,s,l,d,x,R){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=eu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=s,this.onUncaughtError=l,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)t.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function qR(t,n,o,s,l,d,x,R,q,Z,Se,Fe){return t=new bL(t,n,o,x,R,q,Z,Fe),n=_5,d===!0&&(n|=Zn|Co),So&&(n|=Ln),d=g(3,null,null,n),t.current=d,d.stateNode=t,n=vy(),Ns(n),t.pooledCache=n,Ns(n),d.memoizedState={element:s,isDehydrated:o,cache:n},wy(d),t}function HR(t){return t?(t=Na,t):Na}function z0(t,n,o,s,l,d){if(Kn&&typeof Kn.onScheduleFiberRoot=="function")try{Kn.onScheduleFiberRoot(il,s,o)}catch(x){Zo||(Zo=!0,console.error("React instrumentation encountered an error: %s",x))}Ge!==null&&typeof Ge.markRenderScheduled=="function"&&Ge.markRenderScheduled(n),l=HR(l),s.context===null?s.context=l:s.pendingContext=l,Wo&&$r!==null&&!vF&&(vF=!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.
|
|
229
|
+
|
|
230
|
+
Check the render method of %s.`,T($r)||"Unknown")),s=ya(n),s.payload={element:o},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),s.callback=d),o=ba(t,s,n),o!==null&&(on(o,t,n),zc(o,t,n))}function zR(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<n?o:n}}function V0(t,n){zR(t,n),(t=t.alternate)&&zR(t,n)}function VR(t){if(t.tag===13){var n=vr(t,67108864);n!==null&&on(n,t,67108864),V0(t,67108864)}}function vL(){return $r}function AL(){for(var t=new Map,n=1,o=0;31>o;o++){var s=ye(n);t.set(n,s),n*=2}return t}function xL(t,n,o,s){var l=Oe.T;Oe.T=null;var d=Bt.p;try{Bt.p=no,G0(t,n,o,s)}finally{Bt.p=d,Oe.T=l}}function EL(t,n,o,s){var l=Oe.T;Oe.T=null;var d=Bt.p;try{Bt.p=Jo,G0(t,n,o,s)}finally{Bt.p=d,Oe.T=l}}function G0(t,n,o,s){if(gm){var l=Q0(s);if(l===null)D0(t,n,s,ym,o),QR(t,s);else if(wL(l,t,n,o,s))s.stopPropagation();else if(QR(t,s),n&4&&-1<hk.indexOf(t)){for(;l!==null;){var d=yt(l);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=E(d.pendingLanes);if(x!==0){var R=d;for(R.pendingLanes|=2,R.entangledLanes|=2;x;){var q=1<<31-ir(x);R.entanglements[1]|=q,x&=~q}Qo(d),(Ut&(cr|Oo))===qr&&(em=Xo()+Z3,of(0))}}break;case 13:R=vr(d,2),R!==null&&on(R,d,2),Xu(),V0(d,2)}if(d=Q0(s),d===null&&D0(t,n,s,ym,o),d===l)break;l=d}l!==null&&s.stopPropagation()}else D0(t,n,s,null,o)}}function Q0(t){return t=oy(t),Y0(t)}function Y0(t){if(ym=null,t=st(t),t!==null){var n=N(t);if(n===null)t=null;else{var o=n.tag;if(o===13){if(t=D(n),t!==null)return t;t=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ym=t,null}function GR(t){switch(t){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 no;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 Jo;case"message":switch(UL()){case ib:return no;case ab:return Jo;case ol:case _L:return Ni;case sb:return Fp;default:return Ni}default:return Ni}}function QR(t,n){switch(t){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Jf.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wf.delete(n.pointerId)}}function cf(t,n,o,s,l,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:d,targetContainers:[l]},n!==null&&(n=yt(n),n!==null&&VR(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),t)}function wL(t,n,o,s,l){switch(n){case"focusin":return $a=cf($a,t,n,o,s,l),!0;case"dragenter":return qa=cf(qa,t,n,o,s,l),!0;case"mouseover":return Ha=cf(Ha,t,n,o,s,l),!0;case"pointerover":var d=l.pointerId;return Jf.set(d,cf(Jf.get(d)||null,t,n,o,s,l)),!0;case"gotpointercapture":return d=l.pointerId,Wf.set(d,cf(Wf.get(d)||null,t,n,o,s,l)),!0}return!1}function YR(t){var n=st(t.target);if(n!==null){var o=N(n);if(o!==null){if(n=o.tag,n===13){if(n=D(o),n!==null){t.blockedOn=n,ot(t.priority,function(){if(o.tag===13){var s=Lr(o);s=Ue(s);var l=vr(o,s);l!==null&&on(l,o,s),V0(o,s)}});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ep(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var o=Q0(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o),l=s;gf!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gf=l,o.target.dispatchEvent(s),gf===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."),gf=null}else return n=yt(o),n!==null&&VR(n),t.blockedOn=o,!1;n.shift()}return!0}function KR(t,n,o){Ep(t)&&o.delete(n)}function SL(){yv=!1,$a!==null&&Ep($a)&&($a=null),qa!==null&&Ep(qa)&&(qa=null),Ha!==null&&Ep(Ha)&&(Ha=null),Jf.forEach(KR),Wf.forEach(KR)}function wp(t,n){t.blockedOn===n&&(t.blockedOn=null,yv||(yv=!0,dn.unstable_scheduleCallback(dn.unstable_NormalPriority,SL)))}function XR(t){bm!==t&&(bm=t,dn.unstable_scheduleCallback(dn.unstable_NormalPriority,function(){bm===t&&(bm=null);for(var n=0;n<t.length;n+=3){var o=t[n],s=t[n+1],l=t[n+2];if(typeof s!="function"){if(Y0(s||o)===null)continue;break}var d=yt(o);d!==null&&(t.splice(n,3),n-=3,o={pending:!0,data:l,method:o.method,action:s},Object.freeze(o),Yy(d,o,s,l))}}))}function ff(t){function n(q){return wp(q,t)}$a!==null&&wp($a,t),qa!==null&&wp(qa,t),Ha!==null&&wp(Ha,t),Jf.forEach(n),Wf.forEach(n);for(var o=0;o<za.length;o++){var s=za[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<za.length&&(o=za[0],o.blockedOn===null);)YR(o),o.blockedOn===null&&za.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var l=o[s],d=o[s+1],x=l[Er]||null;if(typeof d=="function")x||XR(o);else if(x){var R=null;if(d&&d.hasAttribute("formAction")){if(l=d,x=d[Er]||null)R=x.formAction;else if(Y0(l)!==null)continue}else R=x.action;typeof R=="function"?o[s+1]=R:(o.splice(s,3),s-=3),XR(o)}}}function K0(t){this._internalRoot=t}function Sp(t){this._internalRoot=t}function ZR(t){t[Oa]&&(t._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 dn=Sk(),X0=ig(),CL=z6(),gt=Object.assign,IL=Symbol.for("react.element"),Ca=Symbol.for("react.transitional.element"),nl=Symbol.for("react.portal"),rl=Symbol.for("react.fragment"),Cp=Symbol.for("react.strict_mode"),Z0=Symbol.for("react.profiler"),TL=Symbol.for("react.provider"),J0=Symbol.for("react.consumer"),Ko=Symbol.for("react.context"),df=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),eb=Symbol.for("react.suspense_list"),Ip=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),tb=Symbol.for("react.activity"),RL=Symbol.for("react.memo_cache_sentinel"),JR=Symbol.iterator,OL=Symbol.for("react.client.reference"),jn=Array.isArray,Oe=X0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bt=CL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,FL=Object.freeze({pending:!1,data:null,method:null,action:null}),nb=[],rb=[],Oi=-1,Ia=$(null),hf=$(null),Ta=$(null),Tp=$(null),Fi=Object.prototype.hasOwnProperty,ob=dn.unstable_scheduleCallback,NL=dn.unstable_cancelCallback,DL=dn.unstable_shouldYield,BL=dn.unstable_requestPaint,Xo=dn.unstable_now,UL=dn.unstable_getCurrentPriorityLevel,ib=dn.unstable_ImmediatePriority,ab=dn.unstable_UserBlockingPriority,ol=dn.unstable_NormalPriority,_L=dn.unstable_LowPriority,sb=dn.unstable_IdlePriority,ML=dn.log,PL=dn.unstable_setDisableYieldValue,il=null,Kn=null,Ge=null,Zo=!1,So=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ir=Math.clz32?Math.clz32:me,jL=Math.log,LL=Math.LN2,Rp=256,Op=4194304,no=2,Jo=8,Ni=32,Fp=268435456,Ra=Math.random().toString(36).slice(2),Xn="__reactFiber$"+Ra,Er="__reactProps$"+Ra,Oa="__reactContainer$"+Ra,ub="__reactEvents$"+Ra,kL="__reactListeners$"+Ra,$L="__reactHandles$"+Ra,WR="__reactResources$"+Ra,pf="__reactMarker$"+Ra,eO=new Set,Ps={},lb={},qL={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},HL=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]*$"),tO={},nO={},mf=0,rO,oO,iO,aO,sO,uO,lO;yr.__reactDisabledLog=!0;var cb,cO,fb=!1,db=new(typeof WeakMap=="function"?WeakMap:Map),$r=null,Wo=!1,zL=/[\n"\\]/g,fO=!1,dO=!1,hO=!1,pO=!1,mO=!1,gO=!1,yO=["value","defaultValue"],bO=!1,vO=/["'&<>\n\t]|^\s|\s$/,VL="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(" "),AO="applet caption html table td th marquee object template foreignObject desc title".split(" "),GL=AO.concat(["button"]),QL="dd dt li option optgroup p rp rt".split(" "),xO={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Np={},hb={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"]},EO=/([A-Z])/g,wO=/^ms-/,YL=/^(?:webkit|moz|o)[A-Z]/,KL=/^-ms-/,XL=/-(.)/g,SO=/;\s*$/,al={},pb={},CO=!1,IO=!1,TO=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(" ")),Dp="http://www.w3.org/1998/Math/MathML",sl="http://www.w3.org/2000/svg",ZL=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"]]),Bp={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"},RO={"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},ul={},JL=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]*$"),WL=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]*$"),OO=!1,ar={},FO=/^on./,e5=/^on[^A-Z]/,t5=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]*$"),n5=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]*$"),r5=/^[\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,gf=null,ll=null,cl=null,mb=!1,ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gb=!1;if(ei)try{var yf={};Object.defineProperty(yf,"passive",{get:function(){gb=!0}}),window.addEventListener("test",yf,yf),window.removeEventListener("test",yf,yf)}catch{gb=!1}var Fa=null,yb=null,Up=null,js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_p=br(js),bf=gt({},js,{view:0,detail:0}),o5=br(bf),bb,vb,vf,Mp=gt({},bf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iy,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vf&&(vf&&t.type==="mousemove"?(bb=t.screenX-vf.screenX,vb=t.screenY-vf.screenY):vb=bb=0,vf=t),bb)},movementY:function(t){return"movementY"in t?t.movementY:vb}}),NO=br(Mp),i5=gt({},Mp,{dataTransfer:0}),a5=br(i5),s5=gt({},bf,{relatedTarget:0}),Ab=br(s5),u5=gt({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),l5=br(u5),c5=gt({},js,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),f5=br(c5),d5=gt({},js,{data:0}),DO=br(d5),h5=DO,p5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m5={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"},g5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},y5=gt({},bf,{key:function(t){if(t.key){var n=p5[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Fh(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?m5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iy,charCode:function(t){return t.type==="keypress"?Fh(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fh(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),b5=br(y5),v5=gt({},Mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BO=br(v5),A5=gt({},bf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iy}),x5=br(A5),E5=gt({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),w5=br(E5),S5=gt({},Mp,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),C5=br(S5),I5=gt({},js,{newState:0,oldState:0}),T5=br(I5),R5=[9,13,27,32],UO=229,xb=ei&&"CompositionEvent"in window,Af=null;ei&&"documentMode"in document&&(Af=document.documentMode);var O5=ei&&"TextEvent"in window&&!Af,_O=ei&&(!xb||Af&&8<Af&&11>=Af),MO=32,PO=String.fromCharCode(MO),jO=!1,fl=!1,F5={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},xf=null,Ef=null,LO=!1;ei&&(LO=aj("input")&&(!document.documentMode||9<document.documentMode));var sr=typeof Object.is=="function"?Object.is:dj,N5=ei&&"documentMode"in document&&11>=document.documentMode,dl=null,Eb=null,wf=null,wb=!1,hl={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionrun:Es("Transition","TransitionRun"),transitionstart:Es("Transition","TransitionStart"),transitioncancel:Es("Transition","TransitionCancel"),transitionend:Es("Transition","TransitionEnd")},Sb={},kO={};ei&&(kO=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);var $O=ws("animationend"),qO=ws("animationiteration"),HO=ws("animationstart"),D5=ws("transitionrun"),B5=ws("transitionstart"),U5=ws("transitioncancel"),zO=ws("transitionend"),VO=new Map,Cb="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(" ");Cb.push("scrollEnd");var Ib=new WeakMap,Pp=1,Di=2,ro=[],pl=0,Tb=0,Na={};Object.freeze(Na);var oo=null,ml=null,Qt=0,_5=1,Ln=2,Zn=8,Co=16,GO=64,QO=!1;try{var YO=Object.preventExtensions({})}catch{QO=!0}var gl=[],yl=0,jp=null,Lp=0,io=[],ao=0,Ls=null,Bi=1,Ui="",ur=null,Wt=null,Nt=!1,_i=!1,so=null,ks=null,ti=!1,Rb=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."),KO=0;if(typeof performance=="object"&&typeof performance.now=="function")var M5=performance,XO=function(){return M5.now()};else{var P5=Date;XO=function(){return P5.now()}}var Ob=$(null),Fb=$(null),ZO={},kp=null,bl=null,vl=!1,j5=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(o,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(o){return o()})}},L5=dn.unstable_scheduleCallback,k5=dn.unstable_NormalPriority,An={$$typeof:Ko,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Al=dn.unstable_now,JO=-0,$p=-0,wr=-1.1,$s=-0,qp=!1,Hp=!1,Sf=null,Nb=0,qs=0,xl=null,WO=Oe.S;Oe.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&pj(t,n),WO!==null&&WO(t,n)};var Hs=$(null),Io={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Cf=[],If=[],Tf=[],Rf=[],Of=[],Ff=[],zs=new Set;Io.recordUnsafeLifecycleWarnings=function(t,n){zs.has(t.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Cf.push(t),t.mode&Zn&&typeof n.UNSAFE_componentWillMount=="function"&&If.push(t),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Tf.push(t),t.mode&Zn&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Rf.push(t),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Of.push(t),t.mode&Zn&&typeof n.UNSAFE_componentWillUpdate=="function"&&Ff.push(t))},Io.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Cf.length&&(Cf.forEach(function(R){t.add(T(R)||"Component"),zs.add(R.type)}),Cf=[]);var n=new Set;0<If.length&&(If.forEach(function(R){n.add(T(R)||"Component"),zs.add(R.type)}),If=[]);var o=new Set;0<Tf.length&&(Tf.forEach(function(R){o.add(T(R)||"Component"),zs.add(R.type)}),Tf=[]);var s=new Set;0<Rf.length&&(Rf.forEach(function(R){s.add(T(R)||"Component"),zs.add(R.type)}),Rf=[]);var l=new Set;0<Of.length&&(Of.forEach(function(R){l.add(T(R)||"Component"),zs.add(R.type)}),Of=[]);var d=new Set;if(0<Ff.length&&(Ff.forEach(function(R){d.add(T(R)||"Component"),zs.add(R.type)}),Ff=[]),0<n.size){var x=v(n);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.
|
|
231
|
+
|
|
232
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
233
|
+
|
|
234
|
+
Please update the following components: %s`,x)}0<s.size&&(x=v(s),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.
|
|
235
|
+
|
|
236
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
237
|
+
* 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
|
|
238
|
+
|
|
239
|
+
Please update the following components: %s`,x)),0<d.size&&(x=v(d),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.
|
|
240
|
+
|
|
241
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
242
|
+
|
|
243
|
+
Please update the following components: %s`,x)),0<t.size&&(x=v(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
244
|
+
|
|
245
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
246
|
+
* 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.
|
|
247
|
+
|
|
248
|
+
Please update the following components: %s`,x)),0<o.size&&(x=v(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
249
|
+
|
|
250
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
251
|
+
* 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
|
|
252
|
+
* 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.
|
|
253
|
+
|
|
254
|
+
Please update the following components: %s`,x)),0<l.size&&(x=v(l),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
255
|
+
|
|
256
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
257
|
+
* 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.
|
|
258
|
+
|
|
259
|
+
Please update the following components: %s`,x))};var zp=new Map,e3=new Set;Io.recordLegacyContextWarning=function(t,n){for(var o=null,s=t;s!==null;)s.mode&Zn&&(o=s),s=s.return;o===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."):!e3.has(t.type)&&(s=zp.get(o),t.type.contextTypes!=null||t.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(s===void 0&&(s=[],zp.set(o,s)),s.push(t))},Io.flushLegacyContextWarning=function(){zp.forEach(function(t){if(t.length!==0){var n=t[0],o=new Set;t.forEach(function(l){o.add(T(l)||"Component"),e3.add(l.type)});var s=v(o);Ze(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
260
|
+
|
|
261
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
262
|
+
|
|
263
|
+
Please update the following components: %s
|
|
264
|
+
|
|
265
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},Io.discardPendingWarnings=function(){Cf=[],If=[],Tf=[],Rf=[],Of=[],Ff=[],zp=new Map};var Nf=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`."),t3=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."),Vp=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."),Db={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.')}},Df=null,Gp=!1,uo=0,lo=1,lr=2,kn=4,xn=8,n3=0,r3=1,o3=2,Bb=3,Da=!1,i3=!1,Ub=null,_b=!1,El=$(null),Qp=$(0),wl,a3=new Set,s3=new Set,Mb=new Set,u3=new Set,Ba=0,ct=null,$t=null,hn=null,Yp=!1,Sl=!1,Vs=!1,Kp=0,Bf=0,Mi=null,$5=0,q5=25,Te=null,co=null,Pi=-1,Uf=!1,Xp={readContext:Kt,use:va,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn},Pb=null,l3=null,jb=null,c3=null,ni=null,To=null,Zp=null;Pb={readContext:function(t){return Kt(t)},use:va,useCallback:function(t,n){return Te="useCallback",At(),Hu(n),zy(t,n)},useContext:function(t){return Te="useContext",At(),Kt(t)},useEffect:function(t,n){return Te="useEffect",At(),Hu(n),Xh(t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",At(),Hu(o),Hy(t,n,o)},useInsertionEffect:function(t,n){Te="useInsertionEffect",At(),Hu(n),Bs(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",At(),Hu(n),qy(t,n)},useMemo:function(t,n){Te="useMemo",At(),Hu(n);var o=Oe.H;Oe.H=ni;try{return Vy(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",At();var s=Oe.H;Oe.H=ni;try{return Uy(t,n,o)}finally{Oe.H=s}},useRef:function(t){return Te="useRef",At(),$y(t)},useState:function(t){Te="useState",At();var n=Oe.H;Oe.H=ni;try{return jy(t)}finally{Oe.H=n}},useDebugValue:function(){Te="useDebugValue",At()},useDeferredValue:function(t,n){return Te="useDeferredValue",At(),Gy(t,n)},useTransition:function(){return Te="useTransition",At(),Ky()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",At(),My(t,n,o)},useId:function(){return Te="useId",At(),Xy()},useFormState:function(t,n){return Te="useFormState",At(),Vh(),Vu(t,n)},useActionState:function(t,n){return Te="useActionState",At(),Vu(t,n)},useOptimistic:function(t){return Te="useOptimistic",At(),Ly(t)},useHostTransitionStatus:Us,useMemoCache:Ds,useCacheRefresh:function(){return Te="useCacheRefresh",At(),Zy()}},l3={readContext:function(t){return Kt(t)},use:va,useCallback:function(t,n){return Te="useCallback",Le(),zy(t,n)},useContext:function(t){return Te="useContext",Le(),Kt(t)},useEffect:function(t,n){return Te="useEffect",Le(),Xh(t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",Le(),Hy(t,n,o)},useInsertionEffect:function(t,n){Te="useInsertionEffect",Le(),Bs(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",Le(),qy(t,n)},useMemo:function(t,n){Te="useMemo",Le();var o=Oe.H;Oe.H=ni;try{return Vy(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",Le();var s=Oe.H;Oe.H=ni;try{return Uy(t,n,o)}finally{Oe.H=s}},useRef:function(t){return Te="useRef",Le(),$y(t)},useState:function(t){Te="useState",Le();var n=Oe.H;Oe.H=ni;try{return jy(t)}finally{Oe.H=n}},useDebugValue:function(){Te="useDebugValue",Le()},useDeferredValue:function(t,n){return Te="useDeferredValue",Le(),Gy(t,n)},useTransition:function(){return Te="useTransition",Le(),Ky()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",Le(),My(t,n,o)},useId:function(){return Te="useId",Le(),Xy()},useActionState:function(t,n){return Te="useActionState",Le(),Vu(t,n)},useFormState:function(t,n){return Te="useFormState",Le(),Vh(),Vu(t,n)},useOptimistic:function(t){return Te="useOptimistic",Le(),Ly(t)},useHostTransitionStatus:Us,useMemoCache:Ds,useCacheRefresh:function(){return Te="useCacheRefresh",Le(),Zy()}},jb={readContext:function(t){return Kt(t)},use:va,useCallback:function(t,n){return Te="useCallback",Le(),Jh(t,n)},useContext:function(t){return Te="useContext",Le(),Kt(t)},useEffect:function(t,n){Te="useEffect",Le(),xr(2048,xn,t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",Le(),Zh(t,n,o)},useInsertionEffect:function(t,n){return Te="useInsertionEffect",Le(),xr(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",Le(),xr(4,kn,t,n)},useMemo:function(t,n){Te="useMemo",Le();var o=Oe.H;Oe.H=To;try{return Wh(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",Le();var s=Oe.H;Oe.H=To;try{return zu(t,n,o)}finally{Oe.H=s}},useRef:function(){return Te="useRef",Le(),Mt().memoizedState},useState:function(){Te="useState",Le();var t=Oe.H;Oe.H=To;try{return zu(wo)}finally{Oe.H=t}},useDebugValue:function(){Te="useDebugValue",Le()},useDeferredValue:function(t,n){return Te="useDeferredValue",Le(),$I(t,n)},useTransition:function(){return Te="useTransition",Le(),QI()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",Le(),Gh(t,n,o)},useId:function(){return Te="useId",Le(),Mt().memoizedState},useFormState:function(t){return Te="useFormState",Le(),Vh(),Qh(t)},useActionState:function(t){return Te="useActionState",Le(),Qh(t)},useOptimistic:function(t,n){return Te="useOptimistic",Le(),NI(t,n)},useHostTransitionStatus:Us,useMemoCache:Ds,useCacheRefresh:function(){return Te="useCacheRefresh",Le(),Mt().memoizedState}},c3={readContext:function(t){return Kt(t)},use:va,useCallback:function(t,n){return Te="useCallback",Le(),Jh(t,n)},useContext:function(t){return Te="useContext",Le(),Kt(t)},useEffect:function(t,n){Te="useEffect",Le(),xr(2048,xn,t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",Le(),Zh(t,n,o)},useInsertionEffect:function(t,n){return Te="useInsertionEffect",Le(),xr(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",Le(),xr(4,kn,t,n)},useMemo:function(t,n){Te="useMemo",Le();var o=Oe.H;Oe.H=Zp;try{return Wh(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",Le();var s=Oe.H;Oe.H=Zp;try{return Yc(t,n,o)}finally{Oe.H=s}},useRef:function(){return Te="useRef",Le(),Mt().memoizedState},useState:function(){Te="useState",Le();var t=Oe.H;Oe.H=Zp;try{return Yc(wo)}finally{Oe.H=t}},useDebugValue:function(){Te="useDebugValue",Le()},useDeferredValue:function(t,n){return Te="useDeferredValue",Le(),qI(t,n)},useTransition:function(){return Te="useTransition",Le(),YI()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",Le(),Gh(t,n,o)},useId:function(){return Te="useId",Le(),Mt().memoizedState},useFormState:function(t){return Te="useFormState",Le(),Vh(),Yh(t)},useActionState:function(t){return Te="useActionState",Le(),Yh(t)},useOptimistic:function(t,n){return Te="useOptimistic",Le(),BI(t,n)},useHostTransitionStatus:Us,useMemoCache:Ds,useCacheRefresh:function(){return Te="useCacheRefresh",Le(),Mt().memoizedState}},ni={readContext:function(t){return p(),Kt(t)},use:function(t){return m(),va(t)},useCallback:function(t,n){return Te="useCallback",m(),At(),zy(t,n)},useContext:function(t){return Te="useContext",m(),At(),Kt(t)},useEffect:function(t,n){return Te="useEffect",m(),At(),Xh(t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",m(),At(),Hy(t,n,o)},useInsertionEffect:function(t,n){Te="useInsertionEffect",m(),At(),Bs(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",m(),At(),qy(t,n)},useMemo:function(t,n){Te="useMemo",m(),At();var o=Oe.H;Oe.H=ni;try{return Vy(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",m(),At();var s=Oe.H;Oe.H=ni;try{return Uy(t,n,o)}finally{Oe.H=s}},useRef:function(t){return Te="useRef",m(),At(),$y(t)},useState:function(t){Te="useState",m(),At();var n=Oe.H;Oe.H=ni;try{return jy(t)}finally{Oe.H=n}},useDebugValue:function(){Te="useDebugValue",m(),At()},useDeferredValue:function(t,n){return Te="useDeferredValue",m(),At(),Gy(t,n)},useTransition:function(){return Te="useTransition",m(),At(),Ky()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",m(),At(),My(t,n,o)},useId:function(){return Te="useId",m(),At(),Xy()},useFormState:function(t,n){return Te="useFormState",m(),At(),Vu(t,n)},useActionState:function(t,n){return Te="useActionState",m(),At(),Vu(t,n)},useOptimistic:function(t){return Te="useOptimistic",m(),At(),Ly(t)},useMemoCache:function(t){return m(),Ds(t)},useHostTransitionStatus:Us,useCacheRefresh:function(){return Te="useCacheRefresh",At(),Zy()}},To={readContext:function(t){return p(),Kt(t)},use:function(t){return m(),va(t)},useCallback:function(t,n){return Te="useCallback",m(),Le(),Jh(t,n)},useContext:function(t){return Te="useContext",m(),Le(),Kt(t)},useEffect:function(t,n){Te="useEffect",m(),Le(),xr(2048,xn,t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",m(),Le(),Zh(t,n,o)},useInsertionEffect:function(t,n){return Te="useInsertionEffect",m(),Le(),xr(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",m(),Le(),xr(4,kn,t,n)},useMemo:function(t,n){Te="useMemo",m(),Le();var o=Oe.H;Oe.H=To;try{return Wh(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",m(),Le();var s=Oe.H;Oe.H=To;try{return zu(t,n,o)}finally{Oe.H=s}},useRef:function(){return Te="useRef",m(),Le(),Mt().memoizedState},useState:function(){Te="useState",m(),Le();var t=Oe.H;Oe.H=To;try{return zu(wo)}finally{Oe.H=t}},useDebugValue:function(){Te="useDebugValue",m(),Le()},useDeferredValue:function(t,n){return Te="useDeferredValue",m(),Le(),$I(t,n)},useTransition:function(){return Te="useTransition",m(),Le(),QI()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",m(),Le(),Gh(t,n,o)},useId:function(){return Te="useId",m(),Le(),Mt().memoizedState},useFormState:function(t){return Te="useFormState",m(),Le(),Qh(t)},useActionState:function(t){return Te="useActionState",m(),Le(),Qh(t)},useOptimistic:function(t,n){return Te="useOptimistic",m(),Le(),NI(t,n)},useMemoCache:function(t){return m(),Ds(t)},useHostTransitionStatus:Us,useCacheRefresh:function(){return Te="useCacheRefresh",Le(),Mt().memoizedState}},Zp={readContext:function(t){return p(),Kt(t)},use:function(t){return m(),va(t)},useCallback:function(t,n){return Te="useCallback",m(),Le(),Jh(t,n)},useContext:function(t){return Te="useContext",m(),Le(),Kt(t)},useEffect:function(t,n){Te="useEffect",m(),Le(),xr(2048,xn,t,n)},useImperativeHandle:function(t,n,o){return Te="useImperativeHandle",m(),Le(),Zh(t,n,o)},useInsertionEffect:function(t,n){return Te="useInsertionEffect",m(),Le(),xr(4,lr,t,n)},useLayoutEffect:function(t,n){return Te="useLayoutEffect",m(),Le(),xr(4,kn,t,n)},useMemo:function(t,n){Te="useMemo",m(),Le();var o=Oe.H;Oe.H=To;try{return Wh(t,n)}finally{Oe.H=o}},useReducer:function(t,n,o){Te="useReducer",m(),Le();var s=Oe.H;Oe.H=To;try{return Yc(t,n,o)}finally{Oe.H=s}},useRef:function(){return Te="useRef",m(),Le(),Mt().memoizedState},useState:function(){Te="useState",m(),Le();var t=Oe.H;Oe.H=To;try{return Yc(wo)}finally{Oe.H=t}},useDebugValue:function(){Te="useDebugValue",m(),Le()},useDeferredValue:function(t,n){return Te="useDeferredValue",m(),Le(),qI(t,n)},useTransition:function(){return Te="useTransition",m(),Le(),YI()},useSyncExternalStore:function(t,n,o){return Te="useSyncExternalStore",m(),Le(),Gh(t,n,o)},useId:function(){return Te="useId",m(),Le(),Mt().memoizedState},useFormState:function(t){return Te="useFormState",m(),Le(),Yh(t)},useActionState:function(t){return Te="useActionState",m(),Le(),Yh(t)},useOptimistic:function(t,n){return Te="useOptimistic",m(),Le(),BI(t,n)},useMemoCache:function(t){return m(),Ds(t)},useHostTransitionStatus:Us,useCacheRefresh:function(){return Te="useCacheRefresh",Le(),Mt().memoizedState}};var f3={react_stack_bottom_frame:function(t,n,o){var s=Wo;Wo=!0;try{return t(n,o)}finally{Wo=s}}},Lb=f3.react_stack_bottom_frame.bind(f3),d3={react_stack_bottom_frame:function(t){var n=Wo;Wo=!0;try{return t.render()}finally{Wo=n}}},h3=d3.react_stack_bottom_frame.bind(d3),p3={react_stack_bottom_frame:function(t,n){try{n.componentDidMount()}catch(o){Lt(t,t.return,o)}}},kb=p3.react_stack_bottom_frame.bind(p3),m3={react_stack_bottom_frame:function(t,n,o,s,l){try{n.componentDidUpdate(o,s,l)}catch(d){Lt(t,t.return,d)}}},g3=m3.react_stack_bottom_frame.bind(m3),y3={react_stack_bottom_frame:function(t,n){var o=n.stack;t.componentDidCatch(n.value,{componentStack:o!==null?o:""})}},H5=y3.react_stack_bottom_frame.bind(y3),b3={react_stack_bottom_frame:function(t,n,o){try{o.componentWillUnmount()}catch(s){Lt(t,n,s)}}},v3=b3.react_stack_bottom_frame.bind(b3),A3={react_stack_bottom_frame:function(t){t.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",t.resourceKind);var n=t.create;return t=t.inst,n=n(),t.destroy=n}},z5=A3.react_stack_bottom_frame.bind(A3),x3={react_stack_bottom_frame:function(t,n,o){try{o()}catch(s){Lt(t,n,s)}}},V5=x3.react_stack_bottom_frame.bind(x3),E3={react_stack_bottom_frame:function(t){var n=t._init;return n(t._payload)}},Ua=E3.react_stack_bottom_frame.bind(E3),Cl=null,_f=0,pt=null,$b,w3=$b=!1,S3={},C3={},I3={};h=function(t,n,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._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.");o._store.validated=1;var s=T(t),l=s||"null";if(!S3[l]){S3[l]=!0,o=o._owner,t=t._debugOwner;var d="";t&&typeof t.tag=="number"&&(l=T(t))&&(d=`
|
|
266
|
+
|
|
267
|
+
Check the render method of \``+l+"`."),d||s&&(d=`
|
|
268
|
+
|
|
269
|
+
Check the top-level render call using <`+s+">.");var x="";o!=null&&t!==o&&(s=null,typeof o.tag=="number"?s=T(o):typeof o.name=="string"&&(s=o.name),s&&(x=" It was passed a child from "+s+".")),Ze(n,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.',d,x)})}}};var Il=JI(!0),T3=JI(!1),fo=$(null),ri=null,Tl=1,Mf=2,En=$(0),R3={},O3=new Set,F3=new Set,N3=new Set,D3=new Set,B3=new Set,U3=new Set,_3=new Set,M3=new Set,P3=new Set,j3=new Set;Object.freeze(R3);var qb={enqueueSetState:function(t,n,o){t=t._reactInternals;var s=Lr(t),l=ya(s);l.payload=n,o!=null&&(Wy(o),l.callback=o),n=ba(t,l,s),n!==null&&(on(n,t,s),zc(n,t,s)),te(t,s)},enqueueReplaceState:function(t,n,o){t=t._reactInternals;var s=Lr(t),l=ya(s);l.tag=r3,l.payload=n,o!=null&&(Wy(o),l.callback=o),n=ba(t,l,s),n!==null&&(on(n,t,s),zc(n,t,s)),te(t,s)},enqueueForceUpdate:function(t,n){t=t._reactInternals;var o=Lr(t),s=ya(o);s.tag=o3,n!=null&&(Wy(n),s.callback=n),n=ba(t,s,o),n!==null&&(on(n,t,o),zc(n,t,o)),Ge!==null&&typeof Ge.markForceUpdateScheduled=="function"&&Ge.markForceUpdateScheduled(t,o)}},Hb=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof It=="object"&&typeof It.emit=="function"){It.emit("uncaughtException",t);return}console.error(t)},Rl=null,zb=null,L3=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."),Cn=!1,k3={},$3={},q3={},H3={},Ol=!1,z3={},Vb={},Gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},V3=!1,G3=null;G3=new Set;var ji=!1,an=!1,Qb=!1,Q3=typeof WeakSet=="function"?WeakSet:Set,In=null,Fl=null,Nl=null,pn=null,Sr=!1,Ro=null,Pf=8192,G5={getCacheForType:function(t){var n=Kt(An),o=n.data.get(t);return o===void 0&&(o=t(),n.data.set(t,o)),o},getOwner:function(){return $r}};if(typeof Symbol=="function"&&Symbol.for){var jf=Symbol.for;jf("selector.component"),jf("selector.has_pseudo_class"),jf("selector.role"),jf("selector.test_id"),jf("selector.text")}var Q5=[],Y5=typeof WeakMap=="function"?WeakMap:Map,qr=0,cr=2,Oo=4,Li=0,Lf=1,Dl=2,Yb=3,Gs=4,Jp=6,Y3=5,Ut=qr,Ht=null,vt=null,xt=0,Cr=0,kf=1,Qs=2,$f=3,K3=4,Kb=5,Bl=6,qf=7,Xb=8,Ys=9,_t=Cr,Hr=null,_a=!1,Ul=!1,Zb=!1,oi=0,en=Li,Ma=0,Pa=0,Jb=0,zr=0,Ks=0,Hf=null,fr=null,Wp=!1,Wb=0,X3=300,em=1/0,Z3=500,zf=null,ja=null,K5=0,X5=1,Z5=2,Xs=0,J3=1,W3=2,eF=3,J5=4,ev=5,$n=0,La=null,_l=null,ka=0,tv=0,nv=null,tF=null,W5=50,Vf=0,rv=null,ov=!1,tm=!1,ek=50,Zs=0,Gf=null,Ml=!1,nm=null,nF=!1,rF=new Set,tk={},rm=null,Pl=null,iv=!1,av=!1,om=!1,sv=!1,Js=0,uv={};(function(){for(var t=0;t<Cb.length;t++){var n=Cb[t],o=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Eo(o,"on"+n)}Eo($O,"onAnimationEnd"),Eo(qO,"onAnimationIteration"),Eo(HO,"onAnimationStart"),Eo("dblclick","onDoubleClick"),Eo("focusin","onFocus"),Eo("focusout","onBlur"),Eo(D5,"onTransitionRun"),Eo(B5,"onTransitionStart"),Eo(U5,"onTransitionCancel"),Eo(zO,"onTransitionEnd")})(),Pe("onMouseEnter",["mouseout","mouseover"]),Pe("onMouseLeave",["mouseout","mouseover"]),Pe("onPointerEnter",["pointerout","pointerover"]),Pe("onPointerLeave",["pointerout","pointerover"]),_e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_e("onBeforeInput",["compositionend","keypress","textInput","paste"]),_e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qf="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(" "),lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qf)),im="_reactListening"+Math.random().toString(36).slice(2),oF=!1,iF=!1,am=!1,aF=!1,sm=!1,um=!1,sF=!1,lm={},nk=/\r\n?/g,rk=/\u0000|\uFFFD/g,Ws="http://www.w3.org/1999/xlink",cv="http://www.w3.org/XML/1998/namespace",ok="javascript:throw new Error('React form unexpectedly submitted.')",ik="suppressHydrationWarning",cm="$",fm="/$",ki="$?",Yf="$!",ak=1,sk=2,uk=4,fv="F!",uF="F",lF="complete",lk="style",$i=0,jl=1,dm=2,dv=null,hv=null,cF={dialog:!0,webview:!0},pv=null,fF=typeof setTimeout=="function"?setTimeout:void 0,ck=typeof clearTimeout=="function"?clearTimeout:void 0,eu=-1,dF=typeof Promise=="function"?Promise:void 0,fk=typeof queueMicrotask=="function"?queueMicrotask:typeof dF<"u"?function(t){return dF.resolve(null).then(t).catch(Xj)}:fF,mv=null,tu=0,Kf=1,hF=2,pF=3,ho=4,po=new Map,mF=new Set,qi=Bt.d;Bt.d={f:function(){var t=qi.f(),n=Xu();return t||n},r:function(t){var n=yt(t);n!==null&&n.tag===5&&n.type==="form"?GI(n):qi.r(t)},D:function(t){qi.D(t),_R("dns-prefetch",t,null)},C:function(t,n){qi.C(t,n),_R("preconnect",t,n)},L:function(t,n,o){qi.L(t,n,o);var s=Ll;if(s&&t&&n){var l='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&o&&o.imageSrcSet?(l+='[imagesrcset="'+Un(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(l+='[imagesizes="'+Un(o.imageSizes)+'"]')):l+='[href="'+Un(t)+'"]';var d=l;switch(n){case"style":d=el(t);break;case"script":d=tl(t)}po.has(d)||(t=gt({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:t,as:n},o),po.set(d,t),s.querySelector(l)!==null||n==="style"&&s.querySelector(uf(d))||n==="script"&&s.querySelector(lf(d))||(n=s.createElement("link"),Pn(n,"link",t),pe(n),s.head.appendChild(n)))}},m:function(t,n){qi.m(t,n);var o=Ll;if(o&&t){var s=n&&typeof n.as=="string"?n.as:"script",l='link[rel="modulepreload"][as="'+Un(s)+'"][href="'+Un(t)+'"]',d=l;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=tl(t)}if(!po.has(d)&&(t=gt({rel:"modulepreload",href:t},n),po.set(d,t),o.querySelector(l)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(lf(d)))return}s=o.createElement("link"),Pn(s,"link",t),pe(s),o.head.appendChild(s)}}},X:function(t,n){qi.X(t,n);var o=Ll;if(o&&t){var s=P(o).hoistableScripts,l=tl(t),d=s.get(l);d||(d=o.querySelector(lf(l)),d||(t=gt({src:t,async:!0},n),(n=po.get(l))&&q0(t,n),d=o.createElement("script"),pe(d),Pn(d,"link",t),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(l,d))}},S:function(t,n,o){qi.S(t,n,o);var s=Ll;if(s&&t){var l=P(s).hoistableStyles,d=el(t);n=n||"default";var x=l.get(d);if(!x){var R={loading:tu,preload:null};if(x=s.querySelector(uf(d)))R.loading=Kf|ho;else{t=gt({rel:"stylesheet",href:t,"data-precedence":n},o),(o=po.get(d))&&$0(t,o);var q=x=s.createElement("link");pe(q),Pn(q,"link",t),q._p=new Promise(function(Z,Se){q.onload=Z,q.onerror=Se}),q.addEventListener("load",function(){R.loading|=Kf}),q.addEventListener("error",function(){R.loading|=hF}),R.loading|=ho,Ap(x,n,s)}x={type:"stylesheet",instance:x,count:1,state:R},l.set(d,x)}}},M:function(t,n){qi.M(t,n);var o=Ll;if(o&&t){var s=P(o).hoistableScripts,l=tl(t),d=s.get(l);d||(d=o.querySelector(lf(l)),d||(t=gt({src:t,async:!0,type:"module"},n),(n=po.get(l))&&q0(t,n),d=o.createElement("script"),pe(d),Pn(d,"link",t),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(l,d))}}};var Ll=typeof document>"u"?null:document,hm=null,Xf=null,gv=null,pm=null,nu=FL,Zf={$$typeof:Ko,Provider:null,Consumer:null,_currentValue:nu,_currentValue2:nu,_threadCount:0},gF="%c%s%c ",yF="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",bF="",mm=" ",dk=Function.prototype.bind,vF=!1,AF=null,xF=null,EF=null,wF=null,SF=null,CF=null,IF=null,TF=null,RF=null;AF=function(t,n,o,s){n=e(t,n),n!==null&&(o=r(n.memoizedState,o,0,s),n.memoizedState=o,n.baseState=o,t.memoizedProps=gt({},t.memoizedProps),o=vr(t,2),o!==null&&on(o,t,2))},xF=function(t,n,o){n=e(t,n),n!==null&&(o=u(n.memoizedState,o,0),n.memoizedState=o,n.baseState=o,t.memoizedProps=gt({},t.memoizedProps),o=vr(t,2),o!==null&&on(o,t,2))},EF=function(t,n,o,s){n=e(t,n),n!==null&&(o=i(n.memoizedState,o,s),n.memoizedState=o,n.baseState=o,t.memoizedProps=gt({},t.memoizedProps),o=vr(t,2),o!==null&&on(o,t,2))},wF=function(t,n,o){t.pendingProps=r(t.memoizedProps,n,0,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=vr(t,2),n!==null&&on(n,t,2)},SF=function(t,n){t.pendingProps=u(t.memoizedProps,n,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=vr(t,2),n!==null&&on(n,t,2)},CF=function(t,n,o){t.pendingProps=i(t.memoizedProps,n,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=vr(t,2),n!==null&&on(n,t,2)},IF=function(t){var n=vr(t,2);n!==null&&on(n,t,2)},TF=function(t){f=t},RF=function(t){c=t};var gm=!0,ym=null,yv=!1,$a=null,qa=null,Ha=null,Jf=new Map,Wf=new Map,za=[],hk="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(" "),bm=null;if(Sp.prototype.render=K0.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[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()."):F(o[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 o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=t;var s=n.current,l=Lr(s);z0(s,l,o,n,null,null)},Sp.prototype.unmount=K0.prototype.unmount=function(){var t=arguments;if(typeof t[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()."),t=this._internalRoot,t!==null){this._internalRoot=null;var n=t.containerInfo;(Ut&(cr|Oo))!==qr&&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."),z0(t.current,2,null,t,null,null),Xu(),n[Oa]=null}},Sp.prototype.unstable_scheduleHydration=function(t){if(t){var n=rt();t={blockedOn:null,target:t,priority:n};for(var o=0;o<za.length&&n!==0&&n<za[o].priority;o++);za.splice(o,0,t),o===0&&YR(t)}},(function(){var t=X0.version;if(t!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
270
|
+
- react: `+(t+`
|
|
271
|
+
- react-dom: 19.1.1
|
|
272
|
+
Learn 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"),Bt.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=re(n),t=t!==null?K(t):null,t=t===null?null:t.stateNode,t},!(function(){var t={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Oe,reconcilerVersion:"19.1.1"};return t.overrideHookState=AF,t.overrideHookStateDeletePath=xF,t.overrideHookStateRenamePath=EF,t.overrideProps=wF,t.overridePropsDeletePath=SF,t.overridePropsRenamePath=CF,t.scheduleUpdate=IF,t.setErrorHandler=TF,t.setSuspenseHandler=RF,t.scheduleRefresh=O,t.scheduleRoot=S,t.setRefreshHandler=U,t.getCurrentFiber=vL,t.getLaneLabelMap=AL,t.injectProfilingHooks=xe,H(t)})()&&ei&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var OF=window.location.protocol;/^(https?|file):$/.test(OF)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(OF==="file:"?`
|
|
273
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}td.createRoot=function(t,n){if(!F(t))throw Error("Target container is not a DOM element.");ZR(t);var o=!1,s="",l=nT,d=rT,x=oT,R=null;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===Ca&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
274
|
+
|
|
275
|
+
let root = createRoot(domContainer);
|
|
276
|
+
root.render(<App />);`),n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(R=n.unstable_transitionCallbacks)),n=qR(t,1,!1,null,null,o,s,l,d,x,R,null),t[Oa]=n.current,N0(t),new K0(n)},td.hydrateRoot=function(t,n,o){if(!F(t))throw Error("Target container is not a DOM element.");ZR(t),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,l="",d=nT,x=rT,R=oT,q=null,Z=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onUncaughtError!==void 0&&(d=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(q=o.unstable_transitionCallbacks),o.formState!==void 0&&(Z=o.formState)),n=qR(t,1,!0,n,o??null,s,l,d,x,R,q,Z),n.context=HR(null),o=n.current,s=Lr(o),s=Ue(s),l=ya(s),l.callback=null,ba(o,l,s),o=s,n.current.lanes=o,He(n,o),Qo(n),t[Oa]=n.current,N0(t),new Sp(n)},td.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),td}var zF;function Tk(){return zF||(zF=1,Ev.exports=Ik()),Ev.exports}var Rk=Tk(),Ok=z6();function cd({isOpen:e,onClose:r,title:i,children:a,className:u,url:c}){Me.useEffect(()=>{if(e){const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}}},[e]);const f=()=>{var m;c&&((m=globalThis==null?void 0:globalThis.open)==null||m.call(globalThis,c,"_blank","noopener,noreferrer"),r())};if(!e)return null;const h=ne.jsxDEV("div",{className:"modal-overlay",onClick:r,children:ne.jsxDEV("div",{className:`modal-content ${u}`,onClick:m=>m.stopPropagation(),children:[ne.jsxDEV("div",{className:"modal-header",children:[ne.jsxDEV("h2",{className:"modal-title",children:i},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:46,columnNumber:11},this),ne.jsxDEV("div",{className:"modal-header-actions",children:[c&&ne.jsxDEV("button",{className:"modal-open-new-window",onClick:f,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:ne.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[ne.jsxDEV("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:67,columnNumber:19},this),ne.jsxDEV("polyline",{points:"15 3 21 3 21 9"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:68,columnNumber:19},this),ne.jsxDEV("line",{x1:"10",y1:"14",x2:"21",y2:"3"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:69,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:56,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:49,columnNumber:15},this),ne.jsxDEV("button",{className:"modal-close",onClick:r,type:"button",children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:45,columnNumber:9},this),ne.jsxDEV("div",{className:"modal-body",children:a},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:41,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:40,columnNumber:5},this);return typeof document<"u"&&document.body?Ok.createPortal(h,document.body):h}const kl=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ag(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function wd(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function na(e,...r){if(!ag(e))throw new Error("Uint8Array expected");if(r.length>0&&!r.includes(e.length))throw new Error("Uint8Array expected of length "+r+", got length="+e.length)}function V6(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");wd(e.outputLen),wd(e.blockLen)}function Jl(e,r=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(r&&e.finished)throw new Error("Hash#digest() has already been called")}function G6(e,r){na(e);const i=r.outputLen;if(e.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}function Fk(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Wl(...e){for(let r=0;r<e.length;r++)e[r].fill(0)}function Iv(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ii(e,r){return e<<32-r|e>>>r}const Nk=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Dk(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Bk(e){for(let r=0;r<e.length;r++)e[r]=Dk(e[r]);return e}const VF=Nk?e=>e:Bk,Q6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Uk=Array.from({length:256},(e,r)=>r.toString(16).padStart(2,"0"));function Gl(e){if(na(e),Q6)return e.toHex();let r="";for(let i=0;i<e.length;i++)r+=Uk[e[i]];return r}const Vi={_0:48,_9:57,A:65,F:70,a:97,f:102};function GF(e){if(e>=Vi._0&&e<=Vi._9)return e-Vi._0;if(e>=Vi.A&&e<=Vi.F)return e-(Vi.A-10);if(e>=Vi.a&&e<=Vi.f)return e-(Vi.a-10)}function Vm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Q6)return Uint8Array.fromHex(e);const r=e.length,i=r/2;if(r%2)throw new Error("hex string expected, got unpadded hex of length "+r);const a=new Uint8Array(i);for(let u=0,c=0;u<i;u++,c+=2){const f=GF(e.charCodeAt(c)),h=GF(e.charCodeAt(c+1));if(f===void 0||h===void 0){const m=e[c]+e[c+1];throw new Error('hex string expected, got non-hex character "'+m+'" at index '+c)}a[u]=f*16+h}return a}function _k(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function sg(e){return typeof e=="string"&&(e=_k(e)),na(e),e}function Ja(...e){let r=0;for(let a=0;a<e.length;a++){const u=e[a];na(u),r+=u.length}const i=new Uint8Array(r);for(let a=0,u=0;a<e.length;a++){const c=e[a];i.set(c,u),u+=c.length}return i}let Yw=class{};function Y6(e){const r=a=>e().update(sg(a)).digest(),i=e();return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.create=()=>e(),r}function K6(e=32){if(kl&&typeof kl.getRandomValues=="function")return kl.getRandomValues(new Uint8Array(e));if(kl&&typeof kl.randomBytes=="function")return Uint8Array.from(kl.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Kw=BigInt(0),mw=BigInt(1);function Gm(e,r=""){if(typeof e!="boolean"){const i=r&&`"${r}"`;throw new Error(i+"expected boolean, got type="+typeof e)}return e}function du(e,r,i=""){const a=ag(e),u=e==null?void 0:e.length,c=r!==void 0;if(!a||c&&u!==r){const f=i&&`"${i}" `,h=c?` of length ${r}`:"",m=a?`length=${u}`:`type=${typeof e}`;throw new Error(f+"expected Uint8Array"+h+", got "+m)}return e}function Em(e){const r=e.toString(16);return r.length&1?"0"+r:r}function X6(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Kw:BigInt("0x"+e)}function ug(e){return X6(Gl(e))}function Z6(e){return na(e),X6(Gl(Uint8Array.from(e).reverse()))}function Xw(e,r){return Vm(e.toString(16).padStart(r*2,"0"))}function J6(e,r){return Xw(e,r).reverse()}function Ir(e,r,i){let a;if(typeof r=="string")try{a=Vm(r)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(ag(r))a=Uint8Array.from(r);else throw new Error(e+" must be hex string or Uint8Array");return a.length,a}const Tv=e=>typeof e=="bigint"&&Kw<=e;function Mk(e,r,i){return Tv(e)&&Tv(r)&&Tv(i)&&r<=e&&e<i}function Pk(e,r,i,a){if(!Mk(r,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+r)}function W6(e){let r;for(r=0;e>Kw;e>>=mw,r+=1);return r}const nh=e=>(mw<<BigInt(e))-mw;function jk(e,r,i){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof r!="number"||r<2)throw new Error("qByteLen must be a number");if(typeof i!="function")throw new Error("hmacFn must be a function");const a=S=>new Uint8Array(S),u=S=>Uint8Array.of(S);let c=a(e),f=a(e),h=0;const m=()=>{c.fill(1),f.fill(0),h=0},p=(...S)=>i(f,c,...S),A=(S=a(0))=>{f=p(u(0),S),c=p(),S.length!==0&&(f=p(u(1),S),c=p())},v=()=>{if(h++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const O=[];for(;S<r;){c=p();const U=c.slice();O.push(U),S+=c.length}return Ja(...O)};return(S,O)=>{m(),A(S);let U;for(;!(U=O(v()));)A();return m(),U}}function Zw(e,r,i={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function a(u,c,f){const h=e[u];if(f&&h===void 0)return;const m=typeof h;if(m!==c||h===null)throw new Error(`param "${u}" is invalid: expected ${c}, got ${m}`)}Object.entries(r).forEach(([u,c])=>a(u,c,!1)),Object.entries(i).forEach(([u,c])=>a(u,c,!0))}function QF(e){const r=new WeakMap;return(i,...a)=>{const u=r.get(i);if(u!==void 0)return u;const c=e(i,...a);return r.set(i,c),c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tr=BigInt(0),pr=BigInt(1),hu=BigInt(2),e8=BigInt(3),t8=BigInt(4),n8=BigInt(5),Lk=BigInt(7),r8=BigInt(8),kk=BigInt(9),o8=BigInt(16);function No(e,r){const i=e%r;return i>=Tr?i:r+i}function mo(e,r,i){let a=e;for(;r-- >Tr;)a*=a,a%=i;return a}function YF(e,r){if(e===Tr)throw new Error("invert: expected non-zero number");if(r<=Tr)throw new Error("invert: expected positive modulus, got "+r);let i=No(e,r),a=r,u=Tr,c=pr;for(;i!==Tr;){const h=a/i,m=a%i,p=u-c*h;a=i,i=m,u=c,c=p}if(a!==pr)throw new Error("invert: does not exist");return No(u,r)}function Jw(e,r,i){if(!e.eql(e.sqr(r),i))throw new Error("Cannot find square root")}function i8(e,r){const i=(e.ORDER+pr)/t8,a=e.pow(r,i);return Jw(e,a,r),a}function $k(e,r){const i=(e.ORDER-n8)/r8,a=e.mul(r,hu),u=e.pow(a,i),c=e.mul(r,u),f=e.mul(e.mul(c,hu),u),h=e.mul(c,e.sub(f,e.ONE));return Jw(e,h,r),h}function qk(e){const r=rh(e),i=a8(e),a=i(r,r.neg(r.ONE)),u=i(r,a),c=i(r,r.neg(a)),f=(e+Lk)/o8;return(h,m)=>{let p=h.pow(m,f),A=h.mul(p,a);const v=h.mul(p,u),g=h.mul(p,c),S=h.eql(h.sqr(A),m),O=h.eql(h.sqr(v),m);p=h.cmov(p,A,S),A=h.cmov(g,v,O);const U=h.eql(h.sqr(A),m),F=h.cmov(p,A,U);return Jw(h,F,m),F}}function a8(e){if(e<e8)throw new Error("sqrt is not defined for small field");let r=e-pr,i=0;for(;r%hu===Tr;)r/=hu,i++;let a=hu;const u=rh(e);for(;KF(u,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return i8;let c=u.pow(a,r);const f=(r+pr)/hu;return function(m,p){if(m.is0(p))return p;if(KF(m,p)!==1)throw new Error("Cannot find square root");let A=i,v=m.mul(m.ONE,c),g=m.pow(p,r),S=m.pow(p,f);for(;!m.eql(g,m.ONE);){if(m.is0(g))return m.ZERO;let O=1,U=m.sqr(g);for(;!m.eql(U,m.ONE);)if(O++,U=m.sqr(U),O===A)throw new Error("Cannot find square root");const F=pr<<BigInt(A-O-1),N=m.pow(v,F);A=O,v=m.sqr(N),g=m.mul(g,v),S=m.mul(S,N)}return S}}function Hk(e){return e%t8===e8?i8:e%r8===n8?$k:e%o8===kk?qk(e):a8(e)}const zk=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Vk(e){const r={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},i=zk.reduce((a,u)=>(a[u]="function",a),r);return Zw(e,i),e}function Gk(e,r,i){if(i<Tr)throw new Error("invalid exponent, negatives unsupported");if(i===Tr)return e.ONE;if(i===pr)return r;let a=e.ONE,u=r;for(;i>Tr;)i&pr&&(a=e.mul(a,u)),u=e.sqr(u),i>>=pr;return a}function s8(e,r,i=!1){const a=new Array(r.length).fill(i?e.ZERO:void 0),u=r.reduce((f,h,m)=>e.is0(h)?f:(a[m]=f,e.mul(f,h)),e.ONE),c=e.inv(u);return r.reduceRight((f,h,m)=>e.is0(h)?f:(a[m]=e.mul(f,a[m]),e.mul(f,h)),c),a}function KF(e,r){const i=(e.ORDER-pr)/hu,a=e.pow(r,i),u=e.eql(a,e.ONE),c=e.eql(a,e.ZERO),f=e.eql(a,e.neg(e.ONE));if(!u&&!c&&!f)throw new Error("invalid Legendre symbol result");return u?1:c?0:-1}function u8(e,r){r!==void 0&&wd(r);const i=r!==void 0?r:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function rh(e,r,i=!1,a={}){if(e<=Tr)throw new Error("invalid field: expected ORDER > 0, got "+e);let u,c,f=!1,h;if(typeof r=="object"&&r!=null){if(a.sqrt||i)throw new Error("cannot specify opts in two arguments");const g=r;g.BITS&&(u=g.BITS),g.sqrt&&(c=g.sqrt),typeof g.isLE=="boolean"&&(i=g.isLE),typeof g.modFromBytes=="boolean"&&(f=g.modFromBytes),h=g.allowedLengths}else typeof r=="number"&&(u=r),a.sqrt&&(c=a.sqrt);const{nBitLength:m,nByteLength:p}=u8(e,u);if(p>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let A;const v=Object.freeze({ORDER:e,isLE:i,BITS:m,BYTES:p,MASK:nh(m),ZERO:Tr,ONE:pr,allowedLengths:h,create:g=>No(g,e),isValid:g=>{if(typeof g!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof g);return Tr<=g&&g<e},is0:g=>g===Tr,isValidNot0:g=>!v.is0(g)&&v.isValid(g),isOdd:g=>(g&pr)===pr,neg:g=>No(-g,e),eql:(g,S)=>g===S,sqr:g=>No(g*g,e),add:(g,S)=>No(g+S,e),sub:(g,S)=>No(g-S,e),mul:(g,S)=>No(g*S,e),pow:(g,S)=>Gk(v,g,S),div:(g,S)=>No(g*YF(S,e),e),sqrN:g=>g*g,addN:(g,S)=>g+S,subN:(g,S)=>g-S,mulN:(g,S)=>g*S,inv:g=>YF(g,e),sqrt:c||(g=>(A||(A=Hk(e)),A(v,g))),toBytes:g=>i?J6(g,p):Xw(g,p),fromBytes:(g,S=!0)=>{if(h){if(!h.includes(g.length)||g.length>p)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+g.length);const U=new Uint8Array(p);U.set(g,i?0:U.length-g.length),g=U}if(g.length!==p)throw new Error("Field.fromBytes: expected "+p+" bytes, got "+g.length);let O=i?Z6(g):ug(g);if(f&&(O=No(O,e)),!S&&!v.isValid(O))throw new Error("invalid field element: outside of range 0..ORDER");return O},invertBatch:g=>s8(v,g),cmov:(g,S,O)=>O?S:g});return Object.freeze(v)}function l8(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const r=e.toString(2).length;return Math.ceil(r/8)}function c8(e){const r=l8(e);return r+Math.ceil(r/2)}function Qk(e,r,i=!1){const a=e.length,u=l8(r),c=c8(r);if(a<16||a<c||a>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+a);const f=i?Z6(e):ug(e),h=No(f,r-pr)+pr;return i?J6(h,u):Xw(h,u)}function Yk(e,r,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(r,i,a);const u=BigInt(32),c=BigInt(4294967295),f=Number(i>>u&c),h=Number(i&c),m=a?4:0,p=a?0:4;e.setUint32(r+m,f,a),e.setUint32(r+p,h,a)}function Kk(e,r,i){return e&r^~e&i}function Xk(e,r,i){return e&r^e&i^r&i}let Zk=class extends Yw{constructor(r,i,a,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=r,this.outputLen=i,this.padOffset=a,this.isLE=u,this.buffer=new Uint8Array(r),this.view=Iv(this.buffer)}update(r){Jl(this),r=sg(r),na(r);const{view:i,buffer:a,blockLen:u}=this,c=r.length;for(let f=0;f<c;){const h=Math.min(u-this.pos,c-f);if(h===u){const m=Iv(r);for(;u<=c-f;f+=u)this.process(m,f);continue}a.set(r.subarray(f,f+h),this.pos),this.pos+=h,f+=h,this.pos===u&&(this.process(i,0),this.pos=0)}return this.length+=r.length,this.roundClean(),this}digestInto(r){Jl(this),G6(r,this),this.finished=!0;const{buffer:i,view:a,blockLen:u,isLE:c}=this;let{pos:f}=this;i[f++]=128,Wl(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(a,0),f=0);for(let v=f;v<u;v++)i[v]=0;Yk(a,u-8,BigInt(this.length*8),c),this.process(a,0);const h=Iv(r),m=this.outputLen;if(m%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=m/4,A=this.get();if(p>A.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<p;v++)h.setUint32(4*v,A[v],c)}digest(){const{buffer:r,outputLen:i}=this;this.digestInto(r);const a=r.slice(0,i);return this.destroy(),a}_cloneInto(r){r||(r=new this.constructor),r.set(...this.get());const{blockLen:i,buffer:a,length:u,finished:c,destroyed:f,pos:h}=this;return r.destroyed=f,r.finished=c,r.length=u,r.pos=h,u%i&&r.buffer.set(a),r}clone(){return this._cloneInto()}};const Ga=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),wm=BigInt(2**32-1),XF=BigInt(32);function Jk(e,r=!1){return r?{h:Number(e&wm),l:Number(e>>XF&wm)}:{h:Number(e>>XF&wm)|0,l:Number(e&wm)|0}}function Wk(e,r=!1){const i=e.length;let a=new Uint32Array(i),u=new Uint32Array(i);for(let c=0;c<i;c++){const{h:f,l:h}=Jk(e[c],r);[a[c],u[c]]=[f,h]}return[a,u]}const e$=(e,r,i)=>e<<i|r>>>32-i,t$=(e,r,i)=>r<<i|e>>>32-i,n$=(e,r,i)=>r<<i-32|e>>>64-i,r$=(e,r,i)=>e<<i-32|r>>>64-i,o$=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]),Qa=new Uint32Array(64);let i$=class extends Zk{constructor(r=32){super(64,r,8,!1),this.A=Ga[0]|0,this.B=Ga[1]|0,this.C=Ga[2]|0,this.D=Ga[3]|0,this.E=Ga[4]|0,this.F=Ga[5]|0,this.G=Ga[6]|0,this.H=Ga[7]|0}get(){const{A:r,B:i,C:a,D:u,E:c,F:f,G:h,H:m}=this;return[r,i,a,u,c,f,h,m]}set(r,i,a,u,c,f,h,m){this.A=r|0,this.B=i|0,this.C=a|0,this.D=u|0,this.E=c|0,this.F=f|0,this.G=h|0,this.H=m|0}process(r,i){for(let v=0;v<16;v++,i+=4)Qa[v]=r.getUint32(i,!1);for(let v=16;v<64;v++){const g=Qa[v-15],S=Qa[v-2],O=ii(g,7)^ii(g,18)^g>>>3,U=ii(S,17)^ii(S,19)^S>>>10;Qa[v]=U+Qa[v-7]+O+Qa[v-16]|0}let{A:a,B:u,C:c,D:f,E:h,F:m,G:p,H:A}=this;for(let v=0;v<64;v++){const g=ii(h,6)^ii(h,11)^ii(h,25),S=A+g+Kk(h,m,p)+o$[v]+Qa[v]|0,U=(ii(a,2)^ii(a,13)^ii(a,22))+Xk(a,u,c)|0;A=p,p=m,m=h,h=f+S|0,f=c,c=u,u=a,a=S+U|0}a=a+this.A|0,u=u+this.B|0,c=c+this.C|0,f=f+this.D|0,h=h+this.E|0,m=m+this.F|0,p=p+this.G|0,A=A+this.H|0,this.set(a,u,c,f,h,m,p,A)}roundClean(){Wl(Qa)}destroy(){this.set(0,0,0,0,0,0,0,0),Wl(this.buffer)}};const f8=Y6(()=>new i$);class d8 extends Yw{constructor(r,i){super(),this.finished=!1,this.destroyed=!1,V6(r);const a=sg(i);if(this.iHash=r.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;const u=this.blockLen,c=new Uint8Array(u);c.set(a.length>u?r.create().update(a).digest():a);for(let f=0;f<c.length;f++)c[f]^=54;this.iHash.update(c),this.oHash=r.create();for(let f=0;f<c.length;f++)c[f]^=106;this.oHash.update(c),Wl(c)}update(r){return Jl(this),this.iHash.update(r),this}digestInto(r){Jl(this),na(r,this.outputLen),this.finished=!0,this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy()}digest(){const r=new Uint8Array(this.oHash.outputLen);return this.digestInto(r),r}_cloneInto(r){r||(r=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:a,finished:u,destroyed:c,blockLen:f,outputLen:h}=this;return r=r,r.finished=u,r.destroyed=c,r.blockLen=f,r.outputLen=h,r.oHash=i._cloneInto(r.oHash),r.iHash=a._cloneInto(r.iHash),r}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const h8=(e,r,i)=>new d8(e,r).update(i).digest();h8.create=(e,r)=>new d8(e,r);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ec=BigInt(0),pu=BigInt(1);function Qm(e,r){const i=r.negate();return e?i:r}function Rv(e,r){const i=s8(e.Fp,r.map(a=>a.Z));return r.map((a,u)=>e.fromAffine(a.toAffine(i[u])))}function p8(e,r){if(!Number.isSafeInteger(e)||e<=0||e>r)throw new Error("invalid window size, expected [1.."+r+"], got W="+e)}function Ov(e,r){p8(e,r);const i=Math.ceil(r/e)+1,a=2**(e-1),u=2**e,c=nh(e),f=BigInt(e);return{windows:i,windowSize:a,mask:c,maxNumber:u,shiftBy:f}}function ZF(e,r,i){const{windowSize:a,mask:u,maxNumber:c,shiftBy:f}=i;let h=Number(e&u),m=e>>f;h>a&&(h-=c,m+=pu);const p=r*a,A=p+Math.abs(h)-1,v=h===0,g=h<0,S=r%2!==0;return{nextN:m,offset:A,isZero:v,isNeg:g,isNegF:S,offsetF:p}}function a$(e,r){if(!Array.isArray(e))throw new Error("array expected");e.forEach((i,a)=>{if(!(i instanceof r))throw new Error("invalid point at index "+a)})}function s$(e,r){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,a)=>{if(!r.isValid(i))throw new Error("invalid scalar at index "+a)})}const Fv=new WeakMap,m8=new WeakMap;function Nv(e){return m8.get(e)||1}function JF(e){if(e!==ec)throw new Error("invalid wNAF")}class u${constructor(r,i){this.BASE=r.BASE,this.ZERO=r.ZERO,this.Fn=r.Fn,this.bits=i}_unsafeLadder(r,i,a=this.ZERO){let u=r;for(;i>ec;)i&pu&&(a=a.add(u)),u=u.double(),i>>=pu;return a}precomputeWindow(r,i){const{windows:a,windowSize:u}=Ov(i,this.bits),c=[];let f=r,h=f;for(let m=0;m<a;m++){h=f,c.push(h);for(let p=1;p<u;p++)h=h.add(f),c.push(h);f=h.double()}return c}wNAF(r,i,a){if(!this.Fn.isValid(a))throw new Error("invalid scalar");let u=this.ZERO,c=this.BASE;const f=Ov(r,this.bits);for(let h=0;h<f.windows;h++){const{nextN:m,offset:p,isZero:A,isNeg:v,isNegF:g,offsetF:S}=ZF(a,h,f);a=m,A?c=c.add(Qm(g,i[S])):u=u.add(Qm(v,i[p]))}return JF(a),{p:u,f:c}}wNAFUnsafe(r,i,a,u=this.ZERO){const c=Ov(r,this.bits);for(let f=0;f<c.windows&&a!==ec;f++){const{nextN:h,offset:m,isZero:p,isNeg:A}=ZF(a,f,c);if(a=h,!p){const v=i[m];u=u.add(A?v.negate():v)}}return JF(a),u}getPrecomputes(r,i,a){let u=Fv.get(i);return u||(u=this.precomputeWindow(i,r),r!==1&&(typeof a=="function"&&(u=a(u)),Fv.set(i,u))),u}cached(r,i,a){const u=Nv(r);return this.wNAF(u,this.getPrecomputes(u,r,a),i)}unsafe(r,i,a,u){const c=Nv(r);return c===1?this._unsafeLadder(r,i,u):this.wNAFUnsafe(c,this.getPrecomputes(c,r,a),i,u)}createCache(r,i){p8(i,this.bits),m8.set(r,i),Fv.delete(r)}hasCache(r){return Nv(r)!==1}}function l$(e,r,i,a){let u=r,c=e.ZERO,f=e.ZERO;for(;i>ec||a>ec;)i&pu&&(c=c.add(u)),a&pu&&(f=f.add(u)),u=u.double(),i>>=pu,a>>=pu;return{p1:c,p2:f}}function c$(e,r,i,a){a$(i,e),s$(a,r);const u=i.length,c=a.length;if(u!==c)throw new Error("arrays of points and scalars must have equal length");const f=e.ZERO,h=W6(BigInt(u));let m=1;h>12?m=h-3:h>4?m=h-2:h>0&&(m=2);const p=nh(m),A=new Array(Number(p)+1).fill(f),v=Math.floor((r.BITS-1)/m)*m;let g=f;for(let S=v;S>=0;S-=m){A.fill(f);for(let U=0;U<c;U++){const F=a[U],N=Number(F>>BigInt(S)&p);A[N]=A[N].add(i[U])}let O=f;for(let U=A.length-1,F=f;U>0;U--)F=F.add(A[U]),O=O.add(F);if(g=g.add(O),S!==0)for(let U=0;U<m;U++)g=g.double()}return g}function WF(e,r,i){if(r){if(r.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return Vk(r),r}else return rh(e,{isLE:i})}function f$(e,r,i={},a){if(a===void 0&&(a=e==="edwards"),!r||typeof r!="object")throw new Error(`expected valid ${e} CURVE object`);for(const m of["p","n","h"]){const p=r[m];if(!(typeof p=="bigint"&&p>ec))throw new Error(`CURVE.${m} must be positive bigint`)}const u=WF(r.p,i.Fp,a),c=WF(r.n,i.Fn,a),h=["Gx","Gy","a","b"];for(const m of h)if(!u.isValid(r[m]))throw new Error(`CURVE.${m} must be valid field element of CURVE.Fp`);return r=Object.freeze(Object.assign({},r)),{CURVE:r,Fp:u,Fn:c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const eN=(e,r)=>(e+(e>=0?r:-r)/g8)/r;function d$(e,r,i){const[[a,u],[c,f]]=r,h=eN(f*e,i),m=eN(-u*e,i);let p=e-h*a-m*c,A=-h*u-m*f;const v=p<Ji,g=A<Ji;v&&(p=-p),g&&(A=-A);const S=nh(Math.ceil(W6(i)/2))+Ql;if(p<Ji||p>=S||A<Ji||A>=S)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:v,k1:p,k2neg:g,k2:A}}function gw(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Dv(e,r){const i={};for(let a of Object.keys(r))i[a]=e[a]===void 0?r[a]:e[a];return Gm(i.lowS,"lowS"),Gm(i.prehash,"prehash"),i.format!==void 0&&gw(i.format),i}class h$ extends Error{constructor(r=""){super(r)}}const Ki={Err:h$,_tlv:{encode:(e,r)=>{const{Err:i}=Ki;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(r.length&1)throw new i("tlv.encode: unpadded data");const a=r.length/2,u=Em(a);if(u.length/2&128)throw new i("tlv.encode: long form length too big");const c=a>127?Em(u.length/2|128):"";return Em(e)+c+u+r},decode(e,r){const{Err:i}=Ki;let a=0;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(r.length<2||r[a++]!==e)throw new i("tlv.decode: wrong tlv");const u=r[a++],c=!!(u&128);let f=0;if(!c)f=u;else{const m=u&127;if(!m)throw new i("tlv.decode(long): indefinite length not supported");if(m>4)throw new i("tlv.decode(long): byte length is too big");const p=r.subarray(a,a+m);if(p.length!==m)throw new i("tlv.decode: length bytes not complete");if(p[0]===0)throw new i("tlv.decode(long): zero leftmost byte");for(const A of p)f=f<<8|A;if(a+=m,f<128)throw new i("tlv.decode(long): not minimal encoding")}const h=r.subarray(a,a+f);if(h.length!==f)throw new i("tlv.decode: wrong value length");return{v:h,l:r.subarray(a+f)}}},_int:{encode(e){const{Err:r}=Ki;if(e<Ji)throw new r("integer: negative integers are not allowed");let i=Em(e);if(Number.parseInt(i[0],16)&8&&(i="00"+i),i.length&1)throw new r("unexpected DER parsing assertion: unpadded hex");return i},decode(e){const{Err:r}=Ki;if(e[0]&128)throw new r("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new r("invalid signature integer: unnecessary leading zero");return ug(e)}},toSig(e){const{Err:r,_int:i,_tlv:a}=Ki,u=Ir("signature",e),{v:c,l:f}=a.decode(48,u);if(f.length)throw new r("invalid signature: left bytes after parsing");const{v:h,l:m}=a.decode(2,c),{v:p,l:A}=a.decode(2,m);if(A.length)throw new r("invalid signature: left bytes after parsing");return{r:i.decode(h),s:i.decode(p)}},hexFromSig(e){const{_tlv:r,_int:i}=Ki,a=r.encode(2,i.encode(e.r)),u=r.encode(2,i.encode(e.s)),c=a+u;return r.encode(48,c)}},Ji=BigInt(0),Ql=BigInt(1),g8=BigInt(2),Sm=BigInt(3),p$=BigInt(4);function ql(e,r){const{BYTES:i}=e;let a;if(typeof r=="bigint")a=r;else{let u=Ir("private key",r);try{a=e.fromBytes(u)}catch{throw new Error(`invalid private key: expected ui8a of size ${i}, got ${typeof r}`)}}if(!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}function m$(e,r={}){const i=f$("weierstrass",e,r),{Fp:a,Fn:u}=i;let c=i.CURVE;const{h:f,n:h}=c;Zw(r,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:m}=r;if(m&&(!a.is0(c.a)||typeof m.beta!="bigint"||!Array.isArray(m.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const p=b8(a,u);function A(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function v(V,X,J){const{x:ve,y:B}=X.toAffine(),he=a.toBytes(ve);if(Gm(J,"isCompressed"),J){A();const ge=!a.isOdd(B);return Ja(y8(ge),he)}else return Ja(Uint8Array.of(4),he,a.toBytes(B))}function g(V){du(V,void 0,"Point");const{publicKey:X,publicKeyUncompressed:J}=p,ve=V.length,B=V[0],he=V.subarray(1);if(ve===X&&(B===2||B===3)){const ge=a.fromBytes(he);if(!a.isValid(ge))throw new Error("bad point: is not on curve, wrong x");const W=U(ge);let _;try{_=a.sqrt(W)}catch(ee){const k=ee instanceof Error?": "+ee.message:"";throw new Error("bad point: is not on curve, sqrt error"+k)}A();const ie=a.isOdd(_);return(B&1)===1!==ie&&(_=a.neg(_)),{x:ge,y:_}}else if(ve===J&&B===4){const ge=a.BYTES,W=a.fromBytes(he.subarray(0,ge)),_=a.fromBytes(he.subarray(ge,ge*2));if(!F(W,_))throw new Error("bad point: is not on curve");return{x:W,y:_}}else throw new Error(`bad point: got length ${ve}, expected compressed=${X} or uncompressed=${J}`)}const S=r.toBytes||v,O=r.fromBytes||g;function U(V){const X=a.sqr(V),J=a.mul(X,V);return a.add(a.add(J,a.mul(V,c.a)),c.b)}function F(V,X){const J=a.sqr(X),ve=U(V);return a.eql(J,ve)}if(!F(c.Gx,c.Gy))throw new Error("bad curve params: generator point");const N=a.mul(a.pow(c.a,Sm),p$),D=a.mul(a.sqr(c.b),BigInt(27));if(a.is0(a.add(N,D)))throw new Error("bad curve params: a or b");function M(V,X,J=!1){if(!a.isValid(X)||J&&a.is0(X))throw new Error(`bad point coordinate ${V}`);return X}function re(V){if(!(V instanceof T))throw new Error("ProjectivePoint expected")}function K(V){if(!m||!m.basises)throw new Error("no endo");return d$(V,m.basises,u.ORDER)}const oe=QF((V,X)=>{const{X:J,Y:ve,Z:B}=V;if(a.eql(B,a.ONE))return{x:J,y:ve};const he=V.is0();X==null&&(X=he?a.ONE:a.inv(B));const ge=a.mul(J,X),W=a.mul(ve,X),_=a.mul(B,X);if(he)return{x:a.ZERO,y:a.ZERO};if(!a.eql(_,a.ONE))throw new Error("invZ was invalid");return{x:ge,y:W}}),de=QF(V=>{if(V.is0()){if(r.allowInfinityPoint&&!a.is0(V.Y))return;throw new Error("bad point: ZERO")}const{x:X,y:J}=V.toAffine();if(!a.isValid(X)||!a.isValid(J))throw new Error("bad point: x or y not field elements");if(!F(X,J))throw new Error("bad point: equation left != right");if(!V.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function ue(V,X,J,ve,B){return J=new T(a.mul(J.X,V),J.Y,J.Z),X=Qm(ve,X),J=Qm(B,J),X.add(J)}class T{constructor(X,J,ve){this.X=M("x",X),this.Y=M("y",J,!0),this.Z=M("z",ve),Object.freeze(this)}static CURVE(){return c}static fromAffine(X){const{x:J,y:ve}=X||{};if(!X||!a.isValid(J)||!a.isValid(ve))throw new Error("invalid affine point");if(X instanceof T)throw new Error("projective point not allowed");return a.is0(J)&&a.is0(ve)?T.ZERO:new T(J,ve,a.ONE)}static fromBytes(X){const J=T.fromAffine(O(du(X,void 0,"point")));return J.assertValidity(),J}static fromHex(X){return T.fromBytes(Ir("pointHex",X))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(X=8,J=!0){return z.createCache(this,X),J||this.multiply(Sm),this}assertValidity(){de(this)}hasEvenY(){const{y:X}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(X)}equals(X){re(X);const{X:J,Y:ve,Z:B}=this,{X:he,Y:ge,Z:W}=X,_=a.eql(a.mul(J,W),a.mul(he,B)),ie=a.eql(a.mul(ve,W),a.mul(ge,B));return _&&ie}negate(){return new T(this.X,a.neg(this.Y),this.Z)}double(){const{a:X,b:J}=c,ve=a.mul(J,Sm),{X:B,Y:he,Z:ge}=this;let W=a.ZERO,_=a.ZERO,ie=a.ZERO,le=a.mul(B,B),ee=a.mul(he,he),k=a.mul(ge,ge),H=a.mul(B,he);return H=a.add(H,H),ie=a.mul(B,ge),ie=a.add(ie,ie),W=a.mul(X,ie),_=a.mul(ve,k),_=a.add(W,_),W=a.sub(ee,_),_=a.add(ee,_),_=a.mul(W,_),W=a.mul(H,W),ie=a.mul(ve,ie),k=a.mul(X,k),H=a.sub(le,k),H=a.mul(X,H),H=a.add(H,ie),ie=a.add(le,le),le=a.add(ie,le),le=a.add(le,k),le=a.mul(le,H),_=a.add(_,le),k=a.mul(he,ge),k=a.add(k,k),le=a.mul(k,H),W=a.sub(W,le),ie=a.mul(k,ee),ie=a.add(ie,ie),ie=a.add(ie,ie),new T(W,_,ie)}add(X){re(X);const{X:J,Y:ve,Z:B}=this,{X:he,Y:ge,Z:W}=X;let _=a.ZERO,ie=a.ZERO,le=a.ZERO;const ee=c.a,k=a.mul(c.b,Sm);let H=a.mul(J,he),Q=a.mul(ve,ge),xe=a.mul(B,W),Ae=a.add(J,ve),L=a.add(he,ge);Ae=a.mul(Ae,L),L=a.add(H,Q),Ae=a.sub(Ae,L),L=a.add(J,B);let w=a.add(he,W);return L=a.mul(L,w),w=a.add(H,xe),L=a.sub(L,w),w=a.add(ve,B),_=a.add(ge,W),w=a.mul(w,_),_=a.add(Q,xe),w=a.sub(w,_),le=a.mul(ee,L),_=a.mul(k,xe),le=a.add(_,le),_=a.sub(Q,le),le=a.add(Q,le),ie=a.mul(_,le),Q=a.add(H,H),Q=a.add(Q,H),xe=a.mul(ee,xe),L=a.mul(k,L),Q=a.add(Q,xe),xe=a.sub(H,xe),xe=a.mul(ee,xe),L=a.add(L,xe),H=a.mul(Q,L),ie=a.add(ie,H),H=a.mul(w,L),_=a.mul(Ae,_),_=a.sub(_,H),H=a.mul(Ae,Q),le=a.mul(w,le),le=a.add(le,H),new T(_,ie,le)}subtract(X){return this.add(X.negate())}is0(){return this.equals(T.ZERO)}multiply(X){const{endo:J}=r;if(!u.isValidNot0(X))throw new Error("invalid scalar: out of range");let ve,B;const he=ge=>z.cached(this,ge,W=>Rv(T,W));if(J){const{k1neg:ge,k1:W,k2neg:_,k2:ie}=K(X),{p:le,f:ee}=he(W),{p:k,f:H}=he(ie);B=ee.add(H),ve=ue(J.beta,le,k,ge,_)}else{const{p:ge,f:W}=he(X);ve=ge,B=W}return Rv(T,[ve,B])[0]}multiplyUnsafe(X){const{endo:J}=r,ve=this;if(!u.isValid(X))throw new Error("invalid scalar: out of range");if(X===Ji||ve.is0())return T.ZERO;if(X===Ql)return ve;if(z.hasCache(this))return this.multiply(X);if(J){const{k1neg:B,k1:he,k2neg:ge,k2:W}=K(X),{p1:_,p2:ie}=l$(T,ve,he,W);return ue(J.beta,_,ie,B,ge)}else return z.unsafe(ve,X)}multiplyAndAddUnsafe(X,J,ve){const B=this.multiplyUnsafe(J).add(X.multiplyUnsafe(ve));return B.is0()?void 0:B}toAffine(X){return oe(this,X)}isTorsionFree(){const{isTorsionFree:X}=r;return f===Ql?!0:X?X(T,this):z.unsafe(this,h).is0()}clearCofactor(){const{clearCofactor:X}=r;return f===Ql?this:X?X(T,this):this.multiplyUnsafe(f)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}toBytes(X=!0){return Gm(X,"isCompressed"),this.assertValidity(),S(T,this,X)}toHex(X=!0){return Gl(this.toBytes(X))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(X=!0){return this.toBytes(X)}_setWindowSize(X){this.precompute(X)}static normalizeZ(X){return Rv(T,X)}static msm(X,J){return c$(T,u,X,J)}static fromPrivateKey(X){return T.BASE.multiply(ql(u,X))}}T.BASE=new T(c.Gx,c.Gy,a.ONE),T.ZERO=new T(a.ZERO,a.ONE,a.ZERO),T.Fp=a,T.Fn=u;const $=u.BITS,z=new u$(T,r.endo?Math.ceil($/2):$);return T.BASE.precompute(8),T}function y8(e){return Uint8Array.of(e?2:3)}function b8(e,r){return{secretKey:r.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*r.BYTES}}function g$(e,r={}){const{Fn:i}=e,a=r.randomBytes||K6,u=Object.assign(b8(e.Fp,i),{seed:c8(i.ORDER)});function c(S){try{return!!ql(i,S)}catch{return!1}}function f(S,O){const{publicKey:U,publicKeyUncompressed:F}=u;try{const N=S.length;return O===!0&&N!==U||O===!1&&N!==F?!1:!!e.fromBytes(S)}catch{return!1}}function h(S=a(u.seed)){return Qk(du(S,u.seed,"seed"),i.ORDER)}function m(S,O=!0){return e.BASE.multiply(ql(i,S)).toBytes(O)}function p(S){const O=h(S);return{secretKey:O,publicKey:m(O)}}function A(S){if(typeof S=="bigint")return!1;if(S instanceof e)return!0;const{secretKey:O,publicKey:U,publicKeyUncompressed:F}=u;if(i.allowedLengths||O===U)return;const N=Ir("key",S).length;return N===U||N===F}function v(S,O,U=!0){if(A(S)===!0)throw new Error("first arg must be private key");if(A(O)===!1)throw new Error("second arg must be public key");const F=ql(i,S);return e.fromHex(O).multiply(F).toBytes(U)}return Object.freeze({getPublicKey:m,getSharedSecret:v,keygen:p,Point:e,utils:{isValidSecretKey:c,isValidPublicKey:f,randomSecretKey:h,isValidPrivateKey:c,randomPrivateKey:h,normPrivateKeyToScalar:S=>ql(i,S),precompute(S=8,O=e.BASE){return O.precompute(S,!1)}},lengths:u})}function y$(e,r,i={}){V6(r),Zw(i,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const a=i.randomBytes||K6,u=i.hmac||((J,...ve)=>h8(r,J,Ja(...ve))),{Fp:c,Fn:f}=e,{ORDER:h,BITS:m}=f,{keygen:p,getPublicKey:A,getSharedSecret:v,utils:g,lengths:S}=g$(e,i),O={prehash:!1,lowS:typeof i.lowS=="boolean"?i.lowS:!1,format:void 0,extraEntropy:!1},U="compact";function F(J){const ve=h>>Ql;return J>ve}function N(J,ve){if(!f.isValidNot0(ve))throw new Error(`invalid signature ${J}: out of range 1..Point.Fn.ORDER`);return ve}function D(J,ve){gw(ve);const B=S.signature,he=ve==="compact"?B:ve==="recovered"?B+1:void 0;return du(J,he,`${ve} signature`)}class M{constructor(ve,B,he){this.r=N("r",ve),this.s=N("s",B),he!=null&&(this.recovery=he),Object.freeze(this)}static fromBytes(ve,B=U){D(ve,B);let he;if(B==="der"){const{r:ie,s:le}=Ki.toSig(du(ve));return new M(ie,le)}B==="recovered"&&(he=ve[0],B="compact",ve=ve.subarray(1));const ge=f.BYTES,W=ve.subarray(0,ge),_=ve.subarray(ge,ge*2);return new M(f.fromBytes(W),f.fromBytes(_),he)}static fromHex(ve,B){return this.fromBytes(Vm(ve),B)}addRecoveryBit(ve){return new M(this.r,this.s,ve)}recoverPublicKey(ve){const B=c.ORDER,{r:he,s:ge,recovery:W}=this;if(W==null||![0,1,2,3].includes(W))throw new Error("recovery id invalid");if(h*g8<B&&W>1)throw new Error("recovery id is ambiguous for h>1 curve");const ie=W===2||W===3?he+h:he;if(!c.isValid(ie))throw new Error("recovery id 2 or 3 invalid");const le=c.toBytes(ie),ee=e.fromBytes(Ja(y8((W&1)===0),le)),k=f.inv(ie),H=K(Ir("msgHash",ve)),Q=f.create(-H*k),xe=f.create(ge*k),Ae=e.BASE.multiplyUnsafe(Q).add(ee.multiplyUnsafe(xe));if(Ae.is0())throw new Error("point at infinify");return Ae.assertValidity(),Ae}hasHighS(){return F(this.s)}toBytes(ve=U){if(gw(ve),ve==="der")return Vm(Ki.hexFromSig(this));const B=f.toBytes(this.r),he=f.toBytes(this.s);if(ve==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Ja(Uint8Array.of(this.recovery),B,he)}return Ja(B,he)}toHex(ve){return Gl(this.toBytes(ve))}assertValidity(){}static fromCompact(ve){return M.fromBytes(Ir("sig",ve),"compact")}static fromDER(ve){return M.fromBytes(Ir("sig",ve),"der")}normalizeS(){return this.hasHighS()?new M(this.r,f.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Gl(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Gl(this.toBytes("compact"))}}const re=i.bits2int||function(ve){if(ve.length>8192)throw new Error("input is too large");const B=ug(ve),he=ve.length*8-m;return he>0?B>>BigInt(he):B},K=i.bits2int_modN||function(ve){return f.create(re(ve))},oe=nh(m);function de(J){return Pk("num < 2^"+m,J,Ji,oe),f.toBytes(J)}function ue(J,ve){return du(J,void 0,"message"),ve?du(r(J),void 0,"prehashed message"):J}function T(J,ve,B){if(["recovered","canonical"].some(Q=>Q in B))throw new Error("sign() legacy options not supported");const{lowS:he,prehash:ge,extraEntropy:W}=Dv(B,O);J=ue(J,ge);const _=K(J),ie=ql(f,ve),le=[de(ie),de(_)];if(W!=null&&W!==!1){const Q=W===!0?a(S.secretKey):W;le.push(Ir("extraEntropy",Q))}const ee=Ja(...le),k=_;function H(Q){const xe=re(Q);if(!f.isValidNot0(xe))return;const Ae=f.inv(xe),L=e.BASE.multiply(xe).toAffine(),w=f.create(L.x);if(w===Ji)return;const j=f.create(Ae*f.create(k+w*ie));if(j===Ji)return;let G=(L.x===w?0:2)|Number(L.y&Ql),te=j;return he&&F(j)&&(te=f.neg(j),G^=1),new M(w,te,G)}return{seed:ee,k2sig:H}}function $(J,ve,B={}){J=Ir("message",J);const{seed:he,k2sig:ge}=T(J,ve,B);return jk(r.outputLen,f.BYTES,u)(he,ge)}function z(J){let ve;const B=typeof J=="string"||ag(J),he=!B&&J!==null&&typeof J=="object"&&typeof J.r=="bigint"&&typeof J.s=="bigint";if(!B&&!he)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(he)ve=new M(J.r,J.s);else if(B){try{ve=M.fromBytes(Ir("sig",J),"der")}catch(ge){if(!(ge instanceof Ki.Err))throw ge}if(!ve)try{ve=M.fromBytes(Ir("sig",J),"compact")}catch{return!1}}return ve||!1}function V(J,ve,B,he={}){const{lowS:ge,prehash:W,format:_}=Dv(he,O);if(B=Ir("publicKey",B),ve=ue(Ir("message",ve),W),"strict"in he)throw new Error("options.strict was renamed to lowS");const ie=_===void 0?z(J):M.fromBytes(Ir("sig",J),_);if(ie===!1)return!1;try{const le=e.fromBytes(B);if(ge&&ie.hasHighS())return!1;const{r:ee,s:k}=ie,H=K(ve),Q=f.inv(k),xe=f.create(H*Q),Ae=f.create(ee*Q),L=e.BASE.multiplyUnsafe(xe).add(le.multiplyUnsafe(Ae));return L.is0()?!1:f.create(L.x)===ee}catch{return!1}}function X(J,ve,B={}){const{prehash:he}=Dv(B,O);return ve=ue(ve,he),M.fromBytes(J,"recovered").recoverPublicKey(ve).toBytes()}return Object.freeze({keygen:p,getPublicKey:A,getSharedSecret:v,utils:g,lengths:S,Point:e,sign:$,verify:V,recoverPublicKey:X,Signature:M,hash:r})}function b$(e){const r={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},i=e.Fp;let a=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(f=>Math.ceil(f/2)))):void 0;const u=rh(r.n,{BITS:e.nBitLength,allowedLengths:a,modFromBytes:e.wrapPrivateKey}),c={Fp:i,Fn:u,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:r,curveOpts:c}}function v$(e){const{CURVE:r,curveOpts:i}=b$(e),a={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:r,curveOpts:i,hash:e.hash,ecdsaOpts:a}}function A$(e,r){const i=r.Point;return Object.assign({},r,{ProjectivePoint:i,CURVE:Object.assign({},e,u8(i.Fn.ORDER,i.Fn.BITS))})}function x$(e){const{CURVE:r,curveOpts:i,hash:a,ecdsaOpts:u}=v$(e),c=m$(r,i),f=y$(c,a,u);return A$(e,f)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function E$(e,r){const i=a=>x$({...e,hash:a});return{...i(r),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ww={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},w$={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},tN=BigInt(2);function S$(e){const r=Ww.p,i=BigInt(3),a=BigInt(6),u=BigInt(11),c=BigInt(22),f=BigInt(23),h=BigInt(44),m=BigInt(88),p=e*e*e%r,A=p*p*e%r,v=mo(A,i,r)*A%r,g=mo(v,i,r)*A%r,S=mo(g,tN,r)*p%r,O=mo(S,u,r)*S%r,U=mo(O,c,r)*O%r,F=mo(U,h,r)*U%r,N=mo(F,m,r)*F%r,D=mo(N,h,r)*U%r,M=mo(D,i,r)*A%r,re=mo(M,f,r)*O%r,K=mo(re,a,r)*p%r,oe=mo(K,tN,r);if(!yw.eql(yw.sqr(oe),e))throw new Error("Cannot find square root");return oe}const yw=rh(Ww.p,{sqrt:S$}),oh=E$({...Ww,Fp:yw,lowS:!0,endo:w$},f8),C$=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:oh},Symbol.toStringTag,{value:"Module"})),v8="2.36.0";let nd={getDocsUrl:({docsBaseUrl:e,docsPath:r="",docsSlug:i})=>r?`${e??"https://viem.sh"}${r}${i?`#${i}`:""}`:void 0,version:`viem@${v8}`};class ke extends Error{constructor(r,i={}){var h;const a=(()=>{var m;return i.cause instanceof ke?i.cause.details:(m=i.cause)!=null&&m.message?i.cause.message:i.details})(),u=i.cause instanceof ke&&i.cause.docsPath||i.docsPath,c=(h=nd.getDocsUrl)==null?void 0:h.call(nd,{...i,docsPath:u}),f=[r||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...a?[`Details: ${a}`]:[],...nd.version?[`Version: ${nd.version}`]:[]].join(`
|
|
277
|
+
`);super(f,i.cause?{cause:i.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=a,this.docsPath=u,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=r,this.version=v8}walk(r){return A8(this,r)}}function A8(e,r){return r!=null&&r(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?A8(e.cause,r):r?null:e}class x8 extends ke{constructor({max:r,min:i,signed:a,size:u,value:c}){super(`Number "${c}" is not in safe ${u?`${u*8}-bit ${a?"signed":"unsigned"} `:""}integer range ${r?`(${i} to ${r})`:`(above ${i})`}`,{name:"IntegerOutOfRangeError"})}}class I$ extends ke{constructor(r){super(`Bytes value "${r}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class T$ extends ke{constructor({givenSize:r,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${r} bytes.`,{name:"SizeOverflowError"})}}function ra(e,{strict:r=!0}={}){return!e||typeof e!="string"?!1:r?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function nn(e){return ra(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function es(e,{dir:r="left"}={}){let i=typeof e=="string"?e.replace("0x",""):e,a=0;for(let u=0;u<i.length-1&&i[r==="left"?u:i.length-u-1].toString()==="0";u++)a++;return i=r==="left"?i.slice(a):i.slice(0,i.length-a),typeof e=="string"?(i.length===1&&r==="right"&&(i=`${i}0`),`0x${i.length%2===1?`0${i}`:i}`):i}class E8 extends ke{constructor({offset:r,position:i,size:a}){super(`Slice ${i==="start"?"starting":"ending"} at offset "${r}" is out-of-bounds (size: ${a}).`,{name:"SliceOffsetOutOfBoundsError"})}}class w8 extends ke{constructor({size:r,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} size (${r}) exceeds padding size (${i}).`,{name:"SizeExceedsPaddingSizeError"})}}class nN extends ke{constructor({size:r,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} is expected to be ${i} ${a} long, but is ${r} ${a} long.`,{name:"InvalidBytesLengthError"})}}function dc(e,{dir:r,size:i=32}={}){return typeof e=="string"?Wa(e,{dir:r,size:i}):R$(e,{dir:r,size:i})}function Wa(e,{dir:r,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new w8({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[r==="right"?"padEnd":"padStart"](i*2,"0")}`}function R$(e,{dir:r,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new w8({size:e.length,targetSize:i,type:"bytes"});const a=new Uint8Array(i);for(let u=0;u<i;u++){const c=r==="right";a[c?u:i-u-1]=e[c?u:e.length-u-1]}return a}const O$=Array.from({length:256},(e,r)=>r.toString(16).padStart(2,"0"));function li(e,r={}){return typeof e=="number"||typeof e=="bigint"?Qe(e,r):typeof e=="string"?tc(e,r):typeof e=="boolean"?S8(e,r):nr(e,r)}function S8(e,r={}){const i=`0x${Number(e)}`;return typeof r.size=="number"?(pi(i,{size:r.size}),dc(i,{size:r.size})):i}function nr(e,r={}){let i="";for(let u=0;u<e.length;u++)i+=O$[e[u]];const a=`0x${i}`;return typeof r.size=="number"?(pi(a,{size:r.size}),dc(a,{dir:"right",size:r.size})):a}function Qe(e,r={}){const{signed:i,size:a}=r,u=BigInt(e);let c;a?i?c=(1n<<BigInt(a)*8n-1n)-1n:c=2n**(BigInt(a)*8n)-1n:typeof e=="number"&&(c=BigInt(Number.MAX_SAFE_INTEGER));const f=typeof c=="bigint"&&i?-c-1n:0;if(c&&u>c||u<f){const m=typeof e=="bigint"?"n":"";throw new x8({max:c?`${c}${m}`:void 0,min:`${f}${m}`,signed:i,size:a,value:`${e}${m}`})}const h=`0x${(i&&u<0?(1n<<BigInt(a*8))+BigInt(u):u).toString(16)}`;return a?dc(h,{size:a}):h}const F$=new TextEncoder;function tc(e,r={}){const i=F$.encode(e);return nr(i,r)}const N$=new TextEncoder;function eS(e,r={}){return typeof e=="number"||typeof e=="bigint"?B$(e,r):typeof e=="boolean"?D$(e,r):ra(e)?_o(e,r):C8(e,r)}function D$(e,r={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof r.size=="number"?(pi(i,{size:r.size}),dc(i,{size:r.size})):i}const Gi={zero:48,nine:57,A:65,F:70,a:97,f:102};function rN(e){if(e>=Gi.zero&&e<=Gi.nine)return e-Gi.zero;if(e>=Gi.A&&e<=Gi.F)return e-(Gi.A-10);if(e>=Gi.a&&e<=Gi.f)return e-(Gi.a-10)}function _o(e,r={}){let i=e;r.size&&(pi(i,{size:r.size}),i=dc(i,{dir:"right",size:r.size}));let a=i.slice(2);a.length%2&&(a=`0${a}`);const u=a.length/2,c=new Uint8Array(u);for(let f=0,h=0;f<u;f++){const m=rN(a.charCodeAt(h++)),p=rN(a.charCodeAt(h++));if(m===void 0||p===void 0)throw new ke(`Invalid byte sequence ("${a[h-2]}${a[h-1]}" in "${a}").`);c[f]=m*16+p}return c}function B$(e,r){const i=Qe(e,r);return _o(i)}function C8(e,r={}){const i=N$.encode(e);return typeof r.size=="number"?(pi(i,{size:r.size}),dc(i,{dir:"right",size:r.size})):i}function pi(e,{size:r}){if(nn(e)>r)throw new T$({givenSize:nn(e),maxSize:r})}function ci(e,r={}){const{signed:i}=r;r.size&&pi(e,{size:r.size});const a=BigInt(e);if(!i)return a;const u=(e.length-2)/2,c=(1n<<BigInt(u)*8n-1n)-1n;return a<=c?a:a-BigInt(`0x${"f".padStart(u*2,"f")}`)-1n}function oa(e,r={}){return Number(ci(e,r))}async function I8(e,{address:r,blockTag:i="latest",blockNumber:a}){const u=await e.request({method:"eth_getTransactionCount",params:[r,typeof a=="bigint"?Qe(a):i]},{dedupe:!!a});return oa(u)}class lg extends Map{constructor(r){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=r}get(r){const i=super.get(r);return super.has(r)&&i!==void 0&&(this.delete(r),super.set(r,i)),i}set(r,i){if(super.set(r,i),this.maxSize&&this.size>this.maxSize){const a=this.keys().next().value;a&&this.delete(a)}return this}}function U$({r:e,s:r,to:i="hex",v:a,yParity:u}){const c=(()=>{if(u===0||u===1)return u;if(a&&(a===27n||a===28n||a>=35n))return a%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),f=`0x${new oh.Signature(ci(e),ci(r)).toCompactHex()}${c===0?"1b":"1c"}`;return i==="hex"?f:_o(f)}function T8(){return li(oh.utils.randomPrivateKey())}class gr extends ke{constructor({address:r}){super(`Address "${r}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}const _$=BigInt(0),rd=BigInt(1),M$=BigInt(2),P$=BigInt(7),j$=BigInt(256),L$=BigInt(113),R8=[],O8=[],F8=[];for(let e=0,r=rd,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],R8.push(2*(5*a+i)),O8.push((e+1)*(e+2)/2%64);let u=_$;for(let c=0;c<7;c++)r=(r<<rd^(r>>P$)*L$)%j$,r&M$&&(u^=rd<<(rd<<BigInt(c))-rd);F8.push(u)}const N8=Wk(F8,!0),k$=N8[0],$$=N8[1],oN=(e,r,i)=>i>32?n$(e,r,i):e$(e,r,i),iN=(e,r,i)=>i>32?r$(e,r,i):t$(e,r,i);function q$(e,r=24){const i=new Uint32Array(10);for(let a=24-r;a<24;a++){for(let f=0;f<10;f++)i[f]=e[f]^e[f+10]^e[f+20]^e[f+30]^e[f+40];for(let f=0;f<10;f+=2){const h=(f+8)%10,m=(f+2)%10,p=i[m],A=i[m+1],v=oN(p,A,1)^i[h],g=iN(p,A,1)^i[h+1];for(let S=0;S<50;S+=10)e[f+S]^=v,e[f+S+1]^=g}let u=e[2],c=e[3];for(let f=0;f<24;f++){const h=O8[f],m=oN(u,c,h),p=iN(u,c,h),A=R8[f];u=e[A],c=e[A+1],e[A]=m,e[A+1]=p}for(let f=0;f<50;f+=10){for(let h=0;h<10;h++)i[h]=e[f+h];for(let h=0;h<10;h++)e[f+h]^=~i[(h+2)%10]&i[(h+4)%10]}e[0]^=k$[a],e[1]^=$$[a]}Wl(i)}class tS extends Yw{constructor(r,i,a,u=!1,c=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=r,this.suffix=i,this.outputLen=a,this.enableXOF=u,this.rounds=c,wd(a),!(0<r&&r<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=Fk(this.state)}clone(){return this._cloneInto()}keccak(){VF(this.state32),q$(this.state32,this.rounds),VF(this.state32),this.posOut=0,this.pos=0}update(r){Jl(this),r=sg(r),na(r);const{blockLen:i,state:a}=this,u=r.length;for(let c=0;c<u;){const f=Math.min(i-this.pos,u-c);for(let h=0;h<f;h++)a[this.pos++]^=r[c++];this.pos===i&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:r,suffix:i,pos:a,blockLen:u}=this;r[a]^=i,(i&128)!==0&&a===u-1&&this.keccak(),r[u-1]^=128,this.keccak()}writeInto(r){Jl(this,!1),na(r),this.finish();const i=this.state,{blockLen:a}=this;for(let u=0,c=r.length;u<c;){this.posOut>=a&&this.keccak();const f=Math.min(a-this.posOut,c-u);r.set(i.subarray(this.posOut,this.posOut+f),u),this.posOut+=f,u+=f}return r}xofInto(r){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(r)}xof(r){return wd(r),this.xofInto(new Uint8Array(r))}digestInto(r){if(G6(r,this),this.finished)throw new Error("digest() was already called");return this.writeInto(r),this.destroy(),r}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Wl(this.state)}_cloneInto(r){const{blockLen:i,suffix:a,outputLen:u,rounds:c,enableXOF:f}=this;return r||(r=new tS(i,a,u,f,c)),r.state32.set(this.state32),r.pos=this.pos,r.posOut=this.posOut,r.finished=this.finished,r.rounds=c,r.suffix=a,r.outputLen=u,r.enableXOF=f,r.destroyed=this.destroyed,r}}const H$=(e,r,i)=>Y6(()=>new tS(r,e,i)),z$=H$(1,136,256/8);function Vr(e,r){const i=r||"hex",a=z$(ra(e,{strict:!1})?eS(e):e);return i==="bytes"?a:li(a)}const Bv=new lg(8192);function ih(e,r){if(Bv.has(`${e}.${r}`))return Bv.get(`${e}.${r}`);const i=e.substring(2).toLowerCase(),a=Vr(C8(i),"bytes"),u=i.split("");for(let f=0;f<40;f+=2)a[f>>1]>>4>=8&&u[f]&&(u[f]=u[f].toUpperCase()),(a[f>>1]&15)>=8&&u[f+1]&&(u[f+1]=u[f+1].toUpperCase());const c=`0x${u.join("")}`;return Bv.set(`${e}.${r}`,c),c}function V$(e,r){if(!Rn(e,{strict:!1}))throw new gr({address:e});return ih(e,r)}const G$=/^0x[a-fA-F0-9]{40}$/,Uv=new lg(8192);function Rn(e,r){const{strict:i=!0}=r??{},a=`${e}.${i}`;if(Uv.has(a))return Uv.get(a);const u=G$.test(e)?e.toLowerCase()===e?!0:i?ih(e)===e:!0:!1;return Uv.set(a,u),u}function Q$(e){if(typeof e=="string"){if(!Rn(e,{strict:!1}))throw new gr({address:e});return{address:e,type:"json-rpc"}}if(!Rn(e.address,{strict:!1}))throw new gr({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}function D8(e){const r=Vr(`0x${e.substring(4)}`).substring(26);return ih(`0x${r}`)}let _v=!1;async function ah({hash:e,privateKey:r,to:i="object"}){const{r:a,s:u,recovery:c}=oh.sign(e.slice(2),r.slice(2),{lowS:!0,extraEntropy:ra(_v,{strict:!1})?_o(_v):_v}),f={r:Qe(a,{size:32}),s:Qe(u,{size:32}),v:c?28n:27n,yParity:c};return i==="bytes"||i==="hex"?U$({...f,to:i}):f}function fi(e){return typeof e[0]=="string"?rs(e):Y$(e)}function Y$(e){let r=0;for(const u of e)r+=u.length;const i=new Uint8Array(r);let a=0;for(const u of e)i.set(u,a),a+=u.length;return i}function rs(e){return`0x${e.reduce((r,i)=>r+i.replace("0x",""),"")}`}class aN extends ke{constructor({offset:r}){super(`Offset \`${r}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class K$ extends ke{constructor({length:r,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${r}\`).`,{name:"PositionOutOfBoundsError"})}}class X$ extends ke{constructor({count:r,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${r}\`).`,{name:"RecursiveReadLimitExceededError"})}}const Z$={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 X$({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new K$({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new aN({offset:e});const r=this.position-e;this.assertPosition(r),this.position=r},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new aN({offset:e});const r=this.position+e;this.assertPosition(r),this.position=r},inspectByte(e){const r=e??this.position;return this.assertPosition(r),this.bytes[r]},inspectBytes(e,r){const i=r??this.position;return this.assertPosition(i+e-1),this.bytes.subarray(i,i+e)},inspectUint8(e){const r=e??this.position;return this.assertPosition(r),this.bytes[r]},inspectUint16(e){const r=e??this.position;return this.assertPosition(r+1),this.dataView.getUint16(r)},inspectUint24(e){const r=e??this.position;return this.assertPosition(r+2),(this.dataView.getUint16(r)<<8)+this.dataView.getUint8(r+2)},inspectUint32(e){const r=e??this.position;return this.assertPosition(r+3),this.dataView.getUint32(r)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,r){this.assertReadLimit(),this._touch();const i=this.inspectBytes(e);return this.position+=r??e,i},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const r=this.position;return this.assertPosition(e),this.position=e,()=>this.position=r},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function nS(e,{recursiveReadLimit:r=8192}={}){const i=Object.create(Z$);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=r,i}function bu(e,r="hex"){const i=B8(e),a=nS(new Uint8Array(i.length));return i.encode(a),r==="hex"?nr(a.bytes):a.bytes}function B8(e){return Array.isArray(e)?J$(e.map(r=>B8(r))):W$(e)}function J$(e){const r=e.reduce((u,c)=>u+c.length,0),i=U8(r);return{length:r<=55?1+r:1+i+r,encode(u){r<=55?u.pushByte(192+r):(u.pushByte(247+i),i===1?u.pushUint8(r):i===2?u.pushUint16(r):i===3?u.pushUint24(r):u.pushUint32(r));for(const{encode:c}of e)c(u)}}}function W$(e){const r=typeof e=="string"?_o(e):e,i=U8(r.length);return{length:r.length===1&&r[0]<128?1:r.length<=55?1+r.length:1+i+r.length,encode(u){r.length===1&&r[0]<128?u.pushBytes(r):r.length<=55?(u.pushByte(128+r.length),u.pushBytes(r)):(u.pushByte(183+i),i===1?u.pushUint8(r.length):i===2?u.pushUint16(r.length):i===3?u.pushUint24(r.length):u.pushUint32(r.length),u.pushBytes(r))}}}function U8(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ke("Length is too large.")}function _8(e){const{chainId:r,nonce:i,to:a}=e,u=e.contractAddress??e.address,c=Vr(rs(["0x05",bu([r?Qe(r):"0x",u,i?Qe(i):"0x"])]));return a==="bytes"?_o(c):c}async function eq(e){const{chainId:r,nonce:i,privateKey:a,to:u="object"}=e,c=e.contractAddress??e.address,f=await ah({hash:_8({address:c,chainId:r,nonce:i}),privateKey:a,to:u});return u==="object"?{address:c,chainId:r,nonce:i,...f}:f}const tq=`Ethereum Signed Message:
|
|
278
|
+
`;function nq(e){const r=typeof e=="string"?tc(e):typeof e.raw=="string"?e.raw:nr(e.raw),i=tc(`${tq}${nn(r)}`);return fi([i,r])}function rq(e,r){return Vr(nq(e),r)}async function oq({message:e,privateKey:r}){return await ah({hash:rq(e),privateKey:r,to:"hex"})}const iq={gwei:9,wei:18},aq={ether:-9,wei:9};function M8(e,r){let i=e.toString();const a=i.startsWith("-");a&&(i=i.slice(1)),i=i.padStart(r,"0");let[u,c]=[i.slice(0,i.length-r),i.slice(i.length-r)];return c=c.replace(/(0+)$/,""),`${a?"-":""}${u||"0"}${c?`.${c}`:""}`}function P8(e,r="wei"){return M8(e,iq[r])}function Bo(e,r="wei"){return M8(e,aq[r])}function cg(e){const r=Object.entries(e).map(([a,u])=>u===void 0||u===!1?null:[a,u]).filter(Boolean),i=r.reduce((a,[u])=>Math.max(a,u.length),0);return r.map(([a,u])=>` ${`${a}:`.padEnd(i+1)} ${u}`).join(`
|
|
279
|
+
`)}class sq extends ke{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
280
|
+
`),{name:"FeeConflictError"})}}class uq extends ke{constructor({v:r}){super(`Invalid \`v\` value "${r}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class lq extends ke{constructor({transaction:r}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",cg(r),"}","","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"})}}class cq extends ke{constructor({storageKey:r}){super(`Size for storage key "${r}" is invalid. Expected 32 bytes. Got ${Math.floor((r.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class fq extends ke{constructor(r,{account:i,docsPath:a,chain:u,data:c,gas:f,gasPrice:h,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:A,to:v,value:g}){var O;const S=cg({chain:u&&`${u==null?void 0:u.name} (id: ${u==null?void 0:u.id})`,from:i==null?void 0:i.address,to:v,value:typeof g<"u"&&`${P8(g)} ${((O=u==null?void 0:u.nativeCurrency)==null?void 0:O.symbol)||"ETH"}`,data:c,gas:f,gasPrice:typeof h<"u"&&`${Bo(h)} gwei`,maxFeePerGas:typeof m<"u"&&`${Bo(m)} gwei`,maxPriorityFeePerGas:typeof p<"u"&&`${Bo(p)} gwei`,nonce:A});super(r.shortMessage,{cause:r,docsPath:a,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],"Request Arguments:",S].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=r}}function dq(e){if(!e||e.length===0)return[];const r=[];for(const i of e){const{chainId:a,nonce:u,...c}=i,f=i.address;r.push([a?li(a):"0x",f,u?li(u):"0x",...sh({},c)])}return r}function rS(e){const{kzg:r}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(c=>_o(c)):e.blobs,u=[];for(const c of a)u.push(Uint8Array.from(r.blobToKzgCommitment(c)));return i==="bytes"?u:u.map(c=>nr(c))}function oS(e){const{kzg:r}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(f=>_o(f)):e.blobs,u=typeof e.commitments[0]=="string"?e.commitments.map(f=>_o(f)):e.commitments,c=[];for(let f=0;f<a.length;f++){const h=a[f],m=u[f];c.push(Uint8Array.from(r.computeBlobKzgProof(h,m)))}return i==="bytes"?c:c.map(f=>nr(f))}const hq=f8;function pq(e,r){return hq(ra(e,{strict:!1})?eS(e):e)}function mq(e){const{commitment:r,version:i=1}=e,a=e.to??(typeof r=="string"?"hex":"bytes"),u=pq(r);return u.set([i],0),a==="bytes"?u:nr(u)}function j8(e){const{commitments:r,version:i}=e,a=e.to??(typeof r[0]=="string"?"hex":"bytes"),u=[];for(const c of r)u.push(mq({commitment:c,to:a,version:i}));return u}const sN=6,L8=32,iS=4096,k8=L8*iS,uN=k8*sN-1-1*iS*sN,$8=1;class gq extends ke{constructor({maxSize:r,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${r} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class q8 extends ke{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class yq extends ke{constructor({hash:r,size:i}){super(`Versioned hash "${r}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class bq extends ke{constructor({hash:r,version:i}){super(`Versioned hash "${r}" version is invalid.`,{metaMessages:[`Expected: ${$8}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function vq(e){const r=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?_o(e.data):e.data,a=nn(i);if(!a)throw new q8;if(a>uN)throw new gq({maxSize:uN,size:a});const u=[];let c=!0,f=0;for(;c;){const h=nS(new Uint8Array(k8));let m=0;for(;m<iS;){const p=i.slice(f,f+(L8-1));if(h.pushByte(0),h.pushBytes(p),p.length<31){h.pushByte(128),c=!1;break}m++,f+=31}u.push(h)}return r==="bytes"?u.map(h=>h.bytes):u.map(h=>nr(h.bytes))}function H8(e){const{data:r,kzg:i,to:a}=e,u=e.blobs??vq({data:r,to:a}),c=e.commitments??rS({blobs:u,kzg:i,to:a}),f=e.proofs??oS({blobs:u,commitments:c,kzg:i,to:a}),h=[];for(let m=0;m<u.length;m++)h.push({blob:u[m],commitment:c[m],proof:f[m]});return h}const fg=2n**256n-1n;class Aq extends ke{constructor({chain:r,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${r.id} – ${r.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${r.id} – ${r.name}`],name:"ChainMismatchError"})}}class xq extends ke{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(`
|
|
281
|
+
`),{name:"ChainNotFoundError"})}}class dg extends ke{constructor({chainId:r}){super(typeof r=="number"?`Chain ID "${r}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Hl extends ke{constructor({cause:r,message:i}={}){var u;const a=(u=i==null?void 0:i.replace("execution reverted: ",""))==null?void 0:u.replace("execution reverted","");super(`Execution reverted ${a?`with reason: ${a}`:"for an unknown reason"}.`,{cause:r,name:"ExecutionRevertedError"})}}Object.defineProperty(Hl,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Hl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class vu extends ke{constructor({cause:r,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Bo(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(vu,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class bw extends ke{constructor({cause:r,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Bo(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:r,name:"FeeCapTooLowError"})}}Object.defineProperty(bw,"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/});class vw extends ke{constructor({cause:r,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:r,name:"NonceTooHighError"})}}Object.defineProperty(vw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Aw extends ke{constructor({cause:r,nonce:i}={}){super([`Nonce provided for the transaction ${i?`(${i}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
282
|
+
`),{cause:r,name:"NonceTooLowError"})}}Object.defineProperty(Aw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class xw extends ke{constructor({cause:r,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:r,name:"NonceMaxValueError"})}}Object.defineProperty(xw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ew extends ke{constructor({cause:r}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
283
|
+
`),{cause:r,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(Ew,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class ww extends ke{constructor({cause:r,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:r,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(ww,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Sw extends ke{constructor({cause:r,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:r,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Sw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Cw extends ke{constructor({cause:r}){super("The transaction type is not supported for this chain.",{cause:r,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Cw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Sd extends ke{constructor({cause:r,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${Bo(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${Bo(a)} gwei`:""}).`].join(`
|
|
284
|
+
`),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(Sd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class aS extends ke{constructor({cause:r}){super(`An error occurred while executing: ${r==null?void 0:r.shortMessage}`,{cause:r,name:"UnknownNodeError"})}}function Cd(e,r,i,{strict:a}={}){return ra(e,{strict:!1})?Iw(e,r,i,{strict:a}):G8(e,r,i,{strict:a})}function z8(e,r){if(typeof r=="number"&&r>0&&r>nn(e)-1)throw new E8({offset:r,position:"start",size:nn(e)})}function V8(e,r,i){if(typeof r=="number"&&typeof i=="number"&&nn(e)!==i-r)throw new E8({offset:i,position:"end",size:nn(e)})}function G8(e,r,i,{strict:a}={}){z8(e,r);const u=e.slice(r,i);return a&&V8(u,r,i),u}function Iw(e,r,i,{strict:a}={}){z8(e,r);const u=`0x${e.replace("0x","").slice((r??0)*2,(i??e.length)*2)}`;return a&&V8(u,r,i),u}function Eq(e){const{authorizationList:r}=e;if(r)for(const i of r){const{chainId:a}=i,u=i.address;if(!Rn(u))throw new gr({address:u});if(a<0)throw new dg({chainId:a})}sS(e)}function wq(e){const{blobVersionedHashes:r}=e;if(r){if(r.length===0)throw new q8;for(const i of r){const a=nn(i),u=oa(Cd(i,0,1));if(a!==32)throw new yq({hash:i,size:a});if(u!==$8)throw new bq({hash:i,version:u})}}sS(e)}function sS(e){const{chainId:r,maxPriorityFeePerGas:i,maxFeePerGas:a,to:u}=e;if(r<=0)throw new dg({chainId:r});if(u&&!Rn(u))throw new gr({address:u});if(a&&a>fg)throw new vu({maxFeePerGas:a});if(i&&a&&i>a)throw new Sd({maxFeePerGas:a,maxPriorityFeePerGas:i})}function Sq(e){const{chainId:r,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:c}=e;if(r<=0)throw new dg({chainId:r});if(c&&!Rn(c))throw new gr({address:c});if(i||u)throw new ke("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>fg)throw new vu({maxFeePerGas:a})}function Cq(e){const{chainId:r,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:c}=e;if(c&&!Rn(c))throw new gr({address:c});if(typeof r<"u"&&r<=0)throw new dg({chainId:r});if(i||u)throw new ke("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>fg)throw new vu({maxFeePerGas:a})}function Q8(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new lq({transaction:e})}function hg(e){if(!e||e.length===0)return[];const r=[];for(let i=0;i<e.length;i++){const{address:a,storageKeys:u}=e[i];for(let c=0;c<u.length;c++)if(u[c].length-2!==64)throw new cq({storageKey:u[c]});if(!Rn(a,{strict:!1}))throw new gr({address:a});r.push([a,u])}return r}function Iq(e,r){const i=Q8(e);return i==="eip1559"?Oq(e,r):i==="eip2930"?Fq(e,r):i==="eip4844"?Rq(e,r):i==="eip7702"?Tq(e,r):Nq(e,r)}function Tq(e,r){const{authorizationList:i,chainId:a,gas:u,nonce:c,to:f,value:h,maxFeePerGas:m,maxPriorityFeePerGas:p,accessList:A,data:v}=e;Eq(e);const g=hg(A),S=dq(i);return rs(["0x04",bu([Qe(a),c?Qe(c):"0x",p?Qe(p):"0x",m?Qe(m):"0x",u?Qe(u):"0x",f??"0x",h?Qe(h):"0x",v??"0x",g,S,...sh(e,r)])])}function Rq(e,r){const{chainId:i,gas:a,nonce:u,to:c,value:f,maxFeePerBlobGas:h,maxFeePerGas:m,maxPriorityFeePerGas:p,accessList:A,data:v}=e;wq(e);let g=e.blobVersionedHashes,S=e.sidecars;if(e.blobs&&(typeof g>"u"||typeof S>"u")){const M=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(oe=>nr(oe)),re=e.kzg,K=rS({blobs:M,kzg:re});if(typeof g>"u"&&(g=j8({commitments:K})),typeof S>"u"){const oe=oS({blobs:M,commitments:K,kzg:re});S=H8({blobs:M,commitments:K,proofs:oe})}}const O=hg(A),U=[Qe(i),u?Qe(u):"0x",p?Qe(p):"0x",m?Qe(m):"0x",a?Qe(a):"0x",c??"0x",f?Qe(f):"0x",v??"0x",O,h?Qe(h):"0x",g??[],...sh(e,r)],F=[],N=[],D=[];if(S)for(let M=0;M<S.length;M++){const{blob:re,commitment:K,proof:oe}=S[M];F.push(re),N.push(K),D.push(oe)}return rs(["0x03",bu(S?[U,F,N,D]:U)])}function Oq(e,r){const{chainId:i,gas:a,nonce:u,to:c,value:f,maxFeePerGas:h,maxPriorityFeePerGas:m,accessList:p,data:A}=e;sS(e);const v=hg(p),g=[Qe(i),u?Qe(u):"0x",m?Qe(m):"0x",h?Qe(h):"0x",a?Qe(a):"0x",c??"0x",f?Qe(f):"0x",A??"0x",v,...sh(e,r)];return rs(["0x02",bu(g)])}function Fq(e,r){const{chainId:i,gas:a,data:u,nonce:c,to:f,value:h,accessList:m,gasPrice:p}=e;Sq(e);const A=hg(m),v=[Qe(i),c?Qe(c):"0x",p?Qe(p):"0x",a?Qe(a):"0x",f??"0x",h?Qe(h):"0x",u??"0x",A,...sh(e,r)];return rs(["0x01",bu(v)])}function Nq(e,r){const{chainId:i=0,gas:a,data:u,nonce:c,to:f,value:h,gasPrice:m}=e;Cq(e);let p=[c?Qe(c):"0x",m?Qe(m):"0x",a?Qe(a):"0x",f??"0x",h?Qe(h):"0x",u??"0x"];if(r){const A=(()=>{if(r.v>=35n)return(r.v-35n)/2n>0?r.v:27n+(r.v===35n?0n:1n);if(i>0)return BigInt(i*2)+BigInt(35n+r.v-27n);const S=27n+(r.v===27n?0n:1n);if(r.v!==S)throw new uq({v:r.v});return S})(),v=es(r.r),g=es(r.s);p=[...p,Qe(A),v==="0x00"?"0x":v,g==="0x00"?"0x":g]}else i>0&&(p=[...p,Qe(i),"0x","0x"]);return bu(p)}function sh(e,r){const i=r??e,{v:a,yParity:u}=i;if(typeof i.r>"u")return[];if(typeof i.s>"u")return[];if(typeof a>"u"&&typeof u>"u")return[];const c=es(i.r),f=es(i.s);return[typeof u=="number"?u?Qe(1):"0x":a===0n?"0x":a===1n?Qe(1):a===27n?"0x":Qe(1),c==="0x00"?"0x":c,f==="0x00"?"0x":f]}async function Dq(e){const{privateKey:r,transaction:i,serializer:a=Iq}=e,u=i.type==="eip4844"?{...i,sidecars:!1}:i,c=await ah({hash:Vr(a(u)),privateKey:r});return a(i,c)}function nc(e,{includeName:r=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new zq(e.type);return`${e.name}(${uS(e.inputs,{includeName:r})})`}function uS(e,{includeName:r=!1}={}){return e?e.map(i=>Bq(i,{includeName:r})).join(r?", ":","):""}function Bq(e,{includeName:r}){return e.type.startsWith("tuple")?`(${uS(e.components,{includeName:r})})${e.type.slice(5)}`:e.type+(r&&e.name?` ${e.name}`:"")}class Uq extends ke{constructor({docsPath:r}){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(`
|
|
285
|
+
`),{docsPath:r,name:"AbiConstructorNotFoundError"})}}class lN extends ke{constructor({docsPath:r}){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(`
|
|
286
|
+
`),{docsPath:r,name:"AbiConstructorParamsNotFoundError"})}}class _q extends ke{constructor({data:r,params:i,size:a}){super([`Data size of ${a} bytes is too small for given parameters.`].join(`
|
|
287
|
+
`),{metaMessages:[`Params: (${uS(i,{includeName:!0})})`,`Data: ${r} (${a} 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=r,this.params=i,this.size=a}}class lS extends ke{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class Mq extends ke{constructor({expectedLength:r,givenLength:i,type:a}){super([`ABI encoding array length mismatch for type ${a}.`,`Expected length: ${r}`,`Given length: ${i}`].join(`
|
|
288
|
+
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class Pq extends ke{constructor({expectedSize:r,value:i}){super(`Size of bytes "${i}" (bytes${nn(i)}) does not match expected size (bytes${r}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class jq extends ke{constructor({expectedLength:r,givenLength:i}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${r}`,`Given length (values): ${i}`].join(`
|
|
289
|
+
`),{name:"AbiEncodingLengthMismatchError"})}}class Y8 extends ke{constructor(r,{docsPath:i}){super([`Encoded error signature "${r}" 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://openchain.xyz/signatures?query=${r}.`].join(`
|
|
290
|
+
`),{docsPath:i,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=r}}class cN extends ke{constructor(r,{docsPath:i}={}){super([`Function ${r?`"${r}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
291
|
+
`),{docsPath:i,name:"AbiFunctionNotFoundError"})}}class Lq extends ke{constructor(r,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${r.type}\` in \`${nc(r.abiItem)}\`, and`,`\`${i.type}\` in \`${nc(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class kq extends ke{constructor({expectedSize:r,givenSize:i}){super(`Expected bytes${r}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class $q extends ke{constructor(r,{docsPath:i}){super([`Type "${r}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
292
|
+
`),{docsPath:i,name:"InvalidAbiEncodingType"})}}class qq extends ke{constructor(r,{docsPath:i}){super([`Type "${r}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
293
|
+
`),{docsPath:i,name:"InvalidAbiDecodingType"})}}class Hq extends ke{constructor(r){super([`Value "${r}" is not a valid array.`].join(`
|
|
294
|
+
`),{name:"InvalidArrayError"})}}class zq extends ke{constructor(r){super([`"${r}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
295
|
+
`),{name:"InvalidDefinitionTypeError"})}}const Vq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,K8=/^(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 pg(e,r){if(e.length!==r.length)throw new jq({expectedLength:e.length,givenLength:r.length});const i=Gq({params:e,values:r}),a=fS(i);return a.length===0?"0x":a}function Gq({params:e,values:r}){const i=[];for(let a=0;a<e.length;a++)i.push(cS({param:e[a],value:r[a]}));return i}function cS({param:e,value:r}){const i=dS(e.type);if(i){const[a,u]=i;return Yq(r,{length:a,param:{...e,type:u}})}if(e.type==="tuple")return Wq(r,{param:e});if(e.type==="address")return Qq(r);if(e.type==="bool")return Xq(r);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,u="256"]=K8.exec(e.type)??[];return Zq(r,{signed:a,size:Number(u)})}if(e.type.startsWith("bytes"))return Kq(r,{param:e});if(e.type==="string")return Jq(r);throw new $q(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function fS(e){let r=0;for(let c=0;c<e.length;c++){const{dynamic:f,encoded:h}=e[c];f?r+=32:r+=nn(h)}const i=[],a=[];let u=0;for(let c=0;c<e.length;c++){const{dynamic:f,encoded:h}=e[c];f?(i.push(Qe(r+u,{size:32})),a.push(h),u+=nn(h)):i.push(h)}return fi([...i,...a])}function Qq(e){if(!Rn(e))throw new gr({address:e});return{dynamic:!1,encoded:Wa(e.toLowerCase())}}function Yq(e,{length:r,param:i}){const a=r===null;if(!Array.isArray(e))throw new Hq(e);if(!a&&e.length!==r)throw new Mq({expectedLength:r,givenLength:e.length,type:`${i.type}[${r}]`});let u=!1;const c=[];for(let f=0;f<e.length;f++){const h=cS({param:i,value:e[f]});h.dynamic&&(u=!0),c.push(h)}if(a||u){const f=fS(c);if(a){const h=Qe(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?fi([h,f]):h}}if(u)return{dynamic:!0,encoded:f}}return{dynamic:!1,encoded:fi(c.map(({encoded:f})=>f))}}function Kq(e,{param:r}){const[,i]=r.type.split("bytes"),a=nn(e);if(!i){let u=e;return a%32!==0&&(u=Wa(u,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:fi([Wa(Qe(a,{size:32})),u])}}if(a!==Number.parseInt(i,10))throw new Pq({expectedSize:Number.parseInt(i,10),value:e});return{dynamic:!1,encoded:Wa(e,{dir:"right"})}}function Xq(e){if(typeof e!="boolean")throw new ke(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Wa(S8(e))}}function Zq(e,{signed:r,size:i=256}){if(typeof i=="number"){const a=2n**(BigInt(i)-(r?1n:0n))-1n,u=r?-a-1n:0n;if(e>a||e<u)throw new x8({max:a.toString(),min:u.toString(),signed:r,size:i/8,value:e.toString()})}return{dynamic:!1,encoded:Qe(e,{size:32,signed:r})}}function Jq(e){const r=tc(e),i=Math.ceil(nn(r)/32),a=[];for(let u=0;u<i;u++)a.push(Wa(Cd(r,u*32,(u+1)*32),{dir:"right"}));return{dynamic:!0,encoded:fi([Wa(Qe(nn(r),{size:32})),...a])}}function Wq(e,{param:r}){let i=!1;const a=[];for(let u=0;u<r.components.length;u++){const c=r.components[u],f=Array.isArray(e)?u:c.name,h=cS({param:c,value:e[f]});a.push(h),h.dynamic&&(i=!0)}return{dynamic:i,encoded:i?fS(a):fi(a.map(({encoded:u})=>u))}}function dS(e){const r=e.match(/^(.*)\[(\d+)?\]$/);return r?[r[2]?Number(r[2]):null,r[1]]:void 0}const Uo=(e,r,i)=>JSON.stringify(e,(a,u)=>typeof u=="bigint"?u.toString():u,i);class e7 extends ke{constructor({domain:r}){super(`Invalid domain "${Uo(r)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class t7 extends ke{constructor({primaryType:r,types:i}){super(`Invalid primary type \`${r}\` must be one of \`${JSON.stringify(Object.keys(i))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class n7 extends ke{constructor({type:r}){super(`Struct type "${r}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function r7(e){const{domain:r,message:i,primaryType:a,types:u}=e,c=(m,p)=>{const A={...p};for(const v of m){const{name:g,type:S}=v;S==="address"&&(A[g]=A[g].toLowerCase())}return A},f=u.EIP712Domain?r?c(u.EIP712Domain,r):{}:{},h=(()=>{if(a!=="EIP712Domain")return c(u[a],i)})();return Uo({domain:f,message:h,primaryType:a,types:u})}function X8(e){const{domain:r,message:i,primaryType:a,types:u}=e,c=(f,h)=>{for(const m of f){const{name:p,type:A}=m,v=h[p],g=A.match(K8);if(g&&(typeof v=="number"||typeof v=="bigint")){const[U,F,N]=g;Qe(v,{signed:F==="int",size:Number.parseInt(N,10)/8})}if(A==="address"&&typeof v=="string"&&!Rn(v))throw new gr({address:v});const S=A.match(Vq);if(S){const[U,F]=S;if(F&&nn(v)!==Number.parseInt(F,10))throw new kq({expectedSize:Number.parseInt(F,10),givenSize:nn(v)})}const O=u[A];O&&(o7(A),c(O,v))}};if(u.EIP712Domain&&r){if(typeof r!="object")throw new e7({domain:r});c(u.EIP712Domain,r)}if(a!=="EIP712Domain")if(u[a])c(u[a],i);else throw new t7({primaryType:a,types:u})}function Z8({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function o7(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new n7({type:e})}function i7(e){const{domain:r={},message:i,primaryType:a}=e,u={EIP712Domain:Z8({domain:r}),...e.types};X8({domain:r,message:i,primaryType:a,types:u});const c=["0x1901"];return r&&c.push(a7({domain:r,types:u})),a!=="EIP712Domain"&&c.push(J8({data:i,primaryType:a,types:u})),Vr(fi(c))}function a7({domain:e,types:r}){return J8({data:e,primaryType:"EIP712Domain",types:r})}function J8({data:e,primaryType:r,types:i}){const a=W8({data:e,primaryType:r,types:i});return Vr(a)}function W8({data:e,primaryType:r,types:i}){const a=[{type:"bytes32"}],u=[s7({primaryType:r,types:i})];for(const c of i[r]){const[f,h]=t4({types:i,name:c.name,type:c.type,value:e[c.name]});a.push(f),u.push(h)}return pg(a,u)}function s7({primaryType:e,types:r}){const i=li(u7({primaryType:e,types:r}));return Vr(i)}function u7({primaryType:e,types:r}){let i="";const a=e4({primaryType:e,types:r});a.delete(e);const u=[e,...Array.from(a).sort()];for(const c of u)i+=`${c}(${r[c].map(({name:f,type:h})=>`${h} ${f}`).join(",")})`;return i}function e4({primaryType:e,types:r},i=new Set){const a=e.match(/^\w*/u),u=a==null?void 0:a[0];if(i.has(u)||r[u]===void 0)return i;i.add(u);for(const c of r[u])e4({primaryType:c.type,types:r},i);return i}function t4({types:e,name:r,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},Vr(W8({data:a,primaryType:i,types:e}))];if(i==="bytes")return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},Vr(a)];if(i==="string")return[{type:"bytes32"},Vr(li(a))];if(i.lastIndexOf("]")===i.length-1){const u=i.slice(0,i.lastIndexOf("[")),c=a.map(f=>t4({name:r,type:u,types:e,value:f}));return[{type:"bytes32"},Vr(pg(c.map(([f])=>f),c.map(([,f])=>f)))]}return[{type:i},a]}async function l7(e){const{privateKey:r,...i}=e;return await ah({hash:i7(i),privateKey:r,to:"hex"})}function ui(e,r={}){const{nonceManager:i}=r,a=li(oh.getPublicKey(e.slice(2),!1)),u=D8(a);return{...Q$({address:u,nonceManager:i,async sign({hash:f}){return ah({hash:f,privateKey:e,to:"hex"})},async signAuthorization(f){return eq({...f,privateKey:e})},async signMessage({message:f}){return oq({message:f,privateKey:e})},async signTransaction(f,{serializer:h}={}){return Dq({privateKey:e,transaction:f,serializer:h})},async signTypedData(f){return l7({...f,privateKey:e})}}),publicKey:a,source:"privateKey"}}function Fr(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function c7(e,r){const i=e.exec(r);return i==null?void 0:i.groups}const fN=/^tuple(?<array>(\[(\d*)\])*)$/;function Tw(e){let r=e.type;if(fN.test(e.type)&&"components"in e){r="(";const i=e.components.length;for(let u=0;u<i;u++){const c=e.components[u];r+=Tw(c),u<i-1&&(r+=", ")}const a=c7(fN,e.type);return r+=`)${(a==null?void 0:a.array)??""}`,Tw({...e,type:r})}return"indexed"in e&&e.indexed&&(r=`${r} indexed`),e.name?`${r} ${e.name}`:r}function od(e){let r="";const i=e.length;for(let a=0;a<i;a++){const u=e[a];r+=Tw(u),a!==i-1&&(r+=", ")}return r}function f7(e){var r;return e.type==="function"?`function ${e.name}(${od(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(r=e.outputs)!=null&&r.length?` returns (${od(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${od(e.inputs)})`:e.type==="error"?`error ${e.name}(${od(e.inputs)})`:e.type==="constructor"?`constructor(${od(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function tr(e,r,i){const a=e[r.name];if(typeof a=="function")return a;const u=e[i];return typeof u=="function"?u:c=>r(e,c)}const d7=e=>Vr(eS(e));function h7(e){return d7(e)}function p7(e){let r=!0,i="",a=0,u="",c=!1;for(let f=0;f<e.length;f++){const h=e[f];if(["(",")",","].includes(h)&&(r=!0),h==="("&&a++,h===")"&&a--,!!r){if(a===0){if(h===" "&&["event","function",""].includes(u))u="";else if(u+=h,h===")"){c=!0;break}continue}if(h===" "){e[f-1]!==","&&i!==","&&i!==",("&&(i="",r=!1);continue}u+=h,i+=h}}if(!c)throw new ke("Unable to normalize signature.");return u}const m7=e=>{const r=typeof e=="string"?e:f7(e);return p7(r)};function n4(e){return h7(m7(e))}const g7=n4,hS=e=>Cd(n4(e),0,4);function r4(e){const{abi:r,args:i=[],name:a}=e,u=ra(a,{strict:!1}),c=r.filter(h=>u?h.type==="function"?hS(h)===a:h.type==="event"?g7(h)===a:!1:"name"in h&&h.name===a);if(c.length===0)return;if(c.length===1)return c[0];let f;for(const h of c){if(!("inputs"in h))continue;if(!i||i.length===0){if(!h.inputs||h.inputs.length===0)return h;continue}if(!h.inputs||h.inputs.length===0||h.inputs.length!==i.length)continue;if(i.every((p,A)=>{const v="inputs"in h&&h.inputs[A];return v?Rw(p,v):!1})){if(f&&"inputs"in f&&f.inputs){const p=o4(h.inputs,f.inputs,i);if(p)throw new Lq({abiItem:h,type:p[0]},{abiItem:f,type:p[1]})}f=h}}return f||c[0]}function Rw(e,r){const i=typeof e,a=r.type;switch(a){case"address":return Rn(e,{strict:!1});case"bool":return i==="boolean";case"function":return i==="string";case"string":return i==="string";default:return a==="tuple"&&"components"in r?Object.values(r.components).every((u,c)=>Rw(Object.values(e)[c],u)):/^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(a)?i==="number"||i==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a)?i==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a)?Array.isArray(e)&&e.every(u=>Rw(u,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function o4(e,r,i){for(const a in e){const u=e[a],c=r[a];if(u.type==="tuple"&&c.type==="tuple"&&"components"in u&&"components"in c)return o4(u.components,c.components,i[a]);const f=[u.type,c.type];if(f.includes("address")&&f.includes("bytes20")?!0:f.includes("address")&&f.includes("string")?Rn(i[a],{strict:!1}):f.includes("address")&&f.includes("bytes")?Rn(i[a],{strict:!1}):!1)return f}}const dN="/docs/contract/encodeFunctionData";function y7(e){const{abi:r,args:i,functionName:a}=e;let u=r[0];if(a){const c=r4({abi:r,args:i,name:a});if(!c)throw new cN(a,{docsPath:dN});u=c}if(u.type!=="function")throw new cN(void 0,{docsPath:dN});return{abi:[u],functionName:hS(nc(u))}}function i4(e){const{args:r}=e,{abi:i,functionName:a}=(()=>{var h;return e.abi.length===1&&((h=e.functionName)!=null&&h.startsWith("0x"))?e:y7(e)})(),u=i[0],c=a,f="inputs"in u&&u.inputs?pg(u.inputs,r??[]):void 0;return rs([c,f??"0x"])}const b7={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."},v7={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},A7={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function x7(e,r={}){typeof r.size<"u"&&pi(e,{size:r.size});const i=nr(e,r);return ci(i,r)}function E7(e,r={}){let i=e;if(typeof r.size<"u"&&(pi(i,{size:r.size}),i=es(i)),i.length>1||i[0]>1)throw new I$(i);return!!i[0]}function ea(e,r={}){typeof r.size<"u"&&pi(e,{size:r.size});const i=nr(e,r);return oa(i,r)}function w7(e,r={}){let i=e;return typeof r.size<"u"&&(pi(i,{size:r.size}),i=es(i,{dir:"right"})),new TextDecoder().decode(i)}function S7(e,r){const i=typeof r=="string"?_o(r):r,a=nS(i);if(nn(i)===0&&e.length>0)throw new lS;if(nn(r)&&nn(r)<32)throw new _q({data:typeof r=="string"?r:nr(r),params:e,size:nn(r)});let u=0;const c=[];for(let f=0;f<e.length;++f){const h=e[f];a.setPosition(u);const[m,p]=Yl(a,h,{staticPosition:0});u+=p,c.push(m)}return c}function Yl(e,r,{staticPosition:i}){const a=dS(r.type);if(a){const[u,c]=a;return I7(e,{...r,type:c},{length:u,staticPosition:i})}if(r.type==="tuple")return F7(e,r,{staticPosition:i});if(r.type==="address")return C7(e);if(r.type==="bool")return T7(e);if(r.type.startsWith("bytes"))return R7(e,r,{staticPosition:i});if(r.type.startsWith("uint")||r.type.startsWith("int"))return O7(e,r);if(r.type==="string")return N7(e,{staticPosition:i});throw new qq(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const hN=32,Ow=32;function C7(e){const r=e.readBytes(32);return[ih(nr(G8(r,-20))),32]}function I7(e,r,{length:i,staticPosition:a}){if(!i){const f=ea(e.readBytes(Ow)),h=a+f,m=h+hN;e.setPosition(h);const p=ea(e.readBytes(hN)),A=Id(r);let v=0;const g=[];for(let S=0;S<p;++S){e.setPosition(m+(A?S*32:v));const[O,U]=Yl(e,r,{staticPosition:m});v+=U,g.push(O)}return e.setPosition(a+32),[g,32]}if(Id(r)){const f=ea(e.readBytes(Ow)),h=a+f,m=[];for(let p=0;p<i;++p){e.setPosition(h+p*32);const[A]=Yl(e,r,{staticPosition:h});m.push(A)}return e.setPosition(a+32),[m,32]}let u=0;const c=[];for(let f=0;f<i;++f){const[h,m]=Yl(e,r,{staticPosition:a+u});u+=m,c.push(h)}return[c,u]}function T7(e){return[E7(e.readBytes(32),{size:32}),32]}function R7(e,r,{staticPosition:i}){const[a,u]=r.type.split("bytes");if(!u){const f=ea(e.readBytes(32));e.setPosition(i+f);const h=ea(e.readBytes(32));if(h===0)return e.setPosition(i+32),["0x",32];const m=e.readBytes(h);return e.setPosition(i+32),[nr(m),32]}return[nr(e.readBytes(Number.parseInt(u,10),32)),32]}function O7(e,r){const i=r.type.startsWith("int"),a=Number.parseInt(r.type.split("int")[1]||"256",10),u=e.readBytes(32);return[a>48?x7(u,{signed:i}):ea(u,{signed:i}),32]}function F7(e,r,{staticPosition:i}){const a=r.components.length===0||r.components.some(({name:f})=>!f),u=a?[]:{};let c=0;if(Id(r)){const f=ea(e.readBytes(Ow)),h=i+f;for(let m=0;m<r.components.length;++m){const p=r.components[m];e.setPosition(h+c);const[A,v]=Yl(e,p,{staticPosition:h});c+=v,u[a?m:p==null?void 0:p.name]=A}return e.setPosition(i+32),[u,32]}for(let f=0;f<r.components.length;++f){const h=r.components[f],[m,p]=Yl(e,h,{staticPosition:i});u[a?f:h==null?void 0:h.name]=m,c+=p}return[u,c]}function N7(e,{staticPosition:r}){const i=ea(e.readBytes(32)),a=r+i;e.setPosition(a);const u=ea(e.readBytes(32));if(u===0)return e.setPosition(r+32),["",32];const c=e.readBytes(u,32),f=w7(es(c));return e.setPosition(r+32),[f,32]}function Id(e){var a;const{type:r}=e;if(r==="string"||r==="bytes"||r.endsWith("[]"))return!0;if(r==="tuple")return(a=e.components)==null?void 0:a.some(Id);const i=dS(e.type);return!!(i&&Id({...e,type:i[1]}))}function D7(e){const{abi:r,data:i}=e,a=Cd(i,0,4);if(a==="0x")throw new lS;const c=[...r||[],v7,A7].find(f=>f.type==="error"&&a===hS(nc(f)));if(!c)throw new Y8(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?S7(c.inputs,Cd(i,4)):void 0,errorName:c.name}}function a4({abiItem:e,args:r,includeFunctionName:i=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${i?e.name:""}(${e.inputs.map((u,c)=>`${a&&u.name?`${u.name}: `:""}${typeof r[c]=="object"?Uo(r[c]):r[c]}`).join(", ")})`}class B7 extends ke{constructor({address:r}){super(`State for account "${r}" is set multiple times.`,{name:"AccountStateConflictError"})}}class U7 extends ke{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const _7=e=>e,pS=e=>e;class M7 extends ke{constructor(r,{abi:i,args:a,contractAddress:u,docsPath:c,functionName:f,sender:h}){const m=r4({abi:i,args:a,name:f}),p=m?a4({abiItem:m,args:a,includeFunctionName:!1,includeName:!1}):void 0,A=m?nc(m,{includeName:!0}):void 0,v=cg({address:u&&_7(u),function:A,args:p&&p!=="()"&&`${[...Array((f==null?void 0:f.length)??0).keys()].map(()=>" ").join("")}${p}`,sender:h});super(r.shortMessage||`An unknown error occurred while executing the contract function "${f}".`,{cause:r,docsPath:c,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],v&&"Contract Call:",v].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=i,this.args=a,this.cause=r,this.contractAddress=u,this.functionName=f,this.sender=h}}class P7 extends ke{constructor({abi:r,data:i,functionName:a,message:u}){let c,f,h,m;if(i&&i!=="0x")try{f=D7({abi:r,data:i});const{abiItem:A,errorName:v,args:g}=f;if(v==="Error")m=g[0];else if(v==="Panic"){const[S]=g;m=b7[S]}else{const S=A?nc(A,{includeName:!0}):void 0,O=A&&g?a4({abiItem:A,args:g,includeFunctionName:!1,includeName:!1}):void 0;h=[S?`Error: ${S}`:"",O&&O!=="()"?` ${[...Array((v==null?void 0:v.length)??0).keys()].map(()=>" ").join("")}${O}`:""]}}catch(A){c=A}else u&&(m=u);let p;c instanceof Y8&&(p=c.signature,h=[`Unable to decode signature "${p}" 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://openchain.xyz/signatures?query=${p}.`]),super(m&&m!=="execution reverted"||p?[`The contract function "${a}" reverted with the following ${p?"signature":"reason"}:`,m||p].join(`
|
|
296
|
+
`):`The contract function "${a}" reverted.`,{cause:c,metaMessages:h,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=f,this.raw=i,this.reason=m,this.signature=p}}class j7 extends ke{constructor({functionName:r}){super(`The contract function "${r}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${r}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class L7 extends ke{constructor({data:r,message:i}){super(i||"",{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=r}}class bd extends ke{constructor({body:r,cause:i,details:a,headers:u,status:c,url:f}){super("HTTP request failed.",{cause:i,details:a,metaMessages:[c&&`Status: ${c}`,`URL: ${pS(f)}`,r&&`Request body: ${Uo(r)}`].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=r,this.headers=u,this.status=c,this.url=f}}class mS extends ke{constructor({body:r,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${pS(a)}`,`Request body: ${Uo(r)}`],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}),this.code=i.code,this.data=i.data}}class pN extends ke{constructor({body:r,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${pS(i)}`,`Request body: ${Uo(r)}`],name:"TimeoutError"})}}const k7=-1;class Br extends ke{constructor(r,{code:i,docsPath:a,metaMessages:u,name:c,shortMessage:f}){super(f,{cause:r,docsPath:a,metaMessages:u||(r==null?void 0:r.metaMessages),name:c||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=c||r.name,this.code=r instanceof mS?r.code:i??k7}}class Xr extends Br{constructor(r,i){super(r,i),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}}class Td extends Br{constructor(r){super(r,{code:Td.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Td,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Rd extends Br{constructor(r){super(r,{code:Rd.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Rd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Od extends Br{constructor(r,{method:i}={}){super(r,{code:Od.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(Od,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Fd extends Br{constructor(r){super(r,{code:Fd.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
297
|
+
`)})}}Object.defineProperty(Fd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Au extends Br{constructor(r){super(r,{code:Au.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Au,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Nd extends Br{constructor(r){super(r,{code:Nd.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
298
|
+
`)})}}Object.defineProperty(Nd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Dd extends Br{constructor(r){super(r,{code:Dd.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Dd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Bd extends Br{constructor(r){super(r,{code:Bd.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Bd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Ud extends Br{constructor(r){super(r,{code:Ud.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Ud,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class mu extends Br{constructor(r,{method:i}={}){super(r,{code:mu.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(mu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class rc extends Br{constructor(r){super(r,{code:rc.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class _d extends Br{constructor(r){super(r,{code:_d.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(_d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Kl extends Xr{constructor(r){super(r,{code:Kl.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Kl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Md extends Xr{constructor(r){super(r,{code:Md.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Md,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Pd extends Xr{constructor(r,{method:i}={}){super(r,{code:Pd.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(Pd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class jd extends Xr{constructor(r){super(r,{code:jd.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(jd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Ld extends Xr{constructor(r){super(r,{code:Ld.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Ld,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class kd extends Xr{constructor(r){super(r,{code:kd.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(kd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class oc extends Xr{constructor(r){super(r,{code:oc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class $d extends Xr{constructor(r){super(r,{code:$d.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty($d,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class qd extends Xr{constructor(r){super(r,{code:qd.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(qd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Hd extends Xr{constructor(r){super(r,{code:Hd.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Hd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class zd extends Xr{constructor(r){super(r,{code:zd.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(zd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Vd extends Xr{constructor(r){super(r,{code:Vd.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Vd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class ic extends Xr{constructor(r){super(r,{code:ic.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class $7 extends Br{constructor(r){super(r,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const q7=3;function H7(e,{abi:r,address:i,args:a,docsPath:u,functionName:c,sender:f}){const h=e instanceof L7?e:e instanceof ke?e.walk(O=>"data"in O)||e.walk():{},{code:m,data:p,details:A,message:v,shortMessage:g}=h,S=e instanceof lS?new j7({functionName:c}):[q7,Au.code].includes(m)&&(p||A||v||g)?new P7({abi:r,data:typeof p=="object"?p.data:p,functionName:c,message:h instanceof mS?A:g??v}):e;return new M7(S,{abi:r,args:a,contractAddress:i,docsPath:u,functionName:c,sender:f})}const z7="modulepreload",V7=function(e){return"/"+e},mN={},G7=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let f=function(p){return Promise.all(p.map(A=>Promise.resolve(A).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=f(i.map(p=>{if(p=V7(p),p in mN)return;mN[p]=!0;const A=p.endsWith(".css"),v=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const g=document.createElement("link");if(g.rel=A?"stylesheet":z7,A||(g.as="script"),g.crossOrigin="",g.href=p,m&&g.setAttribute("nonce",m),document.head.appendChild(g),A)return new Promise((S,O)=>{g.addEventListener("load",S),g.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return u.then(f=>{for(const h of f||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})};async function Q7({hash:e,signature:r}){const i=ra(e)?e:li(e),{secp256k1:a}=await G7(async()=>{const{secp256k1:f}=await Promise.resolve().then(()=>C$);return{secp256k1:f}},void 0);return`0x${(()=>{if(typeof r=="object"&&"r"in r&&"s"in r){const{r:p,s:A,v,yParity:g}=r,S=Number(g??v),O=gN(S);return new a.Signature(ci(p),ci(A)).addRecoveryBit(O)}const f=ra(r)?r:li(r);if(nn(f)!==65)throw new Error("invalid signature length");const h=oa(`0x${f.slice(130)}`),m=gN(h);return a.Signature.fromCompact(f.substring(2,130)).addRecoveryBit(m)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function gN(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Y7({hash:e,signature:r}){return D8(await Q7({hash:e,signature:r}))}async function s4(e){const{authorization:r,signature:i}=e;return Y7({hash:_8(r),signature:i??r})}class K7 extends ke{constructor(r,{account:i,docsPath:a,chain:u,data:c,gas:f,gasPrice:h,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:A,to:v,value:g}){var O;const S=cg({from:i==null?void 0:i.address,to:v,value:typeof g<"u"&&`${P8(g)} ${((O=u==null?void 0:u.nativeCurrency)==null?void 0:O.symbol)||"ETH"}`,data:c,gas:f,gasPrice:typeof h<"u"&&`${Bo(h)} gwei`,maxFeePerGas:typeof m<"u"&&`${Bo(m)} gwei`,maxPriorityFeePerGas:typeof p<"u"&&`${Bo(p)} gwei`,nonce:A});super(r.shortMessage,{cause:r,docsPath:a,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],"Estimate Gas Arguments:",S].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=r}}function u4(e,r){const i=(e.details||"").toLowerCase(),a=e instanceof ke?e.walk(u=>(u==null?void 0:u.code)===Hl.code):e;return a instanceof ke?new Hl({cause:e,message:a.details}):Hl.nodeMessage.test(i)?new Hl({cause:e,message:e.details}):vu.nodeMessage.test(i)?new vu({cause:e,maxFeePerGas:r==null?void 0:r.maxFeePerGas}):bw.nodeMessage.test(i)?new bw({cause:e,maxFeePerGas:r==null?void 0:r.maxFeePerGas}):vw.nodeMessage.test(i)?new vw({cause:e,nonce:r==null?void 0:r.nonce}):Aw.nodeMessage.test(i)?new Aw({cause:e,nonce:r==null?void 0:r.nonce}):xw.nodeMessage.test(i)?new xw({cause:e,nonce:r==null?void 0:r.nonce}):Ew.nodeMessage.test(i)?new Ew({cause:e}):ww.nodeMessage.test(i)?new ww({cause:e,gas:r==null?void 0:r.gas}):Sw.nodeMessage.test(i)?new Sw({cause:e,gas:r==null?void 0:r.gas}):Cw.nodeMessage.test(i)?new Cw({cause:e}):Sd.nodeMessage.test(i)?new Sd({cause:e,maxFeePerGas:r==null?void 0:r.maxFeePerGas,maxPriorityFeePerGas:r==null?void 0:r.maxPriorityFeePerGas}):new aS({cause:e})}function X7(e,{docsPath:r,...i}){const a=(()=>{const u=u4(e,i);return u instanceof aS?e:u})();return new K7(a,{docsPath:r,...i})}function l4(e,{format:r}){if(!r)return{};const i={};function a(c){const f=Object.keys(c);for(const h of f)h in e&&(i[h]=e[h]),c[h]&&typeof c[h]=="object"&&!Array.isArray(c[h])&&a(c[h])}const u=r(e||{});return a(u),i}const Z7={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function gS(e){const r={};return typeof e.authorizationList<"u"&&(r.authorizationList=J7(e.authorizationList)),typeof e.accessList<"u"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?r.blobs=e.blobs.map(i=>nr(i)):r.blobs=e.blobs),typeof e.data<"u"&&(r.data=e.data),typeof e.from<"u"&&(r.from=e.from),typeof e.gas<"u"&&(r.gas=Qe(e.gas)),typeof e.gasPrice<"u"&&(r.gasPrice=Qe(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=Qe(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(r.maxFeePerGas=Qe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=Qe(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(r.nonce=Qe(e.nonce)),typeof e.to<"u"&&(r.to=e.to),typeof e.type<"u"&&(r.type=Z7[e.type]),typeof e.value<"u"&&(r.value=Qe(e.value)),r}function J7(e){return e.map(r=>({address:r.address,r:r.r?Qe(BigInt(r.r)):r.r,s:r.s?Qe(BigInt(r.s)):r.s,chainId:Qe(r.chainId),nonce:Qe(r.nonce),...typeof r.yParity<"u"?{yParity:Qe(r.yParity)}:{},...typeof r.v<"u"&&typeof r.yParity>"u"?{v:Qe(r.v)}:{}}))}function yN(e){if(!(!e||e.length===0))return e.reduce((r,{slot:i,value:a})=>{if(i.length!==66)throw new nN({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new nN({size:a.length,targetSize:66,type:"hex"});return r[i]=a,r},{})}function W7(e){const{balance:r,nonce:i,state:a,stateDiff:u,code:c}=e,f={};if(c!==void 0&&(f.code=c),r!==void 0&&(f.balance=Qe(r)),i!==void 0&&(f.nonce=Qe(i)),a!==void 0&&(f.state=yN(a)),u!==void 0){if(f.state)throw new U7;f.stateDiff=yN(u)}return f}function eH(e){if(!e)return;const r={};for(const{address:i,...a}of e){if(!Rn(i,{strict:!1}))throw new gr({address:i});if(r[i])throw new B7({address:i});r[i]=W7(a)}return r}function mg(e){const{account:r,gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u,to:c}=e,f=r?Fr(r):void 0;if(f&&!Rn(f.address))throw new gr({address:f.address});if(c&&!Rn(c))throw new gr({address:c});if(typeof i<"u"&&(typeof a<"u"||typeof u<"u"))throw new sq;if(a&&a>fg)throw new vu({maxFeePerGas:a});if(u&&a&&u>a)throw new Sd({maxFeePerGas:a,maxPriorityFeePerGas:u})}class tH extends ke{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class yS extends ke{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class nH extends ke{constructor({maxPriorityFeePerGas:r}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Bo(r)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class rH extends ke{constructor({blockHash:r,blockNumber:i}){let a="Block";r&&(a=`Block at hash "${r}"`),i&&(a=`Block at number "${i}"`),super(`${a} could not be found.`,{name:"BlockNotFoundError"})}}const oH={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function iH(e){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?oa(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?oa(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?oH[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(r.authorizationList=aH(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}function aH(e){return e.map(r=>({address:r.address,chainId:Number(r.chainId),nonce:Number(r.nonce),r:r.r,s:r.s,yParity:Number(r.yParity)}))}function sH(e){const r=(e.transactions??[]).map(i=>typeof i=="string"?i:iH(i));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Ym(e,{blockHash:r,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:u}={}){var p,A,v;const c=u??!1,f=i!==void 0?Qe(i):void 0;let h=null;if(r?h=await e.request({method:"eth_getBlockByHash",params:[r,c]},{dedupe:!0}):h=await e.request({method:"eth_getBlockByNumber",params:[f||a,c]},{dedupe:!!f}),!h)throw new rH({blockHash:r,blockNumber:i});return(((v=(A=(p=e.chain)==null?void 0:p.formatters)==null?void 0:A.block)==null?void 0:v.format)||sH)(h)}async function c4(e){const r=await e.request({method:"eth_gasPrice"});return BigInt(r)}async function uH(e,r){var c,f;const{block:i,chain:a=e.chain,request:u}=r||{};try{const h=((c=a==null?void 0:a.fees)==null?void 0:c.maxPriorityFeePerGas)??((f=a==null?void 0:a.fees)==null?void 0:f.defaultPriorityFee);if(typeof h=="function"){const p=i||await tr(e,Ym,"getBlock")({}),A=await h({block:p,client:e,request:u});if(A===null)throw new Error;return A}if(typeof h<"u")return h;const m=await e.request({method:"eth_maxPriorityFeePerGas"});return ci(m)}catch{const[h,m]=await Promise.all([i?Promise.resolve(i):tr(e,Ym,"getBlock")({}),tr(e,c4,"getGasPrice")({})]);if(typeof h.baseFeePerGas!="bigint")throw new yS;const p=m-h.baseFeePerGas;return p<0n?0n:p}}async function bN(e,r){var g,S;const{block:i,chain:a=e.chain,request:u,type:c="eip1559"}=r||{},f=await(async()=>{var O,U;return typeof((O=a==null?void 0:a.fees)==null?void 0:O.baseFeeMultiplier)=="function"?a.fees.baseFeeMultiplier({block:i,client:e,request:u}):((U=a==null?void 0:a.fees)==null?void 0:U.baseFeeMultiplier)??1.2})();if(f<1)throw new tH;const m=10**(((g=f.toString().split(".")[1])==null?void 0:g.length)??0),p=O=>O*BigInt(Math.ceil(f*m))/BigInt(m),A=i||await tr(e,Ym,"getBlock")({});if(typeof((S=a==null?void 0:a.fees)==null?void 0:S.estimateFeesPerGas)=="function"){const O=await a.fees.estimateFeesPerGas({block:i,client:e,multiply:p,request:u,type:c});if(O!==null)return O}if(c==="eip1559"){if(typeof A.baseFeePerGas!="bigint")throw new yS;const O=typeof(u==null?void 0:u.maxPriorityFeePerGas)=="bigint"?u.maxPriorityFeePerGas:await uH(e,{block:A,chain:a,request:u}),U=p(A.baseFeePerGas);return{maxFeePerGas:(u==null?void 0:u.maxFeePerGas)??U+O,maxPriorityFeePerGas:O}}return{gasPrice:(u==null?void 0:u.gasPrice)??p(await tr(e,c4,"getGasPrice")({}))}}async function uh(e){const r=await e.request({method:"eth_chainId"},{dedupe:!0});return oa(r)}const f4=["blobVersionedHashes","chainId","fees","gas","nonce","type"],vN=new Map;async function bS(e,r){const{account:i=e.account,blobs:a,chain:u,gas:c,kzg:f,nonce:h,nonceManager:m,parameters:p=f4,type:A}=r,v=i&&Fr(i),g={...r,...v?{from:v==null?void 0:v.address}:{}};let S;async function O(){return S||(S=await tr(e,Ym,"getBlock")({blockTag:"latest"}),S)}let U;async function F(){return U||(u?u.id:typeof r.chainId<"u"?r.chainId:(U=await tr(e,uh,"getChainId")({}),U))}if(p.includes("nonce")&&typeof h>"u"&&v)if(m){const N=await F();g.nonce=await m.consume({address:v.address,chainId:N,client:e})}else g.nonce=await tr(e,I8,"getTransactionCount")({address:v.address,blockTag:"pending"});if((p.includes("blobVersionedHashes")||p.includes("sidecars"))&&a&&f){const N=rS({blobs:a,kzg:f});if(p.includes("blobVersionedHashes")){const D=j8({commitments:N,to:"hex"});g.blobVersionedHashes=D}if(p.includes("sidecars")){const D=oS({blobs:a,commitments:N,kzg:f}),M=H8({blobs:a,commitments:N,proofs:D,to:"hex"});g.sidecars=M}}if(p.includes("chainId")&&(g.chainId=await F()),(p.includes("fees")||p.includes("type"))&&typeof A>"u")try{g.type=Q8(g)}catch{let N=vN.get(e.uid);if(typeof N>"u"){const D=await O();N=typeof(D==null?void 0:D.baseFeePerGas)=="bigint",vN.set(e.uid,N)}g.type=N?"eip1559":"legacy"}if(p.includes("fees"))if(g.type!=="legacy"&&g.type!=="eip2930"){if(typeof g.maxFeePerGas>"u"||typeof g.maxPriorityFeePerGas>"u"){const N=await O(),{maxFeePerGas:D,maxPriorityFeePerGas:M}=await bN(e,{block:N,chain:u,request:g});if(typeof r.maxPriorityFeePerGas>"u"&&r.maxFeePerGas&&r.maxFeePerGas<M)throw new nH({maxPriorityFeePerGas:M});g.maxPriorityFeePerGas=M,g.maxFeePerGas=D}}else{if(typeof r.maxFeePerGas<"u"||typeof r.maxPriorityFeePerGas<"u")throw new yS;if(typeof r.gasPrice>"u"){const N=await O(),{gasPrice:D}=await bN(e,{block:N,chain:u,request:g,type:"legacy"});g.gasPrice=D}}return p.includes("gas")&&typeof c>"u"&&(g.gas=await tr(e,cH,"estimateGas")({...g,account:v&&{address:v.address,type:"json-rpc"}})),mg(g),delete g.parameters,g}async function lH(e,{address:r,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest"}){const u=typeof i=="bigint"?Qe(i):void 0,c=await e.request({method:"eth_getBalance",params:[r,u||a]});return BigInt(c)}async function cH(e,r){var c,f,h;const{account:i=e.account}=r,a=i?Fr(i):void 0;try{let ve=function(he){const{block:ge,request:W,rpcStateOverride:_}=he;return e.request({method:"eth_estimateGas",params:_?[W,ge??e.experimental_blockTag??"latest",_]:ge?[W,ge]:[W]})};var u=ve;const{accessList:m,authorizationList:p,blobs:A,blobVersionedHashes:v,blockNumber:g,blockTag:S,data:O,gas:U,gasPrice:F,maxFeePerBlobGas:N,maxFeePerGas:D,maxPriorityFeePerGas:M,nonce:re,value:K,stateOverride:oe,...de}=await bS(e,{...r,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),T=(typeof g=="bigint"?Qe(g):void 0)||S,$=eH(oe),z=await(async()=>{if(de.to)return de.to;if(p&&p.length>0)return await s4({authorization:p[0]}).catch(()=>{throw new ke("`to` is required. Could not infer from `authorizationList`")})})();mg(r);const V=(h=(f=(c=e.chain)==null?void 0:c.formatters)==null?void 0:f.transactionRequest)==null?void 0:h.format,J=(V||gS)({...l4(de,{format:V}),from:a==null?void 0:a.address,accessList:m,authorizationList:p,blobs:A,blobVersionedHashes:v,data:O,gas:U,gasPrice:F,maxFeePerBlobGas:N,maxFeePerGas:D,maxPriorityFeePerGas:M,nonce:re,to:z,value:K});let B=BigInt(await ve({block:T,request:J,rpcStateOverride:$}));if(p){const he=await lH(e,{address:J.from}),ge=await Promise.all(p.map(async W=>{const{address:_}=W,ie=await ve({block:T,request:{authorizationList:void 0,data:O,from:a==null?void 0:a.address,to:_,value:Qe(he)},rpcStateOverride:$}).catch(()=>100000n);return 2n*BigInt(ie)}));B+=ge.reduce((W,_)=>W+_,0n)}return B}catch(m){throw X7(m,{...r,account:a,chain:e.chain})}}function fH(e,r){if(!Rn(e,{strict:!1}))throw new gr({address:e});if(!Rn(r,{strict:!1}))throw new gr({address:r});return e.toLowerCase()===r.toLowerCase()}const Mv="/docs/contract/encodeDeployData";function dH(e){const{abi:r,args:i,bytecode:a}=e;if(!i||i.length===0)return a;const u=r.find(f=>"type"in f&&f.type==="constructor");if(!u)throw new Uq({docsPath:Mv});if(!("inputs"in u))throw new lN({docsPath:Mv});if(!u.inputs||u.inputs.length===0)throw new lN({docsPath:Mv});const c=pg(u.inputs,i);return rs([a,c])}function d4(){let e=()=>{},r=()=>{};return{promise:new Promise((a,u)=>{e=a,r=u}),resolve:e,reject:r}}const Pv=new Map;function hH({fn:e,id:r,shouldSplitBatch:i,wait:a=0,sort:u}){const c=async()=>{const A=m();f();const v=A.map(({args:g})=>g);v.length!==0&&e(v).then(g=>{u&&Array.isArray(g)&&g.sort(u);for(let S=0;S<A.length;S++){const{resolve:O}=A[S];O==null||O([g[S],g])}}).catch(g=>{for(let S=0;S<A.length;S++){const{reject:O}=A[S];O==null||O(g)}})},f=()=>Pv.delete(r),h=()=>m().map(({args:A})=>A),m=()=>Pv.get(r)||[],p=A=>Pv.set(r,[...m(),A]);return{flush:f,async schedule(A){const{promise:v,resolve:g,reject:S}=d4();return(i==null?void 0:i([...h(),A]))&&c(),m().length>0?(p({args:A,resolve:g,reject:S}),v):(p({args:A,resolve:g,reject:S}),setTimeout(c,a),v)}}}const jv=new Map,AN=new Map;let pH=0;function mH(e,r,i){const a=++pH,u=()=>jv.get(e)||[],c=()=>{const A=u();jv.set(e,A.filter(v=>v.id!==a))},f=()=>{const A=u();if(!A.some(g=>g.id===a))return;const v=AN.get(e);if(A.length===1&&v){const g=v();g instanceof Promise&&g.catch(()=>{})}c()},h=u();if(jv.set(e,[...h,{id:a,fns:r}]),h&&h.length>0)return f;const m={};for(const A in r)m[A]=((...v)=>{var S,O;const g=u();if(g.length!==0)for(const U of g)(O=(S=U.fns)[A])==null||O.call(S,...v)});const p=i(m);return typeof p=="function"&&AN.set(e,p),f}async function Fw(e){return new Promise(r=>setTimeout(r,e))}function gH(e,{emitOnBegin:r,initialWaitTime:i,interval:a}){let u=!0;const c=()=>u=!1;return(async()=>{let h;h=await e({unpoll:c});const m=await(i==null?void 0:i(h))??a;await Fw(m);const p=async()=>{u&&(await e({unpoll:c}),await Fw(a),p())};p()})(),c}class Su extends ke{constructor({docsPath:r}={}){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(`
|
|
299
|
+
`),{docsPath:r,docsSlug:"account",name:"AccountNotFoundError"})}}class jm extends ke{constructor({docsPath:r,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:r,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function h4({chain:e,currentChainId:r}){if(!e)throw new xq;if(r!==e.id)throw new Aq({chain:e,currentChainId:r})}function p4(e,{docsPath:r,...i}){const a=(()=>{const u=u4(e,i);return u instanceof aS?e:u})();return new fq(a,{docsPath:r,...i})}async function m4(e,{serializedTransaction:r}){return e.request({method:"eth_sendRawTransaction",params:[r]},{retryCount:0})}const Lv=new lg(128);async function gg(e,r){var D,M,re,K;const{account:i=e.account,chain:a=e.chain,accessList:u,authorizationList:c,blobs:f,data:h,gas:m,gasPrice:p,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:S,type:O,value:U,...F}=r;if(typeof i>"u")throw new Su({docsPath:"/docs/actions/wallet/sendTransaction"});const N=i?Fr(i):null;try{mg(r);const oe=await(async()=>{if(r.to)return r.to;if(r.to!==null&&c&&c.length>0)return await s4({authorization:c[0]}).catch(()=>{throw new ke("`to` is required. Could not infer from `authorizationList`.")})})();if((N==null?void 0:N.type)==="json-rpc"||N===null){let de;a!==null&&(de=await tr(e,uh,"getChainId")({}),h4({currentChainId:de,chain:a}));const ue=(re=(M=(D=e.chain)==null?void 0:D.formatters)==null?void 0:M.transactionRequest)==null?void 0:re.format,$=(ue||gS)({...l4(F,{format:ue}),accessList:u,authorizationList:c,blobs:f,chainId:de,data:h,from:N==null?void 0:N.address,gas:m,gasPrice:p,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:S,to:oe,type:O,value:U}),z=Lv.get(e.uid),V=z?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:V,params:[$]},{retryCount:0})}catch(X){if(z===!1)throw X;const J=X;if(J.name==="InvalidInputRpcError"||J.name==="InvalidParamsRpcError"||J.name==="MethodNotFoundRpcError"||J.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[$]},{retryCount:0}).then(ve=>(Lv.set(e.uid,!0),ve)).catch(ve=>{const B=ve;throw B.name==="MethodNotFoundRpcError"||B.name==="MethodNotSupportedRpcError"?(Lv.set(e.uid,!1),J):B});throw J}}if((N==null?void 0:N.type)==="local"){const de=await tr(e,bS,"prepareTransactionRequest")({account:N,accessList:u,authorizationList:c,blobs:f,chain:a,data:h,gas:m,gasPrice:p,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:S,nonceManager:N.nonceManager,parameters:[...f4,"sidecars"],type:O,value:U,...F,to:oe}),ue=(K=a==null?void 0:a.serializers)==null?void 0:K.transaction,T=await N.signTransaction(de,{serializer:ue});return await tr(e,m4,"sendRawTransaction")({serializedTransaction:T})}throw(N==null?void 0:N.type)==="smart"?new jm({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new jm({docsPath:"/docs/actions/wallet/sendTransaction",type:N==null?void 0:N.type})}catch(oe){throw oe instanceof jm?oe:p4(oe,{...r,account:N,chain:r.chain||void 0})}}async function yH(e,r){const{abi:i,account:a=e.account,address:u,args:c,dataSuffix:f,functionName:h,...m}=r;if(typeof a>"u")throw new Su({docsPath:"/docs/contract/writeContract"});const p=a?Fr(a):null,A=i4({abi:i,args:c,functionName:h});try{return await tr(e,gg,"sendTransaction")({data:`${A}${f?f.replace("0x",""):""}`,to:u,account:p,...m})}catch(v){throw H7(v,{abi:i,address:u,args:c,docsPath:"/docs/contract/writeContract",functionName:h,sender:p==null?void 0:p.address})}}class bH extends ke{constructor(r){super(`Call bundle failed with status: ${r.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=r}}function g4(e,{delay:r=100,retryCount:i=2,shouldRetry:a=()=>!0}={}){return new Promise((u,c)=>{const f=async({count:h=0}={})=>{const m=async({error:p})=>{const A=typeof r=="function"?r({count:h,error:p}):r;A&&await Fw(A),f({count:h+1})};try{const p=await e();u(p)}catch(p){if(h<i&&await a({count:h,error:p}))return m({error:p});c(p)}};f()})}const vH={"0x0":"reverted","0x1":"success"},y4="0x5792579257925792579257925792579257925792579257925792579257925792",b4=Qe(0,{size:32});async function AH(e,r){const{account:i=e.account,capabilities:a,chain:u=e.chain,experimental_fallback:c,experimental_fallbackDelay:f=32,forceAtomic:h=!1,id:m,version:p="2.0.0"}=r,A=i?Fr(i):null,v=r.calls.map(g=>{const S=g,O=S.abi?i4({abi:S.abi,functionName:S.functionName,args:S.args}):S.data;return{data:S.dataSuffix&&O?fi([O,S.dataSuffix]):O,to:S.to,value:S.value?Qe(S.value):void 0}});try{const g=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:h,calls:v,capabilities:a,chainId:Qe(u.id),from:A==null?void 0:A.address,id:m,version:p}]},{retryCount:0});return typeof g=="string"?{id:g}:g}catch(g){const S=g;if(c&&(S.name==="MethodNotFoundRpcError"||S.name==="MethodNotSupportedRpcError"||S.name==="UnknownRpcError"||S.details.toLowerCase().includes("does not exist / is not available")||S.details.toLowerCase().includes("missing or invalid. request()")||S.details.toLowerCase().includes("did not match any variant of untagged enum")||S.details.toLowerCase().includes("account upgraded to unsupported contract")||S.details.toLowerCase().includes("eip-7702 not supported")||S.details.toLowerCase().includes("unsupported wc_ method")||S.details.toLowerCase().includes("feature toggled misconfigured"))){if(a&&Object.values(a).some(D=>!D.optional)){const D="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new oc(new ke(D,{details:D}))}if(h&&v.length>1){const N="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new ic(new ke(N,{details:N}))}const O=[];for(const N of v){const D=gg(e,{account:A,chain:u,data:N.data,to:N.to,value:N.value?ci(N.value):void 0});O.push(D),f>0&&await new Promise(M=>setTimeout(M,f))}const U=await Promise.allSettled(O);if(U.every(N=>N.status==="rejected"))throw U[0].reason;const F=U.map(N=>N.status==="fulfilled"?N.value:b4);return{id:fi([...F,Qe(u.id,{size:32}),y4])}}throw p4(g,{...r,account:A,chain:r.chain})}}async function v4(e,r){async function i(A){if(A.endsWith(y4.slice(2))){const g=es(Iw(A,-64,-32)),S=Iw(A,0,-64).slice(2).match(/.{1,64}/g),O=await Promise.all(S.map(F=>b4.slice(2)!==F?e.request({method:"eth_getTransactionReceipt",params:[`0x${F}`]},{dedupe:!0}):void 0)),U=O.some(F=>F===null)?100:O.every(F=>(F==null?void 0:F.status)==="0x1")?200:O.every(F=>(F==null?void 0:F.status)==="0x0")?500:600;return{atomic:!1,chainId:oa(g),receipts:O.filter(Boolean),status:U,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[A]})}const{atomic:a=!1,chainId:u,receipts:c,version:f="2.0.0",...h}=await i(r.id),[m,p]=(()=>{const A=h.status;return A>=100&&A<200?["pending",A]:A>=200&&A<300?["success",A]:A>=300&&A<700?["failure",A]:A==="CONFIRMED"?["success",200]:A==="PENDING"?["pending",100]:[void 0,A]})();return{...h,atomic:a,chainId:u?oa(u):void 0,receipts:(c==null?void 0:c.map(A=>({...A,blockNumber:ci(A.blockNumber),gasUsed:ci(A.gasUsed),status:vH[A.status]})))??[],statusCode:p,status:m,version:f}}async function xH(e,r){const{id:i,pollingInterval:a=e.pollingInterval,status:u=({statusCode:U})=>U===200||U>=300,retryCount:c=4,retryDelay:f=({count:U})=>~~(1<<U)*200,timeout:h=6e4,throwOnFailure:m=!1}=r,p=Uo(["waitForCallsStatus",e.uid,i]),{promise:A,resolve:v,reject:g}=d4();let S;const O=mH(p,{resolve:v,reject:g},U=>{const F=gH(async()=>{const N=D=>{clearTimeout(S),F(),D(),O()};try{const D=await g4(async()=>{const M=await v4(e,{id:i});if(m&&M.status==="failure")throw new bH(M);return M},{retryCount:c,delay:f});if(!u(D))return;N(()=>U.resolve(D))}catch(D){N(()=>U.reject(D))}},{interval:a,emitOnBegin:!0});return F});return S=h?setTimeout(()=>{O(),clearTimeout(S),g(new EH({id:i}))},h):void 0,await A}class EH extends ke{constructor({id:r}){super(`Timed out while waiting for call bundle with id "${r}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Nw=256;let Cm=Nw,Im;function A4(e=11){if(!Im||Cm+e>Nw*2){Im="",Cm=0;for(let r=0;r<Nw;r++)Im+=(256+Math.random()*256|0).toString(16).substring(1)}return Im.substring(Cm,Cm+++e)}function wH(e){const{batch:r,chain:i,ccipRead:a,key:u="base",name:c="Base Client",type:f="base"}=e,h=e.experimental_blockTag??(typeof(i==null?void 0:i.experimental_preconfirmationTime)=="number"?"pending":void 0),m=(i==null?void 0:i.blockTime)??12e3,p=Math.min(Math.max(Math.floor(m/2),500),4e3),A=e.pollingInterval??p,v=e.cacheTime??A,g=e.account?Fr(e.account):void 0,{config:S,request:O,value:U}=e.transport({chain:i,pollingInterval:A}),F={...S,...U},N={account:g,batch:r,cacheTime:v,ccipRead:a,chain:i,key:u,name:c,pollingInterval:A,request:O,transport:F,type:f,uid:A4(),...h?{experimental_blockTag:h}:{}};function D(M){return re=>{const K=re(M);for(const de in N)delete K[de];const oe={...M,...K};return Object.assign(oe,{extend:D(oe)})}}return Object.assign(N,{extend:D(N)})}const Tm=new lg(8192);function SH(e,{enabled:r=!0,id:i}){if(!r||!i)return e();if(Tm.get(i))return Tm.get(i);const a=e().finally(()=>Tm.delete(i));return Tm.set(i,a),a}function CH(e,r={}){return async(i,a={})=>{var v;const{dedupe:u=!1,methods:c,retryDelay:f=150,retryCount:h=3,uid:m}={...r,...a},{method:p}=i;if((v=c==null?void 0:c.exclude)!=null&&v.includes(p))throw new mu(new Error("method not supported"),{method:p});if(c!=null&&c.include&&!c.include.includes(p))throw new mu(new Error("method not supported"),{method:p});const A=u?tc(`${m}.${Uo(i)}`):void 0;return SH(()=>g4(async()=>{try{return await e(i)}catch(g){const S=g;switch(S.code){case Td.code:throw new Td(S);case Rd.code:throw new Rd(S);case Od.code:throw new Od(S,{method:i.method});case Fd.code:throw new Fd(S);case Au.code:throw new Au(S);case Nd.code:throw new Nd(S);case Dd.code:throw new Dd(S);case Bd.code:throw new Bd(S);case Ud.code:throw new Ud(S);case mu.code:throw new mu(S,{method:i.method});case rc.code:throw new rc(S);case _d.code:throw new _d(S);case Kl.code:throw new Kl(S);case Md.code:throw new Md(S);case Pd.code:throw new Pd(S);case jd.code:throw new jd(S);case Ld.code:throw new Ld(S);case kd.code:throw new kd(S);case oc.code:throw new oc(S);case $d.code:throw new $d(S);case qd.code:throw new qd(S);case Hd.code:throw new Hd(S);case zd.code:throw new zd(S);case Vd.code:throw new Vd(S);case ic.code:throw new ic(S);case 5e3:throw new Kl(S);default:throw g instanceof ke?g:new $7(S)}}},{delay:({count:g,error:S})=>{var O;if(S&&S instanceof bd){const U=(O=S==null?void 0:S.headers)==null?void 0:O.get("Retry-After");if(U!=null&&U.match(/\d/))return Number.parseInt(U,10)*1e3}return~~(1<<g)*f},retryCount:h,shouldRetry:({error:g})=>IH(g)}),{enabled:u,id:A})}}function IH(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===rc.code||e.code===Au.code:e instanceof bd&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function TH(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function RH(e,{errorInstance:r=new Error("timed out"),timeout:i,signal:a}){return new Promise((u,c)=>{(async()=>{let f;try{const h=new AbortController;i>0&&(f=setTimeout(()=>{a&&h.abort()},i)),u(await e({signal:(h==null?void 0:h.signal)||null}))}catch(h){(h==null?void 0:h.name)==="AbortError"&&c(r),c(h)}finally{clearTimeout(f)}})()})}function OH(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const xN=OH();function FH(e,r={}){return{async request(i){var v;const{body:a,onRequest:u=r.onRequest,onResponse:c=r.onResponse,timeout:f=r.timeout??1e4}=i,h={...r.fetchOptions??{},...i.fetchOptions??{}},{headers:m,method:p,signal:A}=h;try{const g=await RH(async({signal:O})=>{const U={...h,body:Array.isArray(a)?Uo(a.map(M=>({jsonrpc:"2.0",id:M.id??xN.take(),...M}))):Uo({jsonrpc:"2.0",id:a.id??xN.take(),...a}),headers:{"Content-Type":"application/json",...m},method:p||"POST",signal:A||(f>0?O:null)},F=new Request(e,U),N=await(u==null?void 0:u(F,U))??{...U,url:e};return await fetch(N.url??e,N)},{errorInstance:new pN({body:a,url:e}),timeout:f,signal:!0});c&&await c(g);let S;if((v=g.headers.get("Content-Type"))!=null&&v.startsWith("application/json"))S=await g.json();else{S=await g.text();try{S=JSON.parse(S||"{}")}catch(O){if(g.ok)throw O;S={error:S}}}if(!g.ok)throw new bd({body:a,details:Uo(S.error)||g.statusText,headers:g.headers,status:g.status,url:e});return S}catch(g){throw g instanceof bd||g instanceof pN?g:new bd({body:a,cause:g,url:e})}}}}async function NH(e,{chain:r}){const{id:i,name:a,nativeCurrency:u,rpcUrls:c,blockExplorers:f}=r;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Qe(i),chainName:a,nativeCurrency:u,rpcUrls:c.default.http,blockExplorerUrls:f?Object.values(f).map(({url:h})=>h):void 0}]},{dedupe:!0,retryCount:0})}function DH(e,r){const{abi:i,args:a,bytecode:u,...c}=r,f=dH({abi:i,args:a,bytecode:u});return gg(e,{...c,...c.authorizationList?{to:null}:{},data:f})}async function BH(e){var i;return((i=e.account)==null?void 0:i.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(a=>ih(a))}async function UH(e,r={}){const{account:i=e.account,chainId:a}=r,u=i?Fr(i):void 0,c=a?[u==null?void 0:u.address,[Qe(a)]]:[u==null?void 0:u.address],f=await e.request({method:"wallet_getCapabilities",params:c}),h={};for(const[m,p]of Object.entries(f)){h[Number(m)]={};for(let[A,v]of Object.entries(p))A==="addSubAccount"&&(A="unstable_addSubAccount"),h[Number(m)][A]=v}return typeof a=="number"?h[a]:h}async function _H(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function x4(e,r){var m;const{account:i=e.account,chainId:a,nonce:u}=r;if(!i)throw new Su({docsPath:"/docs/eip7702/prepareAuthorization"});const c=Fr(i),f=(()=>{if(r.executor)return r.executor==="self"?r.executor:Fr(r.executor)})(),h={address:r.contractAddress??r.address,chainId:a,nonce:u};return typeof h.chainId>"u"&&(h.chainId=((m=e.chain)==null?void 0:m.id)??await tr(e,uh,"getChainId")({})),typeof h.nonce>"u"&&(h.nonce=await tr(e,I8,"getTransactionCount")({address:c.address,blockTag:"pending"}),(f==="self"||f!=null&&f.address&&fH(f.address,c.address))&&(h.nonce+=1)),h}async function MH(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>V$(i))}async function PH(e,r){return e.request({method:"wallet_requestPermissions",params:[r]},{retryCount:0})}async function jH(e,r){const{id:i}=r;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function LH(e,r){const{account:i=e.account}=r;if(!i)throw new Su({docsPath:"/docs/eip7702/signAuthorization"});const a=Fr(i);if(!a.signAuthorization)throw new jm({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const u=await x4(e,r);return a.signAuthorization(u)}async function kH(e,{account:r=e.account,message:i}){if(!r)throw new Su({docsPath:"/docs/actions/wallet/signMessage"});const a=Fr(r);if(a.signMessage)return a.signMessage({message:i});const u=typeof i=="string"?tc(i):i.raw instanceof Uint8Array?li(i.raw):i.raw;return e.request({method:"personal_sign",params:[u,a.address]},{retryCount:0})}async function $H(e,r){var p,A,v,g;const{account:i=e.account,chain:a=e.chain,...u}=r;if(!i)throw new Su({docsPath:"/docs/actions/wallet/signTransaction"});const c=Fr(i);mg({account:c,...r});const f=await tr(e,uh,"getChainId")({});a!==null&&h4({currentChainId:f,chain:a});const h=(a==null?void 0:a.formatters)||((p=e.chain)==null?void 0:p.formatters),m=((A=h==null?void 0:h.transactionRequest)==null?void 0:A.format)||gS;return c.signTransaction?c.signTransaction({...u,chainId:f},{serializer:(g=(v=e.chain)==null?void 0:v.serializers)==null?void 0:g.transaction}):await e.request({method:"eth_signTransaction",params:[{...m(u),chainId:Qe(f),from:c.address}]},{retryCount:0})}async function qH(e,r){const{account:i=e.account,domain:a,message:u,primaryType:c}=r;if(!i)throw new Su({docsPath:"/docs/actions/wallet/signTypedData"});const f=Fr(i),h={EIP712Domain:Z8({domain:a}),...r.types};if(X8({domain:a,message:u,primaryType:c,types:h}),f.signTypedData)return f.signTypedData({domain:a,message:u,primaryType:c,types:h});const m=r7({domain:a,message:u,primaryType:c,types:h});return e.request({method:"eth_signTypedData_v4",params:[f.address,m]},{retryCount:0})}async function HH(e,{id:r}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Qe(r)}]},{retryCount:0})}async function zH(e,r){return await e.request({method:"wallet_watchAsset",params:r},{retryCount:0})}function VH(e){return{addChain:r=>NH(e,r),deployContract:r=>DH(e,r),getAddresses:()=>BH(e),getCallsStatus:r=>v4(e,r),getCapabilities:r=>UH(e,r),getChainId:()=>uh(e),getPermissions:()=>_H(e),prepareAuthorization:r=>x4(e,r),prepareTransactionRequest:r=>bS(e,r),requestAddresses:()=>MH(e),requestPermissions:r=>PH(e,r),sendCalls:r=>AH(e,r),sendRawTransaction:r=>m4(e,r),sendTransaction:r=>gg(e,r),showCallsStatus:r=>jH(e,r),signAuthorization:r=>LH(e,r),signMessage:r=>kH(e,r),signTransaction:r=>$H(e,r),signTypedData:r=>qH(e,r),switchChain:r=>HH(e,r),waitForCallsStatus:r=>xH(e,r),watchAsset:r=>zH(e,r),writeContract:r=>yH(e,r)}}function vd(e){const{key:r="wallet",name:i="Wallet Client",transport:a}=e;return wH({...e,key:r,name:i,transport:a,type:"walletClient"}).extend(VH)}function GH({key:e,methods:r,name:i,request:a,retryCount:u=3,retryDelay:c=150,timeout:f,type:h},m){const p=A4();return{config:{key:e,methods:r,name:i,request:a,retryCount:u,retryDelay:c,timeout:f,type:h},request:CH(a,{methods:r,retryCount:u,retryDelay:c,uid:p}),value:m}}class QH extends ke{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Ad(e,r={}){const{batch:i,fetchOptions:a,key:u="http",methods:c,name:f="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:m,retryDelay:p,raw:A}=r;return({chain:v,retryCount:g,timeout:S})=>{const{batchSize:O=1e3,wait:U=0}=typeof i=="object"?i:{},F=r.retryCount??g,N=S??r.timeout??1e4,D=v==null?void 0:v.rpcUrls.default.http[0];if(!D)throw new QH;const M=FH(D,{fetchOptions:a,onRequest:h,onResponse:m,timeout:N});return GH({key:u,methods:c,name:f,async request({method:re,params:K}){const oe={method:re,params:K},{schedule:de}=hH({id:D,wait:U,shouldSplitBatch(z){return z.length>O},fn:z=>M.request({body:z}),sort:(z,V)=>z.id-V.id}),ue=async z=>i?de(z):[await M.request({body:z})],[{error:T,result:$}]=await ue(oe);if(A)return{error:T,result:$};if(T)throw new mS({body:oe,error:T,url:D});return $},retryCount:F,retryDelay:p,timeout:N,type:"http"},{fetchOptions:a,url:D})}}const xd=TH({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),qt={DB_HOST:{key:"DB_HOST",isSecret:!1,type:"string",defaultValue:"localhost",description:"Paima Engine Postgres Host URL. Example: 'localhost'"},DB_NAME:{key:"DB_NAME",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Database Name. Example: 'postgres'"},DB_PORT:{key:"DB_PORT",isSecret:!1,type:"number",defaultValue:5432,description:"Paima Engine Postgres Port. Example: '5432'"},DB_PW:{key:"DB_PW",isSecret:!0,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Password. Example: 'password'"},DB_USER:{key:"DB_USER",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres User. Example: 'postgres'"},NODE_ENV:{key:"NODE_ENV",isSecret:!1,type:"string",defaultValue:void 0,description:"Node Environment. Example: 'development' or 'production'"},ORCHESTRATOR_URL:{key:"ORCHESTRATOR_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"Paima Engine Orchestrator URL. Example: 'http://localhost'"},ORCHESTRATOR_PORT:{key:"ORCHESTRATOR_PORT",isSecret:!1,type:"number",defaultValue:3e3,description:"Paima Engine Orchestrator Port. Used by the TUI to monitor processes. Example: '3000'"},TUI_LOG_URL:{key:"TUI_LOG_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"TUI Log URL. Example: 'http://localhost'"},TUI_LOG_PORT:{key:"TUI_LOG_PORT",isSecret:!1,type:"number",defaultValue:11033,description:"TUI Log Port. Example: '11033'"},SHELL:{isSystem:!0,key:"SHELL",isSecret:!1,type:"string",defaultValue:void 0,description:"System shell path. This is set by the OS. Used to run TUI/tmux commands"},TMUX:{isSystem:!0,key:"TMUX",isSecret:!1,type:"string",defaultValue:void 0,description:"System tmux path. This is set by Tmux itself. Used to check if the process is running in a tmux session"},RECAPTCHA_V3_FRONTEND:{key:"RECAPTCHA_V3_FRONTEND",isSecret:!1,type:"string",defaultValue:void 0,description:"ReCaptcha V3 Frontend Key. Used by the Batcher to verify requests. Leave empty to disable. Example: '6Lc123456789012345678901234567890'"},BATCHER_PORT:{key:"BATCHER_PORT",isSecret:!1,type:"number",defaultValue:3334,description:"Batcher Port. Example: '3334'"},STORE_HISTORICAL_GAME_INPUTS:{key:"STORE_HISTORICAL_GAME_INPUTS",isSecret:!1,type:"boolean",defaultValue:!0,description:"Store Historical Game Inputs. Example: 'true' or 'false'"},MQTT_BROKER:{key:"MQTT_BROKER",isSecret:!1,type:"boolean",defaultValue:!0,description:"MQTT Broker. Example: 'true' or 'false'"},MQTT_ENGINE_BROKER_URL:{key:"MQTT_ENGINE_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8883",description:"MQTT Engine Broker URL. Example: 'ws://127.0.0.1:8883'"},MQTT_ENGINE_BROKER_PORT:{key:"MQTT_ENGINE_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8883,description:"MQTT Engine Broker Port. Example: '8883'"},MQTT_BATCHER_BROKER_URL:{key:"MQTT_BATCHER_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8884",description:"MQTT Batcher Broker URL. Example: 'ws://127.0.0.1:8884'"},MQTT_BATCHER_BROKER_PORT:{key:"MQTT_BATCHER_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8884,description:"MQTT Batcher Broker Port. Example: '8884'"},PAIMA_API_PORT:{key:"PAIMA_API_PORT",isSecret:!1,type:"number",defaultValue:9999,description:"Main Paima API Port. Used by developers custom endpoints and RPC endpoints. Example: '9999'"},PAIMA_EXPLORER_PORT:{key:"PAIMA_EXPLORER_PORT",isSecret:!1,type:"number",defaultValue:10590,description:"Explorer Port. Example: '10590'"},PAIMA_CHAIN_ID:{key:"PAIMA_CHAIN_ID",isSecret:!1,type:"number",defaultValue:87401284021,description:"Paima Chain ID. Example: '87401284021'"},PGLITE:{key:"PGLITE",isSecret:!1,type:"boolean",defaultValue:!0,description:"Enable single connection mode and other specific PGLite features. IMPORTANT enable only for development. ('true' or 'false')"},DEBUG_PGLITE:{key:"DEBUG_PGLITE",isSecret:!1,type:"number",defaultValue:void 0,description:"Enable PGLite Debug/Verbose mode. Example: '1'"},OTEL_COLLECTOR_PORT:{key:"OTEL_COLLECTOR_PORT",isSecret:!1,type:"number",defaultValue:4318,description:"OTEL Collector Port. Example: '4318'"},DOCS_PORT:{key:"DOCS_PORT",isSecret:!1,type:"number",defaultValue:10600,description:"Docs Port. Example: '10600'"}};class at{static get MQTT_BROKER(){return at.getConfig(qt.MQTT_BROKER)}static get MQTT_ENGINE_BROKER_PORT(){return at.getConfig(qt.MQTT_ENGINE_BROKER_PORT)}static get MQTT_BATCHER_BROKER_PORT(){return at.getConfig(qt.MQTT_BATCHER_BROKER_PORT)}static get MQTT_ENGINE_BROKER_URL(){return at.getConfig(qt.MQTT_ENGINE_BROKER_URL)}static get MQTT_BATCHER_BROKER_URL(){return at.getConfig(qt.MQTT_BATCHER_BROKER_URL)}static get DB_HOST(){return at.getConfig(qt.DB_HOST)}static get DB_NAME(){return at.getConfig(qt.DB_NAME)}static get DB_PORT(){return at.getConfig(qt.DB_PORT)}static get DB_PW(){return at.getConfig(qt.DB_PW)}static get DB_USER(){return at.getConfig(qt.DB_USER)}static get NODE_ENV(){return at.getConfig(qt.NODE_ENV)}static get ORCHESTRATOR_URL(){return at.getConfig(qt.ORCHESTRATOR_URL)}static get ORCHESTRATOR_PORT(){return at.getConfig(qt.ORCHESTRATOR_PORT)}static get TUI_LOG_URL(){return at.getConfig(qt.TUI_LOG_URL)}static get TUI_LOG_PORT(){return at.getConfig(qt.TUI_LOG_PORT)}static get SHELL(){return at.getConfig(qt.SHELL)}static get TMUX(){return at.getConfig(qt.TMUX)}static get PAIMA_API_PORT(){return at.getConfig(qt.PAIMA_API_PORT)}static get RECAPTCHA_V3_FRONTEND(){return at.getConfig(qt.RECAPTCHA_V3_FRONTEND)}static get BATCHER_PORT(){return at.getConfig(qt.BATCHER_PORT)}static get PAIMA_EXPLORER_PORT(){return at.getConfig(qt.PAIMA_EXPLORER_PORT)}static get PAIMA_CHAIN_ID(){return at.getConfig(qt.PAIMA_CHAIN_ID)}static get PGLITE(){return at.getConfig(qt.PGLITE)}static get DEBUG_PGLITE(){return at.getConfig(qt.DEBUG_PGLITE)}static get OTEL_COLLECTOR_PORT(){return at.getConfig(qt.OTEL_COLLECTOR_PORT)}static get DOCS_PORT(){return at.getConfig(qt.DOCS_PORT)}static getConfig(r){switch(r.type){case"string":return at.getString(r.key,r.defaultValue);case"number":return at.getNumber(r.key,r.defaultValue);case"boolean":return at.getBoolean(r.key,r.defaultValue);default:throw new Error(`Invalid config type: ${r}`)}}static getCurrentConfig(r=!1){const i="********",a={};return Object.entries(qt).forEach(([u,c])=>{c.isSecret?a[u]=r?at[u]:i:a[u]=at[u]}),a}static getDocumentation(){return Object.fromEntries(Object.entries(qt).map(([r,i])=>[r,{defaultValue:i.defaultValue,description:i.description}]))}static getBoolean(r,i=!1){const a=at.getEnv(r);return a==null||a===""?i:["true","1","yes"].includes(a.toLowerCase())}static getNumber(r,i=0){const a=at.getEnv(r);return a==null||a===""?i:parseInt(a,10)}static getString(r,i=""){return at.getEnv(r)??i}static getEnv(r){try{return Deno.env.get(r)}catch{return It.env[r]}}}function YH(e){return yn(e)&&!Ur(e)&&!ch(e)&&Symbol.asyncIterator in e}function Ur(e){return Array.isArray(e)}function E4(e){return typeof e=="bigint"}function lh(e){return typeof e=="boolean"}function vS(e){return e instanceof globalThis.Date}function KH(e){return typeof e=="function"}function XH(e){return yn(e)&&!Ur(e)&&!ch(e)&&Symbol.iterator in e}function ZH(e){return e===null}function di(e){return typeof e=="number"}function yn(e){return typeof e=="object"&&e!==null}function w4(e){return e instanceof globalThis.RegExp}function ln(e){return typeof e=="string"}function JH(e){return typeof e=="symbol"}function ch(e){return e instanceof globalThis.Uint8Array}function mn(e){return e===void 0}function WH(e){return e.map(r=>Km(r))}function ez(e){return new Date(e.getTime())}function tz(e){return new Uint8Array(e)}function nz(e){return new RegExp(e.source,e.flags)}function rz(e){const r={};for(const i of Object.getOwnPropertyNames(e))r[i]=Km(e[i]);for(const i of Object.getOwnPropertySymbols(e))r[i]=Km(e[i]);return r}function Km(e){return Ur(e)?WH(e):vS(e)?ez(e):ch(e)?tz(e):w4(e)?nz(e):yn(e)?rz(e):e}function Gr(e){return Km(e)}function AS(e,r){return Gr(r===void 0?e:{...r,...e})}function oz(e){return hi(e)&&globalThis.Symbol.asyncIterator in e}function iz(e){return hi(e)&&globalThis.Symbol.iterator in e}function az(e){return e instanceof globalThis.Promise}function yg(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function sz(e){return e instanceof globalThis.Map}function uz(e){return e instanceof globalThis.Set}function lz(e){return globalThis.ArrayBuffer.isView(e)}function S4(e){return e instanceof globalThis.Uint8Array}function cz(e,r){return r in e}function hi(e){return e!==null&&typeof e=="object"}function ts(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Cu(e){return e===void 0}function xS(e){return e===null}function ES(e){return typeof e=="boolean"}function gu(e){return typeof e=="number"}function fz(e){return globalThis.Number.isInteger(e)}function wS(e){return typeof e=="bigint"}function fh(e){return typeof e=="string"}function C4(e){return typeof e=="function"}function SS(e){return typeof e=="symbol"}function dz(e){return wS(e)||ES(e)||xS(e)||gu(e)||fh(e)||SS(e)||Cu(e)}var ns;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function r(f,h){return e.ExactOptionalPropertyTypes?h in f:f[h]!==void 0}e.IsExactOptionalProperty=r;function i(f){const h=hi(f);return e.AllowArrayObject?h:h&&!ts(f)}e.IsObjectLike=i;function a(f){return i(f)&&!(f instanceof Date)&&!(f instanceof Uint8Array)}e.IsRecordLike=a;function u(f){return e.AllowNaN?gu(f):Number.isFinite(f)}e.IsNumberLike=u;function c(f){const h=Cu(f);return e.AllowNullVoid?h||f===null:h}e.IsVoidLike=c})(ns||(ns={}));function hz(e){return globalThis.Object.freeze(e).map(r=>Xm(r))}function pz(e){const r={};for(const i of Object.getOwnPropertyNames(e))r[i]=Xm(e[i]);for(const i of Object.getOwnPropertySymbols(e))r[i]=Xm(e[i]);return globalThis.Object.freeze(r)}function Xm(e){return Ur(e)?hz(e):vS(e)?e:ch(e)?e:w4(e)?e:yn(e)?pz(e):e}function ze(e,r){const i=r!==void 0?{...r,...e}:e;switch(ns.InstanceMode){case"freeze":return Xm(i);case"clone":return Gr(i);default:return i}}class mi extends Error{constructor(r){super(r)}}const yo=Symbol.for("TypeBox.Transform"),dh=Symbol.for("TypeBox.Readonly"),aa=Symbol.for("TypeBox.Optional"),bg=Symbol.for("TypeBox.Hint"),Je=Symbol.for("TypeBox.Kind");function CS(e){return yn(e)&&e[dh]==="Readonly"}function os(e){return yn(e)&&e[aa]==="Optional"}function I4(e){return Rt(e,"Any")}function T4(e){return Rt(e,"Argument")}function hc(e){return Rt(e,"Array")}function vg(e){return Rt(e,"AsyncIterator")}function Ag(e){return Rt(e,"BigInt")}function hh(e){return Rt(e,"Boolean")}function pc(e){return Rt(e,"Computed")}function mc(e){return Rt(e,"Constructor")}function mz(e){return Rt(e,"Date")}function gc(e){return Rt(e,"Function")}function yc(e){return Rt(e,"Integer")}function vo(e){return Rt(e,"Intersect")}function xg(e){return Rt(e,"Iterator")}function Rt(e,r){return yn(e)&&Je in e&&e[Je]===r}function R4(e){return lh(e)||di(e)||ln(e)}function Iu(e){return Rt(e,"Literal")}function Tu(e){return Rt(e,"MappedKey")}function Zr(e){return Rt(e,"MappedResult")}function ph(e){return Rt(e,"Never")}function gz(e){return Rt(e,"Not")}function IS(e){return Rt(e,"Null")}function bc(e){return Rt(e,"Number")}function $o(e){return Rt(e,"Object")}function Eg(e){return Rt(e,"Promise")}function wg(e){return Rt(e,"Record")}function Nr(e){return Rt(e,"Ref")}function O4(e){return Rt(e,"RegExp")}function mh(e){return Rt(e,"String")}function TS(e){return Rt(e,"Symbol")}function Ru(e){return Rt(e,"TemplateLiteral")}function yz(e){return Rt(e,"This")}function Sg(e){return yn(e)&&yo in e}function Ou(e){return Rt(e,"Tuple")}function RS(e){return Rt(e,"Undefined")}function Nn(e){return Rt(e,"Union")}function bz(e){return Rt(e,"Uint8Array")}function vz(e){return Rt(e,"Unknown")}function Az(e){return Rt(e,"Unsafe")}function xz(e){return Rt(e,"Void")}function F4(e){return yn(e)&&Je in e&&ln(e[Je])}function ta(e){return I4(e)||T4(e)||hc(e)||hh(e)||Ag(e)||vg(e)||pc(e)||mc(e)||mz(e)||gc(e)||yc(e)||vo(e)||xg(e)||Iu(e)||Tu(e)||Zr(e)||ph(e)||gz(e)||IS(e)||bc(e)||$o(e)||Eg(e)||wg(e)||Nr(e)||O4(e)||mh(e)||TS(e)||Ru(e)||yz(e)||Ou(e)||RS(e)||Nn(e)||bz(e)||vz(e)||Az(e)||xz(e)||F4(e)}const Ez=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function N4(e){try{return new RegExp(e),!0}catch{return!1}}function OS(e){if(!ln(e))return!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i>=7&&i<=13||i===27||i===127)return!1}return!0}function D4(e){return FS(e)||Vn(e)}function id(e){return mn(e)||E4(e)}function Gt(e){return mn(e)||di(e)}function FS(e){return mn(e)||lh(e)}function jt(e){return mn(e)||ln(e)}function wz(e){return mn(e)||ln(e)&&OS(e)&&N4(e)}function Sz(e){return mn(e)||ln(e)&&OS(e)}function B4(e){return mn(e)||Vn(e)}function Zm(e){return yn(e)&&e[aa]==="Optional"}function Mo(e){return Ot(e,"Any")&&jt(e.$id)}function Cz(e){return Ot(e,"Argument")&&di(e.index)}function Fu(e){return Ot(e,"Array")&&e.type==="array"&&jt(e.$id)&&Vn(e.items)&&Gt(e.minItems)&&Gt(e.maxItems)&&FS(e.uniqueItems)&&B4(e.contains)&&Gt(e.minContains)&&Gt(e.maxContains)}function NS(e){return Ot(e,"AsyncIterator")&&e.type==="AsyncIterator"&&jt(e.$id)&&Vn(e.items)}function Cg(e){return Ot(e,"BigInt")&&e.type==="bigint"&&jt(e.$id)&&id(e.exclusiveMaximum)&&id(e.exclusiveMinimum)&&id(e.maximum)&&id(e.minimum)&&id(e.multipleOf)}function Nu(e){return Ot(e,"Boolean")&&e.type==="boolean"&&jt(e.$id)}function Iz(e){return Ot(e,"Computed")&&ln(e.target)&&Ur(e.parameters)&&e.parameters.every(r=>Vn(r))}function Ig(e){return Ot(e,"Constructor")&&e.type==="Constructor"&&jt(e.$id)&&Ur(e.parameters)&&e.parameters.every(r=>Vn(r))&&Vn(e.returns)}function Tg(e){return Ot(e,"Date")&&e.type==="Date"&&jt(e.$id)&&Gt(e.exclusiveMaximumTimestamp)&&Gt(e.exclusiveMinimumTimestamp)&&Gt(e.maximumTimestamp)&&Gt(e.minimumTimestamp)&&Gt(e.multipleOfTimestamp)}function Rg(e){return Ot(e,"Function")&&e.type==="Function"&&jt(e.$id)&&Ur(e.parameters)&&e.parameters.every(r=>Vn(r))&&Vn(e.returns)}function sa(e){return Ot(e,"Integer")&&e.type==="integer"&&jt(e.$id)&&Gt(e.exclusiveMaximum)&&Gt(e.exclusiveMinimum)&&Gt(e.maximum)&&Gt(e.minimum)&&Gt(e.multipleOf)}function U4(e){return yn(e)&&Object.entries(e).every(([r,i])=>OS(r)&&Vn(i))}function Du(e){return Ot(e,"Intersect")&&!(ln(e.type)&&e.type!=="object")&&Ur(e.allOf)&&e.allOf.every(r=>Vn(r)&&!Dz(r))&&jt(e.type)&&(FS(e.unevaluatedProperties)||B4(e.unevaluatedProperties))&&jt(e.$id)}function DS(e){return Ot(e,"Iterator")&&e.type==="Iterator"&&jt(e.$id)&&Vn(e.items)}function Ot(e,r){return yn(e)&&Je in e&&e[Je]===r}function _4(e){return is(e)&&ln(e.const)}function M4(e){return is(e)&&di(e.const)}function P4(e){return is(e)&&lh(e.const)}function is(e){return Ot(e,"Literal")&&jt(e.$id)&&Tz(e.const)}function Tz(e){return lh(e)||di(e)||ln(e)}function Rz(e){return Ot(e,"MappedKey")&&Ur(e.keys)&&e.keys.every(r=>di(r)||ln(r))}function Oz(e){return Ot(e,"MappedResult")&&U4(e.properties)}function as(e){return Ot(e,"Never")&&yn(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function ac(e){return Ot(e,"Not")&&Vn(e.not)}function BS(e){return Ot(e,"Null")&&e.type==="null"&&jt(e.$id)}function Rr(e){return Ot(e,"Number")&&e.type==="number"&&jt(e.$id)&&Gt(e.exclusiveMaximum)&&Gt(e.exclusiveMinimum)&&Gt(e.maximum)&&Gt(e.minimum)&&Gt(e.multipleOf)}function Jt(e){return Ot(e,"Object")&&e.type==="object"&&jt(e.$id)&&U4(e.properties)&&D4(e.additionalProperties)&&Gt(e.minProperties)&&Gt(e.maxProperties)}function US(e){return Ot(e,"Promise")&&e.type==="Promise"&&jt(e.$id)&&Vn(e.item)}function zn(e){return Ot(e,"Record")&&e.type==="object"&&jt(e.$id)&&D4(e.additionalProperties)&&yn(e.patternProperties)&&(r=>{const i=Object.getOwnPropertyNames(r.patternProperties);return i.length===1&&N4(i[0])&&yn(r.patternProperties)&&Vn(r.patternProperties[i[0]])})(e)}function Fz(e){return Ot(e,"Ref")&&jt(e.$id)&&ln(e.$ref)}function Gd(e){return Ot(e,"RegExp")&&jt(e.$id)&&ln(e.source)&&ln(e.flags)&&Gt(e.maxLength)&&Gt(e.minLength)}function Po(e){return Ot(e,"String")&&e.type==="string"&&jt(e.$id)&&Gt(e.minLength)&&Gt(e.maxLength)&&wz(e.pattern)&&Sz(e.format)}function Qd(e){return Ot(e,"Symbol")&&e.type==="symbol"&&jt(e.$id)}function Yd(e){return Ot(e,"TemplateLiteral")&&e.type==="string"&&ln(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function Nz(e){return Ot(e,"This")&&jt(e.$id)&&ln(e.$ref)}function Dz(e){return yn(e)&&yo in e}function Og(e){return Ot(e,"Tuple")&&e.type==="array"&&jt(e.$id)&&di(e.minItems)&&di(e.maxItems)&&e.minItems===e.maxItems&&(mn(e.items)&&mn(e.additionalItems)&&e.minItems===0||Ur(e.items)&&e.items.every(r=>Vn(r)))}function xu(e){return Ot(e,"Undefined")&&e.type==="undefined"&&jt(e.$id)}function ia(e){return Ot(e,"Union")&&jt(e.$id)&&yn(e)&&Ur(e.anyOf)&&e.anyOf.every(r=>Vn(r))}function gh(e){return Ot(e,"Uint8Array")&&e.type==="Uint8Array"&&jt(e.$id)&&Gt(e.minByteLength)&&Gt(e.maxByteLength)}function jo(e){return Ot(e,"Unknown")&&jt(e.$id)}function Bz(e){return Ot(e,"Unsafe")}function Fg(e){return Ot(e,"Void")&&e.type==="void"&&jt(e.$id)}function Uz(e){return yn(e)&&Je in e&&ln(e[Je])&&!Ez.includes(e[Je])}function Vn(e){return yn(e)&&(Mo(e)||Cz(e)||Fu(e)||Nu(e)||Cg(e)||NS(e)||Iz(e)||Ig(e)||Tg(e)||Rg(e)||sa(e)||Du(e)||DS(e)||is(e)||Rz(e)||Oz(e)||as(e)||ac(e)||BS(e)||Rr(e)||Jt(e)||US(e)||zn(e)||Fz(e)||Gd(e)||Po(e)||Qd(e)||Yd(e)||Nz(e)||Og(e)||xu(e)||ia(e)||gh(e)||jo(e)||Bz(e)||Fg(e)||Uz(e))}const _z="(true|false)",Lm="(0|[1-9][0-9]*)",j4="(.*)",Mz="(?!.*)",sc=`^${Lm}$`,uc=`^${j4}$`,Pz=`^${Mz}$`,_S=new Map;function jz(e){return _S.has(e)}function gi(e,r){_S.set(e,r)}function Lz(e){return _S.get(e)}const L4=new Map;function k4(e){return L4.has(e)}function kz(e){return L4.get(e)}function $z(e,r){return e.includes(r)}function qz(e){return[...new Set(e)]}function Hz(e,r){return e.filter(i=>r.includes(i))}function zz(e,r){return e.reduce((i,a)=>Hz(i,a),r)}function Vz(e){return e.length===1?e[0]:e.length>1?zz(e.slice(1),e[0]):[]}function Gz(e){const r=[];for(const i of e)r.push(...i);return r}function Kd(e){return ze({[Je]:"Any"},e)}function MS(e,r){return ze({[Je]:"Array",type:"array",items:e},r)}function Qz(e){return ze({[Je]:"Argument",index:e})}function PS(e,r){return ze({[Je]:"AsyncIterator",type:"AsyncIterator",items:e},r)}function wn(e,r,i){return ze({[Je]:"Computed",target:e,parameters:r},i)}function Yz(e,r){const{[r]:i,...a}=e;return a}function Qr(e,r){return r.reduce((i,a)=>Yz(i,a),e)}function cn(e){return ze({[Je]:"Never",not:{}},e)}function Gn(e){return ze({[Je]:"MappedResult",properties:e})}function jS(e,r,i){return ze({[Je]:"Constructor",type:"Constructor",parameters:e,returns:r},i)}function yh(e,r,i){return ze({[Je]:"Function",type:"Function",parameters:e,returns:r},i)}function Dw(e,r){return ze({[Je]:"Union",anyOf:e},r)}function Kz(e){return e.some(r=>os(r))}function EN(e){return e.map(r=>os(r)?Xz(r):r)}function Xz(e){return Qr(e,[aa])}function Zz(e,r){return Kz(e)?ls(Dw(EN(e),r)):Dw(EN(e),r)}function vc(e,r){return e.length===1?ze(e[0],r):e.length===0?cn(r):Zz(e,r)}function Qn(e,r){return e.length===0?cn(r):e.length===1?ze(e[0],r):Dw(e,r)}class wN extends mi{}function Jz(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function LS(e,r,i){return e[r]===i&&e.charCodeAt(r-1)!==92}function Wi(e,r){return LS(e,r,"(")}function Xd(e,r){return LS(e,r,")")}function $4(e,r){return LS(e,r,"|")}function Wz(e){if(!(Wi(e,0)&&Xd(e,e.length-1)))return!1;let r=0;for(let i=0;i<e.length;i++)if(Wi(e,i)&&(r+=1),Xd(e,i)&&(r-=1),r===0&&i!==e.length-1)return!1;return!0}function e2(e){return e.slice(1,e.length-1)}function t2(e){let r=0;for(let i=0;i<e.length;i++)if(Wi(e,i)&&(r+=1),Xd(e,i)&&(r-=1),$4(e,i)&&r===0)return!0;return!1}function n2(e){for(let r=0;r<e.length;r++)if(Wi(e,r))return!0;return!1}function r2(e){let[r,i]=[0,0];const a=[];for(let c=0;c<e.length;c++)if(Wi(e,c)&&(r+=1),Xd(e,c)&&(r-=1),$4(e,c)&&r===0){const f=e.slice(i,c);f.length>0&&a.push(lc(f)),i=c+1}const u=e.slice(i);return u.length>0&&a.push(lc(u)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function o2(e){function r(u,c){if(!Wi(u,c))throw new wN("TemplateLiteralParser: Index must point to open parens");let f=0;for(let h=c;h<u.length;h++)if(Wi(u,h)&&(f+=1),Xd(u,h)&&(f-=1),f===0)return[c,h];throw new wN("TemplateLiteralParser: Unclosed group parens in expression")}function i(u,c){for(let f=c;f<u.length;f++)if(Wi(u,f))return[c,f];return[c,u.length]}const a=[];for(let u=0;u<e.length;u++)if(Wi(e,u)){const[c,f]=r(e,u),h=e.slice(c,f+1);a.push(lc(h)),u=f}else{const[c,f]=i(e,u),h=e.slice(c,f);h.length>0&&a.push(lc(h)),u=f-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function lc(e){return Wz(e)?lc(e2(e)):t2(e)?r2(e):n2(e)?o2(e):{type:"const",const:Jz(e)}}function kS(e){return lc(e.slice(1,e.length-1))}class i2 extends mi{}function a2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function s2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function u2(e){return e.type==="const"&&e.const===".*"}function Zd(e){return a2(e)||u2(e)?!1:s2(e)?!0:e.type==="and"?e.expr.every(r=>Zd(r)):e.type==="or"?e.expr.every(r=>Zd(r)):e.type==="const"?!0:(()=>{throw new i2("Unknown expression type")})()}function l2(e){const r=kS(e.pattern);return Zd(r)}class c2 extends mi{}function*q4(e){if(e.length===1)return yield*e[0];for(const r of e[0])for(const i of q4(e.slice(1)))yield`${r}${i}`}function*f2(e){return yield*q4(e.expr.map(r=>[...Ng(r)]))}function*d2(e){for(const r of e.expr)yield*Ng(r)}function*h2(e){return yield e.const}function*Ng(e){return e.type==="and"?yield*f2(e):e.type==="or"?yield*d2(e):e.type==="const"?yield*h2(e):(()=>{throw new c2("Unknown expression")})()}function H4(e){const r=kS(e.pattern);return Zd(r)?[...Ng(r)]:[]}function gn(e,r){return ze({[Je]:"Literal",const:e,type:typeof e},r)}function z4(e){return ze({[Je]:"Boolean",type:"boolean"},e)}function $S(e){return ze({[Je]:"BigInt",type:"bigint"},e)}function Bu(e){return ze({[Je]:"Number",type:"number"},e)}function Eu(e){return ze({[Je]:"String",type:"string"},e)}function*p2(e){const r=e.trim().replace(/"|'/g,"");return r==="boolean"?yield z4():r==="number"?yield Bu():r==="bigint"?yield $S():r==="string"?yield Eu():yield(()=>{const i=r.split("|").map(a=>gn(a.trim()));return i.length===0?cn():i.length===1?i[0]:vc(i)})()}function*m2(e){if(e[1]!=="{"){const r=gn("$"),i=Bw(e.slice(1));return yield*[r,...i]}for(let r=2;r<e.length;r++)if(e[r]==="}"){const i=p2(e.slice(2,r)),a=Bw(e.slice(r+1));return yield*[...i,...a]}yield gn(e)}function*Bw(e){for(let r=0;r<e.length;r++)if(e[r]==="$"){const i=gn(e.slice(0,r)),a=m2(e.slice(r));return yield*[i,...a]}yield gn(e)}function g2(e){return[...Bw(e)]}class y2 extends mi{}function b2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function V4(e,r){return Ru(e)?e.pattern.slice(1,e.pattern.length-1):Nn(e)?`(${e.anyOf.map(i=>V4(i,r)).join("|")})`:bc(e)?`${r}${Lm}`:yc(e)?`${r}${Lm}`:Ag(e)?`${r}${Lm}`:mh(e)?`${r}${j4}`:Iu(e)?`${r}${b2(e.const.toString())}`:hh(e)?`${r}${_z}`:(()=>{throw new y2(`Unexpected Kind '${e[Je]}'`)})()}function SN(e){return`^${e.map(r=>V4(r,"")).join("")}$`}function Jm(e){const i=H4(e).map(a=>gn(a));return vc(i)}function G4(e,r){const i=ln(e)?SN(g2(e)):SN(e);return ze({[Je]:"TemplateLiteral",type:"string",pattern:i},r)}function v2(e){return H4(e).map(i=>i.toString())}function A2(e){const r=[];for(const i of e)r.push(...ss(i));return r}function x2(e){return[e.toString()]}function ss(e){return[...new Set(Ru(e)?v2(e):Nn(e)?A2(e.anyOf):Iu(e)?x2(e.const):bc(e)?["[number]"]:yc(e)?["[number]"]:[])]}function E2(e,r,i){const a={};for(const u of Object.getOwnPropertyNames(r))a[u]=Dg(e,ss(r[u]),i);return a}function w2(e,r,i){return E2(e,r.properties,i)}function S2(e,r,i){const a=w2(e,r,i);return Gn(a)}function Q4(e,r){return e.map(i=>Y4(i,r))}function C2(e){return e.filter(r=>!ph(r))}function I2(e,r){return J4(C2(Q4(e,r)))}function T2(e){return e.some(r=>ph(r))?[]:e}function R2(e,r){return vc(T2(Q4(e,r)))}function O2(e,r){return r in e?e[r]:r==="[number]"?vc(e):cn()}function F2(e,r){return r==="[number]"?e:cn()}function N2(e,r){return r in e?e[r]:cn()}function Y4(e,r){return vo(e)?I2(e.allOf,r):Nn(e)?R2(e.anyOf,r):Ou(e)?O2(e.items??[],r):hc(e)?F2(e.items,r):$o(e)?N2(e.properties,r):cn()}function K4(e,r){return r.map(i=>Y4(e,i))}function CN(e,r){return vc(K4(e,r))}function Dg(e,r,i){if(Nr(e)||Nr(r)){const a="Index types using Ref parameters require both Type and Key to be of TSchema";if(!ta(e)||!ta(r))throw new mi(a);return wn("Index",[e,r])}return Zr(r)?S2(e,r,i):Tu(r)?_2(e,r,i):ze(ta(r)?CN(e,ss(r)):CN(e,r),i)}function D2(e,r,i){return{[r]:Dg(e,[r],Gr(i))}}function B2(e,r,i){return r.reduce((a,u)=>({...a,...D2(e,u,i)}),{})}function U2(e,r,i){return B2(e,r.keys,i)}function _2(e,r,i){const a=U2(e,r,i);return Gn(a)}function qS(e,r){return ze({[Je]:"Iterator",type:"Iterator",items:e},r)}function M2(e){const r=[];for(let i in e)os(e[i])||r.push(i);return r}function P2(e,r){const i=M2(e),a=i.length>0?{[Je]:"Object",type:"object",properties:e,required:i}:{[Je]:"Object",type:"object",properties:e};return ze(a,r)}var On=P2;function X4(e,r){return ze({[Je]:"Promise",type:"Promise",item:e},r)}function j2(e){return ze(Qr(e,[dh]))}function L2(e){return ze({...e,[dh]:"Readonly"})}function k2(e,r){return r===!1?j2(e):L2(e)}function us(e,r){const i=r??!0;return Zr(e)?H2(e,i):k2(e,i)}function $2(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=us(e[a],r);return i}function q2(e,r){return $2(e.properties,r)}function H2(e,r){const i=q2(e,r);return Gn(i)}function Ac(e,r){return ze(e.length>0?{[Je]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[Je]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},r)}function Z4(e,r){return e in r?go(e,r[e]):Gn(r)}function z2(e){return{[e]:gn(e)}}function V2(e){const r={};for(const i of e)r[i]=gn(i);return r}function G2(e,r){return $z(r,e)?z2(e):V2(r)}function Q2(e,r){const i=G2(e,r);return Z4(e,i)}function ad(e,r){return r.map(i=>go(e,i))}function Y2(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(r))i[a]=go(e,r[a]);return i}function go(e,r){const i={...r};return os(r)?ls(go(e,Qr(r,[aa]))):CS(r)?us(go(e,Qr(r,[dh]))):Zr(r)?Z4(e,r.properties):Tu(r)?Q2(e,r.keys):mc(r)?jS(ad(e,r.parameters),go(e,r.returns),i):gc(r)?yh(ad(e,r.parameters),go(e,r.returns),i):vg(r)?PS(go(e,r.items),i):xg(r)?qS(go(e,r.items),i):vo(r)?cs(ad(e,r.allOf),i):Nn(r)?Qn(ad(e,r.anyOf),i):Ou(r)?Ac(ad(e,r.items??[]),i):$o(r)?On(Y2(e,r.properties),i):hc(r)?MS(go(e,r.items),i):Eg(r)?X4(go(e,r.item),i):r}function K2(e,r){const i={};for(const a of e)i[a]=go(a,r);return i}function X2(e,r,i){const a=ta(e)?ss(e):e,u=r({[Je]:"MappedKey",keys:a}),c=K2(a,u);return On(c,i)}function Z2(e){return ze(Qr(e,[aa]))}function J2(e){return ze({...e,[aa]:"Optional"})}function W2(e,r){return r===!1?Z2(e):J2(e)}function ls(e,r){const i=r??!0;return Zr(e)?nV(e,i):W2(e,i)}function eV(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=ls(e[a],r);return i}function tV(e,r){return eV(e.properties,r)}function nV(e,r){const i=tV(e,r);return Gn(i)}function Uw(e,r={}){const i=e.every(u=>$o(u)),a=ta(r.unevaluatedProperties)?{unevaluatedProperties:r.unevaluatedProperties}:{};return ze(r.unevaluatedProperties===!1||ta(r.unevaluatedProperties)||i?{...a,[Je]:"Intersect",type:"object",allOf:e}:{...a,[Je]:"Intersect",allOf:e},r)}function rV(e){return e.every(r=>os(r))}function oV(e){return Qr(e,[aa])}function IN(e){return e.map(r=>os(r)?oV(r):r)}function iV(e,r){return rV(e)?ls(Uw(IN(e),r)):Uw(IN(e),r)}function J4(e,r={}){if(e.length===1)return ze(e[0],r);if(e.length===0)return cn(r);if(e.some(i=>Sg(i)))throw new Error("Cannot intersect transform types");return iV(e,r)}function cs(e,r){if(e.length===1)return ze(e[0],r);if(e.length===0)return cn(r);if(e.some(i=>Sg(i)))throw new Error("Cannot intersect transform types");return Uw(e,r)}function bh(...e){const[r,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof r!="string")throw new mi("Ref: $ref must be a string");return ze({[Je]:"Ref",$ref:r},i)}function aV(e,r){return wn("Awaited",[wn(e,r)])}function sV(e){return wn("Awaited",[bh(e)])}function uV(e){return cs(W4(e))}function lV(e){return Qn(W4(e))}function cV(e){return Bg(e)}function W4(e){return e.map(r=>Bg(r))}function Bg(e,r){return ze(pc(e)?aV(e.target,e.parameters):vo(e)?uV(e.allOf):Nn(e)?lV(e.anyOf):Eg(e)?cV(e.item):Nr(e)?sV(e.$ref):e,r)}function eM(e){const r=[];for(const i of e)r.push(Ug(i));return r}function fV(e){const r=eM(e);return Gz(r)}function dV(e){const r=eM(e);return Vz(r)}function hV(e){return e.map((r,i)=>i.toString())}function pV(e){return["[number]"]}function mV(e){return globalThis.Object.getOwnPropertyNames(e)}function gV(e){return _w?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function Ug(e){return vo(e)?fV(e.allOf):Nn(e)?dV(e.anyOf):Ou(e)?hV(e.items??[]):hc(e)?pV(e.items):$o(e)?mV(e.properties):wg(e)?gV(e.patternProperties):[]}let _w=!1;function TN(e){_w=!0;const r=Ug(e);return _w=!1,`^(${r.map(a=>`(${a})`).join("|")})$`}function yV(e,r){return wn("KeyOf",[wn(e,r)])}function bV(e){return wn("KeyOf",[bh(e)])}function vV(e,r){const i=Ug(e),a=AV(i),u=vc(a);return ze(u,r)}function AV(e){return e.map(r=>r==="[number]"?Bu():gn(r))}function HS(e,r){return pc(e)?yV(e.target,e.parameters):Nr(e)?bV(e.$ref):Zr(e)?wV(e,r):vV(e,r)}function xV(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=HS(e[a],Gr(r));return i}function EV(e,r){return xV(e.properties,r)}function wV(e,r){const i=EV(e,r);return Gn(i)}function SV(e){const r=[];for(const i of e)r.push(...Ug(i));return qz(r)}function CV(e){return e.filter(r=>!ph(r))}function IV(e,r){const i=[];for(const a of e)i.push(...K4(a,[r]));return CV(i)}function TV(e,r){const i={};for(const a of r)i[a]=J4(IV(e,a));return i}function RV(e,r){const i=SV(e),a=TV(e,i);return On(a,r)}function tM(e){return ze({[Je]:"Date",type:"Date"},e)}function nM(e){return ze({[Je]:"Null",type:"null"},e)}function rM(e){return ze({[Je]:"Symbol",type:"symbol"},e)}function oM(e){return ze({[Je]:"Undefined",type:"undefined"},e)}function iM(e){return ze({[Je]:"Uint8Array",type:"Uint8Array"},e)}function _g(e){return ze({[Je]:"Unknown"},e)}function OV(e){return e.map(r=>zS(r,!1))}function FV(e){const r={};for(const i of globalThis.Object.getOwnPropertyNames(e))r[i]=us(zS(e[i],!1));return r}function Rm(e,r){return r===!0?e:us(e)}function zS(e,r){return YH(e)||XH(e)?Rm(Kd(),r):Ur(e)?us(Ac(OV(e))):ch(e)?iM():vS(e)?tM():yn(e)?Rm(On(FV(e)),r):KH(e)?Rm(yh([],_g()),r):mn(e)?oM():ZH(e)?nM():JH(e)?rM():E4(e)?$S():di(e)||lh(e)||ln(e)?gn(e):On({})}function NV(e,r){return ze(zS(e,!0),r)}function DV(e,r){return mc(e)?Ac(e.parameters,r):cn(r)}function BV(e,r){if(mn(e))throw new Error("Enum undefined or empty");const i=globalThis.Object.getOwnPropertyNames(e).filter(c=>isNaN(c)).map(c=>e[c]),u=[...new Set(i)].map(c=>gn(c));return Qn(u,{...r,[bg]:"Enum"})}class UV extends mi{}var Be;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Be||(Be={}));function bo(e){return e===Be.False?e:Be.True}function xc(e){throw new UV(e)}function bn(e){return as(e)||Du(e)||ia(e)||jo(e)||Mo(e)}function vn(e,r){return as(r)?uM():Du(r)?Mg(e,r):ia(r)?GS(e,r):jo(r)?dM():Mo(r)?VS():xc("StructuralRight")}function VS(e,r){return Be.True}function _V(e,r){return Du(r)?Mg(e,r):ia(r)&&r.anyOf.some(i=>Mo(i)||jo(i))?Be.True:ia(r)?Be.Union:jo(r)||Mo(r)?Be.True:Be.Union}function MV(e,r){return jo(e)?Be.False:Mo(e)?Be.Union:as(e)?Be.True:Be.False}function PV(e,r){return Jt(r)&&Pg(r)?Be.True:bn(r)?vn(e,r):Fu(r)?bo(Pt(e.items,r.items)):Be.False}function jV(e,r){return bn(r)?vn(e,r):NS(r)?bo(Pt(e.items,r.items)):Be.False}function LV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Cg(r)?Be.True:Be.False}function aM(e,r){return P4(e)||Nu(e)?Be.True:Be.False}function kV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Nu(r)?Be.True:Be.False}function $V(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):Ig(r)?e.parameters.length>r.parameters.length?Be.False:e.parameters.every((i,a)=>bo(Pt(r.parameters[a],i))===Be.True)?bo(Pt(e.returns,r.returns)):Be.False:Be.False}function qV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Tg(r)?Be.True:Be.False}function HV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):Rg(r)?e.parameters.length>r.parameters.length?Be.False:e.parameters.every((i,a)=>bo(Pt(r.parameters[a],i))===Be.True)?bo(Pt(e.returns,r.returns)):Be.False:Be.False}function sM(e,r){return is(e)&&di(e.const)||Rr(e)||sa(e)?Be.True:Be.False}function zV(e,r){return sa(r)||Rr(r)?Be.True:bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Be.False}function Mg(e,r){return r.allOf.every(i=>Pt(e,i)===Be.True)?Be.True:Be.False}function VV(e,r){return e.allOf.some(i=>Pt(i,r)===Be.True)?Be.True:Be.False}function GV(e,r){return bn(r)?vn(e,r):DS(r)?bo(Pt(e.items,r.items)):Be.False}function QV(e,r){return is(r)&&r.const===e.const?Be.True:bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Po(r)?fM(e):Rr(r)?lM(e):sa(r)?sM(e):Nu(r)?aM(e):Be.False}function uM(e,r){return Be.False}function YV(e,r){return Be.True}function RN(e){let[r,i]=[e,0];for(;ac(r);)r=r.not,i+=1;return i%2===0?r:_g()}function KV(e,r){return ac(e)?Pt(RN(e),r):ac(r)?Pt(e,RN(r)):xc("Invalid fallthrough for Not")}function XV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):BS(r)?Be.True:Be.False}function lM(e,r){return M4(e)||Rr(e)||sa(e)?Be.True:Be.False}function ZV(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):sa(r)||Rr(r)?Be.True:Be.False}function Dr(e,r){return Object.getOwnPropertyNames(e.properties).length===r}function ON(e){return Pg(e)}function FN(e){return Dr(e,0)||Dr(e,1)&&"description"in e.properties&&ia(e.properties.description)&&e.properties.description.anyOf.length===2&&(Po(e.properties.description.anyOf[0])&&xu(e.properties.description.anyOf[1])||Po(e.properties.description.anyOf[1])&&xu(e.properties.description.anyOf[0]))}function kv(e){return Dr(e,0)}function NN(e){return Dr(e,0)}function JV(e){return Dr(e,0)}function WV(e){return Dr(e,0)}function e9(e){return Pg(e)}function t9(e){const r=Bu();return Dr(e,0)||Dr(e,1)&&"length"in e.properties&&bo(Pt(e.properties.length,r))===Be.True}function n9(e){return Dr(e,0)}function Pg(e){const r=Bu();return Dr(e,0)||Dr(e,1)&&"length"in e.properties&&bo(Pt(e.properties.length,r))===Be.True}function r9(e){const r=yh([Kd()],Kd());return Dr(e,0)||Dr(e,1)&&"then"in e.properties&&bo(Pt(e.properties.then,r))===Be.True}function cM(e,r){return Pt(e,r)===Be.False||Zm(e)&&!Zm(r)?Be.False:Be.True}function or(e,r){return jo(e)?Be.False:Mo(e)?Be.Union:as(e)||_4(e)&&ON(r)||M4(e)&&kv(r)||P4(e)&&NN(r)||Qd(e)&&FN(r)||Cg(e)&&JV(r)||Po(e)&&ON(r)||Qd(e)&&FN(r)||Rr(e)&&kv(r)||sa(e)&&kv(r)||Nu(e)&&NN(r)||gh(e)&&e9(r)||Tg(e)&&WV(r)||Ig(e)&&n9(r)||Rg(e)&&t9(r)?Be.True:zn(e)&&Po(Mw(e))?r[bg]==="Record"?Be.True:Be.False:zn(e)&&Rr(Mw(e))?Dr(r,0)?Be.True:Be.False:Be.False}function o9(e,r){return bn(r)?vn(e,r):zn(r)?Ao(e,r):Jt(r)?(()=>{for(const i of Object.getOwnPropertyNames(r.properties)){if(!(i in e.properties)&&!Zm(r.properties[i]))return Be.False;if(Zm(r.properties[i]))return Be.True;if(cM(e.properties[i],r.properties[i])===Be.False)return Be.False}return Be.True})():Be.False}function i9(e,r){return bn(r)?vn(e,r):Jt(r)&&r9(r)?Be.True:US(r)?bo(Pt(e.item,r.item)):Be.False}function Mw(e){return sc in e.patternProperties?Bu():uc in e.patternProperties?Eu():xc("Unknown record key pattern")}function Pw(e){return sc in e.patternProperties?e.patternProperties[sc]:uc in e.patternProperties?e.patternProperties[uc]:xc("Unable to get record value schema")}function Ao(e,r){const[i,a]=[Mw(r),Pw(r)];return _4(e)&&Rr(i)&&bo(Pt(e,a))===Be.True?Be.True:gh(e)&&Rr(i)||Po(e)&&Rr(i)||Fu(e)&&Rr(i)?Pt(e,a):Jt(e)?(()=>{for(const u of Object.getOwnPropertyNames(e.properties))if(cM(a,e.properties[u])===Be.False)return Be.False;return Be.True})():Be.False}function a9(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Pt(Pw(e),Pw(r)):Be.False}function s9(e,r){const i=Gd(e)?Eu():e,a=Gd(r)?Eu():r;return Pt(i,a)}function fM(e,r){return is(e)&&ln(e.const)||Po(e)?Be.True:Be.False}function u9(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Po(r)?Be.True:Be.False}function l9(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Qd(r)?Be.True:Be.False}function c9(e,r){return Yd(e)?Pt(Jm(e),r):Yd(r)?Pt(e,Jm(r)):xc("Invalid fallthrough for TemplateLiteral")}function f9(e,r){return Fu(r)&&e.items!==void 0&&e.items.every(i=>Pt(i,r.items)===Be.True)}function d9(e,r){return as(e)?Be.True:jo(e)?Be.False:Mo(e)?Be.Union:Be.False}function h9(e,r){return bn(r)?vn(e,r):Jt(r)&&Pg(r)||Fu(r)&&f9(e,r)?Be.True:Og(r)?mn(e.items)&&!mn(r.items)||!mn(e.items)&&mn(r.items)?Be.False:mn(e.items)&&!mn(r.items)||e.items.every((i,a)=>Pt(i,r.items[a])===Be.True)?Be.True:Be.False:Be.False}function p9(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):gh(r)?Be.True:Be.False}function m9(e,r){return bn(r)?vn(e,r):Jt(r)?or(e,r):zn(r)?Ao(e,r):Fg(r)?b9(e):xu(r)?Be.True:Be.False}function GS(e,r){return r.anyOf.some(i=>Pt(e,i)===Be.True)?Be.True:Be.False}function g9(e,r){return e.anyOf.every(i=>Pt(i,r)===Be.True)?Be.True:Be.False}function dM(e,r){return Be.True}function y9(e,r){return as(r)?uM():Du(r)?Mg(e,r):ia(r)?GS(e,r):Mo(r)?VS():Po(r)?fM(e):Rr(r)?lM(e):sa(r)?sM(e):Nu(r)?aM(e):Fu(r)?MV(e):Og(r)?d9(e):Jt(r)?or(e,r):jo(r)?Be.True:Be.False}function b9(e,r){return xu(e)||xu(e)?Be.True:Be.False}function v9(e,r){return Du(r)?Mg(e,r):ia(r)?GS(e,r):jo(r)?dM():Mo(r)?VS():Jt(r)?or(e,r):Fg(r)?Be.True:Be.False}function Pt(e,r){return Yd(e)||Yd(r)?c9(e,r):Gd(e)||Gd(r)?s9(e,r):ac(e)||ac(r)?KV(e,r):Mo(e)?_V(e,r):Fu(e)?PV(e,r):Cg(e)?LV(e,r):Nu(e)?kV(e,r):NS(e)?jV(e,r):Ig(e)?$V(e,r):Tg(e)?qV(e,r):Rg(e)?HV(e,r):sa(e)?zV(e,r):Du(e)?VV(e,r):DS(e)?GV(e,r):is(e)?QV(e,r):as(e)?YV():BS(e)?XV(e,r):Rr(e)?ZV(e,r):Jt(e)?o9(e,r):zn(e)?a9(e,r):Po(e)?u9(e,r):Qd(e)?l9(e,r):Og(e)?h9(e,r):US(e)?i9(e,r):gh(e)?p9(e,r):xu(e)?m9(e,r):ia(e)?g9(e,r):jo(e)?y9(e,r):Fg(e)?v9(e,r):xc(`Unknown left type operand '${e[Je]}'`)}function vh(e,r){return Pt(e,r)}function A9(e,r,i,a,u){const c={};for(const f of globalThis.Object.getOwnPropertyNames(e))c[f]=QS(e[f],r,i,a,Gr(u));return c}function x9(e,r,i,a,u){return A9(e.properties,r,i,a,u)}function E9(e,r,i,a,u){const c=x9(e,r,i,a,u);return Gn(c)}function w9(e,r,i,a){const u=vh(e,r);return u===Be.Union?Qn([i,a]):u===Be.True?i:a}function QS(e,r,i,a,u){return Zr(e)?E9(e,r,i,a,u):Tu(e)?ze(T9(e,r,i,a,u)):ze(w9(e,r,i,a),u)}function S9(e,r,i,a,u){return{[e]:QS(gn(e),r,i,a,Gr(u))}}function C9(e,r,i,a,u){return e.reduce((c,f)=>({...c,...S9(f,r,i,a,u)}),{})}function I9(e,r,i,a,u){return C9(e.keys,r,i,a,u)}function T9(e,r,i,a,u){const c=I9(e,r,i,a,u);return Gn(c)}function R9(e){return e.allOf.every(r=>jg(r))}function O9(e){return e.anyOf.some(r=>jg(r))}function F9(e){return!jg(e.not)}function jg(e){return e[Je]==="Intersect"?R9(e):e[Je]==="Union"?O9(e):e[Je]==="Not"?F9(e):e[Je]==="Undefined"}function N9(e,r){return YS(Jm(e),r)}function D9(e,r){const i=e.filter(a=>vh(a,r)===Be.False);return i.length===1?i[0]:Qn(i)}function YS(e,r,i={}){return Ru(e)?ze(N9(e,r),i):Zr(e)?ze(_9(e,r),i):ze(Nn(e)?D9(e.anyOf,r):vh(e,r)!==Be.False?cn():e,i)}function B9(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=YS(e[a],r);return i}function U9(e,r){return B9(e.properties,r)}function _9(e,r){const i=U9(e,r);return Gn(i)}function M9(e,r){return KS(Jm(e),r)}function P9(e,r){const i=e.filter(a=>vh(a,r)!==Be.False);return i.length===1?i[0]:Qn(i)}function KS(e,r,i){return Ru(e)?ze(M9(e,r),i):Zr(e)?ze(k9(e,r),i):ze(Nn(e)?P9(e.anyOf,r):vh(e,r)!==Be.False?e:cn(),i)}function j9(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=KS(e[a],r);return i}function L9(e,r){return j9(e.properties,r)}function k9(e,r){const i=L9(e,r);return Gn(i)}function $9(e,r){return mc(e)?ze(e.returns,r):cn(r)}function hM(e){return us(ls(e))}function Uu(e,r,i){return ze({[Je]:"Record",type:"object",patternProperties:{[e]:r}},i)}function XS(e,r,i){const a={};for(const u of e)a[u]=r;return On(a,{...i,[bg]:"Record"})}function q9(e,r,i){return l2(e)?XS(ss(e),r,i):Uu(e.pattern,r,i)}function H9(e,r,i){return XS(ss(Qn(e)),r,i)}function z9(e,r,i){return XS([e.toString()],r,i)}function V9(e,r,i){return Uu(e.source,r,i)}function G9(e,r,i){const a=mn(e.pattern)?uc:e.pattern;return Uu(a,r,i)}function Q9(e,r,i){return Uu(uc,r,i)}function Y9(e,r,i){return Uu(Pz,r,i)}function K9(e,r,i){return On({true:r,false:r},i)}function X9(e,r,i){return Uu(sc,r,i)}function Z9(e,r,i){return Uu(sc,r,i)}function pM(e,r,i={}){return Nn(e)?H9(e.anyOf,r,i):Ru(e)?q9(e,r,i):Iu(e)?z9(e.const,r,i):hh(e)?K9(e,r,i):yc(e)?X9(e,r,i):bc(e)?Z9(e,r,i):O4(e)?V9(e,r,i):mh(e)?G9(e,r,i):I4(e)?Q9(e,r,i):ph(e)?Y9(e,r,i):cn(i)}function ZS(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function J9(e){const r=ZS(e);return r===uc?Eu():r===sc?Bu():Eu({pattern:r})}function mM(e){return e.patternProperties[ZS(e)]}function W9(e,r){return r.parameters=Ah(e,r.parameters),r.returns=Lo(e,r.returns),r}function eG(e,r){return r.parameters=Ah(e,r.parameters),r.returns=Lo(e,r.returns),r}function tG(e,r){return r.allOf=Ah(e,r.allOf),r}function nG(e,r){return r.anyOf=Ah(e,r.anyOf),r}function rG(e,r){return mn(r.items)||(r.items=Ah(e,r.items)),r}function oG(e,r){return r.items=Lo(e,r.items),r}function iG(e,r){return r.items=Lo(e,r.items),r}function aG(e,r){return r.items=Lo(e,r.items),r}function sG(e,r){return r.item=Lo(e,r.item),r}function uG(e,r){const i=dG(e,r.properties);return{...r,...On(i)}}function lG(e,r){const i=Lo(e,J9(r)),a=Lo(e,mM(r)),u=pM(i,a);return{...r,...u}}function cG(e,r){return r.index in e?e[r.index]:_g()}function fG(e,r){const i=CS(r),a=os(r),u=Lo(e,r);return i&&a?hM(u):i&&!a?us(u):!i&&a?ls(u):u}function dG(e,r){return globalThis.Object.getOwnPropertyNames(r).reduce((i,a)=>({...i,[a]:fG(e,r[a])}),{})}function Ah(e,r){return r.map(i=>Lo(e,i))}function Lo(e,r){return mc(r)?W9(e,r):gc(r)?eG(e,r):vo(r)?tG(e,r):Nn(r)?nG(e,r):Ou(r)?rG(e,r):hc(r)?oG(e,r):vg(r)?iG(e,r):xg(r)?aG(e,r):Eg(r)?sG(e,r):$o(r)?uG(e,r):wg(r)?lG(e,r):T4(r)?cG(e,r):r}function hG(e,r){return Lo(r,AS(e))}function pG(e){return ze({[Je]:"Integer",type:"integer"},e)}function mG(e,r,i){return{[e]:Ec(gn(e),r,Gr(i))}}function gG(e,r,i){return e.reduce((u,c)=>({...u,...mG(c,r,i)}),{})}function yG(e,r,i){return gG(e.keys,r,i)}function bG(e,r,i){const a=yG(e,r,i);return Gn(a)}function vG(e){const[r,i]=[e.slice(0,1),e.slice(1)];return[r.toLowerCase(),i].join("")}function AG(e){const[r,i]=[e.slice(0,1),e.slice(1)];return[r.toUpperCase(),i].join("")}function xG(e){return e.toUpperCase()}function EG(e){return e.toLowerCase()}function wG(e,r,i){const a=kS(e.pattern);if(!Zd(a))return{...e,pattern:gM(e.pattern,r)};const f=[...Ng(a)].map(p=>gn(p)),h=yM(f,r),m=Qn(h);return G4([m],i)}function gM(e,r){return typeof e=="string"?r==="Uncapitalize"?vG(e):r==="Capitalize"?AG(e):r==="Uppercase"?xG(e):r==="Lowercase"?EG(e):e:e.toString()}function yM(e,r){return e.map(i=>Ec(i,r))}function Ec(e,r,i={}){return Tu(e)?bG(e,r,i):Ru(e)?wG(e,r,i):Nn(e)?Qn(yM(e.anyOf,r),i):Iu(e)?gn(gM(e.const,r),i):ze(e,i)}function SG(e,r={}){return Ec(e,"Capitalize",r)}function CG(e,r={}){return Ec(e,"Lowercase",r)}function IG(e,r={}){return Ec(e,"Uncapitalize",r)}function TG(e,r={}){return Ec(e,"Uppercase",r)}function RG(e,r,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Lg(e[u],r,Gr(i));return a}function OG(e,r,i){return RG(e.properties,r,i)}function FG(e,r,i){const a=OG(e,r,i);return Gn(a)}function NG(e,r){return e.map(i=>JS(i,r))}function DG(e,r){return e.map(i=>JS(i,r))}function BG(e,r){const{[r]:i,...a}=e;return a}function UG(e,r){return r.reduce((i,a)=>BG(i,a),e)}function _G(e,r){const i=Qr(e,[yo,"$id","required","properties"]),a=UG(e.properties,r);return On(a,i)}function MG(e){const r=e.reduce((i,a)=>R4(a)?[...i,gn(a)]:i,[]);return Qn(r)}function JS(e,r){return vo(e)?cs(NG(e.allOf,r)):Nn(e)?Qn(DG(e.anyOf,r)):$o(e)?_G(e,r):On({})}function Lg(e,r,i){const a=Ur(r)?MG(r):r,u=ta(r)?ss(r):r,c=Nr(e),f=Nr(r);return Zr(e)?FG(e,u,i):Tu(r)?kG(e,r,i):c&&f?wn("Omit",[e,a],i):!c&&f?wn("Omit",[e,a],i):c&&!f?wn("Omit",[e,a],i):ze({...JS(e,u),...i})}function PG(e,r,i){return{[r]:Lg(e,[r],Gr(i))}}function jG(e,r,i){return r.reduce((a,u)=>({...a,...PG(e,u,i)}),{})}function LG(e,r,i){return jG(e,r.keys,i)}function kG(e,r,i){const a=LG(e,r,i);return Gn(a)}function $G(e,r,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=kg(e[u],r,Gr(i));return a}function qG(e,r,i){return $G(e.properties,r,i)}function HG(e,r,i){const a=qG(e,r,i);return Gn(a)}function zG(e,r){return e.map(i=>WS(i,r))}function VG(e,r){return e.map(i=>WS(i,r))}function GG(e,r){const i={};for(const a of r)a in e&&(i[a]=e[a]);return i}function QG(e,r){const i=Qr(e,[yo,"$id","required","properties"]),a=GG(e.properties,r);return On(a,i)}function YG(e){const r=e.reduce((i,a)=>R4(a)?[...i,gn(a)]:i,[]);return Qn(r)}function WS(e,r){return vo(e)?cs(zG(e.allOf,r)):Nn(e)?Qn(VG(e.anyOf,r)):$o(e)?QG(e,r):On({})}function kg(e,r,i){const a=Ur(r)?YG(r):r,u=ta(r)?ss(r):r,c=Nr(e),f=Nr(r);return Zr(e)?HG(e,u,i):Tu(r)?JG(e,r,i):c&&f?wn("Pick",[e,a],i):!c&&f?wn("Pick",[e,a],i):c&&!f?wn("Pick",[e,a],i):ze({...WS(e,u),...i})}function KG(e,r,i){return{[r]:kg(e,[r],Gr(i))}}function XG(e,r,i){return r.reduce((a,u)=>({...a,...KG(e,u,i)}),{})}function ZG(e,r,i){return XG(e,r.keys,i)}function JG(e,r,i){const a=ZG(e,r,i);return Gn(a)}function WG(e,r){return wn("Partial",[wn(e,r)])}function eQ(e){return wn("Partial",[bh(e)])}function tQ(e){const r={};for(const i of globalThis.Object.getOwnPropertyNames(e))r[i]=ls(e[i]);return r}function nQ(e){const r=Qr(e,[yo,"$id","required","properties"]),i=tQ(e.properties);return On(i,r)}function DN(e){return e.map(r=>bM(r))}function bM(e){return pc(e)?WG(e.target,e.parameters):Nr(e)?eQ(e.$ref):vo(e)?cs(DN(e.allOf)):Nn(e)?Qn(DN(e.anyOf)):$o(e)?nQ(e):Ag(e)||hh(e)||yc(e)||Iu(e)||IS(e)||bc(e)||mh(e)||TS(e)||RS(e)?e:On({})}function eC(e,r){return Zr(e)?iQ(e,r):ze({...bM(e),...r})}function rQ(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=eC(e[a],Gr(r));return i}function oQ(e,r){return rQ(e.properties,r)}function iQ(e,r){const i=oQ(e,r);return Gn(i)}function aQ(e,r){return wn("Required",[wn(e,r)])}function sQ(e){return wn("Required",[bh(e)])}function uQ(e){const r={};for(const i of globalThis.Object.getOwnPropertyNames(e))r[i]=Qr(e[i],[aa]);return r}function lQ(e){const r=Qr(e,[yo,"$id","required","properties"]),i=uQ(e.properties);return On(i,r)}function BN(e){return e.map(r=>vM(r))}function vM(e){return pc(e)?aQ(e.target,e.parameters):Nr(e)?sQ(e.$ref):vo(e)?cs(BN(e.allOf)):Nn(e)?Qn(BN(e.anyOf)):$o(e)?lQ(e):Ag(e)||hh(e)||yc(e)||Iu(e)||IS(e)||bc(e)||mh(e)||TS(e)||RS(e)?e:On({})}function tC(e,r){return Zr(e)?dQ(e,r):ze({...vM(e),...r})}function cQ(e,r){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=tC(e[a],r);return i}function fQ(e,r){return cQ(e.properties,r)}function dQ(e,r){const i=fQ(e,r);return Gn(i)}function hQ(e,r){return r.map(i=>Nr(i)?nC(e,i.$ref):Yr(e,i))}function nC(e,r){return r in e?Nr(e[r])?nC(e,e[r].$ref):Yr(e,e[r]):cn()}function pQ(e){return Bg(e[0])}function mQ(e){return Dg(e[0],e[1])}function gQ(e){return HS(e[0])}function yQ(e){return eC(e[0])}function bQ(e){return Lg(e[0],e[1])}function vQ(e){return kg(e[0],e[1])}function AQ(e){return tC(e[0])}function xQ(e,r,i){const a=hQ(e,i);return r==="Awaited"?pQ(a):r==="Index"?mQ(a):r==="KeyOf"?gQ(a):r==="Partial"?yQ(a):r==="Omit"?bQ(a):r==="Pick"?vQ(a):r==="Required"?AQ(a):cn()}function EQ(e,r){return MS(Yr(e,r))}function wQ(e,r){return PS(Yr(e,r))}function SQ(e,r,i){return jS(xh(e,r),Yr(e,i))}function CQ(e,r,i){return yh(xh(e,r),Yr(e,i))}function IQ(e,r){return cs(xh(e,r))}function TQ(e,r){return qS(Yr(e,r))}function RQ(e,r){return On(globalThis.Object.keys(r).reduce((i,a)=>({...i,[a]:Yr(e,r[a])}),{}))}function OQ(e,r){const[i,a]=[Yr(e,mM(r)),ZS(r)],u=AS(r);return u.patternProperties[a]=i,u}function FQ(e,r){return Nr(r)?{...nC(e,r.$ref),[yo]:r[yo]}:r}function NQ(e,r){return Ac(xh(e,r))}function DQ(e,r){return Qn(xh(e,r))}function xh(e,r){return r.map(i=>Yr(e,i))}function Yr(e,r){return os(r)?ze(Yr(e,Qr(r,[aa])),r):CS(r)?ze(Yr(e,Qr(r,[dh])),r):Sg(r)?ze(FQ(e,r),r):hc(r)?ze(EQ(e,r.items),r):vg(r)?ze(wQ(e,r.items),r):pc(r)?ze(xQ(e,r.target,r.parameters)):mc(r)?ze(SQ(e,r.parameters,r.returns),r):gc(r)?ze(CQ(e,r.parameters,r.returns),r):vo(r)?ze(IQ(e,r.allOf),r):xg(r)?ze(TQ(e,r.items),r):$o(r)?ze(RQ(e,r.properties),r):wg(r)?ze(OQ(e,r)):Ou(r)?ze(NQ(e,r.items||[]),r):Nn(r)?ze(DQ(e,r.anyOf),r):r}function BQ(e,r){return r in e?Yr(e,e[r]):cn()}function UQ(e){return globalThis.Object.getOwnPropertyNames(e).reduce((r,i)=>({...r,[i]:BQ(e,i)}),{})}class _Q{constructor(r){const i=UQ(r),a=this.WithIdentifiers(i);this.$defs=a}Import(r,i){const a={...this.$defs,[r]:ze(this.$defs[r],i)};return ze({[Je]:"Import",$defs:a,$ref:r})}WithIdentifiers(r){return globalThis.Object.getOwnPropertyNames(r).reduce((i,a)=>({...i,[a]:{...r[a],$id:a}}),{})}}function MQ(e){return new _Q(e)}function PQ(e,r){return ze({[Je]:"Not",not:e},r)}function jQ(e,r){return gc(e)?Ac(e.parameters,r):cn()}let LQ=0;function kQ(e,r={}){mn(r.$id)&&(r.$id=`T${LQ++}`);const i=AS(e({[Je]:"This",$ref:`${r.$id}`}));return i.$id=r.$id,ze({[bg]:"Recursive",...i},r)}function $Q(e,r){const i=ln(e)?new globalThis.RegExp(e):e;return ze({[Je]:"RegExp",type:"RegExp",source:i.source,flags:i.flags},r)}function qQ(e){return vo(e)?e.allOf:Nn(e)?e.anyOf:Ou(e)?e.items??[]:[]}function HQ(e){return qQ(e)}function zQ(e,r){return gc(e)?ze(e.returns,r):cn(r)}class VQ{constructor(r){this.schema=r}Decode(r){return new GQ(this.schema,r)}}class GQ{constructor(r,i){this.schema=r,this.decode=i}EncodeTransform(r,i){const c={Encode:f=>i[yo].Encode(r(f)),Decode:f=>this.decode(i[yo].Decode(f))};return{...i,[yo]:c}}EncodeSchema(r,i){const a={Decode:this.decode,Encode:r};return{...i,[yo]:a}}Encode(r){return Sg(this.schema)?this.EncodeTransform(r,this.schema):this.EncodeSchema(r,this.schema)}}function QQ(e){return new VQ(e)}function YQ(e={}){return ze({[Je]:e[Je]??"Unsafe"},e)}function KQ(e){return ze({[Je]:"Void",type:"void"},e)}const XQ=Object.freeze(Object.defineProperty({__proto__:null,Any:Kd,Argument:Qz,Array:MS,AsyncIterator:PS,Awaited:Bg,BigInt:$S,Boolean:z4,Capitalize:SG,Composite:RV,Const:NV,Constructor:jS,ConstructorParameters:DV,Date:tM,Enum:BV,Exclude:YS,Extends:QS,Extract:KS,Function:yh,Index:Dg,InstanceType:$9,Instantiate:hG,Integer:pG,Intersect:cs,Iterator:qS,KeyOf:HS,Literal:gn,Lowercase:CG,Mapped:X2,Module:MQ,Never:cn,Not:PQ,Null:nM,Number:Bu,Object:On,Omit:Lg,Optional:ls,Parameters:jQ,Partial:eC,Pick:kg,Promise:X4,Readonly:us,ReadonlyOptional:hM,Record:pM,Recursive:kQ,Ref:bh,RegExp:$Q,Required:tC,Rest:HQ,ReturnType:zQ,String:Eu,Symbol:rM,TemplateLiteral:G4,Transform:QQ,Tuple:Ac,Uint8Array:iM,Uncapitalize:IG,Undefined:oM,Union:Qn,Unknown:_g,Unsafe:YQ,Uppercase:TG,Void:KQ},Symbol.toStringTag,{value:"Module"})),C=XQ;class ZQ extends mi{constructor(r){super(`Unable to dereference schema with $id '${r.$ref}'`),this.schema=r}}function JQ(e,r){const i=r.find(a=>a.$id===e.$ref);if(i===void 0)throw new ZQ(e);return Eh(i,r)}function AM(e,r){return!fh(e.$id)||r.some(i=>i.$id===e.$id)||r.push(e),r}function Eh(e,r){return e[Je]==="This"||e[Je]==="Ref"?JQ(e,r):e}class WQ extends mi{constructor(r){super("Unable to hash value"),this.value=r}}var Kr;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(Kr||(Kr={}));let zl=BigInt("14695981039346656037");const[eY,tY]=[BigInt("1099511628211"),BigInt("18446744073709551616")],nY=Array.from({length:256}).map((e,r)=>BigInt(r)),xM=new Float64Array(1),EM=new DataView(xM.buffer),wM=new Uint8Array(xM.buffer);function*rY(e){const r=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let i=0;i<r;i++)yield e>>8*(r-1-i)&255}function oY(e){rr(Kr.Array);for(const r of e)cc(r)}function iY(e){rr(Kr.Boolean),rr(e?1:0)}function aY(e){rr(Kr.BigInt),EM.setBigInt64(0,e);for(const r of wM)rr(r)}function sY(e){rr(Kr.Date),cc(e.getTime())}function uY(e){rr(Kr.Null)}function lY(e){rr(Kr.Number),EM.setFloat64(0,e);for(const r of wM)rr(r)}function cY(e){rr(Kr.Object);for(const r of globalThis.Object.getOwnPropertyNames(e).sort())cc(r),cc(e[r])}function fY(e){rr(Kr.String);for(let r=0;r<e.length;r++)for(const i of rY(e.charCodeAt(r)))rr(i)}function dY(e){rr(Kr.Symbol),cc(e.description)}function hY(e){rr(Kr.Uint8Array);for(let r=0;r<e.length;r++)rr(e[r])}function pY(e){return rr(Kr.Undefined)}function cc(e){if(ts(e))return oY(e);if(ES(e))return iY(e);if(wS(e))return aY(e);if(yg(e))return sY(e);if(xS(e))return uY();if(gu(e))return lY(e);if(hi(e))return cY(e);if(fh(e))return fY(e);if(SS(e))return dY(e);if(S4(e))return hY(e);if(Cu(e))return pY();throw new WQ(e)}function rr(e){zl=zl^nY[e],zl=zl*eY%tY}function mY(e){return zl=BigInt("14695981039346656037"),cc(e),zl}class gY extends mi{constructor(r){super("Unknown type"),this.schema=r}}function yY(e){return e[Je]==="Any"||e[Je]==="Unknown"}function Ct(e){return e!==void 0}function bY(e,r,i){return!0}function vY(e,r,i){return!0}function AY(e,r,i){if(!ts(i)||Ct(e.minItems)&&!(i.length>=e.minItems)||Ct(e.maxItems)&&!(i.length<=e.maxItems)||!i.every(c=>Tn(e.items,r,c))||e.uniqueItems===!0&&!(function(){const c=new Set;for(const f of i){const h=mY(f);if(c.has(h))return!1;c.add(h)}return!0})())return!1;if(!(Ct(e.contains)||gu(e.minContains)||gu(e.maxContains)))return!0;const a=Ct(e.contains)?e.contains:cn(),u=i.reduce((c,f)=>Tn(a,r,f)?c+1:c,0);return!(u===0||gu(e.minContains)&&u<e.minContains||gu(e.maxContains)&&u>e.maxContains)}function xY(e,r,i){return oz(i)}function EY(e,r,i){return!(!wS(i)||Ct(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ct(e.maximum)&&!(i<=e.maximum)||Ct(e.minimum)&&!(i>=e.minimum)||Ct(e.multipleOf)&&i%e.multipleOf!==BigInt(0))}function wY(e,r,i){return ES(i)}function SY(e,r,i){return Tn(e.returns,r,i.prototype)}function CY(e,r,i){return!(!yg(i)||Ct(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)||Ct(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)||Ct(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)||Ct(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)||Ct(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0)}function IY(e,r,i){return C4(i)}function TY(e,r,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return Tn(u,[...r,...a],i)}function RY(e,r,i){return!(!fz(i)||Ct(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ct(e.maximum)&&!(i<=e.maximum)||Ct(e.minimum)&&!(i>=e.minimum)||Ct(e.multipleOf)&&i%e.multipleOf!==0)}function OY(e,r,i){const a=e.allOf.every(u=>Tn(u,r,i));if(e.unevaluatedProperties===!1){const u=new RegExp(TN(e)),c=Object.getOwnPropertyNames(i).every(f=>u.test(f));return a&&c}else if(ta(e.unevaluatedProperties)){const u=new RegExp(TN(e)),c=Object.getOwnPropertyNames(i).every(f=>u.test(f)||Tn(e.unevaluatedProperties,r,i[f]));return a&&c}else return a}function FY(e,r,i){return iz(i)}function NY(e,r,i){return i===e.const}function DY(e,r,i){return!1}function BY(e,r,i){return!Tn(e.not,r,i)}function UY(e,r,i){return xS(i)}function _Y(e,r,i){return!(!ns.IsNumberLike(i)||Ct(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ct(e.minimum)&&!(i>=e.minimum)||Ct(e.maximum)&&!(i<=e.maximum)||Ct(e.multipleOf)&&i%e.multipleOf!==0)}function MY(e,r,i){if(!ns.IsObjectLike(i)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const a=Object.getOwnPropertyNames(e.properties);for(const u of a){const c=e.properties[u];if(e.required&&e.required.includes(u)){if(!Tn(c,r,i[u])||(jg(c)||yY(c))&&!(u in i))return!1}else if(ns.IsExactOptionalProperty(i,u)&&!Tn(c,r,i[u]))return!1}if(e.additionalProperties===!1){const u=Object.getOwnPropertyNames(i);return e.required&&e.required.length===a.length&&u.length===a.length?!0:u.every(c=>a.includes(c))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(i).every(c=>a.includes(c)||Tn(e.additionalProperties,r,i[c])):!0}function PY(e,r,i){return az(i)}function jY(e,r,i){if(!ns.IsRecordLike(i)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const[a,u]=Object.entries(e.patternProperties)[0],c=new RegExp(a),f=Object.entries(i).every(([p,A])=>c.test(p)?Tn(u,r,A):!0),h=typeof e.additionalProperties=="object"?Object.entries(i).every(([p,A])=>c.test(p)?!0:Tn(e.additionalProperties,r,A)):!0,m=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(p=>c.test(p)):!0;return f&&h&&m}function LY(e,r,i){return Tn(Eh(e,r),r,i)}function kY(e,r,i){const a=new RegExp(e.source,e.flags);return Ct(e.minLength)&&!(i.length>=e.minLength)||Ct(e.maxLength)&&!(i.length<=e.maxLength)?!1:a.test(i)}function $Y(e,r,i){return!fh(i)||Ct(e.minLength)&&!(i.length>=e.minLength)||Ct(e.maxLength)&&!(i.length<=e.maxLength)||Ct(e.pattern)&&!new RegExp(e.pattern).test(i)?!1:Ct(e.format)?jz(e.format)?Lz(e.format)(i):!1:!0}function qY(e,r,i){return SS(i)}function HY(e,r,i){return fh(i)&&new RegExp(e.pattern).test(i)}function zY(e,r,i){return Tn(Eh(e,r),r,i)}function VY(e,r,i){if(!ts(i)||e.items===void 0&&i.length!==0||i.length!==e.maxItems)return!1;if(!e.items)return!0;for(let a=0;a<e.items.length;a++)if(!Tn(e.items[a],r,i[a]))return!1;return!0}function GY(e,r,i){return Cu(i)}function QY(e,r,i){return e.anyOf.some(a=>Tn(a,r,i))}function YY(e,r,i){return!(!S4(i)||Ct(e.maxByteLength)&&!(i.length<=e.maxByteLength)||Ct(e.minByteLength)&&!(i.length>=e.minByteLength))}function KY(e,r,i){return!0}function XY(e,r,i){return ns.IsVoidLike(i)}function ZY(e,r,i){return k4(e[Je])?kz(e[Je])(e,i):!1}function Tn(e,r,i){const a=Ct(e.$id)?AM(e,r):r,u=e;switch(u[Je]){case"Any":return bY();case"Argument":return vY();case"Array":return AY(u,a,i);case"AsyncIterator":return xY(u,a,i);case"BigInt":return EY(u,a,i);case"Boolean":return wY(u,a,i);case"Constructor":return SY(u,a,i);case"Date":return CY(u,a,i);case"Function":return IY(u,a,i);case"Import":return TY(u,a,i);case"Integer":return RY(u,a,i);case"Intersect":return OY(u,a,i);case"Iterator":return FY(u,a,i);case"Literal":return NY(u,a,i);case"Never":return DY();case"Not":return BY(u,a,i);case"Null":return UY(u,a,i);case"Number":return _Y(u,a,i);case"Object":return MY(u,a,i);case"Promise":return PY(u,a,i);case"Record":return jY(u,a,i);case"Ref":return LY(u,a,i);case"RegExp":return kY(u,a,i);case"String":return $Y(u,a,i);case"Symbol":return qY(u,a,i);case"TemplateLiteral":return HY(u,a,i);case"This":return zY(u,a,i);case"Tuple":return VY(u,a,i);case"Undefined":return GY(u,a,i);case"Union":return QY(u,a,i);case"Uint8Array":return YY(u,a,i);case"Unknown":return KY();case"Void":return XY(u,a,i);default:if(!k4(u[Je]))throw new gY(u);return ZY(u,a,i)}}function JY(...e){return e.length===3?Tn(e[0],e[1],e[2]):Tn(e[0],[],e[1])}function WY(e){const r={};for(const i of Object.getOwnPropertyNames(e))r[i]=wu(e[i]);for(const i of Object.getOwnPropertySymbols(e))r[i]=wu(e[i]);return r}function eK(e){return e.map(r=>wu(r))}function tK(e){return e.slice()}function nK(e){return new Map(wu([...e.entries()]))}function rK(e){return new Set(wu([...e.entries()]))}function oK(e){return new Date(e.toISOString())}function wu(e){if(ts(e))return eK(e);if(yg(e))return oK(e);if(lz(e))return tK(e);if(sz(e))return nK(e);if(uz(e))return rK(e);if(hi(e))return WY(e);if(dz(e))return e;throw new Error("ValueClone: Unable to clone value")}function ua(e,r){const i=cz(e,"default")?e.default:void 0,a=C4(i)?i():wu(i);return Cu(r)?a:hi(r)&&hi(a)?Object.assign(a,r):r}function jw(e){return F4(e)&&"default"in e}function iK(e,r,i){if(ts(i)){for(let u=0;u<i.length;u++)i[u]=mr(e.items,r,i[u]);return i}const a=ua(e,i);if(!ts(a))return a;for(let u=0;u<a.length;u++)a[u]=mr(e.items,r,a[u]);return a}function aK(e,r,i){return yg(i)?i:ua(e,i)}function sK(e,r,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return mr(u,[...r,...a],i)}function uK(e,r,i){const a=ua(e,i);return e.allOf.reduce((u,c)=>{const f=mr(c,r,a);return hi(f)?{...u,...f}:f},{})}function lK(e,r,i){const a=ua(e,i);if(!hi(a))return a;const u=Object.getOwnPropertyNames(e.properties);for(const c of u){const f=mr(e.properties[c],r,a[c]);Cu(f)||(a[c]=mr(e.properties[c],r,a[c]))}if(!jw(e.additionalProperties))return a;for(const c of Object.getOwnPropertyNames(a))u.includes(c)||(a[c]=mr(e.additionalProperties,r,a[c]));return a}function cK(e,r,i){const a=ua(e,i);if(!hi(a))return a;const u=e.additionalProperties,[c,f]=Object.entries(e.patternProperties)[0],h=new RegExp(c);for(const m of Object.getOwnPropertyNames(a))h.test(m)&&jw(f)&&(a[m]=mr(f,r,a[m]));if(!jw(u))return a;for(const m of Object.getOwnPropertyNames(a))h.test(m)||(a[m]=mr(u,r,a[m]));return a}function fK(e,r,i){return mr(Eh(e,r),r,ua(e,i))}function dK(e,r,i){return mr(Eh(e,r),r,i)}function hK(e,r,i){const a=ua(e,i);if(!ts(a)||Cu(e.items))return a;const[u,c]=[e.items,Math.max(e.items.length,a.length)];for(let f=0;f<c;f++)f<u.length&&(a[f]=mr(u[f],r,a[f]));return a}function pK(e,r,i){const a=ua(e,i);for(const u of e.anyOf){const c=mr(u,r,wu(a));if(JY(u,r,c))return c}return a}function mr(e,r,i){const a=AM(e,r),u=e;switch(u[Je]){case"Array":return iK(u,a,i);case"Date":return aK(u,a,i);case"Import":return sK(u,a,i);case"Intersect":return uK(u,a,i);case"Object":return lK(u,a,i);case"Record":return cK(u,a,i);case"Ref":return fK(u,a,i);case"This":return dK(u,a,i);case"Tuple":return hK(u,a,i);case"Union":return pK(u,a,i);default:return ua(u,i)}}function mK(...e){return e.length===3?mr(e[0],e[1],e[2]):mr(e[0],[],e[1])}var Qi={},$v={exports:{}},qv={},Hv={},zv={},Vv,UN;function rC(){return UN||(UN=1,Vv=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},i=Symbol("test"),a=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var u=42;r[i]=u;for(var c in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var f=Object.getOwnPropertySymbols(r);if(f.length!==1||f[0]!==i||!Object.prototype.propertyIsEnumerable.call(r,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(r,i);if(h.value!==u||h.enumerable!==!0)return!1}return!0}),Vv}var Gv,_N;function $g(){if(_N)return Gv;_N=1;var e=rC();return Gv=function(){return e()&&!!Symbol.toStringTag},Gv}var Qv,MN;function oC(){return MN||(MN=1,Qv=Object),Qv}var Yv,PN;function gK(){return PN||(PN=1,Yv=Error),Yv}var Kv,jN;function yK(){return jN||(jN=1,Kv=EvalError),Kv}var Xv,LN;function bK(){return LN||(LN=1,Xv=RangeError),Xv}var Zv,kN;function vK(){return kN||(kN=1,Zv=ReferenceError),Zv}var Jv,$N;function SM(){return $N||($N=1,Jv=SyntaxError),Jv}var Wv,qN;function wh(){return qN||(qN=1,Wv=TypeError),Wv}var eA,HN;function AK(){return HN||(HN=1,eA=URIError),eA}var tA,zN;function xK(){return zN||(zN=1,tA=Math.abs),tA}var nA,VN;function EK(){return VN||(VN=1,nA=Math.floor),nA}var rA,GN;function wK(){return GN||(GN=1,rA=Math.max),rA}var oA,QN;function SK(){return QN||(QN=1,oA=Math.min),oA}var iA,YN;function CK(){return YN||(YN=1,iA=Math.pow),iA}var aA,KN;function IK(){return KN||(KN=1,aA=Math.round),aA}var sA,XN;function TK(){return XN||(XN=1,sA=Number.isNaN||function(r){return r!==r}),sA}var uA,ZN;function RK(){if(ZN)return uA;ZN=1;var e=TK();return uA=function(i){return e(i)||i===0?i:i<0?-1:1},uA}var lA,JN;function OK(){return JN||(JN=1,lA=Object.getOwnPropertyDescriptor),lA}var cA,WN;function wc(){if(WN)return cA;WN=1;var e=OK();if(e)try{e([],"length")}catch{e=null}return cA=e,cA}var fA,eD;function qg(){if(eD)return fA;eD=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return fA=e,fA}var dA,tD;function FK(){if(tD)return dA;tD=1;var e=typeof Symbol<"u"&&Symbol,r=rC();return dA=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},dA}var hA,nD;function CM(){return nD||(nD=1,hA=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hA}var pA,rD;function IM(){if(rD)return pA;rD=1;var e=oC();return pA=e.getPrototypeOf||null,pA}var mA,oD;function NK(){if(oD)return mA;oD=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,i=Math.max,a="[object Function]",u=function(m,p){for(var A=[],v=0;v<m.length;v+=1)A[v]=m[v];for(var g=0;g<p.length;g+=1)A[g+m.length]=p[g];return A},c=function(m,p){for(var A=[],v=p,g=0;v<m.length;v+=1,g+=1)A[g]=m[v];return A},f=function(h,m){for(var p="",A=0;A<h.length;A+=1)p+=h[A],A+1<h.length&&(p+=m);return p};return mA=function(m){var p=this;if(typeof p!="function"||r.apply(p)!==a)throw new TypeError(e+p);for(var A=c(arguments,1),v,g=function(){if(this instanceof v){var N=p.apply(this,u(A,arguments));return Object(N)===N?N:this}return p.apply(m,u(A,arguments))},S=i(0,p.length-A.length),O=[],U=0;U<S;U++)O[U]="$"+U;if(v=Function("binder","return function ("+f(O,",")+"){ return binder.apply(this,arguments); }")(g),p.prototype){var F=function(){};F.prototype=p.prototype,v.prototype=new F,F.prototype=null}return v},mA}var gA,iD;function Sh(){if(iD)return gA;iD=1;var e=NK();return gA=Function.prototype.bind||e,gA}var yA,aD;function iC(){return aD||(aD=1,yA=Function.prototype.call),yA}var bA,sD;function aC(){return sD||(sD=1,bA=Function.prototype.apply),bA}var vA,uD;function DK(){return uD||(uD=1,vA=typeof Reflect<"u"&&Reflect&&Reflect.apply),vA}var AA,lD;function TM(){if(lD)return AA;lD=1;var e=Sh(),r=aC(),i=iC(),a=DK();return AA=a||e.call(i,r),AA}var xA,cD;function sC(){if(cD)return xA;cD=1;var e=Sh(),r=wh(),i=iC(),a=TM();return xA=function(c){if(c.length<1||typeof c[0]!="function")throw new r("a function is required");return a(e,i,c)},xA}var EA,fD;function BK(){if(fD)return EA;fD=1;var e=sC(),r=wc(),i;try{i=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var a=!!i&&r&&r(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;return EA=a&&typeof a.get=="function"?e([a.get]):typeof c=="function"?function(h){return c(h==null?h:u(h))}:!1,EA}var wA,dD;function uC(){if(dD)return wA;dD=1;var e=CM(),r=IM(),i=BK();return wA=e?function(u){return e(u)}:r?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return r(u)}:i?function(u){return i(u)}:null,wA}var SA,hD;function RM(){if(hD)return SA;hD=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=Sh();return SA=i.call(e,r),SA}var CA,pD;function lC(){if(pD)return CA;pD=1;var e,r=oC(),i=gK(),a=yK(),u=bK(),c=vK(),f=SM(),h=wh(),m=AK(),p=xK(),A=EK(),v=wK(),g=SK(),S=CK(),O=IK(),U=RK(),F=Function,N=function(L){try{return F('"use strict"; return ('+L+").constructor;")()}catch{}},D=wc(),M=qg(),re=function(){throw new h},K=D?(function(){try{return arguments.callee,re}catch{try{return D(arguments,"callee").get}catch{return re}}})():re,oe=FK()(),de=uC(),ue=IM(),T=CM(),$=aC(),z=iC(),V={},X=typeof Uint8Array>"u"||!de?e:de(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":oe&&de?de([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":V,"%AsyncGenerator%":V,"%AsyncGeneratorFunction%":V,"%AsyncIteratorPrototype%":V,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":F,"%GeneratorFunction%":V,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oe&&de?de(de([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!oe||!de?e:de(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":D,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!oe||!de?e:de(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oe&&de?de(""[Symbol.iterator]()):e,"%Symbol%":oe?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":K,"%TypedArray%":X,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":$,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":ue,"%Math.abs%":p,"%Math.floor%":A,"%Math.max%":v,"%Math.min%":g,"%Math.pow%":S,"%Math.round%":O,"%Math.sign%":U,"%Reflect.getPrototypeOf%":T};if(de)try{null.error}catch(L){var ve=de(de(L));J["%Error.prototype%"]=ve}var B=function L(w){var j;if(w==="%AsyncFunction%")j=N("async function () {}");else if(w==="%GeneratorFunction%")j=N("function* () {}");else if(w==="%AsyncGeneratorFunction%")j=N("async function* () {}");else if(w==="%AsyncGenerator%"){var G=L("%AsyncGeneratorFunction%");G&&(j=G.prototype)}else if(w==="%AsyncIteratorPrototype%"){var te=L("%AsyncGenerator%");te&&de&&(j=de(te.prototype))}return J[w]=j,j},he={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ge=Sh(),W=RM(),_=ge.call(z,Array.prototype.concat),ie=ge.call($,Array.prototype.splice),le=ge.call(z,String.prototype.replace),ee=ge.call(z,String.prototype.slice),k=ge.call(z,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,xe=function(w){var j=ee(w,0,1),G=ee(w,-1);if(j==="%"&&G!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&j!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var te=[];return le(w,H,function(me,ye,E,y){te[te.length]=E?le(y,Q,"$1"):ye||me}),te},Ae=function(w,j){var G=w,te;if(W(he,G)&&(te=he[G],G="%"+te[0]+"%"),W(J,G)){var me=J[G];if(me===V&&(me=B(G)),typeof me>"u"&&!j)throw new h("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:te,name:G,value:me}}throw new f("intrinsic "+w+" does not exist!")};return CA=function(w,j){if(typeof w!="string"||w.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new h('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,w)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=xe(w),te=G.length>0?G[0]:"",me=Ae("%"+te+"%",j),ye=me.name,E=me.value,y=!1,b=me.alias;b&&(te=b[0],ie(G,_([0,1],b)));for(var I=1,Y=!0;I<G.length;I+=1){var Ee=G[I],Re=ee(Ee,0,1),He=ee(Ee,-1);if((Re==='"'||Re==="'"||Re==="`"||He==='"'||He==="'"||He==="`")&&Re!==He)throw new f("property names with quotes must have matching quotes");if((Ee==="constructor"||!Y)&&(y=!0),te+="."+Ee,ye="%"+te+"%",W(J,ye))E=J[ye];else if(E!=null){if(!(Ee in E)){if(!j)throw new h("base intrinsic for "+w+" exists, but the property is not available.");return}if(D&&I+1>=G.length){var fe=D(E,Ee);Y=!!fe,Y&&"get"in fe&&!("originalValue"in fe.get)?E=fe.get:E=E[Ee]}else Y=W(E,Ee),E=E[Ee];Y&&!y&&(J[ye]=E)}}return E},CA}var IA,mD;function Sc(){if(mD)return IA;mD=1;var e=lC(),r=sC(),i=r([e("%String.prototype.indexOf%")]);return IA=function(u,c){var f=e(u,!!c);return typeof f=="function"&&i(u,".prototype.")>-1?r([f]):f},IA}var TA,gD;function UK(){if(gD)return TA;gD=1;var e=$g()(),r=Sc(),i=r("Object.prototype.toString"),a=function(h){return e&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:i(h)==="[object Arguments]"},u=function(h){return a(h)?!0:h!==null&&typeof h=="object"&&"length"in h&&typeof h.length=="number"&&h.length>=0&&i(h)!=="[object Array]"&&"callee"in h&&i(h.callee)==="[object Function]"},c=(function(){return a(arguments)})();return a.isLegacyArguments=u,TA=c?a:u,TA}var RA,yD;function _K(){if(yD)return RA;yD=1;var e=Sc(),r=$g()(),i=RM(),a=wc(),u;if(r){var c=e("RegExp.prototype.exec"),f={},h=function(){throw f},m={toString:h,valueOf:h};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=h),u=function(g){if(!g||typeof g!="object")return!1;var S=a(g,"lastIndex"),O=S&&i(S,"value");if(!O)return!1;try{c(g,m)}catch(U){return U===f}}}else{var p=e("Object.prototype.toString"),A="[object RegExp]";u=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:p(g)===A}}return RA=u,RA}var OA,bD;function MK(){if(bD)return OA;bD=1;var e=Sc(),r=_K(),i=e("RegExp.prototype.exec"),a=wh();return OA=function(c){if(!r(c))throw new a("`regex` must be a RegExp");return function(h){return i(c,h)!==null}},OA}var FA,vD;function PK(){if(vD)return FA;vD=1;var e=Sc(),r=MK(),i=r(/^\s*(?:function)?\*/),a=$g()(),u=uC(),c=e("Object.prototype.toString"),f=e("Function.prototype.toString"),h=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},m;return FA=function(A){if(typeof A!="function")return!1;if(i(f(A)))return!0;if(!a){var v=c(A);return v==="[object GeneratorFunction]"}if(!u)return!1;if(typeof m>"u"){var g=h();m=g?u(g):!1}return u(A)===m},FA}var NA,AD;function jK(){if(AD)return NA;AD=1;var e=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,a;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(D){D!==a&&(r=null)}else r=null;var u=/^\s*class\b/,c=function(M){try{var re=e.call(M);return u.test(re)}catch{return!1}},f=function(M){try{return c(M)?!1:(e.call(M),!0)}catch{return!1}},h=Object.prototype.toString,m="[object Object]",p="[object Function]",A="[object GeneratorFunction]",v="[object HTMLAllCollection]",g="[object HTML document.all class]",S="[object HTMLCollection]",O=typeof Symbol=="function"&&!!Symbol.toStringTag,U=!(0 in[,]),F=function(){return!1};if(typeof document=="object"){var N=document.all;h.call(N)===h.call(document.all)&&(F=function(M){if((U||!M)&&(typeof M>"u"||typeof M=="object"))try{var re=h.call(M);return(re===v||re===g||re===S||re===m)&&M("")==null}catch{}return!1})}return NA=r?function(M){if(F(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{r(M,null,i)}catch(re){if(re!==a)return!1}return!c(M)&&f(M)}:function(M){if(F(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(O)return f(M);if(c(M))return!1;var re=h.call(M);return re!==p&&re!==A&&!/^\[object HTML/.test(re)?!1:f(M)},NA}var DA,xD;function LK(){if(xD)return DA;xD=1;var e=jK(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(m,p,A){for(var v=0,g=m.length;v<g;v++)i.call(m,v)&&(A==null?p(m[v],v,m):p.call(A,m[v],v,m))},u=function(m,p,A){for(var v=0,g=m.length;v<g;v++)A==null?p(m.charAt(v),v,m):p.call(A,m.charAt(v),v,m)},c=function(m,p,A){for(var v in m)i.call(m,v)&&(A==null?p(m[v],v,m):p.call(A,m[v],v,m))};function f(h){return r.call(h)==="[object Array]"}return DA=function(m,p,A){if(!e(p))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=A),f(m)?a(m,p,v):typeof m=="string"?u(m,p,v):c(m,p,v)},DA}var BA,ED;function kK(){return ED||(ED=1,BA=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),BA}var UA,wD;function $K(){if(wD)return UA;wD=1;var e=kK(),r=typeof globalThis>"u"?Zi:globalThis;return UA=function(){for(var a=[],u=0;u<e.length;u++)typeof r[e[u]]=="function"&&(a[a.length]=e[u]);return a},UA}var _A={exports:{}},MA,SD;function OM(){if(SD)return MA;SD=1;var e=qg(),r=SM(),i=wh(),a=wc();return MA=function(c,f,h){if(!c||typeof c!="object"&&typeof c!="function")throw new i("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var m=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,g=!!a&&a(c,f);if(e)e(c,f,{configurable:A===null&&g?g.configurable:!A,enumerable:m===null&&g?g.enumerable:!m,value:h,writable:p===null&&g?g.writable:!p});else if(v||!m&&!p&&!A)c[f]=h;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},MA}var PA,CD;function FM(){if(CD)return PA;CD=1;var e=qg(),r=function(){return!!e};return r.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},PA=r,PA}var jA,ID;function qK(){if(ID)return jA;ID=1;var e=lC(),r=OM(),i=FM()(),a=wc(),u=wh(),c=e("%Math.floor%");return jA=function(h,m){if(typeof h!="function")throw new u("`fn` is not a function");if(typeof m!="number"||m<0||m>4294967295||c(m)!==m)throw new u("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],A=!0,v=!0;if("length"in h&&a){var g=a(h,"length");g&&!g.configurable&&(A=!1),g&&!g.writable&&(v=!1)}return(A||v||!p)&&(i?r(h,"length",m,!0,!0):r(h,"length",m)),h},jA}var LA,TD;function HK(){if(TD)return LA;TD=1;var e=Sh(),r=aC(),i=TM();return LA=function(){return i(e,r,arguments)},LA}var RD;function Hg(){return RD||(RD=1,(function(e){var r=qK(),i=qg(),a=sC(),u=HK();e.exports=function(f){var h=a(arguments),m=f.length-(arguments.length-1);return r(h,1+(m>0?m:0),!0)},i?i(e.exports,"apply",{value:u}):e.exports.apply=u})(_A)),_A.exports}var kA,OD;function NM(){if(OD)return kA;OD=1;var e=LK(),r=$K(),i=Hg(),a=Sc(),u=wc(),c=uC(),f=a("Object.prototype.toString"),h=$g()(),m=typeof globalThis>"u"?Zi:globalThis,p=r(),A=a("String.prototype.slice"),v=a("Array.prototype.indexOf",!0)||function(F,N){for(var D=0;D<F.length;D+=1)if(F[D]===N)return D;return-1},g={__proto__:null};h&&u&&c?e(p,function(U){var F=new m[U];if(Symbol.toStringTag in F&&c){var N=c(F),D=u(N,Symbol.toStringTag);if(!D&&N){var M=c(N);D=u(M,Symbol.toStringTag)}g["$"+U]=i(D.get)}}):e(p,function(U){var F=new m[U],N=F.slice||F.set;N&&(g["$"+U]=i(N))});var S=function(F){var N=!1;return e(g,function(D,M){if(!N)try{"$"+D(F)===M&&(N=A(M,1))}catch{}}),N},O=function(F){var N=!1;return e(g,function(D,M){if(!N)try{D(F),N=A(M,1)}catch{}}),N};return kA=function(F){if(!F||typeof F!="object")return!1;if(!h){var N=A(f(F),8,-1);return v(p,N)>-1?N:N!=="Object"?!1:O(F)}return u?S(F):null},kA}var $A,FD;function zK(){if(FD)return $A;FD=1;var e=NM();return $A=function(i){return!!e(i)},$A}var ND;function VK(){return ND||(ND=1,(function(e){var r=UK(),i=PK(),a=NM(),u=zK();function c(I){return I.call.bind(I)}var f=typeof BigInt<"u",h=typeof Symbol<"u",m=c(Object.prototype.toString),p=c(Number.prototype.valueOf),A=c(String.prototype.valueOf),v=c(Boolean.prototype.valueOf);if(f)var g=c(BigInt.prototype.valueOf);if(h)var S=c(Symbol.prototype.valueOf);function O(I,Y){if(typeof I!="object")return!1;try{return Y(I),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=u;function U(I){return typeof Promise<"u"&&I instanceof Promise||I!==null&&typeof I=="object"&&typeof I.then=="function"&&typeof I.catch=="function"}e.isPromise=U;function F(I){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(I):u(I)||ee(I)}e.isArrayBufferView=F;function N(I){return a(I)==="Uint8Array"}e.isUint8Array=N;function D(I){return a(I)==="Uint8ClampedArray"}e.isUint8ClampedArray=D;function M(I){return a(I)==="Uint16Array"}e.isUint16Array=M;function re(I){return a(I)==="Uint32Array"}e.isUint32Array=re;function K(I){return a(I)==="Int8Array"}e.isInt8Array=K;function oe(I){return a(I)==="Int16Array"}e.isInt16Array=oe;function de(I){return a(I)==="Int32Array"}e.isInt32Array=de;function ue(I){return a(I)==="Float32Array"}e.isFloat32Array=ue;function T(I){return a(I)==="Float64Array"}e.isFloat64Array=T;function $(I){return a(I)==="BigInt64Array"}e.isBigInt64Array=$;function z(I){return a(I)==="BigUint64Array"}e.isBigUint64Array=z;function V(I){return m(I)==="[object Map]"}V.working=typeof Map<"u"&&V(new Map);function X(I){return typeof Map>"u"?!1:V.working?V(I):I instanceof Map}e.isMap=X;function J(I){return m(I)==="[object Set]"}J.working=typeof Set<"u"&&J(new Set);function ve(I){return typeof Set>"u"?!1:J.working?J(I):I instanceof Set}e.isSet=ve;function B(I){return m(I)==="[object WeakMap]"}B.working=typeof WeakMap<"u"&&B(new WeakMap);function he(I){return typeof WeakMap>"u"?!1:B.working?B(I):I instanceof WeakMap}e.isWeakMap=he;function ge(I){return m(I)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function W(I){return ge(I)}e.isWeakSet=W;function _(I){return m(I)==="[object ArrayBuffer]"}_.working=typeof ArrayBuffer<"u"&&_(new ArrayBuffer);function ie(I){return typeof ArrayBuffer>"u"?!1:_.working?_(I):I instanceof ArrayBuffer}e.isArrayBuffer=ie;function le(I){return m(I)==="[object DataView]"}le.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&le(new DataView(new ArrayBuffer(1),0,1));function ee(I){return typeof DataView>"u"?!1:le.working?le(I):I instanceof DataView}e.isDataView=ee;var k=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function H(I){return m(I)==="[object SharedArrayBuffer]"}function Q(I){return typeof k>"u"?!1:(typeof H.working>"u"&&(H.working=H(new k)),H.working?H(I):I instanceof k)}e.isSharedArrayBuffer=Q;function xe(I){return m(I)==="[object AsyncFunction]"}e.isAsyncFunction=xe;function Ae(I){return m(I)==="[object Map Iterator]"}e.isMapIterator=Ae;function L(I){return m(I)==="[object Set Iterator]"}e.isSetIterator=L;function w(I){return m(I)==="[object Generator]"}e.isGeneratorObject=w;function j(I){return m(I)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=j;function G(I){return O(I,p)}e.isNumberObject=G;function te(I){return O(I,A)}e.isStringObject=te;function me(I){return O(I,v)}e.isBooleanObject=me;function ye(I){return f&&O(I,g)}e.isBigIntObject=ye;function E(I){return h&&O(I,S)}e.isSymbolObject=E;function y(I){return G(I)||te(I)||me(I)||ye(I)||E(I)}e.isBoxedPrimitive=y;function b(I){return typeof Uint8Array<"u"&&(ie(I)||Q(I))}e.isAnyArrayBuffer=b,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(I){Object.defineProperty(e,I,{enumerable:!1,value:function(){throw new Error(I+" is not supported in userland")}})})})(zv)),zv}var qA,DD;function GK(){return DD||(DD=1,qA=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),qA}var Om={exports:{}},BD;function QK(){return BD||(BD=1,typeof Object.create=="function"?Om.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Om.exports=function(r,i){if(i){r.super_=i;var a=function(){};a.prototype=i.prototype,r.prototype=new a,r.prototype.constructor=r}}),Om.exports}var UD;function Jd(){return UD||(UD=1,(function(e){var r={},i=Object.getOwnPropertyDescriptors||function(k){for(var H=Object.keys(k),Q={},xe=0;xe<H.length;xe++)Q[H[xe]]=Object.getOwnPropertyDescriptor(k,H[xe]);return Q},a=/%[sdj%]/g;e.format=function(ee){if(!oe(ee)){for(var k=[],H=0;H<arguments.length;H++)k.push(h(arguments[H]));return k.join(" ")}for(var H=1,Q=arguments,xe=Q.length,Ae=String(ee).replace(a,function(w){if(w==="%%")return"%";if(H>=xe)return w;switch(w){case"%s":return String(Q[H++]);case"%d":return Number(Q[H++]);case"%j":try{return JSON.stringify(Q[H++])}catch{return"[Circular]"}default:return w}}),L=Q[H];H<xe;L=Q[++H])M(L)||!$(L)?Ae+=" "+L:Ae+=" "+h(L);return Ae},e.deprecate=function(ee,k){if(typeof It<"u"&&It.noDeprecation===!0)return ee;if(typeof It>"u")return function(){return e.deprecate(ee,k).apply(this,arguments)};var H=!1;function Q(){if(!H){if(It.throwDeprecation)throw new Error(k);It.traceDeprecation?console.trace(k):console.error(k),H=!0}return ee.apply(this,arguments)}return Q};var u={},c=/^$/;if(r.NODE_DEBUG){var f=r.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+f+"$","i")}e.debuglog=function(ee){if(ee=ee.toUpperCase(),!u[ee])if(c.test(ee)){var k=It.pid;u[ee]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",ee,k,H)}}else u[ee]=function(){};return u[ee]};function h(ee,k){var H={seen:[],stylize:p};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),D(k)?H.showHidden=k:k&&e._extend(H,k),ue(H.showHidden)&&(H.showHidden=!1),ue(H.depth)&&(H.depth=2),ue(H.colors)&&(H.colors=!1),ue(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=m),v(H,ee,H.depth)}e.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(ee,k){var H=h.styles[k];return H?"\x1B["+h.colors[H][0]+"m"+ee+"\x1B["+h.colors[H][1]+"m":ee}function p(ee,k){return ee}function A(ee){var k={};return ee.forEach(function(H,Q){k[H]=!0}),k}function v(ee,k,H){if(ee.customInspect&&k&&X(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var Q=k.inspect(H,ee);return oe(Q)||(Q=v(ee,Q,H)),Q}var xe=g(ee,k);if(xe)return xe;var Ae=Object.keys(k),L=A(Ae);if(ee.showHidden&&(Ae=Object.getOwnPropertyNames(k)),V(k)&&(Ae.indexOf("message")>=0||Ae.indexOf("description")>=0))return S(k);if(Ae.length===0){if(X(k)){var w=k.name?": "+k.name:"";return ee.stylize("[Function"+w+"]","special")}if(T(k))return ee.stylize(RegExp.prototype.toString.call(k),"regexp");if(z(k))return ee.stylize(Date.prototype.toString.call(k),"date");if(V(k))return S(k)}var j="",G=!1,te=["{","}"];if(N(k)&&(G=!0,te=["[","]"]),X(k)){var me=k.name?": "+k.name:"";j=" [Function"+me+"]"}if(T(k)&&(j=" "+RegExp.prototype.toString.call(k)),z(k)&&(j=" "+Date.prototype.toUTCString.call(k)),V(k)&&(j=" "+S(k)),Ae.length===0&&(!G||k.length==0))return te[0]+j+te[1];if(H<0)return T(k)?ee.stylize(RegExp.prototype.toString.call(k),"regexp"):ee.stylize("[Object]","special");ee.seen.push(k);var ye;return G?ye=O(ee,k,H,L,Ae):ye=Ae.map(function(E){return U(ee,k,H,L,E,G)}),ee.seen.pop(),F(ye,j,te)}function g(ee,k){if(ue(k))return ee.stylize("undefined","undefined");if(oe(k)){var H="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ee.stylize(H,"string")}if(K(k))return ee.stylize(""+k,"number");if(D(k))return ee.stylize(""+k,"boolean");if(M(k))return ee.stylize("null","null")}function S(ee){return"["+Error.prototype.toString.call(ee)+"]"}function O(ee,k,H,Q,xe){for(var Ae=[],L=0,w=k.length;L<w;++L)W(k,String(L))?Ae.push(U(ee,k,H,Q,String(L),!0)):Ae.push("");return xe.forEach(function(j){j.match(/^\d+$/)||Ae.push(U(ee,k,H,Q,j,!0))}),Ae}function U(ee,k,H,Q,xe,Ae){var L,w,j;if(j=Object.getOwnPropertyDescriptor(k,xe)||{value:k[xe]},j.get?j.set?w=ee.stylize("[Getter/Setter]","special"):w=ee.stylize("[Getter]","special"):j.set&&(w=ee.stylize("[Setter]","special")),W(Q,xe)||(L="["+xe+"]"),w||(ee.seen.indexOf(j.value)<0?(M(H)?w=v(ee,j.value,null):w=v(ee,j.value,H-1),w.indexOf(`
|
|
300
|
+
`)>-1&&(Ae?w=w.split(`
|
|
301
|
+
`).map(function(G){return" "+G}).join(`
|
|
302
|
+
`).slice(2):w=`
|
|
303
|
+
`+w.split(`
|
|
304
|
+
`).map(function(G){return" "+G}).join(`
|
|
305
|
+
`))):w=ee.stylize("[Circular]","special")),ue(L)){if(Ae&&xe.match(/^\d+$/))return w;L=JSON.stringify(""+xe),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=ee.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=ee.stylize(L,"string"))}return L+": "+w}function F(ee,k,H){var Q=ee.reduce(function(xe,Ae){return Ae.indexOf(`
|
|
306
|
+
`)>=0,xe+Ae.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Q>60?H[0]+(k===""?"":k+`
|
|
307
|
+
`)+" "+ee.join(`,
|
|
308
|
+
`)+" "+H[1]:H[0]+k+" "+ee.join(", ")+" "+H[1]}e.types=VK();function N(ee){return Array.isArray(ee)}e.isArray=N;function D(ee){return typeof ee=="boolean"}e.isBoolean=D;function M(ee){return ee===null}e.isNull=M;function re(ee){return ee==null}e.isNullOrUndefined=re;function K(ee){return typeof ee=="number"}e.isNumber=K;function oe(ee){return typeof ee=="string"}e.isString=oe;function de(ee){return typeof ee=="symbol"}e.isSymbol=de;function ue(ee){return ee===void 0}e.isUndefined=ue;function T(ee){return $(ee)&&ve(ee)==="[object RegExp]"}e.isRegExp=T,e.types.isRegExp=T;function $(ee){return typeof ee=="object"&&ee!==null}e.isObject=$;function z(ee){return $(ee)&&ve(ee)==="[object Date]"}e.isDate=z,e.types.isDate=z;function V(ee){return $(ee)&&(ve(ee)==="[object Error]"||ee instanceof Error)}e.isError=V,e.types.isNativeError=V;function X(ee){return typeof ee=="function"}e.isFunction=X;function J(ee){return ee===null||typeof ee=="boolean"||typeof ee=="number"||typeof ee=="string"||typeof ee=="symbol"||typeof ee>"u"}e.isPrimitive=J,e.isBuffer=GK();function ve(ee){return Object.prototype.toString.call(ee)}function B(ee){return ee<10?"0"+ee.toString(10):ee.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ge(){var ee=new Date,k=[B(ee.getHours()),B(ee.getMinutes()),B(ee.getSeconds())].join(":");return[ee.getDate(),he[ee.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",ge(),e.format.apply(e,arguments))},e.inherits=QK(),e._extend=function(ee,k){if(!k||!$(k))return ee;for(var H=Object.keys(k),Q=H.length;Q--;)ee[H[Q]]=k[H[Q]];return ee};function W(ee,k){return Object.prototype.hasOwnProperty.call(ee,k)}var _=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(_&&k[_]){var H=k[_];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,_,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var Q,xe,Ae=new Promise(function(j,G){Q=j,xe=G}),L=[],w=0;w<arguments.length;w++)L.push(arguments[w]);L.push(function(j,G){j?xe(j):Q(G)});try{k.apply(this,L)}catch(j){xe(j)}return Ae}return Object.setPrototypeOf(H,Object.getPrototypeOf(k)),_&&Object.defineProperty(H,_,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,i(k))},e.promisify.custom=_;function ie(ee,k){if(!ee){var H=new Error("Promise was rejected with a falsy value");H.reason=ee,ee=H}return k(ee)}function le(ee){if(typeof ee!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var H=[],Q=0;Q<arguments.length;Q++)H.push(arguments[Q]);var xe=H.pop();if(typeof xe!="function")throw new TypeError("The last argument must be of type Function");var Ae=this,L=function(){return xe.apply(Ae,arguments)};ee.apply(this,H).then(function(w){It.nextTick(L.bind(null,null,w))},function(w){It.nextTick(ie.bind(null,w,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(ee)),Object.defineProperties(k,i(ee)),k}e.callbackify=le})(Hv)),Hv}var _D;function DM(){if(_D)return qv;_D=1;function e(D){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(D)}function r(D,M,re){return Object.defineProperty(D,"prototype",{writable:!1}),D}function i(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}function a(D,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(M&&M.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),M&&u(D,M)}function u(D,M){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,oe){return K.__proto__=oe,K},u(D,M)}function c(D){var M=m();return function(){var K=p(D),oe;if(M){var de=p(this).constructor;oe=Reflect.construct(K,arguments,de)}else oe=K.apply(this,arguments);return f(this,oe)}}function f(D,M){if(M&&(e(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(D)}function h(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function p(D){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(re){return re.__proto__||Object.getPrototypeOf(re)},p(D)}var A={},v,g;function S(D,M,re){re||(re=Error);function K(de,ue,T){return typeof M=="string"?M:M(de,ue,T)}var oe=(function(de){a(T,de);var ue=c(T);function T($,z,V){var X;return i(this,T),X=ue.call(this,K($,z,V)),X.code=D,X}return r(T)})(re);A[D]=oe}function O(D,M){if(Array.isArray(D)){var re=D.length;return D=D.map(function(K){return String(K)}),re>2?"one of ".concat(M," ").concat(D.slice(0,re-1).join(", "),", or ")+D[re-1]:re===2?"one of ".concat(M," ").concat(D[0]," or ").concat(D[1]):"of ".concat(M," ").concat(D[0])}else return"of ".concat(M," ").concat(String(D))}function U(D,M,re){return D.substr(0,M.length)===M}function F(D,M,re){return(re===void 0||re>D.length)&&(re=D.length),D.substring(re-M.length,re)===M}function N(D,M,re){return typeof re!="number"&&(re=0),re+M.length>D.length?!1:D.indexOf(M,re)!==-1}return S("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),S("ERR_INVALID_ARG_TYPE",function(D,M,re){v===void 0&&(v=Lw()),v(typeof D=="string","'name' must be a string");var K;typeof M=="string"&&U(M,"not ")?(K="must not be",M=M.replace(/^not /,"")):K="must be";var oe;if(F(D," argument"))oe="The ".concat(D," ").concat(K," ").concat(O(M,"type"));else{var de=N(D,".")?"property":"argument";oe='The "'.concat(D,'" ').concat(de," ").concat(K," ").concat(O(M,"type"))}return oe+=". Received type ".concat(e(re)),oe},TypeError),S("ERR_INVALID_ARG_VALUE",function(D,M){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";g===void 0&&(g=Jd());var K=g.inspect(M);return K.length>128&&(K="".concat(K.slice(0,128),"...")),"The argument '".concat(D,"' ").concat(re,". Received ").concat(K)},TypeError),S("ERR_INVALID_RETURN_VALUE",function(D,M,re){var K;return re&&re.constructor&&re.constructor.name?K="instance of ".concat(re.constructor.name):K="type ".concat(e(re)),"Expected ".concat(D,' to be returned from the "').concat(M,'"')+" function but got ".concat(K,".")},TypeError),S("ERR_MISSING_ARGS",function(){for(var D=arguments.length,M=new Array(D),re=0;re<D;re++)M[re]=arguments[re];v===void 0&&(v=Lw()),v(M.length>0,"At least one arg needs to be specified");var K="The ",oe=M.length;switch(M=M.map(function(de){return'"'.concat(de,'"')}),oe){case 1:K+="".concat(M[0]," argument");break;case 2:K+="".concat(M[0]," and ").concat(M[1]," arguments");break;default:K+=M.slice(0,oe-1).join(", "),K+=", and ".concat(M[oe-1]," arguments");break}return"".concat(K," must be specified")},TypeError),qv.codes=A,qv}var HA,MD;function YK(){if(MD)return HA;MD=1;function e(W,_){var ie=Object.keys(W);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(W);_&&(le=le.filter(function(ee){return Object.getOwnPropertyDescriptor(W,ee).enumerable})),ie.push.apply(ie,le)}return ie}function r(W){for(var _=1;_<arguments.length;_++){var ie=arguments[_]!=null?arguments[_]:{};_%2?e(Object(ie),!0).forEach(function(le){i(W,le,ie[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(ie)):e(Object(ie)).forEach(function(le){Object.defineProperty(W,le,Object.getOwnPropertyDescriptor(ie,le))})}return W}function i(W,_,ie){return _=f(_),_ in W?Object.defineProperty(W,_,{value:ie,enumerable:!0,configurable:!0,writable:!0}):W[_]=ie,W}function a(W,_){if(!(W instanceof _))throw new TypeError("Cannot call a class as a function")}function u(W,_){for(var ie=0;ie<_.length;ie++){var le=_[ie];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(W,f(le.key),le)}}function c(W,_,ie){return _&&u(W.prototype,_),Object.defineProperty(W,"prototype",{writable:!1}),W}function f(W){var _=h(W,"string");return D(_)==="symbol"?_:String(_)}function h(W,_){if(D(W)!=="object"||W===null)return W;var ie=W[Symbol.toPrimitive];if(ie!==void 0){var le=ie.call(W,_);if(D(le)!=="object")return le;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}function m(W,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(_&&_.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),_&&F(W,_)}function p(W){var _=O();return function(){var le=N(W),ee;if(_){var k=N(this).constructor;ee=Reflect.construct(le,arguments,k)}else ee=le.apply(this,arguments);return A(this,ee)}}function A(W,_){if(_&&(D(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(W)}function v(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function g(W){var _=typeof Map=="function"?new Map:void 0;return g=function(le){if(le===null||!U(le))return le;if(typeof le!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(le))return _.get(le);_.set(le,ee)}function ee(){return S(le,arguments,N(this).constructor)}return ee.prototype=Object.create(le.prototype,{constructor:{value:ee,enumerable:!1,writable:!0,configurable:!0}}),F(ee,le)},g(W)}function S(W,_,ie){return O()?S=Reflect.construct.bind():S=function(ee,k,H){var Q=[null];Q.push.apply(Q,k);var xe=Function.bind.apply(ee,Q),Ae=new xe;return H&&F(Ae,H.prototype),Ae},S.apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U(W){return Function.toString.call(W).indexOf("[native code]")!==-1}function F(W,_){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(le,ee){return le.__proto__=ee,le},F(W,_)}function N(W){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},N(W)}function D(W){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},D(W)}var M=Jd(),re=M.inspect,K=DM(),oe=K.codes.ERR_INVALID_ARG_TYPE;function de(W,_,ie){return(ie===void 0||ie>W.length)&&(ie=W.length),W.substring(ie-_.length,ie)===_}function ue(W,_){if(_=Math.floor(_),W.length==0||_==0)return"";var ie=W.length*_;for(_=Math.floor(Math.log(_)/Math.log(2));_;)W+=W,_--;return W+=W.substring(0,ie-W.length),W}var T="",$="",z="",V="",X={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},J=10;function ve(W){var _=Object.keys(W),ie=Object.create(Object.getPrototypeOf(W));return _.forEach(function(le){ie[le]=W[le]}),Object.defineProperty(ie,"message",{value:W.message}),ie}function B(W){return re(W,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function he(W,_,ie){var le="",ee="",k=0,H="",Q=!1,xe=B(W),Ae=xe.split(`
|
|
309
|
+
`),L=B(_).split(`
|
|
310
|
+
`),w=0,j="";if(ie==="strictEqual"&&D(W)==="object"&&D(_)==="object"&&W!==null&&_!==null&&(ie="strictEqualObject"),Ae.length===1&&L.length===1&&Ae[0]!==L[0]){var G=Ae[0].length+L[0].length;if(G<=J){if((D(W)!=="object"||W===null)&&(D(_)!=="object"||_===null)&&(W!==0||_!==0))return"".concat(X[ie],`
|
|
311
|
+
|
|
312
|
+
`)+"".concat(Ae[0]," !== ").concat(L[0],`
|
|
313
|
+
`)}else if(ie!=="strictEqualObject"){var te=It.stderr&&It.stderr.isTTY?It.stderr.columns:80;if(G<te){for(;Ae[0][w]===L[0][w];)w++;w>2&&(j=`
|
|
314
|
+
`.concat(ue(" ",w),"^"),w=0)}}}for(var me=Ae[Ae.length-1],ye=L[L.length-1];me===ye&&(w++<2?H=`
|
|
315
|
+
`.concat(me).concat(H):le=me,Ae.pop(),L.pop(),!(Ae.length===0||L.length===0));)me=Ae[Ae.length-1],ye=L[L.length-1];var E=Math.max(Ae.length,L.length);if(E===0){var y=xe.split(`
|
|
316
|
+
`);if(y.length>30)for(y[26]="".concat(T,"...").concat(V);y.length>27;)y.pop();return"".concat(X.notIdentical,`
|
|
317
|
+
|
|
318
|
+
`).concat(y.join(`
|
|
319
|
+
`),`
|
|
320
|
+
`)}w>3&&(H=`
|
|
321
|
+
`.concat(T,"...").concat(V).concat(H),Q=!0),le!==""&&(H=`
|
|
322
|
+
`.concat(le).concat(H),le="");var b=0,I=X[ie]+`
|
|
323
|
+
`.concat($,"+ actual").concat(V," ").concat(z,"- expected").concat(V),Y=" ".concat(T,"...").concat(V," Lines skipped");for(w=0;w<E;w++){var Ee=w-k;if(Ae.length<w+1)Ee>1&&w>2&&(Ee>4?(ee+=`
|
|
324
|
+
`.concat(T,"...").concat(V),Q=!0):Ee>3&&(ee+=`
|
|
325
|
+
`.concat(L[w-2]),b++),ee+=`
|
|
326
|
+
`.concat(L[w-1]),b++),k=w,le+=`
|
|
327
|
+
`.concat(z,"-").concat(V," ").concat(L[w]),b++;else if(L.length<w+1)Ee>1&&w>2&&(Ee>4?(ee+=`
|
|
328
|
+
`.concat(T,"...").concat(V),Q=!0):Ee>3&&(ee+=`
|
|
329
|
+
`.concat(Ae[w-2]),b++),ee+=`
|
|
330
|
+
`.concat(Ae[w-1]),b++),k=w,ee+=`
|
|
331
|
+
`.concat($,"+").concat(V," ").concat(Ae[w]),b++;else{var Re=L[w],He=Ae[w],fe=He!==Re&&(!de(He,",")||He.slice(0,-1)!==Re);fe&&de(Re,",")&&Re.slice(0,-1)===He&&(fe=!1,He+=","),fe?(Ee>1&&w>2&&(Ee>4?(ee+=`
|
|
332
|
+
`.concat(T,"...").concat(V),Q=!0):Ee>3&&(ee+=`
|
|
333
|
+
`.concat(Ae[w-2]),b++),ee+=`
|
|
334
|
+
`.concat(Ae[w-1]),b++),k=w,ee+=`
|
|
335
|
+
`.concat($,"+").concat(V," ").concat(He),le+=`
|
|
336
|
+
`.concat(z,"-").concat(V," ").concat(Re),b+=2):(ee+=le,le="",(Ee===1||w===0)&&(ee+=`
|
|
337
|
+
`.concat(He),b++))}if(b>20&&w<E-2)return"".concat(I).concat(Y,`
|
|
338
|
+
`).concat(ee,`
|
|
339
|
+
`).concat(T,"...").concat(V).concat(le,`
|
|
340
|
+
`)+"".concat(T,"...").concat(V)}return"".concat(I).concat(Q?Y:"",`
|
|
341
|
+
`).concat(ee).concat(le).concat(H).concat(j)}var ge=(function(W,_){m(le,W);var ie=p(le);function le(ee){var k;if(a(this,le),D(ee)!=="object"||ee===null)throw new oe("options","Object",ee);var H=ee.message,Q=ee.operator,xe=ee.stackStartFn,Ae=ee.actual,L=ee.expected,w=Error.stackTraceLimit;if(Error.stackTraceLimit=0,H!=null)k=ie.call(this,String(H));else if(It.stderr&&It.stderr.isTTY&&(It.stderr&&It.stderr.getColorDepth&&It.stderr.getColorDepth()!==1?(T="\x1B[34m",$="\x1B[32m",V="\x1B[39m",z="\x1B[31m"):(T="",$="",V="",z="")),D(Ae)==="object"&&Ae!==null&&D(L)==="object"&&L!==null&&"stack"in Ae&&Ae instanceof Error&&"stack"in L&&L instanceof Error&&(Ae=ve(Ae),L=ve(L)),Q==="deepStrictEqual"||Q==="strictEqual")k=ie.call(this,he(Ae,L,Q));else if(Q==="notDeepStrictEqual"||Q==="notStrictEqual"){var j=X[Q],G=B(Ae).split(`
|
|
342
|
+
`);if(Q==="notStrictEqual"&&D(Ae)==="object"&&Ae!==null&&(j=X.notStrictEqualObject),G.length>30)for(G[26]="".concat(T,"...").concat(V);G.length>27;)G.pop();G.length===1?k=ie.call(this,"".concat(j," ").concat(G[0])):k=ie.call(this,"".concat(j,`
|
|
343
|
+
|
|
344
|
+
`).concat(G.join(`
|
|
345
|
+
`),`
|
|
346
|
+
`))}else{var te=B(Ae),me="",ye=X[Q];Q==="notDeepEqual"||Q==="notEqual"?(te="".concat(X[Q],`
|
|
347
|
+
|
|
348
|
+
`).concat(te),te.length>1024&&(te="".concat(te.slice(0,1021),"..."))):(me="".concat(B(L)),te.length>512&&(te="".concat(te.slice(0,509),"...")),me.length>512&&(me="".concat(me.slice(0,509),"...")),Q==="deepEqual"||Q==="equal"?te="".concat(ye,`
|
|
349
|
+
|
|
350
|
+
`).concat(te,`
|
|
351
|
+
|
|
352
|
+
should equal
|
|
353
|
+
|
|
354
|
+
`):me=" ".concat(Q," ").concat(me)),k=ie.call(this,"".concat(te).concat(me))}return Error.stackTraceLimit=w,k.generatedMessage=!H,Object.defineProperty(v(k),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),k.code="ERR_ASSERTION",k.actual=Ae,k.expected=L,k.operator=Q,Error.captureStackTrace&&Error.captureStackTrace(v(k),xe),k.stack,k.name="AssertionError",A(k)}return c(le,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:_,value:function(k,H){return re(this,r(r({},H),{},{customInspect:!1,depth:0}))}}]),le})(g(Error),re.custom);return HA=ge,HA}var zA,PD;function BM(){if(PD)return zA;PD=1;var e=Object.prototype.toString;return zA=function(i){var a=e.call(i),u=a==="[object Arguments]";return u||(u=a!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&e.call(i.callee)==="[object Function]"),u},zA}var VA,jD;function KK(){if(jD)return VA;jD=1;var e;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=BM(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),f=u.call(function(){},"prototype"),h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],m=function(g){var S=g.constructor;return S&&S.prototype===g},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},A=(function(){if(typeof window>"u")return!1;for(var g in window)try{if(!p["$"+g]&&r.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{m(window[g])}catch{return!0}}catch{return!0}return!1})(),v=function(g){if(typeof window>"u"||!A)return m(g);try{return m(g)}catch{return!1}};e=function(S){var O=S!==null&&typeof S=="object",U=i.call(S)==="[object Function]",F=a(S),N=O&&i.call(S)==="[object String]",D=[];if(!O&&!U&&!F)throw new TypeError("Object.keys called on a non-object");var M=f&&U;if(N&&S.length>0&&!r.call(S,0))for(var re=0;re<S.length;++re)D.push(String(re));if(F&&S.length>0)for(var K=0;K<S.length;++K)D.push(String(K));else for(var oe in S)!(M&&oe==="prototype")&&r.call(S,oe)&&D.push(String(oe));if(c)for(var de=v(S),ue=0;ue<h.length;++ue)!(de&&h[ue]==="constructor")&&r.call(S,h[ue])&&D.push(h[ue]);return D}}return VA=e,VA}var GA,LD;function UM(){if(LD)return GA;LD=1;var e=Array.prototype.slice,r=BM(),i=Object.keys,a=i?function(f){return i(f)}:KK(),u=Object.keys;return a.shim=function(){if(Object.keys){var f=(function(){var h=Object.keys(arguments);return h&&h.length===arguments.length})(1,2);f||(Object.keys=function(m){return r(m)?u(e.call(m)):u(m)})}else Object.keys=a;return Object.keys||a},GA=a,GA}var QA,kD;function XK(){if(kD)return QA;kD=1;var e=UM(),r=rC()(),i=Sc(),a=oC(),u=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),f=r?a.getOwnPropertySymbols:null;return QA=function(m,p){if(m==null)throw new TypeError("target must be an object");var A=a(m);if(arguments.length===1)return A;for(var v=1;v<arguments.length;++v){var g=a(arguments[v]),S=e(g),O=r&&(a.getOwnPropertySymbols||f);if(O)for(var U=O(g),F=0;F<U.length;++F){var N=U[F];c(g,N)&&u(S,N)}for(var D=0;D<S.length;++D){var M=S[D];if(c(g,M)){var re=g[M];A[M]=re}}}return A},QA}var YA,$D;function ZK(){if($D)return YA;$D=1;var e=XK(),r=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",u=a.split(""),c={},f=0;f<u.length;++f)c[u[f]]=u[f];var h=Object.assign({},c),m="";for(var p in h)m+=p;return a!==m},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return YA=function(){return!Object.assign||r()||i()?e:Object.assign},YA}var KA,qD;function _M(){if(qD)return KA;qD=1;var e=function(r){return r!==r};return KA=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},KA}var XA,HD;function cC(){if(HD)return XA;HD=1;var e=_M();return XA=function(){return typeof Object.is=="function"?Object.is:e},XA}var ZA,zD;function JK(){if(zD)return ZA;zD=1;var e=lC(),r=Hg(),i=r(e("String.prototype.indexOf"));return ZA=function(u,c){var f=e(u,!!c);return typeof f=="function"&&i(u,".prototype.")>-1?r(f):f},ZA}var JA,VD;function zg(){if(VD)return JA;VD=1;var e=UM(),r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,u=OM(),c=function(p){return typeof p=="function"&&i.call(p)==="[object Function]"},f=FM()(),h=function(p,A,v,g){if(A in p){if(g===!0){if(p[A]===v)return}else if(!c(g)||!g())return}f?u(p,A,v,!0):u(p,A,v)},m=function(p,A){var v=arguments.length>2?arguments[2]:{},g=e(A);r&&(g=a.call(g,Object.getOwnPropertySymbols(A)));for(var S=0;S<g.length;S+=1)h(p,g[S],A[g[S]],v[g[S]])};return m.supportsDescriptors=!!f,JA=m,JA}var WA,GD;function WK(){if(GD)return WA;GD=1;var e=cC(),r=zg();return WA=function(){var a=e();return r(Object,{is:a},{is:function(){return Object.is!==a}}),a},WA}var e1,QD;function eX(){if(QD)return e1;QD=1;var e=zg(),r=Hg(),i=_M(),a=cC(),u=WK(),c=r(a(),Object);return e(c,{getPolyfill:a,implementation:i,shim:u}),e1=c,e1}var t1,YD;function MM(){return YD||(YD=1,t1=function(r){return r!==r}),t1}var n1,KD;function PM(){if(KD)return n1;KD=1;var e=MM();return n1=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},n1}var r1,XD;function tX(){if(XD)return r1;XD=1;var e=zg(),r=PM();return r1=function(){var a=r();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},r1}var o1,ZD;function nX(){if(ZD)return o1;ZD=1;var e=Hg(),r=zg(),i=MM(),a=PM(),u=tX(),c=e(a(),Number);return r(c,{getPolyfill:a,implementation:i,shim:u}),o1=c,o1}var i1,JD;function rX(){if(JD)return i1;JD=1;function e(fe,ce){return c(fe)||u(fe,ce)||i(fe,ce)||r()}function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
355
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(fe,ce){if(fe){if(typeof fe=="string")return a(fe,ce);var Ce=Object.prototype.toString.call(fe).slice(8,-1);if(Ce==="Object"&&fe.constructor&&(Ce=fe.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(fe);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return a(fe,ce)}}function a(fe,ce){(ce==null||ce>fe.length)&&(ce=fe.length);for(var Ce=0,Ue=new Array(ce);Ce<ce;Ce++)Ue[Ce]=fe[Ce];return Ue}function u(fe,ce){var Ce=fe==null?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(Ce!=null){var Ue,je,We,Ye,rt=[],ot=!0,lt=!1;try{if(We=(Ce=Ce.call(fe)).next,ce!==0)for(;!(ot=(Ue=We.call(Ce)).done)&&(rt.push(Ue.value),rt.length!==ce);ot=!0);}catch(st){lt=!0,je=st}finally{try{if(!ot&&Ce.return!=null&&(Ye=Ce.return(),Object(Ye)!==Ye))return}finally{if(lt)throw je}}return rt}}function c(fe){if(Array.isArray(fe))return fe}function f(fe){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},f(fe)}var h=/a/g.flags!==void 0,m=function(ce){var Ce=[];return ce.forEach(function(Ue){return Ce.push(Ue)}),Ce},p=function(ce){var Ce=[];return ce.forEach(function(Ue,je){return Ce.push([je,Ue])}),Ce},A=Object.is?Object.is:eX(),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:nX();function S(fe){return fe.call.bind(fe)}var O=S(Object.prototype.hasOwnProperty),U=S(Object.prototype.propertyIsEnumerable),F=S(Object.prototype.toString),N=Jd().types,D=N.isAnyArrayBuffer,M=N.isArrayBufferView,re=N.isDate,K=N.isMap,oe=N.isRegExp,de=N.isSet,ue=N.isNativeError,T=N.isBoxedPrimitive,$=N.isNumberObject,z=N.isStringObject,V=N.isBooleanObject,X=N.isBigIntObject,J=N.isSymbolObject,ve=N.isFloat32Array,B=N.isFloat64Array;function he(fe){if(fe.length===0||fe.length>10)return!0;for(var ce=0;ce<fe.length;ce++){var Ce=fe.charCodeAt(ce);if(Ce<48||Ce>57)return!0}return fe.length===10&&fe>=Math.pow(2,32)}function ge(fe){return Object.keys(fe).filter(he).concat(v(fe).filter(Object.prototype.propertyIsEnumerable.bind(fe)))}/*!
|
|
356
|
+
* The buffer module from node.js, for the browser.
|
|
357
|
+
*
|
|
358
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
359
|
+
* @license MIT
|
|
360
|
+
*/function W(fe,ce){if(fe===ce)return 0;for(var Ce=fe.length,Ue=ce.length,je=0,We=Math.min(Ce,Ue);je<We;++je)if(fe[je]!==ce[je]){Ce=fe[je],Ue=ce[je];break}return Ce<Ue?-1:Ue<Ce?1:0}var _=!0,ie=!1,le=0,ee=1,k=2,H=3;function Q(fe,ce){return h?fe.source===ce.source&&fe.flags===ce.flags:RegExp.prototype.toString.call(fe)===RegExp.prototype.toString.call(ce)}function xe(fe,ce){if(fe.byteLength!==ce.byteLength)return!1;for(var Ce=0;Ce<fe.byteLength;Ce++)if(fe[Ce]!==ce[Ce])return!1;return!0}function Ae(fe,ce){return fe.byteLength!==ce.byteLength?!1:W(new Uint8Array(fe.buffer,fe.byteOffset,fe.byteLength),new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength))===0}function L(fe,ce){return fe.byteLength===ce.byteLength&&W(new Uint8Array(fe),new Uint8Array(ce))===0}function w(fe,ce){return $(fe)?$(ce)&&A(Number.prototype.valueOf.call(fe),Number.prototype.valueOf.call(ce)):z(fe)?z(ce)&&String.prototype.valueOf.call(fe)===String.prototype.valueOf.call(ce):V(fe)?V(ce)&&Boolean.prototype.valueOf.call(fe)===Boolean.prototype.valueOf.call(ce):X(fe)?X(ce)&&BigInt.prototype.valueOf.call(fe)===BigInt.prototype.valueOf.call(ce):J(ce)&&Symbol.prototype.valueOf.call(fe)===Symbol.prototype.valueOf.call(ce)}function j(fe,ce,Ce,Ue){if(fe===ce)return fe!==0?!0:Ce?A(fe,ce):!0;if(Ce){if(f(fe)!=="object")return typeof fe=="number"&&g(fe)&&g(ce);if(f(ce)!=="object"||fe===null||ce===null||Object.getPrototypeOf(fe)!==Object.getPrototypeOf(ce))return!1}else{if(fe===null||f(fe)!=="object")return ce===null||f(ce)!=="object"?fe==ce:!1;if(ce===null||f(ce)!=="object")return!1}var je=F(fe),We=F(ce);if(je!==We)return!1;if(Array.isArray(fe)){if(fe.length!==ce.length)return!1;var Ye=ge(fe),rt=ge(ce);return Ye.length!==rt.length?!1:te(fe,ce,Ce,Ue,ee,Ye)}if(je==="[object Object]"&&(!K(fe)&&K(ce)||!de(fe)&&de(ce)))return!1;if(re(fe)){if(!re(ce)||Date.prototype.getTime.call(fe)!==Date.prototype.getTime.call(ce))return!1}else if(oe(fe)){if(!oe(ce)||!Q(fe,ce))return!1}else if(ue(fe)||fe instanceof Error){if(fe.message!==ce.message||fe.name!==ce.name)return!1}else if(M(fe)){if(!Ce&&(ve(fe)||B(fe))){if(!xe(fe,ce))return!1}else if(!Ae(fe,ce))return!1;var ot=ge(fe),lt=ge(ce);return ot.length!==lt.length?!1:te(fe,ce,Ce,Ue,le,ot)}else{if(de(fe))return!de(ce)||fe.size!==ce.size?!1:te(fe,ce,Ce,Ue,k);if(K(fe))return!K(ce)||fe.size!==ce.size?!1:te(fe,ce,Ce,Ue,H);if(D(fe)){if(!L(fe,ce))return!1}else if(T(fe)&&!w(fe,ce))return!1}return te(fe,ce,Ce,Ue,le)}function G(fe,ce){return ce.filter(function(Ce){return U(fe,Ce)})}function te(fe,ce,Ce,Ue,je,We){if(arguments.length===5){We=Object.keys(fe);var Ye=Object.keys(ce);if(We.length!==Ye.length)return!1}for(var rt=0;rt<We.length;rt++)if(!O(ce,We[rt]))return!1;if(Ce&&arguments.length===5){var ot=v(fe);if(ot.length!==0){var lt=0;for(rt=0;rt<ot.length;rt++){var st=ot[rt];if(U(fe,st)){if(!U(ce,st))return!1;We.push(st),lt++}else if(U(ce,st))return!1}var yt=v(ce);if(ot.length!==yt.length&&G(ce,yt).length!==lt)return!1}else{var Et=v(ce);if(Et.length!==0&&G(ce,Et).length!==0)return!1}}if(We.length===0&&(je===le||je===ee&&fe.length===0||fe.size===0))return!0;if(Ue===void 0)Ue={val1:new Map,val2:new Map,position:0};else{var P=Ue.val1.get(fe);if(P!==void 0){var pe=Ue.val2.get(ce);if(pe!==void 0)return P===pe}Ue.position++}Ue.val1.set(fe,Ue.position),Ue.val2.set(ce,Ue.position);var _e=Ee(fe,ce,Ce,We,Ue,je);return Ue.val1.delete(fe),Ue.val2.delete(ce),_e}function me(fe,ce,Ce,Ue){for(var je=m(fe),We=0;We<je.length;We++){var Ye=je[We];if(j(ce,Ye,Ce,Ue))return fe.delete(Ye),!0}return!1}function ye(fe){switch(f(fe)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":fe=+fe;case"number":if(g(fe))return!1}return!0}function E(fe,ce,Ce){var Ue=ye(Ce);return Ue??(ce.has(Ue)&&!fe.has(Ue))}function y(fe,ce,Ce,Ue,je){var We=ye(Ce);if(We!=null)return We;var Ye=ce.get(We);return Ye===void 0&&!ce.has(We)||!j(Ue,Ye,!1,je)?!1:!fe.has(We)&&j(Ue,Ye,!1,je)}function b(fe,ce,Ce,Ue){for(var je=null,We=m(fe),Ye=0;Ye<We.length;Ye++){var rt=We[Ye];if(f(rt)==="object"&&rt!==null)je===null&&(je=new Set),je.add(rt);else if(!ce.has(rt)){if(Ce||!E(fe,ce,rt))return!1;je===null&&(je=new Set),je.add(rt)}}if(je!==null){for(var ot=m(ce),lt=0;lt<ot.length;lt++){var st=ot[lt];if(f(st)==="object"&&st!==null){if(!me(je,st,Ce,Ue))return!1}else if(!Ce&&!fe.has(st)&&!me(je,st,Ce,Ue))return!1}return je.size===0}return!0}function I(fe,ce,Ce,Ue,je,We){for(var Ye=m(fe),rt=0;rt<Ye.length;rt++){var ot=Ye[rt];if(j(Ce,ot,je,We)&&j(Ue,ce.get(ot),je,We))return fe.delete(ot),!0}return!1}function Y(fe,ce,Ce,Ue){for(var je=null,We=p(fe),Ye=0;Ye<We.length;Ye++){var rt=e(We[Ye],2),ot=rt[0],lt=rt[1];if(f(ot)==="object"&&ot!==null)je===null&&(je=new Set),je.add(ot);else{var st=ce.get(ot);if(st===void 0&&!ce.has(ot)||!j(lt,st,Ce,Ue)){if(Ce||!y(fe,ce,ot,lt,Ue))return!1;je===null&&(je=new Set),je.add(ot)}}}if(je!==null){for(var yt=p(ce),Et=0;Et<yt.length;Et++){var P=e(yt[Et],2),pe=P[0],_e=P[1];if(f(pe)==="object"&&pe!==null){if(!I(je,fe,pe,_e,Ce,Ue))return!1}else if(!Ce&&(!fe.has(pe)||!j(fe.get(pe),_e,!1,Ue))&&!I(je,fe,pe,_e,!1,Ue))return!1}return je.size===0}return!0}function Ee(fe,ce,Ce,Ue,je,We){var Ye=0;if(We===k){if(!b(fe,ce,Ce,je))return!1}else if(We===H){if(!Y(fe,ce,Ce,je))return!1}else if(We===ee)for(;Ye<fe.length;Ye++)if(O(fe,Ye)){if(!O(ce,Ye)||!j(fe[Ye],ce[Ye],Ce,je))return!1}else{if(O(ce,Ye))return!1;for(var rt=Object.keys(fe);Ye<rt.length;Ye++){var ot=rt[Ye];if(!O(ce,ot)||!j(fe[ot],ce[ot],Ce,je))return!1}return rt.length===Object.keys(ce).length}for(Ye=0;Ye<Ue.length;Ye++){var lt=Ue[Ye];if(!j(fe[lt],ce[lt],Ce,je))return!1}return!0}function Re(fe,ce){return j(fe,ce,ie)}function He(fe,ce){return j(fe,ce,_)}return i1={isDeepEqual:Re,isDeepStrictEqual:He},i1}var WD;function Lw(){if(WD)return $v.exports;WD=1;function e(k){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},e(k)}function r(k,H,Q){return Object.defineProperty(k,"prototype",{writable:!1}),k}function i(k,H){if(!(k instanceof H))throw new TypeError("Cannot call a class as a function")}var a=DM(),u=a.codes,c=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,h=u.ERR_INVALID_ARG_VALUE,m=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,A=YK(),v=Jd(),g=v.inspect,S=Jd().types,O=S.isPromise,U=S.isRegExp,F=ZK()(),N=cC()(),D=JK()("RegExp.prototype.test"),M,re;function K(){var k=rX();M=k.isDeepEqual,re=k.isDeepStrictEqual}var oe=!1,de=$v.exports=V,ue={};function T(k){throw k.message instanceof Error?k.message:new A(k)}function $(k,H,Q,xe,Ae){var L=arguments.length,w;if(L===0)w="Failed";else if(L===1)Q=k,k=void 0;else{if(oe===!1){oe=!0;var j=It.emitWarning?It.emitWarning:console.warn.bind(console);j("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}L===2&&(xe="!=")}if(Q instanceof Error)throw Q;var G={actual:k,expected:H,operator:xe===void 0?"fail":xe,stackStartFn:Ae||$};Q!==void 0&&(G.message=Q);var te=new A(G);throw w&&(te.message=w,te.generatedMessage=!0),te}de.fail=$,de.AssertionError=A;function z(k,H,Q,xe){if(!Q){var Ae=!1;if(H===0)Ae=!0,xe="No value argument passed to `assert.ok()`";else if(xe instanceof Error)throw xe;var L=new A({actual:Q,expected:!0,message:xe,operator:"==",stackStartFn:k});throw L.generatedMessage=Ae,L}}function V(){for(var k=arguments.length,H=new Array(k),Q=0;Q<k;Q++)H[Q]=arguments[Q];z.apply(void 0,[V,H.length].concat(H))}de.ok=V,de.equal=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");H!=Q&&T({actual:H,expected:Q,message:xe,operator:"==",stackStartFn:k})},de.notEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");H==Q&&T({actual:H,expected:Q,message:xe,operator:"!=",stackStartFn:k})},de.deepEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");M===void 0&&K(),M(H,Q)||T({actual:H,expected:Q,message:xe,operator:"deepEqual",stackStartFn:k})},de.notDeepEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");M===void 0&&K(),M(H,Q)&&T({actual:H,expected:Q,message:xe,operator:"notDeepEqual",stackStartFn:k})},de.deepStrictEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");M===void 0&&K(),re(H,Q)||T({actual:H,expected:Q,message:xe,operator:"deepStrictEqual",stackStartFn:k})},de.notDeepStrictEqual=X;function X(k,H,Q){if(arguments.length<2)throw new p("actual","expected");M===void 0&&K(),re(k,H)&&T({actual:k,expected:H,message:Q,operator:"notDeepStrictEqual",stackStartFn:X})}de.strictEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");N(H,Q)||T({actual:H,expected:Q,message:xe,operator:"strictEqual",stackStartFn:k})},de.notStrictEqual=function k(H,Q,xe){if(arguments.length<2)throw new p("actual","expected");N(H,Q)&&T({actual:H,expected:Q,message:xe,operator:"notStrictEqual",stackStartFn:k})};var J=r(function k(H,Q,xe){var Ae=this;i(this,k),Q.forEach(function(L){L in H&&(xe!==void 0&&typeof xe[L]=="string"&&U(H[L])&&D(H[L],xe[L])?Ae[L]=xe[L]:Ae[L]=H[L])})});function ve(k,H,Q,xe,Ae,L){if(!(Q in k)||!re(k[Q],H[Q])){if(!xe){var w=new J(k,Ae),j=new J(H,Ae,k),G=new A({actual:w,expected:j,operator:"deepStrictEqual",stackStartFn:L});throw G.actual=k,G.expected=H,G.operator=L.name,G}T({actual:k,expected:H,message:xe,operator:L.name,stackStartFn:L})}}function B(k,H,Q,xe){if(typeof H!="function"){if(U(H))return D(H,k);if(arguments.length===2)throw new f("expected",["Function","RegExp"],H);if(e(k)!=="object"||k===null){var Ae=new A({actual:k,expected:H,message:Q,operator:"deepStrictEqual",stackStartFn:xe});throw Ae.operator=xe.name,Ae}var L=Object.keys(H);if(H instanceof Error)L.push("name","message");else if(L.length===0)throw new h("error",H,"may not be an empty object");return M===void 0&&K(),L.forEach(function(w){typeof k[w]=="string"&&U(H[w])&&D(H[w],k[w])||ve(k,H,w,Q,L,xe)}),!0}return H.prototype!==void 0&&k instanceof H?!0:Error.isPrototypeOf(H)?!1:H.call({},k)===!0}function he(k){if(typeof k!="function")throw new f("fn","Function",k);try{k()}catch(H){return H}return ue}function ge(k){return O(k)||k!==null&&e(k)==="object"&&typeof k.then=="function"&&typeof k.catch=="function"}function W(k){return Promise.resolve().then(function(){var H;if(typeof k=="function"){if(H=k(),!ge(H))throw new m("instance of Promise","promiseFn",H)}else if(ge(k))H=k;else throw new f("promiseFn",["Function","Promise"],k);return Promise.resolve().then(function(){return H}).then(function(){return ue}).catch(function(Q){return Q})})}function _(k,H,Q,xe){if(typeof Q=="string"){if(arguments.length===4)throw new f("error",["Object","Error","Function","RegExp"],Q);if(e(H)==="object"&&H!==null){if(H.message===Q)throw new c("error/message",'The error message "'.concat(H.message,'" is identical to the message.'))}else if(H===Q)throw new c("error/message",'The error "'.concat(H,'" is identical to the message.'));xe=Q,Q=void 0}else if(Q!=null&&e(Q)!=="object"&&typeof Q!="function")throw new f("error",["Object","Error","Function","RegExp"],Q);if(H===ue){var Ae="";Q&&Q.name&&(Ae+=" (".concat(Q.name,")")),Ae+=xe?": ".concat(xe):".";var L=k.name==="rejects"?"rejection":"exception";T({actual:void 0,expected:Q,operator:k.name,message:"Missing expected ".concat(L).concat(Ae),stackStartFn:k})}if(Q&&!B(H,Q,xe,k))throw H}function ie(k,H,Q,xe){if(H!==ue){if(typeof Q=="string"&&(xe=Q,Q=void 0),!Q||B(H,Q)){var Ae=xe?": ".concat(xe):".",L=k.name==="doesNotReject"?"rejection":"exception";T({actual:H,expected:Q,operator:k.name,message:"Got unwanted ".concat(L).concat(Ae,`
|
|
361
|
+
`)+'Actual message: "'.concat(H&&H.message,'"'),stackStartFn:k})}throw H}}de.throws=function k(H){for(var Q=arguments.length,xe=new Array(Q>1?Q-1:0),Ae=1;Ae<Q;Ae++)xe[Ae-1]=arguments[Ae];_.apply(void 0,[k,he(H)].concat(xe))},de.rejects=function k(H){for(var Q=arguments.length,xe=new Array(Q>1?Q-1:0),Ae=1;Ae<Q;Ae++)xe[Ae-1]=arguments[Ae];return W(H).then(function(L){return _.apply(void 0,[k,L].concat(xe))})},de.doesNotThrow=function k(H){for(var Q=arguments.length,xe=new Array(Q>1?Q-1:0),Ae=1;Ae<Q;Ae++)xe[Ae-1]=arguments[Ae];ie.apply(void 0,[k,he(H)].concat(xe))},de.doesNotReject=function k(H){for(var Q=arguments.length,xe=new Array(Q>1?Q-1:0),Ae=1;Ae<Q;Ae++)xe[Ae-1]=arguments[Ae];return W(H).then(function(L){return ie.apply(void 0,[k,L].concat(xe))})},de.ifError=function k(H){if(H!=null){var Q="ifError got unwanted exception: ";e(H)==="object"&&typeof H.message=="string"?H.message.length===0&&H.constructor?Q+=H.constructor.name:Q+=H.message:Q+=g(H);var xe=new A({actual:H,expected:null,operator:"ifError",message:Q,stackStartFn:k}),Ae=H.stack;if(typeof Ae=="string"){var L=Ae.split(`
|
|
362
|
+
`);L.shift();for(var w=xe.stack.split(`
|
|
363
|
+
`),j=0;j<L.length;j++){var G=w.indexOf(L[j]);if(G!==-1){w=w.slice(0,G);break}}xe.stack="".concat(w.join(`
|
|
364
|
+
`),`
|
|
365
|
+
`).concat(L.join(`
|
|
366
|
+
`))}throw xe}};function le(k,H,Q,xe,Ae){if(!U(H))throw new f("regexp","RegExp",H);var L=Ae==="match";if(typeof k!="string"||D(H,k)!==L){if(Q instanceof Error)throw Q;var w=!Q;Q=Q||(typeof k!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(k)," (").concat(g(k),")"):(L?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(H),`. Input:
|
|
367
|
+
|
|
368
|
+
`).concat(g(k),`
|
|
369
|
+
`));var j=new A({actual:k,expected:H,message:Q,operator:Ae,stackStartFn:xe});throw j.generatedMessage=w,j}}de.match=function k(H,Q,xe){le(H,Q,xe,k,"match")},de.doesNotMatch=function k(H,Q,xe){le(H,Q,xe,k,"doesNotMatch")};function ee(){for(var k=arguments.length,H=new Array(k),Q=0;Q<k;Q++)H[Q]=arguments[Q];z.apply(void 0,[ee,H.length].concat(H))}return de.strict=F(ee,de,{equal:de.strictEqual,deepEqual:de.deepStrictEqual,notEqual:de.notStrictEqual,notDeepEqual:de.notDeepStrictEqual}),de.strict.strict=de.strict,$v.exports}var a1,eB;function oX(){if(eB)return a1;eB=1;function e(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),a=0;a<i.length;a++)i[a]=255;for(var u=0;u<r.length;u++){var c=r.charAt(u),f=c.charCodeAt(0);if(i[f]!==255)throw new TypeError(c+" is ambiguous");i[f]=u}var h=r.length,m=r.charAt(0),p=Math.log(h)/Math.log(256),A=Math.log(256)/Math.log(h);function v(O){if(O instanceof Uint8Array||(ArrayBuffer.isView(O)?O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength):Array.isArray(O)&&(O=Uint8Array.from(O))),!(O instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(O.length===0)return"";for(var U=0,F=0,N=0,D=O.length;N!==D&&O[N]===0;)N++,U++;for(var M=(D-N)*A+1>>>0,re=new Uint8Array(M);N!==D;){for(var K=O[N],oe=0,de=M-1;(K!==0||oe<F)&&de!==-1;de--,oe++)K+=256*re[de]>>>0,re[de]=K%h>>>0,K=K/h>>>0;if(K!==0)throw new Error("Non-zero carry");F=oe,N++}for(var ue=M-F;ue!==M&&re[ue]===0;)ue++;for(var T=m.repeat(U);ue<M;++ue)T+=r.charAt(re[ue]);return T}function g(O){if(typeof O!="string")throw new TypeError("Expected String");if(O.length===0)return new Uint8Array;for(var U=0,F=0,N=0;O[U]===m;)F++,U++;for(var D=(O.length-U)*p+1>>>0,M=new Uint8Array(D);O[U];){var re=O.charCodeAt(U);if(re>255)return;var K=i[re];if(K===255)return;for(var oe=0,de=D-1;(K!==0||oe<N)&&de!==-1;de--,oe++)K+=h*M[de]>>>0,M[de]=K%256>>>0,K=K/256>>>0;if(K!==0)throw new Error("Non-zero carry");N=oe,U++}for(var ue=D-N;ue!==D&&M[ue]===0;)ue++;for(var T=new Uint8Array(F+(D-ue)),$=F;ue!==D;)T[$++]=M[ue++];return T}function S(O){var U=g(O);if(U)return U;throw new Error("Non-base"+h+" character")}return{encode:v,decodeUnsafe:g,decode:S}}return a1=e,a1}var Wn={exports:{}},s1,tB;function jM(){if(tB)return s1;tB=1,s1=r;class e extends Error{}e.prototype.name="AssertionError";function r(i,a){if(!i){var u=new e(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,r),u}}return s1}var Fo={exports:{}},Fm={exports:{}},u1,nB;function iX(){if(nB)return u1;nB=1;function e(a){return a.length}function r(a){const u=a.byteLength;let c="";for(let f=0;f<u;f++)c+=String.fromCharCode(a[f]);return c}function i(a,u,c=0,f=e(u)){const h=Math.min(f,a.byteLength-c);for(let m=0;m<h;m++)a[c+m]=u.charCodeAt(m);return h}return u1={byteLength:e,toString:r,write:i},u1}var l1,rB;function aX(){if(rB)return l1;rB=1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256);for(let c=0;c<e.length;c++)r[e.charCodeAt(c)]=c;r[45]=62,r[95]=63;function i(c){let f=c.length;return c.charCodeAt(f-1)===61&&f--,f>1&&c.charCodeAt(f-1)===61&&f--,f*3>>>2}function a(c){const f=c.byteLength;let h="";for(let m=0;m<f;m+=3)h+=e[c[m]>>2]+e[(c[m]&3)<<4|c[m+1]>>4]+e[(c[m+1]&15)<<2|c[m+2]>>6]+e[c[m+2]&63];return f%3===2?h=h.substring(0,h.length-1)+"=":f%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function u(c,f,h=0,m=i(f)){const p=Math.min(m,c.byteLength-h);for(let A=0,v=0;v<p;A+=4){const g=r[f.charCodeAt(A)],S=r[f.charCodeAt(A+1)],O=r[f.charCodeAt(A+2)],U=r[f.charCodeAt(A+3)];c[v++]=g<<2|S>>4,c[v++]=(S&15)<<4|O>>2,c[v++]=(O&3)<<6|U&63}return p}return l1={byteLength:i,toString:a,write:u},l1}var c1,oB;function sX(){if(oB)return c1;oB=1;function e(u){return u.length>>>1}function r(u){const c=u.byteLength;u=new DataView(u.buffer,u.byteOffset,c);let f="",h=0;for(let m=c-c%4;h<m;h+=4)f+=u.getUint32(h).toString(16).padStart(8,"0");for(;h<c;h++)f+=u.getUint8(h).toString(16).padStart(2,"0");return f}function i(u,c,f=0,h=e(c)){const m=Math.min(h,u.byteLength-f);for(let p=0;p<m;p++){const A=a(c.charCodeAt(p*2)),v=a(c.charCodeAt(p*2+1));if(A===void 0||v===void 0)return u.subarray(0,p);u[f+p]=A<<4|v}return m}c1={byteLength:e,toString:r,write:i};function a(u){if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-65+10;if(u>=97&&u<=102)return u-97+10}return c1}var f1,iB;function uX(){if(iB)return f1;iB=1;function e(a){let u=0;for(let c=0,f=a.length;c<f;c++){const h=a.charCodeAt(c);if(h>=55296&&h<=56319&&c+1<f){const m=a.charCodeAt(c+1);if(m>=56320&&m<=57343){u+=4,c++;continue}}h<=127?u+=1:h<=2047?u+=2:u+=3}return u}let r;if(typeof TextDecoder<"u"){const a=new TextDecoder;r=function(c){return a.decode(c)}}else r=function(u){const c=u.byteLength;let f="",h=0;for(;h<c;){let m=u[h];if(m<=127){f+=String.fromCharCode(m),h++;continue}let p=0,A=0;if(m<=223?(p=1,A=m&31):m<=239?(p=2,A=m&15):m<=244&&(p=3,A=m&7),c-h-p>0){let v=0;for(;v<p;)m=u[h+v+1],A=A<<6|m&63,v+=1}else A=65533,p=c-h;f+=String.fromCodePoint(A),h+=p+1}return f};let i;if(typeof TextEncoder<"u"){const a=new TextEncoder;i=function(c,f,h=0,m=e(f)){const p=Math.min(m,c.byteLength-h);return a.encodeInto(f,c.subarray(h,h+p)),p}}else i=function(u,c,f=0,h=e(c)){const m=Math.min(h,u.byteLength-f);u=u.subarray(f,f+m);let p=0,A=0;for(;p<c.length;){const v=c.codePointAt(p);if(v<=127){u[A++]=v,p++;continue}let g=0,S=0;for(v<=2047?(g=6,S=192):v<=65535?(g=12,S=224):v<=2097151&&(g=18,S=240),u[A++]=S|v>>g,g-=6;g>=0;)u[A++]=128|v>>g&63,g-=6;p+=v>=65536?2:1}return m};return f1={byteLength:e,toString:r,write:i},f1}var d1,aB;function lX(){if(aB)return d1;aB=1;function e(a){return a.length*2}function r(a){const u=a.byteLength;let c="";for(let f=0;f<u-1;f+=2)c+=String.fromCharCode(a[f]+a[f+1]*256);return c}function i(a,u,c=0,f=e(u)){const h=Math.min(f,a.byteLength-c);let m=h;for(let p=0;p<u.length&&!((m-=2)<0);++p){const A=u.charCodeAt(p),v=A>>8,g=A%256;a[c+p*2]=g,a[c+p*2+1]=v}return h}return d1={byteLength:e,toString:r,write:i},d1}var sB;function cX(){return sB||(sB=1,(function(e,r){const i=iX(),a=aX(),u=sX(),c=uX(),f=lX(),h=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function m(E){switch(E){case"ascii":return i;case"base64":return a;case"hex":return u;case"utf8":case"utf-8":case void 0:case null:return c;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f;default:throw new Error(`Unknown encoding: ${E}`)}}function p(E){return E instanceof Uint8Array}function A(E){try{return m(E),!0}catch{return!1}}function v(E,y,b){const I=new Uint8Array(E);return y!==void 0&&r.fill(I,y,0,I.byteLength,b),I}function g(E){return new Uint8Array(E)}function S(E){return new Uint8Array(E)}function O(E,y){return m(y).byteLength(E)}function U(E,y){if(E===y)return 0;const b=Math.min(E.byteLength,y.byteLength);E=new DataView(E.buffer,E.byteOffset,E.byteLength),y=new DataView(y.buffer,y.byteOffset,y.byteLength);let I=0;for(let Y=b-b%4;I<Y;I+=4){const Ee=E.getUint32(I,h),Re=y.getUint32(I,h);if(Ee!==Re)break}for(;I<b;I++){const Y=E.getUint8(I),Ee=y.getUint8(I);if(Y<Ee)return-1;if(Y>Ee)return 1}return E.byteLength>y.byteLength?1:E.byteLength<y.byteLength?-1:0}function F(E,y){y===void 0&&(y=E.reduce((Y,Ee)=>Y+Ee.byteLength,0));const b=new Uint8Array(y);let I=0;for(const Y of E){if(I+Y.byteLength>b.byteLength){const Ee=Y.subarray(0,b.byteLength-I);return b.set(Ee,I),b}b.set(Y,I),I+=Y.byteLength}return b}function N(E,y,b=0,I=0,Y=E.byteLength){if(Y>0&&Y<I||Y===I||E.byteLength===0||y.byteLength===0)return 0;if(b<0)throw new RangeError("targetStart is out of range");if(I<0||I>=E.byteLength)throw new RangeError("sourceStart is out of range");if(Y<0)throw new RangeError("sourceEnd is out of range");b>=y.byteLength&&(b=y.byteLength),Y>E.byteLength&&(Y=E.byteLength),y.byteLength-b<Y-I&&(Y=y.length-b+I);const Ee=Y-I;return E===y?y.copyWithin(b,I,Y):y.set(E.subarray(I,Y),b),Ee}function D(E,y){if(E===y)return!0;if(E.byteLength!==y.byteLength)return!1;const b=E.byteLength;E=new DataView(E.buffer,E.byteOffset,E.byteLength),y=new DataView(y.buffer,y.byteOffset,y.byteLength);let I=0;for(let Y=b-b%4;I<Y;I+=4)if(E.getUint32(I,h)!==y.getUint32(I,h))return!1;for(;I<b;I++)if(E.getUint8(I)!==y.getUint8(I))return!1;return!0}function M(E,y,b,I,Y){if(typeof y=="string"?typeof b=="string"?(Y=b,b=0,I=E.byteLength):typeof I=="string"&&(Y=I,I=E.byteLength):typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=+y),b<0||E.byteLength<b||E.byteLength<I)throw new RangeError("Out of range index");if(b===void 0&&(b=0),I===void 0&&(I=E.byteLength),I<=b)return E;if(y||(y=0),typeof y=="number")for(let Ee=b;Ee<I;++Ee)E[Ee]=y;else{y=p(y)?y:re(y,Y);const Ee=y.byteLength;for(let Re=0;Re<I-b;++Re)E[Re+b]=y[Re%Ee]}return E}function re(E,y,b){return typeof E=="string"?K(E,y):Array.isArray(E)?oe(E):ArrayBuffer.isView(E)?de(E):ue(E,y,b)}function K(E,y){const b=m(y),I=new Uint8Array(b.byteLength(E));return b.write(I,E,0,I.byteLength),I}function oe(E){const y=new Uint8Array(E.length);return y.set(E),y}function de(E){const y=new Uint8Array(E.byteLength);return y.set(E),y}function ue(E,y,b){return new Uint8Array(E,y,b)}function T(E,y,b,I){return z(E,y,b,I)!==-1}function $(E,y,b,I,Y){if(E.byteLength===0)return-1;if(typeof b=="string"?(I=b,b=0):b===void 0?b=Y?0:E.length-1:b<0&&(b+=E.byteLength),b>=E.byteLength){if(Y)return-1;b=E.byteLength-1}else if(b<0)if(Y)b=0;else return-1;if(typeof y=="string")y=re(y,I);else if(typeof y=="number")return y=y&255,Y?E.indexOf(y,b):E.lastIndexOf(y,b);if(y.byteLength===0)return-1;if(Y){let Ee=-1;for(let Re=b;Re<E.byteLength;Re++)if(E[Re]===y[Ee===-1?0:Re-Ee]){if(Ee===-1&&(Ee=Re),Re-Ee+1===y.byteLength)return Ee}else Ee!==-1&&(Re-=Re-Ee),Ee=-1}else{b+y.byteLength>E.byteLength&&(b=E.byteLength-y.byteLength);for(let Ee=b;Ee>=0;Ee--){let Re=!0;for(let He=0;He<y.byteLength;He++)if(E[Ee+He]!==y[He]){Re=!1;break}if(Re)return Ee}}return-1}function z(E,y,b,I){return $(E,y,b,I,!0)}function V(E,y,b,I){return $(E,y,b,I,!1)}function X(E,y,b){const I=E[y];E[y]=E[b],E[b]=I}function J(E){const y=E.byteLength;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)X(E,b,b+1);return E}function ve(E){const y=E.byteLength;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)X(E,b,b+3),X(E,b+1,b+2);return E}function B(E){const y=E.byteLength;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)X(E,b,b+7),X(E,b+1,b+6),X(E,b+2,b+5),X(E,b+3,b+4);return E}function he(E){return E}function ge(E,y,b=0,I=E.byteLength){const Y=E.byteLength;return b>=Y||I<=b?"":(b<0&&(b=0),I>Y&&(I=Y),(b!==0||I<Y)&&(E=E.subarray(b,I)),m(y).toString(E))}function W(E,y,b,I,Y){return b===void 0?Y="utf8":I===void 0&&typeof b=="string"?(Y=b,b=void 0):Y===void 0&&typeof I=="string"&&(Y=I,I=void 0),m(Y).write(E,y,b,I)}function _(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat64(b,y,!0),b+8}function ie(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat32(b,y,!0),b+4}function le(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setUint32(b,y,!0),b+4}function ee(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setInt32(b,y,!0),b+4}function k(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat64(y,!0)}function H(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat32(y,!0)}function Q(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getUint32(y,!0)}function xe(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getInt32(y,!0)}function Ae(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat64(b,y,!1),b+8}function L(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat32(b,y,!1),b+4}function w(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setUint32(b,y,!1),b+4}function j(E,y,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setInt32(b,y,!1),b+4}function G(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat64(y,!1)}function te(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat32(y,!1)}function me(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getUint32(y,!1)}function ye(E,y){return y===void 0&&(y=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getInt32(y,!1)}e.exports=r={isBuffer:p,isEncoding:A,alloc:v,allocUnsafe:g,allocUnsafeSlow:S,byteLength:O,compare:U,concat:F,copy:N,equals:D,fill:M,from:re,includes:T,indexOf:z,lastIndexOf:V,swap16:J,swap32:ve,swap64:B,toBuffer:he,toString:ge,write:W,writeDoubleLE:_,writeFloatLE:ie,writeUInt32LE:le,writeInt32LE:ee,readDoubleLE:k,readFloatLE:H,readUInt32LE:Q,readInt32LE:xe,writeDoubleBE:Ae,writeFloatBE:L,writeUInt32BE:w,writeInt32BE:j,readDoubleBE:G,readFloatBE:te,readUInt32BE:me,readInt32BE:ye}})(Fm,Fm.exports)),Fm.exports}var h1,uB;function fX(){if(uB)return h1;uB=1;var e=(c,f)=>function(){return f||(0,c[Object.keys(c)[0]])((f={exports:{}}).exports,f),f.exports},r=(()=>{for(var c=new Uint8Array(128),f=0;f<64;f++)c[f<26?f+65:f<52?f+71:f<62?f-4:f*4-205]=f;return h=>{for(var m=h.length,p=new Uint8Array((m-(h[m-1]=="=")-(h[m-2]=="="))*3/4|0),A=0,v=0;A<m;){var g=c[h.charCodeAt(A++)],S=c[h.charCodeAt(A++)],O=c[h.charCodeAt(A++)],U=c[h.charCodeAt(A++)];p[v++]=g<<2|S>>4,p[v++]=S<<4|O>>2,p[v++]=O<<6|U}return p}})(),i=e({"wasm-binary:./blake2b.wat"(c,f){f.exports=r("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMKvz8EwAIAIABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCAAQgA3AyAgAEIANwMoIABCADcDMCAAQgA3AzggAEIANwNAIABCADcDSCAAQgA3A1AgAEIANwNYIABCADcDYCAAQgA3A2ggAEIANwNwIABCADcDeCAAQoiS853/zPmE6gBBACkDAIU3A4ABIABCu86qptjQ67O7f0EIKQMAhTcDiAEgAEKr8NP0r+68tzxBECkDAIU3A5ABIABC8e30+KWn/aelf0EYKQMAhTcDmAEgAELRhZrv+s+Uh9EAQSApAwCFNwOgASAAQp/Y+dnCkdqCm39BKCkDAIU3A6gBIABC6/qG2r+19sEfQTApAwCFNwOwASAAQvnC+JuRo7Pw2wBBOCkDAIU3A7gBIABCADcDwAEgAEIANwPIASAAQgA3A9ABC20BA38gAEHAAWohAyAAQcgBaiEEIAQpAwCnIQUCQANAIAEgAkYNASAFQYABRgRAIAMgAykDACAFrXw3AwBBACEFIAAQAwsgACAFaiABLQAAOgAAIAVBAWohBSABQQFqIQEMAAsLIAQgBa03AwALYQEDfyAAQcABaiEBIABByAFqIQIgASABKQMAIAIpAwB8NwMAIABCfzcD0AEgAikDAKchAwJAA0AgA0GAAUYNASAAIANqQQA6AAAgA0EBaiEDDAALCyACIAOtNwMAIAAQAwuqOwIgfgl/IABBgAFqISEgAEGIAWohIiAAQZABaiEjIABBmAFqISQgAEGgAWohJSAAQagBaiEmIABBsAFqIScgAEG4AWohKCAhKQMAIQEgIikDACECICMpAwAhAyAkKQMAIQQgJSkDACEFICYpAwAhBiAnKQMAIQcgKCkDACEIQoiS853/zPmE6gAhCUK7zqqm2NDrs7t/IQpCq/DT9K/uvLc8IQtC8e30+KWn/aelfyEMQtGFmu/6z5SH0QAhDUKf2PnZwpHagpt/IQ5C6/qG2r+19sEfIQ9C+cL4m5Gjs/DbACEQIAApAwAhESAAKQMIIRIgACkDECETIAApAxghFCAAKQMgIRUgACkDKCEWIAApAzAhFyAAKQM4IRggACkDQCEZIAApA0ghGiAAKQNQIRsgACkDWCEcIAApA2AhHSAAKQNoIR4gACkDcCEfIAApA3ghICANIAApA8ABhSENIA8gACkD0AGFIQ8gASAFIBF8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSASfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgE3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBR8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAVfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgFnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBd8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAYfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgGXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBp8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAbfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgHHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIB18fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAefHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgH3x8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFICB8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAffHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgG3x8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBV8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAZfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgGnx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHICB8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAefHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggF3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBJ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAdfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgEXx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBN8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAcfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGHx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBZ8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAUfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgHHx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBl8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAdfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgEXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBZ8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByATfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggIHx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIB58fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAbfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgH3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBR8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAXfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggGHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBJ8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAafHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFXx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBh8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAafHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgFHx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBJ8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAefHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHXx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBx8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAffHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgE3x8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBd8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAWfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgG3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBV8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCARfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgIHx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBl8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAafHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEXx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBZ8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAYfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgE3x8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBV8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAbfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggIHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIB98fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiASfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgHHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIB18fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAXfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBR8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAefHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgE3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIB18fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAXfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgG3x8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBF8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAcfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggGXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBR8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAVfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBh8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAWfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggIHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIB98fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSASfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgGnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIB18fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAWfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgEnx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGICB8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAffHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBV8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAbfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBh8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAXfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgFHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBp8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCATfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgGXx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBx8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAefHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgHHx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBh8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAffHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgHXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBJ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAUfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGnx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBZ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiARfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgIHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBV8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAZfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggF3x8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBN8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAbfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgF3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFICB8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAffHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGnx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBx8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAUfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggEXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBl8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAdfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgE3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIB58fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAYfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggEnx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBV8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAbfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBt8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSATfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgGXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBV8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAYfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgF3x8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBJ8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAWfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgIHx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBx8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAafHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgH3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBR8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAdfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgHnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBF8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgG3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBx8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAdfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHnx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB98fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAgfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgISAhKQMAIAEgCYWFNwMAICIgIikDACACIAqFhTcDACAjICMpAwAgAyALhYU3AwAgJCAkKQMAIAQgDIWFNwMAICUgJSkDACAFIA2FhTcDACAmICYpAwAgBiAOhYU3AwAgJyAnKQMAIAcgD4WFNwMAICggKCkDACAIIBCFhTcDAAs=")}}),a=i(),u=WebAssembly.compile(a);return h1=async c=>(await WebAssembly.instantiate(await u,c)).exports,h1}var lB;function dX(){if(lB)return Fo.exports;lB=1;var e=jM(),r=cX(),i=null,a=typeof WebAssembly<"u"&&fX()().then(O=>{i=O}),u=64,c=[];Fo.exports=g;var f=Fo.exports.BYTES_MIN=16,h=Fo.exports.BYTES_MAX=64;Fo.exports.BYTES=32;var m=Fo.exports.KEYBYTES_MIN=16,p=Fo.exports.KEYBYTES_MAX=64;Fo.exports.KEYBYTES=32;var A=Fo.exports.SALTBYTES=16,v=Fo.exports.PERSONALBYTES=16;function g(O,U,F,N,D){if(!(this instanceof g))return new g(O,U,F,N,D);if(!i)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");O||(O=32),D!==!0&&(e(O>=f,"digestLength must be at least "+f+", was given "+O),e(O<=h,"digestLength must be at most "+h+", was given "+O),U!=null&&(e(U instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(U.length>=m,"key must be at least "+m+", was given "+U.length),e(U.length<=p,"key must be at least "+p+", was given "+U.length)),F!=null&&(e(F instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(F.length===A,"salt must be exactly "+A+", was given "+F.length)),N!=null&&(e(N instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(N.length===v,"personal must be exactly "+v+", was given "+N.length))),c.length||(c.push(u),u+=216),this.digestLength=O,this.finalized=!1,this.pointer=c.pop(),this._memory=new Uint8Array(i.memory.buffer),this._memory.fill(0,0,64),this._memory[0]=this.digestLength,this._memory[1]=U?U.length:0,this._memory[2]=1,this._memory[3]=1,F&&this._memory.set(F,32),N&&this._memory.set(N,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),i.blake2b_init(this.pointer,this.digestLength),U&&(this.update(U),this._memory.fill(0,u,u+U.length),this._memory[this.pointer+200]=128)}g.prototype._realloc=function(O){i.memory.grow(Math.max(0,Math.ceil(Math.abs(O-this._memory.length)/65536))),this._memory=new Uint8Array(i.memory.buffer)},g.prototype.update=function(O){return e(this.finalized===!1,"Hash instance finalized"),e(O instanceof Uint8Array,"input must be Uint8Array or Buffer"),u+O.length>this._memory.length&&this._realloc(u+O.length),this._memory.set(O,u),i.blake2b_update(this.pointer,u,u+O.length),this},g.prototype.digest=function(O){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,c.push(this.pointer),i.blake2b_final(this.pointer),!O||O==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof O=="string")return r.toString(this._memory,O,this.pointer+128,this.pointer+128+this.digestLength);e(O instanceof Uint8Array&&O.length>=this.digestLength,"input must be Uint8Array or Buffer");for(var U=0;U<this.digestLength;U++)O[U]=this._memory[this.pointer+128+U];return O},g.prototype.final=g.prototype.digest,g.WASM=i,g.SUPPORTED=typeof WebAssembly<"u",g.ready=function(O){return O||(O=S),a?a.then(()=>O(),O):O(new Error("WebAssembly not supported"))},g.prototype.ready=g.ready,g.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},g.prototype.setPartialHash=function(O){this._memory.set(O,this.pointer)};function S(){}return Fo.exports}var cB;function hX(){if(cB)return Wn.exports;cB=1;var e=jM(),r=dX();function i(T,$,z){var V=T[$]+T[z],X=T[$+1]+T[z+1];V>=4294967296&&X++,T[$]=V,T[$+1]=X}function a(T,$,z,V){var X=T[$]+z;z<0&&(X+=4294967296);var J=T[$+1]+V;X>=4294967296&&J++,T[$]=X,T[$+1]=J}function u(T,$){return T[$]^T[$+1]<<8^T[$+2]<<16^T[$+3]<<24}function c(T,$,z,V,X,J){var ve=A[X],B=A[X+1],he=A[J],ge=A[J+1];i(p,T,$),a(p,T,ve,B);var W=p[V]^p[T],_=p[V+1]^p[T+1];p[V]=_,p[V+1]=W,i(p,z,V),W=p[$]^p[z],_=p[$+1]^p[z+1],p[$]=W>>>24^_<<8,p[$+1]=_>>>24^W<<8,i(p,T,$),a(p,T,he,ge),W=p[V]^p[T],_=p[V+1]^p[T+1],p[V]=W>>>16^_<<16,p[V+1]=_>>>16^W<<16,i(p,z,V),W=p[$]^p[z],_=p[$+1]^p[z+1],p[$]=_>>>31^W<<1,p[$+1]=W>>>31^_<<1}var f=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),h=[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],m=new Uint8Array(h.map(function(T){return T*2})),p=new Uint32Array(32),A=new Uint32Array(32);function v(T,$){var z=0;for(z=0;z<16;z++)p[z]=T.h[z],p[z+16]=f[z];for(p[24]=p[24]^T.t,p[25]=p[25]^T.t/4294967296,$&&(p[28]=~p[28],p[29]=~p[29]),z=0;z<32;z++)A[z]=u(T.b,4*z);for(z=0;z<12;z++)c(0,8,16,24,m[z*16+0],m[z*16+1]),c(2,10,18,26,m[z*16+2],m[z*16+3]),c(4,12,20,28,m[z*16+4],m[z*16+5]),c(6,14,22,30,m[z*16+6],m[z*16+7]),c(0,10,20,30,m[z*16+8],m[z*16+9]),c(2,12,22,24,m[z*16+10],m[z*16+11]),c(4,14,16,26,m[z*16+12],m[z*16+13]),c(6,8,18,28,m[z*16+14],m[z*16+15]);for(z=0;z<16;z++)T.h[z]=T.h[z]^p[z]^p[z+16]}var g=new Uint8Array([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,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]);function S(T,$,z,V){g.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=T,g[0]=T,$&&(g[1]=$.length),g[2]=1,g[3]=1,z&&g.set(z,32),V&&g.set(V,48);for(var X=0;X<16;X++)this.h[X]=f[X]^u(g,X*4);$&&(O(this,$),this.c=128)}S.prototype.update=function(T){return e(T instanceof Uint8Array,"input must be Uint8Array or Buffer"),O(this,T),this},S.prototype.digest=function(T){var $=!T||T==="binary"||T==="hex"?new Uint8Array(this.outlen):T;return e($ instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e($.length>=this.outlen,"out must have at least outlen bytes of space"),U(this,$),T==="hex"?F($):$},S.prototype.final=S.prototype.digest,S.ready=function(T){r.ready(function(){T()})};function O(T,$){for(var z=0;z<$.length;z++)T.c===128&&(T.t+=T.c,v(T,!1),T.c=0),T.b[T.c++]=$[z]}function U(T,$){for(T.t+=T.c;T.c<128;)T.b[T.c++]=0;v(T,!0);for(var z=0;z<T.outlen;z++)$[z]=T.h[z>>2]>>8*(z&3);return $}function F(T){for(var $="",z=0;z<T.length;z++)$+=N(T[z]);return $}function N(T){return T<16?"0"+T.toString(16):T.toString(16)}var D=S;Wn.exports=function($,z,V,X,J){return J!==!0&&(e($>=M,"outlen must be at least "+M+", was given "+$),e($<=re,"outlen must be at most "+re+", was given "+$),z!=null&&(e(z instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(z.length>=K,"key must be at least "+K+", was given "+z.length),e(z.length<=oe,"key must be at most "+oe+", was given "+z.length)),V!=null&&(e(V instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(V.length===de,"salt must be exactly "+de+", was given "+V.length)),X!=null&&(e(X instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(X.length===ue,"personal must be exactly "+ue+", was given "+X.length))),new D($,z,V,X)},Wn.exports.ready=function(T){r.ready(function(){T()})},Wn.exports.WASM_SUPPORTED=r.SUPPORTED,Wn.exports.WASM_LOADED=!1;var M=Wn.exports.BYTES_MIN=16,re=Wn.exports.BYTES_MAX=64;Wn.exports.BYTES=32;var K=Wn.exports.KEYBYTES_MIN=16,oe=Wn.exports.KEYBYTES_MAX=64;Wn.exports.KEYBYTES=32;var de=Wn.exports.SALTBYTES=16,ue=Wn.exports.PERSONALBYTES=16;return r.ready(function(T){T||(Wn.exports.WASM_LOADED=!0,Wn.exports=r)}),Wn.exports}var fB;function pX(){if(fB)return Qi;fB=1;var e=Qi&&Qi.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.encode=Qi.decode=void 0;const r=e(Lw()),i=e(oX()),a=e(hX()),u=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c=un.Buffer.from("SS58PRE"),f=un.Buffer.alloc(64);function h(v){let g=u.decodeUnsafe(v);if(g==null||g.length<3)throw A(v);let S=g[0],O,U;if(S<64)U=S,O=1;else if(S<128){let N=g[1],D=(S<<2|N>>6)&255,M=N&63;U=D|M<<8,O=2}else throw A(v);let F;switch(g.length-O){case 34:case 35:F=2;break;case 9:case 5:case 3:case 2:F=1;break;default:throw A(v)}p(g,F);for(let N=0;N<F;N++)if(f[N]!=g[g.length-F+N])throw A(v);return{prefix:U,bytes:g.subarray(O,g.length-F)}}Qi.decode=h;function m(v){let g=v.prefix;(0,r.default)(Number.isInteger(g)&&g>=0&&g<16384,"invalid prefix");let S=v.bytes.length,O;switch(S){case 1:case 2:case 4:case 8:O=1;break;case 32:case 33:O=2;break;default:(0,r.default)(!1,"invalid address length")}let U,F;g<64?(U=un.Buffer.allocUnsafe(1+O+S),U[0]=g,F=1):(U=un.Buffer.allocUnsafe(2+O+S),U[0]=(g&252)>>2|64,U[1]=g>>8|(g&3)<<6,F=2),U.set(v.bytes,F),p(U,O);for(let N=0;N<O;N++)U[F+S+N]=f[N];return u.encode(U)}Qi.encode=m;function p(v,g){let S=(0,a.default)(64);S.update(c),S.update(v.subarray(0,v.length-g)),S.digest(f)}function A(v){return new Error("Invalid ss58 address: "+v)}return Qi}var mX=pX();function gX(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function LM(e,...r){if(!gX(e))throw new Error("Uint8Array expected");if(r.length>0&&!r.includes(e.length))throw new Error(`Uint8Array expected of length ${r}, not of length=${e.length}`)}function dB(e,r=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(r&&e.finished)throw new Error("Hash#digest() has already been called")}function yX(e,r){LM(e);const i=r.outputLen;if(e.length<i)throw new Error(`digestInto() expects output buffer of length at least ${i}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const p1=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ai=(e,r)=>e<<32-r|e>>>r;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function bX(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function kM(e){return typeof e=="string"&&(e=bX(e)),LM(e),e}class vX{clone(){return this._cloneInto()}}function AX(e){const r=a=>e().update(kM(a)).digest(),i=e();return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.create=()=>e(),r}function xX(e,r,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(r,i,a);const u=BigInt(32),c=BigInt(4294967295),f=Number(i>>u&c),h=Number(i&c),m=a?4:0,p=a?0:4;e.setUint32(r+m,f,a),e.setUint32(r+p,h,a)}const EX=(e,r,i)=>e&r^~e&i,wX=(e,r,i)=>e&r^e&i^r&i;class SX extends vX{constructor(r,i,a,u){super(),this.blockLen=r,this.outputLen=i,this.padOffset=a,this.isLE=u,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(r),this.view=p1(this.buffer)}update(r){dB(this);const{view:i,buffer:a,blockLen:u}=this;r=kM(r);const c=r.length;for(let f=0;f<c;){const h=Math.min(u-this.pos,c-f);if(h===u){const m=p1(r);for(;u<=c-f;f+=u)this.process(m,f);continue}a.set(r.subarray(f,f+h),this.pos),this.pos+=h,f+=h,this.pos===u&&(this.process(i,0),this.pos=0)}return this.length+=r.length,this.roundClean(),this}digestInto(r){dB(this),yX(r,this),this.finished=!0;const{buffer:i,view:a,blockLen:u,isLE:c}=this;let{pos:f}=this;i[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>u-f&&(this.process(a,0),f=0);for(let v=f;v<u;v++)i[v]=0;xX(a,u-8,BigInt(this.length*8),c),this.process(a,0);const h=p1(r),m=this.outputLen;if(m%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=m/4,A=this.get();if(p>A.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<p;v++)h.setUint32(4*v,A[v],c)}digest(){const{buffer:r,outputLen:i}=this;this.digestInto(r);const a=r.slice(0,i);return this.destroy(),a}_cloneInto(r){r||(r=new this.constructor),r.set(...this.get());const{blockLen:i,buffer:a,length:u,finished:c,destroyed:f,pos:h}=this;return r.length=u,r.pos=h,r.finished=c,r.destroyed=f,u%i&&r.buffer.set(a),r}}const CX=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ya=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ka=new Uint32Array(64);class IX extends SX{constructor(){super(64,32,8,!1),this.A=Ya[0]|0,this.B=Ya[1]|0,this.C=Ya[2]|0,this.D=Ya[3]|0,this.E=Ya[4]|0,this.F=Ya[5]|0,this.G=Ya[6]|0,this.H=Ya[7]|0}get(){const{A:r,B:i,C:a,D:u,E:c,F:f,G:h,H:m}=this;return[r,i,a,u,c,f,h,m]}set(r,i,a,u,c,f,h,m){this.A=r|0,this.B=i|0,this.C=a|0,this.D=u|0,this.E=c|0,this.F=f|0,this.G=h|0,this.H=m|0}process(r,i){for(let v=0;v<16;v++,i+=4)Ka[v]=r.getUint32(i,!1);for(let v=16;v<64;v++){const g=Ka[v-15],S=Ka[v-2],O=ai(g,7)^ai(g,18)^g>>>3,U=ai(S,17)^ai(S,19)^S>>>10;Ka[v]=U+Ka[v-7]+O+Ka[v-16]|0}let{A:a,B:u,C:c,D:f,E:h,F:m,G:p,H:A}=this;for(let v=0;v<64;v++){const g=ai(h,6)^ai(h,11)^ai(h,25),S=A+g+EX(h,m,p)+CX[v]+Ka[v]|0,U=(ai(a,2)^ai(a,13)^ai(a,22))+wX(a,u,c)|0;A=p,p=m,m=h,h=f+S|0,f=c,c=u,u=a,a=S+U|0}a=a+this.A|0,u=u+this.B|0,c=c+this.C|0,f=f+this.D|0,h=h+this.E|0,m=m+this.F|0,p=p+this.G|0,A=A+this.H|0,this.set(a,u,c,f,h,m,p,A)}roundClean(){Ka.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const hB=AX(()=>new IX);function TX(e){if(e.length>=255)throw new TypeError("Alphabet too long");const r=new Uint8Array(256);for(let p=0;p<r.length;p++)r[p]=255;for(let p=0;p<e.length;p++){const A=e.charAt(p),v=A.charCodeAt(0);if(r[v]!==255)throw new TypeError(A+" is ambiguous");r[v]=p}const i=e.length,a=e.charAt(0),u=Math.log(i)/Math.log(256),c=Math.log(256)/Math.log(i);function f(p){if(p instanceof Uint8Array||(ArrayBuffer.isView(p)?p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):Array.isArray(p)&&(p=Uint8Array.from(p))),!(p instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(p.length===0)return"";let A=0,v=0,g=0;const S=p.length;for(;g!==S&&p[g]===0;)g++,A++;const O=(S-g)*c+1>>>0,U=new Uint8Array(O);for(;g!==S;){let D=p[g],M=0;for(let re=O-1;(D!==0||M<v)&&re!==-1;re--,M++)D+=256*U[re]>>>0,U[re]=D%i>>>0,D=D/i>>>0;if(D!==0)throw new Error("Non-zero carry");v=M,g++}let F=O-v;for(;F!==O&&U[F]===0;)F++;let N=a.repeat(A);for(;F<O;++F)N+=e.charAt(U[F]);return N}function h(p){if(typeof p!="string")throw new TypeError("Expected String");if(p.length===0)return new Uint8Array;let A=0,v=0,g=0;for(;p[A]===a;)v++,A++;const S=(p.length-A)*u+1>>>0,O=new Uint8Array(S);for(;p[A];){let D=r[p.charCodeAt(A)];if(D===255)return;let M=0;for(let re=S-1;(D!==0||M<g)&&re!==-1;re--,M++)D+=i*O[re]>>>0,O[re]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");g=M,A++}let U=S-g;for(;U!==S&&O[U]===0;)U++;const F=new Uint8Array(v+(S-U));let N=v;for(;U!==S;)F[N++]=O[U++];return F}function m(p){const A=h(p);if(A)return A;throw new Error("Non-base"+i+" character")}return{encode:f,decodeUnsafe:h,decode:m}}var RX="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const km=TX(RX);function OX(e){function r(c){var f=Uint8Array.from(c),h=e(f),m=f.length+4,p=new Uint8Array(m);return p.set(f,0),p.set(h.subarray(0,4),f.length),km.encode(p)}function i(c){var f=c.slice(0,-4),h=c.slice(-4),m=e(f);if(!(h[0]^m[0]|h[1]^m[1]|h[2]^m[2]|h[3]^m[3]))return f}function a(c){var f=km.decodeUnsafe(c);if(f!=null)return i(f)}function u(c){var f=km.decode(c),h=i(f);if(h==null)throw new Error("Invalid checksum");return h}return{encode:r,decode:u,decodeUnsafe:a}}function FX(e){return hB(hB(e))}const Vg=OX(FX);var ru={},pB;function NX(){if(pB)return ru;pB=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.bech32m=ru.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={};for(let p=0;p<e.length;p++){const A=e.charAt(p);r[A]=p}function i(p){const A=p>>25;return(p&33554431)<<5^-(A>>0&1)&996825010^-(A>>1&1)&642813549^-(A>>2&1)&513874426^-(A>>3&1)&1027748829^-(A>>4&1)&705979059}function a(p){let A=1;for(let v=0;v<p.length;++v){const g=p.charCodeAt(v);if(g<33||g>126)return"Invalid prefix ("+p+")";A=i(A)^g>>5}A=i(A);for(let v=0;v<p.length;++v){const g=p.charCodeAt(v);A=i(A)^g&31}return A}function u(p,A,v,g){let S=0,O=0;const U=(1<<v)-1,F=[];for(let N=0;N<p.length;++N)for(S=S<<A|p[N],O+=A;O>=v;)O-=v,F.push(S>>O&U);if(g)O>0&&F.push(S<<v-O&U);else{if(O>=A)return"Excess padding";if(S<<v-O&U)return"Non-zero padding"}return F}function c(p){return u(p,8,5,!0)}function f(p){const A=u(p,5,8,!1);if(Array.isArray(A))return A}function h(p){const A=u(p,5,8,!1);if(Array.isArray(A))return A;throw new Error(A)}function m(p){let A;p==="bech32"?A=1:A=734539939;function v(U,F,N){if(N=N||90,U.length+7+F.length>N)throw new TypeError("Exceeds length limit");U=U.toLowerCase();let D=a(U);if(typeof D=="string")throw new Error(D);let M=U+"1";for(let re=0;re<F.length;++re){const K=F[re];if(K>>5!==0)throw new Error("Non 5-bit word");D=i(D)^K,M+=e.charAt(K)}for(let re=0;re<6;++re)D=i(D);D^=A;for(let re=0;re<6;++re){const K=D>>(5-re)*5&31;M+=e.charAt(K)}return M}function g(U,F){if(F=F||90,U.length<8)return U+" too short";if(U.length>F)return"Exceeds length limit";const N=U.toLowerCase(),D=U.toUpperCase();if(U!==N&&U!==D)return"Mixed-case string "+U;U=N;const M=U.lastIndexOf("1");if(M===-1)return"No separator character for "+U;if(M===0)return"Missing prefix for "+U;const re=U.slice(0,M),K=U.slice(M+1);if(K.length<6)return"Data too short";let oe=a(re);if(typeof oe=="string")return oe;const de=[];for(let ue=0;ue<K.length;++ue){const T=K.charAt(ue),$=r[T];if($===void 0)return"Unknown character "+T;oe=i(oe)^$,!(ue+6>=K.length)&&de.push($)}return oe!==A?"Invalid checksum for "+U:{prefix:re,words:de}}function S(U,F){const N=g(U,F);if(typeof N=="object")return N}function O(U,F){const N=g(U,F);if(typeof N=="object")return N;throw new Error(N)}return{decodeUnsafe:S,decode:O,encode:v,toWords:c,fromWordsUnsafe:f,fromWords:h}}return ru.bech32=m("bech32"),ru.bech32m=m("bech32m"),ru}var kw=NX(),m1={exports:{}},mB;function DX(){return mB||(mB=1,(function(e){(function(){var r=typeof window=="object"?window:{},i=!r.HI_BASE32_NO_NODE_JS&&typeof It=="object"&&It.versions&&It.versions.node;i&&(r=Zi);var a=!r.HI_BASE32_NO_COMMON_JS&&!0&&e.exports,u="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={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},f=[0,0,0,0,0,0,0,0],h=function(F,N){N.length>10&&(N="..."+N.substr(-10));var D=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+F+" bytes: "+N+" <-");throw D.position=F,D},m=function(F){for(var N="",D=F.length,M=0,re=0,K,oe;M<D;){if(K=F[M++],K<=127){N+=String.fromCharCode(K);continue}else K>191&&K<=223?(oe=K&31,re=1):K<=239?(oe=K&15,re=2):K<=247?(oe=K&7,re=3):h(M,N);for(var de=0;de<re;++de)K=F[M++],(K<128||K>191)&&h(M,N),oe<<=6,oe+=K&63;oe>=55296&&oe<=57343&&h(M,N),oe>1114111&&h(M,N),oe<=65535?N+=String.fromCharCode(oe):(oe-=65536,N+=String.fromCharCode((oe>>10)+55296),N+=String.fromCharCode((oe&1023)+56320))}return N},p=function(F){if(F==="")return[];if(!/^[A-Z2-7=]+$/.test(F))throw new Error("Invalid base32 characters");F=F.replace(/=/g,"");for(var N,D,M,re,K,oe,de,ue,T=[],$=0,z=F.length,V=0,X=z>>3<<3;V<X;)N=c[F.charAt(V++)],D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],oe=c[F.charAt(V++)],de=c[F.charAt(V++)],ue=c[F.charAt(V++)],T[$++]=(N<<3|D>>>2)&255,T[$++]=(D<<6|M<<1|re>>>4)&255,T[$++]=(re<<4|K>>>1)&255,T[$++]=(K<<7|oe<<2|de>>>3)&255,T[$++]=(de<<5|ue)&255;var J=z-X;return J===2?(N=c[F.charAt(V++)],D=c[F.charAt(V++)],T[$++]=(N<<3|D>>>2)&255):J===4?(N=c[F.charAt(V++)],D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],T[$++]=(N<<3|D>>>2)&255,T[$++]=(D<<6|M<<1|re>>>4)&255):J===5?(N=c[F.charAt(V++)],D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],T[$++]=(N<<3|D>>>2)&255,T[$++]=(D<<6|M<<1|re>>>4)&255,T[$++]=(re<<4|K>>>1)&255):J===7&&(N=c[F.charAt(V++)],D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],oe=c[F.charAt(V++)],de=c[F.charAt(V++)],T[$++]=(N<<3|D>>>2)&255,T[$++]=(D<<6|M<<1|re>>>4)&255,T[$++]=(re<<4|K>>>1)&255,T[$++]=(K<<7|oe<<2|de>>>3)&255),T},A=function(F){for(var N,D,M,re,K,oe="",de=F.length,ue=0,T=parseInt(de/5)*5;ue<T;)N=F.charCodeAt(ue++),D=F.charCodeAt(ue++),M=F.charCodeAt(ue++),re=F.charCodeAt(ue++),K=F.charCodeAt(ue++),oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[(re<<3|K>>>5)&31]+u[K&31];var $=de-T;return $===1?(N=F.charCodeAt(ue),oe+=u[N>>>3]+u[N<<2&31]+"======"):$===2?(N=F.charCodeAt(ue++),D=F.charCodeAt(ue),oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[D<<4&31]+"===="):$===3?(N=F.charCodeAt(ue++),D=F.charCodeAt(ue++),M=F.charCodeAt(ue),oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[M<<1&31]+"==="):$===4&&(N=F.charCodeAt(ue++),D=F.charCodeAt(ue++),M=F.charCodeAt(ue++),re=F.charCodeAt(ue),oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[re<<3&31]+"="),oe},v=function(F){var N,D,M,re,K,oe,de=!1,ue="",T=0,$,z=0,V=F.length;if(F==="")return ue;do{for(f[0]=f[5],f[1]=f[6],f[2]=f[7],$=z;T<V&&$<5;++T)oe=F.charCodeAt(T),oe<128?f[$++]=oe:oe<2048?(f[$++]=192|oe>>6,f[$++]=128|oe&63):oe<55296||oe>=57344?(f[$++]=224|oe>>12,f[$++]=128|oe>>6&63,f[$++]=128|oe&63):(oe=65536+((oe&1023)<<10|F.charCodeAt(++T)&1023),f[$++]=240|oe>>18,f[$++]=128|oe>>12&63,f[$++]=128|oe>>6&63,f[$++]=128|oe&63);z=$-5,T===V&&++T,T>V&&$<6&&(de=!0),N=f[0],$>4?(D=f[1],M=f[2],re=f[3],K=f[4],ue+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[(re<<3|K>>>5)&31]+u[K&31]):$===1?ue+=u[N>>>3]+u[N<<2&31]+"======":$===2?(D=f[1],ue+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[D<<4&31]+"===="):$===3?(D=f[1],M=f[2],ue+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[M<<1&31]+"==="):(D=f[1],M=f[2],re=f[3],ue+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[re<<3&31]+"=")}while(!de);return ue},g=function(F){for(var N,D,M,re,K,oe="",de=F.length,ue=0,T=parseInt(de/5)*5;ue<T;)N=F[ue++],D=F[ue++],M=F[ue++],re=F[ue++],K=F[ue++],oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[(re<<3|K>>>5)&31]+u[K&31];var $=de-T;return $===1?(N=F[ue],oe+=u[N>>>3]+u[N<<2&31]+"======"):$===2?(N=F[ue++],D=F[ue],oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[D<<4&31]+"===="):$===3?(N=F[ue++],D=F[ue++],M=F[ue],oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[M<<1&31]+"==="):$===4&&(N=F[ue++],D=F[ue++],M=F[ue++],re=F[ue],oe+=u[N>>>3]+u[(N<<2|D>>>6)&31]+u[D>>>1&31]+u[(D<<4|M>>>4)&31]+u[(M<<1|re>>>7)&31]+u[re>>>2&31]+u[re<<3&31]+"="),oe},S=function(F,N){var D=typeof F!="string";return D&&F.constructor===ArrayBuffer&&(F=new Uint8Array(F)),D?g(F):N?A(F):v(F)},O=function(F,N){if(!N)return m(p(F));if(F==="")return"";if(!/^[A-Z2-7=]+$/.test(F))throw new Error("Invalid base32 characters");var D,M,re,K,oe,de,ue,T,$="",z=F.indexOf("=");z===-1&&(z=F.length);for(var V=0,X=z>>3<<3;V<X;)D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],oe=c[F.charAt(V++)],de=c[F.charAt(V++)],ue=c[F.charAt(V++)],T=c[F.charAt(V++)],$+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|re<<1|K>>>4)&255)+String.fromCharCode((K<<4|oe>>>1)&255)+String.fromCharCode((oe<<7|de<<2|ue>>>3)&255)+String.fromCharCode((ue<<5|T)&255);var J=z-X;return J===2?(D=c[F.charAt(V++)],M=c[F.charAt(V++)],$+=String.fromCharCode((D<<3|M>>>2)&255)):J===4?(D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],$+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|re<<1|K>>>4)&255)):J===5?(D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],oe=c[F.charAt(V++)],$+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|re<<1|K>>>4)&255)+String.fromCharCode((K<<4|oe>>>1)&255)):J===7&&(D=c[F.charAt(V++)],M=c[F.charAt(V++)],re=c[F.charAt(V++)],K=c[F.charAt(V++)],oe=c[F.charAt(V++)],de=c[F.charAt(V++)],ue=c[F.charAt(V++)],$+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|re<<1|K>>>4)&255)+String.fromCharCode((K<<4|oe>>>1)&255)+String.fromCharCode((oe<<7|de<<2|ue>>>3)&255)),$},U={encode:S,decode:O};O.asBytes=p,a?e.exports=U:r.base32=U})()})(m1)),m1.exports}var BX=DX();const $M=og(BX);var g1={exports:{}},gB;function UX(){return gB||(gB=1,(function(e){(function(){var r="input is invalid type",i="finalize already called",a=typeof window=="object",u=a?window:{};u.JS_SHA512_NO_WINDOW&&(a=!1);var c=!a&&typeof self=="object",f=!u.JS_SHA512_NO_NODE_JS&&typeof It=="object"&&It.versions&&It.versions.node;f?u=Zi:c&&(u=self);var h=!u.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,m=!u.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),A=[-2147483648,8388608,32768,128],v=[24,16,8,0],g=[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],S=["hex","array","digest","arrayBuffer"],O=[],U=Array.isArray;(u.JS_SHA512_NO_NODE_JS||!U)&&(U=function(T){return Object.prototype.toString.call(T)==="[object Array]"});var F=ArrayBuffer.isView;m&&(u.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!F)&&(F=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});var N=function(T){var $=typeof T;if($==="string")return[T,!0];if($!=="object"||T===null)throw new Error(r);if(m&&T.constructor===ArrayBuffer)return[new Uint8Array(T),!1];if(!U(T)&&!F(T))throw new Error(r);return[T,!1]},D=function(T,$){return function(z){return new oe($,!0).update(z)[T]()}},M=function(T){var $=D("hex",T);$.create=function(){return new oe(T)},$.update=function(X){return $.create().update(X)};for(var z=0;z<S.length;++z){var V=S[z];$[V]=D(V,T)}return $},re=function(T,$){return function(z,V){return new de(z,$,!0).update(V)[T]()}},K=function(T){var $=re("hex",T);$.create=function(X){return new de(X,T)},$.update=function(X,J){return $.create(X).update(J)};for(var z=0;z<S.length;++z){var V=S[z];$[V]=re(V,T)}return $};function oe(T,$){$?(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]=O[16]=O[17]=O[18]=O[19]=O[20]=O[21]=O[22]=O[23]=O[24]=O[25]=O[26]=O[27]=O[28]=O[29]=O[30]=O[31]=O[32]=0,this.blocks=O):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],T==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):T==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):T==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=T,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}oe.prototype.update=function(T){if(this.finalized)throw new Error(i);var $=N(T);T=$[0];for(var z=$[1],V,X=0,J,ve=T.length,B=this.blocks;X<ve;){if(this.hashed&&(this.hashed=!1,B[0]=this.block,this.block=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]=B[16]=B[17]=B[18]=B[19]=B[20]=B[21]=B[22]=B[23]=B[24]=B[25]=B[26]=B[27]=B[28]=B[29]=B[30]=B[31]=B[32]=0),z)for(J=this.start;X<ve&&J<128;++X)V=T.charCodeAt(X),V<128?B[J>>>2]|=V<<v[J++&3]:V<2048?(B[J>>>2]|=(192|V>>>6)<<v[J++&3],B[J>>>2]|=(128|V&63)<<v[J++&3]):V<55296||V>=57344?(B[J>>>2]|=(224|V>>>12)<<v[J++&3],B[J>>>2]|=(128|V>>>6&63)<<v[J++&3],B[J>>>2]|=(128|V&63)<<v[J++&3]):(V=65536+((V&1023)<<10|T.charCodeAt(++X)&1023),B[J>>>2]|=(240|V>>>18)<<v[J++&3],B[J>>>2]|=(128|V>>>12&63)<<v[J++&3],B[J>>>2]|=(128|V>>>6&63)<<v[J++&3],B[J>>>2]|=(128|V&63)<<v[J++&3]);else for(J=this.start;X<ve&&J<128;++X)B[J>>>2]|=T[X]<<v[J++&3];this.lastByteIndex=J,this.bytes+=J-this.start,J>=128?(this.block=B[32],this.start=J-128,this.hash(),this.hashed=!0):this.start=J}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},oe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,$=this.lastByteIndex;T[32]=this.block,T[$>>>2]|=A[$&3],this.block=T[32],$>=112&&(this.hashed||this.hash(),T[0]=this.block,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),T[30]=this.hBytes<<3|this.bytes>>>29,T[31]=this.bytes<<3,this.hash()}},oe.prototype.hash=function(){var T=this.h0h,$=this.h0l,z=this.h1h,V=this.h1l,X=this.h2h,J=this.h2l,ve=this.h3h,B=this.h3l,he=this.h4h,ge=this.h4l,W=this.h5h,_=this.h5l,ie=this.h6h,le=this.h6l,ee=this.h7h,k=this.h7l,H=this.blocks,Q,xe,Ae,L,w,j,G,te,me,ye,E,y,b,I,Y,Ee,Re,He,fe,ce,Ce,Ue,je,We,Ye;for(Q=32;Q<160;Q+=2)ce=H[Q-30],Ce=H[Q-29],xe=(ce>>>1|Ce<<31)^(ce>>>8|Ce<<24)^ce>>>7,Ae=(Ce>>>1|ce<<31)^(Ce>>>8|ce<<24)^(Ce>>>7|ce<<25),ce=H[Q-4],Ce=H[Q-3],L=(ce>>>19|Ce<<13)^(Ce>>>29|ce<<3)^ce>>>6,w=(Ce>>>19|ce<<13)^(ce>>>29|Ce<<3)^(Ce>>>6|ce<<26),ce=H[Q-32],Ce=H[Q-31],Ue=H[Q-14],je=H[Q-13],j=(je&65535)+(Ce&65535)+(Ae&65535)+(w&65535),G=(je>>>16)+(Ce>>>16)+(Ae>>>16)+(w>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(xe&65535)+(L&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(xe>>>16)+(L>>>16)+(te>>>16),H[Q]=me<<16|te&65535,H[Q+1]=G<<16|j&65535;var rt=T,ot=$,lt=z,st=V,yt=X,Et=J,P=ve,pe=B,_e=he,Pe=ge,qe=W,nt=_,et=ie,it=le,tt=ee,bt=k;for(Ee=lt&yt,Re=st&Et,Q=0;Q<160;Q+=8)xe=(rt>>>28|ot<<4)^(ot>>>2|rt<<30)^(ot>>>7|rt<<25),Ae=(ot>>>28|rt<<4)^(rt>>>2|ot<<30)^(rt>>>7|ot<<25),L=(_e>>>14|Pe<<18)^(_e>>>18|Pe<<14)^(Pe>>>9|_e<<23),w=(Pe>>>14|_e<<18)^(Pe>>>18|_e<<14)^(_e>>>9|Pe<<23),ye=rt<,E=ot&st,He=ye^rt&yt^Ee,fe=E^ot&Et^Re,We=_e&qe^~_e&et,Ye=Pe&nt^~Pe&it,ce=H[Q],Ce=H[Q+1],Ue=g[Q],je=g[Q+1],j=(je&65535)+(Ce&65535)+(Ye&65535)+(w&65535)+(bt&65535),G=(je>>>16)+(Ce>>>16)+(Ye>>>16)+(w>>>16)+(bt>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(We&65535)+(L&65535)+(tt&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(We>>>16)+(L>>>16)+(tt>>>16)+(te>>>16),ce=me<<16|te&65535,Ce=G<<16|j&65535,j=(fe&65535)+(Ae&65535),G=(fe>>>16)+(Ae>>>16)+(j>>>16),te=(He&65535)+(xe&65535)+(G>>>16),me=(He>>>16)+(xe>>>16)+(te>>>16),Ue=me<<16|te&65535,je=G<<16|j&65535,j=(pe&65535)+(Ce&65535),G=(pe>>>16)+(Ce>>>16)+(j>>>16),te=(P&65535)+(ce&65535)+(G>>>16),me=(P>>>16)+(ce>>>16)+(te>>>16),tt=me<<16|te&65535,bt=G<<16|j&65535,j=(je&65535)+(Ce&65535),G=(je>>>16)+(Ce>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(te>>>16),P=me<<16|te&65535,pe=G<<16|j&65535,xe=(P>>>28|pe<<4)^(pe>>>2|P<<30)^(pe>>>7|P<<25),Ae=(pe>>>28|P<<4)^(P>>>2|pe<<30)^(P>>>7|pe<<25),L=(tt>>>14|bt<<18)^(tt>>>18|bt<<14)^(bt>>>9|tt<<23),w=(bt>>>14|tt<<18)^(bt>>>18|tt<<14)^(tt>>>9|bt<<23),y=P&rt,b=pe&ot,He=y^P<^ye,fe=b^pe&st^E,We=tt&_e^~tt&qe,Ye=bt&Pe^~bt&nt,ce=H[Q+2],Ce=H[Q+3],Ue=g[Q+2],je=g[Q+3],j=(je&65535)+(Ce&65535)+(Ye&65535)+(w&65535)+(it&65535),G=(je>>>16)+(Ce>>>16)+(Ye>>>16)+(w>>>16)+(it>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(We&65535)+(L&65535)+(et&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(We>>>16)+(L>>>16)+(et>>>16)+(te>>>16),ce=me<<16|te&65535,Ce=G<<16|j&65535,j=(fe&65535)+(Ae&65535),G=(fe>>>16)+(Ae>>>16)+(j>>>16),te=(He&65535)+(xe&65535)+(G>>>16),me=(He>>>16)+(xe>>>16)+(te>>>16),Ue=me<<16|te&65535,je=G<<16|j&65535,j=(Et&65535)+(Ce&65535),G=(Et>>>16)+(Ce>>>16)+(j>>>16),te=(yt&65535)+(ce&65535)+(G>>>16),me=(yt>>>16)+(ce>>>16)+(te>>>16),et=me<<16|te&65535,it=G<<16|j&65535,j=(je&65535)+(Ce&65535),G=(je>>>16)+(Ce>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(te>>>16),yt=me<<16|te&65535,Et=G<<16|j&65535,xe=(yt>>>28|Et<<4)^(Et>>>2|yt<<30)^(Et>>>7|yt<<25),Ae=(Et>>>28|yt<<4)^(yt>>>2|Et<<30)^(yt>>>7|Et<<25),L=(et>>>14|it<<18)^(et>>>18|it<<14)^(it>>>9|et<<23),w=(it>>>14|et<<18)^(it>>>18|et<<14)^(et>>>9|it<<23),I=yt&P,Y=Et&pe,He=I^yt&rt^y,fe=Y^Et&ot^b,We=et&tt^~et&_e,Ye=it&bt^~it&Pe,ce=H[Q+4],Ce=H[Q+5],Ue=g[Q+4],je=g[Q+5],j=(je&65535)+(Ce&65535)+(Ye&65535)+(w&65535)+(nt&65535),G=(je>>>16)+(Ce>>>16)+(Ye>>>16)+(w>>>16)+(nt>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(We&65535)+(L&65535)+(qe&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(We>>>16)+(L>>>16)+(qe>>>16)+(te>>>16),ce=me<<16|te&65535,Ce=G<<16|j&65535,j=(fe&65535)+(Ae&65535),G=(fe>>>16)+(Ae>>>16)+(j>>>16),te=(He&65535)+(xe&65535)+(G>>>16),me=(He>>>16)+(xe>>>16)+(te>>>16),Ue=me<<16|te&65535,je=G<<16|j&65535,j=(st&65535)+(Ce&65535),G=(st>>>16)+(Ce>>>16)+(j>>>16),te=(lt&65535)+(ce&65535)+(G>>>16),me=(lt>>>16)+(ce>>>16)+(te>>>16),qe=me<<16|te&65535,nt=G<<16|j&65535,j=(je&65535)+(Ce&65535),G=(je>>>16)+(Ce>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(te>>>16),lt=me<<16|te&65535,st=G<<16|j&65535,xe=(lt>>>28|st<<4)^(st>>>2|lt<<30)^(st>>>7|lt<<25),Ae=(st>>>28|lt<<4)^(lt>>>2|st<<30)^(lt>>>7|st<<25),L=(qe>>>14|nt<<18)^(qe>>>18|nt<<14)^(nt>>>9|qe<<23),w=(nt>>>14|qe<<18)^(nt>>>18|qe<<14)^(qe>>>9|nt<<23),Ee=lt&yt,Re=st&Et,He=Ee^lt&P^I,fe=Re^st&pe^Y,We=qe&et^~qe&tt,Ye=nt&it^~nt&bt,ce=H[Q+6],Ce=H[Q+7],Ue=g[Q+6],je=g[Q+7],j=(je&65535)+(Ce&65535)+(Ye&65535)+(w&65535)+(Pe&65535),G=(je>>>16)+(Ce>>>16)+(Ye>>>16)+(w>>>16)+(Pe>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(We&65535)+(L&65535)+(_e&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(We>>>16)+(L>>>16)+(_e>>>16)+(te>>>16),ce=me<<16|te&65535,Ce=G<<16|j&65535,j=(fe&65535)+(Ae&65535),G=(fe>>>16)+(Ae>>>16)+(j>>>16),te=(He&65535)+(xe&65535)+(G>>>16),me=(He>>>16)+(xe>>>16)+(te>>>16),Ue=me<<16|te&65535,je=G<<16|j&65535,j=(ot&65535)+(Ce&65535),G=(ot>>>16)+(Ce>>>16)+(j>>>16),te=(rt&65535)+(ce&65535)+(G>>>16),me=(rt>>>16)+(ce>>>16)+(te>>>16),_e=me<<16|te&65535,Pe=G<<16|j&65535,j=(je&65535)+(Ce&65535),G=(je>>>16)+(Ce>>>16)+(j>>>16),te=(Ue&65535)+(ce&65535)+(G>>>16),me=(Ue>>>16)+(ce>>>16)+(te>>>16),rt=me<<16|te&65535,ot=G<<16|j&65535;j=($&65535)+(ot&65535),G=($>>>16)+(ot>>>16)+(j>>>16),te=(T&65535)+(rt&65535)+(G>>>16),me=(T>>>16)+(rt>>>16)+(te>>>16),this.h0h=me<<16|te&65535,this.h0l=G<<16|j&65535,j=(V&65535)+(st&65535),G=(V>>>16)+(st>>>16)+(j>>>16),te=(z&65535)+(lt&65535)+(G>>>16),me=(z>>>16)+(lt>>>16)+(te>>>16),this.h1h=me<<16|te&65535,this.h1l=G<<16|j&65535,j=(J&65535)+(Et&65535),G=(J>>>16)+(Et>>>16)+(j>>>16),te=(X&65535)+(yt&65535)+(G>>>16),me=(X>>>16)+(yt>>>16)+(te>>>16),this.h2h=me<<16|te&65535,this.h2l=G<<16|j&65535,j=(B&65535)+(pe&65535),G=(B>>>16)+(pe>>>16)+(j>>>16),te=(ve&65535)+(P&65535)+(G>>>16),me=(ve>>>16)+(P>>>16)+(te>>>16),this.h3h=me<<16|te&65535,this.h3l=G<<16|j&65535,j=(ge&65535)+(Pe&65535),G=(ge>>>16)+(Pe>>>16)+(j>>>16),te=(he&65535)+(_e&65535)+(G>>>16),me=(he>>>16)+(_e>>>16)+(te>>>16),this.h4h=me<<16|te&65535,this.h4l=G<<16|j&65535,j=(_&65535)+(nt&65535),G=(_>>>16)+(nt>>>16)+(j>>>16),te=(W&65535)+(qe&65535)+(G>>>16),me=(W>>>16)+(qe>>>16)+(te>>>16),this.h5h=me<<16|te&65535,this.h5l=G<<16|j&65535,j=(le&65535)+(it&65535),G=(le>>>16)+(it>>>16)+(j>>>16),te=(ie&65535)+(et&65535)+(G>>>16),me=(ie>>>16)+(et>>>16)+(te>>>16),this.h6h=me<<16|te&65535,this.h6l=G<<16|j&65535,j=(k&65535)+(bt&65535),G=(k>>>16)+(bt>>>16)+(j>>>16),te=(ee&65535)+(tt&65535)+(G>>>16),me=(ee>>>16)+(tt>>>16)+(te>>>16),this.h7h=me<<16|te&65535,this.h7l=G<<16|j&65535},oe.prototype.hex=function(){this.finalize();var T=this.h0h,$=this.h0l,z=this.h1h,V=this.h1l,X=this.h2h,J=this.h2l,ve=this.h3h,B=this.h3l,he=this.h4h,ge=this.h4l,W=this.h5h,_=this.h5l,ie=this.h6h,le=this.h6l,ee=this.h7h,k=this.h7l,H=this.bits,Q=p[T>>>28&15]+p[T>>>24&15]+p[T>>>20&15]+p[T>>>16&15]+p[T>>>12&15]+p[T>>>8&15]+p[T>>>4&15]+p[T&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[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]+p[V>>>28&15]+p[V>>>24&15]+p[V>>>20&15]+p[V>>>16&15]+p[V>>>12&15]+p[V>>>8&15]+p[V>>>4&15]+p[V&15]+p[X>>>28&15]+p[X>>>24&15]+p[X>>>20&15]+p[X>>>16&15]+p[X>>>12&15]+p[X>>>8&15]+p[X>>>4&15]+p[X&15]+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[ve>>>28&15]+p[ve>>>24&15]+p[ve>>>20&15]+p[ve>>>16&15]+p[ve>>>12&15]+p[ve>>>8&15]+p[ve>>>4&15]+p[ve&15];return H>=256&&(Q+=p[B>>>28&15]+p[B>>>24&15]+p[B>>>20&15]+p[B>>>16&15]+p[B>>>12&15]+p[B>>>8&15]+p[B>>>4&15]+p[B&15]),H>=384&&(Q+=p[he>>>28&15]+p[he>>>24&15]+p[he>>>20&15]+p[he>>>16&15]+p[he>>>12&15]+p[he>>>8&15]+p[he>>>4&15]+p[he&15]+p[ge>>>28&15]+p[ge>>>24&15]+p[ge>>>20&15]+p[ge>>>16&15]+p[ge>>>12&15]+p[ge>>>8&15]+p[ge>>>4&15]+p[ge&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]+p[_>>>28&15]+p[_>>>24&15]+p[_>>>20&15]+p[_>>>16&15]+p[_>>>12&15]+p[_>>>8&15]+p[_>>>4&15]+p[_&15]),H==512&&(Q+=p[ie>>>28&15]+p[ie>>>24&15]+p[ie>>>20&15]+p[ie>>>16&15]+p[ie>>>12&15]+p[ie>>>8&15]+p[ie>>>4&15]+p[ie&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[ee>>>28&15]+p[ee>>>24&15]+p[ee>>>20&15]+p[ee>>>16&15]+p[ee>>>12&15]+p[ee>>>8&15]+p[ee>>>4&15]+p[ee&15]+p[k>>>28&15]+p[k>>>24&15]+p[k>>>20&15]+p[k>>>16&15]+p[k>>>12&15]+p[k>>>8&15]+p[k>>>4&15]+p[k&15]),Q},oe.prototype.toString=oe.prototype.hex,oe.prototype.digest=function(){this.finalize();var T=this.h0h,$=this.h0l,z=this.h1h,V=this.h1l,X=this.h2h,J=this.h2l,ve=this.h3h,B=this.h3l,he=this.h4h,ge=this.h4l,W=this.h5h,_=this.h5l,ie=this.h6h,le=this.h6l,ee=this.h7h,k=this.h7l,H=this.bits,Q=[T>>>24&255,T>>>16&255,T>>>8&255,T&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,z>>>24&255,z>>>16&255,z>>>8&255,z&255,V>>>24&255,V>>>16&255,V>>>8&255,V&255,X>>>24&255,X>>>16&255,X>>>8&255,X&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255];return H>=256&&Q.push(B>>>24&255,B>>>16&255,B>>>8&255,B&255),H>=384&&Q.push(he>>>24&255,he>>>16&255,he>>>8&255,he&255,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255),H==512&&Q.push(ie>>>24&255,ie>>>16&255,ie>>>8&255,ie&255,le>>>24&255,le>>>16&255,le>>>8&255,le&255,ee>>>24&255,ee>>>16&255,ee>>>8&255,ee&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255),Q},oe.prototype.array=oe.prototype.digest,oe.prototype.arrayBuffer=function(){this.finalize();var T=this.bits,$=new ArrayBuffer(T/8),z=new DataView($);return z.setUint32(0,this.h0h),z.setUint32(4,this.h0l),z.setUint32(8,this.h1h),z.setUint32(12,this.h1l),z.setUint32(16,this.h2h),z.setUint32(20,this.h2l),z.setUint32(24,this.h3h),T>=256&&z.setUint32(28,this.h3l),T>=384&&(z.setUint32(32,this.h4h),z.setUint32(36,this.h4l),z.setUint32(40,this.h5h),z.setUint32(44,this.h5l)),T==512&&(z.setUint32(48,this.h6h),z.setUint32(52,this.h6l),z.setUint32(56,this.h7h),z.setUint32(60,this.h7l)),$},oe.prototype.clone=function(){var T=new oe(this.bits,!1);return this.copyTo(T),T},oe.prototype.copyTo=function(T){var $=0,z=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for($=0;$<z.length;++$)T[z[$]]=this[z[$]];for($=0;$<this.blocks.length;++$)T.blocks[$]=this.blocks[$]};function de(T,$,z){var V,X=N(T);if(T=X[0],X[1]){for(var J=[],ve=T.length,B=0,he,V=0;V<ve;++V)he=T.charCodeAt(V),he<128?J[B++]=he:he<2048?(J[B++]=192|he>>>6,J[B++]=128|he&63):he<55296||he>=57344?(J[B++]=224|he>>>12,J[B++]=128|he>>>6&63,J[B++]=128|he&63):(he=65536+((he&1023)<<10|T.charCodeAt(++V)&1023),J[B++]=240|he>>>18,J[B++]=128|he>>>12&63,J[B++]=128|he>>>6&63,J[B++]=128|he&63);T=J}T.length>128&&(T=new oe($,!0).update(T).array());for(var ge=[],W=[],V=0;V<128;++V){var _=T[V]||0;ge[V]=92^_,W[V]=54^_}oe.call(this,$,z),this.update(W),this.oKeyPad=ge,this.inner=!0,this.sharedMemory=z}de.prototype=new oe,de.prototype.finalize=function(){if(oe.prototype.finalize.call(this),this.inner){this.inner=!1;var T=this.array();oe.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(T),oe.prototype.finalize.call(this)}},de.prototype.clone=function(){var T=new de([],this.bits,!1);this.copyTo(T),T.inner=this.inner;for(var $=0;$<this.oKeyPad.length;++$)T.oKeyPad[$]=this.oKeyPad[$];return T};var ue=M(512);ue.sha512=ue,ue.sha384=M(384),ue.sha512_256=M(256),ue.sha512_224=M(224),ue.sha512.hmac=K(512),ue.sha384.hmac=K(384),ue.sha512_256.hmac=K(256),ue.sha512_224.hmac=K(224),h?e.exports=ue:(u.sha512=ue.sha512,u.sha384=ue.sha384,u.sha512_256=ue.sha512_256,u.sha512_224=ue.sha512_224)})()})(g1)),g1.exports}var _X=UX();const MX=og(_X),qM="3.7.7",PX=qM,Cc=typeof un.Buffer=="function",yB=typeof TextDecoder=="function"?new TextDecoder:void 0,bB=typeof TextEncoder=="function"?new TextEncoder:void 0,jX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fd=Array.prototype.slice.call(jX),Nm=(e=>{let r={};return e.forEach((i,a)=>r[i]=a),r})(fd),LX=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Hn=String.fromCharCode.bind(String),vB=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),HM=e=>e.replace(/=/g,"").replace(/[+\/]/g,r=>r=="+"?"-":"_"),zM=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),VM=e=>{let r,i,a,u,c="";const f=e.length%3;for(let h=0;h<e.length;){if((i=e.charCodeAt(h++))>255||(a=e.charCodeAt(h++))>255||(u=e.charCodeAt(h++))>255)throw new TypeError("invalid character found");r=i<<16|a<<8|u,c+=fd[r>>18&63]+fd[r>>12&63]+fd[r>>6&63]+fd[r&63]}return f?c.slice(0,f-3)+"===".substring(f):c},fC=typeof btoa=="function"?e=>btoa(e):Cc?e=>un.Buffer.from(e,"binary").toString("base64"):VM,$w=Cc?e=>un.Buffer.from(e).toString("base64"):e=>{let i=[];for(let a=0,u=e.length;a<u;a+=4096)i.push(Hn.apply(null,e.subarray(a,a+4096)));return fC(i.join(""))},$m=(e,r=!1)=>r?HM($w(e)):$w(e),kX=e=>{if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?Hn(192|r>>>6)+Hn(128|r&63):Hn(224|r>>>12&15)+Hn(128|r>>>6&63)+Hn(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Hn(240|r>>>18&7)+Hn(128|r>>>12&63)+Hn(128|r>>>6&63)+Hn(128|r&63)}},$X=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,GM=e=>e.replace($X,kX),AB=Cc?e=>un.Buffer.from(e,"utf8").toString("base64"):bB?e=>$w(bB.encode(e)):e=>fC(GM(e)),Xl=(e,r=!1)=>r?HM(AB(e)):AB(e),xB=e=>Xl(e,!0),qX=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,HX=e=>{switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=r-65536;return Hn((i>>>10)+55296)+Hn((i&1023)+56320);case 3:return Hn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Hn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},QM=e=>e.replace(qX,HX),YM=e=>{if(e=e.replace(/\s+/g,""),!LX.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let r,i="",a,u;for(let c=0;c<e.length;)r=Nm[e.charAt(c++)]<<18|Nm[e.charAt(c++)]<<12|(a=Nm[e.charAt(c++)])<<6|(u=Nm[e.charAt(c++)]),i+=a===64?Hn(r>>16&255):u===64?Hn(r>>16&255,r>>8&255):Hn(r>>16&255,r>>8&255,r&255);return i},dC=typeof atob=="function"?e=>atob(zM(e)):Cc?e=>un.Buffer.from(e,"base64").toString("binary"):YM,KM=Cc?e=>vB(un.Buffer.from(e,"base64")):e=>vB(dC(e).split("").map(r=>r.charCodeAt(0))),XM=e=>KM(ZM(e)),zX=Cc?e=>un.Buffer.from(e,"base64").toString("utf8"):yB?e=>yB.decode(KM(e)):e=>QM(dC(e)),ZM=e=>zM(e.replace(/[-_]/g,r=>r=="-"?"+":"/")),qw=e=>zX(ZM(e)),VX=e=>{if(typeof e!="string")return!1;const r=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(r)||!/[^\s0-9a-zA-Z\-_]/.test(r)},JM=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),WM=function(){const e=(r,i)=>Object.defineProperty(String.prototype,r,JM(i));e("fromBase64",function(){return qw(this)}),e("toBase64",function(r){return Xl(this,r)}),e("toBase64URI",function(){return Xl(this,!0)}),e("toBase64URL",function(){return Xl(this,!0)}),e("toUint8Array",function(){return XM(this)})},eP=function(){const e=(r,i)=>Object.defineProperty(Uint8Array.prototype,r,JM(i));e("toBase64",function(r){return $m(this,r)}),e("toBase64URI",function(){return $m(this,!0)}),e("toBase64URL",function(){return $m(this,!0)})},GX=()=>{WM(),eP()},QX={version:qM,VERSION:PX,atob:dC,atobPolyfill:YM,btoa:fC,btoaPolyfill:VM,fromBase64:qw,toBase64:Xl,encode:Xl,encodeURI:xB,encodeURL:xB,utob:GM,btou:QM,decode:qw,isValid:VX,fromUint8Array:$m,toUint8Array:XM,extendString:WM,extendUint8Array:eP,extendBuiltins:GX},_u=e=>`${e} is malformed`,tP=e=>`${e} checksum is wrong`,YX=32,EB=32,Dm=36,nP=4,wB=58,SB=32,KX=32,CB=_u("block hash"),XX=_u("tx id"),y1=_u("address"),ZX=tP("address");function JX(e){return Uint8Array.from(MX.sha512_256.array(e).slice(SB-nP,SB))}function WX(e){if(typeof e!="string")throw new Error(`${y1}: expected string, got ${typeof e}, ${e}`);if(e.length!==wB)throw new Error(`${y1}: expected length ${wB}, got ${e.length}: ${e}`);const r=$M.decode.asBytes(e);if(r.length!==Dm)throw new Error(`${y1}: expected byte length ${Dm}, got ${r.length}`);const i=new Uint8Array(r.slice(0,Dm-nP)),a=new Uint8Array(r.slice(KX,Dm)),u=JX(i);if(!nZ(u,a))throw new Error(ZX);return!0}function eZ(e){const r=QX.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(r.length!==EB)throw new Error(`${XX}: expected byte length ${EB}, got ${r.length}`);return!0}function tZ(e){const r=$M.decode.asBytes(e);if(r.length!==YX)throw new Error(`${CB}: expected byte length ${CB}, got ${r.length}`);return!0}function nZ(e,r){return e.length!==r.length?!1:Array.from(e).every((i,a)=>i===r[a])}const rZ=34,Hw=34,IB=36,oZ=_u("block hash"),iZ=_u("tx id"),aZ=_u("address");function sZ(e){const r=Vg.decode(e);if(r.length!==IB)throw new Error(`${aZ}: expected byte length ${IB}, got ${r.length}`);return!0}function uZ(e){const r=Vg.decode(e);if(r.length!==Hw)throw new Error(`${oZ}: expected byte length ${rZ}, got ${r.length}`);return!0}function lZ(e){const r=Vg.decode(e);if(r.length!==Hw)throw new Error(`${iZ}: expected byte length ${Hw}, got ${r.length}`);return!0}function cZ({polynomial:e,numTables:r}){const i=new Uint32Array(256*r);for(let a=0;a<256;a++){let u=a;u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,i[a]=u}for(let a=256;a<i.length;a++){const u=i[a-256];i[a]=i[u&255]^u>>>8}return i}const si=cZ({polynomial:3988292384,numTables:8});function fZ(){return-1}function dZ(e,r){const i=r.byteLength,a=new DataView(r.buffer,r.byteOffset,i);let u=e,c=0;const f=-a.byteOffset&3;for(;c<f&&c<i;c++)u=si[(u^a.getUint8(c))&255]^u>>>8;if(c===i)return u;c=f;let h=i-c;for(;h>=8;c+=8,h-=8){u^=a.getUint32(c,!0);const m=a.getUint32(c+4,!0);u=si[0*256+(m>>>24&255)]^si[1*256+(m>>>16&255)]^si[2*256+(m>>>8&255)]^si[3*256+(m>>>0&255)]^si[4*256+(u>>>24&255)]^si[5*256+(u>>>16&255)]^si[6*256+(u>>>8&255)]^si[7*256+(u>>>0&255)]}for(let m=c;m<i;m++)u=si[(u^a.getUint8(m))&255]^u>>>8;return u}function hZ(e){return(e^-1)>>>0}function pZ(e){return hZ(dZ(fZ(),e))}const ou=Error,Bm=Error,b1="Unexpected end of buffer",Vl=class Vl{constructor(r){this.initialByte=r}CborInitialByte(r,i){this.initialByte=r<<5|i}static from(r){return new Vl(r)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Vl.AdditionalInformationMask}};Vl.IndefiniteLengthBreakByte=255,Vl.AdditionalInformationMask=31;let Za=Vl;var Xi,Do,ng,Zl,tn,rg,Tt,rP,oP,iP,qm,Or,Vw,aP,Hm,dd,hd,cu,Gw,fu;const qn=class qn{constructor(r){zi(this,Tt);zi(this,Xi);zi(this,Do,0);zi(this,ng,new Array);zi(this,Zl,!1);zi(this,tn);zi(this,rg,0);Va(this,Xi,new Uint8Array(un.Buffer.from(r,"hex"))),Va(this,tn,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var c;const r=Ft(this,Tt,dd).call(this,4);if(r.getAdditionalInfo()===31)return Ft(this,Tt,cu).call(this,1),Ft(this,Tt,Gw).call(this,4),null;const i=Ft(this,Tt,fu).call(this),{length:a,bytesRead:u}=Ft(c=qn,Or,Hm).call(c,r,i);return Ft(this,Tt,cu).call(this,u),Ft(this,Tt,Gw).call(this,4,a),a}readTag(){const{tag:r,bytesRead:i}=Ft(this,Tt,aP).call(this);return Ft(this,Tt,cu).call(this,i),Va(this,Zl,!0),r}readByteString(){var c;const r=Ft(this,Tt,dd).call(this,2);if(r.getAdditionalInfo()===31){const{val:f,encodingLength:h}=Ft(this,Tt,iP).call(this,2);return Ft(this,Tt,cu).call(this,h),Ft(this,Tt,qm).call(this),f}const i=Ft(this,Tt,fu).call(this),{length:a,bytesRead:u}=Ft(c=qn,Or,Hm).call(c,r,i);return Ft(this,Tt,oP).call(this,u+a),Ft(this,Tt,cu).call(this,u+a),Ft(this,Tt,qm).call(this),i.slice(u,u+a)}readInt(){const r=Ft(this,Tt,rP).call(this);return Ft(this,Tt,cu).call(this,r.bytesRead),Ft(this,Tt,qm).call(this),r.signedInt}static ensureReadCapacityInArray(r,i){if(r.length<i)throw new ou(b1)}};Xi=new WeakMap,Do=new WeakMap,ng=new WeakMap,Zl=new WeakMap,tn=new WeakMap,rg=new WeakMap,Tt=new WeakSet,rP=function(){var i,a;const r=Ft(this,Tt,dd).call(this);switch(r.getMajorType()){case 0:{const{unsignedInt:u,bytesRead:c}=Ft(i=qn,Or,hd).call(i,r,Ft(this,Tt,fu).call(this));return{bytesRead:c,signedInt:BigInt(u)}}case 1:{const{unsignedInt:u,bytesRead:c}=Ft(a=qn,Or,hd).call(a,r,Ft(this,Tt,fu).call(this));return{bytesRead:c,signedInt:BigInt(-1)-u}}default:throw new Bm(`Reader type mismatch, expected 0 or 1 but got ${r.getMajorType()}`)}},oP=function(r){if(Dt(this,Xi).length-Dt(this,Do)<r)throw new ou(b1)},iP=function(r){var h,m,p;const i=Ft(this,Tt,fu).call(this);let a=un.Buffer.from([]),u=0,c=1,f=Ft(h=qn,Or,Vw).call(h,i.slice(c),r);for(;f.getInitialByte()!==Za.IndefiniteLengthBreakByte;){const{length:A,bytesRead:v}=Ft(m=qn,Or,Hm).call(m,f,i.slice(c)),g=v+Number(A);a=un.Buffer.concat([a,i.slice(c+(g-A),c+g)]),c+=g,f=Ft(p=qn,Or,Vw).call(p,i.slice(c),r)}return u=c+1,{encodingLength:u,val:new Uint8Array(a)}},qm=function(){++Dt(this,tn).itemsRead,Va(this,Zl,!1)},Or=new WeakSet,Vw=function(r,i){qn.ensureReadCapacityInArray(r,1);const a=Za.from(r[0]);if(a.getInitialByte()!==Za.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new ou("Indefinite length string contains invalid data item");return a},aP=function(){var u;const r=Ft(this,Tt,dd).call(this,6),{unsignedInt:i,bytesRead:a}=Ft(u=qn,Or,hd).call(u,r,Ft(this,Tt,fu).call(this));return{bytesRead:a,tag:Number(i)}},Hm=function(r,i){var c;const{unsignedInt:a,bytesRead:u}=Ft(c=qn,Or,hd).call(c,r,i);return{bytesRead:u,length:Number(a)}},dd=function(r){if(Dt(this,tn).definiteLength!==void 0&&Dt(this,tn).definiteLength-Dt(this,tn).itemsRead===0)throw new Bm("No more data items to read");if(Dt(this,Do)===Dt(this,Xi).length)throw Dt(this,tn).type===null&&Dt(this,tn).definiteLength===void 0&&Dt(this,Do)>0?new Bm("End of root-level. No more data items to read"):new ou(b1);const i=Za.from(Dt(this,Xi)[Dt(this,Do)]);switch(Dt(this,tn).type){case 2:case 3:if(i.getInitialByte()===Za.IndefiniteLengthBreakByte||i.getMajorType()===Dt(this,tn).type&&i.getAdditionalInfo()!==31)break;throw new ou(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(r&&r!==i.getMajorType())throw new Bm(`Major type mismatch, expected type ${r} but got ${i.getMajorType()}`);return i},hd=function(r,i){if((r.getInitialByte()&Za.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(r.getAdditionalInfo())};switch(r.getAdditionalInfo()){case 24:return qn.ensureReadCapacityInArray(i,2),{bytesRead:2,unsignedInt:BigInt(i[1])};case 25:{qn.ensureReadCapacityInArray(i,3);const u=un.Buffer.from(i.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(u)}}case 26:{qn.ensureReadCapacityInArray(i,5);const u=un.Buffer.from(i.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(u)}}case 27:{qn.ensureReadCapacityInArray(i,9);const a=un.Buffer.from(i.slice(1,9));let u=BigInt(0);for(const c of a)u=(u<<BigInt(8))+BigInt(c);return{bytesRead:9,unsignedInt:u}}default:throw new ou("Invalid integer encoding")}},cu=function(r){if(Dt(this,Do)+r>Dt(this,Xi).length)throw new ou("Buffer offset out of bounds");Va(this,Do,Dt(this,Do)+r),Va(this,rg,0)},Gw=function(r,i){const a={currentKeyOffset:Dt(this,tn).currentKeyOffset,definiteLength:Dt(this,tn).definiteLength,frameOffset:Dt(this,tn).frameOffset,itemsRead:Dt(this,tn).itemsRead,type:Dt(this,tn).type};Dt(this,ng).push(a),Dt(this,tn).type=r,Dt(this,tn).definiteLength=i,Dt(this,tn).itemsRead=0,Dt(this,tn).frameOffset=Dt(this,Do),Va(this,Zl,!1),Dt(this,tn).currentKeyOffset=null},fu=function(){return Dt(this,Xi).slice(Dt(this,Do))},zi(qn,Or);let zw=qn;const mZ=tP("address");function gZ(e){return sP(km.decode(e))}function sP(e){const r=new zw(un.Buffer.from(e).toString("hex"));r.readStartArray(),r.readTag();const i=r.readByteString();if(Number(r.readInt())!==pZ(i))throw new Error(mZ);return!0}function yZ(e){const r=kw.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=kw.bech32.fromWords(r.words);if(!["addr","addr_test","stake","stake_test"].includes(r.prefix))return!1;switch(i[0]>>4){case 0:case 1:case 2:case 3:return i.length===57;case 4:case 5:{if(i.length<=29)return!1;let u=29;const c=un.Buffer.from(i),{bytesRead:f}=v1(c.subarray(u));u+=f;const{bytesRead:h}=v1(c.subarray(u));return u+=h,v1(c.subarray(u)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return sP(new Uint8Array(i));default:throw new Error(_u("address"))}}const v1=e=>{let r=!0,i=0n,a=0;for(;r&&a<e.length;){const u=e[a];i<<=7n,i|=BigInt(u&127),r=(u&128)!==0,++a}return{bytesRead:a,value:i}};var hr=(e=>(e[e.EVM=0]="EVM",e[e.CARDANO=1]="CARDANO",e[e.SUBSTRATE=2]="SUBSTRATE",e[e.ALGORAND=3]="ALGORAND",e[e.MINA=4]="MINA",e[e.MIDNIGHT=5]="MIDNIGHT",e[e.AVAIL=6]="AVAIL",e))(hr||{});function ko(e,r,i=()=>!0){try{return i(r(e))}catch{return!1}}gi("algorand-address",e=>ko(e,WX));gi("algorand-blockhash",e=>ko(e,eZ));gi("algorand-txid",e=>ko(e,tZ));gi("mina-address",e=>ko(e,sZ));gi("mina-blockhash",e=>ko(e,uZ));gi("mina-txid",e=>ko(e,lZ));gi("cardano-address",e=>ko(e,gZ)||ko(e,yZ));gi("ss58",e=>ko(e,mX.decode));gi("bs58check",e=>ko(e,Vg.decode));gi("bech32",e=>ko(e,r=>kw.bech32.decode(r,Number.MAX_SAFE_INTEGER/2)));function er(e){return C.Transform(e).Decode(r=>r.toLowerCase()).Encode(r=>r.toLowerCase())}function TB(e){return C.Transform(e).Decode(r=>r.toUpperCase()).Encode(r=>r.toUpperCase())}const Ie={Uint256:C.Transform(C.BigInt({maximum:115792089237316195423570985008687907853269984665640564039457584007913129639935n,minimum:0n})).Decode(e=>e.toString()).Encode(e=>BigInt(e)),BlockNumber:e=>C.Unsafe(C.Number(e)),AbsoluteSlotNumber:e=>C.Unsafe(C.Number(e)),EpochNumber:e=>C.Unsafe(C.Number(e)),Algorand:{BlockHash:C.Unsafe(C.String({format:"algorand-blockhash"})),TxHash:C.Unsafe(TB(C.String({format:"algorand-txid"}))),Address:C.Unsafe(TB(C.String({format:"algorand-address"})))},Substrate:{Address:C.Unsafe(C.String({format:"ss58"}))},Avail:{BlockHash:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:C.Unsafe(C.String({format:"ss58"}))},Cardano:{BlockHash:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{64}$/))),Address:C.Unsafe(C.String({format:"cardano-address"})),Credential:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:C.Unsafe(er(C.String())),PolicyId:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:C.Unsafe(C.String()),AmountLovelace:C.Unsafe(C.RegExp(/^\d+$/))},Evm:{BlockHash:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),Signature:C.Unsafe(C.RegExp(/^0x[a-fA-F0-9]{130}$/)),PrivateKey:C.Unsafe(C.RegExp(/^0x[a-fA-F0-9]{64}$/))},Midnight:{BlockHash:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:C.Unsafe(er(C.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:C.Unsafe(er(C.RegExp(/^[a-fA-F0-9]{181}$/)))},Mina:{BlockHash:C.Unsafe(C.String({format:"mina-blockhash"})),TxHash:C.Unsafe(C.String({format:"mina-txid"})),Address:C.Unsafe(C.String({format:"mina-address"}))},Caip2:C.Unsafe(C.String()),WalletAddress:()=>C.Union(vZ),IntervalMs:e=>C.Unsafe(C.Number(e)),IntervalSec:e=>C.Unsafe(C.Number(e)),TimestampMs:e=>C.Unsafe(C.Number(e)),TimestampMsStr:C.Unsafe(C.RegExp(/^\d+$/)),HexString0x:e=>C.Unsafe(C.RegExp(/^0x[a-fA-F0-9]+$/,e)),HexStringNo0x:e=>C.Unsafe(C.RegExp(/^[a-fA-F0-9]+$/,e)),UnknownFormat:C.Unsafe(C.String()),Lowercase:er(C.String()),TrueOrFalse:C.Transform(C.Union([C.Literal("T"),C.Literal("F")])).Decode(e=>e==="T").Encode(e=>e?"T":"F"),Nullable:(e,r)=>C.Union([e,C.Null()],r),SerializeObjAsJson:()=>C.Transform(C.Unsafe(C.Any())).Decode(e=>JSON.stringify(e)).Encode(e=>JSON.parse(e)),SerializeJsonAsObj:e=>C.Transform(e).Decode(r=>JSON.parse(r)).Encode(r=>JSON.stringify(r)),EvmAbiEvent:C.Unsafe(C.Any())},bZ={0:Ie.Evm.Address,1:Ie.Cardano.Address,2:Ie.Substrate.Address,6:Ie.Avail.Address,3:Ie.Algorand.Address,4:Ie.Mina.Address,5:Ie.Midnight.Address},vZ=[C.Object({type:C.Literal(0),address:Ie.Evm.Address}),C.Object({type:C.Literal(1),address:Ie.Cardano.Address}),C.Object({type:C.Literal(2),address:Ie.Substrate.Address}),C.Object({type:C.Literal(6),address:Ie.Avail.Address}),C.Object({type:C.Literal(3),address:Ie.Algorand.Address}),C.Object({type:C.Literal(4),address:Ie.Mina.Address}),C.Object({type:C.Literal(5),address:Ie.Midnight.Address})];function zm(e){return{from:r=>{const i=[];for(const a of e)i.push([a,r.properties[a]]);return i}}}function $l(e){return{from:r=>zm(e).from(r)}}const Wd=e=>({ok:!0,value:e}),eh=e=>({ok:!1,error:e}),AZ={},uP=xZ(globalThis,AZ);function xZ(e,r){return new Proxy(e,{get(i,a,u){return a in r?r[a]:e[a]},set(i,a,u){return a in r&&delete r[a],e[a]=u,!0},deleteProperty(i,a){let u=!1;return a in r&&(delete r[a],u=!0),a in e&&(delete e[a],u=!0),u},ownKeys(i){const a=Reflect.ownKeys(e),u=Reflect.ownKeys(r),c=new Set(u);return[...a.filter(f=>!c.has(f)),...u]},defineProperty(i,a,u){return a in r&&delete r[a],Reflect.defineProperty(e,a,u),!0},getOwnPropertyDescriptor(i,a){return a in r?Reflect.getOwnPropertyDescriptor(r,a):Reflect.getOwnPropertyDescriptor(e,a)},has(i,a){return a in r||a in e}})}const Xa=uP.Temporal??new Proxy({},{get:()=>{}});new Set([Intl.Locale,RegExp,Xa.Duration,Xa.Instant,Xa.PlainDate,Xa.PlainDateTime,Xa.PlainTime,Xa.PlainYearMonth,Xa.PlainMonthDay,Xa.ZonedDateTime,URL,URLSearchParams].filter(e=>e!=null).map(e=>e.prototype));const{Deno:Um}=uP;typeof(Um==null?void 0:Um.noColor)=="boolean"&&Um.noColor;function*Qw(e){return yield{type:"reset",block:e}}function*hC(e){return yield{type:"shift",block:e}}function EZ(){let e=[];return{reducing:!1,push(...r){return e.push(...r)},pop(){return e.pop()}}}function yu(e){let r=EZ();return r.push({method:"next",iterator:e()[Symbol.iterator]()}),pd(r)}function pd(e){try{e.reducing=!0;for(let r=e.pop();r;r=e.pop())try{let i=wZ(r);if(e.value=i.value,!i.done){let a=i.value;if(a.type==="reset")e.push({...r,method:"next",get value(){return e.value}},{method:"next",iterator:a.block()[Symbol.iterator]()});else{let u=r,c=_m(h=>(e.push({method:"next",iterator:u.iterator,value:h}),pd(e)));c.tail=_m(h=>{e.push({method:"next",iterator:u.iterator,value:h}),e.reducing||pd(e)});let f=_m(h=>(e.push({method:"throw",iterator:u.iterator,value:h}),pd(e)));f.tail=_m(h=>{e.push({method:"throw",iterator:u.iterator,value:h}),e.reducing||pd(e)}),e.push({method:"next",iterator:a.block(c,f)[Symbol.iterator](),value:void 0})}}}catch(i){let a=e.pop();if(a)e.push({...a,method:"throw",value:i});else throw i}}finally{e.reducing=!1}return e.value}function wZ(e){let{iterator:r}=e;if(e.method==="next")return r.next(e.value);{let i=e.value;if(r.throw)return r.throw(i);throw i}}function _m(e){let r=!1,i,a;return(u=>{if(r){if(i)throw i.error;return a}else{r=!0;try{return a=e(u)}catch(c){throw i={error:c},c}}})}function fc(e){return hC((r,i)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(r,i)}}})}))}function Wm(){return pC(SZ)}function SZ(e){return fc(r=>{e.aborted&&r.tail(Wd(void 0))})}function RB(e){return pC(function(i){return hC(function*(a){let u=yield*Qw(function*(){let m=yield*fc(A=>A.tail),p=yield*h.destroy();p.ok?a.tail(m):a.tail(p)}),c=m=>u(Wd(m)),f=m=>u(eh(m)),h=i.createChild(function*(){let m=e(c,f);if(typeof m=="function")try{yield*Wm()}finally{m()}else yield*m,yield*Wm()});yield*Qw(function*(){let m=yield*h;m.ok||a.tail(m)}),h.enter()})})}function CZ(){return pC(e=>fc(r=>r.tail(Wd(e))))}function pC(e){return{[Symbol.iterator](){let r=!1;return{next(i){return r?{done:!0,value:i}:(r=!0,{done:!1,value:e})},throw(i){throw i}}}}}function th(e,r,i){let a={};for(let[u,c]of Object.entries(r))a[u]={enumerable:!0,value:c};return Object.create({...i,[Symbol.toStringTag]:e},a)}function IZ(e){let r=()=>{let i=e();return r=()=>i,i};return()=>r()}function*TZ(){let e,r=new Set;return[yield*Qw(function*(){let u=yield*fc(c=>c.tail);e={value:u};for(let c of r)r.delete(c),c(u)}),{[Symbol.iterator](){return e?RZ(e.value):fc(u=>{r.add(u.tail)})[Symbol.iterator]()}}]}function RZ(e){return{next(){return{done:!0,value:e}}}}function OZ(e){let r,i=(c,f)=>{yu(function*(){let h=OB(yield*e);h.ok?c(h.value):f(h.error)})},a=()=>(r=new Promise((c,f)=>{i(c,f)}),a=()=>r,r);return th("Task",{},{*[Symbol.iterator](){let c=yu(()=>e);if(c){let f=OB(c);if(f.ok)return f.value;throw f.error}else return yield*RB(function*(f,h){i(f,h)})},then:(...c)=>a().then(...c),catch:(...c)=>a().catch(...c),finally:(...c)=>a().finally(...c),halt(){let c,f=()=>(c=new Promise((m,p)=>{h(m,p)}),f=()=>c,e.destroy(),c),h=(m,p)=>{yu(function*(){let{destruction:A}=yield*e;A.ok?m():p(A.error)})};return th("Future",{},{*[Symbol.iterator](){let m=yu(()=>e);if(m){if(!m.ok)throw m.error}else yield*RB(function*(p,A){h(p,A),e.destroy()})},then:(...m)=>f().then(...m),catch:(...m)=>f().catch(...m),finally:(...m)=>f().finally(...m)})}})}function OB(e){return e.ok?e.exit.type==="aborted"?eh(Error("halted")):e.exit.type==="crashed"?eh(e.exit.error):e.exit.result:e}let FZ=0;function lP(e){return yu(function*(){let{operation:r,parent:i}=e,a=new Set,u=Object.create(i??{}),c=[{done:!1,value:FB(void 0)}],f,h=()=>{},[m,p]=yield*TZ(),A=yield*fc(F=>{let N=th("Frame",{id:FZ++,context:u},{createChild(M){let re=lP({operation:M,parent:N.context});return a.add(re),yu(function*(){yield*re,a.delete(re)}),re},getTask(){let M=OZ(N);return N.getTask=()=>M,M},enter(){F.tail(N)},crash(M){return D(M),p},destroy(){return D(),p},[Symbol.iterator]:p[Symbol.iterator]}),D=M=>{N.aborted||(N.aborted=!0,f=M,c.unshift({done:!1,value:DZ()}),h())};return N}),v=IZ(()=>r()[Symbol.iterator]()),g=c.pop();for(;!g.done;){let F=g.value;try{let N=F(v());if(N.done)c.unshift({done:!0,value:Wd(N.value)});else{let D=N.value,M=yield*hC(function*(re){h=()=>re.tail({type:"interrupted"});try{re.tail({type:"settled",result:yield*D(A)})}catch(K){re.tail({type:"settled",result:eh(K)})}});M.type==="settled"&&(M.result.ok?c.unshift({done:!1,value:FB(M.result.value)}):c.unshift({done:!1,value:NZ(M.result.error)}))}}catch(N){c.unshift({done:!0,value:eh(N)})}g=c.pop()}A.exited=!0;let S=g.value,O;S.ok?f?O={type:"crashed",error:f}:A.aborted?O={type:"aborted"}:O={type:"result",result:S}:O={type:"result",result:S};let U=Wd(void 0);for(;a.size!==0;)for(let F of[...a].reverse()){let N=yield*F.destroy();N.ok||(U=N)}if(!U.ok)m({ok:!1,error:U.error,exit:O,destruction:U});else if(O.type==="aborted")m({ok:!0,value:void 0,exit:O,destruction:U});else if(O.type==="result"){let{result:F}=O;F.ok?m({ok:!0,value:void 0,exit:O,destruction:U}):m({ok:!1,error:F.error,exit:O,destruction:U})}else m({ok:!1,error:O.error,exit:O,destruction:U})})}const FB=e=>function(i){return i.next(e)},NZ=e=>function(i){if(i.throw)return i.throw(e);throw e},DZ=e=>function(i){return i.return?i.return(e):{done:!0,value:e}};function*A1(){let e=yield*CZ(),[r]=BZ(e);return r}function BZ(e){let r=UZ(e)?e.frame.createChild(Wm):e??lP({operation:Wm}),i=th("Scope",{},{frame:r,run(a){if(r.exited){let c=new Error("cannot call run() on a scope that has already been exited");throw c.name="InactiveScopeError",c}let u=r.createChild(a);return u.enter(),yu(function*(){let c=yield*u;c.ok||(yield*r.crash(c.error))}),u.getTask()},get spawn(){let a=this;return function(c){return{*[Symbol.iterator](){return a.run(c)}}}},get(a){let{key:u,defaultValue:c}=a;return r.context[u]??c},set(a,u){let{key:c}=a;return r.context[c]=u,u},expect(a){let u=i.get(a);if(typeof u>"u"){let c=new Error(a.key);throw c.name="MissingContextError",c}return u},delete(a){let{key:u}=a;return delete r.context[u]},hasOwn(a){return!!Reflect.getOwnPropertyDescriptor(r.context,a.key)}});return r.enter(),[i,r.getTask().halt]}function UZ(e){return!!e&&typeof e.run=="function"}function _Z(e,r){let i=th("Context",{key:e},{defaultValue:r,*get(){return(yield*A1()).get(i)},*set(u){return(yield*A1()).set(i,u)},expect:a,*with(u,c){let f=yield*A1(),h=f.hasOwn(i)?f.get(i):void 0;try{return yield*c(f.set(i,u))}finally{typeof h>"u"?f.delete(i):f.set(i,h)}},[Symbol.iterator](){return console.warn(`⚠️ using a context (${e}) directly as an operation is deprecated. Use context.expect() instead`),i[Symbol.iterator]=a,a()}});function*a(){let u=yield*i.get();if(typeof u>"u")throw new MZ(`missing required context: '${e}'`);return u}return i}class MZ extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}const sd={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function PZ(e){const r={};return e.filter(a=>a.networkType!=="ntp").forEach((a,u)=>{var v,g,S;const c=a.network,f=a.syncProtocol;let h=c.name;c.type==="evm"&&c.chainId?h=`evm_${c.chainId}`:c.type==="evm"&&c.id&&(h=`evm_${c.id}`),r[h]&&(h=`${h}_${u}`);let m;c.type==="evm"?(S=(g=(v=c.rpcUrls)==null?void 0:v.default)==null?void 0:g.http)!=null&&S[0]?m=c.rpcUrls.default.http[0]:f.chainUri&&(m=f.chainUri):c.type==="midnight"&&(m=c.nodeUrl);let p=sd.evm;c.type==="cardano"?p=sd.cardano:c.type==="midnight"?p=sd.midnight:c.name.toLowerCase().includes("arbitrum")?p=sd.evm:(c.name.toLowerCase().includes("ethereum")||c.name.toLowerCase().includes("l1"))&&(p=sd.evmParallel);const A={type:c.type.toUpperCase(),name:c.name,blockTime:c.blockTimeMS??void 0,color:p,blocks:[],currentBlock:c.type==="evm"?5e5:1e5,rpcEndpoint:m,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:f.name};r[h]=A}),r}async function jZ(){var e;try{const r=await fetch(fP);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const i=await r.json(),a=PZ(i);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((e=i.find(c=>c.syncProtocol.name==="mainNtp"))==null?void 0:e.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${at.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...a}}catch(r){return console.error("Error fetching chain configs:",r),cP}}const cP={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${at.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},evmMain:{type:"EVM",name:"Arbitrum",blockTime:300,color:"#4caf50",blocks:[],currentBlock:5e5,rpcEndpoint:"http://127.0.0.1:8545/rpc/evm",latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},evmParallel:{type:"EVM",name:"Ethereum L1",blockTime:12e3,color:"#ff9800",blocks:[],currentBlock:75e4,rpcEndpoint:"http://127.0.0.1:8546/rpc/evm",latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},cardano:{type:"Cardano",name:"Cardano",blockTime:2e4,color:"#2196f3",blocks:[],currentBlock:3e5},midnight:{type:"Midnight",name:"Midnight",blockTime:6e3,color:"#9c27b0",blocks:[],currentBlock:15e4}},fP=`http://127.0.0.1:${at.PAIMA_API_PORT}/config`,LZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/block-heights`,kZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/primitives`,NB=`http://127.0.0.1:${at.PAIMA_API_PORT}/tables`,$Z=`http://127.0.0.1:${at.PAIMA_API_PORT}/grammar`,qZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/scheduled-data`,HZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/primitives-schema`,zZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/table-schema`,VZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/sync-protocols`,dP=`http://localhost:${at.BATCHER_PORT}/send-input`,DB=`http://localhost:${at.BATCHER_PORT}/documentation`,BB=`http://localhost:${at.PAIMA_API_PORT}/documentation`,UB="https://acedward.github.io/paima-v-next-docs/",GZ=`http://127.0.0.1:${at.PAIMA_API_PORT}/addresses`;function mC(e){return Object.fromEntries(Object.entries(e).map(([i,a])=>{const u=a.map(([f,h])=>h),c=C.Tuple([C.Literal(i),...u]);return[i,c]}))}function iu(e){return["userAddress",bZ[e]]}const au=[["userSignature",C.String()],["gameInput",C.String()],["millisecondTimestamp",C.String()]],QZ={[`${hr.EVM}`]:[iu(hr.EVM),...au],[`${hr.CARDANO}`]:[iu(hr.CARDANO),...au],[`${hr.SUBSTRATE}`]:[iu(hr.SUBSTRATE),...au],[`${hr.AVAIL}`]:[iu(hr.AVAIL),...au],[`${hr.ALGORAND}`]:[iu(hr.ALGORAND),...au],[`${hr.MINA}`]:[iu(hr.MINA),...au],[`${hr.MIDNIGHT}`]:[iu(hr.MIDNIGHT),...au]};mC(QZ);const YZ={batcherInput:"&B"},KZ={[YZ.batcherInput]:[["input",C.Array(C.String())]]};mC(KZ);const x1={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},XZ={[x1.createAccount]:[],[x1.linkAddress]:[["account_id",C.Number()],["signature_from_primary",C.String()],["new_address",C.String()],["signature_from_new_address",C.String()],["is_new_primary",C.Boolean()]],[x1.unlinkAddress]:[["account_id",C.Number()],["signature_from_primary",C.String()],["account_address",C.String()],["new_primary",C.String()]]};mC(XZ);class Fn{constructor(r){this.config=r,this.allProperties=i=>C.Intersect([this.config.required,i?this.config.optional:C.Partial(this.config.optional)]),this.defaultProperties=()=>mK(this.config.optional,{}),this.cloneMerge=i=>{const a=i instanceof Fn?i.config:i;return new Fn({required:C.Object({...this.config.required.properties,...a.required.properties}),optional:C.Object({...this.config.optional.properties,...a.optional.properties})})},this.allProperties.bind(this),this.defaultProperties.bind(this),this.cloneMerge.bind(this)}}var Zt=(e=>(e.NTP="ntp",e.EVM="evm",e.CARDANO="cardano",e.MINA="mina",e.ALGORAND="algorand",e.SUBSTRATE="substrate",e.AVAIL="avail",e.MIDNIGHT="midnight",e))(Zt||{});const _B=C.Object({name:C.String(),url:C.String(),apiUrl:C.Optional(C.String())}),ZZ=C.Object({http:C.Array(C.String()),webSocket:C.Optional(C.Array(C.String()))}),MB=C.Unsafe(ZZ),JZ=C.Object({name:C.String(),symbol:C.String({minLength:2,maxLength:6}),decimals:C.Number()}),WZ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.EVM),chainId:C.Number(),nativeCurrency:JZ,rpcUrls:C.Intersect([C.Record(C.String(),MB),C.Object({default:MB})])}),optional:C.Object({blockExplorers:Ie.Nullable(C.Intersect([C.Record(C.String(),_B),C.Object({default:_B})]),{default:null}),sourceId:Ie.Nullable(C.Number(),{default:null}),testnet:C.Boolean({default:!1})})}),eJ=C.Union([C.Literal("preview"),C.Literal("preprod"),C.Literal("mainnet"),C.Literal("yaci")]),tJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.CARDANO),network:eJ}),optional:C.Object({})}),nJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.MINA),networkId:C.String()}),optional:C.Object({})}),gC=Ie.HexString0x({maxLength:66,minLength:66}),rJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.SUBSTRATE),genesisHash:gC}),optional:C.Object({})}),oJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.AVAIL),genesisHash:gC}),optional:C.Object({})}),iJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.MIDNIGHT),networkId:C.Number(),genesisHash:gC}),optional:C.Object({})});var ud={},PB;function aJ(){if(PB)return ud;PB=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.assertNever=e;function e(r,i){if(typeof i=="string")throw new Error(i);if(typeof i=="function")throw new Error(i(r));if(i)return r;throw new Error("Unhandled discriminated union member: ".concat(JSON.stringify(r)))}return ud.default=e,ud}aJ();const sJ=C.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),uJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.ALGORAND),genesisHash:sJ}),optional:C.Object({})});C.Object({name:C.String(),url:C.String(),apiUrl:C.Optional(C.String())});const lJ=C.Object({http:C.Array(C.String()),webSocket:C.Optional(C.Array(C.String()))});C.Unsafe(lJ);C.Object({name:C.String(),symbol:C.String({minLength:2,maxLength:6}),decimals:C.Number()});const cJ=new Fn({required:C.Object({name:C.String(),type:C.Literal(Zt.NTP),startTime:C.Number(),blockTimeMS:C.Number()}),optional:C.Object({servers:C.Array(C.String())})});Zt.NTP+"",Zt.EVM+"",Zt.CARDANO+"",Zt.MINA+"",Zt.AVAIL+"",Zt.ALGORAND+"",Zt.MIDNIGHT+"",Zt.SUBSTRATE+"";var mt=(e=>(e.NTP_MAIN="ntp-main",e.EVM_RPC_PARALLEL="evm-rpc-parallel",e.CARDANO_CARP_PARALLEL="cardano-carp-parallel",e.CARDANO_UTXORPC_PARALLEL="cardano-utxorpc-parallel",e.MINA_PARALLEL="mina-sql-parallel",e.AVAIL_PARALLEL="avail-rpc-parallel",e.MIDNIGHT_PARALLEL="midnight-graphql-parallel",e))(mt||{});Zt.NTP,Zt.EVM,Zt.CARDANO,Zt.CARDANO,Zt.MINA,Zt.AVAIL,Zt.MIDNIGHT;const Jr=new Fn({required:C.Object({name:C.String()}),optional:C.Object({})}),Ic=new Fn({required:C.Object({pollingInterval:Ie.IntervalMs()}),optional:C.Object({})}),la=new Fn({required:C.Object({startBlockHeight:Ie.BlockNumber()}),optional:C.Object({stopBlockHeight:Ie.Nullable(Ie.BlockNumber(),{default:null})})}),Gg=new Fn({required:C.Object({startSlot:Ie.AbsoluteSlotNumber()}),optional:C.Object({stopSlot:Ie.Nullable(Ie.AbsoluteSlotNumber(),{default:null})})});new Fn({required:C.Object({startTimestamp:Ie.TimestampMs()}),optional:C.Object({stopTimestamp:Ie.Nullable(Ie.TimestampMs(),{default:null})})});const fJ=new Fn({required:C.Object({abi:Ie.EvmAbiEvent}),optional:C.Object({})}),dJ=e=>C.Number({default:e}),hJ=e=>Ie.IntervalMs({default:e});function Ch(e,r,i={}){let a=e*r;return i.factor!=null&&(a*=i.factor),i.absolute!=null&&(a+=i.absolute),{confirmationDepth:dJ(e),delayMs:hJ(a)}}const Tc={internal:{},payload:{mainchain:C.Object({blockNumber:Ie.Nullable(Ie.BlockNumber()),timestamp:Ie.Nullable(Ie.TimestampMs())})}};function Mu(...e){return C.Object({internal:C.Object(Object.assign({},...e.map(r=>r.internal))),payload:C.Object(Object.assign({},...e.map(r=>r.payload)))})}const pJ=Jr.cloneMerge(Ic).cloneMerge(la).cloneMerge({required:C.Object({chainUri:C.String()}),optional:C.Object({stepSize:C.Number({default:1e3})})}),mJ={internal:{},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Evm.TxHash,transactionIndex:C.Number(),logIndex:C.Number(),contractAddress:Ie.Evm.Address}},gJ=pJ.cloneMerge({required:C.Object({type:C.Literal(mt.EVM_RPC_PARALLEL),confirmationDepth:C.Number()}),optional:C.Object({delayMs:Ie.IntervalMs({default:2*1e3})})}),yJ=Mu(Tc,mJ);C.Unsafe(C.String());const bJ=Ie.SerializeObjAsJson(),vJ=Jr.cloneMerge(Ic).cloneMerge(Gg).cloneMerge({required:C.Object({name:C.String(),carpUrl:C.String()}),optional:C.Object({stepSize:C.Number({default:1e3}),paginationLimit:C.Number({default:50})})}),AJ={internal:{cursor:bJ},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},xJ=20*1e3,EJ=5,wJ=vJ.cloneMerge({required:C.Object({type:C.Literal(mt.CARDANO_CARP_PARALLEL)}),optional:C.Object({...Ch(EJ,xJ,{factor:2,absolute:0})})}),SJ=Mu(Tc,AJ),CJ=Ie.Mina.TxHash,IJ=Jr.cloneMerge(Ic).cloneMerge(la).cloneMerge({required:C.Object({name:C.String(),archiveConnectionString:C.String()}),optional:C.Object({stepSize:C.Number({default:1e3}),paginationLimit:C.Number({default:50})})}),TJ={internal:{cursor:CJ},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Mina.TxHash,contractAddress:Ie.Mina.Address}},RJ=180*1e3,OJ=2,FJ=IJ.cloneMerge({required:C.Object({type:C.Literal(mt.MINA_PARALLEL)}),optional:C.Object({...Ch(OJ,RJ,{factor:2,absolute:0})})}),NJ=Mu(Tc,TJ),DJ=Jr.cloneMerge(Ic).cloneMerge(la).cloneMerge({required:C.Object({name:C.String(),rpc:C.String(),lightClient:C.String()}),optional:C.Object({blockGroupSize:C.Number({default:100}),stepSize:C.Number({default:1e3})})}),BJ={internal:{},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({blockNumber:Ie.BlockNumber()}),extrinsicIndex:C.Number()}},jB=20*1e3,UJ=3,_J=DJ.cloneMerge({required:C.Object({type:C.Literal(mt.AVAIL_PARALLEL)}),optional:C.Object({...Ch(UJ,jB,{absolute:jB})})}),MJ=Mu(Tc,BJ),PJ=Jr.cloneMerge(Ic).cloneMerge(la).cloneMerge({required:C.Object({indexer:C.String()}),optional:C.Object({indexerWS:Ie.Nullable(C.String(),{default:null}),stepSize:C.Number({default:1e3}),paginationLimit:C.Number({default:50})})}),jJ={internal:{},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Midnight.TxHash}},LJ=6*1e3,kJ=3,$J=PJ.cloneMerge({required:C.Object({type:C.Literal(mt.MIDNIGHT_PARALLEL)}),optional:C.Object({...Ch(kJ,LJ,{absolute:2*1e3})})}),qJ=Mu(Tc,jJ),HJ=Jr.cloneMerge(Gg).cloneMerge({required:C.Object({name:C.String(),rpcUrl:C.String()}),optional:C.Object({})}),zJ={internal:{},payload:{primitiveName:C.String(),caip2:Ie.Caip2,ownChain:C.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},VJ=20*1e3,GJ=5,QJ=HJ.cloneMerge({required:C.Object({type:C.Literal(mt.CARDANO_UTXORPC_PARALLEL)}),optional:C.Object({...Ch(GJ,VJ,{factor:2,absolute:0})})}),YJ=Mu(Tc,zJ);var yC=(e=>(e.EMULATED="emulated",e))(yC||{});const KJ=new Fn({required:C.Object({name:C.String(),blockTimeMs:Ie.IntervalMs(),type:C.Literal(yC.EMULATED)}),optional:C.Object({})});yC.EMULATED+"";const XJ=Jr.cloneMerge(Ic).cloneMerge(la).cloneMerge({required:C.Object({}),optional:C.Object({stepSize:C.Number({default:1e3})})}),ZJ={internal:{},payload:{ownChain:C.Object({blockNumber:Ie.BlockNumber()})}},JJ=XJ.cloneMerge({required:C.Object({type:C.Literal(mt.NTP_MAIN)}),optional:C.Object({})}),WJ=Mu(ZJ);mt.NTP_MAIN+"";mt.EVM_RPC_PARALLEL+"",mt.CARDANO_CARP_PARALLEL+"",mt.CARDANO_UTXORPC_PARALLEL+"",mt.MINA_PARALLEL+"",mt.AVAIL_PARALLEL+"",mt.MIDNIGHT_PARALLEL+"";const eW={[mt.NTP_MAIN]:WJ,[mt.EVM_RPC_PARALLEL]:yJ,[mt.CARDANO_CARP_PARALLEL]:SJ,[mt.CARDANO_UTXORPC_PARALLEL]:YJ,[mt.MINA_PARALLEL]:NJ,[mt.AVAIL_PARALLEL]:MJ,[mt.MIDNIGHT_PARALLEL]:qJ};function tW(e,r){return C.Intersect([r,C.Object({name:C.String(),type:C.Literal(e)})])}Object.entries(eW).map(([e,r])=>tW(e,r));var Ve=(e=>(e.EvmRpcGeneric="evm-rpc-generic",e.EvmRpcPaimaL2="evm-rpc-paima-l2",e.EvmRpcERC20="evm-rpc-erc20",e.EvmRpcERC721="evm-rpc-erc721",e.EvmRpcERC6551Registry="evm-rpc-erc6551-registry",e.EvmRpcERC1155="evm-rpc-erc1155",e.EvmRpcDynamicPrimitive="evm-rpc-dynamic-primitive",e.CardanoUtxorpcMatchTx="cardano-utxorpc-match-tx",e.CardanoCarpDelegation="carp-stake-delegation",e.CardanoCarpProjectedNFT="carp-projected-nft",e.CardanoCarpDelayedAsset="carp-delayed-asset",e.CardanoCarpTransfer="carp-transfer",e.CardanoCarpMintBurn="carp-mint-burn",e.MinaEventGeneric="mina-event-generic",e.MinaActionGeneric="mina-action-generic",e.MidnightContractState="midnight-contract-state",e.AvailPaimaL2="avail-paima-l2",e))(Ve||{});mt.AVAIL_PARALLEL;mt.CARDANO_CARP_PARALLEL,mt.CARDANO_CARP_PARALLEL,mt.CARDANO_CARP_PARALLEL,mt.CARDANO_CARP_PARALLEL,mt.CARDANO_CARP_PARALLEL;mt.CARDANO_UTXORPC_PARALLEL;mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL,mt.EVM_RPC_PARALLEL;mt.MINA_PARALLEL,mt.MINA_PARALLEL;mt.MIDNIGHT_PARALLEL;const Pu=Jr.cloneMerge(la).cloneMerge(fJ);Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcPaimaL2),contractAddress:Ie.Evm.Address}),optional:C.Object({})});Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcERC20),contractAddress:Ie.Evm.Address}),optional:C.Object({scheduledPrefix:C.String()})});const nW=Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcERC721),contractAddress:Ie.Evm.Address,scheduledPrefix:C.String(),burnScheduledPrefix:C.Optional(C.String())}),optional:C.Object({})});Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcERC1155),contractAddress:Ie.Evm.Address,scheduledPrefix:C.Optional(C.String()),burnScheduledPrefix:C.Optional(C.String())}),optional:C.Object({})});const rW=Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcGeneric),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,scheduledPrefix:C.String()}),optional:C.Object({})});Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcERC6551Registry),contractAddress:C.Optional(Ie.Evm.Address),implementation:C.Optional(Ie.Evm.Address),tokenContract:C.Optional(Ie.Evm.Address),tokenId:C.Optional(Ie.Uint256),salt:C.Optional(Ie.Uint256)}),optional:C.Object({})});Pu.cloneMerge({required:C.Object({type:C.Literal(Ve.EvmRpcDynamicPrimitive),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,targetConfig:C.Union([C.Omit(nW.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),C.Omit(rW.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:C.Object({contractAddress:Ie.Evm.Address})}),optional:C.Object({})});const Ih=Jr.cloneMerge(Gg);Ih.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoCarpDelegation),pools:C.Array(Ie.Cardano.PoolId),scheduledPrefix:C.String()}),optional:C.Object({})});Ih.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoCarpProjectedNFT),scheduledPrefix:C.Optional(C.String())}),optional:C.Object({})});Ih.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoCarpDelayedAsset),fingerprints:C.Optional(C.Array(Ie.Cardano.Cip14Fingerprint)),policyIds:C.Optional(C.Array(Ie.Cardano.PolicyId))}),optional:C.Object({})});Ih.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoCarpTransfer),credential:Ie.Cardano.Credential,scheduledPrefix:C.String()}),optional:C.Object({})});Ih.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoCarpMintBurn),policyIds:C.Array(Ie.Cardano.PolicyId),scheduledPrefix:C.String()}),optional:C.Object({})});const oW=Jr.cloneMerge(Gg);oW.cloneMerge({required:C.Object({type:C.Literal(Ve.CardanoUtxorpcMatchTx),scheduledPrefix:C.String()}),optional:C.Object({})});const hP=Jr.cloneMerge(la);hP.cloneMerge({required:C.Object({type:C.Literal(Ve.MinaEventGeneric),address:Ie.Mina.Address,scheduledPrefix:C.String(),name:C.String()}),optional:C.Object({})});hP.cloneMerge({required:C.Object({type:C.Literal(Ve.MinaActionGeneric),address:Ie.Mina.Address,scheduledPrefix:C.String(),name:C.String()}),optional:C.Object({})});const iW=Jr.cloneMerge(la);iW.cloneMerge({required:C.Object({type:C.Literal(Ve.MidnightContractState),contractAddress:Ie.Midnight.Address,scheduledPrefix:C.String()}),optional:C.Object({})});const aW=Jr.cloneMerge(la);aW.cloneMerge({required:C.Object({type:C.Literal(Ve.AvailPaimaL2),contractAddress:Ie.Avail.Address,appId:C.Number()}),optional:C.Object({})});var fn=(e=>(e.Transfer="Transfer",e.PaimaL2Event="PaimaGameInteraction",e.Deposit="deposit",e.Mint="mint",e.MintOrBurn="mint-or-burn",e.Event="event",e.Registry="registry",e.Delegate="delegate",e.Projection="projection",e))(fn||{});const sW=C.Object({inputData:Ie.UnknownFormat,suppliedValue:Ie.Uint256,inputNonce:Ie.HexString0x()});C.Object({primitive:C.Literal(Ve.AvailPaimaL2),payloadType:C.Literal(fn.Event),payload:sW});var su={},Yi={},Mm={exports:{}},E1,LB;function pP(){return LB||(LB=1,E1=function(r,i){return function(){for(var u=new Array(arguments.length),c=0;c<u.length;c++)u[c]=arguments[c];return r.apply(i,u)}}),E1}var w1,kB;function Yn(){if(kB)return w1;kB=1;var e=pP(),r=Object.prototype.toString,i=(function(B){return function(he){var ge=r.call(he);return B[ge]||(B[ge]=ge.slice(8,-1).toLowerCase())}})(Object.create(null));function a(B){return B=B.toLowerCase(),function(ge){return i(ge)===B}}function u(B){return Array.isArray(B)}function c(B){return typeof B>"u"}function f(B){return B!==null&&!c(B)&&B.constructor!==null&&!c(B.constructor)&&typeof B.constructor.isBuffer=="function"&&B.constructor.isBuffer(B)}var h=a("ArrayBuffer");function m(B){var he;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?he=ArrayBuffer.isView(B):he=B&&B.buffer&&h(B.buffer),he}function p(B){return typeof B=="string"}function A(B){return typeof B=="number"}function v(B){return B!==null&&typeof B=="object"}function g(B){if(i(B)!=="object")return!1;var he=Object.getPrototypeOf(B);return he===null||he===Object.prototype}var S=a("Date"),O=a("File"),U=a("Blob"),F=a("FileList");function N(B){return r.call(B)==="[object Function]"}function D(B){return v(B)&&N(B.pipe)}function M(B){var he="[object FormData]";return B&&(typeof FormData=="function"&&B instanceof FormData||r.call(B)===he||N(B.toString)&&B.toString()===he)}var re=a("URLSearchParams");function K(B){return B.trim?B.trim():B.replace(/^\s+|\s+$/g,"")}function oe(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function de(B,he){if(!(B===null||typeof B>"u"))if(typeof B!="object"&&(B=[B]),u(B))for(var ge=0,W=B.length;ge<W;ge++)he.call(null,B[ge],ge,B);else for(var _ in B)Object.prototype.hasOwnProperty.call(B,_)&&he.call(null,B[_],_,B)}function ue(){var B={};function he(_,ie){g(B[ie])&&g(_)?B[ie]=ue(B[ie],_):g(_)?B[ie]=ue({},_):u(_)?B[ie]=_.slice():B[ie]=_}for(var ge=0,W=arguments.length;ge<W;ge++)de(arguments[ge],he);return B}function T(B,he,ge){return de(he,function(_,ie){ge&&typeof _=="function"?B[ie]=e(_,ge):B[ie]=_}),B}function $(B){return B.charCodeAt(0)===65279&&(B=B.slice(1)),B}function z(B,he,ge,W){B.prototype=Object.create(he.prototype,W),B.prototype.constructor=B,ge&&Object.assign(B.prototype,ge)}function V(B,he,ge){var W,_,ie,le={};he=he||{};do{for(W=Object.getOwnPropertyNames(B),_=W.length;_-- >0;)ie=W[_],le[ie]||(he[ie]=B[ie],le[ie]=!0);B=Object.getPrototypeOf(B)}while(B&&(!ge||ge(B,he))&&B!==Object.prototype);return he}function X(B,he,ge){B=String(B),(ge===void 0||ge>B.length)&&(ge=B.length),ge-=he.length;var W=B.indexOf(he,ge);return W!==-1&&W===ge}function J(B){if(!B)return null;var he=B.length;if(c(he))return null;for(var ge=new Array(he);he-- >0;)ge[he]=B[he];return ge}var ve=(function(B){return function(he){return B&&he instanceof B}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return w1={isArray:u,isArrayBuffer:h,isBuffer:f,isFormData:M,isArrayBufferView:m,isString:p,isNumber:A,isObject:v,isPlainObject:g,isUndefined:c,isDate:S,isFile:O,isBlob:U,isFunction:N,isStream:D,isURLSearchParams:re,isStandardBrowserEnv:oe,forEach:de,merge:ue,extend:T,trim:K,stripBOM:$,inherits:z,toFlatObject:V,kindOf:i,kindOfTest:a,endsWith:X,toArray:J,isTypedArray:ve,isFileList:F},w1}var S1,$B;function mP(){if($B)return S1;$B=1;var e=Yn();function r(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return S1=function(a,u,c){if(!u)return a;var f;if(c)f=c(u);else if(e.isURLSearchParams(u))f=u.toString();else{var h=[];e.forEach(u,function(A,v){A===null||typeof A>"u"||(e.isArray(A)?v=v+"[]":A=[A],e.forEach(A,function(S){e.isDate(S)?S=S.toISOString():e.isObject(S)&&(S=JSON.stringify(S)),h.push(r(v)+"="+r(S))}))}),f=h.join("&")}if(f){var m=a.indexOf("#");m!==-1&&(a=a.slice(0,m)),a+=(a.indexOf("?")===-1?"?":"&")+f}return a},S1}var C1,qB;function uW(){if(qB)return C1;qB=1;var e=Yn();function r(){this.handlers=[]}return r.prototype.use=function(a,u,c){return this.handlers.push({fulfilled:a,rejected:u,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},r.prototype.forEach=function(a){e.forEach(this.handlers,function(c){c!==null&&a(c)})},C1=r,C1}var I1,HB;function lW(){if(HB)return I1;HB=1;var e=Yn();return I1=function(i,a){e.forEach(i,function(c,f){f!==a&&f.toUpperCase()===a.toUpperCase()&&(i[a]=c,delete i[f])})},I1}var T1,zB;function Rc(){if(zB)return T1;zB=1;var e=Yn();function r(u,c,f,h,m){Error.call(this),this.message=u,this.name="AxiosError",c&&(this.code=c),f&&(this.config=f),h&&(this.request=h),m&&(this.response=m)}e.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,a={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(u){a[u]={value:u}}),Object.defineProperties(r,a),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=function(u,c,f,h,m,p){var A=Object.create(i);return e.toFlatObject(u,A,function(g){return g!==Error.prototype}),r.call(A,u.message,c,f,h,m),A.name=u.name,p&&Object.assign(A,p),A},T1=r,T1}var R1,VB;function gP(){return VB||(VB=1,R1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),R1}var O1,GB;function yP(){if(GB)return O1;GB=1;var e=Yn();function r(i,a){a=a||new FormData;var u=[];function c(h){return h===null?"":e.isDate(h)?h.toISOString():e.isArrayBuffer(h)||e.isTypedArray(h)?typeof Blob=="function"?new Blob([h]):un.Buffer.from(h):h}function f(h,m){if(e.isPlainObject(h)||e.isArray(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+m);u.push(h),e.forEach(h,function(A,v){if(!e.isUndefined(A)){var g=m?m+"."+v:v,S;if(A&&!m&&typeof A=="object"){if(e.endsWith(v,"{}"))A=JSON.stringify(A);else if(e.endsWith(v,"[]")&&(S=e.toArray(A))){S.forEach(function(O){!e.isUndefined(O)&&a.append(g,c(O))});return}}f(A,g)}}),u.pop()}else a.append(m,c(h))}return f(i),a}return O1=r,O1}var F1,QB;function cW(){if(QB)return F1;QB=1;var e=Rc();return F1=function(i,a,u){var c=u.config.validateStatus;!u.status||!c||c(u.status)?i(u):a(new e("Request failed with status code "+u.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))},F1}var N1,YB;function fW(){if(YB)return N1;YB=1;var e=Yn();return N1=e.isStandardBrowserEnv()?(function(){return{write:function(a,u,c,f,h,m){var p=[];p.push(a+"="+encodeURIComponent(u)),e.isNumber(c)&&p.push("expires="+new Date(c).toGMTString()),e.isString(f)&&p.push("path="+f),e.isString(h)&&p.push("domain="+h),m===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(a){var u=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),N1}var D1,KB;function dW(){return KB||(KB=1,D1=function(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}),D1}var B1,XB;function hW(){return XB||(XB=1,B1=function(r,i){return i?r.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):r}),B1}var U1,ZB;function bP(){if(ZB)return U1;ZB=1;var e=dW(),r=hW();return U1=function(a,u){return a&&!e(u)?r(a,u):u},U1}var _1,JB;function pW(){if(JB)return _1;JB=1;var e=Yn(),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return _1=function(a){var u={},c,f,h;return a&&e.forEach(a.split(`
|
|
370
|
+
`),function(p){if(h=p.indexOf(":"),c=e.trim(p.substr(0,h)).toLowerCase(),f=e.trim(p.substr(h+1)),c){if(u[c]&&r.indexOf(c)>=0)return;c==="set-cookie"?u[c]=(u[c]?u[c]:[]).concat([f]):u[c]=u[c]?u[c]+", "+f:f}}),u},_1}var M1,WB;function mW(){if(WB)return M1;WB=1;var e=Yn();return M1=e.isStandardBrowserEnv()?(function(){var i=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),u;function c(f){var h=f;return i&&(a.setAttribute("href",h),h=a.href),a.setAttribute("href",h),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return u=c(window.location.href),function(h){var m=e.isString(h)?c(h):h;return m.protocol===u.protocol&&m.host===u.host}})():(function(){return function(){return!0}})(),M1}var P1,eU;function Qg(){if(eU)return P1;eU=1;var e=Rc(),r=Yn();function i(a){e.call(this,a??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return r.inherits(i,e,{__CANCEL__:!0}),P1=i,P1}var j1,tU;function gW(){return tU||(tU=1,j1=function(r){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return i&&i[1]||""}),j1}var L1,nU;function rU(){if(nU)return L1;nU=1;var e=Yn(),r=cW(),i=fW(),a=mP(),u=bP(),c=pW(),f=mW(),h=gP(),m=Rc(),p=Qg(),A=gW();return L1=function(g){return new Promise(function(O,U){var F=g.data,N=g.headers,D=g.responseType,M;function re(){g.cancelToken&&g.cancelToken.unsubscribe(M),g.signal&&g.signal.removeEventListener("abort",M)}e.isFormData(F)&&e.isStandardBrowserEnv()&&delete N["Content-Type"];var K=new XMLHttpRequest;if(g.auth){var oe=g.auth.username||"",de=g.auth.password?unescape(encodeURIComponent(g.auth.password)):"";N.Authorization="Basic "+btoa(oe+":"+de)}var ue=u(g.baseURL,g.url);K.open(g.method.toUpperCase(),a(ue,g.params,g.paramsSerializer),!0),K.timeout=g.timeout;function T(){if(K){var V="getAllResponseHeaders"in K?c(K.getAllResponseHeaders()):null,X=!D||D==="text"||D==="json"?K.responseText:K.response,J={data:X,status:K.status,statusText:K.statusText,headers:V,config:g,request:K};r(function(B){O(B),re()},function(B){U(B),re()},J),K=null}}if("onloadend"in K?K.onloadend=T:K.onreadystatechange=function(){!K||K.readyState!==4||K.status===0&&!(K.responseURL&&K.responseURL.indexOf("file:")===0)||setTimeout(T)},K.onabort=function(){K&&(U(new m("Request aborted",m.ECONNABORTED,g,K)),K=null)},K.onerror=function(){U(new m("Network Error",m.ERR_NETWORK,g,K,K)),K=null},K.ontimeout=function(){var X=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded",J=g.transitional||h;g.timeoutErrorMessage&&(X=g.timeoutErrorMessage),U(new m(X,J.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,g,K)),K=null},e.isStandardBrowserEnv()){var $=(g.withCredentials||f(ue))&&g.xsrfCookieName?i.read(g.xsrfCookieName):void 0;$&&(N[g.xsrfHeaderName]=$)}"setRequestHeader"in K&&e.forEach(N,function(X,J){typeof F>"u"&&J.toLowerCase()==="content-type"?delete N[J]:K.setRequestHeader(J,X)}),e.isUndefined(g.withCredentials)||(K.withCredentials=!!g.withCredentials),D&&D!=="json"&&(K.responseType=g.responseType),typeof g.onDownloadProgress=="function"&&K.addEventListener("progress",g.onDownloadProgress),typeof g.onUploadProgress=="function"&&K.upload&&K.upload.addEventListener("progress",g.onUploadProgress),(g.cancelToken||g.signal)&&(M=function(V){K&&(U(!V||V&&V.type?new p:V),K.abort(),K=null)},g.cancelToken&&g.cancelToken.subscribe(M),g.signal&&(g.signal.aborted?M():g.signal.addEventListener("abort",M))),F||(F=null);var z=A(ue);if(z&&["http","https","file"].indexOf(z)===-1){U(new m("Unsupported protocol "+z+":",m.ERR_BAD_REQUEST,g));return}K.send(F)})},L1}var k1,oU;function yW(){return oU||(oU=1,k1=null),k1}var $1,iU;function bC(){if(iU)return $1;iU=1;var e=Yn(),r=lW(),i=Rc(),a=gP(),u=yP(),c={"Content-Type":"application/x-www-form-urlencoded"};function f(A,v){!e.isUndefined(A)&&e.isUndefined(A["Content-Type"])&&(A["Content-Type"]=v)}function h(){var A;return(typeof XMLHttpRequest<"u"||typeof It<"u"&&Object.prototype.toString.call(It)==="[object process]")&&(A=rU()),A}function m(A,v,g){if(e.isString(A))try{return(v||JSON.parse)(A),e.trim(A)}catch(S){if(S.name!=="SyntaxError")throw S}return(g||JSON.stringify)(A)}var p={transitional:a,adapter:h(),transformRequest:[function(v,g){if(r(g,"Accept"),r(g,"Content-Type"),e.isFormData(v)||e.isArrayBuffer(v)||e.isBuffer(v)||e.isStream(v)||e.isFile(v)||e.isBlob(v))return v;if(e.isArrayBufferView(v))return v.buffer;if(e.isURLSearchParams(v))return f(g,"application/x-www-form-urlencoded;charset=utf-8"),v.toString();var S=e.isObject(v),O=g&&g["Content-Type"],U;if((U=e.isFileList(v))||S&&O==="multipart/form-data"){var F=this.env&&this.env.FormData;return u(U?{"files[]":v}:v,F&&new F)}else if(S||O==="application/json")return f(g,"application/json"),m(v);return v}],transformResponse:[function(v){var g=this.transitional||p.transitional,S=g&&g.silentJSONParsing,O=g&&g.forcedJSONParsing,U=!S&&this.responseType==="json";if(U||O&&e.isString(v)&&v.length)try{return JSON.parse(v)}catch(F){if(U)throw F.name==="SyntaxError"?i.from(F,i.ERR_BAD_RESPONSE,this,null,this.response):F}return v}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yW()},validateStatus:function(v){return v>=200&&v<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(v){p.headers[v]={}}),e.forEach(["post","put","patch"],function(v){p.headers[v]=e.merge(c)}),$1=p,$1}var q1,aU;function bW(){if(aU)return q1;aU=1;var e=Yn(),r=bC();return q1=function(a,u,c){var f=this||r;return e.forEach(c,function(m){a=m.call(f,a,u)}),a},q1}var H1,sU;function vP(){return sU||(sU=1,H1=function(r){return!!(r&&r.__CANCEL__)}),H1}var z1,uU;function vW(){if(uU)return z1;uU=1;var e=Yn(),r=bW(),i=vP(),a=bC(),u=Qg();function c(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new u}return z1=function(h){c(h),h.headers=h.headers||{},h.data=r.call(h,h.data,h.headers,h.transformRequest),h.headers=e.merge(h.headers.common||{},h.headers[h.method]||{},h.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(A){delete h.headers[A]});var m=h.adapter||a.adapter;return m(h).then(function(A){return c(h),A.data=r.call(h,A.data,A.headers,h.transformResponse),A},function(A){return i(A)||(c(h),A&&A.response&&(A.response.data=r.call(h,A.response.data,A.response.headers,h.transformResponse))),Promise.reject(A)})},z1}var V1,lU;function AP(){if(lU)return V1;lU=1;var e=Yn();return V1=function(i,a){a=a||{};var u={};function c(v,g){return e.isPlainObject(v)&&e.isPlainObject(g)?e.merge(v,g):e.isPlainObject(g)?e.merge({},g):e.isArray(g)?g.slice():g}function f(v){if(e.isUndefined(a[v])){if(!e.isUndefined(i[v]))return c(void 0,i[v])}else return c(i[v],a[v])}function h(v){if(!e.isUndefined(a[v]))return c(void 0,a[v])}function m(v){if(e.isUndefined(a[v])){if(!e.isUndefined(i[v]))return c(void 0,i[v])}else return c(void 0,a[v])}function p(v){if(v in a)return c(i[v],a[v]);if(v in i)return c(void 0,i[v])}var A={url:h,method:h,data:h,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:p};return e.forEach(Object.keys(i).concat(Object.keys(a)),function(g){var S=A[g]||f,O=S(g);e.isUndefined(O)&&S!==p||(u[g]=O)}),u},V1}var G1,cU;function xP(){return cU||(cU=1,G1={version:"0.27.2"}),G1}var Q1,fU;function AW(){if(fU)return Q1;fU=1;var e=xP().version,r=Rc(),i={};["object","boolean","number","function","string","symbol"].forEach(function(c,f){i[c]=function(m){return typeof m===c||"a"+(f<1?"n ":" ")+c}});var a={};i.transitional=function(f,h,m){function p(A,v){return"[Axios v"+e+"] Transitional option '"+A+"'"+v+(m?". "+m:"")}return function(A,v,g){if(f===!1)throw new r(p(v," has been removed"+(h?" in "+h:"")),r.ERR_DEPRECATED);return h&&!a[v]&&(a[v]=!0,console.warn(p(v," has been deprecated since v"+h+" and will be removed in the near future"))),f?f(A,v,g):!0}};function u(c,f,h){if(typeof c!="object")throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var m=Object.keys(c),p=m.length;p-- >0;){var A=m[p],v=f[A];if(v){var g=c[A],S=g===void 0||v(g,A,c);if(S!==!0)throw new r("option "+A+" must be "+S,r.ERR_BAD_OPTION_VALUE);continue}if(h!==!0)throw new r("Unknown option "+A,r.ERR_BAD_OPTION)}}return Q1={assertOptions:u,validators:i},Q1}var Y1,dU;function xW(){if(dU)return Y1;dU=1;var e=Yn(),r=mP(),i=uW(),a=vW(),u=AP(),c=bP(),f=AW(),h=f.validators;function m(p){this.defaults=p,this.interceptors={request:new i,response:new i}}return m.prototype.request=function(A,v){typeof A=="string"?(v=v||{},v.url=A):v=A||{},v=u(this.defaults,v),v.method?v.method=v.method.toLowerCase():this.defaults.method?v.method=this.defaults.method.toLowerCase():v.method="get";var g=v.transitional;g!==void 0&&f.assertOptions(g,{silentJSONParsing:h.transitional(h.boolean),forcedJSONParsing:h.transitional(h.boolean),clarifyTimeoutError:h.transitional(h.boolean)},!1);var S=[],O=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(v)===!1||(O=O&&oe.synchronous,S.unshift(oe.fulfilled,oe.rejected))});var U=[];this.interceptors.response.forEach(function(oe){U.push(oe.fulfilled,oe.rejected)});var F;if(!O){var N=[a,void 0];for(Array.prototype.unshift.apply(N,S),N=N.concat(U),F=Promise.resolve(v);N.length;)F=F.then(N.shift(),N.shift());return F}for(var D=v;S.length;){var M=S.shift(),re=S.shift();try{D=M(D)}catch(K){re(K);break}}try{F=a(D)}catch(K){return Promise.reject(K)}for(;U.length;)F=F.then(U.shift(),U.shift());return F},m.prototype.getUri=function(A){A=u(this.defaults,A);var v=c(A.baseURL,A.url);return r(v,A.params,A.paramsSerializer)},e.forEach(["delete","get","head","options"],function(A){m.prototype[A]=function(v,g){return this.request(u(g||{},{method:A,url:v,data:(g||{}).data}))}}),e.forEach(["post","put","patch"],function(A){function v(g){return function(O,U,F){return this.request(u(F||{},{method:A,headers:g?{"Content-Type":"multipart/form-data"}:{},url:O,data:U}))}}m.prototype[A]=v(),m.prototype[A+"Form"]=v(!0)}),Y1=m,Y1}var K1,hU;function EW(){if(hU)return K1;hU=1;var e=Qg();function r(i){if(typeof i!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var u=this;this.promise.then(function(c){if(u._listeners){var f,h=u._listeners.length;for(f=0;f<h;f++)u._listeners[f](c);u._listeners=null}}),this.promise.then=function(c){var f,h=new Promise(function(m){u.subscribe(m),f=m}).then(c);return h.cancel=function(){u.unsubscribe(f)},h},i(function(f){u.reason||(u.reason=new e(f),a(u.reason))})}return r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},r.prototype.unsubscribe=function(a){if(this._listeners){var u=this._listeners.indexOf(a);u!==-1&&this._listeners.splice(u,1)}},r.source=function(){var a,u=new r(function(f){a=f});return{token:u,cancel:a}},K1=r,K1}var X1,pU;function wW(){return pU||(pU=1,X1=function(r){return function(a){return r.apply(null,a)}}),X1}var Z1,mU;function SW(){if(mU)return Z1;mU=1;var e=Yn();return Z1=function(i){return e.isObject(i)&&i.isAxiosError===!0},Z1}var gU;function CW(){if(gU)return Mm.exports;gU=1;var e=Yn(),r=pP(),i=xW(),a=AP(),u=bC();function c(h){var m=new i(h),p=r(i.prototype.request,m);return e.extend(p,i.prototype,m),e.extend(p,m),p.create=function(v){return c(a(h,v))},p}var f=c(u);return f.Axios=i,f.CanceledError=Qg(),f.CancelToken=EW(),f.isCancel=vP(),f.VERSION=xP().version,f.toFormData=yP(),f.AxiosError=Rc(),f.Cancel=f.CanceledError,f.all=function(m){return Promise.all(m)},f.spread=wW(),f.isAxiosError=SW(),Mm.exports=f,Mm.exports.default=f,Mm.exports}var J1,yU;function IW(){return yU||(yU=1,J1=CW()),J1}var bU;function EP(){if(bU)return Yi;bU=1;var e=Yi&&Yi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.getErrorResponse=Yi.query=void 0;const r=e(IW());async function i(u,c,f){return(await r.default.post(`${u}/${c}`,f)).data}Yi.query=i;function a(u){if(u.response==null)throw new Error("Unexpected null response");return u.response}return Yi.getErrorResponse=a,Yi}var dr={},W1={},vU;function wP(){return vU||(vU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Routes=void 0,(function(r){r.transactionHistory="transaction/history",r.transactionOutput="transaction/output",r.addressUsed="address/used",r.credentialAddress="credential/address",r.blockLatest="block/latest",r.metadataNft="metadata/nft",r.dexMeanPrice="dex/mean-price",r.dexSwap="dex/swap",r.dexLastPrice="dex/last-price",r.delegationForAddress="delegation/address",r.delegationForPool="delegation/pool",r.projectedNftEventsRange="projected-nft/range",r.assetUtxos="asset/utxos",r.mintBurnHistory="asset/mint-burn-history",r.drepDelegationForAddress="delegation/drep/address",r.governanceVotesForCredential="governance/credential/votes",r.governanceCredentialVotesByGovActionId="governance/credential/votesByGovId"})(e.Routes||(e.Routes={}))})(W1)),W1}var ex,AU;function TW(){if(AU)return ex;AU=1;function e(r,i,a){var u=-1,c=r.length;i<0&&(i=-i>c?0:c+i),a=a>c?c:a,a<0&&(a+=c),c=i>a?0:a-i>>>0,i>>>=0;for(var f=Array(c);++u<c;)f[u]=r[u+i];return f}return ex=e,ex}var tx,xU;function Yg(){if(xU)return tx;xU=1;function e(r,i){return r===i||r!==r&&i!==i}return tx=e,tx}var nx,EU;function SP(){if(EU)return nx;EU=1;var e=typeof Zi=="object"&&Zi&&Zi.Object===Object&&Zi;return nx=e,nx}var rx,wU;function Oc(){if(wU)return rx;wU=1;var e=SP(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=e||r||Function("return this")();return rx=i,rx}var ox,SU;function CP(){if(SU)return ox;SU=1;var e=Oc(),r=e.Symbol;return ox=r,ox}var ix,CU;function RW(){if(CU)return ix;CU=1;var e=CP(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,u=e?e.toStringTag:void 0;function c(f){var h=i.call(f,u),m=f[u];try{f[u]=void 0;var p=!0}catch{}var A=a.call(f);return p&&(h?f[u]=m:delete f[u]),A}return ix=c,ix}var ax,IU;function OW(){if(IU)return ax;IU=1;var e=Object.prototype,r=e.toString;function i(a){return r.call(a)}return ax=i,ax}var sx,TU;function Th(){if(TU)return sx;TU=1;var e=CP(),r=RW(),i=OW(),a="[object Null]",u="[object Undefined]",c=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?u:a:c&&c in Object(h)?r(h):i(h)}return sx=f,sx}var ux,RU;function fs(){if(RU)return ux;RU=1;function e(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return ux=e,ux}var lx,OU;function vC(){if(OU)return lx;OU=1;var e=Th(),r=fs(),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";function f(h){if(!r(h))return!1;var m=e(h);return m==a||m==u||m==i||m==c}return lx=f,lx}var cx,FU;function IP(){if(FU)return cx;FU=1;var e=9007199254740991;function r(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return cx=r,cx}var fx,NU;function AC(){if(NU)return fx;NU=1;var e=vC(),r=IP();function i(a){return a!=null&&r(a.length)&&!e(a)}return fx=i,fx}var dx,DU;function TP(){if(DU)return dx;DU=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(a,u){var c=typeof a;return u=u??e,!!u&&(c=="number"||c!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<u}return dx=i,dx}var hx,BU;function RP(){if(BU)return hx;BU=1;var e=Yg(),r=AC(),i=TP(),a=fs();function u(c,f,h){if(!a(h))return!1;var m=typeof f;return(m=="number"?r(h)&&i(f,h.length):m=="string"&&f in h)?e(h[f],c):!1}return hx=u,hx}var px,UU;function FW(){if(UU)return px;UU=1;var e=/\s/;function r(i){for(var a=i.length;a--&&e.test(i.charAt(a)););return a}return px=r,px}var mx,_U;function NW(){if(_U)return mx;_U=1;var e=FW(),r=/^\s+/;function i(a){return a&&a.slice(0,e(a)+1).replace(r,"")}return mx=i,mx}var gx,MU;function Fc(){if(MU)return gx;MU=1;function e(r){return r!=null&&typeof r=="object"}return gx=e,gx}var yx,PU;function DW(){if(PU)return yx;PU=1;var e=Th(),r=Fc(),i="[object Symbol]";function a(u){return typeof u=="symbol"||r(u)&&e(u)==i}return yx=a,yx}var bx,jU;function BW(){if(jU)return bx;jU=1;var e=NW(),r=fs(),i=DW(),a=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(i(p))return a;if(r(p)){var A=typeof p.valueOf=="function"?p.valueOf():p;p=r(A)?A+"":A}if(typeof p!="string")return p===0?p:+p;p=e(p);var v=c.test(p);return v||f.test(p)?h(p.slice(2),v?2:8):u.test(p)?a:+p}return bx=m,bx}var vx,LU;function UW(){if(LU)return vx;LU=1;var e=BW(),r=1/0,i=17976931348623157e292;function a(u){if(!u)return u===0?u:0;if(u=e(u),u===r||u===-r){var c=u<0?-1:1;return c*i}return u===u?u:0}return vx=a,vx}var Ax,kU;function _W(){if(kU)return Ax;kU=1;var e=UW();function r(i){var a=e(i),u=a%1;return a===a?u?a-u:a:0}return Ax=r,Ax}var xx,$U;function MW(){if($U)return xx;$U=1;var e=TW(),r=RP(),i=_W(),a=Math.ceil,u=Math.max;function c(f,h,m){(m?r(f,h,m):h===void 0)?h=1:h=u(i(h),0);var p=f==null?0:f.length;if(!p||h<1)return[];for(var A=0,v=0,g=Array(a(p/h));A<p;)g[v++]=e(f,A,A+=h);return g}return xx=c,xx}var Vt={},qU;function OP(){return qU||(qU=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT=Vt.GOVERNANCE_VOTES_LIMIT=Vt.MINT_BURN_HISTORY_LIMIT=Vt.ASSET_UTXOS_LIMIT=Vt.POOL_DELEGATION_LIMIT=Vt.PROJECTED_NFT_LIMIT=Vt.DEX_PRICE_LIMIT=Vt.BLOCK_LIMIT=Vt.CREDENTIAL_LIMIT=Vt.ASSET_LIMIT=Vt.UTXO_LIMIT=Vt.ADDRESS_LIMIT=void 0,Vt.ADDRESS_LIMIT={REQUEST:100,RESPONSE:1e3},Vt.UTXO_LIMIT={REQUEST:100,RESPONSE:1e3},Vt.ASSET_LIMIT={REQUEST:1e3,RESPONSE:1e3},Vt.CREDENTIAL_LIMIT={REQUEST:50,RESPONSE:50},Vt.BLOCK_LIMIT={OFFSET:21600},Vt.DEX_PRICE_LIMIT={REQUEST_ADDRESSES:100,REQUEST_ASSET_PAIRS:100,RESPONSE:1e3},Vt.PROJECTED_NFT_LIMIT={DEFAULT_PAGE_SIZE:50},Vt.POOL_DELEGATION_LIMIT={POOLS:50,DEFAULT_PAGE_SIZE:50},Vt.ASSET_UTXOS_LIMIT={ASSETS:50,DEFAULT_PAGE_SIZE:50},Vt.MINT_BURN_HISTORY_LIMIT={DEFAULT_PAGE_SIZE:50},Vt.GOVERNANCE_VOTES_LIMIT={DEFAULT_PAGE_SIZE:50},Vt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT={MAX_ACTION_IDS:50}),Vt}var Ex,HU;function PW(){if(HU)return Ex;HU=1;function e(){this.__data__=[],this.size=0}return Ex=e,Ex}var wx,zU;function Kg(){if(zU)return wx;zU=1;var e=Yg();function r(i,a){for(var u=i.length;u--;)if(e(i[u][0],a))return u;return-1}return wx=r,wx}var Sx,VU;function jW(){if(VU)return Sx;VU=1;var e=Kg(),r=Array.prototype,i=r.splice;function a(u){var c=this.__data__,f=e(c,u);if(f<0)return!1;var h=c.length-1;return f==h?c.pop():i.call(c,f,1),--this.size,!0}return Sx=a,Sx}var Cx,GU;function LW(){if(GU)return Cx;GU=1;var e=Kg();function r(i){var a=this.__data__,u=e(a,i);return u<0?void 0:a[u][1]}return Cx=r,Cx}var Ix,QU;function kW(){if(QU)return Ix;QU=1;var e=Kg();function r(i){return e(this.__data__,i)>-1}return Ix=r,Ix}var Tx,YU;function $W(){if(YU)return Tx;YU=1;var e=Kg();function r(i,a){var u=this.__data__,c=e(u,i);return c<0?(++this.size,u.push([i,a])):u[c][1]=a,this}return Tx=r,Tx}var Rx,KU;function Xg(){if(KU)return Rx;KU=1;var e=PW(),r=jW(),i=LW(),a=kW(),u=$W();function c(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,Rx=c,Rx}var Ox,XU;function qW(){if(XU)return Ox;XU=1;var e=Xg();function r(){this.__data__=new e,this.size=0}return Ox=r,Ox}var Fx,ZU;function HW(){if(ZU)return Fx;ZU=1;function e(r){var i=this.__data__,a=i.delete(r);return this.size=i.size,a}return Fx=e,Fx}var Nx,JU;function zW(){if(JU)return Nx;JU=1;function e(r){return this.__data__.get(r)}return Nx=e,Nx}var Dx,WU;function VW(){if(WU)return Dx;WU=1;function e(r){return this.__data__.has(r)}return Dx=e,Dx}var Bx,e_;function GW(){if(e_)return Bx;e_=1;var e=Oc(),r=e["__core-js_shared__"];return Bx=r,Bx}var Ux,t_;function QW(){if(t_)return Ux;t_=1;var e=GW(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function i(a){return!!r&&r in a}return Ux=i,Ux}var _x,n_;function YW(){if(n_)return _x;n_=1;var e=Function.prototype,r=e.toString;function i(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return _x=i,_x}var Mx,r_;function KW(){if(r_)return Mx;r_=1;var e=vC(),r=QW(),i=fs(),a=YW(),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,h=Object.prototype,m=f.toString,p=h.hasOwnProperty,A=RegExp("^"+m.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(g){if(!i(g)||r(g))return!1;var S=e(g)?A:c;return S.test(a(g))}return Mx=v,Mx}var Px,o_;function XW(){if(o_)return Px;o_=1;function e(r,i){return r==null?void 0:r[i]}return Px=e,Px}var jx,i_;function xC(){if(i_)return jx;i_=1;var e=KW(),r=XW();function i(a,u){var c=r(a,u);return e(c)?c:void 0}return jx=i,jx}var Lx,a_;function FP(){if(a_)return Lx;a_=1;var e=xC(),r=Oc(),i=e(r,"Map");return Lx=i,Lx}var kx,s_;function Zg(){if(s_)return kx;s_=1;var e=xC(),r=e(Object,"create");return kx=r,kx}var $x,u_;function ZW(){if(u_)return $x;u_=1;var e=Zg();function r(){this.__data__=e?e(null):{},this.size=0}return $x=r,$x}var qx,l_;function JW(){if(l_)return qx;l_=1;function e(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}return qx=e,qx}var Hx,c_;function WW(){if(c_)return Hx;c_=1;var e=Zg(),r="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function u(c){var f=this.__data__;if(e){var h=f[c];return h===r?void 0:h}return a.call(f,c)?f[c]:void 0}return Hx=u,Hx}var zx,f_;function eee(){if(f_)return zx;f_=1;var e=Zg(),r=Object.prototype,i=r.hasOwnProperty;function a(u){var c=this.__data__;return e?c[u]!==void 0:i.call(c,u)}return zx=a,zx}var Vx,d_;function tee(){if(d_)return Vx;d_=1;var e=Zg(),r="__lodash_hash_undefined__";function i(a,u){var c=this.__data__;return this.size+=this.has(a)?0:1,c[a]=e&&u===void 0?r:u,this}return Vx=i,Vx}var Gx,h_;function nee(){if(h_)return Gx;h_=1;var e=ZW(),r=JW(),i=WW(),a=eee(),u=tee();function c(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,Gx=c,Gx}var Qx,p_;function ree(){if(p_)return Qx;p_=1;var e=nee(),r=Xg(),i=FP();function a(){this.size=0,this.__data__={hash:new e,map:new(i||r),string:new e}}return Qx=a,Qx}var Yx,m_;function oee(){if(m_)return Yx;m_=1;function e(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}return Yx=e,Yx}var Kx,g_;function Jg(){if(g_)return Kx;g_=1;var e=oee();function r(i,a){var u=i.__data__;return e(a)?u[typeof a=="string"?"string":"hash"]:u.map}return Kx=r,Kx}var Xx,y_;function iee(){if(y_)return Xx;y_=1;var e=Jg();function r(i){var a=e(this,i).delete(i);return this.size-=a?1:0,a}return Xx=r,Xx}var Zx,b_;function aee(){if(b_)return Zx;b_=1;var e=Jg();function r(i){return e(this,i).get(i)}return Zx=r,Zx}var Jx,v_;function see(){if(v_)return Jx;v_=1;var e=Jg();function r(i){return e(this,i).has(i)}return Jx=r,Jx}var Wx,A_;function uee(){if(A_)return Wx;A_=1;var e=Jg();function r(i,a){var u=e(this,i),c=u.size;return u.set(i,a),this.size+=u.size==c?0:1,this}return Wx=r,Wx}var eE,x_;function lee(){if(x_)return eE;x_=1;var e=ree(),r=iee(),i=aee(),a=see(),u=uee();function c(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,eE=c,eE}var tE,E_;function cee(){if(E_)return tE;E_=1;var e=Xg(),r=FP(),i=lee(),a=200;function u(c,f){var h=this.__data__;if(h instanceof e){var m=h.__data__;if(!r||m.length<a-1)return m.push([c,f]),this.size=++h.size,this;h=this.__data__=new i(m)}return h.set(c,f),this.size=h.size,this}return tE=u,tE}var nE,w_;function fee(){if(w_)return nE;w_=1;var e=Xg(),r=qW(),i=HW(),a=zW(),u=VW(),c=cee();function f(h){var m=this.__data__=new e(h);this.size=m.size}return f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=c,nE=f,nE}var rE,S_;function NP(){if(S_)return rE;S_=1;var e=xC(),r=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return rE=r,rE}var oE,C_;function EC(){if(C_)return oE;C_=1;var e=NP();function r(i,a,u){a=="__proto__"&&e?e(i,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[a]=u}return oE=r,oE}var iE,I_;function DP(){if(I_)return iE;I_=1;var e=EC(),r=Yg();function i(a,u,c){(c!==void 0&&!r(a[u],c)||c===void 0&&!(u in a))&&e(a,u,c)}return iE=i,iE}var aE,T_;function dee(){if(T_)return aE;T_=1;function e(r){return function(i,a,u){for(var c=-1,f=Object(i),h=u(i),m=h.length;m--;){var p=h[r?m:++c];if(a(f[p],p,f)===!1)break}return i}}return aE=e,aE}var sE,R_;function hee(){if(R_)return sE;R_=1;var e=dee(),r=e();return sE=r,sE}var md={exports:{}};md.exports;var O_;function pee(){return O_||(O_=1,(function(e,r){var i=Oc(),a=r&&!r.nodeType&&r,u=a&&!0&&e&&!e.nodeType&&e,c=u&&u.exports===a,f=c?i.Buffer:void 0,h=f?f.allocUnsafe:void 0;function m(p,A){if(A)return p.slice();var v=p.length,g=h?h(v):new p.constructor(v);return p.copy(g),g}e.exports=m})(md,md.exports)),md.exports}var uE,F_;function mee(){if(F_)return uE;F_=1;var e=Oc(),r=e.Uint8Array;return uE=r,uE}var lE,N_;function gee(){if(N_)return lE;N_=1;var e=mee();function r(i){var a=new i.constructor(i.byteLength);return new e(a).set(new e(i)),a}return lE=r,lE}var cE,D_;function yee(){if(D_)return cE;D_=1;var e=gee();function r(i,a){var u=a?e(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}return cE=r,cE}var fE,B_;function bee(){if(B_)return fE;B_=1;function e(r,i){var a=-1,u=r.length;for(i||(i=Array(u));++a<u;)i[a]=r[a];return i}return fE=e,fE}var dE,U_;function vee(){if(U_)return dE;U_=1;var e=fs(),r=Object.create,i=(function(){function a(){}return function(u){if(!e(u))return{};if(r)return r(u);a.prototype=u;var c=new a;return a.prototype=void 0,c}})();return dE=i,dE}var hE,__;function Aee(){if(__)return hE;__=1;function e(r,i){return function(a){return r(i(a))}}return hE=e,hE}var pE,M_;function BP(){if(M_)return pE;M_=1;var e=Aee(),r=e(Object.getPrototypeOf,Object);return pE=r,pE}var mE,P_;function UP(){if(P_)return mE;P_=1;var e=Object.prototype;function r(i){var a=i&&i.constructor,u=typeof a=="function"&&a.prototype||e;return i===u}return mE=r,mE}var gE,j_;function xee(){if(j_)return gE;j_=1;var e=vee(),r=BP(),i=UP();function a(u){return typeof u.constructor=="function"&&!i(u)?e(r(u)):{}}return gE=a,gE}var yE,L_;function Eee(){if(L_)return yE;L_=1;var e=Th(),r=Fc(),i="[object Arguments]";function a(u){return r(u)&&e(u)==i}return yE=a,yE}var bE,k_;function _P(){if(k_)return bE;k_=1;var e=Eee(),r=Fc(),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(f){return r(f)&&a.call(f,"callee")&&!u.call(f,"callee")};return bE=c,bE}var vE,$_;function MP(){if($_)return vE;$_=1;var e=Array.isArray;return vE=e,vE}var AE,q_;function wee(){if(q_)return AE;q_=1;var e=AC(),r=Fc();function i(a){return r(a)&&e(a)}return AE=i,AE}var gd={exports:{}},xE,H_;function See(){if(H_)return xE;H_=1;function e(){return!1}return xE=e,xE}gd.exports;var z_;function PP(){return z_||(z_=1,(function(e,r){var i=Oc(),a=See(),u=r&&!r.nodeType&&r,c=u&&!0&&e&&!e.nodeType&&e,f=c&&c.exports===u,h=f?i.Buffer:void 0,m=h?h.isBuffer:void 0,p=m||a;e.exports=p})(gd,gd.exports)),gd.exports}var EE,V_;function Cee(){if(V_)return EE;V_=1;var e=Th(),r=BP(),i=Fc(),a="[object Object]",u=Function.prototype,c=Object.prototype,f=u.toString,h=c.hasOwnProperty,m=f.call(Object);function p(A){if(!i(A)||e(A)!=a)return!1;var v=r(A);if(v===null)return!0;var g=h.call(v,"constructor")&&v.constructor;return typeof g=="function"&&g instanceof g&&f.call(g)==m}return EE=p,EE}var wE,G_;function Iee(){if(G_)return wE;G_=1;var e=Th(),r=IP(),i=Fc(),a="[object Arguments]",u="[object Array]",c="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Function]",p="[object Map]",A="[object Number]",v="[object Object]",g="[object RegExp]",S="[object Set]",O="[object String]",U="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",re="[object Int8Array]",K="[object Int16Array]",oe="[object Int32Array]",de="[object Uint8Array]",ue="[object Uint8ClampedArray]",T="[object Uint16Array]",$="[object Uint32Array]",z={};z[D]=z[M]=z[re]=z[K]=z[oe]=z[de]=z[ue]=z[T]=z[$]=!0,z[a]=z[u]=z[F]=z[c]=z[N]=z[f]=z[h]=z[m]=z[p]=z[A]=z[v]=z[g]=z[S]=z[O]=z[U]=!1;function V(X){return i(X)&&r(X.length)&&!!z[e(X)]}return wE=V,wE}var SE,Q_;function Tee(){if(Q_)return SE;Q_=1;function e(r){return function(i){return r(i)}}return SE=e,SE}var yd={exports:{}};yd.exports;var Y_;function Ree(){return Y_||(Y_=1,(function(e,r){var i=SP(),a=r&&!r.nodeType&&r,u=a&&!0&&e&&!e.nodeType&&e,c=u&&u.exports===a,f=c&&i.process,h=(function(){try{var m=u&&u.require&&u.require("util").types;return m||f&&f.binding&&f.binding("util")}catch{}})();e.exports=h})(yd,yd.exports)),yd.exports}var CE,K_;function jP(){if(K_)return CE;K_=1;var e=Iee(),r=Tee(),i=Ree(),a=i&&i.isTypedArray,u=a?r(a):e;return CE=u,CE}var IE,X_;function LP(){if(X_)return IE;X_=1;function e(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}return IE=e,IE}var TE,Z_;function Oee(){if(Z_)return TE;Z_=1;var e=EC(),r=Yg(),i=Object.prototype,a=i.hasOwnProperty;function u(c,f,h){var m=c[f];(!(a.call(c,f)&&r(m,h))||h===void 0&&!(f in c))&&e(c,f,h)}return TE=u,TE}var RE,J_;function Fee(){if(J_)return RE;J_=1;var e=Oee(),r=EC();function i(a,u,c,f){var h=!c;c||(c={});for(var m=-1,p=u.length;++m<p;){var A=u[m],v=f?f(c[A],a[A],A,c,a):void 0;v===void 0&&(v=a[A]),h?r(c,A,v):e(c,A,v)}return c}return RE=i,RE}var OE,W_;function Nee(){if(W_)return OE;W_=1;function e(r,i){for(var a=-1,u=Array(r);++a<r;)u[a]=i(a);return u}return OE=e,OE}var FE,e6;function Dee(){if(e6)return FE;e6=1;var e=Nee(),r=_P(),i=MP(),a=PP(),u=TP(),c=jP(),f=Object.prototype,h=f.hasOwnProperty;function m(p,A){var v=i(p),g=!v&&r(p),S=!v&&!g&&a(p),O=!v&&!g&&!S&&c(p),U=v||g||S||O,F=U?e(p.length,String):[],N=F.length;for(var D in p)(A||h.call(p,D))&&!(U&&(D=="length"||S&&(D=="offset"||D=="parent")||O&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||u(D,N)))&&F.push(D);return F}return FE=m,FE}var NE,t6;function Bee(){if(t6)return NE;t6=1;function e(r){var i=[];if(r!=null)for(var a in Object(r))i.push(a);return i}return NE=e,NE}var DE,n6;function Uee(){if(n6)return DE;n6=1;var e=fs(),r=UP(),i=Bee(),a=Object.prototype,u=a.hasOwnProperty;function c(f){if(!e(f))return i(f);var h=r(f),m=[];for(var p in f)p=="constructor"&&(h||!u.call(f,p))||m.push(p);return m}return DE=c,DE}var BE,r6;function kP(){if(r6)return BE;r6=1;var e=Dee(),r=Uee(),i=AC();function a(u){return i(u)?e(u,!0):r(u)}return BE=a,BE}var UE,o6;function _ee(){if(o6)return UE;o6=1;var e=Fee(),r=kP();function i(a){return e(a,r(a))}return UE=i,UE}var _E,i6;function Mee(){if(i6)return _E;i6=1;var e=DP(),r=pee(),i=yee(),a=bee(),u=xee(),c=_P(),f=MP(),h=wee(),m=PP(),p=vC(),A=fs(),v=Cee(),g=jP(),S=LP(),O=_ee();function U(F,N,D,M,re,K,oe){var de=S(F,D),ue=S(N,D),T=oe.get(ue);if(T){e(F,D,T);return}var $=K?K(de,ue,D+"",F,N,oe):void 0,z=$===void 0;if(z){var V=f(ue),X=!V&&m(ue),J=!V&&!X&&g(ue);$=ue,V||X||J?f(de)?$=de:h(de)?$=a(de):X?(z=!1,$=r(ue,!0)):J?(z=!1,$=i(ue,!0)):$=[]:v(ue)||c(ue)?($=de,c(de)?$=O(de):(!A(de)||p(de))&&($=u(ue))):z=!1}z&&(oe.set(ue,$),re($,ue,M,K,oe),oe.delete(ue)),e(F,D,$)}return _E=U,_E}var ME,a6;function Pee(){if(a6)return ME;a6=1;var e=fee(),r=DP(),i=hee(),a=Mee(),u=fs(),c=kP(),f=LP();function h(m,p,A,v,g){m!==p&&i(p,function(S,O){if(g||(g=new e),u(S))a(m,p,O,A,h,v,g);else{var U=v?v(f(m,O),S,O+"",m,p,g):void 0;U===void 0&&(U=S),r(m,O,U)}},c)}return ME=h,ME}var PE,s6;function $P(){if(s6)return PE;s6=1;function e(r){return r}return PE=e,PE}var jE,u6;function jee(){if(u6)return jE;u6=1;function e(r,i,a){switch(a.length){case 0:return r.call(i);case 1:return r.call(i,a[0]);case 2:return r.call(i,a[0],a[1]);case 3:return r.call(i,a[0],a[1],a[2])}return r.apply(i,a)}return jE=e,jE}var LE,l6;function Lee(){if(l6)return LE;l6=1;var e=jee(),r=Math.max;function i(a,u,c){return u=r(u===void 0?a.length-1:u,0),function(){for(var f=arguments,h=-1,m=r(f.length-u,0),p=Array(m);++h<m;)p[h]=f[u+h];h=-1;for(var A=Array(u+1);++h<u;)A[h]=f[h];return A[u]=c(p),e(a,this,A)}}return LE=i,LE}var kE,c6;function kee(){if(c6)return kE;c6=1;function e(r){return function(){return r}}return kE=e,kE}var $E,f6;function $ee(){if(f6)return $E;f6=1;var e=kee(),r=NP(),i=$P(),a=r?function(u,c){return r(u,"toString",{configurable:!0,enumerable:!1,value:e(c),writable:!0})}:i;return $E=a,$E}var qE,d6;function qee(){if(d6)return qE;d6=1;var e=800,r=16,i=Date.now;function a(u){var c=0,f=0;return function(){var h=i(),m=r-(h-f);if(f=h,m>0){if(++c>=e)return arguments[0]}else c=0;return u.apply(void 0,arguments)}}return qE=a,qE}var HE,h6;function Hee(){if(h6)return HE;h6=1;var e=$ee(),r=qee(),i=r(e);return HE=i,HE}var zE,p6;function zee(){if(p6)return zE;p6=1;var e=$P(),r=Lee(),i=Hee();function a(u,c){return i(r(u,c,e),u+"")}return zE=a,zE}var VE,m6;function Vee(){if(m6)return VE;m6=1;var e=zee(),r=RP();function i(a){return e(function(u,c){var f=-1,h=c.length,m=h>1?c[h-1]:void 0,p=h>2?c[2]:void 0;for(m=a.length>3&&typeof m=="function"?(h--,m):void 0,p&&r(c[0],c[1],p)&&(m=h<3?void 0:m,h=1),u=Object(u);++f<h;){var A=c[f];A&&a(u,A,f,m)}return u})}return VE=i,VE}var GE,g6;function Gee(){if(g6)return GE;g6=1;var e=Pee(),r=Vee(),i=r(function(a,u,c){e(a,u,c)});return GE=i,GE}var y6;function Qee(){if(y6)return dr;y6=1;var e=dr&&dr.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(dr,"__esModule",{value:!0}),dr.nftCborToJson=dr.paginatedMetadataNft=dr.paginatedProjectedNft=dr.paginatedTransactionHistory=dr.paginateQuery=void 0;const r=EP(),i=wP(),a=e(MW()),u=OP(),c=e(Gee());async function f(g,S,O){let U=g;const F=[];let N=[];do N=await S(U),F.push(...N),U={...U,after:O(N[N.length-1])};while(N.length!==0);return F}dr.paginateQuery=f;async function h(g,S){return{transactions:await f(S,async U=>(await(0,r.query)(g,i.Routes.transactionHistory,U)).transactions,U=>U!=null?{block:U.block.hash,tx:U.transaction.hash}:void 0)}}dr.paginatedTransactionHistory=h;async function m(g,S){return await f(S,async U=>await(0,r.query)(g,i.Routes.projectedNftEventsRange,U),U=>U!=null?{block:U.block,tx:U.txId}:void 0)}dr.paginatedProjectedNft=m;function p(g){var S;const O={};for(const[U,F]of g){const N=(S=O[U])!==null&&S!==void 0?S:[];N.push(F),N.length===1&&(O[U]=N)}return{assets:O}}async function A(g,S){const O=[];for(const[N,D]of Object.entries(S.assets))for(const M of D)O.push([N,M]);let U={cip25:{}};const F=await Promise.all((0,a.default)(O,u.ASSET_LIMIT.REQUEST).map(N=>(0,r.query)(g,i.Routes.metadataNft,p(N))));for(const N of F)U=(0,c.default)(U,N);return U}dr.paginatedMetadataNft=A;function v(g,S,O,U){const F={};for(const[N,D]of Object.entries(g.cip25)){const M={};for(const[re,K]of Object.entries(D)){const oe=S.from_cbor_bytes(un.Buffer.from(K,"hex")),de=O(oe,U);M[re]=de}F[N]=M}return{cip25:F}}return dr.nftCborToJson=v,dr}var uu={},QE={},b6;function Yee(){return b6||(b6=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.genErrorMessage=e.Errors=e.ErrorCodes=void 0;var r;(function(a){a[a.AddressLimitExceeded=0]="AddressLimitExceeded",a[a.IncorrectAddressFormat=1]="IncorrectAddressFormat",a[a.BlockHashNotFound=2]="BlockHashNotFound",a[a.PageStartNotFound=3]="PageStartNotFound",a[a.UtxoLimitExceeded=4]="UtxoLimitExceeded",a[a.IncorrectFormat=5]="IncorrectFormat",a[a.BlockOffsetLimit=6]="BlockOffsetLimit",a[a.OffsetBlockNotFound=7]="OffsetBlockNotFound",a[a.AssetLimitExceeded=8]="AssetLimitExceeded",a[a.CredentialLimitExceeded=9]="CredentialLimitExceeded",a[a.AssetPairLimitExceeded=10]="AssetPairLimitExceeded",a[a.PoolsLimitExceeded=11]="PoolsLimitExceeded",a[a.SlotRangeLimitExceeded=12]="SlotRangeLimitExceeded",a[a.AssetsLimitExceeded=12]="AssetsLimitExceeded"})(r=e.ErrorCodes||(e.ErrorCodes={})),e.Errors={AddressLimitExceeded:{code:r.AddressLimitExceeded,prefix:"Exceeded request address limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},UtxoLimitExceeded:{code:r.UtxoLimitExceeded,prefix:"Exceeded request utxo limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},IncorrectAddressFormat:{code:r.IncorrectAddressFormat,prefix:"Incorrectly formatted addresses found.",detailsGen:a=>JSON.stringify(a.addresses)},IncorrectFormat:{code:r.IncorrectFormat,prefix:"Incorrectly formatted data found.",detailsGen:a=>JSON.stringify(a)},BlockHashNotFound:{code:r.BlockHashNotFound,prefix:"Block hash not found.",detailsGen:a=>`Searched block hash: ${a.untilBlock}`},PageStartNotFound:{code:r.PageStartNotFound,prefix:"Combination of block and transaction not found.",detailsGen:a=>`Searched block hash ${a.blockHash} and tx hash ${a.txHash}`},BlockOffsetLimit:{code:r.BlockOffsetLimit,prefix:"Block offset exceeded the limit.",detailsGen:a=>`Offset used was ${a.offset}, but limit is ${a.limit}`},OffsetBlockNotFound:{code:r.OffsetBlockNotFound,prefix:"Block not found at offset. Are you sure your database is synchronized?",detailsGen:a=>`Offset used was ${a.offset}`},AssetLimitExceeded:{code:r.AssetLimitExceeded,prefix:"Exceeded request <policy, asset> pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},CredentialLimitExceeded:{code:r.CredentialLimitExceeded,prefix:"Exceeded request credential limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetPairLimitExceeded:{code:r.AssetPairLimitExceeded,prefix:"Exceeded request asset pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},PoolsLimitExceeded:{code:r.PoolsLimitExceeded,prefix:"Exceeded request pools limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},SlotRangeLimitExceeded:{code:r.SlotRangeLimitExceeded,prefix:"Exceeded request slot range limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetsLimitExceeded:{code:r.AssetLimitExceeded,prefix:"Exceeded request native assets limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},GovActionIdsLimitExceeded:{code:r.AssetLimitExceeded,prefix:"Exceeded request governance action ids limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`}};function i(a,u){const c=a.detailsGen(u);return{code:a.code,reason:c.length===0?a.prefix:`${a.prefix} ${c}`}}e.genErrorMessage=i})(QE)),QE}var lu={},YE={},v6;function Kee(){return v6||(v6=1,Object.defineProperty(YE,"__esModule",{value:!0})),YE}var KE={},A6;function Xee(){return A6||(A6=1,Object.defineProperty(KE,"__esModule",{value:!0})),KE}var XE={},x6;function Zee(){return x6||(x6=1,Object.defineProperty(XE,"__esModule",{value:!0})),XE}var ZE={},E6;function Jee(){return E6||(E6=1,Object.defineProperty(ZE,"__esModule",{value:!0})),ZE}var JE={},w6;function Wee(){return w6||(w6=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dex=e.Direction=e.RelationFilterType=void 0,(function(r){r[r.FILTER_ALL=0]="FILTER_ALL",r[r.Witness=1]="Witness",r[r.Input=2]="Input",r[r.Output=4]="Output",r[r.StakeDeregistration=8]="StakeDeregistration",r[r.StakeDelegation=16]="StakeDelegation",r[r.StakeRegistration=32]="StakeRegistration",r[r.DelegationTarget=64]="DelegationTarget",r[r.PoolOwner=128]="PoolOwner",r[r.PoolOperator=256]="PoolOperator",r[r.PoolReward=512]="PoolReward",r[r.MirRecipient=1024]="MirRecipient",r[r.Withdrawal=2048]="Withdrawal",r[r.RequiredSigner=4096]="RequiredSigner",r[r.InNativeScript=8192]="InNativeScript",r[r.UnusedInput=16384]="UnusedInput",r[r.UnusedInputStake=32768]="UnusedInputStake",r[r.InputStake=65536]="InputStake",r[r.OutputStake=131072]="OutputStake",r[r.UnusedOutput=262144]="UnusedOutput",r[r.UnusedOutputStake=524288]="UnusedOutputStake",r[r.ReferenceInput=1048576]="ReferenceInput",r[r.ReferenceInputStake=2097152]="ReferenceInputStake",r[r.DrepStakeDelegation=4194304]="DrepStakeDelegation",r[r.DrepStakeDelegationTarget=8388608]="DrepStakeDelegationTarget",r[r.DrepOperation=16777216]="DrepOperation",r[r.NO_FILTER=255]="NO_FILTER"})(e.RelationFilterType||(e.RelationFilterType={})),(function(r){r.Buy="buy",r.Sell="sell"})(e.Direction||(e.Direction={})),(function(r){r.WingRiders="WingRiders",r.SundaeSwap="SundaeSwap",r.MinSwap="MinSwap"})(e.Dex||(e.Dex={}))})(JE)),JE}var WE={},S6;function ete(){return S6||(S6=1,Object.defineProperty(WE,"__esModule",{value:!0})),WE}var ew={},C6;function tte(){return C6||(C6=1,Object.defineProperty(ew,"__esModule",{value:!0})),ew}var tw={},I6;function nte(){return I6||(I6=1,Object.defineProperty(tw,"__esModule",{value:!0})),tw}var nw={},T6;function rte(){return T6||(T6=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PriceType=void 0,(function(r){r.Buy="buy",r.Sell="sell",r.Mean="mean"})(e.PriceType||(e.PriceType={}))})(nw)),nw}var rw={},R6;function ote(){return R6||(R6=1,Object.defineProperty(rw,"__esModule",{value:!0})),rw}var ow={},O6;function ite(){return O6||(O6=1,Object.defineProperty(ow,"__esModule",{value:!0})),ow}var iw={},F6;function ate(){return F6||(F6=1,Object.defineProperty(iw,"__esModule",{value:!0})),iw}var aw={},N6;function ste(){return N6||(N6=1,Object.defineProperty(aw,"__esModule",{value:!0})),aw}var sw={},D6;function ute(){return D6||(D6=1,Object.defineProperty(sw,"__esModule",{value:!0})),sw}var uw={},B6;function lte(){return B6||(B6=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectedNftStatus=void 0,(function(r){r.Lock="Lock",r.Unlocking="Unlocking",r.Claim="Claim",r.Invalid="Invalid"})(e.ProjectedNftStatus||(e.ProjectedNftStatus={}))})(uw)),uw}var lw={},U6;function cte(){return U6||(U6=1,Object.defineProperty(lw,"__esModule",{value:!0})),lw}var cw={},_6;function fte(){return _6||(_6=1,Object.defineProperty(cw,"__esModule",{value:!0})),cw}var M6;function dte(){return M6||(M6=1,(function(e){var r=lu&&lu.__createBinding||(Object.create?(function(a,u,c,f){f===void 0&&(f=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(a,f,h)}):(function(a,u,c,f){f===void 0&&(f=c),a[f]=u[c]})),i=lu&&lu.__exportStar||function(a,u){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(Kee(),e),i(Xee(),e),i(Zee(),e),i(Jee(),e),i(Wee(),e),i(ete(),e),i(tte(),e),i(nte(),e),i(rte(),e),i(ote(),e),i(ite(),e),i(ate(),e),i(ste(),e),i(ute(),e),i(lte(),e),i(cte(),e),i(fte(),e)})(lu)),lu}var P6;function hte(){return P6||(P6=1,(function(e){var r=uu&&uu.__createBinding||(Object.create?(function(a,u,c,f){f===void 0&&(f=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(a,f,h)}):(function(a,u,c,f){f===void 0&&(f=c),a[f]=u[c]})),i=uu&&uu.__exportStar||function(a,u){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(OP(),e),i(Yee(),e),i(wP(),e),i(dte(),e)})(uu)),uu}var j6;function pte(){return j6||(j6=1,(function(e){var r=su&&su.__createBinding||(Object.create?(function(a,u,c,f){f===void 0&&(f=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(a,f,h)}):(function(a,u,c,f){f===void 0&&(f=c),a[f]=u[c]})),i=su&&su.__exportStar||function(a,u){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(EP(),e),i(Qee(),e),i(hte(),e)})(su)),su}var mte=pte();const wC=C.Object({address:Ie.Cardano.Address,pool:Ie.Nullable(Ie.Cardano.PoolId),epoch:Ie.EpochNumber()});C.Object({primitive:C.Literal(Ve.CardanoCarpDelegation),payloadType:C.Literal(fn.Delegate),payload:wC});const Ed=C.Object({ownerAddress:Ie.Cardano.Address,actionTxId:Ie.Cardano.TxHash,actionOutputIndex:Ie.Nullable(C.Number()),previousTxHash:Ie.Nullable(Ie.Cardano.TxHash),previousTxOutputIndex:Ie.Nullable(C.Number()),policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,amount:Ie.Cardano.AmountLovelace,status:C.Enum(mte.ProjectedNftStatus),plutusDatum:Ie.HexStringNo0x(),forHowLong:Ie.Nullable(Ie.TimestampMsStr)});C.Object({primitive:C.Literal(Ve.CardanoCarpProjectedNFT),payloadType:C.Literal(fn.Projection),payload:Ed});const qP=C.Object({address:Ie.Cardano.Address,txId:Ie.Cardano.TxHash,outputIndex:C.Number(),amount:Ie.Nullable(Ie.Cardano.AmountLovelace),cip14Fingerprint:Ie.Cardano.Cip14Fingerprint,policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,spent:C.Boolean()});C.Object({primitive:C.Literal(Ve.CardanoCarpDelayedAsset),payloadType:C.Literal(fn.Transfer),payload:qP});const SC=C.Object({txId:Ie.Cardano.TxHash,rawTx:C.String(),inputCredentials:C.Array(Ie.Cardano.Credential),outputs:C.Array(C.Object({asset:Ie.Nullable(C.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName})),amount:Ie.Cardano.AmountLovelace})),metadata:Ie.Nullable(C.String())});C.Object({primitive:C.Literal(Ve.CardanoCarpTransfer),payloadType:C.Literal(fn.Transfer),payload:SC});const gte=C.Unsafe(C.Record(Ie.Cardano.AssetName,C.String())),yte=C.Unsafe(C.Record(Ie.Cardano.PolicyId,gte)),bte=C.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName}),vte=C.Intersect([bte,C.Object({amount:Ie.Cardano.AmountLovelace})]),L6=C.Unsafe(C.Record(Ie.Cardano.Credential,C.Array(vte))),CC=C.Object({txId:Ie.Cardano.TxHash,metadata:Ie.Nullable(C.String()),assets:yte,inputAddresses:L6,outputAddresses:L6});C.Object({primitive:C.Literal(Ve.CardanoCarpMintBurn),payloadType:C.Literal(fn.MintOrBurn),payload:CC});const Ate=C.Object({});C.Object({primitive:C.Literal(Ve.CardanoUtxorpcMatchTx),payloadType:C.Literal(fn.Event),payload:Ate});Ve.EvmRpcPaimaL2+"",Ve.EvmRpcERC20+"",Ve.EvmRpcERC721+"",Ve.EvmRpcERC1155+"",Ve.EvmRpcGeneric+"",Ve.EvmRpcERC6551Registry+"",Ve.EvmRpcDynamicPrimitive+"";const HP=C.Object({userAddress:Ie.Evm.Address,data:Ie.HexString0x(),value:Ie.Uint256});C.Object({primitive:C.Literal(Ve.EvmRpcPaimaL2),payloadType:C.Literal(fn.PaimaL2Event),payload:HP});const IC=C.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,value:Ie.Uint256});C.Object({primitive:C.Literal(Ve.EvmRpcERC20),payloadType:C.Literal(fn.Transfer),payload:IC});const TC=C.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,tokenId:Ie.Uint256});C.Object({primitive:C.Literal(Ve.EvmRpcERC721),payloadType:C.Literal(fn.Transfer),payload:TC});const eg=C.Object({tokenId:Ie.Uint256,mintData:C.String(),from:Ie.Evm.Address});C.Object({primitive:C.Literal(Ve.EvmRpcERC721),payloadType:C.Literal(fn.Mint),payload:eg});const tg=C.Object({operator:Ie.Evm.Address,from:Ie.Evm.Address,to:Ie.Evm.Address,ids:C.Array(Ie.Uint256),values:C.Array(Ie.Uint256)});C.Object({primitive:C.Literal(Ve.EvmRpcERC1155),payloadType:C.Literal(fn.Transfer),payload:tg});const xte=C.Any();C.Object({primitive:C.Literal(Ve.EvmRpcGeneric),payloadType:C.Literal(fn.Event),payload:xte});const zP=C.Object({accountCreated:Ie.Evm.Address,implementation:Ie.Evm.Address,chainId:Ie.Uint256,tokenContract:Ie.Evm.Address,tokenId:Ie.Uint256,salt:Ie.Uint256});C.Object({primitive:C.Literal(Ve.EvmRpcERC6551Registry),payloadType:C.Literal(fn.Registry),payload:zP});const Ete=C.Union([C.Object({type:C.Literal(Ve.EvmRpcERC721),scheduledPrefix:C.String(),burnScheduledPrefix:C.Optional(C.String())}),C.Object({type:C.Literal(Ve.EvmRpcGeneric),abi:Ie.EvmAbiEvent,scheduledPrefix:C.String()})]),wte=C.Object({contractAddress:Ie.Evm.Address,targetConfig:Ete});C.Object({primitive:C.Literal(Ve.EvmRpcDynamicPrimitive),payloadType:C.Literal(fn.Event),payload:wte});const Ste=C.Recursive(e=>C.Union([C.Object({tag:C.Literal("null")}),C.Object({tag:C.Literal("cell"),content:e}),C.Object({tag:C.Literal("array"),content:C.Array(e)}),C.Object({tag:C.Literal("map"),content:C.Any()}),C.Object({tag:C.Literal("some"),value:e}),C.Object({tag:C.Literal("none")})])),VP=C.Unsafe(Ste);C.Object({primitive:C.Literal(Ve.MidnightContractState),payloadType:C.Literal(fn.Event),payload:VP});const Cte=C.Array(C.Array(Ie.UnknownFormat));C.Object({primitive:C.Literal(Ve.MinaEventGeneric),payloadType:C.Literal(fn.Event),payload:Cte});const Ite=C.Array(C.Array(Ie.UnknownFormat));C.Object({primitive:C.Literal(Ve.MinaActionGeneric),payloadType:C.Literal(fn.Event),payload:Ite});var Wr=(e=>(e.Transfer="transfer",e.Delegate="delegate",e.MintOrBurn="mint-or-burn",e.ProjectedNft="projected-nft",e.Registry="registry",e.Event="event",e))(Wr||{});C.Object({primitive:C.Literal(Ve.CardanoCarpDelayedAsset),payloadType:C.Literal(Wr.Transfer),payload:qP});C.Object({primitive:C.Literal(Ve.CardanoCarpDelegation),payloadType:C.Literal(Wr.Transfer),payload:wC});C.Object({primitive:C.Literal(Ve.CardanoCarpMintBurn),payloadType:C.Literal(Wr.MintOrBurn),payload:CC});C.Object({primitive:C.Literal(Ve.CardanoCarpProjectedNFT),payloadType:C.Literal(Wr.ProjectedNft),payload:Ed});C.Object({primitive:C.Literal(Ve.CardanoCarpTransfer),payloadType:C.Literal(Wr.Transfer),payload:SC});C.Object({primitive:C.Literal(Ve.EvmRpcPaimaL2),payloadType:C.Literal(Wr.Event),payload:HP});C.Object({primitive:C.Literal(Ve.EvmRpcERC20),payloadType:C.Literal(Wr.Transfer),payload:IC});C.Object({primitive:C.Literal(Ve.EvmRpcERC721),payloadType:C.Literal(Wr.Transfer),payload:TC});C.Object({primitive:C.Literal(Ve.EvmRpcERC721),payloadType:C.Literal(Wr.MintOrBurn),payload:eg});C.Object({primitive:C.Literal(Ve.EvmRpcERC1155),payloadType:C.Literal(Wr.Transfer),payload:tg});C.Object({primitive:C.Literal(Ve.EvmRpcERC6551Registry),payloadType:C.Literal(Wr.Registry),payload:zP});C.Object({primitive:C.Literal(Ve.MidnightContractState),payloadType:C.Literal(Wr.Event),payload:VP});_Z("paima:static-config");var fw={exports:{}},k6;function Tte(){return k6||(k6=1,(function(e){(function(){var r="input is invalid type",i="finalize already called",a=typeof window=="object",u=a?window:{};u.JS_SHA3_NO_WINDOW&&(a=!1);var c=!a&&typeof self=="object",f=!u.JS_SHA3_NO_NODE_JS&&typeof It=="object"&&It.versions&&It.versions.node;f?u=Zi:c&&(u=self);for(var h=!u.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,m=!u.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),A=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],g=[1,256,65536,16777216],S=[6,1536,393216,100663296],O=[0,8,16,24],U=[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],F=[224,256,384,512],N=[128,256],D=["hex","buffer","arrayBuffer","array","digest"],M={128:168,256:136},re=u.JS_SHA3_NO_NODE_JS||!Array.isArray?function(w){return Object.prototype.toString.call(w)==="[object Array]"}:Array.isArray,K=m&&(u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(w){return typeof w=="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,oe=function(w){var j=typeof w;if(j==="string")return[w,!0];if(j!=="object"||w===null)throw new Error(r);if(m&&w.constructor===ArrayBuffer)return[new Uint8Array(w),!1];if(!re(w)&&!K(w))throw new Error(r);return[w,!1]},de=function(w){return oe(w)[0].length===0},ue=function(w){for(var j=[],G=0;G<w.length;++G)j[G]=w[G];return j},T=function(w,j,G){return function(te){return new xe(w,j,w).update(te)[G]()}},$=function(w,j,G){return function(te,me){return new xe(w,j,me).update(te)[G]()}},z=function(w,j,G){return function(te,me,ye,E){return W["cshake"+w].update(te,me,ye,E)[G]()}},V=function(w,j,G){return function(te,me,ye,E){return W["kmac"+w].update(te,me,ye,E)[G]()}},X=function(w,j,G,te){for(var me=0;me<D.length;++me){var ye=D[me];w[ye]=j(G,te,ye)}return w},J=function(w,j){var G=T(w,j,"hex");return G.create=function(){return new xe(w,j,w)},G.update=function(te){return G.create().update(te)},X(G,T,w,j)},ve=function(w,j){var G=$(w,j,"hex");return G.create=function(te){return new xe(w,j,te)},G.update=function(te,me){return G.create(me).update(te)},X(G,$,w,j)},B=function(w,j){var G=M[w],te=z(w,j,"hex");return te.create=function(me,ye,E){return de(ye)&&de(E)?W["shake"+w].create(me):new xe(w,j,me).bytepad([ye,E],G)},te.update=function(me,ye,E,y){return te.create(ye,E,y).update(me)},X(te,z,w,j)},he=function(w,j){var G=M[w],te=V(w,j,"hex");return te.create=function(me,ye,E){return new Ae(w,j,ye).bytepad(["KMAC",E],G).bytepad([me],G)},te.update=function(me,ye,E,y){return te.create(me,E,y).update(ye)},X(te,V,w,j)},ge=[{name:"keccak",padding:g,bits:F,createMethod:J},{name:"sha3",padding:S,bits:F,createMethod:J},{name:"shake",padding:A,bits:N,createMethod:ve},{name:"cshake",padding:v,bits:N,createMethod:B},{name:"kmac",padding:v,bits:N,createMethod:he}],W={},_=[],ie=0;ie<ge.length;++ie)for(var le=ge[ie],ee=le.bits,k=0;k<ee.length;++k){var H=le.name+"_"+ee[k];if(_.push(H),W[H]=le.createMethod(ee[k],le.padding),le.name!=="sha3"){var Q=le.name+ee[k];_.push(Q),W[Q]=W[H]}}function xe(w,j,G){this.blocks=[],this.s=[],this.padding=j,this.outputBits=G,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(w<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=G>>5,this.extraBytes=(G&31)>>3;for(var te=0;te<50;++te)this.s[te]=0}xe.prototype.update=function(w){if(this.finalized)throw new Error(i);var j=oe(w);w=j[0];for(var G=j[1],te=this.blocks,me=this.byteCount,ye=w.length,E=this.blockCount,y=0,b=this.s,I,Y;y<ye;){if(this.reset)for(this.reset=!1,te[0]=this.block,I=1;I<E+1;++I)te[I]=0;if(G)for(I=this.start;y<ye&&I<me;++y)Y=w.charCodeAt(y),Y<128?te[I>>2]|=Y<<O[I++&3]:Y<2048?(te[I>>2]|=(192|Y>>6)<<O[I++&3],te[I>>2]|=(128|Y&63)<<O[I++&3]):Y<55296||Y>=57344?(te[I>>2]|=(224|Y>>12)<<O[I++&3],te[I>>2]|=(128|Y>>6&63)<<O[I++&3],te[I>>2]|=(128|Y&63)<<O[I++&3]):(Y=65536+((Y&1023)<<10|w.charCodeAt(++y)&1023),te[I>>2]|=(240|Y>>18)<<O[I++&3],te[I>>2]|=(128|Y>>12&63)<<O[I++&3],te[I>>2]|=(128|Y>>6&63)<<O[I++&3],te[I>>2]|=(128|Y&63)<<O[I++&3]);else for(I=this.start;y<ye&&I<me;++y)te[I>>2]|=w[y]<<O[I++&3];if(this.lastByteIndex=I,I>=me){for(this.start=I-me,this.block=te[E],I=0;I<E;++I)b[I]^=te[I];L(b),this.reset=!0}else this.start=I}return this},xe.prototype.encode=function(w,j){var G=w&255,te=1,me=[G];for(w=w>>8,G=w&255;G>0;)me.unshift(G),w=w>>8,G=w&255,++te;return j?me.push(te):me.unshift(te),this.update(me),me.length},xe.prototype.encodeString=function(w){var j=oe(w);w=j[0];var G=j[1],te=0,me=w.length;if(G)for(var ye=0;ye<w.length;++ye){var E=w.charCodeAt(ye);E<128?te+=1:E<2048?te+=2:E<55296||E>=57344?te+=3:(E=65536+((E&1023)<<10|w.charCodeAt(++ye)&1023),te+=4)}else te=me;return te+=this.encode(te*8),this.update(w),te},xe.prototype.bytepad=function(w,j){for(var G=this.encode(j),te=0;te<w.length;++te)G+=this.encodeString(w[te]);var me=(j-G%j)%j,ye=[];return ye.length=me,this.update(ye),this},xe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,j=this.lastByteIndex,G=this.blockCount,te=this.s;if(w[j>>2]|=this.padding[j&3],this.lastByteIndex===this.byteCount)for(w[0]=w[G],j=1;j<G+1;++j)w[j]=0;for(w[G-1]|=2147483648,j=0;j<G;++j)te[j]^=w[j];L(te)}},xe.prototype.toString=xe.prototype.hex=function(){this.finalize();for(var w=this.blockCount,j=this.s,G=this.outputBlocks,te=this.extraBytes,me=0,ye=0,E="",y;ye<G;){for(me=0;me<w&&ye<G;++me,++ye)y=j[me],E+=p[y>>4&15]+p[y&15]+p[y>>12&15]+p[y>>8&15]+p[y>>20&15]+p[y>>16&15]+p[y>>28&15]+p[y>>24&15];ye%w===0&&(j=ue(j),L(j),me=0)}return te&&(y=j[me],E+=p[y>>4&15]+p[y&15],te>1&&(E+=p[y>>12&15]+p[y>>8&15]),te>2&&(E+=p[y>>20&15]+p[y>>16&15])),E},xe.prototype.arrayBuffer=function(){this.finalize();var w=this.blockCount,j=this.s,G=this.outputBlocks,te=this.extraBytes,me=0,ye=0,E=this.outputBits>>3,y;te?y=new ArrayBuffer(G+1<<2):y=new ArrayBuffer(E);for(var b=new Uint32Array(y);ye<G;){for(me=0;me<w&&ye<G;++me,++ye)b[ye]=j[me];ye%w===0&&(j=ue(j),L(j))}return te&&(b[ye]=j[me],y=y.slice(0,E)),y},xe.prototype.buffer=xe.prototype.arrayBuffer,xe.prototype.digest=xe.prototype.array=function(){this.finalize();for(var w=this.blockCount,j=this.s,G=this.outputBlocks,te=this.extraBytes,me=0,ye=0,E=[],y,b;ye<G;){for(me=0;me<w&&ye<G;++me,++ye)y=ye<<2,b=j[me],E[y]=b&255,E[y+1]=b>>8&255,E[y+2]=b>>16&255,E[y+3]=b>>24&255;ye%w===0&&(j=ue(j),L(j))}return te&&(y=ye<<2,b=j[me],E[y]=b&255,te>1&&(E[y+1]=b>>8&255),te>2&&(E[y+2]=b>>16&255)),E};function Ae(w,j,G){xe.call(this,w,j,G)}Ae.prototype=new xe,Ae.prototype.finalize=function(){return this.encode(this.outputBits,!0),xe.prototype.finalize.call(this)};var L=function(w){var j,G,te,me,ye,E,y,b,I,Y,Ee,Re,He,fe,ce,Ce,Ue,je,We,Ye,rt,ot,lt,st,yt,Et,P,pe,_e,Pe,qe,nt,et,it,tt,bt,yr,ca,fa,Dn,da,ds,ju,hs,ps,yi,Lu,Ze,ha,Bn,ms,ku,bi,gs,vi,Un,ys,pa,bs,ma,vs,As,xo;for(te=0;te<48;te+=2)me=w[0]^w[10]^w[20]^w[30]^w[40],ye=w[1]^w[11]^w[21]^w[31]^w[41],E=w[2]^w[12]^w[22]^w[32]^w[42],y=w[3]^w[13]^w[23]^w[33]^w[43],b=w[4]^w[14]^w[24]^w[34]^w[44],I=w[5]^w[15]^w[25]^w[35]^w[45],Y=w[6]^w[16]^w[26]^w[36]^w[46],Ee=w[7]^w[17]^w[27]^w[37]^w[47],Re=w[8]^w[18]^w[28]^w[38]^w[48],He=w[9]^w[19]^w[29]^w[39]^w[49],j=Re^(E<<1|y>>>31),G=He^(y<<1|E>>>31),w[0]^=j,w[1]^=G,w[10]^=j,w[11]^=G,w[20]^=j,w[21]^=G,w[30]^=j,w[31]^=G,w[40]^=j,w[41]^=G,j=me^(b<<1|I>>>31),G=ye^(I<<1|b>>>31),w[2]^=j,w[3]^=G,w[12]^=j,w[13]^=G,w[22]^=j,w[23]^=G,w[32]^=j,w[33]^=G,w[42]^=j,w[43]^=G,j=E^(Y<<1|Ee>>>31),G=y^(Ee<<1|Y>>>31),w[4]^=j,w[5]^=G,w[14]^=j,w[15]^=G,w[24]^=j,w[25]^=G,w[34]^=j,w[35]^=G,w[44]^=j,w[45]^=G,j=b^(Re<<1|He>>>31),G=I^(He<<1|Re>>>31),w[6]^=j,w[7]^=G,w[16]^=j,w[17]^=G,w[26]^=j,w[27]^=G,w[36]^=j,w[37]^=G,w[46]^=j,w[47]^=G,j=Y^(me<<1|ye>>>31),G=Ee^(ye<<1|me>>>31),w[8]^=j,w[9]^=G,w[18]^=j,w[19]^=G,w[28]^=j,w[29]^=G,w[38]^=j,w[39]^=G,w[48]^=j,w[49]^=G,fe=w[0],ce=w[1],yi=w[11]<<4|w[10]>>>28,Lu=w[10]<<4|w[11]>>>28,pe=w[20]<<3|w[21]>>>29,_e=w[21]<<3|w[20]>>>29,ma=w[31]<<9|w[30]>>>23,vs=w[30]<<9|w[31]>>>23,ds=w[40]<<18|w[41]>>>14,ju=w[41]<<18|w[40]>>>14,it=w[2]<<1|w[3]>>>31,tt=w[3]<<1|w[2]>>>31,Ce=w[13]<<12|w[12]>>>20,Ue=w[12]<<12|w[13]>>>20,Ze=w[22]<<10|w[23]>>>22,ha=w[23]<<10|w[22]>>>22,Pe=w[33]<<13|w[32]>>>19,qe=w[32]<<13|w[33]>>>19,As=w[42]<<2|w[43]>>>30,xo=w[43]<<2|w[42]>>>30,gs=w[5]<<30|w[4]>>>2,vi=w[4]<<30|w[5]>>>2,bt=w[14]<<6|w[15]>>>26,yr=w[15]<<6|w[14]>>>26,je=w[25]<<11|w[24]>>>21,We=w[24]<<11|w[25]>>>21,Bn=w[34]<<15|w[35]>>>17,ms=w[35]<<15|w[34]>>>17,nt=w[45]<<29|w[44]>>>3,et=w[44]<<29|w[45]>>>3,st=w[6]<<28|w[7]>>>4,yt=w[7]<<28|w[6]>>>4,Un=w[17]<<23|w[16]>>>9,ys=w[16]<<23|w[17]>>>9,ca=w[26]<<25|w[27]>>>7,fa=w[27]<<25|w[26]>>>7,Ye=w[36]<<21|w[37]>>>11,rt=w[37]<<21|w[36]>>>11,ku=w[47]<<24|w[46]>>>8,bi=w[46]<<24|w[47]>>>8,hs=w[8]<<27|w[9]>>>5,ps=w[9]<<27|w[8]>>>5,Et=w[18]<<20|w[19]>>>12,P=w[19]<<20|w[18]>>>12,pa=w[29]<<7|w[28]>>>25,bs=w[28]<<7|w[29]>>>25,Dn=w[38]<<8|w[39]>>>24,da=w[39]<<8|w[38]>>>24,ot=w[48]<<14|w[49]>>>18,lt=w[49]<<14|w[48]>>>18,w[0]=fe^~Ce&je,w[1]=ce^~Ue&We,w[10]=st^~Et&pe,w[11]=yt^~P&_e,w[20]=it^~bt&ca,w[21]=tt^~yr&fa,w[30]=hs^~yi&Ze,w[31]=ps^~Lu&ha,w[40]=gs^~Un&pa,w[41]=vi^~ys&bs,w[2]=Ce^~je&Ye,w[3]=Ue^~We&rt,w[12]=Et^~pe&Pe,w[13]=P^~_e&qe,w[22]=bt^~ca&Dn,w[23]=yr^~fa&da,w[32]=yi^~Ze&Bn,w[33]=Lu^~ha&ms,w[42]=Un^~pa&ma,w[43]=ys^~bs&vs,w[4]=je^~Ye&ot,w[5]=We^~rt<,w[14]=pe^~Pe&nt,w[15]=_e^~qe&et,w[24]=ca^~Dn&ds,w[25]=fa^~da&ju,w[34]=Ze^~Bn&ku,w[35]=ha^~ms&bi,w[44]=pa^~ma&As,w[45]=bs^~vs&xo,w[6]=Ye^~ot&fe,w[7]=rt^~lt&ce,w[16]=Pe^~nt&st,w[17]=qe^~et&yt,w[26]=Dn^~ds&it,w[27]=da^~ju&tt,w[36]=Bn^~ku&hs,w[37]=ms^~bi&ps,w[46]=ma^~As&gs,w[47]=vs^~xo&vi,w[8]=ot^~fe&Ce,w[9]=lt^~ce&Ue,w[18]=nt^~st&Et,w[19]=et^~yt&P,w[28]=ds^~it&bt,w[29]=ju^~tt&yr,w[38]=ku^~hs&yi,w[39]=bi^~ps&Lu,w[48]=As^~gs&Un,w[49]=xo^~vi&ys,w[0]^=U[te],w[1]^=U[te+1]};if(h)e.exports=W;else for(ie=0;ie<_.length;++ie)u[_[ie]]=W[_[ie]]})()})(fw)),fw.exports}var Rte=Tte();const GP=og(Rte),{keccak_256:Ote}=GP;function QP(e){return`0x${Ote(e).slice(0,40)}`}QP(`${mt.CARDANO_CARP_PARALLEL}-${Ve.CardanoCarpMintBurn}-${fn.MintOrBurn}`);QP(`${mt.CARDANO_CARP_PARALLEL}-${Ve.CardanoCarpTransfer}-${fn.Transfer}`);Ve.EvmRpcERC20+"",$l(["from","to","value"]).from(IC),Ve.EvmRpcERC721+"",$l(["from","tokenId","mintData"]).from(eg),[TC.properties.from,...zm(["tokenId"]).from(eg)],Ve.EvmRpcERC1155+"",$l(["operator","from","to","ids","values"]).from(tg),zm(["operator","from","ids","values"]).from(tg),Ve.EvmRpcERC6551Registry+"",Ve.EvmRpcDynamicPrimitive+"",Ve.EvmRpcGeneric+"",Ve.CardanoCarpDelegation+"",$l(["address","pool","epoch"]).from(wC),Ve.CardanoCarpProjectedNFT+"",[...zm(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(Ed),Ed.properties.actionTxId,Ed.properties.actionOutputIndex],Ve.CardanoCarpDelayedAsset+"",Ve.CardanoCarpTransfer+"",$l(["txId","rawTx","inputCredentials","outputs","metadata"]).from(SC),Ve.CardanoCarpMintBurn+"",$l(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(CC),Ve.CardanoUtxorpcMatchTx+"",Ve.MinaEventGeneric+"",Ve.MinaActionGeneric+"",Ve.MidnightContractState+"";const{keccak_256:Wte}=GP;function YP(e,r,i,a){return(""+r+i+a).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const Fte={EVM:0};async function Nte(e,r){const i=ui(r.privateKey),a=vd({account:i,chain:xd,transport:Ad()}),u=Date.now().toString(),c=i.address,f=Fte.EVM,h=YP(null,u,c,e),m=await a.signMessage({account:i,message:h});return{addressType:f,userAddress:c,userSignature:m,gameInput:e,millisecondTimestamp:u}}async function Dte(e){const r=await fetch(dP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}async function Pm(e,r){console.log("🚀 Creating signed input for:",e);const i=await Nte(e,r);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await Dte(i);return console.log("🎉 Batcher response:",a),a}function Bte(){const[e,r]=Me.useState([]),[i,a]=Me.useState(!0),[u,c]=Me.useState(null),[f,h]=Me.useState(10),[m,p]=Me.useState(0),[A,v]=Me.useState([void 0]),[g,S]=Me.useState(!1),[O,U]=Me.useState([]),[F,N]=Me.useState(null),[D,M]=Me.useState([]),[re,K]=Me.useState(!1),[oe,de]=Me.useState(!1),[ue,T]=Me.useState(!1),[$,z]=Me.useState(""),[V,X]=Me.useState(""),[J,ve]=Me.useState(""),[B,he]=Me.useState(null),[ge,W]=Me.useState(null),_=(ye,E,y)=>{const b=Date.now(),I={id:b,type:ye,title:E,message:y};M(Y=>[...Y,I]),setTimeout(()=>{M(Y=>Y.filter(Ee=>Ee.id!==b))},5e3)},ie=ye=>{M(E=>E.filter(y=>y.id!==ye))},le=()=>{const ye=T8(),E=ui(ye),y={id:Date.now().toString(),privateKey:ye,address:E.address,name:`Wallet ${O.length+1}`};U(b=>[...b,y]),N(y),_("success","Wallet Generated",`New wallet created: ${E.address.slice(0,6)}...${E.address.slice(-4)}`)},ee=ye=>{U(E=>E.filter(y=>y.id!==ye)),(F==null?void 0:F.id)===ye&&N(null)},k=async()=>{if(!F){_("error","No Wallet","Please select a wallet first");return}T(!0);try{const E=JSON.stringify(["&createAccount"]);await Pm(E,F),_("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(ye){_("error","Create Account Error",`Error creating account: ${ye instanceof Error?ye.message:"Unknown error"}`)}finally{T(!1)}},H=async()=>{if(!F){_("error","No Wallet","Please select a wallet first");return}if(!B){_("error","No Account","Please select an account ID");return}T(!0);try{const ye=["&unlinkAddress",B.toString(),"","",""],E=JSON.stringify(ye);await Pm(E,F),_("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(ye){_("error","Unlink Self Error",`Error unlinking self: ${ye instanceof Error?ye.message:"Unknown error"}`)}finally{T(!1)}},Q=async()=>{if(!F){_("error","No Wallet","Please select a wallet first");return}if(!B){_("error","No Account","Please select an account ID");return}if(!J.trim()){_("error","No Address","Please enter an address to unlink");return}const ye=vd({account:ui(F.privateKey),chain:xd,transport:Ad()});T(!0);const E=`unlink:${String(B)}:${J.toString().toLowerCase().trim()}:`,y=await ye.signMessage({account:ui(F.privateKey),message:E});try{const b=["&unlinkAddress",B.toString(),y,J.toString().toLowerCase().trim(),""],I=JSON.stringify(b);await Pm(I,F),_("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),ve("")}catch(b){_("error","Unlink Other Error",`Error unlinking address: ${b instanceof Error?b.message:"Unknown error"}`)}finally{T(!1)}},xe=async()=>{if(!F){_("error","No Wallet","Please select a wallet first");return}if(!B){_("error","No Account","Please select an account ID");return}if(!ge){_("error","No Link Wallet","Please select a wallet to link");return}T(!0);try{const ye=vd({account:ui(F.privateKey),chain:xd,transport:Ad()}),E=vd({account:ui(ge.privateKey),chain:xd,transport:Ad()}),y=`link:${B}:${ge.address.toString().toLowerCase().trim()}:false`,b=await ye.signMessage({account:ui(F.privateKey),message:y}),I=`link:${B}:${F.address.toString().toLowerCase().trim()}:false`,Y=await E.signMessage({account:ui(ge.privateKey),message:I}),Ee=["&linkAddress",B.toString(),b,ge.address.toString().toLowerCase().trim(),Y,"false"],Re=JSON.stringify(Ee);await Pm(Re,F),_("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),W(null)}catch(ye){_("error","Link Address Error",`Error linking address: ${ye instanceof Error?ye.message:"Unknown error"}`)}finally{T(!1)}},Ae=async()=>{try{a(!0),c(null);const ye=new URL(GZ);ye.searchParams.set("limit",String(f));const E=A[m];E&&ye.searchParams.set("after",E);const y=await fetch(ye.toString());if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const b=await y.json(),I=b.data??[];r(I),b.pagination&&(S(b.pagination.hasMore??!1),b.pagination.nextCursor&&A.length===m+1&&v(Y=>[...Y,b.pagination.nextCursor]))}catch(ye){console.error("Error fetching addresses:",ye),c(ye instanceof Error?ye.message:"Unknown error")}finally{a(!1)}};Me.useEffect(()=>{Ae()},[f,m]);const L=e.reduce((ye,E)=>{const y=ye.find(b=>b.account_id===E.account_id);return y?(y.addresses.includes(E.address)||y.addresses.push(E.address),E.primary_address&&(y.hasPrimaryAddress=!0,y.primaryAddress=E.primary_address)):ye.push({account_id:E.account_id,addresses:[E.address],hasPrimaryAddress:!!E.primary_address,primaryAddress:E.primary_address}),ye},[]),w=[...new Set(L.map(ye=>ye.account_id).filter(ye=>ye!==null))],j=ye=>{h(Number(ye.target.value)),p(0),v([void 0])},G=()=>{g&&p(ye=>ye+1)},te=()=>{p(ye=>Math.max(0,ye-1))},me=()=>{p(0)};return i?ne.jsxDEV("div",{className:"addresses-loading",children:ne.jsxDEV("div",{className:"loading-text",children:"Loading addresses..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:503,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:502,columnNumber:7},this):u?ne.jsxDEV("div",{className:"addresses-error",children:ne.jsxDEV("div",{className:"error-text",children:["Error loading addresses: ",u]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:511,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:510,columnNumber:7},this):ne.jsxDEV("div",{className:"addresses-table-container",children:[ne.jsxDEV("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:D.map(ye=>ne.jsxDEV("div",{style:{background:ye.type==="success"?"#10b981":ye.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[ne.jsxDEV("div",{children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:ye.title},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:551,columnNumber:15},this),ne.jsxDEV("div",{style:{fontSize:"14px",opacity:.9},children:ye.message},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:554,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:550,columnNumber:13},this),ne.jsxDEV("button",{type:"button",onClick:()=>ie(ye.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:558,columnNumber:13},this)]},ye.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:531,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:519,columnNumber:7},this),ne.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[ne.jsxDEV("div",{onClick:()=>K(!re),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:re?0:"20px"},children:[ne.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:598,columnNumber:11},this),ne.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:re?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:599,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:588,columnNumber:9},this),!re&&ne.jsxDEV(ne.Fragment,{children:[ne.jsxDEV("div",{style:{marginBottom:"20px"},children:ne.jsxDEV("button",{type:"button",onClick:le,style:{padding:"10px 16px",background:"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontWeight:"600",fontSize:"14px"},children:"Generate New EVM Wallet"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:617,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:616,columnNumber:13},this),O.length>0&&ne.jsxDEV("div",{style:{marginBottom:"20px"},children:[ne.jsxDEV("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:638,columnNumber:17},this),ne.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:O.map(ye=>ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",border:(F==null?void 0:F.id)===ye.id?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:(F==null?void 0:F.id)===ye.id?"#f0fdf4":"white"},children:[ne.jsxDEV("input",{type:"radio",name:"selectedWallet",checked:(F==null?void 0:F.id)===ye.id,onChange:()=>N(ye),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:665,columnNumber:23},this),ne.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:ye.name},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:672,columnNumber:23},this),ne.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:ye.address},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:697,columnNumber:23},this),ne.jsxDEV("button",{type:"button",onClick:()=>ee(ye.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:707,columnNumber:23},this)]},ye.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:649,columnNumber:21},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:641,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:637,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:614,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:579,columnNumber:7},this),F&&ne.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[ne.jsxDEV("div",{onClick:()=>de(!oe),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:oe?0:"20px"},children:[ne.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Account Commands"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:753,columnNumber:13},this),ne.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:oe?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:754,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:742,columnNumber:11},this),!oe&&ne.jsxDEV(ne.Fragment,{children:[ne.jsxDEV("div",{style:{marginBottom:"20px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:772,columnNumber:17},this),ne.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:$==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>z("create"),children:[ne.jsxDEV("input",{type:"radio",name:"action",checked:$==="create",onChange:()=>z("create"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:806,columnNumber:21},this),ne.jsxDEV("div",{style:{flex:"1"},children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:814,columnNumber:23},this),ne.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:817,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:813,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:789,columnNumber:19},this),ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:$==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>z("link"),children:[ne.jsxDEV("input",{type:"radio",name:"action",checked:$==="link",onChange:()=>z("link"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:846,columnNumber:21},this),ne.jsxDEV("div",{style:{flex:"1"},children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:854,columnNumber:23},this),ne.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:857,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:853,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:829,columnNumber:19},this),ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:$==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>z("unlink-other"),children:[ne.jsxDEV("input",{type:"radio",name:"action",checked:$==="unlink-other",onChange:()=>z("unlink-other"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:886,columnNumber:21},this),ne.jsxDEV("div",{style:{flex:"1"},children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:894,columnNumber:23},this),ne.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:897,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:893,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:869,columnNumber:19},this),ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:$==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>z("unlink-self"),children:[ne.jsxDEV("input",{type:"radio",name:"action",checked:$==="unlink-self",onChange:()=>z("unlink-self"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:926,columnNumber:21},this),ne.jsxDEV("div",{style:{flex:"1"},children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:934,columnNumber:23},this),ne.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:937,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:933,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:909,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:782,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:771,columnNumber:15},this),$&&ne.jsxDEV("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[$==="create"&&ne.jsxDEV("div",{children:[ne.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:964,columnNumber:23},this),ne.jsxDEV("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"This will create a new account with your selected wallet as the primary address."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:967,columnNumber:23},this),ne.jsxDEV("button",{type:"button",onClick:k,disabled:ue,style:{padding:"10px 20px",background:ue?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:ue?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ue?"Creating...":"Create Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:977,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:963,columnNumber:21},this),$==="link"&&ne.jsxDEV("div",{children:[ne.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1001,columnNumber:23},this),ne.jsxDEV("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Link a wallet to an existing account. You must be the primary address of the account, and the wallet to link must have a private key."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1004,columnNumber:23},this),ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1016,columnNumber:25},this),ne.jsxDEV("select",{value:B||"",onChange:ye=>he(ye.target.value?parseInt(ye.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ne.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1038,columnNumber:27},this),w.map(ye=>ne.jsxDEV("option",{value:ye,children:["Account ",ye]},ye,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1040,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1025,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1015,columnNumber:23},this),ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1047,columnNumber:25},this),ne.jsxDEV("select",{value:(ge==null?void 0:ge.id)||"",onChange:ye=>{const E=O.find(y=>y.id===ye.target.value);W(E||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[ne.jsxDEV("option",{value:"",children:"-- Select a wallet to link --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1071,columnNumber:27},this),O.filter(ye=>ye.id!==(F==null?void 0:F.id)).map(ye=>ne.jsxDEV("option",{value:ye.id,children:[ye.name," (",ye.address,")"]},ye.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1079,columnNumber:31},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1056,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1046,columnNumber:23},this),ne.jsxDEV("button",{type:"button",onClick:xe,disabled:ue||!B||!ge,style:{padding:"10px 20px",background:ue||!B||!ge?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:ue||!B||!ge?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ue?"Linking...":"Link Wallet"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1085,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1e3,columnNumber:21},this),$==="unlink-other"&&ne.jsxDEV("div",{children:[ne.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1114,columnNumber:23},this),ne.jsxDEV("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink a specific address from an account. You must be the primary address of the account."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1117,columnNumber:23},this),ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1128,columnNumber:25},this),ne.jsxDEV("select",{value:B||"",onChange:ye=>he(ye.target.value?parseInt(ye.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ne.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1150,columnNumber:27},this),w.map(ye=>ne.jsxDEV("option",{value:ye,children:["Account ",ye]},ye,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1152,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1137,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1127,columnNumber:23},this),ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1159,columnNumber:25},this),ne.jsxDEV("input",{type:"text",value:J,onChange:ye=>ve(ye.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1168,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1158,columnNumber:23},this),ne.jsxDEV("button",{type:"button",onClick:Q,disabled:ue||!B||!J.trim(),style:{padding:"10px 20px",background:ue||!B||!J.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:ue||!B||!J.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ue?"Unlinking...":"Unlink Address"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1181,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1113,columnNumber:21},this),$==="unlink-self"&&ne.jsxDEV("div",{children:[ne.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1210,columnNumber:23},this),ne.jsxDEV("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink yourself from an account. This will remove your address from the account."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1213,columnNumber:23},this),ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1224,columnNumber:25},this),ne.jsxDEV("select",{value:B||"",onChange:ye=>he(ye.target.value?parseInt(ye.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ne.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1246,columnNumber:27},this),w.map(ye=>ne.jsxDEV("option",{value:ye,children:["Account ",ye]},ye,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1248,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1233,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1223,columnNumber:23},this),ne.jsxDEV("button",{type:"button",onClick:H,disabled:ue||!B,style:{padding:"10px 20px",background:ue||!B?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:ue||!B?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ue?"Unlinking...":"Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1254,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1209,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:953,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:769,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:733,columnNumber:9},this),ne.jsxDEV("div",{className:"addresses-table-wrapper",children:[ne.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[ne.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1294,columnNumber:11},this),ne.jsxDEV("div",{className:"table-controls",children:ne.jsxDEV("label",{children:["Rows per page:",ne.jsxDEV("select",{value:f,onChange:j,children:[ne.jsxDEV("option",{value:10,children:"10"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1299,columnNumber:17},this),ne.jsxDEV("option",{value:20,children:"20"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1300,columnNumber:17},this),ne.jsxDEV("option",{value:50,children:"50"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1301,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1298,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1296,columnNumber:13},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1295,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1286,columnNumber:9},this),i&&ne.jsxDEV("p",{children:"Loading..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1306,columnNumber:21},this),u&&ne.jsxDEV("p",{className:"error",children:u},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1307,columnNumber:19},this),!i&&!u&&ne.jsxDEV(ne.Fragment,{children:[ne.jsxDEV("table",{className:"addresses-table",children:[ne.jsxDEV("thead",{children:ne.jsxDEV("tr",{children:[ne.jsxDEV("th",{children:"Account ID"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1313,columnNumber:19},this),ne.jsxDEV("th",{children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1314,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1312,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1311,columnNumber:15},this),ne.jsxDEV("tbody",{children:L.map((ye,E)=>ne.jsxDEV("tr",{className:ye.hasPrimaryAddress?"has-primary-address":"",children:[ne.jsxDEV("td",{className:"account-id-cell",children:ne.jsxDEV("div",{className:"account-id-content",children:ye.account_id??"No Account ID"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1326,columnNumber:23},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1325,columnNumber:21},this),ne.jsxDEV("td",{className:"addresses-cell",children:ye.addresses.map((y,b)=>ne.jsxDEV("div",{className:`address-item ${y===ye.primaryAddress?"primary-address":""}`,title:y===ye.primaryAddress?`${y} (Primary)`:y,children:[y,y===ye.primaryAddress&&ne.jsxDEV("span",{className:"primary-badge",children:"Primary"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1345,columnNumber:29},this)]},y,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1332,columnNumber:25},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1330,columnNumber:21},this)]},ye.account_id??`null-${E}`,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1319,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1317,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1310,columnNumber:13},this),ne.jsxDEV("div",{className:"pagination-controls",children:[ne.jsxDEV("button",{type:"button",onClick:me,disabled:m===0,children:"First"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1355,columnNumber:15},this),ne.jsxDEV("button",{type:"button",onClick:te,disabled:m===0,children:"Previous"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1362,columnNumber:15},this),ne.jsxDEV("button",{type:"button",onClick:G,disabled:!g||e.length<f,children:"Next"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1369,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1354,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1309,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1285,columnNumber:7},this),L.length===0&&ne.jsxDEV("div",{className:"no-addresses",children:ne.jsxDEV("div",{className:"no-data-text",children:"No addresses found"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1382,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1381,columnNumber:9},this),ne.jsxDEV("style",{children:`
|
|
371
|
+
@keyframes slideIn {
|
|
372
|
+
from {
|
|
373
|
+
transform: translateX(100%);
|
|
374
|
+
opacity: 0;
|
|
375
|
+
}
|
|
376
|
+
to {
|
|
377
|
+
transform: translateX(0);
|
|
378
|
+
opacity: 1;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
`},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1387,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:517,columnNumber:5},this)}function dw({latestBlock:e,isConnected:r}){const[i,a]=Me.useState(!1),[u,c]=Me.useState(!1),[f,h]=Me.useState(!1),[m,p]=Me.useState(!1),A=()=>{a(!0)},v=()=>{a(!1)},g=()=>{c(!0)},S=()=>{c(!1)},O=()=>{h(!0)},U=()=>{h(!1)},F=()=>{p(!0)},N=()=>{p(!1)};return ne.jsxDEV(ne.Fragment,{children:[ne.jsxDEV("header",{className:"header",children:[ne.jsxDEV("h1",{className:"title",children:"Paima Explorer"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:59,columnNumber:9},this),ne.jsxDEV("div",{className:"header-right",children:[ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Batcher API"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:61,columnNumber:11},this),ne.jsxDEV("button",{type:"button",className:"node-api-button",onClick:g,children:"Paima Engine Node API"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:68,columnNumber:11},this),ne.jsxDEV("button",{type:"button",className:"documentation-button",onClick:O,children:"Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:75,columnNumber:11},this),ne.jsxDEV("button",{type:"button",className:"addresses-button",onClick:F,children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:82,columnNumber:11},this),ne.jsxDEV("div",{className:"block-info",children:[ne.jsxDEV("span",{children:"Latest Block:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:90,columnNumber:13},this),ne.jsxDEV("span",{id:"latest-block",style:{backgroundColor:r?"rgba(76, 175, 80, 0.1)":"rgba(244, 67, 54, 0.1)",color:r?"#4caf50":"#f44336"},children:r?e.toLocaleString():"Connection Error"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:91,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:58,columnNumber:7},this),ne.jsxDEV(cd,{isOpen:i,onClose:v,title:"Batcher API Documentation",className:"api",url:DB,children:ne.jsxDEV("div",{className:"documentation-content",children:ne.jsxDEV("iframe",{src:DB,className:"documentation-iframe",title:"Batcher API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:113,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:106,columnNumber:7},this),ne.jsxDEV(cd,{isOpen:u,onClose:S,title:"Paima Engine Node API Documentation",className:"api",url:BB,children:ne.jsxDEV("div",{className:"documentation-content",children:ne.jsxDEV("iframe",{src:BB,className:"documentation-iframe",title:"Paima Engine Node API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:130,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:129,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:122,columnNumber:7},this),ne.jsxDEV(cd,{className:"docs",isOpen:f,onClose:U,title:"Documentation",url:UB,children:ne.jsxDEV("div",{className:"documentation-content",children:ne.jsxDEV("iframe",{src:UB,className:"documentation-iframe",title:"Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:145,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:138,columnNumber:7},this),ne.jsxDEV(cd,{className:"addresses",isOpen:m,onClose:N,title:"Addresses",children:ne.jsxDEV(Bte,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:154,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:57,columnNumber:5},this)}function Ute(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function _te({block:e,isNew:r=!1}){const[i,a]=Me.useState(!1),u=async()=>{try{await navigator.clipboard.writeText(e.hash),a(!0),setTimeout(()=>a(!1),300),console.log(`📋 Copied to clipboard: ${e.hash}`)}catch(c){console.error("Failed to copy to clipboard:",c)}};return ne.jsxDEV("div",{className:`block-item ${r?"new-block":""}`,onClick:u,style:{backgroundColor:i?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[ne.jsxDEV("div",{className:"block-header",children:[ne.jsxDEV("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:47,columnNumber:9},this),ne.jsxDEV("div",{className:"block-timestamp",children:Ute(e.timestamp)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:46,columnNumber:7},this),ne.jsxDEV("div",{className:"block-hash",children:e.hash},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:38,columnNumber:5},this)}function Mte({title:e,blockTime:r,blocks:i,isMainColumn:a=!1,newBlockIndex:u}){const c=i.filter((f,h,m)=>h===m.findIndex(p=>p.number===f.number&&p.hash===f.hash));return ne.jsxDEV("div",{className:`row ${a?"main-row":""}`,children:[ne.jsxDEV("h2",{className:"row-title",children:[e,r?` - Block Time: ${r}`:""]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:32,columnNumber:7},this),ne.jsxDEV("div",{className:"blocks-list",children:c.length===0?ne.jsxDEV("div",{className:"block-item placeholder",children:"No Blocks Fetched"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:38,columnNumber:13},this):c.map((f,h)=>ne.jsxDEV(_te,{block:f,isNew:u===h},`${h}-${f.number}-${f.hash}`,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:40,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:36,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:31,columnNumber:5},this)}function Pte(e,r){if(r.blockTime)return`${r.blockTime/1e3}s`}function $6({chainConfigs:e,newBlockIndices:r}){return ne.jsxDEV("div",{className:"rows-container",children:Object.entries(e).map(([i,a])=>{const c=(a.type||"").toUpperCase()==="CARDANO"?[]:a.blocks;return ne.jsxDEV(Mte,{title:a.name,blockTime:Pte(i,a),blocks:c,isMainColumn:i==="paima",newBlockIndex:r[i]},i,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:50,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:44,columnNumber:5},this)}function jte(e,r){if(e==null)return"";if(r==="inputs"&&typeof e=="string")try{const i=JSON.parse(e);return`<code style="font-size: 0.75em; background: rgba(0,0,0,0.1); padding: 4px 6px; border-radius: 3px; display: block; white-space: pre-wrap; max-height: 80px; overflow-y: auto;">${JSON.stringify(i,null,1).replace(/\n/g,"<br>")}</code>`}catch{return e.toString()}if(typeof e=="string"&&e.startsWith("0x")&&e.length===42)return`<span class="address-cell" style="overflow: hidden; text-overflow: ellipsis;" title="${e}">${e}</span>`;if(typeof e=="string"&&/^\d+$/.test(e)&&e.length>10){const i=BigInt(e);return r&&r.toLowerCase().includes("balance")?`${(Number(i)/Math.pow(10,18)).toFixed(6)} ETH`:i.toString()}return e.toString()}function Lte({title:e,data:r,pagination:i,onPrev:a,onNext:u,onFirst:c,onLimitChange:f}){const h=r&&r.rows&&r.fields&&r.rows.length>0,m=(r==null?void 0:r.fields)||[],p=(r==null?void 0:r.rows)||[],A=!!i&&i.hasMore&&p.length>=i.limit,v=!!i&&i.currentPage>0,g=!i||!v&&!A;return ne.jsxDEV("div",{className:`primitive-table-container ${p.length>6?"has-scroll":""}`,children:[ne.jsxDEV("h3",{className:"primitive-table-title",children:e},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:84,columnNumber:7},this),h?ne.jsxDEV("table",{className:"primitive-table",children:[ne.jsxDEV("thead",{children:ne.jsxDEV("tr",{children:m.map(S=>ne.jsxDEV("th",{children:S.name.replace(/_/g," ").toUpperCase()},S.name,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:92,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:90,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:89,columnNumber:13},this),ne.jsxDEV("tbody",{children:p.slice().reverse().map((S,O)=>ne.jsxDEV("tr",{children:m.map(U=>{const F=S[U.name],N=jte(F,U.name),D=F?F.toString():"";return ne.jsxDEV("td",{dangerouslySetInnerHTML:{__html:N},title:D.length>30?D:void 0},U.name,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:107,columnNumber:23},this)})},O,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:100,columnNumber:17},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:98,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:88,columnNumber:11},this):ne.jsxDEV("div",{className:"table-error",children:"No data available"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:86,columnNumber:11},this),i&&!g&&ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsxDEV("button",{type:"button",onClick:c,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"First"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:132,columnNumber:13},this),ne.jsxDEV("button",{type:"button",onClick:a,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"Prev"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:146,columnNumber:13},this),ne.jsxDEV("button",{type:"button",onClick:u,disabled:!A,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:A?"white":"#f3f4f6",cursor:A?"pointer":"not-allowed"},children:"Next"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:160,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:131,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:123,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:79,columnNumber:5},this)}function hw({title:e,tables:r,isLoading:i=!1,children:a,pagination:u,onPrev:c,onNext:f,onFirst:h,onLimitChange:m}){const p=Object.entries(r);return ne.jsxDEV("div",{className:"tables-section",children:[ne.jsxDEV("h2",{className:"section-title",children:e},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:51,columnNumber:7},this),a,ne.jsxDEV("div",{className:"primitive-tables",children:p.length===0?ne.jsxDEV("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:56,columnNumber:13},this):p.map(([A,v])=>ne.jsxDEV(Lte,{title:A,data:v,pagination:u==null?void 0:u[A],onPrev:c?()=>c(A):void 0,onNext:f?()=>f(A):void 0,onFirst:h?()=>h(A):void 0,onLimitChange:m?g=>m(A,g):void 0},A,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:62,columnNumber:15},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:50,columnNumber:5},this)}const kte={EVM:0};async function $te(e,r){const i=ui(r.privateKey),a=vd({account:i,chain:xd,transport:Ad()}),u=Date.now().toString(),c=i.address,f=kte.EVM,h=YP(null,u,c,e),m=await a.signMessage({message:h});return{addressType:f,userAddress:c,userSignature:m,gameInput:e,millisecondTimestamp:u}}async function qte(e){const r=await fetch(dP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}async function Hte(e,r){console.log("🚀 Creating signed input for:",e);const i=await $te(e,r);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await qte(i);return console.log("🎉 Batcher response:",a),a}async function zte(){try{const e=await fetch($Z);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.json()}catch(e){throw console.error("Error fetching grammar:",e),e}}function Vte(){const[e,r]=Me.useState(""),[i,a]=Me.useState({}),[u,c]=Me.useState(!1),[f,h]=Me.useState(null),[m,p]=Me.useState([]),[A,v]=Me.useState(!0),[g,S]=Me.useState({}),[O,U]=Me.useState(!0),F=(T,$,z)=>{const V=Date.now(),X={id:V,type:T,title:$,message:z};p(J=>[...J,X]),setTimeout(()=>{p(J=>J.filter(ve=>ve.id!==V))},5e3)};Me.useEffect(()=>{(async()=>{try{U(!0);const $=await zte();S($)}catch{F("error","Grammar Error","Failed to load grammar from server")}finally{U(!1)}})()},[]);const N=Object.keys(g),D=()=>{const T=T8(),$=ui(T),z={privateKey:T,address:$.address};h(z),F("success","Wallet Generated",`New wallet created: ${$.address.slice(0,6)}...${$.address.slice(-4)}`)},M=T=>{p($=>$.filter(z=>z.id!==T))},re=T=>{r(T),a({})},K=(T,$)=>{a(z=>({...z,[T]:$}))},oe=()=>{if(!e)return null;const T=[e],$=g[e];for(const[z,V]of $){const X=i[z];if(X!==void 0&&X!=="")if(V.type==="integer")T.push(parseInt(X)||0);else if(V.type==="object")try{T.push(typeof X=="string"?JSON.parse(X):X)}catch{T.push(X)}else T.push(X)}return T},de=(T,$)=>{const z=i[T]||"";return $.type==="integer"?ne.jsxDEV("input",{type:"number",value:z,onChange:V=>K(T,V.target.value),placeholder:`Enter ${T}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:218,columnNumber:9},this):$.type==="string"?ne.jsxDEV("input",{type:"text",value:z,onChange:V=>K(T,V.target.value),placeholder:`Enter ${T}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:233,columnNumber:9},this):$.type==="object"?ne.jsxDEV("textarea",{value:typeof z=="string"?z:JSON.stringify(z,null,2),onChange:V=>K(T,V.target.value),placeholder:`Enter ${T} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:248,columnNumber:9},this):ne.jsxDEV("input",{type:"text",value:z,onChange:V=>K(T,V.target.value),placeholder:`Enter ${T}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:267,columnNumber:7},this)},ue=async()=>{if(!e){F("error","Missing Type","Please select a type");return}if(!f){F("error","No Wallet","Please generate a wallet first");return}const T=oe();if(!T){F("error","Invalid Input","Failed to build JSON array");return}c(!0);try{const $=JSON.stringify(T);await Hte($,f),F("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch($){F("error","Batcher Error",`Error sending to batcher: ${$ instanceof Error?$.message:"Unknown error"}`)}finally{c(!1)}};return ne.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[ne.jsxDEV("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:m.map(T=>ne.jsxDEV("div",{style:{background:T.type==="success"?"#10b981":T.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[ne.jsxDEV("div",{children:[ne.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:T.title},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:366,columnNumber:15},this),ne.jsxDEV("div",{style:{fontSize:"14px",opacity:.9},children:T.message},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:369,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:365,columnNumber:13},this),ne.jsxDEV("button",{onClick:()=>M(T.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:373,columnNumber:13},this)]},T.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:346,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:334,columnNumber:7},this),ne.jsxDEV("div",{onClick:()=>v(!A),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:A?0:"20px"},children:[ne.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:403,columnNumber:9},this),ne.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:A?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:404,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:392,columnNumber:7},this),!A&&ne.jsxDEV(ne.Fragment,{children:[O&&ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:ne.jsxDEV("div",{style:{textAlign:"center"},children:[ne.jsxDEV("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:431,columnNumber:17},this),ne.jsxDEV("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:434,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:430,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:421,columnNumber:13},this),!O&&ne.jsxDEV(ne.Fragment,{children:[ne.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[ne.jsxDEV("button",{onClick:D,style:{padding:"10px 16px",background:"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontWeight:"600",fontSize:"14px"},children:"Generate new EVM Wallet"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:457,columnNumber:17},this),ne.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[ne.jsxDEV("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:476,columnNumber:19},this),ne.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",background:f?"#e0f2fe":"#fef3c7",padding:"4px 8px",borderRadius:"4px",color:f?"#0369a1":"#92400e",border:`1px solid ${f?"#bae6fd":"#fde68a"}`},children:f?`${f.address.slice(0,6)}...${f.address.slice(-4)}`:"No wallet generated"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:485,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:473,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:445,columnNumber:15},this),ne.jsxDEV("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[ne.jsxDEV("div",{style:{flex:"0 0 300px"},children:ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:516,columnNumber:21},this),ne.jsxDEV("select",{value:e,onChange:T=>re(T.target.value),disabled:u,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[ne.jsxDEV("option",{value:"",children:"-- Select a type --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:536,columnNumber:23},this),N.map(T=>ne.jsxDEV("option",{value:T,children:T.charAt(0).toUpperCase()+T.slice(1)},T,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:538,columnNumber:25},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:525,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:515,columnNumber:19},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:514,columnNumber:17},this),e&&ne.jsxDEV("div",{style:{flex:"1",minWidth:"0"},children:ne.jsxDEV("div",{style:{marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:550,columnNumber:23},this),ne.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:g[e].map(([T,$])=>ne.jsxDEV("div",{style:{display:"flex",flexDirection:"column"},children:[ne.jsxDEV("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[T," (",$.type,"):"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:574,columnNumber:29},this),de(T,$)]},T,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:570,columnNumber:27},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:559,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:549,columnNumber:21},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:548,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:506,columnNumber:15},this),e&&ne.jsxDEV("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[ne.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:595,columnNumber:19},this),ne.jsxDEV("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(oe(),null,2)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:604,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:594,columnNumber:17},this),ne.jsxDEV("button",{onClick:ue,disabled:u||!e||!f,style:{padding:"10px 20px",background:e&&f?"linear-gradient(45deg, #19b17b, #022418)":"#ccc",color:"white",border:"none",borderRadius:"8px",cursor:u||!e||!f?"not-allowed":"pointer",fontWeight:"600",opacity:u?.6:1},children:u?"Sending...":"Send to Batcher"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:620,columnNumber:15},this),ne.jsxDEV("style",{children:`
|
|
382
|
+
@keyframes slideIn {
|
|
383
|
+
from {
|
|
384
|
+
transform: translateX(100%);
|
|
385
|
+
opacity: 0;
|
|
386
|
+
}
|
|
387
|
+
to {
|
|
388
|
+
transform: translateX(0);
|
|
389
|
+
opacity: 1;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
`},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:642,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:443,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:418,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:324,columnNumber:5},this)}function q6({isOpen:e,onClose:r,title:i,tableNames:a,selectedNames:u,onApply:c}){const f=Me.useMemo(()=>new Set(u),[u]),[h,m]=Me.useState(f);Me.useEffect(()=>{m(new Set(u))},[u,e]);const p=S=>{m(O=>{const U=new Set(O);return U.has(S)?U.delete(S):U.add(S),U})},A=()=>m(new Set(a)),v=()=>m(new Set),g=()=>{c(Array.from(h)),r()};return ne.jsxDEV(cd,{isOpen:e,onClose:r,title:i,className:"table-selector",children:ne.jsxDEV("div",{className:"table-selector-content",children:[ne.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:[ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Select All"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:54,columnNumber:11},this),ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Deselect All"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:53,columnNumber:9},this),ne.jsxDEV("ul",{children:a.map(S=>ne.jsxDEV("li",{children:ne.jsxDEV("label",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsxDEV("input",{type:"checkbox",checked:h.has(S),onChange:()=>p(S)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:73,columnNumber:17},this),S]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:72,columnNumber:15},this)},S,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:71,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:69,columnNumber:9},this),ne.jsxDEV("div",{style:{display:"flex",gap:8,marginTop:12},children:[ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:g,children:"Apply"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:84,columnNumber:11},this),ne.jsxDEV("button",{type:"button",className:"documentation-button",onClick:r,children:"Cancel"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:83,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:46,columnNumber:5},this)}function pw(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let H6=1e3;function Gte(){const[e,r]=Me.useState({}),[i,a]=Me.useState(!0),[u,c]=Me.useState(null),[f,h]=Me.useState({}),m=Me.useRef(null),p=Me.useRef(!1),A=Me.useRef(()=>{}),v=Me.useRef(!1),g=Me.useRef(!1),S=Me.useRef(null),O=Me.useCallback(async K=>{if(K!=="Paima")return;const oe=e[K];if(oe&&oe.rpcEndpoint&&oe.type==="EVM"&&!p.current){p.current=!0;try{const de=await fetch(oe.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!de.ok)throw new Error(`HTTP error! status: ${de.status}`);const ue=await de.json();if(ue.error)throw new Error(ue.error.message);const T=parseInt(ue.result,16);r($=>{const z={...$},V=z[K];if(T>(V.latestBlockNumber||0)&&(V.previousLatestBlockNumber=V.latestBlockNumber||0,V.latestBlockNumber=T,V.isConnected=!0,V.previousLatestBlockNumber>0)){const X=pw(),ve={number:T,hash:X,timestamp:new Date};V.blocks.some(he=>he.number===T&&he.hash===X)||(V.blocks.unshift(ve),V.blocks.length>20&&(V.blocks=V.blocks.slice(0,20)),h(he=>({...he,[K]:0})),setTimeout(()=>{h(he=>({...he,[K]:void 0}))},500))}return z})}catch(de){console.error(`Error fetching latest block for ${K}:`,de),r(ue=>({...ue,[K]:{...ue[K],isConnected:!1}}))}finally{p.current=!1}}},[e]);Me.useEffect(()=>{A.current=O},[O]);const U=Me.useCallback((K,oe=e)=>{const de=oe[K];if(!de)return;const ue=de.rpcEndpoint?de.latestBlockNumber||0:de.currentBlock++,T=pw(),z={number:ue,hash:T,timestamp:new Date};r(V=>{const X={...V},J=X[K];return J.blocks.some(B=>B.number===ue)||(J.blocks.unshift(z),J.blocks.length>20&&(J.blocks=J.blocks.slice(0,20))),X}),h(V=>({...V,[K]:0})),setTimeout(()=>{h(V=>({...V,[K]:void 0}))},250)},[e]),F=Me.useCallback(async()=>{a(!0),c(null);try{const K=await jZ();H6=K.Paima.blockTime??1e3,r(K),console.log("✅ Loaded chain configs from API:",K)}catch(K){const oe=K instanceof Error?K.message:"Unknown error";c(oe),console.error("❌ Failed to load chain configs, using fallback:",oe),r(cP)}finally{a(!1)}},[]),N=Me.useCallback(K=>{r(oe=>{const de={...oe};return Object.keys(K).forEach(ue=>{const T=de[ue];if(T&&!T.rpcEndpoint){const $=[];for(let z=-5;z<0;z++){const V=T.currentBlock+z,X=pw(),J=new Date(Date.now()+z*(T.blockTime??1e3));$.push({number:V,hash:X,timestamp:J})}T.blocks=$.reverse(),T.currentBlock=T.currentBlock+1}}),de})},[]);Me.useEffect(()=>{F()},[F]),Me.useEffect(()=>{i||v.current||Object.keys(e).length!==0&&(N(e),v.current=!0)},[i]),Me.useEffect(()=>{if(i||g.current||Object.keys(e).length===0)return;const K=[];return Object.keys(e).forEach(oe=>{const de=e[oe];if(!de.rpcEndpoint){const ue=setInterval(()=>{U(oe)},de.blockTime);K.push(ue)}}),g.current=!0,()=>{K.forEach(oe=>clearInterval(oe)),g.current=!1}},[i]),Me.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!i&&m.current==null)return A.current("Paima"),m.current=setInterval(()=>{A.current("Paima")},H6),()=>{m.current!=null&&(clearInterval(m.current),m.current=null)}},[i]),Me.useEffect(()=>{if(i||S.current!=null)return;const K=()=>{const ue=Object.entries(e).filter(([$])=>$!=="Paima");let T=Number.POSITIVE_INFINITY;for(const[,$]of ue)typeof $.blockTime=="number"&&$.blockTime>0&&$.blockTime<T&&(T=$.blockTime);return Number.isFinite(T)?Math.max(1e3,T):1e4},oe=async()=>{var ue,T,$,z,V,X,J,ve,B;try{const he=await fetch(LZ);if(!he.ok)throw new Error(`block-heights HTTP ${he.status}`);const ge=await he.json(),W=[];for(const[_,ie]of Object.entries(e)){if(_==="Paima")continue;const le=ie.protocolName;if(!le)continue;const ee=ge.find(k=>k.protocol_name===le);if(!(!ee||ee.synced_page==null))try{const k=await fetch(`${VZ}/${encodeURIComponent(le)}/blocks?page=${ee.synced_page}`);if(!k.ok)throw new Error(`blocks HTTP ${k.status}`);const H=await k.json(),Q=(ue=H==null?void 0:H.blocks)==null?void 0:ue[0];if(!Q)continue;let xe=null,Ae=null,L=null;if(ie.type==="EVM")xe=Number(Q.number),Ae=Q.hash,L=Q.timestamp!=null?Number(Q.timestamp)*1e3:null;else if(ie.type==="MIDNIGHT"){const w=(T=Q==null?void 0:Q.header)==null?void 0:T.number,j=w?parseInt(w,16):void 0;xe=Number(Q.height??(j!==void 0?j:void 0)),Ae=Q.hash??(($=Q.header)==null?void 0:$.parentHash)??"",L=null}else ie.type==="CARDANO"?(xe=Number(((V=(z=Q.block)==null?void 0:z.header)==null?void 0:V.height)??((X=Q.header)==null?void 0:X.height)),Ae=((ve=(J=Q.block)==null?void 0:J.header)==null?void 0:ve.hash)??((B=Q.header)==null?void 0:B.hash)??"",L=Number(Q.timestamp??0)):(xe=Number(Q.blockNumber??ee.synced_page),Ae=Q.hash??"",L=Q.timestamp!=null?Number(Q.timestamp):null);xe!=null&&!Number.isNaN(xe)&&W.push({key:_,block:{number:xe,hash:Ae??"",timestamp:L?new Date(L):new Date}})}catch{}}W.length>0&&r(_=>{const ie={..._};for(const le of W){const ee=ie[le.key];if(!ee||!le.block)continue;ee.blocks.some(H=>H.number===le.block.number)||(ee.blocks.unshift(le.block),ee.blocks.length>20&&(ee.blocks=ee.blocks.slice(0,20)))}return ie})}catch{}};oe();const de=K();return console.log(`[Explorer] Engine block-heights polling interval resolved to ${de} ms`),S.current=setInterval(oe,de),()=>{S.current!=null&&(clearInterval(S.current),S.current=null)}},[i]);const D=e.Paima,M=(D==null?void 0:D.latestBlockNumber)||0,re=(D==null?void 0:D.isConnected)||!1;return{chainConfigs:e,newBlockIndices:f,latestBlock:M,isConnected:re,isLoadingConfig:i,configError:u}}function Qte(){const[r,i]=Me.useState([]),[a,u]=Me.useState([]),[c,f]=Me.useState({}),[h,m]=Me.useState({}),[p,A]=Me.useState({}),[v,g]=Me.useState({}),[S,O]=Me.useState({}),[U,F]=Me.useState({}),[N,D]=Me.useState({}),M=Me.useRef(!1),re=Me.useRef([]),K=Me.useRef([]),oe=Me.useRef({}),de=Me.useRef({}),ue=Me.useRef({}),T=Me.useRef({}),$=Me.useRef(new Set),z=Me.useRef(new Set);Me.useEffect(()=>{re.current=r},[r]),Me.useEffect(()=>{K.current=a},[a]),Me.useEffect(()=>{oe.current=U},[U]),Me.useEffect(()=>{de.current=N},[N]),Me.useEffect(()=>{ue.current=v},[v]),Me.useEffect(()=>{T.current=S},[S]);const V=Me.useCallback(L=>L.map(w=>({name:w.column_name,dataTypeID:25})),[]),X=Me.useCallback((L,w,j)=>{const G=Array.isArray(L)?L:[];let te=[];return j&&j.length>0?te=V(j):G.length>0&&(te=Object.keys(G[0]).map(me=>({name:me,dataTypeID:25}))),{command:"SELECT",rowCount:G.length,rows:G,fields:te}},[V]),J=Me.useCallback((L,w,j)=>{const G=Array.isArray(L)?L:[];let te=[];return j&&j.length>0?te=V(j):G.length>0&&(te=Object.keys(G[0]).map(me=>({name:me,dataTypeID:25}))),{command:"SELECT",rowCount:G.length,rows:G,fields:te}},[V]),ve=Me.useCallback(async L=>{try{if($.current.has(L))return null;const w=oe.current[L];if(w)return w;const j=await fetch(`${HZ}/${L}`);if(!j.ok){if(j.status===404)return console.log(`🚫 Schema for primitive ${L} not found (404)`),$.current.add(L),null;throw new Error(`HTTP error! status: ${j.status}`)}const G=await j.json();return console.log(`📋 Fetched schema for ${L}:`,G),G}catch(w){return console.error(`Error fetching schema for primitive ${L}:`,w),null}},[]),B=Me.useCallback(async L=>{try{const w=await fetch(`${zZ}/${L}`);if(!w.ok){if(w.status===404)return console.log(`🚫 Schema for table ${L} not found (404)`),null;throw new Error(`HTTP error! status: ${w.status}`)}const j=await w.json();return console.log(`📋 Fetched schema for ${L}:`,j),j}catch(w){return console.error(`Error fetching schema for table ${L}:`,w),null}},[]),he=Me.useCallback(async()=>{try{const L=await fetch(fP);if(!L.ok)throw new Error(`HTTP error! status: ${L.status}`);const w=await L.json();return console.log("📋 Fetched config:",w),w}catch(L){return console.error("Error fetching config:",L),null}},[]),ge=Me.useCallback(async()=>{try{const L=await fetch(NB);if(!L.ok)throw new Error(`HTTP error! status: ${L.status}`);const w=await L.json();return console.log("📋 Fetched user table names:",w),w.map(j=>j.table_name)}catch(L){return console.error("Error fetching user table names:",L),[]}},[]),W=Me.useCallback(L=>{const w=[];return!L||!Array.isArray(L)?w:(L.forEach(j=>{j.primitives&&Array.isArray(j.primitives)&&j.primitives.forEach(G=>{G.primitive&&G.primitive.name&&G.primitive.type!=="evm-rpc-paima-l2"&&w.push(G.primitive.name)})}),[...new Set(w)])},[]),_=Me.useCallback(async(L,w,j)=>{try{if(z.current.has(L))return null;const G=j??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},te=new URL(`${kZ}/${L}`);te.searchParams.set("limit",String(G.limit));const me=G.cursors[G.currentPage];me&&te.searchParams.set("after",me);const ye=await fetch(te.toString());if(!ye.ok){if(ye.status===404)return console.log(`🚫 Primitive ${L} not found (404)`),z.current.add(L),null;throw new Error(`HTTP error! status: ${ye.status}`)}const E=await ye.json(),y=Array.isArray(E)?E:E.data??[],b=E.pagination;return b&&g(I=>{const Y=[...I[L].cursors];return b.nextCursor&&Y.length===I[L].currentPage+1&&Y.push(b.nextCursor),{...I,[L]:{...I[L],hasMore:b.hasMore,cursors:Y}}}),console.log(`📊 Fetched data for ${L}:`,y),X(y,L,w)}catch(G){return console.error(`Error fetching primitive data for ${L}:`,G),null}},[X]),ie=Me.useCallback(async(L,w,j)=>{try{const G=j??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},te=new URL(`${NB}/${L}`);te.searchParams.set("limit",String(G.limit));const me=G.cursors[G.currentPage];me&&te.searchParams.set("after",me);const ye=await fetch(te.toString());if(!ye.ok){if(ye.status===404)return console.log(`🚫 Table ${L} not found (404)`),null;throw new Error(`HTTP error! status: ${ye.status}`)}const E=await ye.json();console.log(`📊 Fetched table data for ${L}:`,E);const y=E.data??[],b=E.pagination;return b&&O(I=>{const Y=[...I[L].cursors];return b.nextCursor&&Y.length===I[L].currentPage+1&&Y.push(b.nextCursor),{...I,[L]:{...I[L],hasMore:b.hasMore,cursors:Y}}}),J(y,L,w)}catch(G){return console.error(`Error fetching table data for ${L}:`,G),null}},[J]),le=Me.useCallback(async()=>{try{const L=await fetch(qZ);if(!L.ok)throw new Error(`HTTP error! status: ${L.status}`);const j=(await L.json()).data??[];console.log("📊 Fetched scheduled data:",j);const G=[{name:"id",dataTypeID:23},{name:"from_address",dataTypeID:25},{name:"input_data",dataTypeID:25},{name:"primitive_name",dataTypeID:25},{name:"caip2",dataTypeID:25},{name:"contract_address",dataTypeID:25},{name:"origin_tx_hash",dataTypeID:25},{name:"future_block_height",dataTypeID:23},{name:"future_ms_timestamp",dataTypeID:25}];return{command:"SELECT",rowCount:j.length,rows:j,fields:G}}catch(L){return console.error("Error fetching scheduled data:",L),null}},[]),ee=Me.useCallback(async()=>{if(!(re.current.length===0||!M.current))try{const L=re.current.map(async j=>{const G=oe.current[j],te=ue.current[j],me=await _(j,G,te);return{primitiveName:j,data:me}}),w=await Promise.all(L);w.length>0&&f(j=>{const G={...j};return w.forEach(({primitiveName:te,data:me})=>{me!==null&&(G[te]=me)}),G})}catch(L){console.error("Error refreshing primitive data:",L)}},[_]),k=Me.useCallback(async()=>{if(!(!M.current||K.current.length===0))try{const L=K.current.map(async j=>{const G=de.current[j],te=T.current[j],me=await ie(j,G,te);return{tableName:j,data:me}}),w=await Promise.all(L);w.length>0&&m(j=>{const G={...j};return w.forEach(({tableName:te,data:me})=>{me!==null&&(G[te]=me)}),G})}catch(L){console.error("Error refreshing user table data:",L)}},[ie]),H=Me.useCallback(async()=>{if(M.current)try{const L=await le();L!==null&&A({scheduled_data:L})}catch(L){console.error("Error refreshing scheduled data:",L)}},[le]),Q=Me.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const L=await he();if(!L){console.error("Failed to fetch config");return}const w=W(L);if(i(w),console.log("📊 Found primitives:",w),w.length===0){console.log("No primitives found in config");return}const j=w.map(async y=>{const b=await ve(y);return{primitiveName:y,schema:b}}),G=await Promise.all(j),te={};G.forEach(({primitiveName:y,schema:b})=>{b&&(te[y]=b)}),F(te),g(y=>{const b={...y};return w.forEach(I=>{b[I]||(b[I]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),b});const me=w.map(async y=>{const b=te[y],I=ue.current[y]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},Y=await _(y,b,I);return{primitiveName:y,data:Y}}),ye=await Promise.all(me),E={};ye.forEach(({primitiveName:y,data:b})=>{E[y]=b}),f(E),console.log("✅ Primitive tables initialized")}catch(L){console.error("Error initializing primitive tables:",L)}},[he,W,ve,_]),xe=Me.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const L=await ge();if(u(L),L.length===0){console.log("No user tables found");return}const w=L.map(async E=>{const y=await B(E);return{tableName:E,schema:y}}),j=await Promise.all(w),G={};j.forEach(({tableName:E,schema:y})=>{y&&(G[E]=y)}),D(G),O(E=>{const y={...E};return L.forEach(b=>{y[b]||(y[b]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),y});const te=L.map(async E=>{const y=G[E],b=T.current[E]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},I=await ie(E,y||void 0,b);return{tableName:E,data:I}}),me=await Promise.all(te),ye={};me.forEach(({tableName:E,data:y})=>{ye[E]=y}),m(ye),console.log("✅ State machine tables initialized")}catch(L){console.error("Error initializing state machine tables:",L)}},[B,ie,ge]),Ae=Me.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const L=await le();A({scheduled_data:L}),console.log("✅ Scheduled data initialized")}catch(L){console.error("Error initializing scheduled data:",L)}},[le]);return Me.useEffect(()=>{let L,w,j;return(async()=>{await Promise.all([Q(),xe(),Ae()]),M.current=!0,L=setInterval(()=>{ee()},5e3),setTimeout(()=>{k(),w=setInterval(()=>{k()},5e3)},1500),setTimeout(()=>{H(),j=setInterval(()=>{H()},5e3)},3e3)})(),()=>{L&&clearInterval(L),w&&clearInterval(w),j&&clearInterval(j)}},[]),{primitiveData:c,userTableData:h,scheduledData:p,primitiveNames:r,userTableNames:a,refreshPrimitiveData:ee,refreshUserTableData:k,refreshScheduledData:H,primitivePagination:v,userTablePagination:S,setPrimitiveLimit:async(L,w)=>{const j={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};g(me=>({...me,[L]:j}));const G=oe.current[L],te=await _(L,G,j);f(me=>({...me,[L]:te}))},nextPrimitivePage:async L=>{const w=ue.current[L];if(!w||!w.hasMore)return;const j={...w,currentPage:w.currentPage+1};g(me=>({...me,[L]:j}));const G=oe.current[L],te=await _(L,G,j);f(me=>({...me,[L]:te}))},prevPrimitivePage:async L=>{const w=ue.current[L];if(!w||w.currentPage===0)return;const j={...w,currentPage:w.currentPage-1};g(me=>({...me,[L]:j}));const G=oe.current[L],te=await _(L,G,j);f(me=>({...me,[L]:te}))},firstPrimitivePage:async L=>{const w=ue.current[L];if(!w)return;const j={...w,cursors:[void 0],currentPage:0};g(me=>({...me,[L]:j}));const G=oe.current[L],te=await _(L,G,j);f(me=>({...me,[L]:te}))},setUserTableLimit:async(L,w)=>{const j={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};O(me=>({...me,[L]:j}));const G=de.current[L],te=await ie(L,G,j);m(me=>({...me,[L]:te}))},nextUserTablePage:async L=>{const w=T.current[L];if(!w||!w.hasMore)return;const j={...w,currentPage:w.currentPage+1};O(me=>({...me,[L]:j}));const G=de.current[L],te=await ie(L,G,j);m(me=>({...me,[L]:te}))},prevUserTablePage:async L=>{const w=T.current[L];if(!w||w.currentPage===0)return;const j={...w,currentPage:w.currentPage-1};O(me=>({...me,[L]:j}));const G=de.current[L],te=await ie(L,G,j);m(me=>({...me,[L]:te}))},firstUserTablePage:async L=>{const w=T.current[L];if(!w)return;const j={...w,cursors:[void 0],currentPage:0};O(me=>({...me,[L]:j}));const G=de.current[L],te=await ie(L,G,j);m(me=>({...me,[L]:te}))}}}function Yte(){const[e,r]=Me.useState([]),[i,a]=Me.useState([]),[u,c]=Me.useState(!1),[f,h]=Me.useState(!1),{chainConfigs:m,newBlockIndices:p,latestBlock:A,isConnected:v,isLoadingConfig:g,configError:S}=Gte(),{primitiveData:O,userTableData:U,scheduledData:F,primitiveNames:N,userTableNames:D,primitivePagination:M,userTablePagination:re,nextPrimitivePage:K,prevPrimitivePage:oe,firstPrimitivePage:de,setPrimitiveLimit:ue,nextUserTablePage:T,prevUserTablePage:$,firstUserTablePage:z,setUserTableLimit:V}=Qte();return Me.useEffect(()=>{N.length>0&&e.length===0&&r(N)},[N,e]),Me.useEffect(()=>{D.length>0&&i.length===0&&a([D[0]])},[D,i]),Me.useEffect(()=>{const X=J=>{console.error("Unhandled promise rejection:",J.reason)};return globalThis.addEventListener("unhandledrejection",X),()=>{globalThis.removeEventListener("unhandledrejection",X)}},[]),Me.useEffect(()=>{const X=J=>{J.key==="r"&&J.ctrlKey&&(J.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",X),()=>{document.removeEventListener("keydown",X)}},[]),g?ne.jsxDEV("div",{className:"container",children:[ne.jsxDEV(dw,{latestBlock:A,isConnected:v},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:97,columnNumber:9},this),ne.jsxDEV("div",{style:{padding:"20px",textAlign:"center",fontSize:"18px",color:"#667eea"},children:"🔄 Loading chain configurations..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:96,columnNumber:7},this):S?ne.jsxDEV("div",{className:"container",children:[ne.jsxDEV(dw,{latestBlock:A,isConnected:v},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:119,columnNumber:9},this),ne.jsxDEV("div",{style:{padding:"20px",textAlign:"center",fontSize:"16px",color:"#f44336",backgroundColor:"rgba(244, 67, 54, 0.1)",border:"1px solid rgba(244, 67, 54, 0.3)",borderRadius:"8px",margin:"20px"},children:["⚠️ Failed to load chain configurations: ",S,ne.jsxDEV("br",{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:136,columnNumber:11},this),ne.jsxDEV("small",{style:{color:"#666",marginTop:"8px",display:"block"},children:"Using fallback configuration. Some features may not work correctly."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:123,columnNumber:9},this),ne.jsxDEV($6,{chainConfigs:m,newBlockIndices:p},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:141,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:118,columnNumber:7},this):ne.jsxDEV("div",{className:"container",children:[ne.jsxDEV(dw,{latestBlock:A,isConnected:v},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:151,columnNumber:7},this),ne.jsxDEV($6,{chainConfigs:m,newBlockIndices:p},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:156,columnNumber:7},this),ne.jsxDEV(hw,{title:"Primitive Data",tables:Object.fromEntries(Object.entries(O).filter(([X])=>e.includes(X))),pagination:M,onPrev:X=>oe(X),onNext:X=>K(X),onFirst:X=>de(X),onLimitChange:(X,J)=>ue(X,J),children:[ne.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:()=>c(!0),children:"Select Primitives"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:175,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:174,columnNumber:9},this),ne.jsxDEV(q6,{isOpen:u,onClose:()=>c(!1),title:"Select Primitives",tableNames:N,selectedNames:e,onApply:X=>r(X.length?X:[N[0]].filter(Boolean))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:161,columnNumber:7},this),ne.jsxDEV(hw,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries(U).filter(([X])=>i.includes(X))),pagination:re,onPrev:X=>$(X),onNext:X=>T(X),onFirst:X=>z(X),onLimitChange:(X,J)=>V(X,J),children:[ne.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:ne.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:()=>h(!0),children:"Select Tables"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:209,columnNumber:9},this),ne.jsxDEV(q6,{isOpen:f,onClose:()=>h(!1),title:"Select Custom Tables",tableNames:D,selectedNames:i,onApply:X=>a(X.length?X:[D[0]].filter(Boolean))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:218,columnNumber:9},this),ne.jsxDEV(Vte,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:229,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:196,columnNumber:7},this),ne.jsxDEV(hw,{title:"Scheduled Data",tables:F},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:150,columnNumber:5},this)}Rk.createRoot(document.getElementById("root")).render(ne.jsxDEV(Me.StrictMode,{children:ne.jsxDEV(Yte,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/main.tsx",lineNumber:7,columnNumber:3},void 0));
|