@paimaexample/explorer 0.3.62 → 0.3.64
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.
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
var jx=e=>{throw TypeError(e)};var k0=(e,t,i)=>t.has(e)||jx("Cannot "+i);var lt=(e,t,i)=>(k0(e,t,"read from private field"),i?i.call(e):t.get(e)),Mi=(e,t,i)=>t.has(e)?jx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),So=(e,t,i,a)=>(k0(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),st=(e,t,i)=>(k0(e,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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 qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G0={exports:{}},Ku={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Nx;function f3(){if(Nx)return Ku;Nx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,u,c){var f=null;if(c!==void 0&&(f=""+c),u.key!==void 0&&(f=""+u.key),"key"in u){c={};for(var d in u)d!=="key"&&(c[d]=u[d])}else c=u;return u=c.ref,{$$typeof:e,type:a,key:f,ref:u!==void 0?u:null,props:c}}return Ku.Fragment=t,Ku.jsx=i,Ku.jsxs=i,Ku}var _x;function d3(){return _x||(_x=1,G0.exports=f3()),G0.exports}var X=d3(),K0={exports:{}},Y0={},Yu={},Px;function h3(){if(Px)return Yu;Px=1,Yu.byteLength=d,Yu.toByteArray=h,Yu.fromByteArray=I;for(var e=[],t=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)e[u]=a[u],t[a.charCodeAt(u)]=u;t[45]=62,t[95]=63;function f(C){var B=C.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var $=C.indexOf("=");$===-1&&($=B);var O=$===B?0:4-$%4;return[$,O]}function d(C){var B=f(C),$=B[0],O=B[1];return($+O)*3/4-O}function m(C,B,$){return(B+$)*3/4-$}function h(C){var B,$=f(C),O=$[0],U=$[1],R=new i(m(C,O,U)),T=0,L=U>0?O-4:O,k;for(k=0;k<L;k+=4)B=t[C.charCodeAt(k)]<<18|t[C.charCodeAt(k+1)]<<12|t[C.charCodeAt(k+2)]<<6|t[C.charCodeAt(k+3)],R[T++]=B>>16&255,R[T++]=B>>8&255,R[T++]=B&255;return U===2&&(B=t[C.charCodeAt(k)]<<2|t[C.charCodeAt(k+1)]>>4,R[T++]=B&255),U===1&&(B=t[C.charCodeAt(k)]<<10|t[C.charCodeAt(k+1)]<<4|t[C.charCodeAt(k+2)]>>2,R[T++]=B>>8&255,R[T++]=B&255),R}function x(C){return e[C>>18&63]+e[C>>12&63]+e[C>>6&63]+e[C&63]}function v(C,B,$){for(var O,U=[],R=B;R<$;R+=3)O=(C[R]<<16&16711680)+(C[R+1]<<8&65280)+(C[R+2]&255),U.push(x(O));return U.join("")}function I(C){for(var B,$=C.length,O=$%3,U=[],R=16383,T=0,L=$-O;T<L;T+=R)U.push(v(C,T,T+R>L?L:T+R));return O===1?(B=C[$-1],U.push(e[B>>2]+e[B<<4&63]+"==")):O===2&&(B=(C[$-2]<<8)+C[$-1],U.push(e[B>>10]+e[B>>4&63]+e[B<<2&63]+"=")),U.join("")}return Yu}var wf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var $x;function p3(){return $x||($x=1,wf.read=function(e,t,i,a,u){var c,f,d=u*8-a-1,m=(1<<d)-1,h=m>>1,x=-7,v=i?u-1:0,I=i?-1:1,C=e[t+v];for(v+=I,c=C&(1<<-x)-1,C>>=-x,x+=d;x>0;c=c*256+e[t+v],v+=I,x-=8);for(f=c&(1<<-x)-1,c>>=-x,x+=a;x>0;f=f*256+e[t+v],v+=I,x-=8);if(c===0)c=1-h;else{if(c===m)return f?NaN:(C?-1:1)*(1/0);f=f+Math.pow(2,a),c=c-h}return(C?-1:1)*f*Math.pow(2,c-a)},wf.write=function(e,t,i,a,u,c){var f,d,m,h=c*8-u-1,x=(1<<h)-1,v=x>>1,I=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=a?0:c-1,B=a?1:-1,$=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,f=x):(f=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-f))<1&&(f--,m*=2),f+v>=1?t+=I/m:t+=I*Math.pow(2,1-v),t*m>=2&&(f++,m/=2),f+v>=x?(d=0,f=x):f+v>=1?(d=(t*m-1)*Math.pow(2,u),f=f+v):(d=t*Math.pow(2,v-1)*Math.pow(2,u),f=0));u>=8;e[i+C]=d&255,C+=B,d/=256,u-=8);for(f=f<<u|d,h+=u;h>0;e[i+C]=f&255,C+=B,f/=256,h-=8);e[i+C-B]|=$*128}),wf}/*!
|
|
10
|
-
* The buffer module from node.js, for the browser.
|
|
11
|
-
*
|
|
12
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
13
|
-
* @license MIT
|
|
14
|
-
*/var Lx;function y3(){return Lx||(Lx=1,(function(e){var t=h3(),i=p3(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=d,e.SlowBuffer=R,e.INSPECT_MAX_BYTES=50;var u=2147483647;e.kMaxLength=u,d.TYPED_ARRAY_SUPPORT=c(),!d.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 A=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(A,y),A.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function f(A){if(A>u)throw new RangeError('The value "'+A+'" is invalid for option "size"');var y=new Uint8Array(A);return Object.setPrototypeOf(y,d.prototype),y}function d(A,y,g){if(typeof A=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(A)}return m(A,y,g)}d.poolSize=8192;function m(A,y,g){if(typeof A=="string")return I(A,y);if(ArrayBuffer.isView(A))return B(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(V(A,ArrayBuffer)||A&&V(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(V(A,SharedArrayBuffer)||A&&V(A.buffer,SharedArrayBuffer)))return $(A,y,g);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=A.valueOf&&A.valueOf();if(w!=null&&w!==A)return d.from(w,y,g);var J=O(A);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return d.from(A[Symbol.toPrimitive]("string"),y,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}d.from=function(A,y,g){return m(A,y,g)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function h(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function x(A,y,g){return h(A),A<=0?f(A):y!==void 0?typeof g=="string"?f(A).fill(y,g):f(A).fill(y):f(A)}d.alloc=function(A,y,g){return x(A,y,g)};function v(A){return h(A),f(A<0?0:U(A)|0)}d.allocUnsafe=function(A){return v(A)},d.allocUnsafeSlow=function(A){return v(A)};function I(A,y){if((typeof y!="string"||y==="")&&(y="utf8"),!d.isEncoding(y))throw new TypeError("Unknown encoding: "+y);var g=T(A,y)|0,w=f(g),J=w.write(A,y);return J!==g&&(w=w.slice(0,J)),w}function C(A){for(var y=A.length<0?0:U(A.length)|0,g=f(y),w=0;w<y;w+=1)g[w]=A[w]&255;return g}function B(A){if(V(A,Uint8Array)){var y=new Uint8Array(A);return $(y.buffer,y.byteOffset,y.byteLength)}return C(A)}function $(A,y,g){if(y<0||A.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<y+(g||0))throw new RangeError('"length" is outside of buffer bounds');var w;return y===void 0&&g===void 0?w=new Uint8Array(A):g===void 0?w=new Uint8Array(A,y):w=new Uint8Array(A,y,g),Object.setPrototypeOf(w,d.prototype),w}function O(A){if(d.isBuffer(A)){var y=U(A.length)|0,g=f(y);return g.length===0||A.copy(g,0,0,y),g}if(A.length!==void 0)return typeof A.length!="number"||ae(A.length)?f(0):C(A);if(A.type==="Buffer"&&Array.isArray(A.data))return C(A.data)}function U(A){if(A>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return A|0}function R(A){return+A!=A&&(A=0),d.alloc(+A)}d.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==d.prototype},d.compare=function(y,g){if(V(y,Uint8Array)&&(y=d.from(y,y.offset,y.byteLength)),V(g,Uint8Array)&&(g=d.from(g,g.offset,g.byteLength)),!d.isBuffer(y)||!d.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===g)return 0;for(var w=y.length,J=g.length,ye=0,ve=Math.min(w,J);ye<ve;++ye)if(y[ye]!==g[ye]){w=y[ye],J=g[ye];break}return w<J?-1:J<w?1:0},d.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}},d.concat=function(y,g){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return d.alloc(0);var w;if(g===void 0)for(g=0,w=0;w<y.length;++w)g+=y[w].length;var J=d.allocUnsafe(g),ye=0;for(w=0;w<y.length;++w){var ve=y[w];if(V(ve,Uint8Array))ye+ve.length>J.length?d.from(ve).copy(J,ye):Uint8Array.prototype.set.call(J,ve,ye);else if(d.isBuffer(ve))ve.copy(J,ye);else throw new TypeError('"list" argument must be an Array of Buffers');ye+=ve.length}return J};function T(A,y){if(d.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||V(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var g=A.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&g===0)return 0;for(var J=!1;;)switch(y){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return ge(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return D(A).length;default:if(J)return w?-1:ge(A).length;y=(""+y).toLowerCase(),J=!0}}d.byteLength=T;function L(A,y,g){var w=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,y>>>=0,g<=y))return"";for(A||(A="utf8");;)switch(A){case"hex":return W(this,y,g);case"utf8":case"utf-8":return fe(this,y,g);case"ascii":return ce(this,y,g);case"latin1":case"binary":return me(this,y,g);case"base64":return ee(this,y,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,y,g);default:if(w)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),w=!0}}d.prototype._isBuffer=!0;function k(A,y,g){var w=A[y];A[y]=A[g],A[g]=w}d.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 g=0;g<y;g+=2)k(this,g,g+1);return this},d.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 g=0;g<y;g+=4)k(this,g,g+3),k(this,g+1,g+2);return this},d.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 g=0;g<y;g+=8)k(this,g,g+7),k(this,g+1,g+6),k(this,g+2,g+5),k(this,g+3,g+4);return this},d.prototype.toString=function(){var y=this.length;return y===0?"":arguments.length===0?fe(this,0,y):L.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(y){if(!d.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:d.compare(this,y)===0},d.prototype.inspect=function(){var y="",g=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(y+=" ... "),"<Buffer "+y+">"},a&&(d.prototype[a]=d.prototype.inspect),d.prototype.compare=function(y,g,w,J,ye){if(V(y,Uint8Array)&&(y=d.from(y,y.offset,y.byteLength)),!d.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(g===void 0&&(g=0),w===void 0&&(w=y?y.length:0),J===void 0&&(J=0),ye===void 0&&(ye=this.length),g<0||w>y.length||J<0||ye>this.length)throw new RangeError("out of range index");if(J>=ye&&g>=w)return 0;if(J>=ye)return-1;if(g>=w)return 1;if(g>>>=0,w>>>=0,J>>>=0,ye>>>=0,this===y)return 0;for(var ve=ye-J,je=w-g,re=Math.min(ve,je),ie=this.slice(J,ye),we=y.slice(g,w),Se=0;Se<re;++Se)if(ie[Se]!==we[Se]){ve=ie[Se],je=we[Se];break}return ve<je?-1:je<ve?1:0};function Y(A,y,g,w,J){if(A.length===0)return-1;if(typeof g=="string"?(w=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ae(g)&&(g=J?0:A.length-1),g<0&&(g=A.length+g),g>=A.length){if(J)return-1;g=A.length-1}else if(g<0)if(J)g=0;else return-1;if(typeof y=="string"&&(y=d.from(y,w)),d.isBuffer(y))return y.length===0?-1:oe(A,y,g,w,J);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(A,y,g):Uint8Array.prototype.lastIndexOf.call(A,y,g):oe(A,[y],g,w,J);throw new TypeError("val must be string, number or Buffer")}function oe(A,y,g,w,J){var ye=1,ve=A.length,je=y.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(A.length<2||y.length<2)return-1;ye=2,ve/=2,je/=2,g/=2}function re(_e,Le){return ye===1?_e[Le]:_e.readUInt16BE(Le*ye)}var ie;if(J){var we=-1;for(ie=g;ie<ve;ie++)if(re(A,ie)===re(y,we===-1?0:ie-we)){if(we===-1&&(we=ie),ie-we+1===je)return we*ye}else we!==-1&&(ie-=ie-we),we=-1}else for(g+je>ve&&(g=ve-je),ie=g;ie>=0;ie--){for(var Se=!0,Ue=0;Ue<je;Ue++)if(re(A,ie+Ue)!==re(y,Ue)){Se=!1;break}if(Se)return ie}return-1}d.prototype.includes=function(y,g,w){return this.indexOf(y,g,w)!==-1},d.prototype.indexOf=function(y,g,w){return Y(this,y,g,w,!0)},d.prototype.lastIndexOf=function(y,g,w){return Y(this,y,g,w,!1)};function te(A,y,g,w){g=Number(g)||0;var J=A.length-g;w?(w=Number(w),w>J&&(w=J)):w=J;var ye=y.length;w>ye/2&&(w=ye/2);for(var ve=0;ve<w;++ve){var je=parseInt(y.substr(ve*2,2),16);if(ae(je))return ve;A[g+ve]=je}return ve}function F(A,y,g,w){return z(ge(y,A.length-g),A,g,w)}function _(A,y,g,w){return z(q(y),A,g,w)}function G(A,y,g,w){return z(D(y),A,g,w)}function H(A,y,g,w){return z(b(y,A.length-g),A,g,w)}d.prototype.write=function(y,g,w,J){if(g===void 0)J="utf8",w=this.length,g=0;else if(w===void 0&&typeof g=="string")J=g,w=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(w)?(w=w>>>0,J===void 0&&(J="utf8")):(J=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ye=this.length-g;if((w===void 0||w>ye)&&(w=ye),y.length>0&&(w<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var ve=!1;;)switch(J){case"hex":return te(this,y,g,w);case"utf8":case"utf-8":return F(this,y,g,w);case"ascii":case"latin1":case"binary":return _(this,y,g,w);case"base64":return G(this,y,g,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,y,g,w);default:if(ve)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),ve=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(A,y,g){return y===0&&g===A.length?t.fromByteArray(A):t.fromByteArray(A.slice(y,g))}function fe(A,y,g){g=Math.min(A.length,g);for(var w=[],J=y;J<g;){var ye=A[J],ve=null,je=ye>239?4:ye>223?3:ye>191?2:1;if(J+je<=g){var re,ie,we,Se;switch(je){case 1:ye<128&&(ve=ye);break;case 2:re=A[J+1],(re&192)===128&&(Se=(ye&31)<<6|re&63,Se>127&&(ve=Se));break;case 3:re=A[J+1],ie=A[J+2],(re&192)===128&&(ie&192)===128&&(Se=(ye&15)<<12|(re&63)<<6|ie&63,Se>2047&&(Se<55296||Se>57343)&&(ve=Se));break;case 4:re=A[J+1],ie=A[J+2],we=A[J+3],(re&192)===128&&(ie&192)===128&&(we&192)===128&&(Se=(ye&15)<<18|(re&63)<<12|(ie&63)<<6|we&63,Se>65535&&Se<1114112&&(ve=Se))}}ve===null?(ve=65533,je=1):ve>65535&&(ve-=65536,w.push(ve>>>10&1023|55296),ve=56320|ve&1023),w.push(ve),J+=je}return N(w)}var he=4096;function N(A){var y=A.length;if(y<=he)return String.fromCharCode.apply(String,A);for(var g="",w=0;w<y;)g+=String.fromCharCode.apply(String,A.slice(w,w+=he));return g}function ce(A,y,g){var w="";g=Math.min(A.length,g);for(var J=y;J<g;++J)w+=String.fromCharCode(A[J]&127);return w}function me(A,y,g){var w="";g=Math.min(A.length,g);for(var J=y;J<g;++J)w+=String.fromCharCode(A[J]);return w}function W(A,y,g){var w=A.length;(!y||y<0)&&(y=0),(!g||g<0||g>w)&&(g=w);for(var J="",ye=y;ye<g;++ye)J+=ue[A[ye]];return J}function S(A,y,g){for(var w=A.slice(y,g),J="",ye=0;ye<w.length-1;ye+=2)J+=String.fromCharCode(w[ye]+w[ye+1]*256);return J}d.prototype.slice=function(y,g){var w=this.length;y=~~y,g=g===void 0?w:~~g,y<0?(y+=w,y<0&&(y=0)):y>w&&(y=w),g<0?(g+=w,g<0&&(g=0)):g>w&&(g=w),g<y&&(g=y);var J=this.subarray(y,g);return Object.setPrototypeOf(J,d.prototype),J};function Z(A,y,g){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+y>g)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(y,g,w){y=y>>>0,g=g>>>0,w||Z(y,g,this.length);for(var J=this[y],ye=1,ve=0;++ve<g&&(ye*=256);)J+=this[y+ve]*ye;return J},d.prototype.readUintBE=d.prototype.readUIntBE=function(y,g,w){y=y>>>0,g=g>>>0,w||Z(y,g,this.length);for(var J=this[y+--g],ye=1;g>0&&(ye*=256);)J+=this[y+--g]*ye;return J},d.prototype.readUint8=d.prototype.readUInt8=function(y,g){return y=y>>>0,g||Z(y,1,this.length),this[y]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(y,g){return y=y>>>0,g||Z(y,2,this.length),this[y]|this[y+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(y,g){return y=y>>>0,g||Z(y,2,this.length),this[y]<<8|this[y+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},d.prototype.readIntLE=function(y,g,w){y=y>>>0,g=g>>>0,w||Z(y,g,this.length);for(var J=this[y],ye=1,ve=0;++ve<g&&(ye*=256);)J+=this[y+ve]*ye;return ye*=128,J>=ye&&(J-=Math.pow(2,8*g)),J},d.prototype.readIntBE=function(y,g,w){y=y>>>0,g=g>>>0,w||Z(y,g,this.length);for(var J=g,ye=1,ve=this[y+--J];J>0&&(ye*=256);)ve+=this[y+--J]*ye;return ye*=128,ve>=ye&&(ve-=Math.pow(2,8*g)),ve},d.prototype.readInt8=function(y,g){return y=y>>>0,g||Z(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},d.prototype.readInt16LE=function(y,g){y=y>>>0,g||Z(y,2,this.length);var w=this[y]|this[y+1]<<8;return w&32768?w|4294901760:w},d.prototype.readInt16BE=function(y,g){y=y>>>0,g||Z(y,2,this.length);var w=this[y+1]|this[y]<<8;return w&32768?w|4294901760:w},d.prototype.readInt32LE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},d.prototype.readInt32BE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},d.prototype.readFloatLE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),i.read(this,y,!0,23,4)},d.prototype.readFloatBE=function(y,g){return y=y>>>0,g||Z(y,4,this.length),i.read(this,y,!1,23,4)},d.prototype.readDoubleLE=function(y,g){return y=y>>>0,g||Z(y,8,this.length),i.read(this,y,!0,52,8)},d.prototype.readDoubleBE=function(y,g){return y=y>>>0,g||Z(y,8,this.length),i.read(this,y,!1,52,8)};function se(A,y,g,w,J,ye){if(!d.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>J||y<ye)throw new RangeError('"value" argument is out of bounds');if(g+w>A.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(y,g,w,J){if(y=+y,g=g>>>0,w=w>>>0,!J){var ye=Math.pow(2,8*w)-1;se(this,y,g,w,ye,0)}var ve=1,je=0;for(this[g]=y&255;++je<w&&(ve*=256);)this[g+je]=y/ve&255;return g+w},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(y,g,w,J){if(y=+y,g=g>>>0,w=w>>>0,!J){var ye=Math.pow(2,8*w)-1;se(this,y,g,w,ye,0)}var ve=w-1,je=1;for(this[g+ve]=y&255;--ve>=0&&(je*=256);)this[g+ve]=y/je&255;return g+w},d.prototype.writeUint8=d.prototype.writeUInt8=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,1,255,0),this[g]=y&255,g+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,2,65535,0),this[g]=y&255,this[g+1]=y>>>8,g+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,2,65535,0),this[g]=y>>>8,this[g+1]=y&255,g+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,4,4294967295,0),this[g+3]=y>>>24,this[g+2]=y>>>16,this[g+1]=y>>>8,this[g]=y&255,g+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,4,4294967295,0),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4},d.prototype.writeIntLE=function(y,g,w,J){if(y=+y,g=g>>>0,!J){var ye=Math.pow(2,8*w-1);se(this,y,g,w,ye-1,-ye)}var ve=0,je=1,re=0;for(this[g]=y&255;++ve<w&&(je*=256);)y<0&&re===0&&this[g+ve-1]!==0&&(re=1),this[g+ve]=(y/je>>0)-re&255;return g+w},d.prototype.writeIntBE=function(y,g,w,J){if(y=+y,g=g>>>0,!J){var ye=Math.pow(2,8*w-1);se(this,y,g,w,ye-1,-ye)}var ve=w-1,je=1,re=0;for(this[g+ve]=y&255;--ve>=0&&(je*=256);)y<0&&re===0&&this[g+ve+1]!==0&&(re=1),this[g+ve]=(y/je>>0)-re&255;return g+w},d.prototype.writeInt8=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,1,127,-128),y<0&&(y=255+y+1),this[g]=y&255,g+1},d.prototype.writeInt16LE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,2,32767,-32768),this[g]=y&255,this[g+1]=y>>>8,g+2},d.prototype.writeInt16BE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,2,32767,-32768),this[g]=y>>>8,this[g+1]=y&255,g+2},d.prototype.writeInt32LE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,4,2147483647,-2147483648),this[g]=y&255,this[g+1]=y>>>8,this[g+2]=y>>>16,this[g+3]=y>>>24,g+4},d.prototype.writeInt32BE=function(y,g,w){return y=+y,g=g>>>0,w||se(this,y,g,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4};function Q(A,y,g,w,J,ye){if(g+w>A.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function M(A,y,g,w,J){return y=+y,g=g>>>0,J||Q(A,y,g,4),i.write(A,y,g,w,23,4),g+4}d.prototype.writeFloatLE=function(y,g,w){return M(this,y,g,!0,w)},d.prototype.writeFloatBE=function(y,g,w){return M(this,y,g,!1,w)};function P(A,y,g,w,J){return y=+y,g=g>>>0,J||Q(A,y,g,8),i.write(A,y,g,w,52,8),g+8}d.prototype.writeDoubleLE=function(y,g,w){return P(this,y,g,!0,w)},d.prototype.writeDoubleBE=function(y,g,w){return P(this,y,g,!1,w)},d.prototype.copy=function(y,g,w,J){if(!d.isBuffer(y))throw new TypeError("argument should be a Buffer");if(w||(w=0),!J&&J!==0&&(J=this.length),g>=y.length&&(g=y.length),g||(g=0),J>0&&J<w&&(J=w),J===w||y.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),y.length-g<J-w&&(J=y.length-g+w);var ye=J-w;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,w,J):Uint8Array.prototype.set.call(y,this.subarray(w,J),g),ye},d.prototype.fill=function(y,g,w,J){if(typeof y=="string"){if(typeof g=="string"?(J=g,g=0,w=this.length):typeof w=="string"&&(J=w,w=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!d.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(y.length===1){var ye=y.charCodeAt(0);(J==="utf8"&&ye<128||J==="latin1")&&(y=ye)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(g<0||this.length<g||this.length<w)throw new RangeError("Out of range index");if(w<=g)return this;g=g>>>0,w=w===void 0?this.length:w>>>0,y||(y=0);var ve;if(typeof y=="number")for(ve=g;ve<w;++ve)this[ve]=y;else{var je=d.isBuffer(y)?y:d.from(y,J),re=je.length;if(re===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(ve=0;ve<w-g;++ve)this[ve+g]=je[ve%re]}return this};var K=/[^+/0-9A-Za-z-_]/g;function pe(A){if(A=A.split("=")[0],A=A.trim().replace(K,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function ge(A,y){y=y||1/0;for(var g,w=A.length,J=null,ye=[],ve=0;ve<w;++ve){if(g=A.charCodeAt(ve),g>55295&&g<57344){if(!J){if(g>56319){(y-=3)>-1&&ye.push(239,191,189);continue}else if(ve+1===w){(y-=3)>-1&&ye.push(239,191,189);continue}J=g;continue}if(g<56320){(y-=3)>-1&&ye.push(239,191,189),J=g;continue}g=(J-55296<<10|g-56320)+65536}else J&&(y-=3)>-1&&ye.push(239,191,189);if(J=null,g<128){if((y-=1)<0)break;ye.push(g)}else if(g<2048){if((y-=2)<0)break;ye.push(g>>6|192,g&63|128)}else if(g<65536){if((y-=3)<0)break;ye.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((y-=4)<0)break;ye.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return ye}function q(A){for(var y=[],g=0;g<A.length;++g)y.push(A.charCodeAt(g)&255);return y}function b(A,y){for(var g,w,J,ye=[],ve=0;ve<A.length&&!((y-=2)<0);++ve)g=A.charCodeAt(ve),w=g>>8,J=g%256,ye.push(J),ye.push(w);return ye}function D(A){return t.toByteArray(pe(A))}function z(A,y,g,w){for(var J=0;J<w&&!(J+g>=y.length||J>=A.length);++J)y[J+g]=A[J];return J}function V(A,y){return A instanceof y||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===y.name}function ae(A){return A!==A}var ue=(function(){for(var A="0123456789abcdef",y=new Array(256),g=0;g<16;++g)for(var w=g*16,J=0;J<16;++J)y[w+J]=A[g]+A[J];return y})()})(Y0)),Y0}var sn=y3(),Ef={exports:{}},zx;function g3(){return zx||(zx=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i={exports:{}},a=i.exports={},u,c;function f(){throw new Error("setTimeout has not been defined")}function d(){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=d}catch{c=d}})();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 h(W){if(c===clearTimeout)return clearTimeout(W);if((c===d||!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 x=[],v=!1,I,C=-1;function B(){!v||!I||(v=!1,I.length?x=I.concat(x):C=-1,x.length&&$())}function $(){if(!v){var W=m(B);v=!0;for(var S=x.length;S;){for(I=x,x=[];++C<S;)I&&I[C].run();C=-1,S=x.length}I=null,v=!1,h(W)}}a.nextTick=function(W){var S=new Array(arguments.length-1);if(arguments.length>1)for(var Z=1;Z<arguments.length;Z++)S[Z-1]=arguments[Z];x.push(new O(W,S)),x.length===1&&!v&&m($)};function O(W,S){this.fun=W,this.array=S}O.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function U(){}a.on=U,a.addListener=U,a.once=U,a.off=U,a.removeListener=U,a.removeAllListeners=U,a.emit=U,a.prependListener=U,a.prependOnceListener=U,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 R(){}var T=i.exports.browser,L=R,k=i.exports.binding,Y=R,oe=1,te={},F=R,_=R,G=R,H=R,ee=R,fe="browser",he="browser",N="browser",ce=[],me={nextTick:i.exports.nextTick,title:i.exports.title,browser:T,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:L,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:Y,pid:oe,features:te,kill:F,dlopen:_,uptime:G,memoryUsage:H,uvCounters:ee,platform:fe,arch:he,execPath:N,execArgv:ce};t.addListener=i.exports.addListener,t.arch=he,t.argv=i.exports.argv,t.binding=k,t.browser=T,t.chdir=i.exports.chdir,t.cwd=i.exports.cwd,t.default=me,t.dlopen=_,t.emit=i.exports.emit,t.emitWarning=L,t.env=i.exports.env,t.execArgv=ce,t.execPath=N,t.exit=Y,t.features=te,t.kill=F,t.listeners=i.exports.listeners,t.memoryUsage=H,t.nextTick=i.exports.nextTick,t.off=i.exports.off,t.on=i.exports.on,t.once=i.exports.once,t.pid=oe,t.platform=fe,t.prependListener=i.exports.prependListener,t.prependOnceListener=i.exports.prependOnceListener,t.removeAllListeners=i.exports.removeAllListeners,t.removeListener=i.exports.removeListener,t.title=i.exports.title,t.umask=i.exports.umask,t.uptime=G,t.uvCounters=ee,t.version=i.exports.version,t.versions=i.exports.versions,t=e.exports=me})(Ef,Ef.exports)),Ef.exports}var m3=g3();const ft=Zf(m3);(function(e){function t(){var a=this||self;return delete e.prototype.__magic__,a}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var i=__magic__;return i})(Object);var Xe={},qx;function A3(){if(qx)return Xe;qx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.iterator;function I(S){return S===null||typeof S!="object"?null:(S=v&&S[v]||S["@@iterator"],typeof S=="function"?S:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,$={};function O(S,Z,se){this.props=S,this.context=Z,this.refs=$,this.updater=se||C}O.prototype.isReactComponent={},O.prototype.setState=function(S,Z){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,Z,"setState")},O.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function U(){}U.prototype=O.prototype;function R(S,Z,se){this.props=S,this.context=Z,this.refs=$,this.updater=se||C}var T=R.prototype=new U;T.constructor=R,B(T,O.prototype),T.isPureReactComponent=!0;var L=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},Y=Object.prototype.hasOwnProperty;function oe(S,Z,se,Q,M,P){return se=P.ref,{$$typeof:e,type:S,key:Z,ref:se!==void 0?se:null,props:P}}function te(S,Z){return oe(S.type,Z,void 0,void 0,void 0,S.props)}function F(S){return typeof S=="object"&&S!==null&&S.$$typeof===e}function _(S){var Z={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(se){return Z[se]})}var G=/\/+/g;function H(S,Z){return typeof S=="object"&&S!==null&&S.key!=null?_(""+S.key):Z.toString(36)}function ee(){}function fe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ee,ee):(S.status="pending",S.then(function(Z){S.status==="pending"&&(S.status="fulfilled",S.value=Z)},function(Z){S.status==="pending"&&(S.status="rejected",S.reason=Z)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function he(S,Z,se,Q,M){var P=typeof S;(P==="undefined"||P==="boolean")&&(S=null);var K=!1;if(S===null)K=!0;else switch(P){case"bigint":case"string":case"number":K=!0;break;case"object":switch(S.$$typeof){case e:case t:K=!0;break;case x:return K=S._init,he(K(S._payload),Z,se,Q,M)}}if(K)return M=M(S),K=Q===""?"."+H(S,0):Q,L(M)?(se="",K!=null&&(se=K.replace(G,"$&/")+"/"),he(M,Z,se,"",function(q){return q})):M!=null&&(F(M)&&(M=te(M,se+(M.key==null||S&&S.key===M.key?"":(""+M.key).replace(G,"$&/")+"/")+K)),Z.push(M)),1;K=0;var pe=Q===""?".":Q+":";if(L(S))for(var ge=0;ge<S.length;ge++)Q=S[ge],P=pe+H(Q,ge),K+=he(Q,Z,se,P,M);else if(ge=I(S),typeof ge=="function")for(S=ge.call(S),ge=0;!(Q=S.next()).done;)Q=Q.value,P=pe+H(Q,ge++),K+=he(Q,Z,se,P,M);else if(P==="object"){if(typeof S.then=="function")return he(fe(S),Z,se,Q,M);throw Z=String(S),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return K}function N(S,Z,se){if(S==null)return S;var Q=[],M=0;return he(S,Q,"","",function(P){return Z.call(se,P,M++)}),Q}function ce(S){if(S._status===-1){var Z=S._result;Z=Z(),Z.then(function(se){(S._status===0||S._status===-1)&&(S._status=1,S._result=se)},function(se){(S._status===0||S._status===-1)&&(S._status=2,S._result=se)}),S._status===-1&&(S._status=0,S._result=Z)}if(S._status===1)return S._result.default;throw S._result}var me=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(Z))return}else if(typeof ft=="object"&&typeof ft.emit=="function"){ft.emit("uncaughtException",S);return}console.error(S)};function W(){}return Xe.Children={map:N,forEach:function(S,Z,se){N(S,function(){Z.apply(this,arguments)},se)},count:function(S){var Z=0;return N(S,function(){Z++}),Z},toArray:function(S){return N(S,function(Z){return Z})||[]},only:function(S){if(!F(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},Xe.Component=O,Xe.Fragment=i,Xe.Profiler=u,Xe.PureComponent=R,Xe.StrictMode=a,Xe.Suspense=m,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Xe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return k.H.useMemoCache(S)}},Xe.cache=function(S){return function(){return S.apply(null,arguments)}},Xe.cloneElement=function(S,Z,se){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Q=B({},S.props),M=S.key,P=void 0;if(Z!=null)for(K in Z.ref!==void 0&&(P=void 0),Z.key!==void 0&&(M=""+Z.key),Z)!Y.call(Z,K)||K==="key"||K==="__self"||K==="__source"||K==="ref"&&Z.ref===void 0||(Q[K]=Z[K]);var K=arguments.length-2;if(K===1)Q.children=se;else if(1<K){for(var pe=Array(K),ge=0;ge<K;ge++)pe[ge]=arguments[ge+2];Q.children=pe}return oe(S.type,M,void 0,void 0,P,Q)},Xe.createContext=function(S){return S={$$typeof:f,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:c,_context:S},S},Xe.createElement=function(S,Z,se){var Q,M={},P=null;if(Z!=null)for(Q in Z.key!==void 0&&(P=""+Z.key),Z)Y.call(Z,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(M[Q]=Z[Q]);var K=arguments.length-2;if(K===1)M.children=se;else if(1<K){for(var pe=Array(K),ge=0;ge<K;ge++)pe[ge]=arguments[ge+2];M.children=pe}if(S&&S.defaultProps)for(Q in K=S.defaultProps,K)M[Q]===void 0&&(M[Q]=K[Q]);return oe(S,P,void 0,void 0,null,M)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(S){return{$$typeof:d,render:S}},Xe.isValidElement=F,Xe.lazy=function(S){return{$$typeof:x,_payload:{_status:-1,_result:S},_init:ce}},Xe.memo=function(S,Z){return{$$typeof:h,type:S,compare:Z===void 0?null:Z}},Xe.startTransition=function(S){var Z=k.T,se={};k.T=se;try{var Q=S(),M=k.S;M!==null&&M(se,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(W,me)}catch(P){me(P)}finally{k.T=Z}},Xe.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Xe.use=function(S){return k.H.use(S)},Xe.useActionState=function(S,Z,se){return k.H.useActionState(S,Z,se)},Xe.useCallback=function(S,Z){return k.H.useCallback(S,Z)},Xe.useContext=function(S){return k.H.useContext(S)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(S,Z){return k.H.useDeferredValue(S,Z)},Xe.useEffect=function(S,Z,se){var Q=k.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(S,Z)},Xe.useId=function(){return k.H.useId()},Xe.useImperativeHandle=function(S,Z,se){return k.H.useImperativeHandle(S,Z,se)},Xe.useInsertionEffect=function(S,Z){return k.H.useInsertionEffect(S,Z)},Xe.useLayoutEffect=function(S,Z){return k.H.useLayoutEffect(S,Z)},Xe.useMemo=function(S,Z){return k.H.useMemo(S,Z)},Xe.useOptimistic=function(S,Z){return k.H.useOptimistic(S,Z)},Xe.useReducer=function(S,Z,se){return k.H.useReducer(S,Z,se)},Xe.useRef=function(S){return k.H.useRef(S)},Xe.useState=function(S){return k.H.useState(S)},Xe.useSyncExternalStore=function(S,Z,se){return k.H.useSyncExternalStore(S,Z,se)},Xe.useTransition=function(){return k.H.useTransition()},Xe.version="19.1.1",Xe}var Qx;function jg(){return Qx||(Qx=1,K0.exports=A3()),K0.exports}var Re=jg(),V0={exports:{}},Vu={},X0={exports:{}},Z0={};/**
|
|
15
|
-
* @license React
|
|
16
|
-
* scheduler.production.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var Hx;function b3(){return Hx||(Hx=1,(function(e){function t(N,ce){var me=N.length;N.push(ce);e:for(;0<me;){var W=me-1>>>1,S=N[W];if(0<u(S,ce))N[W]=ce,N[me]=S,me=W;else break e}}function i(N){return N.length===0?null:N[0]}function a(N){if(N.length===0)return null;var ce=N[0],me=N.pop();if(me!==ce){N[0]=me;e:for(var W=0,S=N.length,Z=S>>>1;W<Z;){var se=2*(W+1)-1,Q=N[se],M=se+1,P=N[M];if(0>u(Q,me))M<S&&0>u(P,Q)?(N[W]=P,N[M]=me,W=M):(N[W]=Q,N[se]=me,W=se);else if(M<S&&0>u(P,me))N[W]=P,N[M]=me,W=M;else break e}}return ce}function u(N,ce){var me=N.sortIndex-ce.sortIndex;return me!==0?me:N.id-ce.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var m=[],h=[],x=1,v=null,I=3,C=!1,B=!1,$=!1,O=!1,U=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function L(N){for(var ce=i(h);ce!==null;){if(ce.callback===null)a(h);else if(ce.startTime<=N)a(h),ce.sortIndex=ce.expirationTime,t(m,ce);else break;ce=i(h)}}function k(N){if($=!1,L(N),!B)if(i(m)!==null)B=!0,Y||(Y=!0,H());else{var ce=i(h);ce!==null&&he(k,ce.startTime-N)}}var Y=!1,oe=-1,te=5,F=-1;function _(){return O?!0:!(e.unstable_now()-F<te)}function G(){if(O=!1,Y){var N=e.unstable_now();F=N;var ce=!0;try{e:{B=!1,$&&($=!1,R(oe),oe=-1),C=!0;var me=I;try{t:{for(L(N),v=i(m);v!==null&&!(v.expirationTime>N&&_());){var W=v.callback;if(typeof W=="function"){v.callback=null,I=v.priorityLevel;var S=W(v.expirationTime<=N);if(N=e.unstable_now(),typeof S=="function"){v.callback=S,L(N),ce=!0;break t}v===i(m)&&a(m),L(N)}else a(m);v=i(m)}if(v!==null)ce=!0;else{var Z=i(h);Z!==null&&he(k,Z.startTime-N),ce=!1}}break e}finally{v=null,I=me,C=!1}ce=void 0}}finally{ce?H():Y=!1}}}var H;if(typeof T=="function")H=function(){T(G)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,fe=ee.port2;ee.port1.onmessage=G,H=function(){fe.postMessage(null)}}else H=function(){U(G,0)};function he(N,ce){oe=U(function(){N(e.unstable_now())},ce)}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(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return I},e.unstable_next=function(N){switch(I){case 1:case 2:case 3:var ce=3;break;default:ce=I}var me=I;I=ce;try{return N()}finally{I=me}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(N,ce){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var me=I;I=N;try{return ce()}finally{I=me}},e.unstable_scheduleCallback=function(N,ce,me){var W=e.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?W+me:W):me=W,N){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=me+S,N={id:x++,callback:ce,priorityLevel:N,startTime:me,expirationTime:S,sortIndex:-1},me>W?(N.sortIndex=me,t(h,N),i(m)===null&&N===i(h)&&($?(R(oe),oe=-1):$=!0,he(k,me-W))):(N.sortIndex=S,t(m,N),B||C||(B=!0,Y||(Y=!0,H()))),N},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(N){var ce=I;return function(){var me=I;I=ce;try{return N.apply(this,arguments)}finally{I=me}}}})(Z0)),Z0}var kx;function x3(){return kx||(kx=1,X0.exports=b3()),X0.exports}var J0={exports:{}},Rn={};/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react-dom.production.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var Gx;function w3(){if(Gx)return Rn;Gx=1;var e=jg();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)h+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,h,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:m,containerInfo:h,implementation:x}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Rn.createPortal=function(m,h){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return c(m,h,null,x)},Rn.flushSync=function(m){var h=f.T,x=a.p;try{if(f.T=null,a.p=2,m)return m()}finally{f.T=h,a.p=x,a.d.f()}},Rn.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Rn.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Rn.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var x=h.as,v=d(x,h.crossOrigin),I=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;x==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:I,fetchPriority:C}):x==="script"&&a.d.X(m,{crossOrigin:v,integrity:I,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Rn.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var x=d(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Rn.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var x=h.as,v=d(x,h.crossOrigin);a.d.L(m,x,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Rn.preloadModule=function(m,h){if(typeof m=="string")if(h){var x=d(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Rn.requestFormReset=function(m){a.d.r(m)},Rn.unstable_batchedUpdates=function(m,h){return m(h)},Rn.useFormState=function(m,h,x){return f.H.useFormState(m,h,x)},Rn.useFormStatus=function(){return f.H.useHostTransitionStatus()},Rn.version="19.1.1",Rn}var Kx;function qE(){if(Kx)return J0.exports;Kx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),J0.exports=w3(),J0.exports}var Yx;function E3(){if(Yx)return Vu;Yx=1;var e=x3(),t=jg(),i=qE();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(o=r.return),n=r.return;while(n)}return r.tag===3?o:null}function f(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(c(n)!==n)throw Error(a(188))}function m(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(a(188));return r!==n?null:n}for(var o=n,s=r;;){var l=o.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){o=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===o)return d(l),n;if(p===s)return d(l),r;p=p.sibling}throw Error(a(188))}if(o.return!==s.return)o=l,s=p;else{for(var E=!1,j=l.child;j;){if(j===o){E=!0,o=l,s=p;break}if(j===s){E=!0,s=l,o=p;break}j=j.sibling}if(!E){for(j=p.child;j;){if(j===o){E=!0,o=p,s=l;break}if(j===s){E=!0,s=p,o=l;break}j=j.sibling}if(!E)throw Error(a(189))}}if(o.alternate!==s)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:r}function h(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=h(n),r!==null)return r;n=n.sibling}return null}var x=Object.assign,v=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=G&&n[G]||n["@@iterator"],typeof n=="function"?n:null)}var ee=Symbol.for("react.client.reference");function fe(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ee?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case B:return"Fragment";case O:return"Profiler";case $:return"StrictMode";case k:return"Suspense";case Y:return"SuspenseList";case F:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case T:return(n.displayName||"Context")+".Provider";case R:return(n._context.displayName||"Context")+".Consumer";case L:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case oe:return r=n.displayName||null,r!==null?r:fe(n.type)||"Memo";case te:r=n._payload,n=n._init;try{return fe(n(r))}catch{}}return null}var he=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},W=[],S=-1;function Z(n){return{current:n}}function se(n){0>S||(n.current=W[S],W[S]=null,S--)}function Q(n,r){S++,W[S]=n.current,n.current=r}var M=Z(null),P=Z(null),K=Z(null),pe=Z(null);function ge(n,r){switch(Q(K,r),Q(P,n),Q(M,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?cx(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=cx(r),n=lx(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}se(M),Q(M,n)}function q(){se(M),se(P),se(K)}function b(n){n.memoizedState!==null&&Q(pe,n);var r=M.current,o=lx(r,n.type);r!==o&&(Q(P,n),Q(M,o))}function D(n){P.current===n&&(se(M),se(P)),pe.current===n&&(se(pe),qu._currentValue=me)}var z=Object.prototype.hasOwnProperty,V=e.unstable_scheduleCallback,ae=e.unstable_cancelCallback,ue=e.unstable_shouldYield,A=e.unstable_requestPaint,y=e.unstable_now,g=e.unstable_getCurrentPriorityLevel,w=e.unstable_ImmediatePriority,J=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,ve=e.unstable_LowPriority,je=e.unstable_IdlePriority,re=e.log,ie=e.unstable_setDisableYieldValue,we=null,Se=null;function Ue(n){if(typeof re=="function"&&ie(n),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(we,n)}catch{}}var _e=Math.clz32?Math.clz32:He,Le=Math.log,Qe=Math.LN2;function He(n){return n>>>=0,n===0?32:31-(Le(n)/Qe|0)|0}var Ye=256,Ve=4194304;function at(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ct(n,r,o){var s=n.pendingLanes;if(s===0)return 0;var l=0,p=n.suspendedLanes,E=n.pingedLanes;n=n.warmLanes;var j=s&134217727;return j!==0?(s=j&~p,s!==0?l=at(s):(E&=j,E!==0?l=at(E):o||(o=j&~n,o!==0&&(l=at(o))))):(j=s&~p,j!==0?l=at(j):E!==0?l=at(E):o||(o=s&~n,o!==0&&(l=at(o)))),l===0?0:r!==0&&r!==l&&(r&p)===0&&(p=l&-l,o=r&-r,p>=o||p===32&&(o&4194048)!==0)?r:l}function dt(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function ht(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+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-1}}function gt(){var n=Ye;return Ye<<=1,(Ye&4194048)===0&&(Ye=256),n}function Dt(){var n=Ve;return Ve<<=1,(Ve&62914560)===0&&(Ve=4194304),n}function Bt(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function St(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $t(n,r,o,s,l,p){var E=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var j=n.entanglements,ne=n.expirationTimes,be=n.hiddenUpdates;for(o=E&~o;0<o;){var Ce=31-_e(o),Te=1<<Ce;j[Ce]=0,ne[Ce]=-1;var xe=be[Ce];if(xe!==null)for(be[Ce]=null,Ce=0;Ce<xe.length;Ce++){var Ee=xe[Ce];Ee!==null&&(Ee.lane&=-536870913)}o&=~Te}s!==0&&Mt(n,s,0),p!==0&&l===0&&n.tag!==0&&(n.suspendedLanes|=p&~(E&~r))}function Mt(n,r,o){n.pendingLanes|=r,n.suspendedLanes&=~r;var s=31-_e(r);n.entangledLanes|=r,n.entanglements[s]=n.entanglements[s]|1073741824|o&4194090}function jt(n,r){var o=n.entangledLanes|=r;for(n=n.entanglements;o;){var s=31-_e(o),l=1<<s;l&r|n[s]&r&&(n[s]|=r),o&=~l}}function Ot(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function eo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Lo(){var n=ce.p;return n!==0?n:(n=window.event,n===void 0?32:Ox(n.type))}function Ma(n,r){var o=ce.p;try{return ce.p=n,r()}finally{ce.p=o}}var tr=Math.random().toString(36).slice(2),kt="__reactFiber$"+tr,rn="__reactProps$"+tr,jr="__reactContainer$"+tr,to="__reactEvents$"+tr,ja="__reactListeners$"+tr,Na="__reactHandles$"+tr,zo="__reactResources$"+tr,ti="__reactMarker$"+tr;function no(n){delete n[kt],delete n[rn],delete n[to],delete n[ja],delete n[Na]}function Nr(n){var r=n[kt];if(r)return r;for(var o=n.parentNode;o;){if(r=o[jr]||o[kt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=px(n);n!==null;){if(o=n[kt])return o;n=px(n)}return r}n=o,o=n.parentNode}return null}function _r(n){if(n=n[kt]||n[jr]){var r=n.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return n}return null}function ni(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Pr(n){var r=n[zo];return r||(r=n[zo]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Nt(n){n[ti]=!0}var qo=new Set,Qo={};function br(n,r){$r(n,r),$r(n+"Capture",r)}function $r(n,r){for(Qo[n]=r,n=0;n<r.length;n++)qo.add(r[n])}var _a=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]*$"),Ho={},ko={};function Pa(n){return z.call(ko,n)?!0:z.call(Ho,n)?!1:_a.test(n)?ko[n]=!0:(Ho[n]=!0,!1)}function Ai(n,r,o){if(Pa(r))if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+o)}}function fl(n,r,o){if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+o)}}function bi(n,r,o,s){if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(r,o,""+s)}}var $d,nA;function $a(n){if($d===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);$d=r&&r[1]||"",nA=-1<o.stack.indexOf(`
|
|
31
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
32
|
-
`+$d+n+nA}var Ld=!1;function zd(n,r){if(!n||Ld)return"";Ld=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(Ee){var xe=Ee}Reflect.construct(n,[],Te)}else{try{Te.call()}catch(Ee){xe=Ee}n.call(Te.prototype)}}else{try{throw Error()}catch(Ee){xe=Ee}(Te=n())&&typeof Te.catch=="function"&&Te.catch(function(){})}}catch(Ee){if(Ee&&xe&&typeof Ee.stack=="string")return[Ee.stack,xe.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),E=p[0],j=p[1];if(E&&j){var ne=E.split(`
|
|
33
|
-
`),be=j.split(`
|
|
34
|
-
`);for(l=s=0;s<ne.length&&!ne[s].includes("DetermineComponentFrameRoot");)s++;for(;l<be.length&&!be[l].includes("DetermineComponentFrameRoot");)l++;if(s===ne.length||l===be.length)for(s=ne.length-1,l=be.length-1;1<=s&&0<=l&&ne[s]!==be[l];)l--;for(;1<=s&&0<=l;s--,l--)if(ne[s]!==be[l]){if(s!==1||l!==1)do if(s--,l--,0>l||ne[s]!==be[l]){var Ce=`
|
|
35
|
-
`+ne[s].replace(" at new "," at ");return n.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",n.displayName)),Ce}while(1<=s&&0<=l);break}}}finally{Ld=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?$a(o):""}function oS(n){switch(n.tag){case 26:case 27:case 5:return $a(n.type);case 16:return $a("Lazy");case 13:return $a("Suspense");case 19:return $a("SuspenseList");case 0:case 15:return zd(n.type,!1);case 11:return zd(n.type.render,!1);case 1:return zd(n.type,!0);case 31:return $a("Activity");default:return""}}function rA(n){try{var r="";do r+=oS(n),n=n.return;while(n);return r}catch(o){return`
|
|
36
|
-
Error generating stack: `+o.message+`
|
|
37
|
-
`+o.stack}}function xr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function iA(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function aS(n){var r=iA(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),s=""+n[r];if(!n.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,p=o.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return l.call(this)},set:function(E){s=""+E,p.call(this,E)}}),Object.defineProperty(n,r,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(E){s=""+E},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function dl(n){n._valueTracker||(n._valueTracker=aS(n))}function oA(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var o=r.getValue(),s="";return n&&(s=iA(n)?n.checked?"true":"false":n.value),n=s,n!==o?(r.setValue(n),!0):!1}function hl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var sS=/[\n"\\]/g;function wr(n){return n.replace(sS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function qd(n,r,o,s,l,p,E,j){n.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.type=E:n.removeAttribute("type"),r!=null?E==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+xr(r)):n.value!==""+xr(r)&&(n.value=""+xr(r)):E!=="submit"&&E!=="reset"||n.removeAttribute("value"),r!=null?Qd(n,E,xr(r)):o!=null?Qd(n,E,xr(o)):s!=null&&n.removeAttribute("value"),l==null&&p!=null&&(n.defaultChecked=!!p),l!=null&&(n.checked=l&&typeof l!="function"&&typeof l!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?n.name=""+xr(j):n.removeAttribute("name")}function aA(n,r,o,s,l,p,E,j){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),r!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||r!=null))return;o=o!=null?""+xr(o):"",r=r!=null?""+xr(r):o,j||r===n.value||(n.value=r),n.defaultValue=r}s=s??l,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=j?n.checked:!!s,n.defaultChecked=!!s,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(n.name=E)}function Qd(n,r,o){r==="number"&&hl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function La(n,r,o,s){if(n=n.options,r){r={};for(var l=0;l<o.length;l++)r["$"+o[l]]=!0;for(o=0;o<n.length;o++)l=r.hasOwnProperty("$"+n[o].value),n[o].selected!==l&&(n[o].selected=l),l&&s&&(n[o].defaultSelected=!0)}else{for(o=""+xr(o),r=null,l=0;l<n.length;l++){if(n[l].value===o){n[l].selected=!0,s&&(n[l].defaultSelected=!0);return}r!==null||n[l].disabled||(r=n[l])}r!==null&&(r.selected=!0)}}function sA(n,r,o){if(r!=null&&(r=""+xr(r),r!==n.value&&(n.value=r),o==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=o!=null?""+xr(o):""}function uA(n,r,o,s){if(r==null){if(s!=null){if(o!=null)throw Error(a(92));if(he(s)){if(1<s.length)throw Error(a(93));s=s[0]}o=s}o==null&&(o=""),r=o}o=xr(r),n.defaultValue=o,s=n.textContent,s===o&&s!==""&&s!==null&&(n.value=s)}function za(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=r;return}}n.textContent=r}var uS=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(" "));function cA(n,r,o){var s=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":s?n.setProperty(r,o):typeof o!="number"||o===0||uS.has(r)?r==="float"?n.cssFloat=o:n[r]=(""+o).trim():n[r]=o+"px"}function lA(n,r,o){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var l in r)s=r[l],r.hasOwnProperty(l)&&o[l]!==s&&cA(n,l,s)}else for(var p in r)r.hasOwnProperty(p)&&cA(n,p,r[p])}function Hd(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}var cS=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"]]),lS=/^[\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;function pl(n){return lS.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var kd=null;function Gd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var qa=null,Qa=null;function fA(n){var r=_r(n);if(r&&(n=r.stateNode)){var o=n[rn]||null;e:switch(n=r.stateNode,r.type){case"input":if(qd(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+wr(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var s=o[r];if(s!==n&&s.form===n.form){var l=s[rn]||null;if(!l)throw Error(a(90));qd(s,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(r=0;r<o.length;r++)s=o[r],s.form===n.form&&oA(s)}break e;case"textarea":sA(n,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&La(n,!!o.multiple,r,!1)}}}var Kd=!1;function dA(n,r,o){if(Kd)return n(r,o);Kd=!0;try{var s=n(r);return s}finally{if(Kd=!1,(qa!==null||Qa!==null)&&(Wl(),qa&&(r=qa,n=Qa,Qa=qa=null,fA(r),n)))for(r=0;r<n.length;r++)fA(n[r])}}function tu(n,r){var o=n.stateNode;if(o===null)return null;var s=o[rn]||null;if(s===null)return null;o=s[r];e:switch(r){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)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,r,typeof o));return o}var xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yd=!1;if(xi)try{var nu={};Object.defineProperty(nu,"passive",{get:function(){Yd=!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{Yd=!1}var ro=null,Vd=null,yl=null;function hA(){if(yl)return yl;var n,r=Vd,o=r.length,s,l="value"in ro?ro.value:ro.textContent,p=l.length;for(n=0;n<o&&r[n]===l[n];n++);var E=o-n;for(s=1;s<=E&&r[o-s]===l[p-s];s++);return yl=l.slice(n,1<s?1-s:void 0)}function gl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function ml(){return!0}function pA(){return!1}function zn(n){function r(o,s,l,p,E){this._reactName=o,this._targetInst=l,this.type=s,this.nativeEvent=p,this.target=E,this.currentTarget=null;for(var j in n)n.hasOwnProperty(j)&&(o=n[j],this[j]=o?o(p):p[j]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ml:pA,this.isPropagationStopped=pA,this}return x(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ml)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),r}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Al=zn(Go),ru=x({},Go,{view:0,detail:0}),fS=zn(ru),Xd,Zd,iu,bl=x({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==iu&&(iu&&n.type==="mousemove"?(Xd=n.screenX-iu.screenX,Zd=n.screenY-iu.screenY):Zd=Xd=0,iu=n),Xd)},movementY:function(n){return"movementY"in n?n.movementY:Zd}}),yA=zn(bl),dS=x({},bl,{dataTransfer:0}),hS=zn(dS),pS=x({},ru,{relatedTarget:0}),Jd=zn(pS),yS=x({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),gS=zn(yS),mS=x({},Go,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),AS=zn(mS),bS=x({},Go,{data:0}),gA=zn(bS),xS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wS={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"},ES={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=ES[n])?!!r[n]:!1}function Wd(){return vS}var IS=x({},ru,{key:function(n){if(n.key){var r=xS[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=gl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?wS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wd,charCode:function(n){return n.type==="keypress"?gl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?gl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),FS=zn(IS),SS=x({},bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mA=zn(SS),CS=x({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wd}),BS=zn(CS),OS=x({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),TS=zn(OS),RS=x({},bl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),US=zn(RS),DS=x({},Go,{newState:0,oldState:0}),MS=zn(DS),jS=[9,13,27,32],eh=xi&&"CompositionEvent"in window,ou=null;xi&&"documentMode"in document&&(ou=document.documentMode);var NS=xi&&"TextEvent"in window&&!ou,AA=xi&&(!eh||ou&&8<ou&&11>=ou),bA=" ",xA=!1;function wA(n,r){switch(n){case"keyup":return jS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function EA(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ha=!1;function _S(n,r){switch(n){case"compositionend":return EA(r);case"keypress":return r.which!==32?null:(xA=!0,bA);case"textInput":return n=r.data,n===bA&&xA?null:n;default:return null}}function PS(n,r){if(Ha)return n==="compositionend"||!eh&&wA(n,r)?(n=hA(),yl=Vd=ro=null,Ha=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return AA&&r.locale!=="ko"?null:r.data;default:return null}}var $S={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};function vA(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!$S[n.type]:r==="textarea"}function IA(n,r,o,s){qa?Qa?Qa.push(s):Qa=[s]:qa=s,r=af(r,"onChange"),0<r.length&&(o=new Al("onChange","change",null,o,s),n.push({event:o,listeners:r}))}var au=null,su=null;function LS(n){ix(n,0)}function xl(n){var r=ni(n);if(oA(r))return n}function FA(n,r){if(n==="change")return r}var SA=!1;if(xi){var th;if(xi){var nh="oninput"in document;if(!nh){var CA=document.createElement("div");CA.setAttribute("oninput","return;"),nh=typeof CA.oninput=="function"}th=nh}else th=!1;SA=th&&(!document.documentMode||9<document.documentMode)}function BA(){au&&(au.detachEvent("onpropertychange",OA),su=au=null)}function OA(n){if(n.propertyName==="value"&&xl(su)){var r=[];IA(r,su,n,Gd(n)),dA(LS,r)}}function zS(n,r,o){n==="focusin"?(BA(),au=r,su=o,au.attachEvent("onpropertychange",OA)):n==="focusout"&&BA()}function qS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return xl(su)}function QS(n,r){if(n==="click")return xl(r)}function HS(n,r){if(n==="input"||n==="change")return xl(r)}function kS(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var nr=typeof Object.is=="function"?Object.is:kS;function uu(n,r){if(nr(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),s=Object.keys(r);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var l=o[s];if(!z.call(r,l)||!nr(n[l],r[l]))return!1}return!0}function TA(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function RA(n,r){var o=TA(n);n=0;for(var s;o;){if(o.nodeType===3){if(s=n+o.textContent.length,n<=r&&s>=r)return{node:o,offset:r-n};n=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=TA(o)}}function UA(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?UA(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function DA(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=hl(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=hl(n.document)}return r}function rh(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var GS=xi&&"documentMode"in document&&11>=document.documentMode,ka=null,ih=null,cu=null,oh=!1;function MA(n,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;oh||ka==null||ka!==hl(s)||(s=ka,"selectionStart"in s&&rh(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}),cu&&uu(cu,s)||(cu=s,s=af(ih,"onSelect"),0<s.length&&(r=new Al("onSelect","select",null,r,o),n.push({event:r,listeners:s}),r.target=ka)))}function Ko(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var Ga={animationend:Ko("Animation","AnimationEnd"),animationiteration:Ko("Animation","AnimationIteration"),animationstart:Ko("Animation","AnimationStart"),transitionrun:Ko("Transition","TransitionRun"),transitionstart:Ko("Transition","TransitionStart"),transitioncancel:Ko("Transition","TransitionCancel"),transitionend:Ko("Transition","TransitionEnd")},ah={},jA={};xi&&(jA=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function Yo(n){if(ah[n])return ah[n];if(!Ga[n])return n;var r=Ga[n],o;for(o in r)if(r.hasOwnProperty(o)&&o in jA)return ah[n]=r[o];return n}var NA=Yo("animationend"),_A=Yo("animationiteration"),PA=Yo("animationstart"),KS=Yo("transitionrun"),YS=Yo("transitionstart"),VS=Yo("transitioncancel"),$A=Yo("transitionend"),LA=new Map,sh="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(" ");sh.push("scrollEnd");function Lr(n,r){LA.set(n,r),br(r,[n])}var zA=new WeakMap;function Er(n,r){if(typeof n=="object"&&n!==null){var o=zA.get(n);return o!==void 0?o:(r={value:n,source:r,stack:rA(r)},zA.set(n,r),r)}return{value:n,source:r,stack:rA(r)}}var vr=[],Ka=0,uh=0;function wl(){for(var n=Ka,r=uh=Ka=0;r<n;){var o=vr[r];vr[r++]=null;var s=vr[r];vr[r++]=null;var l=vr[r];vr[r++]=null;var p=vr[r];if(vr[r++]=null,s!==null&&l!==null){var E=s.pending;E===null?l.next=l:(l.next=E.next,E.next=l),s.pending=l}p!==0&&qA(o,l,p)}}function El(n,r,o,s){vr[Ka++]=n,vr[Ka++]=r,vr[Ka++]=o,vr[Ka++]=s,uh|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function ch(n,r,o,s){return El(n,r,o,s),vl(n)}function Ya(n,r){return El(n,null,null,r),vl(n)}function qA(n,r,o){n.lanes|=o;var s=n.alternate;s!==null&&(s.lanes|=o);for(var l=!1,p=n.return;p!==null;)p.childLanes|=o,s=p.alternate,s!==null&&(s.childLanes|=o),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(l=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,l&&r!==null&&(l=31-_e(o),n=p.hiddenUpdates,s=n[l],s===null?n[l]=[r]:s.push(r),r.lane=o|536870912),p):null}function vl(n){if(50<Mu)throw Mu=0,y0=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Va={};function XS(n,r,o,s){this.tag=n,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=r,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}function rr(n,r,o,s){return new XS(n,r,o,s)}function lh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function wi(n,r){var o=n.alternate;return o===null?(o=rr(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,r=n.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function QA(n,r){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,r=o.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Il(n,r,o,s,l,p){var E=0;if(s=n,typeof n=="function")lh(n)&&(E=1);else if(typeof n=="string")E=JC(n,o,M.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case F:return n=rr(31,o,r,l),n.elementType=F,n.lanes=p,n;case B:return Vo(o.children,l,p,r);case $:E=8,l|=24;break;case O:return n=rr(12,o,r,l|2),n.elementType=O,n.lanes=p,n;case k:return n=rr(13,o,r,l),n.elementType=k,n.lanes=p,n;case Y:return n=rr(19,o,r,l),n.elementType=Y,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case U:case T:E=10;break e;case R:E=9;break e;case L:E=11;break e;case oe:E=14;break e;case te:E=16,s=null;break e}E=29,o=Error(a(130,n===null?"null":typeof n,"")),s=null}return r=rr(E,o,r,l),r.elementType=n,r.type=s,r.lanes=p,r}function Vo(n,r,o,s){return n=rr(7,n,s,r),n.lanes=o,n}function fh(n,r,o){return n=rr(6,n,null,r),n.lanes=o,n}function dh(n,r,o){return r=rr(4,n.children!==null?n.children:[],n.key,r),r.lanes=o,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var Xa=[],Za=0,Fl=null,Sl=0,Ir=[],Fr=0,Xo=null,Ei=1,vi="";function Zo(n,r){Xa[Za++]=Sl,Xa[Za++]=Fl,Fl=n,Sl=r}function HA(n,r,o){Ir[Fr++]=Ei,Ir[Fr++]=vi,Ir[Fr++]=Xo,Xo=n;var s=Ei;n=vi;var l=32-_e(s)-1;s&=~(1<<l),o+=1;var p=32-_e(r)+l;if(30<p){var E=l-l%5;p=(s&(1<<E)-1).toString(32),s>>=E,l-=E,Ei=1<<32-_e(r)+l|o<<l|s,vi=p+n}else Ei=1<<p|o<<l|s,vi=n}function hh(n){n.return!==null&&(Zo(n,1),HA(n,1,0))}function ph(n){for(;n===Fl;)Fl=Xa[--Za],Xa[Za]=null,Sl=Xa[--Za],Xa[Za]=null;for(;n===Xo;)Xo=Ir[--Fr],Ir[Fr]=null,vi=Ir[--Fr],Ir[Fr]=null,Ei=Ir[--Fr],Ir[Fr]=null}var _n=null,Lt=null,yt=!1,Jo=null,ri=!1,yh=Error(a(519));function Wo(n){var r=Error(a(418,""));throw du(Er(r,n)),yh}function kA(n){var r=n.stateNode,o=n.type,s=n.memoizedProps;switch(r[kt]=n,r[rn]=s,o){case"dialog":et("cancel",r),et("close",r);break;case"iframe":case"object":case"embed":et("load",r);break;case"video":case"audio":for(o=0;o<Nu.length;o++)et(Nu[o],r);break;case"source":et("error",r);break;case"img":case"image":case"link":et("error",r),et("load",r);break;case"details":et("toggle",r);break;case"input":et("invalid",r),aA(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),dl(r);break;case"select":et("invalid",r);break;case"textarea":et("invalid",r),uA(r,s.value,s.defaultValue,s.children),dl(r)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||s.suppressHydrationWarning===!0||ux(r.textContent,o)?(s.popover!=null&&(et("beforetoggle",r),et("toggle",r)),s.onScroll!=null&&et("scroll",r),s.onScrollEnd!=null&&et("scrollend",r),s.onClick!=null&&(r.onclick=sf),r=!0):r=!1,r||Wo(n)}function GA(n){for(_n=n.return;_n;)switch(_n.tag){case 5:case 13:ri=!1;return;case 27:case 3:ri=!0;return;default:_n=_n.return}}function lu(n){if(n!==_n)return!1;if(!yt)return GA(n),yt=!0,!1;var r=n.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||R0(n.type,n.memoizedProps)),o=!o),o&&Lt&&Wo(n),GA(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(r===0){Lt=qr(n.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++;n=n.nextSibling}Lt=null}}else r===27?(r=Lt,xo(n.type)?(n=j0,j0=null,Lt=n):Lt=r):Lt=_n?qr(n.stateNode.nextSibling):null;return!0}function fu(){Lt=_n=null,yt=!1}function KA(){var n=Jo;return n!==null&&(Hn===null?Hn=n:Hn.push.apply(Hn,n),Jo=null),n}function du(n){Jo===null?Jo=[n]:Jo.push(n)}var gh=Z(null),ea=null,Ii=null;function io(n,r,o){Q(gh,r._currentValue),r._currentValue=o}function Fi(n){n._currentValue=gh.current,se(gh)}function mh(n,r,o){for(;n!==null;){var s=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),n===o)break;n=n.return}}function Ah(n,r,o,s){var l=n.child;for(l!==null&&(l.return=n);l!==null;){var p=l.dependencies;if(p!==null){var E=l.child;p=p.firstContext;e:for(;p!==null;){var j=p;p=l;for(var ne=0;ne<r.length;ne++)if(j.context===r[ne]){p.lanes|=o,j=p.alternate,j!==null&&(j.lanes|=o),mh(p.return,o,n),s||(E=null);break e}p=j.next}}else if(l.tag===18){if(E=l.return,E===null)throw Error(a(341));E.lanes|=o,p=E.alternate,p!==null&&(p.lanes|=o),mh(E,o,n),E=null}else E=l.child;if(E!==null)E.return=l;else for(E=l;E!==null;){if(E===n){E=null;break}if(l=E.sibling,l!==null){l.return=E.return,E=l;break}E=E.return}l=E}}function hu(n,r,o,s){n=null;for(var l=r,p=!1;l!==null;){if(!p){if((l.flags&524288)!==0)p=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var E=l.alternate;if(E===null)throw Error(a(387));if(E=E.memoizedProps,E!==null){var j=l.type;nr(l.pendingProps.value,E.value)||(n!==null?n.push(j):n=[j])}}else if(l===pe.current){if(E=l.alternate,E===null)throw Error(a(387));E.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(n!==null?n.push(qu):n=[qu])}l=l.return}n!==null&&Ah(r,n,o,s),r.flags|=262144}function Cl(n){for(n=n.firstContext;n!==null;){if(!nr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ta(n){ea=n,Ii=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Tn(n){return YA(ea,n)}function Bl(n,r){return ea===null&&ta(n),YA(n,r)}function YA(n,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Ii===null){if(n===null)throw Error(a(308));Ii=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Ii=Ii.next=r;return o}var ZS=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(o,s){n.push(s)}};this.abort=function(){r.aborted=!0,n.forEach(function(o){return o()})}},JS=e.unstable_scheduleCallback,WS=e.unstable_NormalPriority,on={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bh(){return{controller:new ZS,data:new Map,refCount:0}}function pu(n){n.refCount--,n.refCount===0&&JS(WS,function(){n.controller.abort()})}var yu=null,xh=0,Ja=0,Wa=null;function eC(n,r){if(yu===null){var o=yu=[];xh=0,Ja=E0(),Wa={status:"pending",value:void 0,then:function(s){o.push(s)}}}return xh++,r.then(VA,VA),r}function VA(){if(--xh===0&&yu!==null){Wa!==null&&(Wa.status="fulfilled");var n=yu;yu=null,Ja=0,Wa=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function tC(n,r){var o=[],s={status:"pending",value:null,reason:null,then:function(l){o.push(l)}};return n.then(function(){s.status="fulfilled",s.value=r;for(var l=0;l<o.length;l++)(0,o[l])(r)},function(l){for(s.status="rejected",s.reason=l,l=0;l<o.length;l++)(0,o[l])(void 0)}),s}var XA=N.S;N.S=function(n,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&eC(n,r),XA!==null&&XA(n,r)};var na=Z(null);function wh(){var n=na.current;return n!==null?n:Ct.pooledCache}function Ol(n,r){r===null?Q(na,na.current):Q(na,r.pool)}function ZA(){var n=wh();return n===null?null:{parent:on._currentValue,pool:n}}var gu=Error(a(460)),JA=Error(a(474)),Tl=Error(a(542)),Eh={then:function(){}};function WA(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Rl(){}function e1(n,r,o){switch(o=n[o],o===void 0?n.push(r):o!==r&&(r.then(Rl,Rl),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,n1(n),n;default:if(typeof r.status=="string")r.then(Rl,Rl);else{if(n=Ct,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(s){if(r.status==="pending"){var l=r;l.status="fulfilled",l.value=s}},function(s){if(r.status==="pending"){var l=r;l.status="rejected",l.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,n1(n),n}throw mu=r,gu}}var mu=null;function t1(){if(mu===null)throw Error(a(459));var n=mu;return mu=null,n}function n1(n){if(n===gu||n===Tl)throw Error(a(483))}var oo=!1;function vh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ih(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ao(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function so(n,r,o){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(mt&2)!==0){var l=s.pending;return l===null?r.next=r:(r.next=l.next,l.next=r),s.pending=r,r=vl(n),qA(n,null,o),r}return El(n,s,r,o),vl(n)}function Au(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,jt(n,o)}}function Fh(n,r){var o=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var l=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var E={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?l=p=E:p=p.next=E,o=o.next}while(o!==null);p===null?l=p=r:p=p.next=r}else l=p=r;o={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var Sh=!1;function bu(){if(Sh){var n=Wa;if(n!==null)throw n}}function xu(n,r,o,s){Sh=!1;var l=n.updateQueue;oo=!1;var p=l.firstBaseUpdate,E=l.lastBaseUpdate,j=l.shared.pending;if(j!==null){l.shared.pending=null;var ne=j,be=ne.next;ne.next=null,E===null?p=be:E.next=be,E=ne;var Ce=n.alternate;Ce!==null&&(Ce=Ce.updateQueue,j=Ce.lastBaseUpdate,j!==E&&(j===null?Ce.firstBaseUpdate=be:j.next=be,Ce.lastBaseUpdate=ne))}if(p!==null){var Te=l.baseState;E=0,Ce=be=ne=null,j=p;do{var xe=j.lane&-536870913,Ee=xe!==j.lane;if(Ee?(ut&xe)===xe:(s&xe)===xe){xe!==0&&xe===Ja&&(Sh=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Ke=n,ke=j;xe=r;var vt=o;switch(ke.tag){case 1:if(Ke=ke.payload,typeof Ke=="function"){Te=Ke.call(vt,Te,xe);break e}Te=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=ke.payload,xe=typeof Ke=="function"?Ke.call(vt,Te,xe):Ke,xe==null)break e;Te=x({},Te,xe);break e;case 2:oo=!0}}xe=j.callback,xe!==null&&(n.flags|=64,Ee&&(n.flags|=8192),Ee=l.callbacks,Ee===null?l.callbacks=[xe]:Ee.push(xe))}else Ee={lane:xe,tag:j.tag,payload:j.payload,callback:j.callback,next:null},Ce===null?(be=Ce=Ee,ne=Te):Ce=Ce.next=Ee,E|=xe;if(j=j.next,j===null){if(j=l.shared.pending,j===null)break;Ee=j,j=Ee.next,Ee.next=null,l.lastBaseUpdate=Ee,l.shared.pending=null}}while(!0);Ce===null&&(ne=Te),l.baseState=ne,l.firstBaseUpdate=be,l.lastBaseUpdate=Ce,p===null&&(l.shared.lanes=0),go|=E,n.lanes=E,n.memoizedState=Te}}function r1(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function i1(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)r1(o[n],r)}var es=Z(null),Ul=Z(0);function o1(n,r){n=Ui,Q(Ul,n),Q(es,r),Ui=n|r.baseLanes}function Ch(){Q(Ul,Ui),Q(es,es.current)}function Bh(){Ui=Ul.current,se(es),se(Ul)}var uo=0,Ze=null,wt=null,Vt=null,Dl=!1,ts=!1,ra=!1,Ml=0,wu=0,ns=null,nC=0;function Gt(){throw Error(a(321))}function Oh(n,r){if(r===null)return!1;for(var o=0;o<r.length&&o<n.length;o++)if(!nr(n[o],r[o]))return!1;return!0}function Th(n,r,o,s,l,p){return uo=p,Ze=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,N.H=n===null||n.memoizedState===null?q1:Q1,ra=!1,p=o(s,l),ra=!1,ts&&(p=s1(r,o,s,l)),a1(n),p}function a1(n){N.H=Ll;var r=wt!==null&&wt.next!==null;if(uo=0,Vt=wt=Ze=null,Dl=!1,wu=0,ns=null,r)throw Error(a(300));n===null||ln||(n=n.dependencies,n!==null&&Cl(n)&&(ln=!0))}function s1(n,r,o,s){Ze=n;var l=0;do{if(ts&&(ns=null),wu=0,ts=!1,25<=l)throw Error(a(301));if(l+=1,Vt=wt=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}N.H=cC,p=r(o,s)}while(ts);return p}function rC(){var n=N.H,r=n.useState()[0];return r=typeof r.then=="function"?Eu(r):r,n=n.useState()[0],(wt!==null?wt.memoizedState:null)!==n&&(Ze.flags|=1024),r}function Rh(){var n=Ml!==0;return Ml=0,n}function Uh(n,r,o){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~o}function Dh(n){if(Dl){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Dl=!1}uo=0,Vt=wt=Ze=null,ts=!1,wu=Ml=0,ns=null}function qn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Ze.memoizedState=Vt=n:Vt=Vt.next=n,Vt}function Xt(){if(wt===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=wt.next;var r=Vt===null?Ze.memoizedState:Vt.next;if(r!==null)Vt=r,wt=n;else{if(n===null)throw Ze.alternate===null?Error(a(467)):Error(a(310));wt=n,n={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Vt===null?Ze.memoizedState=Vt=n:Vt=Vt.next=n}return Vt}function Mh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eu(n){var r=wu;return wu+=1,ns===null&&(ns=[]),n=e1(ns,n,r),r=Ze,(Vt===null?r.memoizedState:Vt.next)===null&&(r=r.alternate,N.H=r===null||r.memoizedState===null?q1:Q1),n}function jl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Eu(n);if(n.$$typeof===T)return Tn(n)}throw Error(a(438,String(n)))}function jh(n){var r=null,o=Ze.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var s=Ze.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(l){return l.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Mh(),Ze.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(n),s=0;s<n;s++)o[s]=_;return r.index++,o}function Si(n,r){return typeof r=="function"?r(n):r}function Nl(n){var r=Xt();return Nh(r,wt,n)}function Nh(n,r,o){var s=n.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=o;var l=n.baseQueue,p=s.pending;if(p!==null){if(l!==null){var E=l.next;l.next=p.next,p.next=E}r.baseQueue=l=p,s.pending=null}if(p=n.baseState,l===null)n.memoizedState=p;else{r=l.next;var j=E=null,ne=null,be=r,Ce=!1;do{var Te=be.lane&-536870913;if(Te!==be.lane?(ut&Te)===Te:(uo&Te)===Te){var xe=be.revertLane;if(xe===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),Te===Ja&&(Ce=!0);else if((uo&xe)===xe){be=be.next,xe===Ja&&(Ce=!0);continue}else Te={lane:0,revertLane:be.revertLane,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ne===null?(j=ne=Te,E=p):ne=ne.next=Te,Ze.lanes|=xe,go|=xe;Te=be.action,ra&&o(p,Te),p=be.hasEagerState?be.eagerState:o(p,Te)}else xe={lane:Te,revertLane:be.revertLane,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ne===null?(j=ne=xe,E=p):ne=ne.next=xe,Ze.lanes|=Te,go|=Te;be=be.next}while(be!==null&&be!==r);if(ne===null?E=p:ne.next=j,!nr(p,n.memoizedState)&&(ln=!0,Ce&&(o=Wa,o!==null)))throw o;n.memoizedState=p,n.baseState=E,n.baseQueue=ne,s.lastRenderedState=p}return l===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function _h(n){var r=Xt(),o=r.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var s=o.dispatch,l=o.pending,p=r.memoizedState;if(l!==null){o.pending=null;var E=l=l.next;do p=n(p,E.action),E=E.next;while(E!==l);nr(p,r.memoizedState)||(ln=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),o.lastRenderedState=p}return[p,s]}function u1(n,r,o){var s=Ze,l=Xt(),p=yt;if(p){if(o===void 0)throw Error(a(407));o=o()}else o=r();var E=!nr((wt||l).memoizedState,o);E&&(l.memoizedState=o,ln=!0),l=l.queue;var j=f1.bind(null,s,l,n);if(vu(2048,8,j,[n]),l.getSnapshot!==r||E||Vt!==null&&Vt.memoizedState.tag&1){if(s.flags|=2048,rs(9,_l(),l1.bind(null,s,l,o,r),null),Ct===null)throw Error(a(349));p||(uo&124)!==0||c1(s,r,o)}return o}function c1(n,r,o){n.flags|=16384,n={getSnapshot:r,value:o},r=Ze.updateQueue,r===null?(r=Mh(),Ze.updateQueue=r,r.stores=[n]):(o=r.stores,o===null?r.stores=[n]:o.push(n))}function l1(n,r,o,s){r.value=o,r.getSnapshot=s,d1(r)&&h1(n)}function f1(n,r,o){return o(function(){d1(r)&&h1(n)})}function d1(n){var r=n.getSnapshot;n=n.value;try{var o=r();return!nr(n,o)}catch{return!0}}function h1(n){var r=Ya(n,2);r!==null&&ur(r,n,2)}function Ph(n){var r=qn();if(typeof n=="function"){var o=n;if(n=o(),ra){Ue(!0);try{o()}finally{Ue(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:n},r}function p1(n,r,o,s){return n.baseState=o,Nh(n,wt,typeof s=="function"?s:Si)}function iC(n,r,o,s,l){if($l(n))throw Error(a(485));if(n=r.action,n!==null){var p={payload:l,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){p.listeners.push(E)}};N.T!==null?o(!0):p.isTransition=!1,s(p),o=r.pending,o===null?(p.next=r.pending=p,y1(r,p)):(p.next=o.next,r.pending=o.next=p)}}function y1(n,r){var o=r.action,s=r.payload,l=n.state;if(r.isTransition){var p=N.T,E={};N.T=E;try{var j=o(l,s),ne=N.S;ne!==null&&ne(E,j),g1(n,r,j)}catch(be){$h(n,r,be)}finally{N.T=p}}else try{p=o(l,s),g1(n,r,p)}catch(be){$h(n,r,be)}}function g1(n,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){m1(n,r,s)},function(s){return $h(n,r,s)}):m1(n,r,o)}function m1(n,r,o){r.status="fulfilled",r.value=o,A1(r),n.state=o,r=n.pending,r!==null&&(o=r.next,o===r?n.pending=null:(o=o.next,r.next=o,y1(n,o)))}function $h(n,r,o){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=o,A1(r),r=r.next;while(r!==s)}n.action=null}function A1(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function b1(n,r){return r}function x1(n,r){if(yt){var o=Ct.formState;if(o!==null){e:{var s=Ze;if(yt){if(Lt){t:{for(var l=Lt,p=ri;l.nodeType!==8;){if(!p){l=null;break t}if(l=qr(l.nextSibling),l===null){l=null;break t}}p=l.data,l=p==="F!"||p==="F"?l:null}if(l){Lt=qr(l.nextSibling),s=l.data==="F!";break e}}Wo(s)}s=!1}s&&(r=o[0])}}return o=qn(),o.memoizedState=o.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b1,lastRenderedState:r},o.queue=s,o=$1.bind(null,Ze,s),s.dispatch=o,s=Ph(!1),p=Hh.bind(null,Ze,!1,s.queue),s=qn(),l={state:r,dispatch:null,action:n,pending:null},s.queue=l,o=iC.bind(null,Ze,l,p,o),l.dispatch=o,s.memoizedState=n,[r,o,!1]}function w1(n){var r=Xt();return E1(r,wt,n)}function E1(n,r,o){if(r=Nh(n,r,b1)[0],n=Nl(Si)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Eu(r)}catch(E){throw E===gu?Tl:E}else s=r;r=Xt();var l=r.queue,p=l.dispatch;return o!==r.memoizedState&&(Ze.flags|=2048,rs(9,_l(),oC.bind(null,l,o),null)),[s,p,n]}function oC(n,r){n.action=r}function v1(n){var r=Xt(),o=wt;if(o!==null)return E1(r,o,n);Xt(),r=r.memoizedState,o=Xt();var s=o.queue.dispatch;return o.memoizedState=n,[r,s,!1]}function rs(n,r,o,s){return n={tag:n,create:o,deps:s,inst:r,next:null},r=Ze.updateQueue,r===null&&(r=Mh(),Ze.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=n.next=n:(s=o.next,o.next=n,n.next=s,r.lastEffect=n),n}function _l(){return{destroy:void 0,resource:void 0}}function I1(){return Xt().memoizedState}function Pl(n,r,o,s){var l=qn();s=s===void 0?null:s,Ze.flags|=n,l.memoizedState=rs(1|r,_l(),o,s)}function vu(n,r,o,s){var l=Xt();s=s===void 0?null:s;var p=l.memoizedState.inst;wt!==null&&s!==null&&Oh(s,wt.memoizedState.deps)?l.memoizedState=rs(r,p,o,s):(Ze.flags|=n,l.memoizedState=rs(1|r,p,o,s))}function F1(n,r){Pl(8390656,8,n,r)}function S1(n,r){vu(2048,8,n,r)}function C1(n,r){return vu(4,2,n,r)}function B1(n,r){return vu(4,4,n,r)}function O1(n,r){if(typeof r=="function"){n=n();var o=r(n);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function T1(n,r,o){o=o!=null?o.concat([n]):null,vu(4,4,O1.bind(null,r,n),o)}function Lh(){}function R1(n,r){var o=Xt();r=r===void 0?null:r;var s=o.memoizedState;return r!==null&&Oh(r,s[1])?s[0]:(o.memoizedState=[n,r],n)}function U1(n,r){var o=Xt();r=r===void 0?null:r;var s=o.memoizedState;if(r!==null&&Oh(r,s[1]))return s[0];if(s=n(),ra){Ue(!0);try{n()}finally{Ue(!1)}}return o.memoizedState=[s,r],s}function zh(n,r,o){return o===void 0||(uo&1073741824)!==0?n.memoizedState=r:(n.memoizedState=o,n=jb(),Ze.lanes|=n,go|=n,o)}function D1(n,r,o,s){return nr(o,r)?o:es.current!==null?(n=zh(n,o,s),nr(n,r)||(ln=!0),n):(uo&42)===0?(ln=!0,n.memoizedState=o):(n=jb(),Ze.lanes|=n,go|=n,r)}function M1(n,r,o,s,l){var p=ce.p;ce.p=p!==0&&8>p?p:8;var E=N.T,j={};N.T=j,Hh(n,!1,r,o);try{var ne=l(),be=N.S;if(be!==null&&be(j,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Ce=tC(ne,s);Iu(n,r,Ce,sr(n))}else Iu(n,r,s,sr(n))}catch(Te){Iu(n,r,{then:function(){},status:"rejected",reason:Te},sr())}finally{ce.p=p,N.T=E}}function aC(){}function qh(n,r,o,s){if(n.tag!==5)throw Error(a(476));var l=j1(n).queue;M1(n,l,r,me,o===null?aC:function(){return N1(n),o(s)})}function j1(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:me},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function N1(n){var r=j1(n).next.queue;Iu(n,r,{},sr())}function Qh(){return Tn(qu)}function _1(){return Xt().memoizedState}function P1(){return Xt().memoizedState}function sC(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=sr();n=ao(o);var s=so(r,n,o);s!==null&&(ur(s,r,o),Au(s,r,o)),r={cache:bh()},n.payload=r;return}r=r.return}}function uC(n,r,o){var s=sr();o={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},$l(n)?L1(r,o):(o=ch(n,r,o,s),o!==null&&(ur(o,n,s),z1(o,r,s)))}function $1(n,r,o){var s=sr();Iu(n,r,o,s)}function Iu(n,r,o,s){var l={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if($l(n))L1(r,l);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var E=r.lastRenderedState,j=p(E,o);if(l.hasEagerState=!0,l.eagerState=j,nr(j,E))return El(n,r,l,0),Ct===null&&wl(),!1}catch{}finally{}if(o=ch(n,r,l,s),o!==null)return ur(o,n,s),z1(o,r,s),!0}return!1}function Hh(n,r,o,s){if(s={lane:2,revertLane:E0(),action:s,hasEagerState:!1,eagerState:null,next:null},$l(n)){if(r)throw Error(a(479))}else r=ch(n,o,s,2),r!==null&&ur(r,n,2)}function $l(n){var r=n.alternate;return n===Ze||r!==null&&r===Ze}function L1(n,r){ts=Dl=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function z1(n,r,o){if((o&4194048)!==0){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,jt(n,o)}}var Ll={readContext:Tn,use:jl,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt},q1={readContext:Tn,use:jl,useCallback:function(n,r){return qn().memoizedState=[n,r===void 0?null:r],n},useContext:Tn,useEffect:F1,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,Pl(4194308,4,O1.bind(null,r,n),o)},useLayoutEffect:function(n,r){return Pl(4194308,4,n,r)},useInsertionEffect:function(n,r){Pl(4,2,n,r)},useMemo:function(n,r){var o=qn();r=r===void 0?null:r;var s=n();if(ra){Ue(!0);try{n()}finally{Ue(!1)}}return o.memoizedState=[s,r],s},useReducer:function(n,r,o){var s=qn();if(o!==void 0){var l=o(r);if(ra){Ue(!0);try{o(r)}finally{Ue(!1)}}}else l=r;return s.memoizedState=s.baseState=l,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:l},s.queue=n,n=n.dispatch=uC.bind(null,Ze,n),[s.memoizedState,n]},useRef:function(n){var r=qn();return n={current:n},r.memoizedState=n},useState:function(n){n=Ph(n);var r=n.queue,o=$1.bind(null,Ze,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:Lh,useDeferredValue:function(n,r){var o=qn();return zh(o,n,r)},useTransition:function(){var n=Ph(!1);return n=M1.bind(null,Ze,n.queue,!0,!1),qn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var s=Ze,l=qn();if(yt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),Ct===null)throw Error(a(349));(ut&124)!==0||c1(s,r,o)}l.memoizedState=o;var p={value:o,getSnapshot:r};return l.queue=p,F1(f1.bind(null,s,p,n),[n]),s.flags|=2048,rs(9,_l(),l1.bind(null,s,p,o,r),null),o},useId:function(){var n=qn(),r=Ct.identifierPrefix;if(yt){var o=vi,s=Ei;o=(s&~(1<<32-_e(s)-1)).toString(32)+o,r="«"+r+"R"+o,o=Ml++,0<o&&(r+="H"+o.toString(32)),r+="»"}else o=nC++,r="«"+r+"r"+o.toString(32)+"»";return n.memoizedState=r},useHostTransitionStatus:Qh,useFormState:x1,useActionState:x1,useOptimistic:function(n){var r=qn();r.memoizedState=r.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=Hh.bind(null,Ze,!0,o),o.dispatch=r,[n,r]},useMemoCache:jh,useCacheRefresh:function(){return qn().memoizedState=sC.bind(null,Ze)}},Q1={readContext:Tn,use:jl,useCallback:R1,useContext:Tn,useEffect:S1,useImperativeHandle:T1,useInsertionEffect:C1,useLayoutEffect:B1,useMemo:U1,useReducer:Nl,useRef:I1,useState:function(){return Nl(Si)},useDebugValue:Lh,useDeferredValue:function(n,r){var o=Xt();return D1(o,wt.memoizedState,n,r)},useTransition:function(){var n=Nl(Si)[0],r=Xt().memoizedState;return[typeof n=="boolean"?n:Eu(n),r]},useSyncExternalStore:u1,useId:_1,useHostTransitionStatus:Qh,useFormState:w1,useActionState:w1,useOptimistic:function(n,r){var o=Xt();return p1(o,wt,n,r)},useMemoCache:jh,useCacheRefresh:P1},cC={readContext:Tn,use:jl,useCallback:R1,useContext:Tn,useEffect:S1,useImperativeHandle:T1,useInsertionEffect:C1,useLayoutEffect:B1,useMemo:U1,useReducer:_h,useRef:I1,useState:function(){return _h(Si)},useDebugValue:Lh,useDeferredValue:function(n,r){var o=Xt();return wt===null?zh(o,n,r):D1(o,wt.memoizedState,n,r)},useTransition:function(){var n=_h(Si)[0],r=Xt().memoizedState;return[typeof n=="boolean"?n:Eu(n),r]},useSyncExternalStore:u1,useId:_1,useHostTransitionStatus:Qh,useFormState:v1,useActionState:v1,useOptimistic:function(n,r){var o=Xt();return wt!==null?p1(o,wt,n,r):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:jh,useCacheRefresh:P1},is=null,Fu=0;function zl(n){var r=Fu;return Fu+=1,is===null&&(is=[]),e1(is,n,r)}function Su(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function ql(n,r){throw r.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function H1(n){var r=n._init;return r(n._payload)}function k1(n){function r(de,le){if(n){var Ae=de.deletions;Ae===null?(de.deletions=[le],de.flags|=16):Ae.push(le)}}function o(de,le){if(!n)return null;for(;le!==null;)r(de,le),le=le.sibling;return null}function s(de){for(var le=new Map;de!==null;)de.key!==null?le.set(de.key,de):le.set(de.index,de),de=de.sibling;return le}function l(de,le){return de=wi(de,le),de.index=0,de.sibling=null,de}function p(de,le,Ae){return de.index=Ae,n?(Ae=de.alternate,Ae!==null?(Ae=Ae.index,Ae<le?(de.flags|=67108866,le):Ae):(de.flags|=67108866,le)):(de.flags|=1048576,le)}function E(de){return n&&de.alternate===null&&(de.flags|=67108866),de}function j(de,le,Ae,Oe){return le===null||le.tag!==6?(le=fh(Ae,de.mode,Oe),le.return=de,le):(le=l(le,Ae),le.return=de,le)}function ne(de,le,Ae,Oe){var ze=Ae.type;return ze===B?Ce(de,le,Ae.props.children,Oe,Ae.key):le!==null&&(le.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===te&&H1(ze)===le.type)?(le=l(le,Ae.props),Su(le,Ae),le.return=de,le):(le=Il(Ae.type,Ae.key,Ae.props,null,de.mode,Oe),Su(le,Ae),le.return=de,le)}function be(de,le,Ae,Oe){return le===null||le.tag!==4||le.stateNode.containerInfo!==Ae.containerInfo||le.stateNode.implementation!==Ae.implementation?(le=dh(Ae,de.mode,Oe),le.return=de,le):(le=l(le,Ae.children||[]),le.return=de,le)}function Ce(de,le,Ae,Oe,ze){return le===null||le.tag!==7?(le=Vo(Ae,de.mode,Oe,ze),le.return=de,le):(le=l(le,Ae),le.return=de,le)}function Te(de,le,Ae){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return le=fh(""+le,de.mode,Ae),le.return=de,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case I:return Ae=Il(le.type,le.key,le.props,null,de.mode,Ae),Su(Ae,le),Ae.return=de,Ae;case C:return le=dh(le,de.mode,Ae),le.return=de,le;case te:var Oe=le._init;return le=Oe(le._payload),Te(de,le,Ae)}if(he(le)||H(le))return le=Vo(le,de.mode,Ae,null),le.return=de,le;if(typeof le.then=="function")return Te(de,zl(le),Ae);if(le.$$typeof===T)return Te(de,Bl(de,le),Ae);ql(de,le)}return null}function xe(de,le,Ae,Oe){var ze=le!==null?le.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ze!==null?null:j(de,le,""+Ae,Oe);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case I:return Ae.key===ze?ne(de,le,Ae,Oe):null;case C:return Ae.key===ze?be(de,le,Ae,Oe):null;case te:return ze=Ae._init,Ae=ze(Ae._payload),xe(de,le,Ae,Oe)}if(he(Ae)||H(Ae))return ze!==null?null:Ce(de,le,Ae,Oe,null);if(typeof Ae.then=="function")return xe(de,le,zl(Ae),Oe);if(Ae.$$typeof===T)return xe(de,le,Bl(de,Ae),Oe);ql(de,Ae)}return null}function Ee(de,le,Ae,Oe,ze){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return de=de.get(Ae)||null,j(le,de,""+Oe,ze);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case I:return de=de.get(Oe.key===null?Ae:Oe.key)||null,ne(le,de,Oe,ze);case C:return de=de.get(Oe.key===null?Ae:Oe.key)||null,be(le,de,Oe,ze);case te:var Je=Oe._init;return Oe=Je(Oe._payload),Ee(de,le,Ae,Oe,ze)}if(he(Oe)||H(Oe))return de=de.get(Ae)||null,Ce(le,de,Oe,ze,null);if(typeof Oe.then=="function")return Ee(de,le,Ae,zl(Oe),ze);if(Oe.$$typeof===T)return Ee(de,le,Ae,Bl(le,Oe),ze);ql(le,Oe)}return null}function Ke(de,le,Ae,Oe){for(var ze=null,Je=null,qe=le,Ge=le=0,dn=null;qe!==null&&Ge<Ae.length;Ge++){qe.index>Ge?(dn=qe,qe=null):dn=qe.sibling;var pt=xe(de,qe,Ae[Ge],Oe);if(pt===null){qe===null&&(qe=dn);break}n&&qe&&pt.alternate===null&&r(de,qe),le=p(pt,le,Ge),Je===null?ze=pt:Je.sibling=pt,Je=pt,qe=dn}if(Ge===Ae.length)return o(de,qe),yt&&Zo(de,Ge),ze;if(qe===null){for(;Ge<Ae.length;Ge++)qe=Te(de,Ae[Ge],Oe),qe!==null&&(le=p(qe,le,Ge),Je===null?ze=qe:Je.sibling=qe,Je=qe);return yt&&Zo(de,Ge),ze}for(qe=s(qe);Ge<Ae.length;Ge++)dn=Ee(qe,de,Ge,Ae[Ge],Oe),dn!==null&&(n&&dn.alternate!==null&&qe.delete(dn.key===null?Ge:dn.key),le=p(dn,le,Ge),Je===null?ze=dn:Je.sibling=dn,Je=dn);return n&&qe.forEach(function(Fo){return r(de,Fo)}),yt&&Zo(de,Ge),ze}function ke(de,le,Ae,Oe){if(Ae==null)throw Error(a(151));for(var ze=null,Je=null,qe=le,Ge=le=0,dn=null,pt=Ae.next();qe!==null&&!pt.done;Ge++,pt=Ae.next()){qe.index>Ge?(dn=qe,qe=null):dn=qe.sibling;var Fo=xe(de,qe,pt.value,Oe);if(Fo===null){qe===null&&(qe=dn);break}n&&qe&&Fo.alternate===null&&r(de,qe),le=p(Fo,le,Ge),Je===null?ze=Fo:Je.sibling=Fo,Je=Fo,qe=dn}if(pt.done)return o(de,qe),yt&&Zo(de,Ge),ze;if(qe===null){for(;!pt.done;Ge++,pt=Ae.next())pt=Te(de,pt.value,Oe),pt!==null&&(le=p(pt,le,Ge),Je===null?ze=pt:Je.sibling=pt,Je=pt);return yt&&Zo(de,Ge),ze}for(qe=s(qe);!pt.done;Ge++,pt=Ae.next())pt=Ee(qe,de,Ge,pt.value,Oe),pt!==null&&(n&&pt.alternate!==null&&qe.delete(pt.key===null?Ge:pt.key),le=p(pt,le,Ge),Je===null?ze=pt:Je.sibling=pt,Je=pt);return n&&qe.forEach(function(l3){return r(de,l3)}),yt&&Zo(de,Ge),ze}function vt(de,le,Ae,Oe){if(typeof Ae=="object"&&Ae!==null&&Ae.type===B&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case I:e:{for(var ze=Ae.key;le!==null;){if(le.key===ze){if(ze=Ae.type,ze===B){if(le.tag===7){o(de,le.sibling),Oe=l(le,Ae.props.children),Oe.return=de,de=Oe;break e}}else if(le.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===te&&H1(ze)===le.type){o(de,le.sibling),Oe=l(le,Ae.props),Su(Oe,Ae),Oe.return=de,de=Oe;break e}o(de,le);break}else r(de,le);le=le.sibling}Ae.type===B?(Oe=Vo(Ae.props.children,de.mode,Oe,Ae.key),Oe.return=de,de=Oe):(Oe=Il(Ae.type,Ae.key,Ae.props,null,de.mode,Oe),Su(Oe,Ae),Oe.return=de,de=Oe)}return E(de);case C:e:{for(ze=Ae.key;le!==null;){if(le.key===ze)if(le.tag===4&&le.stateNode.containerInfo===Ae.containerInfo&&le.stateNode.implementation===Ae.implementation){o(de,le.sibling),Oe=l(le,Ae.children||[]),Oe.return=de,de=Oe;break e}else{o(de,le);break}else r(de,le);le=le.sibling}Oe=dh(Ae,de.mode,Oe),Oe.return=de,de=Oe}return E(de);case te:return ze=Ae._init,Ae=ze(Ae._payload),vt(de,le,Ae,Oe)}if(he(Ae))return Ke(de,le,Ae,Oe);if(H(Ae)){if(ze=H(Ae),typeof ze!="function")throw Error(a(150));return Ae=ze.call(Ae),ke(de,le,Ae,Oe)}if(typeof Ae.then=="function")return vt(de,le,zl(Ae),Oe);if(Ae.$$typeof===T)return vt(de,le,Bl(de,Ae),Oe);ql(de,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,le!==null&&le.tag===6?(o(de,le.sibling),Oe=l(le,Ae),Oe.return=de,de=Oe):(o(de,le),Oe=fh(Ae,de.mode,Oe),Oe.return=de,de=Oe),E(de)):o(de,le)}return function(de,le,Ae,Oe){try{Fu=0;var ze=vt(de,le,Ae,Oe);return is=null,ze}catch(qe){if(qe===gu||qe===Tl)throw qe;var Je=rr(29,qe,null,de.mode);return Je.lanes=Oe,Je.return=de,Je}finally{}}}var os=k1(!0),G1=k1(!1),Sr=Z(null),ii=null;function co(n){var r=n.alternate;Q(an,an.current&1),Q(Sr,n),ii===null&&(r===null||es.current!==null||r.memoizedState!==null)&&(ii=n)}function K1(n){if(n.tag===22){if(Q(an,an.current),Q(Sr,n),ii===null){var r=n.alternate;r!==null&&r.memoizedState!==null&&(ii=n)}}else lo()}function lo(){Q(an,an.current),Q(Sr,Sr.current)}function Ci(n){se(Sr),ii===n&&(ii=null),se(an)}var an=Z(0);function Ql(n){for(var r=n;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||M0(o)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function kh(n,r,o,s){r=n.memoizedState,o=o(s,r),o=o==null?r:x({},r,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Gh={enqueueSetState:function(n,r,o){n=n._reactInternals;var s=sr(),l=ao(s);l.payload=r,o!=null&&(l.callback=o),r=so(n,l,s),r!==null&&(ur(r,n,s),Au(r,n,s))},enqueueReplaceState:function(n,r,o){n=n._reactInternals;var s=sr(),l=ao(s);l.tag=1,l.payload=r,o!=null&&(l.callback=o),r=so(n,l,s),r!==null&&(ur(r,n,s),Au(r,n,s))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var o=sr(),s=ao(o);s.tag=2,r!=null&&(s.callback=r),r=so(n,s,o),r!==null&&(ur(r,n,o),Au(r,n,o))}};function Y1(n,r,o,s,l,p,E){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,p,E):r.prototype&&r.prototype.isPureReactComponent?!uu(o,s)||!uu(l,p):!0}function V1(n,r,o,s){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,s),r.state!==n&&Gh.enqueueReplaceState(r,r.state,null)}function ia(n,r){var o=r;if("ref"in r){o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}if(n=n.defaultProps){o===r&&(o=x({},o));for(var l in n)o[l]===void 0&&(o[l]=n[l])}return o}var Hl=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof ft=="object"&&typeof ft.emit=="function"){ft.emit("uncaughtException",n);return}console.error(n)};function X1(n){Hl(n)}function Z1(n){console.error(n)}function J1(n){Hl(n)}function kl(n,r){try{var o=n.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function W1(n,r,o){try{var s=n.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Kh(n,r,o){return o=ao(o),o.tag=3,o.payload={element:null},o.callback=function(){kl(n,r)},o}function eb(n){return n=ao(n),n.tag=3,n}function tb(n,r,o,s){var l=o.type.getDerivedStateFromError;if(typeof l=="function"){var p=s.value;n.payload=function(){return l(p)},n.callback=function(){W1(r,o,s)}}var E=o.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(n.callback=function(){W1(r,o,s),typeof l!="function"&&(mo===null?mo=new Set([this]):mo.add(this));var j=s.stack;this.componentDidCatch(s.value,{componentStack:j!==null?j:""})})}function lC(n,r,o,s,l){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=o.alternate,r!==null&&hu(r,o,l,!0),o=Sr.current,o!==null){switch(o.tag){case 13:return ii===null?m0():o.alternate===null&&zt===0&&(zt=3),o.flags&=-257,o.flags|=65536,o.lanes=l,s===Eh?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([s]):r.add(s),b0(n,s,l)),!1;case 22:return o.flags|=65536,s===Eh?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([s]):o.add(s)),b0(n,s,l)),!1}throw Error(a(435,o.tag))}return b0(n,s,l),m0(),!1}if(yt)return r=Sr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=l,s!==yh&&(n=Error(a(422),{cause:s}),du(Er(n,o)))):(s!==yh&&(r=Error(a(423),{cause:s}),du(Er(r,o))),n=n.current.alternate,n.flags|=65536,l&=-l,n.lanes|=l,s=Er(s,o),l=Kh(n.stateNode,s,l),Fh(n,l),zt!==4&&(zt=2)),!1;var p=Error(a(520),{cause:s});if(p=Er(p,o),Du===null?Du=[p]:Du.push(p),zt!==4&&(zt=2),r===null)return!0;s=Er(s,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,n=l&-l,o.lanes|=n,n=Kh(o.stateNode,s,n),Fh(o,n),!1;case 1:if(r=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(mo===null||!mo.has(p))))return o.flags|=65536,l&=-l,o.lanes|=l,l=eb(l),tb(l,n,o,s),Fh(o,l),!1}o=o.return}while(o!==null);return!1}var nb=Error(a(461)),ln=!1;function bn(n,r,o,s){r.child=n===null?G1(r,null,o,s):os(r,n.child,o,s)}function rb(n,r,o,s,l){o=o.render;var p=r.ref;if("ref"in s){var E={};for(var j in s)j!=="ref"&&(E[j]=s[j])}else E=s;return ta(r),s=Th(n,r,o,E,p,l),j=Rh(),n!==null&&!ln?(Uh(n,r,l),Bi(n,r,l)):(yt&&j&&hh(r),r.flags|=1,bn(n,r,s,l),r.child)}function ib(n,r,o,s,l){if(n===null){var p=o.type;return typeof p=="function"&&!lh(p)&&p.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=p,ob(n,r,p,s,l)):(n=Il(o.type,null,s,r,r.mode,l),n.ref=r.ref,n.return=r,r.child=n)}if(p=n.child,!t0(n,l)){var E=p.memoizedProps;if(o=o.compare,o=o!==null?o:uu,o(E,s)&&n.ref===r.ref)return Bi(n,r,l)}return r.flags|=1,n=wi(p,s),n.ref=r.ref,n.return=r,r.child=n}function ob(n,r,o,s,l){if(n!==null){var p=n.memoizedProps;if(uu(p,s)&&n.ref===r.ref)if(ln=!1,r.pendingProps=s=p,t0(n,l))(n.flags&131072)!==0&&(ln=!0);else return r.lanes=n.lanes,Bi(n,r,l)}return Yh(n,r,o,s,l)}function ab(n,r,o){var s=r.pendingProps,l=s.children,p=n!==null?n.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=p!==null?p.baseLanes|o:o,n!==null){for(l=r.child=n.child,p=0;l!==null;)p=p|l.lanes|l.childLanes,l=l.sibling;r.childLanes=p&~s}else r.childLanes=0,r.child=null;return sb(n,r,s,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Ol(r,p!==null?p.cachePool:null),p!==null?o1(r,p):Ch(),K1(r);else return r.lanes=r.childLanes=536870912,sb(n,r,p!==null?p.baseLanes|o:o,o)}else p!==null?(Ol(r,p.cachePool),o1(r,p),lo(),r.memoizedState=null):(n!==null&&Ol(r,null),Ch(),lo());return bn(n,r,l,o),r.child}function sb(n,r,o,s){var l=wh();return l=l===null?null:{parent:on._currentValue,pool:l},r.memoizedState={baseLanes:o,cachePool:l},n!==null&&Ol(r,null),Ch(),K1(r),n!==null&&hu(n,r,s,!0),null}function Gl(n,r){var o=r.ref;if(o===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(n===null||n.ref!==o)&&(r.flags|=4194816)}}function Yh(n,r,o,s,l){return ta(r),o=Th(n,r,o,s,void 0,l),s=Rh(),n!==null&&!ln?(Uh(n,r,l),Bi(n,r,l)):(yt&&s&&hh(r),r.flags|=1,bn(n,r,o,l),r.child)}function ub(n,r,o,s,l,p){return ta(r),r.updateQueue=null,o=s1(r,s,o,l),a1(n),s=Rh(),n!==null&&!ln?(Uh(n,r,p),Bi(n,r,p)):(yt&&s&&hh(r),r.flags|=1,bn(n,r,o,p),r.child)}function cb(n,r,o,s,l){if(ta(r),r.stateNode===null){var p=Va,E=o.contextType;typeof E=="object"&&E!==null&&(p=Tn(E)),p=new o(s,p),r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Gh,r.stateNode=p,p._reactInternals=r,p=r.stateNode,p.props=s,p.state=r.memoizedState,p.refs={},vh(r),E=o.contextType,p.context=typeof E=="object"&&E!==null?Tn(E):Va,p.state=r.memoizedState,E=o.getDerivedStateFromProps,typeof E=="function"&&(kh(r,o,E,s),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(E=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),E!==p.state&&Gh.enqueueReplaceState(p,p.state,null),xu(r,s,p,l),bu(),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(n===null){p=r.stateNode;var j=r.memoizedProps,ne=ia(o,j);p.props=ne;var be=p.context,Ce=o.contextType;E=Va,typeof Ce=="object"&&Ce!==null&&(E=Tn(Ce));var Te=o.getDerivedStateFromProps;Ce=typeof Te=="function"||typeof p.getSnapshotBeforeUpdate=="function",j=r.pendingProps!==j,Ce||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(j||be!==E)&&V1(r,p,s,E),oo=!1;var xe=r.memoizedState;p.state=xe,xu(r,s,p,l),bu(),be=r.memoizedState,j||xe!==be||oo?(typeof Te=="function"&&(kh(r,o,Te,s),be=r.memoizedState),(ne=oo||Y1(r,o,ne,s,xe,be,E))?(Ce||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(r.flags|=4194308)):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=be),p.props=s,p.state=be,p.context=E,s=ne):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{p=r.stateNode,Ih(n,r),E=r.memoizedProps,Ce=ia(o,E),p.props=Ce,Te=r.pendingProps,xe=p.context,be=o.contextType,ne=Va,typeof be=="object"&&be!==null&&(ne=Tn(be)),j=o.getDerivedStateFromProps,(be=typeof j=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E!==Te||xe!==ne)&&V1(r,p,s,ne),oo=!1,xe=r.memoizedState,p.state=xe,xu(r,s,p,l),bu();var Ee=r.memoizedState;E!==Te||xe!==Ee||oo||n!==null&&n.dependencies!==null&&Cl(n.dependencies)?(typeof j=="function"&&(kh(r,o,j,s),Ee=r.memoizedState),(Ce=oo||Y1(r,o,Ce,s,xe,Ee,ne)||n!==null&&n.dependencies!==null&&Cl(n.dependencies))?(be||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Ee,ne),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Ee,ne)),typeof p.componentDidUpdate=="function"&&(r.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof p.componentDidUpdate!="function"||E===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Ee),p.props=s,p.state=Ee,p.context=ne,s=Ce):(typeof p.componentDidUpdate!="function"||E===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),s=!1)}return p=s,Gl(n,r),s=(r.flags&128)!==0,p||s?(p=r.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:p.render(),r.flags|=1,n!==null&&s?(r.child=os(r,n.child,null,l),r.child=os(r,null,o,l)):bn(n,r,o,l),r.memoizedState=p.state,n=r.child):n=Bi(n,r,l),n}function lb(n,r,o,s){return fu(),r.flags|=256,bn(n,r,o,s),r.child}var Vh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xh(n){return{baseLanes:n,cachePool:ZA()}}function Zh(n,r,o){return n=n!==null?n.childLanes&~o:0,r&&(n|=Cr),n}function fb(n,r,o){var s=r.pendingProps,l=!1,p=(r.flags&128)!==0,E;if((E=p)||(E=n!==null&&n.memoizedState===null?!1:(an.current&2)!==0),E&&(l=!0,r.flags&=-129),E=(r.flags&32)!==0,r.flags&=-33,n===null){if(yt){if(l?co(r):lo(),yt){var j=Lt,ne;if(ne=j){e:{for(ne=j,j=ri;ne.nodeType!==8;){if(!j){j=null;break e}if(ne=qr(ne.nextSibling),ne===null){j=null;break e}}j=ne}j!==null?(r.memoizedState={dehydrated:j,treeContext:Xo!==null?{id:Ei,overflow:vi}:null,retryLane:536870912,hydrationErrors:null},ne=rr(18,null,null,0),ne.stateNode=j,ne.return=r,r.child=ne,_n=r,Lt=null,ne=!0):ne=!1}ne||Wo(r)}if(j=r.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return M0(j)?r.lanes=32:r.lanes=536870912,null;Ci(r)}return j=s.children,s=s.fallback,l?(lo(),l=r.mode,j=Kl({mode:"hidden",children:j},l),s=Vo(s,l,o,null),j.return=r,s.return=r,j.sibling=s,r.child=j,l=r.child,l.memoizedState=Xh(o),l.childLanes=Zh(n,E,o),r.memoizedState=Vh,s):(co(r),Jh(r,j))}if(ne=n.memoizedState,ne!==null&&(j=ne.dehydrated,j!==null)){if(p)r.flags&256?(co(r),r.flags&=-257,r=Wh(n,r,o)):r.memoizedState!==null?(lo(),r.child=n.child,r.flags|=128,r=null):(lo(),l=s.fallback,j=r.mode,s=Kl({mode:"visible",children:s.children},j),l=Vo(l,j,o,null),l.flags|=2,s.return=r,l.return=r,s.sibling=l,r.child=s,os(r,n.child,null,o),s=r.child,s.memoizedState=Xh(o),s.childLanes=Zh(n,E,o),r.memoizedState=Vh,r=l);else if(co(r),M0(j)){if(E=j.nextSibling&&j.nextSibling.dataset,E)var be=E.dgst;E=be,s=Error(a(419)),s.stack="",s.digest=E,du({value:s,source:null,stack:null}),r=Wh(n,r,o)}else if(ln||hu(n,r,o,!1),E=(o&n.childLanes)!==0,ln||E){if(E=Ct,E!==null&&(s=o&-o,s=(s&42)!==0?1:Ot(s),s=(s&(E.suspendedLanes|o))!==0?0:s,s!==0&&s!==ne.retryLane))throw ne.retryLane=s,Ya(n,s),ur(E,n,s),nb;j.data==="$?"||m0(),r=Wh(n,r,o)}else j.data==="$?"?(r.flags|=192,r.child=n.child,r=null):(n=ne.treeContext,Lt=qr(j.nextSibling),_n=r,yt=!0,Jo=null,ri=!1,n!==null&&(Ir[Fr++]=Ei,Ir[Fr++]=vi,Ir[Fr++]=Xo,Ei=n.id,vi=n.overflow,Xo=r),r=Jh(r,s.children),r.flags|=4096);return r}return l?(lo(),l=s.fallback,j=r.mode,ne=n.child,be=ne.sibling,s=wi(ne,{mode:"hidden",children:s.children}),s.subtreeFlags=ne.subtreeFlags&65011712,be!==null?l=wi(be,l):(l=Vo(l,j,o,null),l.flags|=2),l.return=r,s.return=r,s.sibling=l,r.child=s,s=l,l=r.child,j=n.child.memoizedState,j===null?j=Xh(o):(ne=j.cachePool,ne!==null?(be=on._currentValue,ne=ne.parent!==be?{parent:be,pool:be}:ne):ne=ZA(),j={baseLanes:j.baseLanes|o,cachePool:ne}),l.memoizedState=j,l.childLanes=Zh(n,E,o),r.memoizedState=Vh,s):(co(r),o=n.child,n=o.sibling,o=wi(o,{mode:"visible",children:s.children}),o.return=r,o.sibling=null,n!==null&&(E=r.deletions,E===null?(r.deletions=[n],r.flags|=16):E.push(n)),r.child=o,r.memoizedState=null,o)}function Jh(n,r){return r=Kl({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Kl(n,r){return n=rr(22,n,null,r),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Wh(n,r,o){return os(r,n.child,null,o),n=Jh(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function db(n,r,o){n.lanes|=r;var s=n.alternate;s!==null&&(s.lanes|=r),mh(n.return,r,o)}function e0(n,r,o,s,l){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:l}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=o,p.tailMode=l)}function hb(n,r,o){var s=r.pendingProps,l=s.revealOrder,p=s.tail;if(bn(n,r,s.children,o),s=an.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&db(n,o,r);else if(n.tag===19)db(n,o,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}s&=1}switch(Q(an,s),l){case"forwards":for(o=r.child,l=null;o!==null;)n=o.alternate,n!==null&&Ql(n)===null&&(l=o),o=o.sibling;o=l,o===null?(l=r.child,r.child=null):(l=o.sibling,o.sibling=null),e0(r,!1,l,o,p);break;case"backwards":for(o=null,l=r.child,r.child=null;l!==null;){if(n=l.alternate,n!==null&&Ql(n)===null){r.child=l;break}n=l.sibling,l.sibling=o,o=l,l=n}e0(r,!0,o,null,p);break;case"together":e0(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Bi(n,r,o){if(n!==null&&(r.dependencies=n.dependencies),go|=r.lanes,(o&r.childLanes)===0)if(n!==null){if(hu(n,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,o=wi(n,n.pendingProps),r.child=o,o.return=r;n.sibling!==null;)n=n.sibling,o=o.sibling=wi(n,n.pendingProps),o.return=r;o.sibling=null}return r.child}function t0(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&Cl(n)))}function fC(n,r,o){switch(r.tag){case 3:ge(r,r.stateNode.containerInfo),io(r,on,n.memoizedState.cache),fu();break;case 27:case 5:b(r);break;case 4:ge(r,r.stateNode.containerInfo);break;case 10:io(r,r.type,r.memoizedProps.value);break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(co(r),r.flags|=128,null):(o&r.child.childLanes)!==0?fb(n,r,o):(co(r),n=Bi(n,r,o),n!==null?n.sibling:null);co(r);break;case 19:var l=(n.flags&128)!==0;if(s=(o&r.childLanes)!==0,s||(hu(n,r,o,!1),s=(o&r.childLanes)!==0),l){if(s)return hb(n,r,o);r.flags|=128}if(l=r.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(an,an.current),s)break;return null;case 22:case 23:return r.lanes=0,ab(n,r,o);case 24:io(r,on,n.memoizedState.cache)}return Bi(n,r,o)}function pb(n,r,o){if(n!==null)if(n.memoizedProps!==r.pendingProps)ln=!0;else{if(!t0(n,o)&&(r.flags&128)===0)return ln=!1,fC(n,r,o);ln=(n.flags&131072)!==0}else ln=!1,yt&&(r.flags&1048576)!==0&&HA(r,Sl,r.index);switch(r.lanes=0,r.tag){case 16:e:{n=r.pendingProps;var s=r.elementType,l=s._init;if(s=l(s._payload),r.type=s,typeof s=="function")lh(s)?(n=ia(s,n),r.tag=1,r=cb(null,r,s,n,o)):(r.tag=0,r=Yh(null,r,s,n,o));else{if(s!=null){if(l=s.$$typeof,l===L){r.tag=11,r=rb(null,r,s,n,o);break e}else if(l===oe){r.tag=14,r=ib(null,r,s,n,o);break e}}throw r=fe(s)||s,Error(a(306,r,""))}}return r;case 0:return Yh(n,r,r.type,r.pendingProps,o);case 1:return s=r.type,l=ia(s,r.pendingProps),cb(n,r,s,l,o);case 3:e:{if(ge(r,r.stateNode.containerInfo),n===null)throw Error(a(387));s=r.pendingProps;var p=r.memoizedState;l=p.element,Ih(n,r),xu(r,s,null,o);var E=r.memoizedState;if(s=E.cache,io(r,on,s),s!==p.cache&&Ah(r,[on],o,!0),bu(),s=E.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:E.cache},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){r=lb(n,r,s,o);break e}else if(s!==l){l=Er(Error(a(424)),r),du(l),r=lb(n,r,s,o);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Lt=qr(n.firstChild),_n=r,yt=!0,Jo=null,ri=!0,o=G1(r,null,s,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(fu(),s===l){r=Bi(n,r,o);break e}bn(n,r,s,o)}r=r.child}return r;case 26:return Gl(n,r),n===null?(o=Ax(r.type,null,r.pendingProps,null))?r.memoizedState=o:yt||(o=r.type,n=r.pendingProps,s=uf(K.current).createElement(o),s[kt]=r,s[rn]=n,wn(s,o,n),Nt(s),r.stateNode=s):r.memoizedState=Ax(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return b(r),n===null&&yt&&(s=r.stateNode=yx(r.type,r.pendingProps,K.current),_n=r,ri=!0,l=Lt,xo(r.type)?(j0=l,Lt=qr(s.firstChild)):Lt=l),bn(n,r,r.pendingProps.children,o),Gl(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&yt&&((l=s=Lt)&&(s=$C(s,r.type,r.pendingProps,ri),s!==null?(r.stateNode=s,_n=r,Lt=qr(s.firstChild),ri=!1,l=!0):l=!1),l||Wo(r)),b(r),l=r.type,p=r.pendingProps,E=n!==null?n.memoizedProps:null,s=p.children,R0(l,p)?s=null:E!==null&&R0(l,E)&&(r.flags|=32),r.memoizedState!==null&&(l=Th(n,r,rC,null,null,o),qu._currentValue=l),Gl(n,r),bn(n,r,s,o),r.child;case 6:return n===null&&yt&&((n=o=Lt)&&(o=LC(o,r.pendingProps,ri),o!==null?(r.stateNode=o,_n=r,Lt=null,n=!0):n=!1),n||Wo(r)),null;case 13:return fb(n,r,o);case 4:return ge(r,r.stateNode.containerInfo),s=r.pendingProps,n===null?r.child=os(r,null,s,o):bn(n,r,s,o),r.child;case 11:return rb(n,r,r.type,r.pendingProps,o);case 7:return bn(n,r,r.pendingProps,o),r.child;case 8:return bn(n,r,r.pendingProps.children,o),r.child;case 12:return bn(n,r,r.pendingProps.children,o),r.child;case 10:return s=r.pendingProps,io(r,r.type,s.value),bn(n,r,s.children,o),r.child;case 9:return l=r.type._context,s=r.pendingProps.children,ta(r),l=Tn(l),s=s(l),r.flags|=1,bn(n,r,s,o),r.child;case 14:return ib(n,r,r.type,r.pendingProps,o);case 15:return ob(n,r,r.type,r.pendingProps,o);case 19:return hb(n,r,o);case 31:return s=r.pendingProps,o=r.mode,s={mode:s.mode,children:s.children},n===null?(o=Kl(s,o),o.ref=r.ref,r.child=o,o.return=r,r=o):(o=wi(n.child,s),o.ref=r.ref,r.child=o,o.return=r,r=o),r;case 22:return ab(n,r,o);case 24:return ta(r),s=Tn(on),n===null?(l=wh(),l===null&&(l=Ct,p=bh(),l.pooledCache=p,p.refCount++,p!==null&&(l.pooledCacheLanes|=o),l=p),r.memoizedState={parent:s,cache:l},vh(r),io(r,on,l)):((n.lanes&o)!==0&&(Ih(n,r),xu(r,null,null,o),bu()),l=n.memoizedState,p=r.memoizedState,l.parent!==s?(l={parent:s,cache:s},r.memoizedState=l,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=l),io(r,on,s)):(s=p.cache,io(r,on,s),s!==l.cache&&Ah(r,[on],o,!0))),bn(n,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function Oi(n){n.flags|=4}function yb(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!vx(r)){if(r=Sr.current,r!==null&&((ut&4194048)===ut?ii!==null:(ut&62914560)!==ut&&(ut&536870912)===0||r!==ii))throw mu=Eh,JA;n.flags|=8192}}function Yl(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Dt():536870912,n.lanes|=r,cs|=r)}function Cu(n,r){if(!yt)switch(n.tailMode){case"hidden":r=n.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function _t(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=0,s=0;if(r)for(var l=n.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags&65011712,s|=l.flags&65011712,l.return=n,l=l.sibling;else for(l=n.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=n,l=l.sibling;return n.subtreeFlags|=s,n.childLanes=o,r}function dC(n,r,o){var s=r.pendingProps;switch(ph(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(r),null;case 1:return _t(r),null;case 3:return o=r.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Fi(on),q(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(lu(r)?Oi(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,KA())),_t(r),null;case 26:return o=r.memoizedState,n===null?(Oi(r),o!==null?(_t(r),yb(r,o)):(_t(r),r.flags&=-16777217)):o?o!==n.memoizedState?(Oi(r),_t(r),yb(r,o)):(_t(r),r.flags&=-16777217):(n.memoizedProps!==s&&Oi(r),_t(r),r.flags&=-16777217),null;case 27:D(r),o=K.current;var l=r.type;if(n!==null&&r.stateNode!=null)n.memoizedProps!==s&&Oi(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return _t(r),null}n=M.current,lu(r)?kA(r):(n=yx(l,s,o),r.stateNode=n,Oi(r))}return _t(r),null;case 5:if(D(r),o=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==s&&Oi(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return _t(r),null}if(n=M.current,lu(r))kA(r);else{switch(l=uf(K.current),n){case 1:n=l.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=l.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=l.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof s.is=="string"?l.createElement("select",{is:s.is}):l.createElement("select"),s.multiple?n.multiple=!0:s.size&&(n.size=s.size);break;default:n=typeof s.is=="string"?l.createElement(o,{is:s.is}):l.createElement(o)}}n[kt]=r,n[rn]=s;e:for(l=r.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break e;for(;l.sibling===null;){if(l.return===null||l.return===r)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r.stateNode=n;e:switch(wn(n,o,s),o){case"button":case"input":case"select":case"textarea":n=!!s.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Oi(r)}}return _t(r),r.flags&=-16777217,null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==s&&Oi(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(a(166));if(n=K.current,lu(r)){if(n=r.stateNode,o=r.memoizedProps,s=null,l=_n,l!==null)switch(l.tag){case 27:case 5:s=l.memoizedProps}n[kt]=r,n=!!(n.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||ux(n.nodeValue,o)),n||Wo(r)}else n=uf(n).createTextNode(s),n[kt]=r,r.stateNode=n}return _t(r),null;case 13:if(s=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(l=lu(r),s!==null&&s.dehydrated!==null){if(n===null){if(!l)throw Error(a(318));if(l=r.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));l[kt]=r}else fu(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;_t(r),l=!1}else l=KA(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),l=!0;if(!l)return r.flags&256?(Ci(r),r):(Ci(r),null)}if(Ci(r),(r.flags&128)!==0)return r.lanes=o,r;if(o=s!==null,n=n!==null&&n.memoizedState!==null,o){s=r.child,l=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(l=s.alternate.memoizedState.cachePool.pool);var p=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==l&&(s.flags|=2048)}return o!==n&&o&&(r.child.flags|=8192),Yl(r,r.updateQueue),_t(r),null;case 4:return q(),n===null&&S0(r.stateNode.containerInfo),_t(r),null;case 10:return Fi(r.type),_t(r),null;case 19:if(se(an),l=r.memoizedState,l===null)return _t(r),null;if(s=(r.flags&128)!==0,p=l.rendering,p===null)if(s)Cu(l,!1);else{if(zt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(p=Ql(n),p!==null){for(r.flags|=128,Cu(l,!1),n=p.updateQueue,r.updateQueue=n,Yl(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)QA(o,n),o=o.sibling;return Q(an,an.current&1|2),r.child}n=n.sibling}l.tail!==null&&y()>Zl&&(r.flags|=128,s=!0,Cu(l,!1),r.lanes=4194304)}else{if(!s)if(n=Ql(p),n!==null){if(r.flags|=128,s=!0,n=n.updateQueue,r.updateQueue=n,Yl(r,n),Cu(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!yt)return _t(r),null}else 2*y()-l.renderingStartTime>Zl&&o!==536870912&&(r.flags|=128,s=!0,Cu(l,!1),r.lanes=4194304);l.isBackwards?(p.sibling=r.child,r.child=p):(n=l.last,n!==null?n.sibling=p:r.child=p,l.last=p)}return l.tail!==null?(r=l.tail,l.rendering=r,l.tail=r.sibling,l.renderingStartTime=y(),r.sibling=null,n=an.current,Q(an,s?n&1|2:n&1),r):(_t(r),null);case 22:case 23:return Ci(r),Bh(),s=r.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(_t(r),r.subtreeFlags&6&&(r.flags|=8192)):_t(r),o=r.updateQueue,o!==null&&Yl(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),n!==null&&se(na),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Fi(on),_t(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function hC(n,r){switch(ph(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Fi(on),q(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return D(r),null;case 13:if(Ci(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));fu()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return se(an),null;case 4:return q(),null;case 10:return Fi(r.type),null;case 22:case 23:return Ci(r),Bh(),n!==null&&se(na),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Fi(on),null;case 25:return null;default:return null}}function gb(n,r){switch(ph(r),r.tag){case 3:Fi(on),q();break;case 26:case 27:case 5:D(r);break;case 4:q();break;case 13:Ci(r);break;case 19:se(an);break;case 10:Fi(r.type);break;case 22:case 23:Ci(r),Bh(),n!==null&&se(na);break;case 24:Fi(on)}}function Bu(n,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var l=s.next;o=l;do{if((o.tag&n)===n){s=void 0;var p=o.create,E=o.inst;s=p(),E.destroy=s}o=o.next}while(o!==l)}}catch(j){It(r,r.return,j)}}function fo(n,r,o){try{var s=r.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var p=l.next;s=p;do{if((s.tag&n)===n){var E=s.inst,j=E.destroy;if(j!==void 0){E.destroy=void 0,l=r;var ne=o,be=j;try{be()}catch(Ce){It(l,ne,Ce)}}}s=s.next}while(s!==p)}}catch(Ce){It(r,r.return,Ce)}}function mb(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{i1(r,o)}catch(s){It(n,n.return,s)}}}function Ab(n,r,o){o.props=ia(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(s){It(n,r,s)}}function Ou(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof o=="function"?n.refCleanup=o(s):o.current=s}}catch(l){It(n,r,l)}}function oi(n,r){var o=n.ref,s=n.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(l){It(n,r,l)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(l){It(n,r,l)}else o.current=null}function bb(n){var r=n.type,o=n.memoizedProps,s=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(l){It(n,n.return,l)}}function n0(n,r,o){try{var s=n.stateNode;MC(s,n.type,o,r),s[rn]=r}catch(l){It(n,n.return,l)}}function xb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&xo(n.type)||n.tag===4}function r0(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||xb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&xo(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function i0(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=sf));else if(s!==4&&(s===27&&xo(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(i0(n,r,o),n=n.sibling;n!==null;)i0(n,r,o),n=n.sibling}function Vl(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(s!==4&&(s===27&&xo(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Vl(n,r,o),n=n.sibling;n!==null;)Vl(n,r,o),n=n.sibling}function wb(n){var r=n.stateNode,o=n.memoizedProps;try{for(var s=n.type,l=r.attributes;l.length;)r.removeAttributeNode(l[0]);wn(r,s,o),r[kt]=n,r[rn]=o}catch(p){It(n,n.return,p)}}var Ti=!1,Kt=!1,o0=!1,Eb=typeof WeakSet=="function"?WeakSet:Set,fn=null;function pC(n,r){if(n=n.containerInfo,O0=pf,n=DA(n),rh(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var l=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var E=0,j=-1,ne=-1,be=0,Ce=0,Te=n,xe=null;t:for(;;){for(var Ee;Te!==o||l!==0&&Te.nodeType!==3||(j=E+l),Te!==p||s!==0&&Te.nodeType!==3||(ne=E+s),Te.nodeType===3&&(E+=Te.nodeValue.length),(Ee=Te.firstChild)!==null;)xe=Te,Te=Ee;for(;;){if(Te===n)break t;if(xe===o&&++be===l&&(j=E),xe===p&&++Ce===s&&(ne=E),(Ee=Te.nextSibling)!==null)break;Te=xe,xe=Te.parentNode}Te=Ee}o=j===-1||ne===-1?null:{start:j,end:ne}}else o=null}o=o||{start:0,end:0}}else o=null;for(T0={focusedElem:n,selectionRange:o},pf=!1,fn=r;fn!==null;)if(r=fn,n=r.child,(r.subtreeFlags&1024)!==0&&n!==null)n.return=r,fn=n;else for(;fn!==null;){switch(r=fn,p=r.alternate,n=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,o=r,l=p.memoizedProps,p=p.memoizedState,s=o.stateNode;try{var Ke=ia(o.type,l,o.elementType===o.type);n=s.getSnapshotBeforeUpdate(Ke,p),s.__reactInternalSnapshotBeforeUpdate=n}catch(ke){It(o,o.return,ke)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,o=n.nodeType,o===9)D0(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":D0(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,fn=n;break}fn=r.return}}function vb(n,r,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:ho(n,o),s&4&&Bu(5,o);break;case 1:if(ho(n,o),s&4)if(n=o.stateNode,r===null)try{n.componentDidMount()}catch(E){It(o,o.return,E)}else{var l=ia(o.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(l,r,n.__reactInternalSnapshotBeforeUpdate)}catch(E){It(o,o.return,E)}}s&64&&mb(o),s&512&&Ou(o,o.return);break;case 3:if(ho(n,o),s&64&&(n=o.updateQueue,n!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{i1(n,r)}catch(E){It(o,o.return,E)}}break;case 27:r===null&&s&4&&wb(o);case 26:case 5:ho(n,o),r===null&&s&4&&bb(o),s&512&&Ou(o,o.return);break;case 12:ho(n,o);break;case 13:ho(n,o),s&4&&Sb(n,o),s&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=vC.bind(null,o),zC(n,o))));break;case 22:if(s=o.memoizedState!==null||Ti,!s){r=r!==null&&r.memoizedState!==null||Kt,l=Ti;var p=Kt;Ti=s,(Kt=r)&&!p?po(n,o,(o.subtreeFlags&8772)!==0):ho(n,o),Ti=l,Kt=p}break;case 30:break;default:ho(n,o)}}function Ib(n){var r=n.alternate;r!==null&&(n.alternate=null,Ib(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&no(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Tt=null,Qn=!1;function Ri(n,r,o){for(o=o.child;o!==null;)Fb(n,r,o),o=o.sibling}function Fb(n,r,o){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(we,o)}catch{}switch(o.tag){case 26:Kt||oi(o,r),Ri(n,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Kt||oi(o,r);var s=Tt,l=Qn;xo(o.type)&&(Tt=o.stateNode,Qn=!1),Ri(n,r,o),Pu(o.stateNode),Tt=s,Qn=l;break;case 5:Kt||oi(o,r);case 6:if(s=Tt,l=Qn,Tt=null,Ri(n,r,o),Tt=s,Qn=l,Tt!==null)if(Qn)try{(Tt.nodeType===9?Tt.body:Tt.nodeName==="HTML"?Tt.ownerDocument.body:Tt).removeChild(o.stateNode)}catch(p){It(o,r,p)}else try{Tt.removeChild(o.stateNode)}catch(p){It(o,r,p)}break;case 18:Tt!==null&&(Qn?(n=Tt,hx(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Gu(n)):hx(Tt,o.stateNode));break;case 4:s=Tt,l=Qn,Tt=o.stateNode.containerInfo,Qn=!0,Ri(n,r,o),Tt=s,Qn=l;break;case 0:case 11:case 14:case 15:Kt||fo(2,o,r),Kt||fo(4,o,r),Ri(n,r,o);break;case 1:Kt||(oi(o,r),s=o.stateNode,typeof s.componentWillUnmount=="function"&&Ab(o,r,s)),Ri(n,r,o);break;case 21:Ri(n,r,o);break;case 22:Kt=(s=Kt)||o.memoizedState!==null,Ri(n,r,o),Kt=s;break;default:Ri(n,r,o)}}function Sb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Gu(n)}catch(o){It(r,r.return,o)}}function yC(n){switch(n.tag){case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Eb),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Eb),r;default:throw Error(a(435,n.tag))}}function a0(n,r){var o=yC(n);r.forEach(function(s){var l=IC.bind(null,n,s);o.has(s)||(o.add(s),s.then(l,l))})}function ir(n,r){var o=r.deletions;if(o!==null)for(var s=0;s<o.length;s++){var l=o[s],p=n,E=r,j=E;e:for(;j!==null;){switch(j.tag){case 27:if(xo(j.type)){Tt=j.stateNode,Qn=!1;break e}break;case 5:Tt=j.stateNode,Qn=!1;break e;case 3:case 4:Tt=j.stateNode.containerInfo,Qn=!0;break e}j=j.return}if(Tt===null)throw Error(a(160));Fb(p,E,l),Tt=null,Qn=!1,p=l.alternate,p!==null&&(p.return=null),l.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Cb(r,n),r=r.sibling}var zr=null;function Cb(n,r){var o=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:ir(r,n),or(n),s&4&&(fo(3,n,n.return),Bu(3,n),fo(5,n,n.return));break;case 1:ir(r,n),or(n),s&512&&(Kt||o===null||oi(o,o.return)),s&64&&Ti&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var l=zr;if(ir(r,n),or(n),s&512&&(Kt||o===null||oi(o,o.return)),s&4){var p=o!==null?o.memoizedState:null;if(s=n.memoizedState,o===null)if(s===null)if(n.stateNode===null){e:{s=n.type,o=n.memoizedProps,l=l.ownerDocument||l;t:switch(s){case"title":p=l.getElementsByTagName("title")[0],(!p||p[ti]||p[kt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=l.createElement(s),l.head.insertBefore(p,l.querySelector("head > title"))),wn(p,s,o),p[kt]=n,Nt(p),s=p;break e;case"link":var E=wx("link","href",l).get(s+(o.href||""));if(E){for(var j=0;j<E.length;j++)if(p=E[j],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){E.splice(j,1);break t}}p=l.createElement(s),wn(p,s,o),l.head.appendChild(p);break;case"meta":if(E=wx("meta","content",l).get(s+(o.content||""))){for(j=0;j<E.length;j++)if(p=E[j],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){E.splice(j,1);break t}}p=l.createElement(s),wn(p,s,o),l.head.appendChild(p);break;default:throw Error(a(468,s))}p[kt]=n,Nt(p),s=p}n.stateNode=s}else Ex(l,n.type,n.stateNode);else n.stateNode=xx(l,s,n.memoizedProps);else p!==s?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,s===null?Ex(l,n.type,n.stateNode):xx(l,s,n.memoizedProps)):s===null&&n.stateNode!==null&&n0(n,n.memoizedProps,o.memoizedProps)}break;case 27:ir(r,n),or(n),s&512&&(Kt||o===null||oi(o,o.return)),o!==null&&s&4&&n0(n,n.memoizedProps,o.memoizedProps);break;case 5:if(ir(r,n),or(n),s&512&&(Kt||o===null||oi(o,o.return)),n.flags&32){l=n.stateNode;try{za(l,"")}catch(Ee){It(n,n.return,Ee)}}s&4&&n.stateNode!=null&&(l=n.memoizedProps,n0(n,l,o!==null?o.memoizedProps:l)),s&1024&&(o0=!0);break;case 6:if(ir(r,n),or(n),s&4){if(n.stateNode===null)throw Error(a(162));s=n.memoizedProps,o=n.stateNode;try{o.nodeValue=s}catch(Ee){It(n,n.return,Ee)}}break;case 3:if(ff=null,l=zr,zr=cf(r.containerInfo),ir(r,n),zr=l,or(n),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Gu(r.containerInfo)}catch(Ee){It(n,n.return,Ee)}o0&&(o0=!1,Bb(n));break;case 4:s=zr,zr=cf(n.stateNode.containerInfo),ir(r,n),or(n),zr=s;break;case 12:ir(r,n),or(n);break;case 13:ir(r,n),or(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(d0=y()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,a0(n,s)));break;case 22:l=n.memoizedState!==null;var ne=o!==null&&o.memoizedState!==null,be=Ti,Ce=Kt;if(Ti=be||l,Kt=Ce||ne,ir(r,n),Kt=Ce,Ti=be,or(n),s&8192)e:for(r=n.stateNode,r._visibility=l?r._visibility&-2:r._visibility|1,l&&(o===null||ne||Ti||Kt||oa(n)),o=null,r=n;;){if(r.tag===5||r.tag===26){if(o===null){ne=o=r;try{if(p=ne.stateNode,l)E=p.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{j=ne.stateNode;var Te=ne.memoizedProps.style,xe=Te!=null&&Te.hasOwnProperty("display")?Te.display:null;j.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(Ee){It(ne,ne.return,Ee)}}}else if(r.tag===6){if(o===null){ne=r;try{ne.stateNode.nodeValue=l?"":ne.memoizedProps}catch(Ee){It(ne,ne.return,Ee)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=n.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,a0(n,o))));break;case 19:ir(r,n),or(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,a0(n,s)));break;case 30:break;case 21:break;default:ir(r,n),or(n)}}function or(n){var r=n.flags;if(r&2){try{for(var o,s=n.return;s!==null;){if(xb(s)){o=s;break}s=s.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var l=o.stateNode,p=r0(n);Vl(n,p,l);break;case 5:var E=o.stateNode;o.flags&32&&(za(E,""),o.flags&=-33);var j=r0(n);Vl(n,j,E);break;case 3:case 4:var ne=o.stateNode.containerInfo,be=r0(n);i0(n,be,ne);break;default:throw Error(a(161))}}catch(Ce){It(n,n.return,Ce)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Bb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Bb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function ho(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)vb(n,r.alternate,r),r=r.sibling}function oa(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:fo(4,r,r.return),oa(r);break;case 1:oi(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&Ab(r,r.return,o),oa(r);break;case 27:Pu(r.stateNode);case 26:case 5:oi(r,r.return),oa(r);break;case 22:r.memoizedState===null&&oa(r);break;case 30:oa(r);break;default:oa(r)}n=n.sibling}}function po(n,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,l=n,p=r,E=p.flags;switch(p.tag){case 0:case 11:case 15:po(l,p,o),Bu(4,p);break;case 1:if(po(l,p,o),s=p,l=s.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(be){It(s,s.return,be)}if(s=p,l=s.updateQueue,l!==null){var j=s.stateNode;try{var ne=l.shared.hiddenCallbacks;if(ne!==null)for(l.shared.hiddenCallbacks=null,l=0;l<ne.length;l++)r1(ne[l],j)}catch(be){It(s,s.return,be)}}o&&E&64&&mb(p),Ou(p,p.return);break;case 27:wb(p);case 26:case 5:po(l,p,o),o&&s===null&&E&4&&bb(p),Ou(p,p.return);break;case 12:po(l,p,o);break;case 13:po(l,p,o),o&&E&4&&Sb(l,p);break;case 22:p.memoizedState===null&&po(l,p,o),Ou(p,p.return);break;case 30:break;default:po(l,p,o)}r=r.sibling}}function s0(n,r){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&pu(o))}function u0(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&pu(n))}function ai(n,r,o,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Ob(n,r,o,s),r=r.sibling}function Ob(n,r,o,s){var l=r.flags;switch(r.tag){case 0:case 11:case 15:ai(n,r,o,s),l&2048&&Bu(9,r);break;case 1:ai(n,r,o,s);break;case 3:ai(n,r,o,s),l&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&pu(n)));break;case 12:if(l&2048){ai(n,r,o,s),n=r.stateNode;try{var p=r.memoizedProps,E=p.id,j=p.onPostCommit;typeof j=="function"&&j(E,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ne){It(r,r.return,ne)}}else ai(n,r,o,s);break;case 13:ai(n,r,o,s);break;case 23:break;case 22:p=r.stateNode,E=r.alternate,r.memoizedState!==null?p._visibility&2?ai(n,r,o,s):Tu(n,r):p._visibility&2?ai(n,r,o,s):(p._visibility|=2,as(n,r,o,s,(r.subtreeFlags&10256)!==0)),l&2048&&s0(E,r);break;case 24:ai(n,r,o,s),l&2048&&u0(r.alternate,r);break;default:ai(n,r,o,s)}}function as(n,r,o,s,l){for(l=l&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var p=n,E=r,j=o,ne=s,be=E.flags;switch(E.tag){case 0:case 11:case 15:as(p,E,j,ne,l),Bu(8,E);break;case 23:break;case 22:var Ce=E.stateNode;E.memoizedState!==null?Ce._visibility&2?as(p,E,j,ne,l):Tu(p,E):(Ce._visibility|=2,as(p,E,j,ne,l)),l&&be&2048&&s0(E.alternate,E);break;case 24:as(p,E,j,ne,l),l&&be&2048&&u0(E.alternate,E);break;default:as(p,E,j,ne,l)}r=r.sibling}}function Tu(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=n,s=r,l=s.flags;switch(s.tag){case 22:Tu(o,s),l&2048&&s0(s.alternate,s);break;case 24:Tu(o,s),l&2048&&u0(s.alternate,s);break;default:Tu(o,s)}r=r.sibling}}var Ru=8192;function ss(n){if(n.subtreeFlags&Ru)for(n=n.child;n!==null;)Tb(n),n=n.sibling}function Tb(n){switch(n.tag){case 26:ss(n),n.flags&Ru&&n.memoizedState!==null&&e3(zr,n.memoizedState,n.memoizedProps);break;case 5:ss(n);break;case 3:case 4:var r=zr;zr=cf(n.stateNode.containerInfo),ss(n),zr=r;break;case 22:n.memoizedState===null&&(r=n.alternate,r!==null&&r.memoizedState!==null?(r=Ru,Ru=16777216,ss(n),Ru=r):ss(n));break;default:ss(n)}}function Rb(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Uu(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];fn=s,Db(s,n)}Rb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ub(n),n=n.sibling}function Ub(n){switch(n.tag){case 0:case 11:case 15:Uu(n),n.flags&2048&&fo(9,n,n.return);break;case 3:Uu(n);break;case 12:Uu(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Xl(n)):Uu(n);break;default:Uu(n)}}function Xl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];fn=s,Db(s,n)}Rb(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:fo(8,r,r.return),Xl(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Xl(r));break;default:Xl(r)}n=n.sibling}}function Db(n,r){for(;fn!==null;){var o=fn;switch(o.tag){case 0:case 11:case 15:fo(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:pu(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,fn=s;else e:for(o=n;fn!==null;){s=fn;var l=s.sibling,p=s.return;if(Ib(s),s===o){fn=null;break e}if(l!==null){l.return=p,fn=l;break e}fn=p}}}var gC={getCacheForType:function(n){var r=Tn(on),o=r.data.get(n);return o===void 0&&(o=n(),r.data.set(n,o)),o}},mC=typeof WeakMap=="function"?WeakMap:Map,mt=0,Ct=null,We=null,ut=0,At=0,ar=null,yo=!1,us=!1,c0=!1,Ui=0,zt=0,go=0,aa=0,l0=0,Cr=0,cs=0,Du=null,Hn=null,f0=!1,d0=0,Zl=1/0,Jl=null,mo=null,xn=0,Ao=null,ls=null,fs=0,h0=0,p0=null,Mb=null,Mu=0,y0=null;function sr(){if((mt&2)!==0&&ut!==0)return ut&-ut;if(N.T!==null){var n=Ja;return n!==0?n:E0()}return Lo()}function jb(){Cr===0&&(Cr=(ut&536870912)===0||yt?gt():536870912);var n=Sr.current;return n!==null&&(n.flags|=32),Cr}function ur(n,r,o){(n===Ct&&(At===2||At===9)||n.cancelPendingCommit!==null)&&(ds(n,0),bo(n,ut,Cr,!1)),St(n,o),((mt&2)===0||n!==Ct)&&(n===Ct&&((mt&2)===0&&(aa|=o),zt===4&&bo(n,ut,Cr,!1)),si(n))}function Nb(n,r,o){if((mt&6)!==0)throw Error(a(327));var s=!o&&(r&124)===0&&(r&n.expiredLanes)===0||dt(n,r),l=s?xC(n,r):A0(n,r,!0),p=s;do{if(l===0){us&&!s&&bo(n,r,0,!1);break}else{if(o=n.current.alternate,p&&!AC(o)){l=A0(n,r,!1),p=!1;continue}if(l===2){if(p=r,n.errorRecoveryDisabledLanes&p)var E=0;else E=n.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){r=E;e:{var j=n;l=Du;var ne=j.current.memoizedState.isDehydrated;if(ne&&(ds(j,E).flags|=256),E=A0(j,E,!1),E!==2){if(c0&&!ne){j.errorRecoveryDisabledLanes|=p,aa|=p,l=4;break e}p=Hn,Hn=l,p!==null&&(Hn===null?Hn=p:Hn.push.apply(Hn,p))}l=E}if(p=!1,l!==2)continue}}if(l===1){ds(n,0),bo(n,r,0,!0);break}e:{switch(s=n,p=l,p){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:bo(s,r,Cr,!yo);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(l=d0+300-y(),10<l)){if(bo(s,r,Cr,!yo),ct(s,0,!0)!==0)break e;s.timeoutHandle=fx(_b.bind(null,s,o,Hn,Jl,f0,r,Cr,aa,cs,yo,p,2,-0,0),l);break e}_b(s,o,Hn,Jl,f0,r,Cr,aa,cs,yo,p,0,-0,0)}}break}while(!0);si(n)}function _b(n,r,o,s,l,p,E,j,ne,be,Ce,Te,xe,Ee){if(n.timeoutHandle=-1,Te=r.subtreeFlags,(Te&8192||(Te&16785408)===16785408)&&(zu={stylesheets:null,count:0,unsuspend:WC},Tb(r),Te=t3(),Te!==null)){n.cancelPendingCommit=Te(Hb.bind(null,n,r,p,o,s,l,E,j,ne,Ce,1,xe,Ee)),bo(n,p,E,!be);return}Hb(n,r,p,o,s,l,E,j,ne)}function AC(n){for(var r=n;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var l=o[s],p=l.getSnapshot;l=l.value;try{if(!nr(p(),l))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function bo(n,r,o,s){r&=~l0,r&=~aa,n.suspendedLanes|=r,n.pingedLanes&=~r,s&&(n.warmLanes|=r),s=n.expirationTimes;for(var l=r;0<l;){var p=31-_e(l),E=1<<p;s[p]=-1,l&=~E}o!==0&&Mt(n,o,r)}function Wl(){return(mt&6)===0?(ju(0),!1):!0}function g0(){if(We!==null){if(At===0)var n=We.return;else n=We,Ii=ea=null,Dh(n),is=null,Fu=0,n=We;for(;n!==null;)gb(n.alternate,n),n=n.return;We=null}}function ds(n,r){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,NC(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),g0(),Ct=n,We=o=wi(n.current,null),ut=r,At=0,ar=null,yo=!1,us=dt(n,r),c0=!1,cs=Cr=l0=aa=go=zt=0,Hn=Du=null,f0=!1,(r&8)!==0&&(r|=r&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=r;0<s;){var l=31-_e(s),p=1<<l;r|=n[l],s&=~p}return Ui=r,wl(),o}function Pb(n,r){Ze=null,N.H=Ll,r===gu||r===Tl?(r=t1(),At=3):r===JA?(r=t1(),At=4):At=r===nb?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,ar=r,We===null&&(zt=1,kl(n,Er(r,n.current)))}function $b(){var n=N.H;return N.H=Ll,n===null?Ll:n}function Lb(){var n=N.A;return N.A=gC,n}function m0(){zt=4,yo||(ut&4194048)!==ut&&Sr.current!==null||(us=!0),(go&134217727)===0&&(aa&134217727)===0||Ct===null||bo(Ct,ut,Cr,!1)}function A0(n,r,o){var s=mt;mt|=2;var l=$b(),p=Lb();(Ct!==n||ut!==r)&&(Jl=null,ds(n,r)),r=!1;var E=zt;e:do try{if(At!==0&&We!==null){var j=We,ne=ar;switch(At){case 8:g0(),E=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(r=!0);var be=At;if(At=0,ar=null,hs(n,j,ne,be),o&&us){E=0;break e}break;default:be=At,At=0,ar=null,hs(n,j,ne,be)}}bC(),E=zt;break}catch(Ce){Pb(n,Ce)}while(!0);return r&&n.shellSuspendCounter++,Ii=ea=null,mt=s,N.H=l,N.A=p,We===null&&(Ct=null,ut=0,wl()),E}function bC(){for(;We!==null;)zb(We)}function xC(n,r){var o=mt;mt|=2;var s=$b(),l=Lb();Ct!==n||ut!==r?(Jl=null,Zl=y()+500,ds(n,r)):us=dt(n,r);e:do try{if(At!==0&&We!==null){r=We;var p=ar;t:switch(At){case 1:At=0,ar=null,hs(n,r,p,1);break;case 2:case 9:if(WA(p)){At=0,ar=null,qb(r);break}r=function(){At!==2&&At!==9||Ct!==n||(At=7),si(n)},p.then(r,r);break e;case 3:At=7;break e;case 4:At=5;break e;case 7:WA(p)?(At=0,ar=null,qb(r)):(At=0,ar=null,hs(n,r,p,7));break;case 5:var E=null;switch(We.tag){case 26:E=We.memoizedState;case 5:case 27:var j=We;if(!E||vx(E)){At=0,ar=null;var ne=j.sibling;if(ne!==null)We=ne;else{var be=j.return;be!==null?(We=be,ef(be)):We=null}break t}}At=0,ar=null,hs(n,r,p,5);break;case 6:At=0,ar=null,hs(n,r,p,6);break;case 8:g0(),zt=6;break e;default:throw Error(a(462))}}wC();break}catch(Ce){Pb(n,Ce)}while(!0);return Ii=ea=null,N.H=s,N.A=l,mt=o,We!==null?0:(Ct=null,ut=0,wl(),zt)}function wC(){for(;We!==null&&!ue();)zb(We)}function zb(n){var r=pb(n.alternate,n,Ui);n.memoizedProps=n.pendingProps,r===null?ef(n):We=r}function qb(n){var r=n,o=r.alternate;switch(r.tag){case 15:case 0:r=ub(o,r,r.pendingProps,r.type,void 0,ut);break;case 11:r=ub(o,r,r.pendingProps,r.type.render,r.ref,ut);break;case 5:Dh(r);default:gb(o,r),r=We=QA(r,Ui),r=pb(o,r,Ui)}n.memoizedProps=n.pendingProps,r===null?ef(n):We=r}function hs(n,r,o,s){Ii=ea=null,Dh(r),is=null,Fu=0;var l=r.return;try{if(lC(n,l,r,o,ut)){zt=1,kl(n,Er(o,n.current)),We=null;return}}catch(p){if(l!==null)throw We=l,p;zt=1,kl(n,Er(o,n.current)),We=null;return}r.flags&32768?(yt||s===1?n=!0:us||(ut&536870912)!==0?n=!1:(yo=n=!0,(s===2||s===9||s===3||s===6)&&(s=Sr.current,s!==null&&s.tag===13&&(s.flags|=16384))),Qb(r,n)):ef(r)}function ef(n){var r=n;do{if((r.flags&32768)!==0){Qb(r,yo);return}n=r.return;var o=dC(r.alternate,r,Ui);if(o!==null){We=o;return}if(r=r.sibling,r!==null){We=r;return}We=r=n}while(r!==null);zt===0&&(zt=5)}function Qb(n,r){do{var o=hC(n.alternate,n);if(o!==null){o.flags&=32767,We=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(n=n.sibling,n!==null)){We=n;return}We=n=o}while(n!==null);zt=6,We=null}function Hb(n,r,o,s,l,p,E,j,ne){n.cancelPendingCommit=null;do tf();while(xn!==0);if((mt&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(p=r.lanes|r.childLanes,p|=uh,$t(n,o,p,E,j,ne),n===Ct&&(We=Ct=null,ut=0),ls=r,Ao=n,fs=o,h0=p,p0=l,Mb=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,FC(ye,function(){return Vb(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=N.T,N.T=null,l=ce.p,ce.p=2,E=mt,mt|=4;try{pC(n,r,o)}finally{mt=E,ce.p=l,N.T=s}}xn=1,kb(),Gb(),Kb()}}function kb(){if(xn===1){xn=0;var n=Ao,r=ls,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=N.T,N.T=null;var s=ce.p;ce.p=2;var l=mt;mt|=4;try{Cb(r,n);var p=T0,E=DA(n.containerInfo),j=p.focusedElem,ne=p.selectionRange;if(E!==j&&j&&j.ownerDocument&&UA(j.ownerDocument.documentElement,j)){if(ne!==null&&rh(j)){var be=ne.start,Ce=ne.end;if(Ce===void 0&&(Ce=be),"selectionStart"in j)j.selectionStart=be,j.selectionEnd=Math.min(Ce,j.value.length);else{var Te=j.ownerDocument||document,xe=Te&&Te.defaultView||window;if(xe.getSelection){var Ee=xe.getSelection(),Ke=j.textContent.length,ke=Math.min(ne.start,Ke),vt=ne.end===void 0?ke:Math.min(ne.end,Ke);!Ee.extend&&ke>vt&&(E=vt,vt=ke,ke=E);var de=RA(j,ke),le=RA(j,vt);if(de&&le&&(Ee.rangeCount!==1||Ee.anchorNode!==de.node||Ee.anchorOffset!==de.offset||Ee.focusNode!==le.node||Ee.focusOffset!==le.offset)){var Ae=Te.createRange();Ae.setStart(de.node,de.offset),Ee.removeAllRanges(),ke>vt?(Ee.addRange(Ae),Ee.extend(le.node,le.offset)):(Ae.setEnd(le.node,le.offset),Ee.addRange(Ae))}}}}for(Te=[],Ee=j;Ee=Ee.parentNode;)Ee.nodeType===1&&Te.push({element:Ee,left:Ee.scrollLeft,top:Ee.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<Te.length;j++){var Oe=Te[j];Oe.element.scrollLeft=Oe.left,Oe.element.scrollTop=Oe.top}}pf=!!O0,T0=O0=null}finally{mt=l,ce.p=s,N.T=o}}n.current=r,xn=2}}function Gb(){if(xn===2){xn=0;var n=Ao,r=ls,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=N.T,N.T=null;var s=ce.p;ce.p=2;var l=mt;mt|=4;try{vb(n,r.alternate,r)}finally{mt=l,ce.p=s,N.T=o}}xn=3}}function Kb(){if(xn===4||xn===3){xn=0,A();var n=Ao,r=ls,o=fs,s=Mb;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?xn=5:(xn=0,ls=Ao=null,Yb(n,n.pendingLanes));var l=n.pendingLanes;if(l===0&&(mo=null),eo(o),r=r.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(we,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=N.T,l=ce.p,ce.p=2,N.T=null;try{for(var p=n.onRecoverableError,E=0;E<s.length;E++){var j=s[E];p(j.value,{componentStack:j.stack})}}finally{N.T=r,ce.p=l}}(fs&3)!==0&&tf(),si(n),l=n.pendingLanes,(o&4194090)!==0&&(l&42)!==0?n===y0?Mu++:(Mu=0,y0=n):Mu=0,ju(0)}}function Yb(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,pu(r)))}function tf(n){return kb(),Gb(),Kb(),Vb()}function Vb(){if(xn!==5)return!1;var n=Ao,r=h0;h0=0;var o=eo(fs),s=N.T,l=ce.p;try{ce.p=32>o?32:o,N.T=null,o=p0,p0=null;var p=Ao,E=fs;if(xn=0,ls=Ao=null,fs=0,(mt&6)!==0)throw Error(a(331));var j=mt;if(mt|=4,Ub(p.current),Ob(p,p.current,E,o),mt=j,ju(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(we,p)}catch{}return!0}finally{ce.p=l,N.T=s,Yb(n,r)}}function Xb(n,r,o){r=Er(o,r),r=Kh(n.stateNode,r,2),n=so(n,r,2),n!==null&&(St(n,2),si(n))}function It(n,r,o){if(n.tag===3)Xb(n,n,o);else for(;r!==null;){if(r.tag===3){Xb(r,n,o);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(mo===null||!mo.has(s))){n=Er(o,n),o=eb(2),s=so(r,o,2),s!==null&&(tb(o,s,r,n),St(s,2),si(s));break}}r=r.return}}function b0(n,r,o){var s=n.pingCache;if(s===null){s=n.pingCache=new mC;var l=new Set;s.set(r,l)}else l=s.get(r),l===void 0&&(l=new Set,s.set(r,l));l.has(o)||(c0=!0,l.add(o),n=EC.bind(null,n,r,o),r.then(n,n))}function EC(n,r,o){var s=n.pingCache;s!==null&&s.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Ct===n&&(ut&o)===o&&(zt===4||zt===3&&(ut&62914560)===ut&&300>y()-d0?(mt&2)===0&&ds(n,0):l0|=o,cs===ut&&(cs=0)),si(n)}function Zb(n,r){r===0&&(r=Dt()),n=Ya(n,r),n!==null&&(St(n,r),si(n))}function vC(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),Zb(n,o)}function IC(n,r){var o=0;switch(n.tag){case 13:var s=n.stateNode,l=n.memoizedState;l!==null&&(o=l.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(r),Zb(n,o)}function FC(n,r){return V(n,r)}var nf=null,ps=null,x0=!1,rf=!1,w0=!1,sa=0;function si(n){n!==ps&&n.next===null&&(ps===null?nf=ps=n:ps=ps.next=n),rf=!0,x0||(x0=!0,CC())}function ju(n,r){if(!w0&&rf){w0=!0;do for(var o=!1,s=nf;s!==null;){if(n!==0){var l=s.pendingLanes;if(l===0)var p=0;else{var E=s.suspendedLanes,j=s.pingedLanes;p=(1<<31-_e(42|n)+1)-1,p&=l&~(E&~j),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,tx(s,p))}else p=ut,p=ct(s,s===Ct?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||dt(s,p)||(o=!0,tx(s,p));s=s.next}while(o);w0=!1}}function SC(){Jb()}function Jb(){rf=x0=!1;var n=0;sa!==0&&(jC()&&(n=sa),sa=0);for(var r=y(),o=null,s=nf;s!==null;){var l=s.next,p=Wb(s,r);p===0?(s.next=null,o===null?nf=l:o.next=l,l===null&&(ps=o)):(o=s,(n!==0||(p&3)!==0)&&(rf=!0)),s=l}ju(n)}function Wb(n,r){for(var o=n.suspendedLanes,s=n.pingedLanes,l=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var E=31-_e(p),j=1<<E,ne=l[E];ne===-1?((j&o)===0||(j&s)!==0)&&(l[E]=ht(j,r)):ne<=r&&(n.expiredLanes|=j),p&=~j}if(r=Ct,o=ut,o=ct(n,n===r?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,o===0||n===r&&(At===2||At===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&ae(s),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||dt(n,o)){if(r=o&-o,r===n.callbackPriority)return r;switch(s!==null&&ae(s),eo(o)){case 2:case 8:o=J;break;case 32:o=ye;break;case 268435456:o=je;break;default:o=ye}return s=ex.bind(null,n),o=V(o,s),n.callbackPriority=r,n.callbackNode=o,r}return s!==null&&s!==null&&ae(s),n.callbackPriority=2,n.callbackNode=null,2}function ex(n,r){if(xn!==0&&xn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(tf()&&n.callbackNode!==o)return null;var s=ut;return s=ct(n,n===Ct?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Nb(n,s,r),Wb(n,y()),n.callbackNode!=null&&n.callbackNode===o?ex.bind(null,n):null)}function tx(n,r){if(tf())return null;Nb(n,r,!0)}function CC(){_C(function(){(mt&6)!==0?V(w,SC):Jb()})}function E0(){return sa===0&&(sa=gt()),sa}function nx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:pl(""+n)}function rx(n,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,n.id&&o.setAttribute("form",n.id),r.parentNode.insertBefore(o,r),n=new FormData(n),o.parentNode.removeChild(o),n}function BC(n,r,o,s,l){if(r==="submit"&&o&&o.stateNode===l){var p=nx((l[rn]||null).action),E=s.submitter;E&&(r=(r=E[rn]||null)?nx(r.formAction):E.getAttribute("formAction"),r!==null&&(p=r,E=null));var j=new Al("action","action",null,s,l);n.push({event:j,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(sa!==0){var ne=E?rx(l,E):new FormData(l);qh(o,{pending:!0,data:ne,method:l.method,action:p},null,ne)}}else typeof p=="function"&&(j.preventDefault(),ne=E?rx(l,E):new FormData(l),qh(o,{pending:!0,data:ne,method:l.method,action:p},p,ne))},currentTarget:l}]})}}for(var v0=0;v0<sh.length;v0++){var I0=sh[v0],OC=I0.toLowerCase(),TC=I0[0].toUpperCase()+I0.slice(1);Lr(OC,"on"+TC)}Lr(NA,"onAnimationEnd"),Lr(_A,"onAnimationIteration"),Lr(PA,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(KS,"onTransitionRun"),Lr(YS,"onTransitionStart"),Lr(VS,"onTransitionCancel"),Lr($A,"onTransitionEnd"),$r("onMouseEnter",["mouseout","mouseover"]),$r("onMouseLeave",["mouseout","mouseover"]),$r("onPointerEnter",["pointerout","pointerover"]),$r("onPointerLeave",["pointerout","pointerover"]),br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),br("onBeforeInput",["compositionend","keypress","textInput","paste"]),br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="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(" "),RC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function ix(n,r){r=(r&4)!==0;for(var o=0;o<n.length;o++){var s=n[o],l=s.event;s=s.listeners;e:{var p=void 0;if(r)for(var E=s.length-1;0<=E;E--){var j=s[E],ne=j.instance,be=j.currentTarget;if(j=j.listener,ne!==p&&l.isPropagationStopped())break e;p=j,l.currentTarget=be;try{p(l)}catch(Ce){Hl(Ce)}l.currentTarget=null,p=ne}else for(E=0;E<s.length;E++){if(j=s[E],ne=j.instance,be=j.currentTarget,j=j.listener,ne!==p&&l.isPropagationStopped())break e;p=j,l.currentTarget=be;try{p(l)}catch(Ce){Hl(Ce)}l.currentTarget=null,p=ne}}}}function et(n,r){var o=r[to];o===void 0&&(o=r[to]=new Set);var s=n+"__bubble";o.has(s)||(ox(r,n,2,!1),o.add(s))}function F0(n,r,o){var s=0;r&&(s|=4),ox(o,n,s,r)}var of="_reactListening"+Math.random().toString(36).slice(2);function S0(n){if(!n[of]){n[of]=!0,qo.forEach(function(o){o!=="selectionchange"&&(RC.has(o)||F0(o,!1,n),F0(o,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[of]||(r[of]=!0,F0("selectionchange",!1,r))}}function ox(n,r,o,s){switch(Ox(r)){case 2:var l=i3;break;case 8:l=o3;break;default:l=L0}o=l.bind(null,r,o,n),l=void 0,!Yd||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(l=!0),s?l!==void 0?n.addEventListener(r,o,{capture:!0,passive:l}):n.addEventListener(r,o,!0):l!==void 0?n.addEventListener(r,o,{passive:l}):n.addEventListener(r,o,!1)}function C0(n,r,o,s,l){var p=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var E=s.tag;if(E===3||E===4){var j=s.stateNode.containerInfo;if(j===l)break;if(E===4)for(E=s.return;E!==null;){var ne=E.tag;if((ne===3||ne===4)&&E.stateNode.containerInfo===l)return;E=E.return}for(;j!==null;){if(E=Nr(j),E===null)return;if(ne=E.tag,ne===5||ne===6||ne===26||ne===27){s=p=E;continue e}j=j.parentNode}}s=s.return}dA(function(){var be=p,Ce=Gd(o),Te=[];e:{var xe=LA.get(n);if(xe!==void 0){var Ee=Al,Ke=n;switch(n){case"keypress":if(gl(o)===0)break e;case"keydown":case"keyup":Ee=FS;break;case"focusin":Ke="focus",Ee=Jd;break;case"focusout":Ke="blur",Ee=Jd;break;case"beforeblur":case"afterblur":Ee=Jd;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":Ee=yA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=hS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=BS;break;case NA:case _A:case PA:Ee=gS;break;case $A:Ee=TS;break;case"scroll":case"scrollend":Ee=fS;break;case"wheel":Ee=US;break;case"copy":case"cut":case"paste":Ee=AS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=mA;break;case"toggle":case"beforetoggle":Ee=MS}var ke=(r&4)!==0,vt=!ke&&(n==="scroll"||n==="scrollend"),de=ke?xe!==null?xe+"Capture":null:xe;ke=[];for(var le=be,Ae;le!==null;){var Oe=le;if(Ae=Oe.stateNode,Oe=Oe.tag,Oe!==5&&Oe!==26&&Oe!==27||Ae===null||de===null||(Oe=tu(le,de),Oe!=null&&ke.push(_u(le,Oe,Ae))),vt)break;le=le.return}0<ke.length&&(xe=new Ee(xe,Ke,null,o,Ce),Te.push({event:xe,listeners:ke}))}}if((r&7)===0){e:{if(xe=n==="mouseover"||n==="pointerover",Ee=n==="mouseout"||n==="pointerout",xe&&o!==kd&&(Ke=o.relatedTarget||o.fromElement)&&(Nr(Ke)||Ke[jr]))break e;if((Ee||xe)&&(xe=Ce.window===Ce?Ce:(xe=Ce.ownerDocument)?xe.defaultView||xe.parentWindow:window,Ee?(Ke=o.relatedTarget||o.toElement,Ee=be,Ke=Ke?Nr(Ke):null,Ke!==null&&(vt=c(Ke),ke=Ke.tag,Ke!==vt||ke!==5&&ke!==27&&ke!==6)&&(Ke=null)):(Ee=null,Ke=be),Ee!==Ke)){if(ke=yA,Oe="onMouseLeave",de="onMouseEnter",le="mouse",(n==="pointerout"||n==="pointerover")&&(ke=mA,Oe="onPointerLeave",de="onPointerEnter",le="pointer"),vt=Ee==null?xe:ni(Ee),Ae=Ke==null?xe:ni(Ke),xe=new ke(Oe,le+"leave",Ee,o,Ce),xe.target=vt,xe.relatedTarget=Ae,Oe=null,Nr(Ce)===be&&(ke=new ke(de,le+"enter",Ke,o,Ce),ke.target=Ae,ke.relatedTarget=vt,Oe=ke),vt=Oe,Ee&&Ke)t:{for(ke=Ee,de=Ke,le=0,Ae=ke;Ae;Ae=ys(Ae))le++;for(Ae=0,Oe=de;Oe;Oe=ys(Oe))Ae++;for(;0<le-Ae;)ke=ys(ke),le--;for(;0<Ae-le;)de=ys(de),Ae--;for(;le--;){if(ke===de||de!==null&&ke===de.alternate)break t;ke=ys(ke),de=ys(de)}ke=null}else ke=null;Ee!==null&&ax(Te,xe,Ee,ke,!1),Ke!==null&&vt!==null&&ax(Te,vt,Ke,ke,!0)}}e:{if(xe=be?ni(be):window,Ee=xe.nodeName&&xe.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&xe.type==="file")var ze=FA;else if(vA(xe))if(SA)ze=HS;else{ze=qS;var Je=zS}else Ee=xe.nodeName,!Ee||Ee.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?be&&Hd(be.elementType)&&(ze=FA):ze=QS;if(ze&&(ze=ze(n,be))){IA(Te,ze,o,Ce);break e}Je&&Je(n,xe,be),n==="focusout"&&be&&xe.type==="number"&&be.memoizedProps.value!=null&&Qd(xe,"number",xe.value)}switch(Je=be?ni(be):window,n){case"focusin":(vA(Je)||Je.contentEditable==="true")&&(ka=Je,ih=be,cu=null);break;case"focusout":cu=ih=ka=null;break;case"mousedown":oh=!0;break;case"contextmenu":case"mouseup":case"dragend":oh=!1,MA(Te,o,Ce);break;case"selectionchange":if(GS)break;case"keydown":case"keyup":MA(Te,o,Ce)}var qe;if(eh)e:{switch(n){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Ha?wA(n,o)&&(Ge="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Ge="onCompositionStart");Ge&&(AA&&o.locale!=="ko"&&(Ha||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Ha&&(qe=hA()):(ro=Ce,Vd="value"in ro?ro.value:ro.textContent,Ha=!0)),Je=af(be,Ge),0<Je.length&&(Ge=new gA(Ge,n,null,o,Ce),Te.push({event:Ge,listeners:Je}),qe?Ge.data=qe:(qe=EA(o),qe!==null&&(Ge.data=qe)))),(qe=NS?_S(n,o):PS(n,o))&&(Ge=af(be,"onBeforeInput"),0<Ge.length&&(Je=new gA("onBeforeInput","beforeinput",null,o,Ce),Te.push({event:Je,listeners:Ge}),Je.data=qe)),BC(Te,n,be,o,Ce)}ix(Te,r)})}function _u(n,r,o){return{instance:n,listener:r,currentTarget:o}}function af(n,r){for(var o=r+"Capture",s=[];n!==null;){var l=n,p=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||p===null||(l=tu(n,o),l!=null&&s.unshift(_u(n,l,p)),l=tu(n,r),l!=null&&s.push(_u(n,l,p))),n.tag===3)return s;n=n.return}return[]}function ys(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ax(n,r,o,s,l){for(var p=r._reactName,E=[];o!==null&&o!==s;){var j=o,ne=j.alternate,be=j.stateNode;if(j=j.tag,ne!==null&&ne===s)break;j!==5&&j!==26&&j!==27||be===null||(ne=be,l?(be=tu(o,p),be!=null&&E.unshift(_u(o,be,ne))):l||(be=tu(o,p),be!=null&&E.push(_u(o,be,ne)))),o=o.return}E.length!==0&&n.push({event:r,listeners:E})}var UC=/\r\n?/g,DC=/\u0000|\uFFFD/g;function sx(n){return(typeof n=="string"?n:""+n).replace(UC,`
|
|
38
|
-
`).replace(DC,"")}function ux(n,r){return r=sx(r),sx(n)===r}function sf(){}function Et(n,r,o,s,l,p){switch(o){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||za(n,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&za(n,""+s);break;case"className":fl(n,"class",s);break;case"tabIndex":fl(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":fl(n,o,s);break;case"style":lA(n,s,p);break;case"data":if(r!=="object"){fl(n,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||o!=="href")){n.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(o);break}s=pl(""+s),n.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){n.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 p=="function"&&(o==="formAction"?(r!=="input"&&Et(n,r,"name",l.name,l,null),Et(n,r,"formEncType",l.formEncType,l,null),Et(n,r,"formMethod",l.formMethod,l,null),Et(n,r,"formTarget",l.formTarget,l,null)):(Et(n,r,"encType",l.encType,l,null),Et(n,r,"method",l.method,l,null),Et(n,r,"target",l.target,l,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(o);break}s=pl(""+s),n.setAttribute(o,s);break;case"onClick":s!=null&&(n.onclick=sf);break;case"onScroll":s!=null&&et("scroll",n);break;case"onScrollEnd":s!=null&&et("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(l.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}o=pl(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","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"?n.setAttribute(o,""+s):n.removeAttribute(o);break;case"inert":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"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":s===!0?n.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(o,s):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(o,s):n.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(o):n.setAttribute(o,s);break;case"popover":et("beforetoggle",n),et("toggle",n),Ai(n,"popover",s);break;case"xlinkActuate":bi(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":bi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":bi(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":bi(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":bi(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":bi(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":bi(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":bi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":bi(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ai(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=cS.get(o)||o,Ai(n,o,s))}}function B0(n,r,o,s,l,p){switch(o){case"style":lA(n,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(l.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof s=="string"?za(n,s):(typeof s=="number"||typeof s=="bigint")&&za(n,""+s);break;case"onScroll":s!=null&&et("scroll",n);break;case"onScrollEnd":s!=null&&et("scrollend",n);break;case"onClick":s!=null&&(n.onclick=sf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qo.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(l=o.endsWith("Capture"),r=o.slice(2,l?o.length-7:void 0),p=n[rn]||null,p=p!=null?p[o]:null,typeof p=="function"&&n.removeEventListener(r,p,l),typeof s=="function")){typeof p!="function"&&p!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(r,s,l);break e}o in n?n[o]=s:s===!0?n.setAttribute(o,""):Ai(n,o,s)}}}function wn(n,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",n),et("load",n);var s=!1,l=!1,p;for(p in o)if(o.hasOwnProperty(p)){var E=o[p];if(E!=null)switch(p){case"src":s=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Et(n,r,p,E,o,null)}}l&&Et(n,r,"srcSet",o.srcSet,o,null),s&&Et(n,r,"src",o.src,o,null);return;case"input":et("invalid",n);var j=p=E=l=null,ne=null,be=null;for(s in o)if(o.hasOwnProperty(s)){var Ce=o[s];if(Ce!=null)switch(s){case"name":l=Ce;break;case"type":E=Ce;break;case"checked":ne=Ce;break;case"defaultChecked":be=Ce;break;case"value":p=Ce;break;case"defaultValue":j=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(a(137,r));break;default:Et(n,r,s,Ce,o,null)}}aA(n,p,j,ne,be,E,l,!1),dl(n);return;case"select":et("invalid",n),s=E=p=null;for(l in o)if(o.hasOwnProperty(l)&&(j=o[l],j!=null))switch(l){case"value":p=j;break;case"defaultValue":E=j;break;case"multiple":s=j;default:Et(n,r,l,j,o,null)}r=p,o=E,n.multiple=!!s,r!=null?La(n,!!s,r,!1):o!=null&&La(n,!!s,o,!0);return;case"textarea":et("invalid",n),p=l=s=null;for(E in o)if(o.hasOwnProperty(E)&&(j=o[E],j!=null))switch(E){case"value":s=j;break;case"defaultValue":l=j;break;case"children":p=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(a(91));break;default:Et(n,r,E,j,o,null)}uA(n,s,l,p),dl(n);return;case"option":for(ne in o)if(o.hasOwnProperty(ne)&&(s=o[ne],s!=null))switch(ne){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Et(n,r,ne,s,o,null)}return;case"dialog":et("beforetoggle",n),et("toggle",n),et("cancel",n),et("close",n);break;case"iframe":case"object":et("load",n);break;case"video":case"audio":for(s=0;s<Nu.length;s++)et(Nu[s],n);break;case"image":et("error",n),et("load",n);break;case"details":et("toggle",n);break;case"embed":case"source":case"link":et("error",n),et("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(be in o)if(o.hasOwnProperty(be)&&(s=o[be],s!=null))switch(be){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Et(n,r,be,s,o,null)}return;default:if(Hd(r)){for(Ce in o)o.hasOwnProperty(Ce)&&(s=o[Ce],s!==void 0&&B0(n,r,Ce,s,o,void 0));return}}for(j in o)o.hasOwnProperty(j)&&(s=o[j],s!=null&&Et(n,r,j,s,o,null))}function MC(n,r,o,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,p=null,E=null,j=null,ne=null,be=null,Ce=null;for(Ee in o){var Te=o[Ee];if(o.hasOwnProperty(Ee)&&Te!=null)switch(Ee){case"checked":break;case"value":break;case"defaultValue":ne=Te;default:s.hasOwnProperty(Ee)||Et(n,r,Ee,null,s,Te)}}for(var xe in s){var Ee=s[xe];if(Te=o[xe],s.hasOwnProperty(xe)&&(Ee!=null||Te!=null))switch(xe){case"type":p=Ee;break;case"name":l=Ee;break;case"checked":be=Ee;break;case"defaultChecked":Ce=Ee;break;case"value":E=Ee;break;case"defaultValue":j=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(a(137,r));break;default:Ee!==Te&&Et(n,r,xe,Ee,s,Te)}}qd(n,E,j,ne,be,Ce,p,l);return;case"select":Ee=E=j=xe=null;for(p in o)if(ne=o[p],o.hasOwnProperty(p)&&ne!=null)switch(p){case"value":break;case"multiple":Ee=ne;default:s.hasOwnProperty(p)||Et(n,r,p,null,s,ne)}for(l in s)if(p=s[l],ne=o[l],s.hasOwnProperty(l)&&(p!=null||ne!=null))switch(l){case"value":xe=p;break;case"defaultValue":j=p;break;case"multiple":E=p;default:p!==ne&&Et(n,r,l,p,s,ne)}r=j,o=E,s=Ee,xe!=null?La(n,!!o,xe,!1):!!s!=!!o&&(r!=null?La(n,!!o,r,!0):La(n,!!o,o?[]:"",!1));return;case"textarea":Ee=xe=null;for(j in o)if(l=o[j],o.hasOwnProperty(j)&&l!=null&&!s.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Et(n,r,j,null,s,l)}for(E in s)if(l=s[E],p=o[E],s.hasOwnProperty(E)&&(l!=null||p!=null))switch(E){case"value":xe=l;break;case"defaultValue":Ee=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(a(91));break;default:l!==p&&Et(n,r,E,l,s,p)}sA(n,xe,Ee);return;case"option":for(var Ke in o)if(xe=o[Ke],o.hasOwnProperty(Ke)&&xe!=null&&!s.hasOwnProperty(Ke))switch(Ke){case"selected":n.selected=!1;break;default:Et(n,r,Ke,null,s,xe)}for(ne in s)if(xe=s[ne],Ee=o[ne],s.hasOwnProperty(ne)&&xe!==Ee&&(xe!=null||Ee!=null))switch(ne){case"selected":n.selected=xe&&typeof xe!="function"&&typeof xe!="symbol";break;default:Et(n,r,ne,xe,s,Ee)}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 ke in o)xe=o[ke],o.hasOwnProperty(ke)&&xe!=null&&!s.hasOwnProperty(ke)&&Et(n,r,ke,null,s,xe);for(be in s)if(xe=s[be],Ee=o[be],s.hasOwnProperty(be)&&xe!==Ee&&(xe!=null||Ee!=null))switch(be){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(a(137,r));break;default:Et(n,r,be,xe,s,Ee)}return;default:if(Hd(r)){for(var vt in o)xe=o[vt],o.hasOwnProperty(vt)&&xe!==void 0&&!s.hasOwnProperty(vt)&&B0(n,r,vt,void 0,s,xe);for(Ce in s)xe=s[Ce],Ee=o[Ce],!s.hasOwnProperty(Ce)||xe===Ee||xe===void 0&&Ee===void 0||B0(n,r,Ce,xe,s,Ee);return}}for(var de in o)xe=o[de],o.hasOwnProperty(de)&&xe!=null&&!s.hasOwnProperty(de)&&Et(n,r,de,null,s,xe);for(Te in s)xe=s[Te],Ee=o[Te],!s.hasOwnProperty(Te)||xe===Ee||xe==null&&Ee==null||Et(n,r,Te,xe,s,Ee)}var O0=null,T0=null;function uf(n){return n.nodeType===9?n:n.ownerDocument}function cx(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lx(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function R0(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var U0=null;function jC(){var n=window.event;return n&&n.type==="popstate"?n===U0?!1:(U0=n,!0):(U0=null,!1)}var fx=typeof setTimeout=="function"?setTimeout:void 0,NC=typeof clearTimeout=="function"?clearTimeout:void 0,dx=typeof Promise=="function"?Promise:void 0,_C=typeof queueMicrotask=="function"?queueMicrotask:typeof dx<"u"?function(n){return dx.resolve(null).then(n).catch(PC)}:fx;function PC(n){setTimeout(function(){throw n})}function xo(n){return n==="head"}function hx(n,r){var o=r,s=0,l=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"){if(0<s&&8>s){o=s;var E=n.ownerDocument;if(o&1&&Pu(E.documentElement),o&2&&Pu(E.body),o&4)for(o=E.head,Pu(o),E=o.firstChild;E;){var j=E.nextSibling,ne=E.nodeName;E[ti]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&E.rel.toLowerCase()==="stylesheet"||o.removeChild(E),E=j}}if(l===0){n.removeChild(p),Gu(r);return}l--}else o==="$"||o==="$?"||o==="$!"?l++:s=o.charCodeAt(0)-48;else s=0;o=p}while(o);Gu(r)}function D0(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":D0(o),no(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function $C(n,r,o,s){for(;n.nodeType===1;){var l=o;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[ti])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==l.rel||n.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||n.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||n.getAttribute("title")!==(l.title==null?null:l.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(l.src==null?null:l.src)||n.getAttribute("type")!==(l.type==null?null:l.type)||n.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var p=l.name==null?null:""+l.name;if(l.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=qr(n.nextSibling),n===null)break}return null}function LC(n,r,o){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=qr(n.nextSibling),n===null))return null;return n}function M0(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function zC(n,r){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")r();else{var s=function(){r(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function qr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return n}var j0=null;function px(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return n;r--}else o==="/$"&&r++}n=n.previousSibling}return null}function yx(n,r,o){switch(r=uf(o),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Pu(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);no(n)}var Br=new Map,gx=new Set;function cf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Di=ce.d;ce.d={f:qC,r:QC,D:HC,C:kC,L:GC,m:KC,X:VC,S:YC,M:XC};function qC(){var n=Di.f(),r=Wl();return n||r}function QC(n){var r=_r(n);r!==null&&r.tag===5&&r.type==="form"?N1(r):Di.r(n)}var gs=typeof document>"u"?null:document;function mx(n,r,o){var s=gs;if(s&&typeof r=="string"&&r){var l=wr(r);l='link[rel="'+n+'"][href="'+l+'"]',typeof o=="string"&&(l+='[crossorigin="'+o+'"]'),gx.has(l)||(gx.add(l),n={rel:n,crossOrigin:o,href:r},s.querySelector(l)===null&&(r=s.createElement("link"),wn(r,"link",n),Nt(r),s.head.appendChild(r)))}}function HC(n){Di.D(n),mx("dns-prefetch",n,null)}function kC(n,r){Di.C(n,r),mx("preconnect",n,r)}function GC(n,r,o){Di.L(n,r,o);var s=gs;if(s&&n&&r){var l='link[rel="preload"][as="'+wr(r)+'"]';r==="image"&&o&&o.imageSrcSet?(l+='[imagesrcset="'+wr(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(l+='[imagesizes="'+wr(o.imageSizes)+'"]')):l+='[href="'+wr(n)+'"]';var p=l;switch(r){case"style":p=ms(n);break;case"script":p=As(n)}Br.has(p)||(n=x({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),Br.set(p,n),s.querySelector(l)!==null||r==="style"&&s.querySelector($u(p))||r==="script"&&s.querySelector(Lu(p))||(r=s.createElement("link"),wn(r,"link",n),Nt(r),s.head.appendChild(r)))}}function KC(n,r){Di.m(n,r);var o=gs;if(o&&n){var s=r&&typeof r.as=="string"?r.as:"script",l='link[rel="modulepreload"][as="'+wr(s)+'"][href="'+wr(n)+'"]',p=l;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=As(n)}if(!Br.has(p)&&(n=x({rel:"modulepreload",href:n},r),Br.set(p,n),o.querySelector(l)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Lu(p)))return}s=o.createElement("link"),wn(s,"link",n),Nt(s),o.head.appendChild(s)}}}function YC(n,r,o){Di.S(n,r,o);var s=gs;if(s&&n){var l=Pr(s).hoistableStyles,p=ms(n);r=r||"default";var E=l.get(p);if(!E){var j={loading:0,preload:null};if(E=s.querySelector($u(p)))j.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":r},o),(o=Br.get(p))&&N0(n,o);var ne=E=s.createElement("link");Nt(ne),wn(ne,"link",n),ne._p=new Promise(function(be,Ce){ne.onload=be,ne.onerror=Ce}),ne.addEventListener("load",function(){j.loading|=1}),ne.addEventListener("error",function(){j.loading|=2}),j.loading|=4,lf(E,r,s)}E={type:"stylesheet",instance:E,count:1,state:j},l.set(p,E)}}}function VC(n,r){Di.X(n,r);var o=gs;if(o&&n){var s=Pr(o).hoistableScripts,l=As(n),p=s.get(l);p||(p=o.querySelector(Lu(l)),p||(n=x({src:n,async:!0},r),(r=Br.get(l))&&_0(n,r),p=o.createElement("script"),Nt(p),wn(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(l,p))}}function XC(n,r){Di.M(n,r);var o=gs;if(o&&n){var s=Pr(o).hoistableScripts,l=As(n),p=s.get(l);p||(p=o.querySelector(Lu(l)),p||(n=x({src:n,async:!0,type:"module"},r),(r=Br.get(l))&&_0(n,r),p=o.createElement("script"),Nt(p),wn(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(l,p))}}function Ax(n,r,o,s){var l=(l=K.current)?cf(l):null;if(!l)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=ms(o.href),o=Pr(l).hoistableStyles,s=o.get(r),s||(s={type:"style",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=ms(o.href);var p=Pr(l).hoistableStyles,E=p.get(n);if(E||(l=l.ownerDocument||l,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,E),(p=l.querySelector($u(n)))&&!p._p&&(E.instance=p,E.state.loading=5),Br.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Br.set(n,o),p||ZC(l,n,o,E.state))),r&&s===null)throw Error(a(528,""));return E}if(r&&s!==null)throw Error(a(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=As(o),o=Pr(l).hoistableScripts,s=o.get(r),s||(s={type:"script",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ms(n){return'href="'+wr(n)+'"'}function $u(n){return'link[rel="stylesheet"]['+n+"]"}function bx(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function ZC(n,r,o,s){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=n.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),wn(r,"link",o),Nt(r),n.head.appendChild(r))}function As(n){return'[src="'+wr(n)+'"]'}function Lu(n){return"script[async]"+n}function xx(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=n.querySelector('style[data-href~="'+wr(o.href)+'"]');if(s)return r.instance=s,Nt(s),s;var l=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Nt(s),wn(s,"style",l),lf(s,o.precedence,n),r.instance=s;case"stylesheet":l=ms(o.href);var p=n.querySelector($u(l));if(p)return r.state.loading|=4,r.instance=p,Nt(p),p;s=bx(o),(l=Br.get(l))&&N0(s,l),p=(n.ownerDocument||n).createElement("link"),Nt(p);var E=p;return E._p=new Promise(function(j,ne){E.onload=j,E.onerror=ne}),wn(p,"link",s),r.state.loading|=4,lf(p,o.precedence,n),r.instance=p;case"script":return p=As(o.src),(l=n.querySelector(Lu(p)))?(r.instance=l,Nt(l),l):(s=o,(l=Br.get(p))&&(s=x({},o),_0(s,l)),n=n.ownerDocument||n,l=n.createElement("script"),Nt(l),wn(l,"link",s),n.head.appendChild(l),r.instance=l);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,lf(s,o.precedence,n));return r.instance}function lf(n,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=s.length?s[s.length-1]:null,p=l,E=0;E<s.length;E++){var j=s[E];if(j.dataset.precedence===r)p=j;else if(p!==l)break}p?p.parentNode.insertBefore(n,p.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(n,r.firstChild))}function N0(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function _0(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var ff=null;function wx(n,r,o){if(ff===null){var s=new Map,l=ff=new Map;l.set(o,s)}else l=ff,s=l.get(o),s||(s=new Map,l.set(o,s));if(s.has(n))return s;for(s.set(n,null),o=o.getElementsByTagName(n),l=0;l<o.length;l++){var p=o[l];if(!(p[ti]||p[kt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var E=p.getAttribute(r)||"";E=n+E;var j=s.get(E);j?j.push(p):s.set(E,[p])}}return s}function Ex(n,r,o){n=n.ownerDocument||n,n.head.insertBefore(o,r==="title"?n.querySelector("head > title"):null)}function JC(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function vx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var zu=null;function WC(){}function e3(n,r,o){if(zu===null)throw Error(a(475));var s=zu;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var l=ms(o.href),p=n.querySelector($u(l));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(s.count++,s=df.bind(s),n.then(s,s)),r.state.loading|=4,r.instance=p,Nt(p);return}p=n.ownerDocument||n,o=bx(o),(l=Br.get(l))&&N0(o,l),p=p.createElement("link"),Nt(p);var E=p;E._p=new Promise(function(j,ne){E.onload=j,E.onerror=ne}),wn(p,"link",o),r.instance=p}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(s.count++,r=df.bind(s),n.addEventListener("load",r),n.addEventListener("error",r))}}function t3(){if(zu===null)throw Error(a(475));var n=zu;return n.stylesheets&&n.count===0&&P0(n,n.stylesheets),0<n.count?function(r){var o=setTimeout(function(){if(n.stylesheets&&P0(n,n.stylesheets),n.unsuspend){var s=n.unsuspend;n.unsuspend=null,s()}},6e4);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(o)}}:null}function df(){if(this.count--,this.count===0){if(this.stylesheets)P0(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hf=null;function P0(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hf=new Map,r.forEach(n3,n),hf=null,df.call(n))}function n3(n,r){if(!(r.state.loading&4)){var o=hf.get(n);if(o)var s=o.get(null);else{o=new Map,hf.set(n,o);for(var l=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<l.length;p++){var E=l[p];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(o.set(E.dataset.precedence,E),s=E)}s&&o.set(null,s)}l=r.instance,E=l.getAttribute("data-precedence"),p=o.get(E)||s,p===s&&o.set(null,l),o.set(E,l),this.count++,s=df.bind(this),l.addEventListener("load",s),l.addEventListener("error",s),p?p.parentNode.insertBefore(l,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(l,n.firstChild)),r.state.loading|=4}}var qu={$$typeof:T,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function r3(n,r,o,s,l,p,E,j){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.hiddenUpdates=Bt(null),this.identifierPrefix=s,this.onUncaughtError=l,this.onCaughtError=p,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Ix(n,r,o,s,l,p,E,j,ne,be,Ce,Te){return n=new r3(n,r,o,E,j,ne,be,Te),r=1,p===!0&&(r|=24),p=rr(3,null,null,r),n.current=p,p.stateNode=n,r=bh(),r.refCount++,n.pooledCache=r,r.refCount++,p.memoizedState={element:s,isDehydrated:o,cache:r},vh(p),n}function Fx(n){return n?(n=Va,n):Va}function Sx(n,r,o,s,l,p){l=Fx(l),s.context===null?s.context=l:s.pendingContext=l,s=ao(r),s.payload={element:o},p=p===void 0?null:p,p!==null&&(s.callback=p),o=so(n,s,r),o!==null&&(ur(o,n,r),Au(o,n,r))}function Cx(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<r?o:r}}function $0(n,r){Cx(n,r),(n=n.alternate)&&Cx(n,r)}function Bx(n){if(n.tag===13){var r=Ya(n,67108864);r!==null&&ur(r,n,67108864),$0(n,67108864)}}var pf=!0;function i3(n,r,o,s){var l=N.T;N.T=null;var p=ce.p;try{ce.p=2,L0(n,r,o,s)}finally{ce.p=p,N.T=l}}function o3(n,r,o,s){var l=N.T;N.T=null;var p=ce.p;try{ce.p=8,L0(n,r,o,s)}finally{ce.p=p,N.T=l}}function L0(n,r,o,s){if(pf){var l=z0(s);if(l===null)C0(n,r,s,yf,o),Tx(n,s);else if(s3(l,n,r,o,s))s.stopPropagation();else if(Tx(n,s),r&4&&-1<a3.indexOf(n)){for(;l!==null;){var p=_r(l);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var E=at(p.pendingLanes);if(E!==0){var j=p;for(j.pendingLanes|=2,j.entangledLanes|=2;E;){var ne=1<<31-_e(E);j.entanglements[1]|=ne,E&=~ne}si(p),(mt&6)===0&&(Zl=y()+500,ju(0))}}break;case 13:j=Ya(p,2),j!==null&&ur(j,p,2),Wl(),$0(p,2)}if(p=z0(s),p===null&&C0(n,r,s,yf,o),p===l)break;l=p}l!==null&&s.stopPropagation()}else C0(n,r,s,null,o)}}function z0(n){return n=Gd(n),q0(n)}var yf=null;function q0(n){if(yf=null,n=Nr(n),n!==null){var r=c(n);if(r===null)n=null;else{var o=r.tag;if(o===13){if(n=f(r),n!==null)return n;n=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return yf=n,null}function Ox(n){switch(n){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 2;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 8;case"message":switch(g()){case w:return 2;case J:return 8;case ye:case ve:return 32;case je:return 268435456;default:return 32}default:return 32}}var Q0=!1,wo=null,Eo=null,vo=null,Qu=new Map,Hu=new Map,Io=[],a3="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(" ");function Tx(n,r){switch(n){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":Eo=null;break;case"mouseover":case"mouseout":vo=null;break;case"pointerover":case"pointerout":Qu.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hu.delete(r.pointerId)}}function ku(n,r,o,s,l,p){return n===null||n.nativeEvent!==p?(n={blockedOn:r,domEventName:o,eventSystemFlags:s,nativeEvent:p,targetContainers:[l]},r!==null&&(r=_r(r),r!==null&&Bx(r)),n):(n.eventSystemFlags|=s,r=n.targetContainers,l!==null&&r.indexOf(l)===-1&&r.push(l),n)}function s3(n,r,o,s,l){switch(r){case"focusin":return wo=ku(wo,n,r,o,s,l),!0;case"dragenter":return Eo=ku(Eo,n,r,o,s,l),!0;case"mouseover":return vo=ku(vo,n,r,o,s,l),!0;case"pointerover":var p=l.pointerId;return Qu.set(p,ku(Qu.get(p)||null,n,r,o,s,l)),!0;case"gotpointercapture":return p=l.pointerId,Hu.set(p,ku(Hu.get(p)||null,n,r,o,s,l)),!0}return!1}function Rx(n){var r=Nr(n.target);if(r!==null){var o=c(r);if(o!==null){if(r=o.tag,r===13){if(r=f(o),r!==null){n.blockedOn=r,Ma(n.priority,function(){if(o.tag===13){var s=sr();s=Ot(s);var l=Ya(o,s);l!==null&&ur(l,o,s),$0(o,s)}});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function gf(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var o=z0(n.nativeEvent);if(o===null){o=n.nativeEvent;var s=new o.constructor(o.type,o);kd=s,o.target.dispatchEvent(s),kd=null}else return r=_r(o),r!==null&&Bx(r),n.blockedOn=o,!1;r.shift()}return!0}function Ux(n,r,o){gf(n)&&o.delete(r)}function u3(){Q0=!1,wo!==null&&gf(wo)&&(wo=null),Eo!==null&&gf(Eo)&&(Eo=null),vo!==null&&gf(vo)&&(vo=null),Qu.forEach(Ux),Hu.forEach(Ux)}function mf(n,r){n.blockedOn===r&&(n.blockedOn=null,Q0||(Q0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,u3)))}var Af=null;function Dx(n){Af!==n&&(Af=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Af===n&&(Af=null);for(var r=0;r<n.length;r+=3){var o=n[r],s=n[r+1],l=n[r+2];if(typeof s!="function"){if(q0(s||o)===null)continue;break}var p=_r(o);p!==null&&(n.splice(r,3),r-=3,qh(p,{pending:!0,data:l,method:o.method,action:s},s,l))}}))}function Gu(n){function r(ne){return mf(ne,n)}wo!==null&&mf(wo,n),Eo!==null&&mf(Eo,n),vo!==null&&mf(vo,n),Qu.forEach(r),Hu.forEach(r);for(var o=0;o<Io.length;o++){var s=Io[o];s.blockedOn===n&&(s.blockedOn=null)}for(;0<Io.length&&(o=Io[0],o.blockedOn===null);)Rx(o),o.blockedOn===null&&Io.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var l=o[s],p=o[s+1],E=l[rn]||null;if(typeof p=="function")E||Dx(o);else if(E){var j=null;if(p&&p.hasAttribute("formAction")){if(l=p,E=p[rn]||null)j=E.formAction;else if(q0(l)!==null)continue}else j=E.action;typeof j=="function"?o[s+1]=j:(o.splice(s,3),s-=3),Dx(o)}}}function H0(n){this._internalRoot=n}bf.prototype.render=H0.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var o=r.current,s=sr();Sx(o,s,n,r,null,null)},bf.prototype.unmount=H0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Sx(n.current,2,null,n,null,null),Wl(),r[jr]=null}};function bf(n){this._internalRoot=n}bf.prototype.unstable_scheduleHydration=function(n){if(n){var r=Lo();n={blockedOn:null,target:n,priority:r};for(var o=0;o<Io.length&&r!==0&&r<Io[o].priority;o++);Io.splice(o,0,n),o===0&&Rx(n)}};var Mx=t.version;if(Mx!=="19.1.1")throw Error(a(527,Mx,"19.1.1"));ce.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=m(r),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var c3={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{we=xf.inject(c3),Se=xf}catch{}}return Vu.createRoot=function(n,r){if(!u(n))throw Error(a(299));var o=!1,s="",l=X1,p=Z1,E=J1,j=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(l=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(E=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(j=r.unstable_transitionCallbacks)),r=Ix(n,1,!1,null,null,o,s,l,p,E,j,null),n[jr]=r.current,S0(n),new H0(r)},Vu.hydrateRoot=function(n,r,o){if(!u(n))throw Error(a(299));var s=!1,l="",p=X1,E=Z1,j=J1,ne=null,be=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(E=o.onCaughtError),o.onRecoverableError!==void 0&&(j=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(ne=o.unstable_transitionCallbacks),o.formState!==void 0&&(be=o.formState)),r=Ix(n,1,!0,r,o??null,s,l,p,E,j,ne,be),r.context=Fx(null),o=r.current,s=sr(),s=Ot(s),l=ao(s),l.callback=null,so(o,l,s),o=s,r.current.lanes=o,St(r,o),si(r),n[jr]=r.current,S0(n),new bf(r)},Vu.version="19.1.1",Vu}var Vx;function v3(){if(Vx)return V0.exports;Vx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),V0.exports=E3(),V0.exports}var I3=v3(),F3=qE();function nc({isOpen:e,onClose:t,title:i,children:a,className:u,url:c}){Re.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"),t())};if(!e)return null;const d=X.jsx("div",{className:"modal-overlay",onClick:t,children:X.jsxs("div",{className:`modal-content ${u}`,onClick:m=>m.stopPropagation(),children:[X.jsxs("div",{className:"modal-header",children:[X.jsx("h2",{className:"modal-title",children:i}),X.jsxs("div",{className:"modal-header-actions",children:[c&&X.jsx("button",{className:"modal-open-new-window",onClick:f,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:X.jsxs("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:[X.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),X.jsx("polyline",{points:"15 3 21 3 21 9"}),X.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),X.jsx("button",{className:"modal-close",onClick:t,type:"button",children:"×"})]})]}),X.jsx("div",{className:"modal-body",children:a})]})});return typeof document<"u"&&document.body?F3.createPortal(d,document.body):d}const bs=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function S3(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function lc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ya(e,...t){if(!S3(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function C3(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");lc(e.outputLen),lc(e.blockLen)}function Bs(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function QE(e,t){ya(e);const i=t.outputLen;if(e.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}function B3(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Os(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function W0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ui(e,t){return e<<32-t|e>>>t}const O3=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function T3(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function R3(e){for(let t=0;t<e.length;t++)e[t]=T3(e[t]);return e}const Xx=O3?e=>e:R3;function U3(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Jf(e){return typeof e=="string"&&(e=U3(e)),ya(e),e}function D3(...e){let t=0;for(let a=0;a<e.length;a++){const u=e[a];ya(u),t+=u.length}const i=new Uint8Array(t);for(let a=0,u=0;a<e.length;a++){const c=e[a];i.set(c,u),u+=c.length}return i}let Ng=class{};function HE(e){const t=a=>e().update(Jf(a)).digest(),i=e();return t.outputLen=i.outputLen,t.blockLen=i.blockLen,t.create=()=>e(),t}function M3(e=32){if(bs&&typeof bs.getRandomValues=="function")return bs.getRandomValues(new Uint8Array(e));if(bs&&typeof bs.randomBytes=="function")return Uint8Array.from(bs.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _g=BigInt(0),eg=BigInt(1);function Qc(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Pg(e){if(!Qc(e))throw new Error("Uint8Array expected")}function fc(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function vf(e){const t=e.toString(16);return t.length&1?"0"+t:t}function kE(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?_g:BigInt("0x"+e)}const GE=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",j3=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function dc(e){if(Pg(e),GE)return e.toHex();let t="";for(let i=0;i<e.length;i++)t+=j3[e[i]];return t}const ji={_0:48,_9:57,A:65,F:70,a:97,f:102};function Zx(e){if(e>=ji._0&&e<=ji._9)return e-ji._0;if(e>=ji.A&&e<=ji.F)return e-(ji.A-10);if(e>=ji.a&&e<=ji.f)return e-(ji.a-10)}function zf(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(GE)return Uint8Array.fromHex(e);const t=e.length,i=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(i);for(let u=0,c=0;u<i;u++,c+=2){const f=Zx(e.charCodeAt(c)),d=Zx(e.charCodeAt(c+1));if(f===void 0||d===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+d}return a}function pa(e){return kE(dc(e))}function KE(e){return Pg(e),kE(dc(Uint8Array.from(e).reverse()))}function Hc(e,t){return zf(e.toString(16).padStart(t*2,"0"))}function YE(e,t){return Hc(e,t).reverse()}function Tr(e,t,i){let a;if(typeof t=="string")try{a=zf(t)}catch(c){throw new Error(e+" must be hex string or Uint8Array, cause: "+c)}else if(Qc(t))a=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const u=a.length;if(typeof i=="number"&&u!==i)throw new Error(e+" of length "+i+" expected, got "+u);return a}function qf(...e){let t=0;for(let a=0;a<e.length;a++){const u=e[a];Pg(u),t+=u.length}const i=new Uint8Array(t);for(let a=0,u=0;a<e.length;a++){const c=e[a];i.set(c,u),u+=c.length}return i}const ep=e=>typeof e=="bigint"&&_g<=e;function $g(e,t,i){return ep(e)&&ep(t)&&ep(i)&&t<=e&&e<i}function vs(e,t,i,a){if(!$g(t,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+t)}function N3(e){let t;for(t=0;e>_g;e>>=eg,t+=1);return t}const Wf=e=>(eg<<BigInt(e))-eg,tp=e=>new Uint8Array(e),Jx=e=>Uint8Array.from(e);function _3(e,t,i){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof i!="function")throw new Error("hmacFn must be a function");let a=tp(e),u=tp(e),c=0;const f=()=>{a.fill(1),u.fill(0),c=0},d=(...v)=>i(u,a,...v),m=(v=tp(0))=>{u=d(Jx([0]),v),a=d(),v.length!==0&&(u=d(Jx([1]),v),a=d())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const I=[];for(;v<t;){a=d();const C=a.slice();I.push(C),v+=a.length}return qf(...I)};return(v,I)=>{f(),m(v);let C;for(;!(C=I(h()));)m();return f(),C}}const P3={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Qc(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ed(e,t,i={}){const a=(u,c,f)=>{const d=P3[c];if(typeof d!="function")throw new Error("invalid validator function");const m=e[u];if(!(f&&m===void 0)&&!d(m,e))throw new Error("param "+String(u)+" is invalid. Expected "+c+", got "+m)};for(const[u,c]of Object.entries(t))a(u,c,!1);for(const[u,c]of Object.entries(i))a(u,c,!0);return e}function Wx(e){const t=new WeakMap;return(i,...a)=>{const u=t.get(i);if(u!==void 0)return u;const c=e(i,...a);return t.set(i,c),c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Gn=BigInt(0),Pn=BigInt(1),da=BigInt(2),$3=BigInt(3),VE=BigInt(4),XE=BigInt(5),ZE=BigInt(8);function kn(e,t){const i=e%t;return i>=Gn?i:t+i}function Or(e,t,i){let a=e;for(;t-- >Gn;)a*=a,a%=i;return a}function tg(e,t){if(e===Gn)throw new Error("invert: expected non-zero number");if(t<=Gn)throw new Error("invert: expected positive modulus, got "+t);let i=kn(e,t),a=t,u=Gn,c=Pn;for(;i!==Gn;){const d=a/i,m=a%i,h=u-c*d;a=i,i=m,u=c,c=h}if(a!==Pn)throw new Error("invert: does not exist");return kn(u,t)}function JE(e,t){const i=(e.ORDER+Pn)/VE,a=e.pow(t,i);if(!e.eql(e.sqr(a),t))throw new Error("Cannot find square root");return a}function L3(e,t){const i=(e.ORDER-XE)/ZE,a=e.mul(t,da),u=e.pow(a,i),c=e.mul(t,u),f=e.mul(e.mul(c,da),u),d=e.mul(c,e.sub(f,e.ONE));if(!e.eql(e.sqr(d),t))throw new Error("Cannot find square root");return d}function z3(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Pn,i=0;for(;t%da===Gn;)t/=da,i++;let a=da;const u=Lg(e);for(;e2(u,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return JE;let c=u.pow(a,t);const f=(t+Pn)/da;return function(m,h){if(m.is0(h))return h;if(e2(m,h)!==1)throw new Error("Cannot find square root");let x=i,v=m.mul(m.ONE,c),I=m.pow(h,t),C=m.pow(h,f);for(;!m.eql(I,m.ONE);){if(m.is0(I))return m.ZERO;let B=1,$=m.sqr(I);for(;!m.eql($,m.ONE);)if(B++,$=m.sqr($),B===x)throw new Error("Cannot find square root");const O=Pn<<BigInt(x-B-1),U=m.pow(v,O);x=B,v=m.sqr(U),I=m.mul(I,v),C=m.mul(C,U)}return C}}function q3(e){return e%VE===$3?JE:e%ZE===XE?L3:z3(e)}const Q3=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function H3(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},i=Q3.reduce((a,u)=>(a[u]="function",a),t);return ed(e,i)}function k3(e,t,i){if(i<Gn)throw new Error("invalid exponent, negatives unsupported");if(i===Gn)return e.ONE;if(i===Pn)return t;let a=e.ONE,u=t;for(;i>Gn;)i&Pn&&(a=e.mul(a,u)),u=e.sqr(u),i>>=Pn;return a}function WE(e,t,i=!1){const a=new Array(t.length).fill(i?e.ZERO:void 0),u=t.reduce((f,d,m)=>e.is0(d)?f:(a[m]=f,e.mul(f,d)),e.ONE),c=e.inv(u);return t.reduceRight((f,d,m)=>e.is0(d)?f:(a[m]=e.mul(f,a[m]),e.mul(f,d)),c),a}function e2(e,t){const i=(e.ORDER-Pn)/da,a=e.pow(t,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 ev(e,t){t!==void 0&&lc(t);const i=t!==void 0?t:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function Lg(e,t,i=!1,a={}){if(e<=Gn)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:u,nByteLength:c}=ev(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const d=Object.freeze({ORDER:e,isLE:i,BITS:u,BYTES:c,MASK:Wf(u),ZERO:Gn,ONE:Pn,create:m=>kn(m,e),isValid:m=>{if(typeof m!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof m);return Gn<=m&&m<e},is0:m=>m===Gn,isOdd:m=>(m&Pn)===Pn,neg:m=>kn(-m,e),eql:(m,h)=>m===h,sqr:m=>kn(m*m,e),add:(m,h)=>kn(m+h,e),sub:(m,h)=>kn(m-h,e),mul:(m,h)=>kn(m*h,e),pow:(m,h)=>k3(d,m,h),div:(m,h)=>kn(m*tg(h,e),e),sqrN:m=>m*m,addN:(m,h)=>m+h,subN:(m,h)=>m-h,mulN:(m,h)=>m*h,inv:m=>tg(m,e),sqrt:a.sqrt||(m=>(f||(f=q3(e)),f(d,m))),toBytes:m=>i?YE(m,c):Hc(m,c),fromBytes:m=>{if(m.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+m.length);return i?KE(m):pa(m)},invertBatch:m=>WE(d,m),cmov:(m,h,x)=>x?h:m});return Object.freeze(d)}function tv(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function nv(e){const t=tv(e);return t+Math.ceil(t/2)}function G3(e,t,i=!1){const a=e.length,u=tv(t),c=nv(t);if(a<16||a<c||a>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+a);const f=i?KE(e):pa(e),d=kn(f,t-Pn)+Pn;return i?YE(d,u):Hc(d,u)}function K3(e,t,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,i,a);const u=BigInt(32),c=BigInt(4294967295),f=Number(i>>u&c),d=Number(i&c),m=a?4:0,h=a?0:4;e.setUint32(t+m,f,a),e.setUint32(t+h,d,a)}function Y3(e,t,i){return e&t^~e&i}function V3(e,t,i){return e&t^e&i^t&i}class X3 extends Ng{constructor(t,i,a,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=i,this.padOffset=a,this.isLE=u,this.buffer=new Uint8Array(t),this.view=W0(this.buffer)}update(t){Bs(this),t=Jf(t),ya(t);const{view:i,buffer:a,blockLen:u}=this,c=t.length;for(let f=0;f<c;){const d=Math.min(u-this.pos,c-f);if(d===u){const m=W0(t);for(;u<=c-f;f+=u)this.process(m,f);continue}a.set(t.subarray(f,f+d),this.pos),this.pos+=d,f+=d,this.pos===u&&(this.process(i,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Bs(this),QE(t,this),this.finished=!0;const{buffer:i,view:a,blockLen:u,isLE:c}=this;let{pos:f}=this;i[f++]=128,Os(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(a,0),f=0);for(let v=f;v<u;v++)i[v]=0;K3(a,u-8,BigInt(this.length*8),c),this.process(a,0);const d=W0(t),m=this.outputLen;if(m%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=m/4,x=this.get();if(h>x.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<h;v++)d.setUint32(4*v,x[v],c)}digest(){const{buffer:t,outputLen:i}=this;this.digestInto(t);const a=t.slice(0,i);return this.destroy(),a}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:i,buffer:a,length:u,finished:c,destroyed:f,pos:d}=this;return t.destroyed=f,t.finished=c,t.length=u,t.pos=d,u%i&&t.buffer.set(a),t}clone(){return this._cloneInto()}}const Co=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),If=BigInt(2**32-1),t2=BigInt(32);function Z3(e,t=!1){return t?{h:Number(e&If),l:Number(e>>t2&If)}:{h:Number(e>>t2&If)|0,l:Number(e&If)|0}}function J3(e,t=!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:d}=Z3(e[c],t);[a[c],u[c]]=[f,d]}return[a,u]}const W3=(e,t,i)=>e<<i|t>>>32-i,eB=(e,t,i)=>t<<i|e>>>32-i,tB=(e,t,i)=>t<<i-32|e>>>64-i,nB=(e,t,i)=>e<<i-32|t>>>64-i,rB=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]),Bo=new Uint32Array(64);class iB extends X3{constructor(t=32){super(64,t,8,!1),this.A=Co[0]|0,this.B=Co[1]|0,this.C=Co[2]|0,this.D=Co[3]|0,this.E=Co[4]|0,this.F=Co[5]|0,this.G=Co[6]|0,this.H=Co[7]|0}get(){const{A:t,B:i,C:a,D:u,E:c,F:f,G:d,H:m}=this;return[t,i,a,u,c,f,d,m]}set(t,i,a,u,c,f,d,m){this.A=t|0,this.B=i|0,this.C=a|0,this.D=u|0,this.E=c|0,this.F=f|0,this.G=d|0,this.H=m|0}process(t,i){for(let v=0;v<16;v++,i+=4)Bo[v]=t.getUint32(i,!1);for(let v=16;v<64;v++){const I=Bo[v-15],C=Bo[v-2],B=ui(I,7)^ui(I,18)^I>>>3,$=ui(C,17)^ui(C,19)^C>>>10;Bo[v]=$+Bo[v-7]+B+Bo[v-16]|0}let{A:a,B:u,C:c,D:f,E:d,F:m,G:h,H:x}=this;for(let v=0;v<64;v++){const I=ui(d,6)^ui(d,11)^ui(d,25),C=x+I+Y3(d,m,h)+rB[v]+Bo[v]|0,$=(ui(a,2)^ui(a,13)^ui(a,22))+V3(a,u,c)|0;x=h,h=m,m=d,d=f+C|0,f=c,c=u,u=a,a=C+$|0}a=a+this.A|0,u=u+this.B|0,c=c+this.C|0,f=f+this.D|0,d=d+this.E|0,m=m+this.F|0,h=h+this.G|0,x=x+this.H|0,this.set(a,u,c,f,d,m,h,x)}roundClean(){Os(Bo)}destroy(){this.set(0,0,0,0,0,0,0,0),Os(this.buffer)}}const rv=HE(()=>new iB);class iv extends Ng{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,C3(t);const a=Jf(i);if(this.iHash=t.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?t.create().update(a).digest():a);for(let f=0;f<c.length;f++)c[f]^=54;this.iHash.update(c),this.oHash=t.create();for(let f=0;f<c.length;f++)c[f]^=106;this.oHash.update(c),Os(c)}update(t){return Bs(this),this.iHash.update(t),this}digestInto(t){Bs(this),ya(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:a,finished:u,destroyed:c,blockLen:f,outputLen:d}=this;return t=t,t.finished=u,t.destroyed=c,t.blockLen=f,t.outputLen=d,t.oHash=i._cloneInto(t.oHash),t.iHash=a._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const ov=(e,t,i)=>new iv(e,t).update(i).digest();ov.create=(e,t)=>new iv(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const n2=BigInt(0),ng=BigInt(1);function np(e,t){const i=t.negate();return e?i:t}function av(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rp(e,t){av(e,t);const i=Math.ceil(t/e)+1,a=2**(e-1),u=2**e,c=Wf(e),f=BigInt(e);return{windows:i,windowSize:a,mask:c,maxNumber:u,shiftBy:f}}function r2(e,t,i){const{windowSize:a,mask:u,maxNumber:c,shiftBy:f}=i;let d=Number(e&u),m=e>>f;d>a&&(d-=c,m+=ng);const h=t*a,x=h+Math.abs(d)-1,v=d===0,I=d<0,C=t%2!==0;return{nextN:m,offset:x,isZero:v,isNeg:I,isNegF:C,offsetF:h}}function oB(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((i,a)=>{if(!(i instanceof t))throw new Error("invalid point at index "+a)})}function aB(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,a)=>{if(!t.isValid(i))throw new Error("invalid scalar at index "+a)})}const ip=new WeakMap,sv=new WeakMap;function op(e){return sv.get(e)||1}function sB(e,t){return{constTimeNegate:np,hasPrecomputes(i){return op(i)!==1},unsafeLadder(i,a,u=e.ZERO){let c=i;for(;a>n2;)a&ng&&(u=u.add(c)),c=c.double(),a>>=ng;return u},precomputeWindow(i,a){const{windows:u,windowSize:c}=rp(a,t),f=[];let d=i,m=d;for(let h=0;h<u;h++){m=d,f.push(m);for(let x=1;x<c;x++)m=m.add(d),f.push(m);d=m.double()}return f},wNAF(i,a,u){let c=e.ZERO,f=e.BASE;const d=rp(i,t);for(let m=0;m<d.windows;m++){const{nextN:h,offset:x,isZero:v,isNeg:I,isNegF:C,offsetF:B}=r2(u,m,d);u=h,v?f=f.add(np(C,a[B])):c=c.add(np(I,a[x]))}return{p:c,f}},wNAFUnsafe(i,a,u,c=e.ZERO){const f=rp(i,t);for(let d=0;d<f.windows&&u!==n2;d++){const{nextN:m,offset:h,isZero:x,isNeg:v}=r2(u,d,f);if(u=m,!x){const I=a[h];c=c.add(v?I.negate():I)}}return c},getPrecomputes(i,a,u){let c=ip.get(a);return c||(c=this.precomputeWindow(a,i),i!==1&&ip.set(a,u(c))),c},wNAFCached(i,a,u){const c=op(i);return this.wNAF(c,this.getPrecomputes(c,i,u),a)},wNAFCachedUnsafe(i,a,u,c){const f=op(i);return f===1?this.unsafeLadder(i,a,c):this.wNAFUnsafe(f,this.getPrecomputes(f,i,u),a,c)},setWindowSize(i,a){av(a,t),sv.set(i,a),ip.delete(i)}}}function uB(e,t,i,a){oB(i,e),aB(a,t);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,d=N3(BigInt(u));let m=1;d>12?m=d-3:d>4?m=d-2:d>0&&(m=2);const h=Wf(m),x=new Array(Number(h)+1).fill(f),v=Math.floor((t.BITS-1)/m)*m;let I=f;for(let C=v;C>=0;C-=m){x.fill(f);for(let $=0;$<c;$++){const O=a[$],U=Number(O>>BigInt(C)&h);x[U]=x[U].add(i[$])}let B=f;for(let $=x.length-1,O=f;$>0;$--)O=O.add(x[$]),B=B.add(O);if(I=I.add(B),C!==0)for(let $=0;$<m;$++)I=I.double()}return I}function uv(e){return H3(e.Fp),ed(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ev(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function i2(e){e.lowS!==void 0&&fc("lowS",e.lowS),e.prehash!==void 0&&fc("prehash",e.prehash)}function cB(e){const t=uv(e);ed(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:i,Fp:a,a:u}=t;if(i){if(!a.eql(u,a.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof i!="object"||typeof i.beta!="bigint"||typeof i.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class lB extends Error{constructor(t=""){super(t)}}const Li={Err:lB,_tlv:{encode:(e,t)=>{const{Err:i}=Li;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(t.length&1)throw new i("tlv.encode: unpadded data");const a=t.length/2,u=vf(a);if(u.length/2&128)throw new i("tlv.encode: long form length too big");const c=a>127?vf(u.length/2|128):"";return vf(e)+c+u+t},decode(e,t){const{Err:i}=Li;let a=0;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new i("tlv.decode: wrong tlv");const u=t[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 h=t.subarray(a,a+m);if(h.length!==m)throw new i("tlv.decode: length bytes not complete");if(h[0]===0)throw new i("tlv.decode(long): zero leftmost byte");for(const x of h)f=f<<8|x;if(a+=m,f<128)throw new i("tlv.decode(long): not minimal encoding")}const d=t.subarray(a,a+f);if(d.length!==f)throw new i("tlv.decode: wrong value length");return{v:d,l:t.subarray(a+f)}}},_int:{encode(e){const{Err:t}=Li;if(e<Qi)throw new t("integer: negative integers are not allowed");let i=vf(e);if(Number.parseInt(i[0],16)&8&&(i="00"+i),i.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return i},decode(e){const{Err:t}=Li;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return pa(e)}},toSig(e){const{Err:t,_int:i,_tlv:a}=Li,u=Tr("signature",e),{v:c,l:f}=a.decode(48,u);if(f.length)throw new t("invalid signature: left bytes after parsing");const{v:d,l:m}=a.decode(2,c),{v:h,l:x}=a.decode(2,m);if(x.length)throw new t("invalid signature: left bytes after parsing");return{r:i.decode(d),s:i.decode(h)}},hexFromSig(e){const{_tlv:t,_int:i}=Li,a=t.encode(2,i.encode(e.r)),u=t.encode(2,i.encode(e.s)),c=a+u;return t.encode(48,c)}};function ap(e,t){return dc(Hc(e,t))}const Qi=BigInt(0),hn=BigInt(1);BigInt(2);const sp=BigInt(3),fB=BigInt(4);function dB(e){const t=cB(e),{Fp:i}=t,a=Lg(t.n,t.nBitLength),u=t.toBytes||((T,L,k)=>{const Y=L.toAffine();return qf(Uint8Array.from([4]),i.toBytes(Y.x),i.toBytes(Y.y))}),c=t.fromBytes||(T=>{const L=T.subarray(1),k=i.fromBytes(L.subarray(0,i.BYTES)),Y=i.fromBytes(L.subarray(i.BYTES,2*i.BYTES));return{x:k,y:Y}});function f(T){const{a:L,b:k}=t,Y=i.sqr(T),oe=i.mul(Y,T);return i.add(i.add(oe,i.mul(T,L)),k)}function d(T,L){const k=i.sqr(L),Y=f(T);return i.eql(k,Y)}if(!d(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const m=i.mul(i.pow(t.a,sp),fB),h=i.mul(i.sqr(t.b),BigInt(27));if(i.is0(i.add(m,h)))throw new Error("bad curve params: a or b");function x(T){return $g(T,hn,t.n)}function v(T){const{allowedPrivateKeyLengths:L,nByteLength:k,wrapPrivateKey:Y,n:oe}=t;if(L&&typeof T!="bigint"){if(Qc(T)&&(T=dc(T)),typeof T!="string"||!L.includes(T.length))throw new Error("invalid private key");T=T.padStart(k*2,"0")}let te;try{te=typeof T=="bigint"?T:pa(Tr("private key",T,k))}catch{throw new Error("invalid private key, expected hex or "+k+" bytes, got "+typeof T)}return Y&&(te=kn(te,oe)),vs("private key",te,hn,oe),te}function I(T){if(!(T instanceof $))throw new Error("ProjectivePoint expected")}const C=Wx((T,L)=>{const{px:k,py:Y,pz:oe}=T;if(i.eql(oe,i.ONE))return{x:k,y:Y};const te=T.is0();L==null&&(L=te?i.ONE:i.inv(oe));const F=i.mul(k,L),_=i.mul(Y,L),G=i.mul(oe,L);if(te)return{x:i.ZERO,y:i.ZERO};if(!i.eql(G,i.ONE))throw new Error("invZ was invalid");return{x:F,y:_}}),B=Wx(T=>{if(T.is0()){if(t.allowInfinityPoint&&!i.is0(T.py))return;throw new Error("bad point: ZERO")}const{x:L,y:k}=T.toAffine();if(!i.isValid(L)||!i.isValid(k))throw new Error("bad point: x or y not FE");if(!d(L,k))throw new Error("bad point: equation left != right");if(!T.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class ${constructor(L,k,Y){if(L==null||!i.isValid(L))throw new Error("x required");if(k==null||!i.isValid(k)||i.is0(k))throw new Error("y required");if(Y==null||!i.isValid(Y))throw new Error("z required");this.px=L,this.py=k,this.pz=Y,Object.freeze(this)}static fromAffine(L){const{x:k,y:Y}=L||{};if(!L||!i.isValid(k)||!i.isValid(Y))throw new Error("invalid affine point");if(L instanceof $)throw new Error("projective point not allowed");const oe=te=>i.eql(te,i.ZERO);return oe(k)&&oe(Y)?$.ZERO:new $(k,Y,i.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(L){const k=WE(i,L.map(Y=>Y.pz));return L.map((Y,oe)=>Y.toAffine(k[oe])).map($.fromAffine)}static fromHex(L){const k=$.fromAffine(c(Tr("pointHex",L)));return k.assertValidity(),k}static fromPrivateKey(L){return $.BASE.multiply(v(L))}static msm(L,k){return uB($,a,L,k)}_setWindowSize(L){R.setWindowSize(this,L)}assertValidity(){B(this)}hasEvenY(){const{y:L}=this.toAffine();if(i.isOdd)return!i.isOdd(L);throw new Error("Field doesn't support isOdd")}equals(L){I(L);const{px:k,py:Y,pz:oe}=this,{px:te,py:F,pz:_}=L,G=i.eql(i.mul(k,_),i.mul(te,oe)),H=i.eql(i.mul(Y,_),i.mul(F,oe));return G&&H}negate(){return new $(this.px,i.neg(this.py),this.pz)}double(){const{a:L,b:k}=t,Y=i.mul(k,sp),{px:oe,py:te,pz:F}=this;let _=i.ZERO,G=i.ZERO,H=i.ZERO,ee=i.mul(oe,oe),fe=i.mul(te,te),he=i.mul(F,F),N=i.mul(oe,te);return N=i.add(N,N),H=i.mul(oe,F),H=i.add(H,H),_=i.mul(L,H),G=i.mul(Y,he),G=i.add(_,G),_=i.sub(fe,G),G=i.add(fe,G),G=i.mul(_,G),_=i.mul(N,_),H=i.mul(Y,H),he=i.mul(L,he),N=i.sub(ee,he),N=i.mul(L,N),N=i.add(N,H),H=i.add(ee,ee),ee=i.add(H,ee),ee=i.add(ee,he),ee=i.mul(ee,N),G=i.add(G,ee),he=i.mul(te,F),he=i.add(he,he),ee=i.mul(he,N),_=i.sub(_,ee),H=i.mul(he,fe),H=i.add(H,H),H=i.add(H,H),new $(_,G,H)}add(L){I(L);const{px:k,py:Y,pz:oe}=this,{px:te,py:F,pz:_}=L;let G=i.ZERO,H=i.ZERO,ee=i.ZERO;const fe=t.a,he=i.mul(t.b,sp);let N=i.mul(k,te),ce=i.mul(Y,F),me=i.mul(oe,_),W=i.add(k,Y),S=i.add(te,F);W=i.mul(W,S),S=i.add(N,ce),W=i.sub(W,S),S=i.add(k,oe);let Z=i.add(te,_);return S=i.mul(S,Z),Z=i.add(N,me),S=i.sub(S,Z),Z=i.add(Y,oe),G=i.add(F,_),Z=i.mul(Z,G),G=i.add(ce,me),Z=i.sub(Z,G),ee=i.mul(fe,S),G=i.mul(he,me),ee=i.add(G,ee),G=i.sub(ce,ee),ee=i.add(ce,ee),H=i.mul(G,ee),ce=i.add(N,N),ce=i.add(ce,N),me=i.mul(fe,me),S=i.mul(he,S),ce=i.add(ce,me),me=i.sub(N,me),me=i.mul(fe,me),S=i.add(S,me),N=i.mul(ce,S),H=i.add(H,N),N=i.mul(Z,S),G=i.mul(W,G),G=i.sub(G,N),N=i.mul(W,ce),ee=i.mul(Z,ee),ee=i.add(ee,N),new $(G,H,ee)}subtract(L){return this.add(L.negate())}is0(){return this.equals($.ZERO)}wNAF(L){return R.wNAFCached(this,L,$.normalizeZ)}multiplyUnsafe(L){const{endo:k,n:Y}=t;vs("scalar",L,Qi,Y);const oe=$.ZERO;if(L===Qi)return oe;if(this.is0()||L===hn)return this;if(!k||R.hasPrecomputes(this))return R.wNAFCachedUnsafe(this,L,$.normalizeZ);let{k1neg:te,k1:F,k2neg:_,k2:G}=k.splitScalar(L),H=oe,ee=oe,fe=this;for(;F>Qi||G>Qi;)F&hn&&(H=H.add(fe)),G&hn&&(ee=ee.add(fe)),fe=fe.double(),F>>=hn,G>>=hn;return te&&(H=H.negate()),_&&(ee=ee.negate()),ee=new $(i.mul(ee.px,k.beta),ee.py,ee.pz),H.add(ee)}multiply(L){const{endo:k,n:Y}=t;vs("scalar",L,hn,Y);let oe,te;if(k){const{k1neg:F,k1:_,k2neg:G,k2:H}=k.splitScalar(L);let{p:ee,f:fe}=this.wNAF(_),{p:he,f:N}=this.wNAF(H);ee=R.constTimeNegate(F,ee),he=R.constTimeNegate(G,he),he=new $(i.mul(he.px,k.beta),he.py,he.pz),oe=ee.add(he),te=fe.add(N)}else{const{p:F,f:_}=this.wNAF(L);oe=F,te=_}return $.normalizeZ([oe,te])[0]}multiplyAndAddUnsafe(L,k,Y){const oe=$.BASE,te=(_,G)=>G===Qi||G===hn||!_.equals(oe)?_.multiplyUnsafe(G):_.multiply(G),F=te(this,k).add(te(L,Y));return F.is0()?void 0:F}toAffine(L){return C(this,L)}isTorsionFree(){const{h:L,isTorsionFree:k}=t;if(L===hn)return!0;if(k)return k($,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:L,clearCofactor:k}=t;return L===hn?this:k?k($,this):this.multiplyUnsafe(t.h)}toRawBytes(L=!0){return fc("isCompressed",L),this.assertValidity(),u($,this,L)}toHex(L=!0){return fc("isCompressed",L),dc(this.toRawBytes(L))}}$.BASE=new $(t.Gx,t.Gy,i.ONE),$.ZERO=new $(i.ZERO,i.ONE,i.ZERO);const{endo:O,nBitLength:U}=t,R=sB($,O?Math.ceil(U/2):U);return{CURVE:t,ProjectivePoint:$,normPrivateKeyToScalar:v,weierstrassEquation:f,isWithinCurveOrder:x}}function hB(e){const t=uv(e);return ed(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function pB(e){const t=hB(e),{Fp:i,n:a,nByteLength:u,nBitLength:c}=t,f=i.BYTES+1,d=2*i.BYTES+1;function m(he){return kn(he,a)}function h(he){return tg(he,a)}const{ProjectivePoint:x,normPrivateKeyToScalar:v,weierstrassEquation:I,isWithinCurveOrder:C}=dB({...t,toBytes(he,N,ce){const me=N.toAffine(),W=i.toBytes(me.x),S=qf;return fc("isCompressed",ce),ce?S(Uint8Array.from([N.hasEvenY()?2:3]),W):S(Uint8Array.from([4]),W,i.toBytes(me.y))},fromBytes(he){const N=he.length,ce=he[0],me=he.subarray(1);if(N===f&&(ce===2||ce===3)){const W=pa(me);if(!$g(W,hn,i.ORDER))throw new Error("Point is not on curve");const S=I(W);let Z;try{Z=i.sqrt(S)}catch(M){const P=M instanceof Error?": "+M.message:"";throw new Error("Point is not on curve"+P)}const se=(Z&hn)===hn;return(ce&1)===1!==se&&(Z=i.neg(Z)),{x:W,y:Z}}else if(N===d&&ce===4){const W=i.fromBytes(me.subarray(0,i.BYTES)),S=i.fromBytes(me.subarray(i.BYTES,2*i.BYTES));return{x:W,y:S}}else{const W=f,S=d;throw new Error("invalid Point, expected length of "+W+", or uncompressed "+S+", got "+N)}}});function B(he){const N=a>>hn;return he>N}function $(he){return B(he)?m(-he):he}const O=(he,N,ce)=>pa(he.slice(N,ce));class U{constructor(N,ce,me){vs("r",N,hn,a),vs("s",ce,hn,a),this.r=N,this.s=ce,me!=null&&(this.recovery=me),Object.freeze(this)}static fromCompact(N){const ce=u;return N=Tr("compactSignature",N,ce*2),new U(O(N,0,ce),O(N,ce,2*ce))}static fromDER(N){const{r:ce,s:me}=Li.toSig(Tr("DER",N));return new U(ce,me)}assertValidity(){}addRecoveryBit(N){return new U(this.r,this.s,N)}recoverPublicKey(N){const{r:ce,s:me,recovery:W}=this,S=oe(Tr("msgHash",N));if(W==null||![0,1,2,3].includes(W))throw new Error("recovery id invalid");const Z=W===2||W===3?ce+t.n:ce;if(Z>=i.ORDER)throw new Error("recovery id 2 or 3 invalid");const se=(W&1)===0?"02":"03",Q=x.fromHex(se+ap(Z,i.BYTES)),M=h(Z),P=m(-S*M),K=m(me*M),pe=x.BASE.multiplyAndAddUnsafe(Q,P,K);if(!pe)throw new Error("point at infinify");return pe.assertValidity(),pe}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new U(this.r,m(-this.s),this.recovery):this}toDERRawBytes(){return zf(this.toDERHex())}toDERHex(){return Li.hexFromSig(this)}toCompactRawBytes(){return zf(this.toCompactHex())}toCompactHex(){const N=u;return ap(this.r,N)+ap(this.s,N)}}const R={isValidPrivateKey(he){try{return v(he),!0}catch{return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{const he=nv(t.n);return G3(t.randomBytes(he),t.n)},precompute(he=8,N=x.BASE){return N._setWindowSize(he),N.multiply(BigInt(3)),N}};function T(he,N=!0){return x.fromPrivateKey(he).toRawBytes(N)}function L(he){if(typeof he=="bigint")return!1;if(he instanceof x)return!0;const ce=Tr("key",he).length,me=i.BYTES,W=me+1,S=2*me+1;if(!(t.allowedPrivateKeyLengths||u===W))return ce===W||ce===S}function k(he,N,ce=!0){if(L(he)===!0)throw new Error("first arg must be private key");if(L(N)===!1)throw new Error("second arg must be public key");return x.fromHex(N).multiply(v(he)).toRawBytes(ce)}const Y=t.bits2int||function(he){if(he.length>8192)throw new Error("input is too large");const N=pa(he),ce=he.length*8-c;return ce>0?N>>BigInt(ce):N},oe=t.bits2int_modN||function(he){return m(Y(he))},te=Wf(c);function F(he){return vs("num < 2^"+c,he,Qi,te),Hc(he,u)}function _(he,N,ce=G){if(["recovered","canonical"].some(q=>q in ce))throw new Error("sign() legacy options not supported");const{hash:me,randomBytes:W}=t;let{lowS:S,prehash:Z,extraEntropy:se}=ce;S==null&&(S=!0),he=Tr("msgHash",he),i2(ce),Z&&(he=Tr("prehashed msgHash",me(he)));const Q=oe(he),M=v(N),P=[F(M),F(Q)];if(se!=null&&se!==!1){const q=se===!0?W(i.BYTES):se;P.push(Tr("extraEntropy",q))}const K=qf(...P),pe=Q;function ge(q){const b=Y(q);if(!C(b))return;const D=h(b),z=x.BASE.multiply(b).toAffine(),V=m(z.x);if(V===Qi)return;const ae=m(D*m(pe+V*M));if(ae===Qi)return;let ue=(z.x===V?0:2)|Number(z.y&hn),A=ae;return S&&B(ae)&&(A=$(ae),ue^=1),new U(V,A,ue)}return{seed:K,k2sig:ge}}const G={lowS:t.lowS,prehash:!1},H={lowS:t.lowS,prehash:!1};function ee(he,N,ce=G){const{seed:me,k2sig:W}=_(he,N,ce),S=t;return _3(S.hash.outputLen,S.nByteLength,S.hmac)(me,W)}x.BASE._setWindowSize(8);function fe(he,N,ce,me=H){var ue;const W=he;N=Tr("msgHash",N),ce=Tr("publicKey",ce);const{lowS:S,prehash:Z,format:se}=me;if(i2(me),"strict"in me)throw new Error("options.strict was renamed to lowS");if(se!==void 0&&se!=="compact"&&se!=="der")throw new Error("format must be compact or der");const Q=typeof W=="string"||Qc(W),M=!Q&&!se&&typeof W=="object"&&W!==null&&typeof W.r=="bigint"&&typeof W.s=="bigint";if(!Q&&!M)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let P,K;try{if(M&&(P=new U(W.r,W.s)),Q){try{se!=="compact"&&(P=U.fromDER(W))}catch(A){if(!(A instanceof Li.Err))throw A}!P&&se!=="der"&&(P=U.fromCompact(W))}K=x.fromHex(ce)}catch{return!1}if(!P||S&&P.hasHighS())return!1;Z&&(N=t.hash(N));const{r:pe,s:ge}=P,q=oe(N),b=h(ge),D=m(q*b),z=m(pe*b),V=(ue=x.BASE.multiplyAndAddUnsafe(K,D,z))==null?void 0:ue.toAffine();return V?m(V.x)===pe:!1}return{CURVE:t,getPublicKey:T,getSharedSecret:k,sign:ee,verify:fe,ProjectivePoint:x,Signature:U,utils:R}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function yB(e){return{hash:e,hmac:(t,...i)=>ov(e,t,D3(...i)),randomBytes:M3}}function gB(e,t){const i=a=>pB({...e,...yB(a)});return{...i(t),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const cv=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),o2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),mB=BigInt(0),AB=BigInt(1),rg=BigInt(2),a2=(e,t)=>(e+t/rg)/t;function bB(e){const t=cv,i=BigInt(3),a=BigInt(6),u=BigInt(11),c=BigInt(22),f=BigInt(23),d=BigInt(44),m=BigInt(88),h=e*e*e%t,x=h*h*e%t,v=Or(x,i,t)*x%t,I=Or(v,i,t)*x%t,C=Or(I,rg,t)*h%t,B=Or(C,u,t)*C%t,$=Or(B,c,t)*B%t,O=Or($,d,t)*$%t,U=Or(O,m,t)*O%t,R=Or(U,d,t)*$%t,T=Or(R,i,t)*x%t,L=Or(T,f,t)*B%t,k=Or(L,a,t)*h%t,Y=Or(k,rg,t);if(!ig.eql(ig.sqr(Y),e))throw new Error("Cannot find square root");return Y}const ig=Lg(cv,void 0,void 0,{sqrt:bB}),kc=gB({a:mB,b:BigInt(7),Fp:ig,n:o2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=o2,i=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-AB*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=i,f=BigInt("0x100000000000000000000000000000000"),d=a2(c*e,t),m=a2(-a*e,t);let h=kn(e-d*i-m*u,t),x=kn(-d*a-m*c,t);const v=h>f,I=x>f;if(v&&(h=t-h),I&&(x=t-x),h>f||x>f)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:v,k1:h,k2neg:I,k2:x}}}},rv),xB=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:kc},Symbol.toStringTag,{value:"Module"})),lv="2.37.9";let Xu={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:i})=>t?`${e??"https://viem.sh"}${t}${i?`#${i}`:""}`:void 0,version:`viem@${lv}`};class De extends Error{constructor(t,i={}){var d;const a=(()=>{var m;return i.cause instanceof De?i.cause.details:(m=i.cause)!=null&&m.message?i.cause.message:i.details})(),u=i.cause instanceof De&&i.cause.docsPath||i.docsPath,c=(d=Xu.getDocsUrl)==null?void 0:d.call(Xu,{...i,docsPath:u}),f=[t||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...a?[`Details: ${a}`]:[],...Xu.version?[`Version: ${Xu.version}`]:[]].join(`
|
|
39
|
-
`);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=t,this.version=lv}walk(t){return fv(this,t)}}function fv(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?fv(e.cause,t):t?null:e}class dv extends De{constructor({max:t,min:i,signed:a,size:u,value:c}){super(`Number "${c}" is not in safe ${u?`${u*8}-bit ${a?"signed":"unsigned"} `:""}integer range ${t?`(${i} to ${t})`:`(above ${i})`}`,{name:"IntegerOutOfRangeError"})}}class wB extends De{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class EB extends De{constructor({givenSize:t,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Ki(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Qt(e){return Ki(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Ro(e,{dir:t="left"}={}){let i=typeof e=="string"?e.replace("0x",""):e,a=0;for(let u=0;u<i.length-1&&i[t==="left"?u:i.length-u-1].toString()==="0";u++)a++;return i=t==="left"?i.slice(a):i.slice(0,i.length-a),typeof e=="string"?(i.length===1&&t==="right"&&(i=`${i}0`),`0x${i.length%2===1?`0${i}`:i}`):i}class hv extends De{constructor({offset:t,position:i,size:a}){super(`Slice ${i==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${a}).`,{name:"SliceOffsetOutOfBoundsError"})}}class pv extends De{constructor({size:t,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} size (${t}) exceeds padding size (${i}).`,{name:"SizeExceedsPaddingSizeError"})}}class s2 extends De{constructor({size:t,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} is expected to be ${i} ${a} long, but is ${t} ${a} long.`,{name:"InvalidBytesLengthError"})}}function Ls(e,{dir:t,size:i=32}={}){return typeof e=="string"?To(e,{dir:t,size:i}):vB(e,{dir:t,size:i})}function To(e,{dir:t,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new pv({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[t==="right"?"padEnd":"padStart"](i*2,"0")}`}function vB(e,{dir:t,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new pv({size:e.length,targetSize:i,type:"bytes"});const a=new Uint8Array(i);for(let u=0;u<i;u++){const c=t==="right";a[c?u:i-u-1]=e[c?u:e.length-u-1]}return a}const IB=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function di(e,t={}){return typeof e=="number"||typeof e=="bigint"?Pe(e,t):typeof e=="string"?Ts(e,t):typeof e=="boolean"?yv(e,t):Mn(e,t)}function yv(e,t={}){const i=`0x${Number(e)}`;return typeof t.size=="number"?(gi(i,{size:t.size}),Ls(i,{size:t.size})):i}function Mn(e,t={}){let i="";for(let u=0;u<e.length;u++)i+=IB[e[u]];const a=`0x${i}`;return typeof t.size=="number"?(gi(a,{size:t.size}),Ls(a,{dir:"right",size:t.size})):a}function Pe(e,t={}){const{signed:i,size:a}=t,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 dv({max:c?`${c}${m}`:void 0,min:`${f}${m}`,signed:i,size:a,value:`${e}${m}`})}const d=`0x${(i&&u<0?(1n<<BigInt(a*8))+BigInt(u):u).toString(16)}`;return a?Ls(d,{size:a}):d}const FB=new TextEncoder;function Ts(e,t={}){const i=FB.encode(e);return Mn(i,t)}const SB=new TextEncoder;function zg(e,t={}){return typeof e=="number"||typeof e=="bigint"?BB(e,t):typeof e=="boolean"?CB(e,t):Ki(e)?Kr(e,t):gv(e,t)}function CB(e,t={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof t.size=="number"?(gi(i,{size:t.size}),Ls(i,{size:t.size})):i}const Ni={zero:48,nine:57,A:65,F:70,a:97,f:102};function u2(e){if(e>=Ni.zero&&e<=Ni.nine)return e-Ni.zero;if(e>=Ni.A&&e<=Ni.F)return e-(Ni.A-10);if(e>=Ni.a&&e<=Ni.f)return e-(Ni.a-10)}function Kr(e,t={}){let i=e;t.size&&(gi(i,{size:t.size}),i=Ls(i,{dir:"right",size:t.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,d=0;f<u;f++){const m=u2(a.charCodeAt(d++)),h=u2(a.charCodeAt(d++));if(m===void 0||h===void 0)throw new De(`Invalid byte sequence ("${a[d-2]}${a[d-1]}" in "${a}").`);c[f]=m*16+h}return c}function BB(e,t){const i=Pe(e,t);return Kr(i)}function gv(e,t={}){const i=SB.encode(e);return typeof t.size=="number"?(gi(i,{size:t.size}),Ls(i,{dir:"right",size:t.size})):i}function gi(e,{size:t}){if(Qt(e)>t)throw new EB({givenSize:Qt(e),maxSize:t})}function hi(e,t={}){const{signed:i}=t;t.size&&gi(e,{size:t.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 Yi(e,t={}){return Number(hi(e,t))}async function mv(e,{address:t,blockTag:i="latest",blockNumber:a}){const u=await e.request({method:"eth_getTransactionCount",params:[t,typeof a=="bigint"?Pe(a):i]},{dedupe:!!a});return Yi(u)}class td extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const i=super.get(t);return super.has(t)&&i!==void 0&&(this.delete(t),super.set(t,i)),i}set(t,i){if(super.set(t,i),this.maxSize&&this.size>this.maxSize){const a=this.keys().next().value;a&&this.delete(a)}return this}}function OB({r:e,s:t,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 kc.Signature(hi(e),hi(t)).toCompactHex()}${c===0?"1b":"1c"}`;return i==="hex"?f:Kr(f)}function Av(){return di(kc.utils.randomPrivateKey())}class $n extends De{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}const TB=BigInt(0),Zu=BigInt(1),RB=BigInt(2),UB=BigInt(7),DB=BigInt(256),MB=BigInt(113),bv=[],xv=[],wv=[];for(let e=0,t=Zu,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],bv.push(2*(5*a+i)),xv.push((e+1)*(e+2)/2%64);let u=TB;for(let c=0;c<7;c++)t=(t<<Zu^(t>>UB)*MB)%DB,t&RB&&(u^=Zu<<(Zu<<BigInt(c))-Zu);wv.push(u)}const Ev=J3(wv,!0),jB=Ev[0],NB=Ev[1],c2=(e,t,i)=>i>32?tB(e,t,i):W3(e,t,i),l2=(e,t,i)=>i>32?nB(e,t,i):eB(e,t,i);function _B(e,t=24){const i=new Uint32Array(10);for(let a=24-t;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 d=(f+8)%10,m=(f+2)%10,h=i[m],x=i[m+1],v=c2(h,x,1)^i[d],I=l2(h,x,1)^i[d+1];for(let C=0;C<50;C+=10)e[f+C]^=v,e[f+C+1]^=I}let u=e[2],c=e[3];for(let f=0;f<24;f++){const d=xv[f],m=c2(u,c,d),h=l2(u,c,d),x=bv[f];u=e[x],c=e[x+1],e[x]=m,e[x+1]=h}for(let f=0;f<50;f+=10){for(let d=0;d<10;d++)i[d]=e[f+d];for(let d=0;d<10;d++)e[f+d]^=~i[(d+2)%10]&i[(d+4)%10]}e[0]^=jB[a],e[1]^=NB[a]}Os(i)}class qg extends Ng{constructor(t,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=t,this.suffix=i,this.outputLen=a,this.enableXOF=u,this.rounds=c,lc(a),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=B3(this.state)}clone(){return this._cloneInto()}keccak(){Xx(this.state32),_B(this.state32,this.rounds),Xx(this.state32),this.posOut=0,this.pos=0}update(t){Bs(this),t=Jf(t),ya(t);const{blockLen:i,state:a}=this,u=t.length;for(let c=0;c<u;){const f=Math.min(i-this.pos,u-c);for(let d=0;d<f;d++)a[this.pos++]^=t[c++];this.pos===i&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:i,pos:a,blockLen:u}=this;t[a]^=i,(i&128)!==0&&a===u-1&&this.keccak(),t[u-1]^=128,this.keccak()}writeInto(t){Bs(this,!1),ya(t),this.finish();const i=this.state,{blockLen:a}=this;for(let u=0,c=t.length;u<c;){this.posOut>=a&&this.keccak();const f=Math.min(a-this.posOut,c-u);t.set(i.subarray(this.posOut,this.posOut+f),u),this.posOut+=f,u+=f}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return lc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(QE(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Os(this.state)}_cloneInto(t){const{blockLen:i,suffix:a,outputLen:u,rounds:c,enableXOF:f}=this;return t||(t=new qg(i,a,u,f,c)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=c,t.suffix=a,t.outputLen=u,t.enableXOF=f,t.destroyed=this.destroyed,t}}const PB=(e,t,i)=>HE(()=>new qg(t,e,i)),$B=PB(1,136,256/8);function cr(e,t){const i=t||"hex",a=$B(Ki(e,{strict:!1})?zg(e):e);return i==="bytes"?a:di(a)}const up=new td(8192);function Gc(e,t){if(up.has(`${e}.${t}`))return up.get(`${e}.${t}`);const i=e.substring(2).toLowerCase(),a=cr(gv(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 up.set(`${e}.${t}`,c),c}function LB(e,t){if(!gn(e,{strict:!1}))throw new $n({address:e});return Gc(e,t)}const zB=/^0x[a-fA-F0-9]{40}$/,cp=new td(8192);function gn(e,t){const{strict:i=!0}=t??{},a=`${e}.${i}`;if(cp.has(a))return cp.get(a);const u=zB.test(e)?e.toLowerCase()===e?!0:i?Gc(e)===e:!0:!1;return cp.set(a,u),u}function qB(e){if(typeof e=="string"){if(!gn(e,{strict:!1}))throw new $n({address:e});return{address:e,type:"json-rpc"}}if(!gn(e.address,{strict:!1}))throw new $n({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 vv(e){const t=cr(`0x${e.substring(4)}`).substring(26);return Gc(`0x${t}`)}let lp=!1;async function Kc({hash:e,privateKey:t,to:i="object"}){const{r:a,s:u,recovery:c}=kc.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:Ki(lp,{strict:!1})?Kr(lp):lp}),f={r:Pe(a,{size:32}),s:Pe(u,{size:32}),v:c?28n:27n,yParity:c};return i==="bytes"||i==="hex"?OB({...f,to:i}):f}function pi(e){return typeof e[0]=="string"?Uo(e):QB(e)}function QB(e){let t=0;for(const u of e)t+=u.length;const i=new Uint8Array(t);let a=0;for(const u of e)i.set(u,a),a+=u.length;return i}function Uo(e){return`0x${e.reduce((t,i)=>t+i.replace("0x",""),"")}`}class f2 extends De{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class HB extends De{constructor({length:t,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class kB extends De{constructor({count:t,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const GB={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 kB({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new HB({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new f2({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new f2({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const i=t??this.position;return this.assertPosition(i+e-1),this.bytes.subarray(i,i+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},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,t){this.assertReadLimit(),this._touch();const i=this.inspectBytes(e);return this.position+=t??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 t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Qg(e,{recursiveReadLimit:t=8192}={}){const i=Object.create(GB);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=t,i}function ga(e,t="hex"){const i=Iv(e),a=Qg(new Uint8Array(i.length));return i.encode(a),t==="hex"?Mn(a.bytes):a.bytes}function Iv(e){return Array.isArray(e)?KB(e.map(t=>Iv(t))):YB(e)}function KB(e){const t=e.reduce((u,c)=>u+c.length,0),i=Fv(t);return{length:t<=55?1+t:1+i+t,encode(u){t<=55?u.pushByte(192+t):(u.pushByte(247+i),i===1?u.pushUint8(t):i===2?u.pushUint16(t):i===3?u.pushUint24(t):u.pushUint32(t));for(const{encode:c}of e)c(u)}}}function YB(e){const t=typeof e=="string"?Kr(e):e,i=Fv(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+i+t.length,encode(u){t.length===1&&t[0]<128?u.pushBytes(t):t.length<=55?(u.pushByte(128+t.length),u.pushBytes(t)):(u.pushByte(183+i),i===1?u.pushUint8(t.length):i===2?u.pushUint16(t.length):i===3?u.pushUint24(t.length):u.pushUint32(t.length),u.pushBytes(t))}}}function Fv(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 De("Length is too large.")}function Sv(e){const{chainId:t,nonce:i,to:a}=e,u=e.contractAddress??e.address,c=cr(Uo(["0x05",ga([t?Pe(t):"0x",u,i?Pe(i):"0x"])]));return a==="bytes"?Kr(c):c}async function VB(e){const{chainId:t,nonce:i,privateKey:a,to:u="object"}=e,c=e.contractAddress??e.address,f=await Kc({hash:Sv({address:c,chainId:t,nonce:i}),privateKey:a,to:u});return u==="object"?{address:c,chainId:t,nonce:i,...f}:f}const XB=`Ethereum Signed Message:
|
|
40
|
-
`;function ZB(e){const t=typeof e=="string"?Ts(e):typeof e.raw=="string"?e.raw:Mn(e.raw),i=Ts(`${XB}${Qt(t)}`);return pi([i,t])}function JB(e,t){return cr(ZB(e),t)}async function WB({message:e,privateKey:t}){return await Kc({hash:JB(e),privateKey:t,to:"hex"})}const e6={gwei:9,wei:18},t6={ether:-9,wei:9};function Cv(e,t){let i=e.toString();const a=i.startsWith("-");a&&(i=i.slice(1)),i=i.padStart(t,"0");let[u,c]=[i.slice(0,i.length-t),i.slice(i.length-t)];return c=c.replace(/(0+)$/,""),`${a?"-":""}${u||"0"}${c?`.${c}`:""}`}function Bv(e,t="wei"){return Cv(e,e6[t])}function kr(e,t="wei"){return Cv(e,t6[t])}function nd(e){const t=Object.entries(e).map(([a,u])=>u===void 0||u===!1?null:[a,u]).filter(Boolean),i=t.reduce((a,[u])=>Math.max(a,u.length),0);return t.map(([a,u])=>` ${`${a}:`.padEnd(i+1)} ${u}`).join(`
|
|
41
|
-
`)}class n6 extends De{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
42
|
-
`),{name:"FeeConflictError"})}}class r6 extends De{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class i6 extends De{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",nd(t),"}","","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 o6 extends De{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class a6 extends De{constructor(t,{account:i,docsPath:a,chain:u,data:c,gas:f,gasPrice:d,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:x,to:v,value:I}){var B;const C=nd({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 I<"u"&&`${Bv(I)} ${((B=u==null?void 0:u.nativeCurrency)==null?void 0:B.symbol)||"ETH"}`,data:c,gas:f,gasPrice:typeof d<"u"&&`${kr(d)} gwei`,maxFeePerGas:typeof m<"u"&&`${kr(m)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${kr(h)} gwei`,nonce:x});super(t.shortMessage,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",C].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function s6(e){if(!e||e.length===0)return[];const t=[];for(const i of e){const{chainId:a,nonce:u,...c}=i,f=i.address;t.push([a?di(a):"0x",f,u?di(u):"0x",...Yc({},c)])}return t}function Hg(e){const{kzg:t}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(c=>Kr(c)):e.blobs,u=[];for(const c of a)u.push(Uint8Array.from(t.blobToKzgCommitment(c)));return i==="bytes"?u:u.map(c=>Mn(c))}function kg(e){const{kzg:t}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(f=>Kr(f)):e.blobs,u=typeof e.commitments[0]=="string"?e.commitments.map(f=>Kr(f)):e.commitments,c=[];for(let f=0;f<a.length;f++){const d=a[f],m=u[f];c.push(Uint8Array.from(t.computeBlobKzgProof(d,m)))}return i==="bytes"?c:c.map(f=>Mn(f))}const og=rv;function u6(e,t){return og(Ki(e,{strict:!1})?zg(e):e)}function c6(e){const{commitment:t,version:i=1}=e,a=e.to??(typeof t=="string"?"hex":"bytes"),u=u6(t);return u.set([i],0),a==="bytes"?u:Mn(u)}function Ov(e){const{commitments:t,version:i}=e,a=e.to??(typeof t[0]=="string"?"hex":"bytes"),u=[];for(const c of t)u.push(c6({commitment:c,to:a,version:i}));return u}const d2=6,Tv=32,Gg=4096,Rv=Tv*Gg,h2=Rv*d2-1-1*Gg*d2,Uv=1;class l6 extends De{constructor({maxSize:t,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class Dv extends De{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class f6 extends De{constructor({hash:t,size:i}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class d6 extends De{constructor({hash:t,version:i}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Uv}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function h6(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?Kr(e.data):e.data,a=Qt(i);if(!a)throw new Dv;if(a>h2)throw new l6({maxSize:h2,size:a});const u=[];let c=!0,f=0;for(;c;){const d=Qg(new Uint8Array(Rv));let m=0;for(;m<Gg;){const h=i.slice(f,f+(Tv-1));if(d.pushByte(0),d.pushBytes(h),h.length<31){d.pushByte(128),c=!1;break}m++,f+=31}u.push(d)}return t==="bytes"?u.map(d=>d.bytes):u.map(d=>Mn(d.bytes))}function Mv(e){const{data:t,kzg:i,to:a}=e,u=e.blobs??h6({data:t,to:a}),c=e.commitments??Hg({blobs:u,kzg:i,to:a}),f=e.proofs??kg({blobs:u,commitments:c,kzg:i,to:a}),d=[];for(let m=0;m<u.length;m++)d.push({blob:u[m],commitment:c[m],proof:f[m]});return d}const rd=2n**256n-1n;class p6 extends De{constructor({chain:t,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class y6 extends De{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(`
|
|
43
|
-
`),{name:"ChainNotFoundError"})}}class id extends De{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class xs extends De{constructor({cause:t,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:t,name:"ExecutionRevertedError"})}}Object.defineProperty(xs,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(xs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class ma extends De{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${kr(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(ma,"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 ag extends De{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${kr(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(ag,"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 sg extends De{constructor({cause:t,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(sg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ug extends De{constructor({cause:t,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(`
|
|
44
|
-
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(ug,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class cg extends De{constructor({cause:t,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(cg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class lg extends De{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
45
|
-
`),{cause:t,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(lg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class fg extends De{constructor({cause:t,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(fg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class dg extends De{constructor({cause:t,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(dg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class hg extends De{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(hg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class hc extends De{constructor({cause:t,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${kr(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${kr(a)} gwei`:""}).`].join(`
|
|
46
|
-
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(hc,"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 Kg extends De{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function pc(e,t,i,{strict:a}={}){return Ki(e,{strict:!1})?pg(e,t,i,{strict:a}):_v(e,t,i,{strict:a})}function jv(e,t){if(typeof t=="number"&&t>0&&t>Qt(e)-1)throw new hv({offset:t,position:"start",size:Qt(e)})}function Nv(e,t,i){if(typeof t=="number"&&typeof i=="number"&&Qt(e)!==i-t)throw new hv({offset:i,position:"end",size:Qt(e)})}function _v(e,t,i,{strict:a}={}){jv(e,t);const u=e.slice(t,i);return a&&Nv(u,t,i),u}function pg(e,t,i,{strict:a}={}){jv(e,t);const u=`0x${e.replace("0x","").slice((t??0)*2,(i??e.length)*2)}`;return a&&Nv(u,t,i),u}function g6(e){const{authorizationList:t}=e;if(t)for(const i of t){const{chainId:a}=i,u=i.address;if(!gn(u))throw new $n({address:u});if(a<0)throw new id({chainId:a})}Yg(e)}function m6(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new Dv;for(const i of t){const a=Qt(i),u=Yi(pc(i,0,1));if(a!==32)throw new f6({hash:i,size:a});if(u!==Uv)throw new d6({hash:i,version:u})}}Yg(e)}function Yg(e){const{chainId:t,maxPriorityFeePerGas:i,maxFeePerGas:a,to:u}=e;if(t<=0)throw new id({chainId:t});if(u&&!gn(u))throw new $n({address:u});if(a&&a>rd)throw new ma({maxFeePerGas:a});if(i&&a&&i>a)throw new hc({maxFeePerGas:a,maxPriorityFeePerGas:i})}function A6(e){const{chainId:t,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:c}=e;if(t<=0)throw new id({chainId:t});if(c&&!gn(c))throw new $n({address:c});if(i||u)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>rd)throw new ma({maxFeePerGas:a})}function b6(e){const{chainId:t,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:c}=e;if(c&&!gn(c))throw new $n({address:c});if(typeof t<"u"&&t<=0)throw new id({chainId:t});if(i||u)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>rd)throw new ma({maxFeePerGas:a})}function Pv(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 i6({transaction:e})}function od(e){if(!e||e.length===0)return[];const t=[];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 o6({storageKey:u[c]});if(!gn(a,{strict:!1}))throw new $n({address:a});t.push([a,u])}return t}function x6(e,t){const i=Pv(e);return i==="eip1559"?v6(e,t):i==="eip2930"?I6(e,t):i==="eip4844"?E6(e,t):i==="eip7702"?w6(e,t):F6(e,t)}function w6(e,t){const{authorizationList:i,chainId:a,gas:u,nonce:c,to:f,value:d,maxFeePerGas:m,maxPriorityFeePerGas:h,accessList:x,data:v}=e;g6(e);const I=od(x),C=s6(i);return Uo(["0x04",ga([Pe(a),c?Pe(c):"0x",h?Pe(h):"0x",m?Pe(m):"0x",u?Pe(u):"0x",f??"0x",d?Pe(d):"0x",v??"0x",I,C,...Yc(e,t)])])}function E6(e,t){const{chainId:i,gas:a,nonce:u,to:c,value:f,maxFeePerBlobGas:d,maxFeePerGas:m,maxPriorityFeePerGas:h,accessList:x,data:v}=e;m6(e);let I=e.blobVersionedHashes,C=e.sidecars;if(e.blobs&&(typeof I>"u"||typeof C>"u")){const T=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(Y=>Mn(Y)),L=e.kzg,k=Hg({blobs:T,kzg:L});if(typeof I>"u"&&(I=Ov({commitments:k})),typeof C>"u"){const Y=kg({blobs:T,commitments:k,kzg:L});C=Mv({blobs:T,commitments:k,proofs:Y})}}const B=od(x),$=[Pe(i),u?Pe(u):"0x",h?Pe(h):"0x",m?Pe(m):"0x",a?Pe(a):"0x",c??"0x",f?Pe(f):"0x",v??"0x",B,d?Pe(d):"0x",I??[],...Yc(e,t)],O=[],U=[],R=[];if(C)for(let T=0;T<C.length;T++){const{blob:L,commitment:k,proof:Y}=C[T];O.push(L),U.push(k),R.push(Y)}return Uo(["0x03",ga(C?[$,O,U,R]:$)])}function v6(e,t){const{chainId:i,gas:a,nonce:u,to:c,value:f,maxFeePerGas:d,maxPriorityFeePerGas:m,accessList:h,data:x}=e;Yg(e);const v=od(h),I=[Pe(i),u?Pe(u):"0x",m?Pe(m):"0x",d?Pe(d):"0x",a?Pe(a):"0x",c??"0x",f?Pe(f):"0x",x??"0x",v,...Yc(e,t)];return Uo(["0x02",ga(I)])}function I6(e,t){const{chainId:i,gas:a,data:u,nonce:c,to:f,value:d,accessList:m,gasPrice:h}=e;A6(e);const x=od(m),v=[Pe(i),c?Pe(c):"0x",h?Pe(h):"0x",a?Pe(a):"0x",f??"0x",d?Pe(d):"0x",u??"0x",x,...Yc(e,t)];return Uo(["0x01",ga(v)])}function F6(e,t){const{chainId:i=0,gas:a,data:u,nonce:c,to:f,value:d,gasPrice:m}=e;b6(e);let h=[c?Pe(c):"0x",m?Pe(m):"0x",a?Pe(a):"0x",f??"0x",d?Pe(d):"0x",u??"0x"];if(t){const x=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(i>0)return BigInt(i*2)+BigInt(35n+t.v-27n);const C=27n+(t.v===27n?0n:1n);if(t.v!==C)throw new r6({v:t.v});return C})(),v=Ro(t.r),I=Ro(t.s);h=[...h,Pe(x),v==="0x00"?"0x":v,I==="0x00"?"0x":I]}else i>0&&(h=[...h,Pe(i),"0x","0x"]);return ga(h)}function Yc(e,t){const i=t??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=Ro(i.r),f=Ro(i.s);return[typeof u=="number"?u?Pe(1):"0x":a===0n?"0x":a===1n?Pe(1):a===27n?"0x":Pe(1),c==="0x00"?"0x":c,f==="0x00"?"0x":f]}async function S6(e){const{privateKey:t,transaction:i,serializer:a=x6}=e,u=i.type==="eip4844"?{...i,sidecars:!1}:i,c=await Kc({hash:cr(a(u)),privateKey:t});return a(i,c)}function Rs(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new P6(e.type);return`${e.name}(${Vg(e.inputs,{includeName:t})})`}function Vg(e,{includeName:t=!1}={}){return e?e.map(i=>C6(i,{includeName:t})).join(t?", ":","):""}function C6(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Vg(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class B6 extends De{constructor({docsPath:t}){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(`
|
|
47
|
-
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class p2 extends De{constructor({docsPath:t}){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(`
|
|
48
|
-
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class O6 extends De{constructor({data:t,params:i,size:a}){super([`Data size of ${a} bytes is too small for given parameters.`].join(`
|
|
49
|
-
`),{metaMessages:[`Params: (${Vg(i,{includeName:!0})})`,`Data: ${t} (${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=t,this.params=i,this.size=a}}class Xg extends De{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class T6 extends De{constructor({expectedLength:t,givenLength:i,type:a}){super([`ABI encoding array length mismatch for type ${a}.`,`Expected length: ${t}`,`Given length: ${i}`].join(`
|
|
50
|
-
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class R6 extends De{constructor({expectedSize:t,value:i}){super(`Size of bytes "${i}" (bytes${Qt(i)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class U6 extends De{constructor({expectedLength:t,givenLength:i}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${i}`].join(`
|
|
51
|
-
`),{name:"AbiEncodingLengthMismatchError"})}}class $v extends De{constructor(t,{docsPath:i}){super([`Encoded error signature "${t}" 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=${t}.`].join(`
|
|
52
|
-
`),{docsPath:i,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class y2 extends De{constructor(t,{docsPath:i}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
53
|
-
`),{docsPath:i,name:"AbiFunctionNotFoundError"})}}class D6 extends De{constructor(t,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Rs(t.abiItem)}\`, and`,`\`${i.type}\` in \`${Rs(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class M6 extends De{constructor({expectedSize:t,givenSize:i}){super(`Expected bytes${t}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class j6 extends De{constructor(t,{docsPath:i}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
54
|
-
`),{docsPath:i,name:"InvalidAbiEncodingType"})}}class N6 extends De{constructor(t,{docsPath:i}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
55
|
-
`),{docsPath:i,name:"InvalidAbiDecodingType"})}}class _6 extends De{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
56
|
-
`),{name:"InvalidArrayError"})}}class P6 extends De{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
57
|
-
`),{name:"InvalidDefinitionTypeError"})}}const $6=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Lv=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function ad(e,t){if(e.length!==t.length)throw new U6({expectedLength:e.length,givenLength:t.length});const i=L6({params:e,values:t}),a=Jg(i);return a.length===0?"0x":a}function L6({params:e,values:t}){const i=[];for(let a=0;a<e.length;a++)i.push(Zg({param:e[a],value:t[a]}));return i}function Zg({param:e,value:t}){const i=Wg(e.type);if(i){const[a,u]=i;return q6(t,{length:a,param:{...e,type:u}})}if(e.type==="tuple")return K6(t,{param:e});if(e.type==="address")return z6(t);if(e.type==="bool")return H6(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,u="256"]=Lv.exec(e.type)??[];return k6(t,{signed:a,size:Number(u)})}if(e.type.startsWith("bytes"))return Q6(t,{param:e});if(e.type==="string")return G6(t);throw new j6(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Jg(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:f,encoded:d}=e[c];f?t+=32:t+=Qt(d)}const i=[],a=[];let u=0;for(let c=0;c<e.length;c++){const{dynamic:f,encoded:d}=e[c];f?(i.push(Pe(t+u,{size:32})),a.push(d),u+=Qt(d)):i.push(d)}return pi([...i,...a])}function z6(e){if(!gn(e))throw new $n({address:e});return{dynamic:!1,encoded:To(e.toLowerCase())}}function q6(e,{length:t,param:i}){const a=t===null;if(!Array.isArray(e))throw new _6(e);if(!a&&e.length!==t)throw new T6({expectedLength:t,givenLength:e.length,type:`${i.type}[${t}]`});let u=!1;const c=[];for(let f=0;f<e.length;f++){const d=Zg({param:i,value:e[f]});d.dynamic&&(u=!0),c.push(d)}if(a||u){const f=Jg(c);if(a){const d=Pe(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?pi([d,f]):d}}if(u)return{dynamic:!0,encoded:f}}return{dynamic:!1,encoded:pi(c.map(({encoded:f})=>f))}}function Q6(e,{param:t}){const[,i]=t.type.split("bytes"),a=Qt(e);if(!i){let u=e;return a%32!==0&&(u=To(u,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:pi([To(Pe(a,{size:32})),u])}}if(a!==Number.parseInt(i,10))throw new R6({expectedSize:Number.parseInt(i,10),value:e});return{dynamic:!1,encoded:To(e,{dir:"right"})}}function H6(e){if(typeof e!="boolean")throw new De(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:To(yv(e))}}function k6(e,{signed:t,size:i=256}){if(typeof i=="number"){const a=2n**(BigInt(i)-(t?1n:0n))-1n,u=t?-a-1n:0n;if(e>a||e<u)throw new dv({max:a.toString(),min:u.toString(),signed:t,size:i/8,value:e.toString()})}return{dynamic:!1,encoded:Pe(e,{size:32,signed:t})}}function G6(e){const t=Ts(e),i=Math.ceil(Qt(t)/32),a=[];for(let u=0;u<i;u++)a.push(To(pc(t,u*32,(u+1)*32),{dir:"right"}));return{dynamic:!0,encoded:pi([To(Pe(Qt(t),{size:32})),...a])}}function K6(e,{param:t}){let i=!1;const a=[];for(let u=0;u<t.components.length;u++){const c=t.components[u],f=Array.isArray(e)?u:c.name,d=Zg({param:c,value:e[f]});a.push(d),d.dynamic&&(i=!0)}return{dynamic:i,encoded:i?Jg(a):pi(a.map(({encoded:u})=>u))}}function Wg(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const Gr=(e,t,i)=>JSON.stringify(e,(a,u)=>typeof u=="bigint"?u.toString():u,i);class Y6 extends De{constructor({domain:t}){super(`Invalid domain "${Gr(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class V6 extends De{constructor({primaryType:t,types:i}){super(`Invalid primary type \`${t}\` 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 X6 extends De{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function Z6(e){const{domain:t,message:i,primaryType:a,types:u}=e,c=(m,h)=>{const x={...h};for(const v of m){const{name:I,type:C}=v;C==="address"&&(x[I]=x[I].toLowerCase())}return x},f=u.EIP712Domain?t?c(u.EIP712Domain,t):{}:{},d=(()=>{if(a!=="EIP712Domain")return c(u[a],i)})();return Gr({domain:f,message:d,primaryType:a,types:u})}function zv(e){const{domain:t,message:i,primaryType:a,types:u}=e,c=(f,d)=>{for(const m of f){const{name:h,type:x}=m,v=d[h],I=x.match(Lv);if(I&&(typeof v=="number"||typeof v=="bigint")){const[$,O,U]=I;Pe(v,{signed:O==="int",size:Number.parseInt(U,10)/8})}if(x==="address"&&typeof v=="string"&&!gn(v))throw new $n({address:v});const C=x.match($6);if(C){const[$,O]=C;if(O&&Qt(v)!==Number.parseInt(O,10))throw new M6({expectedSize:Number.parseInt(O,10),givenSize:Qt(v)})}const B=u[x];B&&(J6(x),c(B,v))}};if(u.EIP712Domain&&t){if(typeof t!="object")throw new Y6({domain:t});c(u.EIP712Domain,t)}if(a!=="EIP712Domain")if(u[a])c(u[a],i);else throw new V6({primaryType:a,types:u})}function qv({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 J6(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new X6({type:e})}function W6(e){const{domain:t={},message:i,primaryType:a}=e,u={EIP712Domain:qv({domain:t}),...e.types};zv({domain:t,message:i,primaryType:a,types:u});const c=["0x1901"];return t&&c.push(e8({domain:t,types:u})),a!=="EIP712Domain"&&c.push(Qv({data:i,primaryType:a,types:u})),cr(pi(c))}function e8({domain:e,types:t}){return Qv({data:e,primaryType:"EIP712Domain",types:t})}function Qv({data:e,primaryType:t,types:i}){const a=Hv({data:e,primaryType:t,types:i});return cr(a)}function Hv({data:e,primaryType:t,types:i}){const a=[{type:"bytes32"}],u=[t8({primaryType:t,types:i})];for(const c of i[t]){const[f,d]=Gv({types:i,name:c.name,type:c.type,value:e[c.name]});a.push(f),u.push(d)}return ad(a,u)}function t8({primaryType:e,types:t}){const i=di(n8({primaryType:e,types:t}));return cr(i)}function n8({primaryType:e,types:t}){let i="";const a=kv({primaryType:e,types:t});a.delete(e);const u=[e,...Array.from(a).sort()];for(const c of u)i+=`${c}(${t[c].map(({name:f,type:d})=>`${d} ${f}`).join(",")})`;return i}function kv({primaryType:e,types:t},i=new Set){const a=e.match(/^\w*/u),u=a==null?void 0:a[0];if(i.has(u)||t[u]===void 0)return i;i.add(u);for(const c of t[u])kv({primaryType:c.type,types:t},i);return i}function Gv({types:e,name:t,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},cr(Hv({data:a,primaryType:i,types:e}))];if(i==="bytes")return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},cr(a)];if(i==="string")return[{type:"bytes32"},cr(di(a))];if(i.lastIndexOf("]")===i.length-1){const u=i.slice(0,i.lastIndexOf("[")),c=a.map(f=>Gv({name:t,type:u,types:e,value:f}));return[{type:"bytes32"},cr(ad(c.map(([f])=>f),c.map(([,f])=>f)))]}return[{type:i},a]}async function r8(e){const{privateKey:t,...i}=e;return await Kc({hash:W6(i),privateKey:t,to:"hex"})}function li(e,t={}){const{nonceManager:i}=t,a=di(kc.getPublicKey(e.slice(2),!1)),u=vv(a);return{...qB({address:u,nonceManager:i,async sign({hash:f}){return Kc({hash:f,privateKey:e,to:"hex"})},async signAuthorization(f){return VB({...f,privateKey:e})},async signMessage({message:f}){return WB({message:f,privateKey:e})},async signTransaction(f,{serializer:d}={}){return S6({privateKey:e,transaction:f,serializer:d})},async signTypedData(f){return r8({...f,privateKey:e})}}),publicKey:a,source:"privateKey"}}function Vn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function i8(e,t){const i=e.exec(t);return i==null?void 0:i.groups}const g2=/^tuple(?<array>(\[(\d*)\])*)$/;function yg(e){let t=e.type;if(g2.test(e.type)&&"components"in e){t="(";const i=e.components.length;for(let u=0;u<i;u++){const c=e.components[u];t+=yg(c),u<i-1&&(t+=", ")}const a=i8(g2,e.type);return t+=`)${(a==null?void 0:a.array)??""}`,yg({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Ju(e){let t="";const i=e.length;for(let a=0;a<i;a++){const u=e[a];t+=yg(u),a!==i-1&&(t+=", ")}return t}function o8(e){var t;return e.type==="function"?`function ${e.name}(${Ju(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Ju(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Ju(e.inputs)})`:e.type==="error"?`error ${e.name}(${Ju(e.inputs)})`:e.type==="constructor"?`constructor(${Ju(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function Fn(e,t,i){const a=e[t.name];if(typeof a=="function")return a;const u=e[i];return typeof u=="function"?u:c=>t(e,c)}const a8=e=>cr(zg(e));function s8(e){return a8(e)}function u8(e){let t=!0,i="",a=0,u="",c=!1;for(let f=0;f<e.length;f++){const d=e[f];if(["(",")",","].includes(d)&&(t=!0),d==="("&&a++,d===")"&&a--,!!t){if(a===0){if(d===" "&&["event","function",""].includes(u))u="";else if(u+=d,d===")"){c=!0;break}continue}if(d===" "){e[f-1]!==","&&i!==","&&i!==",("&&(i="",t=!1);continue}u+=d,i+=d}}if(!c)throw new De("Unable to normalize signature.");return u}const c8=e=>{const t=typeof e=="string"?e:o8(e);return u8(t)};function Kv(e){return s8(c8(e))}const l8=Kv,em=e=>pc(Kv(e),0,4);function Yv(e){const{abi:t,args:i=[],name:a}=e,u=Ki(a,{strict:!1}),c=t.filter(d=>u?d.type==="function"?em(d)===a:d.type==="event"?l8(d)===a:!1:"name"in d&&d.name===a);if(c.length===0)return;if(c.length===1)return c[0];let f;for(const d of c){if(!("inputs"in d))continue;if(!i||i.length===0){if(!d.inputs||d.inputs.length===0)return d;continue}if(!d.inputs||d.inputs.length===0||d.inputs.length!==i.length)continue;if(i.every((h,x)=>{const v="inputs"in d&&d.inputs[x];return v?gg(h,v):!1})){if(f&&"inputs"in f&&f.inputs){const h=Vv(d.inputs,f.inputs,i);if(h)throw new D6({abiItem:d,type:h[0]},{abiItem:f,type:h[1]})}f=d}}return f||c[0]}function gg(e,t){const i=typeof e,a=t.type;switch(a){case"address":return gn(e,{strict:!1});case"bool":return i==="boolean";case"function":return i==="string";case"string":return i==="string";default:return a==="tuple"&&"components"in t?Object.values(t.components).every((u,c)=>gg(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=>gg(u,{...t,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Vv(e,t,i){for(const a in e){const u=e[a],c=t[a];if(u.type==="tuple"&&c.type==="tuple"&&"components"in u&&"components"in c)return Vv(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")?gn(i[a],{strict:!1}):f.includes("address")&&f.includes("bytes")?gn(i[a],{strict:!1}):!1)return f}}const m2="/docs/contract/encodeFunctionData";function f8(e){const{abi:t,args:i,functionName:a}=e;let u=t[0];if(a){const c=Yv({abi:t,args:i,name:a});if(!c)throw new y2(a,{docsPath:m2});u=c}if(u.type!=="function")throw new y2(void 0,{docsPath:m2});return{abi:[u],functionName:em(Rs(u))}}function Xv(e){const{args:t}=e,{abi:i,functionName:a}=(()=>{var d;return e.abi.length===1&&((d=e.functionName)!=null&&d.startsWith("0x"))?e:f8(e)})(),u=i[0],c=a,f="inputs"in u&&u.inputs?ad(u.inputs,t??[]):void 0;return Uo([c,f??"0x"])}const d8={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."},h8={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},p8={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function y8(e,t={}){typeof t.size<"u"&&gi(e,{size:t.size});const i=Mn(e,t);return hi(i,t)}function g8(e,t={}){let i=e;if(typeof t.size<"u"&&(gi(i,{size:t.size}),i=Ro(i)),i.length>1||i[0]>1)throw new wB(i);return!!i[0]}function Gi(e,t={}){typeof t.size<"u"&&gi(e,{size:t.size});const i=Mn(e,t);return Yi(i,t)}function m8(e,t={}){let i=e;return typeof t.size<"u"&&(gi(i,{size:t.size}),i=Ro(i,{dir:"right"})),new TextDecoder().decode(i)}function A8(e,t){const i=typeof t=="string"?Kr(t):t,a=Qg(i);if(Qt(i)===0&&e.length>0)throw new Xg;if(Qt(t)&&Qt(t)<32)throw new O6({data:typeof t=="string"?t:Mn(t),params:e,size:Qt(t)});let u=0;const c=[];for(let f=0;f<e.length;++f){const d=e[f];a.setPosition(u);const[m,h]=Is(a,d,{staticPosition:0});u+=h,c.push(m)}return c}function Is(e,t,{staticPosition:i}){const a=Wg(t.type);if(a){const[u,c]=a;return x8(e,{...t,type:c},{length:u,staticPosition:i})}if(t.type==="tuple")return I8(e,t,{staticPosition:i});if(t.type==="address")return b8(e);if(t.type==="bool")return w8(e);if(t.type.startsWith("bytes"))return E8(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return v8(e,t);if(t.type==="string")return F8(e,{staticPosition:i});throw new N6(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const A2=32,mg=32;function b8(e){const t=e.readBytes(32);return[Gc(Mn(_v(t,-20))),32]}function x8(e,t,{length:i,staticPosition:a}){if(!i){const f=Gi(e.readBytes(mg)),d=a+f,m=d+A2;e.setPosition(d);const h=Gi(e.readBytes(A2)),x=yc(t);let v=0;const I=[];for(let C=0;C<h;++C){e.setPosition(m+(x?C*32:v));const[B,$]=Is(e,t,{staticPosition:m});v+=$,I.push(B)}return e.setPosition(a+32),[I,32]}if(yc(t)){const f=Gi(e.readBytes(mg)),d=a+f,m=[];for(let h=0;h<i;++h){e.setPosition(d+h*32);const[x]=Is(e,t,{staticPosition:d});m.push(x)}return e.setPosition(a+32),[m,32]}let u=0;const c=[];for(let f=0;f<i;++f){const[d,m]=Is(e,t,{staticPosition:a+u});u+=m,c.push(d)}return[c,u]}function w8(e){return[g8(e.readBytes(32),{size:32}),32]}function E8(e,t,{staticPosition:i}){const[a,u]=t.type.split("bytes");if(!u){const f=Gi(e.readBytes(32));e.setPosition(i+f);const d=Gi(e.readBytes(32));if(d===0)return e.setPosition(i+32),["0x",32];const m=e.readBytes(d);return e.setPosition(i+32),[Mn(m),32]}return[Mn(e.readBytes(Number.parseInt(u,10),32)),32]}function v8(e,t){const i=t.type.startsWith("int"),a=Number.parseInt(t.type.split("int")[1]||"256",10),u=e.readBytes(32);return[a>48?y8(u,{signed:i}):Gi(u,{signed:i}),32]}function I8(e,t,{staticPosition:i}){const a=t.components.length===0||t.components.some(({name:f})=>!f),u=a?[]:{};let c=0;if(yc(t)){const f=Gi(e.readBytes(mg)),d=i+f;for(let m=0;m<t.components.length;++m){const h=t.components[m];e.setPosition(d+c);const[x,v]=Is(e,h,{staticPosition:d});c+=v,u[a?m:h==null?void 0:h.name]=x}return e.setPosition(i+32),[u,32]}for(let f=0;f<t.components.length;++f){const d=t.components[f],[m,h]=Is(e,d,{staticPosition:i});u[a?f:d==null?void 0:d.name]=m,c+=h}return[u,c]}function F8(e,{staticPosition:t}){const i=Gi(e.readBytes(32)),a=t+i;e.setPosition(a);const u=Gi(e.readBytes(32));if(u===0)return e.setPosition(t+32),["",32];const c=e.readBytes(u,32),f=m8(Ro(c));return e.setPosition(t+32),[f,32]}function yc(e){var a;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(a=e.components)==null?void 0:a.some(yc);const i=Wg(e.type);return!!(i&&yc({...e,type:i[1]}))}function S8(e){const{abi:t,data:i}=e,a=pc(i,0,4);if(a==="0x")throw new Xg;const c=[...t||[],h8,p8].find(f=>f.type==="error"&&a===em(Rs(f)));if(!c)throw new $v(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?A8(c.inputs,pc(i,4)):void 0,errorName:c.name}}function Zv({abiItem:e,args:t,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 t[c]=="object"?Gr(t[c]):t[c]}`).join(", ")})`}class C8 extends De{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class B8 extends De{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const O8=e=>e,tm=e=>e;class T8 extends De{constructor(t,{abi:i,args:a,contractAddress:u,docsPath:c,functionName:f,sender:d}){const m=Yv({abi:i,args:a,name:f}),h=m?Zv({abiItem:m,args:a,includeFunctionName:!1,includeName:!1}):void 0,x=m?Rs(m,{includeName:!0}):void 0,v=nd({address:u&&O8(u),function:x,args:h&&h!=="()"&&`${[...Array((f==null?void 0:f.length)??0).keys()].map(()=>" ").join("")}${h}`,sender:d});super(t.shortMessage||`An unknown error occurred while executing the contract function "${f}".`,{cause:t,docsPath:c,metaMessages:[...t.metaMessages?[...t.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=t,this.contractAddress=u,this.functionName=f,this.sender=d}}class R8 extends De{constructor({abi:t,data:i,functionName:a,message:u}){let c,f,d,m;if(i&&i!=="0x")try{f=S8({abi:t,data:i});const{abiItem:x,errorName:v,args:I}=f;if(v==="Error")m=I[0];else if(v==="Panic"){const[C]=I;m=d8[C]}else{const C=x?Rs(x,{includeName:!0}):void 0,B=x&&I?Zv({abiItem:x,args:I,includeFunctionName:!1,includeName:!1}):void 0;d=[C?`Error: ${C}`:"",B&&B!=="()"?` ${[...Array((v==null?void 0:v.length)??0).keys()].map(()=>" ").join("")}${B}`:""]}}catch(x){c=x}else u&&(m=u);let h;c instanceof $v&&(h=c.signature,d=[`Unable to decode signature "${h}" 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=${h}.`]),super(m&&m!=="execution reverted"||h?[`The contract function "${a}" reverted with the following ${h?"signature":"reason"}:`,m||h].join(`
|
|
58
|
-
`):`The contract function "${a}" reverted.`,{cause:c,metaMessages:d,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=h}}class U8 extends De{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class D8 extends De{constructor({data:t,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=t}}class ac extends De{constructor({body:t,cause:i,details:a,headers:u,status:c,url:f}){super("HTTP request failed.",{cause:i,details:a,metaMessages:[c&&`Status: ${c}`,`URL: ${tm(f)}`,t&&`Request body: ${Gr(t)}`].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=t,this.headers=u,this.status=c,this.url=f}}class nm extends De{constructor({body:t,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${tm(a)}`,`Request body: ${Gr(t)}`],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 b2 extends De{constructor({body:t,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${tm(i)}`,`Request body: ${Gr(t)}`],name:"TimeoutError"})}}const M8=-1;class Wn extends De{constructor(t,{code:i,docsPath:a,metaMessages:u,name:c,shortMessage:f}){super(f,{cause:t,docsPath:a,metaMessages:u||(t==null?void 0:t.metaMessages),name:c||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=c||t.name,this.code=t instanceof nm?t.code:i??M8}}class gr extends Wn{constructor(t,i){super(t,i),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}}class gc extends Wn{constructor(t){super(t,{code:gc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class mc extends Wn{constructor(t){super(t,{code:mc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ac extends Wn{constructor(t,{method:i}={}){super(t,{code:Ac.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(Ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class bc extends Wn{constructor(t){super(t,{code:bc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
59
|
-
`)})}}Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Aa extends Wn{constructor(t){super(t,{code:Aa.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Aa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class xc extends Wn{constructor(t){super(t,{code:xc.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
60
|
-
`)})}}Object.defineProperty(xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class wc extends Wn{constructor(t){super(t,{code:wc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Ec extends Wn{constructor(t){super(t,{code:Ec.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class vc extends Wn{constructor(t){super(t,{code:vc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class ha extends Wn{constructor(t,{method:i}={}){super(t,{code:ha.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(ha,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Us extends Wn{constructor(t){super(t,{code:Us.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Us,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Ic extends Wn{constructor(t){super(t,{code:Ic.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Fs extends gr{constructor(t){super(t,{code:Fs.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Fs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Fc extends gr{constructor(t){super(t,{code:Fc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Sc extends gr{constructor(t,{method:i}={}){super(t,{code:Sc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(Sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Cc extends gr{constructor(t){super(t,{code:Cc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Bc extends gr{constructor(t){super(t,{code:Bc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Oc extends gr{constructor(t){super(t,{code:Oc.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Ds extends gr{constructor(t){super(t,{code:Ds.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Ds,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Tc extends gr{constructor(t){super(t,{code:Tc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Rc extends gr{constructor(t){super(t,{code:Rc.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Uc extends gr{constructor(t){super(t,{code:Uc.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Dc extends gr{constructor(t){super(t,{code:Dc.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Mc extends gr{constructor(t){super(t,{code:Mc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Ms extends gr{constructor(t){super(t,{code:Ms.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Ms,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class j8 extends Wn{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const N8=3;function _8(e,{abi:t,address:i,args:a,docsPath:u,functionName:c,sender:f}){const d=e instanceof D8?e:e instanceof De?e.walk(B=>"data"in B)||e.walk():{},{code:m,data:h,details:x,message:v,shortMessage:I}=d,C=e instanceof Xg?new U8({functionName:c}):[N8,Aa.code].includes(m)&&(h||x||v||I)?new R8({abi:t,data:typeof h=="object"?h.data:h,functionName:c,message:d instanceof nm?x:I??v}):e;return new T8(C,{abi:t,args:a,contractAddress:i,docsPath:u,functionName:c,sender:f})}const P8="modulepreload",$8=function(e){return"/"+e},x2={},L8=function(t,i,a){let u=Promise.resolve();if(i&&i.length>0){let f=function(h){return Promise.all(h.map(x=>Promise.resolve(x).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));u=f(i.map(h=>{if(h=$8(h),h in x2)return;x2[h]=!0;const x=h.endsWith(".css"),v=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const I=document.createElement("link");if(I.rel=x?"stylesheet":P8,x||(I.as="script"),I.crossOrigin="",I.href=h,m&&I.setAttribute("nonce",m),document.head.appendChild(I),x)return new Promise((C,B)=>{I.addEventListener("load",C),I.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(f){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=f,window.dispatchEvent(d),!d.defaultPrevented)throw f}return u.then(f=>{for(const d of f||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};async function z8({hash:e,signature:t}){const i=Ki(e)?e:di(e),{secp256k1:a}=await L8(async()=>{const{secp256k1:f}=await Promise.resolve().then(()=>xB);return{secp256k1:f}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:x,v,yParity:I}=t,C=Number(I??v),B=w2(C);return new a.Signature(hi(h),hi(x)).addRecoveryBit(B)}const f=Ki(t)?t:di(t);if(Qt(f)!==65)throw new Error("invalid signature length");const d=Yi(`0x${f.slice(130)}`),m=w2(d);return a.Signature.fromCompact(f.substring(2,130)).addRecoveryBit(m)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function w2(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 q8({hash:e,signature:t}){return vv(await z8({hash:e,signature:t}))}async function Jv(e){const{authorization:t,signature:i}=e;return q8({hash:Sv(t),signature:i??t})}class Q8 extends De{constructor(t,{account:i,docsPath:a,chain:u,data:c,gas:f,gasPrice:d,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:x,to:v,value:I}){var B;const C=nd({from:i==null?void 0:i.address,to:v,value:typeof I<"u"&&`${Bv(I)} ${((B=u==null?void 0:u.nativeCurrency)==null?void 0:B.symbol)||"ETH"}`,data:c,gas:f,gasPrice:typeof d<"u"&&`${kr(d)} gwei`,maxFeePerGas:typeof m<"u"&&`${kr(m)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${kr(h)} gwei`,nonce:x});super(t.shortMessage,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",C].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function Wv(e,t){const i=(e.details||"").toLowerCase(),a=e instanceof De?e.walk(u=>(u==null?void 0:u.code)===xs.code):e;return a instanceof De?new xs({cause:e,message:a.details}):xs.nodeMessage.test(i)?new xs({cause:e,message:e.details}):ma.nodeMessage.test(i)?new ma({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):ag.nodeMessage.test(i)?new ag({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):sg.nodeMessage.test(i)?new sg({cause:e,nonce:t==null?void 0:t.nonce}):ug.nodeMessage.test(i)?new ug({cause:e,nonce:t==null?void 0:t.nonce}):cg.nodeMessage.test(i)?new cg({cause:e,nonce:t==null?void 0:t.nonce}):lg.nodeMessage.test(i)?new lg({cause:e}):fg.nodeMessage.test(i)?new fg({cause:e,gas:t==null?void 0:t.gas}):dg.nodeMessage.test(i)?new dg({cause:e,gas:t==null?void 0:t.gas}):hg.nodeMessage.test(i)?new hg({cause:e}):hc.nodeMessage.test(i)?new hc({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Kg({cause:e})}function H8(e,{docsPath:t,...i}){const a=(()=>{const u=Wv(e,i);return u instanceof Kg?e:u})();return new Q8(a,{docsPath:t,...i})}function eI(e,{format:t}){if(!t)return{};const i={};function a(c){const f=Object.keys(c);for(const d of f)d in e&&(i[d]=e[d]),c[d]&&typeof c[d]=="object"&&!Array.isArray(c[d])&&a(c[d])}const u=t(e||{});return a(u),i}const k8={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function rm(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=G8(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(i=>Mn(i)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=Pe(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Pe(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Pe(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Pe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Pe(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Pe(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=k8[e.type]),typeof e.value<"u"&&(t.value=Pe(e.value)),t}function G8(e){return e.map(t=>({address:t.address,r:t.r?Pe(BigInt(t.r)):t.r,s:t.s?Pe(BigInt(t.s)):t.s,chainId:Pe(t.chainId),nonce:Pe(t.nonce),...typeof t.yParity<"u"?{yParity:Pe(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:Pe(t.v)}:{}}))}function E2(e){if(!(!e||e.length===0))return e.reduce((t,{slot:i,value:a})=>{if(i.length!==66)throw new s2({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new s2({size:a.length,targetSize:66,type:"hex"});return t[i]=a,t},{})}function K8(e){const{balance:t,nonce:i,state:a,stateDiff:u,code:c}=e,f={};if(c!==void 0&&(f.code=c),t!==void 0&&(f.balance=Pe(t)),i!==void 0&&(f.nonce=Pe(i)),a!==void 0&&(f.state=E2(a)),u!==void 0){if(f.state)throw new B8;f.stateDiff=E2(u)}return f}function Y8(e){if(!e)return;const t={};for(const{address:i,...a}of e){if(!gn(i,{strict:!1}))throw new $n({address:i});if(t[i])throw new C8({address:i});t[i]=K8(a)}return t}function sd(e){const{account:t,gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u,to:c}=e,f=t?Vn(t):void 0;if(f&&!gn(f.address))throw new $n({address:f.address});if(c&&!gn(c))throw new $n({address:c});if(typeof i<"u"&&(typeof a<"u"||typeof u<"u"))throw new n6;if(a&&a>rd)throw new ma({maxFeePerGas:a});if(u&&a&&u>a)throw new hc({maxFeePerGas:a,maxPriorityFeePerGas:u})}class V8 extends De{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class im extends De{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class X8 extends De{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${kr(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Z8 extends De{constructor({blockHash:t,blockNumber:i}){let a="Block";t&&(a=`Block at hash "${t}"`),i&&(a=`Block at number "${i}"`),super(`${a} could not be found.`,{name:"BlockNotFoundError"})}}const J8={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function W8(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Yi(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?Yi(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?J8[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&&(t.authorizationList=e4(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}function e4(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function t4(e){const t=(e.transactions??[]).map(i=>typeof i=="string"?i:W8(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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Qf(e,{blockHash:t,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:u}={}){var h,x,v;const c=u??!1,f=i!==void 0?Pe(i):void 0;let d=null;if(t?d=await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):d=await e.request({method:"eth_getBlockByNumber",params:[f||a,c]},{dedupe:!!f}),!d)throw new Z8({blockHash:t,blockNumber:i});return(((v=(x=(h=e.chain)==null?void 0:h.formatters)==null?void 0:x.block)==null?void 0:v.format)||t4)(d)}async function tI(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function n4(e,t){var c,f;const{block:i,chain:a=e.chain,request:u}=t||{};try{const d=((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 d=="function"){const h=i||await Fn(e,Qf,"getBlock")({}),x=await d({block:h,client:e,request:u});if(x===null)throw new Error;return x}if(typeof d<"u")return d;const m=await e.request({method:"eth_maxPriorityFeePerGas"});return hi(m)}catch{const[d,m]=await Promise.all([i?Promise.resolve(i):Fn(e,Qf,"getBlock")({}),Fn(e,tI,"getGasPrice")({})]);if(typeof d.baseFeePerGas!="bigint")throw new im;const h=m-d.baseFeePerGas;return h<0n?0n:h}}async function v2(e,t){var I,C;const{block:i,chain:a=e.chain,request:u,type:c="eip1559"}=t||{},f=await(async()=>{var B,$;return typeof((B=a==null?void 0:a.fees)==null?void 0:B.baseFeeMultiplier)=="function"?a.fees.baseFeeMultiplier({block:i,client:e,request:u}):(($=a==null?void 0:a.fees)==null?void 0:$.baseFeeMultiplier)??1.2})();if(f<1)throw new V8;const m=10**(((I=f.toString().split(".")[1])==null?void 0:I.length)??0),h=B=>B*BigInt(Math.ceil(f*m))/BigInt(m),x=i||await Fn(e,Qf,"getBlock")({});if(typeof((C=a==null?void 0:a.fees)==null?void 0:C.estimateFeesPerGas)=="function"){const B=await a.fees.estimateFeesPerGas({block:i,client:e,multiply:h,request:u,type:c});if(B!==null)return B}if(c==="eip1559"){if(typeof x.baseFeePerGas!="bigint")throw new im;const B=typeof(u==null?void 0:u.maxPriorityFeePerGas)=="bigint"?u.maxPriorityFeePerGas:await n4(e,{block:x,chain:a,request:u}),$=h(x.baseFeePerGas);return{maxFeePerGas:(u==null?void 0:u.maxFeePerGas)??$+B,maxPriorityFeePerGas:B}}return{gasPrice:(u==null?void 0:u.gasPrice)??h(await Fn(e,tI,"getGasPrice")({}))}}async function Vc(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Yi(t)}const nI=["blobVersionedHashes","chainId","fees","gas","nonce","type"],I2=new Map;async function om(e,t){const{account:i=e.account,blobs:a,chain:u,gas:c,kzg:f,nonce:d,nonceManager:m,parameters:h=nI,type:x}=t,v=i&&Vn(i),I={...t,...v?{from:v==null?void 0:v.address}:{}};let C;async function B(){return C||(C=await Fn(e,Qf,"getBlock")({blockTag:"latest"}),C)}let $;async function O(){return $||(u?u.id:typeof t.chainId<"u"?t.chainId:($=await Fn(e,Vc,"getChainId")({}),$))}if(h.includes("nonce")&&typeof d>"u"&&v)if(m){const U=await O();I.nonce=await m.consume({address:v.address,chainId:U,client:e})}else I.nonce=await Fn(e,mv,"getTransactionCount")({address:v.address,blockTag:"pending"});if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&a&&f){const U=Hg({blobs:a,kzg:f});if(h.includes("blobVersionedHashes")){const R=Ov({commitments:U,to:"hex"});I.blobVersionedHashes=R}if(h.includes("sidecars")){const R=kg({blobs:a,commitments:U,kzg:f}),T=Mv({blobs:a,commitments:U,proofs:R,to:"hex"});I.sidecars=T}}if(h.includes("chainId")&&(I.chainId=await O()),(h.includes("fees")||h.includes("type"))&&typeof x>"u")try{I.type=Pv(I)}catch{let U=I2.get(e.uid);if(typeof U>"u"){const R=await B();U=typeof(R==null?void 0:R.baseFeePerGas)=="bigint",I2.set(e.uid,U)}I.type=U?"eip1559":"legacy"}if(h.includes("fees"))if(I.type!=="legacy"&&I.type!=="eip2930"){if(typeof I.maxFeePerGas>"u"||typeof I.maxPriorityFeePerGas>"u"){const U=await B(),{maxFeePerGas:R,maxPriorityFeePerGas:T}=await v2(e,{block:U,chain:u,request:I});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<T)throw new X8({maxPriorityFeePerGas:T});I.maxPriorityFeePerGas=T,I.maxFeePerGas=R}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new im;if(typeof t.gasPrice>"u"){const U=await B(),{gasPrice:R}=await v2(e,{block:U,chain:u,request:I,type:"legacy"});I.gasPrice=R}}return h.includes("gas")&&typeof c>"u"&&(I.gas=await Fn(e,r4,"estimateGas")({...I,account:v&&{address:v.address,type:"json-rpc"}})),sd(I),delete I.parameters,I}async function r4(e,t){var u,c,f;const{account:i=e.account}=t,a=i?Vn(i):void 0;try{const{accessList:d,authorizationList:m,blobs:h,blobVersionedHashes:x,blockNumber:v,blockTag:I,data:C,gas:B,gasPrice:$,maxFeePerBlobGas:O,maxFeePerGas:U,maxPriorityFeePerGas:R,nonce:T,value:L,stateOverride:k,...Y}=await om(e,{...t,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),te=(typeof v=="bigint"?Pe(v):void 0)||I,F=Y8(k),_=await(async()=>{if(Y.to)return Y.to;if(m&&m.length>0)return await Jv({authorization:m[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`")})})();sd(t);const G=(f=(c=(u=e.chain)==null?void 0:u.formatters)==null?void 0:c.transactionRequest)==null?void 0:f.format,ee=(G||rm)({...eI(Y,{format:G}),from:a==null?void 0:a.address,accessList:d,authorizationList:m,blobs:h,blobVersionedHashes:x,data:C,gas:B,gasPrice:$,maxFeePerBlobGas:O,maxFeePerGas:U,maxPriorityFeePerGas:R,nonce:T,to:_,value:L});return BigInt(await e.request({method:"eth_estimateGas",params:F?[ee,te??e.experimental_blockTag??"latest",F]:te?[ee,te]:[ee]}))}catch(d){throw H8(d,{...t,account:a,chain:e.chain})}}function i4(e,t){if(!gn(e,{strict:!1}))throw new $n({address:e});if(!gn(t,{strict:!1}))throw new $n({address:t});return e.toLowerCase()===t.toLowerCase()}const fp="/docs/contract/encodeDeployData";function o4(e){const{abi:t,args:i,bytecode:a}=e;if(!i||i.length===0)return a;const u=t.find(f=>"type"in f&&f.type==="constructor");if(!u)throw new B6({docsPath:fp});if(!("inputs"in u))throw new p2({docsPath:fp});if(!u.inputs||u.inputs.length===0)throw new p2({docsPath:fp});const c=ad(u.inputs,i);return Uo([a,c])}function rI(){let e=()=>{},t=()=>{};return{promise:new Promise((a,u)=>{e=a,t=u}),resolve:e,reject:t}}const dp=new Map;function a4({fn:e,id:t,shouldSplitBatch:i,wait:a=0,sort:u}){const c=async()=>{const x=m();f();const v=x.map(({args:I})=>I);v.length!==0&&e(v).then(I=>{u&&Array.isArray(I)&&I.sort(u);for(let C=0;C<x.length;C++){const{resolve:B}=x[C];B==null||B([I[C],I])}}).catch(I=>{for(let C=0;C<x.length;C++){const{reject:B}=x[C];B==null||B(I)}})},f=()=>dp.delete(t),d=()=>m().map(({args:x})=>x),m=()=>dp.get(t)||[],h=x=>dp.set(t,[...m(),x]);return{flush:f,async schedule(x){const{promise:v,resolve:I,reject:C}=rI();return(i==null?void 0:i([...d(),x]))&&c(),m().length>0?(h({args:x,resolve:I,reject:C}),v):(h({args:x,resolve:I,reject:C}),setTimeout(c,a),v)}}}const hp=new Map,F2=new Map;let s4=0;function u4(e,t,i){const a=++s4,u=()=>hp.get(e)||[],c=()=>{const x=u();hp.set(e,x.filter(v=>v.id!==a))},f=()=>{const x=u();if(!x.some(I=>I.id===a))return;const v=F2.get(e);if(x.length===1&&v){const I=v();I instanceof Promise&&I.catch(()=>{})}c()},d=u();if(hp.set(e,[...d,{id:a,fns:t}]),d&&d.length>0)return f;const m={};for(const x in t)m[x]=((...v)=>{var C,B;const I=u();if(I.length!==0)for(const $ of I)(B=(C=$.fns)[x])==null||B.call(C,...v)});const h=i(m);return typeof h=="function"&&F2.set(e,h),f}async function Ag(e){return new Promise(t=>setTimeout(t,e))}function c4(e,{emitOnBegin:t,initialWaitTime:i,interval:a}){let u=!0;const c=()=>u=!1;return(async()=>{let d;d=await e({unpoll:c});const m=await(i==null?void 0:i(d))??a;await Ag(m);const h=async()=>{u&&(await e({unpoll:c}),await Ag(a),h())};h()})(),c}class wa extends De{constructor({docsPath:t}={}){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(`
|
|
61
|
-
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class jf extends De{constructor({docsPath:t,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:t,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function iI({chain:e,currentChainId:t}){if(!e)throw new y6;if(t!==e.id)throw new p6({chain:e,currentChainId:t})}function oI(e,{docsPath:t,...i}){const a=(()=>{const u=Wv(e,i);return u instanceof Kg?e:u})();return new a6(a,{docsPath:t,...i})}async function aI(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const pp=new td(128);async function ud(e,t){var R,T,L,k;const{account:i=e.account,chain:a=e.chain,accessList:u,authorizationList:c,blobs:f,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:x,maxFeePerGas:v,maxPriorityFeePerGas:I,nonce:C,type:B,value:$,...O}=t;if(typeof i>"u")throw new wa({docsPath:"/docs/actions/wallet/sendTransaction"});const U=i?Vn(i):null;try{sd(t);const Y=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await Jv({authorization:c[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`.")})})();if((U==null?void 0:U.type)==="json-rpc"||U===null){let oe;a!==null&&(oe=await Fn(e,Vc,"getChainId")({}),iI({currentChainId:oe,chain:a}));const te=(L=(T=(R=e.chain)==null?void 0:R.formatters)==null?void 0:T.transactionRequest)==null?void 0:L.format,_=(te||rm)({...eI(O,{format:te}),accessList:u,authorizationList:c,blobs:f,chainId:oe,data:d,from:U==null?void 0:U.address,gas:m,gasPrice:h,maxFeePerBlobGas:x,maxFeePerGas:v,maxPriorityFeePerGas:I,nonce:C,to:Y,type:B,value:$}),G=pp.get(e.uid),H=G?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:H,params:[_]},{retryCount:0})}catch(ee){if(G===!1)throw ee;const fe=ee;if(fe.name==="InvalidInputRpcError"||fe.name==="InvalidParamsRpcError"||fe.name==="MethodNotFoundRpcError"||fe.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[_]},{retryCount:0}).then(he=>(pp.set(e.uid,!0),he)).catch(he=>{const N=he;throw N.name==="MethodNotFoundRpcError"||N.name==="MethodNotSupportedRpcError"?(pp.set(e.uid,!1),fe):N});throw fe}}if((U==null?void 0:U.type)==="local"){const oe=await Fn(e,om,"prepareTransactionRequest")({account:U,accessList:u,authorizationList:c,blobs:f,chain:a,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:x,maxFeePerGas:v,maxPriorityFeePerGas:I,nonce:C,nonceManager:U.nonceManager,parameters:[...nI,"sidecars"],type:B,value:$,...O,to:Y}),te=(k=a==null?void 0:a.serializers)==null?void 0:k.transaction,F=await U.signTransaction(oe,{serializer:te});return await Fn(e,aI,"sendRawTransaction")({serializedTransaction:F})}throw(U==null?void 0:U.type)==="smart"?new jf({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new jf({docsPath:"/docs/actions/wallet/sendTransaction",type:U==null?void 0:U.type})}catch(Y){throw Y instanceof jf?Y:oI(Y,{...t,account:U,chain:t.chain||void 0})}}async function l4(e,t){const{abi:i,account:a=e.account,address:u,args:c,dataSuffix:f,functionName:d,...m}=t;if(typeof a>"u")throw new wa({docsPath:"/docs/contract/writeContract"});const h=a?Vn(a):null,x=Xv({abi:i,args:c,functionName:d});try{return await Fn(e,ud,"sendTransaction")({data:`${x}${f?f.replace("0x",""):""}`,to:u,account:h,...m})}catch(v){throw _8(v,{abi:i,address:u,args:c,docsPath:"/docs/contract/writeContract",functionName:d,sender:h==null?void 0:h.address})}}class f4 extends De{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function sI(e,{delay:t=100,retryCount:i=2,shouldRetry:a=()=>!0}={}){return new Promise((u,c)=>{const f=async({count:d=0}={})=>{const m=async({error:h})=>{const x=typeof t=="function"?t({count:d,error:h}):t;x&&await Ag(x),f({count:d+1})};try{const h=await e();u(h)}catch(h){if(d<i&&await a({count:d,error:h}))return m({error:h});c(h)}};f()})}const d4={"0x0":"reverted","0x1":"success"},uI="0x5792579257925792579257925792579257925792579257925792579257925792",cI=Pe(0,{size:32});async function h4(e,t){const{account:i=e.account,capabilities:a,chain:u=e.chain,experimental_fallback:c,experimental_fallbackDelay:f=32,forceAtomic:d=!1,id:m,version:h="2.0.0"}=t,x=i?Vn(i):null,v=t.calls.map(I=>{const C=I,B=C.abi?Xv({abi:C.abi,functionName:C.functionName,args:C.args}):C.data;return{data:C.dataSuffix&&B?pi([B,C.dataSuffix]):B,to:C.to,value:C.value?Pe(C.value):void 0}});try{const I=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:d,calls:v,capabilities:a,chainId:Pe(u.id),from:x==null?void 0:x.address,id:m,version:h}]},{retryCount:0});return typeof I=="string"?{id:I}:I}catch(I){const C=I;if(c&&(C.name==="MethodNotFoundRpcError"||C.name==="MethodNotSupportedRpcError"||C.name==="UnknownRpcError"||C.details.toLowerCase().includes("does not exist / is not available")||C.details.toLowerCase().includes("missing or invalid. request()")||C.details.toLowerCase().includes("did not match any variant of untagged enum")||C.details.toLowerCase().includes("account upgraded to unsupported contract")||C.details.toLowerCase().includes("eip-7702 not supported")||C.details.toLowerCase().includes("unsupported wc_ method")||C.details.toLowerCase().includes("feature toggled misconfigured"))){if(a&&Object.values(a).some(R=>!R.optional)){const R="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new Ds(new De(R,{details:R}))}if(d&&v.length>1){const U="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Ms(new De(U,{details:U}))}const B=[];for(const U of v){const R=ud(e,{account:x,chain:u,data:U.data,to:U.to,value:U.value?hi(U.value):void 0});B.push(R),f>0&&await new Promise(T=>setTimeout(T,f))}const $=await Promise.allSettled(B);if($.every(U=>U.status==="rejected"))throw $[0].reason;const O=$.map(U=>U.status==="fulfilled"?U.value:cI);return{id:pi([...O,Pe(u.id,{size:32}),uI])}}throw oI(I,{...t,account:x,chain:t.chain})}}async function lI(e,t){async function i(x){if(x.endsWith(uI.slice(2))){const I=Ro(pg(x,-64,-32)),C=pg(x,0,-64).slice(2).match(/.{1,64}/g),B=await Promise.all(C.map(O=>cI.slice(2)!==O?e.request({method:"eth_getTransactionReceipt",params:[`0x${O}`]},{dedupe:!0}):void 0)),$=B.some(O=>O===null)?100:B.every(O=>(O==null?void 0:O.status)==="0x1")?200:B.every(O=>(O==null?void 0:O.status)==="0x0")?500:600;return{atomic:!1,chainId:Yi(I),receipts:B.filter(Boolean),status:$,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[x]})}const{atomic:a=!1,chainId:u,receipts:c,version:f="2.0.0",...d}=await i(t.id),[m,h]=(()=>{const x=d.status;return x>=100&&x<200?["pending",x]:x>=200&&x<300?["success",x]:x>=300&&x<700?["failure",x]:x==="CONFIRMED"?["success",200]:x==="PENDING"?["pending",100]:[void 0,x]})();return{...d,atomic:a,chainId:u?Yi(u):void 0,receipts:(c==null?void 0:c.map(x=>({...x,blockNumber:hi(x.blockNumber),gasUsed:hi(x.gasUsed),status:d4[x.status]})))??[],statusCode:h,status:m,version:f}}async function p4(e,t){const{id:i,pollingInterval:a=e.pollingInterval,status:u=({statusCode:$})=>$===200||$>=300,retryCount:c=4,retryDelay:f=({count:$})=>~~(1<<$)*200,timeout:d=6e4,throwOnFailure:m=!1}=t,h=Gr(["waitForCallsStatus",e.uid,i]),{promise:x,resolve:v,reject:I}=rI();let C;const B=u4(h,{resolve:v,reject:I},$=>{const O=c4(async()=>{const U=R=>{clearTimeout(C),O(),R(),B()};try{const R=await sI(async()=>{const T=await Fn(e,lI,"getCallsStatus")({id:i});if(m&&T.status==="failure")throw new f4(T);return T},{retryCount:c,delay:f});if(!u(R))return;U(()=>$.resolve(R))}catch(R){U(()=>$.reject(R))}},{interval:a,emitOnBegin:!0});return O});return C=d?setTimeout(()=>{B(),clearTimeout(C),I(new y4({id:i}))},d):void 0,await x}class y4 extends De{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const bg=256;let Ff=bg,Sf;function fI(e=11){if(!Sf||Ff+e>bg*2){Sf="",Ff=0;for(let t=0;t<bg;t++)Sf+=(256+Math.random()*256|0).toString(16).substring(1)}return Sf.substring(Ff,Ff+++e)}function g4(e){const{batch:t,chain:i,ccipRead:a,key:u="base",name:c="Base Client",type:f="base"}=e,d=e.experimental_blockTag??(typeof(i==null?void 0:i.experimental_preconfirmationTime)=="number"?"pending":void 0),m=(i==null?void 0:i.blockTime)??12e3,h=Math.min(Math.max(Math.floor(m/2),500),4e3),x=e.pollingInterval??h,v=e.cacheTime??x,I=e.account?Vn(e.account):void 0,{config:C,request:B,value:$}=e.transport({chain:i,pollingInterval:x}),O={...C,...$},U={account:I,batch:t,cacheTime:v,ccipRead:a,chain:i,key:u,name:c,pollingInterval:x,request:B,transport:O,type:f,uid:fI(),...d?{experimental_blockTag:d}:{}};function R(T){return L=>{const k=L(T);for(const oe in U)delete k[oe];const Y={...T,...k};return Object.assign(Y,{extend:R(Y)})}}return Object.assign(U,{extend:R(U)})}const Cf=new td(8192);function m4(e,{enabled:t=!0,id:i}){if(!t||!i)return e();if(Cf.get(i))return Cf.get(i);const a=e().finally(()=>Cf.delete(i));return Cf.set(i,a),a}function A4(e,t={}){return async(i,a={})=>{var v;const{dedupe:u=!1,methods:c,retryDelay:f=150,retryCount:d=3,uid:m}={...t,...a},{method:h}=i;if((v=c==null?void 0:c.exclude)!=null&&v.includes(h))throw new ha(new Error("method not supported"),{method:h});if(c!=null&&c.include&&!c.include.includes(h))throw new ha(new Error("method not supported"),{method:h});const x=u?Ts(`${m}.${Gr(i)}`):void 0;return m4(()=>sI(async()=>{try{return await e(i)}catch(I){const C=I;switch(C.code){case gc.code:throw new gc(C);case mc.code:throw new mc(C);case Ac.code:throw new Ac(C,{method:i.method});case bc.code:throw new bc(C);case Aa.code:throw new Aa(C);case xc.code:throw new xc(C);case wc.code:throw new wc(C);case Ec.code:throw new Ec(C);case vc.code:throw new vc(C);case ha.code:throw new ha(C,{method:i.method});case Us.code:throw new Us(C);case Ic.code:throw new Ic(C);case Fs.code:throw new Fs(C);case Fc.code:throw new Fc(C);case Sc.code:throw new Sc(C);case Cc.code:throw new Cc(C);case Bc.code:throw new Bc(C);case Oc.code:throw new Oc(C);case Ds.code:throw new Ds(C);case Tc.code:throw new Tc(C);case Rc.code:throw new Rc(C);case Uc.code:throw new Uc(C);case Dc.code:throw new Dc(C);case Mc.code:throw new Mc(C);case Ms.code:throw new Ms(C);case 5e3:throw new Fs(C);default:throw I instanceof De?I:new j8(C)}}},{delay:({count:I,error:C})=>{var B;if(C&&C instanceof ac){const $=(B=C==null?void 0:C.headers)==null?void 0:B.get("Retry-After");if($!=null&&$.match(/\d/))return Number.parseInt($,10)*1e3}return~~(1<<I)*f},retryCount:d,shouldRetry:({error:I})=>b4(I)}),{enabled:u,id:x})}}function b4(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Us.code||e.code===Aa.code:e instanceof ac&&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 x4(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function w4(e,{errorInstance:t=new Error("timed out"),timeout:i,signal:a}){return new Promise((u,c)=>{(async()=>{let f;try{const d=new AbortController;i>0&&(f=setTimeout(()=>{a&&d.abort()},i)),u(await e({signal:(d==null?void 0:d.signal)||null}))}catch(d){(d==null?void 0:d.name)==="AbortError"&&c(t),c(d)}finally{clearTimeout(f)}})()})}function E4(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const S2=E4();function v4(e,t={}){return{async request(i){var I;const{body:a,fetchFn:u=t.fetchFn??fetch,onRequest:c=t.onRequest,onResponse:f=t.onResponse,timeout:d=t.timeout??1e4}=i,m={...t.fetchOptions??{},...i.fetchOptions??{}},{headers:h,method:x,signal:v}=m;try{const C=await w4(async({signal:$})=>{const O={...m,body:Array.isArray(a)?Gr(a.map(L=>({jsonrpc:"2.0",id:L.id??S2.take(),...L}))):Gr({jsonrpc:"2.0",id:a.id??S2.take(),...a}),headers:{"Content-Type":"application/json",...h},method:x||"POST",signal:v||(d>0?$:null)},U=new Request(e,O),R=await(c==null?void 0:c(U,O))??{...O,url:e};return await u(R.url??e,R)},{errorInstance:new b2({body:a,url:e}),timeout:d,signal:!0});f&&await f(C);let B;if((I=C.headers.get("Content-Type"))!=null&&I.startsWith("application/json"))B=await C.json();else{B=await C.text();try{B=JSON.parse(B||"{}")}catch($){if(C.ok)throw $;B={error:B}}}if(!C.ok)throw new ac({body:a,details:Gr(B.error)||C.statusText,headers:C.headers,status:C.status,url:e});return B}catch(C){throw C instanceof ac||C instanceof b2?C:new ac({body:a,cause:C,url:e})}}}}async function I4(e,{chain:t}){const{id:i,name:a,nativeCurrency:u,rpcUrls:c,blockExplorers:f}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Pe(i),chainName:a,nativeCurrency:u,rpcUrls:c.default.http,blockExplorerUrls:f?Object.values(f).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function F4(e,t){const{abi:i,args:a,bytecode:u,...c}=t,f=o4({abi:i,args:a,bytecode:u});return ud(e,{...c,...c.authorizationList?{to:null}:{},data:f})}async function S4(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=>Gc(a))}async function C4(e,t={}){const{account:i=e.account,chainId:a}=t,u=i?Vn(i):void 0,c=a?[u==null?void 0:u.address,[Pe(a)]]:[u==null?void 0:u.address],f=await e.request({method:"wallet_getCapabilities",params:c}),d={};for(const[m,h]of Object.entries(f)){d[Number(m)]={};for(let[x,v]of Object.entries(h))x==="addSubAccount"&&(x="unstable_addSubAccount"),d[Number(m)][x]=v}return typeof a=="number"?d[a]:d}async function B4(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function dI(e,t){var m;const{account:i=e.account,chainId:a,nonce:u}=t;if(!i)throw new wa({docsPath:"/docs/eip7702/prepareAuthorization"});const c=Vn(i),f=(()=>{if(t.executor)return t.executor==="self"?t.executor:Vn(t.executor)})(),d={address:t.contractAddress??t.address,chainId:a,nonce:u};return typeof d.chainId>"u"&&(d.chainId=((m=e.chain)==null?void 0:m.id)??await Fn(e,Vc,"getChainId")({})),typeof d.nonce>"u"&&(d.nonce=await Fn(e,mv,"getTransactionCount")({address:c.address,blockTag:"pending"}),(f==="self"||f!=null&&f.address&&i4(f.address,c.address))&&(d.nonce+=1)),d}async function O4(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>LB(i))}async function T4(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function R4(e,t){const{id:i}=t;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function U4(e,t){const{account:i=e.account}=t;if(!i)throw new wa({docsPath:"/docs/eip7702/signAuthorization"});const a=Vn(i);if(!a.signAuthorization)throw new jf({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const u=await dI(e,t);return a.signAuthorization(u)}async function D4(e,{account:t=e.account,message:i}){if(!t)throw new wa({docsPath:"/docs/actions/wallet/signMessage"});const a=Vn(t);if(a.signMessage)return a.signMessage({message:i});const u=typeof i=="string"?Ts(i):i.raw instanceof Uint8Array?di(i.raw):i.raw;return e.request({method:"personal_sign",params:[u,a.address]},{retryCount:0})}async function M4(e,t){var h,x,v,I;const{account:i=e.account,chain:a=e.chain,...u}=t;if(!i)throw new wa({docsPath:"/docs/actions/wallet/signTransaction"});const c=Vn(i);sd({account:c,...t});const f=await Fn(e,Vc,"getChainId")({});a!==null&&iI({currentChainId:f,chain:a});const d=(a==null?void 0:a.formatters)||((h=e.chain)==null?void 0:h.formatters),m=((x=d==null?void 0:d.transactionRequest)==null?void 0:x.format)||rm;return c.signTransaction?c.signTransaction({...u,chainId:f},{serializer:(I=(v=e.chain)==null?void 0:v.serializers)==null?void 0:I.transaction}):await e.request({method:"eth_signTransaction",params:[{...m(u),chainId:Pe(f),from:c.address}]},{retryCount:0})}async function j4(e,t){const{account:i=e.account,domain:a,message:u,primaryType:c}=t;if(!i)throw new wa({docsPath:"/docs/actions/wallet/signTypedData"});const f=Vn(i),d={EIP712Domain:qv({domain:a}),...t.types};if(zv({domain:a,message:u,primaryType:c,types:d}),f.signTypedData)return f.signTypedData({domain:a,message:u,primaryType:c,types:d});const m=Z6({domain:a,message:u,primaryType:c,types:d});return e.request({method:"eth_signTypedData_v4",params:[f.address,m]},{retryCount:0})}async function N4(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Pe(t)}]},{retryCount:0})}async function _4(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}function P4(e){return{addChain:t=>I4(e,t),deployContract:t=>F4(e,t),getAddresses:()=>S4(e),getCallsStatus:t=>lI(e,t),getCapabilities:t=>C4(e,t),getChainId:()=>Vc(e),getPermissions:()=>B4(e),prepareAuthorization:t=>dI(e,t),prepareTransactionRequest:t=>om(e,t),requestAddresses:()=>O4(e),requestPermissions:t=>T4(e,t),sendCalls:t=>h4(e,t),sendRawTransaction:t=>aI(e,t),sendTransaction:t=>ud(e,t),showCallsStatus:t=>R4(e,t),signAuthorization:t=>U4(e,t),signMessage:t=>D4(e,t),signTransaction:t=>M4(e,t),signTypedData:t=>j4(e,t),switchChain:t=>N4(e,t),waitForCallsStatus:t=>p4(e,t),watchAsset:t=>_4(e,t),writeContract:t=>l4(e,t)}}function sc(e){const{key:t="wallet",name:i="Wallet Client",transport:a}=e;return g4({...e,key:t,name:i,transport:a,type:"walletClient"}).extend(P4)}function $4({key:e,methods:t,name:i,request:a,retryCount:u=3,retryDelay:c=150,timeout:f,type:d},m){const h=fI();return{config:{key:e,methods:t,name:i,request:a,retryCount:u,retryDelay:c,timeout:f,type:d},request:A4(a,{methods:t,retryCount:u,retryDelay:c,uid:h}),value:m}}class L4 extends De{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 uc(e,t={}){const{batch:i,fetchFn:a,fetchOptions:u,key:c="http",methods:f,name:d="HTTP JSON-RPC",onFetchRequest:m,onFetchResponse:h,retryDelay:x,raw:v}=t;return({chain:I,retryCount:C,timeout:B})=>{const{batchSize:$=1e3,wait:O=0}=typeof i=="object"?i:{},U=t.retryCount??C,R=B??t.timeout??1e4,T=I==null?void 0:I.rpcUrls.default.http[0];if(!T)throw new L4;const L=v4(T,{fetchFn:a,fetchOptions:u,onRequest:m,onResponse:h,timeout:R});return $4({key:c,methods:f,name:d,async request({method:k,params:Y}){const oe={method:k,params:Y},{schedule:te}=a4({id:T,wait:O,shouldSplitBatch(H){return H.length>$},fn:H=>L.request({body:H}),sort:(H,ee)=>H.id-ee.id}),F=async H=>i?te(H):[await L.request({body:H})],[{error:_,result:G}]=await F(oe);if(v)return{error:_,result:G};if(_)throw new nm({body:oe,error:_,url:T});return G},retryCount:U,retryDelay:x,timeout:R,type:"http"},{fetchOptions:u,url:T})}}const cc=x4({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Ln={PAIMA_API_PORT:"9999",BATCHER_PORT:"3334",DOCS_PORT:"10600",PAIMA_EXPLORER_PORT:"10590"},Wu={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function z4(e){const t={};return e.filter(a=>a.networkType!=="ntp").forEach((a,u)=>{var v,I,C;const c=a.network,f=a.syncProtocol;let d=c.name;c.type==="evm"&&c.chainId?d=`evm_${c.chainId}`:c.type==="evm"&&c.id&&(d=`evm_${c.id}`),t[d]&&(d=`${d}_${u}`);let m;c.type==="evm"?(C=(I=(v=c.rpcUrls)==null?void 0:v.default)==null?void 0:I.http)!=null&&C[0]?m=c.rpcUrls.default.http[0]:f.chainUri&&(m=f.chainUri):c.type==="midnight"&&(m=c.nodeUrl);let h=Wu.evm;c.type==="cardano"?h=Wu.cardano:c.type==="midnight"?h=Wu.midnight:c.name.toLowerCase().includes("arbitrum")?h=Wu.evm:(c.name.toLowerCase().includes("ethereum")||c.name.toLowerCase().includes("l1"))&&(h=Wu.evmParallel);const x={type:c.type.toUpperCase(),name:c.name,blockTime:c.blockTimeMS??void 0,color:h,blocks:[],currentBlock:c.type==="evm"?5e5:1e5,rpcEndpoint:m,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:f.name};t[d]=x}),t}async function q4(){var e;try{const t=await fetch(pI);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json(),a=z4(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:${Ln.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...a}}catch(t){return console.error("Error fetching chain configs:",t),hI}}const hI={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ln.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}},pI=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/config`,Q4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/block-heights`,H4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/primitives`,C2=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/tables`,k4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/grammar`,G4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/scheduled-data`,K4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/primitives-schema`,Y4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/table-schema`,B2=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/sync-protocols`,yI=`http://localhost:${Ln.BATCHER_PORT}/send-input`,O2=`http://localhost:${Ln.BATCHER_PORT}/documentation`,T2=`http://localhost:${Ln.PAIMA_API_PORT}/documentation`,R2="https://acedward.github.io/paima-v-next-docs/",V4=`http://127.0.0.1:${Ln.PAIMA_API_PORT}/addresses`;function X4(e){return en(e)&&!er(e)&&!Zc(e)&&Symbol.asyncIterator in e}function er(e){return Array.isArray(e)}function gI(e){return typeof e=="bigint"}function Xc(e){return typeof e=="boolean"}function am(e){return e instanceof globalThis.Date}function Z4(e){return typeof e=="function"}function J4(e){return en(e)&&!er(e)&&!Zc(e)&&Symbol.iterator in e}function W4(e){return e===null}function yi(e){return typeof e=="number"}function en(e){return typeof e=="object"&&e!==null}function mI(e){return e instanceof globalThis.RegExp}function Yt(e){return typeof e=="string"}function eO(e){return typeof e=="symbol"}function Zc(e){return e instanceof globalThis.Uint8Array}function Jt(e){return e===void 0}function tO(e){return e.map(t=>Hf(t))}function nO(e){return new Date(e.getTime())}function rO(e){return new Uint8Array(e)}function iO(e){return new RegExp(e.source,e.flags)}function oO(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Hf(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Hf(e[i]);return t}function Hf(e){return er(e)?tO(e):am(e)?nO(e):Zc(e)?rO(e):mI(e)?iO(e):en(e)?oO(e):e}function dr(e){return Hf(e)}function sm(e,t){return dr(t===void 0?e:{...t,...e})}function AI(e){return Ea(e)&&globalThis.Symbol.asyncIterator in e}function bI(e){return Ea(e)&&globalThis.Symbol.iterator in e}function xI(e){return e instanceof globalThis.Promise}function um(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function cm(e){return e instanceof globalThis.Uint8Array}function aO(e,t){return t in e}function Ea(e){return e!==null&&typeof e=="object"}function Vi(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function va(e){return e===void 0}function cd(e){return e===null}function ld(e){return typeof e=="boolean"}function Hi(e){return typeof e=="number"}function wI(e){return globalThis.Number.isInteger(e)}function fd(e){return typeof e=="bigint"}function fi(e){return typeof e=="string"}function EI(e){return typeof e=="function"}function dd(e){return typeof e=="symbol"}function sO(e){return fd(e)||ld(e)||cd(e)||Hi(e)||fi(e)||dd(e)||va(e)}var Xn;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(f,d){return e.ExactOptionalPropertyTypes?d in f:f[d]!==void 0}e.IsExactOptionalProperty=t;function i(f){const d=Ea(f);return e.AllowArrayObject?d:d&&!Vi(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?Hi(f):Number.isFinite(f)}e.IsNumberLike=u;function c(f){const d=va(f);return e.AllowNullVoid?d||f===null:d}e.IsVoidLike=c})(Xn||(Xn={}));function uO(e){return globalThis.Object.freeze(e).map(t=>kf(t))}function cO(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=kf(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=kf(e[i]);return globalThis.Object.freeze(t)}function kf(e){return er(e)?uO(e):am(e)?e:Zc(e)?e:mI(e)?e:en(e)?cO(e):e}function Me(e,t){const i=t!==void 0?{...t,...e}:e;switch(Xn.InstanceMode){case"freeze":return kf(i);case"clone":return dr(i);default:return i}}class mr extends Error{constructor(t){super(t)}}const lr=Symbol.for("TypeBox.Transform"),Jc=Symbol.for("TypeBox.Readonly"),Zi=Symbol.for("TypeBox.Optional"),hd=Symbol.for("TypeBox.Hint"),$e=Symbol.for("TypeBox.Kind");function lm(e){return en(e)&&e[Jc]==="Readonly"}function Do(e){return en(e)&&e[Zi]==="Optional"}function vI(e){return it(e,"Any")}function II(e){return it(e,"Argument")}function zs(e){return it(e,"Array")}function pd(e){return it(e,"AsyncIterator")}function yd(e){return it(e,"BigInt")}function Wc(e){return it(e,"Boolean")}function qs(e){return it(e,"Computed")}function Qs(e){return it(e,"Constructor")}function lO(e){return it(e,"Date")}function Hs(e){return it(e,"Function")}function ks(e){return it(e,"Integer")}function Dr(e){return it(e,"Intersect")}function gd(e){return it(e,"Iterator")}function it(e,t){return en(e)&&$e in e&&e[$e]===t}function FI(e){return Xc(e)||yi(e)||Yt(e)}function Ia(e){return it(e,"Literal")}function Fa(e){return it(e,"MappedKey")}function Ar(e){return it(e,"MappedResult")}function el(e){return it(e,"Never")}function fO(e){return it(e,"Not")}function fm(e){return it(e,"Null")}function Gs(e){return it(e,"Number")}function Wr(e){return it(e,"Object")}function md(e){return it(e,"Promise")}function Ad(e){return it(e,"Record")}function Zn(e){return it(e,"Ref")}function SI(e){return it(e,"RegExp")}function tl(e){return it(e,"String")}function dm(e){return it(e,"Symbol")}function Sa(e){return it(e,"TemplateLiteral")}function dO(e){return it(e,"This")}function Ut(e){return en(e)&&lr in e}function Ca(e){return it(e,"Tuple")}function bd(e){return it(e,"Undefined")}function An(e){return it(e,"Union")}function hO(e){return it(e,"Uint8Array")}function pO(e){return it(e,"Unknown")}function yO(e){return it(e,"Unsafe")}function gO(e){return it(e,"Void")}function mO(e){return en(e)&&$e in e&&Yt(e[$e])}function fr(e){return vI(e)||II(e)||zs(e)||Wc(e)||yd(e)||pd(e)||qs(e)||Qs(e)||lO(e)||Hs(e)||ks(e)||Dr(e)||gd(e)||Ia(e)||Fa(e)||Ar(e)||el(e)||fO(e)||fm(e)||Gs(e)||Wr(e)||md(e)||Ad(e)||Zn(e)||SI(e)||tl(e)||dm(e)||Sa(e)||dO(e)||Ca(e)||bd(e)||An(e)||hO(e)||pO(e)||yO(e)||gO(e)||mO(e)}const AO=["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 CI(e){try{return new RegExp(e),!0}catch{return!1}}function hm(e){if(!Yt(e))return!1;for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(i>=7&&i<=13||i===27||i===127)return!1}return!0}function BI(e){return pm(e)||Cn(e)}function ec(e){return Jt(e)||gI(e)}function Ft(e){return Jt(e)||yi(e)}function pm(e){return Jt(e)||Xc(e)}function xt(e){return Jt(e)||Yt(e)}function bO(e){return Jt(e)||Yt(e)&&hm(e)&&CI(e)}function xO(e){return Jt(e)||Yt(e)&&hm(e)}function OI(e){return Jt(e)||Cn(e)}function Gf(e){return en(e)&&e[Zi]==="Optional"}function Yr(e){return ot(e,"Any")&&xt(e.$id)}function wO(e){return ot(e,"Argument")&&yi(e.index)}function Ba(e){return ot(e,"Array")&&e.type==="array"&&xt(e.$id)&&Cn(e.items)&&Ft(e.minItems)&&Ft(e.maxItems)&&pm(e.uniqueItems)&&OI(e.contains)&&Ft(e.minContains)&&Ft(e.maxContains)}function ym(e){return ot(e,"AsyncIterator")&&e.type==="AsyncIterator"&&xt(e.$id)&&Cn(e.items)}function xd(e){return ot(e,"BigInt")&&e.type==="bigint"&&xt(e.$id)&&ec(e.exclusiveMaximum)&&ec(e.exclusiveMinimum)&&ec(e.maximum)&&ec(e.minimum)&&ec(e.multipleOf)}function Oa(e){return ot(e,"Boolean")&&e.type==="boolean"&&xt(e.$id)}function EO(e){return ot(e,"Computed")&&Yt(e.target)&&er(e.parameters)&&e.parameters.every(t=>Cn(t))}function wd(e){return ot(e,"Constructor")&&e.type==="Constructor"&&xt(e.$id)&&er(e.parameters)&&e.parameters.every(t=>Cn(t))&&Cn(e.returns)}function Ed(e){return ot(e,"Date")&&e.type==="Date"&&xt(e.$id)&&Ft(e.exclusiveMaximumTimestamp)&&Ft(e.exclusiveMinimumTimestamp)&&Ft(e.maximumTimestamp)&&Ft(e.minimumTimestamp)&&Ft(e.multipleOfTimestamp)}function vd(e){return ot(e,"Function")&&e.type==="Function"&&xt(e.$id)&&er(e.parameters)&&e.parameters.every(t=>Cn(t))&&Cn(e.returns)}function Ji(e){return ot(e,"Integer")&&e.type==="integer"&&xt(e.$id)&&Ft(e.exclusiveMaximum)&&Ft(e.exclusiveMinimum)&&Ft(e.maximum)&&Ft(e.minimum)&&Ft(e.multipleOf)}function TI(e){return en(e)&&Object.entries(e).every(([t,i])=>hm(t)&&Cn(i))}function Ta(e){return ot(e,"Intersect")&&!(Yt(e.type)&&e.type!=="object")&&er(e.allOf)&&e.allOf.every(t=>Cn(t)&&!BO(t))&&xt(e.type)&&(pm(e.unevaluatedProperties)||OI(e.unevaluatedProperties))&&xt(e.$id)}function gm(e){return ot(e,"Iterator")&&e.type==="Iterator"&&xt(e.$id)&&Cn(e.items)}function ot(e,t){return en(e)&&$e in e&&e[$e]===t}function RI(e){return Mo(e)&&Yt(e.const)}function UI(e){return Mo(e)&&yi(e.const)}function DI(e){return Mo(e)&&Xc(e.const)}function Mo(e){return ot(e,"Literal")&&xt(e.$id)&&vO(e.const)}function vO(e){return Xc(e)||yi(e)||Yt(e)}function IO(e){return ot(e,"MappedKey")&&er(e.keys)&&e.keys.every(t=>yi(t)||Yt(t))}function FO(e){return ot(e,"MappedResult")&&TI(e.properties)}function jo(e){return ot(e,"Never")&&en(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function js(e){return ot(e,"Not")&&Cn(e.not)}function mm(e){return ot(e,"Null")&&e.type==="null"&&xt(e.$id)}function Kn(e){return ot(e,"Number")&&e.type==="number"&&xt(e.$id)&&Ft(e.exclusiveMaximum)&&Ft(e.exclusiveMinimum)&&Ft(e.maximum)&&Ft(e.minimum)&&Ft(e.multipleOf)}function Pt(e){return ot(e,"Object")&&e.type==="object"&&xt(e.$id)&&TI(e.properties)&&BI(e.additionalProperties)&&Ft(e.minProperties)&&Ft(e.maxProperties)}function Am(e){return ot(e,"Promise")&&e.type==="Promise"&&xt(e.$id)&&Cn(e.item)}function Sn(e){return ot(e,"Record")&&e.type==="object"&&xt(e.$id)&&BI(e.additionalProperties)&&en(e.patternProperties)&&(t=>{const i=Object.getOwnPropertyNames(t.patternProperties);return i.length===1&&CI(i[0])&&en(t.patternProperties)&&Cn(t.patternProperties[i[0]])})(e)}function SO(e){return ot(e,"Ref")&&xt(e.$id)&&Yt(e.$ref)}function jc(e){return ot(e,"RegExp")&&xt(e.$id)&&Yt(e.source)&&Yt(e.flags)&&Ft(e.maxLength)&&Ft(e.minLength)}function Vr(e){return ot(e,"String")&&e.type==="string"&&xt(e.$id)&&Ft(e.minLength)&&Ft(e.maxLength)&&bO(e.pattern)&&xO(e.format)}function Nc(e){return ot(e,"Symbol")&&e.type==="symbol"&&xt(e.$id)}function _c(e){return ot(e,"TemplateLiteral")&&e.type==="string"&&Yt(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function CO(e){return ot(e,"This")&&xt(e.$id)&&Yt(e.$ref)}function BO(e){return en(e)&&lr in e}function Id(e){return ot(e,"Tuple")&&e.type==="array"&&xt(e.$id)&&yi(e.minItems)&&yi(e.maxItems)&&e.minItems===e.maxItems&&(Jt(e.items)&&Jt(e.additionalItems)&&e.minItems===0||er(e.items)&&e.items.every(t=>Cn(t)))}function ba(e){return ot(e,"Undefined")&&e.type==="undefined"&&xt(e.$id)}function Xi(e){return ot(e,"Union")&&xt(e.$id)&&en(e)&&er(e.anyOf)&&e.anyOf.every(t=>Cn(t))}function nl(e){return ot(e,"Uint8Array")&&e.type==="Uint8Array"&&xt(e.$id)&&Ft(e.minByteLength)&&Ft(e.maxByteLength)}function Xr(e){return ot(e,"Unknown")&&xt(e.$id)}function OO(e){return ot(e,"Unsafe")}function Fd(e){return ot(e,"Void")&&e.type==="void"&&xt(e.$id)}function TO(e){return en(e)&&$e in e&&Yt(e[$e])&&!AO.includes(e[$e])}function Cn(e){return en(e)&&(Yr(e)||wO(e)||Ba(e)||Oa(e)||xd(e)||ym(e)||EO(e)||wd(e)||Ed(e)||vd(e)||Ji(e)||Ta(e)||gm(e)||Mo(e)||IO(e)||FO(e)||jo(e)||js(e)||mm(e)||Kn(e)||Pt(e)||Am(e)||Sn(e)||SO(e)||jc(e)||Vr(e)||Nc(e)||_c(e)||CO(e)||Id(e)||ba(e)||Xi(e)||nl(e)||Xr(e)||OO(e)||Fd(e)||TO(e))}const RO="(true|false)",Nf="(0|[1-9][0-9]*)",MI="(.*)",UO="(?!.*)",Ns=`^${Nf}$`,_s=`^${MI}$`,DO=`^${UO}$`,bm=new Map;function jI(e){return bm.has(e)}function mi(e,t){bm.set(e,t)}function NI(e){return bm.get(e)}const _I=new Map;function xm(e){return _I.has(e)}function PI(e){return _I.get(e)}function MO(e,t){return e.includes(t)}function jO(e){return[...new Set(e)]}function NO(e,t){return e.filter(i=>t.includes(i))}function _O(e,t){return e.reduce((i,a)=>NO(i,a),t)}function PO(e){return e.length===1?e[0]:e.length>1?_O(e.slice(1),e[0]):[]}function $O(e){const t=[];for(const i of e)t.push(...i);return t}function Pc(e){return Me({[$e]:"Any"},e)}function wm(e,t){return Me({[$e]:"Array",type:"array",items:e},t)}function LO(e){return Me({[$e]:"Argument",index:e})}function Em(e,t){return Me({[$e]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function un(e,t,i){return Me({[$e]:"Computed",target:e,parameters:t},i)}function zO(e,t){const{[t]:i,...a}=e;return a}function hr(e,t){return t.reduce((i,a)=>zO(i,a),e)}function Ht(e){return Me({[$e]:"Never",not:{}},e)}function Bn(e){return Me({[$e]:"MappedResult",properties:e})}function vm(e,t,i){return Me({[$e]:"Constructor",type:"Constructor",parameters:e,returns:t},i)}function rl(e,t,i){return Me({[$e]:"Function",type:"Function",parameters:e,returns:t},i)}function xg(e,t){return Me({[$e]:"Union",anyOf:e},t)}function qO(e){return e.some(t=>Do(t))}function U2(e){return e.map(t=>Do(t)?QO(t):t)}function QO(e){return hr(e,[Zi])}function HO(e,t){return qO(e)?Po(xg(U2(e),t)):xg(U2(e),t)}function Ks(e,t){return e.length===1?Me(e[0],t):e.length===0?Ht(t):HO(e,t)}function On(e,t){return e.length===0?Ht(t):e.length===1?Me(e[0],t):xg(e,t)}class D2 extends mr{}function kO(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Im(e,t,i){return e[t]===i&&e.charCodeAt(t-1)!==92}function ki(e,t){return Im(e,t,"(")}function $c(e,t){return Im(e,t,")")}function $I(e,t){return Im(e,t,"|")}function GO(e){if(!(ki(e,0)&&$c(e,e.length-1)))return!1;let t=0;for(let i=0;i<e.length;i++)if(ki(e,i)&&(t+=1),$c(e,i)&&(t-=1),t===0&&i!==e.length-1)return!1;return!0}function KO(e){return e.slice(1,e.length-1)}function YO(e){let t=0;for(let i=0;i<e.length;i++)if(ki(e,i)&&(t+=1),$c(e,i)&&(t-=1),$I(e,i)&&t===0)return!0;return!1}function VO(e){for(let t=0;t<e.length;t++)if(ki(e,t))return!0;return!1}function XO(e){let[t,i]=[0,0];const a=[];for(let c=0;c<e.length;c++)if(ki(e,c)&&(t+=1),$c(e,c)&&(t-=1),$I(e,c)&&t===0){const f=e.slice(i,c);f.length>0&&a.push(Ps(f)),i=c+1}const u=e.slice(i);return u.length>0&&a.push(Ps(u)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function ZO(e){function t(u,c){if(!ki(u,c))throw new D2("TemplateLiteralParser: Index must point to open parens");let f=0;for(let d=c;d<u.length;d++)if(ki(u,d)&&(f+=1),$c(u,d)&&(f-=1),f===0)return[c,d];throw new D2("TemplateLiteralParser: Unclosed group parens in expression")}function i(u,c){for(let f=c;f<u.length;f++)if(ki(u,f))return[c,f];return[c,u.length]}const a=[];for(let u=0;u<e.length;u++)if(ki(e,u)){const[c,f]=t(e,u),d=e.slice(c,f+1);a.push(Ps(d)),u=f}else{const[c,f]=i(e,u),d=e.slice(c,f);d.length>0&&a.push(Ps(d)),u=f-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function Ps(e){return GO(e)?Ps(KO(e)):YO(e)?XO(e):VO(e)?ZO(e):{type:"const",const:kO(e)}}function Fm(e){return Ps(e.slice(1,e.length-1))}class JO extends mr{}function WO(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 eT(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 tT(e){return e.type==="const"&&e.const===".*"}function Lc(e){return WO(e)||tT(e)?!1:eT(e)?!0:e.type==="and"?e.expr.every(t=>Lc(t)):e.type==="or"?e.expr.every(t=>Lc(t)):e.type==="const"?!0:(()=>{throw new JO("Unknown expression type")})()}function nT(e){const t=Fm(e.pattern);return Lc(t)}class rT extends mr{}function*LI(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const i of LI(e.slice(1)))yield`${t}${i}`}function*iT(e){return yield*LI(e.expr.map(t=>[...Sd(t)]))}function*oT(e){for(const t of e.expr)yield*Sd(t)}function*aT(e){return yield e.const}function*Sd(e){return e.type==="and"?yield*iT(e):e.type==="or"?yield*oT(e):e.type==="const"?yield*aT(e):(()=>{throw new rT("Unknown expression")})()}function zI(e){const t=Fm(e.pattern);return Lc(t)?[...Sd(t)]:[]}function Wt(e,t){return Me({[$e]:"Literal",const:e,type:typeof e},t)}function qI(e){return Me({[$e]:"Boolean",type:"boolean"},e)}function Sm(e){return Me({[$e]:"BigInt",type:"bigint"},e)}function Ra(e){return Me({[$e]:"Number",type:"number"},e)}function xa(e){return Me({[$e]:"String",type:"string"},e)}function*sT(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield qI():t==="number"?yield Ra():t==="bigint"?yield Sm():t==="string"?yield xa():yield(()=>{const i=t.split("|").map(a=>Wt(a.trim()));return i.length===0?Ht():i.length===1?i[0]:Ks(i)})()}function*uT(e){if(e[1]!=="{"){const t=Wt("$"),i=wg(e.slice(1));return yield*[t,...i]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const i=sT(e.slice(2,t)),a=wg(e.slice(t+1));return yield*[...i,...a]}yield Wt(e)}function*wg(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const i=Wt(e.slice(0,t)),a=uT(e.slice(t));return yield*[i,...a]}yield Wt(e)}function cT(e){return[...wg(e)]}class lT extends mr{}function fT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function QI(e,t){return Sa(e)?e.pattern.slice(1,e.pattern.length-1):An(e)?`(${e.anyOf.map(i=>QI(i,t)).join("|")})`:Gs(e)?`${t}${Nf}`:ks(e)?`${t}${Nf}`:yd(e)?`${t}${Nf}`:tl(e)?`${t}${MI}`:Ia(e)?`${t}${fT(e.const.toString())}`:Wc(e)?`${t}${RO}`:(()=>{throw new lT(`Unexpected Kind '${e[$e]}'`)})()}function M2(e){return`^${e.map(t=>QI(t,"")).join("")}$`}function Kf(e){const i=zI(e).map(a=>Wt(a));return Ks(i)}function HI(e,t){const i=Yt(e)?M2(cT(e)):M2(e);return Me({[$e]:"TemplateLiteral",type:"string",pattern:i},t)}function dT(e){return zI(e).map(i=>i.toString())}function hT(e){const t=[];for(const i of e)t.push(...No(i));return t}function pT(e){return[e.toString()]}function No(e){return[...new Set(Sa(e)?dT(e):An(e)?hT(e.anyOf):Ia(e)?pT(e.const):Gs(e)?["[number]"]:ks(e)?["[number]"]:[])]}function yT(e,t,i){const a={};for(const u of Object.getOwnPropertyNames(t))a[u]=Cd(e,No(t[u]),i);return a}function gT(e,t,i){return yT(e,t.properties,i)}function mT(e,t,i){const a=gT(e,t,i);return Bn(a)}function kI(e,t){return e.map(i=>GI(i,t))}function AT(e){return e.filter(t=>!el(t))}function bT(e,t){return VI(AT(kI(e,t)))}function xT(e){return e.some(t=>el(t))?[]:e}function wT(e,t){return Ks(xT(kI(e,t)))}function ET(e,t){return t in e?e[t]:t==="[number]"?Ks(e):Ht()}function vT(e,t){return t==="[number]"?e:Ht()}function IT(e,t){return t in e?e[t]:Ht()}function GI(e,t){return Dr(e)?bT(e.allOf,t):An(e)?wT(e.anyOf,t):Ca(e)?ET(e.items??[],t):zs(e)?vT(e.items,t):Wr(e)?IT(e.properties,t):Ht()}function Cm(e,t){return t.map(i=>GI(e,i))}function j2(e,t){return Ks(Cm(e,t))}function Cd(e,t,i){if(Zn(e)||Zn(t)){const a="Index types using Ref parameters require both Type and Key to be of TSchema";if(!fr(e)||!fr(t))throw new mr(a);return un("Index",[e,t])}return Ar(t)?mT(e,t,i):Fa(t)?BT(e,t,i):Me(fr(t)?j2(e,No(t)):j2(e,t),i)}function FT(e,t,i){return{[t]:Cd(e,[t],dr(i))}}function ST(e,t,i){return t.reduce((a,u)=>({...a,...FT(e,u,i)}),{})}function CT(e,t,i){return ST(e,t.keys,i)}function BT(e,t,i){const a=CT(e,t,i);return Bn(a)}function Bm(e,t){return Me({[$e]:"Iterator",type:"Iterator",items:e},t)}function OT(e){const t=[];for(let i in e)Do(e[i])||t.push(i);return t}function TT(e,t){const i=OT(e),a=i.length>0?{[$e]:"Object",type:"object",properties:e,required:i}:{[$e]:"Object",type:"object",properties:e};return Me(a,t)}var mn=TT;function KI(e,t){return Me({[$e]:"Promise",type:"Promise",item:e},t)}function RT(e){return Me(hr(e,[Jc]))}function UT(e){return Me({...e,[Jc]:"Readonly"})}function DT(e,t){return t===!1?RT(e):UT(e)}function _o(e,t){const i=t??!0;return Ar(e)?NT(e,i):DT(e,i)}function MT(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=_o(e[a],t);return i}function jT(e,t){return MT(e.properties,t)}function NT(e,t){const i=jT(e,t);return Bn(i)}function Ys(e,t){return Me(e.length>0?{[$e]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[$e]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function YI(e,t){return e in t?Rr(e,t[e]):Bn(t)}function _T(e){return{[e]:Wt(e)}}function PT(e){const t={};for(const i of e)t[i]=Wt(i);return t}function $T(e,t){return MO(t,e)?_T(e):PT(t)}function LT(e,t){const i=$T(e,t);return YI(e,i)}function tc(e,t){return t.map(i=>Rr(e,i))}function zT(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(t))i[a]=Rr(e,t[a]);return i}function Rr(e,t){const i={...t};return Do(t)?Po(Rr(e,hr(t,[Zi]))):lm(t)?_o(Rr(e,hr(t,[Jc]))):Ar(t)?YI(e,t.properties):Fa(t)?LT(e,t.keys):Qs(t)?vm(tc(e,t.parameters),Rr(e,t.returns),i):Hs(t)?rl(tc(e,t.parameters),Rr(e,t.returns),i):pd(t)?Em(Rr(e,t.items),i):gd(t)?Bm(Rr(e,t.items),i):Dr(t)?$o(tc(e,t.allOf),i):An(t)?On(tc(e,t.anyOf),i):Ca(t)?Ys(tc(e,t.items??[]),i):Wr(t)?mn(zT(e,t.properties),i):zs(t)?wm(Rr(e,t.items),i):md(t)?KI(Rr(e,t.item),i):t}function qT(e,t){const i={};for(const a of e)i[a]=Rr(a,t);return i}function QT(e,t,i){const a=fr(e)?No(e):e,u=t({[$e]:"MappedKey",keys:a}),c=qT(a,u);return mn(c,i)}function HT(e){return Me(hr(e,[Zi]))}function kT(e){return Me({...e,[Zi]:"Optional"})}function GT(e,t){return t===!1?HT(e):kT(e)}function Po(e,t){const i=t??!0;return Ar(e)?VT(e,i):GT(e,i)}function KT(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Po(e[a],t);return i}function YT(e,t){return KT(e.properties,t)}function VT(e,t){const i=YT(e,t);return Bn(i)}function Eg(e,t={}){const i=e.every(u=>Wr(u)),a=fr(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return Me(t.unevaluatedProperties===!1||fr(t.unevaluatedProperties)||i?{...a,[$e]:"Intersect",type:"object",allOf:e}:{...a,[$e]:"Intersect",allOf:e},t)}function XT(e){return e.every(t=>Do(t))}function ZT(e){return hr(e,[Zi])}function N2(e){return e.map(t=>Do(t)?ZT(t):t)}function JT(e,t){return XT(e)?Po(Eg(N2(e),t)):Eg(N2(e),t)}function VI(e,t={}){if(e.length===1)return Me(e[0],t);if(e.length===0)return Ht(t);if(e.some(i=>Ut(i)))throw new Error("Cannot intersect transform types");return JT(e,t)}function $o(e,t){if(e.length===1)return Me(e[0],t);if(e.length===0)return Ht(t);if(e.some(i=>Ut(i)))throw new Error("Cannot intersect transform types");return Eg(e,t)}function il(...e){const[t,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new mr("Ref: $ref must be a string");return Me({[$e]:"Ref",$ref:t},i)}function WT(e,t){return un("Awaited",[un(e,t)])}function eR(e){return un("Awaited",[il(e)])}function tR(e){return $o(XI(e))}function nR(e){return On(XI(e))}function rR(e){return Bd(e)}function XI(e){return e.map(t=>Bd(t))}function Bd(e,t){return Me(qs(e)?WT(e.target,e.parameters):Dr(e)?tR(e.allOf):An(e)?nR(e.anyOf):md(e)?rR(e.item):Zn(e)?eR(e.$ref):e,t)}function ZI(e){const t=[];for(const i of e)t.push(Vs(i));return t}function iR(e){const t=ZI(e);return $O(t)}function oR(e){const t=ZI(e);return PO(t)}function aR(e){return e.map((t,i)=>i.toString())}function sR(e){return["[number]"]}function uR(e){return globalThis.Object.getOwnPropertyNames(e)}function cR(e){return vg?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function Vs(e){return Dr(e)?iR(e.allOf):An(e)?oR(e.anyOf):Ca(e)?aR(e.items??[]):zs(e)?sR(e.items):Wr(e)?uR(e.properties):Ad(e)?cR(e.patternProperties):[]}let vg=!1;function Yf(e){vg=!0;const t=Vs(e);return vg=!1,`^(${t.map(a=>`(${a})`).join("|")})$`}function lR(e,t){return un("KeyOf",[un(e,t)])}function fR(e){return un("KeyOf",[il(e)])}function dR(e,t){const i=Vs(e),a=hR(i),u=Ks(a);return Me(u,t)}function hR(e){return e.map(t=>t==="[number]"?Ra():Wt(t))}function Om(e,t){return qs(e)?lR(e.target,e.parameters):Zn(e)?fR(e.$ref):Ar(e)?gR(e,t):dR(e,t)}function pR(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Om(e[a],dr(t));return i}function yR(e,t){return pR(e.properties,t)}function gR(e,t){const i=yR(e,t);return Bn(i)}function mR(e){const t=Vs(e),i=Cm(e,t);return t.map((a,u)=>[t[u],i[u]])}function AR(e){const t=[];for(const i of e)t.push(...Vs(i));return jO(t)}function bR(e){return e.filter(t=>!el(t))}function xR(e,t){const i=[];for(const a of e)i.push(...Cm(a,[t]));return bR(i)}function wR(e,t){const i={};for(const a of t)i[a]=VI(xR(e,a));return i}function ER(e,t){const i=AR(e),a=wR(e,i);return mn(a,t)}function JI(e){return Me({[$e]:"Date",type:"Date"},e)}function WI(e){return Me({[$e]:"Null",type:"null"},e)}function eF(e){return Me({[$e]:"Symbol",type:"symbol"},e)}function tF(e){return Me({[$e]:"Undefined",type:"undefined"},e)}function nF(e){return Me({[$e]:"Uint8Array",type:"Uint8Array"},e)}function Od(e){return Me({[$e]:"Unknown"},e)}function vR(e){return e.map(t=>Tm(t,!1))}function IR(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=_o(Tm(e[i],!1));return t}function Bf(e,t){return t===!0?e:_o(e)}function Tm(e,t){return X4(e)||J4(e)?Bf(Pc(),t):er(e)?_o(Ys(vR(e))):Zc(e)?nF():am(e)?JI():en(e)?Bf(mn(IR(e)),t):Z4(e)?Bf(rl([],Od()),t):Jt(e)?tF():W4(e)?WI():eO(e)?eF():gI(e)?Sm():yi(e)||Xc(e)||Yt(e)?Wt(e):mn({})}function FR(e,t){return Me(Tm(e,!0),t)}function SR(e,t){return Qs(e)?Ys(e.parameters,t):Ht(t)}function CR(e,t){if(Jt(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=>Wt(c));return On(u,{...t,[hd]:"Enum"})}class BR extends mr{}var Fe;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Fe||(Fe={}));function Ur(e){return e===Fe.False?e:Fe.True}function Xs(e){throw new BR(e)}function tn(e){return jo(e)||Ta(e)||Xi(e)||Xr(e)||Yr(e)}function nn(e,t){return jo(t)?oF():Ta(t)?Td(e,t):Xi(t)?Um(e,t):Xr(t)?cF():Yr(t)?Rm():Xs("StructuralRight")}function Rm(e,t){return Fe.True}function OR(e,t){return Ta(t)?Td(e,t):Xi(t)&&t.anyOf.some(i=>Yr(i)||Xr(i))?Fe.True:Xi(t)?Fe.Union:Xr(t)||Yr(t)?Fe.True:Fe.Union}function TR(e,t){return Xr(e)?Fe.False:Yr(e)?Fe.Union:jo(e)?Fe.True:Fe.False}function RR(e,t){return Pt(t)&&Rd(t)?Fe.True:tn(t)?nn(e,t):Ba(t)?Ur(bt(e.items,t.items)):Fe.False}function UR(e,t){return tn(t)?nn(e,t):ym(t)?Ur(bt(e.items,t.items)):Fe.False}function DR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):xd(t)?Fe.True:Fe.False}function rF(e,t){return DI(e)||Oa(e)?Fe.True:Fe.False}function MR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Oa(t)?Fe.True:Fe.False}function jR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):wd(t)?e.parameters.length>t.parameters.length?Fe.False:e.parameters.every((i,a)=>Ur(bt(t.parameters[a],i))===Fe.True)?Ur(bt(e.returns,t.returns)):Fe.False:Fe.False}function NR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Ed(t)?Fe.True:Fe.False}function _R(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):vd(t)?e.parameters.length>t.parameters.length?Fe.False:e.parameters.every((i,a)=>Ur(bt(t.parameters[a],i))===Fe.True)?Ur(bt(e.returns,t.returns)):Fe.False:Fe.False}function iF(e,t){return Mo(e)&&yi(e.const)||Kn(e)||Ji(e)?Fe.True:Fe.False}function PR(e,t){return Ji(t)||Kn(t)?Fe.True:tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Fe.False}function Td(e,t){return t.allOf.every(i=>bt(e,i)===Fe.True)?Fe.True:Fe.False}function $R(e,t){return e.allOf.some(i=>bt(i,t)===Fe.True)?Fe.True:Fe.False}function LR(e,t){return tn(t)?nn(e,t):gm(t)?Ur(bt(e.items,t.items)):Fe.False}function zR(e,t){return Mo(t)&&t.const===e.const?Fe.True:tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Vr(t)?uF(e):Kn(t)?aF(e):Ji(t)?iF(e):Oa(t)?rF(e):Fe.False}function oF(e,t){return Fe.False}function qR(e,t){return Fe.True}function _2(e){let[t,i]=[e,0];for(;js(t);)t=t.not,i+=1;return i%2===0?t:Od()}function QR(e,t){return js(e)?bt(_2(e),t):js(t)?bt(e,_2(t)):Xs("Invalid fallthrough for Not")}function HR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):mm(t)?Fe.True:Fe.False}function aF(e,t){return UI(e)||Kn(e)||Ji(e)?Fe.True:Fe.False}function kR(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Ji(t)||Kn(t)?Fe.True:Fe.False}function Jn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function P2(e){return Rd(e)}function $2(e){return Jn(e,0)||Jn(e,1)&&"description"in e.properties&&Xi(e.properties.description)&&e.properties.description.anyOf.length===2&&(Vr(e.properties.description.anyOf[0])&&ba(e.properties.description.anyOf[1])||Vr(e.properties.description.anyOf[1])&&ba(e.properties.description.anyOf[0]))}function yp(e){return Jn(e,0)}function L2(e){return Jn(e,0)}function GR(e){return Jn(e,0)}function KR(e){return Jn(e,0)}function YR(e){return Rd(e)}function VR(e){const t=Ra();return Jn(e,0)||Jn(e,1)&&"length"in e.properties&&Ur(bt(e.properties.length,t))===Fe.True}function XR(e){return Jn(e,0)}function Rd(e){const t=Ra();return Jn(e,0)||Jn(e,1)&&"length"in e.properties&&Ur(bt(e.properties.length,t))===Fe.True}function ZR(e){const t=rl([Pc()],Pc());return Jn(e,0)||Jn(e,1)&&"then"in e.properties&&Ur(bt(e.properties.then,t))===Fe.True}function sF(e,t){return bt(e,t)===Fe.False||Gf(e)&&!Gf(t)?Fe.False:Fe.True}function Nn(e,t){return Xr(e)?Fe.False:Yr(e)?Fe.Union:jo(e)||RI(e)&&P2(t)||UI(e)&&yp(t)||DI(e)&&L2(t)||Nc(e)&&$2(t)||xd(e)&&GR(t)||Vr(e)&&P2(t)||Nc(e)&&$2(t)||Kn(e)&&yp(t)||Ji(e)&&yp(t)||Oa(e)&&L2(t)||nl(e)&&YR(t)||Ed(e)&&KR(t)||wd(e)&&XR(t)||vd(e)&&VR(t)?Fe.True:Sn(e)&&Vr(Ig(e))?t[hd]==="Record"?Fe.True:Fe.False:Sn(e)&&Kn(Ig(e))?Jn(t,0)?Fe.True:Fe.False:Fe.False}function JR(e,t){return tn(t)?nn(e,t):Sn(t)?Mr(e,t):Pt(t)?(()=>{for(const i of Object.getOwnPropertyNames(t.properties)){if(!(i in e.properties)&&!Gf(t.properties[i]))return Fe.False;if(Gf(t.properties[i]))return Fe.True;if(sF(e.properties[i],t.properties[i])===Fe.False)return Fe.False}return Fe.True})():Fe.False}function WR(e,t){return tn(t)?nn(e,t):Pt(t)&&ZR(t)?Fe.True:Am(t)?Ur(bt(e.item,t.item)):Fe.False}function Ig(e){return Ns in e.patternProperties?Ra():_s in e.patternProperties?xa():Xs("Unknown record key pattern")}function Fg(e){return Ns in e.patternProperties?e.patternProperties[Ns]:_s in e.patternProperties?e.patternProperties[_s]:Xs("Unable to get record value schema")}function Mr(e,t){const[i,a]=[Ig(t),Fg(t)];return RI(e)&&Kn(i)&&Ur(bt(e,a))===Fe.True?Fe.True:nl(e)&&Kn(i)||Vr(e)&&Kn(i)||Ba(e)&&Kn(i)?bt(e,a):Pt(e)?(()=>{for(const u of Object.getOwnPropertyNames(e.properties))if(sF(a,e.properties[u])===Fe.False)return Fe.False;return Fe.True})():Fe.False}function eU(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?bt(Fg(e),Fg(t)):Fe.False}function tU(e,t){const i=jc(e)?xa():e,a=jc(t)?xa():t;return bt(i,a)}function uF(e,t){return Mo(e)&&Yt(e.const)||Vr(e)?Fe.True:Fe.False}function nU(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Vr(t)?Fe.True:Fe.False}function rU(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Nc(t)?Fe.True:Fe.False}function iU(e,t){return _c(e)?bt(Kf(e),t):_c(t)?bt(e,Kf(t)):Xs("Invalid fallthrough for TemplateLiteral")}function oU(e,t){return Ba(t)&&e.items!==void 0&&e.items.every(i=>bt(i,t.items)===Fe.True)}function aU(e,t){return jo(e)?Fe.True:Xr(e)?Fe.False:Yr(e)?Fe.Union:Fe.False}function sU(e,t){return tn(t)?nn(e,t):Pt(t)&&Rd(t)||Ba(t)&&oU(e,t)?Fe.True:Id(t)?Jt(e.items)&&!Jt(t.items)||!Jt(e.items)&&Jt(t.items)?Fe.False:Jt(e.items)&&!Jt(t.items)||e.items.every((i,a)=>bt(i,t.items[a])===Fe.True)?Fe.True:Fe.False:Fe.False}function uU(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):nl(t)?Fe.True:Fe.False}function cU(e,t){return tn(t)?nn(e,t):Pt(t)?Nn(e,t):Sn(t)?Mr(e,t):Fd(t)?dU(e):ba(t)?Fe.True:Fe.False}function Um(e,t){return t.anyOf.some(i=>bt(e,i)===Fe.True)?Fe.True:Fe.False}function lU(e,t){return e.anyOf.every(i=>bt(i,t)===Fe.True)?Fe.True:Fe.False}function cF(e,t){return Fe.True}function fU(e,t){return jo(t)?oF():Ta(t)?Td(e,t):Xi(t)?Um(e,t):Yr(t)?Rm():Vr(t)?uF(e):Kn(t)?aF(e):Ji(t)?iF(e):Oa(t)?rF(e):Ba(t)?TR(e):Id(t)?aU(e):Pt(t)?Nn(e,t):Xr(t)?Fe.True:Fe.False}function dU(e,t){return ba(e)||ba(e)?Fe.True:Fe.False}function hU(e,t){return Ta(t)?Td(e,t):Xi(t)?Um(e,t):Xr(t)?cF():Yr(t)?Rm():Pt(t)?Nn(e,t):Fd(t)?Fe.True:Fe.False}function bt(e,t){return _c(e)||_c(t)?iU(e,t):jc(e)||jc(t)?tU(e,t):js(e)||js(t)?QR(e,t):Yr(e)?OR(e,t):Ba(e)?RR(e,t):xd(e)?DR(e,t):Oa(e)?MR(e,t):ym(e)?UR(e,t):wd(e)?jR(e,t):Ed(e)?NR(e,t):vd(e)?_R(e,t):Ji(e)?PR(e,t):Ta(e)?$R(e,t):gm(e)?LR(e,t):Mo(e)?zR(e,t):jo(e)?qR():mm(e)?HR(e,t):Kn(e)?kR(e,t):Pt(e)?JR(e,t):Sn(e)?eU(e,t):Vr(e)?nU(e,t):Nc(e)?rU(e,t):Id(e)?sU(e,t):Am(e)?WR(e,t):nl(e)?uU(e,t):ba(e)?cU(e,t):Xi(e)?lU(e,t):Xr(e)?fU(e,t):Fd(e)?hU(e,t):Xs(`Unknown left type operand '${e[$e]}'`)}function ol(e,t){return bt(e,t)}function pU(e,t,i,a,u){const c={};for(const f of globalThis.Object.getOwnPropertyNames(e))c[f]=Dm(e[f],t,i,a,dr(u));return c}function yU(e,t,i,a,u){return pU(e.properties,t,i,a,u)}function gU(e,t,i,a,u){const c=yU(e,t,i,a,u);return Bn(c)}function mU(e,t,i,a){const u=ol(e,t);return u===Fe.Union?On([i,a]):u===Fe.True?i:a}function Dm(e,t,i,a,u){return Ar(e)?gU(e,t,i,a,u):Fa(e)?Me(wU(e,t,i,a,u)):Me(mU(e,t,i,a),u)}function AU(e,t,i,a,u){return{[e]:Dm(Wt(e),t,i,a,dr(u))}}function bU(e,t,i,a,u){return e.reduce((c,f)=>({...c,...AU(f,t,i,a,u)}),{})}function xU(e,t,i,a,u){return bU(e.keys,t,i,a,u)}function wU(e,t,i,a,u){const c=xU(e,t,i,a,u);return Bn(c)}function EU(e){return e.allOf.every(t=>al(t))}function vU(e){return e.anyOf.some(t=>al(t))}function IU(e){return!al(e.not)}function al(e){return e[$e]==="Intersect"?EU(e):e[$e]==="Union"?vU(e):e[$e]==="Not"?IU(e):e[$e]==="Undefined"}function FU(e,t){return Mm(Kf(e),t)}function SU(e,t){const i=e.filter(a=>ol(a,t)===Fe.False);return i.length===1?i[0]:On(i)}function Mm(e,t,i={}){return Sa(e)?Me(FU(e,t),i):Ar(e)?Me(OU(e,t),i):Me(An(e)?SU(e.anyOf,t):ol(e,t)!==Fe.False?Ht():e,i)}function CU(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Mm(e[a],t);return i}function BU(e,t){return CU(e.properties,t)}function OU(e,t){const i=BU(e,t);return Bn(i)}function TU(e,t){return jm(Kf(e),t)}function RU(e,t){const i=e.filter(a=>ol(a,t)!==Fe.False);return i.length===1?i[0]:On(i)}function jm(e,t,i){return Sa(e)?Me(TU(e,t),i):Ar(e)?Me(MU(e,t),i):Me(An(e)?RU(e.anyOf,t):ol(e,t)!==Fe.False?e:Ht(),i)}function UU(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=jm(e[a],t);return i}function DU(e,t){return UU(e.properties,t)}function MU(e,t){const i=DU(e,t);return Bn(i)}function jU(e,t){return Qs(e)?Me(e.returns,t):Ht(t)}function lF(e){return _o(Po(e))}function Ua(e,t,i){return Me({[$e]:"Record",type:"object",patternProperties:{[e]:t}},i)}function Nm(e,t,i){const a={};for(const u of e)a[u]=t;return mn(a,{...i,[hd]:"Record"})}function NU(e,t,i){return nT(e)?Nm(No(e),t,i):Ua(e.pattern,t,i)}function _U(e,t,i){return Nm(No(On(e)),t,i)}function PU(e,t,i){return Nm([e.toString()],t,i)}function $U(e,t,i){return Ua(e.source,t,i)}function LU(e,t,i){const a=Jt(e.pattern)?_s:e.pattern;return Ua(a,t,i)}function zU(e,t,i){return Ua(_s,t,i)}function qU(e,t,i){return Ua(DO,t,i)}function QU(e,t,i){return mn({true:t,false:t},i)}function HU(e,t,i){return Ua(Ns,t,i)}function kU(e,t,i){return Ua(Ns,t,i)}function fF(e,t,i={}){return An(e)?_U(e.anyOf,t,i):Sa(e)?NU(e,t,i):Ia(e)?PU(e.const,t,i):Wc(e)?QU(e,t,i):ks(e)?HU(e,t,i):Gs(e)?kU(e,t,i):SI(e)?$U(e,t,i):tl(e)?LU(e,t,i):vI(e)?zU(e,t,i):el(e)?qU(e,t,i):Ht(i)}function _m(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function GU(e){const t=_m(e);return t===_s?xa():t===Ns?Ra():xa({pattern:t})}function dF(e){return e.patternProperties[_m(e)]}function KU(e,t){return t.parameters=sl(e,t.parameters),t.returns=Zr(e,t.returns),t}function YU(e,t){return t.parameters=sl(e,t.parameters),t.returns=Zr(e,t.returns),t}function VU(e,t){return t.allOf=sl(e,t.allOf),t}function XU(e,t){return t.anyOf=sl(e,t.anyOf),t}function ZU(e,t){return Jt(t.items)||(t.items=sl(e,t.items)),t}function JU(e,t){return t.items=Zr(e,t.items),t}function WU(e,t){return t.items=Zr(e,t.items),t}function eD(e,t){return t.items=Zr(e,t.items),t}function tD(e,t){return t.item=Zr(e,t.item),t}function nD(e,t){const i=aD(e,t.properties);return{...t,...mn(i)}}function rD(e,t){const i=Zr(e,GU(t)),a=Zr(e,dF(t)),u=fF(i,a);return{...t,...u}}function iD(e,t){return t.index in e?e[t.index]:Od()}function oD(e,t){const i=lm(t),a=Do(t),u=Zr(e,t);return i&&a?lF(u):i&&!a?_o(u):!i&&a?Po(u):u}function aD(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((i,a)=>({...i,[a]:oD(e,t[a])}),{})}function sl(e,t){return t.map(i=>Zr(e,i))}function Zr(e,t){return Qs(t)?KU(e,t):Hs(t)?YU(e,t):Dr(t)?VU(e,t):An(t)?XU(e,t):Ca(t)?ZU(e,t):zs(t)?JU(e,t):pd(t)?WU(e,t):gd(t)?eD(e,t):md(t)?tD(e,t):Wr(t)?nD(e,t):Ad(t)?rD(e,t):II(t)?iD(e,t):t}function sD(e,t){return Zr(t,sm(e))}function uD(e){return Me({[$e]:"Integer",type:"integer"},e)}function cD(e,t,i){return{[e]:Zs(Wt(e),t,dr(i))}}function lD(e,t,i){return e.reduce((u,c)=>({...u,...cD(c,t,i)}),{})}function fD(e,t,i){return lD(e.keys,t,i)}function dD(e,t,i){const a=fD(e,t,i);return Bn(a)}function hD(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),i].join("")}function pD(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),i].join("")}function yD(e){return e.toUpperCase()}function gD(e){return e.toLowerCase()}function mD(e,t,i){const a=Fm(e.pattern);if(!Lc(a))return{...e,pattern:hF(e.pattern,t)};const f=[...Sd(a)].map(h=>Wt(h)),d=pF(f,t),m=On(d);return HI([m],i)}function hF(e,t){return typeof e=="string"?t==="Uncapitalize"?hD(e):t==="Capitalize"?pD(e):t==="Uppercase"?yD(e):t==="Lowercase"?gD(e):e:e.toString()}function pF(e,t){return e.map(i=>Zs(i,t))}function Zs(e,t,i={}){return Fa(e)?dD(e,t,i):Sa(e)?mD(e,t,i):An(e)?On(pF(e.anyOf,t),i):Ia(e)?Wt(hF(e.const,t),i):Me(e,i)}function AD(e,t={}){return Zs(e,"Capitalize",t)}function bD(e,t={}){return Zs(e,"Lowercase",t)}function xD(e,t={}){return Zs(e,"Uncapitalize",t)}function wD(e,t={}){return Zs(e,"Uppercase",t)}function ED(e,t,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Ud(e[u],t,dr(i));return a}function vD(e,t,i){return ED(e.properties,t,i)}function ID(e,t,i){const a=vD(e,t,i);return Bn(a)}function FD(e,t){return e.map(i=>Pm(i,t))}function SD(e,t){return e.map(i=>Pm(i,t))}function CD(e,t){const{[t]:i,...a}=e;return a}function BD(e,t){return t.reduce((i,a)=>CD(i,a),e)}function OD(e,t){const i=hr(e,[lr,"$id","required","properties"]),a=BD(e.properties,t);return mn(a,i)}function TD(e){const t=e.reduce((i,a)=>FI(a)?[...i,Wt(a)]:i,[]);return On(t)}function Pm(e,t){return Dr(e)?$o(FD(e.allOf,t)):An(e)?On(SD(e.anyOf,t)):Wr(e)?OD(e,t):mn({})}function Ud(e,t,i){const a=er(t)?TD(t):t,u=fr(t)?No(t):t,c=Zn(e),f=Zn(t);return Ar(e)?ID(e,u,i):Fa(t)?MD(e,t,i):c&&f?un("Omit",[e,a],i):!c&&f?un("Omit",[e,a],i):c&&!f?un("Omit",[e,a],i):Me({...Pm(e,u),...i})}function RD(e,t,i){return{[t]:Ud(e,[t],dr(i))}}function UD(e,t,i){return t.reduce((a,u)=>({...a,...RD(e,u,i)}),{})}function DD(e,t,i){return UD(e,t.keys,i)}function MD(e,t,i){const a=DD(e,t,i);return Bn(a)}function jD(e,t,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Dd(e[u],t,dr(i));return a}function ND(e,t,i){return jD(e.properties,t,i)}function _D(e,t,i){const a=ND(e,t,i);return Bn(a)}function PD(e,t){return e.map(i=>$m(i,t))}function $D(e,t){return e.map(i=>$m(i,t))}function LD(e,t){const i={};for(const a of t)a in e&&(i[a]=e[a]);return i}function zD(e,t){const i=hr(e,[lr,"$id","required","properties"]),a=LD(e.properties,t);return mn(a,i)}function qD(e){const t=e.reduce((i,a)=>FI(a)?[...i,Wt(a)]:i,[]);return On(t)}function $m(e,t){return Dr(e)?$o(PD(e.allOf,t)):An(e)?On($D(e.anyOf,t)):Wr(e)?zD(e,t):mn({})}function Dd(e,t,i){const a=er(t)?qD(t):t,u=fr(t)?No(t):t,c=Zn(e),f=Zn(t);return Ar(e)?_D(e,u,i):Fa(t)?GD(e,t,i):c&&f?un("Pick",[e,a],i):!c&&f?un("Pick",[e,a],i):c&&!f?un("Pick",[e,a],i):Me({...$m(e,u),...i})}function QD(e,t,i){return{[t]:Dd(e,[t],dr(i))}}function HD(e,t,i){return t.reduce((a,u)=>({...a,...QD(e,u,i)}),{})}function kD(e,t,i){return HD(e,t.keys,i)}function GD(e,t,i){const a=kD(e,t,i);return Bn(a)}function KD(e,t){return un("Partial",[un(e,t)])}function YD(e){return un("Partial",[il(e)])}function VD(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=Po(e[i]);return t}function XD(e){const t=hr(e,[lr,"$id","required","properties"]),i=VD(e.properties);return mn(i,t)}function z2(e){return e.map(t=>yF(t))}function yF(e){return qs(e)?KD(e.target,e.parameters):Zn(e)?YD(e.$ref):Dr(e)?$o(z2(e.allOf)):An(e)?On(z2(e.anyOf)):Wr(e)?XD(e):yd(e)||Wc(e)||ks(e)||Ia(e)||fm(e)||Gs(e)||tl(e)||dm(e)||bd(e)?e:mn({})}function Lm(e,t){return Ar(e)?WD(e,t):Me({...yF(e),...t})}function ZD(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Lm(e[a],dr(t));return i}function JD(e,t){return ZD(e.properties,t)}function WD(e,t){const i=JD(e,t);return Bn(i)}function eM(e,t){return un("Required",[un(e,t)])}function tM(e){return un("Required",[il(e)])}function nM(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=hr(e[i],[Zi]);return t}function rM(e){const t=hr(e,[lr,"$id","required","properties"]),i=nM(e.properties);return mn(i,t)}function q2(e){return e.map(t=>gF(t))}function gF(e){return qs(e)?eM(e.target,e.parameters):Zn(e)?tM(e.$ref):Dr(e)?$o(q2(e.allOf)):An(e)?On(q2(e.anyOf)):Wr(e)?rM(e):yd(e)||Wc(e)||ks(e)||Ia(e)||fm(e)||Gs(e)||tl(e)||dm(e)||bd(e)?e:mn({})}function zm(e,t){return Ar(e)?aM(e,t):Me({...gF(e),...t})}function iM(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=zm(e[a],t);return i}function oM(e,t){return iM(e.properties,t)}function aM(e,t){const i=oM(e,t);return Bn(i)}function sM(e,t){return t.map(i=>Zn(i)?qm(e,i.$ref):pr(e,i))}function qm(e,t){return t in e?Zn(e[t])?qm(e,e[t].$ref):pr(e,e[t]):Ht()}function uM(e){return Bd(e[0])}function cM(e){return Cd(e[0],e[1])}function lM(e){return Om(e[0])}function fM(e){return Lm(e[0])}function dM(e){return Ud(e[0],e[1])}function hM(e){return Dd(e[0],e[1])}function pM(e){return zm(e[0])}function yM(e,t,i){const a=sM(e,i);return t==="Awaited"?uM(a):t==="Index"?cM(a):t==="KeyOf"?lM(a):t==="Partial"?fM(a):t==="Omit"?dM(a):t==="Pick"?hM(a):t==="Required"?pM(a):Ht()}function gM(e,t){return wm(pr(e,t))}function mM(e,t){return Em(pr(e,t))}function AM(e,t,i){return vm(ul(e,t),pr(e,i))}function bM(e,t,i){return rl(ul(e,t),pr(e,i))}function xM(e,t){return $o(ul(e,t))}function wM(e,t){return Bm(pr(e,t))}function EM(e,t){return mn(globalThis.Object.keys(t).reduce((i,a)=>({...i,[a]:pr(e,t[a])}),{}))}function vM(e,t){const[i,a]=[pr(e,dF(t)),_m(t)],u=sm(t);return u.patternProperties[a]=i,u}function IM(e,t){return Zn(t)?{...qm(e,t.$ref),[lr]:t[lr]}:t}function FM(e,t){return Ys(ul(e,t))}function SM(e,t){return On(ul(e,t))}function ul(e,t){return t.map(i=>pr(e,i))}function pr(e,t){return Do(t)?Me(pr(e,hr(t,[Zi])),t):lm(t)?Me(pr(e,hr(t,[Jc])),t):Ut(t)?Me(IM(e,t),t):zs(t)?Me(gM(e,t.items),t):pd(t)?Me(mM(e,t.items),t):qs(t)?Me(yM(e,t.target,t.parameters)):Qs(t)?Me(AM(e,t.parameters,t.returns),t):Hs(t)?Me(bM(e,t.parameters,t.returns),t):Dr(t)?Me(xM(e,t.allOf),t):gd(t)?Me(wM(e,t.items),t):Wr(t)?Me(EM(e,t.properties),t):Ad(t)?Me(vM(e,t)):Ca(t)?Me(FM(e,t.items||[]),t):An(t)?Me(SM(e,t.anyOf),t):t}function CM(e,t){return t in e?pr(e,e[t]):Ht()}function BM(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,i)=>({...t,[i]:CM(e,i)}),{})}class OM{constructor(t){const i=BM(t),a=this.WithIdentifiers(i);this.$defs=a}Import(t,i){const a={...this.$defs,[t]:Me(this.$defs[t],i)};return Me({[$e]:"Import",$defs:a,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((i,a)=>({...i,[a]:{...t[a],$id:a}}),{})}}function TM(e){return new OM(e)}function RM(e,t){return Me({[$e]:"Not",not:e},t)}function UM(e,t){return Hs(e)?Ys(e.parameters,t):Ht()}let DM=0;function MM(e,t={}){Jt(t.$id)&&(t.$id=`T${DM++}`);const i=sm(e({[$e]:"This",$ref:`${t.$id}`}));return i.$id=t.$id,Me({[hd]:"Recursive",...i},t)}function jM(e,t){const i=Yt(e)?new globalThis.RegExp(e):e;return Me({[$e]:"RegExp",type:"RegExp",source:i.source,flags:i.flags},t)}function NM(e){return Dr(e)?e.allOf:An(e)?e.anyOf:Ca(e)?e.items??[]:[]}function _M(e){return NM(e)}function PM(e,t){return Hs(e)?Me(e.returns,t):Ht(t)}class $M{constructor(t){this.schema=t}Decode(t){return new LM(this.schema,t)}}class LM{constructor(t,i){this.schema=t,this.decode=i}EncodeTransform(t,i){const c={Encode:f=>i[lr].Encode(t(f)),Decode:f=>this.decode(i[lr].Decode(f))};return{...i,[lr]:c}}EncodeSchema(t,i){const a={Decode:this.decode,Encode:t};return{...i,[lr]:a}}Encode(t){return Ut(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function zM(e){return new $M(e)}function qM(e={}){return Me({[$e]:e[$e]??"Unsafe"},e)}function QM(e){return Me({[$e]:"Void",type:"void"},e)}const HM=Object.freeze(Object.defineProperty({__proto__:null,Any:Pc,Argument:LO,Array:wm,AsyncIterator:Em,Awaited:Bd,BigInt:Sm,Boolean:qI,Capitalize:AD,Composite:ER,Const:FR,Constructor:vm,ConstructorParameters:SR,Date:JI,Enum:CR,Exclude:Mm,Extends:Dm,Extract:jm,Function:rl,Index:Cd,InstanceType:jU,Instantiate:sD,Integer:uD,Intersect:$o,Iterator:Bm,KeyOf:Om,Literal:Wt,Lowercase:bD,Mapped:QT,Module:TM,Never:Ht,Not:RM,Null:WI,Number:Ra,Object:mn,Omit:Ud,Optional:Po,Parameters:UM,Partial:Lm,Pick:Dd,Promise:KI,Readonly:_o,ReadonlyOptional:lF,Record:fF,Recursive:MM,Ref:il,RegExp:jM,Required:zm,Rest:_M,ReturnType:PM,String:xa,Symbol:eF,TemplateLiteral:HI,Transform:zM,Tuple:Ys,Uint8Array:nF,Uncapitalize:xD,Undefined:tF,Union:On,Unknown:Od,Unsafe:qM,Uppercase:wD,Void:QM},Symbol.toStringTag,{value:"Module"})),Be=HM;function kM(e){switch(e.errorType){case Ie.ArrayContains:return"Expected array to contain at least one matching value";case Ie.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Ie.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Ie.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Ie.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Ie.ArrayUniqueItems:return"Expected array elements to be unique";case Ie.Array:return"Expected array";case Ie.AsyncIterator:return"Expected AsyncIterator";case Ie.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Ie.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Ie.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Ie.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Ie.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Ie.BigInt:return"Expected bigint";case Ie.Boolean:return"Expected boolean";case Ie.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Ie.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Ie.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Ie.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Ie.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Ie.Date:return"Expected Date";case Ie.Function:return"Expected function";case Ie.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Ie.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Ie.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Ie.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Ie.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Ie.Integer:return"Expected integer";case Ie.IntersectUnevaluatedProperties:return"Unexpected property";case Ie.Intersect:return"Expected all values to match";case Ie.Iterator:return"Expected Iterator";case Ie.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case Ie.Never:return"Never";case Ie.Not:return"Value should not match";case Ie.Null:return"Expected null";case Ie.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Ie.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Ie.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Ie.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Ie.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Ie.Number:return"Expected number";case Ie.Object:return"Expected object";case Ie.ObjectAdditionalProperties:return"Unexpected property";case Ie.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Ie.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Ie.ObjectRequiredProperty:return"Expected required property";case Ie.Promise:return"Expected Promise";case Ie.RegExp:return"Expected string to match regular expression";case Ie.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Ie.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Ie.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Ie.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Ie.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Ie.String:return"Expected string";case Ie.Symbol:return"Expected symbol";case Ie.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Ie.Tuple:return"Expected tuple";case Ie.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Ie.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Ie.Uint8Array:return"Expected Uint8Array";case Ie.Undefined:return"Expected undefined";case Ie.Union:return"Expected union value";case Ie.Void:return"Expected void";case Ie.Kind:return`Expected kind '${e.schema[$e]}'`;default:return"Unknown error type"}}let GM=kM;function KM(){return GM}class YM extends mr{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function VM(e,t){const i=t.find(a=>a.$id===e.$ref);if(i===void 0)throw new YM(e);return Wi(i,t)}function Qm(e,t){return!fi(e.$id)||t.some(i=>i.$id===e.$id)||t.push(e),t}function Wi(e,t){return e[$e]==="This"||e[$e]==="Ref"?VM(e,t):e}class XM extends mr{constructor(t){super("Unable to hash value"),this.value=t}}var yr;(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"})(yr||(yr={}));let ws=BigInt("14695981039346656037");const[ZM,JM]=[BigInt("1099511628211"),BigInt("18446744073709551616")],WM=Array.from({length:256}).map((e,t)=>BigInt(t)),mF=new Float64Array(1),AF=new DataView(mF.buffer),bF=new Uint8Array(mF.buffer);function*e5(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let i=0;i<t;i++)yield e>>8*(t-1-i)&255}function t5(e){jn(yr.Array);for(const t of e)$s(t)}function n5(e){jn(yr.Boolean),jn(e?1:0)}function r5(e){jn(yr.BigInt),AF.setBigInt64(0,e);for(const t of bF)jn(t)}function i5(e){jn(yr.Date),$s(e.getTime())}function o5(e){jn(yr.Null)}function a5(e){jn(yr.Number),AF.setFloat64(0,e);for(const t of bF)jn(t)}function s5(e){jn(yr.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())$s(t),$s(e[t])}function u5(e){jn(yr.String);for(let t=0;t<e.length;t++)for(const i of e5(e.charCodeAt(t)))jn(i)}function c5(e){jn(yr.Symbol),$s(e.description)}function l5(e){jn(yr.Uint8Array);for(let t=0;t<e.length;t++)jn(e[t])}function f5(e){return jn(yr.Undefined)}function $s(e){if(Vi(e))return t5(e);if(ld(e))return n5(e);if(fd(e))return r5(e);if(um(e))return i5(e);if(cd(e))return o5();if(Hi(e))return a5(e);if(Ea(e))return s5(e);if(fi(e))return u5(e);if(dd(e))return c5(e);if(cm(e))return l5(e);if(va(e))return f5();throw new XM(e)}function jn(e){ws=ws^WM[e],ws=ws*ZM%JM}function xF(e){return ws=BigInt("14695981039346656037"),$s(e),ws}class d5 extends mr{constructor(t){super("Unknown type"),this.schema=t}}function h5(e){return e[$e]==="Any"||e[$e]==="Unknown"}function nt(e){return e!==void 0}function p5(e,t,i){return!0}function y5(e,t,i){return!0}function g5(e,t,i){if(!Vi(i)||nt(e.minItems)&&!(i.length>=e.minItems)||nt(e.maxItems)&&!(i.length<=e.maxItems)||!i.every(c=>pn(e.items,t,c))||e.uniqueItems===!0&&!(function(){const c=new Set;for(const f of i){const d=xF(f);if(c.has(d))return!1;c.add(d)}return!0})())return!1;if(!(nt(e.contains)||Hi(e.minContains)||Hi(e.maxContains)))return!0;const a=nt(e.contains)?e.contains:Ht(),u=i.reduce((c,f)=>pn(a,t,f)?c+1:c,0);return!(u===0||Hi(e.minContains)&&u<e.minContains||Hi(e.maxContains)&&u>e.maxContains)}function m5(e,t,i){return AI(i)}function A5(e,t,i){return!(!fd(i)||nt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||nt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||nt(e.maximum)&&!(i<=e.maximum)||nt(e.minimum)&&!(i>=e.minimum)||nt(e.multipleOf)&&i%e.multipleOf!==BigInt(0))}function b5(e,t,i){return ld(i)}function x5(e,t,i){return pn(e.returns,t,i.prototype)}function w5(e,t,i){return!(!um(i)||nt(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)||nt(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)||nt(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)||nt(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)||nt(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0)}function E5(e,t,i){return EI(i)}function v5(e,t,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return pn(u,[...t,...a],i)}function I5(e,t,i){return!(!wI(i)||nt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||nt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||nt(e.maximum)&&!(i<=e.maximum)||nt(e.minimum)&&!(i>=e.minimum)||nt(e.multipleOf)&&i%e.multipleOf!==0)}function F5(e,t,i){const a=e.allOf.every(u=>pn(u,t,i));if(e.unevaluatedProperties===!1){const u=new RegExp(Yf(e)),c=Object.getOwnPropertyNames(i).every(f=>u.test(f));return a&&c}else if(fr(e.unevaluatedProperties)){const u=new RegExp(Yf(e)),c=Object.getOwnPropertyNames(i).every(f=>u.test(f)||pn(e.unevaluatedProperties,t,i[f]));return a&&c}else return a}function S5(e,t,i){return bI(i)}function C5(e,t,i){return i===e.const}function B5(e,t,i){return!1}function O5(e,t,i){return!pn(e.not,t,i)}function T5(e,t,i){return cd(i)}function R5(e,t,i){return!(!Xn.IsNumberLike(i)||nt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||nt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||nt(e.minimum)&&!(i>=e.minimum)||nt(e.maximum)&&!(i<=e.maximum)||nt(e.multipleOf)&&i%e.multipleOf!==0)}function U5(e,t,i){if(!Xn.IsObjectLike(i)||nt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||nt(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(!pn(c,t,i[u])||(al(c)||h5(c))&&!(u in i))return!1}else if(Xn.IsExactOptionalProperty(i,u)&&!pn(c,t,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)||pn(e.additionalProperties,t,i[c])):!0}function D5(e,t,i){return xI(i)}function M5(e,t,i){if(!Xn.IsRecordLike(i)||nt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||nt(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(([h,x])=>c.test(h)?pn(u,t,x):!0),d=typeof e.additionalProperties=="object"?Object.entries(i).every(([h,x])=>c.test(h)?!0:pn(e.additionalProperties,t,x)):!0,m=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(h=>c.test(h)):!0;return f&&d&&m}function j5(e,t,i){return pn(Wi(e,t),t,i)}function N5(e,t,i){const a=new RegExp(e.source,e.flags);return nt(e.minLength)&&!(i.length>=e.minLength)||nt(e.maxLength)&&!(i.length<=e.maxLength)?!1:a.test(i)}function _5(e,t,i){return!fi(i)||nt(e.minLength)&&!(i.length>=e.minLength)||nt(e.maxLength)&&!(i.length<=e.maxLength)||nt(e.pattern)&&!new RegExp(e.pattern).test(i)?!1:nt(e.format)?jI(e.format)?NI(e.format)(i):!1:!0}function P5(e,t,i){return dd(i)}function $5(e,t,i){return fi(i)&&new RegExp(e.pattern).test(i)}function L5(e,t,i){return pn(Wi(e,t),t,i)}function z5(e,t,i){if(!Vi(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(!pn(e.items[a],t,i[a]))return!1;return!0}function q5(e,t,i){return va(i)}function Q5(e,t,i){return e.anyOf.some(a=>pn(a,t,i))}function H5(e,t,i){return!(!cm(i)||nt(e.maxByteLength)&&!(i.length<=e.maxByteLength)||nt(e.minByteLength)&&!(i.length>=e.minByteLength))}function k5(e,t,i){return!0}function G5(e,t,i){return Xn.IsVoidLike(i)}function K5(e,t,i){return xm(e[$e])?PI(e[$e])(e,i):!1}function pn(e,t,i){const a=nt(e.$id)?Qm(e,t):t,u=e;switch(u[$e]){case"Any":return p5();case"Argument":return y5();case"Array":return g5(u,a,i);case"AsyncIterator":return m5(u,a,i);case"BigInt":return A5(u,a,i);case"Boolean":return b5(u,a,i);case"Constructor":return x5(u,a,i);case"Date":return w5(u,a,i);case"Function":return E5(u,a,i);case"Import":return v5(u,a,i);case"Integer":return I5(u,a,i);case"Intersect":return F5(u,a,i);case"Iterator":return S5(u,a,i);case"Literal":return C5(u,a,i);case"Never":return B5();case"Not":return O5(u,a,i);case"Null":return T5(u,a,i);case"Number":return R5(u,a,i);case"Object":return U5(u,a,i);case"Promise":return D5(u,a,i);case"Record":return M5(u,a,i);case"Ref":return j5(u,a,i);case"RegExp":return N5(u,a,i);case"String":return _5(u,a,i);case"Symbol":return P5(u,a,i);case"TemplateLiteral":return $5(u,a,i);case"This":return L5(u,a,i);case"Tuple":return z5(u,a,i);case"Undefined":return q5(u,a,i);case"Union":return Q5(u,a,i);case"Uint8Array":return H5(u,a,i);case"Unknown":return k5();case"Void":return G5(u,a,i);default:if(!xm(u[$e]))throw new d5(u);return K5(u,a,i)}}function Hm(...e){return e.length===3?pn(e[0],e[1],e[2]):pn(e[0],[],e[1])}var Ie;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(Ie||(Ie={}));class Y5 extends mr{constructor(t){super("Unknown type"),this.schema=t}}function zi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function tt(e){return e!==void 0}class wF{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){const t=this.iterator.next();return t.done?void 0:t.value}}function Ne(e,t,i,a,u=[]){return{type:e,schema:t,path:i,value:a,message:KM()({errorType:e,path:i,schema:t,value:a,errors:u}),errors:u}}function*V5(e,t,i,a){}function*X5(e,t,i,a){}function*Z5(e,t,i,a){if(!Vi(a))return yield Ne(Ie.Array,e,i,a);tt(e.minItems)&&!(a.length>=e.minItems)&&(yield Ne(Ie.ArrayMinItems,e,i,a)),tt(e.maxItems)&&!(a.length<=e.maxItems)&&(yield Ne(Ie.ArrayMaxItems,e,i,a));for(let f=0;f<a.length;f++)yield*yn(e.items,t,`${i}/${f}`,a[f]);if(e.uniqueItems===!0&&!(function(){const f=new Set;for(const d of a){const m=xF(d);if(f.has(m))return!1;f.add(m)}return!0})()&&(yield Ne(Ie.ArrayUniqueItems,e,i,a)),!(tt(e.contains)||tt(e.minContains)||tt(e.maxContains)))return;const u=tt(e.contains)?e.contains:Ht(),c=a.reduce((f,d,m)=>yn(u,t,`${i}${m}`,d).next().done===!0?f+1:f,0);c===0&&(yield Ne(Ie.ArrayContains,e,i,a)),Hi(e.minContains)&&c<e.minContains&&(yield Ne(Ie.ArrayMinContains,e,i,a)),Hi(e.maxContains)&&c>e.maxContains&&(yield Ne(Ie.ArrayMaxContains,e,i,a))}function*J5(e,t,i,a){AI(a)||(yield Ne(Ie.AsyncIterator,e,i,a))}function*W5(e,t,i,a){if(!fd(a))return yield Ne(Ie.BigInt,e,i,a);tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ne(Ie.BigIntExclusiveMaximum,e,i,a)),tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ne(Ie.BigIntExclusiveMinimum,e,i,a)),tt(e.maximum)&&!(a<=e.maximum)&&(yield Ne(Ie.BigIntMaximum,e,i,a)),tt(e.minimum)&&!(a>=e.minimum)&&(yield Ne(Ie.BigIntMinimum,e,i,a)),tt(e.multipleOf)&&a%e.multipleOf!==BigInt(0)&&(yield Ne(Ie.BigIntMultipleOf,e,i,a))}function*ej(e,t,i,a){ld(a)||(yield Ne(Ie.Boolean,e,i,a))}function*tj(e,t,i,a){yield*yn(e.returns,t,i,a.prototype)}function*nj(e,t,i,a){if(!um(a))return yield Ne(Ie.Date,e,i,a);tt(e.exclusiveMaximumTimestamp)&&!(a.getTime()<e.exclusiveMaximumTimestamp)&&(yield Ne(Ie.DateExclusiveMaximumTimestamp,e,i,a)),tt(e.exclusiveMinimumTimestamp)&&!(a.getTime()>e.exclusiveMinimumTimestamp)&&(yield Ne(Ie.DateExclusiveMinimumTimestamp,e,i,a)),tt(e.maximumTimestamp)&&!(a.getTime()<=e.maximumTimestamp)&&(yield Ne(Ie.DateMaximumTimestamp,e,i,a)),tt(e.minimumTimestamp)&&!(a.getTime()>=e.minimumTimestamp)&&(yield Ne(Ie.DateMinimumTimestamp,e,i,a)),tt(e.multipleOfTimestamp)&&a.getTime()%e.multipleOfTimestamp!==0&&(yield Ne(Ie.DateMultipleOfTimestamp,e,i,a))}function*rj(e,t,i,a){EI(a)||(yield Ne(Ie.Function,e,i,a))}function*ij(e,t,i,a){const u=globalThis.Object.values(e.$defs),c=e.$defs[e.$ref];yield*yn(c,[...t,...u],i,a)}function*oj(e,t,i,a){if(!wI(a))return yield Ne(Ie.Integer,e,i,a);tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ne(Ie.IntegerExclusiveMaximum,e,i,a)),tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ne(Ie.IntegerExclusiveMinimum,e,i,a)),tt(e.maximum)&&!(a<=e.maximum)&&(yield Ne(Ie.IntegerMaximum,e,i,a)),tt(e.minimum)&&!(a>=e.minimum)&&(yield Ne(Ie.IntegerMinimum,e,i,a)),tt(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ne(Ie.IntegerMultipleOf,e,i,a))}function*aj(e,t,i,a){let u=!1;for(const c of e.allOf)for(const f of yn(c,t,i,a))u=!0,yield f;if(u)return yield Ne(Ie.Intersect,e,i,a);if(e.unevaluatedProperties===!1){const c=new RegExp(Yf(e));for(const f of Object.getOwnPropertyNames(a))c.test(f)||(yield Ne(Ie.IntersectUnevaluatedProperties,e,`${i}/${f}`,a))}if(typeof e.unevaluatedProperties=="object"){const c=new RegExp(Yf(e));for(const f of Object.getOwnPropertyNames(a))if(!c.test(f)){const d=yn(e.unevaluatedProperties,t,`${i}/${f}`,a[f]).next();d.done||(yield d.value)}}}function*sj(e,t,i,a){bI(a)||(yield Ne(Ie.Iterator,e,i,a))}function*uj(e,t,i,a){a!==e.const&&(yield Ne(Ie.Literal,e,i,a))}function*cj(e,t,i,a){yield Ne(Ie.Never,e,i,a)}function*lj(e,t,i,a){yn(e.not,t,i,a).next().done===!0&&(yield Ne(Ie.Not,e,i,a))}function*fj(e,t,i,a){cd(a)||(yield Ne(Ie.Null,e,i,a))}function*dj(e,t,i,a){if(!Xn.IsNumberLike(a))return yield Ne(Ie.Number,e,i,a);tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ne(Ie.NumberExclusiveMaximum,e,i,a)),tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ne(Ie.NumberExclusiveMinimum,e,i,a)),tt(e.maximum)&&!(a<=e.maximum)&&(yield Ne(Ie.NumberMaximum,e,i,a)),tt(e.minimum)&&!(a>=e.minimum)&&(yield Ne(Ie.NumberMinimum,e,i,a)),tt(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ne(Ie.NumberMultipleOf,e,i,a))}function*hj(e,t,i,a){if(!Xn.IsObjectLike(a))return yield Ne(Ie.Object,e,i,a);tt(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ne(Ie.ObjectMinProperties,e,i,a)),tt(e.maxProperties)&&!(Object.getOwnPropertyNames(a).length<=e.maxProperties)&&(yield Ne(Ie.ObjectMaxProperties,e,i,a));const u=Array.isArray(e.required)?e.required:[],c=Object.getOwnPropertyNames(e.properties),f=Object.getOwnPropertyNames(a);for(const d of u)f.includes(d)||(yield Ne(Ie.ObjectRequiredProperty,e.properties[d],`${i}/${zi(d)}`,void 0));if(e.additionalProperties===!1)for(const d of f)c.includes(d)||(yield Ne(Ie.ObjectAdditionalProperties,e,`${i}/${zi(d)}`,a[d]));if(typeof e.additionalProperties=="object")for(const d of f)c.includes(d)||(yield*yn(e.additionalProperties,t,`${i}/${zi(d)}`,a[d]));for(const d of c){const m=e.properties[d];e.required&&e.required.includes(d)?(yield*yn(m,t,`${i}/${zi(d)}`,a[d]),al(e)&&!(d in a)&&(yield Ne(Ie.ObjectRequiredProperty,m,`${i}/${zi(d)}`,void 0))):Xn.IsExactOptionalProperty(a,d)&&(yield*yn(m,t,`${i}/${zi(d)}`,a[d]))}}function*pj(e,t,i,a){xI(a)||(yield Ne(Ie.Promise,e,i,a))}function*yj(e,t,i,a){if(!Xn.IsRecordLike(a))return yield Ne(Ie.Object,e,i,a);tt(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ne(Ie.ObjectMinProperties,e,i,a)),tt(e.maxProperties)&&!(Object.getOwnPropertyNames(a).length<=e.maxProperties)&&(yield Ne(Ie.ObjectMaxProperties,e,i,a));const[u,c]=Object.entries(e.patternProperties)[0],f=new RegExp(u);for(const[d,m]of Object.entries(a))f.test(d)&&(yield*yn(c,t,`${i}/${zi(d)}`,m));if(typeof e.additionalProperties=="object")for(const[d,m]of Object.entries(a))f.test(d)||(yield*yn(e.additionalProperties,t,`${i}/${zi(d)}`,m));if(e.additionalProperties===!1){for(const[d,m]of Object.entries(a))if(!f.test(d))return yield Ne(Ie.ObjectAdditionalProperties,e,`${i}/${zi(d)}`,m)}}function*gj(e,t,i,a){yield*yn(Wi(e,t),t,i,a)}function*mj(e,t,i,a){if(!fi(a))return yield Ne(Ie.String,e,i,a);if(tt(e.minLength)&&!(a.length>=e.minLength)&&(yield Ne(Ie.StringMinLength,e,i,a)),tt(e.maxLength)&&!(a.length<=e.maxLength)&&(yield Ne(Ie.StringMaxLength,e,i,a)),!new RegExp(e.source,e.flags).test(a))return yield Ne(Ie.RegExp,e,i,a)}function*Aj(e,t,i,a){if(!fi(a))return yield Ne(Ie.String,e,i,a);tt(e.minLength)&&!(a.length>=e.minLength)&&(yield Ne(Ie.StringMinLength,e,i,a)),tt(e.maxLength)&&!(a.length<=e.maxLength)&&(yield Ne(Ie.StringMaxLength,e,i,a)),fi(e.pattern)&&(new RegExp(e.pattern).test(a)||(yield Ne(Ie.StringPattern,e,i,a))),fi(e.format)&&(jI(e.format)?NI(e.format)(a)||(yield Ne(Ie.StringFormat,e,i,a)):yield Ne(Ie.StringFormatUnknown,e,i,a))}function*bj(e,t,i,a){dd(a)||(yield Ne(Ie.Symbol,e,i,a))}function*xj(e,t,i,a){if(!fi(a))return yield Ne(Ie.String,e,i,a);new RegExp(e.pattern).test(a)||(yield Ne(Ie.StringPattern,e,i,a))}function*wj(e,t,i,a){yield*yn(Wi(e,t),t,i,a)}function*Ej(e,t,i,a){if(!Vi(a))return yield Ne(Ie.Tuple,e,i,a);if(e.items===void 0&&a.length!==0)return yield Ne(Ie.TupleLength,e,i,a);if(a.length!==e.maxItems)return yield Ne(Ie.TupleLength,e,i,a);if(e.items)for(let u=0;u<e.items.length;u++)yield*yn(e.items[u],t,`${i}/${u}`,a[u])}function*vj(e,t,i,a){va(a)||(yield Ne(Ie.Undefined,e,i,a))}function*Ij(e,t,i,a){if(Hm(e,t,a))return;const u=e.anyOf.map(c=>new wF(yn(c,t,i,a)));yield Ne(Ie.Union,e,i,a,u)}function*Fj(e,t,i,a){if(!cm(a))return yield Ne(Ie.Uint8Array,e,i,a);tt(e.maxByteLength)&&!(a.length<=e.maxByteLength)&&(yield Ne(Ie.Uint8ArrayMaxByteLength,e,i,a)),tt(e.minByteLength)&&!(a.length>=e.minByteLength)&&(yield Ne(Ie.Uint8ArrayMinByteLength,e,i,a))}function*Sj(e,t,i,a){}function*Cj(e,t,i,a){Xn.IsVoidLike(a)||(yield Ne(Ie.Void,e,i,a))}function*Bj(e,t,i,a){PI(e[$e])(e,a)||(yield Ne(Ie.Kind,e,i,a))}function*yn(e,t,i,a){const u=tt(e.$id)?[...t,e]:t,c=e;switch(c[$e]){case"Any":return yield*V5();case"Argument":return yield*X5();case"Array":return yield*Z5(c,u,i,a);case"AsyncIterator":return yield*J5(c,u,i,a);case"BigInt":return yield*W5(c,u,i,a);case"Boolean":return yield*ej(c,u,i,a);case"Constructor":return yield*tj(c,u,i,a);case"Date":return yield*nj(c,u,i,a);case"Function":return yield*rj(c,u,i,a);case"Import":return yield*ij(c,u,i,a);case"Integer":return yield*oj(c,u,i,a);case"Intersect":return yield*aj(c,u,i,a);case"Iterator":return yield*sj(c,u,i,a);case"Literal":return yield*uj(c,u,i,a);case"Never":return yield*cj(c,u,i,a);case"Not":return yield*lj(c,u,i,a);case"Null":return yield*fj(c,u,i,a);case"Number":return yield*dj(c,u,i,a);case"Object":return yield*hj(c,u,i,a);case"Promise":return yield*pj(c,u,i,a);case"Record":return yield*yj(c,u,i,a);case"Ref":return yield*gj(c,u,i,a);case"RegExp":return yield*mj(c,u,i,a);case"String":return yield*Aj(c,u,i,a);case"Symbol":return yield*bj(c,u,i,a);case"TemplateLiteral":return yield*xj(c,u,i,a);case"This":return yield*wj(c,u,i,a);case"Tuple":return yield*Ej(c,u,i,a);case"Undefined":return yield*vj(c,u,i,a);case"Union":return yield*Ij(c,u,i,a);case"Uint8Array":return yield*Fj(c,u,i,a);case"Unknown":return yield*Sj();case"Void":return yield*Cj(c,u,i,a);default:if(!xm(c[$e]))throw new Y5(e);return yield*Bj(c,u,i,a)}}function Oj(...e){const t=e.length===3?yn(e[0],e[1],"",e[2]):yn(e[0],[],"",e[1]);return new wF(t)}class Tj extends mr{constructor(t,i,a){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=i,this.error=a}}class Rj extends mr{constructor(t,i,a,u){super(u instanceof Error?u.message:"Unknown error"),this.schema=t,this.path=i,this.value=a,this.error=u}}function Rt(e,t,i){try{return Ut(e)?e[lr].Decode(i):i}catch(a){throw new Rj(e,t,i,a)}}function Uj(e,t,i,a){return Vi(a)?Rt(e,i,a.map((u,c)=>ei(e.items,t,`${i}/${c}`,u))):Rt(e,i,a)}function Dj(e,t,i,a){if(!Ea(a)||sO(a))return Rt(e,i,a);const u=mR(e),c=u.map(x=>x[0]),f={...a};for(const[x,v]of u)x in f&&(f[x]=ei(v,t,`${i}/${x}`,f[x]));if(!Ut(e.unevaluatedProperties))return Rt(e,i,f);const d=Object.getOwnPropertyNames(f),m=e.unevaluatedProperties,h={...f};for(const x of d)c.includes(x)||(h[x]=Rt(m,`${i}/${x}`,h[x]));return Rt(e,i,h)}function Mj(e,t,i,a){const u=globalThis.Object.values(e.$defs),c=e.$defs[e.$ref],f=ei(c,[...t,...u],i,a);return Rt(e,i,f)}function jj(e,t,i,a){return Rt(e,i,ei(e.not,t,i,a))}function Nj(e,t,i,a){if(!Ea(a))return Rt(e,i,a);const u=Vs(e),c={...a};for(const h of u)aO(c,h)&&(va(c[h])&&(!bd(e.properties[h])||Xn.IsExactOptionalProperty(c,h))||(c[h]=ei(e.properties[h],t,`${i}/${h}`,c[h])));if(!fr(e.additionalProperties))return Rt(e,i,c);const f=Object.getOwnPropertyNames(c),d=e.additionalProperties,m={...c};for(const h of f)u.includes(h)||(m[h]=Rt(d,`${i}/${h}`,m[h]));return Rt(e,i,m)}function _j(e,t,i,a){if(!Ea(a))return Rt(e,i,a);const u=Object.getOwnPropertyNames(e.patternProperties)[0],c=new RegExp(u),f={...a};for(const x of Object.getOwnPropertyNames(a))c.test(x)&&(f[x]=ei(e.patternProperties[u],t,`${i}/${x}`,f[x]));if(!fr(e.additionalProperties))return Rt(e,i,f);const d=Object.getOwnPropertyNames(f),m=e.additionalProperties,h={...f};for(const x of d)c.test(x)||(h[x]=Rt(m,`${i}/${x}`,h[x]));return Rt(e,i,h)}function Pj(e,t,i,a){const u=Wi(e,t);return Rt(e,i,ei(u,t,i,a))}function $j(e,t,i,a){const u=Wi(e,t);return Rt(e,i,ei(u,t,i,a))}function Lj(e,t,i,a){return Vi(a)&&Vi(e.items)?Rt(e,i,e.items.map((u,c)=>ei(u,t,`${i}/${c}`,a[c]))):Rt(e,i,a)}function zj(e,t,i,a){for(const u of e.anyOf){if(!Hm(u,t,a))continue;const c=ei(u,t,i,a);return Rt(e,i,c)}return Rt(e,i,a)}function ei(e,t,i,a){const u=Qm(e,t),c=e;switch(e[$e]){case"Array":return Uj(c,u,i,a);case"Import":return Mj(c,u,i,a);case"Intersect":return Dj(c,u,i,a);case"Not":return jj(c,u,i,a);case"Object":return Nj(c,u,i,a);case"Record":return _j(c,u,i,a);case"Ref":return Pj(c,u,i,a);case"Symbol":return Rt(c,i,a);case"This":return $j(c,u,i,a);case"Tuple":return Lj(c,u,i,a);case"Union":return zj(c,u,i,a);default:return Rt(c,i,a)}}function qj(e,t,i){return ei(e,t,"",i)}function Qj(e,t){return Ut(e)||cn(e.items,t)}function Hj(e,t){return Ut(e)||cn(e.items,t)}function kj(e,t){return Ut(e)||cn(e.returns,t)||e.parameters.some(i=>cn(i,t))}function Gj(e,t){return Ut(e)||cn(e.returns,t)||e.parameters.some(i=>cn(i,t))}function Kj(e,t){return Ut(e)||Ut(e.unevaluatedProperties)||e.allOf.some(i=>cn(i,t))}function Yj(e,t){const i=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((u,c)=>[...u,e.$defs[c]],[]),a=e.$defs[e.$ref];return Ut(e)||cn(a,[...i,...t])}function Vj(e,t){return Ut(e)||cn(e.items,t)}function Xj(e,t){return Ut(e)||cn(e.not,t)}function Zj(e,t){return Ut(e)||Object.values(e.properties).some(i=>cn(i,t))||fr(e.additionalProperties)&&cn(e.additionalProperties,t)}function Jj(e,t){return Ut(e)||cn(e.item,t)}function Wj(e,t){const i=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[i];return Ut(e)||cn(a,t)||fr(e.additionalProperties)&&Ut(e.additionalProperties)}function eN(e,t){return Ut(e)?!0:cn(Wi(e,t),t)}function tN(e,t){return Ut(e)?!0:cn(Wi(e,t),t)}function nN(e,t){return Ut(e)||!va(e.items)&&e.items.some(i=>cn(i,t))}function rN(e,t){return Ut(e)||e.anyOf.some(i=>cn(i,t))}function cn(e,t){const i=Qm(e,t),a=e;if(e.$id&&Sg.has(e.$id))return!1;switch(e.$id&&Sg.add(e.$id),e[$e]){case"Array":return Qj(a,i);case"AsyncIterator":return Hj(a,i);case"Constructor":return kj(a,i);case"Function":return Gj(a,i);case"Import":return Yj(a,i);case"Intersect":return Kj(a,i);case"Iterator":return Vj(a,i);case"Not":return Xj(a,i);case"Object":return Zj(a,i);case"Promise":return Jj(a,i);case"Record":return Wj(a,i);case"Ref":return eN(a,i);case"This":return tN(a,i);case"Tuple":return nN(a,i);case"Union":return rN(a,i);default:return Ut(e)}}const Sg=new Set;function iN(e,t){return Sg.clear(),cn(e,t)}function oN(...e){const[t,i,a]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Hm(t,i,a))throw new Tj(t,a,Oj(t,i,a).First());return iN(t,i)?qj(t,i,a):a}var _i={},gp={exports:{}},mp={},Ap={},bp={},xp,Q2;function km(){return Q2||(Q2=1,xp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},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;t[i]=u;for(var c in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var f=Object.getOwnPropertySymbols(t);if(f.length!==1||f[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,i);if(d.value!==u||d.enumerable!==!0)return!1}return!0}),xp}var wp,H2;function Md(){if(H2)return wp;H2=1;var e=km();return wp=function(){return e()&&!!Symbol.toStringTag},wp}var Ep,k2;function Gm(){return k2||(k2=1,Ep=Object),Ep}var vp,G2;function aN(){return G2||(G2=1,vp=Error),vp}var Ip,K2;function sN(){return K2||(K2=1,Ip=EvalError),Ip}var Fp,Y2;function uN(){return Y2||(Y2=1,Fp=RangeError),Fp}var Sp,V2;function cN(){return V2||(V2=1,Sp=ReferenceError),Sp}var Cp,X2;function EF(){return X2||(X2=1,Cp=SyntaxError),Cp}var Bp,Z2;function cl(){return Z2||(Z2=1,Bp=TypeError),Bp}var Op,J2;function lN(){return J2||(J2=1,Op=URIError),Op}var Tp,W2;function fN(){return W2||(W2=1,Tp=Math.abs),Tp}var Rp,ew;function dN(){return ew||(ew=1,Rp=Math.floor),Rp}var Up,tw;function hN(){return tw||(tw=1,Up=Math.max),Up}var Dp,nw;function pN(){return nw||(nw=1,Dp=Math.min),Dp}var Mp,rw;function yN(){return rw||(rw=1,Mp=Math.pow),Mp}var jp,iw;function gN(){return iw||(iw=1,jp=Math.round),jp}var Np,ow;function mN(){return ow||(ow=1,Np=Number.isNaN||function(t){return t!==t}),Np}var _p,aw;function AN(){if(aw)return _p;aw=1;var e=mN();return _p=function(i){return e(i)||i===0?i:i<0?-1:1},_p}var Pp,sw;function bN(){return sw||(sw=1,Pp=Object.getOwnPropertyDescriptor),Pp}var $p,uw;function Js(){if(uw)return $p;uw=1;var e=bN();if(e)try{e([],"length")}catch{e=null}return $p=e,$p}var Lp,cw;function jd(){if(cw)return Lp;cw=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Lp=e,Lp}var zp,lw;function xN(){if(lw)return zp;lw=1;var e=typeof Symbol<"u"&&Symbol,t=km();return zp=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},zp}var qp,fw;function vF(){return fw||(fw=1,qp=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),qp}var Qp,dw;function IF(){if(dw)return Qp;dw=1;var e=Gm();return Qp=e.getPrototypeOf||null,Qp}var Hp,hw;function wN(){if(hw)return Hp;hw=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,i=Math.max,a="[object Function]",u=function(m,h){for(var x=[],v=0;v<m.length;v+=1)x[v]=m[v];for(var I=0;I<h.length;I+=1)x[I+m.length]=h[I];return x},c=function(m,h){for(var x=[],v=h,I=0;v<m.length;v+=1,I+=1)x[I]=m[v];return x},f=function(d,m){for(var h="",x=0;x<d.length;x+=1)h+=d[x],x+1<d.length&&(h+=m);return h};return Hp=function(m){var h=this;if(typeof h!="function"||t.apply(h)!==a)throw new TypeError(e+h);for(var x=c(arguments,1),v,I=function(){if(this instanceof v){var U=h.apply(this,u(x,arguments));return Object(U)===U?U:this}return h.apply(m,u(x,arguments))},C=i(0,h.length-x.length),B=[],$=0;$<C;$++)B[$]="$"+$;if(v=Function("binder","return function ("+f(B,",")+"){ return binder.apply(this,arguments); }")(I),h.prototype){var O=function(){};O.prototype=h.prototype,v.prototype=new O,O.prototype=null}return v},Hp}var kp,pw;function ll(){if(pw)return kp;pw=1;var e=wN();return kp=Function.prototype.bind||e,kp}var Gp,yw;function Km(){return yw||(yw=1,Gp=Function.prototype.call),Gp}var Kp,gw;function Ym(){return gw||(gw=1,Kp=Function.prototype.apply),Kp}var Yp,mw;function EN(){return mw||(mw=1,Yp=typeof Reflect<"u"&&Reflect&&Reflect.apply),Yp}var Vp,Aw;function FF(){if(Aw)return Vp;Aw=1;var e=ll(),t=Ym(),i=Km(),a=EN();return Vp=a||e.call(i,t),Vp}var Xp,bw;function Vm(){if(bw)return Xp;bw=1;var e=ll(),t=cl(),i=Km(),a=FF();return Xp=function(c){if(c.length<1||typeof c[0]!="function")throw new t("a function is required");return a(e,i,c)},Xp}var Zp,xw;function vN(){if(xw)return Zp;xw=1;var e=Vm(),t=Js(),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&&t&&t(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;return Zp=a&&typeof a.get=="function"?e([a.get]):typeof c=="function"?function(d){return c(d==null?d:u(d))}:!1,Zp}var Jp,ww;function Xm(){if(ww)return Jp;ww=1;var e=vF(),t=IF(),i=vN();return Jp=e?function(u){return e(u)}:t?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return t(u)}:i?function(u){return i(u)}:null,Jp}var Wp,Ew;function SF(){if(Ew)return Wp;Ew=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,i=ll();return Wp=i.call(e,t),Wp}var ey,vw;function Zm(){if(vw)return ey;vw=1;var e,t=Gm(),i=aN(),a=sN(),u=uN(),c=cN(),f=EF(),d=cl(),m=lN(),h=fN(),x=dN(),v=hN(),I=pN(),C=yN(),B=gN(),$=AN(),O=Function,U=function(q){try{return O('"use strict"; return ('+q+").constructor;")()}catch{}},R=Js(),T=jd(),L=function(){throw new d},k=R?(function(){try{return arguments.callee,L}catch{try{return R(arguments,"callee").get}catch{return L}}})():L,Y=xN()(),oe=Xm(),te=IF(),F=vF(),_=Ym(),G=Km(),H={},ee=typeof Uint8Array>"u"||!oe?e:oe(Uint8Array),fe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&oe?oe([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%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%":O,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&oe?oe(oe([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!oe?e:oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":R,"%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"||!Y||!oe?e:oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&oe?oe(""[Symbol.iterator]()):e,"%Symbol%":Y?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":k,"%TypedArray%":ee,"%TypeError%":d,"%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%":G,"%Function.prototype.apply%":_,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":te,"%Math.abs%":h,"%Math.floor%":x,"%Math.max%":v,"%Math.min%":I,"%Math.pow%":C,"%Math.round%":B,"%Math.sign%":$,"%Reflect.getPrototypeOf%":F};if(oe)try{null.error}catch(q){var he=oe(oe(q));fe["%Error.prototype%"]=he}var N=function q(b){var D;if(b==="%AsyncFunction%")D=U("async function () {}");else if(b==="%GeneratorFunction%")D=U("function* () {}");else if(b==="%AsyncGeneratorFunction%")D=U("async function* () {}");else if(b==="%AsyncGenerator%"){var z=q("%AsyncGeneratorFunction%");z&&(D=z.prototype)}else if(b==="%AsyncIteratorPrototype%"){var V=q("%AsyncGenerator%");V&&oe&&(D=oe(V.prototype))}return fe[b]=D,D},ce={__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"]},me=ll(),W=SF(),S=me.call(G,Array.prototype.concat),Z=me.call(_,Array.prototype.splice),se=me.call(G,String.prototype.replace),Q=me.call(G,String.prototype.slice),M=me.call(G,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,pe=function(b){var D=Q(b,0,1),z=Q(b,-1);if(D==="%"&&z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&D!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var V=[];return se(b,P,function(ae,ue,A,y){V[V.length]=A?se(y,K,"$1"):ue||ae}),V},ge=function(b,D){var z=b,V;if(W(ce,z)&&(V=ce[z],z="%"+V[0]+"%"),W(fe,z)){var ae=fe[z];if(ae===H&&(ae=N(z)),typeof ae>"u"&&!D)throw new d("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:V,name:z,value:ae}}throw new f("intrinsic "+b+" does not exist!")};return ey=function(b,D){if(typeof b!="string"||b.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new d('"allowMissing" argument must be a boolean');if(M(/^%?[^%]*%?$/,b)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=pe(b),V=z.length>0?z[0]:"",ae=ge("%"+V+"%",D),ue=ae.name,A=ae.value,y=!1,g=ae.alias;g&&(V=g[0],Z(z,S([0,1],g)));for(var w=1,J=!0;w<z.length;w+=1){var ye=z[w],ve=Q(ye,0,1),je=Q(ye,-1);if((ve==='"'||ve==="'"||ve==="`"||je==='"'||je==="'"||je==="`")&&ve!==je)throw new f("property names with quotes must have matching quotes");if((ye==="constructor"||!J)&&(y=!0),V+="."+ye,ue="%"+V+"%",W(fe,ue))A=fe[ue];else if(A!=null){if(!(ye in A)){if(!D)throw new d("base intrinsic for "+b+" exists, but the property is not available.");return}if(R&&w+1>=z.length){var re=R(A,ye);J=!!re,J&&"get"in re&&!("originalValue"in re.get)?A=re.get:A=A[ye]}else J=W(A,ye),A=A[ye];J&&!y&&(fe[ue]=A)}}return A},ey}var ty,Iw;function Ws(){if(Iw)return ty;Iw=1;var e=Zm(),t=Vm(),i=t([e("%String.prototype.indexOf%")]);return ty=function(u,c){var f=e(u,!!c);return typeof f=="function"&&i(u,".prototype.")>-1?t([f]):f},ty}var ny,Fw;function IN(){if(Fw)return ny;Fw=1;var e=Md()(),t=Ws(),i=t("Object.prototype.toString"),a=function(d){return e&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:i(d)==="[object Arguments]"},u=function(d){return a(d)?!0:d!==null&&typeof d=="object"&&"length"in d&&typeof d.length=="number"&&d.length>=0&&i(d)!=="[object Array]"&&"callee"in d&&i(d.callee)==="[object Function]"},c=(function(){return a(arguments)})();return a.isLegacyArguments=u,ny=c?a:u,ny}var ry,Sw;function FN(){if(Sw)return ry;Sw=1;var e=Ws(),t=Md()(),i=SF(),a=Js(),u;if(t){var c=e("RegExp.prototype.exec"),f={},d=function(){throw f},m={toString:d,valueOf:d};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=d),u=function(I){if(!I||typeof I!="object")return!1;var C=a(I,"lastIndex"),B=C&&i(C,"value");if(!B)return!1;try{c(I,m)}catch($){return $===f}}}else{var h=e("Object.prototype.toString"),x="[object RegExp]";u=function(I){return!I||typeof I!="object"&&typeof I!="function"?!1:h(I)===x}}return ry=u,ry}var iy,Cw;function SN(){if(Cw)return iy;Cw=1;var e=Ws(),t=FN(),i=e("RegExp.prototype.exec"),a=cl();return iy=function(c){if(!t(c))throw new a("`regex` must be a RegExp");return function(d){return i(c,d)!==null}},iy}var oy,Bw;function CN(){if(Bw)return oy;Bw=1;const e=(function*(){}).constructor;return oy=()=>e,oy}var ay,Ow;function BN(){if(Ow)return ay;Ow=1;var e=Ws(),t=SN(),i=t(/^\s*(?:function)?\*/),a=Md()(),u=Xm(),c=e("Object.prototype.toString"),f=e("Function.prototype.toString"),d=CN();return ay=function(h){if(typeof h!="function")return!1;if(i(f(h)))return!0;if(!a){var x=c(h);return x==="[object GeneratorFunction]"}if(!u)return!1;var v=d();return v&&u(h)===v.prototype},ay}var sy,Tw;function ON(){if(Tw)return sy;Tw=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,a;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},t(function(){throw 42},null,i)}catch(R){R!==a&&(t=null)}else t=null;var u=/^\s*class\b/,c=function(T){try{var L=e.call(T);return u.test(L)}catch{return!1}},f=function(T){try{return c(T)?!1:(e.call(T),!0)}catch{return!1}},d=Object.prototype.toString,m="[object Object]",h="[object Function]",x="[object GeneratorFunction]",v="[object HTMLAllCollection]",I="[object HTML document.all class]",C="[object HTMLCollection]",B=typeof Symbol=="function"&&!!Symbol.toStringTag,$=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var U=document.all;d.call(U)===d.call(document.all)&&(O=function(T){if(($||!T)&&(typeof T>"u"||typeof T=="object"))try{var L=d.call(T);return(L===v||L===I||L===C||L===m)&&T("")==null}catch{}return!1})}return sy=t?function(T){if(O(T))return!0;if(!T||typeof T!="function"&&typeof T!="object")return!1;try{t(T,null,i)}catch(L){if(L!==a)return!1}return!c(T)&&f(T)}:function(T){if(O(T))return!0;if(!T||typeof T!="function"&&typeof T!="object")return!1;if(B)return f(T);if(c(T))return!1;var L=d.call(T);return L!==h&&L!==x&&!/^\[object HTML/.test(L)?!1:f(T)},sy}var uy,Rw;function TN(){if(Rw)return uy;Rw=1;var e=ON(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(m,h,x){for(var v=0,I=m.length;v<I;v++)i.call(m,v)&&(x==null?h(m[v],v,m):h.call(x,m[v],v,m))},u=function(m,h,x){for(var v=0,I=m.length;v<I;v++)x==null?h(m.charAt(v),v,m):h.call(x,m.charAt(v),v,m)},c=function(m,h,x){for(var v in m)i.call(m,v)&&(x==null?h(m[v],v,m):h.call(x,m[v],v,m))};function f(d){return t.call(d)==="[object Array]"}return uy=function(m,h,x){if(!e(h))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=x),f(m)?a(m,h,v):typeof m=="string"?u(m,h,v):c(m,h,v)},uy}var cy,Uw;function RN(){return Uw||(Uw=1,cy=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),cy}var ly,Dw;function UN(){if(Dw)return ly;Dw=1;var e=RN(),t=typeof globalThis>"u"?qc:globalThis;return ly=function(){for(var a=[],u=0;u<e.length;u++)typeof t[e[u]]=="function"&&(a[a.length]=e[u]);return a},ly}var fy={exports:{}},dy,Mw;function CF(){if(Mw)return dy;Mw=1;var e=jd(),t=EF(),i=cl(),a=Js();return dy=function(c,f,d){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,h=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,I=!!a&&a(c,f);if(e)e(c,f,{configurable:x===null&&I?I.configurable:!x,enumerable:m===null&&I?I.enumerable:!m,value:d,writable:h===null&&I?I.writable:!h});else if(v||!m&&!h&&!x)c[f]=d;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},dy}var hy,jw;function BF(){if(jw)return hy;jw=1;var e=jd(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hy=t,hy}var py,Nw;function DN(){if(Nw)return py;Nw=1;var e=Zm(),t=CF(),i=BF()(),a=Js(),u=cl(),c=e("%Math.floor%");return py=function(d,m){if(typeof d!="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 h=arguments.length>2&&!!arguments[2],x=!0,v=!0;if("length"in d&&a){var I=a(d,"length");I&&!I.configurable&&(x=!1),I&&!I.writable&&(v=!1)}return(x||v||!h)&&(i?t(d,"length",m,!0,!0):t(d,"length",m)),d},py}var yy,_w;function MN(){if(_w)return yy;_w=1;var e=ll(),t=Ym(),i=FF();return yy=function(){return i(e,t,arguments)},yy}var Pw;function Nd(){return Pw||(Pw=1,(function(e){var t=DN(),i=jd(),a=Vm(),u=MN();e.exports=function(f){var d=a(arguments),m=f.length-(arguments.length-1);return t(d,1+(m>0?m:0),!0)},i?i(e.exports,"apply",{value:u}):e.exports.apply=u})(fy)),fy.exports}var gy,$w;function OF(){if($w)return gy;$w=1;var e=TN(),t=UN(),i=Nd(),a=Ws(),u=Js(),c=Xm(),f=a("Object.prototype.toString"),d=Md()(),m=typeof globalThis>"u"?qc:globalThis,h=t(),x=a("String.prototype.slice"),v=a("Array.prototype.indexOf",!0)||function(O,U){for(var R=0;R<O.length;R+=1)if(O[R]===U)return R;return-1},I={__proto__:null};d&&u&&c?e(h,function($){var O=new m[$];if(Symbol.toStringTag in O&&c){var U=c(O),R=u(U,Symbol.toStringTag);if(!R&&U){var T=c(U);R=u(T,Symbol.toStringTag)}I["$"+$]=i(R.get)}}):e(h,function($){var O=new m[$],U=O.slice||O.set;U&&(I["$"+$]=i(U))});var C=function(O){var U=!1;return e(I,function(R,T){if(!U)try{"$"+R(O)===T&&(U=x(T,1))}catch{}}),U},B=function(O){var U=!1;return e(I,function(R,T){if(!U)try{R(O),U=x(T,1)}catch{}}),U};return gy=function(O){if(!O||typeof O!="object")return!1;if(!d){var U=x(f(O),8,-1);return v(h,U)>-1?U:U!=="Object"?!1:B(O)}return u?C(O):null},gy}var my,Lw;function jN(){if(Lw)return my;Lw=1;var e=OF();return my=function(i){return!!e(i)},my}var zw;function NN(){return zw||(zw=1,(function(e){var t=IN(),i=BN(),a=OF(),u=jN();function c(w){return w.call.bind(w)}var f=typeof BigInt<"u",d=typeof Symbol<"u",m=c(Object.prototype.toString),h=c(Number.prototype.valueOf),x=c(String.prototype.valueOf),v=c(Boolean.prototype.valueOf);if(f)var I=c(BigInt.prototype.valueOf);if(d)var C=c(Symbol.prototype.valueOf);function B(w,J){if(typeof w!="object")return!1;try{return J(w),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=i,e.isTypedArray=u;function $(w){return typeof Promise<"u"&&w instanceof Promise||w!==null&&typeof w=="object"&&typeof w.then=="function"&&typeof w.catch=="function"}e.isPromise=$;function O(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(w):u(w)||Q(w)}e.isArrayBufferView=O;function U(w){return a(w)==="Uint8Array"}e.isUint8Array=U;function R(w){return a(w)==="Uint8ClampedArray"}e.isUint8ClampedArray=R;function T(w){return a(w)==="Uint16Array"}e.isUint16Array=T;function L(w){return a(w)==="Uint32Array"}e.isUint32Array=L;function k(w){return a(w)==="Int8Array"}e.isInt8Array=k;function Y(w){return a(w)==="Int16Array"}e.isInt16Array=Y;function oe(w){return a(w)==="Int32Array"}e.isInt32Array=oe;function te(w){return a(w)==="Float32Array"}e.isFloat32Array=te;function F(w){return a(w)==="Float64Array"}e.isFloat64Array=F;function _(w){return a(w)==="BigInt64Array"}e.isBigInt64Array=_;function G(w){return a(w)==="BigUint64Array"}e.isBigUint64Array=G;function H(w){return m(w)==="[object Map]"}H.working=typeof Map<"u"&&H(new Map);function ee(w){return typeof Map>"u"?!1:H.working?H(w):w instanceof Map}e.isMap=ee;function fe(w){return m(w)==="[object Set]"}fe.working=typeof Set<"u"&&fe(new Set);function he(w){return typeof Set>"u"?!1:fe.working?fe(w):w instanceof Set}e.isSet=he;function N(w){return m(w)==="[object WeakMap]"}N.working=typeof WeakMap<"u"&&N(new WeakMap);function ce(w){return typeof WeakMap>"u"?!1:N.working?N(w):w instanceof WeakMap}e.isWeakMap=ce;function me(w){return m(w)==="[object WeakSet]"}me.working=typeof WeakSet<"u"&&me(new WeakSet);function W(w){return me(w)}e.isWeakSet=W;function S(w){return m(w)==="[object ArrayBuffer]"}S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer);function Z(w){return typeof ArrayBuffer>"u"?!1:S.working?S(w):w instanceof ArrayBuffer}e.isArrayBuffer=Z;function se(w){return m(w)==="[object DataView]"}se.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&se(new DataView(new ArrayBuffer(1),0,1));function Q(w){return typeof DataView>"u"?!1:se.working?se(w):w instanceof DataView}e.isDataView=Q;var M=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function P(w){return m(w)==="[object SharedArrayBuffer]"}function K(w){return typeof M>"u"?!1:(typeof P.working>"u"&&(P.working=P(new M)),P.working?P(w):w instanceof M)}e.isSharedArrayBuffer=K;function pe(w){return m(w)==="[object AsyncFunction]"}e.isAsyncFunction=pe;function ge(w){return m(w)==="[object Map Iterator]"}e.isMapIterator=ge;function q(w){return m(w)==="[object Set Iterator]"}e.isSetIterator=q;function b(w){return m(w)==="[object Generator]"}e.isGeneratorObject=b;function D(w){return m(w)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=D;function z(w){return B(w,h)}e.isNumberObject=z;function V(w){return B(w,x)}e.isStringObject=V;function ae(w){return B(w,v)}e.isBooleanObject=ae;function ue(w){return f&&B(w,I)}e.isBigIntObject=ue;function A(w){return d&&B(w,C)}e.isSymbolObject=A;function y(w){return z(w)||V(w)||ae(w)||ue(w)||A(w)}e.isBoxedPrimitive=y;function g(w){return typeof Uint8Array<"u"&&(Z(w)||K(w))}e.isAnyArrayBuffer=g,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(w){Object.defineProperty(e,w,{enumerable:!1,value:function(){throw new Error(w+" is not supported in userland")}})})})(bp)),bp}var Ay,qw;function _N(){return qw||(qw=1,Ay=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ay}var Of={exports:{}},Qw;function PN(){return Qw||(Qw=1,typeof Object.create=="function"?Of.exports=function(t,i){i&&(t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Of.exports=function(t,i){if(i){t.super_=i;var a=function(){};a.prototype=i.prototype,t.prototype=new a,t.prototype.constructor=t}}),Of.exports}var Hw;function zc(){return Hw||(Hw=1,(function(e){var t={},i=Object.getOwnPropertyDescriptors||function(M){for(var P=Object.keys(M),K={},pe=0;pe<P.length;pe++)K[P[pe]]=Object.getOwnPropertyDescriptor(M,P[pe]);return K},a=/%[sdj%]/g;e.format=function(Q){if(!Y(Q)){for(var M=[],P=0;P<arguments.length;P++)M.push(d(arguments[P]));return M.join(" ")}for(var P=1,K=arguments,pe=K.length,ge=String(Q).replace(a,function(b){if(b==="%%")return"%";if(P>=pe)return b;switch(b){case"%s":return String(K[P++]);case"%d":return Number(K[P++]);case"%j":try{return JSON.stringify(K[P++])}catch{return"[Circular]"}default:return b}}),q=K[P];P<pe;q=K[++P])T(q)||!_(q)?ge+=" "+q:ge+=" "+d(q);return ge},e.deprecate=function(Q,M){if(typeof ft<"u"&&ft.noDeprecation===!0)return Q;if(typeof ft>"u")return function(){return e.deprecate(Q,M).apply(this,arguments)};var P=!1;function K(){if(!P){if(ft.throwDeprecation)throw new Error(M);ft.traceDeprecation?console.trace(M):console.error(M),P=!0}return Q.apply(this,arguments)}return K};var u={},c=/^$/;if(t.NODE_DEBUG){var f=t.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+f+"$","i")}e.debuglog=function(Q){if(Q=Q.toUpperCase(),!u[Q])if(c.test(Q)){var M=ft.pid;u[Q]=function(){var P=e.format.apply(e,arguments);console.error("%s %d: %s",Q,M,P)}}else u[Q]=function(){};return u[Q]};function d(Q,M){var P={seen:[],stylize:h};return arguments.length>=3&&(P.depth=arguments[2]),arguments.length>=4&&(P.colors=arguments[3]),R(M)?P.showHidden=M:M&&e._extend(P,M),te(P.showHidden)&&(P.showHidden=!1),te(P.depth)&&(P.depth=2),te(P.colors)&&(P.colors=!1),te(P.customInspect)&&(P.customInspect=!0),P.colors&&(P.stylize=m),v(P,Q,P.depth)}e.inspect=d,d.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]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(Q,M){var P=d.styles[M];return P?"\x1B["+d.colors[P][0]+"m"+Q+"\x1B["+d.colors[P][1]+"m":Q}function h(Q,M){return Q}function x(Q){var M={};return Q.forEach(function(P,K){M[P]=!0}),M}function v(Q,M,P){if(Q.customInspect&&M&&ee(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var K=M.inspect(P,Q);return Y(K)||(K=v(Q,K,P)),K}var pe=I(Q,M);if(pe)return pe;var ge=Object.keys(M),q=x(ge);if(Q.showHidden&&(ge=Object.getOwnPropertyNames(M)),H(M)&&(ge.indexOf("message")>=0||ge.indexOf("description")>=0))return C(M);if(ge.length===0){if(ee(M)){var b=M.name?": "+M.name:"";return Q.stylize("[Function"+b+"]","special")}if(F(M))return Q.stylize(RegExp.prototype.toString.call(M),"regexp");if(G(M))return Q.stylize(Date.prototype.toString.call(M),"date");if(H(M))return C(M)}var D="",z=!1,V=["{","}"];if(U(M)&&(z=!0,V=["[","]"]),ee(M)){var ae=M.name?": "+M.name:"";D=" [Function"+ae+"]"}if(F(M)&&(D=" "+RegExp.prototype.toString.call(M)),G(M)&&(D=" "+Date.prototype.toUTCString.call(M)),H(M)&&(D=" "+C(M)),ge.length===0&&(!z||M.length==0))return V[0]+D+V[1];if(P<0)return F(M)?Q.stylize(RegExp.prototype.toString.call(M),"regexp"):Q.stylize("[Object]","special");Q.seen.push(M);var ue;return z?ue=B(Q,M,P,q,ge):ue=ge.map(function(A){return $(Q,M,P,q,A,z)}),Q.seen.pop(),O(ue,D,V)}function I(Q,M){if(te(M))return Q.stylize("undefined","undefined");if(Y(M)){var P="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(P,"string")}if(k(M))return Q.stylize(""+M,"number");if(R(M))return Q.stylize(""+M,"boolean");if(T(M))return Q.stylize("null","null")}function C(Q){return"["+Error.prototype.toString.call(Q)+"]"}function B(Q,M,P,K,pe){for(var ge=[],q=0,b=M.length;q<b;++q)W(M,String(q))?ge.push($(Q,M,P,K,String(q),!0)):ge.push("");return pe.forEach(function(D){D.match(/^\d+$/)||ge.push($(Q,M,P,K,D,!0))}),ge}function $(Q,M,P,K,pe,ge){var q,b,D;if(D=Object.getOwnPropertyDescriptor(M,pe)||{value:M[pe]},D.get?D.set?b=Q.stylize("[Getter/Setter]","special"):b=Q.stylize("[Getter]","special"):D.set&&(b=Q.stylize("[Setter]","special")),W(K,pe)||(q="["+pe+"]"),b||(Q.seen.indexOf(D.value)<0?(T(P)?b=v(Q,D.value,null):b=v(Q,D.value,P-1),b.indexOf(`
|
|
62
|
-
`)>-1&&(ge?b=b.split(`
|
|
63
|
-
`).map(function(z){return" "+z}).join(`
|
|
64
|
-
`).slice(2):b=`
|
|
65
|
-
`+b.split(`
|
|
66
|
-
`).map(function(z){return" "+z}).join(`
|
|
67
|
-
`))):b=Q.stylize("[Circular]","special")),te(q)){if(ge&&pe.match(/^\d+$/))return b;q=JSON.stringify(""+pe),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=Q.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=Q.stylize(q,"string"))}return q+": "+b}function O(Q,M,P){var K=Q.reduce(function(pe,ge){return ge.indexOf(`
|
|
68
|
-
`)>=0,pe+ge.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?P[0]+(M===""?"":M+`
|
|
69
|
-
`)+" "+Q.join(`,
|
|
70
|
-
`)+" "+P[1]:P[0]+M+" "+Q.join(", ")+" "+P[1]}e.types=NN();function U(Q){return Array.isArray(Q)}e.isArray=U;function R(Q){return typeof Q=="boolean"}e.isBoolean=R;function T(Q){return Q===null}e.isNull=T;function L(Q){return Q==null}e.isNullOrUndefined=L;function k(Q){return typeof Q=="number"}e.isNumber=k;function Y(Q){return typeof Q=="string"}e.isString=Y;function oe(Q){return typeof Q=="symbol"}e.isSymbol=oe;function te(Q){return Q===void 0}e.isUndefined=te;function F(Q){return _(Q)&&he(Q)==="[object RegExp]"}e.isRegExp=F,e.types.isRegExp=F;function _(Q){return typeof Q=="object"&&Q!==null}e.isObject=_;function G(Q){return _(Q)&&he(Q)==="[object Date]"}e.isDate=G,e.types.isDate=G;function H(Q){return _(Q)&&(he(Q)==="[object Error]"||Q instanceof Error)}e.isError=H,e.types.isNativeError=H;function ee(Q){return typeof Q=="function"}e.isFunction=ee;function fe(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||typeof Q>"u"}e.isPrimitive=fe,e.isBuffer=_N();function he(Q){return Object.prototype.toString.call(Q)}function N(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}var ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var Q=new Date,M=[N(Q.getHours()),N(Q.getMinutes()),N(Q.getSeconds())].join(":");return[Q.getDate(),ce[Q.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",me(),e.format.apply(e,arguments))},e.inherits=PN(),e._extend=function(Q,M){if(!M||!_(M))return Q;for(var P=Object.keys(M),K=P.length;K--;)Q[P[K]]=M[P[K]];return Q};function W(Q,M){return Object.prototype.hasOwnProperty.call(Q,M)}var S=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(S&&M[S]){var P=M[S];if(typeof P!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(P,S,{value:P,enumerable:!1,writable:!1,configurable:!0}),P}function P(){for(var K,pe,ge=new Promise(function(D,z){K=D,pe=z}),q=[],b=0;b<arguments.length;b++)q.push(arguments[b]);q.push(function(D,z){D?pe(D):K(z)});try{M.apply(this,q)}catch(D){pe(D)}return ge}return Object.setPrototypeOf(P,Object.getPrototypeOf(M)),S&&Object.defineProperty(P,S,{value:P,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(P,i(M))},e.promisify.custom=S;function Z(Q,M){if(!Q){var P=new Error("Promise was rejected with a falsy value");P.reason=Q,Q=P}return M(Q)}function se(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var P=[],K=0;K<arguments.length;K++)P.push(arguments[K]);var pe=P.pop();if(typeof pe!="function")throw new TypeError("The last argument must be of type Function");var ge=this,q=function(){return pe.apply(ge,arguments)};Q.apply(this,P).then(function(b){ft.nextTick(q.bind(null,null,b))},function(b){ft.nextTick(Z.bind(null,b,q))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(Q)),Object.defineProperties(M,i(Q)),M}e.callbackify=se})(Ap)),Ap}var kw;function TF(){if(kw)return mp;kw=1;function e(R){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},e(R)}function t(R,T,L){return Object.defineProperty(R,"prototype",{writable:!1}),R}function i(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function a(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&u(R,T)}function u(R,T){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,Y){return k.__proto__=Y,k},u(R,T)}function c(R){var T=m();return function(){var k=h(R),Y;if(T){var oe=h(this).constructor;Y=Reflect.construct(k,arguments,oe)}else Y=k.apply(this,arguments);return f(this,Y)}}function f(R,T){if(T&&(e(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(R)}function d(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}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 h(R){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},h(R)}var x={},v,I;function C(R,T,L){L||(L=Error);function k(oe,te,F){return typeof T=="string"?T:T(oe,te,F)}var Y=(function(oe){a(F,oe);var te=c(F);function F(_,G,H){var ee;return i(this,F),ee=te.call(this,k(_,G,H)),ee.code=R,ee}return t(F)})(L);x[R]=Y}function B(R,T){if(Array.isArray(R)){var L=R.length;return R=R.map(function(k){return String(k)}),L>2?"one of ".concat(T," ").concat(R.slice(0,L-1).join(", "),", or ")+R[L-1]:L===2?"one of ".concat(T," ").concat(R[0]," or ").concat(R[1]):"of ".concat(T," ").concat(R[0])}else return"of ".concat(T," ").concat(String(R))}function $(R,T,L){return R.substr(0,T.length)===T}function O(R,T,L){return(L===void 0||L>R.length)&&(L=R.length),R.substring(L-T.length,L)===T}function U(R,T,L){return typeof L!="number"&&(L=0),L+T.length>R.length?!1:R.indexOf(T,L)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(R,T,L){v===void 0&&(v=Cg()),v(typeof R=="string","'name' must be a string");var k;typeof T=="string"&&$(T,"not ")?(k="must not be",T=T.replace(/^not /,"")):k="must be";var Y;if(O(R," argument"))Y="The ".concat(R," ").concat(k," ").concat(B(T,"type"));else{var oe=U(R,".")?"property":"argument";Y='The "'.concat(R,'" ').concat(oe," ").concat(k," ").concat(B(T,"type"))}return Y+=". Received type ".concat(e(L)),Y},TypeError),C("ERR_INVALID_ARG_VALUE",function(R,T){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";I===void 0&&(I=zc());var k=I.inspect(T);return k.length>128&&(k="".concat(k.slice(0,128),"...")),"The argument '".concat(R,"' ").concat(L,". Received ").concat(k)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(R,T,L){var k;return L&&L.constructor&&L.constructor.name?k="instance of ".concat(L.constructor.name):k="type ".concat(e(L)),"Expected ".concat(R,' to be returned from the "').concat(T,'"')+" function but got ".concat(k,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var R=arguments.length,T=new Array(R),L=0;L<R;L++)T[L]=arguments[L];v===void 0&&(v=Cg()),v(T.length>0,"At least one arg needs to be specified");var k="The ",Y=T.length;switch(T=T.map(function(oe){return'"'.concat(oe,'"')}),Y){case 1:k+="".concat(T[0]," argument");break;case 2:k+="".concat(T[0]," and ").concat(T[1]," arguments");break;default:k+=T.slice(0,Y-1).join(", "),k+=", and ".concat(T[Y-1]," arguments");break}return"".concat(k," must be specified")},TypeError),mp.codes=x,mp}var by,Gw;function $N(){if(Gw)return by;Gw=1;function e(W,S){var Z=Object.keys(W);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(W);S&&(se=se.filter(function(Q){return Object.getOwnPropertyDescriptor(W,Q).enumerable})),Z.push.apply(Z,se)}return Z}function t(W){for(var S=1;S<arguments.length;S++){var Z=arguments[S]!=null?arguments[S]:{};S%2?e(Object(Z),!0).forEach(function(se){i(W,se,Z[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(Z)):e(Object(Z)).forEach(function(se){Object.defineProperty(W,se,Object.getOwnPropertyDescriptor(Z,se))})}return W}function i(W,S,Z){return S=f(S),S in W?Object.defineProperty(W,S,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[S]=Z,W}function a(W,S){if(!(W instanceof S))throw new TypeError("Cannot call a class as a function")}function u(W,S){for(var Z=0;Z<S.length;Z++){var se=S[Z];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(W,f(se.key),se)}}function c(W,S,Z){return S&&u(W.prototype,S),Object.defineProperty(W,"prototype",{writable:!1}),W}function f(W){var S=d(W,"string");return R(S)==="symbol"?S:String(S)}function d(W,S){if(R(W)!=="object"||W===null)return W;var Z=W[Symbol.toPrimitive];if(Z!==void 0){var se=Z.call(W,S);if(R(se)!=="object")return se;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}function m(W,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(S&&S.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),S&&O(W,S)}function h(W){var S=B();return function(){var se=U(W),Q;if(S){var M=U(this).constructor;Q=Reflect.construct(se,arguments,M)}else Q=se.apply(this,arguments);return x(this,Q)}}function x(W,S){if(S&&(R(S)==="object"||typeof S=="function"))return S;if(S!==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 I(W){var S=typeof Map=="function"?new Map:void 0;return I=function(se){if(se===null||!$(se))return se;if(typeof se!="function")throw new TypeError("Super expression must either be null or a function");if(typeof S<"u"){if(S.has(se))return S.get(se);S.set(se,Q)}function Q(){return C(se,arguments,U(this).constructor)}return Q.prototype=Object.create(se.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),O(Q,se)},I(W)}function C(W,S,Z){return B()?C=Reflect.construct.bind():C=function(Q,M,P){var K=[null];K.push.apply(K,M);var pe=Function.bind.apply(Q,K),ge=new pe;return P&&O(ge,P.prototype),ge},C.apply(null,arguments)}function B(){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 $(W){return Function.toString.call(W).indexOf("[native code]")!==-1}function O(W,S){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(se,Q){return se.__proto__=Q,se},O(W,S)}function U(W){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},U(W)}function R(W){"@babel/helpers - typeof";return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},R(W)}var T=zc(),L=T.inspect,k=TF(),Y=k.codes.ERR_INVALID_ARG_TYPE;function oe(W,S,Z){return(Z===void 0||Z>W.length)&&(Z=W.length),W.substring(Z-S.length,Z)===S}function te(W,S){if(S=Math.floor(S),W.length==0||S==0)return"";var Z=W.length*S;for(S=Math.floor(Math.log(S)/Math.log(2));S;)W+=W,S--;return W+=W.substring(0,Z-W.length),W}var F="",_="",G="",H="",ee={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:"},fe=10;function he(W){var S=Object.keys(W),Z=Object.create(Object.getPrototypeOf(W));return S.forEach(function(se){Z[se]=W[se]}),Object.defineProperty(Z,"message",{value:W.message}),Z}function N(W){return L(W,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ce(W,S,Z){var se="",Q="",M=0,P="",K=!1,pe=N(W),ge=pe.split(`
|
|
71
|
-
`),q=N(S).split(`
|
|
72
|
-
`),b=0,D="";if(Z==="strictEqual"&&R(W)==="object"&&R(S)==="object"&&W!==null&&S!==null&&(Z="strictEqualObject"),ge.length===1&&q.length===1&&ge[0]!==q[0]){var z=ge[0].length+q[0].length;if(z<=fe){if((R(W)!=="object"||W===null)&&(R(S)!=="object"||S===null)&&(W!==0||S!==0))return"".concat(ee[Z],`
|
|
73
|
-
|
|
74
|
-
`)+"".concat(ge[0]," !== ").concat(q[0],`
|
|
75
|
-
`)}else if(Z!=="strictEqualObject"){var V=ft.stderr&&ft.stderr.isTTY?ft.stderr.columns:80;if(z<V){for(;ge[0][b]===q[0][b];)b++;b>2&&(D=`
|
|
76
|
-
`.concat(te(" ",b),"^"),b=0)}}}for(var ae=ge[ge.length-1],ue=q[q.length-1];ae===ue&&(b++<2?P=`
|
|
77
|
-
`.concat(ae).concat(P):se=ae,ge.pop(),q.pop(),!(ge.length===0||q.length===0));)ae=ge[ge.length-1],ue=q[q.length-1];var A=Math.max(ge.length,q.length);if(A===0){var y=pe.split(`
|
|
78
|
-
`);if(y.length>30)for(y[26]="".concat(F,"...").concat(H);y.length>27;)y.pop();return"".concat(ee.notIdentical,`
|
|
79
|
-
|
|
80
|
-
`).concat(y.join(`
|
|
81
|
-
`),`
|
|
82
|
-
`)}b>3&&(P=`
|
|
83
|
-
`.concat(F,"...").concat(H).concat(P),K=!0),se!==""&&(P=`
|
|
84
|
-
`.concat(se).concat(P),se="");var g=0,w=ee[Z]+`
|
|
85
|
-
`.concat(_,"+ actual").concat(H," ").concat(G,"- expected").concat(H),J=" ".concat(F,"...").concat(H," Lines skipped");for(b=0;b<A;b++){var ye=b-M;if(ge.length<b+1)ye>1&&b>2&&(ye>4?(Q+=`
|
|
86
|
-
`.concat(F,"...").concat(H),K=!0):ye>3&&(Q+=`
|
|
87
|
-
`.concat(q[b-2]),g++),Q+=`
|
|
88
|
-
`.concat(q[b-1]),g++),M=b,se+=`
|
|
89
|
-
`.concat(G,"-").concat(H," ").concat(q[b]),g++;else if(q.length<b+1)ye>1&&b>2&&(ye>4?(Q+=`
|
|
90
|
-
`.concat(F,"...").concat(H),K=!0):ye>3&&(Q+=`
|
|
91
|
-
`.concat(ge[b-2]),g++),Q+=`
|
|
92
|
-
`.concat(ge[b-1]),g++),M=b,Q+=`
|
|
93
|
-
`.concat(_,"+").concat(H," ").concat(ge[b]),g++;else{var ve=q[b],je=ge[b],re=je!==ve&&(!oe(je,",")||je.slice(0,-1)!==ve);re&&oe(ve,",")&&ve.slice(0,-1)===je&&(re=!1,je+=","),re?(ye>1&&b>2&&(ye>4?(Q+=`
|
|
94
|
-
`.concat(F,"...").concat(H),K=!0):ye>3&&(Q+=`
|
|
95
|
-
`.concat(ge[b-2]),g++),Q+=`
|
|
96
|
-
`.concat(ge[b-1]),g++),M=b,Q+=`
|
|
97
|
-
`.concat(_,"+").concat(H," ").concat(je),se+=`
|
|
98
|
-
`.concat(G,"-").concat(H," ").concat(ve),g+=2):(Q+=se,se="",(ye===1||b===0)&&(Q+=`
|
|
99
|
-
`.concat(je),g++))}if(g>20&&b<A-2)return"".concat(w).concat(J,`
|
|
100
|
-
`).concat(Q,`
|
|
101
|
-
`).concat(F,"...").concat(H).concat(se,`
|
|
102
|
-
`)+"".concat(F,"...").concat(H)}return"".concat(w).concat(K?J:"",`
|
|
103
|
-
`).concat(Q).concat(se).concat(P).concat(D)}var me=(function(W,S){m(se,W);var Z=h(se);function se(Q){var M;if(a(this,se),R(Q)!=="object"||Q===null)throw new Y("options","Object",Q);var P=Q.message,K=Q.operator,pe=Q.stackStartFn,ge=Q.actual,q=Q.expected,b=Error.stackTraceLimit;if(Error.stackTraceLimit=0,P!=null)M=Z.call(this,String(P));else if(ft.stderr&&ft.stderr.isTTY&&(ft.stderr&&ft.stderr.getColorDepth&&ft.stderr.getColorDepth()!==1?(F="\x1B[34m",_="\x1B[32m",H="\x1B[39m",G="\x1B[31m"):(F="",_="",H="",G="")),R(ge)==="object"&&ge!==null&&R(q)==="object"&&q!==null&&"stack"in ge&&ge instanceof Error&&"stack"in q&&q instanceof Error&&(ge=he(ge),q=he(q)),K==="deepStrictEqual"||K==="strictEqual")M=Z.call(this,ce(ge,q,K));else if(K==="notDeepStrictEqual"||K==="notStrictEqual"){var D=ee[K],z=N(ge).split(`
|
|
104
|
-
`);if(K==="notStrictEqual"&&R(ge)==="object"&&ge!==null&&(D=ee.notStrictEqualObject),z.length>30)for(z[26]="".concat(F,"...").concat(H);z.length>27;)z.pop();z.length===1?M=Z.call(this,"".concat(D," ").concat(z[0])):M=Z.call(this,"".concat(D,`
|
|
105
|
-
|
|
106
|
-
`).concat(z.join(`
|
|
107
|
-
`),`
|
|
108
|
-
`))}else{var V=N(ge),ae="",ue=ee[K];K==="notDeepEqual"||K==="notEqual"?(V="".concat(ee[K],`
|
|
109
|
-
|
|
110
|
-
`).concat(V),V.length>1024&&(V="".concat(V.slice(0,1021),"..."))):(ae="".concat(N(q)),V.length>512&&(V="".concat(V.slice(0,509),"...")),ae.length>512&&(ae="".concat(ae.slice(0,509),"...")),K==="deepEqual"||K==="equal"?V="".concat(ue,`
|
|
111
|
-
|
|
112
|
-
`).concat(V,`
|
|
113
|
-
|
|
114
|
-
should equal
|
|
115
|
-
|
|
116
|
-
`):ae=" ".concat(K," ").concat(ae)),M=Z.call(this,"".concat(V).concat(ae))}return Error.stackTraceLimit=b,M.generatedMessage=!P,Object.defineProperty(v(M),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),M.code="ERR_ASSERTION",M.actual=ge,M.expected=q,M.operator=K,Error.captureStackTrace&&Error.captureStackTrace(v(M),pe),M.stack,M.name="AssertionError",x(M)}return c(se,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:S,value:function(M,P){return L(this,t(t({},P),{},{customInspect:!1,depth:0}))}}]),se})(I(Error),L.custom);return by=me,by}var xy,Kw;function RF(){if(Kw)return xy;Kw=1;var e=Object.prototype.toString;return xy=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},xy}var wy,Yw;function LN(){if(Yw)return wy;Yw=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=RF(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),f=u.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],m=function(I){var C=I.constructor;return C&&C.prototype===I},h={$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},x=(function(){if(typeof window>"u")return!1;for(var I in window)try{if(!h["$"+I]&&t.call(window,I)&&window[I]!==null&&typeof window[I]=="object")try{m(window[I])}catch{return!0}}catch{return!0}return!1})(),v=function(I){if(typeof window>"u"||!x)return m(I);try{return m(I)}catch{return!1}};e=function(C){var B=C!==null&&typeof C=="object",$=i.call(C)==="[object Function]",O=a(C),U=B&&i.call(C)==="[object String]",R=[];if(!B&&!$&&!O)throw new TypeError("Object.keys called on a non-object");var T=f&&$;if(U&&C.length>0&&!t.call(C,0))for(var L=0;L<C.length;++L)R.push(String(L));if(O&&C.length>0)for(var k=0;k<C.length;++k)R.push(String(k));else for(var Y in C)!(T&&Y==="prototype")&&t.call(C,Y)&&R.push(String(Y));if(c)for(var oe=v(C),te=0;te<d.length;++te)!(oe&&d[te]==="constructor")&&t.call(C,d[te])&&R.push(d[te]);return R}}return wy=e,wy}var Ey,Vw;function UF(){if(Vw)return Ey;Vw=1;var e=Array.prototype.slice,t=RF(),i=Object.keys,a=i?function(f){return i(f)}:LN(),u=Object.keys;return a.shim=function(){if(Object.keys){var f=(function(){var d=Object.keys(arguments);return d&&d.length===arguments.length})(1,2);f||(Object.keys=function(m){return t(m)?u(e.call(m)):u(m)})}else Object.keys=a;return Object.keys||a},Ey=a,Ey}var vy,Xw;function zN(){if(Xw)return vy;Xw=1;var e=UF(),t=km()(),i=Ws(),a=Gm(),u=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),f=t?a.getOwnPropertySymbols:null;return vy=function(m,h){if(m==null)throw new TypeError("target must be an object");var x=a(m);if(arguments.length===1)return x;for(var v=1;v<arguments.length;++v){var I=a(arguments[v]),C=e(I),B=t&&(a.getOwnPropertySymbols||f);if(B)for(var $=B(I),O=0;O<$.length;++O){var U=$[O];c(I,U)&&u(C,U)}for(var R=0;R<C.length;++R){var T=C[R];if(c(I,T)){var L=I[T];x[T]=L}}}return x},vy}var Iy,Zw;function qN(){if(Zw)return Iy;Zw=1;var e=zN(),t=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 d=Object.assign({},c),m="";for(var h in d)m+=h;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 Iy=function(){return!Object.assign||t()||i()?e:Object.assign},Iy}var Fy,Jw;function DF(){if(Jw)return Fy;Jw=1;var e=function(t){return t!==t};return Fy=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},Fy}var Sy,Ww;function Jm(){if(Ww)return Sy;Ww=1;var e=DF();return Sy=function(){return typeof Object.is=="function"?Object.is:e},Sy}var Cy,eE;function QN(){if(eE)return Cy;eE=1;var e=Zm(),t=Nd(),i=t(e("String.prototype.indexOf"));return Cy=function(u,c){var f=e(u,!!c);return typeof f=="function"&&i(u,".prototype.")>-1?t(f):f},Cy}var By,tE;function _d(){if(tE)return By;tE=1;var e=UF(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,u=CF(),c=function(h){return typeof h=="function"&&i.call(h)==="[object Function]"},f=BF()(),d=function(h,x,v,I){if(x in h){if(I===!0){if(h[x]===v)return}else if(!c(I)||!I())return}f?u(h,x,v,!0):u(h,x,v)},m=function(h,x){var v=arguments.length>2?arguments[2]:{},I=e(x);t&&(I=a.call(I,Object.getOwnPropertySymbols(x)));for(var C=0;C<I.length;C+=1)d(h,I[C],x[I[C]],v[I[C]])};return m.supportsDescriptors=!!f,By=m,By}var Oy,nE;function HN(){if(nE)return Oy;nE=1;var e=Jm(),t=_d();return Oy=function(){var a=e();return t(Object,{is:a},{is:function(){return Object.is!==a}}),a},Oy}var Ty,rE;function kN(){if(rE)return Ty;rE=1;var e=_d(),t=Nd(),i=DF(),a=Jm(),u=HN(),c=t(a(),Object);return e(c,{getPolyfill:a,implementation:i,shim:u}),Ty=c,Ty}var Ry,iE;function MF(){return iE||(iE=1,Ry=function(t){return t!==t}),Ry}var Uy,oE;function jF(){if(oE)return Uy;oE=1;var e=MF();return Uy=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Uy}var Dy,aE;function GN(){if(aE)return Dy;aE=1;var e=_d(),t=jF();return Dy=function(){var a=t();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},Dy}var My,sE;function KN(){if(sE)return My;sE=1;var e=Nd(),t=_d(),i=MF(),a=jF(),u=GN(),c=e(a(),Number);return t(c,{getPolyfill:a,implementation:i,shim:u}),My=c,My}var jy,uE;function YN(){if(uE)return jy;uE=1;function e(re,ie){return c(re)||u(re,ie)||i(re,ie)||t()}function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
117
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(re,ie){if(re){if(typeof re=="string")return a(re,ie);var we=Object.prototype.toString.call(re).slice(8,-1);if(we==="Object"&&re.constructor&&(we=re.constructor.name),we==="Map"||we==="Set")return Array.from(re);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return a(re,ie)}}function a(re,ie){(ie==null||ie>re.length)&&(ie=re.length);for(var we=0,Se=new Array(ie);we<ie;we++)Se[we]=re[we];return Se}function u(re,ie){var we=re==null?null:typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(we!=null){var Se,Ue,_e,Le,Qe=[],He=!0,Ye=!1;try{if(_e=(we=we.call(re)).next,ie!==0)for(;!(He=(Se=_e.call(we)).done)&&(Qe.push(Se.value),Qe.length!==ie);He=!0);}catch(Ve){Ye=!0,Ue=Ve}finally{try{if(!He&&we.return!=null&&(Le=we.return(),Object(Le)!==Le))return}finally{if(Ye)throw Ue}}return Qe}}function c(re){if(Array.isArray(re))return re}function f(re){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},f(re)}var d=/a/g.flags!==void 0,m=function(ie){var we=[];return ie.forEach(function(Se){return we.push(Se)}),we},h=function(ie){var we=[];return ie.forEach(function(Se,Ue){return we.push([Ue,Se])}),we},x=Object.is?Object.is:kN(),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},I=Number.isNaN?Number.isNaN:KN();function C(re){return re.call.bind(re)}var B=C(Object.prototype.hasOwnProperty),$=C(Object.prototype.propertyIsEnumerable),O=C(Object.prototype.toString),U=zc().types,R=U.isAnyArrayBuffer,T=U.isArrayBufferView,L=U.isDate,k=U.isMap,Y=U.isRegExp,oe=U.isSet,te=U.isNativeError,F=U.isBoxedPrimitive,_=U.isNumberObject,G=U.isStringObject,H=U.isBooleanObject,ee=U.isBigIntObject,fe=U.isSymbolObject,he=U.isFloat32Array,N=U.isFloat64Array;function ce(re){if(re.length===0||re.length>10)return!0;for(var ie=0;ie<re.length;ie++){var we=re.charCodeAt(ie);if(we<48||we>57)return!0}return re.length===10&&re>=Math.pow(2,32)}function me(re){return Object.keys(re).filter(ce).concat(v(re).filter(Object.prototype.propertyIsEnumerable.bind(re)))}/*!
|
|
118
|
-
* The buffer module from node.js, for the browser.
|
|
119
|
-
*
|
|
120
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
121
|
-
* @license MIT
|
|
122
|
-
*/function W(re,ie){if(re===ie)return 0;for(var we=re.length,Se=ie.length,Ue=0,_e=Math.min(we,Se);Ue<_e;++Ue)if(re[Ue]!==ie[Ue]){we=re[Ue],Se=ie[Ue];break}return we<Se?-1:Se<we?1:0}var S=!0,Z=!1,se=0,Q=1,M=2,P=3;function K(re,ie){return d?re.source===ie.source&&re.flags===ie.flags:RegExp.prototype.toString.call(re)===RegExp.prototype.toString.call(ie)}function pe(re,ie){if(re.byteLength!==ie.byteLength)return!1;for(var we=0;we<re.byteLength;we++)if(re[we]!==ie[we])return!1;return!0}function ge(re,ie){return re.byteLength!==ie.byteLength?!1:W(new Uint8Array(re.buffer,re.byteOffset,re.byteLength),new Uint8Array(ie.buffer,ie.byteOffset,ie.byteLength))===0}function q(re,ie){return re.byteLength===ie.byteLength&&W(new Uint8Array(re),new Uint8Array(ie))===0}function b(re,ie){return _(re)?_(ie)&&x(Number.prototype.valueOf.call(re),Number.prototype.valueOf.call(ie)):G(re)?G(ie)&&String.prototype.valueOf.call(re)===String.prototype.valueOf.call(ie):H(re)?H(ie)&&Boolean.prototype.valueOf.call(re)===Boolean.prototype.valueOf.call(ie):ee(re)?ee(ie)&&BigInt.prototype.valueOf.call(re)===BigInt.prototype.valueOf.call(ie):fe(ie)&&Symbol.prototype.valueOf.call(re)===Symbol.prototype.valueOf.call(ie)}function D(re,ie,we,Se){if(re===ie)return re!==0?!0:we?x(re,ie):!0;if(we){if(f(re)!=="object")return typeof re=="number"&&I(re)&&I(ie);if(f(ie)!=="object"||re===null||ie===null||Object.getPrototypeOf(re)!==Object.getPrototypeOf(ie))return!1}else{if(re===null||f(re)!=="object")return ie===null||f(ie)!=="object"?re==ie:!1;if(ie===null||f(ie)!=="object")return!1}var Ue=O(re),_e=O(ie);if(Ue!==_e)return!1;if(Array.isArray(re)){if(re.length!==ie.length)return!1;var Le=me(re),Qe=me(ie);return Le.length!==Qe.length?!1:V(re,ie,we,Se,Q,Le)}if(Ue==="[object Object]"&&(!k(re)&&k(ie)||!oe(re)&&oe(ie)))return!1;if(L(re)){if(!L(ie)||Date.prototype.getTime.call(re)!==Date.prototype.getTime.call(ie))return!1}else if(Y(re)){if(!Y(ie)||!K(re,ie))return!1}else if(te(re)||re instanceof Error){if(re.message!==ie.message||re.name!==ie.name)return!1}else if(T(re)){if(!we&&(he(re)||N(re))){if(!pe(re,ie))return!1}else if(!ge(re,ie))return!1;var He=me(re),Ye=me(ie);return He.length!==Ye.length?!1:V(re,ie,we,Se,se,He)}else{if(oe(re))return!oe(ie)||re.size!==ie.size?!1:V(re,ie,we,Se,M);if(k(re))return!k(ie)||re.size!==ie.size?!1:V(re,ie,we,Se,P);if(R(re)){if(!q(re,ie))return!1}else if(F(re)&&!b(re,ie))return!1}return V(re,ie,we,Se,se)}function z(re,ie){return ie.filter(function(we){return $(re,we)})}function V(re,ie,we,Se,Ue,_e){if(arguments.length===5){_e=Object.keys(re);var Le=Object.keys(ie);if(_e.length!==Le.length)return!1}for(var Qe=0;Qe<_e.length;Qe++)if(!B(ie,_e[Qe]))return!1;if(we&&arguments.length===5){var He=v(re);if(He.length!==0){var Ye=0;for(Qe=0;Qe<He.length;Qe++){var Ve=He[Qe];if($(re,Ve)){if(!$(ie,Ve))return!1;_e.push(Ve),Ye++}else if($(ie,Ve))return!1}var at=v(ie);if(He.length!==at.length&&z(ie,at).length!==Ye)return!1}else{var ct=v(ie);if(ct.length!==0&&z(ie,ct).length!==0)return!1}}if(_e.length===0&&(Ue===se||Ue===Q&&re.length===0||re.size===0))return!0;if(Se===void 0)Se={val1:new Map,val2:new Map,position:0};else{var dt=Se.val1.get(re);if(dt!==void 0){var ht=Se.val2.get(ie);if(ht!==void 0)return dt===ht}Se.position++}Se.val1.set(re,Se.position),Se.val2.set(ie,Se.position);var gt=ye(re,ie,we,_e,Se,Ue);return Se.val1.delete(re),Se.val2.delete(ie),gt}function ae(re,ie,we,Se){for(var Ue=m(re),_e=0;_e<Ue.length;_e++){var Le=Ue[_e];if(D(ie,Le,we,Se))return re.delete(Le),!0}return!1}function ue(re){switch(f(re)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":re=+re;case"number":if(I(re))return!1}return!0}function A(re,ie,we){var Se=ue(we);return Se??(ie.has(Se)&&!re.has(Se))}function y(re,ie,we,Se,Ue){var _e=ue(we);if(_e!=null)return _e;var Le=ie.get(_e);return Le===void 0&&!ie.has(_e)||!D(Se,Le,!1,Ue)?!1:!re.has(_e)&&D(Se,Le,!1,Ue)}function g(re,ie,we,Se){for(var Ue=null,_e=m(re),Le=0;Le<_e.length;Le++){var Qe=_e[Le];if(f(Qe)==="object"&&Qe!==null)Ue===null&&(Ue=new Set),Ue.add(Qe);else if(!ie.has(Qe)){if(we||!A(re,ie,Qe))return!1;Ue===null&&(Ue=new Set),Ue.add(Qe)}}if(Ue!==null){for(var He=m(ie),Ye=0;Ye<He.length;Ye++){var Ve=He[Ye];if(f(Ve)==="object"&&Ve!==null){if(!ae(Ue,Ve,we,Se))return!1}else if(!we&&!re.has(Ve)&&!ae(Ue,Ve,we,Se))return!1}return Ue.size===0}return!0}function w(re,ie,we,Se,Ue,_e){for(var Le=m(re),Qe=0;Qe<Le.length;Qe++){var He=Le[Qe];if(D(we,He,Ue,_e)&&D(Se,ie.get(He),Ue,_e))return re.delete(He),!0}return!1}function J(re,ie,we,Se){for(var Ue=null,_e=h(re),Le=0;Le<_e.length;Le++){var Qe=e(_e[Le],2),He=Qe[0],Ye=Qe[1];if(f(He)==="object"&&He!==null)Ue===null&&(Ue=new Set),Ue.add(He);else{var Ve=ie.get(He);if(Ve===void 0&&!ie.has(He)||!D(Ye,Ve,we,Se)){if(we||!y(re,ie,He,Ye,Se))return!1;Ue===null&&(Ue=new Set),Ue.add(He)}}}if(Ue!==null){for(var at=h(ie),ct=0;ct<at.length;ct++){var dt=e(at[ct],2),ht=dt[0],gt=dt[1];if(f(ht)==="object"&&ht!==null){if(!w(Ue,re,ht,gt,we,Se))return!1}else if(!we&&(!re.has(ht)||!D(re.get(ht),gt,!1,Se))&&!w(Ue,re,ht,gt,!1,Se))return!1}return Ue.size===0}return!0}function ye(re,ie,we,Se,Ue,_e){var Le=0;if(_e===M){if(!g(re,ie,we,Ue))return!1}else if(_e===P){if(!J(re,ie,we,Ue))return!1}else if(_e===Q)for(;Le<re.length;Le++)if(B(re,Le)){if(!B(ie,Le)||!D(re[Le],ie[Le],we,Ue))return!1}else{if(B(ie,Le))return!1;for(var Qe=Object.keys(re);Le<Qe.length;Le++){var He=Qe[Le];if(!B(ie,He)||!D(re[He],ie[He],we,Ue))return!1}return Qe.length===Object.keys(ie).length}for(Le=0;Le<Se.length;Le++){var Ye=Se[Le];if(!D(re[Ye],ie[Ye],we,Ue))return!1}return!0}function ve(re,ie){return D(re,ie,Z)}function je(re,ie){return D(re,ie,S)}return jy={isDeepEqual:ve,isDeepStrictEqual:je},jy}var cE;function Cg(){if(cE)return gp.exports;cE=1;function e(M){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},e(M)}function t(M,P,K){return Object.defineProperty(M,"prototype",{writable:!1}),M}function i(M,P){if(!(M instanceof P))throw new TypeError("Cannot call a class as a function")}var a=TF(),u=a.codes,c=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,d=u.ERR_INVALID_ARG_VALUE,m=u.ERR_INVALID_RETURN_VALUE,h=u.ERR_MISSING_ARGS,x=$N(),v=zc(),I=v.inspect,C=zc().types,B=C.isPromise,$=C.isRegExp,O=qN()(),U=Jm()(),R=QN()("RegExp.prototype.test"),T,L;function k(){var M=YN();T=M.isDeepEqual,L=M.isDeepStrictEqual}var Y=!1,oe=gp.exports=H,te={};function F(M){throw M.message instanceof Error?M.message:new x(M)}function _(M,P,K,pe,ge){var q=arguments.length,b;if(q===0)b="Failed";else if(q===1)K=M,M=void 0;else{if(Y===!1){Y=!0;var D=ft.emitWarning?ft.emitWarning:console.warn.bind(console);D("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}q===2&&(pe="!=")}if(K instanceof Error)throw K;var z={actual:M,expected:P,operator:pe===void 0?"fail":pe,stackStartFn:ge||_};K!==void 0&&(z.message=K);var V=new x(z);throw b&&(V.message=b,V.generatedMessage=!0),V}oe.fail=_,oe.AssertionError=x;function G(M,P,K,pe){if(!K){var ge=!1;if(P===0)ge=!0,pe="No value argument passed to `assert.ok()`";else if(pe instanceof Error)throw pe;var q=new x({actual:K,expected:!0,message:pe,operator:"==",stackStartFn:M});throw q.generatedMessage=ge,q}}function H(){for(var M=arguments.length,P=new Array(M),K=0;K<M;K++)P[K]=arguments[K];G.apply(void 0,[H,P.length].concat(P))}oe.ok=H,oe.equal=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");P!=K&&F({actual:P,expected:K,message:pe,operator:"==",stackStartFn:M})},oe.notEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");P==K&&F({actual:P,expected:K,message:pe,operator:"!=",stackStartFn:M})},oe.deepEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");T===void 0&&k(),T(P,K)||F({actual:P,expected:K,message:pe,operator:"deepEqual",stackStartFn:M})},oe.notDeepEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");T===void 0&&k(),T(P,K)&&F({actual:P,expected:K,message:pe,operator:"notDeepEqual",stackStartFn:M})},oe.deepStrictEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");T===void 0&&k(),L(P,K)||F({actual:P,expected:K,message:pe,operator:"deepStrictEqual",stackStartFn:M})},oe.notDeepStrictEqual=ee;function ee(M,P,K){if(arguments.length<2)throw new h("actual","expected");T===void 0&&k(),L(M,P)&&F({actual:M,expected:P,message:K,operator:"notDeepStrictEqual",stackStartFn:ee})}oe.strictEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");U(P,K)||F({actual:P,expected:K,message:pe,operator:"strictEqual",stackStartFn:M})},oe.notStrictEqual=function M(P,K,pe){if(arguments.length<2)throw new h("actual","expected");U(P,K)&&F({actual:P,expected:K,message:pe,operator:"notStrictEqual",stackStartFn:M})};var fe=t(function M(P,K,pe){var ge=this;i(this,M),K.forEach(function(q){q in P&&(pe!==void 0&&typeof pe[q]=="string"&&$(P[q])&&R(P[q],pe[q])?ge[q]=pe[q]:ge[q]=P[q])})});function he(M,P,K,pe,ge,q){if(!(K in M)||!L(M[K],P[K])){if(!pe){var b=new fe(M,ge),D=new fe(P,ge,M),z=new x({actual:b,expected:D,operator:"deepStrictEqual",stackStartFn:q});throw z.actual=M,z.expected=P,z.operator=q.name,z}F({actual:M,expected:P,message:pe,operator:q.name,stackStartFn:q})}}function N(M,P,K,pe){if(typeof P!="function"){if($(P))return R(P,M);if(arguments.length===2)throw new f("expected",["Function","RegExp"],P);if(e(M)!=="object"||M===null){var ge=new x({actual:M,expected:P,message:K,operator:"deepStrictEqual",stackStartFn:pe});throw ge.operator=pe.name,ge}var q=Object.keys(P);if(P instanceof Error)q.push("name","message");else if(q.length===0)throw new d("error",P,"may not be an empty object");return T===void 0&&k(),q.forEach(function(b){typeof M[b]=="string"&&$(P[b])&&R(P[b],M[b])||he(M,P,b,K,q,pe)}),!0}return P.prototype!==void 0&&M instanceof P?!0:Error.isPrototypeOf(P)?!1:P.call({},M)===!0}function ce(M){if(typeof M!="function")throw new f("fn","Function",M);try{M()}catch(P){return P}return te}function me(M){return B(M)||M!==null&&e(M)==="object"&&typeof M.then=="function"&&typeof M.catch=="function"}function W(M){return Promise.resolve().then(function(){var P;if(typeof M=="function"){if(P=M(),!me(P))throw new m("instance of Promise","promiseFn",P)}else if(me(M))P=M;else throw new f("promiseFn",["Function","Promise"],M);return Promise.resolve().then(function(){return P}).then(function(){return te}).catch(function(K){return K})})}function S(M,P,K,pe){if(typeof K=="string"){if(arguments.length===4)throw new f("error",["Object","Error","Function","RegExp"],K);if(e(P)==="object"&&P!==null){if(P.message===K)throw new c("error/message",'The error message "'.concat(P.message,'" is identical to the message.'))}else if(P===K)throw new c("error/message",'The error "'.concat(P,'" is identical to the message.'));pe=K,K=void 0}else if(K!=null&&e(K)!=="object"&&typeof K!="function")throw new f("error",["Object","Error","Function","RegExp"],K);if(P===te){var ge="";K&&K.name&&(ge+=" (".concat(K.name,")")),ge+=pe?": ".concat(pe):".";var q=M.name==="rejects"?"rejection":"exception";F({actual:void 0,expected:K,operator:M.name,message:"Missing expected ".concat(q).concat(ge),stackStartFn:M})}if(K&&!N(P,K,pe,M))throw P}function Z(M,P,K,pe){if(P!==te){if(typeof K=="string"&&(pe=K,K=void 0),!K||N(P,K)){var ge=pe?": ".concat(pe):".",q=M.name==="doesNotReject"?"rejection":"exception";F({actual:P,expected:K,operator:M.name,message:"Got unwanted ".concat(q).concat(ge,`
|
|
123
|
-
`)+'Actual message: "'.concat(P&&P.message,'"'),stackStartFn:M})}throw P}}oe.throws=function M(P){for(var K=arguments.length,pe=new Array(K>1?K-1:0),ge=1;ge<K;ge++)pe[ge-1]=arguments[ge];S.apply(void 0,[M,ce(P)].concat(pe))},oe.rejects=function M(P){for(var K=arguments.length,pe=new Array(K>1?K-1:0),ge=1;ge<K;ge++)pe[ge-1]=arguments[ge];return W(P).then(function(q){return S.apply(void 0,[M,q].concat(pe))})},oe.doesNotThrow=function M(P){for(var K=arguments.length,pe=new Array(K>1?K-1:0),ge=1;ge<K;ge++)pe[ge-1]=arguments[ge];Z.apply(void 0,[M,ce(P)].concat(pe))},oe.doesNotReject=function M(P){for(var K=arguments.length,pe=new Array(K>1?K-1:0),ge=1;ge<K;ge++)pe[ge-1]=arguments[ge];return W(P).then(function(q){return Z.apply(void 0,[M,q].concat(pe))})},oe.ifError=function M(P){if(P!=null){var K="ifError got unwanted exception: ";e(P)==="object"&&typeof P.message=="string"?P.message.length===0&&P.constructor?K+=P.constructor.name:K+=P.message:K+=I(P);var pe=new x({actual:P,expected:null,operator:"ifError",message:K,stackStartFn:M}),ge=P.stack;if(typeof ge=="string"){var q=ge.split(`
|
|
124
|
-
`);q.shift();for(var b=pe.stack.split(`
|
|
125
|
-
`),D=0;D<q.length;D++){var z=b.indexOf(q[D]);if(z!==-1){b=b.slice(0,z);break}}pe.stack="".concat(b.join(`
|
|
126
|
-
`),`
|
|
127
|
-
`).concat(q.join(`
|
|
128
|
-
`))}throw pe}};function se(M,P,K,pe,ge){if(!$(P))throw new f("regexp","RegExp",P);var q=ge==="match";if(typeof M!="string"||R(P,M)!==q){if(K instanceof Error)throw K;var b=!K;K=K||(typeof M!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(M)," (").concat(I(M),")"):(q?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(I(P),`. Input:
|
|
129
|
-
|
|
130
|
-
`).concat(I(M),`
|
|
131
|
-
`));var D=new x({actual:M,expected:P,message:K,operator:ge,stackStartFn:pe});throw D.generatedMessage=b,D}}oe.match=function M(P,K,pe){se(P,K,pe,M,"match")},oe.doesNotMatch=function M(P,K,pe){se(P,K,pe,M,"doesNotMatch")};function Q(){for(var M=arguments.length,P=new Array(M),K=0;K<M;K++)P[K]=arguments[K];G.apply(void 0,[Q,P.length].concat(P))}return oe.strict=O(Q,oe,{equal:oe.strictEqual,deepEqual:oe.deepStrictEqual,notEqual:oe.notStrictEqual,notDeepEqual:oe.notDeepStrictEqual}),oe.strict.strict=oe.strict,gp.exports}var Ny,lE;function VN(){if(lE)return Ny;lE=1;function e(t){if(t.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<t.length;u++){var c=t.charAt(u),f=c.charCodeAt(0);if(i[f]!==255)throw new TypeError(c+" is ambiguous");i[f]=u}var d=t.length,m=t.charAt(0),h=Math.log(d)/Math.log(256),x=Math.log(256)/Math.log(d);function v(B){if(B instanceof Uint8Array||(ArrayBuffer.isView(B)?B=new Uint8Array(B.buffer,B.byteOffset,B.byteLength):Array.isArray(B)&&(B=Uint8Array.from(B))),!(B instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(B.length===0)return"";for(var $=0,O=0,U=0,R=B.length;U!==R&&B[U]===0;)U++,$++;for(var T=(R-U)*x+1>>>0,L=new Uint8Array(T);U!==R;){for(var k=B[U],Y=0,oe=T-1;(k!==0||Y<O)&&oe!==-1;oe--,Y++)k+=256*L[oe]>>>0,L[oe]=k%d>>>0,k=k/d>>>0;if(k!==0)throw new Error("Non-zero carry");O=Y,U++}for(var te=T-O;te!==T&&L[te]===0;)te++;for(var F=m.repeat($);te<T;++te)F+=t.charAt(L[te]);return F}function I(B){if(typeof B!="string")throw new TypeError("Expected String");if(B.length===0)return new Uint8Array;for(var $=0,O=0,U=0;B[$]===m;)O++,$++;for(var R=(B.length-$)*h+1>>>0,T=new Uint8Array(R);B[$];){var L=B.charCodeAt($);if(L>255)return;var k=i[L];if(k===255)return;for(var Y=0,oe=R-1;(k!==0||Y<U)&&oe!==-1;oe--,Y++)k+=d*T[oe]>>>0,T[oe]=k%256>>>0,k=k/256>>>0;if(k!==0)throw new Error("Non-zero carry");U=Y,$++}for(var te=R-U;te!==R&&T[te]===0;)te++;for(var F=new Uint8Array(O+(R-te)),_=O;te!==R;)F[_++]=T[te++];return F}function C(B){var $=I(B);if($)return $;throw new Error("Non-base"+d+" character")}return{encode:v,decodeUnsafe:I,decode:C}}return Ny=e,Ny}var Un={exports:{}},_y,fE;function NF(){if(fE)return _y;fE=1,_y=t;class e extends Error{}e.prototype.name="AssertionError";function t(i,a){if(!i){var u=new e(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,t),u}}return _y}var Qr={exports:{}},Tf={exports:{}},Py,dE;function XN(){if(dE)return Py;dE=1;function e(a){return a.length}function t(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){const c=a.byteLength;for(let f=0;f<c;f++)a[f]=u.charCodeAt(f);return c}return Py={byteLength:e,toString:t,write:i},Py}var $y,hE;function ZN(){if(hE)return $y;hE=1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256);for(let c=0;c<e.length;c++)t[e.charCodeAt(c)]=c;t[45]=62,t[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 d="";for(let m=0;m<f;m+=3)d+=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?d=d.substring(0,d.length-1)+"=":f%3===1&&(d=d.substring(0,d.length-2)+"=="),d}function u(c,f){const d=c.byteLength;for(let m=0,h=0;h<d;m+=4){const x=t[f.charCodeAt(m)],v=t[f.charCodeAt(m+1)],I=t[f.charCodeAt(m+2)],C=t[f.charCodeAt(m+3)];c[h++]=x<<2|v>>4,c[h++]=(v&15)<<4|I>>2,c[h++]=(I&3)<<6|C&63}return d}return $y={byteLength:i,toString:a,write:u},$y}var Ly,pE;function JN(){if(pE)return Ly;pE=1;function e(u){return u.length>>>1}function t(u){const c=u.byteLength;u=new DataView(u.buffer,u.byteOffset,c);let f="",d=0;for(let m=c-c%4;d<m;d+=4)f+=u.getUint32(d).toString(16).padStart(8,"0");for(;d<c;d++)f+=u.getUint8(d).toString(16).padStart(2,"0");return f}function i(u,c){const f=u.byteLength;for(let d=0;d<f;d++){const m=a(c.charCodeAt(d*2)),h=a(c.charCodeAt(d*2+1));if(m===void 0||h===void 0)return u.subarray(0,d);u[d]=m<<4|h}return f}Ly={byteLength:e,toString:t,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 Ly}var zy,yE;function WN(){if(yE)return zy;yE=1;function e(a){let u=0;for(let c=0,f=a.length;c<f;c++){const d=a.charCodeAt(c);if(d>=55296&&d<=56319&&c+1<f){const m=a.charCodeAt(c+1);if(m>=56320&&m<=57343){u+=4,c++;continue}}d<=127?u+=1:d<=2047?u+=2:u+=3}return u}let t;if(typeof TextDecoder<"u"){const a=new TextDecoder;t=function(c){return a.decode(c)}}else t=function(u){const c=u.byteLength;let f="",d=0;for(;d<c;){let m=u[d];if(m<=127){f+=String.fromCharCode(m),d++;continue}let h=0,x=0;if(m<=223?(h=1,x=m&31):m<=239?(h=2,x=m&15):m<=244&&(h=3,x=m&7),c-d-h>0){let v=0;for(;v<h;)m=u[d+v+1],x=x<<6|m&63,v+=1}else x=65533,h=c-d;f+=String.fromCodePoint(x),d+=h+1}return f};let i;if(typeof TextEncoder<"u"){const a=new TextEncoder;i=function(c,f){return a.encodeInto(f,c).written}}else i=function(u,c){const f=u.byteLength;let d=0,m=0;for(;d<c.length;){const h=c.codePointAt(d);if(h<=127){u[m++]=h,d++;continue}let x=0,v=0;for(h<=2047?(x=6,v=192):h<=65535?(x=12,v=224):h<=2097151&&(x=18,v=240),u[m++]=v|h>>x,x-=6;x>=0;)u[m++]=128|h>>x&63,x-=6;d+=h>=65536?2:1}return f};return zy={byteLength:e,toString:t,write:i},zy}var qy,gE;function e_(){if(gE)return qy;gE=1;function e(a){return a.length*2}function t(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){const c=a.byteLength;let f=c;for(let d=0;d<u.length&&!((f-=2)<0);++d){const m=u.charCodeAt(d),h=m>>8,x=m%256;a[d*2]=x,a[d*2+1]=h}return c}return qy={byteLength:e,toString:t,write:i},qy}var mE;function t_(){return mE||(mE=1,(function(e,t){const i=XN(),a=ZN(),u=JN(),c=WN(),f=e_(),d=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function m(A){switch(A){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 '${A}'`)}}function h(A){return A instanceof Uint8Array}function x(A){try{return m(A),!0}catch{return!1}}function v(A,y,g){const w=new Uint8Array(A);return y!==void 0&&t.fill(w,y,0,w.byteLength,g),w}function I(A){return new Uint8Array(A)}function C(A){return new Uint8Array(A)}function B(A,y){return m(y).byteLength(A)}function $(A,y){if(A===y)return 0;const g=Math.min(A.byteLength,y.byteLength);A=new DataView(A.buffer,A.byteOffset,A.byteLength),y=new DataView(y.buffer,y.byteOffset,y.byteLength);let w=0;for(let J=g-g%4;w<J;w+=4){const ye=A.getUint32(w,d),ve=y.getUint32(w,d);if(ye!==ve)break}for(;w<g;w++){const J=A.getUint8(w),ye=y.getUint8(w);if(J<ye)return-1;if(J>ye)return 1}return A.byteLength>y.byteLength?1:A.byteLength<y.byteLength?-1:0}function O(A,y){y===void 0&&(y=A.reduce((J,ye)=>J+ye.byteLength,0));const g=new Uint8Array(y);let w=0;for(const J of A){if(w+J.byteLength>g.byteLength)return g.set(J.subarray(0,g.byteLength-w),w),g;g.set(J,w),w+=J.byteLength}return g}function U(A,y,g=0,w=0,J=A.byteLength){if(g<0&&(g=0),g>=y.byteLength)return 0;const ye=y.byteLength-g;if(w<0&&(w=0),w>=A.byteLength||J<=w)return 0;J>A.byteLength&&(J=A.byteLength),J-w>ye&&(J=w+ye);const ve=J-w;return A===y?y.copyWithin(g,w,J):((w!==0||J!==A.byteLength)&&(A=A.subarray(w,J)),y.set(A,g)),ve}function R(A,y){return A===y?!0:A.byteLength!==y.byteLength?!1:$(A,y)===0}function T(A,y,g=0,w=A.byteLength,J="utf8"){if(typeof y=="string"?typeof g=="string"?(J=g,g=0,w=A.byteLength):typeof w=="string"&&(J=w,w=A.byteLength):typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=+y),g<0&&(g=0),g>=A.byteLength||w<=g)return A;if(w>A.byteLength&&(w=A.byteLength),typeof y=="number")return A.fill(y,g,w);typeof y=="string"&&(y=t.from(y,J));const ye=y.byteLength;for(let ve=0,je=w-g;ve<je;++ve)A[ve+g]=y[ve%ye];return A}function L(A,y,g){return typeof A=="string"?k(A,y):Array.isArray(A)?Y(A):ArrayBuffer.isView(A)?oe(A):te(A,y,g)}function k(A,y){const g=m(y),w=new Uint8Array(g.byteLength(A));return g.write(w,A),w}function Y(A){const y=new Uint8Array(A.length);return y.set(A),y}function oe(A){const y=new Uint8Array(A.byteLength);return y.set(A),y}function te(A,y,g){return new Uint8Array(A,y,g)}function F(A,y,g,w){return _(A,y,g,w)!==-1}function _(A,y,g,w){return H(A,y,g,w,!0)}function G(A,y,g,w){return H(A,y,g,w,!1)}function H(A,y,g,w,J){if(A.byteLength===0)return-1;if(typeof g=="string"?(w=g,g=0):g===void 0?g=J?0:A.length-1:g<0&&(g+=A.byteLength),g>=A.byteLength){if(J)return-1;g=A.byteLength-1}else if(g<0)if(J)g=0;else return-1;if(typeof y=="string")y=L(y,w);else if(typeof y=="number")return y=y&255,J?A.indexOf(y,g):A.lastIndexOf(y,g);if(y.byteLength===0)return-1;if(J){let ye=-1;for(let ve=g;ve<A.byteLength;ve++)if(A[ve]===y[ye===-1?0:ve-ye]){if(ye===-1&&(ye=ve),ve-ye+1===y.byteLength)return ye}else ye!==-1&&(ve-=ve-ye),ye=-1}else{g+y.byteLength>A.byteLength&&(g=A.byteLength-y.byteLength);for(let ye=g;ye>=0;ye--){let ve=!0;for(let je=0;je<y.byteLength;je++)if(A[ye+je]!==y[je]){ve=!1;break}if(ve)return ye}}return-1}function ee(A,y,g){const w=A[y];A[y]=A[g],A[g]=w}function fe(A){const y=A.byteLength;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<y;g+=2)ee(A,g,g+1);return A}function he(A){const y=A.byteLength;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<y;g+=4)ee(A,g,g+3),ee(A,g+1,g+2);return A}function N(A){const y=A.byteLength;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<y;g+=8)ee(A,g,g+7),ee(A,g+1,g+6),ee(A,g+2,g+5),ee(A,g+3,g+4);return A}function ce(A){return A}function me(A,y="utf8",g=0,w=A.byteLength){return arguments.length===1?c.toString(A):arguments.length===2?m(y).toString(A):(g<0&&(g=0),g>=A.byteLength||w<=g?"":(w>A.byteLength&&(w=A.byteLength),(g!==0||w!==A.byteLength)&&(A=A.subarray(g,w)),m(y).toString(A)))}function W(A,y,g,w,J){if(arguments.length===2)return c.write(A,y);typeof g=="string"?(J=g,g=0,w=A.byteLength):typeof w=="string"&&(J=w,w=A.byteLength-g),w=Math.min(w,t.byteLength(y,J));let ye=g;if(ye<0&&(ye=0),ye>=A.byteLength)return 0;let ve=g+w;return ve<=ye?0:(ve>A.byteLength&&(ve=A.byteLength),(ye!==0||ve!==A.byteLength)&&(A=A.subarray(ye,ve)),m(J).write(A,y))}function S(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getFloat64(y,!1)}function Z(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getFloat64(y,!0)}function se(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getFloat32(y,!1)}function Q(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getFloat32(y,!0)}function M(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getInt32(y,!1)}function P(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getInt32(y,!0)}function K(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getUint32(y,!1)}function pe(A,y=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).getUint32(y,!0)}function ge(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setFloat64(g,y,!1),g+8}function q(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setFloat64(g,y,!0),g+8}function b(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setFloat32(g,y,!1),g+4}function D(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setFloat32(g,y,!0),g+4}function z(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setInt32(g,y,!1),g+4}function V(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setInt32(g,y,!0),g+4}function ae(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setUint32(g,y,!1),g+4}function ue(A,y,g=0){return new DataView(A.buffer,A.byteOffset,A.byteLength).setUint32(g,y,!0),g+4}e.exports=t={isBuffer:h,isEncoding:x,alloc:v,allocUnsafe:I,allocUnsafeSlow:C,byteLength:B,compare:$,concat:O,copy:U,equals:R,fill:T,from:L,includes:F,indexOf:_,lastIndexOf:G,swap16:fe,swap32:he,swap64:N,toBuffer:ce,toString:me,write:W,readDoubleBE:S,readDoubleLE:Z,readFloatBE:se,readFloatLE:Q,readInt32BE:M,readInt32LE:P,readUInt32BE:K,readUInt32LE:pe,writeDoubleBE:ge,writeDoubleLE:q,writeFloatBE:b,writeFloatLE:D,writeInt32BE:z,writeInt32LE:V,writeUInt32BE:ae,writeUInt32LE:ue}})(Tf,Tf.exports)),Tf.exports}var Qy,AE;function n_(){if(AE)return Qy;AE=1;var e=(c,f)=>function(){return f||(0,c[Object.keys(c)[0]])((f={exports:{}}).exports,f),f.exports},t=(()=>{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 d=>{for(var m=d.length,h=new Uint8Array((m-(d[m-1]=="=")-(d[m-2]=="="))*3/4|0),x=0,v=0;x<m;){var I=c[d.charCodeAt(x++)],C=c[d.charCodeAt(x++)],B=c[d.charCodeAt(x++)],$=c[d.charCodeAt(x++)];h[v++]=I<<2|C>>4,h[v++]=C<<4|B>>2,h[v++]=B<<6|$}return h}})(),i=e({"wasm-binary:./blake2b.wat"(c,f){f.exports=t("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 Qy=async c=>(await WebAssembly.instantiate(await u,c)).exports,Qy}var bE;function r_(){if(bE)return Qr.exports;bE=1;var e=NF(),t=t_(),i=null,a=typeof WebAssembly<"u"&&n_()().then(B=>{i=B}),u=64,c=[];Qr.exports=I;var f=Qr.exports.BYTES_MIN=16,d=Qr.exports.BYTES_MAX=64;Qr.exports.BYTES=32;var m=Qr.exports.KEYBYTES_MIN=16,h=Qr.exports.KEYBYTES_MAX=64;Qr.exports.KEYBYTES=32;var x=Qr.exports.SALTBYTES=16,v=Qr.exports.PERSONALBYTES=16;function I(B,$,O,U,R){if(!(this instanceof I))return new I(B,$,O,U,R);if(!i)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");B||(B=32),R!==!0&&(e(B>=f,"digestLength must be at least "+f+", was given "+B),e(B<=d,"digestLength must be at most "+d+", was given "+B),$!=null&&(e($ instanceof Uint8Array,"key must be Uint8Array or Buffer"),e($.length>=m,"key must be at least "+m+", was given "+$.length),e($.length<=h,"key must be at least "+h+", was given "+$.length)),O!=null&&(e(O instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(O.length===x,"salt must be exactly "+x+", was given "+O.length)),U!=null&&(e(U instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(U.length===v,"personal must be exactly "+v+", was given "+U.length))),c.length||(c.push(u),u+=216),this.digestLength=B,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]=$?$.length:0,this._memory[2]=1,this._memory[3]=1,O&&this._memory.set(O,32),U&&this._memory.set(U,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),i.blake2b_init(this.pointer,this.digestLength),$&&(this.update($),this._memory.fill(0,u,u+$.length),this._memory[this.pointer+200]=128)}I.prototype._realloc=function(B){i.memory.grow(Math.max(0,Math.ceil(Math.abs(B-this._memory.length)/65536))),this._memory=new Uint8Array(i.memory.buffer)},I.prototype.update=function(B){return e(this.finalized===!1,"Hash instance finalized"),e(B instanceof Uint8Array,"input must be Uint8Array or Buffer"),u+B.length>this._memory.length&&this._realloc(u+B.length),this._memory.set(B,u),i.blake2b_update(this.pointer,u,u+B.length),this},I.prototype.digest=function(B){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,c.push(this.pointer),i.blake2b_final(this.pointer),!B||B==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof B=="string")return t.toString(this._memory,B,this.pointer+128,this.pointer+128+this.digestLength);e(B instanceof Uint8Array&&B.length>=this.digestLength,"input must be Uint8Array or Buffer");for(var $=0;$<this.digestLength;$++)B[$]=this._memory[this.pointer+128+$];return B},I.prototype.final=I.prototype.digest,I.WASM=i,I.SUPPORTED=typeof WebAssembly<"u",I.ready=function(B){return B||(B=C),a?a.then(()=>B(),B):B(new Error("WebAssembly not supported"))},I.prototype.ready=I.ready,I.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},I.prototype.setPartialHash=function(B){this._memory.set(B,this.pointer)};function C(){}return Qr.exports}var xE;function i_(){if(xE)return Un.exports;xE=1;var e=NF(),t=r_();function i(F,_,G){var H=F[_]+F[G],ee=F[_+1]+F[G+1];H>=4294967296&&ee++,F[_]=H,F[_+1]=ee}function a(F,_,G,H){var ee=F[_]+G;G<0&&(ee+=4294967296);var fe=F[_+1]+H;ee>=4294967296&&fe++,F[_]=ee,F[_+1]=fe}function u(F,_){return F[_]^F[_+1]<<8^F[_+2]<<16^F[_+3]<<24}function c(F,_,G,H,ee,fe){var he=x[ee],N=x[ee+1],ce=x[fe],me=x[fe+1];i(h,F,_),a(h,F,he,N);var W=h[H]^h[F],S=h[H+1]^h[F+1];h[H]=S,h[H+1]=W,i(h,G,H),W=h[_]^h[G],S=h[_+1]^h[G+1],h[_]=W>>>24^S<<8,h[_+1]=S>>>24^W<<8,i(h,F,_),a(h,F,ce,me),W=h[H]^h[F],S=h[H+1]^h[F+1],h[H]=W>>>16^S<<16,h[H+1]=S>>>16^W<<16,i(h,G,H),W=h[_]^h[G],S=h[_+1]^h[G+1],h[_]=S>>>31^W<<1,h[_+1]=W>>>31^S<<1}var f=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),d=[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(d.map(function(F){return F*2})),h=new Uint32Array(32),x=new Uint32Array(32);function v(F,_){var G=0;for(G=0;G<16;G++)h[G]=F.h[G],h[G+16]=f[G];for(h[24]=h[24]^F.t,h[25]=h[25]^F.t/4294967296,_&&(h[28]=~h[28],h[29]=~h[29]),G=0;G<32;G++)x[G]=u(F.b,4*G);for(G=0;G<12;G++)c(0,8,16,24,m[G*16+0],m[G*16+1]),c(2,10,18,26,m[G*16+2],m[G*16+3]),c(4,12,20,28,m[G*16+4],m[G*16+5]),c(6,14,22,30,m[G*16+6],m[G*16+7]),c(0,10,20,30,m[G*16+8],m[G*16+9]),c(2,12,22,24,m[G*16+10],m[G*16+11]),c(4,14,16,26,m[G*16+12],m[G*16+13]),c(6,8,18,28,m[G*16+14],m[G*16+15]);for(G=0;G<16;G++)F.h[G]=F.h[G]^h[G]^h[G+16]}var I=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 C(F,_,G,H){I.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=F,I[0]=F,_&&(I[1]=_.length),I[2]=1,I[3]=1,G&&I.set(G,32),H&&I.set(H,48);for(var ee=0;ee<16;ee++)this.h[ee]=f[ee]^u(I,ee*4);_&&(B(this,_),this.c=128)}C.prototype.update=function(F){return e(F instanceof Uint8Array,"input must be Uint8Array or Buffer"),B(this,F),this},C.prototype.digest=function(F){var _=!F||F==="binary"||F==="hex"?new Uint8Array(this.outlen):F;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"),$(this,_),F==="hex"?O(_):_},C.prototype.final=C.prototype.digest,C.ready=function(F){t.ready(function(){F()})};function B(F,_){for(var G=0;G<_.length;G++)F.c===128&&(F.t+=F.c,v(F,!1),F.c=0),F.b[F.c++]=_[G]}function $(F,_){for(F.t+=F.c;F.c<128;)F.b[F.c++]=0;v(F,!0);for(var G=0;G<F.outlen;G++)_[G]=F.h[G>>2]>>8*(G&3);return _}function O(F){for(var _="",G=0;G<F.length;G++)_+=U(F[G]);return _}function U(F){return F<16?"0"+F.toString(16):F.toString(16)}var R=C;Un.exports=function(_,G,H,ee,fe){return fe!==!0&&(e(_>=T,"outlen must be at least "+T+", was given "+_),e(_<=L,"outlen must be at most "+L+", was given "+_),G!=null&&(e(G instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(G.length>=k,"key must be at least "+k+", was given "+G.length),e(G.length<=Y,"key must be at most "+Y+", was given "+G.length)),H!=null&&(e(H instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(H.length===oe,"salt must be exactly "+oe+", was given "+H.length)),ee!=null&&(e(ee instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(ee.length===te,"personal must be exactly "+te+", was given "+ee.length))),new R(_,G,H,ee)},Un.exports.ready=function(F){t.ready(function(){F()})},Un.exports.WASM_SUPPORTED=t.SUPPORTED,Un.exports.WASM_LOADED=!1;var T=Un.exports.BYTES_MIN=16,L=Un.exports.BYTES_MAX=64;Un.exports.BYTES=32;var k=Un.exports.KEYBYTES_MIN=16,Y=Un.exports.KEYBYTES_MAX=64;Un.exports.KEYBYTES=32;var oe=Un.exports.SALTBYTES=16,te=Un.exports.PERSONALBYTES=16;return t.ready(function(F){F||(Un.exports.WASM_LOADED=!0,Un.exports=t)}),Un.exports}var wE;function o_(){if(wE)return _i;wE=1;var e=_i&&_i.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.encode=_i.decode=void 0;const t=e(Cg()),i=e(VN()),a=e(i_()),u=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c=sn.Buffer.from("SS58PRE"),f=sn.Buffer.alloc(64);function d(v){let I=u.decodeUnsafe(v);if(I==null||I.length<3)throw x(v);let C=I[0],B,$;if(C<64)$=C,B=1;else if(C<128){let U=I[1],R=(C<<2|U>>6)&255,T=U&63;$=R|T<<8,B=2}else throw x(v);let O;switch(I.length-B){case 34:case 35:O=2;break;case 9:case 5:case 3:case 2:O=1;break;default:throw x(v)}h(I,O);for(let U=0;U<O;U++)if(f[U]!=I[I.length-O+U])throw x(v);return{prefix:$,bytes:I.subarray(B,I.length-O)}}_i.decode=d;function m(v){let I=v.prefix;(0,t.default)(Number.isInteger(I)&&I>=0&&I<16384,"invalid prefix");let C=v.bytes.length,B;switch(C){case 1:case 2:case 4:case 8:B=1;break;case 32:case 33:B=2;break;default:(0,t.default)(!1,"invalid address length")}let $,O;I<64?($=sn.Buffer.allocUnsafe(1+B+C),$[0]=I,O=1):($=sn.Buffer.allocUnsafe(2+B+C),$[0]=(I&252)>>2|64,$[1]=I>>8|(I&3)<<6,O=2),$.set(v.bytes,O),h($,B);for(let U=0;U<B;U++)$[O+C+U]=f[U];return u.encode($)}_i.encode=m;function h(v,I){let C=(0,a.default)(64);C.update(c),C.update(v.subarray(0,v.length-I)),C.digest(f)}function x(v){return new Error("Invalid ss58 address: "+v)}return _i}var a_=o_();function s_(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let h=0;h<t.length;h++)t[h]=255;for(let h=0;h<e.length;h++){const x=e.charAt(h),v=x.charCodeAt(0);if(t[v]!==255)throw new TypeError(x+" is ambiguous");t[v]=h}const i=e.length,a=e.charAt(0),u=Math.log(i)/Math.log(256),c=Math.log(256)/Math.log(i);function f(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";let x=0,v=0,I=0;const C=h.length;for(;I!==C&&h[I]===0;)I++,x++;const B=(C-I)*c+1>>>0,$=new Uint8Array(B);for(;I!==C;){let R=h[I],T=0;for(let L=B-1;(R!==0||T<v)&&L!==-1;L--,T++)R+=256*$[L]>>>0,$[L]=R%i>>>0,R=R/i>>>0;if(R!==0)throw new Error("Non-zero carry");v=T,I++}let O=B-v;for(;O!==B&&$[O]===0;)O++;let U=a.repeat(x);for(;O<B;++O)U+=e.charAt($[O]);return U}function d(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let x=0,v=0,I=0;for(;h[x]===a;)v++,x++;const C=(h.length-x)*u+1>>>0,B=new Uint8Array(C);for(;x<h.length;){const R=h.charCodeAt(x);if(R>255)return;let T=t[R];if(T===255)return;let L=0;for(let k=C-1;(T!==0||L<I)&&k!==-1;k--,L++)T+=i*B[k]>>>0,B[k]=T%256>>>0,T=T/256>>>0;if(T!==0)throw new Error("Non-zero carry");I=L,x++}let $=C-I;for(;$!==C&&B[$]===0;)$++;const O=new Uint8Array(v+(C-$));let U=v;for(;$!==C;)O[U++]=B[$++];return O}function m(h){const x=d(h);if(x)return x;throw new Error("Non-base"+i+" character")}return{encode:f,decodeUnsafe:d,decode:m}}var u_="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const _f=s_(u_);function c_(e){function t(c){var f=Uint8Array.from(c),d=e(f),m=f.length+4,h=new Uint8Array(m);return h.set(f,0),h.set(d.subarray(0,4),f.length),_f.encode(h)}function i(c){var f=c.slice(0,-4),d=c.slice(-4),m=e(f);if(!(d[0]^m[0]|d[1]^m[1]|d[2]^m[2]|d[3]^m[3]))return f}function a(c){var f=_f.decodeUnsafe(c);if(f!=null)return i(f)}function u(c){var f=_f.decode(c),d=i(f);if(d==null)throw new Error("Invalid checksum");return d}return{encode:t,decode:u,decodeUnsafe:a}}function l_(e){return og(og(e))}const Pd=c_(l_);var ua={},EE;function f_(){if(EE)return ua;EE=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.bech32m=ua.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t={};for(let h=0;h<e.length;h++){const x=e.charAt(h);t[x]=h}function i(h){const x=h>>25;return(h&33554431)<<5^-(x>>0&1)&996825010^-(x>>1&1)&642813549^-(x>>2&1)&513874426^-(x>>3&1)&1027748829^-(x>>4&1)&705979059}function a(h){let x=1;for(let v=0;v<h.length;++v){const I=h.charCodeAt(v);if(I<33||I>126)return"Invalid prefix ("+h+")";x=i(x)^I>>5}x=i(x);for(let v=0;v<h.length;++v){const I=h.charCodeAt(v);x=i(x)^I&31}return x}function u(h,x,v,I){let C=0,B=0;const $=(1<<v)-1,O=[];for(let U=0;U<h.length;++U)for(C=C<<x|h[U],B+=x;B>=v;)B-=v,O.push(C>>B&$);if(I)B>0&&O.push(C<<v-B&$);else{if(B>=x)return"Excess padding";if(C<<v-B&$)return"Non-zero padding"}return O}function c(h){return u(h,8,5,!0)}function f(h){const x=u(h,5,8,!1);if(Array.isArray(x))return x}function d(h){const x=u(h,5,8,!1);if(Array.isArray(x))return x;throw new Error(x)}function m(h){let x;h==="bech32"?x=1:x=734539939;function v($,O,U){if(U=U||90,$.length+7+O.length>U)throw new TypeError("Exceeds length limit");$=$.toLowerCase();let R=a($);if(typeof R=="string")throw new Error(R);let T=$+"1";for(let L=0;L<O.length;++L){const k=O[L];if(k>>5!==0)throw new Error("Non 5-bit word");R=i(R)^k,T+=e.charAt(k)}for(let L=0;L<6;++L)R=i(R);R^=x;for(let L=0;L<6;++L){const k=R>>(5-L)*5&31;T+=e.charAt(k)}return T}function I($,O){if(O=O||90,$.length<8)return $+" too short";if($.length>O)return"Exceeds length limit";const U=$.toLowerCase(),R=$.toUpperCase();if($!==U&&$!==R)return"Mixed-case string "+$;$=U;const T=$.lastIndexOf("1");if(T===-1)return"No separator character for "+$;if(T===0)return"Missing prefix for "+$;const L=$.slice(0,T),k=$.slice(T+1);if(k.length<6)return"Data too short";let Y=a(L);if(typeof Y=="string")return Y;const oe=[];for(let te=0;te<k.length;++te){const F=k.charAt(te),_=t[F];if(_===void 0)return"Unknown character "+F;Y=i(Y)^_,!(te+6>=k.length)&&oe.push(_)}return Y!==x?"Invalid checksum for "+$:{prefix:L,words:oe}}function C($,O){const U=I($,O);if(typeof U=="object")return U}function B($,O){const U=I($,O);if(typeof U=="object")return U;throw new Error(U)}return{decodeUnsafe:C,decode:B,encode:v,toWords:c,fromWordsUnsafe:f,fromWords:d}}return ua.bech32=m("bech32"),ua.bech32m=m("bech32m"),ua}var Bg=f_(),Hy={exports:{}},vE;function d_(){return vE||(vE=1,(function(e){(function(){var t=typeof window=="object"?window:{},i=!t.HI_BASE32_NO_NODE_JS&&typeof ft=="object"&&ft.versions&&ft.versions.node;i&&(t=qc);var a=!t.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],d=function(O,U){U.length>10&&(U="..."+U.substr(-10));var R=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+O+" bytes: "+U+" <-");throw R.position=O,R},m=function(O){for(var U="",R=O.length,T=0,L=0,k,Y;T<R;){if(k=O[T++],k<=127){U+=String.fromCharCode(k);continue}else k>191&&k<=223?(Y=k&31,L=1):k<=239?(Y=k&15,L=2):k<=247?(Y=k&7,L=3):d(T,U);for(var oe=0;oe<L;++oe)k=O[T++],(k<128||k>191)&&d(T,U),Y<<=6,Y+=k&63;Y>=55296&&Y<=57343&&d(T,U),Y>1114111&&d(T,U),Y<=65535?U+=String.fromCharCode(Y):(Y-=65536,U+=String.fromCharCode((Y>>10)+55296),U+=String.fromCharCode((Y&1023)+56320))}return U},h=function(O){if(O==="")return[];if(!/^[A-Z2-7=]+$/.test(O))throw new Error("Invalid base32 characters");O=O.replace(/=/g,"");for(var U,R,T,L,k,Y,oe,te,F=[],_=0,G=O.length,H=0,ee=G>>3<<3;H<ee;)U=c[O.charAt(H++)],R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],Y=c[O.charAt(H++)],oe=c[O.charAt(H++)],te=c[O.charAt(H++)],F[_++]=(U<<3|R>>>2)&255,F[_++]=(R<<6|T<<1|L>>>4)&255,F[_++]=(L<<4|k>>>1)&255,F[_++]=(k<<7|Y<<2|oe>>>3)&255,F[_++]=(oe<<5|te)&255;var fe=G-ee;return fe===2?(U=c[O.charAt(H++)],R=c[O.charAt(H++)],F[_++]=(U<<3|R>>>2)&255):fe===4?(U=c[O.charAt(H++)],R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],F[_++]=(U<<3|R>>>2)&255,F[_++]=(R<<6|T<<1|L>>>4)&255):fe===5?(U=c[O.charAt(H++)],R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],F[_++]=(U<<3|R>>>2)&255,F[_++]=(R<<6|T<<1|L>>>4)&255,F[_++]=(L<<4|k>>>1)&255):fe===7&&(U=c[O.charAt(H++)],R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],Y=c[O.charAt(H++)],oe=c[O.charAt(H++)],F[_++]=(U<<3|R>>>2)&255,F[_++]=(R<<6|T<<1|L>>>4)&255,F[_++]=(L<<4|k>>>1)&255,F[_++]=(k<<7|Y<<2|oe>>>3)&255),F},x=function(O){for(var U,R,T,L,k,Y="",oe=O.length,te=0,F=parseInt(oe/5)*5;te<F;)U=O.charCodeAt(te++),R=O.charCodeAt(te++),T=O.charCodeAt(te++),L=O.charCodeAt(te++),k=O.charCodeAt(te++),Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[(L<<3|k>>>5)&31]+u[k&31];var _=oe-F;return _===1?(U=O.charCodeAt(te),Y+=u[U>>>3]+u[U<<2&31]+"======"):_===2?(U=O.charCodeAt(te++),R=O.charCodeAt(te),Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[R<<4&31]+"===="):_===3?(U=O.charCodeAt(te++),R=O.charCodeAt(te++),T=O.charCodeAt(te),Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[T<<1&31]+"==="):_===4&&(U=O.charCodeAt(te++),R=O.charCodeAt(te++),T=O.charCodeAt(te++),L=O.charCodeAt(te),Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[L<<3&31]+"="),Y},v=function(O){var U,R,T,L,k,Y,oe=!1,te="",F=0,_,G=0,H=O.length;if(O==="")return te;do{for(f[0]=f[5],f[1]=f[6],f[2]=f[7],_=G;F<H&&_<5;++F)Y=O.charCodeAt(F),Y<128?f[_++]=Y:Y<2048?(f[_++]=192|Y>>6,f[_++]=128|Y&63):Y<55296||Y>=57344?(f[_++]=224|Y>>12,f[_++]=128|Y>>6&63,f[_++]=128|Y&63):(Y=65536+((Y&1023)<<10|O.charCodeAt(++F)&1023),f[_++]=240|Y>>18,f[_++]=128|Y>>12&63,f[_++]=128|Y>>6&63,f[_++]=128|Y&63);G=_-5,F===H&&++F,F>H&&_<6&&(oe=!0),U=f[0],_>4?(R=f[1],T=f[2],L=f[3],k=f[4],te+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[(L<<3|k>>>5)&31]+u[k&31]):_===1?te+=u[U>>>3]+u[U<<2&31]+"======":_===2?(R=f[1],te+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[R<<4&31]+"===="):_===3?(R=f[1],T=f[2],te+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[T<<1&31]+"==="):(R=f[1],T=f[2],L=f[3],te+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[L<<3&31]+"=")}while(!oe);return te},I=function(O){for(var U,R,T,L,k,Y="",oe=O.length,te=0,F=parseInt(oe/5)*5;te<F;)U=O[te++],R=O[te++],T=O[te++],L=O[te++],k=O[te++],Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[(L<<3|k>>>5)&31]+u[k&31];var _=oe-F;return _===1?(U=O[te],Y+=u[U>>>3]+u[U<<2&31]+"======"):_===2?(U=O[te++],R=O[te],Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[R<<4&31]+"===="):_===3?(U=O[te++],R=O[te++],T=O[te],Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[T<<1&31]+"==="):_===4&&(U=O[te++],R=O[te++],T=O[te++],L=O[te],Y+=u[U>>>3]+u[(U<<2|R>>>6)&31]+u[R>>>1&31]+u[(R<<4|T>>>4)&31]+u[(T<<1|L>>>7)&31]+u[L>>>2&31]+u[L<<3&31]+"="),Y},C=function(O,U){var R=typeof O!="string";return R&&O.constructor===ArrayBuffer&&(O=new Uint8Array(O)),R?I(O):U?x(O):v(O)},B=function(O,U){if(!U)return m(h(O));if(O==="")return"";if(!/^[A-Z2-7=]+$/.test(O))throw new Error("Invalid base32 characters");var R,T,L,k,Y,oe,te,F,_="",G=O.indexOf("=");G===-1&&(G=O.length);for(var H=0,ee=G>>3<<3;H<ee;)R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],Y=c[O.charAt(H++)],oe=c[O.charAt(H++)],te=c[O.charAt(H++)],F=c[O.charAt(H++)],_+=String.fromCharCode((R<<3|T>>>2)&255)+String.fromCharCode((T<<6|L<<1|k>>>4)&255)+String.fromCharCode((k<<4|Y>>>1)&255)+String.fromCharCode((Y<<7|oe<<2|te>>>3)&255)+String.fromCharCode((te<<5|F)&255);var fe=G-ee;return fe===2?(R=c[O.charAt(H++)],T=c[O.charAt(H++)],_+=String.fromCharCode((R<<3|T>>>2)&255)):fe===4?(R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],_+=String.fromCharCode((R<<3|T>>>2)&255)+String.fromCharCode((T<<6|L<<1|k>>>4)&255)):fe===5?(R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],Y=c[O.charAt(H++)],_+=String.fromCharCode((R<<3|T>>>2)&255)+String.fromCharCode((T<<6|L<<1|k>>>4)&255)+String.fromCharCode((k<<4|Y>>>1)&255)):fe===7&&(R=c[O.charAt(H++)],T=c[O.charAt(H++)],L=c[O.charAt(H++)],k=c[O.charAt(H++)],Y=c[O.charAt(H++)],oe=c[O.charAt(H++)],te=c[O.charAt(H++)],_+=String.fromCharCode((R<<3|T>>>2)&255)+String.fromCharCode((T<<6|L<<1|k>>>4)&255)+String.fromCharCode((k<<4|Y>>>1)&255)+String.fromCharCode((Y<<7|oe<<2|te>>>3)&255)),_},$={encode:C,decode:B};B.asBytes=h,a?e.exports=$:t.base32=$})()})(Hy)),Hy.exports}var h_=d_();const _F=Zf(h_);var ky={exports:{}},IE;function p_(){return IE||(IE=1,(function(e){(function(){var t="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 ft=="object"&&ft.versions&&ft.versions.node;f?u=qc:c&&(u=self);var d=!u.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,m=!u.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),x=[-2147483648,8388608,32768,128],v=[24,16,8,0],I=[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],C=["hex","array","digest","arrayBuffer"],B=[],$=Array.isArray;(u.JS_SHA512_NO_NODE_JS||!$)&&($=function(F){return Object.prototype.toString.call(F)==="[object Array]"});var O=ArrayBuffer.isView;m&&(u.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!O)&&(O=function(F){return typeof F=="object"&&F.buffer&&F.buffer.constructor===ArrayBuffer});var U=function(F){var _=typeof F;if(_==="string")return[F,!0];if(_!=="object"||F===null)throw new Error(t);if(m&&F.constructor===ArrayBuffer)return[new Uint8Array(F),!1];if(!$(F)&&!O(F))throw new Error(t);return[F,!1]},R=function(F,_){return function(G){return new Y(_,!0).update(G)[F]()}},T=function(F){var _=R("hex",F);_.create=function(){return new Y(F)},_.update=function(ee){return _.create().update(ee)};for(var G=0;G<C.length;++G){var H=C[G];_[H]=R(H,F)}return _},L=function(F,_){return function(G,H){return new oe(G,_,!0).update(H)[F]()}},k=function(F){var _=L("hex",F);_.create=function(ee){return new oe(ee,F)},_.update=function(ee,fe){return _.create(ee).update(fe)};for(var G=0;G<C.length;++G){var H=C[G];_[H]=L(H,F)}return _};function Y(F,_){_?(B[0]=B[1]=B[2]=B[3]=B[4]=B[5]=B[6]=B[7]=B[8]=B[9]=B[10]=B[11]=B[12]=B[13]=B[14]=B[15]=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,this.blocks=B):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],F==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):F==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):F==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=F,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}Y.prototype.update=function(F){if(this.finalized)throw new Error(i);var _=U(F);F=_[0];for(var G=_[1],H,ee=0,fe,he=F.length,N=this.blocks;ee<he;){if(this.hashed&&(this.hashed=!1,N[0]=this.block,this.block=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=N[16]=N[17]=N[18]=N[19]=N[20]=N[21]=N[22]=N[23]=N[24]=N[25]=N[26]=N[27]=N[28]=N[29]=N[30]=N[31]=N[32]=0),G)for(fe=this.start;ee<he&&fe<128;++ee)H=F.charCodeAt(ee),H<128?N[fe>>>2]|=H<<v[fe++&3]:H<2048?(N[fe>>>2]|=(192|H>>>6)<<v[fe++&3],N[fe>>>2]|=(128|H&63)<<v[fe++&3]):H<55296||H>=57344?(N[fe>>>2]|=(224|H>>>12)<<v[fe++&3],N[fe>>>2]|=(128|H>>>6&63)<<v[fe++&3],N[fe>>>2]|=(128|H&63)<<v[fe++&3]):(H=65536+((H&1023)<<10|F.charCodeAt(++ee)&1023),N[fe>>>2]|=(240|H>>>18)<<v[fe++&3],N[fe>>>2]|=(128|H>>>12&63)<<v[fe++&3],N[fe>>>2]|=(128|H>>>6&63)<<v[fe++&3],N[fe>>>2]|=(128|H&63)<<v[fe++&3]);else for(fe=this.start;ee<he&&fe<128;++ee)N[fe>>>2]|=F[ee]<<v[fe++&3];this.lastByteIndex=fe,this.bytes+=fe-this.start,fe>=128?(this.block=N[32],this.start=fe-128,this.hash(),this.hashed=!0):this.start=fe}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},Y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,_=this.lastByteIndex;F[32]=this.block,F[_>>>2]|=x[_&3],this.block=F[32],_>=112&&(this.hashed||this.hash(),F[0]=this.block,F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=F[16]=F[17]=F[18]=F[19]=F[20]=F[21]=F[22]=F[23]=F[24]=F[25]=F[26]=F[27]=F[28]=F[29]=F[30]=F[31]=F[32]=0),F[30]=this.hBytes<<3|this.bytes>>>29,F[31]=this.bytes<<3,this.hash()}},Y.prototype.hash=function(){var F=this.h0h,_=this.h0l,G=this.h1h,H=this.h1l,ee=this.h2h,fe=this.h2l,he=this.h3h,N=this.h3l,ce=this.h4h,me=this.h4l,W=this.h5h,S=this.h5l,Z=this.h6h,se=this.h6l,Q=this.h7h,M=this.h7l,P=this.blocks,K,pe,ge,q,b,D,z,V,ae,ue,A,y,g,w,J,ye,ve,je,re,ie,we,Se,Ue,_e,Le;for(K=32;K<160;K+=2)ie=P[K-30],we=P[K-29],pe=(ie>>>1|we<<31)^(ie>>>8|we<<24)^ie>>>7,ge=(we>>>1|ie<<31)^(we>>>8|ie<<24)^(we>>>7|ie<<25),ie=P[K-4],we=P[K-3],q=(ie>>>19|we<<13)^(we>>>29|ie<<3)^ie>>>6,b=(we>>>19|ie<<13)^(ie>>>29|we<<3)^(we>>>6|ie<<26),ie=P[K-32],we=P[K-31],Se=P[K-14],Ue=P[K-13],D=(Ue&65535)+(we&65535)+(ge&65535)+(b&65535),z=(Ue>>>16)+(we>>>16)+(ge>>>16)+(b>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(pe&65535)+(q&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(pe>>>16)+(q>>>16)+(V>>>16),P[K]=ae<<16|V&65535,P[K+1]=z<<16|D&65535;var Qe=F,He=_,Ye=G,Ve=H,at=ee,ct=fe,dt=he,ht=N,gt=ce,Dt=me,Bt=W,St=S,$t=Z,Mt=se,jt=Q,Ot=M;for(ye=Ye&at,ve=Ve&ct,K=0;K<160;K+=8)pe=(Qe>>>28|He<<4)^(He>>>2|Qe<<30)^(He>>>7|Qe<<25),ge=(He>>>28|Qe<<4)^(Qe>>>2|He<<30)^(Qe>>>7|He<<25),q=(gt>>>14|Dt<<18)^(gt>>>18|Dt<<14)^(Dt>>>9|gt<<23),b=(Dt>>>14|gt<<18)^(Dt>>>18|gt<<14)^(gt>>>9|Dt<<23),ue=Qe&Ye,A=He&Ve,je=ue^Qe&at^ye,re=A^He&ct^ve,_e=gt&Bt^~gt&$t,Le=Dt&St^~Dt&Mt,ie=P[K],we=P[K+1],Se=I[K],Ue=I[K+1],D=(Ue&65535)+(we&65535)+(Le&65535)+(b&65535)+(Ot&65535),z=(Ue>>>16)+(we>>>16)+(Le>>>16)+(b>>>16)+(Ot>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(_e&65535)+(q&65535)+(jt&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(_e>>>16)+(q>>>16)+(jt>>>16)+(V>>>16),ie=ae<<16|V&65535,we=z<<16|D&65535,D=(re&65535)+(ge&65535),z=(re>>>16)+(ge>>>16)+(D>>>16),V=(je&65535)+(pe&65535)+(z>>>16),ae=(je>>>16)+(pe>>>16)+(V>>>16),Se=ae<<16|V&65535,Ue=z<<16|D&65535,D=(ht&65535)+(we&65535),z=(ht>>>16)+(we>>>16)+(D>>>16),V=(dt&65535)+(ie&65535)+(z>>>16),ae=(dt>>>16)+(ie>>>16)+(V>>>16),jt=ae<<16|V&65535,Ot=z<<16|D&65535,D=(Ue&65535)+(we&65535),z=(Ue>>>16)+(we>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(V>>>16),dt=ae<<16|V&65535,ht=z<<16|D&65535,pe=(dt>>>28|ht<<4)^(ht>>>2|dt<<30)^(ht>>>7|dt<<25),ge=(ht>>>28|dt<<4)^(dt>>>2|ht<<30)^(dt>>>7|ht<<25),q=(jt>>>14|Ot<<18)^(jt>>>18|Ot<<14)^(Ot>>>9|jt<<23),b=(Ot>>>14|jt<<18)^(Ot>>>18|jt<<14)^(jt>>>9|Ot<<23),y=dt&Qe,g=ht&He,je=y^dt&Ye^ue,re=g^ht&Ve^A,_e=jt>^~jt&Bt,Le=Ot&Dt^~Ot&St,ie=P[K+2],we=P[K+3],Se=I[K+2],Ue=I[K+3],D=(Ue&65535)+(we&65535)+(Le&65535)+(b&65535)+(Mt&65535),z=(Ue>>>16)+(we>>>16)+(Le>>>16)+(b>>>16)+(Mt>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(_e&65535)+(q&65535)+($t&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(_e>>>16)+(q>>>16)+($t>>>16)+(V>>>16),ie=ae<<16|V&65535,we=z<<16|D&65535,D=(re&65535)+(ge&65535),z=(re>>>16)+(ge>>>16)+(D>>>16),V=(je&65535)+(pe&65535)+(z>>>16),ae=(je>>>16)+(pe>>>16)+(V>>>16),Se=ae<<16|V&65535,Ue=z<<16|D&65535,D=(ct&65535)+(we&65535),z=(ct>>>16)+(we>>>16)+(D>>>16),V=(at&65535)+(ie&65535)+(z>>>16),ae=(at>>>16)+(ie>>>16)+(V>>>16),$t=ae<<16|V&65535,Mt=z<<16|D&65535,D=(Ue&65535)+(we&65535),z=(Ue>>>16)+(we>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(V>>>16),at=ae<<16|V&65535,ct=z<<16|D&65535,pe=(at>>>28|ct<<4)^(ct>>>2|at<<30)^(ct>>>7|at<<25),ge=(ct>>>28|at<<4)^(at>>>2|ct<<30)^(at>>>7|ct<<25),q=($t>>>14|Mt<<18)^($t>>>18|Mt<<14)^(Mt>>>9|$t<<23),b=(Mt>>>14|$t<<18)^(Mt>>>18|$t<<14)^($t>>>9|Mt<<23),w=at&dt,J=ct&ht,je=w^at&Qe^y,re=J^ct&He^g,_e=$t&jt^~$t>,Le=Mt&Ot^~Mt&Dt,ie=P[K+4],we=P[K+5],Se=I[K+4],Ue=I[K+5],D=(Ue&65535)+(we&65535)+(Le&65535)+(b&65535)+(St&65535),z=(Ue>>>16)+(we>>>16)+(Le>>>16)+(b>>>16)+(St>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(_e&65535)+(q&65535)+(Bt&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(_e>>>16)+(q>>>16)+(Bt>>>16)+(V>>>16),ie=ae<<16|V&65535,we=z<<16|D&65535,D=(re&65535)+(ge&65535),z=(re>>>16)+(ge>>>16)+(D>>>16),V=(je&65535)+(pe&65535)+(z>>>16),ae=(je>>>16)+(pe>>>16)+(V>>>16),Se=ae<<16|V&65535,Ue=z<<16|D&65535,D=(Ve&65535)+(we&65535),z=(Ve>>>16)+(we>>>16)+(D>>>16),V=(Ye&65535)+(ie&65535)+(z>>>16),ae=(Ye>>>16)+(ie>>>16)+(V>>>16),Bt=ae<<16|V&65535,St=z<<16|D&65535,D=(Ue&65535)+(we&65535),z=(Ue>>>16)+(we>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(V>>>16),Ye=ae<<16|V&65535,Ve=z<<16|D&65535,pe=(Ye>>>28|Ve<<4)^(Ve>>>2|Ye<<30)^(Ve>>>7|Ye<<25),ge=(Ve>>>28|Ye<<4)^(Ye>>>2|Ve<<30)^(Ye>>>7|Ve<<25),q=(Bt>>>14|St<<18)^(Bt>>>18|St<<14)^(St>>>9|Bt<<23),b=(St>>>14|Bt<<18)^(St>>>18|Bt<<14)^(Bt>>>9|St<<23),ye=Ye&at,ve=Ve&ct,je=ye^Ye&dt^w,re=ve^Ve&ht^J,_e=Bt&$t^~Bt&jt,Le=St&Mt^~St&Ot,ie=P[K+6],we=P[K+7],Se=I[K+6],Ue=I[K+7],D=(Ue&65535)+(we&65535)+(Le&65535)+(b&65535)+(Dt&65535),z=(Ue>>>16)+(we>>>16)+(Le>>>16)+(b>>>16)+(Dt>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(_e&65535)+(q&65535)+(gt&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(_e>>>16)+(q>>>16)+(gt>>>16)+(V>>>16),ie=ae<<16|V&65535,we=z<<16|D&65535,D=(re&65535)+(ge&65535),z=(re>>>16)+(ge>>>16)+(D>>>16),V=(je&65535)+(pe&65535)+(z>>>16),ae=(je>>>16)+(pe>>>16)+(V>>>16),Se=ae<<16|V&65535,Ue=z<<16|D&65535,D=(He&65535)+(we&65535),z=(He>>>16)+(we>>>16)+(D>>>16),V=(Qe&65535)+(ie&65535)+(z>>>16),ae=(Qe>>>16)+(ie>>>16)+(V>>>16),gt=ae<<16|V&65535,Dt=z<<16|D&65535,D=(Ue&65535)+(we&65535),z=(Ue>>>16)+(we>>>16)+(D>>>16),V=(Se&65535)+(ie&65535)+(z>>>16),ae=(Se>>>16)+(ie>>>16)+(V>>>16),Qe=ae<<16|V&65535,He=z<<16|D&65535;D=(_&65535)+(He&65535),z=(_>>>16)+(He>>>16)+(D>>>16),V=(F&65535)+(Qe&65535)+(z>>>16),ae=(F>>>16)+(Qe>>>16)+(V>>>16),this.h0h=ae<<16|V&65535,this.h0l=z<<16|D&65535,D=(H&65535)+(Ve&65535),z=(H>>>16)+(Ve>>>16)+(D>>>16),V=(G&65535)+(Ye&65535)+(z>>>16),ae=(G>>>16)+(Ye>>>16)+(V>>>16),this.h1h=ae<<16|V&65535,this.h1l=z<<16|D&65535,D=(fe&65535)+(ct&65535),z=(fe>>>16)+(ct>>>16)+(D>>>16),V=(ee&65535)+(at&65535)+(z>>>16),ae=(ee>>>16)+(at>>>16)+(V>>>16),this.h2h=ae<<16|V&65535,this.h2l=z<<16|D&65535,D=(N&65535)+(ht&65535),z=(N>>>16)+(ht>>>16)+(D>>>16),V=(he&65535)+(dt&65535)+(z>>>16),ae=(he>>>16)+(dt>>>16)+(V>>>16),this.h3h=ae<<16|V&65535,this.h3l=z<<16|D&65535,D=(me&65535)+(Dt&65535),z=(me>>>16)+(Dt>>>16)+(D>>>16),V=(ce&65535)+(gt&65535)+(z>>>16),ae=(ce>>>16)+(gt>>>16)+(V>>>16),this.h4h=ae<<16|V&65535,this.h4l=z<<16|D&65535,D=(S&65535)+(St&65535),z=(S>>>16)+(St>>>16)+(D>>>16),V=(W&65535)+(Bt&65535)+(z>>>16),ae=(W>>>16)+(Bt>>>16)+(V>>>16),this.h5h=ae<<16|V&65535,this.h5l=z<<16|D&65535,D=(se&65535)+(Mt&65535),z=(se>>>16)+(Mt>>>16)+(D>>>16),V=(Z&65535)+($t&65535)+(z>>>16),ae=(Z>>>16)+($t>>>16)+(V>>>16),this.h6h=ae<<16|V&65535,this.h6l=z<<16|D&65535,D=(M&65535)+(Ot&65535),z=(M>>>16)+(Ot>>>16)+(D>>>16),V=(Q&65535)+(jt&65535)+(z>>>16),ae=(Q>>>16)+(jt>>>16)+(V>>>16),this.h7h=ae<<16|V&65535,this.h7l=z<<16|D&65535},Y.prototype.hex=function(){this.finalize();var F=this.h0h,_=this.h0l,G=this.h1h,H=this.h1l,ee=this.h2h,fe=this.h2l,he=this.h3h,N=this.h3l,ce=this.h4h,me=this.h4l,W=this.h5h,S=this.h5l,Z=this.h6h,se=this.h6l,Q=this.h7h,M=this.h7l,P=this.bits,K=h[F>>>28&15]+h[F>>>24&15]+h[F>>>20&15]+h[F>>>16&15]+h[F>>>12&15]+h[F>>>8&15]+h[F>>>4&15]+h[F&15]+h[_>>>28&15]+h[_>>>24&15]+h[_>>>20&15]+h[_>>>16&15]+h[_>>>12&15]+h[_>>>8&15]+h[_>>>4&15]+h[_&15]+h[G>>>28&15]+h[G>>>24&15]+h[G>>>20&15]+h[G>>>16&15]+h[G>>>12&15]+h[G>>>8&15]+h[G>>>4&15]+h[G&15]+h[H>>>28&15]+h[H>>>24&15]+h[H>>>20&15]+h[H>>>16&15]+h[H>>>12&15]+h[H>>>8&15]+h[H>>>4&15]+h[H&15]+h[ee>>>28&15]+h[ee>>>24&15]+h[ee>>>20&15]+h[ee>>>16&15]+h[ee>>>12&15]+h[ee>>>8&15]+h[ee>>>4&15]+h[ee&15]+h[fe>>>28&15]+h[fe>>>24&15]+h[fe>>>20&15]+h[fe>>>16&15]+h[fe>>>12&15]+h[fe>>>8&15]+h[fe>>>4&15]+h[fe&15]+h[he>>>28&15]+h[he>>>24&15]+h[he>>>20&15]+h[he>>>16&15]+h[he>>>12&15]+h[he>>>8&15]+h[he>>>4&15]+h[he&15];return P>=256&&(K+=h[N>>>28&15]+h[N>>>24&15]+h[N>>>20&15]+h[N>>>16&15]+h[N>>>12&15]+h[N>>>8&15]+h[N>>>4&15]+h[N&15]),P>=384&&(K+=h[ce>>>28&15]+h[ce>>>24&15]+h[ce>>>20&15]+h[ce>>>16&15]+h[ce>>>12&15]+h[ce>>>8&15]+h[ce>>>4&15]+h[ce&15]+h[me>>>28&15]+h[me>>>24&15]+h[me>>>20&15]+h[me>>>16&15]+h[me>>>12&15]+h[me>>>8&15]+h[me>>>4&15]+h[me&15]+h[W>>>28&15]+h[W>>>24&15]+h[W>>>20&15]+h[W>>>16&15]+h[W>>>12&15]+h[W>>>8&15]+h[W>>>4&15]+h[W&15]+h[S>>>28&15]+h[S>>>24&15]+h[S>>>20&15]+h[S>>>16&15]+h[S>>>12&15]+h[S>>>8&15]+h[S>>>4&15]+h[S&15]),P==512&&(K+=h[Z>>>28&15]+h[Z>>>24&15]+h[Z>>>20&15]+h[Z>>>16&15]+h[Z>>>12&15]+h[Z>>>8&15]+h[Z>>>4&15]+h[Z&15]+h[se>>>28&15]+h[se>>>24&15]+h[se>>>20&15]+h[se>>>16&15]+h[se>>>12&15]+h[se>>>8&15]+h[se>>>4&15]+h[se&15]+h[Q>>>28&15]+h[Q>>>24&15]+h[Q>>>20&15]+h[Q>>>16&15]+h[Q>>>12&15]+h[Q>>>8&15]+h[Q>>>4&15]+h[Q&15]+h[M>>>28&15]+h[M>>>24&15]+h[M>>>20&15]+h[M>>>16&15]+h[M>>>12&15]+h[M>>>8&15]+h[M>>>4&15]+h[M&15]),K},Y.prototype.toString=Y.prototype.hex,Y.prototype.digest=function(){this.finalize();var F=this.h0h,_=this.h0l,G=this.h1h,H=this.h1l,ee=this.h2h,fe=this.h2l,he=this.h3h,N=this.h3l,ce=this.h4h,me=this.h4l,W=this.h5h,S=this.h5l,Z=this.h6h,se=this.h6l,Q=this.h7h,M=this.h7l,P=this.bits,K=[F>>>24&255,F>>>16&255,F>>>8&255,F&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255,G>>>24&255,G>>>16&255,G>>>8&255,G&255,H>>>24&255,H>>>16&255,H>>>8&255,H&255,ee>>>24&255,ee>>>16&255,ee>>>8&255,ee&255,fe>>>24&255,fe>>>16&255,fe>>>8&255,fe&255,he>>>24&255,he>>>16&255,he>>>8&255,he&255];return P>=256&&K.push(N>>>24&255,N>>>16&255,N>>>8&255,N&255),P>=384&&K.push(ce>>>24&255,ce>>>16&255,ce>>>8&255,ce&255,me>>>24&255,me>>>16&255,me>>>8&255,me&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255,S>>>24&255,S>>>16&255,S>>>8&255,S&255),P==512&&K.push(Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,se>>>24&255,se>>>16&255,se>>>8&255,se&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255),K},Y.prototype.array=Y.prototype.digest,Y.prototype.arrayBuffer=function(){this.finalize();var F=this.bits,_=new ArrayBuffer(F/8),G=new DataView(_);return G.setUint32(0,this.h0h),G.setUint32(4,this.h0l),G.setUint32(8,this.h1h),G.setUint32(12,this.h1l),G.setUint32(16,this.h2h),G.setUint32(20,this.h2l),G.setUint32(24,this.h3h),F>=256&&G.setUint32(28,this.h3l),F>=384&&(G.setUint32(32,this.h4h),G.setUint32(36,this.h4l),G.setUint32(40,this.h5h),G.setUint32(44,this.h5l)),F==512&&(G.setUint32(48,this.h6h),G.setUint32(52,this.h6l),G.setUint32(56,this.h7h),G.setUint32(60,this.h7l)),_},Y.prototype.clone=function(){var F=new Y(this.bits,!1);return this.copyTo(F),F},Y.prototype.copyTo=function(F){var _=0,G=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(_=0;_<G.length;++_)F[G[_]]=this[G[_]];for(_=0;_<this.blocks.length;++_)F.blocks[_]=this.blocks[_]};function oe(F,_,G){var H,ee=U(F);if(F=ee[0],ee[1]){for(var fe=[],he=F.length,N=0,ce,H=0;H<he;++H)ce=F.charCodeAt(H),ce<128?fe[N++]=ce:ce<2048?(fe[N++]=192|ce>>>6,fe[N++]=128|ce&63):ce<55296||ce>=57344?(fe[N++]=224|ce>>>12,fe[N++]=128|ce>>>6&63,fe[N++]=128|ce&63):(ce=65536+((ce&1023)<<10|F.charCodeAt(++H)&1023),fe[N++]=240|ce>>>18,fe[N++]=128|ce>>>12&63,fe[N++]=128|ce>>>6&63,fe[N++]=128|ce&63);F=fe}F.length>128&&(F=new Y(_,!0).update(F).array());for(var me=[],W=[],H=0;H<128;++H){var S=F[H]||0;me[H]=92^S,W[H]=54^S}Y.call(this,_,G),this.update(W),this.oKeyPad=me,this.inner=!0,this.sharedMemory=G}oe.prototype=new Y,oe.prototype.finalize=function(){if(Y.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Y.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Y.prototype.finalize.call(this)}},oe.prototype.clone=function(){var F=new oe([],this.bits,!1);this.copyTo(F),F.inner=this.inner;for(var _=0;_<this.oKeyPad.length;++_)F.oKeyPad[_]=this.oKeyPad[_];return F};var te=T(512);te.sha512=te,te.sha384=T(384),te.sha512_256=T(256),te.sha512_224=T(224),te.sha512.hmac=k(512),te.sha384.hmac=k(384),te.sha512_256.hmac=k(256),te.sha512_224.hmac=k(224),d?e.exports=te:(u.sha512=te.sha512,u.sha384=te.sha384,u.sha512_256=te.sha512_256,u.sha512_224=te.sha512_224)})()})(ky)),ky.exports}var y_=p_();const g_=Zf(y_),PF="3.7.8",m_=PF,eu=typeof sn.Buffer=="function",FE=typeof TextDecoder=="function"?new TextDecoder:void 0,SE=typeof TextEncoder=="function"?new TextEncoder:void 0,A_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rc=Array.prototype.slice.call(A_),Rf=(e=>{let t={};return e.forEach((i,a)=>t[i]=a),t})(rc),b_=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,vn=String.fromCharCode.bind(String),CE=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),$F=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),LF=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),zF=e=>{let t,i,a,u,c="";const f=e.length%3;for(let d=0;d<e.length;){if((i=e.charCodeAt(d++))>255||(a=e.charCodeAt(d++))>255||(u=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=i<<16|a<<8|u,c+=rc[t>>18&63]+rc[t>>12&63]+rc[t>>6&63]+rc[t&63]}return f?c.slice(0,f-3)+"===".substring(f):c},Wm=typeof btoa=="function"?e=>btoa(e):eu?e=>sn.Buffer.from(e,"binary").toString("base64"):zF,Og=eu?e=>sn.Buffer.from(e).toString("base64"):e=>{let i=[];for(let a=0,u=e.length;a<u;a+=4096)i.push(vn.apply(null,e.subarray(a,a+4096)));return Wm(i.join(""))},Pf=(e,t=!1)=>t?$F(Og(e)):Og(e),x_=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?vn(192|t>>>6)+vn(128|t&63):vn(224|t>>>12&15)+vn(128|t>>>6&63)+vn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return vn(240|t>>>18&7)+vn(128|t>>>12&63)+vn(128|t>>>6&63)+vn(128|t&63)}},w_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,qF=e=>e.replace(w_,x_),BE=eu?e=>sn.Buffer.from(e,"utf8").toString("base64"):SE?e=>Og(SE.encode(e)):e=>Wm(qF(e)),Ss=(e,t=!1)=>t?$F(BE(e)):BE(e),OE=e=>Ss(e,!0),E_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v_=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return vn((i>>>10)+55296)+vn((i&1023)+56320);case 3:return vn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return vn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},QF=e=>e.replace(E_,v_),HF=e=>{if(e=e.replace(/\s+/g,""),!b_.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i,a,u=[];for(let c=0;c<e.length;)t=Rf[e.charAt(c++)]<<18|Rf[e.charAt(c++)]<<12|(i=Rf[e.charAt(c++)])<<6|(a=Rf[e.charAt(c++)]),i===64?u.push(vn(t>>16&255)):a===64?u.push(vn(t>>16&255,t>>8&255)):u.push(vn(t>>16&255,t>>8&255,t&255));return u.join("")},eA=typeof atob=="function"?e=>atob(LF(e)):eu?e=>sn.Buffer.from(e,"base64").toString("binary"):HF,kF=eu?e=>CE(sn.Buffer.from(e,"base64")):e=>CE(eA(e).split("").map(t=>t.charCodeAt(0))),GF=e=>kF(KF(e)),I_=eu?e=>sn.Buffer.from(e,"base64").toString("utf8"):FE?e=>FE.decode(kF(e)):e=>QF(eA(e)),KF=e=>LF(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Tg=e=>I_(KF(e)),F_=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},YF=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),VF=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,YF(i));e("fromBase64",function(){return Tg(this)}),e("toBase64",function(t){return Ss(this,t)}),e("toBase64URI",function(){return Ss(this,!0)}),e("toBase64URL",function(){return Ss(this,!0)}),e("toUint8Array",function(){return GF(this)})},XF=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,YF(i));e("toBase64",function(t){return Pf(this,t)}),e("toBase64URI",function(){return Pf(this,!0)}),e("toBase64URL",function(){return Pf(this,!0)})},S_=()=>{VF(),XF()},C_={version:PF,VERSION:m_,atob:eA,atobPolyfill:HF,btoa:Wm,btoaPolyfill:zF,fromBase64:Tg,toBase64:Ss,encode:Ss,encodeURI:OE,encodeURL:OE,utob:qF,btou:QF,decode:Tg,isValid:F_,fromUint8Array:Pf,toUint8Array:GF,extendString:VF,extendUint8Array:XF,extendBuiltins:S_},Da=e=>`${e} is malformed`,ZF=e=>`${e} checksum is wrong`,B_=32,TE=32,Uf=36,JF=4,RE=58,UE=32,O_=32,DE=Da("block hash"),T_=Da("tx id"),Gy=Da("address"),R_=ZF("address");function U_(e){return Uint8Array.from(g_.sha512_256.array(e).slice(UE-JF,UE))}function D_(e){if(typeof e!="string")throw new Error(`${Gy}: expected string, got ${typeof e}, ${e}`);if(e.length!==RE)throw new Error(`${Gy}: expected length ${RE}, got ${e.length}: ${e}`);const t=_F.decode.asBytes(e);if(t.length!==Uf)throw new Error(`${Gy}: expected byte length ${Uf}, got ${t.length}`);const i=new Uint8Array(t.slice(0,Uf-JF)),a=new Uint8Array(t.slice(O_,Uf)),u=U_(i);if(!N_(u,a))throw new Error(R_);return!0}function M_(e){const t=C_.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(t.length!==TE)throw new Error(`${T_}: expected byte length ${TE}, got ${t.length}`);return!0}function j_(e){const t=_F.decode.asBytes(e);if(t.length!==B_)throw new Error(`${DE}: expected byte length ${DE}, got ${t.length}`);return!0}function N_(e,t){return e.length!==t.length?!1:Array.from(e).every((i,a)=>i===t[a])}const __=34,Rg=34,ME=36,P_=Da("block hash"),$_=Da("tx id"),L_=Da("address");function z_(e){const t=Pd.decode(e);if(t.length!==ME)throw new Error(`${L_}: expected byte length ${ME}, got ${t.length}`);return!0}function q_(e){const t=Pd.decode(e);if(t.length!==Rg)throw new Error(`${P_}: expected byte length ${__}, got ${t.length}`);return!0}function Q_(e){const t=Pd.decode(e);if(t.length!==Rg)throw new Error(`${$_}: expected byte length ${Rg}, got ${t.length}`);return!0}function H_({polynomial:e,numTables:t}){const i=new Uint32Array(256*t);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 ci=H_({polynomial:3988292384,numTables:8});function k_(){return-1}function G_(e,t){const i=t.byteLength,a=new DataView(t.buffer,t.byteOffset,i);let u=e,c=0;const f=-a.byteOffset&3;for(;c<f&&c<i;c++)u=ci[(u^a.getUint8(c))&255]^u>>>8;if(c===i)return u;c=f;let d=i-c;for(;d>=8;c+=8,d-=8){u^=a.getUint32(c,!0);const m=a.getUint32(c+4,!0);u=ci[0*256+(m>>>24&255)]^ci[1*256+(m>>>16&255)]^ci[2*256+(m>>>8&255)]^ci[3*256+(m>>>0&255)]^ci[4*256+(u>>>24&255)]^ci[5*256+(u>>>16&255)]^ci[6*256+(u>>>8&255)]^ci[7*256+(u>>>0&255)]}for(let m=c;m<i;m++)u=ci[(u^a.getUint8(m))&255]^u>>>8;return u}function K_(e){return(e^-1)>>>0}function Y_(e){return K_(G_(k_(),e))}const ca=Error,Df=Error,Ky="Unexpected end of buffer",Es=class Es{constructor(t){this.initialByte=t}CborInitialByte(t,i){this.initialByte=t<<5|i}static from(t){return new Es(t)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Es.AdditionalInformationMask}};Es.IndefiniteLengthBreakByte=255,Es.AdditionalInformationMask=31;let Oo=Es;var qi,Hr,Vf,Cs,qt,Xf,rt,WF,eS,tS,$f,Yn,Dg,nS,Lf,ic,oc,la,Mg,fa;const En=class En{constructor(t){Mi(this,rt);Mi(this,qi);Mi(this,Hr,0);Mi(this,Vf,new Array);Mi(this,Cs,!1);Mi(this,qt);Mi(this,Xf,0);So(this,qi,new Uint8Array(sn.Buffer.from(t,"hex"))),So(this,qt,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var c;const t=st(this,rt,ic).call(this,4);if(t.getAdditionalInfo()===31)return st(this,rt,la).call(this,1),st(this,rt,Mg).call(this,4),null;const i=st(this,rt,fa).call(this),{length:a,bytesRead:u}=st(c=En,Yn,Lf).call(c,t,i);return st(this,rt,la).call(this,u),st(this,rt,Mg).call(this,4,a),a}readTag(){const{tag:t,bytesRead:i}=st(this,rt,nS).call(this);return st(this,rt,la).call(this,i),So(this,Cs,!0),t}readByteString(){var c;const t=st(this,rt,ic).call(this,2);if(t.getAdditionalInfo()===31){const{val:f,encodingLength:d}=st(this,rt,tS).call(this,2);return st(this,rt,la).call(this,d),st(this,rt,$f).call(this),f}const i=st(this,rt,fa).call(this),{length:a,bytesRead:u}=st(c=En,Yn,Lf).call(c,t,i);return st(this,rt,eS).call(this,u+a),st(this,rt,la).call(this,u+a),st(this,rt,$f).call(this),i.slice(u,u+a)}readInt(){const t=st(this,rt,WF).call(this);return st(this,rt,la).call(this,t.bytesRead),st(this,rt,$f).call(this),t.signedInt}static ensureReadCapacityInArray(t,i){if(t.length<i)throw new ca(Ky)}};qi=new WeakMap,Hr=new WeakMap,Vf=new WeakMap,Cs=new WeakMap,qt=new WeakMap,Xf=new WeakMap,rt=new WeakSet,WF=function(){var i,a;const t=st(this,rt,ic).call(this);switch(t.getMajorType()){case 0:{const{unsignedInt:u,bytesRead:c}=st(i=En,Yn,oc).call(i,t,st(this,rt,fa).call(this));return{bytesRead:c,signedInt:BigInt(u)}}case 1:{const{unsignedInt:u,bytesRead:c}=st(a=En,Yn,oc).call(a,t,st(this,rt,fa).call(this));return{bytesRead:c,signedInt:BigInt(-1)-u}}default:throw new Df(`Reader type mismatch, expected 0 or 1 but got ${t.getMajorType()}`)}},eS=function(t){if(lt(this,qi).length-lt(this,Hr)<t)throw new ca(Ky)},tS=function(t){var d,m,h;const i=st(this,rt,fa).call(this);let a=sn.Buffer.from([]),u=0,c=1,f=st(d=En,Yn,Dg).call(d,i.slice(c),t);for(;f.getInitialByte()!==Oo.IndefiniteLengthBreakByte;){const{length:x,bytesRead:v}=st(m=En,Yn,Lf).call(m,f,i.slice(c)),I=v+Number(x);a=sn.Buffer.concat([a,i.slice(c+(I-x),c+I)]),c+=I,f=st(h=En,Yn,Dg).call(h,i.slice(c),t)}return u=c+1,{encodingLength:u,val:new Uint8Array(a)}},$f=function(){++lt(this,qt).itemsRead,So(this,Cs,!1)},Yn=new WeakSet,Dg=function(t,i){En.ensureReadCapacityInArray(t,1);const a=Oo.from(t[0]);if(a.getInitialByte()!==Oo.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new ca("Indefinite length string contains invalid data item");return a},nS=function(){var u;const t=st(this,rt,ic).call(this,6),{unsignedInt:i,bytesRead:a}=st(u=En,Yn,oc).call(u,t,st(this,rt,fa).call(this));return{bytesRead:a,tag:Number(i)}},Lf=function(t,i){var c;const{unsignedInt:a,bytesRead:u}=st(c=En,Yn,oc).call(c,t,i);return{bytesRead:u,length:Number(a)}},ic=function(t){if(lt(this,qt).definiteLength!==void 0&<(this,qt).definiteLength-lt(this,qt).itemsRead===0)throw new Df("No more data items to read");if(lt(this,Hr)===lt(this,qi).length)throw lt(this,qt).type===null&<(this,qt).definiteLength===void 0&<(this,Hr)>0?new Df("End of root-level. No more data items to read"):new ca(Ky);const i=Oo.from(lt(this,qi)[lt(this,Hr)]);switch(lt(this,qt).type){case 2:case 3:if(i.getInitialByte()===Oo.IndefiniteLengthBreakByte||i.getMajorType()===lt(this,qt).type&&i.getAdditionalInfo()!==31)break;throw new ca(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(t&&t!==i.getMajorType())throw new Df(`Major type mismatch, expected type ${t} but got ${i.getMajorType()}`);return i},oc=function(t,i){if((t.getInitialByte()&Oo.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(t.getAdditionalInfo())};switch(t.getAdditionalInfo()){case 24:return En.ensureReadCapacityInArray(i,2),{bytesRead:2,unsignedInt:BigInt(i[1])};case 25:{En.ensureReadCapacityInArray(i,3);const u=sn.Buffer.from(i.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(u)}}case 26:{En.ensureReadCapacityInArray(i,5);const u=sn.Buffer.from(i.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(u)}}case 27:{En.ensureReadCapacityInArray(i,9);const a=sn.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 ca("Invalid integer encoding")}},la=function(t){if(lt(this,Hr)+t>lt(this,qi).length)throw new ca("Buffer offset out of bounds");So(this,Hr,lt(this,Hr)+t),So(this,Xf,0)},Mg=function(t,i){const a={currentKeyOffset:lt(this,qt).currentKeyOffset,definiteLength:lt(this,qt).definiteLength,frameOffset:lt(this,qt).frameOffset,itemsRead:lt(this,qt).itemsRead,type:lt(this,qt).type};lt(this,Vf).push(a),lt(this,qt).type=t,lt(this,qt).definiteLength=i,lt(this,qt).itemsRead=0,lt(this,qt).frameOffset=lt(this,Hr),So(this,Cs,!1),lt(this,qt).currentKeyOffset=null},fa=function(){return lt(this,qi).slice(lt(this,Hr))},Mi(En,Yn);let Ug=En;const V_=ZF("address");function X_(e){return rS(_f.decode(e))}function rS(e){const t=new Ug(sn.Buffer.from(e).toString("hex"));t.readStartArray(),t.readTag();const i=t.readByteString();if(Number(t.readInt())!==Y_(i))throw new Error(V_);return!0}function Z_(e){const t=Bg.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=Bg.bech32.fromWords(t.words);if(!["addr","addr_test","stake","stake_test"].includes(t.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=sn.Buffer.from(i),{bytesRead:f}=Yy(c.subarray(u));u+=f;const{bytesRead:d}=Yy(c.subarray(u));return u+=d,Yy(c.subarray(u)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return rS(new Uint8Array(i));default:throw new Error(Da("address"))}}const Yy=e=>{let t=!0,i=0n,a=0;for(;t&&a<e.length;){const u=e[a];i<<=7n,i|=BigInt(u&127),t=(u&128)!==0,++a}return{bytesRead:a,value:i}};var Zt=(e=>(e[e.NONE=-1]="NONE",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[e.POLKADOT=7]="POLKADOT",e))(Zt||{});function Jr(e,t,i=()=>!0){try{return i(t(e))}catch{return!1}}mi("algorand-address",e=>Jr(e,D_));mi("algorand-blockhash",e=>Jr(e,M_));mi("algorand-txid",e=>Jr(e,j_));mi("mina-address",e=>Jr(e,z_));mi("mina-blockhash",e=>Jr(e,q_));mi("mina-txid",e=>Jr(e,Q_));mi("cardano-address",e=>Jr(e,X_)||Jr(e,Z_));mi("ss58",e=>Jr(e,a_.decode));mi("bs58check",e=>Jr(e,Pd.decode));mi("bech32",e=>Jr(e,t=>Bg.bech32.decode(t,Number.MAX_SAFE_INTEGER/2)));function Dn(e){return Be.Transform(e).Decode(t=>t.toLowerCase()).Encode(t=>t.toLowerCase())}function jE(e){return Be.Transform(e).Decode(t=>t.toUpperCase()).Encode(t=>t.toUpperCase())}const In={Uint256:Be.Transform(Be.BigInt({maximum:115792089237316195423570985008687907853269984665640564039457584007913129639935n,minimum:0n})).Decode(e=>e.toString()).Encode(e=>BigInt(e)),Algorand:{BlockHash:Be.Unsafe(Be.String({format:"algorand-blockhash"})),TxHash:Be.Unsafe(jE(Be.String({format:"algorand-txid"}))),Address:Be.Unsafe(jE(Be.String({format:"algorand-address"})))},Substrate:{Address:Be.Unsafe(Be.String({format:"ss58"}))},Avail:{BlockHash:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:Be.Unsafe(Be.String({format:"ss58"}))},Cardano:{BlockHash:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{64}$/))),Address:Be.Unsafe(Be.String({format:"cardano-address"})),Credential:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:Be.Unsafe(Dn(Be.String())),PolicyId:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:Be.Unsafe(Be.String()),AmountLovelace:Be.Unsafe(Be.RegExp(/^\d+$/))},Evm:{BlockHash:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),Signature:Be.Unsafe(Be.RegExp(/^0x[a-fA-F0-9]{130}$/)),PrivateKey:Be.Unsafe(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))},Midnight:{BlockHash:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:Be.Unsafe(Dn(Be.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:Be.Unsafe(Dn(Be.RegExp(/^[a-fA-F0-9]{181}$/)))},Mina:{BlockHash:Be.Unsafe(Be.String({format:"mina-blockhash"})),TxHash:Be.Unsafe(Be.String({format:"mina-txid"})),Address:Be.Unsafe(Be.String({format:"mina-address"}))},Polkadot:{BlockHash:Be.Unsafe(Be.String({format:"mina-blockhash"})),TxHash:Be.Unsafe(Be.String({format:"mina-txid"})),Address:Be.Unsafe(Be.String({format:"mina-address"}))},Caip2:Be.Unsafe(Be.String()),TimestampMsStr:Be.Unsafe(Be.RegExp(/^\d+$/)),UnknownFormat:Be.Unsafe(Be.String()),Lowercase:Dn(Be.String()),TrueOrFalse:Be.Transform(Be.Union([Be.Literal("T"),Be.Literal("F")])).Decode(e=>e==="T").Encode(e=>e?"T":"F"),EvmAbiEvent:Be.Unsafe(Be.Any())},J_={[-1]:Be.Literal("0x0"),0:In.Evm.Address,1:In.Cardano.Address,2:In.Substrate.Address,6:In.Avail.Address,3:In.Algorand.Address,4:In.Mina.Address,5:In.Midnight.Address,7:In.Polkadot.Address};Be.Object({type:Be.Literal(-1),address:Be.Literal("0x0")}),Be.Object({type:Be.Literal(0),address:In.Evm.Address}),Be.Object({type:Be.Literal(1),address:In.Cardano.Address}),Be.Object({type:Be.Literal(2),address:In.Substrate.Address}),Be.Object({type:Be.Literal(6),address:In.Avail.Address}),Be.Object({type:Be.Literal(3),address:In.Algorand.Address}),Be.Object({type:Be.Literal(4),address:In.Mina.Address}),Be.Object({type:Be.Literal(5),address:In.Midnight.Address}),Be.Object({type:Be.Literal(7),address:In.Polkadot.Address});function tA(e){return Object.fromEntries(Object.entries(e).map(([i,a])=>{const u=a.map(([f,d])=>d),c=Be.Tuple([Be.Literal(i),...u]);return[i,c]}))}function Pi(e){return["userAddress",J_[e]]}const $i=[["userSignature",Be.String()],["conciseInput",Be.String()],["millisecondTimestamp",Be.String()]],W_={[`${Zt.NONE}`]:[Pi(Zt.NONE),...$i],[`${Zt.EVM}`]:[Pi(Zt.EVM),...$i],[`${Zt.CARDANO}`]:[Pi(Zt.CARDANO),...$i],[`${Zt.SUBSTRATE}`]:[Pi(Zt.SUBSTRATE),...$i],[`${Zt.AVAIL}`]:[Pi(Zt.AVAIL),...$i],[`${Zt.ALGORAND}`]:[Pi(Zt.ALGORAND),...$i],[`${Zt.MINA}`]:[Pi(Zt.MINA),...$i],[`${Zt.MIDNIGHT}`]:[Pi(Zt.MIDNIGHT),...$i],[`${Zt.POLKADOT}`]:[Pi(Zt.POLKADOT),...$i]};tA(W_);const eP={batcherInput:"&B"},tP={[eP.batcherInput]:[["input",Be.Array(Be.String())]]};tA(tP);const Vy={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},nP={[Vy.createAccount]:[],[Vy.linkAddress]:[["account_id",Be.Number()],["signature_from_primary",Be.String()],["primary_address_type",Be.Number()],["new_address",Be.String()],["signature_from_new_address",Be.String()],["new_address_type",Be.Number()],["is_new_primary",Be.Boolean()]],[Vy.unlinkAddress]:[["account_id",Be.Number()],["signature_from_primary",Be.String()],["primary_address_type",Be.Number()],["target_address",Be.String()],["target_address_type",Be.Number()],["new_primary_address",Be.String()],["new_primary_address_type",Be.Number()]]};tA(nP);var Xy={exports:{}},NE;function rP(){return NE||(NE=1,(function(e){(function(){var t="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 ft=="object"&&ft.versions&&ft.versions.node;f?u=qc:c&&(u=self);for(var d=!u.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,m=!u.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),x=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],I=[1,256,65536,16777216],C=[6,1536,393216,100663296],B=[0,8,16,24],$=[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],O=[224,256,384,512],U=[128,256],R=["hex","buffer","arrayBuffer","array","digest"],T={128:168,256:136},L=u.JS_SHA3_NO_NODE_JS||!Array.isArray?function(b){return Object.prototype.toString.call(b)==="[object Array]"}:Array.isArray,k=m&&(u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,Y=function(b){var D=typeof b;if(D==="string")return[b,!0];if(D!=="object"||b===null)throw new Error(t);if(m&&b.constructor===ArrayBuffer)return[new Uint8Array(b),!1];if(!L(b)&&!k(b))throw new Error(t);return[b,!1]},oe=function(b){return Y(b)[0].length===0},te=function(b){for(var D=[],z=0;z<b.length;++z)D[z]=b[z];return D},F=function(b,D,z){return function(V){return new pe(b,D,b).update(V)[z]()}},_=function(b,D,z){return function(V,ae){return new pe(b,D,ae).update(V)[z]()}},G=function(b,D,z){return function(V,ae,ue,A){return W["cshake"+b].update(V,ae,ue,A)[z]()}},H=function(b,D,z){return function(V,ae,ue,A){return W["kmac"+b].update(V,ae,ue,A)[z]()}},ee=function(b,D,z,V){for(var ae=0;ae<R.length;++ae){var ue=R[ae];b[ue]=D(z,V,ue)}return b},fe=function(b,D){var z=F(b,D,"hex");return z.create=function(){return new pe(b,D,b)},z.update=function(V){return z.create().update(V)},ee(z,F,b,D)},he=function(b,D){var z=_(b,D,"hex");return z.create=function(V){return new pe(b,D,V)},z.update=function(V,ae){return z.create(ae).update(V)},ee(z,_,b,D)},N=function(b,D){var z=T[b],V=G(b,D,"hex");return V.create=function(ae,ue,A){return oe(ue)&&oe(A)?W["shake"+b].create(ae):new pe(b,D,ae).bytepad([ue,A],z)},V.update=function(ae,ue,A,y){return V.create(ue,A,y).update(ae)},ee(V,G,b,D)},ce=function(b,D){var z=T[b],V=H(b,D,"hex");return V.create=function(ae,ue,A){return new ge(b,D,ue).bytepad(["KMAC",A],z).bytepad([ae],z)},V.update=function(ae,ue,A,y){return V.create(ae,A,y).update(ue)},ee(V,H,b,D)},me=[{name:"keccak",padding:I,bits:O,createMethod:fe},{name:"sha3",padding:C,bits:O,createMethod:fe},{name:"shake",padding:x,bits:U,createMethod:he},{name:"cshake",padding:v,bits:U,createMethod:N},{name:"kmac",padding:v,bits:U,createMethod:ce}],W={},S=[],Z=0;Z<me.length;++Z)for(var se=me[Z],Q=se.bits,M=0;M<Q.length;++M){var P=se.name+"_"+Q[M];if(S.push(P),W[P]=se.createMethod(Q[M],se.padding),se.name!=="sha3"){var K=se.name+Q[M];S.push(K),W[K]=W[P]}}function pe(b,D,z){this.blocks=[],this.s=[],this.padding=D,this.outputBits=z,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(b<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=z>>5,this.extraBytes=(z&31)>>3;for(var V=0;V<50;++V)this.s[V]=0}pe.prototype.update=function(b){if(this.finalized)throw new Error(i);var D=Y(b);b=D[0];for(var z=D[1],V=this.blocks,ae=this.byteCount,ue=b.length,A=this.blockCount,y=0,g=this.s,w,J;y<ue;){if(this.reset)for(this.reset=!1,V[0]=this.block,w=1;w<A+1;++w)V[w]=0;if(z)for(w=this.start;y<ue&&w<ae;++y)J=b.charCodeAt(y),J<128?V[w>>2]|=J<<B[w++&3]:J<2048?(V[w>>2]|=(192|J>>6)<<B[w++&3],V[w>>2]|=(128|J&63)<<B[w++&3]):J<55296||J>=57344?(V[w>>2]|=(224|J>>12)<<B[w++&3],V[w>>2]|=(128|J>>6&63)<<B[w++&3],V[w>>2]|=(128|J&63)<<B[w++&3]):(J=65536+((J&1023)<<10|b.charCodeAt(++y)&1023),V[w>>2]|=(240|J>>18)<<B[w++&3],V[w>>2]|=(128|J>>12&63)<<B[w++&3],V[w>>2]|=(128|J>>6&63)<<B[w++&3],V[w>>2]|=(128|J&63)<<B[w++&3]);else for(w=this.start;y<ue&&w<ae;++y)V[w>>2]|=b[y]<<B[w++&3];if(this.lastByteIndex=w,w>=ae){for(this.start=w-ae,this.block=V[A],w=0;w<A;++w)g[w]^=V[w];q(g),this.reset=!0}else this.start=w}return this},pe.prototype.encode=function(b,D){var z=b&255,V=1,ae=[z];for(b=b>>8,z=b&255;z>0;)ae.unshift(z),b=b>>8,z=b&255,++V;return D?ae.push(V):ae.unshift(V),this.update(ae),ae.length},pe.prototype.encodeString=function(b){var D=Y(b);b=D[0];var z=D[1],V=0,ae=b.length;if(z)for(var ue=0;ue<b.length;++ue){var A=b.charCodeAt(ue);A<128?V+=1:A<2048?V+=2:A<55296||A>=57344?V+=3:(A=65536+((A&1023)<<10|b.charCodeAt(++ue)&1023),V+=4)}else V=ae;return V+=this.encode(V*8),this.update(b),V},pe.prototype.bytepad=function(b,D){for(var z=this.encode(D),V=0;V<b.length;++V)z+=this.encodeString(b[V]);var ae=(D-z%D)%D,ue=[];return ue.length=ae,this.update(ue),this},pe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,D=this.lastByteIndex,z=this.blockCount,V=this.s;if(b[D>>2]|=this.padding[D&3],this.lastByteIndex===this.byteCount)for(b[0]=b[z],D=1;D<z+1;++D)b[D]=0;for(b[z-1]|=2147483648,D=0;D<z;++D)V[D]^=b[D];q(V)}},pe.prototype.toString=pe.prototype.hex=function(){this.finalize();for(var b=this.blockCount,D=this.s,z=this.outputBlocks,V=this.extraBytes,ae=0,ue=0,A="",y;ue<z;){for(ae=0;ae<b&&ue<z;++ae,++ue)y=D[ae],A+=h[y>>4&15]+h[y&15]+h[y>>12&15]+h[y>>8&15]+h[y>>20&15]+h[y>>16&15]+h[y>>28&15]+h[y>>24&15];ue%b===0&&(D=te(D),q(D),ae=0)}return V&&(y=D[ae],A+=h[y>>4&15]+h[y&15],V>1&&(A+=h[y>>12&15]+h[y>>8&15]),V>2&&(A+=h[y>>20&15]+h[y>>16&15])),A},pe.prototype.arrayBuffer=function(){this.finalize();var b=this.blockCount,D=this.s,z=this.outputBlocks,V=this.extraBytes,ae=0,ue=0,A=this.outputBits>>3,y;V?y=new ArrayBuffer(z+1<<2):y=new ArrayBuffer(A);for(var g=new Uint32Array(y);ue<z;){for(ae=0;ae<b&&ue<z;++ae,++ue)g[ue]=D[ae];ue%b===0&&(D=te(D),q(D))}return V&&(g[ue]=D[ae],y=y.slice(0,A)),y},pe.prototype.buffer=pe.prototype.arrayBuffer,pe.prototype.digest=pe.prototype.array=function(){this.finalize();for(var b=this.blockCount,D=this.s,z=this.outputBlocks,V=this.extraBytes,ae=0,ue=0,A=[],y,g;ue<z;){for(ae=0;ae<b&&ue<z;++ae,++ue)y=ue<<2,g=D[ae],A[y]=g&255,A[y+1]=g>>8&255,A[y+2]=g>>16&255,A[y+3]=g>>24&255;ue%b===0&&(D=te(D),q(D))}return V&&(y=ue<<2,g=D[ae],A[y]=g&255,V>1&&(A[y+1]=g>>8&255),V>2&&(A[y+2]=g>>16&255)),A};function ge(b,D,z){pe.call(this,b,D,z)}ge.prototype=new pe,ge.prototype.finalize=function(){return this.encode(this.outputBits,!0),pe.prototype.finalize.call(this)};var q=function(b){var D,z,V,ae,ue,A,y,g,w,J,ye,ve,je,re,ie,we,Se,Ue,_e,Le,Qe,He,Ye,Ve,at,ct,dt,ht,gt,Dt,Bt,St,$t,Mt,jt,Ot,eo,Lo,Ma,tr,kt,rn,jr,to,ja,Na,zo,ti,no,Nr,_r,ni,Pr,Nt,qo,Qo,br,$r,_a,Ho,ko,Pa,Ai;for(V=0;V<48;V+=2)ae=b[0]^b[10]^b[20]^b[30]^b[40],ue=b[1]^b[11]^b[21]^b[31]^b[41],A=b[2]^b[12]^b[22]^b[32]^b[42],y=b[3]^b[13]^b[23]^b[33]^b[43],g=b[4]^b[14]^b[24]^b[34]^b[44],w=b[5]^b[15]^b[25]^b[35]^b[45],J=b[6]^b[16]^b[26]^b[36]^b[46],ye=b[7]^b[17]^b[27]^b[37]^b[47],ve=b[8]^b[18]^b[28]^b[38]^b[48],je=b[9]^b[19]^b[29]^b[39]^b[49],D=ve^(A<<1|y>>>31),z=je^(y<<1|A>>>31),b[0]^=D,b[1]^=z,b[10]^=D,b[11]^=z,b[20]^=D,b[21]^=z,b[30]^=D,b[31]^=z,b[40]^=D,b[41]^=z,D=ae^(g<<1|w>>>31),z=ue^(w<<1|g>>>31),b[2]^=D,b[3]^=z,b[12]^=D,b[13]^=z,b[22]^=D,b[23]^=z,b[32]^=D,b[33]^=z,b[42]^=D,b[43]^=z,D=A^(J<<1|ye>>>31),z=y^(ye<<1|J>>>31),b[4]^=D,b[5]^=z,b[14]^=D,b[15]^=z,b[24]^=D,b[25]^=z,b[34]^=D,b[35]^=z,b[44]^=D,b[45]^=z,D=g^(ve<<1|je>>>31),z=w^(je<<1|ve>>>31),b[6]^=D,b[7]^=z,b[16]^=D,b[17]^=z,b[26]^=D,b[27]^=z,b[36]^=D,b[37]^=z,b[46]^=D,b[47]^=z,D=J^(ae<<1|ue>>>31),z=ye^(ue<<1|ae>>>31),b[8]^=D,b[9]^=z,b[18]^=D,b[19]^=z,b[28]^=D,b[29]^=z,b[38]^=D,b[39]^=z,b[48]^=D,b[49]^=z,re=b[0],ie=b[1],Na=b[11]<<4|b[10]>>>28,zo=b[10]<<4|b[11]>>>28,ht=b[20]<<3|b[21]>>>29,gt=b[21]<<3|b[20]>>>29,Ho=b[31]<<9|b[30]>>>23,ko=b[30]<<9|b[31]>>>23,rn=b[40]<<18|b[41]>>>14,jr=b[41]<<18|b[40]>>>14,Mt=b[2]<<1|b[3]>>>31,jt=b[3]<<1|b[2]>>>31,we=b[13]<<12|b[12]>>>20,Se=b[12]<<12|b[13]>>>20,ti=b[22]<<10|b[23]>>>22,no=b[23]<<10|b[22]>>>22,Dt=b[33]<<13|b[32]>>>19,Bt=b[32]<<13|b[33]>>>19,Pa=b[42]<<2|b[43]>>>30,Ai=b[43]<<2|b[42]>>>30,Nt=b[5]<<30|b[4]>>>2,qo=b[4]<<30|b[5]>>>2,Ot=b[14]<<6|b[15]>>>26,eo=b[15]<<6|b[14]>>>26,Ue=b[25]<<11|b[24]>>>21,_e=b[24]<<11|b[25]>>>21,Nr=b[34]<<15|b[35]>>>17,_r=b[35]<<15|b[34]>>>17,St=b[45]<<29|b[44]>>>3,$t=b[44]<<29|b[45]>>>3,Ve=b[6]<<28|b[7]>>>4,at=b[7]<<28|b[6]>>>4,Qo=b[17]<<23|b[16]>>>9,br=b[16]<<23|b[17]>>>9,Lo=b[26]<<25|b[27]>>>7,Ma=b[27]<<25|b[26]>>>7,Le=b[36]<<21|b[37]>>>11,Qe=b[37]<<21|b[36]>>>11,ni=b[47]<<24|b[46]>>>8,Pr=b[46]<<24|b[47]>>>8,to=b[8]<<27|b[9]>>>5,ja=b[9]<<27|b[8]>>>5,ct=b[18]<<20|b[19]>>>12,dt=b[19]<<20|b[18]>>>12,$r=b[29]<<7|b[28]>>>25,_a=b[28]<<7|b[29]>>>25,tr=b[38]<<8|b[39]>>>24,kt=b[39]<<8|b[38]>>>24,He=b[48]<<14|b[49]>>>18,Ye=b[49]<<14|b[48]>>>18,b[0]=re^~we&Ue,b[1]=ie^~Se&_e,b[10]=Ve^~ct&ht,b[11]=at^~dt>,b[20]=Mt^~Ot&Lo,b[21]=jt^~eo&Ma,b[30]=to^~Na&ti,b[31]=ja^~zo&no,b[40]=Nt^~Qo&$r,b[41]=qo^~br&_a,b[2]=we^~Ue&Le,b[3]=Se^~_e&Qe,b[12]=ct^~ht&Dt,b[13]=dt^~gt&Bt,b[22]=Ot^~Lo&tr,b[23]=eo^~Ma&kt,b[32]=Na^~ti&Nr,b[33]=zo^~no&_r,b[42]=Qo^~$r&Ho,b[43]=br^~_a&ko,b[4]=Ue^~Le&He,b[5]=_e^~Qe&Ye,b[14]=ht^~Dt&St,b[15]=gt^~Bt&$t,b[24]=Lo^~tr&rn,b[25]=Ma^~kt&jr,b[34]=ti^~Nr&ni,b[35]=no^~_r&Pr,b[44]=$r^~Ho&Pa,b[45]=_a^~ko&Ai,b[6]=Le^~He&re,b[7]=Qe^~Ye&ie,b[16]=Dt^~St&Ve,b[17]=Bt^~$t&at,b[26]=tr^~rn&Mt,b[27]=kt^~jr&jt,b[36]=Nr^~ni&to,b[37]=_r^~Pr&ja,b[46]=Ho^~Pa&Nt,b[47]=ko^~Ai&qo,b[8]=He^~re&we,b[9]=Ye^~ie&Se,b[18]=St^~Ve&ct,b[19]=$t^~at&dt,b[28]=rn^~Mt&Ot,b[29]=jr^~jt&eo,b[38]=ni^~to&Na,b[39]=Pr^~ja&zo,b[48]=Pa^~Nt&Qo,b[49]=Ai^~qo&br,b[0]^=$[V],b[1]^=$[V+1]};if(d)e.exports=W;else for(Z=0;Z<S.length;++Z)u[S[Z]]=W[S[Z]]})()})(Xy)),Xy.exports}var iP=rP();const oP=Zf(iP),{keccak_256:OP}=oP;function iS(e,t,i,a,u){let c;switch(a){case Zt.EVM:c=oN(In.Evm.Address,i);break;default:throw new Error("NYI: Unsupported wallet address type: "+a)}return(""+t+c+u).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const aP={EVM:0};async function sP(e,t){const i=li(t.privateKey),a=sc({account:i,chain:cc,transport:uc()}),u=Date.now().toString(),c=i.address,f=aP.EVM,d=iS(null,u,c,f,e),m=await a.signMessage({account:i,message:d});return{addressType:f,userAddress:c,userSignature:m,conciseInput:e,millisecondTimestamp:u}}async function uP(e){const t=await fetch(yI,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function Mf(e,t){console.log("🚀 Creating signed input for:",e);const i=await sP(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await uP(i);return console.log("🎉 Batcher response:",a),a}function cP(){const[e,t]=Re.useState([]),[i,a]=Re.useState(!0),[u,c]=Re.useState(null),[f,d]=Re.useState(10),[m,h]=Re.useState(0),[x,v]=Re.useState([void 0]),[I,C]=Re.useState(!1),[B,$]=Re.useState([]),[O,U]=Re.useState(null),[R,T]=Re.useState([]),[L,k]=Re.useState(!1),[Y,oe]=Re.useState(!1),[te,F]=Re.useState(!1),[_,G]=Re.useState(""),[H,ee]=Re.useState(""),[fe,he]=Re.useState(""),[N,ce]=Re.useState(null),[me,W]=Re.useState(null),S=(ue,A,y)=>{const g=Date.now(),w={id:g,type:ue,title:A,message:y};T(J=>[...J,w]),setTimeout(()=>{T(J=>J.filter(ye=>ye.id!==g))},5e3)},Z=ue=>{T(A=>A.filter(y=>y.id!==ue))},se=()=>{const ue=Av(),A=li(ue),y={id:Date.now().toString(),privateKey:ue,address:A.address,name:`Wallet ${B.length+1}`};$(g=>[...g,y]),U(y),S("success","Wallet Generated",`New wallet created: ${A.address.slice(0,6)}...${A.address.slice(-4)}`)},Q=ue=>{$(A=>A.filter(y=>y.id!==ue)),(O==null?void 0:O.id)===ue&&U(null)},M=async()=>{if(!O){S("error","No Wallet","Please select a wallet first");return}F(!0);try{const A=JSON.stringify(["&createAccount"]);await Mf(A,O),S("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(ue){S("error","Create Account Error",`Error creating account: ${ue instanceof Error?ue.message:"Unknown error"}`)}finally{F(!1)}},P=async()=>{if(!O){S("error","No Wallet","Please select a wallet first");return}if(!N){S("error","No Account","Please select an account ID");return}F(!0);try{const ue=["&unlinkAddress",N.toString(),"","",""],A=JSON.stringify(ue);await Mf(A,O),S("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(ue){S("error","Unlink Self Error",`Error unlinking self: ${ue instanceof Error?ue.message:"Unknown error"}`)}finally{F(!1)}},K=async()=>{if(!O){S("error","No Wallet","Please select a wallet first");return}if(!N){S("error","No Account","Please select an account ID");return}if(!fe.trim()){S("error","No Address","Please enter an address to unlink");return}const ue=sc({account:li(O.privateKey),chain:cc,transport:uc()});F(!0);const A=`unlink:${String(N)}:${fe.toString().toLowerCase().trim()}:`,y=await ue.signMessage({account:li(O.privateKey),message:A});try{const g=["&unlinkAddress",N.toString(),y,fe.toString().toLowerCase().trim(),""],w=JSON.stringify(g);await Mf(w,O),S("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),he("")}catch(g){S("error","Unlink Other Error",`Error unlinking address: ${g instanceof Error?g.message:"Unknown error"}`)}finally{F(!1)}},pe=async()=>{if(!O){S("error","No Wallet","Please select a wallet first");return}if(!N){S("error","No Account","Please select an account ID");return}if(!me){S("error","No Link Wallet","Please select a wallet to link");return}F(!0);try{const ue=sc({account:li(O.privateKey),chain:cc,transport:uc()}),A=sc({account:li(me.privateKey),chain:cc,transport:uc()}),y=`link:${N}:${me.address.toString().toLowerCase().trim()}:false`,g=await ue.signMessage({account:li(O.privateKey),message:y}),w=`link:${N}:${O.address.toString().toLowerCase().trim()}:false`,J=await A.signMessage({account:li(me.privateKey),message:w}),ye=["&linkAddress",N.toString(),g,me.address.toString().toLowerCase().trim(),J,"false"],ve=JSON.stringify(ye);await Mf(ve,O),S("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),W(null)}catch(ue){S("error","Link Address Error",`Error linking address: ${ue instanceof Error?ue.message:"Unknown error"}`)}finally{F(!1)}},ge=async()=>{try{a(!0),c(null);const ue=new URL(V4);ue.searchParams.set("limit",String(f));const A=x[m];A&&ue.searchParams.set("after",A);const y=await fetch(ue.toString());if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const g=await y.json(),w=g.data??[];t(w),g.pagination&&(C(g.pagination.hasMore??!1),g.pagination.nextCursor&&x.length===m+1&&v(J=>[...J,g.pagination.nextCursor]))}catch(ue){console.error("Error fetching addresses:",ue),c(ue instanceof Error?ue.message:"Unknown error")}finally{a(!1)}};Re.useEffect(()=>{ge()},[f,m]);const q=e.reduce((ue,A)=>{const y=ue.find(g=>g.account_id===A.account_id);return y?(y.addresses.includes(A.address)||y.addresses.push(A.address),A.primary_address&&(y.hasPrimaryAddress=!0,y.primaryAddress=A.primary_address)):ue.push({account_id:A.account_id,addresses:[A.address],hasPrimaryAddress:!!A.primary_address,primaryAddress:A.primary_address}),ue},[]),b=[...new Set(q.map(ue=>ue.account_id).filter(ue=>ue!==null))],D=ue=>{d(Number(ue.target.value)),h(0),v([void 0])},z=()=>{I&&h(ue=>ue+1)},V=()=>{h(ue=>Math.max(0,ue-1))},ae=()=>{h(0)};return i?X.jsx("div",{className:"addresses-loading",children:X.jsx("div",{className:"loading-text",children:"Loading addresses..."})}):u?X.jsx("div",{className:"addresses-error",children:X.jsxs("div",{className:"error-text",children:["Error loading addresses: ",u]})}):X.jsxs("div",{className:"addresses-table-container",children:[X.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:R.map(ue=>X.jsxs("div",{style:{background:ue.type==="success"?"#10b981":ue.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:[X.jsxs("div",{children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:ue.title}),X.jsx("div",{style:{fontSize:"14px",opacity:.9},children:ue.message})]}),X.jsx("button",{type:"button",onClick:()=>Z(ue.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},ue.id))}),X.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[X.jsxs("div",{onClick:()=>k(!L),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:L?0:"20px"},children:[X.jsx("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"}),X.jsx("span",{style:{fontSize:"18px",color:"#666",transform:L?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!L&&X.jsxs(X.Fragment,{children:[X.jsx("div",{style:{marginBottom:"20px"},children:X.jsx("button",{type:"button",onClick:se,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"})}),B.length>0&&X.jsxs("div",{style:{marginBottom:"20px"},children:[X.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"}),X.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:B.map(ue=>X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",border:(O==null?void 0:O.id)===ue.id?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:(O==null?void 0:O.id)===ue.id?"#f0fdf4":"white"},children:[X.jsx("input",{type:"radio",name:"selectedWallet",checked:(O==null?void 0:O.id)===ue.id,onChange:()=>U(ue),style:{margin:0}}),X.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:ue.name}),X.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:ue.address}),X.jsx("button",{type:"button",onClick:()=>Q(ue.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"})]},ue.id))})]})]})]}),O&&X.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[X.jsxs("div",{onClick:()=>oe(!Y),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:Y?0:"20px"},children:[X.jsx("h3",{style:{margin:0,color:"#333"},children:"Account Commands"}),X.jsx("span",{style:{fontSize:"18px",color:"#666",transform:Y?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!Y&&X.jsxs(X.Fragment,{children:[X.jsxs("div",{style:{marginBottom:"20px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"}),X.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[X.jsxs("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:()=>G("create"),children:[X.jsx("input",{type:"radio",name:"action",checked:_==="create",onChange:()=>G("create"),style:{margin:0}}),X.jsxs("div",{style:{flex:"1"},children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"}),X.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"})]})]}),X.jsxs("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:()=>G("link"),children:[X.jsx("input",{type:"radio",name:"action",checked:_==="link",onChange:()=>G("link"),style:{margin:0}}),X.jsxs("div",{style:{flex:"1"},children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"}),X.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),X.jsxs("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:()=>G("unlink-other"),children:[X.jsx("input",{type:"radio",name:"action",checked:_==="unlink-other",onChange:()=>G("unlink-other"),style:{margin:0}}),X.jsxs("div",{style:{flex:"1"},children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"}),X.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),X.jsxs("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:()=>G("unlink-self"),children:[X.jsx("input",{type:"radio",name:"action",checked:_==="unlink-self",onChange:()=>G("unlink-self"),style:{margin:0}}),X.jsxs("div",{style:{flex:"1"},children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"}),X.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"})]})]})]})]}),_&&X.jsxs("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[_==="create"&&X.jsxs("div",{children:[X.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"}),X.jsx("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."}),X.jsx("button",{type:"button",onClick:M,disabled:te,style:{padding:"10px 20px",background:te?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:te?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Creating...":"Create Account"})]}),_==="link"&&X.jsxs("div",{children:[X.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"}),X.jsx("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."}),X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),X.jsxs("select",{value:N||"",onChange:ue=>ce(ue.target.value?parseInt(ue.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[X.jsx("option",{value:"",children:"-- Select Account ID --"}),b.map(ue=>X.jsxs("option",{value:ue,children:["Account ",ue]},ue))]})]}),X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"}),X.jsxs("select",{value:(me==null?void 0:me.id)||"",onChange:ue=>{const A=B.find(y=>y.id===ue.target.value);W(A||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[X.jsx("option",{value:"",children:"-- Select a wallet to link --"}),B.filter(ue=>ue.id!==(O==null?void 0:O.id)).map(ue=>X.jsxs("option",{value:ue.id,children:[ue.name," (",ue.address,")"]},ue.id))]})]}),X.jsx("button",{type:"button",onClick:pe,disabled:te||!N||!me,style:{padding:"10px 20px",background:te||!N||!me?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:te||!N||!me?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Linking...":"Link Wallet"})]}),_==="unlink-other"&&X.jsxs("div",{children:[X.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"}),X.jsx("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."}),X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),X.jsxs("select",{value:N||"",onChange:ue=>ce(ue.target.value?parseInt(ue.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[X.jsx("option",{value:"",children:"-- Select Account ID --"}),b.map(ue=>X.jsxs("option",{value:ue,children:["Account ",ue]},ue))]})]}),X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"}),X.jsx("input",{type:"text",value:fe,onChange:ue=>he(ue.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}})]}),X.jsx("button",{type:"button",onClick:K,disabled:te||!N||!fe.trim(),style:{padding:"10px 20px",background:te||!N||!fe.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:te||!N||!fe.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Unlinking...":"Unlink Address"})]}),_==="unlink-self"&&X.jsxs("div",{children:[X.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"}),X.jsx("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."}),X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),X.jsxs("select",{value:N||"",onChange:ue=>ce(ue.target.value?parseInt(ue.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[X.jsx("option",{value:"",children:"-- Select Account ID --"}),b.map(ue=>X.jsxs("option",{value:ue,children:["Account ",ue]},ue))]})]}),X.jsx("button",{type:"button",onClick:P,disabled:te||!N,style:{padding:"10px 20px",background:te||!N?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:te||!N?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Unlinking...":"Unlink Self"})]})]})]})]}),X.jsxs("div",{className:"addresses-table-wrapper",children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[X.jsx("h3",{style:{margin:0,color:"#333"},children:"Addresses"}),X.jsx("div",{className:"table-controls",children:X.jsxs("label",{children:["Rows per page:",X.jsxs("select",{value:f,onChange:D,children:[X.jsx("option",{value:10,children:"10"}),X.jsx("option",{value:20,children:"20"}),X.jsx("option",{value:50,children:"50"})]})]})})]}),i&&X.jsx("p",{children:"Loading..."}),u&&X.jsx("p",{className:"error",children:u}),!i&&!u&&X.jsxs(X.Fragment,{children:[X.jsxs("table",{className:"addresses-table",children:[X.jsx("thead",{children:X.jsxs("tr",{children:[X.jsx("th",{children:"Account ID"}),X.jsx("th",{children:"Addresses"})]})}),X.jsx("tbody",{children:q.map((ue,A)=>X.jsxs("tr",{className:ue.hasPrimaryAddress?"has-primary-address":"",children:[X.jsx("td",{className:"account-id-cell",children:X.jsx("div",{className:"account-id-content",children:ue.account_id??"No Account ID"})}),X.jsx("td",{className:"addresses-cell",children:ue.addresses.map((y,g)=>X.jsxs("div",{className:`address-item ${y===ue.primaryAddress?"primary-address":""}`,title:y===ue.primaryAddress?`${y} (Primary)`:y,children:[y,y===ue.primaryAddress&&X.jsx("span",{className:"primary-badge",children:"Primary"})]},y))})]},ue.account_id??`null-${A}`))})]}),X.jsxs("div",{className:"pagination-controls",children:[X.jsx("button",{type:"button",onClick:ae,disabled:m===0,children:"First"}),X.jsx("button",{type:"button",onClick:V,disabled:m===0,children:"Previous"}),X.jsx("button",{type:"button",onClick:z,disabled:!I||e.length<f,children:"Next"})]})]})]}),q.length===0&&X.jsx("div",{className:"no-addresses",children:X.jsx("div",{className:"no-data-text",children:"No addresses found"})}),X.jsx("style",{children:`
|
|
132
|
-
@keyframes slideIn {
|
|
133
|
-
from {
|
|
134
|
-
transform: translateX(100%);
|
|
135
|
-
opacity: 0;
|
|
136
|
-
}
|
|
137
|
-
to {
|
|
138
|
-
transform: translateX(0);
|
|
139
|
-
opacity: 1;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`})]})}function Zy({latestBlock:e,isConnected:t}){const[i,a]=Re.useState(!1),[u,c]=Re.useState(!1),[f,d]=Re.useState(!1),[m,h]=Re.useState(!1),x=()=>{a(!0)},v=()=>{a(!1)},I=()=>{c(!0)},C=()=>{c(!1)},B=()=>{d(!0)},$=()=>{d(!1)},O=()=>{h(!0)},U=()=>{h(!1)};return X.jsxs(X.Fragment,{children:[X.jsxs("header",{className:"header",children:[X.jsx("h1",{className:"title",children:"Paima Explorer"}),X.jsxs("div",{className:"header-right",children:[X.jsx("button",{type:"button",className:"batcher-api-button",onClick:x,children:"Batcher API"}),X.jsx("button",{type:"button",className:"node-api-button",onClick:I,children:"Paima Engine Node API"}),X.jsx("button",{type:"button",className:"documentation-button",onClick:B,children:"Documentation"}),X.jsx("button",{type:"button",className:"addresses-button",onClick:O,children:"Addresses"}),X.jsxs("div",{className:"block-info",children:[X.jsx("span",{children:"Latest Block:"}),X.jsx("span",{id:"latest-block",style:{backgroundColor:t?"rgba(76, 175, 80, 0.1)":"rgba(244, 67, 54, 0.1)",color:t?"#4caf50":"#f44336"},children:t?e.toLocaleString():"Connection Error"})]})]})]}),X.jsx(nc,{isOpen:i,onClose:v,title:"Batcher API Documentation",className:"api",url:O2,children:X.jsx("div",{className:"documentation-content",children:X.jsx("iframe",{src:O2,className:"documentation-iframe",title:"Batcher API Documentation"})})}),X.jsx(nc,{isOpen:u,onClose:C,title:"Paima Engine Node API Documentation",className:"api",url:T2,children:X.jsx("div",{className:"documentation-content",children:X.jsx("iframe",{src:T2,className:"documentation-iframe",title:"Paima Engine Node API Documentation"})})}),X.jsx(nc,{className:"docs",isOpen:f,onClose:$,title:"Documentation",url:R2,children:X.jsx("div",{className:"documentation-content",children:X.jsx("iframe",{src:R2,className:"documentation-iframe",title:"Documentation"})})}),X.jsx(nc,{className:"addresses",isOpen:m,onClose:U,title:"Addresses",children:X.jsx(cP,{})})]})}function lP(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function fP({block:e,isNew:t=!1}){const[i,a]=Re.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 X.jsxs("div",{className:`block-item ${t?"new-block":""}`,onClick:u,style:{backgroundColor:i?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[X.jsxs("div",{className:"block-header",children:[X.jsxs("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]}),X.jsx("div",{className:"block-timestamp",children:lP(e.timestamp)})]}),X.jsx("div",{className:"block-hash",children:e.hash})]})}function dP({title:e,blockTime:t,blocks:i,isMainColumn:a=!1,newBlockIndex:u}){const c=i.filter((f,d,m)=>d===m.findIndex(h=>h.number===f.number&&h.hash===f.hash));return X.jsxs("div",{className:`row ${a?"main-row":""}`,children:[X.jsxs("h2",{className:"row-title",children:[e,t?` - Block Time: ${t}`:""]}),X.jsx("div",{className:"blocks-list",children:c.length===0?X.jsx("div",{className:"block-item placeholder",children:"No Blocks Fetched"}):c.map((f,d)=>X.jsx(fP,{block:f,isNew:u===d},`${d}-${f.number}-${f.hash}`))})]})}function hP(e,t){if(t.blockTime)return`${t.blockTime/1e3}s`}function _E({chainConfigs:e,newBlockIndices:t}){return X.jsx("div",{className:"rows-container",children:Object.entries(e).map(([i,a])=>{const c=(a.type||"").toUpperCase()==="CARDANO"?[]:a.blocks;return X.jsx(dP,{title:a.name,blockTime:hP(i,a),blocks:c,isMainColumn:i==="paima",newBlockIndex:t[i]},i)})})}function pP(e,t){if(e==null)return"";if(t==="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 t&&t.toLowerCase().includes("balance")?`${(Number(i)/Math.pow(10,18)).toFixed(6)} ETH`:i.toString()}return e.toString()}function yP({title:e,data:t,pagination:i,onPrev:a,onNext:u,onFirst:c,onLimitChange:f}){const d=t&&t.rows&&t.fields&&t.rows.length>0,m=(t==null?void 0:t.fields)||[],h=(t==null?void 0:t.rows)||[],x=!!i&&i.hasMore&&h.length>=i.limit,v=!!i&&i.currentPage>0,I=!i||!v&&!x;return X.jsxs("div",{className:`primitive-table-container ${h.length>6?"has-scroll":""}`,children:[X.jsx("h3",{className:"primitive-table-title",children:e}),d?X.jsxs("table",{className:"primitive-table",children:[X.jsx("thead",{children:X.jsx("tr",{children:m.map(C=>X.jsx("th",{children:C.name.replace(/_/g," ").toUpperCase()},C.name))})}),X.jsx("tbody",{children:h.slice().reverse().map((C,B)=>X.jsx("tr",{children:m.map($=>{const O=C[$.name],U=pP(O,$.name),R=O?O.toString():"";return X.jsx("td",{dangerouslySetInnerHTML:{__html:U},title:R.length>30?R:void 0},$.name)})},B))})]}):X.jsx("div",{className:"table-error",children:"No data available"}),i&&!I&&X.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[X.jsx("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"}),X.jsx("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"}),X.jsx("button",{type:"button",onClick:u,disabled:!x,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:x?"white":"#f3f4f6",cursor:x?"pointer":"not-allowed"},children:"Next"})]})})]})}function Jy({title:e,tables:t,isLoading:i=!1,children:a,pagination:u,onPrev:c,onNext:f,onFirst:d,onLimitChange:m}){const h=Object.entries(t);return X.jsxs("div",{className:"tables-section",children:[X.jsx("h2",{className:"section-title",children:e}),a,X.jsx("div",{className:"primitive-tables",children:h.length===0?X.jsxs("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]}):h.map(([x,v])=>X.jsx(yP,{title:x,data:v,pagination:u==null?void 0:u[x],onPrev:c?()=>c(x):void 0,onNext:f?()=>f(x):void 0,onFirst:d?()=>d(x):void 0,onLimitChange:m?I=>m(x,I):void 0},x))})]})}const gP={EVM:0};async function mP(e,t){const i=li(t.privateKey),a=sc({account:i,chain:cc,transport:uc()}),u=Date.now().toString(),c=i.address,f=gP.EVM,d=iS(null,u,c,f,e),m=await a.signMessage({message:d});return{addressType:f,userAddress:c,userSignature:m,conciseInput:e,millisecondTimestamp:u}}async function AP(e){const t=await fetch(yI,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function bP(e,t){console.log("🚀 Creating signed input for:",e);const i=await mP(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await AP(i);return console.log("🎉 Batcher response:",a),a}async function xP(){try{const e=await fetch(k4);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 wP(){const[e,t]=Re.useState(""),[i,a]=Re.useState({}),[u,c]=Re.useState(!1),[f,d]=Re.useState(null),[m,h]=Re.useState([]),[x,v]=Re.useState(!0),[I,C]=Re.useState({}),[B,$]=Re.useState(!0),O=(F,_,G)=>{const H=Date.now(),ee={id:H,type:F,title:_,message:G};h(fe=>[...fe,ee]),setTimeout(()=>{h(fe=>fe.filter(he=>he.id!==H))},5e3)};Re.useEffect(()=>{(async()=>{try{$(!0);const _=await xP();C(_)}catch{O("error","Grammar Error","Failed to load grammar from server")}finally{$(!1)}})()},[]);const U=Object.keys(I),R=()=>{const F=Av(),_=li(F),G={privateKey:F,address:_.address};d(G),O("success","Wallet Generated",`New wallet created: ${_.address.slice(0,6)}...${_.address.slice(-4)}`)},T=F=>{h(_=>_.filter(G=>G.id!==F))},L=F=>{t(F),a({})},k=(F,_)=>{a(G=>({...G,[F]:_}))},Y=()=>{if(!e)return null;const F=[e],_=I[e];for(const[G,H]of _){const ee=i[G];if(ee!==void 0&&ee!=="")if(H.type==="integer")F.push(parseInt(ee)||0);else if(H.type==="object")try{F.push(typeof ee=="string"?JSON.parse(ee):ee)}catch{F.push(ee)}else F.push(ee)}return F},oe=(F,_)=>{const G=i[F]||"";return _.type==="integer"?X.jsx("input",{type:"number",value:G,onChange:H=>k(F,H.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):_.type==="string"?X.jsx("input",{type:"text",value:G,onChange:H=>k(F,H.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):_.type==="object"?X.jsx("textarea",{value:typeof G=="string"?G:JSON.stringify(G,null,2),onChange:H=>k(F,H.target.value),placeholder:`Enter ${F} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}}):X.jsx("input",{type:"text",value:G,onChange:H=>k(F,H.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}})},te=async()=>{if(!e){O("error","Missing Type","Please select a type");return}if(!f){O("error","No Wallet","Please generate a wallet first");return}const F=Y();if(!F){O("error","Invalid Input","Failed to build JSON array");return}c(!0);try{const _=JSON.stringify(F);await bP(_,f),O("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch(_){O("error","Batcher Error",`Error sending to batcher: ${_ instanceof Error?_.message:"Unknown error"}`)}finally{c(!1)}};return X.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[X.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:m.map(F=>X.jsxs("div",{style:{background:F.type==="success"?"#10b981":F.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:[X.jsxs("div",{children:[X.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:F.title}),X.jsx("div",{style:{fontSize:"14px",opacity:.9},children:F.message})]}),X.jsx("button",{onClick:()=>T(F.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},F.id))}),X.jsxs("div",{onClick:()=>v(!x),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:x?0:"20px"},children:[X.jsx("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"}),X.jsx("span",{style:{fontSize:"18px",color:"#666",transform:x?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!x&&X.jsxs(X.Fragment,{children:[B&&X.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."}),X.jsx("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"})]})}),!B&&X.jsxs(X.Fragment,{children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[X.jsx("button",{onClick:R,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"}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[X.jsx("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"}),X.jsx("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"})]})]}),X.jsxs("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[X.jsx("div",{style:{flex:"0 0 300px"},children:X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"}),X.jsxs("select",{value:e,onChange:F=>L(F.target.value),disabled:u,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[X.jsx("option",{value:"",children:"-- Select a type --"}),U.map(F=>X.jsx("option",{value:F,children:F.charAt(0).toUpperCase()+F.slice(1)},F))]})]})}),e&&X.jsx("div",{style:{flex:"1",minWidth:"0"},children:X.jsxs("div",{style:{marginBottom:"15px"},children:[X.jsxs("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]}),X.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:I[e].map(([F,_])=>X.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[X.jsxs("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[F," (",_.type,"):"]}),oe(F,_)]},F))})]})})]}),e&&X.jsxs("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[X.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"}),X.jsx("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(Y(),null,2)})]}),X.jsx("button",{onClick:te,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"}),X.jsx("style",{children:`
|
|
143
|
-
@keyframes slideIn {
|
|
144
|
-
from {
|
|
145
|
-
transform: translateX(100%);
|
|
146
|
-
opacity: 0;
|
|
147
|
-
}
|
|
148
|
-
to {
|
|
149
|
-
transform: translateX(0);
|
|
150
|
-
opacity: 1;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`})]})]})]})}function PE({isOpen:e,onClose:t,title:i,tableNames:a,selectedNames:u,onApply:c}){const f=Re.useMemo(()=>new Set(u),[u]),[d,m]=Re.useState(f);Re.useEffect(()=>{m(new Set(u))},[u,e]);const h=C=>{m(B=>{const $=new Set(B);return $.has(C)?$.delete(C):$.add(C),$})},x=()=>m(new Set(a)),v=()=>m(new Set),I=()=>{c(Array.from(d)),t()};return X.jsx(nc,{isOpen:e,onClose:t,title:i,className:"table-selector",children:X.jsxs("div",{className:"table-selector-content",children:[X.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12},children:[X.jsx("button",{type:"button",className:"batcher-api-button",onClick:x,children:"Select All"}),X.jsx("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Deselect All"})]}),X.jsx("ul",{children:a.map(C=>X.jsx("li",{children:X.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[X.jsx("input",{type:"checkbox",checked:d.has(C),onChange:()=>h(C)}),C]})},C))}),X.jsxs("div",{style:{display:"flex",gap:8,marginTop:12},children:[X.jsx("button",{type:"button",className:"batcher-api-button",onClick:I,children:"Apply"}),X.jsx("button",{type:"button",className:"documentation-button",onClick:t,children:"Cancel"})]})]})})}function Wy(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let $E=1e3;const EP=(e,t,i)=>{const a=[];for(let u=e;u<=t;u+=i){const c=Math.min(u+i-1,t);a.push([u,c])}return a},LE=async(e,t,i,a)=>{const u=t===i?`${B2}/${encodeURIComponent(e)}/blocks?page=${t}`:`${B2}/${encodeURIComponent(e)}/blocks?from=${t}&to=${i}`,c=await fetch(u);if(!c.ok)return console.warn(`Failed to fetch blocks ${t}-${i} for ${e}: ${c.status}`),[];const f=await c.json(),d=f==null?void 0:f.blocks;return!d||!Array.isArray(d)?[]:d.map(m=>vP(m,a,t)).filter(m=>m!==null)},zE={EVM:e=>({number:Number(e.number),hash:e.hash??"",timestamp:e.timestamp!=null?new Date(Number(e.timestamp)*1e3):new Date}),MIDNIGHT:e=>{var u,c;const t=(u=e==null?void 0:e.header)==null?void 0:u.number,i=t?parseInt(t,16):void 0;return{number:Number(e.height??(i!==void 0?i:void 0)),hash:e.hash??((c=e.header)==null?void 0:c.parentHash)??"",timestamp:new Date}},CARDANO:e=>{var t,i,a,u,c,f;return{number:Number(((i=(t=e.block)==null?void 0:t.header)==null?void 0:i.height)??((a=e.header)==null?void 0:a.height)),hash:((c=(u=e.block)==null?void 0:u.header)==null?void 0:c.hash)??((f=e.header)==null?void 0:f.hash)??"",timestamp:new Date(Number(e.timestamp??0))}},DEFAULT:(e,t)=>({number:Number(e.blockNumber??t),hash:e.hash??"",timestamp:e.timestamp!=null?new Date(Number(e.timestamp)):new Date})},vP=(e,t,i)=>{const u=(zE[t]??zE.DEFAULT)(e,i);return u.number==null||Number.isNaN(u.number)?null:u};function IP(){const[e,t]=Re.useState({}),[i,a]=Re.useState(!0),[u,c]=Re.useState(null),[f,d]=Re.useState({}),m=Re.useRef(null),h=Re.useRef(!1),x=Re.useRef(()=>{}),v=Re.useRef(!1),I=Re.useRef(!1),C=Re.useRef(null),B=Re.useRef({}),$=Re.useCallback(async Y=>{if(Y!=="Paima")return;const oe=e[Y];if(oe&&oe.rpcEndpoint&&oe.type==="EVM"&&!h.current){h.current=!0;try{const te=await fetch(oe.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!te.ok)throw new Error(`HTTP error! status: ${te.status}`);const F=await te.json();if(F.error)throw new Error(F.error.message);const _=parseInt(F.result,16);t(G=>{const H={...G},ee=H[Y];if(_>(ee.latestBlockNumber||0)&&(ee.previousLatestBlockNumber=ee.latestBlockNumber||0,ee.latestBlockNumber=_,ee.isConnected=!0,ee.previousLatestBlockNumber>0)){const fe=Wy(),N={number:_,hash:fe,timestamp:new Date};ee.blocks.some(me=>me.number===_&&me.hash===fe)||(ee.blocks.unshift(N),ee.blocks.length>20&&(ee.blocks=ee.blocks.slice(0,20)),d(me=>({...me,[Y]:0})),setTimeout(()=>{d(me=>({...me,[Y]:void 0}))},500))}return H})}catch(te){console.error(`Error fetching latest block for ${Y}:`,te),t(F=>({...F,[Y]:{...F[Y],isConnected:!1}}))}finally{h.current=!1}}},[e]);Re.useEffect(()=>{x.current=$},[$]);const O=Re.useCallback((Y,oe=e)=>{const te=oe[Y];if(!te)return;const F=te.rpcEndpoint?te.latestBlockNumber||0:te.currentBlock++,_=Wy(),H={number:F,hash:_,timestamp:new Date};t(ee=>{const fe={...ee},he=fe[Y];return he.blocks.some(ce=>ce.number===F)||(he.blocks.unshift(H),he.blocks.length>20&&(he.blocks=he.blocks.slice(0,20))),fe}),d(ee=>({...ee,[Y]:0})),setTimeout(()=>{d(ee=>({...ee,[Y]:void 0}))},250)},[e]),U=Re.useCallback(async()=>{a(!0),c(null);try{const Y=await q4();$E=Y.Paima.blockTime??1e3,t(Y),console.log("✅ Loaded chain configs from API:",Y)}catch(Y){const oe=Y instanceof Error?Y.message:"Unknown error";c(oe),console.error("❌ Failed to load chain configs, using fallback:",oe),t(hI)}finally{a(!1)}},[]),R=Re.useCallback(Y=>{t(oe=>{const te={...oe};return Object.keys(Y).forEach(F=>{const _=te[F];if(_&&!_.rpcEndpoint){const G=[];for(let H=-5;H<0;H++){const ee=_.currentBlock+H,fe=Wy(),he=new Date(Date.now()+H*(_.blockTime??1e3));G.push({number:ee,hash:fe,timestamp:he})}_.blocks=G.reverse(),_.currentBlock=_.currentBlock+1}}),te})},[]);Re.useEffect(()=>{U()},[U]),Re.useEffect(()=>{i||v.current||Object.keys(e).length!==0&&(R(e),v.current=!0)},[i]),Re.useEffect(()=>{if(i||I.current||Object.keys(e).length===0)return;const Y=[];return Object.keys(e).forEach(oe=>{const te=e[oe];if(!te.rpcEndpoint){const F=setInterval(()=>{O(oe)},te.blockTime);Y.push(F)}}),I.current=!0,()=>{Y.forEach(oe=>clearInterval(oe)),I.current=!1}},[i]),Re.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!i&&m.current==null)return x.current("Paima"),m.current=setInterval(()=>{x.current("Paima")},$E),()=>{m.current!=null&&(clearInterval(m.current),m.current=null)}},[i]),Re.useEffect(()=>{if(i||C.current!=null)return;const Y=()=>{const F=Object.entries(e).filter(([G])=>G!=="Paima");let _=Number.POSITIVE_INFINITY;for(const[,G]of F)typeof G.blockTime=="number"&&G.blockTime>0&&G.blockTime<_&&(_=G.blockTime);return Number.isFinite(_)?Math.max(1e3,_):1e4},oe=async()=>{try{const F=await fetch(Q4);if(!F.ok)throw new Error(`block-heights HTTP ${F.status}`);const _=await F.json(),G=[];for(const[H,ee]of Object.entries(e)){if(H==="Paima")continue;const fe=ee.protocolName;if(!fe)continue;const he=_.find(ce=>ce.protocol_name===fe);if(!he||he.synced_page==null)continue;const N=B.current[fe]||0;if(!(he.synced_page<=N))try{const ce=[],me=N+1,W=he.synced_page;if(W>me){console.log(`[Explorer] Interpolating gap for ${fe}: ${me} to ${W}`);const S=EP(me,W,10),se=(await Promise.all(S.map(([Q,M])=>LE(fe,Q,M,ee.type)))).flat();ce.push(...se)}else{const S=await LE(fe,he.synced_page,he.synced_page,ee.type);ce.push(...S)}ce.length>0&&(G.push({key:H,blocks:ce}),B.current[fe]=he.synced_page)}catch{}}G.length>0&&t(H=>{const ee={...H};for(const fe of G){const he=ee[fe.key];if(!he||!fe.blocks||fe.blocks.length===0)continue;const N=fe.blocks.filter(ce=>!he.blocks.some(me=>me.number===ce.number));if(N.length>0){const ce=N.sort((me,W)=>W.number-me.number);he.blocks.unshift(...ce),he.blocks.length>20&&(he.blocks=he.blocks.slice(0,20))}}return ee})}catch{}};oe();const te=Y();return console.log(`[Explorer] Engine block-heights polling interval resolved to ${te} ms`),C.current=setInterval(oe,te),()=>{C.current!=null&&(clearInterval(C.current),C.current=null)}},[i]);const T=e.Paima,L=(T==null?void 0:T.latestBlockNumber)||0,k=(T==null?void 0:T.isConnected)||!1;return{chainConfigs:e,newBlockIndices:f,latestBlock:L,isConnected:k,isLoadingConfig:i,configError:u}}function FP(){const[t,i]=Re.useState([]),[a,u]=Re.useState([]),[c,f]=Re.useState({}),[d,m]=Re.useState({}),[h,x]=Re.useState({}),[v,I]=Re.useState({}),[C,B]=Re.useState({}),[$,O]=Re.useState({}),[U,R]=Re.useState({}),T=Re.useRef(!1),L=Re.useRef([]),k=Re.useRef([]),Y=Re.useRef({}),oe=Re.useRef({}),te=Re.useRef({}),F=Re.useRef({}),_=Re.useRef(new Set),G=Re.useRef(new Set);Re.useEffect(()=>{L.current=t},[t]),Re.useEffect(()=>{k.current=a},[a]),Re.useEffect(()=>{Y.current=$},[$]),Re.useEffect(()=>{oe.current=U},[U]),Re.useEffect(()=>{te.current=v},[v]),Re.useEffect(()=>{F.current=C},[C]);const H=Re.useCallback(q=>q.map(b=>({name:b.column_name,dataTypeID:25})),[]),ee=Re.useCallback((q,b,D)=>{const z=Array.isArray(q)?q:[];let V=[];return D&&D.length>0?V=H(D):z.length>0&&(V=Object.keys(z[0]).map(ae=>({name:ae,dataTypeID:25}))),{command:"SELECT",rowCount:z.length,rows:z,fields:V}},[H]),fe=Re.useCallback((q,b,D)=>{const z=Array.isArray(q)?q:[];let V=[];return D&&D.length>0?V=H(D):z.length>0&&(V=Object.keys(z[0]).map(ae=>({name:ae,dataTypeID:25}))),{command:"SELECT",rowCount:z.length,rows:z,fields:V}},[H]),he=Re.useCallback(async q=>{try{if(_.current.has(q))return null;const b=Y.current[q];if(b)return b;const D=await fetch(`${K4}/${q}`);if(!D.ok){if(D.status===404)return console.log(`🚫 Schema for primitive ${q} not found (404)`),_.current.add(q),null;throw new Error(`HTTP error! status: ${D.status}`)}const z=await D.json();return console.log(`📋 Fetched schema for ${q}:`,z),z}catch(b){return console.error(`Error fetching schema for primitive ${q}:`,b),null}},[]),N=Re.useCallback(async q=>{try{const b=await fetch(`${Y4}/${q}`);if(!b.ok){if(b.status===404)return console.log(`🚫 Schema for table ${q} not found (404)`),null;throw new Error(`HTTP error! status: ${b.status}`)}const D=await b.json();return console.log(`📋 Fetched schema for ${q}:`,D),D}catch(b){return console.error(`Error fetching schema for table ${q}:`,b),null}},[]),ce=Re.useCallback(async()=>{try{const q=await fetch(pI);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const b=await q.json();return console.log("📋 Fetched config:",b),b}catch(q){return console.error("Error fetching config:",q),null}},[]),me=Re.useCallback(async()=>{try{const q=await fetch(C2);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const b=await q.json();return console.log("📋 Fetched user table names:",b),b.map(D=>D.table_name)}catch(q){return console.error("Error fetching user table names:",q),[]}},[]),W=Re.useCallback(q=>{const b=[];return!q||!Array.isArray(q)?b:(q.forEach(D=>{D.primitives&&Array.isArray(D.primitives)&&D.primitives.forEach(z=>{z.primitive&&z.primitive.name&&z.primitive.type!=="evm-rpc-paima-l2"&&b.push(z.primitive.name)})}),[...new Set(b)])},[]),S=Re.useCallback(async(q,b,D)=>{try{if(G.current.has(q))return null;const z=D??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},V=new URL(`${H4}/${q}`);V.searchParams.set("limit",String(z.limit));const ae=z.cursors[z.currentPage];ae&&V.searchParams.set("after",ae);const ue=await fetch(V.toString());if(!ue.ok){if(ue.status===404)return console.log(`🚫 Primitive ${q} not found (404)`),G.current.add(q),null;throw new Error(`HTTP error! status: ${ue.status}`)}const A=await ue.json(),y=Array.isArray(A)?A:A.data??[],g=A.pagination;return g&&I(w=>{const J=[...w[q].cursors];return g.nextCursor&&J.length===w[q].currentPage+1&&J.push(g.nextCursor),{...w,[q]:{...w[q],hasMore:g.hasMore,cursors:J}}}),console.log(`📊 Fetched data for ${q}:`,y),ee(y,q,b)}catch(z){return console.error(`Error fetching primitive data for ${q}:`,z),null}},[ee]),Z=Re.useCallback(async(q,b,D)=>{try{const z=D??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},V=new URL(`${C2}/${q}`);V.searchParams.set("limit",String(z.limit));const ae=z.cursors[z.currentPage];ae&&V.searchParams.set("after",ae);const ue=await fetch(V.toString());if(!ue.ok){if(ue.status===404)return console.log(`🚫 Table ${q} not found (404)`),null;throw new Error(`HTTP error! status: ${ue.status}`)}const A=await ue.json();console.log(`📊 Fetched table data for ${q}:`,A);const y=A.data??[],g=A.pagination;return g&&B(w=>{const J=[...w[q].cursors];return g.nextCursor&&J.length===w[q].currentPage+1&&J.push(g.nextCursor),{...w,[q]:{...w[q],hasMore:g.hasMore,cursors:J}}}),fe(y,q,b)}catch(z){return console.error(`Error fetching table data for ${q}:`,z),null}},[fe]),se=Re.useCallback(async()=>{try{const q=await fetch(G4);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const D=(await q.json()).data??[];console.log("📊 Fetched scheduled data:",D);const z=[{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:D.length,rows:D,fields:z}}catch(q){return console.error("Error fetching scheduled data:",q),null}},[]),Q=Re.useCallback(async()=>{if(!(L.current.length===0||!T.current))try{const q=L.current.map(async D=>{const z=Y.current[D],V=te.current[D],ae=await S(D,z,V);return{primitiveName:D,data:ae}}),b=await Promise.all(q);b.length>0&&f(D=>{const z={...D};return b.forEach(({primitiveName:V,data:ae})=>{ae!==null&&(z[V]=ae)}),z})}catch(q){console.error("Error refreshing primitive data:",q)}},[S]),M=Re.useCallback(async()=>{if(!(!T.current||k.current.length===0))try{const q=k.current.map(async D=>{const z=oe.current[D],V=F.current[D],ae=await Z(D,z,V);return{tableName:D,data:ae}}),b=await Promise.all(q);b.length>0&&m(D=>{const z={...D};return b.forEach(({tableName:V,data:ae})=>{ae!==null&&(z[V]=ae)}),z})}catch(q){console.error("Error refreshing user table data:",q)}},[Z]),P=Re.useCallback(async()=>{if(T.current)try{const q=await se();q!==null&&x({scheduled_data:q})}catch(q){console.error("Error refreshing scheduled data:",q)}},[se]),K=Re.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const q=await ce();if(!q){console.error("Failed to fetch config");return}const b=W(q);if(i(b),console.log("📊 Found primitives:",b),b.length===0){console.log("No primitives found in config");return}const D=b.map(async y=>{const g=await he(y);return{primitiveName:y,schema:g}}),z=await Promise.all(D),V={};z.forEach(({primitiveName:y,schema:g})=>{g&&(V[y]=g)}),O(V),I(y=>{const g={...y};return b.forEach(w=>{g[w]||(g[w]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),g});const ae=b.map(async y=>{const g=V[y],w=te.current[y]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},J=await S(y,g,w);return{primitiveName:y,data:J}}),ue=await Promise.all(ae),A={};ue.forEach(({primitiveName:y,data:g})=>{A[y]=g}),f(A),console.log("✅ Primitive tables initialized")}catch(q){console.error("Error initializing primitive tables:",q)}},[ce,W,he,S]),pe=Re.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const q=await me();if(u(q),q.length===0){console.log("No user tables found");return}const b=q.map(async A=>{const y=await N(A);return{tableName:A,schema:y}}),D=await Promise.all(b),z={};D.forEach(({tableName:A,schema:y})=>{y&&(z[A]=y)}),R(z),B(A=>{const y={...A};return q.forEach(g=>{y[g]||(y[g]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),y});const V=q.map(async A=>{const y=z[A],g=F.current[A]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},w=await Z(A,y||void 0,g);return{tableName:A,data:w}}),ae=await Promise.all(V),ue={};ae.forEach(({tableName:A,data:y})=>{ue[A]=y}),m(ue),console.log("✅ State machine tables initialized")}catch(q){console.error("Error initializing state machine tables:",q)}},[N,Z,me]),ge=Re.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const q=await se();x({scheduled_data:q}),console.log("✅ Scheduled data initialized")}catch(q){console.error("Error initializing scheduled data:",q)}},[se]);return Re.useEffect(()=>{let q,b,D;return(async()=>{await Promise.all([K(),pe(),ge()]),T.current=!0,q=setInterval(()=>{Q()},5e3),setTimeout(()=>{M(),b=setInterval(()=>{M()},5e3)},1500),setTimeout(()=>{P(),D=setInterval(()=>{P()},5e3)},3e3)})(),()=>{q&&clearInterval(q),b&&clearInterval(b),D&&clearInterval(D)}},[]),{primitiveData:c,userTableData:d,scheduledData:h,primitiveNames:t,userTableNames:a,refreshPrimitiveData:Q,refreshUserTableData:M,refreshScheduledData:P,primitivePagination:v,userTablePagination:C,setPrimitiveLimit:async(q,b)=>{const D={limit:b,cursors:[void 0],currentPage:0,hasMore:!1};I(ae=>({...ae,[q]:D}));const z=Y.current[q],V=await S(q,z,D);f(ae=>({...ae,[q]:V}))},nextPrimitivePage:async q=>{const b=te.current[q];if(!b||!b.hasMore)return;const D={...b,currentPage:b.currentPage+1};I(ae=>({...ae,[q]:D}));const z=Y.current[q],V=await S(q,z,D);f(ae=>({...ae,[q]:V}))},prevPrimitivePage:async q=>{const b=te.current[q];if(!b||b.currentPage===0)return;const D={...b,currentPage:b.currentPage-1};I(ae=>({...ae,[q]:D}));const z=Y.current[q],V=await S(q,z,D);f(ae=>({...ae,[q]:V}))},firstPrimitivePage:async q=>{const b=te.current[q];if(!b)return;const D={...b,cursors:[void 0],currentPage:0};I(ae=>({...ae,[q]:D}));const z=Y.current[q],V=await S(q,z,D);f(ae=>({...ae,[q]:V}))},setUserTableLimit:async(q,b)=>{const D={limit:b,cursors:[void 0],currentPage:0,hasMore:!1};B(ae=>({...ae,[q]:D}));const z=oe.current[q],V=await Z(q,z,D);m(ae=>({...ae,[q]:V}))},nextUserTablePage:async q=>{const b=F.current[q];if(!b||!b.hasMore)return;const D={...b,currentPage:b.currentPage+1};B(ae=>({...ae,[q]:D}));const z=oe.current[q],V=await Z(q,z,D);m(ae=>({...ae,[q]:V}))},prevUserTablePage:async q=>{const b=F.current[q];if(!b||b.currentPage===0)return;const D={...b,currentPage:b.currentPage-1};B(ae=>({...ae,[q]:D}));const z=oe.current[q],V=await Z(q,z,D);m(ae=>({...ae,[q]:V}))},firstUserTablePage:async q=>{const b=F.current[q];if(!b)return;const D={...b,cursors:[void 0],currentPage:0};B(ae=>({...ae,[q]:D}));const z=oe.current[q],V=await Z(q,z,D);m(ae=>({...ae,[q]:V}))}}}function SP(){const[e,t]=Re.useState([]),[i,a]=Re.useState([]),[u,c]=Re.useState(!1),[f,d]=Re.useState(!1),{chainConfigs:m,newBlockIndices:h,latestBlock:x,isConnected:v,isLoadingConfig:I,configError:C}=IP(),{primitiveData:B,userTableData:$,scheduledData:O,primitiveNames:U,userTableNames:R,primitivePagination:T,userTablePagination:L,nextPrimitivePage:k,prevPrimitivePage:Y,firstPrimitivePage:oe,setPrimitiveLimit:te,nextUserTablePage:F,prevUserTablePage:_,firstUserTablePage:G,setUserTableLimit:H}=FP();return Re.useEffect(()=>{U.length>0&&e.length===0&&t(U)},[U,e]),Re.useEffect(()=>{R.length>0&&i.length===0&&a([R[0]])},[R,i]),Re.useEffect(()=>{const ee=fe=>{console.error("Unhandled promise rejection:",fe.reason)};return globalThis.addEventListener("unhandledrejection",ee),()=>{globalThis.removeEventListener("unhandledrejection",ee)}},[]),Re.useEffect(()=>{const ee=fe=>{fe.key==="r"&&fe.ctrlKey&&(fe.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[]),I?X.jsxs("div",{className:"container",children:[X.jsx(Zy,{latestBlock:x,isConnected:v}),X.jsx("div",{style:{padding:"20px",textAlign:"center",fontSize:"18px",color:"#667eea"},children:"🔄 Loading chain configurations..."})]}):C?X.jsxs("div",{className:"container",children:[X.jsx(Zy,{latestBlock:x,isConnected:v}),X.jsxs("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: ",C,X.jsx("br",{}),X.jsx("small",{style:{color:"#666",marginTop:"8px",display:"block"},children:"Using fallback configuration. Some features may not work correctly."})]}),X.jsx(_E,{chainConfigs:m,newBlockIndices:h})]}):X.jsxs("div",{className:"container",children:[X.jsx(Zy,{latestBlock:x,isConnected:v}),X.jsx(_E,{chainConfigs:m,newBlockIndices:h}),X.jsxs(Jy,{title:"Primitive Data",tables:Object.fromEntries(Object.entries(B).filter(([ee])=>e.includes(ee))),pagination:T,onPrev:ee=>Y(ee),onNext:ee=>k(ee),onFirst:ee=>oe(ee),onLimitChange:(ee,fe)=>te(ee,fe),children:[X.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:X.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>c(!0),children:"Select Primitives"})}),X.jsx(PE,{isOpen:u,onClose:()=>c(!1),title:"Select Primitives",tableNames:U,selectedNames:e,onApply:ee=>t(ee.length?ee:[U[0]].filter(Boolean))})]}),X.jsxs(Jy,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries($).filter(([ee])=>i.includes(ee))),pagination:L,onPrev:ee=>_(ee),onNext:ee=>F(ee),onFirst:ee=>G(ee),onLimitChange:(ee,fe)=>H(ee,fe),children:[X.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:X.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>d(!0),children:"Select Tables"})}),X.jsx(PE,{isOpen:f,onClose:()=>d(!1),title:"Select Custom Tables",tableNames:R,selectedNames:i,onApply:ee=>a(ee.length?ee:[R[0]].filter(Boolean))}),X.jsx(wP,{})]}),X.jsx(Jy,{title:"Scheduled Data",tables:O})]})}I3.createRoot(document.getElementById("root")).render(X.jsx(Re.StrictMode,{children:X.jsx(SP,{})}));
|